/* ==========================================================================
   SI-bolaget · sibolaget.se
   Superintelligens. Den sista uppfinningen.
   ========================================================================== */

/* Fonts, served from this site (SIL Open Font License 1.1: assets/fonts/LICENSE-*.txt).
   Latin only: Swedish and English need nothing else, and other scripts fall back to system fonts. */
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/geist-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/geist-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/geist-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/geist-mono-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/geist-mono-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #050507;
  --bg-2: #0a0a0e;
  --ink: #f0ebe1;
  --ink-2: #b8b2a6;
  --ink-3: #8a857a;
  --line: rgba(240, 235, 225, 0.1);
  --line-2: rgba(240, 235, 225, 0.2);
  --gold: #f2b04f;
  --gold-hi: #ffd894;
  --ember: #ff7a35;
  --ice: #a9cdff;
  --paper: #ece6d9;
  --paper-ink: #16140f;
  --paper-ink-2: #5a5448;
  --paper-accent: #9a5410;
  --paper-line: rgba(22, 20, 15, 0.16);

  --font-display: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;

  --maxw: 1320px;
  --gutter: clamp(16px, 4.5vw, 64px);
  --section-y: clamp(96px, 12vw, 190px);
  --radius: 22px;
  --nav-h: 72px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  color-scheme: dark;
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ol, ul, figure, blockquote { margin: 0; }
cite { font-style: italic; }
sup, sub { font-size: 0.7em; line-height: 0; }

::selection { background: var(--gold); color: #000; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.mono { font-family: var(--font-mono); }

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

.skip-link {
  position: fixed;
  left: 16px;
  top: -64px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #0a0a0c;
  font-weight: 500;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* Film grain over everything. Static, so it costs nothing per frame */
.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 70;
  pointer-events: none;
}
.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-hi), var(--gold) 50%, var(--ember));
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* ---------- Type primitives ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow-num { color: var(--gold); display: inline-flex; align-items: center; gap: 14px; }
.eyebrow-num::after {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.7rem, 6.2vw, 6rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
  margin-top: 22px;
  text-wrap: balance;
}
.h2 em,
.display em,
.scale-cap em {
  font-style: italic;
  color: var(--gold-hi);
}

.lede {
  font-size: clamp(1.05rem, 1.3vw, 1.22rem);
  line-height: 1.62;
  color: var(--ink-2);
  max-width: 34em;
  text-wrap: pretty;
}

.fineprint {
  margin-top: 28px;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  line-height: 1.6;
  color: var(--ink-3);
  max-width: 70em;
}
.fineprint sup { font-size: 0.8em; }

.section { position: relative; padding-block: var(--section-y); }

/* Below the hero, a section is laid out and painted only when it comes near the screen, which more than halves the
   work before the first paint on a phone. Until then the browser reserves the content height given here (measured
   without padding at 1440, 768 and 390 px wide); once a section has been shown, it remembers its real height.
   Scripts must not read layout inside a section before it is near, or the browser has to lay it out anyway (see
   rectIfNear in main.js). */
main > .section, .footer { content-visibility: auto; contain-intrinsic-size: auto var(--est, 1000px); }
/* A jump to a section, or a restored scroll position, needs the real heights of the sections on the way: main.js
   sets this class before an in-page jump, and the inline script in the head when the page opens at a #section or is
   reloaded or revisited. Without JavaScript, and on paper, everything is laid out as usual. */
.all-laid-out main > .section, .all-laid-out .footer,
html:not(.js) main > .section, html:not(.js) .footer { content-visibility: visible; }
@media print { main > .section, .footer { content-visibility: visible; } }
#vision { --est: 430px; }
#begrepp { --est: 1065px; }
#fysiken { --est: 1175px; }
#explosion { --est: 1215px; }
#historia { --est: 2680px; }
#sverige { --est: 710px; }
#principer { --est: 960px; }
#fragor { --est: 1180px; }
#kontakt { --est: 535px; }
.footer { --est: 585px; }
@media (max-width: 1023px) {
  #vision { --est: 250px; }
  #begrepp { --est: 1170px; }
  #fysiken { --est: 1070px; }
  #explosion { --est: 1460px; }
  #historia { --est: 2200px; }
  #sverige { --est: 1070px; }
  #principer { --est: 910px; }
  #fragor { --est: 1980px; }
  #kontakt { --est: 760px; }
  .footer { --est: 590px; }
}
@media (max-width: 700px) {
  #vision { --est: 410px; }
  #begrepp { --est: 1780px; }
  #fysiken { --est: 1760px; }
  #explosion { --est: 1650px; }
  #historia { --est: 3050px; }
  #sverige { --est: 1260px; }
  #principer { --est: 1540px; }
  #fragor { --est: 2120px; }
  #kontakt { --est: 630px; }
  .footer { --est: 685px; }
}

.section-head { margin-bottom: clamp(48px, 7vw, 100px); }
.section-head.split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 32px clamp(32px, 6vw, 110px);
  align-items: end;
}

/* ---------- Buttons ---------- */

.btn {
  --h: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--h);
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(10, 10, 14, 0.35);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: background 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.4s, transform 0.4s var(--ease-out);
}
.btn:hover { border-color: rgba(240, 235, 225, 0.45); background: rgba(240, 235, 225, 0.07); }
.btn:active { transform: scale(0.98); }
.btn .arrow { width: 18px; height: 18px; transition: transform 0.4s var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }
.btn[href="#vision"]:hover .arrow { transform: translateY(3px); }

.btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #0b0b0d;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.btn-primary:hover {
  background: #fff;
  border-color: #fff;
  box-shadow: 0 0 0 6px rgba(242, 176, 79, 0.14), 0 12px 50px -12px rgba(242, 176, 79, 0.7);
}
.btn-sm { --h: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { --h: 62px; padding: 0 30px; font-size: 18px; }

/* ---------- Reveal on scroll ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 0.85s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

.types > :nth-child(2), .stats > :nth-child(2), .roots > :nth-child(2), .p-grid > :nth-child(2) { --d: 0.08s; }
.types > :nth-child(3), .stats > :nth-child(3), .roots > :nth-child(3), .p-grid > :nth-child(3) { --d: 0.16s; }
.stats > :nth-child(4), .p-grid > :nth-child(5) { --d: 0.12s; }
.p-grid > :nth-child(6) { --d: 0.2s; }

/* ==========================================================================
   NAV
   ========================================================================== */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s;
}
.nav.is-scrolled {
  background: rgba(5, 5, 7, 0.66);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

/* light skin while floating over the daylight (principles) section */
.nav { transition: background 0.4s, border-color 0.4s, color 0.4s; }
.nav.on-light { color: var(--paper-ink); }
.nav.on-light.is-scrolled { background: rgba(236, 230, 217, 0.78); border-bottom-color: var(--paper-line); }
.nav.on-light .nav-links a { color: var(--paper-ink-2); }
.nav.on-light .nav-links a:hover,
.nav.on-light .nav-links a.is-active { color: var(--paper-ink); }
.nav.on-light .nav-links a.is-active { background: rgba(22, 20, 15, 0.07); }
.nav.on-light .lang { border-color: var(--paper-line); background: rgba(236, 230, 217, 0.5); }
.nav.on-light .lang button { color: var(--paper-ink-2); }
.nav.on-light .lang button[aria-pressed="true"] { background: var(--paper-ink); color: var(--paper); }
.nav.on-light .btn { border-color: rgba(22, 20, 15, 0.25); background: transparent; color: var(--paper-ink); }
.nav.on-light .btn:hover { background: rgba(22, 20, 15, 0.06); }
.nav.on-light .menu-toggle { border-color: rgba(22, 20, 15, 0.25); background: transparent; }
.nav.on-light .menu-toggle span { background: var(--paper-ink); }
.nav.on-light :focus-visible { outline-color: var(--paper-accent); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.015em;
  white-space: nowrap;
}
.brand-mark { width: 32px; height: 32px; flex: none; transition: transform 0.8s var(--ease-out); }
.brand:hover .brand-mark { transform: rotate(-12deg) scale(1.06); }

.nav-links { display: flex; gap: 2px; }
.nav-links a {
  position: relative;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-2);
  transition: color 0.25s, background 0.25s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.is-active,
.nav-links a[aria-current] { color: var(--ink); background: rgba(240, 235, 225, 0.07); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.lang {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(10, 10, 14, 0.35);
}
.lang button,
.lang a {
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  transition: background 0.25s, color 0.25s;
}
.lang a { display: inline-grid; place-items: center; }
.lang button:hover,
.lang a:hover { color: var(--ink); }
.lang button[aria-pressed="true"],
.lang a[aria-current="page"] { background: var(--ink); color: #0b0b0d; }

.menu-toggle {
  display: none;
  position: relative;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(10, 10, 14, 0.35);
}
.menu-toggle span {
  position: absolute;
  left: 13px; right: 13px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.4s var(--ease-out), top 0.4s var(--ease-out);
}
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 24px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { top: 20px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: calc(var(--nav-h) + 20px) var(--gutter) 32px;
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease-out), visibility 0.45s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
/* links scroll underneath the bar while the menu is open */
.menu-open .nav {
  background: rgb(5, 5, 7);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.mobile-links { display: flex; flex-direction: column; margin-block: auto; }
.mobile-links a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 6px 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, min(10vw, 6.4vh), 4rem);
  font-size: clamp(1.6rem, min(10vw, 6.4svh), 4rem);
  line-height: 1.08;
  transform: translateY(16px);
  opacity: 0;
  transition: transform 0.6s var(--ease-out), opacity 0.6s var(--ease-out), color 0.25s;
}
.mobile-menu.is-open .mobile-links a { transform: none; opacity: 1; }
.mobile-links a:nth-child(2) { transition-delay: 0.03s; }
.mobile-links a:nth-child(3) { transition-delay: 0.06s; }
.mobile-links a:nth-child(4) { transition-delay: 0.09s; }
.mobile-links a:nth-child(5) { transition-delay: 0.12s; }
.mobile-links a:nth-child(6) { transition-delay: 0.15s; }
.mobile-links a:nth-child(7) { transition-delay: 0.18s; }
.mobile-links a:nth-child(8) { transition-delay: 0.21s; }
.mobile-links a:nth-child(9) { transition-delay: 0.24s; }
.mobile-links a:nth-child(10) { transition-delay: 0.27s; }
.mobile-links a:nth-child(11) { transition-delay: 0.3s; }
.mobile-links a:nth-child(12) { transition-delay: 0.33s; }
.mobile-links a:hover { color: var(--gold-hi); }
.mobile-links small { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--gold); }
.mobile-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* pause / play all motion (WCAG 2.2.2) */
.motion-toggle {
  display: inline-grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(10, 10, 14, 0.35);
  color: var(--ink-2);
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.motion-toggle:hover { color: var(--ink); border-color: rgba(240, 235, 225, 0.45); }
.motion-toggle svg, .motion-toggle-text svg { width: 16px; height: 16px; }
.motion-toggle .i-play, .motion-toggle-text .i-play { display: none; }
.paused .motion-toggle .i-pause, .paused .motion-toggle-text .i-pause { display: none; }
.paused .motion-toggle .i-play, .paused .motion-toggle-text .i-play { display: block; }
.paused .motion-toggle, .paused .motion-toggle-text { color: var(--gold-hi); border-color: rgba(242, 176, 79, 0.5); }
.nav.on-light .motion-toggle { border-color: rgba(22, 20, 15, 0.25); background: transparent; color: var(--paper-ink); }
.motion-toggle-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 16px 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
}
.reduce-motion .motion-toggle,
.reduce-motion .motion-toggle-text,
html:not(.js) .motion-toggle,
html:not(.js) .lang { display: none; }

.paused .marquee-track,
.paused .live-dot::after,
.paused .hud-pulse,
.paused .hud-scroll svg,
.paused .tl-future .q,
.paused .tl-future::after { animation-play-state: paused; }

/* ==========================================================================
   HERO: the singularity
   ========================================================================== */

.hero { position: relative; height: 210vh; }

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.hero-canvas,
.hero-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* CSS-only black hole for browsers without WebGL */
.hero-fallback {
  background:
    radial-gradient(ellipse 46vmin 4.2vmin at 50% 40%, rgba(255, 214, 150, 0.85), rgba(255, 140, 60, 0.35) 45%, transparent 72%),
    radial-gradient(circle at 50% 40%, #000 0 11vmin, rgba(255, 216, 160, 0.95) 11.6vmin, rgba(255, 150, 70, 0.45) 13vmin, rgba(255, 120, 50, 0.08) 20vmin, transparent 30vmin),
    radial-gradient(ellipse at 50% 40%, rgba(120, 70, 30, 0.25), transparent 60%),
    var(--bg);
}
/* the WebGL black hole starts just after the first paint and fades in over this one */
.hero-canvas { opacity: 0; transition: opacity 0.9s var(--ease-out); }
.has-webgl .hero-canvas { opacity: 1; }

.hero-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 5, 7, 0.55) 0%, rgba(5, 5, 7, 0) 18%),
    linear-gradient(0deg, rgba(5, 5, 7, 0.94) 0%, rgba(5, 5, 7, 0.68) 22%, rgba(5, 5, 7, 0.22) 44%, rgba(5, 5, 7, 0) 58%);
}
.eyebrow-domain { white-space: nowrap; }
@media (max-width: 400px) { .eyebrow-domain { display: none; } }
.hero-lede { text-shadow: 0 1px 2px rgba(5, 5, 7, 0.8), 0 0 24px rgba(5, 5, 7, 0.9); }

