/*
 * 3rd Kuwait Trauma Conference — editable stylesheet
 * 01 Fonts and design tokens
 * 02 Base styles and section wrappers
 * 03 Fixed header and navigation
 * 04 Hero, logos and event details
 * 05 Animated trauma clock
 * 06 About Conference (light section)
 * 07 Chairperson message
 * 08 Dialogs and motion states
 * 09 Speakers and CV modal
 * 10 Animation keyframes
 * 11 Responsive layouts and reduced motion
 *
 * Change brand colors and rotation duration in :root. Component styles
 * appear once here; device-specific adjustments are grouped at the end.
 */

/* 01. Fonts and design tokens */
@font-face {
  font-family: Bebas;
  src: url("assets/fonts/BebasNeue-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url("assets/fonts/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url("assets/fonts/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url("assets/fonts/Poppins-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url("assets/fonts/Poppins-Italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
:root {
  --navy: #0b1725;
  --red: #ef3532;
  --cyan: #7ecfd7;
  --white: #fafbff;
  --muted: #aebdcd;
  --line: #263a50;
  --content-ink: #102a40;
  --content-muted: #4d6273;
  --content-line: #d9e5ea;
  --header: 90px;
  --golden-hour-duration: 40s;
  color-scheme: dark;
}

/* 02. Base styles and shared section wrappers */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header);
}
body {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font-family: Poppins, Arial, sans-serif;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 38%, #122a4166, transparent 65%),
    linear-gradient(#7ecfd71a 1px, transparent 1px),
    linear-gradient(90deg, #7ecfd71a 1px, transparent 1px);
  background-size:
    auto,
    26px 26px,
    26px 26px;
  animation: hero-grid-flow 14s linear infinite;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 46%, #7ecfd72b 50%, transparent 54%),
    linear-gradient(0deg, transparent 46%, #ef35321c 50%, transparent 54%),
    radial-gradient(circle, #7ecfd737 1px, transparent 2px);
  background-size:
    260px 100%,
    100% 260px,
    52px 52px;
  background-repeat: no-repeat, no-repeat, repeat;
  animation: hero-grid-scan 10s ease-in-out infinite alternate;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  cursor: pointer;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 6px;
}
main {
  padding-top: var(--header);
  overflow: clip;
}
.padding-left-right {
  padding-left: 10%;
  padding-right: 10%;
}
.container-fluid {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 20;
  padding: 15px;
  background: var(--navy);
}
.skip-link:focus {
  top: calc(var(--header) + 12px);
}
body.modal-open,
body.menu-open {
  overflow: hidden;
}

/* 03. Fixed header and desktop navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: var(--header);
  padding: 0 3%;
  gap: 24px;
  background: #0b1725ed;
  border-bottom: 1px solid #7ecfd71c;
  backdrop-filter: blur(20px);
  transition: box-shadow 0.3s;
}
.site-header.scrolled {
  box-shadow: 0 8px 40px #0005;
}
.site-header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), var(--cyan), transparent);
  animation: header-scan 9s ease-in-out infinite;
  pointer-events: none;
}
.wordmark {
  font:
    28px Bebas,
    sans-serif;
  letter-spacing: 1px;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark sup {
  font-size: 10px;
  vertical-align: super;
}
.wordmark span {
  margin-left: 5px;
  color: var(--red);
}
.menu-toggle,
.menu-scrim {
  display: none;
}
#navigation {
  display: flex;
  align-items: center;
  gap: clamp(5px, 0.65vw, 13px);
}
#navigation a {
  position: relative;
  padding: 13px 10px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color 0.3s,
    background 0.3s,
    border-color 0.3s,
    box-shadow 0.3s,
    transform 0.3s;
}
#navigation a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10px;
  width: calc(100% - 20px);
  height: 2px;
  background: linear-gradient(90deg, var(--red), #ff9d8a, var(--red));
  box-shadow: 0 0 12px #ef353285;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
#navigation a:hover,
#navigation a:focus-visible {
  color: var(--cyan);
  background: #7ecfd70a;
  border-color: #7ecfd72b;
  box-shadow:
    inset 0 0 22px #7ecfd706,
    0 5px 20px #0002;
  transform: translateY(-2px);
}
#navigation a:hover::after,
#navigation a[aria-current]::after {
  transform: scaleX(1);
}
#navigation a[aria-current] {
  background: linear-gradient(180deg, transparent, #ef35320c);
}
#navigation .registration-link {
  padding: 13px 16px;
  border-color: #ef353280;
  box-shadow: inset 0 0 18px #ef35320a;
}
.registration-link span {
  margin-left: 6px;
}

/* 04. Hero layout, prominent logos and event details */
.hero-section,
.about-section {
  isolation: isolate;
}
.hero-section {
  position: relative;
  overflow: clip;
}
.section-atmosphere {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.section-atmosphere::before,
.section-atmosphere::after {
  content: "";
  position: absolute;
  inset: -4%;
  pointer-events: none;
}
.section-atmosphere::before {
  background:
    radial-gradient(
      circle at 83% 26%,
      transparent 0 116px,
      #167d8a16 117px 118px,
      transparent 119px
    ),
    radial-gradient(
      circle at 83% 26%,
      transparent 0 164px,
      #ef35320c 165px 166px,
      transparent 167px
    ),
    radial-gradient(ellipse at 17% 31%, #7ecfd738, transparent 38%),
    radial-gradient(ellipse at 82% 74%, #ef353217, transparent 35%),
    radial-gradient(ellipse at 54% 4%, #fff8, transparent 42%);
  opacity: 0.62;
  animation: conference-ambient-drift 26s ease-in-out infinite alternate;
}
.section-atmosphere::after {
  inset: 0;
  background-image:
    linear-gradient(#167d8a0b 1px, transparent 1px),
    linear-gradient(90deg, #167d8a0b 1px, transparent 1px),
    radial-gradient(circle, #ef35321a 1px, transparent 1.7px);
  background-size:
    58px 58px,
    58px 58px,
    116px 116px;
  background-position:
    0 0,
    0 0,
    0 0;
  opacity: 0.42;
  mask-image: radial-gradient(ellipse at center, #000 0%, #000 32%, transparent 84%);
  animation: conference-grid-drift 42s linear infinite;
}
.section-atmosphere-dark::after {
  background-image:
    linear-gradient(#7ecfd711 1px, transparent 1px),
    linear-gradient(90deg, #7ecfd711 1px, transparent 1px),
    radial-gradient(circle, #ef353229 1px, transparent 1.7px);
}
.section-atmosphere-dark::before {
  background:
    radial-gradient(
      circle at 83% 26%,
      transparent 0 116px,
      #7ecfd71c 117px 118px,
      transparent 119px
    ),
    radial-gradient(
      circle at 83% 26%,
      transparent 0 164px,
      #ef353218 165px 166px,
      transparent 167px
    ),
    radial-gradient(ellipse at 17% 31%, #7ecfd720, transparent 38%),
    radial-gradient(ellipse at 82% 74%, #ef353218, transparent 35%),
    radial-gradient(ellipse at 54% 4%, #ffffff0a, transparent 42%);
  opacity: 0.85;
}
@keyframes conference-ambient-drift {
  from {
    transform: translate3d(-1.3%, 0.8%, 0) scale(1) rotate(-0.6deg);
  }
  to {
    transform: translate3d(1.3%, -0.8%, 0) scale(1.035) rotate(0.6deg);
  }
}
@keyframes conference-grid-drift {
  to {
    background-position:
      58px 58px,
      58px 58px,
      116px 116px;
  }
}
.hero-section {
  padding: 12px 0 28px;
}
.cover {
  display: block;
  max-width: 1600px;
  animation: arrive 1s ease both;
}
.logo-lockup {
  display: grid;
  grid-template-columns: 270px 1px minmax(0, 540px);
  justify-content: center;
  align-items: start;
  gap: 30px;
}
.organizer {
  min-width: 0;
  text-align: center;
}
.logo-space {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
}
.ministry-logo {
  width: 134px;
  height: 146px;
  object-fit: contain;
}
.kas-logo {
  width: 465px;
  max-width: 100%;
  max-height: 146px;
  object-fit: contain;
}
.logo-divider {
  width: 1px;
  height: 120px;
  margin-top: 14px;
  background: var(--cyan);
  opacity: 0.8;
}
.affiliation {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--muted);
}
.affiliation strong {
  color: var(--white);
  font-weight: 600;
}
.hero-event {
  min-width: 0;
  max-width: 1260px;
  margin: 22px auto 0;
  padding-bottom: 12px;
}
.event-details {
  display: grid;
  grid-template-columns: 0.95fr 1.15fr 1.5fr;
  gap: 24px;
  align-items: center;
  position: relative;
  margin: 0;
  padding-top: 22px;
}
.event-details::before {
  content: "";
  position: absolute;
  top: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--red) 25%, #edba00 25% 50%, #2aa96b 50% 75%, #596575 75%);
}
.event-date {
  padding: 0;
}
.event-venue {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}
.detail-label {
  font-size: 14px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--cyan);
}
.event-details h1,
.event-details h2 {
  margin: 10px 0 4px;
  font:
    clamp(32px, 3vw, 48px)/1.1 Bebas,
    sans-serif;
}
.event-details p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}
/* One heading and four clock units; target date is editable in the HTML. */
.event-countdown {
  min-width: 0;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}
.event-details .countdown-heading {
  margin: 0 0 15px;
  color: var(--white);
  font-size: 34px;
}
.countdown-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 9px;
  perspective: 700px;
}
.countdown-unit {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #7ecfd73d;
  border-radius: 9px;
  background: linear-gradient(160deg, #193248, #0c1a29);
  box-shadow:
    inset 0 1px 0 #ffffff0d,
    0 7px 20px #0003;
  text-align: center;
  animation: countdown-glow 4s ease-in-out infinite;
}
.countdown-unit:nth-child(2) {
  animation-delay: -0.7s;
}
.countdown-unit:nth-child(3) {
  animation-delay: -1.4s;
}
.countdown-unit:nth-child(4) {
  animation-delay: -2.1s;
}
.countdown-unit::before {
  content: "";
  position: absolute;
  top: 43%;
  left: 0;
  right: 0;
  height: 1px;
  background: #020a1255;
  pointer-events: none;
}
.countdown-unit::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, #7ecfd71c 50%, transparent 65%);
  transform: translateX(-140%);
  animation: countdown-sheen 4.5s ease-in-out infinite;
  pointer-events: none;
}
.countdown-value {
  display: block;
  padding: 12px 3px 0;
  color: var(--white);
  font:
    42px/1 Bebas,
    sans-serif;
  font-variant-numeric: tabular-nums;
  transform-origin: center;
  text-shadow: 0 0 20px #7ecfd729;
}
.countdown-unit:first-child .countdown-value {
  color: var(--cyan);
}
.countdown-value.is-changing {
  animation: countdown-flip 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.countdown-label {
  display: block;
  padding: 7px 2px 10px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}
.paused .countdown-value {
  animation: none !important;
}

/* 05. PDF-proportioned clock. Scale the whole SVG, not individual labels.
 * Text widths and positions are fixed in the SVG's 1000-unit coordinates.
 * Its dot begins at 12 o'clock; the heading stays fixed.
 */
.clock-stage {
  position: relative;
  isolation: isolate;
  width: min(100%, calc(100svh - 250px));
  max-width: 960px;
  margin: 32px auto 0;
  clip-path: inset(-35px 0 -10px);
}
.trauma-clock {
  display: block;
  width: 100%;
  overflow: visible;
}
.outer-ring {
  fill: none;
  stroke: #253a51;
  stroke-width: 1.5;
}
.tick {
  stroke: #3a5066;
  stroke-width: 2;
  stroke-linecap: round;
}
.tick.major {
  stroke-width: 4;
}
.tick.red {
  stroke: var(--red);
}
.inner-orbit {
  transform-origin: 500px 500px;
  animation: rotate 100s linear infinite;
}
.inner-orbit circle:first-child {
  fill: none;
  stroke: #365670;
  stroke-width: 1.5;
  stroke-dasharray: 4 10;
  opacity: 0.7;
}
.orbit-dot {
  fill: var(--cyan);
  filter: url(#cyan-glow);
}
.golden-rotation {
  transform-origin: 500px 500px;
  animation: rotate var(--golden-hour-duration) linear infinite;
}
.golden-arc,
.golden-halo {
  fill: none;
  stroke: var(--red);
  stroke-width: 5;
  stroke-linecap: round;
}
.golden-halo {
  filter: url(#red-glow);
  opacity: 0.45;
  stroke-width: 9;
}
.golden-tip {
  fill: var(--red);
  filter: drop-shadow(0 0 8px #ef3532);
}
.golden-heading {
  isolation: isolate;
}
.golden-label {
  fill: var(--red);
  font:
    700 28px Poppins,
    sans-serif;
  letter-spacing: 2.4px;
}
.golden-label tspan {
  fill: var(--red);
}
.golden-flare {
  fill: none;
  stroke: var(--red);
  stroke-width: 2;
  stroke-dasharray: 360;
  stroke-dashoffset: 360;
  opacity: 0;
  filter: drop-shadow(0 0 5px var(--red));
}
.lap-complete .golden-label tspan {
  animation: golden-letter-flare 1.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(var(--letter) * 55ms);
}
.lap-complete .golden-flare {
  animation: golden-underline 2.7s ease both;
}
.medical-node {
  --node: var(--cyan);
  cursor: pointer;
  outline: none;
}
.medical-node.casualties {
  --node: var(--red);
}
.node-ring {
  fill: #0b1928;
  stroke: var(--node);
  stroke-width: 2.7;
  transition:
    stroke-width 0.3s,
    filter 0.3s;
  animation: node-highlight 9.8s ease-in-out infinite;
  animation-delay: var(--phase);
}
.node-aura {
  fill: none;
  stroke: var(--node);
  stroke-width: 1;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: ripple 9.8s ease-out infinite;
  animation-delay: var(--phase);
}
.medical-node use {
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: filter 0.3s;
}
.medical-node text {
  fill: var(--node);
  font:
    500 24px Poppins,
    sans-serif;
  letter-spacing: 1px;
  text-anchor: middle;
}
.medical-node:hover .node-ring,
.medical-node:focus .node-ring,
.medical-node.selected .node-ring {
  stroke-width: 4;
  filter: drop-shadow(0 0 12px var(--node));
}
.medical-node:hover use,
.medical-node:focus use {
  filter: drop-shadow(0 0 5px var(--node));
}
.medical-node.selected .node-aura {
  animation: ripple-click 1s ease-out;
}
.edition {
  fill: var(--white);
  font:
    49px Bebas,
    sans-serif;
  letter-spacing: 6px;
}
.edition-ordinal {
  font-size: 23px;
  letter-spacing: 0;
}
.trauma-title {
  fill: var(--white);
  font:
    208px Bebas,
    sans-serif;
  letter-spacing: 4px;
}
.conference-title {
  fill: var(--cyan);
  font:
    32px Poppins,
    sans-serif;
  letter-spacing: 10px;
}
.theme {
  fill: var(--white);
  font:
    700 30px Poppins,
    sans-serif;
}
.tagline {
  fill: #b9c6d5;
  font:
    italic 24px Poppins,
    sans-serif;
}
.heartbeat {
  position: absolute;
  top: 0;
  left: 50%;
  width: 140%;
  height: 100%;
  transform: translateX(-50%);
  overflow: visible;
  pointer-events: none;
}
.heartbeat use {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ecg-shadow {
  stroke: #081522;
  stroke-width: 18;
}
.ecg-base {
  stroke: var(--red);
  stroke-width: 5;
}
.ecg-trace {
  stroke: #ffb0a6;
  stroke-width: 3;
  stroke-dasharray: 150 2050;
  stroke-dashoffset: 2200;
  animation: heartbeat-trace 3.5s linear infinite;
}
.ecg-glow {
  stroke: var(--red);
  stroke-width: 8;
  filter: blur(7px);
  stroke-dasharray: 100 2100;
  stroke-dashoffset: 2200;
  animation: heartbeat-trace 3.5s linear infinite;
}

/* 06. About Conference — light surfaces after the hero */
.about-section {
  position: relative;
  padding: 88px 0 100px;
  background: linear-gradient(145deg, #fff 20%, #f0f7f8 100%);
  border-top: 1px solid #dce8ed;
  color: var(--content-ink);
  color-scheme: light;
  scroll-margin-top: 22px;
  outline: none;
}
.about-section::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  width: min(280px, 40%);
  height: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--red), var(--cyan), transparent);
  box-shadow: 0 0 24px #7ecfd736;
  pointer-events: none;
}
.about-introduction {
  display: grid;
  grid-template-columns: 0.85fr 1.35fr;
  align-items: start;
  gap: 70px;
  margin-bottom: 54px;
}
.about-introduction h2 {
  margin: 0;
  color: var(--content-ink);
  font:
    clamp(55px, 5.7vw, 84px)/1.03 Bebas,
    sans-serif;
  letter-spacing: 0.6px;
}
.about-introduction h2 > span {
  color: var(--red);
}
.about-introduction p {
  margin: 0;
  color: var(--content-muted);
  font-size: 18px;
  line-height: 1.95;
}
.about-introduction strong {
  color: #147786;
  font-weight: 600;
}
.about-introduction em {
  color: var(--content-ink);
}
.about-photographs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 52px;
}
.about-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid #d3e2e9;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 36px #163b5010;
  transition:
    border-color 0.4s,
    box-shadow 0.4s,
    transform 0.4s;
}
.about-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.9;
  background: #e7f0f3;
}
.about-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 75%, #ffffff24);
}
.about-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
  transition:
    transform 1s cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 0.6s;
}
.about-photo:first-child img {
  object-position: center 48%;
}
.about-photo figcaption {
  position: relative;
  padding: 26px 30px 29px;
  color: var(--content-ink);
  font-size: 18px;
  line-height: 1.7;
  font-weight: 600;
}
.about-photo figcaption::before {
  content: "";
  position: absolute;
  top: 0;
  left: 30px;
  width: 44px;
  height: 2px;
  background: #218795;
  box-shadow: 0 0 15px #21879525;
  transition: width 0.5s;
}
.about-photo:hover {
  border-color: #62a9b3;
  box-shadow: 0 18px 45px #163b501c;
  transform: translateY(-4px);
}
.about-photo:hover img {
  transform: scale(1.045);
  filter: saturate(1);
}
.about-photo:hover figcaption::before {
  width: 90px;
}
.about-information {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.about-list-panel {
  --accent: var(--red);
  position: relative;
  min-width: 0;
  padding: 34px 32px 22px;
  border: 1px solid #d8e5eb;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff, #f7fafb);
  box-shadow: 0 12px 38px #163b5008;
}
.attendance-panel {
  --accent: #167d8a;
}
.about-list-panel h3 {
  position: relative;
  margin: 0 0 12px;
  padding-bottom: 22px;
  border-bottom: 1px solid #d7e4eb;
  color: var(--content-ink);
  font:
    36px/1.15 Bebas,
    sans-serif;
  letter-spacing: 0.8px;
}
.about-list-panel h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 65px;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--accent), transparent 70%);
}
.about-list-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.about-list-panel li {
  position: relative;
  padding: 16px 0 16px 23px;
  border-bottom: 1px solid #e2ebef;
  color: var(--content-muted);
  font-size: 16px;
  line-height: 1.8;
  transition:
    color 0.3s,
    padding-left 0.3s;
}
.about-list-panel li:last-child {
  border-bottom: 0;
}
.about-list-panel li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 28px;
  width: 5px;
  height: 5px;
  border: 1px solid var(--accent);
  transform: rotate(45deg);
  transition:
    background 0.3s,
    box-shadow 0.3s;
}
.about-list-panel li:hover {
  padding-left: 28px;
  color: var(--content-ink);
}
.about-list-panel li:hover::before {
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.85s ease,
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-ready [data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
.about-photographs [data-reveal]:nth-child(2),
.about-information [data-reveal]:nth-child(2) {
  transition-delay: 0.12s;
}

/* 07. Chairperson message: portrait beside the complete partnership letter. */
@property --portrait-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
.chairperson-section {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: 94px 0 104px;
  border-top: 1px solid #dce8ed;
  background: radial-gradient(ellipse at 0 30%, #edf7f8 0, transparent 48%), #fff;
  color: var(--content-ink);
  color-scheme: light;
  scroll-margin-top: 22px;
  outline: none;
}
.chairperson-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(ellipse at 12% 25%, #7ecfd754, transparent 42%),
    radial-gradient(ellipse at 85% 65%, #ef353216, transparent 40%),
    radial-gradient(ellipse at 45% 95%, #7ecfd72c, transparent 38%);
  background-size: 140% 140%;
  animation: chairperson-atmosphere 9s ease-in-out infinite alternate;
  pointer-events: none;
}
.chairperson-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 36%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--red), transparent);
  box-shadow: 0 0 18px #7ecfd780;
  animation: chairperson-edge 6s ease-in-out infinite alternate;
  pointer-events: none;
}
.chairperson-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 52px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--content-line);
}
.chairperson-heading h2 {
  margin: 0;
  font:
    clamp(48px, 5.4vw, 78px)/1.05 Bebas,
    sans-serif;
  letter-spacing: 0.5px;
}
.animated-heading .heading-word {
  display: inline-block;
  background: linear-gradient(110deg, #102a40 30%, #2199aa 46%, #102a40 65%);
  background-size: 260% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.section-active .animated-heading .heading-word {
  animation:
    chairperson-word-enter 0.95s cubic-bezier(0.16, 1, 0.3, 1) both,
    chairperson-title-light 3.5s linear infinite;
  animation-delay: calc(var(--word-index) * 140ms), 1s;
}
.animated-heading .heading-word .heading-period {
  color: var(--red);
}
.chairperson-ecg {
  width: 200px;
  flex-shrink: 0;
  overflow: visible;
}
.chairperson-ecg path {
  fill: none;
  stroke: var(--red);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 285;
  filter: drop-shadow(0 0 4px #ef35324d);
  animation: chairperson-heartbeat 2.4s ease-in-out infinite;
}
.chairperson-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.5fr);
  align-items: start;
  gap: clamp(38px, 4.5vw, 76px);
}
.chairperson-profile {
  position: sticky;
  top: calc(var(--header) + 30px);
  min-width: 0;
}
.chairperson-portrait {
  margin: 0;
}
.portrait-frame {
  position: relative;
  overflow: hidden;
  border: 3px solid transparent;
  border-radius: 14px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    conic-gradient(
        from var(--portrait-angle),
        #7ecfd7 0deg,
        #167d8a 80deg,
        #e5f5f8 165deg,
        #ef3532 250deg,
        #7ecfd7 360deg
      )
      border-box;
  box-shadow: 0 24px 65px #163b5022;
  transform-style: preserve-3d;
  animation:
    portrait-border 4s linear infinite,
    portrait-float 5s ease-in-out infinite,
    portrait-glow 3s ease-in-out infinite;
  transition: box-shadow 0.6s;
}
.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 40%, #ffffff99 50%, transparent 60%);
  transform: translateX(-150%);
  animation: portrait-sheen 3.6s ease-in-out infinite;
}
.portrait-frame img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}
.portrait-frame:hover {
  box-shadow: 0 28px 70px #163b5022;
}
.portrait-frame:hover img {
  transform: scale(1.025);
}
.chairperson-portrait figcaption {
  padding: 26px 3px 0;
}
.chairperson-portrait h3 {
  margin: 0 0 10px;
  font-size: clamp(20px, 1.65vw, 25px);
  font-weight: 600;
  line-height: 1.45;
}
.chairperson-portrait figcaption p {
  margin: 4px 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--content-muted);
}
.chairperson-portrait figcaption p:first-of-type {
  color: #147786;
  font-weight: 600;
}
.chairperson-letter {
  position: relative;
  min-width: 0;
}
.chairperson-letter::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -25px;
  width: 2px;
  background: linear-gradient(
    180deg,
    transparent 15%,
    #7ecfd780 40%,
    var(--red) 50%,
    #7ecfd780 60%,
    transparent 85%
  );
  background-size: 100% 280%;
  animation: chairperson-letter-light 5s linear infinite;
  pointer-events: none;
}
.chairperson-letter > h3 {
  margin: 0 0 32px;
  font:
    clamp(35px, 3.15vw, 48px)/1.15 Bebas,
    sans-serif;
  letter-spacing: 0.4px;
}
.chairperson-letter > h3::after {
  content: "";
  display: block;
  width: 150px;
  height: 3px;
  margin-top: 18px;
  background: linear-gradient(90deg, var(--red), #72c8d1, transparent);
  transform-origin: left;
  animation: chairperson-underline 3s ease-in-out infinite;
}
.chairperson-letter > p {
  margin: 0 0 23px;
  color: var(--content-muted);
  font-size: 16px;
  line-height: 1.95;
}
.chairperson-letter .letter-salutation {
  color: var(--content-ink);
  font-weight: 600;
}
.letter-signature {
  position: relative;
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--content-line);
}
.letter-signature::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 64px;
  height: 2px;
  background: var(--red);
  animation: chairperson-underline 3s ease-in-out infinite;
  transform-origin: left;
}
.letter-signature p {
  margin: 0 0 16px;
  color: var(--content-muted);
  font-size: 16px;
}
.letter-signature strong {
  display: block;
  margin-bottom: 8px;
  font-size: 19px;
  font-weight: 600;
}
.letter-signature span {
  display: block;
  color: var(--content-muted);
  font-size: 13px;
  line-height: 1.85;
}
.letter-signature span:first-of-type {
  color: #147786;
}

/* 08. Information dialogs */
.paused *,
.paused *::before,
.paused *::after,
.paused::before,
.paused::after {
  animation-play-state: paused !important;
}
.paused .animated-heading .heading-word,
.paused dialog[open] {
  animation: none !important;
  opacity: 1;
  filter: none;
  transform: none;
}
dialog {
  width: calc(100% - 36px);
  max-width: 740px;
  max-height: 85dvh;
  padding: 30px 38px 42px;
  border: 1px solid #7ecfd745;
  background: radial-gradient(ellipse at top right, #16324a, transparent 70%), #0b1725;
  color: var(--white);
  box-shadow: 0 35px 120px #0009;
  animation: panel-in 0.4s ease both;
}
dialog::backdrop {
  background: #040c16b8;
  backdrop-filter: blur(12px);
}
.dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.dialog-brand {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--cyan);
}
.close-dialog {
  padding: 0 5px;
  border: 0;
  background: transparent;
  color: var(--white);
  font:
    300 30px/1 Arial,
    sans-serif;
}
#panel-content h2 {
  margin: 30px 0 22px;
  font:
    54px/1.1 Bebas,
    sans-serif;
}
#panel-content p,
#panel-content li {
  color: #c1cfdd;
  font-size: 17px;
  line-height: 1.95;
}
#panel-content ul {
  padding-left: 20px;
}
#panel-content li {
  padding: 5px 0;
}
#panel-content .person-name {
  color: var(--white);
  font-size: 22px;
}
.panel-link {
  display: inline-block;
  margin: 12px 0;
  padding: 12px 18px;
  border: 1px solid var(--red);
  background: transparent;
  color: var(--white);
  font-size: 15px;
  text-decoration: none;
  transition: background 0.3s;
}
.panel-link:hover {
  background: #ef35321c;
}
.sponsor-tiers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 24px 0;
}
.sponsor-tiers div {
  padding: 18px;
  border: 1px solid var(--line);
  color: var(--cyan);
  font-size: 16px;
}
.sponsor-tiers strong {
  display: block;
  margin-top: 5px;
  color: var(--white);
  font:
    30px Bebas,
    sans-serif;
}

