/* ==========================================================================
   Greenfield Studio — site styles
   Design language: "Surveyed Green" (see minigolf-pro/branding/youtube-banner-philosophy.md).
   A calm, measured field; cream hairline marks; one warm brass accent reserved for
   the Play action; monospaced micro-annotations that only ever state true facts.
   The palette is deliberately dark-only: the field IS the brand, so there is no
   light theme to fall back to. `color-scheme: dark` keeps form controls and
   scrollbars consistent with it.
   ========================================================================== */

@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/jost-latin-wght.woff2') format('woff2-variations'),
       url('../fonts/jost-latin-wght.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: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('../fonts/ibm-plex-mono-latin-400.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 {
  color-scheme: dark;

  /* the field — near-black at the edges, breathing toward a lit centre */
  --field-edge: #070f0a;
  --field-deep: #0b1811;
  --field: #102217;
  --field-lit: #173021;

  /* marks — one cream, three strengths */
  --cream: #efe8d6;
  --cream-2: #cbc4b1;
  --cream-3: #a19b8a;
  --hair: rgba(239, 232, 214, 0.14);
  --hair-2: rgba(239, 232, 214, 0.28);

  /* the one warm metal */
  --brass: #d4af64;
  --brass-hi: #e6c784;
  --ink: #0a130d;

  --font-sans: 'Jost', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  --radius: 2px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ── reset-ish ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--field-deep);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
/* The ground: a fixed layer so it never repaints with scroll, and so iOS (which
   ignores background-attachment: fixed) gets the same result. Mown stripes are a
   second, fainter layer — felt before they are seen. */
body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}
body::before {
  background: radial-gradient(120% 95% at 50% 16%,
    var(--field-lit) 0%, var(--field) 36%, var(--field-deep) 70%, var(--field-edge) 100%);
}
body::after {
  z-index: -1;
  background: repeating-linear-gradient(90deg,
    rgba(255, 255, 255, 0.016) 0 96px, rgba(0, 0, 0, 0.02) 96px 192px);
}
img, video, svg, iframe { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--cream); }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 300; line-height: 1.12; letter-spacing: 0.005em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--brass); color: var(--ink); }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--cream);
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  transition: top 0.15s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ── layout ────────────────────────────────────────────────────────────────── */
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: clamp(56px, 9vw, 120px); }
.section + .section { border-top: 1px solid var(--hair); }

/* ── micro type: the surveyor's annotations ────────────────────────────────── */
.anno,
.fig {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--cream-3);
}
.fig { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.fig::after { content: ''; flex: 1; height: 1px; background: var(--hair); }
.fig b { font-weight: 400; color: var(--cream-2); }

.lede { font-size: clamp(18px, 2.1vw, 21px); line-height: 1.6; color: var(--cream-2); max-width: 38em; }
.muted { color: var(--cream-2); }
.h2 { font-size: clamp(30px, 4.6vw, 48px); margin-bottom: 20px; }
.h3 { font-size: 20px; font-weight: 500; letter-spacing: 0.01em; margin-bottom: 8px; }

/* ── header ────────────────────────────────────────────────────────────────── */
.site-header { padding-block: 20px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-height: 44px;
}
.brand svg { width: 38px; height: 22px; flex: none; }
.brand-name {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav { display: flex; gap: clamp(14px, 3vw, 32px); }
.nav a {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--cream-2);
  padding-block: 10px;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--cream); border-bottom-color: var(--hair-2); }
.nav a[aria-current='page'] { color: var(--cream); border-bottom-color: var(--cream-3); }
@media (max-width: 640px) {
  .brand-name { display: none; }
  .nav a { font-size: 13px; letter-spacing: 0.04em; }
}

/* ── buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 20px;
  border: 1px solid var(--hair-2);
  border-radius: var(--radius);
  background: transparent;
  color: var(--cream);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { border-color: var(--cream-2); background: rgba(239, 232, 214, 0.05); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--brass {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--ink);
}
.btn--brass:hover { background: var(--brass-hi); border-color: var(--brass-hi); color: var(--ink); }
.btn--lg { min-height: 56px; padding: 14px 28px; font-size: 17px; }
.btn--sm { min-height: 40px; padding: 8px 14px; font-size: 13px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-arrow { text-decoration: none; border-bottom: 1px solid var(--hair-2); padding-bottom: 2px; }
.link-arrow:hover { border-bottom-color: var(--cream-2); }

/* ── hero: wordmark + surveyed trajectory ──────────────────────────────────── */
.hero { position: relative; padding-top: clamp(8px, 2.5vw, 32px); padding-bottom: clamp(28px, 4vw, 48px); text-align: center; }
.survey { position: relative; margin-inline: auto; max-width: 1000px; }
.survey svg { width: 100%; height: auto; overflow: visible; }
.survey--wide { display: block; }
.survey--tall { display: none; }
/* As on the banner, the wordmark sits LOW inside the arc — where the arc is widest —
   rather than in the middle, where the rising and falling dots would cut the G and D. */