.hero-content {
  position: absolute;
  left: 0; right: 0;
  top: calc(var(--nav-h) + 8px);
  bottom: clamp(84px, 12vh, 140px);
  display: flex;
  flex-direction: column;
  will-change: transform, opacity;
}
.hero-content > .wrap { margin-top: auto; }

.hero-eyebrow {
  padding: 8px 14px 8px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(5, 5, 7, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.14em;
  gap: 12px;
}

.live-dot {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
}
.live-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  animation: ping 2.4s var(--ease-out) infinite;
}
@keyframes ping {
  0% { transform: scale(0.5); opacity: 0.9; }
  100% { transform: scale(2.2); opacity: 0; }
}

.hero-title {
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.5rem, 11.5vw, 12rem);
  line-height: 0.86;
  letter-spacing: -0.025em;
  filter: drop-shadow(0 2px 22px rgba(5, 5, 7, 0.55));
}
.hero-title .line { display: block; overflow: hidden; padding: 0 0.1em 0.07em 0; margin-bottom: -0.07em; }
.hero-title .line > * {
  display: inline-block;
  transform: translate3d(0, 108%, 0);
  animation: rise 1.5s var(--ease-out) 0.25s forwards;
}
.hero-title .line:nth-child(2) > * { animation-delay: 0.4s; }
.hero-title em {
  font-style: italic;
  padding-right: 0.06em;
  background: linear-gradient(100deg, #fff1d6 0%, var(--gold-hi) 25%, var(--gold) 60%, var(--ember) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@keyframes rise { to { transform: none; } }

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
  margin-top: clamp(22px, 3vw, 34px);
  opacity: 0;
  animation: fade-up 1.4s var(--ease-out) 0.9s forwards;
}
.hero-lede {
  max-width: 31em;
  font-size: clamp(1rem, 1.25vw, 1.16rem);
  color: var(--ink-2);
  text-wrap: pretty;
}
.hero-ctas { display: flex; flex-wrap: wrap; flex-shrink: 0; gap: 12px; }

@keyframes fade-up {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
  to { opacity: 1; transform: none; }
}

.hud {
  position: absolute;
  left: 0; right: 0;
  bottom: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  opacity: 0;
  animation: fade-in 1.6s ease 1.4s forwards;
}
.hud-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.hud-item { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.hud-r { font-variant-numeric: tabular-nums; color: var(--ink-2); text-transform: none; letter-spacing: 0.08em; font-size: 12px; }
.hud-r sub { font-size: 0.75em; letter-spacing: 0; vertical-align: -0.25em; }
.hud-scroll svg { width: 14px; height: 14px; animation: nudge 2.2s var(--ease-in-out) infinite; }
.hud-pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 10px var(--ice); animation: blink 2.4s ease-in-out infinite; }

@keyframes fade-in { to { opacity: 1; } }
@keyframes nudge { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ==========================================================================
   01 VISION
   ========================================================================== */

.vision { padding-block: clamp(110px, 15vw, 230px); }
.vision-text {
  margin-top: 34px;
  max-width: 21em;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 4.4rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}
.js .vision-text .w { opacity: 0.4; transition: opacity 0.45s ease; }
.js .vision-text .w.lit { opacity: 1; }

/* ==========================================================================
   02 CONCEPT
   ========================================================================== */

.concept::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 70%;
  background: radial-gradient(60% 60% at 70% 0%, rgba(242, 176, 79, 0.07), transparent 70%);
  pointer-events: none;
}

.definition {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px 56px;
  margin-bottom: clamp(64px, 9vw, 120px);
  padding-block: clamp(28px, 4vw, 52px);
  border-block: 1px solid var(--line);
}
.definition-text {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 3.3rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  max-width: 24em;
  text-wrap: balance;
}
.definition figcaption {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  max-width: 20em;
  text-align: right;
}

.types-intro {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 20px;
}
.types {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
  transition: border-color 0.4s;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 0%), rgba(242, 176, 79, 0.1), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s;
}
.card:hover { border-color: rgba(240, 235, 225, 0.18); }
.card:hover::before { opacity: 1; }

.type-card { display: flex; flex-direction: column; }
.type-card .mini {
  width: 100%;
  height: 210px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(70% 90% at 50% 100%, rgba(242, 176, 79, 0.06), transparent 70%);
}
.type-body { padding: 26px 28px 32px; }
.type-kicker {
  display: flex;
  gap: 12px;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.type-kicker span:first-child { color: var(--gold); min-width: 1.6em; }
.type-card h3 {
  margin: 14px 0 12px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 3vw, 2.8rem);
  line-height: 1;
}
.type-card p:last-child { color: var(--ink-2); font-size: 16px; }

/* ==========================================================================
   03 PHYSICS
   ========================================================================== */

.physics { border-top: 1px solid var(--line); }

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(26px, 3.2vw, 44px);
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 5.6vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  white-space: nowrap;
  margin-bottom: 8px;
}
.stat-num .unit { font-style: italic; color: var(--gold); margin-left: 0.04em; }
.stat h3 { font-size: 1.08rem; font-weight: 500; letter-spacing: -0.01em; }
.stat > p:not(.stat-num) { color: var(--ink-2); font-size: 16px; max-width: 32em; }
.stat-bio .stat-num .unit { color: var(--ice); }

