/* Kordaat Freight Group · concept build
   System: galvanised / ink / safety orange. Archivo (width axis) + IBM Plex Mono.
   Radii 0–2px. Motion: expo.out enters, power3.inOut moves, linear scrubs. */

@font-face { font-family: "Archivo Fallback"; src: local("Arial"); size-adjust: 104%; ascent-override: 88%; descent-override: 21%; line-gap-override: 0%; }
@font-face { font-family: "Plex Fallback"; src: local("Courier New"); size-adjust: 100%; ascent-override: 102%; descent-override: 27%; }

:root {
  --paper: #ECEDE9; --paper-2: #E1E3DE; --line: #C6C9C3; --ink: #121619; --ink-2: #4A5055;
  --on-dark: #E6E7E3; --on-dark-2: #9BA1A4; --line-dark: #2C3236;
  --go: #FF5B1F; --go-h: #FF7642;
  --f: "Archivo", "Archivo Fallback", Arial, sans-serif;
  --mono: "IBM Plex Mono", "Plex Fallback", ui-monospace, Menlo, monospace;
  --m: clamp(20px, 4.4vw, 72px);
  --e-out: cubic-bezier(.16, 1, .3, 1); --e-io: cubic-bezier(.76, 0, .24, 1); --e-ui: cubic-bezier(.23, 1, .32, 1);
  --t-fast: 180ms; --t-mid: 420ms;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--f); font-variation-settings: "wdth" 100; overflow-x: clip; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, canvas { display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--go); outline-offset: 3px; }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
::selection { background: var(--go); color: var(--ink); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 15px 20px 15px 22px; border: 0; border-radius: 2px; text-decoration: none; cursor: pointer; font: 600 15px/1 var(--f); font-variation-settings: "wdth" 108; letter-spacing: .005em; transition: background-color var(--t-fast) var(--e-ui), transform 140ms var(--e-ui); }
.btn:active { transform: scale(.97); }
.btn .ico { transition: transform var(--t-mid) var(--e-out); }
.btn:hover .ico { transform: translateX(4px); }
.btn-go { background: var(--go); color: var(--ink); }
.btn-go:hover { background: var(--go-h); }
.btn-sm { padding: 11px 14px; font-size: 14px; }
.btn-wide { width: 100%; justify-content: space-between; }

