/* ==========================================================================
   FUNCTION AT SCALE, design system (V1 look, V3 content)
   Tokens first. Change color, type and rhythm here; the page follows.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Fonts (self-hosted, woff2, Latin + Latin Extended subsets, SIL Open Font License)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "EB Garamond";
  font-style: italic;
  font-weight: 400 400;
  font-display: swap;
  src: url("assets/fonts/eb-garamond-400-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "EB Garamond";
  font-style: italic;
  font-weight: 400 400;
  font-display: swap;
  src: url("assets/fonts/eb-garamond-400-italic-latin.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: "EB Garamond";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("assets/fonts/eb-garamond-400-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("assets/fonts/eb-garamond-400-500-latin.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-weight: 400 400;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-mono-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400 400;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-mono-400-latin.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-weight: 500 500;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-mono-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500 500;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-mono-500-latin.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 {
  /* Immutable identity */
  --paper: #F2EEE6;
  --ink: #111111;
  --red: #E2231A;
  --dark: #0F0F10;

  /* Bauhaus primaries, assigned roles (Kandinsky): red = the insert and friction,
     blue = structure and coordination, yellow = priority and the triangle. */
  --yellow: #EFB50C;
  --blue: #2456A4;
  --blue-soft: rgba(36, 86, 164, 0.55);

  /* Derived */
  --ink-70: rgba(17, 17, 17, 0.70);
  --ink-55: rgba(17, 17, 17, 0.55);
  --ink-35: rgba(17, 17, 17, 0.35);
  --rule: rgba(17, 17, 17, 0.16);
  --rule-strong: rgba(17, 17, 17, 0.42);
  --paper-70: rgba(242, 238, 230, 0.70);
  --paper-35: rgba(242, 238, 230, 0.35);
  --paper-rule: rgba(242, 238, 230, 0.18);

  /* Type */
  --serif: "EB Garamond", "Garamond", "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --fs-h1: clamp(3rem, 7.4vw, 7.25rem);
  --fs-h2: clamp(2.15rem, 4.3vw, 4rem);
  --fs-h3: clamp(1.4rem, 1.9vw, 1.8rem);
  --fs-lede: clamp(1.3rem, 1.75vw, 1.6rem);
  --fs-body: 1.2rem;
  --fs-mono: 0.6875rem;

  /* Rhythm */
  --wrap: 1360px;
  --gutter: clamp(16px, 4vw, 56px);
  --gap: 24px;
  --section: clamp(104px, 14vw, 212px);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.8, 0.22, 1);
  --ease-settle: cubic-bezier(0.16, 0.9, 0.3, 1);
  --t-fast: 220ms;
  --t-mid: 480ms;
  --t-slow: 650ms;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.5;
  font-feature-settings: "kern", "liga", "onum" 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
/* Paper grain: tiled 160px SVG noise at ~2%, one tiny data URI, no per-frame filter cost. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.022;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1 0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
}
body > * { position: relative; z-index: 1; }

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

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

.mono {
  font-family: var(--mono);
  font-size: var(--fs-mono);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.5;
}
.dim { color: var(--ink-70); }
.nowrap { white-space: nowrap; }

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

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: 10px 14px; font-family: var(--mono); font-size: var(--fs-mono); letter-spacing: .14em; text-transform: uppercase;
}
.skip:focus { top: 12px; }

h1, h2 { font-weight: 400; letter-spacing: -0.022em; }
h1 { font-size: var(--fs-h1); line-height: 0.98; }
h2 { font-size: var(--fs-h2); line-height: 1.04; max-width: 18ch; }
h3 { font-size: var(--fs-h3); font-weight: 400; line-height: 1.22; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.lede { font-size: var(--fs-lede); font-weight: 400; line-height: 1.38; max-width: 34ch; color: var(--ink-70); }
.lede, .friction-note, .about-copy p, .think-body p, .svc-body p, .stage-step p, .scale-copy p { text-wrap: pretty; }

/* --------------------------------------------------------------------------
   Buttons & links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 500; font-size: 1.05rem; letter-spacing: 0.005em;
  line-height: 1; position: relative;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.btn-primary {
  background: var(--ink); color: var(--paper);
  padding: 17px 24px;
}
.btn-primary::after {
  /* red fragment appears on hover: the small top triangle of the insert */
  content: ""; position: absolute; right: 0; top: 0;
  width: 0; height: 0;
  border-style: solid; border-width: 0 10px 10px 0;
  border-color: transparent var(--red) transparent transparent;
  opacity: 0; transition: opacity var(--t-fast) var(--ease);
}
.btn-primary:hover::after, .btn-primary:focus-visible::after { opacity: 1; }
.btn-primary:hover { transform: translateY(-1px); }

.btn-paper { background: var(--paper); color: var(--ink); padding: 16px 22px; }
.btn-paper::after {
  content: ""; position: absolute; right: 0; top: 0; width: 0; height: 0;
  border-style: solid; border-width: 0 10px 10px 0;
  border-color: transparent var(--red) transparent transparent;
  opacity: 0; transition: opacity var(--t-fast) var(--ease);
}
.btn-paper:hover::after, .btn-paper:focus-visible::after { opacity: 1; }