/* 09. Speakers: 4 desktop/laptop / 3 tablet / 2 mobile columns.
 * Confirmed content lives in speakers.js, independently from the styling.
 */
@property --speaker-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
.speakers-section {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: 90px 0 110px;
  min-height: calc(100svh - var(--header) + 22px);
  border-top: 1px solid #d7e6eb;
  background: radial-gradient(ellipse at 50% 45%, #e6f4f6, transparent 65%), #f7fafc;
  color: var(--content-ink);
  color-scheme: light;
  scroll-margin-top: 22px;
  outline: none;
}
.speakers-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, #7ecfd71f 45%, transparent 70%);
  background-size: 220% 100%;
  animation: speakers-atmosphere 9s ease-in-out infinite alternate;
  pointer-events: none;
}
.speakers-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 52px;
  padding-bottom: 27px;
  border-bottom: 1px solid var(--content-line);
}
.speakers-heading h2 {
  margin: 0;
  font:
    clamp(52px, 5.4vw, 78px)/1.05 Bebas,
    sans-serif;
  letter-spacing: 0.5px;
}
.speakers-heading-orbit {
  position: relative;
  display: block;
  width: 48px;
  height: 48px;
  border: 1px solid #167d8a55;
  border-radius: 50%;
  animation: speaker-orbit 7s linear infinite;
}
.speakers-heading-orbit::before,
.speakers-heading-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.speakers-heading-orbit::before {
  inset: 9px;
  border: 1px dashed #167d8a88;
}
.speakers-heading-orbit::after {
  width: 7px;
  height: 7px;
  top: -4px;
  left: calc(50% - 3px);
  background: var(--red);
  box-shadow: 0 0 12px #ef353266;
}
.speakers-heading-orbit > span {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: #167d8a;
}
.speakers-grid {
  --speaker-gap: 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--speaker-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
/* Center the two supplied portraits; additional profiles fill normal rows. */
.speakers-grid:has(> :nth-child(2):last-child) > :first-child {
  grid-column: 2;
}
.speakers-grid:has(> :nth-child(2):last-child) > :nth-child(2) {
  grid-column: 3;
}
.speaker-item {
  min-width: 0;
  perspective: 1000px;
}
.speaker-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 15px;
  text-align: left;
  color: var(--content-ink);
  background:
    linear-gradient(#fff, #fff) padding-box,
    conic-gradient(
        from var(--speaker-angle),
        #bfdce4 0deg,
        #167d8a 100deg,
        #e8f2f5 180deg,
        #ef3532 270deg,
        #bfdce4 360deg
      )
      border-box;
  box-shadow: 0 16px 40px #163b5014;
  transform: perspective(1000px) rotateX(var(--speaker-tilt-x, 0deg))
    rotateY(var(--speaker-tilt-y, 0deg));
  animation:
    speaker-border 4.5s linear infinite,
    speaker-card-glow 4s ease-in-out infinite;
  animation-delay: calc(var(--speaker-index) * -0.8s);
  transition:
    transform 0.3s ease,
    box-shadow 0.4s;
}
.speaker-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(110deg, transparent 40%, #ffffff70 50%, transparent 60%);
  pointer-events: none;
  animation: speaker-sheen 5s ease-in-out infinite;
  animation-delay: calc(var(--speaker-index) * -0.9s);
}
.speaker-photo {
  position: relative;
  display: block;
  width: 100%;
  flex-shrink: 0;
  overflow: hidden;
  aspect-ratio: 4 / 4.8;
  background: radial-gradient(ellipse at 50% 50%, #c6e6eb, #edf7f9 60%, #f8fbfc);
}
.speaker-photo img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  transform-origin: center bottom;
  animation: speaker-portrait-float 5s ease-in-out infinite;
  animation-delay: calc(var(--speaker-index) * -1.1s);
  transition: filter 0.4s;
}
.speaker-photo-orbit {
  position: absolute;
  inset: 15% 5%;
  border: 1px dashed #167d8a44;
  border-radius: 50%;
  animation: speaker-orbit 16s linear infinite;
}
.speaker-photo-orbit::before {
  content: "";
  position: absolute;
  top: 7%;
  left: 16%;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 16px #ef35324d;
}
.speaker-country {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100% - 24px);
  padding: 7px 9px;
  border: 1px solid #ffffffba;
  border-radius: 30px;
  background: #ffffffdf;
  color: #146b78;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  backdrop-filter: blur(10px);
  box-shadow: 0 3px 15px #163b5010;
}
.speaker-country-dot {
  width: 5px;
  height: 5px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #167d8a;
  animation: speaker-country-pulse 2s ease-in-out infinite;
}
.speaker-info {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 18px 17px;
  background: #fff;
}
.speaker-name {
  display: block;
  min-height: 2.8em;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
}
.speaker-designation {
  display: block;
  min-height: 4.95em;
  margin-top: 9px;
  color: var(--content-muted);
  font-size: 13px;
  line-height: 1.65;
}
.speaker-invitation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  color: var(--content-muted);
  font-size: 12px;
  line-height: 1.5;
}
.speaker-arrow {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 29px;
  height: 29px;
  border: 1px solid #ef35324d;
  border-radius: 50%;
  color: var(--red);
  font-size: 17px;
  transition:
    background 0.3s,
    color 0.3s,
    transform 0.3s;
}
.speaker-card:hover .speaker-arrow,
.speaker-card:focus-visible .speaker-arrow {
  transform: rotate(45deg);
  color: #fff;
  background: var(--red);
}
.speaker-card:hover .speaker-photo img {
  filter: drop-shadow(0 8px 8px #163b5029);
}
.speaker-dialog {
  width: min(1020px, calc(100% - 36px));
  max-width: 1020px;
  max-height: 90dvh;
  overflow: auto;
  padding: 0;
  border: 1px solid #b6dce4;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff, #f3f9fb);
  color: var(--content-ink);
  color-scheme: light;
  box-shadow:
    0 40px 120px #04142280,
    0 0 60px #7ecfd71c;
}
.speaker-dialog::before {
  content: "";
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  width: 45%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--red), transparent);
  animation: cv-edge-light 5s ease-in-out infinite alternate;
}
.speaker-dialog[open] {
  animation: speaker-modal-enter 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.speaker-dialog.is-closing {
  animation: speaker-modal-exit 0.24s ease both;
}
.speaker-dialog::backdrop {
  background: #05142299;
  backdrop-filter: blur(14px);
}
.speaker-modal-toolbar {
  position: sticky;
  top: 0;
  z-index: 4;
  height: 0;
}
.speaker-modal-close {
  position: absolute;
  z-index: 4;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #b6d8e2;
  border-radius: 50%;
  background: #ffffffed;
  box-shadow: 0 5px 20px #163b501a;
  color: var(--content-ink);
  font:
    28px/1 Arial,
    sans-serif;
  transition:
    background 0.3s,
    transform 0.3s;
}
.speaker-modal-close:hover {
  background: #e9f5f7;
  transform: rotate(90deg);
}
.speaker-modal-layout {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  align-items: stretch;
}
.speaker-modal-photo {
  position: sticky;
  top: 0;
  align-self: start;
  display: flex;
  align-items: flex-end;
  min-width: 0;
  min-height: 420px;
  overflow: hidden;
  border-right: 1px solid #d6e8ed;
  background: radial-gradient(ellipse at 50% 50%, #c8e9ee, #f0f8fa 70%);
}
.speaker-modal-photo-orbit {
  position: absolute;
  inset: 12% 5%;
  border: 1px dashed #167d8a55;
  border-radius: 50%;
  animation: speaker-orbit 16s linear infinite;
}
.speaker-modal-photo-orbit::after {
  content: "";
  position: absolute;
  top: 11%;
  left: 13%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 18px #ef353259;
}
.speaker-modal-photo img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.speaker-modal-content {
  min-width: 0;
  padding: 62px 40px 38px;
}
.speaker-modal-country {
  display: inline-flex;
  padding: 6px 12px;
  border: 1px solid #b8dce4;
  border-radius: 30px;
  background: #e9f6f8;
  color: #167d8a;
  font-size: 11px;
  letter-spacing: 0.4px;
  line-height: 1.6;
  margin: 0 0 14px;
}
.speaker-modal-content h2 {
  margin: 0 0 15px;
  font:
    clamp(35px, 4vw, 48px)/1.05 Bebas,
    sans-serif;
  overflow-wrap: anywhere;
}
.speaker-modal-designation {
  margin: 0 0 25px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--content-muted);
}
.speaker-modal-content h3 {
  position: relative;
  margin: 0 0 16px;
  padding-top: 21px;
  border-top: 1px solid var(--content-line);
  color: #167d8a;
  font-size: 13px;
  font-weight: 600;
}
.speaker-modal-content h3::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 70px;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--cyan));
  animation: chairperson-underline 3s ease-in-out infinite;
  transform-origin: left;
}
.speaker-modal-bio {
  counter-reset: cv-paragraph;
}
.speaker-modal-bio p {
  position: relative;
  margin: 0 0 16px;
  padding: 19px 21px;
  border: 1px solid #dce9ee;
  border-radius: 12px;
  background: #ffffffd9;
  box-shadow: 0 6px 20px #163b5007;
  color: var(--content-muted);
  font-size: 15px;
  line-height: 1.9;
}
.speaker-dialog.has-biography .speaker-modal-bio p {
  counter-increment: cv-paragraph;
  padding-top: 43px;
}
.speaker-dialog.has-biography .speaker-modal-bio p::before {
  content: counter(cv-paragraph, decimal-leading-zero);
  position: absolute;
  top: 15px;
  left: 21px;
  color: #167d8a;
  font:
    16px/1 Bebas,
    sans-serif;
  letter-spacing: 2px;
}
.speaker-dialog[open] .speaker-modal-bio p {
  animation: cv-paragraph-enter 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--cv-index) * 100ms + 100ms);
}
.paused .speaker-dialog[open] {
  animation: none;
}
.paused .speaker-dialog[open] .speaker-modal-bio p {
  animation: none;
}

