/* Kundol Tangruthaiwanich: personal site.
   A classic portfolio. A pine-green bar, a split introduction with the portrait,
   then full-width sections that alternate white and a pale tint, each opening
   with a centred serif heading. Source Serif 4 for headings (never italic), Host
   Grotesk for text. Cards are white with a soft shadow. Colour is the pine brand
   plus one teal accent; project panels, charts and the live demo share the same
   tokens, and chart colours were checked with the dataviz palette validator. */

:root {
  --bg: #FFFFFF;
  --bg-alt: #F2F7F5;
  --surface: #FFFFFF;
  --surface-2: #EBF2F0;
  --line: #DFE8E5;
  --line-2: #C6D3CF;
  --text: #14211E;
  --text-2: #42504C;
  --text-3: #5F6E6A;        /* 5.4:1 on white, 4.9:1 on --bg-alt */
  --heading: #0E3B36;
  --brand: #0E3B36;         /* the bar, footer and year badges */
  --on-brand: #FFFFFF;
  --on-brand-2: rgb(255 255 255 / .76);
  --brand-line: rgb(255 255 255 / .14);
  --mint: #8EDBCB;          /* active marker on the green bar */
  --accent: #13756A;        /* eyebrows, numbers, bullets: 5.5:1 on white */
  --accent-soft: #E1F0EC;
  --btn-bg: #0E3B36;
  --btn-bg-hover: #17544C;
  --btn-fg: #FFFFFF;
  --focus: #13756A;
  --shadow: 0 1px 2px rgb(14 59 54 / .05), 0 8px 24px -10px rgb(14 59 54 / .14);
  --shadow-lg: 0 2px 4px rgb(14 59 54 / .04), 0 22px 44px -18px rgb(14 59 54 / .26);
  --backdrop: rgb(6 20 18 / .45);

  --c-medlink: #009690;
  --c-pulma: #2F6BDC;
  --c-debate: #D63B3B;
  --c-epiva: #1546C9;
  --c-telesync: #3E8E41;
  --c-research: #B7791F;
  --c-rememo: #7C4DDB;
  --c-medicine: #0E7490;
  --c-talk: #DB2777;
  --c-school: #8A8A93;
  --bar-epiva: #1546C9;     /* validated: light surface #FFF */
  --bar-medlink: #009690;
  --live: #1F9D63;
  --busy: #D9900F;
  --error: #D63B3B;

  --font: "Host Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --thai: "Noto Sans Thai", "Leelawadee UI", Thonburi, sans-serif;
  --radius: 16px;
  --radius-lg: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --maxw: 1160px;
  --gutter: clamp(20px, 4vw, 40px);
  --bar-h: 68px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A1211; --bg-alt: #0E1817; --surface: #13201E; --surface-2: #1A2A28; --line: #20312F; --line-2: #2D4441;
    --text: #E6EFED; --text-2: #B0C0BC; --text-3: #8C9E9A; --heading: #ECF5F3;
    --brand: #0C2421; --on-brand: #EEF6F4; --on-brand-2: rgb(238 246 244 / .72); --brand-line: rgb(255 255 255 / .1);
    --mint: #7FD3C2; --accent: #62C7B5; --accent-soft: #15302C;
    --btn-bg: #62C7B5; --btn-bg-hover: #7DD5C5; --btn-fg: #05231F; --focus: #62C7B5;
    --shadow: 0 1px 2px rgb(0 0 0 / .35), 0 10px 28px -12px rgb(0 0 0 / .55);
    --shadow-lg: 0 2px 4px rgb(0 0 0 / .3), 0 24px 48px -20px rgb(0 0 0 / .7);
    --backdrop: rgb(0 0 0 / .6);
    --c-medlink: #2FA9A3; --c-pulma: #6E9BF0; --c-debate: #F06B6B; --c-epiva: #6889EE; --c-telesync: #5FB863;
    --c-research: #D9A441; --c-rememo: #A585F0; --c-medicine: #3BA9C9; --c-talk: #F472B6; --c-school: #8E8E98;
    --bar-epiva: #6889EE; --bar-medlink: #2FA9A3;
    --live: #3CC48A; --busy: #F0B43C; --error: #F06B6B;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A1211; --bg-alt: #0E1817; --surface: #13201E; --surface-2: #1A2A28; --line: #20312F; --line-2: #2D4441;
  --text: #E6EFED; --text-2: #B0C0BC; --text-3: #8C9E9A; --heading: #ECF5F3;
  --brand: #0C2421; --on-brand: #EEF6F4; --on-brand-2: rgb(238 246 244 / .72); --brand-line: rgb(255 255 255 / .1);
  --mint: #7FD3C2; --accent: #62C7B5; --accent-soft: #15302C;
  --btn-bg: #62C7B5; --btn-bg-hover: #7DD5C5; --btn-fg: #05231F; --focus: #62C7B5;
  --shadow: 0 1px 2px rgb(0 0 0 / .35), 0 10px 28px -12px rgb(0 0 0 / .55);
  --shadow-lg: 0 2px 4px rgb(0 0 0 / .3), 0 24px 48px -20px rgb(0 0 0 / .7);
  --backdrop: rgb(0 0 0 / .6);
  --c-medlink: #2FA9A3; --c-pulma: #6E9BF0; --c-debate: #F06B6B; --c-epiva: #6889EE; --c-telesync: #5FB863;
  --c-research: #D9A441; --c-rememo: #A585F0; --c-medicine: #3BA9C9; --c-talk: #F472B6; --c-school: #8E8E98;
  --bar-epiva: #6889EE; --bar-medlink: #2FA9A3;
  --live: #3CC48A; --busy: #F0B43C; --error: #F06B6B;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--bar-h); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 600; color: var(--heading); letter-spacing: -.012em; text-wrap: balance; }
p { text-wrap: pretty; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--accent) 26%, transparent); }
[lang="th"] { font-family: var(--thai); }
.nw { white-space: nowrap; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: fixed; left: 12px; top: -48px; z-index: 300; padding: 8px 12px; border-radius: 8px; background: var(--text); color: var(--bg); text-decoration: none; font-size: 13px; }
.skip:focus { top: 12px; }