.survey-title {
  position: absolute;
  left: 0; right: 0;
  top: 49%;
}
.wordmark {
  display: block;
  font-weight: 250;
  font-size: clamp(28px, 5vw, 58px);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  line-height: 1;
  margin-right: -0.42em; /* trailing tracking would push it off optical centre */
  white-space: nowrap;
}
.wordmark-rule { display: block; width: min(36%, 380px); height: 1px; margin: 0.5em auto 0.55em; background: var(--hair-2); }
.wordmark-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(12px, 1.9vw, 24px);
  letter-spacing: 1.05em;
  margin-right: -1.05em;
  text-transform: uppercase;
  color: var(--cream-2);
}
.hero .lede { margin: clamp(12px, 2vw, 20px) auto 0; text-align: center; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; margin-top: 24px; }

.dot { fill: var(--cream); }
.dot--faint { fill: var(--cream-3); }
.ring { fill: none; stroke: var(--cream-3); stroke-width: 1.2; stroke-dasharray: 0.5 7; stroke-linecap: round; }
.cup-lip { fill: #050b07; stroke: var(--cream); stroke-width: 3; }
.cup-hole { fill: #020503; }
.ball { fill: var(--cream); }
.ball-halo { fill: none; stroke: var(--hair-2); stroke-width: 1; }
.refline { stroke: var(--hair-2); stroke-width: 1; }
.svg-anno { font-family: var(--font-mono); font-size: 15px; letter-spacing: 0.04em; fill: var(--cream-3); }
.svg-anno--brass { fill: var(--brass); }

/* the one piece of signature motion: the shot is drawn, dot by dot, once.
   Every rest state is VISIBLE and the keyframes only say where to start from
   (fill: backwards) — so a tab that never runs the animation (background tab,
   screenshot tool, animations disabled) still shows the finished drawing. */
@media (prefers-reduced-motion: no-preference) {
  .trail .dot { animation: dot-in 0.5s var(--ease) backwards; animation-delay: calc(0.35s + var(--i) * 34ms); }
  .survey .ring { animation: fade-in 1.2s var(--ease) 2.1s backwards; }
  .survey .svg-anno { animation: fade-in 1s var(--ease) 1.7s backwards; }
  .survey .refline { stroke-dasharray: 480; animation: draw 1.4s var(--ease) 1.2s backwards; }
}
@keyframes dot-in { from { opacity: 0; transform: translateY(4px); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes draw { from { stroke-dashoffset: 480; } }
.trail .dot { transform-box: fill-box; transform-origin: center; }

@media (max-width: 719px) {
  .survey--wide { display: none; }
  .survey--tall { display: block; max-width: 460px; }
  .survey-title { position: static; margin-top: -8px; }
  .wordmark { letter-spacing: 0.3em; margin-right: -0.3em; font-size: clamp(26px, 8.6vw, 44px); }
  .wordmark-sub { letter-spacing: 0.8em; margin-right: -0.8em; }
}

/* ── the stage: where the game is played, inline ───────────────────────────── */
.stage-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 18px; }
.stage-head h2 { font-size: clamp(30px, 4.6vw, 48px); }
.stage {
  position: relative;
  aspect-ratio: 2 / 1;
  border: 1px solid var(--hair-2);
  background: #050a07;
  overflow: hidden;
  isolation: isolate;
}
.stage > img,
.stage > video,
.stage > picture,
.stage > picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.stage-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  padding: 16px;
  background: radial-gradient(60% 70% at 50% 55%, rgba(5, 10, 7, 0.55), rgba(5, 10, 7, 0.1) 70%, transparent);
  text-align: center;
}
.stage-veil .anno { color: var(--cream-2); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8); }
.stage .btn--brass { box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45); }
.stage .btn--brass:hover { transform: translateY(-1px); }
.stage iframe {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  border: 0;
  background: #0a1628; /* the game's own boot backdrop, so the swap never flashes */
}
.stage.is-playing .stage-veil,
.stage.is-playing > video,
.stage.is-playing > img,
.stage.is-playing > picture { visibility: hidden; }
/* The game's menus are laid out for 16:9 portal frames; the 2:1 box is for the poster. */
/* width (not max-height) carries the limit, so the box stays 16:9 on short screens */
.stage.is-playing { aspect-ratio: 16 / 9; width: min(100%, calc((100vh - 32px) * 16 / 9)); margin-inline: auto; }
/* survey-frame corner ticks */
.stage::before,
.stage::after,
.spec::before,
.spec::after {
  content: '';
  position: absolute;
  z-index: 3;
  width: 14px;
  height: 14px;
  pointer-events: none;
}
.stage::before, .spec::before { top: -1px; left: -1px; border-top: 1px solid var(--cream-2); border-left: 1px solid var(--cream-2); }
.stage::after, .spec::after { bottom: -1px; right: -1px; border-bottom: 1px solid var(--cream-2); border-right: 1px solid var(--cream-2); }