/* 10. Animation keyframes */
@keyframes hero-grid-flow {
  from {
    background-position:
      0 0,
      0 0,
      0 0;
  }
  to {
    background-position:
      0 0,
      52px 52px,
      52px 52px;
  }
}
@keyframes hero-grid-scan {
  from {
    background-position:
      -260px 0,
      0 -260px,
      0 0;
  }
  to {
    background-position:
      calc(100vw + 260px) 0,
      0 calc(100svh + 260px),
      52px 52px;
  }
}
@keyframes countdown-glow {
  0%,
  100% {
    border-color: #7ecfd72b;
    box-shadow:
      inset 0 1px 0 #ffffff0d,
      0 7px 20px #0003;
  }
  50% {
    border-color: #7ecfd780;
    box-shadow:
      inset 0 0 15px #7ecfd70c,
      0 0 20px #7ecfd71a;
  }
}
@keyframes countdown-sheen {
  0%,
  15% {
    transform: translateX(-140%);
  }
  75%,
  100% {
    transform: translateX(140%);
  }
}
@keyframes countdown-flip {
  from {
    transform: rotateX(-65deg) translateY(-4px);
    opacity: 0.45;
  }
  to {
    transform: rotateX(0) translateY(0);
    opacity: 1;
  }
}
@keyframes cv-edge-light {
  from {
    transform: translateX(-20%);
  }
  to {
    transform: translateX(120%);
  }
}
@keyframes cv-paragraph-enter {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes speakers-atmosphere {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 100% 50%;
  }
}
@keyframes speaker-orbit {
  to {
    transform: rotate(360deg);
  }
}
@keyframes speaker-border {
  to {
    --speaker-angle: 360deg;
  }
}
@keyframes speaker-card-glow {
  0%,
  100% {
    box-shadow: 0 12px 35px #163b5014;
  }
  50% {
    box-shadow:
      0 18px 40px #167d8a29,
      0 0 18px #7ecfd729;
  }
}
@keyframes speaker-sheen {
  0% {
    transform: translateX(-150%);
    opacity: 0;
  }
  20%,
  55% {
    opacity: 0.8;
  }
  80%,
  100% {
    transform: translateX(150%);
    opacity: 0;
  }
}
@keyframes speaker-portrait-float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-5px) scale(1.025);
  }
}
@keyframes speaker-country-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 #167d8a44;
  }
  60% {
    box-shadow: 0 0 0 5px #167d8a00;
  }
}
@keyframes speaker-modal-enter {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.94);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}
@keyframes speaker-modal-exit {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
}
@keyframes chairperson-atmosphere {
  from {
    background-position:
      0% 0%,
      100% 100%,
      30% 100%;
  }
  to {
    background-position:
      80% 70%,
      20% 15%,
      70% 20%;
  }
}
@keyframes chairperson-edge {
  from {
    transform: translateX(-30%);
  }
  to {
    transform: translateX(210%);
  }
}
@keyframes chairperson-word-enter {
  from {
    opacity: 0;
    transform: translateY(38px) rotateX(-35deg);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
    filter: blur(0);
  }
}
@keyframes chairperson-title-light {
  from {
    background-position: 150% 50%;
  }
  to {
    background-position: -150% 50%;
  }
}
@keyframes portrait-float {
  0%,
  100% {
    transform: perspective(900px) translateY(0) rotateX(var(--portrait-tilt-x, 0deg))
      rotateY(var(--portrait-tilt-y, 0deg));
  }
  50% {
    transform: perspective(900px) translateY(-9px) rotateX(var(--portrait-tilt-x, 0deg))
      rotateY(var(--portrait-tilt-y, 0deg));
  }
}
@keyframes portrait-glow {
  0%,
  100% {
    box-shadow:
      0 20px 50px #1477861c,
      0 0 0 #7ecfd700;
  }
  50% {
    box-shadow:
      0 28px 65px #14778630,
      0 0 34px #7ecfd74d;
  }
}
@keyframes chairperson-letter-light {
  from {
    background-position: 0 150%;
  }
  to {
    background-position: 0 -150%;
  }
}
@keyframes chairperson-underline {
  0%,
  100% {
    transform: scaleX(0.5);
    opacity: 0.5;
  }
  50% {
    transform: scaleX(1);
    opacity: 1;
  }
}
@keyframes portrait-border {
  to {
    --portrait-angle: 360deg;
  }
}
@keyframes portrait-sheen {
  0% {
    transform: translateX(-150%);
    opacity: 0;
  }
  25%,
  60% {
    opacity: 0.9;
  }
  85%,
  100% {
    transform: translateX(150%);
    opacity: 0;
  }
}
@keyframes chairperson-heartbeat {
  0% {
    stroke-dashoffset: 285;
    opacity: 0.35;
  }
  45%,
  72% {
    stroke-dashoffset: 0;
    opacity: 0.9;
  }
  100% {
    stroke-dashoffset: -285;
    opacity: 0.35;
  }
}
@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}
@keyframes heartbeat-trace {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes ripple {
  0%,
  30%,
  100% {
    opacity: 0;
    transform: scale(1);
  }
  5% {
    opacity: 0.65;
  }
  25% {
    opacity: 0;
    transform: scale(1.6);
  }
}
@keyframes ripple-click {
  from {
    opacity: 0.8;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(1.8);
  }
}
@keyframes node-highlight {
  0%,
  24%,
  100% {
    filter: drop-shadow(0 0 0 transparent);
  }
  6%,
  14% {
    filter: drop-shadow(0 0 12px var(--node));
    stroke-width: 3.5;
  }
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes header-scan {
  0%,
  100% {
    transform: translateX(-110%);
    opacity: 0;
  }
  12%,
  85% {
    opacity: 0.8;
  }
  95% {
    transform: translateX(660%);
    opacity: 0;
  }
}
@keyframes golden-letter-flare {
  0%,
  100% {
    fill: var(--red);
    filter: drop-shadow(0 0 0 transparent);
    opacity: 1;
  }
  18% {
    fill: #fff;
    filter: drop-shadow(0 0 9px var(--red));
  }
  35% {
    fill: #ffae99;
    filter: drop-shadow(0 0 16px var(--red));
  }
  52% {
    fill: var(--red);
    opacity: 0.55;
  }
  64% {
    fill: #fff;
    filter: drop-shadow(0 0 7px var(--red));
  }
  85% {
    fill: var(--red);
    opacity: 1;
  }
}
@keyframes golden-underline {
  0% {
    stroke-dashoffset: 360;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  50% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  100% {
    stroke-dashoffset: -360;
    opacity: 0;
  }
}
@keyframes drawer-edge {
  to {
    background-position: 0 200%;
  }
}
@keyframes registration-glow {
  0%,
  100% {
    box-shadow:
      inset 0 0 18px #ef35320a,
      0 0 0 #ef353200;
  }
  50% {
    box-shadow:
      inset 0 0 30px #ef35321a,
      0 0 22px #ef35321a;
  }
}

/* 11. Responsive layouts */
@media (max-width: 1099px) {
  .speakers-grid {
    --speaker-gap: 22px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .speakers-grid:has(> :nth-child(2):last-child) > :first-child {
    grid-column: 1;
  }
  .speakers-grid:has(> :nth-child(2):last-child) > :nth-child(2) {
    grid-column: 2;
  }
  .speakers-grid:has(> :nth-child(2):last-child) > .speaker-item {
    position: relative;
    left: calc(50% + var(--speaker-gap) / 2);
  }
  .speakers-section {
    padding: 72px 0 82px;
  }
}
/* Compact desktops and tablets: animated navigation drawer. */
@media (max-width: 1280px) {
  :root {
    --header: 80px;
  }
  .site-header {
    padding: 0 24px;
  }
  .menu-toggle {
    position: relative;
    z-index: 13;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 48px;
    height: 48px;
    padding: 12px;
    border: 1px solid #7ecfd74d;
    border-radius: 8px;
    background: linear-gradient(135deg, #7ecfd70f, transparent);
    box-shadow: inset 0 0 12px #7ecfd706;
    transition:
      border-color 0.3s,
      box-shadow 0.3s;
  }
  .menu-toggle:hover {
    border-color: var(--cyan);
    box-shadow: 0 0 20px #7ecfd71c;
  }
  .menu-toggle span {
    width: 22px;
    height: 1px;
    background: var(--white);
    transition:
      transform 0.35s,
      opacity 0.35s;
  }
  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(6px) rotate(45deg);
  }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-6px) rotate(-45deg);
  }
  #navigation {
    position: fixed;
    right: 0;
    top: 0;
    z-index: 12;
    flex-direction: column;
    align-items: stretch;
    justify-content: safe center;
    width: min(500px, 88vw);
    height: 100dvh;
    padding: 90px 30px 35px;
    gap: 6px;
    overflow: auto;
    counter-reset: menu;
    background:
      radial-gradient(ellipse at 100% 0, #1c435a66, transparent 65%),
      linear-gradient(135deg, #0e2335, #091522);
    border-left: 1px solid #7ecfd72e;
    box-shadow: -30px 0 100px #0005;
    transform: translateX(102%);
    visibility: hidden;
    transition:
      transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
      visibility 0.7s;
  }
  #navigation::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--cyan), var(--red), transparent);
    background-size: 100% 200%;
    animation: drawer-edge 7s linear infinite;
    pointer-events: none;
  }
  #navigation a {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 14px;
    border-bottom-color: #7ecfd71a;
    border-radius: 3px;
    font-size: 20px;
    white-space: normal;
    counter-increment: menu;
    opacity: 0;
    transform: translateX(38px);
    filter: blur(5px);
    transition:
      opacity 0.45s,
      transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
      filter 0.5s,
      background 0.3s,
      color 0.3s,
      border-color 0.3s;
  }
  #navigation a::before {
    content: counter(menu, decimal-leading-zero);
    color: #7ecfd77a;
    font:
      16px Bebas,
      sans-serif;
    letter-spacing: 2px;
    transition:
      color 0.3s,
      text-shadow 0.3s;
  }
  #navigation a:hover::before,
  #navigation a[aria-current]::before {
    color: var(--red);
    text-shadow: 0 0 14px #ef3532aa;
  }
  #navigation a::after {
    left: 14px;
    width: 35px;
    transition:
      transform 0.4s,
      width 0.4s;
  }
  #navigation a:hover::after {
    width: calc(100% - 28px);
  }
  #navigation .registration-link {
    margin-top: 18px;
    padding: 18px 14px;
    background: linear-gradient(120deg, #ef35321a, transparent);
  }
  .menu-open #navigation {
    transform: translateX(0);
    visibility: visible;
  }
  .menu-open #navigation a {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0);
    transition-delay: calc(var(--i) * 55ms + 130ms);
  }
  .menu-open #navigation .registration-link {
    animation: registration-glow 4s ease-in-out 1s infinite;
  }
  .menu-scrim {
    position: fixed;
    inset: 0;
    z-index: 11;
    display: block;
    height: 100dvh;
    background: #020b16b3;
    backdrop-filter: blur(7px);
    visibility: hidden;
    opacity: 0;
    transition:
      opacity 0.6s,
      visibility 0.6s;
  }
  .menu-open .menu-scrim {
    opacity: 1;
    visibility: visible;
  }
}
/* Short desktops: retain the full circle in the opening viewport. */
@media (min-width: 1001px) and (max-height: 800px) {
  .hero-section {
    padding-top: 8px;
    padding-bottom: 20px;
  }
  .logo-space {
    height: 128px;
  }
  .ministry-logo {
    height: 126px;
    width: 116px;
  }
  .kas-logo {
    width: 445px;
    max-height: 126px;
  }
  .logo-divider {
    height: 104px;
    margin-top: 12px;
  }
  .clock-stage {
    width: min(100%, calc(100svh - 100px));
    margin-top: 24px;
  }
}
/* Tablets: circle above a two-column event summary. */
@media (max-width: 1000px) {
  .event-countdown {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 24px 0 0;
  }
  .event-details .countdown-heading {
    font-size: 32px;
    text-align: center;
  }
  .countdown-grid {
    max-width: 460px;
    margin: 0 auto;
  }
  .chairperson-section {
    padding: 72px 0 80px;
  }
  .chairperson-layout {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr);
    gap: 30px;
  }
  .chairperson-heading {
    gap: 24px;
    margin-bottom: 38px;
  }
  .chairperson-ecg {
    width: 130px;
  }
  .chairperson-letter > p {
    font-size: 15px;
  }
  .logo-lockup {
    grid-template-columns: 220px 1px minmax(0, 450px);
    gap: 20px;
  }
  .logo-space {
    height: 148px;
  }
  .ministry-logo {
    height: 143px;
    width: 132px;
  }
  .kas-logo {
    width: 390px;
    max-height: 143px;
  }
  .clock-stage {
    width: min(100vw, calc(100svh - 290px));
    max-width: 820px;
    margin: 40px 0 12px 50%;
    transform: translateX(-50%);
  }
  .event-details {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 22px;
  }
  .event-date {
    padding: 0;
  }
  .event-venue {
    padding: 0 0 0 22px;
    border-top: 0;
    border-left: 1px solid var(--line);
  }
  .event-details h1,
  .event-details h2 {
    font-size: 32px;
  }
  .event-details p {
    font-size: 13px;
  }
  .about-section {
    padding: 70px 0 80px;
  }
  .about-introduction {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .about-introduction p {
    font-size: 17px;
  }
  .about-heading-break {
    display: none;
  }
  .about-photographs,
  .about-information {
    gap: 22px;
  }
  .about-photo figcaption {
    padding: 24px;
    font-size: 17px;
  }
  .about-list-panel {
    padding: 28px 24px 18px;
  }
  .about-list-panel li {
    font-size: 15px;
  }
}
/* Mobile: 0% outer padding with safe inner text gutters. */
@media (max-width: 767px) {
  .event-details .countdown-heading {
    font-size: 30px;
  }
  .countdown-value {
    font-size: 44px;
  }
  .countdown-label {
    font-size: 11px;
    letter-spacing: 0.5px;
  }
  .speakers-section {
    padding: 56px 0 70px;
  }
  .speakers-heading {
    margin-bottom: 34px;
    padding-bottom: 22px;
  }
  .speakers-heading h2 {
    font-size: 50px;
  }
  .speakers-heading-orbit {
    width: 40px;
    height: 40px;
  }
  .speakers-heading-orbit > span {
    inset: 14px;
  }
  .speakers-grid {
    --speaker-gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .speakers-grid:has(> :nth-child(2):last-child) > .speaker-item {
    left: 0;
  }
  .speaker-info {
    padding: 16px 13px 13px;
  }
  .speaker-name {
    font-size: 17px;
  }
  .speaker-country {
    top: 9px;
    left: 9px;
    max-width: calc(100% - 18px);
    padding: 6px 7px;
    font-size: 11px;
    gap: 5px;
  }
  .speaker-invitation {
    font-size: 12px;
    margin-top: auto;
  }
  .speaker-arrow {
    width: 25px;
    height: 25px;
    font-size: 15px;
  }
  .chairperson-section {
    padding: 56px 0 68px;
  }
  .chairperson-heading {
    align-items: flex-start;
    margin-bottom: 32px;
    gap: 16px;
    padding-bottom: 22px;
  }
  .chairperson-heading h2 {
    font-size: clamp(43px, 7.4vw, 58px);
  }
  .chairperson-ecg {
    width: 82px;
    margin-top: 14px;
  }
  .chairperson-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .chairperson-letter::before {
    left: -12px;
  }
  .chairperson-profile {
    position: static;
    width: min(100%, 420px);
    margin: 0 auto;
  }
  .chairperson-letter > h3 {
    margin-bottom: 25px;
    font-size: 37px;
  }
  .chairperson-letter > p {
    font-size: 16px;
    line-height: 1.95;
  }
  .chairperson-portrait h3 {
    font-size: 22px;
  }
  .padding-left-right {
    padding-left: 0%;
    padding-right: 0%;
  }
  .container-fluid {
    padding-left: 22px;
    padding-right: 22px;
  }
  .hero-section {
    padding-top: 18px;
  }
  .cover {
    padding-left: 16px;
    padding-right: 16px;
  }
  .logo-lockup {
    grid-template-columns: minmax(0, 0.85fr) 1px minmax(0, 1.45fr);
    gap: 12px;
  }
  .logo-space {
    height: 124px;
  }
  .ministry-logo {
    height: 120px;
    width: 110px;
  }
  .kas-logo {
    width: 200px;
    max-height: 120px;
  }
  .logo-divider {
    height: 100px;
    margin-top: 12px;
  }
  .affiliation {
    margin-top: 6px;
    font-size: 10px;
    line-height: 1.6;
    letter-spacing: 0.2px;
  }
  .clock-stage {
    width: min(calc(100vw + 24px), calc(100svh - 200px));
    max-width: 700px;
    margin: 46px 0 12px 50%;
    transform: translateX(-50%);
  }
  .event-details {
    gap: 14px;
    padding-top: 18px;
  }
  .event-venue {
    padding-left: 14px;
  }
  .event-details h1,
  .event-details h2 {
    font-size: clamp(23px, 5.8vw, 34px);
  }
  .event-details p {
    font-size: 13px;
  }
  .detail-label {
    font-size: 12px;
    letter-spacing: 1.5px;
  }
  .about-section {
    padding: 56px 0 70px;
  }
}
@media (max-width: 700px) {
  .about-introduction {
    margin-bottom: 32px;
    gap: 24px;
  }
  .about-introduction h2 {
    font-size: clamp(46px, 8vw, 60px);
  }
  .about-introduction p {
    font-size: 16px;
    line-height: 1.9;
  }
  .about-photographs,
  .about-information {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .about-photographs {
    margin-bottom: 34px;
  }
  .about-image {
    aspect-ratio: 1.8;
  }
  .about-photo figcaption {
    padding: 22px 24px 25px;
  }
  .about-photo figcaption::before {
    left: 24px;
  }
  .about-list-panel {
    padding: 28px 24px 17px;
  }
  .about-list-panel h3 {
    font-size: 34px;
  }
  .about-list-panel li {
    padding-top: 15px;
    padding-bottom: 15px;
    font-size: 16px;
  }
  .about-photographs [data-reveal]:nth-child(2),
  .about-information [data-reveal]:nth-child(2) {
    transition-delay: 0s;
  }
}
@media (max-width: 600px) {
  .speaker-modal-layout {
    grid-template-columns: 1fr;
  }
  .speaker-modal-photo {
    position: relative;
    top: auto;
    min-height: 0;
    height: 260px;
    justify-content: center;
    border-right: 0;
    border-bottom: 1px solid #d6e8ed;
  }
  .speaker-modal-photo img {
    height: 100%;
    width: auto;
    max-width: 100%;
  }
  .speaker-modal-content {
    padding: 28px 22px 22px;
  }
  .speaker-modal-content h2 {
    font-size: 38px;
    margin-bottom: 20px;
  }
  .speaker-modal-bio p {
    padding: 18px;
    font-size: 15px;
  }
  .speaker-dialog.has-biography .speaker-modal-bio p {
    padding-top: 42px;
  }
  .speaker-dialog.has-biography .speaker-modal-bio p::before {
    left: 18px;
  }
  :root {
    --header: 74px;
  }
  .site-header {
    padding: 0 16px;
  }
  .wordmark {
    font-size: 26px;
  }
  #navigation {
    padding: 85px 22px 28px;
    gap: 4px;
  }
  #navigation a {
    padding: 14px 10px;
    gap: 13px;
    font-size: 18px;
  }
  #navigation a::before {
    font-size: 15px;
  }
  #navigation .registration-link {
    margin-top: 15px;
    padding: 16px 10px;
  }
  dialog {
    padding: 22px 23px 30px;
  }
  .dialog-brand {
    font-size: 10px;
    letter-spacing: 1px;
  }
  #panel-content h2 {
    font-size: 44px;
  }
  #panel-content p,
  #panel-content li {
    font-size: 16px;
  }
  .sponsor-tiers {
    gap: 8px;
  }
  .sponsor-tiers div {
    padding: 12px;
  }
}
@media (max-width: 360px) {
  .countdown-grid {
    gap: 7px;
  }
  .countdown-value {
    font-size: 40px;
  }
  .countdown-label {
    font-size: 11px;
  }
  .speakers-container {
    padding-left: 18px;
    padding-right: 18px;
  }
  .speakers-grid {
    --speaker-gap: 12px;
  }
  .speaker-name {
    font-size: 16px;
  }
  .speaker-info {
    padding-left: 10px;
    padding-right: 10px;
  }
  .speaker-invitation {
    font-size: 11px;
    gap: 4px;
  }
  .speaker-country {
    font-size: 10px;
  }
  .chairperson-container {
    padding-left: 18px;
    padding-right: 18px;
  }
  .chairperson-heading h2 {
    font-size: 40px;
  }
  .chairperson-ecg {
    width: 64px;
  }
  .chairperson-letter > h3 {
    font-size: 34px;
  }
  .wordmark {
    font-size: 23px;
  }
  .cover {
    padding-left: 12px;
    padding-right: 12px;
  }
  .logo-space {
    height: 116px;
  }
  .ministry-logo {
    height: 112px;
    width: 103px;
  }
  .affiliation {
    font-size: 11px;
    line-height: 1.45;
  }
  .event-details {
    grid-template-columns: 1fr 1.2fr;
    gap: 10px;
  }
  .event-venue {
    padding-left: 10px;
  }
  .event-details h1,
  .event-details h2 {
    font-size: 22px;
  }
  .event-details p {
    font-size: 12px;
  }
  #navigation {
    padding-left: 16px;
    padding-right: 16px;
  }
  #navigation a {
    font-size: 16px;
    gap: 10px;
  }
  .about-container {
    padding-left: 18px;
    padding-right: 18px;
  }
  .about-introduction h2 {
    font-size: 43px;
  }
  .about-list-panel {
    padding-left: 20px;
    padding-right: 20px;
  }
  .about-list-panel li {
    font-size: 15px;
  }
  .about-photo figcaption {
    padding-left: 20px;
    padding-right: 20px;
    font-size: 16px;
  }
}
/* Accessibility: all content remains visible when reduced motion is enabled. */
@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after,
  .section-atmosphere::before,
  .section-atmosphere::after,
  .countdown-unit,
  .countdown-unit::after,
  .countdown-value,
  .speaker-modal-photo-orbit,
  .speaker-dialog::before,
  .speaker-modal-content h3::after,
  .speaker-dialog[open] .speaker-modal-bio p {
    animation: none !important;
  }
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .golden-rotation,
  .site-header::after,
  .golden-heading *,
  .menu-open #navigation .registration-link,
  #navigation::before {
    animation: none !important;
  }
  .golden-flare {
    opacity: 0;
  }
  .reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .about-photo:hover,
  .about-photo:hover img,
  .portrait-frame:hover img {
    transform: none;
  }
  .portrait-frame,
  .portrait-frame::after,
  .chairperson-ecg path {
    animation: none !important;
  }
  .portrait-frame::after {
    opacity: 0;
  }
  .speakers-section::before,
  .speakers-heading-orbit,
  .speaker-card,
  .speaker-card::after,
  .speaker-photo img,
  .speaker-photo-orbit,
  .speaker-country-dot,
  .speaker-dialog[open] {
    animation: none !important;
  }
  .speaker-card::after {
    opacity: 0;
  }
  .chairperson-section::before,
  .chairperson-section::after,
  .section-active .animated-heading .heading-word,
  .chairperson-letter::before,
  .chairperson-letter > h3::after,
  .letter-signature::before {
    animation: none !important;
  }
}

