/* ============================================================================
   INKWELL GENIE — Core
   Design tokens, reset, typography, layout primitives, chrome.
   ========================================================================== */

/* ---------------------------------------------------------------- tokens -- */
:root {
  /* Ink — the page. Blue-black, like printer's ink, not neutral grey. */
  --ink-000: #030307;
  --ink-050: #06060C;
  --ink-100: #0A0A12;
  --ink-200: #0E0E18;
  --ink-300: #14141F;
  --ink-400: #1B1B28;
  --ink-500: #242433;

  /* Parchment — the type. Warm off-whites, never pure #fff. */
  --parch-100: #F5F1E7;
  --parch-200: #E4DED0;
  --parch-300: #C6BFAE;
  --parch-400: #9B9484;
  --parch-500: #746E61;
  --parch-600: #4E4941;

  /* Gild — foil stamping, gilt edges, the primary accent. */
  --gild-100: #FDF4DC;
  --gild-200: #F5E4B8;
  --gild-300: #E9D298;
  --gild-400: #D9BE7C;
  --gild-500: #C9A961;
  --gild-600: #A98844;
  --gild-700: #7C6230;
  --gild-900: #3A2D14;

  /* Oxblood — bound leather. Depth in gradients, never type. */
  --ox-400: #8E2A3A;
  --ox-500: #6E1F2C;
  --ox-700: #3A0F17;
  --ox-900: #1C070C;

  /* Signal — the machine. Used sparingly, inside product surfaces only. */
  --iris-400: #9A8DFF;
  --iris-500: #7C6CF5;
  --iris-700: #4638A8;
  --verd-400: #5FD9C2;
  --verd-500: #3BB49E;
  --coral-500: #E4705A;

  /* Lines & fills */
  --line-1: rgba(245, 241, 231, 0.07);
  --line-2: rgba(245, 241, 231, 0.12);
  --line-3: rgba(245, 241, 231, 0.20);
  --gild-line: rgba(201, 169, 97, 0.28);
  --fill-1: rgba(245, 241, 231, 0.022);
  --fill-2: rgba(245, 241, 231, 0.045);
  --fill-3: rgba(245, 241, 231, 0.075);

  /* Foil gradient — reused everywhere for gilt type & rules */
  --foil: linear-gradient(96deg,
      #7C6230 0%, #C9A961 14%, #FDF4DC 30%, #E9D298 42%,
      #A98844 58%, #FDF4DC 72%, #C9A961 86%, #7C6230 100%);

  /* Type */
  --f-display: "Bodoni Moda", "Didot", "Times New Roman", serif;
  --f-ui: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Motion */
  --e-out: cubic-bezier(0.16, 1, 0.3, 1);
  --e-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --e-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Metrics */
  --gutter: clamp(20px, 4.4vw, 88px);
  --maxw: 1360px;
  --nav-h: 76px;
  --radius: 4px;
  --radius-lg: 8px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto; /* JS-driven smooth scroll owns this */
}

body {
  background: var(--ink-000);
  color: var(--parch-300);
  font-family: var(--f-ui);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; height: 100vh; }

img, svg, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; background: none; border: none; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
::selection { background: var(--gild-500); color: var(--ink-000); }

:focus-visible {
  outline: 1px solid var(--gild-500);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: fixed; top: 10px; left: 50%; z-index: 600;
  transform: translate(-50%, -160%);
  padding: 11px 20px;
  background: var(--gild-300); color: var(--ink-000);
  font-family: var(--f-mono); font-size: .65rem; letter-spacing: .16em; text-transform: uppercase;
  border-radius: 3px;
  transition: transform .35s var(--e-out);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* --------------------------------------------------------------- scrollbar */
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--ink-050); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gild-700), var(--gild-900));
  border-radius: 0;
  border-left: 1px solid var(--line-1);
}
::-webkit-scrollbar-thumb:hover { background: var(--gild-600); }

/* ------------------------------------------------------------ typography -- */
.display {
  font-family: var(--f-display);
  font-optical-sizing: auto;
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.022em;
  color: var(--parch-100);
  font-variation-settings: "opsz" 96;
}

h1.display  { font-size: clamp(2.9rem, 7.4vw, 6.6rem); }
/* Sized to sit on one line inside a split section header at 1440–1600px.
   Bigger than this and every second heading wraps into an orphan. */