/* ---------- Header ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; gap: 28px; height: 64px; padding: 0 var(--m); background: color-mix(in oklab, var(--paper) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color var(--t-mid); }
.nav.scrolled { border-bottom-color: var(--line); }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-w { font: 900 22px/1 var(--f); font-variation-settings: "wdth" 125; letter-spacing: -.02em; text-transform: uppercase; }
.brand-s { font: 500 12px/1 var(--mono); color: var(--ink-2); }
.nav-links { display: none; gap: 26px; }
.nav-links a { text-decoration: none; font-size: 15px; font-weight: 500; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform var(--t-mid) var(--e-out); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 2px; }
.lang button { background: none; border: 0; padding: 7px 9px; font: 500 12px/1 var(--mono); cursor: pointer; color: var(--ink-2); }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.nav .btn-sm { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 330svh; }
.hero-pin { position: sticky; top: 0; height: 100svh; min-height: 560px; overflow: hidden; }
.hero-h { position: absolute; z-index: 2; left: var(--m); top: calc(64px + 3.2svh); margin: 0; font: 800 clamp(52px, 14.6vw, 178px)/.84 var(--f); font-variation-settings: "wdth" 125; letter-spacing: -.045em; pointer-events: none; }
.hl { display: block; overflow: hidden; white-space: nowrap; padding-bottom: .16em; margin-bottom: -.16em; }
.hl > span { display: inline-block; }
.hl2 { padding-left: .9em; }
.hero-side { position: absolute; z-index: 2; left: var(--m); right: var(--m); top: calc(64px + 3.2svh + 2 * .84 * clamp(52px, 14.6vw, 178px) + 18px); }
.hero-lede { margin: 0; max-width: 34ch; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.stage { position: absolute; inset: 0; z-index: 1; touch-action: pan-y; }
.stack-cv { width: 100%; height: 100%; opacity: 0; transition: opacity .6s var(--e-out); }
.stack-cv.on { opacity: 1; }
.box-tip { position: absolute; z-index: 3; left: 0; top: 0; pointer-events: none; padding: 9px 11px; background: var(--ink); color: var(--paper); font: 400 11.5px/1.45 var(--mono); white-space: nowrap; border-radius: 1px; transform: translate(-50%, calc(-100% - 14px)); }
.box-tip b { font-weight: 500; color: var(--go); }
.box-tip a { color: var(--go); pointer-events: auto; }

.voy { position: absolute; z-index: 2; left: var(--m); right: var(--m); bottom: 186px; max-width: 380px; }
@media (min-width: 1024px) { .voy { left: auto; width: 360px; bottom: 176px; } .hero-side { left: auto; right: var(--m); top: calc(64px + 4.4svh); width: min(30ch, 34vw); } }
.voy-k { margin: 0 0 10px; font-size: 11px; color: var(--ink-2); }
.voy-steps { list-style: none; margin: 0; padding: 0; display: grid; }
.voy-steps li { grid-area: 1 / 1; display: flex; gap: 12px; opacity: 0; transform: translateY(10px); transition: opacity .5s var(--e-out), transform .7s var(--e-out); }
.voy-steps li.on { opacity: 1; transform: none; }
.voy-steps span { font-size: 12px; color: var(--ink-2); padding-top: 3px; font-weight: 500; }
.voy-steps p { margin: 0; font-size: 15px; line-height: 1.42; font-weight: 500; }

.route { position: absolute; z-index: 2; left: var(--m); right: var(--m); bottom: 112px; height: 56px; }
.route-svg { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 40px; overflow: visible; }
.r-base { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; opacity: .55; }
.r-done { stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; transform-origin: 0 50%; transform: scaleX(0); }
.ports { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.ports li { position: absolute; top: 14px; left: calc(var(--x) * 100%); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; }
.ports li::before { content: ""; width: 9px; height: 9px; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 50%; margin-bottom: 6px; }
.ports li:first-child { transform: translateX(-4.5px); align-items: flex-start; }
.ports li:last-child { transform: translateX(calc(-100% + 4.5px)); align-items: flex-end; }
.ports li.passed::before { background: var(--ink); }
.ports li.you b { color: var(--ink); }
.ports b { font-weight: 500; font-size: 11px; }
.ports span { color: var(--ink-2); display: none; }
.vessel { position: absolute; top: 13px; left: 0; width: 15px; height: 15px; margin-left: -7.5px; background: var(--go); border-radius: 50%; box-shadow: 0 0 0 4px color-mix(in oklab, var(--go) 22%, transparent); will-change: transform; }
.vessel .day { box-shadow: none; }
.day { position: absolute; left: 7px; bottom: 22px; white-space: nowrap; font-size: 11px; color: var(--ink-2); }
.day b { color: var(--ink); font-weight: 500; }
.hint { margin: 14px 0 0; font-size: 11px; color: var(--ink-2); max-width: 40ch; }
.hint-touch { display: none; }
@media (hover: none) { .hint-fine { display: none; } .hint-touch { display: inline; } }

/* ---------- Section headings ---------- */
.sec-h { margin: 0; font: 750 clamp(34px, 5.4vw, 84px)/.94 var(--f); font-variation-settings: "wdth" 118; letter-spacing: -.035em; max-width: 15ch; }
.sub { color: var(--ink-2); max-width: 46ch; margin: 18px 0 0; font-size: 16px; }
.split .ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.split .ln > span { display: inline-block; }

/* ---------- Thesis ---------- */
.thesis { padding: clamp(96px, 16vh, 180px) var(--m) clamp(80px, 12vh, 140px); display: grid; gap: 40px; border-top: 1px solid var(--line); }
.thesis-h { margin: 0; font: 700 clamp(30px, 4.3vw, 66px)/1.02 var(--f); font-variation-settings: "wdth" 112; letter-spacing: -.03em; max-width: 19ch; }
.thesis-r p { margin: 0 0 32px; max-width: 44ch; font-size: 17px; }
.spec { margin: 0; display: grid; border-top: 1px solid var(--ink); }
.spec div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.spec dt { font-size: 12px; color: var(--ink-2); padding-top: 3px; }
.spec dd { margin: 0; font-size: 15px; font-weight: 500; }