.i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dot, var(--text-3)); flex: none; display: inline-block; }
kbd { font: 500 11px/1 var(--font); color: var(--text-3); padding: 3px 5px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-2); }

.container { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 10px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--text);
  font: 600 14px/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--surface-2); }
.btn--primary { border-color: transparent; background: var(--btn-bg); color: var(--btn-fg); }
.btn--primary:hover { background: var(--btn-bg-hover); }
.btn--outline { border: 1.5px solid currentColor; background: transparent; color: var(--heading); }
.btn--outline:hover { background: var(--accent-soft); }
.btn--lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn--sm { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 8px; }
.btn .i { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.btn:hover .i-go { transform: translateX(3px); }
.icon-only { width: 40px; padding: 0; }
.btn--sm.icon-only { width: 32px; }
.text-link {
  display: inline-flex; align-items: center; gap: 6px; width: max-content; padding: 0; border: 0; background: none;
  font: 600 14.5px/1.3 var(--font); color: var(--accent); text-decoration: none; cursor: pointer;
}
.text-link .i { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.text-link:hover .i-go { transform: translateX(3px); }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: none; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: block; }
}

/* ---------- Bar ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--brand); color: var(--on-brand); transition: box-shadow .2s; }
.nav.is-scrolled { box-shadow: 0 10px 28px -14px rgb(0 0 0 / .45); }
.nav__in { display: flex; align-items: center; gap: 12px; height: var(--bar-h); max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.brand { font: 600 19px/1 var(--serif); letter-spacing: -.01em; color: var(--on-brand); text-decoration: none; white-space: nowrap; }
.nav__links { display: flex; gap: 2px; margin-left: auto; }
.nav__links a {
  position: relative; padding: 9px 12px; border-radius: 8px;
  font-size: 14.5px; font-weight: 500; color: var(--on-brand-2); text-decoration: none; white-space: nowrap;
  transition: color .15s, background .15s;
}
.nav__links a:hover { color: var(--on-brand); background: rgb(255 255 255 / .07); }
.nav__links a.is-active { color: var(--on-brand); }
.nav__links a.is-active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--mint); }
.nav__tools { display: flex; align-items: center; gap: 2px; margin-left: 6px; padding-left: 10px; border-left: 1px solid var(--brand-line); }
.icon-btn {
  display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 10px;
  background: none; color: var(--on-brand-2); cursor: pointer; transition: background .15s, color .15s;
}
.icon-btn:hover { background: rgb(255 255 255 / .08); color: var(--on-brand); }
.icon-btn .i { width: 17px; height: 17px; }
.nav__menu { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; padding: clamp(36px, 4.6vw, 60px) 0 clamp(28px, 3vw, 40px); }
.hero::before {
  content: ""; position: absolute; z-index: -1; top: 0; right: 0; height: calc(100% - 150px);
  width: max(0px, calc(50% - 200px)); background: var(--bg-alt); border-bottom-left-radius: 44px;
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(32px, 5vw, 80px); }
.eyebrow { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--accent); }
.hero__name { margin-top: 14px; font-size: clamp(44px, 5.4vw, 76px); line-height: 1.02; letter-spacing: -.024em; }
.hero__alt { margin: 14px 0 0; font-size: 16px; color: var(--text-3); }
.hero__lede { max-width: 40ch; margin: 24px 0 0; text-wrap: balance; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.45; color: var(--text-2); }
.hero__school { margin: 14px 0 0; font-size: 15px; color: var(--text-3); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__photo {
  position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden;
  width: clamp(260px, 34vw, 440px);
  width: clamp(260px, min(34vw, (100svh - var(--bar-h) - 250px) * .8), 440px);
  background: var(--surface-2); box-shadow: var(--shadow-lg); cursor: zoom-in;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; transition: transform 1.2s var(--ease); }
.hero__photo:hover img { transform: scale(1.03); }
.hero__photo:focus-visible { outline-offset: 4px; }

/* caption chip on photos, and the "8 photos" chip */
.chip {
  position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 11px; border-radius: 999px; background: rgb(8 22 20 / .55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #fff; font: 500 12.5px/1.2 var(--font); pointer-events: none;
}
.chip .i { width: 14px; height: 14px; }

.focus {
  list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(36px, 4vw, 52px) 0 0; padding: 22px 0 0; border-top: 1px solid var(--line);
}
.focus li { min-width: 0; }
.focus li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.focus a { display: flex; align-items: center; gap: 14px; padding-right: 12px; text-decoration: none; }
.focus img { width: 52px; height: 52px; flex: none; border-radius: 12px; object-fit: cover; background: var(--surface-2); transition: transform .4s var(--ease); }
.focus a:hover img { transform: scale(1.06); }
.focus b { display: flex; align-items: center; gap: 6px; font-size: 15.5px; font-weight: 600; color: var(--text); }
.focus b::after { content: "→"; font-weight: 500; color: var(--accent); opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .3s var(--ease); }
.focus a:hover b::after, .focus a:focus-visible b::after { opacity: 1; transform: none; }
.focus small { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.35; color: var(--text-3); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 8.5vw, 112px); }
.section--alt { background: var(--bg-alt); }
.head { max-width: 760px; margin: 0 auto clamp(40px, 5vw, 60px); text-align: center; }
.head h2 { font-size: clamp(34px, 3.7vw, 48px); line-height: 1.1; }
.head p { margin: 14px 0 0; font-size: 18px; line-height: 1.55; color: var(--text-3); }
.sub-head { margin: clamp(56px, 6vw, 80px) 0 0; text-align: center; font-size: clamp(26px, 2.5vw, 32px); }
.sub-lede { max-width: 640px; margin: 10px auto 0; text-align: center; font-size: 16.5px; color: var(--text-3); }