.stage-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding-top: 16px;
}
.stage-bar .btn-row { gap: 8px; }
.stage-bar .stage-links { gap: 10px 26px; }
.stage-controls { display: none; }
.section--stage { padding-top: clamp(20px, 3.5vw, 44px); }
@media (max-width: 719px) {
  /* a 2:1 box at phone width leaves no room around the button; phones play full-page anyway */
  .stage { aspect-ratio: 16 / 10; }
  .stage .btn--lg { min-height: 48px; padding: 10px 20px; font-size: 16px; }
}
.stage-wrap.is-playing .stage-controls { display: flex; }
.stage-wrap.is-playing .stage-links { display: none; }
.stage-caption { color: var(--cream-2); max-width: 44em; margin: 0; }

/* ── specimen figures ──────────────────────────────────────────────────────── */
.spec { position: relative; margin: 0; border: 1px solid var(--hair); background: rgba(5, 10, 7, 0.35); }
.spec > img,
.spec > video,
.spec > picture img { width: 100%; height: auto; }
.spec figcaption { padding: 10px 12px; border-top: 1px solid var(--hair); }

/* ── studio section ────────────────────────────────────────────────────────── */
.split { display: grid; gap: clamp(32px, 6vw, 80px); grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.principles { list-style: none; display: grid; gap: 22px; margin-top: 32px; }
.principles li { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 16px; padding-top: 18px; border-top: 1px solid var(--hair); }
.principles .anno { padding-top: 4px; }
.principles p { margin: 0; color: var(--cream-2); }
.principles strong { display: block; font-weight: 500; color: var(--cream); margin-bottom: 2px; }
@media (max-width: 480px) { .principles li { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

.readout {
  position: relative;
  border: 1px solid var(--hair);
  padding: 22px 22px 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  background: rgba(5, 10, 7, 0.3);
}
.readout dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin: 0; }
.readout dt { color: var(--cream-3); }
.readout dd { margin: 0; color: var(--cream); text-align: right; }
.readout .anno { display: block; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--hair); font-size: 11px; }

/* ── contact ───────────────────────────────────────────────────────────────── */
.contact-email {
  display: inline-block;
  font-size: clamp(22px, 4.2vw, 44px);
  font-weight: 300;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-bottom: 1px solid var(--hair-2);
  padding-bottom: 4px;
  overflow-wrap: anywhere;
}
.contact-email:hover { border-bottom-color: var(--brass); }

/* ── game page ─────────────────────────────────────────────────────────────── */
.game-hero { text-align: center; }
.game-hero h1 img { width: min(64vw, 300px); height: auto; margin-inline: auto; }
.game-hero .lede { margin: 8px auto 0; }
.game-hero .btn-row { justify-content: center; margin-top: 28px; }
.game-hero .stats { justify-content: center; max-width: 640px; margin-inline: auto; }
.mascot { width: min(40vw, 150px); height: auto; margin: 0 auto 20px; filter: drop-shadow(0 22px 26px rgba(0, 0, 0, 0.45)); }
@media (prefers-reduced-motion: no-preference) {
  .mascot { animation: bob 5s ease-in-out infinite; }
}
@keyframes bob { 50% { transform: translateY(-10px); } }

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--hair);
  list-style: none;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--cream-3);
}
.stats b { font-weight: 400; color: var(--cream); margin-left: 6px; }

