:root {
  --paper: #fbf6ec;
  --paper-rgb: 251, 246, 236;
  --line: #e2d6c1;
  --ink: #1b1613;
  --ink-soft: #3f362f;
  --accent: #0d6f8f;      /* deep teal: strong enough to read on paper */
  --logo-blue: #0a5475;
  --accent-soft: #e3f0f1;
  --serif: 'Fraunces', 'Lora', 'Noto Serif KR', Georgia, serif;
  --sans: 'Onest', 'Pretendard Variable', Pretendard, system-ui, sans-serif;
  --column: min(46vw, 700px);
}

* { box-sizing: border-box; }
html[lang='ko'] body { word-break: keep-all; }
html, body { margin: 0; }

body {
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  font-variation-settings: 'SOFT' 100, 'WONK' 1; /* Fraunces at its softest, the same round feel as the models */
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body[data-view='intro'] { overflow: hidden; }

#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.track { height: 0; }
body:not([data-view='intro']) .track { height: 2000vh; }

a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[tabindex='-1']:focus { outline: none; } /* titles that receive focus after a change of view */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 70; padding: 10px 16px; border-radius: 10px;
  background: var(--ink); color: #fff; font-weight: 500; text-decoration: none;
  transform: translateY(-160%); transition: transform 0.2s ease;
}
.skip-link:focus { transform: none; }

/* without JavaScript, or in a browser too old for the site's code: no loader, no windows, just the words */
.fallback { display: none; }
/* (selectors spelled out, not :is(), so the oldest browsers understand them too) */
html.no-js .loader, html.no-js .portal, html.no-js .track,
html.boot-failed .loader, html.boot-failed .portal, html.boot-failed .track { display: none; }
html.no-js body, html.boot-failed body { overflow: auto; }
html.no-js .intro, html.no-js .intro-head, html.boot-failed .intro, html.boot-failed .intro-head { position: static; }
html.no-js .intro-head, html.boot-failed .intro-head { padding-top: 112px; }
html.no-js .fallback, html.boot-failed .fallback { display: block; position: relative; z-index: 11; max-width: 760px; margin: 0 auto; padding: 8px 24px 64px; }
.fallback h2 { font-size: 32px; margin: 28px 0 8px; }
.fallback .actions { margin-top: 24px; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; color: var(--ink); letter-spacing: -0.022em; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--accent); }
html[lang='ko'] h1, html[lang='ko'] h2, html[lang='ko'] h3 { font-weight: 600; }
html[lang='ko'] h1 em, html[lang='ko'] h2 em, html[lang='ko'] h3 em { font-style: normal; }

/* a headline's words rise into place, each out of its own little window */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.1em 0.06em 0.16em; margin: -0.1em -0.06em -0.16em; }
.w > span { display: inline-block; }
.arrow { display: inline-block; transition: transform 0.3s cubic-bezier(0.2, 0.75, 0.2, 1); }

/* how far through the story you are */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 31; pointer-events: none;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
}
body[data-view='intro'] .progress { display: none; }

/* over the windows, a round arrow follows the mouse */
.cursor { position: fixed; left: 0; top: 0; z-index: 25; pointer-events: none; display: none; }
.cursor i {
  display: grid; place-items: center; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%;
  background: var(--ink); color: #fff; font-style: normal; font-size: 24px;
  transform: scale(0); transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.cursor.on i { transform: scale(1); }
body.is-leaving .cursor i, body:not([data-view='intro']) .cursor i { transform: scale(0); }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }

/* the reading column: solid paper, so the words never compete with the scene */
.sheet {
  position: fixed; inset: 0 auto 0 0; width: var(--column); z-index: 5; pointer-events: none;
  background: linear-gradient(90deg, var(--paper) 90%, rgba(var(--paper-rgb), 0) 100%);
}
body[data-view='intro'] .sheet { display: none; }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-content: center;
  background: var(--paper);
  transition: opacity 0.55s ease 0.4s, visibility 0s linear 0.95s;
}
.loader-inner {
  display: grid; justify-items: center; gap: 22px;
  transition: opacity 0.35s ease 0.2s, transform 0.5s cubic-bezier(0.4, 0, 0.7, 0.2) 0.2s;
}
/* the same arched window as the start screen, with the mark rising into it */
.loader-arch { position: relative; width: 150px; height: 184px; display: grid; place-items: center; }
.loader-arch svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lf { fill: none; stroke: var(--ink); stroke-linecap: round; stroke-dasharray: 1; }
.lf-outer { stroke-width: 1.7; animation: draw 1.2s ease-in-out both; }
.lf-inner { stroke-width: 0.8; opacity: 0.55; animation: draw 1.2s ease-in-out 0.15s both; }
.lf-sill { stroke-width: 3; animation: draw 0.7s ease-out both; }
.loader-arch img { width: 96px; margin-top: 26px; animation: fill-up 1.1s cubic-bezier(0.3, 0.6, 0.3, 1) 0.3s both; }
.loader-track { width: 150px; height: 2px; overflow: hidden; background: var(--line); border-radius: 2px; }
.loader-track i {
  display: block; height: 100%; background: var(--logo-blue);
  transform: scaleX(var(--load, 0.06)); transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.loader-word { font-size: 14px; letter-spacing: 0.04em; color: var(--ink-soft); }
html.is-ready .loader { opacity: 0; visibility: hidden; }
html.is-ready .loader-inner { opacity: 0; transform: translateY(-16px); }
@keyframes fill-up { from { clip-path: inset(100% 0 0 0); transform: translateY(8px); } }

/* ---------- top bar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(28px, 5vw, 76px);
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #000; }
.brand img { height: 40px; width: auto; }
.brand-text { display: grid; line-height: 1.1; border-left: 2px solid var(--logo-blue); padding-left: 12px; }
.brand-name { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; font-size: 17px; letter-spacing: 0.14em; color: #000; white-space: nowrap; }
.brand-sub { font-size: 9px; letter-spacing: 0.26em; color: var(--logo-blue); margin-top: 3px; font-weight: 700; }

.topnav { display: flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 500; color: var(--ink); }
.topnav a, .navlink {
  text-decoration: none; padding: 8px 16px; border: 0; background: none; border-radius: 999px;
  transition: background 0.25s, color 0.25s;
}
.topnav a:hover, .navlink:hover { background: rgba(var(--paper-rgb), 0.9); }
.topnav a[aria-current='page'] { background: var(--ink); color: #fff; }
.navlink { background: rgba(var(--paper-rgb), 0.75); }

/* language: always in the top right corner */
.lang { position: relative; margin-left: 6px; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px 8px 11px;
  border: 1.5px solid var(--ink); border-radius: 999px; background: rgba(var(--paper-rgb), 0.85);
  font-weight: 700; font-size: 14.5px; letter-spacing: 0.04em; line-height: 1;
  transition: background 0.25s, color 0.25s;
}
.lang-btn:hover, .lang-btn[aria-expanded='true'] { background: var(--ink); color: #fff; }
.lang-caret { transition: transform 0.2s; }
.lang-btn[aria-expanded='true'] .lang-caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 156px;
  margin: 0; padding: 6px; list-style: none;
  background: var(--paper); border-radius: 12px;
  box-shadow: 0 18px 44px -18px rgba(40, 30, 20, 0.5), 0 0 0 1px var(--line);
}
.lang-menu button {
  display: block; width: 100%; padding: 9px 14px; border: 0; border-radius: 8px;
  background: none; text-align: left; font-size: 16px; font-weight: 500; color: var(--ink);
}
.lang-menu button:hover { background: #f2eadb; }
.lang-menu button[aria-current='true'] { color: var(--accent); font-weight: 700; }
body[data-view='intro'] .topnav a { display: none; }

/* ---------- intro ---------- */
.intro { position: fixed; inset: 0; z-index: 10; pointer-events: none; transition: opacity 0.5s ease; }
body:not([data-view='intro']) .intro { opacity: 0; visibility: hidden; }
body.is-leaving .intro-head, body.is-leaving .portal-label { opacity: 0; }

.intro-head {
  position: absolute; top: clamp(78px, 10vh, 112px); left: 0; right: 0;
  text-align: center; padding: 0 24px; transition: opacity 0.4s ease;
}
.intro-head h1 { font-size: clamp(40px, 4.6vw, 68px); line-height: 1.05; }
.intro-head p { margin: 12px auto 0; max-width: 700px; font-size: 19px; color: var(--ink-soft); }

.portal { position: absolute; pointer-events: auto; border: 0; padding: 0; background: transparent; outline: none; }
/* the frame belongs to the page, so nothing that moves in the window can touch it */
.portal-frame { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; transition: opacity 0.3s ease; }
.portal-frame path { fill: none; stroke: var(--ink); stroke-linecap: round; stroke-dasharray: 1; }
.f-outer { stroke-width: 1.7; }
.f-inner { stroke-width: 0.8; opacity: 0.55; }
.f-sill { stroke-width: 3; }
.f-ledge { stroke-width: 1; opacity: 0.7; }
body.is-leaving .portal-frame { opacity: 0; }
/* the first moments: the words rise, then the frames draw themselves */
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }
@keyframes rise-label { from { opacity: 0; transform: translate(-50%, 14px); } }
@keyframes draw { from { stroke-dashoffset: 1; } }
@keyframes word-rise { from { transform: translateY(115%); } }
html.is-ready .intro-head h1 .w > span { animation: word-rise 0.6s cubic-bezier(0.2, 0.75, 0.2, 1) calc(0.3s + var(--i) * 40ms) both; }
html.is-ready .intro-head p { animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.6s both; }
html.is-ready .portal-label { animation: rise-label 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) 1s both; }
html.is-ready .f-sill, html.is-ready .f-ledge { animation: draw 0.45s ease-out 0.6s both; }
html.is-ready .f-outer { animation: draw 0.8s ease-in-out 0.65s both; }
html.is-ready .f-inner { animation: draw 0.8s ease-in-out 0.7s both; }
.portal:focus-visible .f-outer { stroke: var(--accent); stroke-width: 3; }
.portal-label {
  position: absolute; left: 50%; top: calc(100% + 32px); transform: translateX(-50%);
  display: grid; justify-items: center; gap: 2px;
  width: min(330px, 34vw);
  text-align: center; pointer-events: none;
  transition: opacity 0.4s ease;
}
.portal-name { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 2.5vw, 36px); line-height: 1.15; color: var(--ink); }
.portal-sub { font-size: 16.5px; line-height: 1.4; color: var(--ink-soft); }
.portal-go { margin-top: 6px; font-weight: 700; font-size: 16px; color: var(--accent); }
.portal:hover .portal-go, .portal:focus-visible .portal-go, .portal.is-hot .portal-go { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 8px; }
.portal.is-hot .arrow, .more a:hover .arrow { transform: translateX(6px); }