/* =================================================
   IN ASSOCIATION WITH
   PREMIUM RESPONSIVE DESIGN
================================================= */

.trauma-associations {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 105px 0 115px;
    background: #f7f8fa;
}

/* Subtle background atmosphere */

.trauma-associations::before {
    content: "";
    position: absolute;
    top: -230px;
    right: -180px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(185, 48, 39, 0.065),
        transparent 70%
    );
    pointer-events: none;
    z-index: -1;
}

/* =================================================
   HEADING
================================================= */

.association-heading {
    text-align: center;
    margin-bottom: 54px;
}

.association-eyebrow {
    display: inline-block;
    margin-bottom: 15px;
    color: #a53b32;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.association-heading h2 {
    margin: 0;
    color: #20252b;
    font-size: clamp(30px, 4vw, 49px);
    font-weight: 750;
    line-height: 1.15;
    letter-spacing: -1.8px;
}

.association-heading h2 span {
    color: #b53c32;
}

.association-heading-line {
    width: 55px;
    height: 3px;
    margin: 23px auto 0;
    border-radius: 10px;
    background: #b53c32;
}

/* =================================================
   ASSOCIATION CARDS
================================================= */

.association-card {
    position: relative;
    height: 100%;
    padding: 1px;
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(
        145deg,
        #e8e9ed,
        #ffffff,
        #e5e7eb
    );
    box-shadow: 0 12px 36px rgba(22, 31, 43, 0.045);
    transition:
        transform 0.55s cubic-bezier(.2, .8, .2, 1),
        box-shadow 0.55s ease;
}