/* photo + text */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: clamp(32px, 5.5vw, 80px); }
.split--rev { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.split--rev > .media { order: 2; }
.split + .split, .paper + .split { margin-top: clamp(56px, 6.5vw, 88px); }
.media {
  position: relative; display: block; width: 100%; margin: 0; padding: 0; border: 0;
  border-radius: var(--radius); overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow-lg); cursor: zoom-in;
}
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.media:hover img { transform: scale(1.03); }
.media--portrait { aspect-ratio: 4 / 5; }
.media--wide { aspect-ratio: 4 / 3; }
.media--flag { aspect-ratio: 898 / 525; }
.media--banner { aspect-ratio: 2 / 1; max-height: 560px; }
.block--cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px clamp(32px, 5vw, 72px); margin-top: clamp(32px, 4vw, 48px); align-items: start; }
.block--cols p:not(.eyebrow) { margin: 0 0 16px; font-size: 16.5px; line-height: 1.7; color: var(--text-2); }
.block--cols .actions { margin-top: 22px; }

/* in the news */
.press .sub-head { margin-top: clamp(48px, 5.5vw, 72px); margin-bottom: 24px; }
.press__card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.press__media { position: relative; margin: 0; min-height: 320px; background: var(--surface-2); }
.press__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.press__badge { position: absolute; top: 16px; left: 16px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--heading); box-shadow: var(--shadow); }
.press__badge .i { width: 15px; height: 15px; color: var(--accent); }
.press__body { padding: clamp(24px, 3.4vw, 44px); }
.press__source { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; font-size: 14px; color: var(--text-3); }
.press__source b { font-weight: 600; color: var(--accent); }
.press__body h4 { margin-top: 12px; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.25; }
.press__summary { margin: 16px 0 0; padding-left: 16px; border-left: 3px solid var(--line-2); font-size: 15.5px; line-height: 1.65; color: var(--text-2); }
.press .chips { margin-top: 18px; }

