/* SwissTechFlow — swisstechflow.ch
   Direction: Swiss technical document. Hairline rules, monospaced labels,
   tabular figures, generous white space, one red accent.
   No dark-mode toggle by design: leftclick.ai auto-flips to dark when the OS
   prefers dark, which is the whole reason that site read as "too dark". The
   paper here is a warm stone rather than near-white, and three of the eight
   blocks are dark bands — deliberately heavier than the first version. */

:root {
  --paper:       #E3DFD5;
  --paper-2:     #D6D1C5;
  --ink:         #141618;
  --ink-soft:    #43494F;
  --ink-faint:   #5E646A;   /* 4.5:1 on --paper — small mono labels use this */
  --line:        rgba(20, 22, 24, .18);
  --line-soft:   rgba(20, 22, 24, .10);
  --ink-deep:    #101214;   /* the three dark bands */
  --accent:      #C8102E;   /* Swiss red */
  --accent-deep: #A20C24;   /* hover state on a red fill */

  --font-sans: "Instrument Sans", "Helvetica Neue", Helvetica, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1180px;
  --gut: clamp(20px, 5vw, 72px);
  --sec-y: clamp(64px, 9vw, 132px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* sticky header is ~75px; without this a nav jump hides the section label */
section[id], [id] { scroll-margin-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.05vw, 17px);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;          /* a 375px overrun shipped once in this repo already */
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 500; letter-spacing: -.01em; }

/* paper grain — atmosphere without an image request */
.grain {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 1; opacity: .04; mix-blend-mode: multiply;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 12px 18px;
  font-family: var(--font-mono); font-size: 13px;
}
.skip:focus { left: 12px; top: 12px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); position: relative; z-index: 2; }

/* ---- shared type ------------------------------------------------------ */

