/* ==========================================================================
   Dmytro Nour — "Woven from the best"
   Dark, editorial, thread-driven. Paper sections give the page a rhythm.
   ========================================================================== */

@property --lr {
  syntax: "<length-percentage>";
  inherits: true;
  initial-value: 0px;
}

:root {
  --bg: #0a0b0a;
  --bg-2: #0f110f;
  --surface: #121412;
  --surface-2: #191c19;
  --line: rgba(237, 234, 224, .09);
  --line-2: rgba(237, 234, 224, .17);
  --text: #edeae0;
  --muted: #a7aa9f;
  --faint: #83877c;
  --paper: #efeade;
  --paper-2: #f6f2e8;
  --ink: #141614;
  --ink-muted: #585b52;
  --ink-line: rgba(20, 22, 20, .12);
  --lime: #d6f26b;
  --lime-deep: #56701a;
  --violet: #a78bfa;
  --amber: #ffb25b;
  --cyan: #67d4f1;
  --coral: #ff8266;
  --blue: #7aa2ff;
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 72px;
  --gutter: clamp(20px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; background: var(--bg); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font-family: var(--font-sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
em { font-style: normal; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; border-radius: 4px; }
.paper :focus-visible { outline-color: var(--ink); }

/* Film grain keeps the dark flats from looking digital. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: .055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5  0 0 0 0 .5  0 0 0 0 .5  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.shell { width: min(calc(100% - var(--gutter) * 2), 1320px); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 200; top: -80px; left: 16px; padding: 12px 18px; border-radius: 999px; background: var(--lime); color: var(--ink); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 16px; }

main { position: relative; z-index: 1; }
.spotlight {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .6s ease;
  background: radial-gradient(640px circle at var(--sx, 50%) var(--sy, 30%), rgba(214, 242, 107, .07), transparent 42%);
}
.spotlight.is-on { opacity: 1; }
.thread-progress { position: fixed; inset: 0 0 auto; z-index: 95; height: 2px; pointer-events: none; }
.thread-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--violet), var(--cyan) 35%, var(--lime) 70%, var(--amber)); box-shadow: 0 0 10px rgba(214, 242, 107, .5); transform: scaleX(var(--p, 0)); transform-origin: left; }

/* ---------- Shared type ---------- */
.kicker { display: flex; align-items: center; gap: 12px; color: var(--muted); font: 500 12px/1.4 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.kicker span { color: var(--lime); }
.paper .kicker { color: var(--ink-muted); }
.paper .kicker span { color: var(--lime-deep); }
.section-head { max-width: 960px; margin-bottom: clamp(52px, 6vw, 92px); }
.section-head h2, .toolkit-head h2, .contact h2, .colophon h2 { margin-top: 22px; font-size: clamp(42px, 5.6vw, 90px); line-height: .98; letter-spacing: -.052em; font-weight: 500; text-wrap: balance; }
h2 em, .hero-title em, .receipt em { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; }
h2 em { font-size: 1.06em; color: #d9dccd; }
.paper h2 em { color: var(--ink); }
.section-lead { max-width: 640px; margin-top: 26px; color: var(--muted); font-size: clamp(17px, 1.3vw, 19px); line-height: 1.62; text-wrap: pretty; }
.section-lead strong { color: var(--text); font-weight: 500; }
.paper .section-lead { color: var(--ink-muted); }
.fit-label { display: block; margin-bottom: 14px; color: var(--ink-muted); font: 500 11px/1.4 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }

/* ---------- Buttons & links ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 54px; padding: 0 24px; border: 1px solid transparent; border-radius: 999px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .25s ease, color .25s ease, border-color .25s ease, transform .5s var(--ease); will-change: transform; }
.btn span { display: inline-block; font-weight: 400; transition: transform .35s var(--ease); }
.btn:hover span { transform: translate(2px, -2px); }
.btn-lime { background: var(--lime); color: #11150a; }
.btn-lime:hover { background: #e7fb96; }
.btn-ghost { border-color: var(--line-2); background: rgba(237, 234, 224, .02); color: var(--text); }
.btn-ghost:hover { border-color: rgba(237, 234, 224, .4); background: rgba(237, 234, 224, .06); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #2a2e2a; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 13.5px; gap: 10px; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; padding-bottom: 5px; border-bottom: 1px solid currentColor; font-size: 15px; font-weight: 600; text-decoration: none; transition: color .2s ease; }
.link-arrow span { transition: transform .35s var(--ease); }
.link-arrow:hover span { transform: translate(2px, -2px); }
.link-arrow:hover { color: var(--lime); }
.link-quiet { color: var(--muted); border-bottom-color: var(--line-2); }
.chip-btn { min-height: 34px; padding: 0 13px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--muted); font: 500 11.5px/1 var(--font-mono); letter-spacing: .04em; cursor: pointer; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.chip-btn:hover, .chip-btn[aria-pressed="true"] { color: var(--ink); border-color: var(--lime); background: var(--lime); }
.pulse { position: relative; display: inline-block; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--lime); opacity: 0; animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 80; border-bottom: 1px solid transparent; transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease; }
.site-header.is-scrolled { background: rgba(10, 11, 10, .88); border-color: var(--line); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; text-decoration: none; white-space: nowrap; }
.brand-mark { font-size: 27px; font-weight: 700; letter-spacing: -.09em; line-height: 1; }
.brand-mark i { font-style: normal; color: var(--lime); }
.brand-name { padding-left: 14px; border-left: 1px solid var(--line-2); color: var(--muted); font-size: 13px; font-weight: 500; }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.site-nav a { position: relative; padding: 10px 0; color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: none; transition: color .2s ease; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--lime); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.site-nav a:hover, .site-nav a.is-current { color: var(--text); }
.site-nav a:hover::after, .site-nav a.is-current::after { transform: scaleX(1); transform-origin: left; }
.header-meta { display: flex; align-items: center; gap: 16px; }
.status-pill { display: inline-flex; align-items: center; gap: 9px; padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text); font: 500 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.clock { color: var(--faint); font: 500 12px/1 var(--font-mono); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.menu-toggle { display: none; position: relative; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 50%; background: transparent; cursor: pointer; }
.menu-toggle span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); transition: transform .35s var(--ease); }
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: var(--header-h) 0 0; z-index: 79; background: rgba(10, 11, 10, .98); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); overflow-y: auto; }
.mobile-menu nav { display: flex; flex-direction: column; padding: 28px 0 40px; }
.mobile-menu a { display: flex; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: clamp(34px, 9vw, 52px); font-weight: 500; letter-spacing: -.04em; text-decoration: none; animation: menu-in .6s var(--ease) both; }
.mobile-menu a span { color: var(--lime); font: 500 12px/1 var(--font-mono); letter-spacing: .1em; }
.mobile-menu a:nth-child(2) { animation-delay: 40ms; }
.mobile-menu a:nth-child(3) { animation-delay: 80ms; }
.mobile-menu a:nth-child(4) { animation-delay: 120ms; }
.mobile-menu a:nth-child(5) { animation-delay: 160ms; }
.mobile-menu a.mobile-menu-cv { justify-content: space-between; margin-top: 22px; padding: 18px 20px; border: 1px solid var(--line-2); border-radius: 16px; color: var(--lime); font: 500 14px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.mobile-menu-foot { display: flex; align-items: center; gap: 10px; margin-top: 28px; color: var(--muted); font: 500 12px/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
@keyframes menu-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; min-height: 100svh; padding: calc(var(--header-h) + clamp(28px, 5vh, 64px)) 0 clamp(48px, 7vh, 88px); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(ellipse 50% 60% at 76% 46%, rgba(255, 214, 150, .09), transparent 70%), radial-gradient(ellipse 40% 50% at 10% 90%, rgba(167, 139, 250, .08), transparent 70%); }
.hero-threads { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(36px, 5vw, 88px); min-height: calc(100svh - var(--header-h) - clamp(76px, 12vh, 152px)); }
.eyebrow { display: flex; align-items: center; gap: 14px; color: var(--muted); font: 500 12px/1.4 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; animation: fade-up .9s var(--ease) .05s both; }
.eyebrow-line { width: 34px; height: 1px; background: var(--lime); }
.hero-title { margin-top: 28px; font-size: clamp(54px, 7.3vw, 120px); line-height: .94; letter-spacing: -.058em; font-weight: 500; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .07em; margin-bottom: -.07em; }
.hero-title .line > * { display: inline-block; animation: rise 1.1s var(--ease) both; }
.hero-title .line:nth-child(2) > * { animation-delay: .09s; }
.hero-title .line:nth-child(3) > * { animation-delay: .18s; }
.hero-title em { padding-right: .06em; font-size: 1.08em; background: linear-gradient(100deg, var(--lime) 10%, #f2f6d2 60%, var(--lime) 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { max-width: 580px; margin-top: 32px; color: var(--muted); font-size: clamp(17px, 1.3vw, 19px); line-height: 1.62; text-wrap: pretty; animation: fade-up 1s var(--ease) .32s both; }
.hero-lead strong { color: var(--text); font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; animation: fade-up 1s var(--ease) .42s both; }
.hero-cv { display: inline-flex; align-items: center; gap: 8px; min-height: 54px; padding: 0 8px; color: var(--muted); font: 500 12.5px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; transition: color .2s ease; }
.hero-cv:hover { color: var(--lime); }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 40px; color: var(--faint); font: 500 12px/1.4 var(--font-mono); letter-spacing: .03em; animation: fade-up 1s var(--ease) .52s both; }
.hero-proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); }
.hero-proof strong { color: var(--text); font-weight: 500; }
@keyframes rise { from { transform: translateY(108%); } to { transform: translateY(0); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* The hoop: brass ring, paper disc, canvas threads, photo lens. */
.hoop-wrap { justify-self: center; width: min(100%, 590px, calc(100svh - 190px)); min-width: min(100%, 420px); margin: 0; animation: hoop-in 1.4s var(--ease) .15s both; }
@keyframes hoop-in { from { opacity: 0; transform: translateY(26px) scale(.965); } to { opacity: 1; transform: none; } }
.hoop { position: relative; width: 100%; aspect-ratio: 1; }
.hoop::before { content: ""; position: absolute; inset: 2%; z-index: -1; border-radius: 50%; box-shadow: 0 40px 90px rgba(0, 0, 0, .6), 0 0 120px rgba(255, 219, 160, .08); }
.hoop-ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 210deg, #6d5a3b, #e9d9b4 12%, #9a8158 26%, #f1e4c4 40%, #7d6845 55%, #d8c49c 70%, #5f4f33 84%, #6d5a3b); -webkit-mask: radial-gradient(circle, transparent calc(50% - 15px), #000 calc(50% - 14.5px)); mask: radial-gradient(circle, transparent calc(50% - 15px), #000 calc(50% - 14.5px)); }
.hoop-ring::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 1px solid rgba(40, 30, 15, .45); }
.hoop-screw { position: absolute; top: -22px; left: 50%; width: 26px; height: 30px; margin-left: -13px; border-radius: 5px 5px 3px 3px; background: linear-gradient(90deg, #6b5a3c, #efe1bf 35%, #b39b70 60%, #5c4c31); box-shadow: 0 6px 12px rgba(0, 0, 0, .4); }
.hoop-screw::before { content: ""; position: absolute; left: 50%; top: -11px; width: 12px; height: 13px; margin-left: -6px; border-radius: 3px; background: linear-gradient(90deg, #5c4c31, #d9c7a0 45%, #6b5a3c); }
.hoop-paper { position: absolute; inset: 14px; overflow: hidden; border-radius: 50%; background: radial-gradient(circle at 50% 42%, #f5f1e6, #ebe5d6 62%, #ddd5c2 100%); box-shadow: inset 0 0 0 1px rgba(60, 45, 20, .35), inset 0 6px 24px rgba(40, 30, 10, .25); --lx: 50%; --ly: 50%; cursor: crosshair; }
.hoop-paper::after { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; background: radial-gradient(circle at 34% 26%, rgba(255, 255, 255, .22), transparent 38%); mix-blend-mode: soft-light; }
.hoop-canvas, .hoop-needle { position: absolute; inset: 0; width: 100%; height: 100%; }
.hoop-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; clip-path: circle(var(--lr) at var(--lx) var(--ly)); transition: --lr .5s var(--ease); }
.hoop-paper.is-lens { --lr: 88px; }
.hoop-paper.is-photo { --lr: 72%; --lx: 50%; --ly: 50%; }
html:not(.js) .hoop-photo { clip-path: none; }
.hoop-hint { position: absolute; left: 50%; bottom: 13%; z-index: 2; padding: 7px 12px; border-radius: 999px; background: rgba(20, 22, 20, .82); color: var(--paper); font: 500 11px/1 var(--font-mono); letter-spacing: .06em; white-space: nowrap; opacity: 0; transform: translate(-50%, 6px); transition: opacity .4s ease, transform .4s var(--ease); pointer-events: none; }
.hoop.is-done .hoop-paper:not(.is-lens):not(.is-photo) .hoop-hint { opacity: 1; transform: translate(-50%, 0); }
.hoop-notes { position: absolute; inset: 0; pointer-events: none; }
.note { position: absolute; display: flex; align-items: center; gap: 11px; padding: 10px 14px 10px 12px; border: 1px solid var(--line-2); border-radius: 14px; background: rgba(14, 16, 14, .86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 16px 34px rgba(0, 0, 0, .4); opacity: 0; transform: translateY(12px) scale(.96); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.note.is-on { opacity: 1; transform: none; }
.note-dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(214, 242, 107, .16), 0 0 14px rgba(214, 242, 107, .55); }
.note-body { display: flex; flex-direction: column; gap: 4px; color: var(--text); font-size: 12.5px; line-height: 1.3; white-space: nowrap; }
.note-body b { color: var(--lime); font: 500 10px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.note-1 { top: 3%; left: -7%; }
.note-2 { top: -2%; right: -1%; }
.note-3 { bottom: 2%; left: -10%; }
.note-4 { bottom: -1%; right: 1%; }
.hoop-caption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; margin-top: 30px; color: var(--faint); font: 500 11.5px/1.4 var(--font-mono); letter-spacing: .05em; }
.hoop-caption-title { color: var(--muted); }
.hoop-counter { font-variant-numeric: tabular-nums; }
.hoop-controls { display: flex; gap: 8px; }

/* ---------- Proof ---------- */
.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stat { display: flex; flex-direction: column; gap: 12px; padding: clamp(28px, 3.4vw, 44px) clamp(14px, 1.8vw, 28px); border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong { display: flex; align-items: baseline; gap: 6px; font-size: clamp(38px, 3.9vw, 60px); line-height: 1; letter-spacing: -.05em; font-weight: 500; font-variant-numeric: tabular-nums; }
.stat strong small { color: var(--muted); font-size: .42em; letter-spacing: -.01em; font-weight: 500; }
.stat > span { max-width: 24ch; color: var(--muted); font-size: 13.5px; line-height: 1.5; }

.ticker { overflow: hidden; padding: 20px 0; border-bottom: 1px solid var(--line); -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 60s linear infinite; color: var(--faint); font: 500 12.5px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.ticker-track i { color: var(--lime); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Method: the loom ---------- */
.method { padding: clamp(100px, 12vw, 180px) 0 clamp(90px, 10vw, 150px); }
.loom { position: relative; }
.js .loom { height: 330vh; }
.loom-sticky { padding: 20px 0; }
.js .loom-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; padding: 0; overflow: hidden; }
.loom-grid { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); align-items: center; gap: clamp(32px, 5vw, 80px); }
.loom-steps li { display: grid; grid-template-columns: 52px 1fr; gap: 6px; padding: 22px 0; border-top: 1px solid var(--line); transition: opacity .5s ease; }
.js .loom-steps li { opacity: .32; }
.loom-steps li:last-child { border-bottom: 1px solid var(--line); }
.js .loom-steps li.is-active { opacity: 1; }
.loom-num { padding-top: 5px; color: var(--faint); font: 500 12px/1 var(--font-mono); letter-spacing: .08em; transition: color .4s ease; }
.loom-steps li.is-active .loom-num { color: var(--lime); }
.loom-steps h3 { font-size: clamp(21px, 1.9vw, 27px); line-height: 1.15; letter-spacing: -.03em; font-weight: 500; }
.loom-steps p { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.loom-steps em { font-family: var(--font-serif); font-style: italic; font-size: 1.12em; color: var(--text); }
.loom-stage { position: relative; }
.loom-svg { width: 100%; height: auto; overflow: visible; }
.loom-progress { display: flex; height: 2px; margin: 18px auto 0; width: min(280px, 60%); background: var(--line-2); border-radius: 2px; overflow: hidden; }
.loom-progress span { width: 100%; background: var(--lime); transform: scaleX(var(--p, 0)); transform-origin: left; }
.lm-src-dot { fill: var(--bg); stroke-width: 2; }
.lm-src-core { stroke: none; }
.lm-name { fill: var(--text); font: 600 15px var(--font-sans); letter-spacing: -.01em; }
.lm-take { fill: var(--muted); font: 500 10.5px var(--font-mono); letter-spacing: .04em; text-transform: uppercase; }
.lm-thread, .lm-braid { fill: none; stroke-width: 2; stroke-linecap: round; }
.lm-glow { fill: none; stroke-width: 9; stroke-linecap: round; opacity: .1; }
.lm-knot { fill: var(--text); }
.lm-card rect.lm-card-bg { fill: var(--surface-2); stroke: var(--line-2); }
.lm-card .lm-card-title { fill: var(--text); font: 600 17px var(--font-sans); letter-spacing: -.02em; }
.lm-card .lm-card-sub { fill: var(--muted); font: 500 10px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.lm-card .lm-badge rect { fill: var(--lime); }
.lm-card .lm-badge text { fill: #11150a; font: 600 10px var(--font-mono); letter-spacing: .08em; }
.lm-src.is-mine .lm-name { fill: var(--lime); }
.lm-src.is-mine .lm-take { fill: #c3d98a; }
.lm-src-halo { fill: none; stroke-width: 1.2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.loom.is-mine .lm-src-halo { animation: halo 2.2s var(--ease) infinite; }
@keyframes halo { 0% { opacity: .75; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.5); } }
.lm-thread.is-mine { stroke-width: 3; }
.lm-glow.is-mine { stroke-width: 14; opacity: .2; }
.lm-braid.is-mine { stroke-width: 2.8; }
.lm-sub-short { display: none; }
.lm-zenny { transform-box: fill-box; transform-origin: 50% 100%; }
.loom.is-shipped .lm-zenny { animation: zenny-bob 2.6s ease-in-out infinite; }
@keyframes zenny-bob { 0%, 100% { transform: translateY(0) rotate(0deg); } 30% { transform: translateY(-5px) rotate(-3deg); } 60% { transform: translateY(-2px) rotate(2deg); } }

.receipt { margin-top: clamp(40px, 5vw, 80px); }
.receipt-head { display: grid; grid-template-columns: minmax(180px, .5fr) 1fr; gap: 24px; align-items: baseline; margin-bottom: 28px; }
.receipt-head p:last-child { max-width: 640px; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.receipt-head em { color: var(--text); font-size: 1.1em; }
.receipt-table { border-top: 1px solid var(--line-2); }
.receipt-row { display: grid; grid-template-columns: minmax(150px, .5fr) 1fr 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.55; transition: background .3s ease; }
.receipt-row:not(.receipt-labels):hover { background: linear-gradient(90deg, rgba(214, 242, 107, .04), transparent 70%); }
.receipt-row span:first-child { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.receipt-row span:nth-child(2) { color: var(--muted); }
.receipt-row i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); }
.receipt-labels { padding: 14px 0; color: var(--faint); font: 500 11px/1.4 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.receipt-labels span:first-child { font-weight: 500; }
.receipt-row.receipt-mine { margin: -1px -16px 0; padding-inline: 16px; border: 1px solid rgba(214, 242, 107, .35); border-radius: 14px; background: linear-gradient(90deg, rgba(214, 242, 107, .09), rgba(214, 242, 107, .02)); }
.receipt-row.receipt-mine span:first-child { color: var(--lime); }
.receipt-row.receipt-mine span:nth-child(2) { color: var(--text); }
.receipt-foot { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); margin-top: 36px; }
.receipt-foot .fit-label { color: var(--faint); }
.receipt-skip { color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.receipt-web > p { color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.web-threads { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.web-threads li { display: inline-flex; align-items: baseline; gap: 8px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--muted); font-size: 13px; line-height: 1.3; }
.web-threads b { color: var(--text); font-weight: 600; }

/* ---------- Work ---------- */
.work { padding: clamp(90px, 11vw, 170px) 0 clamp(100px, 12vw, 180px); }
.case { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: var(--surface); }
.case-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; white-space: nowrap; color: var(--muted); font: 500 11.5px/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.case h3 { font-size: clamp(40px, 4.6vw, 72px); line-height: 1; letter-spacing: -.055em; font-weight: 500; }
.case h3 i { font-style: normal; color: var(--violet); }
.case-lead { max-width: 56ch; margin-top: 16px; color: var(--muted); font-size: 17px; line-height: 1.6; text-wrap: pretty; }
.case-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 30px 0 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.case-stats div { padding: 18px 0; }
.case-stats div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.case-stats dt { color: var(--faint); font: 500 10.5px/1.3 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.case-stats dd { margin-top: 8px; font-size: clamp(26px, 2.4vw, 34px); line-height: 1; letter-spacing: -.04em; font-weight: 500; }
.case-points li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 15px; line-height: 1.55; }
.case-points.compact li { display: block; }
.case-points li:last-child { border-bottom: 0; }
.case-points b { padding-top: 5px; color: var(--text); font: 500 10.5px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.case-points.compact li { padding: 10px 0; font-size: 14.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips span { padding: 7px 11px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--muted); font: 500 11.5px/1 var(--font-mono); letter-spacing: .02em; }
.case-links { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 30px; }

.case-cz { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); }
.case-cz .case-copy { padding: clamp(28px, 4vw, 58px); }
.case-cz h3 { margin-top: 44px; }
.cz-visual { position: relative; perspective: 1400px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-height: 640px; padding: 36px 30px 28px; overflow: hidden; background: radial-gradient(ellipse 80% 60% at 50% 38%, rgba(124, 58, 237, .5), transparent 70%), linear-gradient(180deg, #120d24, #0b0916); }
.cz-glow { position: absolute; inset: auto -20% -40% -20%; height: 60%; background: radial-gradient(ellipse at center, rgba(214, 242, 107, .12), transparent 60%); pointer-events: none; }
.cz-phones { position: relative; flex: 1; min-height: 430px; transform-style: preserve-3d; transition: transform .8s var(--ease); }
.phone { position: absolute; bottom: 0; left: 50%; width: 41%; height: auto; border-radius: 24px; box-shadow: 0 30px 60px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .08); transition: transform .9s var(--ease); }
.phone-c { z-index: 3; transform: translateX(-50%); }
.phone-l { z-index: 2; width: 35%; transform: translateX(-128%) translateY(-4%) rotate(-7deg); opacity: .92; }
.phone-r { z-index: 2; width: 35%; transform: translateX(28%) translateY(-4%) rotate(7deg); opacity: .92; }
.case-cz:hover .phone-l { transform: translateX(-138%) translateY(-6%) rotate(-10deg); }
.case-cz:hover .phone-r { transform: translateX(38%) translateY(-6%) rotate(10deg); }
.spark { position: relative; z-index: 2; padding: 14px 16px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; background: rgba(10, 8, 20, .6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.spark figcaption, .fd-chart figcaption { display: flex; justify-content: space-between; gap: 12px; white-space: nowrap; color: var(--muted); font: 500 10.5px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.spark-bars { display: flex; align-items: flex-end; gap: 2px; height: 58px; margin-top: 12px; }
.spark-bars i, .fd-bars i { flex: 1; min-height: 2px; height: calc(var(--h) * 100%); border-radius: 2px 2px 1px 1px; transform: scaleY(0); transform-origin: bottom; transition: transform .9s var(--ease) calc(var(--i) * 18ms); }
.spark-bars i { background: linear-gradient(180deg, var(--lime), var(--violet)); }
.is-visible .spark-bars i, .is-visible .fd-bars i { transform: scaleY(1); }

.case-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.case-fd, .case-lt { display: flex; flex-direction: column; gap: 18px; padding: clamp(26px, 3.4vw, 46px); }
.case-fd h3, .case-lt h3 { font-size: clamp(34px, 3.4vw, 52px); }
.case-fd .case-lead, .case-lt .case-lead { margin-top: -6px; font-size: 16px; }
.case-fd .chips, .case-lt .chips { margin-top: 0; }
.case-fd .link-arrow, .case-lt .link-arrow { align-self: flex-start; margin-top: auto; }
.fd-chart { padding: 18px 18px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-2); }
.fd-bars { display: flex; align-items: flex-end; gap: 5px; height: 110px; margin-bottom: 12px; }
.fd-bars i { background: linear-gradient(180deg, var(--lime), rgba(214, 242, 107, .35)); }
.fd-chart figcaption b { color: var(--text); font-weight: 500; }
.decision { display: flex; align-items: center; gap: 10px; color: var(--muted); font: 500 11px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.decision li { display: flex; align-items: center; gap: 10px; }
.decision li:not(:last-child)::after { content: ""; width: clamp(18px, 3vw, 44px); height: 1px; background: var(--line-2); }
.decision li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.decision .is-stop { padding: 7px 11px 7px 9px; border: 1px solid rgba(255, 130, 102, .55); border-radius: 999px; color: var(--coral); }
.decision .is-stop::before { background: var(--coral); box-shadow: 0 0 10px var(--coral); }
.case-note { padding-left: 16px; border-left: 2px solid var(--coral); color: var(--muted); font-size: 15px; line-height: 1.6; }
.lt-art { position: relative; height: 220px; margin: -6px 0 2px; overflow: hidden; border-radius: 18px; background: radial-gradient(ellipse at 70% 30%, rgba(255, 178, 91, .12), transparent 60%), #0b0b0b; }
.lt-art img { position: absolute; left: 50%; top: 50%; width: 330px; max-width: none; transform: translate(-50%, -50%); mix-blend-mode: screen; transition: transform 1.2s var(--ease); }
.case-lt:hover .lt-art img { transform: translate(-46%, -54%) scale(1.06); }

.lab { margin-top: clamp(90px, 11vw, 150px); }
.lab-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.lab-head h3 { font-size: clamp(32px, 3.4vw, 48px); letter-spacing: -.045em; font-weight: 500; }
.lab-head p { max-width: 44ch; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.lab-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.lab-card { display: flex; flex-direction: column; gap: 12px; min-height: 280px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); transition: border-color .3s ease, transform .5s var(--ease), background .3s ease; }
.lab-card:hover { border-color: var(--line-2); background: var(--surface-2); transform: translateY(-4px); }
.lab-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--faint); font: 500 10.5px/1.3 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.tag { padding: 5px 8px; border: 1px solid rgba(214, 242, 107, .4); border-radius: 999px; color: var(--lime); }
.tag-stop { border-color: rgba(255, 130, 102, .45); color: var(--coral); }
.lab-card h4 { margin-top: 18px; font-size: 23px; line-height: 1.15; letter-spacing: -.035em; font-weight: 600; }
.lab-card p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.lab-card .lab-stack { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); color: var(--faint); font: 500 11px/1.5 var(--font-mono); letter-spacing: .03em; }

.buildlog { margin-top: clamp(80px, 10vw, 140px); padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.buildlog-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.buildlog-head h3 { font-size: clamp(28px, 2.8vw, 40px); letter-spacing: -.045em; font-weight: 500; }
.buildlog-head p { color: var(--muted); font-size: 15px; }
.buildlog-chart { --name: 170px; }
.bl-months { display: grid; grid-template-columns: repeat(var(--months), minmax(0, 1fr)); margin-left: var(--name); padding-bottom: 12px; border-bottom: 1px solid var(--line); color: var(--faint); font: 500 10.5px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.bl-rows li { display: grid; grid-template-columns: var(--name) 1fr; align-items: center; min-height: 40px; border-bottom: 1px solid var(--line); }
.bl-name { padding-right: 14px; color: var(--muted); font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bl-bar { position: relative; height: 100%; min-height: 40px; background-image: linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: calc(100% / var(--months)) 100%; }
.bl-bar::before { content: ""; position: absolute; top: 50%; left: calc(var(--s) / var(--months) * 100%); width: max(10px, calc((var(--e) - var(--s)) / var(--months) * 100%)); height: 14px; margin-top: -7px; border-radius: 999px; background: var(--c); box-shadow: 0 0 18px color-mix(in srgb, var(--c) 45%, transparent); transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease) .2s; }
.is-visible .bl-bar::before { transform: scaleX(1); }
.bl-bar em { position: absolute; top: 50%; left: calc(var(--s) / var(--months) * 100% + 12px); z-index: 1; color: #11150a; font: 600 10px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; transform: translateY(-50%); opacity: 0; transition: opacity .6s ease .9s; }
.is-visible .bl-bar em { opacity: 1; }
.bl-rows li:nth-child(3) .bl-bar em { left: calc(var(--e) / var(--months) * 100% + 10px); color: var(--lime); }

/* ---------- Local websites (teaser for /websites) ---------- */
.local { padding: 0 0 clamp(90px, 10vw, 140px); }
.local-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(28px, 5vw, 80px); padding: clamp(28px, 4vw, 56px); border: 1px solid var(--line-2); border-radius: 30px; background: radial-gradient(ellipse 60% 90% at 100% 0%, rgba(214, 242, 107, .08), transparent 70%), var(--surface); color: var(--text); text-decoration: none; transition: border-color .3s ease, background-color .3s ease; }
.local-card:hover { border-color: rgba(214, 242, 107, .45); }
.local-copy h2 { margin-top: 20px; font-size: clamp(32px, 3.6vw, 54px); line-height: 1.02; letter-spacing: -.045em; font-weight: 500; text-wrap: balance; }
.local-copy > p:last-child { max-width: 640px; margin-top: 18px; color: var(--muted); font-size: 16.5px; line-height: 1.62; text-wrap: pretty; }
.local-price { display: grid; justify-items: end; gap: 6px; text-align: right; }
.local-price s { color: var(--faint); font-size: 20px; text-decoration-color: var(--coral); text-decoration-thickness: 2px; }
.local-price strong { display: flex; align-items: baseline; gap: 8px; font-size: clamp(56px, 6vw, 92px); line-height: .95; letter-spacing: -.055em; font-weight: 500; }
.local-price small { color: var(--muted); font-size: 15px; letter-spacing: 0; }
.local-go { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; padding: 13px 20px; border-radius: 999px; background: var(--lime); color: #11150a; font-size: 15px; font-weight: 600; white-space: nowrap; }
.local-go span { transition: transform .35s var(--ease); }
.local-card:hover .local-go span { transform: translate(2px, -2px); }

/* ---------- Paper sections ---------- */
.paper { position: relative; z-index: 2; border-radius: clamp(24px, 3.4vw, 48px); background: var(--paper); color: var(--ink); }
.paper ::selection { background: var(--ink); color: var(--paper); }

/* Where I fit */
.fit { padding: clamp(100px, 12vw, 170px) 0; }
.fit-ui { border: 1px solid var(--ink-line); border-radius: 30px; background: var(--paper-2); box-shadow: 0 30px 70px rgba(60, 50, 20, .08); overflow: hidden; }
.fit-tabs { display: flex; gap: 6px; padding: 10px; overflow-x: auto; border-bottom: 1px solid var(--ink-line); scrollbar-width: none; }
.fit-tabs::-webkit-scrollbar { display: none; }
.fit-tabs [role="tab"] { flex: 0 0 auto; min-height: 46px; padding: 0 20px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--ink-muted); font-size: 14.5px; font-weight: 600; cursor: pointer; transition: background .25s ease, color .25s ease, border-color .25s ease; }
.fit-tabs [role="tab"]:hover { border-color: var(--ink-line); color: var(--ink); }
.fit-tabs [aria-selected="true"], .fit-tabs [aria-selected="true"]:hover { background: var(--ink); color: var(--paper); }
.fit-panel { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.2fr) minmax(0, .9fr); gap: clamp(28px, 4vw, 60px); padding: clamp(28px, 4.2vw, 56px); animation: panel-in .6s var(--ease) both; }
.fit-panel[hidden] { display: none; }
@keyframes panel-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.fit-pain { font-family: var(--font-serif); font-style: italic; font-size: clamp(28px, 2.6vw, 40px); line-height: 1.12; letter-spacing: -.01em; text-wrap: balance; }
.fit-pain span { display: block; margin-bottom: 16px; color: var(--ink-muted); font: normal 500 11px/1.4 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.fit-bring li { position: relative; padding: 13px 0 13px 28px; border-bottom: 1px solid var(--ink-line); font-size: 16px; line-height: 1.5; }
.fit-bring li:last-child { border-bottom: 0; }
.fit-bring li::before { content: ""; position: absolute; left: 0; top: 19px; width: 14px; height: 8px; border-left: 2px solid var(--lime-deep); border-bottom: 2px solid var(--lime-deep); transform: rotate(-45deg); }
.fit-proof p { margin-bottom: 26px; color: var(--ink); font-size: 15.5px; line-height: 1.55; }
.fit-proof .fit-tools { color: var(--ink-muted); font: 500 12.5px/1.6 var(--font-mono); }
.fit-proof .btn { margin-top: 4px; }

/* ---------- Mindset ---------- */
.mindset { padding: clamp(110px, 14vw, 210px) 0 clamp(100px, 12vw, 170px); }
.manifesto { max-width: 1200px; margin-top: 36px; font-size: clamp(30px, 4.15vw, 66px); line-height: 1.13; letter-spacing: -.04em; font-weight: 500; text-wrap: pretty; }
.manifesto .w { color: rgba(237, 234, 224, .16); transition: color .5s ease; }
.manifesto .w.is-lit { color: var(--text); }
.manifesto .w.is-key.is-lit { color: var(--lime); }
.manifesto-sign { margin-top: 30px; color: var(--muted); font-family: var(--font-serif); font-style: italic; font-size: clamp(26px, 2.4vw, 36px); }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px) clamp(20px, 3vw, 44px); margin-top: clamp(80px, 10vw, 140px); }
.principle { padding-top: 26px; border-top: 1px solid var(--line-2); }
.principle svg { width: 42px; height: 42px; fill: none; stroke: var(--lime); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.principle h3 { margin-top: 22px; font-size: clamp(21px, 1.8vw, 25px); line-height: 1.2; letter-spacing: -.03em; font-weight: 500; }
.principle p { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.62; }

/* ---------- Story ---------- */
.story { padding: clamp(100px, 12vw, 170px) 0; }
.flight { position: relative; }
.flight-svg { width: 100%; height: 170px; overflow: visible; }
.flight-track { fill: none; stroke: rgba(20, 22, 20, .28); stroke-width: 2; stroke-dasharray: 2 9; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.flight-done { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.flight-plane { position: absolute; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; fill: var(--ink); filter: drop-shadow(0 6px 8px rgba(20, 22, 20, .25)); will-change: transform; }
.flight-stops { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(14px, 2vw, 30px); margin-top: 26px; }
.flight-stops li { padding-top: 20px; border-top: 2px solid var(--ink-line); transition: border-color .5s ease; }
.flight-stops li.is-reached { border-color: var(--ink); }
.fs-year { display: block; color: var(--ink-muted); font: 500 12px/1 var(--font-mono); letter-spacing: .08em; }
.flight-stops h3 { margin-top: 14px; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.15; letter-spacing: -.035em; font-weight: 600; }
.fs-role { margin-top: 8px; color: var(--ink-muted); font: 500 10.5px/1.45 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.flight-stops p:last-child { margin-top: 12px; color: var(--ink-muted); font-size: 14.5px; line-height: 1.6; }
.fs-next h3 { display: inline-block; padding: 0 .12em; background: linear-gradient(transparent 55%, var(--lime) 55%, var(--lime) 92%, transparent 92%); font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: clamp(26px, 2.3vw, 34px); letter-spacing: -.01em; }
.fs-next .fs-role { margin-top: 12px; }
.story-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: clamp(60px, 7vw, 96px); padding-top: 30px; border-top: 1px solid var(--ink-line); }
.story-facts p { font-size: 15.5px; line-height: 1.6; }

/* ---------- Toolkit ---------- */
.toolkit { padding: clamp(96px, 11vw, 160px) 0 clamp(70px, 9vw, 120px); }
.toolkit-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.toolkit-head h2 { margin-top: 0; font-size: clamp(36px, 4.4vw, 66px); }
.toolkit-head p { max-width: 38ch; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.marquee { overflow: hidden; padding: 22px 0; border-top: 1px solid var(--line); -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee:last-child { border-bottom: 1px solid var(--line); }
.marquee-track { display: flex; gap: clamp(28px, 4vw, 60px); width: max-content; animation: marquee 55s linear infinite; }
.marquee-rev .marquee-track { animation-direction: reverse; animation-duration: 62s; }
.marquee span { color: var(--muted); font-size: clamp(26px, 3.1vw, 44px); letter-spacing: -.04em; font-weight: 500; white-space: nowrap; transition: color .3s ease; }
.marquee-rev span { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span:hover { color: var(--lime); }

/* ---------- Contact & boarding pass ---------- */
.contact { position: relative; padding: clamp(100px, 12vw, 180px) 0; overflow: hidden; }
.contact::before { content: ""; position: absolute; inset: 20% -10% -30% 30%; z-index: -1; background: radial-gradient(ellipse at center, rgba(214, 242, 107, .09), transparent 62%); pointer-events: none; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); align-items: center; gap: clamp(48px, 6vw, 100px); }
.contact h2 { font-size: clamp(48px, 6.4vw, 104px); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 34px; }
.pass-wrap { perspective: 1400px; }
.pass { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 132px; border-radius: 24px; background: var(--paper); color: var(--ink); box-shadow: 0 50px 100px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06); transform-style: preserve-3d; transition: transform .8s var(--ease); }
.pass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .45) 48%, transparent 60%); background-size: 250% 100%; background-position: var(--shine, 120%) 0; mix-blend-mode: soft-light; }
.pass-main { padding: clamp(22px, 2.6vw, 32px); }
.pass-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--ink-line); color: var(--ink-muted); font: 500 11px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
.pass-brand { color: var(--ink); font: 700 20px/1 var(--font-sans); letter-spacing: -.06em; text-transform: none; }
.pass-brand i { font-style: normal; color: var(--lime-deep); }
.pass-route { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; margin: 26px 0 24px; }
.pass-route > div:not(.pass-path) { display: flex; flex-direction: column; gap: 6px; }
.pass-to { text-align: right; }
.pass-code { font-size: clamp(42px, 4.6vw, 64px); line-height: .9; letter-spacing: -.055em; font-weight: 600; }
.pass-city { color: var(--ink-muted); font: 500 11px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.pass-path { display: flex; align-items: center; gap: 8px; }
.pass-path span { flex: 1; height: 0; border-top: 2px dotted rgba(20, 22, 20, .35); }
.pass-path svg { width: 26px; height: 26px; fill: var(--ink); transform: rotate(90deg); }
.pass-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 18px; padding-top: 20px; border-top: 1px solid var(--ink-line); }
.pass-fields dt { color: var(--ink-muted); font: 500 10px/1.2 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.pass-fields dd { margin-top: 6px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.pass-stub { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 14px; padding: 26px 16px; border-left: 2px dashed rgba(20, 22, 20, .22); }
.pass-stub::before, .pass-stub::after { content: ""; position: absolute; left: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); }
.pass-stub::before { top: -11px; }
.pass-stub::after { bottom: -11px; }
.pass-stub-label { padding: 6px 9px; border-radius: 999px; background: var(--ink); color: var(--lime); font: 600 10px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
.pass-barcode { display: flex; flex: 1; flex-direction: column; justify-content: space-between; width: 72px; min-height: 150px; }
.pass-barcode i { display: block; width: 100%; height: var(--w, 2px); background: var(--ink); }
.pass-stub-mail { color: var(--ink-muted); font: 500 9.5px/1 var(--font-mono); letter-spacing: .04em; writing-mode: vertical-rl; transform: rotate(180deg); }
.pass-note { display: flex; align-items: center; gap: 12px; margin-top: 22px; color: var(--muted); font: 500 12px/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Footer ---------- */
.site-footer { position: relative; z-index: 1; padding: clamp(80px, 10vw, 130px) 0 30px; border-top: 1px solid var(--line); }
.colophon h2 { margin-top: 0; font-size: clamp(32px, 3.8vw, 56px); }
.colophon ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 60px); margin-top: 40px; }
.colophon li { display: flex; justify-content: space-between; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--line); color: var(--faint); font-size: 14.5px; line-height: 1.45; }
.colophon li span { color: var(--text); font-weight: 500; }
.colophon-note { margin-top: 26px; color: var(--faint); font: 500 12px/1.5 var(--font-mono); letter-spacing: .04em; }
.footer-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: clamp(60px, 8vw, 100px); padding-top: 24px; border-top: 1px solid var(--line); color: var(--faint); font: 500 12px/1.4 var(--font-mono); letter-spacing: .04em; }
.footer-bar .brand-mark { color: var(--text); font-family: var(--font-sans); font-size: 26px; }
.footer-bar a { text-decoration: none; transition: color .2s ease; }
.footer-bar a:hover { color: var(--lime); }

.toast { position: fixed; left: 50%; bottom: 26px; z-index: 120; padding: 13px 20px; border-radius: 999px; background: var(--lime); color: #11150a; font-size: 14px; font-weight: 600; box-shadow: 0 18px 40px rgba(0, 0, 0, .4); opacity: 0; pointer-events: none; transform: translate(-50%, 16px); transition: opacity .35s ease, transform .5s var(--ease); }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease) var(--d, 0ms), transform 1s var(--ease) var(--d, 0ms); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .site-nav { display: none; }
  .proof-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat:nth-child(4) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .lab-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .note-1 { left: -2%; }
  .note-3 { left: -3%; }
}

@media (max-width: 980px) {
  :root { --header-h: 64px; }
  .header-meta { display: none; }
  .menu-toggle { display: block; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; min-height: 0; }
  .hero-copy { padding-top: 12px; }
  .hero-title { font-size: clamp(52px, 10.5vw, 100px); }
  .hoop-wrap { width: min(100%, 520px); }
  .case-cz { grid-template-columns: 1fr; }
  .cz-visual { min-height: 560px; }
  .case-pair { grid-template-columns: 1fr; }
  .loom-grid { grid-template-columns: 1fr; gap: 20px; }
  .js .loom-steps { position: relative; min-height: 150px; }
  .js .loom-steps li { position: absolute; inset: 0 0 auto; border: 0; padding: 0; opacity: 0; transform: translateY(10px); transition: opacity .45s ease, transform .45s var(--ease); pointer-events: none; }
  .js .loom-steps li:last-child { border: 0; }
  .js .loom-steps li.is-active { opacity: 1; transform: none; pointer-events: auto; }
  .loom-stage { max-width: 640px; width: 100%; margin: 0 auto; }
  .fit-panel { grid-template-columns: 1fr; }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; }
  .flight-svg, .flight-plane { display: none; }
  .flight-stops { grid-template-columns: 1fr; gap: 0; margin-top: 0; padding-left: 26px; border-left: 2px solid var(--ink-line); }
  .flight-stops li { position: relative; padding: 0 0 34px; border-top: 0; }
  .flight-stops li::before { content: ""; position: absolute; left: -33px; top: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid rgba(20, 22, 20, .3); transition: background .4s ease, border-color .4s ease; }
  .flight-stops li.is-reached::before { background: var(--ink); border-color: var(--ink); }
  .story-facts { grid-template-columns: 1fr; gap: 20px; }
  .receipt-head { grid-template-columns: 1fr; gap: 12px; }
  .receipt-row { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }
  .receipt-labels { display: none; }
  .receipt-foot { grid-template-columns: 1fr; }
  .receipt-row.receipt-mine { margin-inline: -12px; padding-inline: 12px; }
  .colophon ul { grid-template-columns: 1fr; }
  .local-card { grid-template-columns: 1fr; }
  .local-price { justify-items: start; text-align: left; }
}

@media (max-width: 720px) {
  .brand-name { display: none; }
  .hero { padding-bottom: 56px; }
  .hero-title { font-size: clamp(46px, 13.2vw, 76px); }
  .eyebrow { gap: 12px; font-size: 11.5px; }
  .eyebrow-line { width: 22px; }
  .eyebrow-extra { display: none; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hoop-notes { display: none; }
  .hoop-caption { justify-content: center; text-align: center; }
  .hoop-caption-title { width: 100%; }
  .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat, .stat:first-child { padding: 26px 14px 26px 0; border-left: 0; border-top: 1px solid var(--line); }
  .stat:nth-child(-n + 2) { border-top: 0; }
  .stat:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .stat:last-child { grid-column: 1 / -1; padding-left: 0; border-left: 0; }
  .case { border-radius: 22px; }
  .case-stats { grid-template-columns: 1fr 1fr 1fr; }
  .case-stats div + div { padding-left: 12px; }
  .case-points li { grid-template-columns: 1fr; gap: 6px; }
  .case-points b { padding-top: 0; }
  .cz-visual { min-height: 480px; padding: 26px 18px 18px; }
  .cz-phones { min-height: 340px; }
  .phone { width: 46%; border-radius: 18px; }
  .phone-l, .phone-r { width: 38%; }
  .lab-grid { grid-template-columns: 1fr; }
  .lab-card { min-height: 0; }
  .lab-head, .buildlog-head, .toolkit-head { flex-direction: column; align-items: flex-start; }
  .buildlog-chart { --name: 104px; }
  .bl-name { font-size: 12px; }
  .bl-months span:nth-child(even) { visibility: hidden; }
  .bl-bar em { display: none; }
  .principles { grid-template-columns: 1fr; }
  .fit-tabs [role="tab"] { min-height: 42px; padding: 0 16px; font-size: 13.5px; }
  .fit-pain { font-size: 28px; }
  .pass { grid-template-columns: 1fr; }
  .pass-stub { flex-direction: row; padding: 18px 22px; border-left: 0; border-top: 2px dashed rgba(20, 22, 20, .22); }
  .pass-stub::before, .pass-stub::after { top: -12px; left: auto; }
  .pass-stub::before { left: -11px; }
  .pass-stub::after { right: -11px; bottom: auto; }
  .pass-barcode { flex-direction: row; width: auto; min-height: 44px; height: 44px; }
  .pass-barcode i { width: var(--w, 2px); height: 100%; }
  .pass-stub-mail { writing-mode: horizontal-tb; transform: none; }
  .pass-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pass-stub-mail { display: none; }
  .pass-barcode { flex: 1; margin-left: 18px; }
  .fd-chart figcaption { font-size: 9.5px; letter-spacing: .06em; }
  .case-meta { font-size: 10.5px; }
  .lm-name { font-size: 27px; }
  .lm-take { display: none; }
  .lm-card .lm-card-title { font-size: 20px; }
  .lm-card .lm-card-sub { font-size: 12.5px; }
  .lm-sub-long { display: none; }
  .lm-sub-short { display: inline; }
  .colophon li { flex-direction: column; gap: 4px; }
  .footer-bar { justify-content: flex-start; gap: 12px 24px; }
}

@media (hover: none) {
  .hoop-paper { cursor: default; }
  .hoop-hint { display: none; }
}

/* ---------- Reduced motion: keep everything, drop the travel ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0ms !important; }
  .ticker-track, .marquee-track { animation: none; }
  .js .loom { height: auto; }
  .js .loom-sticky { position: static; height: auto; padding: 20px 0; }
  .js .loom-steps { min-height: 0; }
  .js .loom-steps li, .js .loom-steps li.is-active { position: static; opacity: 1; transform: none; margin-bottom: 18px; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