.btn-text {
  padding: 16px 0; background: none; color: var(--ink);
  background-image: linear-gradient(var(--ink), var(--ink));
  background-size: 100% 1px; background-repeat: no-repeat; background-position: 0 calc(100% - 12px);
}
.btn-text:hover, .btn-text:focus-visible { background-image: linear-gradient(var(--blue), var(--blue)); }
.dark .btn-text { color: var(--paper); background-image: linear-gradient(var(--paper), var(--paper)); }

/* --------------------------------------------------------------------------
   Header / nav
   -------------------------------------------------------------------------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-mid) var(--ease);
}
.site-head.scrolled { border-bottom-color: var(--rule); }

.head-row {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-tag { color: var(--ink-70); margin-left: 18px; padding-left: 18px; border-left: 1px solid var(--rule); }
@media (max-width: 1099px) { .brand-tag { display: none; } }
.mark {
  height: 30px; width: auto;
}
.wordmark {
  font-weight: 500; font-size: 0.92rem; letter-spacing: 0.18em; text-transform: uppercase;
}
.nav-list { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); }
.nav-list a {
  font-size: 1.05rem; font-weight: 400; padding: 6px 0;
  background-image: linear-gradient(var(--ink), var(--ink));
  background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size var(--t-fast) var(--ease);
}
.nav-list a:hover, .nav-list a:focus-visible, .nav-list a.active { background-size: 100% 1px; }
.nav-list a.active { background-image: linear-gradient(var(--blue), var(--blue)); }
.nav-cta { font-weight: 500; }

.menu-btn { display: none; align-items: center; gap: 10px; height: 44px; padding: 0 2px; }
.menu-btn-label { font-family: var(--mono); font-size: var(--fs-mono); letter-spacing: .14em; text-transform: uppercase; }
.menu-btn-icon { width: 22px; height: 14px; position: relative; }
.menu-btn-icon i { position: absolute; left: 0; width: 22px; height: 1.5px; background: var(--ink); transition: transform var(--t-mid) var(--ease), top var(--t-mid) var(--ease); }
.menu-btn-icon i:first-child { top: 1px; }
.menu-btn-icon i:last-child { top: 11px; }
.menu-btn[aria-expanded="true"] .menu-btn-icon i:first-child { top: 6px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn-icon i:last-child { top: 6px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 68px 0 0 0; z-index: 45; background: var(--paper);
  padding: 32px var(--gutter) 40px; display: flex; flex-direction: column; justify-content: space-between;
  overflow: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu li + li { border-top: 1px solid var(--rule); }
.mobile-menu a {
  display: flex; align-items: baseline; gap: 18px;
  font-size: clamp(1.9rem, 7.5vw, 2.7rem); font-weight: 400; padding: 18px 0; letter-spacing: -0.015em;
}
body.menu-open { overflow: hidden; }

@media (max-width: 899px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
}

/* --------------------------------------------------------------------------
   Reveal choreography
   -------------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 90ms; }
.reveal.d2 { transition-delay: 180ms; }
.reveal.d3 { transition-delay: 270ms; }
.reveal.d4 { transition-delay: 360ms; }

/* --------------------------------------------------------------------------
   Section scaffolding: editorial index rows
   -------------------------------------------------------------------------- */