/* ---------- Modes ---------- */
.modes { background: var(--paper-2); padding: clamp(88px, 14vh, 160px) var(--m); }
.modes-head { margin-bottom: clamp(40px, 7vh, 80px); }
.mode-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.mode { display: grid; grid-template-columns: 72px 1fr; column-gap: 18px; row-gap: 6px; padding: 26px 0 28px; border-bottom: 1px solid var(--line); align-items: start; }
.mode-ic { grid-row: span 3; width: 72px; height: 48px; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; transition: transform .6s var(--e-out); }
.mode:hover .mode-ic { transform: translateX(6px); }
.mode h3 { margin: 0; font: 700 clamp(21px, 2.3vw, 34px)/1.05 var(--f); font-variation-settings: "wdth" 120; letter-spacing: -.02em; }
.mode p { margin: 0; color: var(--ink-2); max-width: 52ch; font-size: 15.5px; }
.mode .mode-t { font-size: 12px; color: var(--ink); }

/* ---------- Hinge (the orange field) ---------- */
.hinge { background: var(--go); color: var(--ink); padding: clamp(80px, 14vh, 150px) var(--m) clamp(64px, 10vh, 110px); overflow: hidden; }
.hinge-h { margin: 0 0 clamp(36px, 6vh, 64px); font: 900 12vw/.82 var(--f); font-variation-settings: "wdth" 125; letter-spacing: -.05em; white-space: nowrap; }
.hinge-grid { display: grid; gap: 36px; align-items: end; }
.hinge-p { margin: 0; max-width: 40ch; font-size: 17px; font-weight: 500; }
.hinge-map { width: 100%; height: auto; max-width: 620px; }
.hm-lines path { fill: none; stroke: var(--ink); stroke-width: 1.6; }
.hm-hub { fill: var(--ink); }
.hm-dots circle { fill: var(--go); stroke: var(--ink); stroke-width: 1.6; }
.hm-t text { font-size: 12.5px; fill: var(--ink); font-family: var(--mono); }