.prose-lg p { margin: 0 0 18px; font-size: 17.5px; line-height: 1.7; color: var(--text-2); }
.prose-lg p:last-child { margin-bottom: 0; }
.prose-lg strong { font-weight: 600; color: var(--text); }
.block h3 { margin-top: 10px; font-size: clamp(30px, 3vw, 40px); line-height: 1.12; }
.block > p:not(.eyebrow) { margin: 16px 0 0; font-size: 16.5px; line-height: 1.7; color: var(--text-2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* big figures */
.stats { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: clamp(48px, 5.5vw, 72px) 0 0; padding: 0; }
.stats li { padding: 26px 18px 24px; border-radius: var(--radius); background: var(--bg-alt); text-align: center; }
.section--alt .stats li { background: var(--surface); box-shadow: var(--shadow); }
.stats b { display: block; font: 600 clamp(32px, 3.2vw, 42px)/1 var(--serif); letter-spacing: -.02em; color: var(--heading); font-variant-numeric: lining-nums; }
.stats span { display: block; max-width: 22ch; margin: 10px auto 0; font-size: 14px; line-height: 1.45; color: var(--text-3); }

/* numbered programmes */
.numbered { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 18px 0 0; padding: 0; counter-reset: n; }
.numbered li { padding: 26px 26px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); counter-increment: n; }
.numbered li::before { content: counter(n, decimal-leading-zero); display: block; font: 600 30px/1 var(--serif); color: var(--accent); }
.numbered h4 { margin-top: 16px; font-size: 20px; line-height: 1.25; }
.numbered p { margin: 8px 0 0; font-size: 15px; line-height: 1.6; color: var(--text-3); }
.numbered a { color: var(--accent); font-weight: 600; text-decoration: none; white-space: nowrap; }
.numbered a:hover { text-decoration: underline; text-underline-offset: 3px; }
.numbered a .i { display: inline-block; width: 13px; height: 13px; margin-left: 3px; vertical-align: -1px; }

/* ---------- Featured work ---------- */
.feature {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-lg);
  scroll-margin-top: calc(var(--bar-h) + 24px);
}
.feature + .feature { margin-top: 32px; }
.feature--rev .feature__media { order: 2; }
.feature__media { position: relative; display: block; min-height: 440px; padding: 0; border: 0; background: var(--surface-2); cursor: zoom-in; overflow: hidden; }
.feature__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.feature__media:hover img { transform: scale(1.03); }
.feature__media--app { background: linear-gradient(#f4f5f8, #e6eaef); }
.feature__body { display: flex; flex-direction: column; padding: clamp(28px, 4vw, 52px); }
.feature__body h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; font-size: clamp(32px, 3.2vw, 42px); line-height: 1.08; }
.feature__sub { margin: 8px 0 0; font-size: 17.5px; font-weight: 500; color: var(--text); }
.feature__desc { margin: 16px 0 0; font-size: 16px; line-height: 1.68; color: var(--text-2); }
.feature .actions { margin-top: auto; padding-top: 28px; }
.ticks { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; margin: 20px 0 0; padding: 0; }
.ticks--1 { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.ticks li { position: relative; padding-left: 17px; font-size: 14.5px; line-height: 1.45; color: var(--text-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .52em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.ticks b { font-weight: 600; color: var(--text); }
.figures { list-style: none; display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 22px 0 0; padding: 0; }
.figures b { display: block; font: 600 32px/1 var(--serif); color: var(--heading); }
.figures span { display: block; max-width: 17ch; margin-top: 6px; font-size: 13.5px; line-height: 1.4; color: var(--text-3); }
.live {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px 5px 9px; border-radius: 999px;
  background: var(--accent-soft); font: 600 12.5px/1 var(--font); letter-spacing: 0; color: var(--accent);
}
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: live 2.2s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 6px transparent; } }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 28px; }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 0; }
.card { display: flex; flex-direction: column; min-width: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.section:not(.section--alt) .card { box-shadow: none; border: 1px solid var(--line); }
.card__media { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; padding: 0; border: 0; overflow: hidden; background: var(--surface-2); cursor: zoom-in; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card__media:hover img { transform: scale(1.04); }
.card__body { display: flex; flex: 1; flex-direction: column; padding: 24px 26px 26px; }
.card__body h3, .card__body h4 { margin-top: 8px; font-size: 25px; line-height: 1.2; }
.card__body > p:not(.eyebrow) { margin: 10px 0 0; font-size: 15.5px; line-height: 1.62; color: var(--text-2); }
.card__body .ticks { margin-top: 16px; }
.card__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 22px; }
.card__body .text-link { margin-top: auto; padding-top: 22px; }
.card .eyebrow { font-size: 14px; }

/* ---------- Research ---------- */
.paper { max-width: 980px; margin: 0 auto; padding: clamp(28px, 4vw, 52px); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-lg); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { padding: 6px 12px; border-radius: 999px; background: var(--brand); color: var(--on-brand); font-size: 12.5px; font-weight: 600; line-height: 1.1; }
.badge--line { background: none; color: var(--heading); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.paper h3 { margin-top: 18px; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.3; }
.paper__meta { margin: 10px 0 0; font-size: 14.5px; color: var(--text-3); }
.paper p:not(.paper__meta):not(.paper__award) { margin: 16px 0 0; font-size: 16px; line-height: 1.7; color: var(--text-2); }
.paper__award { display: flex; align-items: center; gap: 10px; margin: 22px 0 0; padding: 12px 16px; border-radius: 12px; background: var(--accent-soft); font-size: 14.5px; font-weight: 500; color: var(--text); }
.paper__award .i { width: 18px; height: 18px; color: var(--accent); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; }
.chips li { padding: 7px 13px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); font-size: 13.5px; font-weight: 500; color: var(--text-2); }

/* photo strips */
.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.strip > button {
  position: relative; display: block; aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: var(--radius);
  overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow); cursor: zoom-in; text-align: left;
}
.split + .strip { margin-top: clamp(40px, 5vw, 64px); }
.strip--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 24px; }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.strip > button:hover img { transform: scale(1.04); }
.strip .cap {
  position: absolute; inset: auto 0 0 0; padding: 36px 16px 13px; background: linear-gradient(transparent, rgb(0 0 0 / .62));
  color: #fff; font-size: 13.5px; font-weight: 500; line-height: 1.35;
}