.section { padding-block: var(--section); }
.sec-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding-bottom: 14px; margin-bottom: clamp(28px, 4vw, 48px);
  border-top: 1px solid var(--ink); padding-top: 12px;
}
.sec-head .mono:first-child::before {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; vertical-align: 1px;
  background: var(--chip, var(--ink));
}
.sec-head .mono:first-child.chip-circle::before { border-radius: 50%; }
.sec-head .mono:first-child.chip-triangle::before { width: 0; height: 0; background: none; border-style: solid; border-width: 0 0 8px 8px; border-color: transparent transparent var(--chip, var(--ink)) transparent; }
.friction  { --chip: var(--red); }
.work      { --chip: var(--yellow); }
.approach  { --chip: var(--ink); }
.scale     { --chip: var(--blue); }
.cases     { --chip: var(--red); }
.about     { --chip: var(--blue); }
.notes     { --chip: var(--yellow); }
.questions { --chip: var(--blue); }
.contact   { --chip: var(--red); }
.sec-head .mono:last-child { text-align: right; }
.aside { color: var(--ink-70); margin-top: clamp(28px, 4vw, 48px); max-width: 60ch; }
.sec-intro { margin-top: clamp(20px, 2.6vw, 32px); max-width: 40ch; }
.list-head { margin-top: clamp(48px, 7vw, 96px); color: var(--ink-70); font-weight: 400; }
/* Visible placeholder for copy Joe still has to supply. Never shipped. */
.tbd { background: rgba(239, 181, 12, 0.28); color: var(--ink); padding: 0 .2em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.dark .tbd { background: rgba(239, 181, 12, 0.32); color: var(--paper); }
@media (max-width: 599px) {
  .sec-head { flex-direction: column; gap: 4px; }
  .sec-head .mono:last-child { text-align: left; }
}

/* --------------------------------------------------------------------------
   01 / Hero
   -------------------------------------------------------------------------- */
.hero { padding-block: clamp(56px, 7vw, 104px) 0; }
.hero-for {
  margin-top: clamp(72px, 10vw, 150px); padding-block: clamp(26px, 3vw, 36px);
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule);
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: baseline;
}
.hero-for .mono { grid-column: 1 / span 3; color: var(--ink-70); }
.hero-for p:not(.mono) { grid-column: 4 / span 8; font-size: var(--fs-lede); line-height: 1.35; max-width: 44ch; text-wrap: pretty; }
@media (max-width: 899px) { .hero-for .mono, .hero-for p:not(.mono) { grid-column: 1 / -1; } .hero-for { row-gap: 10px; } }
.hero-grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: center;
}
.hero-copy { grid-column: 1 / span 7; }
.hero-figure { grid-column: 8 / span 5; }
.eyebrow { color: var(--ink-70); margin-bottom: clamp(20px, 3vw, 36px); }
.hero h1 { max-width: 12ch; }
.hero .lede { margin-top: clamp(20px, 2.6vw, 32px); }
.hero .lede + .lede { margin-top: clamp(14px, 1.6vw, 20px); }
/* One step smaller than the lede, so the primary button stays on the first screen at 1440 x 900. */
.hero .lede-sm { font-size: var(--fs-body); line-height: 1.42; max-width: 48ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; margin-top: clamp(28px, 3vw, 40px); }
/* Proof row: mono label, then company logos (one ink colour, ~22px tall) or, until the files exist, the names as text. */
.proof { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; margin-top: clamp(36px, 5vw, 64px); }
.proof-label { color: var(--ink-70); }
.proof-list { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; }
.proof-list li { color: var(--ink); font-size: 0.8125rem; letter-spacing: 0.12em; }
.proof-list img { display: block; height: 22px; width: auto; }
@media (max-width: 599px) { .proof-list img { height: 18px; } }

/* The living diagram */
.diagram { width: 100%; height: auto; overflow: visible; }
.diagram .mod { fill: var(--ink); }
.diagram .mod.hollow { fill: none; stroke: var(--ink); stroke-width: 1.25; }
.diagram .red { fill: var(--red); }
.diagram .blue { fill: var(--blue); }
.diagram .yellow { fill: var(--yellow); }
.diagram .rail { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 0; opacity: .9; transition: stroke-dashoffset 900ms var(--ease) var(--d, 0s); }
.diagram .tick line { stroke: var(--ink); stroke-width: 1; }
.diagram .lab { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; fill: var(--ink-70); }
.diagram .lab.small { fill: var(--ink-70); font-size: 9px; }
.diagram .el {
  transform-box: fill-box; transform-origin: center;
  transition: transform 1100ms var(--ease-settle) var(--d, 0s), opacity 700ms var(--ease) var(--d, 0s);
}
.js .diagram.scatter .el { transform: translate(var(--dx), var(--dy)) rotate(var(--dr)); opacity: .55; }
.js .diagram.scatter .rail { stroke-dashoffset: 1; }

@media (max-width: 899px) {
  .hero-copy, .hero-figure { grid-column: 1 / -1; }
  .hero-figure { max-width: 440px; margin-top: clamp(40px, 8vw, 64px); }
  .hero h1 { max-width: 14ch; }
}

/* --------------------------------------------------------------------------
   02 / The inflection: friction rows
   -------------------------------------------------------------------------- */
.friction-list { margin-top: clamp(32px, 5vw, 64px); border-top: 1px solid var(--rule); }
.friction-row {
  display: grid; grid-template-columns: 56px 1fr 160px; gap: var(--gap); align-items: center;
  padding: clamp(18px, 2.4vw, 28px) 0; border-bottom: 1px solid var(--rule);
}
.friction-row p { font-size: clamp(1.35rem, 2.3vw, 2rem); font-weight: 400; line-height: 1.25; letter-spacing: -0.005em; max-width: 30ch; }
.friction-row .fr-lead { font-weight: 500; }
.friction-row .fr-follow { margin-top: 10px; font-size: var(--fs-body); font-weight: 400; line-height: 1.5; letter-spacing: 0; color: var(--ink-70); max-width: 56ch; text-wrap: pretty; }
/* Smaller rows (By day 90): body-size text, no rhythm mark */
.friction-row-sm { grid-template-columns: 56px 1fr; padding: clamp(14px, 1.8vw, 20px) 0; }
.friction-row-sm p { font-size: var(--fs-body); line-height: 1.5; letter-spacing: 0; max-width: 60ch; }
.outcome-list { margin-top: 16px; }
.idx { color: var(--ink-70); }
.rhythm { width: 160px; height: 32px; justify-self: end; overflow: visible; }
.rhythm .base { stroke: var(--rule-strong); stroke-width: 1; }
.rhythm .ticks line { stroke: var(--ink); stroke-width: 1; transform: translateY(var(--j)); transition: transform 800ms var(--ease-settle); }
.rhythm .ticks line:nth-child(2) { transition-delay: 60ms; }
.rhythm .ticks line:nth-child(3) { transition-delay: 120ms; }
.rhythm .ticks line:nth-child(4) { transition-delay: 180ms; }
.rhythm .ticks line:nth-child(5) { transition-delay: 240ms; }
.rhythm .ticks line:nth-child(6) { transition-delay: 300ms; }
.rhythm .ticks line:nth-child(7) { transition-delay: 360ms; }
.rhythm .red { fill: var(--red); opacity: 0; transition: opacity 400ms var(--ease) 500ms; }
.friction-row.in-view .rhythm .ticks line { transform: translateY(0); }
.friction-row.in-view .rhythm .red { opacity: 1; }
.friction-note { margin-top: clamp(28px, 4vw, 44px); max-width: 52ch; font-size: var(--fs-lede); font-weight: 400; line-height: 1.4; }