h2.display  { font-size: clamp(2.05rem, 4.15vw, 3.6rem); }
h3.display  { font-size: clamp(1.4rem, 2.35vw, 2.05rem); line-height: 1.08; }
/* Centred headings have the full measure, so they can run larger */
.sec-head[style*="center"] h2.display,
.cta h2.display { font-size: clamp(2.2rem, 5vw, 4.3rem); }

.display em {
  font-style: italic;
  font-weight: 400;
}

/* Gilt foil type — animated sheen travels across the letterforms */
.foil {
  background: var(--foil);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: foil-drift 9s linear infinite;
}
@keyframes foil-drift {
  0%   { background-position: 130% 50%; }
  100% { background-position: -130% 50%; }
}

/* Micro-label: the letterspaced mono eyebrow used throughout */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.635rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gild-500);
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gild-500));
  flex: none;
}
.eyebrow.is-plain::before { display: none; }
.eyebrow.is-muted { color: var(--parch-400); }
.eyebrow.is-muted::before { background: linear-gradient(90deg, transparent, var(--parch-500)); }

.lede {
  font-size: clamp(1.02rem, 1.28vw, 1.22rem);
  line-height: 1.62;
  color: var(--parch-300);
  max-width: 58ch;
  font-weight: 350;
}

.body-sm { font-size: 0.905rem; line-height: 1.65; color: var(--parch-400); font-weight: 350; }

.mono {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--parch-500);
}

/* Drop-cap for the manifesto — a direct borrow from book typography */
.dropcap::first-letter {
  font-family: var(--f-display);
  float: left;
  font-size: 4.6em;
  line-height: 0.78;
  padding: 0.06em 0.12em 0 0;
  background: var(--foil);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------------------------------------------------------------- layout -- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-wide { max-width: 1620px; }
.wrap-narrow { max-width: 940px; }

section { position: relative; }

.section-pad { padding-block: clamp(84px, 9.6vw, 152px); }
.section-pad-sm { padding-block: clamp(60px, 7vw, 100px); }

/* Hairline rules that read as printed rules on a page */
.rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2) 12%, var(--line-2) 88%, transparent);
  border: 0;
}
.rule-gild {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--gild-line) 20%, var(--gild-line) 80%, transparent);
}

/* Section header block used across the page */
.sec-head { display: grid; gap: 22px; margin-bottom: clamp(44px, 5.5vw, 76px); }
.sec-head .lede { margin-top: 2px; }
.sec-head--split {
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  align-items: end;
  gap: 22px clamp(32px, 5vw, 80px);
}
@media (max-width: 900px) { .sec-head--split { grid-template-columns: 1fr; align-items: start; } }

/* Numbered section marker, set like a folio number in a book */
.folio-no {
  font-family: var(--f-mono);
  font-size: 0.63rem;
  letter-spacing: 0.2em;
  color: var(--parch-600);
  display: block;
  margin-bottom: 6px;
}

/* --------------------------------------------------------------- surfaces */
.panel {
  position: relative;
  background:
    linear-gradient(168deg, rgba(245,241,231,0.045), rgba(245,241,231,0.012) 42%, rgba(245,241,231,0) 78%),
    var(--ink-100);
  border: 1px solid var(--line-1);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
/* Inner top highlight — the "lit edge" that sells depth on dark surfaces */
.panel::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(245,241,231,0.16), rgba(245,241,231,0) 38%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ---------------------------------------------------------------- buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.62em;
  height: 46px;
  padding-inline: 26px;
  border-radius: 3px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.015em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform .5s var(--e-out), color .35s ease, border-color .35s ease, box-shadow .5s var(--e-out);
}
.btn svg { flex: none; transition: transform .5s var(--e-out); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

/* Primary — gilt foil plate */
.btn-primary {
  color: #1A1408;
  background: var(--foil);
  background-size: 220% 100%;
  background-position: 30% 50%;
  font-weight: 600;
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 10px 30px -12px rgba(201,169,97,.55);
}
.btn-primary:hover {
  background-position: 78% 50%;
  box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 16px 44px -14px rgba(201,169,97,.75);
  transform: translateY(-2px);
}

/* Ghost — hairline box with a wipe fill */
.btn-ghost {
  color: var(--parch-200);
  border: 1px solid var(--line-2);
  background: rgba(245,241,231,0.012);
}
.btn-ghost::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(201,169,97,.14), rgba(201,169,97,.05));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--e-out);
}
.btn-ghost:hover { color: var(--gild-200); border-color: var(--gild-line); transform: translateY(-2px); }
.btn-ghost:hover::after { transform: scaleX(1); }