.bars {
  display: grid;
  gap: 11px;
  margin-top: auto;
  padding-top: 22px;
}
.bar {
  display: grid;
  grid-template-columns: 6.6em minmax(0, 1fr) 8.6em;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.bar-track {
  height: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.055);
  overflow: hidden;
}
.bar-fill {
  display: block;
  height: 100%;
  width: calc(var(--w) * 100%);
  border-radius: inherit;
  background: rgba(240, 235, 225, 0.38);
  transform-origin: 0 50%;
  transition: transform 1.8s var(--ease-out) 0.25s;
}
.js .bar-fill { transform: scaleX(0); }
.js .is-in .bar-fill { transform: scaleX(1); }
.bar.machine .bar-fill { background: linear-gradient(90deg, var(--gold-hi), var(--gold) 60%, var(--ember)); }
.bar.machine .bar-fill.infinite { background: linear-gradient(90deg, var(--gold-hi), var(--gold) 45%, rgba(255, 122, 53, 0)); }
.bar.win .bar-fill { background: linear-gradient(90deg, #dbeaff, var(--ice)); box-shadow: 0 0 14px rgba(169, 205, 255, 0.6); }
.bar-val { text-align: right; color: var(--ink-2); white-space: nowrap; text-transform: none; letter-spacing: 0.02em; }
.bar.machine .bar-val { color: var(--gold-hi); }
.bar.win .bar-val { color: var(--ice); }

/* ==========================================================================
   04 EXPLOSION SIMULATOR
   ========================================================================== */

.explosion::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(240, 235, 225, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 235, 225, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 60%, #000, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 60%, #000, transparent 75%);
}

.pull {
  margin: 24px 0 12px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.08;
  color: var(--gold-hi);
  text-wrap: balance;
}
.cite {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.caveat {
  margin-top: 18px;
  padding-left: 14px;
  border-left: 1px solid rgba(242, 176, 79, 0.5);
  max-width: 30em;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
}

.sim {
  position: relative;
  display: grid;
  grid-template-columns: minmax(290px, 390px) minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(242, 176, 79, 0.06), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008));
}
.sim-panel {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: clamp(22px, 3vw, 36px);
  border-right: 1px solid var(--line);
}

.seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
}
.seg button {
  height: 36px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background 0.3s, color 0.3s;
}
.seg button:hover { color: var(--ink); }
.seg button.is-active { background: var(--ink); color: #0b0b0d; }

.slider { display: grid; gap: 10px; }
.slider-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.slider-top label { font-size: 15px; font-weight: 500; }
.slider output {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold-hi);
  font-variant-numeric: tabular-nums;
}
.slider-scale {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.slider-help { font-size: 13.5px; line-height: 1.5; color: var(--ink-3); }

input[type="range"] {
  --fill: 50%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 26px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--gold) 0 var(--fill), rgba(255, 255, 255, 0.12) var(--fill) 100%);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  margin-top: -8px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 5px rgba(242, 176, 79, 0.2), 0 0 22px rgba(242, 176, 79, 0.55);
  transition: box-shadow 0.3s;
}
input[type="range"]:active::-webkit-slider-thumb { box-shadow: 0 0 0 8px rgba(242, 176, 79, 0.25), 0 0 30px rgba(242, 176, 79, 0.8); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.12); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--gold); }
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 5px rgba(242, 176, 79, 0.2), 0 0 22px rgba(242, 176, 79, 0.55);
}
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--gold); }
input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--gold); }

.sim-readout { margin-top: auto; padding-top: 24px; border-top: 1px solid var(--line); }
.sim-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.sim-time {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 4.6vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.sim-class { margin-top: 12px; font-weight: 500; color: var(--gold-hi); transition: color 0.4s; }
.sim-desc { margin-top: 2px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.sim[data-class="fast"] .sim-class { color: var(--ember); }
.sim[data-class="slow"] .sim-class { color: var(--ice); }

.sim-chart { position: relative; min-height: 480px; }
.sim-chart canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ==========================================================================
   05 THE SCALE
   ========================================================================== */

.scale { position: relative; height: 430vh; }
.scale-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.scale-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.scale-head { position: relative; z-index: 2; padding-top: calc(var(--nav-h) + clamp(28px, 6vh, 72px)); pointer-events: none; }
.scale-captions {
  position: relative;
  margin-top: 26px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.3vw, 4.3rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  min-height: 3.2em;
}
.scale-cap {
  position: absolute;
  top: 0; left: 0;
  max-width: 17em;
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  filter: blur(6px);
  transition: opacity 0.8s var(--ease-out), transform 1s var(--ease-out), filter 0.8s var(--ease-out);
  text-wrap: balance;
}
.scale-cap.is-active { opacity: 1; transform: none; filter: none; }

.scale-foot {
  position: absolute;
  left: 0; right: 0;
  bottom: 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.scale-zoom { white-space: nowrap; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* ==========================================================================
   06 HISTORY
   ========================================================================== */

.timeline {
  --tl-col: clamp(120px, 17vw, 250px);
  --tl-gap: clamp(36px, 6vw, 96px);
  --tl-x: calc(var(--tl-col) + var(--tl-gap) / 2);
  position: relative;
}
.tl-list { list-style: none; margin: 0; padding: 0; }
.timeline::before {
  content: "";
  position: absolute;
  left: var(--tl-x);
  top: 0; bottom: 0;
  width: 1px;
  background: var(--line);
}
.tl-progress {
  position: absolute;
  left: var(--tl-x);
  top: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 70%, var(--ember));
  box-shadow: 0 0 12px rgba(242, 176, 79, 0.7);
  transform-origin: 50% 0;
  transform: scaleY(var(--p, 0));
}
.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: var(--tl-col) minmax(0, 1fr);
  column-gap: var(--tl-gap);
  padding-block: clamp(26px, 3.4vw, 42px);
  border-top: 1px solid var(--line);
}
.tl-item::after {
  content: "";
  position: absolute;
  left: calc(var(--tl-x) - 5px);
  top: calc(clamp(26px, 3.4vw, 42px) + 0.95rem);
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--ink-3);
  transition: background 0.5s, border-color 0.5s, box-shadow 0.5s;
}
.tl-item.is-past::after {
  background: var(--gold);
  border-color: var(--gold-hi);
  box-shadow: 0 0 0 4px rgba(242, 176, 79, 0.15), 0 0 18px var(--gold);
}
.tl-year {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--ink-3);
  transition: color 0.6s;
}
.tl-item.is-past .tl-year { color: var(--ink); }
.tl-body h3 { font-size: clamp(1.25rem, 1.8vw, 1.6rem); font-weight: 500; letter-spacing: -0.015em; margin: 4px 0 8px; }
.tl-body p { color: var(--ink-2); max-width: 38em; }

.tl-future .tl-year { color: var(--gold-hi) !important; }
.tl-future .q { display: inline-block; animation: flicker 3s steps(1) infinite; }
.tl-future::after { animation: beacon 2.4s ease-in-out infinite; }
.tl-future h3 { font-family: var(--font-display); font-weight: 400; font-style: italic; font-size: clamp(2rem, 3.4vw, 3rem); color: var(--gold-hi); }
@keyframes flicker { 0%, 100% { opacity: 1; } 48% { opacity: 1; } 50% { opacity: 0.35; } 52% { opacity: 1; } 80% { opacity: 0.6; } 82% { opacity: 1; } }
@keyframes beacon {
  0%, 100% { box-shadow: 0 0 0 4px rgba(242, 176, 79, 0.15), 0 0 18px var(--gold); }
  50% { box-shadow: 0 0 0 10px rgba(242, 176, 79, 0.05), 0 0 34px var(--gold); }
}

/* ==========================================================================
   07 SWEDEN
   ========================================================================== */

.sweden { border-top: 1px solid var(--line); }
.roots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.root-card {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 36px) clamp(24px, 3vw, 36px) clamp(30px, 3.4vw, 42px);
}
.root-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.root-meta .coords { white-space: nowrap; }
.root-year {
  margin: clamp(56px, 7vw, 104px) 0 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--gold);
}
.root-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.3rem, 3.4vw, 3.1rem);
  line-height: 1;
  margin-bottom: 14px;
}
.root-card > p:last-child { color: var(--ink-2); font-size: 16px; }

