/* I · Dubina — tokens. Technical sans, bold blocks, navy-anchored light/dark rhythm.
   Fonts (OFL, self-hosted, latin + latin-ext in one file): Space Grotesk + IBM Plex Sans + JetBrains Mono.
   Production alternative: Neue Haas Unica (Monotype) + GT America Mono (Grilli Type), commercial web licences. */
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/space-grotesk-var.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("../fonts/ibm-plex-sans-var.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/jetbrains-mono-var.woff2") format("woff2"); }

:root {
  --navy: #25364c; --slate: #86909f; --sand: #d1be8a; --ink: #16191e; --text: #333333; --white: #ffffff;
  --bg: #ffffff; --fg: var(--text); --heading: var(--ink); --muted: #646d7a; --line: #dde1e6; --focus: var(--navy);
  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-text: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --font-btn: var(--font-mono);
  --w-display: 500; --ls-display: -0.035em;
  --fs-display: clamp(2.8rem, 1.2rem + 4.4vw, 6rem);
  --fs-h1: clamp(2.6rem, 1.3rem + 3.4vw, 5rem);
  --fs-d2: clamp(1.7rem, 1rem + 2vw, 3rem);
  --fs-h2: clamp(2rem, 1.2rem + 2.4vw, 3.8rem);
  --fs-h3: clamp(1.15rem, 1rem + .45vw, 1.45rem);
  --fs-lede: clamp(1.08rem, 1rem + .35vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-cap: .75rem;
  --fs-nav: .8rem; --fs-btn: .8rem; --ls-btn: .06em; --tt-btn: uppercase; --ls-nav: .06em; --tt-nav: uppercase;
  --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: 128px; --maxw: 1320px; --read: 66ch; --gutter: clamp(20px, 4vw, 56px); --gut: 24px;
  --hdr: 76px; --radius: 0;
  /* motion: stagger-in data blocks */
  --ease: cubic-bezier(.3, .7, .1, 1); --rv-dur: 500ms; --rv-o: 0; --rv-t: translateY(20px); --rv-clip: none; --rv-stagger: 90ms;
  --mq-dur: 32s; --mq-pad: 32px; --mq-gap: 36px;
}
@media (max-width: 900px) { :root { --sec: 80px; --hdr: 68px; --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; }
}