.btn-sm { height: 38px; padding-inline: 17px; font-size: 0.775rem; }
.btn-lg { height: 54px; padding-inline: 34px; font-size: 0.875rem; }

/* Text link with an underline that draws in from the left */
.link-u {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gild-300);
  padding-bottom: 3px;
}
.link-u::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gild-500);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .55s var(--e-out);
}
.link-u:hover::after { transform: scaleX(1); transform-origin: left; }
.link-u svg { transition: transform .45s var(--e-out); }
.link-u:hover svg { transform: translateX(4px); }

/* -------------------------------------------------------------- preloader */
#preloader {
  position: fixed; inset: 0; z-index: 999;
  background: var(--ink-000);
  display: grid;
  place-items: center;
  transition: opacity .9s var(--e-out), visibility .9s;
}
#preloader.is-done { opacity: 0; visibility: hidden; }
.pre-inner { width: min(340px, 68vw); text-align: center; }
.pre-mark { display: flex; justify-content: center; margin-bottom: 26px; }
.pre-mark svg { width: 46px; height: 46px; }
.pre-mark path, .pre-mark circle, .pre-mark rect {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: draw 1.7s var(--e-out) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.pre-bar { height: 1px; background: var(--line-2); position: relative; overflow: hidden; }
.pre-bar span {
  position: absolute; inset: 0;
  background: var(--foil);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform .35s linear;
}
.pre-meta {
  display: flex; justify-content: space-between;
  margin-top: 12px;
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--parch-600);
}

/* --------------------------------------------------------------- overlays */
/* Film grain — the single most important texture on a dark premium page */
.grain {
  /* The shift animation moves this by at most 3%, so -6% of slack is all it
     needs. It used to be inset:-120%, which made the layer roughly eleven
     times the viewport — eleven screens of noise texture recomposited behind
     every scroll. */
  position: fixed; inset: -6%;
  z-index: 400;
  pointer-events: none;
  opacity: .038;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 7s steps(6) infinite;
  will-change: transform;
}
@keyframes grain-shift {
  0%   { transform: translate(0,0); }
  16%  { transform: translate(-3%, 2%); }
  33%  { transform: translate(2%, -3%); }
  50%  { transform: translate(-2%, -2%); }
  66%  { transform: translate(3%, 1%); }
  83%  { transform: translate(-1%, 3%); }
  100% { transform: translate(0,0); }
}

/* Vignette keeps attention centre-page */
.vignette {
  position: fixed; inset: 0; z-index: 395; pointer-events: none;
  background: radial-gradient(125% 88% at 50% 42%, transparent 46%, rgba(3,3,7,.55) 100%);
}

/* Running head — the device a printed book uses to tell you where you are in
   it, moved to the page edge. Vertical, quiet, and updated on scroll. */
.running-head {
  position: fixed; right: 22px; top: 50%; z-index: 280;
  transform: translateY(-50%);
  display: flex; align-items: center; gap: 14px;
  writing-mode: vertical-rl;
  font-family: var(--f-mono);
  font-size: 0.575rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--parch-500);
  pointer-events: none;
  opacity: 0;
  transition: opacity .7s var(--e-out);
}
.running-head.is-live { opacity: 1; }
.rh-no { color: var(--gild-500); }
.rh-name { animation: rh-swap .5s var(--e-out); }
@keyframes rh-swap {
  0%   { opacity: 0; transform: translateY(7px); }
  100% { opacity: 1; transform: none; }
}
.rh-bar {
  writing-mode: horizontal-tb;
  width: 1px; height: 92px;
  background: var(--line-2);
  position: relative; overflow: hidden;
}
.rh-bar i {
  position: absolute; left: 0; right: 0; top: 0;
  height: 26px; border-radius: 1px;
  background: linear-gradient(180deg, transparent, var(--gild-400), transparent);
  transition: transform .45s var(--e-out);
}
@media (max-width: 1340px) { .running-head { display: none; } }