/* ==========================================================================
   MARQUEE
   ========================================================================== */

.marquee {
  overflow: hidden;
  padding-block: clamp(22px, 3vw, 34px);
  border-block: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 70s linear infinite;
}
.marquee-group {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 44px);
  padding-right: clamp(24px, 3vw, 44px);
}
.marquee span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 1.1;
  white-space: nowrap;
  color: var(--ink);
}
.marquee span:nth-child(4n + 3) { color: transparent; -webkit-text-stroke: 1px rgba(240, 235, 225, 0.55); }
.marquee i { font-style: normal; color: var(--gold); font-size: clamp(1rem, 1.8vw, 1.6rem); }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* ==========================================================================
   08 PRINCIPLES: daylight section
   ========================================================================== */

.principles {
  background: var(--paper);
  color: var(--paper-ink);
}
.principles .eyebrow { color: var(--paper-ink-2); }
.principles .eyebrow-num { color: var(--paper-accent); }
.principles .h2 em { color: var(--paper-accent); }
.principles .lede { color: var(--paper-ink-2); }
.principles ::selection { background: var(--paper-ink); color: var(--paper); }
.principles :focus-visible { outline-color: var(--paper-accent); }

.p-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(24px, 4vw, 64px);
}
.p-grid li {
  padding: clamp(26px, 3vw, 40px) 0 clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--paper-line);
}
.p-num { font-size: 12px; letter-spacing: 0.14em; color: var(--paper-accent); }
.p-grid h3 {
  margin: 22px 0 14px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 2.7vw, 2.6rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.p-grid p { color: var(--paper-ink-2); max-width: 24em; }

/* ==========================================================================
   09 QUESTIONS
   ========================================================================== */

.faq { border-bottom: 1px solid var(--line); }
.faq-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 56px clamp(40px, 7vw, 120px);
  align-items: start;
}
.faq-head { position: sticky; top: calc(var(--nav-h) + 40px); }
.faq-head .lede { margin-top: 26px; }

.reading { margin-top: clamp(40px, 5vw, 72px); max-width: 30em; }
.reading-title {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.reading-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.reading-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 2px 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.reading-list cite { font-family: var(--font-display); font-size: 1.4rem; line-height: 1.2; color: var(--ink); }
.reading-list span { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; color: var(--ink-3); }
.reading-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  font-size: 15px;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(242, 176, 79, 0.6);
  text-underline-offset: 4px;
  transition: color 0.25s;
}
.reading-more:hover { color: var(--gold-hi); }
.reading-more .arrow { flex: none; width: 18px; height: 18px; transition: transform 0.4s var(--ease-out); }
.reading-more:hover .arrow { transform: translateX(3px); }

.faq-list { border-top: 1px solid var(--line-2); }
.faq-item { border-bottom: 1px solid var(--line-2); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(22px, 2.4vw, 30px) 0;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.3vw, 2.1rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
  transition: color 0.25s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--gold-hi); }
.faq-icon {
  position: relative;
  flex: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--ink-2);
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.5px;
  margin: -0.75px 0 0 -6px;
  background: currentColor;
  transition: transform 0.4s var(--ease-out);
}
.faq-icon::after { transform: rotate(90deg); }
.faq-item summary:hover .faq-icon { border-color: rgba(240, 235, 225, 0.45); color: var(--ink); }
.faq-item[open] .faq-icon { border-color: var(--gold); color: var(--gold-hi); background: rgba(242, 176, 79, 0.08); }
.faq-item[open] .faq-icon::after { transform: rotate(0deg); }
.faq-item[open] .faq-a { animation: faq-open 0.5s var(--ease-out); }
@keyframes faq-open { from { opacity: 0; transform: translate3d(0, -6px, 0); } }
.faq-a { padding-bottom: clamp(26px, 2.8vw, 36px); max-width: 38em; color: var(--ink-2); text-wrap: pretty; }
.faq-a p + p { margin-top: 0.85em; }
.faq-a a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(242, 176, 79, 0.6);
  text-underline-offset: 3px;
  transition: color 0.25s;
}
.faq-a a:hover { color: var(--gold-hi); }
.faq-a .faq-src { margin-top: 16px; font-size: 11.5px; letter-spacing: 0.04em; line-height: 1.6; color: var(--ink-3); }
.faq-src a { color: inherit; text-decoration-color: rgba(240, 235, 225, 0.3); }

/* ==========================================================================
   10 CONTACT
   ========================================================================== */

.contact {
  overflow: hidden;
  padding-block: clamp(110px, 13vw, 200px);
}
.contact::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -40%;
  width: 140vmax;
  height: 80vmax;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(242, 176, 79, 0.12), rgba(255, 122, 53, 0.04) 50%, transparent 75%);
  pointer-events: none;
}
.contact-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
}
.display {
  margin: 22px 0 26px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 7.4vw, 7.4rem);
  line-height: 0.92;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.contact-actions { margin-top: 36px; }
.contact-small { margin-top: 18px; font-size: 14px; color: var(--ink-3); }
.contact-art { position: relative; height: clamp(320px, 40vw, 560px); }
.contact-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y pinch-zoom; }

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  position: relative;
  overflow: hidden;
  padding-top: 64px;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer-tag { margin-top: 14px; color: var(--ink-3); font-size: 15px; }
.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 10px 40px;
}
.footer-nav a, .to-top { color: var(--ink-2); font-size: 15px; transition: color 0.25s; }
.footer-nav a:hover, .to-top:hover { color: var(--gold-hi); }
.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-3);
}
.footer-credit { color: var(--ink-2); }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px 40px;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
}
.privacy { max-width: 64ch; }
.privacy summary {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  list-style: none;
  cursor: pointer;
  border-radius: 6px;
}
.privacy summary::-webkit-details-marker { display: none; }
.privacy-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #7fd1a0;
  box-shadow: 0 0 8px rgba(127, 209, 160, 0.7);
}
.privacy-claim {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.privacy-more {
  font-size: 13px;
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: rgba(240, 235, 225, 0.3);
  text-underline-offset: 3px;
  transition: color 0.25s;
}
.privacy summary:hover .privacy-more { color: var(--gold-hi); }
.privacy-more::after { content: " +"; content: " +" / ""; }
.privacy[open] .privacy-more::after { content: " −"; content: " −" / ""; }
.privacy-body {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
}
.privacy-body ul { margin: 10px 0; padding-left: 1.1em; }
.privacy-body li { margin: 4px 0; }
.footer-affil { max-width: 46ch; font-size: 12.5px; line-height: 1.55; }
.footer-giant {
  margin-top: 56px;
  font-family: var(--font-display);
  font-size: 23vw;
  line-height: 0.74;
  letter-spacing: -0.035em;
  text-align: center;
  white-space: nowrap;
  user-select: none;
  color: transparent;
  background: linear-gradient(180deg, rgba(240, 235, 225, 0.16), rgba(240, 235, 225, 0) 78%);
  -webkit-background-clip: text;
  background-clip: text;
  transform: translateY(10%);
}

/* ==========================================================================
   GLOSSARY: ordlista/ and en/glossary/
   ========================================================================== */

.glossary-page { scroll-padding-top: calc(var(--nav-h) + 84px); }

.gl-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + clamp(56px, 9vw, 130px)) 0 clamp(44px, 6vw, 80px);
}
.gl-hero::before,
.ar-hero::before {
  content: "";
  position: absolute;
  right: -24vmax;
  top: -34vmax;
  width: 84vmax;
  height: 84vmax;
  background: radial-gradient(closest-side, rgba(242, 176, 79, 0.13), rgba(255, 122, 53, 0.04) 55%, transparent 75%);
  pointer-events: none;
}
.gl-hero .wrap,
.ar-hero .wrap { position: relative; }
.gl-title {
  margin-top: 24px;
  max-width: 12em;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 8.4vw, 8rem);
  line-height: 0.94;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.gl-title em { font-style: italic; color: var(--gold-hi); }