@media (max-width: 599px) {
  .friction-row { grid-template-columns: 36px 1fr; grid-template-rows: auto auto; row-gap: 12px; }
  .rhythm { grid-column: 2; justify-self: start; width: 120px; height: 24px; }
  .friction-row-sm { grid-template-columns: 36px 1fr; }
}

/* --------------------------------------------------------------------------
   05 / Built to scale: signature interaction
   -------------------------------------------------------------------------- */
.scale-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: start; }
.scale-copy { grid-column: 1 / span 4; position: sticky; top: 96px; }
.scale-copy p { margin-top: 18px; max-width: 40ch; color: var(--ink-70); }
.scale-copy p + p { color: var(--ink); }
.stage-figure { grid-column: 5 / span 8; }

.controls { display: grid; gap: 22px; margin-top: 32px; }
.control-label { display: block; margin-bottom: 8px; color: var(--ink-70); }
.segmented {
  display: inline-flex; border: 1px solid var(--ink); padding: 3px; gap: 3px; background: transparent;
}
.segmented button {
  position: relative; display: inline-flex; align-items: baseline; gap: 8px;
  padding: 11px 16px; font-size: 1.05rem; font-weight: 400; line-height: 1; color: var(--ink-70);
  transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.segmented button .sub { color: inherit; opacity: .7; }
.segmented button:hover { color: var(--ink); }
.segmented button[aria-checked="true"] { background: var(--ink); color: var(--paper); }
.segmented button[aria-checked="true"]::after {
  content: ""; position: absolute; right: 0; top: 0; width: 0; height: 0;
  border-style: solid; border-width: 0 8px 8px 0;
  border-color: transparent var(--red) transparent transparent;
}
.segmented button:focus-visible { outline-offset: -2px; z-index: 1; }

.stage-frame { border: 1px solid var(--rule); background: var(--paper); position: relative; }
.stage-frame::before, .stage-frame::after {
  /* alignment points at opposite corners */
  content: ""; position: absolute; width: 9px; height: 9px;
  border: 0 solid var(--ink);
}
.stage-frame::before { left: -1px; top: -1px; border-top-width: 1px; border-left-width: 1px; }
.stage-frame::after { right: -1px; bottom: -1px; border-bottom-width: 1px; border-right-width: 1px; }
.stage { width: 100%; height: auto; display: block; }

.stage .mod { fill: var(--ink); transition: transform var(--t-slow) var(--ease-settle), opacity var(--t-mid) var(--ease); }
.stage .mod.out { opacity: 0; }
.stage .mod rect { shape-rendering: geometricPrecision; }
.stage .mod.blue { fill: var(--blue); }
.stage .mod.yellow { fill: var(--yellow); }
.stage .rail { stroke: var(--blue); stroke-width: 1; fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 600ms var(--ease) var(--d, 0s), opacity var(--t-fast) var(--ease); }
.stage .rail.drawn { stroke-dashoffset: 0; }
.stage .rail.frame { stroke: var(--rule-strong); }
.stage .rail.handoff { stroke: var(--red); stroke-dasharray: 0.02 0.012; stroke-dashoffset: 0; opacity: 0; transition: opacity var(--t-mid) var(--ease) var(--d, 0s); }
.stage .rail.handoff.drawn { opacity: .75; }
.stage .leaving { opacity: 0 !important; transition: opacity var(--t-fast) var(--ease) !important; }
.stage .joint { transform-box: fill-box; transform-origin: center; opacity: 0; transform: scale(.6); transition: transform var(--t-mid) var(--ease-settle) var(--d, 0s), opacity var(--t-mid) var(--ease) var(--d, 0s); }
.stage .joint.drawn { opacity: 1; transform: scale(1); }
.stage .joint.leaving { opacity: 0; transition: opacity var(--t-fast) var(--ease); }
.stage .joint .red { fill: var(--red); }
.stage .joint .piece { transform-box: fill-box; transform-origin: center; transition: transform var(--t-slow) var(--ease-settle) var(--d, 0s); }
.stage .joint.apart .piece-top { transform: translate(10px, -12px) rotate(18deg); }
.stage .joint.apart .piece-bot { transform: translate(-8px, 10px) rotate(-10deg); }
.stage .tick { stroke: var(--blue); stroke-width: 1; opacity: 0; transition: opacity var(--t-mid) var(--ease) var(--d, 0s); }
.stage .tick.drawn { opacity: 1; }
.stage .tick.leaving { opacity: 0; }
.stage .lbl { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; fill: var(--ink-70); transition: transform var(--t-slow) var(--ease-settle), opacity var(--t-mid) var(--ease) var(--d, 0s); opacity: 0; }
.stage .lbl.drawn { opacity: 1; }
.stage .lbl.leaving { opacity: 0; }
.stage .lbl.loose { fill: var(--ink-70); }

.stage-caption { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; }
.stage-meta { color: var(--ink-70); }
.stage-line { font-size: clamp(1.4rem, 2.1vw, 1.8rem); font-weight: 400; line-height: 1.25; }

@media (max-width: 899px) {
  .scale-copy, .stage-figure { grid-column: 1 / -1; }
  .scale-copy { position: static; }
  .stage-figure { margin-top: 36px; }
  .controls { gap: 18px; }
}
@media (max-width: 420px) {
  .segmented { display: flex; width: 100%; }
  .segmented button { flex: 1; justify-content: center; padding: 10px 8px; font-size: 0.88rem; }
  .segmented button .sub { display: none; }
}

/* --------------------------------------------------------------------------
   03 / What I do: editorial rows
   -------------------------------------------------------------------------- */
.svc-list { margin-top: clamp(32px, 5vw, 64px); border-top: 1px solid var(--rule); }
.svc {
  display: grid; grid-template-columns: 56px 1fr 64px; gap: var(--gap); align-items: start;
  padding: clamp(24px, 3vw, 40px) 0; border-bottom: 1px solid var(--rule);
}
.svc-body { max-width: 56ch; }
.svc-body h3 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 400; letter-spacing: -0.01em; transition: transform var(--t-mid) var(--ease); }
.svc-body p { margin-top: 12px; color: var(--ink-70); max-width: 52ch; }
.svc-body .svc-sub { margin-top: 10px; color: var(--ink); font-weight: 500; }
.svc-body .svc-label { display: block; margin-top: 22px; color: var(--ink-70); }
.tags { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; color: var(--ink-70); }
.svc-body .svc-get { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--rule); color: var(--ink); }
.svc-body .svc-get .svc-label { margin-top: 0; margin-bottom: 6px; }
.engage { margin-top: clamp(28px, 4vw, 44px); max-width: 60ch; color: var(--ink-70); text-wrap: pretty; }
.tags li { position: relative; padding-left: 12px; }
.svc-body .tags { margin-top: 10px; }
.tags li::before { content: ""; position: absolute; left: 0; top: 50%; width: 5px; height: 1px; background: var(--ink-70); }
.svc-mark { width: 64px; height: 64px; justify-self: end; overflow: visible; }
.svc-mark .rail { stroke: var(--rule-strong); stroke-width: 1; }
.svc-mark .piece { fill: var(--red); transform-box: fill-box; transform-origin: center; transition: transform var(--t-slow) var(--ease-settle); }
.svc-mark .piece-top { transform: translate(6px, -8px); }
.svc-mark .piece-bot { transform: translate(-4px, 0); }
.svc-mark .blue { fill: var(--blue); }
.svc-mark .yellow { fill: var(--yellow); }
.svc-mark .piece-lift { transform: translateY(8px); }
@media (hover: hover) {
  .svc:hover .svc-mark .red, .svc:focus-within .svc-mark .piece { transform: none; }
  .svc:hover h3 { transform: translateX(6px); }
}
@media (hover: none) {
  .svc.in-view .svc-mark .piece { transform: none; transition-delay: 300ms; }
}
@media (max-width: 599px) {
  .svc { grid-template-columns: 36px 1fr 44px; }
  .svc-mark { width: 44px; height: 44px; }
}