.worlds { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--hair); border: 1px solid var(--hair); }
.worlds li { background: var(--field-deep); padding: 18px 18px 20px; min-height: 150px; }
.worlds .swatch { display: block; width: 26px; height: 26px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px rgba(239, 232, 214, 0.06); margin-bottom: 14px; }
.worlds h3 { font-size: 18px; font-weight: 500; margin-bottom: 4px; }
.worlds p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--cream-2); }
.worlds .anno { display: block; margin-bottom: 6px; }
@media (max-width: 900px) { .worlds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .worlds { grid-template-columns: minmax(0, 1fr); } .worlds li { min-height: 0; } }

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.feature + .feature { margin-top: clamp(56px, 8vw, 104px); }
.feature--flip > :first-child { order: 2; }
.feature h3 { font-size: clamp(26px, 3.2vw, 34px); font-weight: 300; margin-bottom: 14px; }
.feature p { color: var(--cream-2); }
.feature ul { list-style: none; display: grid; gap: 8px; margin-top: 4px; }
.feature li { position: relative; padding-left: 22px; color: var(--cream-2); }
.feature li::before { content: ''; position: absolute; left: 2px; top: 0.72em; width: 5px; height: 5px; border-radius: 50%; background: var(--cream-3); }
.feature li strong { color: var(--cream); font-weight: 500; }
@media (max-width: 860px) {
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature--flip > :first-child { order: 0; }
}

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cards > * { border-top: 1px solid var(--hair-2); padding-top: 18px; }
.cards p { color: var(--cream-2); margin: 0; }
@media (max-width: 860px) { .cards { grid-template-columns: minmax(0, 1fr); } }

.video-frame { position: relative; aspect-ratio: 16 / 9; border: 1px solid var(--hair-2); background: #000; }
.video-frame video { width: 100%; height: 100%; }

.howto { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; counter-reset: step; }
.howto li { border-top: 1px solid var(--hair-2); padding-top: 16px; counter-increment: step; }
.howto li::before { content: '0' counter(step); display: block; font-family: var(--font-mono); font-size: 12px; color: var(--cream-3); margin-bottom: 6px; }
.howto strong { display: block; font-weight: 500; font-size: 19px; }
.howto span { color: var(--cream-2); }
@media (max-width: 720px) { .howto { grid-template-columns: minmax(0, 1fr); } }

.band { text-align: center; }
.band .btn-row { justify-content: center; margin-top: 28px; }

/* ── press kit ─────────────────────────────────────────────────────────────── */
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 12px 32px; margin: 0; }
.facts dt { font-family: var(--font-mono); font-size: 13px; color: var(--cream-3); padding-top: 3px; }
.facts dd { margin: 0; }
@media (max-width: 560px) { .facts { grid-template-columns: minmax(0, 1fr); gap: 2px; } .facts dd { margin-bottom: 12px; } }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.gallery--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .gallery, .gallery--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .gallery, .gallery--2 { grid-template-columns: minmax(0, 1fr); } }
.gallery figcaption { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
/* uniform tiles: sources differ in shape; the full, uncropped file is always a click away */
.gallery .spec > img,
.gallery .spec > video,
.gallery .spec > a > img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.gallery figcaption a { color: var(--cream-2); }
.logo-tile { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 24px; }
.logo-tile img { max-height: 100%; width: auto; object-fit: contain; }
.logo-tile--light { background: #e9e4d6; }
.prose { max-width: 42em; }
.prose p { color: var(--cream-2); }
.prose h2 { font-size: 26px; font-weight: 400; margin: 40px 0 12px; }
.prose ul { padding-left: 1.2em; color: var(--cream-2); }
.prose li { margin-bottom: 6px; }

/* ── footer: the course, measured ──────────────────────────────────────────── */
.site-footer { padding: 56px 0 40px; border-top: 1px solid var(--hair); }
.ruler { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); margin-bottom: 28px; }
.ruler span {
  position: relative;
  height: 14px;
  border-bottom: 1px solid var(--hair-2);
  background:
    linear-gradient(var(--hair-2), var(--hair-2)) left bottom / 1px 14px no-repeat,
    repeating-linear-gradient(90deg, var(--hair) 0 1px, transparent 1px 11.111%) left bottom / 100% 6px no-repeat;
}
.ruler span:last-child::after { content: ''; position: absolute; right: 0; bottom: 0; width: 1px; height: 14px; background: var(--hair-2); }
.ruler em {
  position: absolute;
  top: 20px;
  left: 0;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--cream-3);
  white-space: nowrap;
}
@media (max-width: 720px) { .ruler span:not(:first-child):not(:last-child) em { display: none; } .ruler span:last-child em { left: auto; right: 0; } }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 44px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; font-size: 14px; }
.footer-links a { color: var(--cream-2); text-decoration: none; }
.footer-links a:hover { color: var(--cream); text-decoration: underline; }
.footer-note { font-size: 13px; color: var(--cream-3); }

/* ── fullscreen stage ─────────────────────────────────────────────────────── */
.stage:fullscreen { aspect-ratio: auto; border: 0; }
.stage:fullscreen::before, .stage:fullscreen::after { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
@media print {
  body::before, body::after { display: none; }
  body { background: #fff; color: #000; }
}