.label {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint);
  display: flex; align-items: center; gap: 12px; margin-bottom: clamp(28px, 4vw, 48px);
}
.label-num { color: var(--accent); }
.label-num::after { content: ""; display: inline-block; width: 22px; height: 1px; background: var(--line); margin-left: 12px; vertical-align: middle; }
.label-on-dark { color: rgba(255,255,255,.45); }
.label-on-dark .label-num { color: #E8536A; }
.label-on-dark .label-num::after { background: rgba(255,255,255,.2); }

.h1 {
  font-size: clamp(34px, 5.6vw, 74px);
  line-height: 1.02; letter-spacing: -.035em; font-weight: 500;
  max-width: 17ch; margin-bottom: clamp(28px, 4vw, 44px); text-wrap: balance;
}
.h2 {
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.08; letter-spacing: -.03em; font-weight: 500;
  max-width: 22ch; margin-bottom: 22px; text-wrap: balance;
}
.h2-center { max-width: 24ch; margin-left: auto; margin-right: auto; text-align: center; }

.lead { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; color: var(--ink-soft); max-width: 56ch; }
.lead-center { margin: 0 auto; text-align: center; }
.p { font-size: clamp(16px, 1.1vw, 17.5px); color: var(--ink-soft); max-width: 60ch; margin-bottom: 18px; }
.p-accent { color: var(--ink); border-left: 2px solid var(--accent); padding-left: 18px; }
.p-quiet { font-size: 15px; color: var(--ink-faint); }

.sec { padding: var(--sec-y) 0; position: relative; }
.rule-top { position: absolute; top: 0; left: var(--gut); right: var(--gut); height: 1px; background: var(--line); }
.sec-hero .rule-top { display: none; }

/* ---- buttons ---------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--paper);
  font-size: 15px; font-weight: 500; letter-spacing: -.01em;
  padding: 14px 22px; border-radius: 2px;
  transition: background .2s ease, transform .2s ease;
}
.btn:hover { background: var(--accent); transform: translateY(-1px); }
.btn-arrow { transition: transform .25s ease; }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn-sm { padding: 10px 16px; font-size: 14px; white-space: nowrap; }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--accent); color: #fff; }

.link-quiet {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .04em;
  color: var(--ink-soft); border-bottom: 1px solid var(--line);
  padding-bottom: 3px; transition: color .2s, border-color .2s;
}
.link-quiet:hover { color: var(--accent); border-color: var(--accent); }
.link-on-dark { color: rgba(255,255,255,.6); border-color: rgba(255,255,255,.22); }
.link-on-dark:hover { color: #fff; border-color: #fff; }

/* ---- header ----------------------------------------------------------- */

.site-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(227,223,213,.93); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.head-inner { display: flex; align-items: center; gap: 24px; padding-top: 16px; padding-bottom: 16px; }
.wordmark { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.wordmark-mark { width: 11px; height: 11px; background: var(--accent); flex: none; }
.wordmark-text { font-family: var(--font-mono); font-size: 14px; font-weight: 600; letter-spacing: .1em; }
.nav { display: flex; gap: 28px; }
.nav a {
  white-space: nowrap;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .04em;
  color: var(--ink-soft); transition: color .2s;
}
.nav a:hover { color: var(--accent); }

/* Only ever shown below 760px, and only with JS alive — see the note in the
   markup. Above that the inline nav does the job. */
.nav-toggle { display: none; width: 40px; height: 40px; place-items: center; flex: none; margin-left: 4px; }
.nav-toggle-bars { display: grid; gap: 5px; width: 20px; }
.nav-toggle-bars span { display: block; height: 1.5px; background: var(--ink); transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .nav-toggle-bars span { transition: none; } }

/* Overlays rather than pushing the page, so opening it shifts nothing.
   Anchored left/right to 0 inside the full-width header: it cannot widen
   the document, which is what would reintroduce horizontal overflow. */
.mobile-nav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper); border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 30px -22px rgba(0,0,0,.5);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav-inner { display: grid; gap: 2px; padding-top: 10px; padding-bottom: 18px; }
.mobile-nav a {
  font-family: var(--font-mono); font-size: 15px; letter-spacing: .04em;
  color: var(--ink); padding: 13px 0; border-bottom: 1px solid var(--line-soft);
}
.mobile-nav a:last-of-type { border-bottom: 0; }
.mobile-nav .mobile-nav-cta {
  justify-self: start; margin-top: 14px; color: var(--paper);
  font-family: var(--font-sans); letter-spacing: -.01em; padding: 12px 20px;
}

/* Language switch. A <details> element, so it opens without JS; the menu
   hangs below the button, right-aligned so it never runs off the screen. */
.lang { position: relative; flex: none; }
.lang-btn {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px;
  border: 1px solid var(--line); font-family: var(--font-mono); font-size: 13px;
  font-weight: 500; letter-spacing: .08em; color: var(--ink); transition: border-color .2s;
}
.lang-btn::-webkit-details-marker { display: none; }
.lang-btn:hover, .lang[open] .lang-btn { border-color: var(--ink); }
.lang-caret {
  width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform .2s ease;
}
.lang[open] .lang-caret { transform: translateY(1px) rotate(-135deg); }
@media (prefers-reduced-motion: reduce) { .lang-caret, .lang-btn { transition: none; } }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 50;
  min-width: 160px; margin: 0; padding: 6px 0; list-style: none;
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: 0 18px 30px -22px rgba(0,0,0,.5);
}
.lang-menu a {
  display: block; padding: 11px 16px; font-family: var(--font-mono); font-size: 13px;
  letter-spacing: .04em; color: var(--ink-soft); transition: color .2s;
}
.lang-menu a:hover { color: var(--accent); }
.lang-menu a[aria-current] { color: var(--ink); font-weight: 600; }

/* ---- 01 hero ---------------------------------------------------------- */

.sec-hero { padding-top: clamp(56px, 8vw, 104px); }
.hero-lead { max-width: 62ch; }

/* Moved out of the hero and down to the end of the process section: they are
   the terms of the offer, and nobody arrives wanting to read them. */