/* Scroll progress hairline, gilt */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 420;
  height: 1.5px; width: 100%;
  background: var(--foil);
  background-size: 300% 100%;
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* ------------------------------------------------------------------- nav -- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: height .5s var(--e-out), background .5s ease, border-color .5s ease, backdrop-filter .5s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  height: 62px;
  background: rgba(6, 6, 12, 0.72);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border-bottom-color: var(--line-1);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav { transition: transform .55s var(--e-out), height .5s var(--e-out), background .5s ease, border-color .5s ease; }

.nav-inner {
  width: 100%; max-width: 1620px; margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 34px;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 11px; flex: none; }
.logo-mark { width: 27px; height: 27px; flex: none; overflow: visible; }
.logo-mark .lm-fill { fill: url(#gildGrad); }
.logo-mark .lm-stroke { stroke: url(#gildGrad); fill: none; stroke-width: 1.4; }
.logo-mark .lm-drop { transform-origin: 16px 15px; animation: nib-pulse 4.5s var(--e-in-out) infinite; }
@keyframes nib-pulse {
  0%, 72%, 100% { opacity: .95; transform: translateY(0) scale(1); }
  84% { opacity: .45; transform: translateY(2.5px) scale(.82); }
}
.logo-type {
  font-family: var(--f-display);
  font-size: 1.075rem;
  letter-spacing: 0.028em;
  color: var(--parch-100);
  line-height: 1;
  white-space: nowrap;
  font-variation-settings: "opsz" 40;
}
.logo-type b { font-weight: 400; }
.logo-type i { font-style: italic; color: var(--gild-300); }

/* Nav links */
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.nav-link {
  position: relative;
  display: inline-flex; align-items: center; gap: 5px;
  height: 34px; padding-inline: 13px;
  font-size: 0.815rem; font-weight: 400;
  color: var(--parch-300);
  border-radius: 3px;
  transition: color .3s ease;
}
.nav-link:hover { color: var(--parch-100); }
.nav-link .chev { transition: transform .35s var(--e-out); opacity: .5; }
.nav-item.is-open .nav-link .chev { transform: rotate(180deg); }
.nav-item.is-open .nav-link { color: var(--gild-200); }
.nav-spacer { flex: 1; }
.nav-actions { display: flex; align-items: center; gap: 10px; flex: none; }

/* Mega menu */
.nav-item { position: relative; }
.mega {
  position: fixed;
  top: calc(var(--nav-h) - 6px);
  left: 50%;
  transform: translate(-50%, -10px);
  width: min(1080px, calc(100vw - 2 * var(--gutter)));
  background: rgba(10, 10, 18, 0.94);
  backdrop-filter: blur(30px) saturate(160%);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(201,169,97,.06);
  padding: 26px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .4s var(--e-out), transform .5s var(--e-out), visibility .4s;
}
.nav.is-stuck .mega { top: 56px; }
.nav-item.is-open .mega {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translate(-50%, 0);
}
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mega-grid.is-2 { grid-template-columns: repeat(2, 1fr); }
.mega-link {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 14px;
  padding: 14px;
  border-radius: 5px;
  border: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease, transform .45s var(--e-out);
}
.mega-link:hover { background: var(--fill-2); border-color: var(--line-1); transform: translateY(-2px); }
.mega-ico {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border: 1px solid var(--gild-line);
  border-radius: 4px;
  background: linear-gradient(150deg, rgba(201,169,97,.14), transparent);
  color: var(--gild-300);
}
.mega-ico svg { width: 15px; height: 15px; }
.mega-name {
  font-family: var(--f-mono);
  font-size: 0.665rem; letter-spacing: 0.19em; text-transform: uppercase;
  color: var(--parch-100);
  margin-bottom: 4px;
  display: flex; align-items: center; gap: 8px;
}
.mega-name .tag {
  font-size: 0.5rem; letter-spacing: .12em;
  padding: 1px 5px; border-radius: 2px;
  background: rgba(124,108,245,.16); color: var(--iris-400);
  border: 1px solid rgba(124,108,245,.28);
}
.mega-desc { font-size: 0.775rem; line-height: 1.45; color: var(--parch-400); font-weight: 350; }
.mega-foot {
  margin-top: 20px; padding-top: 18px;
  border-top: 1px solid var(--line-1);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.mega-foot p { font-size: 0.775rem; color: var(--parch-400); }
.mega-foot p b { color: var(--parch-200); font-weight: 500; }

/* Mobile nav */
.nav-burger { display: none; width: 38px; height: 38px; place-items: center; }
.nav-burger span {
  display: block; width: 19px; height: 1.2px; background: var(--parch-200);
  transition: transform .45s var(--e-out), opacity .3s;
}
.nav-burger span + span { margin-top: 5px; }
body.menu-open .nav-burger span:nth-child(1) { transform: translateY(6.2px) rotate(45deg); }
body.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav-burger span:nth-child(3) { transform: translateY(-6.2px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 290;
  background: var(--ink-050);
  padding: calc(var(--nav-h) + 30px) var(--gutter) 40px;
  overflow-y: auto;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .8s var(--e-out);
}
body.menu-open .mobile-menu { clip-path: inset(0 0 0 0); }
.mm-group { border-top: 1px solid var(--line-1); padding-block: 20px; }
.mm-group:last-of-type { border-bottom: 1px solid var(--line-1); }
.mm-label {
  font-family: var(--f-mono); font-size: 0.6rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--parch-600); margin-bottom: 14px;
}
.mm-link {
  display: flex; align-items: baseline; gap: 12px;
  font-family: var(--f-display); font-size: 1.55rem; color: var(--parch-100);
  padding-block: 7px;
  opacity: 0; transform: translateY(14px);
  transition: opacity .6s var(--e-out), transform .6s var(--e-out), color .3s;
}
body.menu-open .mm-link { opacity: 1; transform: none; }
.mm-link:hover { color: var(--gild-300); }
.mm-link small { font-family: var(--f-mono); font-size: 0.6rem; letter-spacing: .16em; color: var(--parch-500); text-transform: uppercase; }
.mm-actions { display: grid; gap: 10px; margin-top: 30px; }
.mm-actions .btn { width: 100%; }

@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-burger { display: grid; }
  .nav-actions .btn-ghost { display: none; }
}
@media (max-width: 560px) {
  .nav-actions .btn { height: 38px; padding-inline: 15px; font-size: .78rem; }
}

/* -------------------------------------------------------- reveal system -- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s var(--e-out), transform 1.15s var(--e-out);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="left"]  { transform: translateX(-30px); }
.js [data-reveal="right"] { transform: translateX(30px); }
.js [data-reveal="scale"] { transform: scale(.965); }
.js [data-reveal="clip"]  {
  opacity: 1; transform: none;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.25s var(--e-out);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal="clip"].is-in { clip-path: inset(0 0 0 0); }

/* Per-line masked type reveal, built by JS */
.line-mask { display: block; overflow: hidden; }
.line-mask > span {
  display: block;
  transform: translateY(105%);
  transition: transform 1.15s var(--e-out);
  transition-delay: var(--d, 0ms);
}
.is-in .line-mask > span, .line-mask.is-in > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .line-mask > span { transform: none !important; }
  .grain { display: none; }
  .marquee-track { animation: none !important; }
}

/* ---------------------------------------------------------------- cursor -- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 500;
  width: 26px; height: 26px;
  margin: -13px 0 0 -13px;
  border: 1px solid var(--gild-line);
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: difference;
  transition: width .4s var(--e-out), height .4s var(--e-out), margin .4s var(--e-out),
              background .4s ease, border-color .4s ease, opacity .3s;
  opacity: 0;
}
.cursor.is-live { opacity: 1; }
.cursor-dot {
  position: fixed; top: 0; left: 0; z-index: 501;
  width: 4px; height: 4px; margin: -2px 0 0 -2px;
  border-radius: 50%; background: var(--gild-300);
  pointer-events: none; opacity: 0;
  transition: opacity .3s, transform .2s var(--e-out);
}
.cursor-dot.is-live { opacity: 1; }
.cursor.is-hover {
  width: 54px; height: 54px; margin: -27px 0 0 -27px;
  background: rgba(201,169,97,.09);
  border-color: var(--gild-500);
}
@media (hover: none), (pointer: coarse) { .cursor, .cursor-dot { display: none; } }
