/* Ries Anderson — site styles. Photos are never cropped: every <img> keeps its
   natural aspect ratio (no object-fit: cover, no fixed-height boxes). */

:root {
  --ink: #0b1220;
  --ink-2: #2b3445;
  --muted: #566074;
  --bg: #ffffff;
  --bg-soft: #f3f5fb;
  --line: #e2e7f1;
  --blue: #2563eb;
  --blue-d: #1d4ed8;
  --navy: #142257;
  --navy-2: #1e3a8a;
  --purple: #7c3aed;
  --violet: #9333ea;
  --emerald: #059669;
  --pink: #db2777;
  --amber: #d97706;
  --brand: linear-gradient(90deg, #2563eb 0%, #7c3aed 55%, #9333ea 100%);
  --hero-bg: radial-gradient(1200px 600px at 85% 20%, rgba(147, 51, 234, .55), transparent 60%),
             linear-gradient(135deg, #142257 0%, #1e3a8a 45%, #4c1d95 100%);
  --blue-bg: linear-gradient(180deg, #1e3a8a 0%, #1d4ed8 55%, #2563eb 100%);
  --radius: 14px;
  --radius-sm: 10px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --shadow: 0 1px 2px rgba(11, 18, 32, .06), 0 8px 24px rgba(11, 18, 32, .08);
  --shadow-lg: 0 2px 4px rgba(11, 18, 32, .08), 0 24px 48px rgba(11, 18, 32, .18);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--blue-d); }
h1, h2, h3 { color: var(--ink); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 750; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid #f59e0b; outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 12px; color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; flex: none; border-radius: 11px; }
.brand img { display: block; width: 44px; height: 44px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) {
  color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .98rem;
  padding: 10px 14px; border-radius: 999px; transition: background-color .2s, color .2s;
}
.nav a:not(.btn):hover { background: var(--bg-soft); color: var(--ink); }
.nav a[aria-current="page"]:not(.btn) { color: var(--blue); background: #eef3ff; }
.nav .btn { margin-left: 10px; }
.menu-btn { display: none; }
.header-actions { display: none; }
.mobile-detail-book, .toc-mobile, .crumb-back { display: none; }

@media (max-width: 760px) {
  .header-in { min-height: 68px; gap: 12px; }
  .brand img { width: 40px; height: 40px; }
  .header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
  .header-actions .mobile-book { min-height: 44px; padding: 10px 14px; font-size: .82rem; gap: 8px; box-shadow: none; }
  .menu-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
    font: inherit; font-weight: 600; font-size: .82rem;
    color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 999px;
    padding: 10px 12px; cursor: pointer;
  }
  .menu-icon { width: 16px; height: 16px; position: relative; }
  .menu-icon span { position: absolute; left: 0; width: 16px; height: 1.5px; border-radius: 2px; background: currentColor; transition: transform .18s; }
  .menu-icon span:first-child { top: 4px; }
  .menu-icon span:last-child { top: 10px; }
  .menu-btn[aria-expanded="true"] .menu-icon span:first-child { transform: translateY(3px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-icon span:last-child { transform: translateY(-3px) rotate(-45deg); }
  .header-in { flex-wrap: wrap; }
  .nav { flex-direction: column; align-items: stretch; gap: 2px; width: 100%; padding-bottom: 14px; }
  .no-js .header-actions { display: none; }
  .js .nav {
    position: absolute; left: 0; right: 0; top: 100%; width: auto;
    padding: 12px var(--gutter) 20px; background: #fff; border-bottom: 1px solid var(--line);
    max-height: calc(100dvh - 68px); overflow-y: auto; overscroll-behavior: contain;
    box-shadow: 0 18px 30px rgba(11, 18, 32, .12);
  }
  .js .nav:not(.is-open) { display: none; }
  .nav a:not(.btn) { padding: 13px 14px; font-size: 1.05rem; border-radius: 10px; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 650; font-size: 1rem; line-height: 1.2; text-decoration: none;
  padding: 14px 22px; border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 10px 18px; font-size: .95rem; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(79, 70, 229, .3); }
.btn-primary:hover { color: #fff; box-shadow: 0 10px 24px rgba(79, 70, 229, .38); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { color: var(--navy); box-shadow: 0 10px 24px rgba(0, 0, 0, .22); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-outline { background: #fff; color: var(--blue); border-color: #c9d6fb; }
.btn-outline:hover { border-color: var(--blue); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.arrow { transition: transform .2s; }
a:hover > .arrow { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero { background: var(--hero-bg); color: #e6ebff; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.hero > .wrap { position: relative; z-index: 1; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center;
  gap: clamp(28px, 5vw, 64px); padding-block: clamp(40px, 7vw, 88px);
}
.hero h1 { color: #fff; }
.hero-title { font-size: clamp(2.8rem, 6.4vw, 5rem); line-height: 1; margin-bottom: 22px; letter-spacing: -.035em; }
.hero-title-sm { font-size: clamp(2.6rem, 5.4vw, 4.2rem); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #c7d2fe; margin-bottom: 16px;
}
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); line-height: 1.6; color: #dfe5ff; max-width: 34em; margin-bottom: 28px; }
.roles { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0 0 24px; }
.role {
  font-weight: 650; font-size: 1rem; color: #fff; padding: 8px 18px; border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, .35);
}
.role-blue { background: #2563eb; border-color: #93c5fd; }
.role-green { background: #047857; border-color: #6ee7b7; }
.role-purple { background: #7e22ce; border-color: #d8b4fe; }
.hero-media { margin: 0; }
.photo {
  border-radius: var(--radius); background: #1b2350;
  box-shadow: 0 30px 60px rgba(5, 8, 30, .45), 0 0 0 1px rgba(255, 255, 255, .14);
}
.hero-media figcaption, .media-caption { font-size: .85rem; color: #aab4e6; margin-top: 12px; }

.page-hero { background: var(--hero-bg); color: #e6ebff; position: relative; overflow: hidden; }
.page-hero .wrap { padding-block: clamp(40px, 6vw, 72px); position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 3.6rem); margin-bottom: 18px; }
.page-hero .lead { margin-bottom: 0; }
.page-hero .actions { margin-top: 28px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-soft { background: var(--bg-soft); }
.section-blue { background: var(--blue-bg); color: #e3e9ff; }
.section-navy { background: var(--navy); color: #d6ddf7; }
.section-blue h2, .section-navy h2 { color: #fff; }
.kicker { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.section-blue .kicker, .section-navy .kicker { color: #a5b4fc; }
.section-title { font-size: clamp(2rem, 4.2vw, 3.2rem); margin-bottom: 24px; }
.grad-visionary { background: linear-gradient(90deg, #db2777, #7c3aed); }
.grad-speaker { background: linear-gradient(90deg, #c4b5fd, #f9a8d4); }
.grad-changemaker { background: linear-gradient(90deg, #34d399, #67e8f9); }
.grad-visionary, .grad-speaker, .grad-changemaker { -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-top { align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* About */
.bio { font-size: 1.15rem; line-height: 1.7; color: var(--ink-2); }
.bio strong { color: var(--ink); font-weight: 650; }
.awards { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.award {
  display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: baseline;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px;
  box-shadow: 0 1px 2px rgba(11, 18, 32, .04);
}
.award-year { font-weight: 750; font-size: 1.05rem; color: var(--blue); font-variant-numeric: tabular-nums; }
.award-name { font-weight: 650; color: var(--ink); display: block; line-height: 1.35; }
.award-where { display: block; font-size: .93rem; color: var(--muted); margin-top: 4px; }
figure { margin: 0; }
figcaption.caption { font-size: .88rem; color: var(--muted); margin-top: 12px; }
.photo-light { border-radius: var(--radius); box-shadow: var(--shadow-lg); background: #e9edf6; }

/* Visionary points */
.points { list-style: none; counter-reset: pt; padding: 0; margin: 8px 0 0; display: grid; gap: 14px; }
.points li {
  counter-increment: pt; position: relative; padding: 18px 20px 18px 64px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); line-height: 1.6;
}
.points li::before {
  content: counter(pt); position: absolute; left: 18px; top: 16px;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 750; font-size: .95rem; color: #fff; background: var(--c, var(--blue));
}
.points li:nth-child(1) { --c: #2563eb; }
.points li:nth-child(2) { --c: #db2777; }
.points li:nth-child(3) { --c: #059669; }
.points li:nth-child(4) { --c: #d97706; }
.points strong { color: var(--ink); font-weight: 650; }

/* Speaker */
.speaker-intro { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 4vw, 48px); font-size: 1.08rem; }
.speaker-intro strong { color: #fff; font-weight: 650; }
@media (max-width: 760px) { .speaker-intro { grid-template-columns: 1fr; } }
.topic-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 44px; padding: 0; list-style: none; }
.topic-links a {
  display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 600; font-size: .96rem;
  padding: 10px 16px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .28);
  transition: background-color .2s, border-color .2s;
}
.topic-links a:hover { background: rgba(255, 255, 255, .18); border-color: #fff; color: #fff; }
.topic-num { font-variant-numeric: tabular-nums; color: #a5b4fc; font-weight: 700; }

/* Gallery: CSS columns keep every photo at its natural aspect ratio. */
.gallery { columns: 3; column-gap: 18px; }
.gallery-item { break-inside: avoid; margin: 0 0 18px; }
@media (max-width: 900px) { .gallery { columns: 2; column-gap: 12px; } .gallery-item { margin-bottom: 12px; } }
.gallery a { display: block; border-radius: var(--radius-sm); position: relative; }
.gallery img {
  border-radius: var(--radius-sm); background: rgba(255, 255, 255, .08);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .22), 0 14px 30px rgba(5, 10, 40, .35);
  transition: transform .25s ease, box-shadow .25s ease;
}
.gallery a:hover img { transform: translateY(-2px); box-shadow: 0 0 0 2px #93c5fd, 0 18px 36px rgba(5, 10, 40, .45); }
.gallery figcaption { font-size: .85rem; color: #c7d2fe; margin-top: 8px; line-height: 1.45; }
.section-light .gallery figcaption { color: var(--muted); }
.gallery-title { color: #fff; font-size: 1.3rem; margin-bottom: 8px; }
.gallery-hint { color: #dbe3ff; font-size: .9rem; margin-bottom: 22px; }

/* Changemaker */
.changemaker { text-align: center; max-width: 820px; margin: 0 auto; }
.changemaker p { font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.7; color: #dbe3ff; }
.changemaker strong { color: #6ee7b7; font-weight: 650; }

/* CTA band */
.cta-band { background: var(--bg-soft); }
.cta-card {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow);
}
.cta-card h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 8px; }
.cta-card p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .cta-card { grid-template-columns: 1fr; } }

/* ---------- Keynotes ---------- */
.toc { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.toc a {
  display: inline-flex; gap: 8px; align-items: center; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .95rem;
  padding: 9px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); transition: border-color .2s, color .2s;
}
.toc a:hover { border-color: var(--blue); color: var(--blue); }
.toc .topic-num { color: var(--blue); }
.toc-bar { border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.toc-bar .wrap { padding-block: 18px; }

.keynote-row { padding-block: clamp(44px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.keynote-row:last-child { border-bottom: 0; }
.keynote-row .split { align-items: center; }
.keynote-row:nth-child(even) .keynote-media { order: -1; }
@media (max-width: 900px) { .keynote-row:nth-child(even) .keynote-media { order: 0; } .keynote-media { order: -1; } }
.keynote-num {
  display: inline-block; font-size: 2.6rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; margin-bottom: 14px;
  background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.keynote-row h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.keynote-row p { color: var(--ink-2); }
.tags { list-style: none; padding: 0; margin: 4px 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: .85rem; font-weight: 600; color: #3b4a8a; background: #eef1ff; border: 1px solid #dfe4ff; padding: 5px 12px; border-radius: 999px; }
.page-hero .tags li { color: #e6ebff; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .28); }
.text-link { font-weight: 650; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.text-link:hover { text-decoration: underline; }

/* Keynote detail */
.crumbs { font-size: .92rem; margin-bottom: 18px; color: #c7d2fe; }
.crumbs a { color: #fff; font-weight: 600; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; color: #fff; }
.crumbs span[aria-hidden] { margin: 0 8px; opacity: .6; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 960px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-body { font-size: 1.12rem; line-height: 1.75; }
.detail-body figure { margin-bottom: 32px; }
.detail-body figure img { max-height: 72vh; width: auto; }
.booking-card {
  position: sticky; top: 96px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: var(--shadow);
}
.booking-card h2 { font-size: 1.35rem; margin-bottom: 8px; }
.booking-card p { color: var(--muted); font-size: .98rem; }
.booking-card .btn { width: 100%; margin-top: 10px; }
.contact-lines { list-style: none; padding: 0; margin: 16px 0 0; font-size: .98rem; border-top: 1px solid var(--line); padding-top: 14px; }
.contact-lines li { margin: 6px 0; }
.contact-lines a { font-weight: 600; text-decoration: none; }
.contact-lines a:hover { text-decoration: underline; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.pager a {
  display: block; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.pager a:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.pager .dir { display: block; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.pager .ttl { display: block; font-weight: 650; color: var(--ink); line-height: 1.35; }
.pager .next { text-align: right; grid-column: 2; }
@media (max-width: 640px) { .pager { grid-template-columns: 1fr; } .pager .next { grid-column: auto; text-align: left; } }

/* Booking page */
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow); }
.contact-card h2 { font-size: 1.6rem; margin-bottom: 6px; }
.agency { font-size: 1.15rem; font-weight: 700; color: var(--ink); margin: 18px 0 6px; }
.contact-big { list-style: none; padding: 0; margin: 0 0 22px; font-size: 1.12rem; }
.contact-big li { margin: 4px 0; }
.contact-big a { font-weight: 600; text-decoration: none; }
.contact-big a:hover { text-decoration: underline; }
.topic-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.topic-list li { grid-column: span 2; }
.topic-list li:nth-child(n+4) { grid-column: span 3; }
@media (max-width: 900px) { .topic-list { grid-template-columns: 1fr 1fr; } .topic-list li, .topic-list li:nth-child(n+4) { grid-column: auto; } }
@media (max-width: 600px) { .topic-list { grid-template-columns: 1fr; } }
.topic-list a {
  display: block; height: 100%; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  text-decoration: none; color: var(--ink-2); transition: border-color .2s, box-shadow .2s, transform .2s;
}
.topic-list a:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-2px); }
.topic-list .topic-num { color: var(--blue); display: block; margin-bottom: 6px; }
.topic-list strong { display: block; color: var(--ink); font-size: 1.08rem; line-height: 1.35; margin-bottom: 6px; }
.topic-list span.sum { display: block; font-size: .95rem; color: var(--muted); line-height: 1.55; }

/* ---------- Footer ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding-block: 48px 28px; font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }
.site-footer .brand { border-radius: 13px; }
.site-footer .brand img { width: 52px; height: 52px; }
.site-footer .brand + p { margin-top: 14px; }
.site-footer p { color: var(--muted); margin: 8px 0 0; }
.footer-title { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-links a { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--blue); text-decoration: underline; }
.copyright { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 20px; color: var(--muted); font-size: .9rem; }

/* ---------- Lightbox ---------- */
.lightbox {
  border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh;
  background: rgba(6, 9, 24, .94); color: #fff;
}
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; place-items: center; }
.lightbox::backdrop { background: rgba(6, 9, 24, .7); }
.lightbox-stage { display: grid; place-items: center; width: 100%; height: 100%; padding: 64px 72px 8px; min-height: 0; }
.lightbox img { max-width: calc(100vw - 160px); max-height: calc(100dvh - 150px); width: auto; height: auto; border-radius: 8px; }
@media (max-width: 640px) { .lightbox img { max-width: calc(100vw - 20px); max-height: calc(100dvh - 210px); } }
.lightbox-caption { padding: 12px 24px 24px; text-align: center; font-size: .95rem; color: #cbd3f5; max-width: 60em; }
.lb-btn {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; font-size: 1.4rem; line-height: 1;
}
.lb-btn:hover { background: rgba(255, 255, 255, .18); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lightbox-stage { padding: 64px 10px 8px; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
  .lightbox-caption { padding-bottom: 76px; }
}

/* ---------- 404 ---------- */
.notfound-code { font-size: clamp(4rem, 12vw, 7rem); font-weight: 800; line-height: 1; letter-spacing: -.04em; color: rgba(255, 255, 255, .25); margin-bottom: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Inline links and emphasis on dark backgrounds */
.section-blue a.inline-light { color: #fff; font-weight: 650; text-decoration-color: rgba(255, 255, 255, .55); }
.section-blue a.inline-light:hover { text-decoration-color: #fff; }
.lead strong { color: #fff; font-weight: 650; }

/* A phone layout with a visible booking action and the complete photo in the first screen. */
@media (max-width: 760px) {
  :root { --gutter: 20px; --radius: 16px; }
  html { scroll-padding-top: 88px; }
  body { font-size: 1rem; line-height: 1.65; }
  h1, h2, h3 { text-wrap: balance; }
  .btn { min-height: 48px; padding: 13px 18px; font-size: .92rem; }
  .btn-sm { min-height: 44px; }
  .hero { background: radial-gradient(600px 500px at 100% 18%, rgba(124, 58, 237, .4), transparent 70%), linear-gradient(155deg, #142257, #233e85 65%, #3c2879); }
  .hero::after { opacity: .22; background-size: 32px 32px; }
  .hero-grid { gap: 20px; padding-block: 28px 32px; }
  .hero-copy { display: contents; }
  .hero-heading { order: 0; }
  .hero-media { order: 1; }
  .hero-intro { order: 2; }
  .eyebrow { font-size: .65rem; line-height: 1.6; letter-spacing: .1em; margin-bottom: 10px; }
  .hero-title { font-size: clamp(2.25rem, 10.8vw, 3rem); line-height: 1.04; letter-spacing: -.045em; margin-bottom: 16px; }
  .hero-title-sm { font-size: clamp(2.15rem, 9.5vw, 2.8rem); margin-bottom: 0; }
  .roles { gap: 6px; margin: 0; }
  .role { padding: 5px 9px; font-size: .69rem; line-height: 1.4; border-width: 1px; background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .3); }
  .role-blue { border-color: #8fb8ff; }
  .role-green { border-color: #77cfb9; }
  .role-purple { border-color: #c3a6f8; }
  .hero-media .photo { width: 100%; border-radius: 16px; box-shadow: 0 12px 28px rgba(5, 8, 30, .2), 0 0 0 1px rgba(255, 255, 255, .18); }
  .lead { font-size: 1rem; line-height: 1.6; margin-bottom: 20px; }
  .home-hero .actions { display: grid; grid-template-columns: 1fr 1.25fr; gap: 10px; }
  .home-hero .actions .btn { padding-inline: 10px; font-size: .82rem; }
  .keynotes-hero .actions .btn { width: 100%; }
  .page-hero .wrap { padding-block: 28px 32px; }
  .page-hero h1 { font-size: clamp(1.9rem, 8.2vw, 2.6rem); line-height: 1.13; margin-bottom: 16px; }
  .page-hero .lead { font-size: 1rem; line-height: 1.65; }
  .page-hero .actions { margin-top: 22px; }
  .page-hero .actions .btn { width: 100%; }
  .page-hero .tags { margin-bottom: 20px; }
  .mobile-detail-book { display: inline-flex; min-height: 48px; }
  .section { padding-block: 44px; }
  .split { gap: 28px; }
  .section-title { font-size: clamp(1.75rem, 7.5vw, 2.2rem); line-height: 1.18; margin-bottom: 20px; }
  .kicker { font-size: .68rem; margin-bottom: 10px; }
  .bio, .detail-body { font-size: 1rem; line-height: 1.7; }
  .awards { margin-top: 24px; gap: 10px; }
  .award { grid-template-columns: 42px minmax(0, 1fr); gap: 12px; padding: 16px; border-radius: 12px; box-shadow: none; }
  .award-year { font-size: .9rem; }
  .award-name { font-size: .93rem; line-height: 1.45; }
  .award-where { font-size: .8rem; line-height: 1.5; }
  .points { gap: 10px; }
  .points li { padding: 16px 16px 16px 52px; font-size: .94rem; }
  .points li::before { left: 14px; top: 17px; width: 26px; height: 26px; font-size: .8rem; }
  .speaker-intro { gap: 0; font-size: 1rem; }
  .topic-links { display: grid; gap: 8px; margin-block: 12px 32px; }
  .topic-links a { width: 100%; min-height: 48px; border-radius: 12px; padding: 12px 14px; font-size: .88rem; }
  .topic-num { flex: none; }
  .gallery-hint { font-size: .82rem; }
  .gallery a, .gallery img { border-radius: 14px; }
  .changemaker { text-align: left; }
  .changemaker p { font-size: 1rem; line-height: 1.75; }
  .cta-card { padding: 24px; border-radius: 18px; gap: 24px; }
  .cta-card .actions { display: grid; gap: 10px; }
  .cta-card h2 { line-height: 1.2; }
  .toc-bar { background: #fff; }
  .toc-bar .wrap { padding-block: 12px; }
  .toc-desktop { display: none; }
  .toc-mobile { display: block; }
  .toc-mobile summary { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 14px; list-style: none; cursor: pointer; font-size: .9rem; font-weight: 650; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); }
  .toc-mobile summary::-webkit-details-marker { display: none; }
  .toc-count { margin-left: auto; color: var(--muted); font-size: .75rem; font-weight: 500; white-space: nowrap; }
  .toc-chevron { color: var(--blue); font-size: 1.1rem; line-height: 1; }
  .toc-mobile[open] .toc-chevron { transform: rotate(180deg); }
  .toc-mobile .toc { display: grid; gap: 4px; padding-top: 8px; }
  .toc-mobile .toc a { width: 100%; min-height: 48px; border: 0; border-radius: 10px; padding: 12px 14px; font-size: .87rem; }
  .keynote-row { padding-block: 32px; }
  .keynote-row .split { gap: 18px; }
  .keynote-copy { display: contents; }
  .keynote-heading { order: 0; }
  .keynote-row:nth-child(n) .keynote-media { order: 1; }
  .keynote-copy > p { order: 2; margin: 0; font-size: .95rem; line-height: 1.65; }
  .keynote-copy > .actions { order: 3; }
  .keynote-copy > .actions .btn { width: 100%; }
  .keynote-num { font-size: 1rem; font-weight: 750; margin-bottom: 10px; }
  .keynote-row h2 { font-size: 1.55rem; line-height: 1.2; margin-bottom: 12px; }
  .tags { gap: 6px; margin-bottom: 0; }
  .tags li { font-size: .7rem; line-height: 1.45; padding: 4px 9px; }
  .crumbs { margin-bottom: 14px; font-size: .83rem; }
  .crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
  .crumb-back { display: inline; }
  .crumbs span.crumb-back { margin: 0 6px 0 0; }
  .crumbs .crumb-divider, .crumb-current { display: none; }
  .detail-grid { gap: 28px; }
  .detail-body figure { margin-bottom: 24px; }
  .detail-body figure img { width: 100%; max-height: none; }
  .booking-card { position: static; padding: 22px; border-radius: 16px; box-shadow: none; background: var(--bg-soft); }
  .booking-card .btn { font-size: .85rem; }
  .contact-lines a, .contact-big a { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
  .contact-lines li, .contact-big li { margin: 0; }
  .contact-card { padding: 22px; border-radius: 16px; box-shadow: none; }
  .contact-card h2 { font-size: 1.35rem; line-height: 1.3; }
  .contact-big { font-size: 1rem; }
  .contact-card .actions { display: grid; gap: 10px; }
  .topic-list { gap: 10px; }
  .topic-list a { padding: 18px; }
  .topic-list strong { font-size: 1rem; }
  .pager { gap: 10px; margin-top: 24px; }
  .pager a { padding: 18px; }
  .site-footer { padding-block: 32px 20px; }
  .footer-grid { gap: 24px; }
  .site-footer .brand img { width: 44px; height: 44px; }
  .site-footer p { font-size: .9rem; }
  .footer-title { margin-bottom: 6px; }
  .footer-links { gap: 0; }
  .footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-grid > div:nth-child(2) .footer-links { grid-template-columns: 1fr 1fr; }
  .copyright { margin-top: 24px; padding-top: 16px; }
}

@media (max-width: 480px) {
  .gallery { columns: 1; }
  .gallery-item { margin-bottom: 16px; }
}

@media (max-width: 360px) {
  :root { --gutter: 16px; }
  .header-actions .mobile-book { padding-inline: 12px; }
  .hero-grid { padding-top: 24px; gap: 18px; }
  .hero-title { font-size: 2.25rem; }
  .hero-title-sm { font-size: 2.15rem; }
  .home-hero .eyebrow { font-size: .6rem; letter-spacing: .06em; }
  .hero-intro .lead { font-size: .95rem; }
  .home-hero .actions { gap: 8px; }
  .home-hero .actions .btn { padding-inline: 8px; font-size: .76rem; }
  .contact-card, .booking-card { padding: 18px; }
  .toc-count { font-size: .68rem; }
}