.association-card-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    min-height: 330px;
    padding: 38px 25px 28px;
    overflow: hidden;
    border-radius: 21px;
    background: #ffffff;
}

/* Animated highlight */

.association-card-inner::before {
    content: "";
    position: absolute;
    top: -100%;
    left: -100%;
    width: 110%;
    height: 110%;
    background: linear-gradient(
        135deg,
        transparent 35%,
        rgba(255, 255, 255, 0.75) 50%,
        transparent 65%
    );
    transform: rotate(15deg);
    pointer-events: none;
    transition:
        top 0.85s ease,
        left 0.85s ease;
}

.association-card:hover {
    transform: translateY(-9px);
    box-shadow: 0 25px 60px rgba(22, 31, 43, 0.12);
}

.association-card:hover .association-card-inner::before {
    top: 100%;
    left: 100%;
}

/* =================================================
   LOGOS
================================================= */

.association-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
    min-height: 205px;
}

.association-logo img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 195px;
    object-fit: contain;
    transition:
        transform 0.6s cubic-bezier(.2, .8, .2, 1),
        filter 0.6s ease;
}

.association-card:hover .association-logo img {
    transform: scale(1.065);
    filter: drop-shadow(
        0 10px 15px rgba(0, 0, 0, 0.07)
    );
}