/* ---------- Awards ---------- */
.year + .year { margin-top: 44px; }
.year__head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.year__head h3 { padding: 9px 16px 10px; border-radius: 10px; background: var(--brand); color: var(--on-brand); font-size: 21px; line-height: 1; letter-spacing: 0; font-variant-numeric: lining-nums; }
.year__line { flex: 1; height: 1px; background: var(--line-2); }
.year__n { font-size: 14px; color: var(--text-3); }
.awards { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; }
.award {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 14px;
  width: 100%; height: 100%; padding: 12px 14px 12px 12px; border: 0; border-radius: 14px;
  background: var(--surface); box-shadow: var(--shadow); text-align: left; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s;
}
.award--static { cursor: default; text-align: left; }
.award:not(.award--static):hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.award__img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--surface-2); }
.award__ph { display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.award__ph .i { width: 24px; height: 24px; stroke-width: 1.5; }
.award__t { display: block; font-size: 15px; font-weight: 600; line-height: 1.32; color: var(--text); }
.award__s { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.4; color: var(--text-3); }
.award__p { display: block; margin-top: 4px; font-size: 12.5px; font-weight: 600; color: var(--accent); }

/* ---------- Journey ---------- */
.journey { position: relative; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin: 0; padding: 0; }
.journey::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: var(--line); }
.journey > li { position: relative; padding-top: 44px; }
.journey > li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 4px var(--accent); }
.journey h3 { font-size: 36px; line-height: 1; font-variant-numeric: lining-nums; }
.journey ul { list-style: none; display: grid; gap: 11px; margin: 18px 0 0; padding: 0; }
.journey ul li { position: relative; padding-left: 17px; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.journey ul li::before { content: ""; position: absolute; left: 0; top: .66em; width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }
.journey time { margin-right: 8px; font-size: 13.5px; font-weight: 600; color: var(--accent); }

/* ---------- Contact ---------- */
.contact-card { max-width: 720px; margin: 0 auto; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-lg); }
.contact-grid { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; text-align: center; }
.contact-grid li { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.contact-grid .ic { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 14px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.contact-grid .ic .i { width: 20px; height: 20px; }
.contact-grid h3 { font-size: 19px; }
.contact-grid a { margin-top: 6px; font-size: 17px; color: var(--text-2); text-decoration: none; overflow-wrap: anywhere; }
.contact-grid a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.copy-btn { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; padding: 4px 9px; border: 0; border-radius: 999px; background: var(--surface-2); font-size: 12.5px; font-weight: 500; color: var(--text-3); cursor: pointer; }
.copy-btn:hover { color: var(--text); }
.copy-btn .i { width: 13px; height: 13px; }
.contact-links { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin: 30px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); }
.contact-links a { display: inline-flex; align-items: center; gap: 5px; font-size: 14.5px; font-weight: 500; color: var(--text-2); text-decoration: none; }
.contact-links a:hover { color: var(--accent); }
.contact-links .i { width: 13px; height: 13px; color: var(--text-3); }
.contact-cta { display: flex; justify-content: center; margin-top: 28px; }

.footer { padding: 40px 0; background: var(--brand); color: var(--on-brand); }
.footer__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.footer b { font: 600 19px/1.2 var(--serif); }
.footer p { margin: 6px 0 0; font-size: 14px; color: var(--on-brand-2); }
.footer__r { text-align: right; }
.footer__r p { margin: 0; }
.footer a { display: inline-block; margin-top: 6px; font-size: 14px; color: var(--on-brand-2); text-decoration: none; }
.footer a:hover { color: var(--on-brand); }

/* ---------- Scroll reveal (main.js adds .reveal-on, then .is-in per element) ---------- */
.reveal { transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal-on .reveal:not(.is-in) { opacity: 0; transform: translateY(22px); }

/* ---------- Detail panels ---------- */
.panel {
  position: fixed; top: 0; right: 0; bottom: 0; left: auto; margin: 0;
  width: min(660px, 100vw); max-width: 100vw; height: 100vh; height: 100dvh; max-height: none;
  padding: 0; border: 0; background: var(--surface); color: var(--text);
  overflow: hidden; box-shadow: -24px 0 60px -30px rgb(0 0 0 / .4);
}
.panel[open] { display: flex; flex-direction: column; animation: panel-in .32s var(--ease); }
.panel.is-closing { animation: panel-out .18s ease forwards; }
.panel::backdrop { background: var(--backdrop); }
@keyframes panel-in { from { transform: translateX(28px); opacity: 0; } }
@keyframes panel-out { to { transform: translateX(28px); opacity: 0; } }
.panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.panel__head h2 { display: flex; align-items: center; gap: 10px; font-size: 24px; line-height: 1.2; }
.panel__head p { margin: 4px 0 0 17px; font-size: 13.5px; color: var(--text-3); }
.panel__tools { display: flex; gap: 6px; }
.panel__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 20px 22px 40px; display: flex; flex-direction: column; gap: 22px; }

.carousel { display: flex; flex-direction: column; gap: 8px; }
.carousel__track {
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 -22px; padding: 0 22px; scroll-padding: 0 22px;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track button {
  flex: none; display: block; height: 240px; padding: 0; border: 0; border-radius: 12px; overflow: hidden;
  background: var(--surface-2); cursor: zoom-in; scroll-snap-align: start;
}
.carousel__track button:focus-visible { outline-offset: -2px; }
.carousel__track img { width: auto; height: 100%; max-width: none; transition: transform .5s var(--ease); }
.carousel__track button:hover img { transform: scale(1.03); }
.carousel__bar { display: flex; align-items: center; justify-content: space-between; min-height: 32px; font-size: 13px; color: var(--text-3); }
.carousel__nav { display: flex; gap: 6px; }

.prose p { margin: 0 0 12px; font-size: 15.5px; line-height: 1.68; color: var(--text-2); }
.prose p:last-child { margin-bottom: 0; }
.note { margin: 0; font-size: 13px; line-height: 1.55; color: var(--text-3); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 22px; margin: 0; border-top: 1px solid var(--line); }
.facts div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 12.5px; color: var(--text-3); }
.facts dd { margin: 2px 0 0; font-size: 14px; font-weight: 500; line-height: 1.45; }
.facts a { text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.sub h3, .viz h3, .demo h3 { font-family: var(--font); font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--text); }
.sub h3 { margin-bottom: 10px; }
.mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.mini-list li { display: grid; grid-template-columns: 172px minmax(0, 1fr); gap: 12px; font-size: 14px; line-height: 1.5; }
.mini-list b { font-weight: 600; }
.mini-list span { color: var(--text-2); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; counter-reset: step; }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 2px; padding: 11px 12px; border-radius: 12px; background: var(--bg-alt); font-size: 13px; line-height: 1.4; color: var(--text-2); }
.steps li::before { content: counter(step); font: 600 15px/1.2 var(--serif); color: var(--accent); }
.steps b { font-size: 14px; font-weight: 600; color: var(--text); }
.callout {
  position: relative; display: flex; flex-direction: column; gap: 3px; padding: 14px 42px 15px 16px;
  border-radius: 12px; background: var(--bg-alt); text-decoration: none; transition: background .15s;
}
.callout:hover { background: var(--surface-2); }
.callout__k { font-size: 12.5px; color: var(--text-3); }
.callout__t { font-size: 14.5px; font-weight: 600; }
.callout__d { font-size: 13.5px; line-height: 1.5; color: var(--text-2); }
.callout .i { position: absolute; right: 14px; top: 15px; color: var(--text-3); }
.results { width: 100%; border-collapse: collapse; font-size: 14px; }
.results th { padding: 0 12px 8px 0; border-bottom: 1px solid var(--line); text-align: left; font-size: 12.5px; font-weight: 500; color: var(--text-3); }
.results td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-2); line-height: 1.45; }
.results td:first-child { width: 54px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.results td:nth-child(2) { color: var(--text); font-weight: 500; }
.results + .note { margin-top: -12px; }

/* ---------- Charts ---------- */
.viz { position: relative; padding: 16px 16px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.viz__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.viz__controls { display: flex; flex-wrap: wrap; gap: 6px; }
.seg { display: inline-flex; padding: 2px; border-radius: 999px; background: var(--surface-2); }
.seg button { padding: 5px 11px; border: 0; border-radius: 999px; background: none; font-size: 12.5px; font-weight: 500; color: var(--text-2); cursor: pointer; transition: background .15s, color .15s; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgb(0 0 0 / .05); }
.viz__sub { margin: 6px 0 4px; font-size: 13px; line-height: 1.45; color: var(--text-3); }
.viz__plot { position: relative; display: grid; gap: 1px; padding-top: 18px; }
.bar-row { display: grid; grid-template-columns: 132px minmax(0, 1fr) 46px; align-items: center; gap: 10px; height: 27px; padding: 0 4px; border-radius: 6px; }
.bar-row:hover, .bar-row:focus-visible { background: var(--surface-2); outline: none; }
.bar-row__label { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; color: var(--text-2); }
.bar-row__track { position: relative; height: 12px; }
.bar-row__bar { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 0 4px 4px 0; background: var(--bar); transition: width .45s var(--ease); }
.bar-row__val { text-align: right; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.viz__ref { position: absolute; top: 14px; bottom: 0; width: 0; border-left: 1px solid var(--text-3); pointer-events: none; transition: left .45s var(--ease); }
.viz__ref span { position: absolute; top: -14px; left: 0; transform: translateX(-50%); font-size: 11px; line-height: 1; white-space: nowrap; color: var(--text-3); }
.tip {
  position: absolute; z-index: 5; max-width: 240px; padding: 7px 9px; border-radius: 8px; pointer-events: none;
  background: var(--text); color: var(--bg); font-size: 12px; line-height: 1.4; box-shadow: 0 8px 24px rgb(0 0 0 / .18);
  opacity: 0; transform: translateY(3px); transition: opacity .12s, transform .12s;
}
.tip.is-on { opacity: 1; transform: none; }
.tip b { display: block; font-size: 13.5px; font-weight: 600; }
.tip span { display: block; opacity: .75; }
.viz__table { margin-top: 8px; font-size: 13px; }
.viz__table summary { width: max-content; cursor: pointer; color: var(--text-3); }
.viz__table summary:hover { color: var(--text); }
.viz__table table { width: 100%; margin-top: 8px; border-collapse: collapse; }
.viz__table th, .viz__table td { padding: 5px 10px 5px 0; border-bottom: 1px solid var(--line); text-align: left; font-variant-numeric: tabular-nums; }
.viz__table th { font-weight: 500; color: var(--text-3); }

/* ---------- Live demo ---------- */
.demo { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; scroll-margin-top: 12px; }
.demo__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.demo__status { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-3); }
.demo__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--live); }
.demo__status[data-state="busy"]::before { background: var(--busy); animation: blink 1s ease-in-out infinite; }
.demo__status[data-state="error"]::before { background: var(--error); }
.demo__status[data-state="warn"]::before { background: var(--busy); }
@keyframes blink { 50% { opacity: .3; } }
.drop {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 16px;
  border: 1.5px dashed var(--line-2); border-radius: 12px; background: var(--bg-alt);
  text-align: center; font-size: 14px; color: var(--text-2); cursor: pointer; transition: border-color .15s, background .15s;
}
.drop .i { width: 20px; height: 20px; color: var(--accent); margin-bottom: 2px; }
.drop b { color: var(--text); font-weight: 600; }
.drop:hover, .drop.is-over { border-color: var(--accent); background: var(--accent-soft); }
.drop:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.drop__hint { font-size: 12.5px; color: var(--text-3); }
.demo__result { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; align-items: start; }
.demo__result[hidden] { display: none; }
.demo__thumb { width: 92px; height: 92px; border-radius: 10px; object-fit: cover; background: var(--surface-2); }
.matches { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.matches li { display: grid; grid-template-columns: minmax(0, 1fr) 42px; gap: 3px 10px; font-size: 13.5px; }
.matches .m-val { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.matches .m-bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.matches .m-bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--bar-epiva); transition: width .5s var(--ease); }
.matches .skeleton { height: 13px; border-radius: 4px; background: var(--surface-2); grid-column: 1 / -1; animation: blink 1.2s ease-in-out infinite; }