/* --------------------------------------------------------------------------
   04 / Approach: horizontal diagram to vertical timeline
   -------------------------------------------------------------------------- */
.stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: clamp(40px, 6vw, 80px); }
.stage-step { position: relative; padding-top: 28px; }
.step-rule { position: absolute; left: 0; right: calc(-1 * var(--gap)); top: 0; height: 1px; background: var(--ink); transform-origin: left; transform: scaleX(0); transition: transform 900ms var(--ease); }
.stage-step:last-child .step-rule { right: 0; }
.stage-step:nth-child(2) .step-rule { transition-delay: 350ms; }
.stage-step:nth-child(3) .step-rule { transition-delay: 700ms; }
.stages.in-view .step-rule { transform: scaleX(1); }
.step-dot { position: absolute; left: 0; top: -4px; width: 9px; height: 9px; background: var(--paper); border: 1px solid var(--ink); }
.step-dot.blue-dot { background: var(--blue); border-color: var(--blue); border-radius: 50%; width: 11px; height: 11px; top: -5px; }
.step-dot.yellow-dot { background: var(--yellow); border-color: var(--yellow); width: 11px; height: 11px; top: -5px; }
.step-dot.red-dot { border: 0; background: none; width: 0; height: 0; top: -9px; border-style: solid; border-width: 0 10px 10px 0; border-color: transparent var(--red) transparent transparent; }
.stage-step .idx { display: block; color: var(--ink-70); }
.stage-step h3 { margin-top: 14px; font-weight: 400; font-size: clamp(1.35rem, 2vw, 1.75rem); letter-spacing: -0.01em; max-width: 22ch; }
.stage-step p { margin-top: 12px; color: var(--ink-70); max-width: 36ch; }