/* =================================================
   FOOTER
================================================= */

.association-card-footer {
    width: 100%;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid #edf0f2;
    text-align: center;
}

.association-country {
    display: inline-block;
    color: #48515c;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

/* =================================================
   SCROLL REVEAL
================================================= */

.association-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition:
        opacity 0.85s ease,
        transform 0.85s cubic-bezier(.2, .8, .2, 1);
}

.association-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.trauma-associations .row > div:nth-child(2) {
    transition-delay: 120ms;
}

.trauma-associations .row > div:nth-child(3) {
    transition-delay: 240ms;
}

/* =================================================
   TABLET
================================================= */

@media (min-width: 768px) and (max-width: 991.98px) {

    .trauma-associations {
        padding: 80px 0 90px;
    }

    .association-card-inner {
        min-height: 280px;
        padding: 30px 20px 24px;
    }

    .association-logo {
        min-height: 170px;
    }

    .association-logo img {
        max-height: 160px;
    }

}

/* =================================================
   MOBILE
================================================= */

@media (max-width: 767.98px) {

    .trauma-associations {
        padding: 65px 0 75px;
    }

    .association-heading {
        margin-bottom: 35px;
    }

    .association-heading h2 {
        font-size: 32px;
        letter-spacing: -1px;
    }

    .association-eyebrow {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .association-card {
        border-radius: 16px;
    }

    .association-card-inner {
        min-height: 235px;
        padding: 20px 12px 18px;
        border-radius: 15px;
    }

    .association-logo {
        min-height: 145px;
    }

    .association-logo img {
        max-height: 135px;
    }

    .association-card-footer {
        margin-top: 12px;
        padding-top: 15px;
    }

    .association-country {
        font-size: 10px;
        letter-spacing: 0.5px;
    }

}

/* =================================================
   SMALL MOBILE
================================================= */

@media (max-width: 375px) {

    .association-card-inner {
        min-height: 205px;
        padding: 16px 9px;
    }

    .association-logo {
        min-height: 125px;
    }

    .association-logo img {
        max-height: 115px;
    }

    .association-country {
        font-size: 9px;
    }

}

/* =================================================
   ACCESSIBILITY
================================================= */

@media (prefers-reduced-motion: reduce) {

    .association-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .association-card,
    .association-logo img,
    .association-card-inner::before {
        transition: none;
    }

    .association-card:hover {
        transform: none;
    }

}

/* ================================================
   ASSOCIATION SECTION - RESPONSIVE GRID
   NO BOOTSTRAP REQUIRED
================================================ */

.trauma-associations .container {
    width: 100%;
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.trauma-associations .row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin: 0;
}

.trauma-associations .row > div {
    width: 100%;
    min-width: 0;
}

.trauma-associations .association-card {
    height: 100%;
}

/* Tablet */

@media (max-width: 991.98px) {

    .trauma-associations .row {
        gap: 18px;
    }

}

/* Mobile: 2 logos, then 1 centered */

@media (max-width: 767.98px) {

    .trauma-associations .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .trauma-associations .row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .trauma-associations .row > div:last-child {
        grid-column: 1 / -1;
        width: calc(50% - 7px);
        justify-self: center;
    }

}