/* ---------- Search ---------- */
.cmdk {
  width: min(580px, calc(100vw - 32px)); margin: 12vh auto auto; padding: 0;
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--text);
  box-shadow: 0 24px 64px rgb(0 0 0 / .24); overflow: hidden;
}
.cmdk[open] { animation: pop .18s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.985); } }
.cmdk::backdrop { background: var(--backdrop); }
.cmdk__field { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--text-3); }
.cmdk__field input { flex: 1; min-width: 0; padding: 0; border: 0; outline: 0; background: none; color: var(--text); font: 400 16px/1.4 var(--font); }
.cmdk__field input::placeholder { color: var(--text-3); }
#cmdk-list { list-style: none; margin: 0; padding: 6px; max-height: min(52vh, 440px); overflow-y: auto; }
#cmdk-list li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; font-size: 14px; cursor: pointer; }
#cmdk-list li[aria-selected="true"] { background: var(--surface-2); }
#cmdk-list li .lbl { flex: none; max-width: 60%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#cmdk-list li .sub { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; color: var(--text-3); }
#cmdk-list li .k { flex: none; font-size: 12.5px; color: var(--accent); }
#cmdk-list .empty { justify-content: center; color: var(--text-3); cursor: default; }
.cmdk__foot { display: flex; gap: 14px; margin: 0; padding: 9px 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-3); }
.cmdk__foot kbd { margin-right: 3px; }