@media (max-width: 767px) {
  .stages { grid-template-columns: 1fr; gap: 0; }
  .stage-step { padding: 0 0 40px 32px; }
  .step-rule { left: 0; right: auto; top: 0; bottom: 0; height: auto; width: 1px; transform-origin: top; transform: scaleY(0); }
  .stages.in-view .step-rule { transform: scaleY(1); }
  .stage-step:last-child .step-rule { bottom: auto; height: 24px; }
  .step-dot { left: -4px; top: 0; }
  .step-dot.blue-dot, .step-dot.yellow-dot { left: -5px; top: 0; }
  .step-dot.red-dot { left: -5px; top: 0; }
}

/* --------------------------------------------------------------------------
   07 / About
   -------------------------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.about-copy { grid-column: 1 / span 7; }
.about-copy .lede { margin-top: clamp(20px, 2.6vw, 32px); max-width: 42ch; }
.about-origin { margin-top: clamp(24px, 3vw, 36px); color: var(--ink-70); max-width: 56ch; }
.about-origin .mono { display: block; margin-bottom: 6px; color: var(--ink-70); }
.profile { grid-column: 9 / span 4; }
.portrait {
  aspect-ratio: 4 / 5; border: 1px solid var(--ink); position: relative;
  display: grid; place-items: center; overflow: hidden; color: var(--ink-70);
  background:
    linear-gradient(to top right, transparent calc(50% - 0.5px), var(--rule) calc(50% - 0.5px), var(--rule) calc(50% + 0.5px), transparent calc(50% + 0.5px));
}
.portrait .mono { padding: 6px 10px; }
.portrait picture, .portrait img { display: block; width: 100%; height: 100%; }
.portrait img { object-fit: cover; }
.about-body { margin-top: 1em; max-width: 56ch; }
.portrait::after { content: ""; position: absolute; right: 0; top: 0; width: 0; height: 0; border-style: solid; border-width: 0 14px 14px 0; border-color: transparent var(--red) transparent transparent; }
.profile-meta { margin-top: 16px; display: grid; gap: 4px; }
.profile-name { font-size: 1.45rem; font-weight: 400; }
@media (max-width: 899px) {
  .about-copy, .profile { grid-column: 1 / -1; }
  .profile { max-width: 320px; margin-top: 40px; }
}

/* --------------------------------------------------------------------------
   06 / Selected work and 08 / Field notes: index list rows
   -------------------------------------------------------------------------- */
.think-list { margin-top: clamp(32px, 5vw, 64px); border-top: 1px solid var(--rule); }
.think { display: grid; grid-template-columns: 56px 1fr; gap: var(--gap); padding: clamp(22px, 3vw, 36px) 0; border-bottom: 1px solid var(--rule); align-items: start; }
.think-body h3 { font-size: clamp(1.35rem, 2.4vw, 2rem); font-weight: 400; letter-spacing: -0.01em; max-width: 30ch; text-wrap: pretty; }
.case-label { color: var(--ink-70); margin-bottom: 10px; }
.case-proof { margin-top: 10px; color: var(--ink-70); max-width: 56ch; }
.now-line { margin-top: clamp(28px, 4vw, 44px); color: var(--ink-70); max-width: 90ch; }
.note-meta { margin-top: 12px; color: var(--ink-70); }
.note-link {
  background-image: linear-gradient(var(--ink), var(--ink)); background-size: 100% 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-image var(--t-fast) var(--ease);
}
.note-link:hover, .note-link:focus-visible { background-image: linear-gradient(var(--blue), var(--blue)); }
.note-link::after { content: " \2192"; font-family: var(--mono); font-size: .6em; vertical-align: .25em; }
@media (max-width: 599px) { .think { grid-template-columns: 36px 1fr; } }