.gl-lede { margin-top: 28px; }

.gl-tools {
  position: sticky;
  top: var(--nav-h);
  z-index: 20;
  border-block: 1px solid var(--line);
  background: rgba(5, 5, 7, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.gl-tools-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding-block: 14px; }
.gl-search { position: relative; flex: 1 1 260px; max-width: 420px; }
.gl-search svg {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  color: var(--ink-3);
  pointer-events: none;
}
.gl-search input {
  width: 100%;
  height: 44px;
  padding: 0 18px 0 44px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(240, 235, 225, 0.04);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.25s, background 0.25s;
}
.gl-search input::placeholder { color: var(--ink-3); opacity: 1; }
.gl-search input:hover { border-color: rgba(240, 235, 225, 0.35); }
.gl-search input:focus { border-color: var(--gold); background: rgba(240, 235, 225, 0.07); }
.gl-letters { display: flex; flex-wrap: wrap; gap: 2px; font-family: var(--font-mono); font-size: 12.5px; }
.gl-letters a,
.gl-letters span {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 30px;
  border-radius: 8px;
}
.gl-letters a { color: var(--ink); transition: background 0.2s, color 0.2s, opacity 0.2s; }
.gl-letters a:hover { background: rgba(240, 235, 225, 0.08); color: var(--gold-hi); }
.gl-letters a.is-off { opacity: 0.35; }
.gl-letters span { color: var(--ink-3); opacity: 0.4; }

.gl-body { padding-block: clamp(20px, 3vw, 40px) clamp(72px, 9vw, 130px); }
.gl-group {
  display: grid;
  grid-template-columns: clamp(56px, 9vw, 150px) minmax(0, 1fr);
  gap: 0 clamp(20px, 4vw, 64px);
  padding-block: clamp(28px, 3.6vw, 48px);
  border-bottom: 1px solid var(--line);
}
.gl-group[hidden],
.gl-entry[hidden] { display: none; }
.gl-letter {
  position: sticky;
  top: calc(var(--nav-h) + 100px);
  align-self: start;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 0.9;
  color: var(--gold-hi);
}
.gl-list { margin: 0; }
.gl-entry + .gl-entry { margin-top: clamp(26px, 3vw, 38px); padding-top: clamp(26px, 3vw, 38px); border-top: 1px solid var(--line); }
.gl-entry dt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.gl-term {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.7vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  transition: color 0.4s;
}
.gl-also { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.gl-entry dd { margin: 12px 0 0; max-width: 44em; color: var(--ink-2); text-wrap: pretty; }
.gl-entry dd a,
.gl-empty a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(242, 176, 79, 0.6);
  text-underline-offset: 3px;
  transition: color 0.25s;
}
.gl-entry dd a:hover,
.gl-empty a:hover { color: var(--gold-hi); }
.gl-see { margin-top: 12px; font-size: 14px; color: var(--ink-3); }
.gl-entry:target .gl-term { color: var(--gold-hi); }
.gl-empty { padding-block: 56px; font-size: 1.1rem; color: var(--ink-2); }

.gl-cta { padding-bottom: var(--section-y); }
.gl-cta .h2 { max-width: 12em; }
.gl-cta .lede { margin-top: 24px; }
.gl-cta .lede a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(242, 176, 79, 0.6);
  text-underline-offset: 3px;
  transition: color 0.25s;
}
.gl-cta .lede a:hover { color: var(--gold-hi); }
.gl-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* ==========================================================================
   ARTICLES: artiklar/ and en/articles/
   ========================================================================== */

.article-page { scroll-padding-top: calc(var(--nav-h) + 24px); }

.ar-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + clamp(56px, 9vw, 130px)) 0 clamp(40px, 5vw, 72px);
}
.ar-hero a.eyebrow-num { transition: color 0.25s; }
.ar-hero a.eyebrow-num:hover { color: var(--gold-hi); }
.ar-title {
  margin-top: 24px;
  max-width: 13em;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.8rem, 7.4vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.ar-title em { font-style: italic; color: var(--gold-hi); }
.ar-dek { margin-top: 28px; max-width: 36em; font-size: clamp(1.1rem, 1.5vw, 1.35rem); }

.ar-layout {
  display: grid;
  grid-template-columns: minmax(0, 44rem) minmax(11rem, 16rem);
  justify-content: space-between;
  gap: 0 clamp(40px, 6vw, 120px);
  padding-top: clamp(36px, 4.4vw, 60px);
  padding-bottom: clamp(80px, 10vw, 150px);
  border-top: 1px solid var(--line);
}
.ar-aside { grid-column: 2; grid-row: 1; }
.ar-body { grid-column: 1; grid-row: 1; }
.ar-toc { position: sticky; top: calc(var(--nav-h) + 40px); }
.ar-aside-title {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.ar-toc ol { list-style: none; margin: 14px 0 0; padding: 0; border-left: 1px solid var(--line); }
.ar-toc a {
  display: block;
  margin-left: -1px;
  padding: 7px 0 7px 16px;
  border-left: 1px solid transparent;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-2);
  transition: color 0.2s, border-color 0.2s;
}
.ar-toc a:hover { color: var(--ink); border-left-color: var(--gold); }

.ar-body { font-size: 18px; line-height: 1.75; color: var(--ink-2); }
.ar-body p,
.ar-body ul,
.ar-body ol { margin: 0; }
.ar-body p + p,
.ar-body p + ul,
.ar-body ul + p,
.ar-body p + ol { margin-top: 1.1em; }
.ar-body h2 {
  margin: 2.1em 0 0.65em;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}
.ar-body strong { font-weight: 500; color: var(--ink); }
.ar-body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(242, 176, 79, 0.6);
  text-underline-offset: 3px;
  transition: color 0.25s;
}
.ar-body a:hover { color: var(--gold-hi); }
.ar-body ul { list-style: none; padding: 0; }
.ar-body ul li { position: relative; padding-left: 1.4em; }
.ar-body ul li + li { margin-top: 0.7em; }
.ar-body ul li::before {
  content: "";
  position: absolute;
  left: 0.2em;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.ar-body h3 {
  margin: 1.7em 0 0.45em;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.1vw, 1.7rem);
  line-height: 1.2;
  color: var(--ink);
  text-wrap: balance;
}
.ar-body h3 + p { margin-top: 0; }

