/* Fonts are served from this site; no third-party requests (GDPR). Archivo: SIL OFL, IBM Plex Mono: SIL OFL. */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url("assets/fonts/archivo-var.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/plex-mono-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/plex-mono-500.woff2") format("woff2"); }

/* Layout: light "drawing paper" page with topographic lines and one navy plan-grid band for the career timeline.
   Navy ink from the blazer, safety orange from the shop floor as the only accent.
   One type family (Archivo) in several widths; monospace only inside the KI layer, where the machine "speaks". */
:root {
  --paper: #ECEEF1;
  --ink: #0D1B2A;
  --night: #0A1522;
  --soft: #556170;
  --mist: #9AA6B4;
  --line: rgba(13, 27, 42, .16);
  --line-night: rgba(236, 238, 241, .14);
  --signal: #F26B1D;

  --display: "Archivo", "Arial Narrow", "Helvetica Neue", system-ui, sans-serif;
  --sans: "Archivo", "Helvetica Neue", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gut: max(clamp(20px, 5vw, 72px), env(safe-area-inset-left, 0px));
  --gut-r: max(clamp(20px, 5vw, 72px), env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.6 var(--sans);
  font-variation-settings: "wdth" 100;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.gutter { padding-left: var(--gut); padding-right: var(--gut-r); }
main, .foot { position: relative; z-index: 1; }

.display {
  font-family: var(--display);
  font-weight: 800;
  font-variation-settings: "wdth" 70;
  text-transform: uppercase;
  line-height: .88;
  letter-spacing: -.01em;
  text-wrap: balance;
  margin: 0;
}
h2.display { font-size: clamp(52px, 10vw, 160px); }
.label { font: 600 15px/1.3 var(--sans); color: var(--soft); margin: 0 0 20px; }

/* Background topography */
.topo { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--paper); transition: background .3s; }
body.header-dark::before { background: var(--night); }
.chrome {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 24px;
  padding: calc(env(safe-area-inset-top, 0px) + 16px) var(--gut-r) 14px var(--gut);
  background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line);
  transition: background .3s, color .3s, border-color .3s;
}
.chrome.on-dark { background: var(--night); color: var(--paper); border-bottom-color: var(--line-night); }
.chrome a { text-decoration: none; }
main section[id] { scroll-margin-top: var(--header-h, 76px); }
.brand { margin-right: auto; }
.chrome nav { order: 1; }
.lang { order: 2; }
.menu-btn { order: 3; }

/* Language switch: a sliding block, square like the site's other controls */
.lang {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; flex: 0 0 auto;
  margin-left: clamp(18px, 2.6vw, 40px); padding: 2px; border: 1px solid var(--line);
  transition: border-color .3s;
}
.lang-opt {
  position: relative; z-index: 1; appearance: none; border: 0; background: none; color: inherit; cursor: pointer;
  min-width: 38px; padding: 7px 10px 6px;
  font: 700 12px/1 var(--display); font-variation-settings: "wdth" 90; letter-spacing: .08em; text-transform: uppercase;
  transition: color .3s;
}
.lang-opt[aria-pressed="true"] { color: var(--paper); cursor: default; }
@media (hover: hover) { .lang-opt[aria-pressed="false"]:hover { color: var(--signal); } }
.lang-thumb {
  position: absolute; top: 2px; bottom: 2px; left: 2px; width: calc(50% - 2px);
  background: var(--ink); transition: transform .4s var(--ease), background .3s;
}
.lang-thumb::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--signal); }
.lang[data-active="de"] .lang-thumb { transform: translateX(100%); }
.chrome.on-dark .lang { border-color: var(--line-night); }
.chrome.on-dark .lang-thumb { background: var(--paper); }
.chrome.on-dark .lang-opt[aria-pressed="true"] { color: var(--night); }
.hud-br .lbl { font-style: normal; }
.brand { font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 75; text-transform: uppercase; font-size: 22px; line-height: .92; letter-spacing: .01em; }
.chrome { align-items: center; }
.chrome nav { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: flex-end; column-gap: clamp(16px, 2.4vw, 36px); row-gap: 4px; font: 600 13px/1.35 var(--display); font-variation-settings: "wdth" 90; text-transform: uppercase; letter-spacing: .04em; }
.chrome nav a:hover { text-decoration: underline 2px; text-underline-offset: 3px; }