/* ---------- the page that isn't there ---------- */
.nf-main {
  min-height: 100vh; min-height: 100svh; display: grid; place-content: center; justify-items: center;
  padding: 100px 24px 48px; text-align: center;
}
.nf-code {
  display: flex; align-items: flex-end;
  font-family: var(--serif); font-weight: 600; line-height: 0.8; letter-spacing: -0.02em; color: var(--ink);
  font-size: clamp(116px, min(24vw, 32vh), 270px);
}
.nf-window { position: relative; width: 0.62em; height: 0.74em; margin: 0 0.17em 0.02em; }
.nf-view { position: absolute; inset: 0; overflow: hidden; border-radius: 999px 999px 0 0; background: #d9ebe8; }
.nf-view canvas { display: block; width: 100%; height: 100%; }
.nf-main h1 { margin-top: 44px; font-size: clamp(30px, 4vw, 48px); line-height: 1.12; }
.nf-main p { margin: 12px 0 0; max-width: 520px; font-size: 18px; }
.nf-main .actions { justify-content: center; margin-top: 26px; }

/* ---------- story panels ---------- */
.story { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
.panel {
  position: absolute; left: clamp(28px, 5vw, 76px); top: 50%;
  width: calc(var(--column) - clamp(28px, 5vw, 76px) - 56px);
  opacity: 0; visibility: hidden;
  transform: translateY(calc(-50% - 16px + var(--y, 0px)));
  will-change: opacity, transform;
}
.panel.is-live { pointer-events: auto; }

/* as a panel arrives, its headline rises word by word and the rest follows in turn */
@media (prefers-reduced-motion: no-preference) {
  .panel .w > span { transform: translateY(115%); transition: transform 0.25s ease; }
  .panel.is-live .w > span { transform: none; transition: transform 0.6s cubic-bezier(0.2, 0.75, 0.2, 1) calc(var(--i) * 35ms); }
  .panel .lead, .panel .roles div, .panel .facts div, .panel .overview-title, .panel .overview, .panel .actions, .panel .more, .panel .foot {
    opacity: 0; transform: translateY(16px); transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .panel.is-live .lead, .panel.is-live .roles div, .panel.is-live .facts div, .panel.is-live .overview-title, .panel.is-live .overview, .panel.is-live .actions, .panel.is-live .more, .panel.is-live .foot {
    opacity: 1; transform: none;
    transition: opacity 0.6s ease var(--d, 0.2s), transform 0.75s cubic-bezier(0.2, 0.75, 0.2, 1) var(--d, 0.2s);
  }
  .panel .roles div:first-child, .panel .facts div:nth-child(1), .panel .actions { --d: 0.32s; }
  .panel .roles div:last-child, .panel .facts div:nth-child(2), .panel .more { --d: 0.44s; }
  .panel .facts div:nth-child(3), .panel .overview-title, .panel .foot { --d: 0.54s; }
  .panel .overview { --d: 0.62s; }
}
/* the step's number, large and quiet behind its words */
@media (min-width: 1025px) {
  .step::before {
    content: attr(data-n); position: absolute; right: 0; top: -0.72em; z-index: -1; pointer-events: none;
    font-family: var(--serif); font-weight: 500; font-size: clamp(120px, 13vw, 200px); line-height: 1;
    color: var(--ink); opacity: 0.05;
  }
}

.step-of { margin: 0 0 12px; font-size: 17px; font-weight: 700; letter-spacing: 0.01em; color: var(--accent); }
.panel h1, .panel h2 { font-size: clamp(40px, 3.9vw, 60px); line-height: 1.07; margin-bottom: 18px; }
html[lang='ru'] .panel h1, html[lang='ru'] .panel h2 { font-size: clamp(34px, 3.3vw, 50px); }
html[lang='ko'] .panel h1, html[lang='ko'] .panel h2 { font-size: clamp(36px, 3.5vw, 54px); line-height: 1.2; letter-spacing: -0.03em; }
html[lang='ko'] h1 { letter-spacing: -0.03em; }
.lead { margin: 0 0 24px; font-size: clamp(20px, 1.6vw, 24px); line-height: 1.45; color: var(--ink); }

/* you / we: exactly who does what at each step */
.roles { margin: 0; display: grid; gap: 12px; }
.roles div { display: grid; grid-template-columns: minmax(64px, max-content) 1fr; gap: 14px; align-items: start; padding: 15px 18px; border-radius: 14px; background: #f2eadb; }
.roles div:last-child { background: var(--accent-soft); }
.roles dt { font-weight: 700; font-size: 19px; line-height: 1.4; color: var(--ink); }
.roles div:last-child dt { color: var(--accent); }
.roles dd { margin: 0; font-size: 19px; line-height: 1.4; color: var(--ink); }

.facts { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 0 0 20px; }
.facts div { min-width: 96px; }
.facts dt { font-family: var(--serif); font-weight: 600; font-size: 30px; line-height: 1.1; color: var(--ink); }
.facts dd { margin: 0; font-size: 15.5px; line-height: 1.3; color: var(--ink-soft); }

.overview-title { margin: 0 0 8px; font-weight: 700; font-size: 16px; color: var(--ink); }
.overview { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; counter-reset: s; }
.overview li { counter-increment: s; }
.overview button { border: 0; background: none; padding: 2px 0; font-size: 16.5px; color: var(--ink); text-align: left; }
.overview button::before { content: counter(s) '.'; font-weight: 700; color: var(--accent); margin-right: 8px; }
.overview button:hover { text-decoration: underline; text-underline-offset: 3px; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-block; padding: 14px 22px; border-radius: 10px;
  background: var(--ink); color: #fff; text-decoration: none; font-size: 17px; font-weight: 500;
  transition: color 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
}
/* on hover, colour rises through the button like water */
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--accent);
  transform: translateY(101%); transition: transform 0.4s cubic-bezier(0.2, 0.75, 0.2, 1);
}
.btn:hover::before { transform: none; }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost:hover { color: #fff; box-shadow: none; }
.more { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 18px; font-size: 16.5px; font-weight: 500; color: var(--ink); }
.foot { margin: 22px 0 0; font-size: 14px; color: var(--ink-soft); }
.more a { text-underline-offset: 4px; }

/* the step bar: always shows where you are in the process */
.stepper {
  position: fixed; left: clamp(28px, 5vw, 76px); bottom: 26px; z-index: 12; pointer-events: auto;
  display: flex; align-items: center; gap: 16px;
}
.stepper ol { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.stepper li { display: flex; align-items: center; }
.stepper li + li::before { content: ''; width: 16px; height: 2px; background: var(--line); }
.stepper li.is-done + li::before { background: var(--accent); }
.stepper button {
  width: 32px; height: 32px; padding: 0; border-radius: 50%;
  border: 2px solid var(--line); background: var(--paper);
  font-size: 15px; font-weight: 700; color: var(--ink-soft);
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.stepper li.is-done button { border-color: var(--accent); color: var(--accent); }
.stepper li.is-active button { background: var(--accent); border-color: var(--accent); color: #fff; }
.stepper button:hover { border-color: var(--ink); }
.scroll-cue { margin: 0; font-size: 15.5px; font-weight: 500; color: var(--ink-soft); white-space: nowrap; transition: opacity 0.3s; }
.scroll-cue.is-off { opacity: 0; }
.scroll-cue .arrow { animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }

/* ---------- contact card ---------- */
.contact-pop {
  position: fixed; z-index: 40; top: 84px; right: clamp(28px, 5vw, 76px);
  width: min(420px, calc(100vw - 32px));
  padding: 26px 28px 28px;
  background: var(--paper);
  border-radius: 14px;
  box-shadow: 0 24px 60px -24px rgba(40, 30, 20, 0.5);
}
.contact-pop h2 { font-size: 36px; margin-bottom: 4px; }
.contact-pop p { margin: 0 0 16px; font-size: 17px; }
.contact-close { position: absolute; top: 10px; right: 14px; border: 0; background: none; font-size: 28px; line-height: 1; color: var(--ink-soft); }

/* ---------- tablet & phone: scene on top, reading sheet below ---------- */
@media (max-width: 1024px) {
  :root { --sheet-h: 56vh; }
  .sheet {
    inset: auto 0 0 0; width: auto; height: var(--sheet-h);
    background: var(--paper);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -10px 30px -18px rgba(40, 30, 20, 0.35);
  }
  /* the words sit in the middle of the white sheet, above the step bar */
  .panel {
    top: auto; bottom: 60px; left: 24px; right: 24px; width: auto; max-width: 680px; margin: 0 auto;
    height: calc(var(--sheet-h) - 72px); overflow: hidden auto; /* the words wrap; they never scroll sideways */
    display: flex; flex-direction: column;
    transform: translateY(var(--y, 0px));
  }
  /* two springs: they centre the text when it fits, and collapse so it can scroll when it doesn't */
  .panel::before, .panel::after { content: ''; flex: 1 0 0; }
  .stepper { left: 24px; right: 24px; bottom: 16px; justify-content: space-between; }
  html[lang] .panel h1, html[lang] .panel h2 { font-size: 32px; margin-bottom: 8px; }
  .lead { font-size: 18px; margin-bottom: 12px; }
  .roles dd { font-size: 16px; }
  .facts dt { font-size: 24px; }
  .overview-title, .overview { display: none; }
}

@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .topbar { padding: 12px 16px; }
  .brand img { height: 32px; }
  .brand-text { display: none; }
  .topnav { font-size: 15px; gap: 2px; }
  body:not([data-view='intro']) .topnav a { display: none; }
  .lang { margin-left: 2px; }
  .lang-btn { padding: 7px 9px; }
  .topnav a, .navlink { padding: 6px 10px; }
  .contact-pop { top: 62px; right: 16px; }

  .intro-head { top: 58px; }
  .intro-head h1 { font-size: 30px; }
  .intro-head p { font-size: 15px; margin-top: 6px; line-height: 1.42; }
  .portal-label { width: 44vw; top: calc(100% + 26px); }
  .portal-name { font-size: 23px; }
  .portal-sub { font-size: 13.5px; line-height: 1.3; }
  .portal-go { font-size: 14px; margin-top: 3px; }

  .panel { left: 18px; right: 18px; bottom: 60px; }
  html[lang] .panel h1, html[lang] .panel h2 { font-size: 28px; }
  .lead { font-size: 17px; }
  .roles div { grid-template-columns: minmax(44px, max-content) 1fr; gap: 8px; padding: 9px 11px; }
  html[lang] .panel--title h1 { font-size: 26px; line-height: 1.14; }
  .panel--title .lead { font-size: 16px; line-height: 1.38; }
  .facts { flex-wrap: nowrap; gap: 2px 14px; margin-bottom: 8px; }
  .facts div { min-width: 0; }
  .facts dd { font-size: 13.5px; }
  .foot { margin-top: 6px; font-size: 13px; }
  .more { margin-top: 12px; }
  .roles dt { font-size: 15px; }
  .roles dd { font-size: 15.5px; line-height: 1.36; }
  .btn { padding: 12px 16px; font-size: 16px; }
  .stepper { left: 18px; right: 18px; }
  .stepper button { width: 28px; height: 28px; font-size: 14px; }
  .stepper li + li::before { width: 10px; }
  .scroll-cue { display: none; }
}

@media (max-width: 900px) {
  .brand-text { display: none; }
}

/* short laptop screens: a little less type, so the longest panels clear the header */
@media (min-width: 1025px) and (max-height: 800px) {
  html[lang] .panel h1, html[lang] .panel h2 { font-size: clamp(32px, 3vw, 42px); margin-bottom: 12px; }
  .lead { font-size: 18px; margin-bottom: 14px; }
  .facts { margin-bottom: 12px; }
  .facts dt { font-size: 25px; }
  .facts dd { font-size: 14.5px; }
  .overview-title { font-size: 15px; margin-bottom: 4px; }
  .overview { gap: 2px 18px; }
  .overview button { font-size: 15.5px; }
  .roles div { padding: 11px 16px; }
  .roles dt, .roles dd { font-size: 17px; }
}

/* small phones: a little more sheet, a little less type, so nothing has to scroll */
@media (max-width: 760px) and (max-height: 740px) {
  :root { --sheet-h: 62vh; }
  html[lang] .panel h1, html[lang] .panel h2 { font-size: 25px; margin-bottom: 6px; }
  .lead { font-size: 16px; margin-bottom: 10px; }
  .roles dd { font-size: 14px; line-height: 1.32; }
  .facts { margin-bottom: 4px; }
  .step-of { margin-bottom: 6px; font-size: 14px; }
  .roles { gap: 8px; }
  .roles div { padding: 7px 10px; }
  .btn { padding: 10px 14px; font-size: 15px; }
  .actions { gap: 8px; }
  .more { margin-top: 10px; font-size: 15px; }
  .foot { display: none; }
  .facts dt { font-size: 20px; }
  .facts dd { font-size: 13.5px; }
  .panel--title .step-of { margin-bottom: 4px; font-size: 14px; }
  html[lang] .panel--title h1 { font-size: 23px; line-height: 1.12; }
  .panel--title .lead { font-size: 15px; line-height: 1.34; margin-bottom: 8px; }
}

/* short screens: keep the essentials */
@media (max-height: 700px) {
  .portal-sub { display: none; }
  .intro-head p { font-size: 15.5px; }
}

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