@import url("https://fonts.googleapis.com/css2?family=Jost:wght@400;500;600&display=swap");

html { scroll-behavior: smooth; }
#about, #agenda, #speakers, #media, #next-meet, #contact { scroll-margin-top: calc(var(--header) + 16px); }
#partners { display: none; }

:root {
  --bg: #07091a;
  --navy: #0b1230;
  --panel: #121833;
  --ink: #f4f6fb;
  --muted: rgba(244, 246, 251, 0.72);
  --line: rgba(255, 255, 255, 0.14);
  --header: 92px;
  --wrap: 1180px;
  --sans: Jost, "Segoe UI", sans-serif;
  --gold: #E6B84A;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid #9db4ff; outline-offset: 3px; }

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 40;
  background: #fff;
  color: #111;
  padding: 8px 12px;
}
.skip:focus { top: 12px; }

.wrap { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }

.eyebrow {
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lede { max-width: 42rem; color: var(--muted); }

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  height: var(--header);
  padding: 0 64px;
  background: linear-gradient(180deg, rgba(7, 9, 26, 0.88) 0%, rgba(7, 9, 26, 0.72) 100%);
}
.site-header.is-solid {
  background: rgba(7, 9, 26, 0.22);
  backdrop-filter: blur(8px);
}

.logo { text-decoration: none; width: fit-content; text-transform: uppercase; }
.logo img { height: 56px; width: auto; }
.site-header .logo img { height: 70px; }
html[data-theme="light"] .site-header .logo img { height: 78px; }
html[data-theme="light"] .site-footer .logo img { height: 84px; }
.logo-for-light { display: none; }
html[data-theme="light"] .logo-for-dark { display: none; }
html[data-theme="light"] .logo-for-light { display: block; }
.site-footer .logo img { height: 68px; }
.logo strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.05;
}
.site-header .logo strong,
.site-footer .logo strong {
  width: fit-content;
  font-size: 0.936rem;
}
.site-header .logo strong::after,
.site-footer .logo strong::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 8px;
  background: linear-gradient(90deg, #ffffff, var(--gold));
}
.site-header .logo span {
  width: auto;
  margin-top: 8px;
  padding-top: 0;
  border: 0;
  border-image: none;
  font-size: 0.864rem;
}
.logo span {
  display: block;
  width: 72px;
  margin-top: 5px;
  padding-top: 4px;
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, #4d74ff, #ff4d88) 1;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.nav { display: flex; align-items: center; justify-content: flex-end; gap: 28px; }
.nav-icon { width: 15px; height: 15px; flex: none; }
.menu-item > a, .dropdown a { display: inline-flex; align-items: center; gap: 6px; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions .btn { min-height: 40px; min-width: 0; padding: 0 16px; font-size: 0.68rem; }
.nav a { text-decoration: none; font-size: 0.875rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.nav a[aria-current="page"] { color: #fff; text-decoration: underline; text-underline-offset: 6px; }
.menu-item { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  display: none;
  min-width: 210px;
  padding: 12px;
  background: #101735;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.menu-item:hover .dropdown,
.menu-item:focus-within .dropdown { display: grid; gap: 8px; }

.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 22px;
  border: 1px solid rgba(230, 184, 74, 0.55);
  border-radius: 999px;
  background: #12163a;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.btn::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  background: linear-gradient(160deg, #2f6bff 0%, #6d4dff 46%, var(--gold) 100%);
  transform: translateY(101%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.btn:hover,
.btn:focus-visible {
  border-color: transparent;
  box-shadow: 0 14px 30px rgba(47, 70, 180, 0.38);
  transform: translateY(-3px);
}
.btn:hover::before,
.btn:focus-visible::before { transform: translateY(0); }
.btn-icon { width: 16px; height: 16px; flex: none; }
.header-actions .btn .btn-icon { width: 14px; height: 14px; }
.btn-ink, .btn-ghost { color: #fff; }
.nav-cta { display: none; }

.nav-toggle {
  display: none;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background: #0b1230;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: calc(var(--header) + 28px) 64px 96px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.85s ease, visibility 0.85s ease;
}
.hero-slide.is-on { opacity: 1; visibility: visible; z-index: 1; }
.hero h1 {
  max-width: 14ch;
  font-size: clamp(2.6rem, 4.2vw, 3.8rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.05;
  text-align: left;
}
.hero-slide .eyebrow { color: var(--gold); font-size: 1.05rem; letter-spacing: 0.18em; margin-bottom: 16px; }
@media (max-width: 700px) { .hero-slide .eyebrow { font-size: 0.9rem; } }
.hero-controls {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateX(-50%);
}
.hero-arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
  background: rgba(8, 10, 28, 0.45);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.hero-dots { display: flex; align-items: center; gap: 8px; }
.hero-dots button {
  width: 28px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.38);
  cursor: pointer;
}
.hero-dots button[aria-current="true"] {
  width: 52px;
  background: linear-gradient(90deg, #8eb6ff, var(--gold));
}
.hero-bg {
  position: absolute;
  inset: -4%;
  background: center 30% / cover no-repeat;
  animation: drift 22s ease-in-out infinite alternate;
}
.hero-video, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-video { object-fit: cover; }
@keyframes drift {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
.hero-shade {
  background:
    linear-gradient(100deg, rgba(16, 18, 72, 0.78) 10%, rgba(58, 24, 110, 0.62) 55%, rgba(92, 30, 140, 0.5)),
    rgba(36, 18, 90, 0.28);
}
.hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 720px);
  align-items: end;
  gap: 36px 48px;
  width: 100%;
  margin: 0;
}
.hero-lead { text-align: left; }
.hero h1 span, .intro-title span {
  display: block;
  overflow: hidden;
}
body.is-ready .hero h1 span,
.intro-title span {
  animation: rise 0.9s cubic-bezier(0.16, 0.84, 0.24, 1) both;
}
body.is-ready .hero h1 span:nth-child(2),
.intro-title span:nth-child(2) { animation-delay: 0.12s; }
body.is-ready .hero h1 span:nth-child(3),
.intro-title span:nth-child(3) { animation-delay: 0.24s; }
.hero h1 span.hero-here,
body.is-ready .hero h1 span.hero-here {
  display: inline;
  width: auto;
  overflow: visible;
  animation: none;
}
body.is-ready .hero .rule { animation: draw 0.8s ease 0.35s both; }
body.is-ready .hero .striped,
body.is-ready .hero-actions,
body.is-ready .hero-when { animation: fade-up 0.8s ease 0.45s both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(80%); }
  to { opacity: 1; transform: none; }
}
@keyframes draw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.intro {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: flex;
  align-items: flex-end;
  background: #07091a;
  transition: transform 0.9s cubic-bezier(0.77, 0, 0.18, 1);
}
.intro.is-leaving { transform: translateY(-100%); }
.intro-copy {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100% - 72px));
  margin: 0 auto 8vh;
}
.intro-title {
  font-size: clamp(4.6rem, 10vw, 8.4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.86;
}
.intro .rule { transform-origin: left; animation: draw 0.8s ease 0.35s both; }
.intro-year { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.intro-pct {
  margin-bottom: 18px;
  font-size: 1rem;
  letter-spacing: 0.18em;
}
.intro-meta {
  position: absolute;
  z-index: 1;
  left: 36px;
  right: 36px;
  bottom: 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
body.is-intro { overflow: hidden; }
.rule {
  width: 11.5rem;
  height: 3px;
  margin: 16px 0 8px;
  transform-origin: left;
  background: linear-gradient(90deg, #3d6bff, #ff4d6a);
}
.striped {
  width: fit-content;
  margin-bottom: 26px;
  font-size: clamp(2.8rem, 4.4vw, 3.8rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.9;
  text-align: left;
  background: repeating-linear-gradient(-58deg, #fff 0 2px, transparent 2px 6px);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .rule { width: 12.2rem; margin: 16px 0 8px; background: linear-gradient(90deg, #ffffff, var(--gold)); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 10px; margin-top: 24px; }
.hero-actions .btn { min-width: 0; min-height: 42px; padding: 0 16px; font-size: 0.78rem; }
.hero-when {
  margin-top: 36px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 26px;
  text-align: left;
}
.hero-side { text-align: left; }
.hero-side-title {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 35px;
  text-align: left;
  text-transform: uppercase;
}
.streams {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 18px 0 20px;
  font-size: 22px;
  padding: 0;
  list-style: none;
  font-weight: 500;
}
.streams li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: #ff4d88;
}
.streams li:nth-child(2)::before { background: #b44bff; }
.streams li:nth-child(3)::before { background: #5b7cff; }
.streams li:nth-child(4)::before { background: #3ec6ff; }
.streams li:nth-child(5)::before { background: #ff5a7a; }
.clock {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(440px, 100%);
  margin-left: 0;
  padding: 18px 12px 12px;
  border-radius: 8px;
  background: #100c18;
  box-shadow: 10px 10px 0 #c84bff;
  text-align: center;
}
.clock b {
  display: block;
  color: #ff4fa8;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  text-shadow: 0 0 14px rgba(255, 79, 168, 0.85);
  font-variant-numeric: tabular-nums;
}
.clock span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero-deck, .hero-meta { display: none; }

@keyframes ticker { to { transform: translateX(-50%); } }

.section { padding: 96px 0; }
.home-panel { padding: 72px 0; }
.home-panel h2.about-display {
  margin: 0 0 14px;
  font-size: clamp(2.6rem, 4.2vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.95;
  text-align: center;
  background: linear-gradient(100deg, #d7e4ff 10%, #8eb6ff 42%, var(--gold) 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.home-panel .section-lead {
  max-width: 34rem;
  margin: 0 auto 28px;
  text-align: center;
  color: rgba(255,255,255,.78);
  font-size: 0.95rem;
}
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
  text-align: left;
}
.contact-split.is-solo {
  grid-template-columns: 1fr;
  max-width: clamp(460px, 40vw, 640px);
  margin: 0 auto;
}
.contact-split.has-map {
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.85fr) minmax(260px, 0.9fr);
  gap: 20px;
}
#contact .wrap { width: min(1440px, calc(100% - 48px)); }
.contact-split form,
.contact-split .thanks { max-width: none; margin: 0; }
.contact-facts {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px 26px 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(230, 184, 74, 0.18), transparent 46%),
    linear-gradient(180deg, rgba(255,255,255,.05), transparent 140px),
    #121833;
}
.contact-facts .eyebrow { margin-bottom: 8px; }
.contact-facts h3 {
  margin: 0 0 8px;
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}
.contact-fact {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  flex: 1;
  min-height: 0;
  margin: 0;
  padding: 16px 0;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.contact-fact:last-child { border-bottom: 0; }
.contact-fact svg {
  width: 22px;
  height: 22px;
  padding: 12px;
  box-sizing: content-box;
  color: #e6b84a;
  border: 1px solid rgba(230, 184, 74, 0.35);
  border-radius: 14px;
  background: rgba(230, 184, 74, 0.12);
}
.contact-fact p { margin: 0; }
.contact-fact small {
  display: block;
  color: rgba(255,255,255,.58);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.contact-fact strong { display: block; margin-top: 4px; font-size: 1.05rem; font-weight: 500; line-height: 1.35; overflow-wrap: break-word; }
.contact-fact a { color: inherit; text-decoration: none; }
.contact-fact a:hover { color: #e6b84a; }
.contact-map {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 28px 18px 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(230, 184, 74, 0.18), transparent 46%),
    linear-gradient(180deg, rgba(255,255,255,.05), transparent 140px),
    #121833;
}
.contact-map .eyebrow { margin-bottom: 8px; }
.contact-map h3 {
  margin: 0 0 16px;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}
.contact-map iframe {
  flex: 1;
  width: 100%;
  min-height: 280px;
  border: 0;
  border-radius: 14px;
  background: #0c1024;
}
.contact-map a {
  align-self: flex-start;
  margin-top: 14px;
  color: #e6b84a;
  font-size: 0.92rem;
  text-decoration: none;
}
.contact-map a:hover { text-decoration: underline; }
.section h2, .page-hero h1, .split h2, .topic h2, .cta h2, .event-card h3, .card h3, .speaker h3 {
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.section h2, .cta h2 { font-size: clamp(2.4rem, 4.5vw, 4rem); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 36px; }

.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.frame { min-height: 420px; overflow: hidden; border-radius: 18px; background: #1b2448; }
.split img, .card img, .topic img, .event-card img { width: 100%; height: 100%; object-fit: cover; }
.split p + p { margin-top: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.band {
  background:
    radial-gradient(circle at 50% 60%, rgba(180, 60, 255, 0.35), transparent 42%),
    radial-gradient(circle, rgba(255,255,255,.18) 1px, transparent 1.4px) 0 0 / 10px 10px,
    #090d22;
}
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
.stat-value { font-size: clamp(2.8rem, 5vw, 4.4rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.stat-label { margin-top: 8px; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.82rem; }
.note { margin-top: 8px; color: var(--gold); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }

.cards { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.card { position: relative; grid-column: span 4; min-height: 320px; overflow: hidden; border-radius: 18px; background: #151b36; }
.card:nth-child(1), .card:nth-child(2) { grid-column: span 6; min-height: 420px; }
.card img { position: absolute; inset: 0; transition: transform 0.8s ease; }
.card:hover img { transform: scale(1.06); }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.speaker { position: relative; overflow: hidden; }
.speaker::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.16), transparent 70%);
  transform: translateX(-120%);
  animation: shine 8s ease-in-out infinite;
}
@keyframes shine {
  0%, 55% { transform: translateX(-120%); }
  80%, 100% { transform: translateX(120%); }
}
.card div { position: absolute; inset: auto 0 0; padding: 22px; background: linear-gradient(transparent, rgba(6, 8, 20, 0.92)); }
.card h3 { font-size: 1.7rem; }

.events, .topics { display: grid; gap: 18px; }
.event-card, .topic { display: grid; grid-template-columns: 0.8fr 1.2fr; min-height: 260px; overflow: hidden; border-radius: 18px; background: var(--panel); }
.event-card div, .topic div { padding: 28px; }
.event-card h3, .topic h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.next-meet-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 40px;
  align-items: center;
}
.next-meet-copy .eyebrow { color: var(--gold); }
.next-meet-copy h2 { max-width: 14ch; font-size: clamp(2.1rem, 3.4vw, 3rem); }
.next-meet-link {
  display: inline-block;
  margin-top: 28px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 4px;
}
.next-meet-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.meet-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  background: #121833;
}
.meet-card img { width: 100%; height: 280px; object-fit: cover; }
.meet-card div { display: grid; gap: 14px; padding: 18px 18px 22px; }
.meet-card h3 { margin: 0; font-size: 1.35rem; }
.meet-card .where { margin: 0; color: rgba(255,255,255,.82); font-size: 0.92rem; }
.meet-card .where span { color: var(--gold); }
.meet-visit {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 999px;
  color: #fff;
  font-size: 0.82rem;
  text-decoration: none;
}

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filters button, .socials span {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.filters button[aria-pressed="true"] {
  border-color: transparent;
  background: linear-gradient(100deg, #3d6bff, var(--gold));
}

.session { display: grid; grid-template-columns: 180px 1fr 220px; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.session h3 { font-size: 1.2rem; }
.session p { color: var(--muted); }

.speakers, .benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.speaker, .benefit, .panel { padding: 22px; border-radius: 18px; background: var(--panel); }
.monogram {
  display: grid;
  place-items: center;
  height: 180px;
  margin: -22px -22px 16px;
  border-radius: 18px 18px 0 0;
  background: radial-gradient(circle at 70% 30%, #7a3cff, #101735 60%);
  font-size: 2.4rem;
  font-weight: 500;
}
.speaker p, .benefit p, .panel p { margin-top: 8px; color: var(--muted); }
.about-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: center;
  padding: 28px;
  border-radius: 28px;
  background: #1c2550;
}
.about-card .frame { min-height: 320px; border-radius: 20px; }
.about-display {
  margin: 0 0 22px;
  font-size: clamp(2.6rem, 4.2vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.95;
  background: linear-gradient(100deg, #d7e4ff 10%, #8eb6ff 42%, var(--gold) 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.about-card h2 { font-size: clamp(2rem, 4vw, 3rem); }
.about-card .lede { margin-top: 16px; }
.about-card .lede + .lede { margin-top: 14px; }
/* About: image matches the text height, no empty gaps */
.about-card {
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr);
  align-items: center;
  gap: 44px;
  padding: 24px;
}
.about-card .frame {
  position: relative;
  min-height: 0;
  height: auto;
  aspect-ratio: 4 / 5;
  max-height: 420px;
}
.about-card .frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 4% center;
}
.about-card > div:last-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 24px 20px 0;
}
.about-card .about-display {
  margin: 0 0 6px;
  padding-left: 0;
}
.about-card .about-display::after {
  content: "";
  display: block;
  width: 64px;
  height: 2px;
  margin-top: 14px;
  background: linear-gradient(90deg, #8eb6ff, var(--gold));
}
.about-card .lede { max-width: none; margin-top: 14px; line-height: 1.7; }
.about-card .lede + .lede { margin-top: 12px; }
@media (max-width: 980px) {
  .about-card .frame { height: auto; min-height: 0; aspect-ratio: 16 / 10; }
  .about-card > div:last-child { padding: 4px 8px 8px; }
}
.company-section { padding-top: 36px; padding-bottom: 0; }
.company-band { display: none; margin-bottom: 28px; text-align: center; }
.about-section { padding-top: 28px; padding-bottom: 0; }
.next-meet { padding-top: 28px; }
.company-band .eyebrow { margin-bottom: 10px; font-size: 0.78rem; }
.logo-marquee {
  width: 100%;
  margin: 0;
  overflow: hidden;
}
.logo-track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  padding: 0;
  animation: ticker 28s linear infinite;
}
.sample-logo {
  flex: none;
  color: #f4f6fb;
}
.sample-logo svg { display: block; width: 150px; height: 52px; }
.logo-grid { display: grid; gap: 28px; }
.logo-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.logo-tile {
  display: grid;
  place-items: center;
  min-height: 110px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.03);
  text-align: center;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
}
.logo-tile:hover { border-color: #8aa4ff; }

.page-hero {
  padding: calc(var(--header) + 56px) 0 56px;
  background-color: #0b1230;
  background-image: linear-gradient(180deg, rgba(8, 12, 32, 0.35), rgba(8, 12, 32, 0.82)), var(--hero, none);
  background-position: center;
  background-size: cover;
}
.page-hero h1 { font-size: clamp(3rem, 6vw, 5.2rem); max-width: 16ch; }
.page-hero p { max-width: 38rem; margin-top: 14px; color: var(--muted); }
.prose { display: grid; gap: 14px; max-width: 44rem; }
.prose h2 { font-size: clamp(2rem, 4vw, 3rem); }

.cta {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 420px;
  background: #0b1230 center / cover no-repeat;
}
.cta .wrap { position: relative; z-index: 1; padding: 72px 0; }
.cta::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,9,26,.9), rgba(7,9,26,.35)); }

.site-footer {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding: 64px 36px 28px;
  background: #07091a;
  border-top: 1px solid var(--line);
}
.site-footer a { text-decoration: none; }
.footer-blurb { margin-top: 16px; max-width: 28rem; color: var(--muted); }
.site-footer ul { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.site-footer h2 { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.fineprint {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}
.legal { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.legal a:hover, .legal button:hover { color: var(--gold); }
.legal button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.socials span, .socials a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 999px;
}
.socials svg { width: 18px; height: 18px; }
.site-footer li a { display: inline-flex; align-items: flex-start; gap: 8px; }
.site-footer .contact-line { display: inline-flex; align-items: flex-start; gap: 8px; }
.site-footer li .nav-icon { width: 15px; height: 15px; margin-top: 2px; flex: none; }

form, .thanks { display: grid; gap: 14px; max-width: 560px; }
label { display: grid; gap: 6px; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
input, textarea, select {
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.28);
  border-radius: 0;
  background: transparent;
  color: #fff;
}
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.contact-form {
  max-width: none;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(230, 184, 74, 0.14), transparent 160px),
    #343f78;
}
.contact-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  align-items: end;
}
.contact-form label.is-wide { grid-column: 1 / -1; }
.contact-form input,
.contact-form textarea,
.contact-form select {
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 12px;
  background: rgba(10, 14, 34, 0.32);
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #e6b84a 50%), linear-gradient(135deg, #e6b84a 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 12px) 55%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.contact-form option { color: #161a28; }
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: rgba(230, 184, 74, 0.75);
  box-shadow: 0 0 0 3px rgba(230, 184, 74, 0.16);
}
.contact-form .btn { justify-self: start; width: auto; min-width: 0; min-height: 44px; padding: 0 26px; font-size: 0.78rem; }
.contact-split.is-solo .contact-form { padding: 28px; }
.fancy-select { position: relative; }
.fancy-select select { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.fancy-select-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 12px;
  background: rgba(10, 14, 34, 0.32);
  color: #fff;
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
  cursor: pointer;
}
.fancy-select-button .is-placeholder { color: rgba(255,255,255,.48); }
.fancy-select-button i {
  width: 8px;
  height: 8px;
  margin-left: 12px;
  border-right: 1.6px solid #e6b84a;
  border-bottom: 1.6px solid #e6b84a;
  transform: rotate(45deg) translateY(-2px);
  flex: none;
  transition: transform 160ms ease;
}
.fancy-select.is-open .fancy-select-button {
  border-color: rgba(230, 184, 74, 0.75);
  box-shadow: 0 0 0 3px rgba(230, 184, 74, 0.16);
}
.fancy-select.is-open .fancy-select-button i { transform: rotate(225deg) translate(-1px, -1px); }
.fancy-select-panel {
  position: absolute;
  z-index: 40;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  padding: 10px;
  border: 1px solid rgba(230, 184, 74, 0.38);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(230, 184, 74, 0.16), transparent 72px),
    linear-gradient(180deg, #1b2348 0%, #0c1024 100%);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: fancy-in 160ms ease;
}
.fancy-select-panel.is-up { top: auto; bottom: calc(100% + 10px); }
@keyframes fancy-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
.contact-form .fancy-select-search {
  width: 100%;
  min-height: 42px;
  margin: 0;
  padding: 0 14px 0 38px;
  border: 1px solid rgba(230, 184, 74, 0.32);
  border-radius: 12px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e6b84a' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='M16 16l4 4'/%3E%3C/svg%3E") 12px 50% / 16px no-repeat,
    rgba(6, 8, 20, 0.62);
  color: #fff;
  font-size: 0.92rem;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
}
.contact-form .fancy-select-search:focus {
  outline: none;
  border-color: rgba(230, 184, 74, 0.8);
  box-shadow: 0 0 0 3px rgba(230, 184, 74, 0.14);
}
.fancy-select-list {
  overflow: auto;
  padding: 2px;
}
.fancy-select-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(244, 246, 251, 0.92);
  font: inherit;
  font-size: 0.94rem;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
  cursor: pointer;
}
.fancy-select-list button + button { margin-top: 2px; }
.fancy-select-list button:hover {
  background: linear-gradient(90deg, rgba(230, 184, 74, 0.22), rgba(230, 184, 74, 0.05));
  color: #fff;
}
.fancy-select-list button[aria-selected="true"] {
  background: rgba(230, 184, 74, 0.14);
  color: #f6e2ad;
}
.fancy-check { display: none; }
.fancy-select-list button[aria-selected="true"] .fancy-check {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e6b84a;
  position: relative;
  flex: none;
}
.fancy-select-list button[aria-selected="true"] .fancy-check::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 7px;
  border: solid #1a1404;
  border-width: 0 1.6px 1.6px 0;
  transform: rotate(45deg);
}
.fancy-select-empty {
  margin: 8px 4px 10px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
  letter-spacing: 0;
  text-transform: none;
}
.fancy-select-list::-webkit-scrollbar { width: 8px; }
.fancy-select-list::-webkit-scrollbar-thumb { background: rgba(230, 184, 74, 0.45); border-radius: 99px; }
[hidden] { display: none !important; }
body[data-page="event"] [data-event] { display: none; }
body[data-page="event"] [data-event].is-on { display: block; }

.cookie {
  position: fixed;
  z-index: 40;
  right: 16px;
  bottom: 16px;
  width: min(380px, calc(100% - 32px));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #121833;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.cookie p { margin-bottom: 12px; }
.cookie .actions { margin-top: 0; }
.to-top {
  position: fixed;
  z-index: 35;
  right: 20px;
  bottom: 20px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
  background: #121833;
  color: #fff;
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}
.to-top.is-on { opacity: 1; visibility: visible; pointer-events: auto; }
.to-top:hover { transform: translateY(-2px); }
body:has(.cookie) .to-top { bottom: 168px; }
.paper { background: transparent; }

@media (min-width: 981px) and (max-width: 1180px) {
  .nav { gap: 16px; }
  .nav a { font-size: 0.8125rem; }
}
@media (max-width: 1180px) {
  .contact-split.has-map { grid-template-columns: 1fr 1fr; }
  .contact-split.has-map > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 980px) {
  .site-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
  }
  .site-header .logo { min-width: 0; }
  .site-header .logo img { max-width: min(168px, 42vw); object-fit: contain; object-position: left center; }
  .site-header.is-open {
    z-index: 45;
    background: #07101f;
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
    height: auto;
    min-height: 0;
    margin-left: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    line-height: 1;
  }
  .nav-toggle-mark {
    display: grid;
    place-items: center;
    flex: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
  }
  .nav-toggle-box {
    position: relative;
    width: 16px;
    height: 12px;
    background: linear-gradient(#fff, #fff) center / 16px 1.5px no-repeat;
  }
  .nav-toggle-box::before,
  .nav-toggle-box::after {
    content: "";
    position: absolute;
    left: 0;
    width: 16px;
    height: 1.5px;
    border-radius: 2px;
    background: #fff;
    transition: transform 0.2s ease, top 0.2s ease;
  }
  .nav-toggle-box::before { top: 0; }
  .nav-toggle-box::after { top: auto; bottom: 0; }
  .site-header.is-open .nav-toggle-box { background: none; }
  .site-header.is-open .nav-toggle-box::before,
  .site-header.is-open .nav-toggle-box::after { top: 50%; bottom: auto; }
  .site-header.is-open .nav-toggle-box::before { transform: translateY(-50%) rotate(45deg); }
  .site-header.is-open .nav-toggle-box::after { transform: translateY(-50%) rotate(-45deg); }
  .nav-toggle-label { color: #fff; }
  .header-actions { align-items: center; }
  .nav {
    position: absolute;
    z-index: 45;
    top: calc(100% + 8px);
    right: 16px;
    left: auto;
    width: min(186px, calc(100vw - 32px));
    display: none;
    align-content: start;
    gap: 0;
    margin: 0;
    padding: 6px;
    background: #0c1733;
    border: 1px solid rgba(230, 184, 74, 0.35);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    overflow: auto;
  }
  .site-header.is-open .nav { display: grid; }
  .nav .menu-item { width: 100%; }
  .nav .menu-item > a {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 42px;
    padding: 0 10px;
    border-radius: 10px;
    border-bottom: 0;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-decoration: none;
  }
  .nav .menu-item > a:hover,
  .nav .menu-item > a:focus-visible { background: rgba(255, 255, 255, 0.06); }
  .nav .menu-item > a .nav-icon { width: 18px; height: 18px; color: var(--gold); }
  .nav a[aria-current="page"] { color: var(--gold); text-decoration: none; }
  .header-actions { display: none; }
  .nav-cta { display: inline-flex; justify-self: start; }
  .dropdown { position: static; display: grid; padding: 8px 0 0 12px; border: 0; background: transparent; }
  .split, .about-card, .event-card, .topic, .session, .speakers, .benefits, .stats, .next-meet-grid, .contact-split, .contact-split.has-map { grid-template-columns: 1fr; }
  #contact .wrap { width: min(var(--wrap), calc(100% - 40px)); }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .site-footer > :first-child, .fineprint { grid-column: 1 / -1; }
  .logo-row, .next-meet-cards { grid-template-columns: 1fr 1fr; }
  .event-card, .topic { min-height: 0; }
  .event-card img, .topic img { height: 220px; }
  .card, .card:nth-child(1), .card:nth-child(2) { grid-column: span 12; }
  .site-header { padding-left: 20px; padding-right: 20px; }
  .hero-slide { padding: calc(var(--header) + 28px) 20px 96px; }
  .hero-copy { grid-template-columns: 1fr; }
  .hero h1 {
    width: 100%;
    max-width: 12ch;
    margin: 0;
    text-align: left;
    text-wrap: balance;
    font-size: clamp(3.1rem, 10vw, 4.6rem);
  }
  .hero .rule { width: 4.5rem; }
  .hero-actions .btn { min-width: 0; }
  .hero-side-title { font-size: 26px; line-height: 30px; }
  .section-head, .fineprint, .hero-meta { display: grid; }
  .session { gap: 10px; }
  .page-hero h1 { font-size: clamp(2.6rem, 8vw, 4rem); }
  .site-footer { grid-template-columns: 1fr; text-align: center; }
  .site-footer .logo { display: block; width: fit-content; margin-inline: auto; }
  .site-footer .socials { justify-content: center; }
  .site-footer ul { justify-items: center; }
  .site-footer li a,
  .site-footer .contact-line { justify-content: center; }
  .fineprint {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .legal { justify-content: center; }
}

@media (max-width: 700px) {
  :root { --header: 76px; }
  .wrap { width: min(var(--wrap), calc(100% - 32px)); }
  .section, .home-panel { padding: 48px 0; }
  .frame { min-height: 200px; }
  .site-header { gap: 12px; }
  .site-header .logo strong { font-size: 0.72rem; }
  .logo img, .site-footer .logo img { height: 44px; }
  .site-header .logo img { height: 52px; }
  html[data-theme="light"] .site-header .logo img,
  html[data-theme="light"] .site-footer .logo img { height: 56px; }
  .site-header .logo strong::after { margin-top: 4px; }
  .site-header .logo span { margin-top: 4px; font-size: 0.68rem; }
  .hero-slide { padding: calc(var(--header) + 20px) 20px 88px; }
  .hero h1 { font-size: clamp(2.4rem, 11vw, 3.2rem); max-width: 11ch; text-wrap: balance; }
  .hero .rule { width: 3.25rem; }
  .hero-controls { bottom: 16px; }
  .hero h1, .page-hero h1 { font-size: clamp(2.5rem, 13vw, 3.3rem); }
  .hero-actions { flex-direction: row; align-items: center; }
  .hero-actions .btn { width: auto; min-width: 0; min-height: 42px; padding: 0 16px; font-size: 0.72rem; }
  .actions .btn { width: 100%; min-width: 0; }
  .about-card { padding: 16px; gap: 18px; }
  .home-panel h2.about-display, .about-display, .meet { font-size: clamp(2rem, 9vw, 2.6rem); }
  .next-meet-grid { gap: 24px; }
  .next-meet-copy h2 { font-size: clamp(1.9rem, 8vw, 2.5rem); }
  .next-meet-cards, .logo-row, .site-footer, .contact-facts { grid-template-columns: 1fr; }
  .meet-card img, .event-card img, .topic img { height: 200px; }
  .session { padding: 16px 0; }
  .contact-split { gap: 24px; }
  .contact-form .form-grid { grid-template-columns: 1fr; }
  .contact-fact { border-right: 0; min-height: 0; }
  .contact-fact:nth-last-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.1); }
  .contact-fact:last-child { border-bottom: 0; }
  .site-footer { padding: 40px 20px 20px; }
  .fineprint { font-size: 0.82rem; }
  .cta { min-height: 0; }
  .cta .wrap { padding: 48px 0; }
  .page-hero { padding: calc(var(--header) + 28px) 0 32px; }
  .company-section { padding-top: 24px; }
  .portrait-row { gap: 8px; padding: 0 12px; }
  .portrait-window { width: auto; }
  .nav a { min-height: 44px; }
}

.speaker-stage {
  position: relative;
  padding: calc(var(--header) + 48px) 0 80px;
}
.speaker-stage.is-home { display: none; padding-top: 12px; }
.speaker-intro { position: relative; z-index: 1; margin-bottom: 36px; text-align: center; }
.meet {
  margin: 0;
  font-size: clamp(2.6rem, 4.2vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.95;
  background: linear-gradient(100deg, #d7e4ff 10%, #8eb6ff 42%, var(--gold) 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.home-panel h2.about-display,
.about-display,
.meet,
.striped {
  line-height: 1.22;
  padding: 0.08em 0.18em 0.14em;
  overflow: visible;
}
.speaker-intro p { max-width: 34rem; margin: 16px auto 0; color: rgba(255,255,255,.78); font-size: 0.95rem; }
.portrait-row {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  max-width: 1440px;
  margin: 18px auto 0;
  padding: 0 20px;
}
.portrait-window { overflow: hidden; flex: 1; min-width: 0; }
.portrait-track {
  display: flex;
  gap: 16px;
  justify-content: safe center;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 10px;
  scrollbar-width: none;
  padding: 10px 10px 18px;
}
.portrait-track::-webkit-scrollbar { display: none; }
.portrait {
  position: relative;
  flex: none;
  width: 196px;
  height: 268px;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid rgba(120, 80, 255, 0.45);
  border-radius: 18px;
  background:
    linear-gradient(160deg, rgba(80, 40, 180, 0.35), transparent 40%),
    #12082a;
  box-shadow: 0 0 0 1px rgba(255,255,255,.04), 0 16px 40px rgba(0,0,0,.35);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 46%, rgba(8, 6, 28, 0.92) 78%),
    repeating-linear-gradient(115deg, transparent 0 14px, rgba(120, 70, 255, 0.16) 14px 16px);
  pointer-events: none;
}
.portrait-copy { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 14px; }
.portrait-copy h3 { margin: 0; font-size: 1rem; font-weight: 500; }
.portrait-copy p { margin: 4px 0 0; color: rgba(255,255,255,.72); font-size: 0.68rem; letter-spacing: 0.04em; text-transform: uppercase; }
.portrait-more, .portrait-arrow {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 50%;
  background: rgba(8, 10, 28, 0.55);
  color: #fff;
  cursor: pointer;
}
.portrait-more {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  font-size: 1.1rem;
  line-height: 1;
}
.portrait.is-open .portrait-more { transform: rotate(45deg); }
.portrait-bio {
  display: none;
  position: absolute;
  z-index: 2;
  left: 12px;
  right: 12px;
  bottom: 72px;
  margin: 0;
  padding: 10px;
  border-radius: 10px;
  background: rgba(7, 9, 26, 0.9);
  font-size: 0.75rem;
}
.portrait.is-open .portrait-bio { display: block; }
.portrait-arrow { width: 42px; height: 42px; margin: 0; flex: none; }
.portrait-arrow svg { display: block; width: 18px; height: 18px; }

@media (max-width: 700px) {
  .portrait { width: 160px; height: 230px; }
  .portrait-arrow { width: 34px; height: 34px; margin: 0; }
  .home-panel h2.about-display, .about-display, .meet { font-size: clamp(2rem, 9vw, 2.6rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg, .speaker::after, .hero h1 span, .intro-title span, .btn::before { animation: none; }
  .reveal { opacity: 1; transform: none; }
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-icon-moon { display: none; }
html[data-theme="light"] .theme-icon-sun { display: none; }
html[data-theme="light"] .theme-icon-moon { display: block; }

@media (max-width: 980px) {
  .header-actions { display: flex; }
  .header-actions .btn { display: none; }
}

html[data-theme="light"] {
  --bg: #07172B;
  --navy: #e7ebf5;
  --panel: #ffffff;
  --ink: #161a28;
  --muted: rgba(22, 26, 40, 0.68);
  --line: rgba(22, 26, 40, 0.12);
  color-scheme: light;
}
html[data-theme="light"] .site-header,
html[data-theme="light"] .site-header.is-solid {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.58) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 28px rgba(28, 36, 56, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(28px) saturate(0.2) brightness(1.7);
  -webkit-backdrop-filter: blur(28px) saturate(0.2) brightness(1.7);
  color: #1c2438;
}
html[data-theme="light"] .site-header .logo,
html[data-theme="light"] .site-header .logo strong,
html[data-theme="light"] .site-footer .logo,
html[data-theme="light"] .site-footer .logo strong {
  color: #1c2438;
}
html[data-theme="light"] .site-header .logo strong::after,
html[data-theme="light"] .site-footer .logo strong::after {
  background: linear-gradient(90deg, #1c2438, var(--gold));
}
html[data-theme="light"] .nav a,
html[data-theme="light"] .nav a[aria-current="page"],
html[data-theme="light"] .nav-toggle,
html[data-theme="light"] .theme-toggle,
html[data-theme="light"] .logo span {
  color: #1c2438;
}
html[data-theme="light"] .nav a[aria-current="page"] { text-decoration-color: var(--gold); }
html[data-theme="light"] .theme-toggle {
  background: #fff;
  border-color: rgba(28, 36, 56, 0.14);
}
html[data-theme="light"] .nav a.btn,
html[data-theme="light"] .header-actions .btn { color: #fff; }
html[data-theme="light"] .nav-toggle,
html[data-theme="light"] .theme-toggle { border-color: rgba(22, 26, 40, 0.28); }
html[data-theme="light"] .dropdown {
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(24px) saturate(1.7);
  -webkit-backdrop-filter: blur(24px) saturate(1.7);
}
@media (max-width: 980px) {
  html[data-theme="light"] .nav {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(30px) saturate(1.7);
    -webkit-backdrop-filter: blur(30px) saturate(1.7);
  }
}
/* Light mode keeps the dark header */
html[data-theme="light"] .site-header,
html[data-theme="light"] .site-header.is-solid {
  background: linear-gradient(180deg, rgba(7, 9, 26, 0.88) 0%, rgba(7, 9, 26, 0.72) 100%);
  border-bottom: 0;
  box-shadow: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
}
html[data-theme="light"] .site-header .logo-for-dark { display: block; }
html[data-theme="light"] .site-header .logo-for-light { display: none; }
html[data-theme="light"] .site-header .logo img { height: 70px; }
html[data-theme="light"] .site-header .logo,
html[data-theme="light"] .site-header .logo strong,
html[data-theme="light"] .site-header .nav a,
html[data-theme="light"] .site-header .nav a[aria-current="page"],
html[data-theme="light"] .site-header .nav-toggle,
html[data-theme="light"] .site-header .theme-toggle { color: #fff; }
html[data-theme="light"] .site-header .logo span { color: rgba(255, 255, 255, 0.82); }
html[data-theme="light"] .site-header .logo strong::after { background: linear-gradient(90deg, #ffffff, var(--gold)); }
html[data-theme="light"] .site-header .nav-toggle { border-color: rgba(255, 255, 255, 0.35); }
html[data-theme="light"] .site-header .theme-toggle { background: transparent; border-color: rgba(255, 255, 255, 0.45); }
html[data-theme="light"] .site-header .dropdown {
  background: #101735;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
@media (max-width: 980px) {
  html[data-theme="light"] .site-header .nav {
    background: #0c1733;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
@media (max-width: 700px) {
  html[data-theme="light"] .site-header .logo img { height: 52px; }
}
html[data-theme="light"] .eyebrow,
html[data-theme="light"] .company-band .eyebrow { color: #8f6a1c; }
html[data-theme="light"] .hero .eyebrow,
html[data-theme="light"] .hero-slide .eyebrow { color: var(--gold); }
html[data-theme="light"] .site-footer h2 { color: #8f6a1c; }
html[data-theme="light"] .about-card .about-display {
  background: linear-gradient(100deg, #1a2a6c 8%, #3d5fd0 46%, #a6842e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html[data-theme="light"] body {
  background: #07172B;
  color: #f4f6fb;
}
html[data-theme="light"] .about-card,
html[data-theme="light"] .contact-facts,
html[data-theme="light"] .contact-map,
html[data-theme="light"] .meet-card,
html[data-theme="light"] .event-card,
html[data-theme="light"] .topic,
html[data-theme="light"] .logo-tile,
html[data-theme="light"] .cookie,
html[data-theme="light"] .speaker,
html[data-theme="light"] .benefit,
html[data-theme="light"] .panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.42) 42%, rgba(255, 255, 255, 0.55) 100%);
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.75);
  color: #161a28;
  backdrop-filter: blur(40px) saturate(1.8);
  -webkit-backdrop-filter: blur(40px) saturate(1.8);
}
html[data-theme="light"] .contact-facts h3,
html[data-theme="light"] .contact-map h3 { color: #161a28; }
html[data-theme="light"] .contact-map a { color: #8f6a1c; }
html[data-theme="light"] .contact-fact { border-color: rgba(22, 26, 40, 0.1); }
html[data-theme="light"] .contact-fact svg { color: #8f6a1c; background: rgba(230, 184, 74, 0.16); }
html[data-theme="light"] .contact-fact small,
html[data-theme="light"] .meet-card .where { color: rgba(22, 26, 40, 0.68); }
html[data-theme="light"] .meet-visit { color: #161a28; }
html[data-theme="light"] .meet-visit { border-color: rgba(22, 26, 40, 0.28); }
html[data-theme="light"] .sample-logo { color: #1c2438; }
html[data-theme="light"] .logo-tile:hover { border-color: rgba(230, 184, 74, 0.7); }
html[data-theme="light"] .filters button,
html[data-theme="light"] .socials span,
html[data-theme="light"] .socials a {
  color: #161a28;
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
}
html[data-theme="light"] input,
html[data-theme="light"] textarea,
html[data-theme="light"] select {
  color: #f4f6fb;
  border-bottom-color: rgba(244, 246, 251, 0.35);
}
html[data-theme="light"] .site-footer {
  background: #eef1f8;
  color: #161a28;
}
html[data-theme="light"] .page-hero {
  background-color: #e7ebf5;
  background-image: linear-gradient(180deg, rgba(244, 246, 251, 0.88), rgba(244, 246, 251, 0.94)), var(--hero, none);
  color: #161a28;
}
html[data-theme="light"] .hero,
html[data-theme="light"] .cta,
html[data-theme="light"] .card,
html[data-theme="light"] .portrait { color: #fff; }
html[data-theme="light"] .to-top {
  background: #fff;
  color: #161a28;
  border-color: rgba(22, 26, 40, 0.2);
}

.logo-tile img { width: 70%; max-height: 64px; object-fit: contain; }


/* Hero: particle network, blob photo slider, layered wave */
.hero.hero-net {
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 78% 42%, rgba(55, 173, 167, 0.55), transparent 55%),
    radial-gradient(circle at 12% 80%, rgba(230, 184, 74, 0.1), transparent 40%),
    linear-gradient(120deg, #0b1f33 0%, #12475a 50%, #37ada7 100%);
  color: #fff;
}
.hero-bg-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  mix-blend-mode: luminosity;
  pointer-events: none;
  transform: scaleX(-1);
  -webkit-mask-image: linear-gradient(90deg, transparent 8%, #000 48%, #000 82%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 8%, #000 48%, #000 82%, transparent 100%);
}
.hero-net-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 56px;
  width: min(1280px, calc(100% - 128px));
  margin: 0 auto;
  padding: calc(var(--header) + 32px) 0 130px;
}
.hero-net .eyebrow { color: var(--gold); font-size: 1.05rem; letter-spacing: 0.18em; margin-bottom: 16px; }
.hero-visual {
  position: relative;
  justify-self: end;
  width: min(100%, 500px);
  height: min(640px, 74vh);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8%;
  z-index: -1;
  background: linear-gradient(135deg, var(--gold), #37ada7 60%, #5fd4cd);
  filter: blur(48px);
  opacity: 0.4;
}
.photo-col { overflow: hidden; padding: 3px; }
.photo-track {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 18px;
  animation: photo-scroll 38s linear infinite;
}
.col-down .photo-track { animation-direction: reverse; animation-duration: 44s; }
.hero-visual:hover .photo-track { animation-play-state: paused; }
.photo-tile {
  flex: none;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 22px;
  background: #141a4c;
  box-shadow: 0 0 0 2px rgba(230, 184, 74, 0.75), 0 16px 36px rgba(0, 0, 0, 0.35);
}
.photo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes photo-scroll {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}
.hero-fan {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 2;
  width: 100%;
  height: clamp(44px, 6vw, 90px);
  fill: var(--bg);
  pointer-events: none;
}
body.is-ready .hero-net .eyebrow { animation: fade-up 0.8s ease 0.05s both; }
body.is-ready .hero-net h1 { animation: fade-up 1s cubic-bezier(0.16, 0.84, 0.24, 1) 0.15s both; }
body.is-ready .hero-visual { animation: hero-in 1.2s cubic-bezier(0.16, 0.84, 0.24, 1) 0.3s both; }
@keyframes hero-float {
  from { transform: translateY(-6px); }
  to { transform: translateY(8px); }
}
@keyframes hero-in {
  from { opacity: 0; transform: translateY(40px) scale(0.94); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    width: calc(100% - 40px);
    padding: calc(var(--header) + 28px) 0 110px;
  }
  .hero-visual { justify-self: center; width: min(78%, 420px); }
}
@media (max-width: 700px) {
  .hero-net .eyebrow { font-size: 0.9rem; }
  .hero-net .hero-lead { text-align: center; }
  .hero-net h1 { margin-inline: auto; text-align: center; }
  .hero-net .rule { margin-inline: auto; transform-origin: center; }
  .hero-net .hero-actions { justify-content: center; }
  .hero-inner { gap: 40px; padding-bottom: 90px; }
  .hero-visual { width: min(92%, 360px); height: 400px; gap: 12px; }
  .photo-track { gap: 12px; padding-bottom: 12px; }
  .photo-tile { border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .photo-track { animation: none; }
}


/* LinkedIn follow popup */
.li-pop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: radial-gradient(circle at 50% 40%, rgba(20, 30, 80, 0.55), rgba(3, 5, 14, 0.8));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.li-pop.is-open { opacity: 1; }
.li-pop-card {
  position: relative;
  width: min(440px, 100%);
  max-height: calc(100vh - 40px);
  overflow: hidden auto;
  border-radius: 28px;
  background: linear-gradient(180deg, #161e45 0%, #0d1230 100%);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 90px rgba(47, 107, 255, 0.2);
  color: #f4f6fb;
  font-family: var(--sans);
  text-align: center;
  transform: translateY(24px) scale(0.96);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
/* gradient hairline border */
.li-pop-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(142, 182, 255, 0.75), rgba(255, 255, 255, 0.06) 40%, rgba(230, 184, 74, 0.8));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.li-pop.is-open .li-pop-card { transform: none; }

.li-pop-hero {
  position: relative;
  height: 150px;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(140deg, #0a66c2 0%, #2f3fb8 52%, #6d4dff 100%);
}
.li-pop-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 80px;
  background: linear-gradient(180deg, transparent, #161e45);
}
.li-pop-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(28px);
  animation: li-float 7s ease-in-out infinite alternate;
}
.li-pop-orb-a { width: 160px; height: 160px; left: -40px; top: -60px; background: rgba(90, 170, 255, 0.75); }
.li-pop-orb-b { width: 140px; height: 140px; right: -30px; top: 10px; background: rgba(230, 184, 74, 0.55); animation-delay: -3s; }
.li-pop-ring {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: -32px;
  width: 140px;
  height: 140px;
  margin-left: -70px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 18px rgba(255, 255, 255, 0.06), 0 0 0 40px rgba(255, 255, 255, 0.03);
}
.li-pop-badge {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 4px;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-left: -38px;
  border-radius: 22px;
  background: linear-gradient(145deg, #1d8cf8, #0a66c2);
  color: #fff;
  box-shadow: 0 14px 34px rgba(10, 102, 194, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  animation: li-pulse 2.8s ease-in-out infinite;
}
.li-pop-badge svg { width: 36px; height: 36px; }

.li-pop-close {
  position: absolute;
  z-index: 5;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(7, 9, 26, 0.35);
  backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, transform 0.3s;
}
.li-pop-close svg { width: 16px; height: 16px; }
.li-pop-close:hover { background: rgba(7, 9, 26, 0.6); transform: rotate(90deg); }

.li-pop-body { position: relative; padding: 22px 32px 26px; }
.li-pop-eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.li-pop-card h2 {
  margin: 0 0 10px;
  color: #f4f6fb;
  font-size: clamp(1.6rem, 5vw, 1.95rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.12;
}
.li-pop-card h2 span {
  background: linear-gradient(100deg, #8eb6ff 0%, #d7e4ff 45%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.li-pop-text {
  max-width: 320px;
  margin: 0 auto 20px;
  color: rgba(244, 246, 251, 0.7);
  font-size: 0.97rem;
  line-height: 1.6;
}
.li-pop-perks {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding: 16px 18px;
  list-style: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  text-align: left;
}
.li-pop-perks li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(244, 246, 251, 0.9);
  font-size: 0.94rem;
}
.li-pop-perks svg {
  flex: none;
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 50%;
  background: rgba(230, 184, 74, 0.16);
  color: var(--gold);
}
.li-pop-follow {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1d8cf8 0%, #0a66c2 55%, #2f3fb8 100%);
  box-shadow: 0 12px 30px rgba(10, 102, 194, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s;
}
.li-pop-follow svg { width: 18px; height: 18px; }
.li-pop-follow .li-pop-arrow { transition: transform 0.25s; }
.li-pop-follow::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  animation: li-shine 3.6s ease-in-out infinite;
}
.li-pop-follow:hover,
.li-pop-follow:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(10, 102, 194, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.li-pop-follow:hover .li-pop-arrow { transform: translateX(4px); }
.li-pop-later {
  margin-top: 10px;
  padding: 8px 14px;
  border: 0;
  background: none;
  color: rgba(244, 246, 251, 0.55);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.2s;
}
.li-pop-later:hover { color: #fff; }

@keyframes li-float { to { transform: translate(24px, 18px) scale(1.1); } }
@keyframes li-pulse {
  0%, 100% { box-shadow: 0 14px 34px rgba(10, 102, 194, 0.55), 0 0 0 0 rgba(29, 140, 248, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
  50% { box-shadow: 0 14px 34px rgba(10, 102, 194, 0.55), 0 0 0 12px rgba(29, 140, 248, 0), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
}
@keyframes li-shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }

@media (max-width: 480px) {
  .li-pop-body { padding: 18px 22px 22px; }
  .li-pop-hero { height: 130px; }
}
@media (prefers-reduced-motion: reduce) {
  .li-pop, .li-pop-card { transition: none; }
  .li-pop-orb, .li-pop-badge, .li-pop-follow::after { animation: none; }
}

/* Contact page: deep teal colour scheme */
body[data-page="contact"],
html[data-theme="light"] body[data-page="contact"] {
  background:
    radial-gradient(circle at 85% 10%, rgba(230, 184, 74, 0.10), transparent 40%),
    radial-gradient(circle at 10% 60%, rgba(32, 178, 170, 0.14), transparent 45%),
    #061f24;
  color: #f2f8f7;
}
body[data-page="contact"] .page-hero {
  background-color: #0a2e33;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(230, 184, 74, 0.18), transparent 45%),
    linear-gradient(135deg, #0d3b40 0%, #0a2e33 55%, #061f24 100%);
}
body[data-page="contact"] .page-hero p { color: rgba(242, 248, 247, 0.75); }
body[data-page="contact"] .contact-form,
html[data-theme="light"] body[data-page="contact"] .contact-form {
  border: 1px solid rgba(94, 214, 200, 0.38);
  background:
    linear-gradient(180deg, rgba(94, 214, 200, 0.26), transparent 200px),
    #358a92;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
  color: #f2f8f7;
}
body[data-page="contact"] .contact-form input,
body[data-page="contact"] .contact-form textarea,
body[data-page="contact"] .contact-form select,
body[data-page="contact"] .contact-form .fancy-select-button {
  border-color: rgba(94, 214, 200, 0.3);
  background-color: rgba(10, 44, 48, 0.28);
  color: #f2f8f7;
}
body[data-page="contact"] .contact-form input:focus,
body[data-page="contact"] .contact-form textarea:focus,
body[data-page="contact"] .contact-form select:focus {
  border-color: rgba(94, 214, 200, 0.75);
  box-shadow: 0 0 0 3px rgba(94, 214, 200, 0.18);
}

/* Conference tiles */
.conf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 8px;
}
.conf-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: linear-gradient(180deg, #18204a 0%, #10163a 100%);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
  color: #f4f6fb;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s, border-color 0.4s;
}
.conf-card:hover {
  transform: translateY(-6px);
  border-color: rgba(230, 184, 74, 0.45);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.4), 0 0 40px rgba(230, 184, 74, 0.08);
}
.conf-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.conf-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.conf-card:hover .conf-media img { transform: scale(1.06); }
.conf-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 9, 26, 0) 45%, rgba(16, 22, 58, 0.85) 100%);
  pointer-events: none;
}
.conf-date {
  position: absolute;
  z-index: 1;
  top: 16px;
  left: 16px;
  display: grid;
  place-items: center;
  min-width: 64px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  color: #10163a;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.1;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
.conf-date strong {
  color: #a6842e;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.conf-region {
  position: absolute;
  z-index: 1;
  top: 16px;
  right: 16px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(7, 9, 26, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.conf-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 24px 24px;
}
.conf-body h3 {
  margin: 0 0 16px;
  color: #f4f6fb;
  font-size: 1.32rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.28;
}
.conf-meta {
  display: grid;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}
.conf-meta li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(244, 246, 251, 0.75);
  font-size: 0.95rem;
}
.conf-meta svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--gold);
}
.conf-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.conf-link svg { width: 16px; height: 16px; transition: transform 0.25s; }
.conf-link:hover svg,
.conf-card:hover .conf-link svg { transform: translateX(4px); }
@media (max-width: 700px) {
  .conf-grid { grid-template-columns: 1fr; gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .conf-card, .conf-media img { transition: none; }
}

/* Homepage: scrollable conference tiles */
.next-meet-grid { align-items: center; }
.conf-scroller { position: relative; min-width: 0; }
.conf-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 10px 4px 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(230, 184, 74, 0.55) rgba(255, 255, 255, 0.06);
}
.conf-track:focus-visible { outline: 2px solid rgba(230, 184, 74, 0.6); outline-offset: 4px; border-radius: 22px; }
.conf-track::-webkit-scrollbar { height: 6px; }
.conf-track::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.06); border-radius: 999px; }
.conf-track::-webkit-scrollbar-thumb { background: rgba(230, 184, 74, 0.55); border-radius: 999px; }
.conf-track .conf-card {
  flex: 0 0 min(320px, 82%);
  scroll-snap-align: start;
}
.conf-track .conf-card:hover { transform: translateY(-4px); }
.conf-nav { display: flex; gap: 10px; margin-top: 22px; }
.conf-arrow {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(230, 184, 74, 0.55);
  border-radius: 50%;
  background: rgba(18, 22, 58, 0.6);
  color: #fff;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, opacity 0.25s, transform 0.25s;
}
.conf-arrow svg { width: 20px; height: 20px; }
.conf-arrow:hover:not(:disabled) { background: var(--gold); border-color: var(--gold); color: #10163a; transform: translateY(-2px); }
.conf-arrow:disabled { opacity: 0.35; cursor: default; }
html[data-theme="light"] .conf-arrow { color: #fff; }
@media (max-width: 700px) {
  .conf-track .conf-card { flex-basis: 86%; }
  .conf-nav { margin-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .conf-track { scroll-behavior: auto; }
}

/* Homepage conferences: heading on top, all five tiles in one row */
#next-meet .next-meet-grid {
  width: min(1440px, calc(100% - 48px));
  grid-template-columns: 1fr;
  gap: 28px;
}
#next-meet .next-meet-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px 28px;
}
#next-meet .next-meet-heading { flex: 1 1 420px; }
#next-meet .next-meet-copy h2 { max-width: 22ch; margin: 0; }
#next-meet .next-meet-link { margin: 0 0 10px; }
#next-meet .conf-nav { margin: 0 0 2px; }
#next-meet .conf-nav[hidden] { display: none; }
#next-meet .conf-track { gap: 18px; }
#next-meet .conf-track .conf-card { flex: 1 0 250px; min-width: 0; }
#next-meet .conf-media { aspect-ratio: 4 / 3; }
#next-meet .conf-body { padding: 18px 18px 20px; }
#next-meet .conf-body h3 { margin-bottom: 14px; font-size: 1.12rem; }
#next-meet .conf-meta li { font-size: 0.9rem; }
@media (max-width: 700px) {
  #next-meet .next-meet-grid { width: min(var(--wrap), calc(100% - 40px)); }
  #next-meet .conf-track .conf-card { flex: 0 0 80%; }
}

/* Homepage: close the gap between conferences and contact */
#next-meet { padding-bottom: 0; }
#contact.home-panel { padding-top: 32px; }

/* Homepage: conferences title matches About us / Contact us */
#next-meet .next-meet-copy { justify-content: center; }
#next-meet .next-meet-heading { flex: 1 1 100%; }
#next-meet .next-meet-copy h2.about-display {
  max-width: none;
  margin: 0;
  font-size: clamp(2.6rem, 4.2vw, 3.6rem);
  text-align: center;
}
@media (max-width: 700px) {
  #next-meet .next-meet-copy h2.about-display { font-size: clamp(2rem, 9vw, 2.6rem); }
}
#next-meet .next-meet-heading .section-lead {
  max-width: 34rem;
  margin: 10px auto 0;
  text-align: center;
  color: rgba(255,255,255,.78);
  font-size: 0.95rem;
}
html[data-theme="light"] #next-meet .next-meet-heading .section-lead { color: inherit; opacity: .78; }
#next-meet .next-meet-heading .section-lead { max-width: 40rem; font-size: clamp(1.15rem, 1.6vw, 1.4rem); }

/* Contact number: country code + 10 digits */
.phone-field { display: grid; grid-template-columns: minmax(92px, 118px) 1fr; gap: 8px; align-items: stretch; }
.phone-field > input { min-width: 0; }
.phone-field .fancy-select-panel { right: auto; width: min(320px, 80vw); }
.fancy-select .flag { display: inline-block; flex: none; width: 20px; height: 15px; margin-right: 8px; border-radius: 3px; object-fit: cover; vertical-align: -2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18); }
.phone-field { grid-template-columns: minmax(112px, 132px) 1fr; }

/* Footer: centre icons on the first line of text */
.site-footer li a,
.site-footer .contact-line { align-items: flex-start; gap: 10px; line-height: 1.5; }
.site-footer li .nav-icon { width: 16px; height: 16px; margin-top: calc((1.5em - 16px) / 2); }

/* Gold buttons: hero CTA and form submit */
.hero-actions .btn,
.contact-form .btn,
html[data-theme="light"] .hero-actions .btn,
html[data-theme="light"] .contact-form .btn {
  border-color: var(--gold);
  background: var(--gold);
  color: #000;
}
.hero-actions .btn::before,
.contact-form .btn::before { background: linear-gradient(160deg, #f3cd6b 0%, var(--gold) 100%); }
.hero-actions .btn:hover,
.hero-actions .btn:focus-visible,
.contact-form .btn:hover,
.contact-form .btn:focus-visible {
  color: #000;
  box-shadow: 0 14px 30px rgba(230, 184, 74, 0.35);
}
.hero-actions .btn .btn-icon,
.contact-form .btn .btn-icon { color: #000; }
.phone-field { grid-template-columns: 108px minmax(0, 1fr); }
.phone-field .fancy-select-button { padding-left: 12px; padding-right: 12px; }

/* "We'll connect with you shortly" popup after a form is sent */
.ok-pop {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 20px;
  background: radial-gradient(circle at 50% 40%, rgba(20, 30, 80, 0.55), rgba(3, 5, 14, 0.8));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.ok-pop.is-open { opacity: 1; }
.ok-pop-card {
  position: relative;
  width: min(420px, 100%);
  padding: 40px 32px 32px;
  border: 1px solid rgba(230, 184, 74, 0.45);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(230, 184, 74, 0.22), transparent 60%),
    linear-gradient(180deg, #1b2348 0%, #0c1024 100%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  color: #f4f6fb;
  text-align: center;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.ok-pop.is-open .ok-pop-card { transform: none; }
.ok-pop-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f4f6fb;
  cursor: pointer;
}
.ok-pop-close:hover { background: rgba(255, 255, 255, 0.16); }
.ok-pop-close svg { width: 16px; height: 16px; }
.ok-pop-badge {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: var(--gold);
  color: #000;
  box-shadow: 0 0 0 10px rgba(230, 184, 74, 0.14), 0 12px 30px rgba(230, 184, 74, 0.3);
}
.ok-pop-badge svg { width: 32px; height: 32px; }
.ok-pop-eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.ok-pop-card h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.ok-pop-text { margin: 0 0 24px; color: rgba(244, 246, 251, 0.75); font-size: 0.95rem; }
.ok-pop-btn,
.ok-pop-btn:hover,
.ok-pop-btn:focus-visible {
  min-height: 46px;
  padding: 0 34px;
  border-color: var(--gold);
  background: var(--gold);
  color: #000;
  font-size: 0.8rem;
}
.ok-pop-btn::before { background: linear-gradient(160deg, #f3cd6b 0%, var(--gold) 100%); }
@media (prefers-reduced-motion: reduce) {
  .ok-pop, .ok-pop-card { transition: none; }
}

/* About us: CPD approved provider badge */
.cpd-badge { display: block; width: min(300px, 100%); margin-top: 24px; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.cpd-badge:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(230, 184, 74, 0.25); }
.cpd-badge img { display: block; width: 100%; height: auto; }

/* About us: CPD approved provider panel */
.cpd-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr);
  gap: 44px;
  align-items: center;
  margin-top: 24px;
  padding: 32px 24px;
  border: 1px solid rgba(230, 184, 74, 0.28);
  border-radius: 28px;
  background:
    radial-gradient(circle at 0% 50%, rgba(230, 184, 74, 0.12), transparent 45%),
    #1c2550;
}
.cpd-panel .cpd-badge { width: 100%; max-width: 380px; margin: 0 auto; }
.cpd-panel > div { padding-right: 24px; }
.cpd-title {
  margin: 0 0 4px;
  color: var(--gold);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
}
.cpd-panel .lede { max-width: none; margin-top: 14px; line-height: 1.7; }
html[data-theme="light"] .cpd-panel { background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.42) 42%, rgba(255, 255, 255, 0.55) 100%); color: #161a28; }
html[data-theme="light"] .cpd-title { color: #8f6a1c; }
@media (max-width: 900px) {
  .cpd-panel { grid-template-columns: 1fr; gap: 20px; padding: 20px 16px; }
  .cpd-panel > div { padding: 0 8px 8px; }
}

/* Hero: CPD badge beside the invitation button */
.hero-actions { align-items: center; gap: 14px; }
.hero-cpd { display: block; flex: none; height: 52px; border-radius: 10px; overflow: hidden; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3); transition: transform 0.3s ease; }
.hero-cpd:hover { transform: translateY(-2px); }
.hero-cpd img { display: block; width: auto; height: 100%; }
@media (max-width: 700px) { .hero-cpd { height: 44px; } }
.hero-cpd { height: 84px; border-radius: 14px; }
@media (max-width: 700px) { .hero-cpd { height: 64px; } }
.hero-cpd { height: 116px; border-radius: 16px; }
@media (max-width: 700px) { .hero-cpd { height: 80px; } }

/* Hero: background video */
.hero-bg-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  mix-blend-mode: luminosity;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.35) 0%, #000 45%, #000 85%, rgba(0, 0, 0, 0.6) 100%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.35) 0%, #000 45%, #000 85%, rgba(0, 0, 0, 0.6) 100%);
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg-video { display: none; }
}

/* Hero: smaller CPD badge below the invitation button */
.hero-actions { flex-direction: column; align-items: flex-start; gap: 16px; }
.hero-cpd { height: 64px; border-radius: 10px; }
@media (max-width: 700px) {
  .hero-cpd { height: 56px; }
  .hero-net .hero-actions { align-items: center; }
}

/* Conferences: no scrollbar; arrows and dots centred below the cards */
.conf-track { scrollbar-width: none; -ms-overflow-style: none; padding-bottom: 10px; }
.conf-track::-webkit-scrollbar { display: none; }
#next-meet .conf-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 18px 0 0; }
#next-meet .conf-nav[hidden] { display: none; }
.conf-dots { display: flex; align-items: center; gap: 10px; }
.conf-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(230, 184, 74, 0.35);
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}
.conf-dot:hover { background: rgba(230, 184, 74, 0.7); }
.conf-dot.is-active { width: 28px; background: var(--gold); }
.conf-dot:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (max-width: 700px) {
  #next-meet .conf-nav { gap: 12px; }
  .conf-arrow { width: 40px; height: 40px; }
  .conf-dots { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { .conf-dot { transition: none; } }

/* Hero video: never show the browser's play button or controls */
.hero-bg-video::-webkit-media-controls,
.hero-bg-video::-webkit-media-controls-panel,
.hero-bg-video::-webkit-media-controls-overlay-play-button,
.hero-bg-video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
  opacity: 0 !important;
}

/* Form error line above the send button */
.form-error { margin: 4px 0 12px; color: #ff8a8a; font-size: 0.92rem; font-weight: 500; }
.form-error[hidden] { display: none; }
html[data-theme="light"] .form-error { color: #b42318; }

/* About us: CPD panel with certificate showcase */
.cpd-panel {
  position: relative;
  grid-template-columns: 1fr;
  gap: 48px;
  padding: 44px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(230, 184, 74, 0.16), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(61, 107, 255, 0.14), transparent 50%),
    #1c2550;
}
.cpd-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.8;
}
.cpd-panel > div.cpd-copy { padding-right: 0; }
.cpd-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: rgba(244, 246, 251, 0.7);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.cpd-kicker::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.cpd-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(230, 184, 74, 0.22);
}
.cpd-panel .cpd-meta .cpd-badge { width: 210px; max-width: 100%; margin: 0; flex: none; }
.cpd-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: linear-gradient(145deg, #f6d98a 0%, var(--gold) 55%, #c2952f 100%);
  color: #0b1230;
  font: 600 0.92rem/1 var(--sans);
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(230, 184, 74, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cpd-view-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(230, 184, 74, 0.34); }
.cpd-view-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
html[data-theme="light"] .cpd-kicker { color: #4a5068; }
html[data-theme="light"] .cpd-view-btn:focus-visible { outline-color: #0b1230; }

@media (max-width: 900px) {
  .cpd-panel { gap: 32px; padding: 28px 20px; }
  .cpd-meta { flex-direction: column; justify-content: center; text-align: center; }
  .cpd-panel .cpd-meta .cpd-badge { margin: 0 auto; }
}
@media (max-width: 520px) {
  .cpd-meta { gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .cpd-view-btn { transition: none; }
  .cpd-view-btn:hover { transform: none; }
}

/* Certificate lightbox */
.cert-modal {
  width: min(1100px, 94vw);
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: transparent;
  overflow: visible;
}
.cert-modal::backdrop { background: rgba(4, 6, 18, 0.82); backdrop-filter: blur(6px); }
.cert-modal[open] { animation: cert-in 0.3s ease; }
@keyframes cert-in { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
.cert-modal img { display: block; width: 100%; height: auto; max-height: 88vh; object-fit: contain; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.cert-modal-close {
  position: absolute;
  top: -16px;
  right: -16px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--gold);
  color: #0b1230;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
@media (max-width: 600px) { .cert-modal-close { top: -48px; right: 0; } }