/* Testimonial (renders only when CONFIG.testimonial is set) */
.testimonial-slot[hidden] { display: none; }
.testimonial { margin-top: clamp(40px, 6vw, 72px); padding-top: 24px; border-top: 1px solid var(--ink); max-width: 52ch; }
.testimonial blockquote { margin: 0; font-size: var(--fs-lede); line-height: 1.38; }
.testimonial figcaption { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.testimonial img { width: 48px; height: 48px; object-fit: cover; border-radius: 50%; }
.testimonial .t-name { font-weight: 500; }
.testimonial .t-title { color: var(--ink-70); }
.testimonial a { text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   09 / Questions: expanders (open without JS)
   -------------------------------------------------------------------------- */
.faq-list { margin-top: clamp(32px, 5vw, 64px); border-top: 1px solid var(--rule); }
.faq { border-bottom: 1px solid var(--rule); }
.faq-q { font-size: inherit; }
.faq-btn {
  width: 100%; display: grid; grid-template-columns: 56px 1fr 24px; gap: var(--gap); align-items: baseline;
  padding: clamp(18px, 2.4vw, 26px) 0; text-align: left;
}
.faq-text { font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 400; line-height: 1.25; letter-spacing: -0.01em; transition: transform var(--t-mid) var(--ease); }
.faq-icon { position: relative; width: 16px; height: 16px; justify-self: end; align-self: center; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 0; top: 50%; width: 16px; height: 1.5px; background: var(--ink); transition: transform var(--t-mid) var(--ease), background-color var(--t-fast) var(--ease); }
.faq-icon::after { transform: rotate(90deg); }
.faq-btn[aria-expanded="true"] .faq-icon::after { transform: rotate(0deg); }
.faq-btn[aria-expanded="true"] .faq-icon::before, .faq-btn[aria-expanded="true"] .faq-icon::after { background: var(--red); }
.faq-btn:focus-visible { outline-offset: -2px; }
@media (hover: hover) { .faq-btn:hover .faq-text { transform: translateX(6px); } }
.faq-a[hidden] { display: none; }
.js .faq-a { overflow: hidden; transition: height 480ms var(--ease), opacity 400ms ease 80ms; }
.faq-inner { padding: 0 0 clamp(20px, 2.6vw, 28px) calc(56px + var(--gap)); }
.faq-inner p { color: var(--ink-70); max-width: 60ch; text-wrap: pretty; }
@media (max-width: 599px) {
  .faq-btn { grid-template-columns: 36px 1fr 20px; }
  .faq-inner { padding-left: calc(36px + var(--gap)); }
}

/* --------------------------------------------------------------------------
   10 / Let’s talk: the one dark section
   -------------------------------------------------------------------------- */
.dark { background: var(--dark); color: var(--paper); }
.dark .sec-head { border-top-color: var(--paper); }
.dark .dim { color: var(--paper-70); }
.dark :focus-visible { outline-color: var(--yellow); }
.contact-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.dark .idx, .dark .list-head { color: var(--paper-70); }
.contact-intro .lede { margin-top: clamp(20px, 2.6vw, 32px); max-width: 38ch; color: var(--paper-70); }
.contact h2 { max-width: 14ch; }
.stages-dark { margin-top: 24px; }
.stages-dark .step-rule { background: var(--paper); }
.stages-dark .step-dot { background: var(--dark); border-color: var(--paper); }
.stages-dark .step-dot.blue-dot { background: var(--blue); border-color: var(--blue); }
.stages-dark .step-dot.yellow-dot { background: var(--yellow); border-color: var(--yellow); }
.stages-dark .step-dot.red-dot { background: none; }
.stages-dark .stage-step .idx { color: var(--paper-70); }
.stages-dark .stage-step p { color: var(--paper-70); }
.contact-grid { margin-top: clamp(56px, 8vw, 112px); padding-top: clamp(28px, 4vw, 44px); border-top: 1px solid var(--paper-rule); }
.contact-copy { grid-column: 1 / span 5; }
.contact-email {
  display: inline-block; font-size: clamp(1.7rem, 3.4vw, 3.1rem); font-weight: 400; letter-spacing: -0.015em; line-height: 1.15;
  overflow-wrap: anywhere;
  background-image: linear-gradient(var(--paper), var(--paper)); background-size: 100% 1px; background-repeat: no-repeat; background-position: 0 100%;
  padding-bottom: 4px; transition: background-image var(--t-fast) var(--ease);
}
.contact-email:hover, .contact-email:focus-visible { background-image: linear-gradient(var(--yellow), var(--yellow)); }
.contact-book { margin-top: 28px; }
.contact-book[hidden] { display: none; }
.referral { margin-top: 24px; color: var(--paper-70); font-size: var(--fs-lede); }
.contact-mark { width: 160px; height: 120px; margin-top: clamp(36px, 5vw, 72px); overflow: visible; }
.contact-mark .rail { stroke: var(--paper); stroke-width: 1; opacity: .55; }
.contact-mark .red { fill: var(--red); }
.contact-mark .blue { fill: var(--blue); }
.contact-mark .yellow { fill: var(--yellow); }
.contact-form[hidden] { display: none; }
.contact-form { grid-column: 7 / span 6; display: grid; gap: 22px; }
.form-note { color: var(--paper-70); padding-bottom: 6px; border-bottom: 1px solid var(--paper-rule); }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--mono); font-size: var(--fs-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--paper-70); }
.field .req { letter-spacing: .08em; text-transform: none; }
.form-note[hidden] { display: none; }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--paper-70);
  padding: 10px 0; color: var(--paper); border-radius: 0; font-size: 1.2rem; font-weight: 400;
  transition: border-color var(--t-fast) var(--ease);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--yellow); }