.hero-facts {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 20px; margin-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line); padding-top: 22px;
}
.facts-on-dark { border-top-color: rgba(255,255,255,.16); }
.facts-on-dark dt { color: rgba(255,255,255,.45); }
.facts-on-dark dd { color: #F0EFEC; }
.fact dt {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .13em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 6px;
}
.fact dd { font-size: clamp(18px, 1.7vw, 22px); font-weight: 500; letter-spacing: -.02em; }

/* ---- marquee ---------------------------------------------------------- */

.marquee-sec {
  overflow: hidden; background: var(--paper-2);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 18px 0 20px; position: relative; z-index: 2;
}
.marquee-intro {
  padding: 0 var(--gut) 14px; text-align: center;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: .11em; text-transform: uppercase; color: var(--ink-faint);
  line-height: 1.5;
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 92%, transparent);
}
.marquee-track { display: flex; align-items: center; width: max-content; animation: marquee 38s linear infinite; }
.marquee-group { display: flex; align-items: center; gap: 26px; padding-right: 26px; flex: none; }
.marquee-item { font-size: 15px; color: var(--ink-soft); white-space: nowrap; }
.marquee-dot { width: 4px; height: 4px; background: var(--accent); flex: none; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---- 02 problem ------------------------------------------------------- */

.split { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: clamp(32px, 5vw, 76px); align-items: start; }
.example { border: 1px solid var(--line); background: rgba(255,255,255,.28); padding: clamp(22px, 2.6vw, 30px); }
.example-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .13em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.example-name { font-size: clamp(17px, 1.5vw, 20px); font-weight: 500; letter-spacing: -.02em; line-height: 1.2; margin-bottom: 22px; }
.example-row { padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--line-soft); }
.example-row:first-of-type { padding-top: 0; margin-top: 0; border-top: 0; }
.example-mode {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .13em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 6px;
}
.example-mode-on { color: var(--accent); }
.example-val { font-size: 15px; line-height: 1.5; color: var(--ink); }

/* ---- 03 the map ------------------------------------------------------- */

.sec-map { background: var(--paper-2); }
.map { margin-top: clamp(36px, 5vw, 60px); }
/* 440px of the available width is reserved for the boxes — 220px either side —
   so the diagram shrinks before a box can ever be clipped. Below 1000px there is
   not enough left over, which is why that is where the list takes over. */
.map-radial { position: relative; width: min(640px, 100% - 440px); margin: 0 auto; }
.map-svg { width: 100%; height: auto; color: var(--line); }
/* Filled, not outlined: Johan asked for solid discs so no connector line is
   ever visible running into a circle. The lines are also trimmed to the core
   edge in the markup, so the fills are belt and braces rather than the fix. */
.map-core { fill: var(--ink); transform-origin: 360px 310px; }
.map-core-text {
  font-family: var(--font-mono); font-size: 15px; font-weight: 500;
  letter-spacing: .06em; fill: var(--paper); text-transform: uppercase;
}
.map-lines line { stroke-dasharray: 140; stroke-dashoffset: 0; }

.node {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  width: 18.33%; aspect-ratio: 1; border-radius: 50%;   /* 132 of the 720 viewBox */
  background: var(--accent); border: none;
  display: grid; place-items: center; text-align: center;
  font-family: var(--font-mono); font-size: clamp(11px, 1.15vw, 13px);
  font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: #fff;
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}
.node:hover, .node.is-active { background: var(--accent-deep); transform: translate(-50%, -50%) scale(1.06); z-index: 5; }
.node.is-active { box-shadow: 0 0 0 5px rgba(200,16,46,.18); }
.node-label { pointer-events: none; }

/* The box beside the circle. Sits outside the disc on the side the circle is
   on, so it never covers the diagram it belongs to. */
.node-tip {
  position: absolute; width: 195px; z-index: 6;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-left: 2px solid var(--accent);
  box-shadow: 0 14px 28px -18px rgba(0,0,0,.45);
  padding: 13px 15px; text-align: left;
  font-family: var(--font-sans); font-size: 14px; line-height: 1.45;
  font-weight: 400; letter-spacing: 0; text-transform: none;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease, visibility .2s;
}
.node[data-side="right"] .node-tip { left: calc(100% + 14px); top: 50%; transform: translateY(-50%); }
.node[data-side="left"]  .node-tip { right: calc(100% + 14px); top: 50%; transform: translateY(-50%); }
.node[data-side="top"]   .node-tip { bottom: calc(100% + 14px); left: 50%; transform: translateX(-50%); border-left-width: 1px; border-top: 2px solid var(--accent); }
.node:hover .node-tip, .node:focus-visible .node-tip, .node.is-active .node-tip { opacity: 1; visibility: visible; }