/* ---------- Lightbox ---------- */
.lightbox { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(6 12 11 / .95); color: #fff; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: calc(100vw - 128px); margin: 0; }
.lightbox__img { max-width: 100%; max-height: calc(100dvh - 110px); border-radius: 10px; user-select: none; -webkit-user-drag: none; }
.lightbox figcaption { display: flex; gap: 12px; font-size: 13.5px; color: #D4DCDA; text-align: center; }
.lightbox__count { color: #8E9C99; font-variant-numeric: tabular-nums; }
.lightbox .btn { position: fixed; border-color: rgb(255 255 255 / .16); background: rgb(255 255 255 / .08); color: #fff; }
.lightbox .btn:hover { background: rgb(255 255 255 / .16); }
.lightbox__close { top: 14px; right: 14px; }
.lightbox__prev { left: 14px; top: calc(50% - 20px); }
.lightbox__next { right: 14px; top: calc(50% - 20px); }
.lightbox .btn[hidden] { display: none; }
html:has(dialog[open]) { overflow: hidden; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 200; padding: 9px 14px; border-radius: 10px;
  background: var(--text); color: var(--bg); font-size: 13.5px; pointer-events: none;
  opacity: 0; transform: translate(-50%, 10px); transition: opacity .2s, transform .2s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Narrower screens ---------- */
@media (max-width: 1100px) {
  .nav__links {
    display: none; position: absolute; top: var(--bar-h); left: 0; right: 0; flex-direction: column; gap: 0;
    margin: 0; padding: 6px var(--gutter) 14px; background: var(--brand); border-top: 1px solid var(--brand-line);
    box-shadow: 0 18px 30px -18px rgb(0 0 0 / .5);
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a { padding: 13px 4px; border-radius: 0; font-size: 16px; }
  .nav__links a + a { border-top: 1px solid var(--brand-line); }
  .nav__links a:hover { background: none; }
  .nav__links a.is-active::after { left: auto; right: 4px; top: 50%; bottom: auto; width: 6px; height: 6px; border-radius: 50%; transform: translateY(-50%); }
  .nav__tools { margin-left: auto; padding-left: 0; border-left: 0; }
  .nav__menu { display: grid; }
  .awards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .hero__photo { width: clamp(220px, 34vw, 330px); }
  .focus { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .focus li:nth-child(3) { padding-left: 0; border-left: 0; }
  .split, .split--rev { gap: 36px; }
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature--rev .feature__media { order: 0; }
  .feature__media { min-height: 0; aspect-ratio: 16 / 10; }
  .block--cols { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .press__card { grid-template-columns: minmax(0, 1fr); }
  .press__media { min-height: 0; aspect-ratio: 16 / 10; }
  .numbered { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards--3 { grid-template-columns: minmax(0, 1fr); }
  .cards--3 .card { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .cards--3 .card__media { aspect-ratio: auto; height: 100%; min-height: 220px; }
  .journey { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-left: 34px; }
  .journey::before { left: 8px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; }
  .journey > li { padding-top: 0; }
  .journey > li::before { left: -34px; top: 8px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .panel { width: 100vw; }
}
@media (max-width: 760px) {
  .split, .split--rev { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .split--rev > .media { order: 0; }
  .split > .media { max-width: 620px; margin-inline: auto; }
  .split > .media--portrait { max-width: 440px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px; scroll-padding: 0 var(--gutter); }
  .strip::-webkit-scrollbar { display: none; }
  .strip--2 { display: flex; }
  .strip > button { flex: none; width: 78%; scroll-snap-align: start; }
}
@media (max-width: 700px) {
  :root { --bar-h: 60px; }
  .brand { font-size: 17px; }
  .hero { padding-top: 20px; }
  .hero::before { display: none; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .hero__photo { order: -1; width: 100%; aspect-ratio: 5 / 4; border-radius: 20px; }
  .hero__photo img { object-position: 50% 30%; }
  .hero__name { margin-top: 10px; }
  .hero__lede { max-width: none; }
  .focus { gap: 16px 14px; }
  .focus li + li { padding-left: 0; border-left: 0; }
  .focus a { gap: 11px; padding-right: 0; }
  .focus img { width: 44px; height: 44px; border-radius: 10px; }
  .focus b { font-size: 14.5px; }
  .focus small { font-size: 12.5px; }
}
@media (max-width: 520px) {
  .focus { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .focus li:nth-child(3) { padding-left: 0; }
  .focus b { font-size: 15px; }
  .focus small { font-size: 13px; }
}
@media (max-width: 600px) {
  .head p { font-size: 16.5px; }
  .numbered, .awards { grid-template-columns: minmax(0, 1fr); }
  .numbered { gap: 12px; }
  .numbered li { display: grid; grid-template-columns: 42px minmax(0, 1fr); padding: 18px 18px 20px; }
  .numbered li::before { grid-row: span 2; font-size: 24px; padding-top: 1px; }
  .numbered h4 { margin-top: 0; font-size: 18.5px; }
  .numbered p { margin-top: 4px; }
  .awards { gap: 10px; }
  .award { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 10px 12px 10px 10px; }
  .award__img { width: 52px; height: 52px; }
  .stats { gap: 10px; }
  .stats li { padding: 20px 12px; }
  .ticks { grid-template-columns: minmax(0, 1fr); }
  .feature__body { padding: 24px 22px 26px; }
  .cards--3 .card { display: flex; }
  .cards--3 .card__media { aspect-ratio: 16 / 10; height: auto; min-height: 0; }
  .card__body { padding: 22px; }
  .paper { padding: 24px 22px; }
  .actions .btn { flex: 1 1 auto; }
  .year__n { display: none; }
  .footer__r { text-align: left; }

  .panel__head, .panel__body { padding-left: 16px; padding-right: 16px; }
  .carousel__track { margin: 0 -16px; padding: 0 16px; scroll-padding: 0 16px; }
  .carousel__track button { height: 200px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .mini-list li { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .bar-row { grid-template-columns: 104px minmax(0, 1fr) 42px; gap: 8px; }
  .lightbox figure { max-width: calc(100vw - 24px); }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media print {
  .nav, .hero__actions, .actions, .contact-cta { display: none; }
  .reveal-on .reveal:not(.is-in) { opacity: 1; transform: none; }
}