.field.invalid input, .field.invalid textarea { border-bottom-color: var(--red); }
.error { color: var(--red); min-height: 1em; text-transform: none; letter-spacing: .04em; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 6px; }
.form-status { color: var(--paper-70); text-transform: none; letter-spacing: .04em; max-width: 36ch; }
.contact-form button[disabled] { opacity: .6; cursor: progress; }
@media (max-width: 899px) {
  .contact-copy, .contact-form { grid-column: 1 / -1; }
  .contact-form { margin-top: 40px; }
  .contact-mark { display: none; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-foot { padding-block: 40px; border-top: 1px solid var(--rule); }
.foot-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand > div { min-width: 0; }
.foot-brand .mark { height: 36px; }
.foot-word { font-weight: 500; font-size: 0.92rem; letter-spacing: .18em; text-transform: uppercase; }
.foot-brand .mono { color: var(--ink-70); margin-top: 4px; }
.foot-line a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.foot-line a:hover, .foot-line a:focus-visible { color: var(--ink); text-decoration-color: var(--blue); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 1.05rem; }
.foot-nav a { background-image: linear-gradient(var(--ink), var(--ink)); background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size var(--t-fast) var(--ease); padding-bottom: 2px; }
.foot-nav a:hover, .foot-nav a:focus-visible { background-size: 100% 1px; }
.foot-copy { grid-column: 1 / -1; color: var(--ink-70); }
@media (max-width: 599px) { .foot-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Reduced motion: everything works, nothing moves
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; transition-delay: 0s !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  .diagram.scatter .el { transform: none; opacity: 1; }
  .diagram.scatter .rail { stroke-dashoffset: 0; }
  .rhythm .ticks line { transform: none; }
  .rhythm .red { opacity: 1; }
  .step-rule { transform: none !important; }
  .svc-mark .piece { transform: none; }
  .faq-text { transform: none !important; }
}

/* Stage labels: the SVG scales down on phones, so give the mono labels more weight in viewBox units */
@media (max-width: 599px) {
  .stage .lbl { font-size: 15px; }
}

/* --------------------------------------------------------------------------
   Field note page and 404
   -------------------------------------------------------------------------- */
.article { padding-block: clamp(56px, 8vw, 120px) var(--section); }
.article-head { max-width: 46rem; }
.article-head .mono { color: var(--ink-70); }
.article-head h1 { font-size: clamp(2.4rem, 5.2vw, 4.6rem); line-height: 1.02; margin-top: clamp(18px, 2.4vw, 28px); max-width: 20ch; text-wrap: balance; }
.article-meta { margin-top: clamp(18px, 2.4vw, 28px); padding-top: 12px; border-top: 1px solid var(--ink); }
.article-body { max-width: 38rem; margin-top: clamp(36px, 5vw, 64px); }
.article-body p { font-size: clamp(1.2rem, 1.5vw, 1.35rem); line-height: 1.58; text-wrap: pretty; }
.article-body p + p { margin-top: 1.1em; }
.article-body p:first-child::first-letter { float: left; font-size: 3.6em; line-height: .82; padding: .06em .08em 0 0; color: var(--red); }
.article-end { margin-top: clamp(40px, 6vw, 72px); padding-top: 18px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; }
.not-found { padding-block: clamp(80px, 12vw, 180px); }
.not-found h1 { font-size: var(--fs-h2); line-height: 1.04; max-width: 16ch; margin-top: 18px; }
.not-found p:not(.mono) { margin-top: 18px; color: var(--ink-70); max-width: 44ch; }
.not-found .cta-row { margin-top: 32px; }


/* --------------------------------------------------------------------------
   Opening animation (home page). The real mark is shown throughout; the red
   triangle is drawn over its own red pixels only while it grows and shrinks,
   then fades so the PNG's triangle is what remains.
   -------------------------------------------------------------------------- */
html.intro-pending, html.intro-running { overflow: hidden; }
html.intro-pending body { visibility: hidden; }
html.intro-running .site-head .mark { opacity: 0; }
.intro { position: fixed; inset: 0; z-index: 1000; visibility: visible; overflow: hidden; cursor: pointer; }
.intro-bg { position: absolute; inset: 0; background: var(--paper); }
.intro-logo { position: absolute; transform-origin: 0 0; }
.intro-logo img, .intro-logo svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.intro-logo svg { overflow: visible; }
.intro-tri { fill: var(--red); transform-box: view-box; transform-origin: 285px 450px; }
.intro-skip {
  position: absolute; right: clamp(16px, 3vw, 40px); bottom: clamp(16px, 3vw, 32px);
  padding: 8px 0; color: var(--ink-70); background: none; border: 0; cursor: pointer;
}
.intro-skip:hover, .intro-skip:focus-visible { color: var(--ink); }