.map-list { display: none; }
.only-wide { display: inline; }   /* the circles do not exist below 1000px */

/* ---- 04 process (dark band) ------------------------------------------ */

.process { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1px; margin-top: clamp(36px, 5vw, 60px); background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.14); }
.step { background: var(--ink-deep); padding: clamp(24px, 2.8vw, 34px); }
.step-num { font-family: var(--font-mono); font-size: 11px; letter-spacing: .13em; text-transform: uppercase; color: #E8536A; margin-bottom: 18px; }
.step-name { font-size: clamp(19px, 1.7vw, 23px); font-weight: 500; letter-spacing: -.02em; margin-bottom: 12px; }
.step-desc { font-size: 15px; line-height: 1.55; color: rgba(255,255,255,.62); }
.band .rule-top { background: rgba(255,255,255,.14); }
.sec-process .h2 { color: #F0EFEC; }

/* ---- 05 about --------------------------------------------------------- */

.about { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
/* The file is cropped to 552x690, exactly the 4:5 of the slot, so object-fit has
   nothing left to crop. It is kept as a guard in case the file is replaced. */
.photo {
  /* height:auto is load-bearing. The width/height attributes on the <img> map to
     CSS width/height as presentational hints; without height:auto the 690px
     attribute wins, aspect-ratio is ignored (it only applies when height is
     auto) and the portrait renders 300x690 instead of 300x375. */
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 50%;
  border: 1px solid var(--line); background: var(--paper-2);
}
.photo-caption { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: var(--ink-faint); margin-top: 12px; }

/* ---- 06 CTA + footer (dark bands) ------------------------------------- */

.band { background: var(--ink-deep); color: #F0EFEC; }
.sec-cta { overflow: hidden; text-align: center; }
.cta-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 62% 58% at 50% 34%, rgba(200,16,46,.16) 0%, transparent 70%); }
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.sec-cta .h2 { color: #F0EFEC; }
.lead-on-dark { color: rgba(255,255,255,.6); }
.cta-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: center; margin-top: clamp(28px, 3.5vw, 40px); }

/* ---- contact form (06 CTA) --------------------------------------------
   Sits inside the dark band, so every colour here is the on-dark set —
   there is no separate light-mode version of this form. */

.form-rule {
  width: 40px; height: 1px; background: rgba(255,255,255,.3);
  margin: clamp(28px, 3.5vw, 40px) auto 0;
}
.contact-form { width: 100%; max-width: 420px; margin: 28px auto 0; text-align: left; }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-row { margin-bottom: 24px; }
.form-label {
  display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .13em;
  text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 8px;
}
.form-field {
  width: 100%; background: transparent; color: #F0EFEC;
  border: 0; border-bottom: 1px solid rgba(255,255,255,.4);
  font: inherit; font-size: 15px; padding: 8px 2px; resize: none;
  transition: border-color .2s ease;
}
.form-field::placeholder { color: rgba(255,255,255,.35); }
.form-field:focus { border-color: var(--accent); }
.form-actions { display: flex; flex-direction: column; align-items: stretch; gap: 14px; margin-top: 28px; }
.form-actions .btn { justify-content: center; }
.form-status { font-family: var(--font-mono); font-size: 13px; color: rgba(255,255,255,.6); text-align: center; min-height: 1em; }
.form-status[data-state="error"] { color: #E8536A; }
.form-fallback { display: block; margin: 22px auto 0; width: max-content; }
.contact-form[hidden] { display: none; }

.site-foot { padding: clamp(48px, 6vw, 76px) 0 clamp(28px, 3.5vw, 40px); position: relative; z-index: 2; }
.foot-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.wordmark-on-dark .wordmark-text { color: #F0EFEC; }
.foot-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.foot-nav a { font-family: var(--font-mono); font-size: 13px; letter-spacing: .04em; color: rgba(255,255,255,.6); transition: color .2s; }
.foot-nav a:hover { color: #fff; }
.foot-rule { height: 1px; background: rgba(255,255,255,.14); margin: clamp(32px, 4vw, 48px) 0 20px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 12px; letter-spacing: .03em; color: rgba(255,255,255,.45); }

/* ---- scroll reveals ---------------------------------------------------
   Gated behind .js so that if the script never loads, nothing is ever
   hidden. This is the failure mode that silently ships a blank page. */

.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js .map-lines line { stroke-dashoffset: 140; }
.js .map-radial.is-in .map-lines line { transition: stroke-dashoffset 1s ease .25s; stroke-dashoffset: 0; }
.js .map-core { transform: scale(.82); opacity: 0; }
.js .map-radial.is-in .map-core { transition: transform .8s cubic-bezier(.22,.61,.36,1), opacity .8s ease; transform: scale(1); opacity: 1; }
/* The entry stagger is an ANIMATION, not a delayed transition, and that is the
   whole point. It used to be a transition with transition-delay up to 1.1s —
   which stayed applied forever, so a circle took up to 1.1s to fade back out of
   its hover colour after the cursor had already left. Adding the delay reset to
   :hover only fixed the way in, never the way out. An animation cannot leak into
   the hover transition at all, so the circle now tracks the cursor exactly.
   animation-fill-mode is `backwards`, not `both`: with `both` the animation
   would keep owning `transform` after it finished and the hover scale would
   never apply. */
.js .node { opacity: 0; }
.js .map-radial.is-in .node {
  opacity: 1;
  animation: node-in .55s cubic-bezier(.22,.61,.36,1) backwards;
  animation-delay: var(--d, 0s);
}
@keyframes node-in {
  from { opacity: 0; transform: translate(-50%, -50%) scale(.9); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.js .map-radial.is-in .node:nth-of-type(1) { --d: .70s; }
.js .map-radial.is-in .node:nth-of-type(2) { --d: .80s; }
.js .map-radial.is-in .node:nth-of-type(3) { --d: .90s; }
.js .map-radial.is-in .node:nth-of-type(4) { --d: 1.00s; }
.js .map-radial.is-in .node:nth-of-type(5) { --d: 1.10s; }

/* Not decoration. For some people this effect causes actual nausea. */
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal.is-in { opacity: 1; transform: none; transition: none; }
  .js .map-lines line { stroke-dashoffset: 0; }
  .js .map-core { transform: scale(1); opacity: 1; }
  .js .node, .js .map-radial.is-in .node { opacity: 1; transform: translate(-50%, -50%); transition: none; animation: none; }
}

/* ---- responsive ------------------------------------------------------- */

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about-photo { max-width: 260px; }
  .hero-body { grid-template-columns: 1fr; align-items: start; }
}

/* Below 1000 there is no longer room for a box either side of the diagram,
   so the same five become a list with the same words. */
@media (max-width: 1000px) {
  .map-radial, .only-wide { display: none; }
  .map-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
  .map-list li { background: var(--paper-2); padding: 20px; }
  .map-list-name {
    display: block; font-family: var(--font-mono); font-size: 12px; font-weight: 500;
    letter-spacing: .13em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px;
  }
  .map-list-desc { display: block; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
}

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

/* Header switches to the compact menu at 760px, not 620px: with the language
   button added, and with the French and German labels being longer, the inline
   nav wrapped onto two lines anywhere between 621 and about 760px. */
@media (max-width: 760px) {
  .nav { display: none; }
  /* The header CTA moves inside the menu: wordmark + toggle + a chip does not
     fit at 320px, and the menu is where Contact now lives anyway. */
  .head-cta { display: none; }
  .js .nav-toggle { display: grid; }
  .head-inner { gap: 12px; }
}

@media (max-width: 620px) {
  .h1 { max-width: none; }
  .foot-bottom { flex-direction: column; gap: 8px; }
}