/* everyday examples as numbered cards */
.ar-body .ar-examples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 1.5em; counter-reset: example; }
.ar-body .ar-examples li { margin: 0; padding: 18px 20px 20px; border: 1px solid var(--line); border-radius: 16px; background: rgba(240, 235, 225, 0.025); }
.ar-body .ar-examples li + li { margin-top: 0; }
.ar-body .ar-examples li::before {
  counter-increment: example;
  content: counter(example, decimal-leading-zero);
  position: static;
  display: block;
  width: auto;
  height: auto;
  margin-bottom: 10px;
  border-radius: 0;
  background: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1;
  letter-spacing: 0.14em;
  color: var(--gold);
}
.ar-body .ar-examples h3 { margin: 0 0 8px; font-size: clamp(1.25rem, 1.8vw, 1.4rem); }
.ar-body .ar-examples p { font-size: 15.5px; line-height: 1.6; }
.ar-body .ar-examples p + p { margin-top: 0.7em; }
.ar-body .ar-examples .ar-ex-kind { font-family: var(--font-mono); font-size: 11px; line-height: 1.5; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }

/* questions and answers */
.ar-body .ar-faq { margin-top: 1.4em; border-top: 1px solid var(--line); }
.ar-body .ar-faq h3 { margin: 0; padding-top: 1.1em; font-size: clamp(1.3rem, 2vw, 1.55rem); }
.ar-body .ar-faq h3 + p { margin-top: 0.4em; }
.ar-body .ar-faq p + h3 { margin-top: 1.2em; border-top: 1px solid var(--line); }

@media (max-width: 640px) {
  .ar-body .ar-examples { grid-template-columns: minmax(0, 1fr); }
}

.ar-summary {
  padding: clamp(22px, 2.6vw, 32px) clamp(22px, 2.8vw, 36px);
  border: 1px solid rgba(242, 176, 79, 0.28);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(242, 176, 79, 0.08), rgba(242, 176, 79, 0.02));
  color: var(--ink);
}
.ar-body .ar-summary-title,
.ar-body .ar-terms h2 {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.ar-summary p { font-size: 1.06em; line-height: 1.65; }

.ar-body .ar-sources { list-style: none; padding: 0; counter-reset: source; font-size: 14px; line-height: 1.6; color: var(--ink-3); }
.ar-sources li { position: relative; padding-left: 2em; }
.ar-sources li + li { margin-top: 0.55em; }
.ar-sources li::before {
  counter-increment: source;
  content: counter(source);
  position: absolute;
  left: 0;
  top: 0.15em;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold);
}
.ar-body .ar-sources a { color: var(--ink-2); }

.ar-terms { margin-top: 3.2em; padding-top: 2em; border-top: 1px solid var(--line); }
.ar-body .ar-terms h2 { color: var(--ink-3); }
.ar-body .ar-term-list { display: flex; flex-wrap: wrap; gap: 8px; }
.ar-body .ar-term-list li { padding: 0; margin: 0; }
.ar-body .ar-term-list li::before { content: none; }
.ar-body .ar-term-list a {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 14px;
  text-decoration: none;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.ar-body .ar-term-list a:hover { border-color: var(--gold); color: var(--gold-hi); background: rgba(242, 176, 79, 0.06); }

.ar-index { padding-bottom: clamp(72px, 9vw, 130px); }
.ar-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ar-card { border-bottom: 1px solid var(--line); }
.ar-card-link {
  display: grid;
  grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
  gap: 10px clamp(24px, 4vw, 64px);
  padding-block: clamp(28px, 3.4vw, 44px);
}
.ar-card-meta { grid-row: 1 / span 3; padding-top: 0.9em; font-size: 12px; letter-spacing: 0.08em; color: var(--ink-3); }
.ar-card-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  transition: color 0.3s;
}
.ar-card-title em { font-style: italic; color: var(--gold-hi); }
.ar-card-dek { max-width: 38em; color: var(--ink-2); }
.ar-card-more { display: inline-flex; align-items: center; gap: 10px; margin-top: 4px; font-size: 15px; color: var(--ink); }
.ar-card-more .arrow { flex: none; width: 18px; height: 18px; transition: transform 0.4s var(--ease-out); }
.ar-card-link:hover .ar-card-title { color: var(--gold-hi); }
.ar-card-link:hover .ar-card-more .arrow { transform: translateX(3px); }

/* small article cards: "more articles" below each article, and the latest articles on the front page */
.ar-more { padding: clamp(56px, 7vw, 96px) 0 clamp(8px, 2vw, 24px); border-top: 1px solid var(--line); }
.ar-more-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; }
.ar-more-head .reading-more { margin-top: 0; }
.ar-more-title { font-size: 11.5px; font-weight: 500; line-height: 1.5; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.ar-mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 18px 0 0; padding: 0; list-style: none; }
.ar-mini { display: flex; }
.ar-mini-link {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding: 20px 22px 22px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(240, 235, 225, 0.04), rgba(240, 235, 225, 0.01));
  transition: border-color 0.3s, background 0.3s;
}
.ar-mini-link:hover { border-color: rgba(242, 176, 79, 0.6); background: rgba(242, 176, 79, 0.05); }
.ar-mini-meta { font-size: 11.5px; letter-spacing: 0.08em; color: var(--ink-3); }
.ar-mini-title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 2.2vw, 1.9rem); line-height: 1.05; letter-spacing: -0.01em; color: var(--ink); transition: color 0.3s; }
.ar-mini-title em { font-style: italic; color: var(--gold-hi); }
.ar-mini-link:hover .ar-mini-title { color: var(--gold-hi); }
.ar-mini-dek { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.ar-mini-more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 4px; font-size: 14px; color: var(--ink); }
.ar-mini-more .arrow { flex: none; width: 16px; height: 16px; transition: transform 0.4s var(--ease-out); }
.ar-mini-link:hover .ar-mini-more .arrow { transform: translateX(3px); }
.home-reads { margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--line); }
/* the front page carries the strip in both languages and switches language in place */
html[lang="sv"] .home-reads[lang="en"],
html[lang="en"] .home-reads[lang="sv"] { display: none; }
.ar-body .ar-about { margin-top: 2.4em; font-size: 13.5px; line-height: 1.6; color: var(--ink-3); }
.ar-body .ar-about a { color: var(--ink-2); }