/* ---------- Plan (tool) ---------- */
.plan { background: var(--ink); color: var(--on-dark); padding: clamp(88px, 14vh, 160px) var(--m); }
.plan .sub { color: var(--on-dark-2); }
.plan-head { margin-bottom: 44px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line-dark); margin-bottom: 36px; overflow-x: auto; scrollbar-width: none; }
.tabs button { flex: none; background: none; border: 0; padding: 14px 2px; margin-right: 26px; font-weight: 600; font-size: 16px; color: var(--on-dark-2); cursor: pointer; position: relative; font-variation-settings: "wdth" 108; }
.tabs button[aria-selected="true"] { color: var(--on-dark); }
.tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--go); transform: scaleX(0); transform-origin: left; transition: transform var(--t-mid) var(--e-out); }
.tabs button[aria-selected="true"]::after { transform: scaleX(1); }
.pane { display: grid; gap: 40px; }
.pane[hidden] { display: none; }
.lane-f, .trk-f { display: grid; gap: 22px; align-content: start; }
.f-row { display: grid; gap: 9px; }
.f-k { font-size: 12px; color: var(--on-dark-2); }
.seg { display: flex; border: 1px solid var(--line-dark); border-radius: 2px; }
.seg-wrap { flex-wrap: wrap; }
.seg label { flex: 1 1 auto; position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: block; padding: 11px 12px; text-align: center; font-size: 14px; font-weight: 500; white-space: nowrap; border-right: 1px solid var(--line-dark); transition: background-color var(--t-fast), color var(--t-fast); cursor: pointer; }
.seg label:last-child span { border-right: 0; }
.seg input:checked + span { background: var(--on-dark); color: var(--ink); }
.seg input:focus-visible + span { outline: 2px solid var(--go); outline-offset: -2px; }
.seg input:disabled + span { opacity: .28; cursor: not-allowed; }
.seg label:hover input:not(:checked):not(:disabled) + span { background: #1C2226; }
select, input[type="date"] { width: 100%; background: transparent; border: 1px solid var(--line-dark); border-radius: 2px; padding: 12px 12px; font-size: 16px; color: var(--on-dark); color-scheme: dark; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E6E7E3' stroke-width='1.8'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
select option { background: var(--ink); }
.lane-out { border-top: 2px solid var(--on-dark); padding-top: 22px; display: grid; align-content: start; }
.lo-route { margin: 0 0 18px; font-size: 13px; color: var(--on-dark-2); }
.lo-k { margin: 0; font-size: 14px; color: var(--on-dark-2); }
.lo-big { margin: 4px 0 6px; font: 800 clamp(58px, 9vw, 128px)/.9 var(--f); font-variation-settings: "wdth" 125; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.lo-big span { font-size: .28em; letter-spacing: 0; font-weight: 600; font-variation-settings: "wdth" 110; margin-left: .1em; }
.lo-door { margin: 0 0 26px; color: var(--on-dark-2); font-size: 15px; }
.lo-door b { color: var(--on-dark); font-weight: 600; }
.deps { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 13px; margin-bottom: 18px; }
.deps caption { text-align: left; font-size: 12px; color: var(--on-dark-2); padding-bottom: 8px; }
.deps th { text-align: left; font-weight: 400; color: var(--on-dark-2); padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line-dark); font-family: var(--f); font-size: 13px; }
.deps td { padding: 11px 8px 11px 0; border-bottom: 1px solid var(--line-dark); white-space: nowrap; }
.deps tr:first-child td { color: var(--on-dark); }
.deps tr + tr td { color: var(--on-dark-2); }
.lo-co2 { margin: 0 0 28px; font-size: 13.5px; color: var(--on-dark-2); max-width: 52ch; }
.lo-co2 b { color: var(--on-dark); font-weight: 600; }
.lane-out .btn { justify-self: start; }

.trk-l { font-size: 12px; color: var(--on-dark-2); font-family: var(--mono); }
.trk-row { display: flex; gap: 8px; }
.trk-row input { flex: 1; min-width: 0; background: transparent; border: 0; border-bottom: 2px solid var(--on-dark); padding: 10px 0; font-size: clamp(22px, 3vw, 34px); letter-spacing: .04em; color: var(--on-dark); border-radius: 0; text-transform: uppercase; }
.trk-row input:focus { outline: none; border-bottom-color: var(--go); }
.trk-try { margin: 0; font-size: 13px; color: var(--on-dark-2); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { background: none; border: 1px solid var(--line-dark); border-radius: 2px; padding: 6px 9px; font-size: 12px; cursor: pointer; color: var(--on-dark); }
.chip:hover { border-color: var(--on-dark-2); }
.trk-msg { margin: 0; min-height: 1.5em; font-size: 14px; color: var(--on-dark-2); }
.trk-msg.bad { color: #FF9C77; }
.trk-out { display: grid; gap: 26px; align-content: start; }
.tk-head { border-top: 2px solid var(--on-dark); padding-top: 20px; display: grid; gap: 4px; }
.tk-id { margin: 0; font-size: 13px; color: var(--on-dark-2); }
.tk-status { margin: 0; font: 700 clamp(24px, 2.8vw, 38px)/1.08 var(--f); font-variation-settings: "wdth" 115; letter-spacing: -.02em; max-width: 22ch; }
.tk-meta { margin: 10px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
.tk-meta div { display: grid; gap: 2px; }
.tk-meta dt { font-size: 12px; color: var(--on-dark-2); font-family: var(--mono); }
.tk-meta dd { margin: 0; font-size: 14px; }
.tk-route { position: relative; height: 54px; margin: 0 4px; }
.tk-route .tr-line { position: absolute; left: 0; right: 0; top: 10px; border-top: 1px dashed var(--on-dark-2); }
.tk-route .tr-done { position: absolute; left: 0; top: 9px; height: 2px; background: var(--on-dark); }
.tk-route .tr-p { position: absolute; top: 5px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font: 400 11px/1 var(--mono); color: var(--on-dark-2); }
.tk-route .tr-p::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--on-dark); background: var(--ink); }
.tk-route .tr-p.done::before { background: var(--on-dark); }
.tk-route .tr-p:first-child { transform: translateX(-4.5px); align-items: flex-start; }
.tk-route .tr-p:last-of-type { transform: translateX(calc(-100% + 4.5px)); align-items: flex-end; }
.tk-route .tr-box { position: absolute; top: 3px; width: 22px; height: 13px; margin-left: -11px; background: var(--go); border-radius: 1px; }
.tk-ev { list-style: none; margin: 0; padding: 0; }
.tk-ev li { display: grid; grid-template-columns: 96px 1fr auto; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-dark); font-size: 14.5px; align-items: baseline; }
.tk-ev .d { font-family: var(--mono); font-size: 12.5px; color: var(--on-dark-2); }
.tk-ev .s { font-family: var(--mono); font-size: 11px; color: var(--on-dark-2); }
.tk-ev li.next { color: var(--on-dark-2); }
.tk-ev li.now .s { color: var(--go); }
.tk-ev li.now { font-weight: 600; }

/* ---------- Cases ---------- */
.cases { padding: clamp(96px, 15vh, 170px) var(--m); display: grid; gap: 28px; }
.cases-note { margin-top: 0; font-size: 14px; }
.case { border-top: 1px solid var(--ink); padding-top: 18px; max-width: 560px; }
.case-tag { margin: 0 0 14px; font-size: 11.5px; display: inline-block; padding: 4px 7px; border: 1px solid var(--ink); border-radius: 1px; }
.case h3 { margin: 0 0 12px; font: 700 clamp(24px, 2.6vw, 38px)/1.04 var(--f); font-variation-settings: "wdth" 115; letter-spacing: -.025em; }
.case p { margin: 0 0 18px; color: var(--ink-2); }
.case-viz { width: 100%; height: auto; margin: 6px 0 22px; overflow: visible; }
.cv-band { fill: var(--paper-2); }
.cv-lim { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 2 4; }
.cv-line { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
.cv-t text, .cv-dt { font-size: 11px; fill: var(--ink-2); font-family: var(--mono); }
.cv-hull { fill: var(--ink); }
.cv-blade { fill: var(--paper); stroke: var(--ink); stroke-width: 1.4; }
.cv-dim { fill: none; stroke: var(--ink); stroke-width: 1; }
.cv-arr { fill: var(--ink); }
.cv-lash { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 2 3; }
.case-d { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 12.5px; }
.case-d dt { color: var(--ink-2); }
.case-d dd { margin: 2px 0 0; }

/* ---------- Run ---------- */
.run { background: var(--paper-2); padding: clamp(88px, 14vh, 160px) var(--m); display: grid; gap: 48px; align-items: center; }
.run-copy p { max-width: 46ch; font-size: 17px; margin: 22px 0 26px; }
.ctl { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); max-width: 560px; }
.ctl li { padding: 14px 0 14px 28px; border-bottom: 1px solid var(--line); position: relative; font-size: 15.5px; }
.ctl li::before { content: ""; position: absolute; left: 0; top: 23px; width: 12px; height: 7px; background: var(--ink); }
.org { width: 100%; height: auto; max-width: 600px; justify-self: center; }
.org-l path { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.org-b rect { fill: var(--paper); stroke: var(--ink); stroke-width: 1.2; }
.org-b .org-main { fill: var(--ink); }
.org-t text { font-family: var(--f); font-size: 15px; font-weight: 600; fill: var(--ink); text-anchor: middle; dominant-baseline: middle; }
.org-t .org-tm { fill: var(--paper); }
.org-t .org-s { font-family: var(--mono); font-size: 11px; font-weight: 400; fill: var(--ink-2); }

/* ---------- Talk ---------- */
.talk { padding: clamp(96px, 15vh, 170px) var(--m); display: grid; gap: 40px; }
.talk-copy p { max-width: 42ch; font-size: 17px; margin: 22px 0; }
.talk-c { font-size: 13.5px; line-height: 1.8; color: var(--ink-2); }
.tf { display: grid; gap: 18px; align-content: start; max-width: 640px; }
.fld { display: grid; gap: 6px; }
.fld span { font-size: 13px; color: var(--ink-2); }
.fld input, .fld textarea { border: 0; border-bottom: 1.5px solid var(--ink); background: transparent; padding: 10px 0; font-size: 17px; border-radius: 0; resize: vertical; }
.fld input:focus, .fld textarea:focus { outline: none; border-bottom-color: var(--go); box-shadow: 0 1.5px 0 var(--go); }
.err { margin: 0; color: #B3330A; font-size: 14px; font-weight: 500; }
.tf-done { max-width: 640px; border-top: 2px solid var(--ink); padding-top: 20px; }
.tf-done-h { font-size: 22px; margin: 0 0 10px; }
.tf-done:focus { outline: none; }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: var(--on-dark); padding: clamp(56px, 10vh, 110px) var(--m) 90px; overflow: hidden; }
.foot-word { margin: 0 0 clamp(40px, 7vh, 80px); font: 900 18.2vw/.8 var(--f); font-variation-settings: "wdth" 125; letter-spacing: -.055em; text-transform: uppercase; margin-left: -.04em; white-space: nowrap; }
.foot-grid { display: grid; gap: 28px; padding-bottom: 34px; border-bottom: 1px solid var(--line-dark); }
.foot-grid p { margin: 0; font-size: 14.5px; color: var(--on-dark); }
.foot-grid .foot-k { font-size: 12px; color: var(--on-dark-2); margin-bottom: 8px; }
.foot-credit { padding: 26px 0; font-size: 14px; display: grid; gap: 6px; max-width: 80ch; }
.foot-credit p { margin: 0; }
.foot-credit .foot-cr { color: var(--on-dark-2); font-size: 13px; margin-top: 6px; }
.foot-tr { display: none; }
html.nl .foot-tr { display: block; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 12px; color: var(--on-dark-2); margin: 0; }

.concept-badge { position: fixed; left: 12px; bottom: 12px; z-index: 60; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 2px; background: var(--ink); color: var(--paper); font: 500 12px/1.2 var(--f); text-decoration: none; box-shadow: 0 8px 24px -12px rgba(18, 22, 25, .6); transition: transform var(--t-fast); }
.concept-badge:hover { transform: translateY(-1px); }

/* ---------- Reveal states (headings + rows only) ---------- */
.js:not(.rm) .split:not(.ready) { visibility: hidden; }
.js:not(.rm) .hero-h .hl > span { transform: translateY(105%); }
.js:not(.rm) .hero-side, .js:not(.rm) .voy, .js:not(.rm) .route { opacity: 0; }

/* ---------- Tablet ---------- */
@media (min-width: 700px) {
  .ports span { display: block; }
  .ports b { font-size: 11.5px; }

  .thesis { grid-template-columns: repeat(12, 1fr); }
  .thesis-h { grid-column: 1 / span 8; }
  .thesis-r { grid-column: 8 / span 5; margin-top: 18vh; }
  .mode { grid-template-columns: 110px minmax(0, 1.05fr) minmax(0, 1fr) 190px; column-gap: 28px; padding: 30px 0; align-items: baseline; }
  .mode-ic { grid-row: auto; width: 96px; height: 64px; align-self: center; }
  .mode .mode-t { text-align: right; }
  .hinge-grid { grid-template-columns: 1fr 1.2fr; }
  .tk-meta { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cases { grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 20px; }
  .cases .sec-h { grid-column: 1 / span 7; }
  .cases-note { grid-column: 1 / span 6; }
  .case-a { grid-column: 2 / span 6; margin-top: 40px; }
  .case-b { grid-column: 7 / span 6; margin-top: 16vh; }
  .run { grid-template-columns: 1fr 1fr; }
  .talk { grid-template-columns: 1fr 1fr; align-items: start; }
  .foot-grid { grid-template-columns: 1fr 1fr 2fr; }
  .nav .btn-sm { display: inline-flex; }
}
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .hint { display: block; }
  .pane { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 110px); }
  .hero-h { font-size: clamp(52px, 11.4vw, 200px); }
}
@media (max-width: 699px) {
  .hero { height: 280svh; }
  .hero-h { letter-spacing: -.05em; font-size: 16.2vw; }
  .hero-side { top: calc(64px + 3.2svh + 2 * .84 * 16.2vw + 18px); }
  .hl2 { padding-left: .3em; }
  .voy-steps p { font-size: 14px; }
  .lang button { padding: 7px 8px; }
  .tk-ev li { grid-template-columns: 74px 1fr; }
  .tk-ev .s { grid-column: 2; }
  .deps td, .deps th { padding-right: 6px; }
  .foot { padding-bottom: 110px; }
}
@media (max-height: 640px) and (min-width: 700px) { .voy { display: none; } }

/* ---------- Reduced motion ---------- */
.rm .hero { height: auto; }
.rm .hero-pin { position: relative; height: 100svh; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- Reveal choreography ---------- */
.js:not(.rm) .hero-h .hl > span { transition: transform 1.1s var(--e-out); }
.js:not(.rm) .hero-h .hl2 > span { transition-delay: .09s; }
.js:not(.rm) .hero-side, .js:not(.rm) .voy, .js:not(.rm) .route { transition: opacity .9s var(--e-out) .45s; }
.js.go .hero-h .hl > span { transform: none; }
.js.go .hero-side, .js.go .voy, .js.go .route { opacity: 1; }
.js:not(.rm) .split .ln > span { transform: translateY(108%); transition: transform 1s var(--e-out); }
.js:not(.rm) .split.in .ln > span { transform: none; }
[data-fit] { width: max-content; max-width: none; }

@media (max-width: 699px) and (max-height: 720px) {
  .hint, .voy-k { display: none; }
  .hero-lede { font-size: 14px; }
  .voy { bottom: 172px; }
  .route { bottom: 104px; }
}
@media (min-width: 1024px) { .hint { white-space: nowrap; max-width: none; } }