/* ---------- HERO ---------- */
.hero-scene { height: 400vh; position: relative; }
.hero { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; --wipe: 100%; }
.hero-base, .hero-ai { position: absolute; inset: 0; }
.hero-base { z-index: 1; }
.hero-ai { z-index: 2; }
.portrait {
  position: absolute; left: 50%; bottom: 0;
  height: min(64%, 780px); width: auto; max-width: none;
  transform: translateX(-50%);
  user-select: none;
}
.hl {
  position: absolute; margin: 0; z-index: 3;
  font-family: var(--display); font-weight: 850;
  font-variation-settings: "wdth" 62;
  text-transform: uppercase; line-height: .86; letter-spacing: -.005em;
  font-size: var(--hl-fs, clamp(56px, 10vw, 170px));
  display: flex; flex-direction: column; align-items: flex-start;
}
.hl span { white-space: nowrap; word-spacing: .14em; }
.hl-left { left: var(--gut); top: var(--hl-top, 18%); }
.hl-right { right: var(--gut-r); top: var(--hl-top, 18%); text-align: right; align-items: flex-end; }

.hero-ai {
  background:
    linear-gradient(var(--line-night) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, var(--line-night) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--night);
  color: var(--paper);
  clip-path: inset(0 0 0 var(--wipe));
  -webkit-clip-path: inset(0 0 0 var(--wipe));
}
.portrait-ghost { opacity: .13; filter: grayscale(1) contrast(1.2); }
.graph { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.artifacts { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.artifact {
  position: absolute; left: 0; top: 0; width: 230px;
  display: grid; grid-template-columns: 26px 1fr; gap: 2px 10px; align-items: center;
  padding: 10px 12px; border: 1px solid rgba(236, 238, 241, .35); background: rgba(10, 21, 34, .92);
  opacity: 0; will-change: transform, opacity;
}
.artifact i { grid-row: span 2; width: 22px; height: 28px; border: 1.5px solid var(--signal); position: relative; }
.artifact i::after { content: ""; position: absolute; right: -1.5px; top: -1.5px; width: 8px; height: 8px; background: var(--night); border-left: 1.5px solid var(--signal); border-bottom: 1.5px solid var(--signal); }
.artifact b { font: 600 13px/1.25 var(--sans); color: var(--paper); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.artifact small { font: 400 11px/1.2 var(--mono); color: var(--mist); }
.feed {
  position: absolute; z-index: 4; right: var(--gut-r); bottom: 86px; margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
  font: 400 11px/1.3 var(--mono); color: var(--mist); text-align: right;
}
.feed li { background: rgba(10, 21, 34, .85); padding: 2px 6px; opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s; white-space: nowrap; }
.feed li.on { opacity: 1; transform: none; }
.feed li b { color: var(--signal); font-weight: 500; }

.portrait { -webkit-touch-callout: none; -webkit-user-drag: none; }
.lens {
  position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 5; pointer-events: none;
  border: 1.5px solid var(--signal); border-radius: 50%; opacity: 0;
}
.hud-hint { left: var(--gut); bottom: 28px; font: 500 14px/1.3 var(--sans); color: var(--soft); transition: opacity .4s; }
.hud-hint .hint-touch { display: none; }
@media (hover: none) { .hud-hint .hint-mouse { display: none; } .hud-hint .hint-touch { display: inline; } }
.hero.scrolled .hud-hint, .hero.revealed .hud-hint { opacity: 0; }
.wipe {
  position: absolute; top: 0; bottom: 0; left: var(--wipe); width: 2px; margin-left: -1px;
  background: var(--signal); z-index: 5; opacity: 0; transition: opacity .3s;
}
.hero.wiping .wipe { opacity: 1; }
.wipe span { position: absolute; bottom: 30%; left: 8px; white-space: nowrap; font: 500 11px/1 var(--mono); background: var(--signal); color: var(--night); padding: 5px 7px; }

.hud { position: absolute; z-index: 6; margin: 0; }
.hud-tl { left: var(--gut); top: calc(var(--header-h, 72px) + 16px); font: 500 14px/1.3 var(--sans); color: var(--soft); }
.hud-br { right: var(--gut-r); bottom: 28px; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font: 400 12px/1.3 var(--mono); color: var(--mist); }
.hud-br b { color: var(--signal); font-weight: 500; font-variant-numeric: tabular-nums; display: inline-block; min-width: 5ch; text-align: right; }
.hud-scroll { left: 50%; bottom: 28px; transform: translateX(-50%); font: 600 13px/1 var(--sans); color: var(--paper); background: var(--ink); padding: 8px 12px; transition: opacity .4s; }
.hero.scrolled .hud-scroll { opacity: 0; }

/* ---------- INTRO ---------- */
.intro { padding-block: clamp(96px, 14vw, 180px) clamp(72px, 10vw, 140px); }
.motto { margin: 0 0 clamp(36px, 5vw, 64px); }
.motto blockquote { margin: 0; }
.motto p {
  position: relative; margin: 0;
  font: 800 clamp(48px, 7.4vw, 132px)/.9 var(--display); font-variation-settings: "wdth" 70;
  text-transform: uppercase; letter-spacing: -.01em;
}
.motto .q-open, .motto .q-close { color: var(--signal); }
.motto .q-open { position: absolute; right: 100%; padding-right: .04em; }
html.anim .motto .w { color: var(--mist); transition: color .45s var(--ease); }
html.anim .motto .w.lit { color: var(--ink); }
.motto .lab { position: relative; display: inline-block; }
.motto .lab::after {
  content: ""; position: absolute; left: 0; right: .18em; bottom: -.04em; height: .085em; background: var(--signal);
  transform: scaleX(1); transform-origin: left; transition: transform .8s var(--ease);
}
html.anim .motto:not(.done) .lab::after { transform: scaleX(0); }
.statement {
  font-family: var(--sans); font-weight: 500; font-variation-settings: "wdth" 94;
  font-size: clamp(20px, 2.1vw, 30px); line-height: 1.42; letter-spacing: -.005em;
  max-width: 36em; margin: 0; text-wrap: pretty;
}
.facts { list-style: none; margin: clamp(56px, 8vw, 110px) 0 0; padding: 0; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: clamp(130px, 16vw, 230px) minmax(0, 1fr); align-items: baseline; gap: clamp(16px, 3vw, 48px); border-bottom: 1px solid var(--line); padding-block: 18px; }
.fig { font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 70; font-size: clamp(56px, 7vw, 108px); line-height: .9; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fig em { font-style: normal; color: var(--signal); }
.facts p { margin: 0; color: var(--soft); max-width: 46ch; font-size: clamp(17px, 1.5vw, 21px); }

/* ---------- JOURNEY ---------- */
.journey {
  position: relative; color: var(--paper);
  background:
    linear-gradient(var(--line-night) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, var(--line-night) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--night);
}
.journey-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; padding-block: calc(var(--header-h, 72px) + 20px) 20px; }
.journey-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.journey-head h2 { font-size: clamp(48px, min(8vw, 12vh), 128px); }
.journey-note { color: var(--mist); margin: 0 0 8px; font-size: 15px; }

.track {
  list-style: none; margin: 0; flex: 1; min-height: 0;
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(290px, 28vw, 400px);
  grid-template-rows: auto auto auto auto 1fr;
  column-gap: clamp(16px, 2vw, 28px); row-gap: 12px;
  padding-block: clamp(16px, 2.6vh, 32px);
  will-change: transform;
}
.card {
  grid-row: span 5; display: grid; grid-template-rows: subgrid; align-items: start;
  border: 1px solid var(--line-night); background: rgba(10, 21, 34, .82);
  padding: 22px; min-width: 0;
  transition: border-color .3s;
}
.card.active { border-color: rgba(236, 238, 241, .45); }
@media (hover: hover) { .card:hover { border-color: rgba(236, 238, 241, .45); } }
.card-key { border-color: rgba(242, 107, 29, .55); }
.where { margin: 0; color: var(--mist); font-size: 14px; }
.card-key .where { color: var(--signal); }
.motif { height: clamp(36px, 6vh, 56px); width: auto; aspect-ratio: 160 / 64; max-width: 100%; color: rgba(236, 238, 241, .35); margin-block: 6px 4px; }
.motif .sig { stroke: var(--signal); }
.year { margin: 0; align-self: end; font: 800 clamp(40px, min(5vw, 7.5vh), 76px)/.9 var(--display); font-variation-settings: "wdth" 70; color: var(--paper); font-variant-numeric: tabular-nums; }
.card h3 { margin: 0; font: 700 21px/1.15 var(--display); font-variation-settings: "wdth" 90; text-wrap: balance; }
.card p:not(.year):not(.where) { margin: 0; font-size: 15px; line-height: 1.55; color: rgba(236, 238, 241, .74); }

.progress { padding-top: 4px; }
.phases { display: flex; color: var(--mist); font-size: 12px; margin-bottom: 8px; }
.phase-ai { margin-left: var(--phase-at, 40%); color: var(--signal); }
.bar { height: 2px; background: var(--line-night); position: relative; }
.bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--signal); }
.ticks { list-style: none; margin: 10px 0 0; padding: 0; display: flex; justify-content: space-between; gap: 8px; color: var(--mist); font-size: 12px; }
.ticks li { min-width: 0; display: flex; flex-direction: column; gap: 1px; transition: color .25s; }
.ticks li b { font-weight: 700; color: var(--paper); font-variant-numeric: tabular-nums; }
.ticks li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticks li.on, .ticks li.on b { color: var(--signal); }

/* ---------- EXPERTISE ---------- */
.expertise { padding-block: clamp(96px, 12vw, 170px) clamp(48px, 6vw, 80px); }
.rows { list-style: none; margin: clamp(40px, 6vw, 80px) 0 0; padding: 0; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: baseline; padding-block: 28px; border-bottom: 1px solid var(--line); }
.row h3 {
  margin: 0; font: 800 clamp(26px, 3vw, 46px)/.95 var(--display); font-variation-settings: "wdth" 68; text-transform: uppercase;
  hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word;
  transition: transform .35s var(--ease), color .35s;
}
.row p { margin: 0; color: var(--soft); max-width: 54ch; }
@media (hover: hover) { .row:hover h3 { transform: translateX(12px); color: var(--signal); } }
.langs { color: var(--soft); margin: 28px 0 0; }

/* ---------- METHOD ---------- */
.method { padding-block: clamp(72px, 10vw, 140px); }
.method-text { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; margin-top: clamp(40px, 6vw, 80px); padding-top: 28px; border-top: 1px solid var(--line); }
.method-text p { margin: 0; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.5; max-width: 40ch; }
.method-text .lead { display: block; margin-bottom: .5em; font: 700 clamp(22px, 2.1vw, 30px)/1.15 var(--display); font-variation-settings: "wdth" 85; color: var(--ink); }

/* ---------- PUBLICATIONS ---------- */
.pubs { padding-block: clamp(40px, 6vw, 80px); }
.pub-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.pub-list li { display: grid; grid-template-columns: 100px minmax(0, 1fr) auto; gap: 24px; align-items: baseline; padding-block: 20px; border-bottom: 1px solid var(--line); }
.pub-list a { font: 600 clamp(18px, 1.8vw, 24px)/1.25 var(--display); font-variation-settings: "wdth" 92; text-decoration: none; text-wrap: balance; }
.pub-list a:hover { color: var(--signal); }
.pub-date, .pub-src { color: var(--soft); font-size: 15px; font-variant-numeric: tabular-nums; }

/* ---------- MARQUEE ---------- */
.marquee { padding-block: clamp(48px, 7vw, 96px); }
.marquee-window { overflow: hidden; border-block: 1px solid var(--line); padding-block: 22px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { font: 800 clamp(26px, 3vw, 42px)/1 var(--display); font-variation-settings: "wdth" 75; text-transform: uppercase; white-space: nowrap; display: inline-flex; align-items: center; padding-right: clamp(36px, 5vw, 72px); }
.marquee-track span::after { content: ""; width: 10px; height: 10px; background: var(--signal); display: inline-block; margin-left: clamp(36px, 5vw, 72px); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- CONTACT ---------- */
.contact { padding-block: clamp(72px, 10vw, 140px); }
.contact h2.display { font-size: clamp(52px, 10vw, 160px); }
.contact-text { margin: 28px 0 0; font-size: clamp(19px, 1.7vw, 23px); max-width: 44ch; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); }
.contact-item { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 22px; min-width: 0; }
.contact-item .label { margin: 0; }
.email { font: 600 clamp(20px, 2.2vw, 32px)/1.2 var(--display); font-variation-settings: "wdth" 88; text-decoration: none; overflow-wrap: anywhere; }
.email:hover { color: var(--signal); }
.copy { appearance: none; border: 0; background: var(--ink); color: var(--paper); padding: 10px 14px; cursor: pointer; font: 600 14px/1 var(--sans); transition: background .2s; }
.copy:hover { background: var(--signal); color: var(--night); }

/* ---------- FOOTER ---------- */
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 24px calc(24px + env(safe-area-inset-bottom, 0px)); background: var(--night); color: var(--mist); font-size: 14px; }

.privacy { margin: 0; max-width: 62ch; font-size: 13px; line-height: 1.5; color: var(--mist); }
.privacy a { color: var(--paper); text-decoration-color: var(--signal); text-underline-offset: 3px; }
.privacy a:hover { color: var(--signal); }

/* ---------- Reveal (content stays visible; only a short slide) ---------- */
html.anim .rise { transform: translateY(28px); transition: transform 1s var(--ease); }
html.anim .rise.in { transform: none; }

/* ---------- Mobile menu ---------- */
.menu-btn { display: none; pointer-events: auto; appearance: none; border: 0; background: none; color: inherit; padding: 4px 0; cursor: pointer;
  font: 600 13px/1 var(--display); font-variation-settings: "wdth" 90; text-transform: uppercase; letter-spacing: .04em; }
.menu {
  position: fixed; inset: 0; z-index: 40; background: var(--night); color: var(--paper);
  display: flex; flex-direction: column; justify-content: center; gap: 28px;
  padding: calc(env(safe-area-inset-top, 0px) + 80px) var(--gut-r) calc(env(safe-area-inset-bottom, 0px) + 40px) var(--gut);
}
.menu nav { display: flex; flex-direction: column; gap: 6px; }
.menu nav a { text-decoration: none; font: 800 clamp(44px, 13vw, 76px)/1 var(--display); font-variation-settings: "wdth" 70; text-transform: uppercase; }
.menu nav a:active, .menu nav a:hover { color: var(--signal); }
.menu-close { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 18px); right: var(--gut-r); appearance: none; border: 0; background: none; color: var(--paper); cursor: pointer;
  font: 600 13px/1 var(--display); font-variation-settings: "wdth" 90; text-transform: uppercase; letter-spacing: .04em; padding: 8px 0; }