/* ==========================================================================
   404
   ========================================================================== */

.page-404 { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; position: relative; overflow: hidden; }
.page-404 .hero-fallback { opacity: 0.9; }
.page-404 .hero-fallback::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 5, 7, 0.95) 8%, rgba(5, 5, 7, 0.2) 60%);
}
.page-404 .inner { position: relative; padding: 120px var(--gutter) 80px; max-width: 760px; }
.page-404 h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(3rem, 9vw, 7rem); line-height: 0.92; letter-spacing: -0.02em; margin: 22px 0 22px; }
.page-404 h1 em { font-style: italic; color: var(--gold-hi); }
.page-404 p.lede { margin: 0 auto 36px; }
.page-404 .en { margin-top: 18px; font-size: 14px; color: var(--ink-3); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1240px) {
  .nav-links { display: none; }
  .js .menu-toggle { display: inline-block; }
  html:not(.js) .nav-links { display: flex; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
}
@media (max-width: 600px) {
  .hud-scroll span { display: none; }
}

@media (max-width: 1000px) {
  .section-head.split { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .types, .roots { grid-template-columns: minmax(0, 1fr); }
  .type-card { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  .type-card .mini { height: 100%; min-height: 220px; border-bottom: 0; border-right: 1px solid var(--line); }
  .root-card { min-height: 0; }
  .sim { grid-template-columns: minmax(0, 1fr); }
  .sim-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .sim-chart { min-height: 380px; }
  .p-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-inner { grid-template-columns: minmax(0, 1fr); }
  .faq-head { position: static; }
  .ar-layout { grid-template-columns: minmax(0, 1fr); }
  .ar-aside,
  .ar-body { grid-column: 1; grid-row: auto; }
  .ar-toc { position: static; margin-bottom: 40px; }
  .ar-card-link { grid-template-columns: minmax(0, 1fr); }
  .ar-card-meta { grid-row: auto; padding-top: 0; }
  .ar-mini-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-inner { grid-template-columns: minmax(0, 1fr); }
  .contact-art { order: -1; height: clamp(240px, 52vw, 420px); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-meta { align-items: flex-start; grid-column: 1 / -1; flex-direction: row; justify-content: space-between; flex-wrap: wrap; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  :root { --nav-h: 64px; }
  .nav-cta { display: none; }
  .hero { height: 190vh; }
  .hero-bottom { flex-direction: column; align-items: flex-start; }
  .hud-r { display: none; }
  .definition { grid-template-columns: minmax(0, 1fr); }
  .definition figcaption { text-align: left; }
  .type-card { display: flex; }
  .type-card .mini { height: 180px; min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .bar { grid-template-columns: 6.2em minmax(0, 1fr) auto; }
  .sim-chart { min-height: 320px; }
  .scale { height: 380vh; }
  .scale-captions { min-height: 4.3em; }
  .scale-foot { flex-direction: column; align-items: flex-start; gap: 8px; }
  .timeline {
    --tl-x: 5px;
    padding-left: 34px;
  }
  .tl-item { grid-template-columns: minmax(0, 1fr); row-gap: 10px; }
  .tl-item::after { left: calc(-34px + var(--tl-x) - 5px); top: calc(clamp(26px, 3.4vw, 42px) + 0.7rem); }
  .tl-year { font-size: 2.6rem; }
  .p-grid { grid-template-columns: minmax(0, 1fr); }
  .glossary-page { scroll-padding-top: calc(var(--nav-h) + 124px); }
  .ar-body { font-size: 17px; }
  .gl-search { flex-basis: 100%; max-width: none; }
  .gl-search input { height: 42px; }
  .gl-letters {
    flex-wrap: nowrap;
    width: calc(100% + 2 * var(--gutter));
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent);
    mask-image: linear-gradient(90deg, #000 82%, transparent);
  }
  .gl-letters::-webkit-scrollbar { display: none; }
  .gl-group { grid-template-columns: minmax(0, 1fr); }
  .gl-letter { position: static; margin-bottom: 16px; font-size: 3.2rem; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-giant { font-size: 25vw; }
}

@media (max-width: 420px) {
  .brand-name { font-size: 16px; }
  .lang button,
  .lang a { padding: 0 8px; }
  .nav-actions .motion-toggle { display: none; }
  .btn-lg { --h: 56px; padding: 0 22px; font-size: 16px; }
}

/* Short, wide screens: phones on their side, small laptop windows */
@media (max-height: 560px) and (min-aspect-ratio: 1/1) {
  .hero-content { bottom: 56px; }
  .hero-eyebrow { padding: 6px 12px 6px 10px; font-size: 10px; }
  .hero-title { margin-top: 10px; font-size: min(11.5vw, 15.5vh); }
  .hero-bottom { margin-top: 12px; flex-direction: row; align-items: center; }
  .hero-lede { font-size: 14px; line-height: 1.5; }
  .hero-ctas .btn { --h: 42px; padding: 0 18px; font-size: 14px; }
  .hud { bottom: 10px; }
  .hud-inner { padding-top: 9px; }
  .scale-head { padding-top: calc(var(--nav-h) + 12px); }
  .scale-captions { margin-top: 12px; font-size: clamp(1.35rem, 6.2vh, 2.3rem); }
  .scale-foot { bottom: 10px; flex-direction: row; align-items: flex-end; }
}
@media (max-height: 430px) and (min-aspect-ratio: 1/1) {
  .hero-lede { font-size: 13px; line-height: 1.45; }
}

/* Short portrait screens: small phones, toolbars showing */
@media (max-height: 540px) and (max-aspect-ratio: 1/1) {
  .hero-content { bottom: 64px; }
  .hero-title { font-size: min(11.5vw, 10vh); font-size: min(11.5vw, 10svh); }
  .hero-bottom { margin-top: 16px; }
  .hero-lede { font-size: 14px; line-height: 1.5; }
}

@media (min-width: 1800px) {
  :root { --maxw: 1480px; }
  html { font-size: 106.25%; }
  .hero-title { font-size: clamp(3.5rem, 11.5vw, 13rem); }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

.reduce-motion .scale { height: auto; }
.reduce-motion .scale-sticky { position: relative; height: auto; min-height: 100vh; padding-bottom: 46vh; }
.reduce-motion .scale-captions { min-height: 0; }
.reduce-motion .scale-cap { position: static; opacity: 1; transform: none; filter: none; margin-bottom: 0.4em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
