/* G · Preciznost — tokens. Swiss-modern, white-dominant, strict 12 columns.
   Fonts (OFL, self-hosted, latin + latin-ext in one file): Schibsted Grotesk + IBM Plex Mono.
   Production alternative: Söhne + Söhne Mono (Klim Type Foundry, commercial web licence). */
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/schibsted-grotesk-var.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2"); }

:root {
  /* brand */
  --navy: #25364c; --slate: #86909f; --sand: #d1be8a; --ink: #16191e; --text: #333333; --white: #ffffff; --tint: #f4f5f7;
  /* roles */
  --bg: #ffffff; --fg: var(--text); --heading: var(--ink); --muted: #6b7380; --line: #dfe2e7; --focus: var(--navy);
  /* fonts */
  --font-display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --font-btn: var(--font-text);
  --w-display: 600; --ls-display: -0.035em;
  /* fluid type scale: display / h1 / h2 / h3 / lede / body / caption */
  --fs-display: clamp(2.9rem, 1.2rem + 4.7vw, 6.4rem);
  --fs-h1: clamp(2.6rem, 1.3rem + 3.6vw, 5.2rem);
  --fs-d2: clamp(1.7rem, 1rem + 2.2vw, 3.1rem);
  --fs-h2: clamp(2rem, 1.25rem + 2.2vw, 3.6rem);
  --fs-h3: clamp(1.2rem, 1.05rem + .45vw, 1.5rem);
  --fs-lede: clamp(1.1rem, 1rem + .4vw, 1.35rem);
  --fs-body: 1.0625rem;
  --fs-cap: .75rem;
  --fs-nav: .95rem; --fs-btn: .95rem; --ls-btn: 0; --tt-btn: none;
  /* spacing scale 4·8·12·16·24·32·48·64·96·128·160 */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px; --s-11: 160px;
  --sec: 144px; --maxw: 1320px; --read: 68ch; --gutter: clamp(20px, 4vw, 56px); --gut: 24px;
  --hdr: 84px; --radius: 0;
  /* motion: crisp mask reveal from the bottom */
  --ease: cubic-bezier(.2, .7, .1, 1); --rv-dur: 600ms; --rv-o: 1; --rv-t: translateY(16px); --rv-clip: inset(100% 0 0 0);
  --mq-dur: 70s; --mq-pad: 40px; --mq-gap: 40px;
}
@media (max-width: 900px) { :root { --sec: 88px; --hdr: 72px; --gut: 16px; } }

/* ---------- Base (shared by G/H/I; every value comes from the version tokens above) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 16px); }
body { margin: 0; background: var(--bg); color: var(--fg); font: var(--w-text, 400) var(--fs-body)/1.6 var(--font-text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); color: var(--heading); font-weight: var(--w-display, 500); text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.mono { font-family: var(--font-mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 100; padding: 12px 16px; background: var(--sand); color: var(--ink); }
.skip:focus { top: 16px; }

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

/* section rhythm: every main > section gets the same generous padding from the tokens */
.sec { padding-block: var(--sec); position: relative; }
.bg-white { background: #ffffff; }
.bg-tint { background: #f4f5f7; }
.bg-off { background: #f6f3ec; }
.bg-sand { background: #ece4cf; }
.bg-navy, .bg-ink { --fg: #d5dae1; --heading: #ffffff; --muted: #9ba5b3; --line: rgba(255, 255, 255, .16); --focus: var(--sand); color: var(--fg); }
.bg-navy { background: var(--navy); }
.bg-ink { background: var(--ink); }

/* type scale */
.display-2 { font-size: var(--fs-d2); line-height: 1.12; letter-spacing: var(--ls-display); }
.h2 { font-size: var(--fs-h2); line-height: 1.06; letter-spacing: var(--ls-display); }
.h3 { font-size: var(--fs-h3); line-height: 1.25; }
.body { max-width: var(--read); }
.body-l { font-size: var(--fs-lede); line-height: 1.5; max-width: var(--read); }
.lede { font-size: var(--fs-lede); line-height: 1.5; max-width: 40ch; }
.note { margin-top: var(--s-6); font-size: var(--fs-cap); color: var(--muted); }

/* image placeholder for slots that still need a real photo */
.ph { display: grid; place-items: center; background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(134, 144, 159, .14) 10px 11px); border: 1px dashed var(--muted); color: var(--muted); font: 500 12px/1.4 var(--font-mono, monospace); text-align: center; padding: 16px; }

/* parallax frame: the image is 10% taller than the frame and moves inside it (JS sets --py) */
.par { overflow: hidden; position: relative; }
.par img { width: 100%; height: 100%; object-fit: cover; transform: translate3d(0, var(--py, 0), 0) scale(1.1); will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .par img { transform: none; }
}