body.menu-open { overflow: hidden; }

body { -webkit-tap-highlight-color: transparent; }
.hero { -webkit-user-select: none; user-select: none; }

/* ---------- Phones and tablets, any orientation ---------- */
@media (min-width: 861px) and (max-height: 820px) {
  .card { padding: 18px; }
  .card p:not(.year):not(.where) { font-size: 14px; line-height: 1.5; }
  .track { row-gap: 9px; }
}

@media (max-width: 860px) {
  body { font-size: 17px; }
  .motto .q-open { position: static; padding-right: 0; }
  .motto p { font-size: min(8.6vw, 64px); }
  .chrome { align-items: center; padding-top: calc(env(safe-area-inset-top, 0px) + 12px); padding-bottom: 10px; }
  .chrome nav { display: none; }
  .menu-btn { display: block; }
  .lang { margin-left: 0; margin-right: 16px; }
  .lang-opt { min-width: 34px; padding: 6px 8px 5px; font-size: 11px; }
  .brand { font-size: 19px; }
  .hero-scene { height: 330vh; }
  .hud-tl { display: none; }
  .artifact { width: min(172px, calc(50vw - 20px)); padding: 8px 10px; grid-template-columns: 20px 1fr; }
  .artifact i { width: 16px; height: 22px; }
  .feed .src { display: none; }

  .facts li { grid-template-columns: clamp(84px, 26vw, 140px) minmax(0, 1fr); gap: 16px; }

  .journey-pin { position: static; height: auto; overflow: visible; padding-block: 88px 64px; }
  .track { display: flex; flex-direction: column; gap: 16px; padding-block: 32px 0; transform: none !important; }
  .card { display: flex; flex-direction: column; gap: 12px; }
  .year { align-self: auto; }
  .card h3 { min-height: 3.45em; }
  .progress { display: none; }

  .row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .method-text { grid-template-columns: minmax(0, 1fr); gap: 1.1em; }
  .pub-list li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Phones held upright: headlines stacked above the portrait */
@media (max-width: 860px) and (orientation: portrait) {
  .portrait { height: min(54%, 540px); }
  .hl { font-size: var(--hl-fs, clamp(32px, 12vw, 80px)); }
  .hero { --hl-top: 11%; }
  .hud-scroll { bottom: 20px; }
  .hud-br { bottom: 20px; background: rgba(10, 21, 34, .86); padding: 6px 8px; }
  .hud-hint { left: 50%; transform: translateX(-50%); bottom: 64px; white-space: nowrap; color: var(--paper); background: rgba(13, 27, 42, .78); padding: 7px 11px; font-size: 13px; }
  .feed { bottom: 76px; font-size: 10px; }
}

/* Phones held sideways: side-by-side layout like on desktop, scaled to the short screen */
@media (max-width: 860px) and (orientation: landscape) {
  .portrait { height: 74%; }
  .hl { font-size: var(--hl-fs, clamp(36px, 14vh, 96px)); }
  .hero { --hl-top: 20%; }
  .hud-scroll, .hud-br, .hud-hint { bottom: 12px; }
  .hud-hint { font-size: 12px; }
  .feed { bottom: 54px; font-size: 10px; }
  .journey-pin { padding-block: 72px 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scene { height: auto; }
  .hero { position: relative; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee-track span[aria-hidden] { display: none; }
  html.anim .rise { transform: none; transition: none; }
  .row h3 { transition: none; }
}
