/* VIRGA — shared ground: tokens, type, chrome (nav, cursor, veil, footer, forms). */
@font-face { font-family: 'Bodoni Moda'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('../fonts/bodoni-moda.woff2') format('woff2'); }
@font-face { font-family: 'Bodoni Moda'; font-style: italic; font-weight: 400 600; font-display: swap; src: url('../fonts/bodoni-moda-italic.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 300 600; font-display: swap; src: url('../fonts/hanken-grotesk.woff2') format('woff2'); }
@font-face { font-family: 'Martian Mono'; font-style: normal; font-weight: 300 500; font-display: swap; src: url('../fonts/martian-mono.woff2') format('woff2'); }
:root {
  --paper: #ece7df;
  --paper-2: #e2dbd0;
  --ink-rgb: 21 22 26;
  --paper-rgb: 236 231 223;
  --signal: #ff4a26;
  --ink: rgb(var(--ink-rgb));
  --mute: rgb(var(--ink-rgb) / 0.56);
  --faint: rgb(var(--ink-rgb) / 0.16);
  --hair: rgb(var(--ink-rgb) / 0.22);
  --serif: 'Bodoni Moda', 'Bodoni 72', Didot, 'Times New Roman', serif;
  --sans: 'Hanken Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'Martian Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --gutter: clamp(18px, 2.6vw, 40px);
  --nav-h: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-in: cubic-bezier(0.6, 0, 0.9, 0.3);
  color-scheme: light;
}
/* Derived inks are computed where they are declared, so any scope that changes --ink-rgb
   has to derive them again. */
.foot, .tone-dark, .tone-light, .nav.tone-dark {
  --ink: rgb(var(--ink-rgb));
  --mute: rgb(var(--ink-rgb) / 0.56);
  --faint: rgb(var(--ink-rgb) / 0.16);
  --hair: rgb(var(--ink-rgb) / 0.22);
  color: var(--ink);
}
.tone-dark { --ink-rgb: 236 231 223; --paper-rgb: 21 22 26; }
.tone-light { --ink-rgb: 21 22 26; --paper-rgb: 236 231 223; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-width: thin; scrollbar-color: var(--hair) transparent; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--signal); color: #fff; }
:focus { outline: none; }
:focus-visible { outline: 1.5px solid var(--signal); outline-offset: 4px; border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: var(--gutter); top: -60px; z-index: 200; padding: 10px 14px; background: var(--ink); color: var(--paper); font: 500 11px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; transition: top 0.2s; }
.skip:focus { top: 12px; }

/* ── type ── */
.label { font: 400 10px/1.3 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; }
.label--mute { color: var(--mute); }
.label b { font-weight: 500; color: var(--signal); }
.display { font-family: var(--serif); font-weight: 400; font-variation-settings: 'opsz' 96; letter-spacing: -0.012em; line-height: 0.98; }
.display em { font-style: italic; }
.lede { font: 400 clamp(15px, 1.15vw, 17px)/1.55 var(--sans); color: var(--mute); max-width: 34ch; }
.num { font-family: var(--mono); font-feature-settings: 'tnum' 1, 'zero' 1; }

/* words that rise from their own baseline */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.wi { display: inline-block; transform: translateY(112%); transition: transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 45ms + var(--d, 0ms)); }
.is-in .wi, .is-live .wi { transform: none; }
[data-reveal]:not([data-reveal='words']) { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ── buttons ── */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 14px;
  height: 46px; padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font: 500 10.5px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink);
  overflow: hidden; isolation: isolate;
  transition: color 0.45s var(--ease), border-color 0.45s var(--ease);
  cursor: pointer;
}
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: translateY(101%); transition: transform 0.5s var(--ease); border-radius: inherit; }
.btn:hover, .btn:focus-visible { color: rgb(var(--paper-rgb)); }
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn--solid { background: var(--ink); color: rgb(var(--paper-rgb)); }
.btn--solid::before { background: var(--signal); }
.btn--solid:hover, .btn--solid:focus-visible { color: #fff; border-color: var(--signal); }
.btn--small { height: 36px; padding: 0 16px; font-size: 9.5px; }
.btn[disabled] { opacity: 0.4; pointer-events: none; }
.arrow { width: 16px; height: 10px; flex: none; transition: transform 0.45s var(--ease); }
.btn:hover .arrow, a:hover > .arrow { transform: translateX(4px); }
.link { position: relative; display: inline-flex; align-items: center; gap: 10px; font: 500 10.5px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; padding: 8px 0; cursor: pointer; }
.link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform-origin: right; transform: scaleX(0); transition: transform 0.5s var(--ease); }
.link:hover::after, .link:focus-visible::after { transform-origin: left; transform: scaleX(1); }

/* ── stage canvas ── */
.stage { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }

/* ── nav ── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--gutter);
  color: var(--ink);
  transition: transform 0.6s var(--ease), color 0.4s;
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav.is-hidden { transform: translateY(-110%); }
.brand { display: inline-flex; align-items: center; gap: 12px; justify-self: start; font: 500 13px/1 var(--sans); letter-spacing: 0.42em; padding: 10px 0; }
.brand svg { width: 22px; height: 18px; }
.brand span { transform: translateY(0.5px); }
.nav__links { display: flex; gap: clamp(16px, 2.2vw, 34px); }
.nav__links a { position: relative; font: 400 10px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; padding: 12px 0; opacity: 0.62; transition: opacity 0.3s; }
.nav__links a:hover, .nav__links a[aria-current='page'] { opacity: 1; }
.nav__links a[aria-current='page']::before { content: ''; position: absolute; left: 50%; top: 0; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--signal); }
.nav__tools { justify-self: end; display: flex; align-items: center; gap: clamp(12px, 1.6vw, 24px); }
.tool { display: inline-flex; align-items: center; gap: 8px; font: 400 10px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; padding: 12px 0; opacity: 0.7; transition: opacity 0.3s; cursor: pointer; }
.tool:hover { opacity: 1; }
/* while the sound is off, a thin line of light crosses the words now and then */
.tool--sound:not(.is-sound) { opacity: 1; }
.tool--sound:not(.is-sound) [data-sound-label] {
  background: linear-gradient(100deg, rgb(var(--ink-rgb) / 0.62) 0 44%, #fff 50%, rgb(var(--ink-rgb) / 0.62) 56% 100%) 120% 0 / 260% 100% no-repeat, rgb(var(--ink-rgb) / 0.62);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  animation: glint 5.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.tool--sound:not(.is-sound) .eq i { opacity: 0.62; }
@keyframes glint { 0%, 8% { background-position: 120% 0, 0 0; } 34%, 100% { background-position: -40% 0, 0 0; } }
.tool--sound.is-waking .eq i { animation: eq 0.9s ease-in-out infinite alternate; opacity: 1; }
.tool--sound.is-waking .eq i:nth-child(2) { animation-duration: 0.6s; animation-delay: -0.3s; }
.tool--sound.is-waking .eq i:nth-child(3) { animation-duration: 0.75s; animation-delay: -0.5s; }
.tool__n { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border: 1px solid currentColor; border-radius: 9px; font-size: 9px; letter-spacing: 0; }
.tool__n.is-bump { animation: bump 0.5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); background: var(--signal); border-color: var(--signal); color: #fff; } }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 10px; }
.eq i { width: 2px; height: 3px; background: currentColor; transition: height 0.3s; }
.is-sound .eq i { animation: eq 0.9s ease-in-out infinite alternate; }
.is-sound .eq i:nth-child(2) { animation-duration: 0.6s; animation-delay: -0.3s; }
.is-sound .eq i:nth-child(3) { animation-duration: 0.75s; animation-delay: -0.5s; }
@keyframes eq { from { height: 2px; } to { height: 10px; } }
.burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; margin-right: -10px; }
.burger i { display: block; width: 20px; height: 1.2px; background: currentColor; box-shadow: 0 6px 0 currentColor; transform: translateY(-3px); }

/* menu sheet (small screens) */
.sheet { position: fixed; inset: 0; z-index: 80; background: var(--paper); color: #15161a; display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--nav-h) + 20px) var(--gutter) 32px; clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path 0.7s var(--ease), visibility 0s 0.7s; }
.sheet.is-open { clip-path: inset(0); visibility: visible; transition: clip-path 0.7s var(--ease); }
.sheet a.sheet__link { display: block; font: 400 clamp(38px, 11vw, 64px)/1.08 var(--serif); letter-spacing: -0.01em; padding: 4px 0; }
.sheet a.sheet__link em { font-style: italic; }
.sheet__close { position: absolute; right: var(--gutter); top: 14px; width: 44px; height: 44px; font: 400 10px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; }
.sheet__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ── cursor: a pipper that boxes what it finds ── */
.cursor { position: fixed; left: 0; top: 0; z-index: 120; pointer-events: none; color: #fff; mix-blend-mode: difference; opacity: 0; transition: opacity 0.3s; }
.cursor.is-on { opacity: 1; }
.cursor__dot { position: fixed; left: 0; top: 0; z-index: 121; width: 4px; height: 4px; border-radius: 50%; background: var(--signal); pointer-events: none; opacity: 0; transition: opacity 0.3s; }
.cursor__dot.is-on { opacity: 1; }
.cursor__ring { position: absolute; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; }
.cursor__ring i { position: absolute; width: 8px; height: 8px; border: 1px solid currentColor; opacity: 0.8; transition: border-color 0.3s; }
.cursor__ring i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.cursor__ring i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.cursor__ring i:nth-child(3) { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.cursor__ring i:nth-child(4) { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.cursor.is-lock .cursor__ring i { opacity: 1; }
.cursor__tag { position: absolute; left: 14px; top: 14px; font: 400 9px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; opacity: 0; transform: translateY(4px); transition: opacity 0.25s, transform 0.25s; }
.cursor.has-tag .cursor__tag { opacity: 1; transform: none; }
@media (hover: none), (pointer: coarse) { .cursor, .cursor__dot { display: none; } }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor [role='button'], .has-cursor label, .has-cursor input[type='range'] { cursor: none; }
.has-cursor input[type='text'], .has-cursor input[type='email'], .has-cursor textarea, .has-cursor select { cursor: text; }

/* ── veil between pages ── */
.veil { position: fixed; inset: 0; z-index: 150; background: #15161a; color: #ece7df; display: grid; place-items: center; clip-path: inset(100% 0 0 0); pointer-events: none; }
.veil svg { width: 54px; height: 44px; opacity: 0; transform: translateY(10px); transition: opacity 0.4s, transform 0.5s var(--ease); }
.veil.is-covering { clip-path: inset(0); }
.veil.is-covering svg, .veil.is-entering svg { opacity: 1; transform: none; }
.veil.is-entering { clip-path: inset(0); transition: clip-path 0.65s var(--ease); pointer-events: auto; }
.veil.is-leaving { clip-path: inset(0 0 100% 0); transition: clip-path 0.85s var(--ease); }
@starting-style { .veil.is-entering { clip-path: inset(100% 0 0 0); } }

/* ── toast ── */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 130; transform: translate(-50%, calc(100% + 48px)); display: flex; align-items: center; gap: 14px; padding: 13px 18px; background: #15161a; color: #ece7df; border-radius: 999px; font: 400 10px/1.2 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; transition: transform 0.6s var(--ease); white-space: nowrap; }
.toast.is-on { transform: translate(-50%, 0); }
.toast i { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); }
.toast a { text-decoration: underline; text-underline-offset: 3px; }

/* ── footer ── */
.foot { position: relative; z-index: 30; background: #15161a; color: #ece7df; --ink-rgb: 236 231 223; --paper-rgb: 21 22 26; padding: clamp(60px, 9vw, 130px) var(--gutter) 28px; overflow: hidden; }
.foot__top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; align-items: start; }
.foot__say { font: 400 clamp(30px, 3.6vw, 54px)/1.04 var(--serif); letter-spacing: -0.01em; max-width: 12ch; }
.foot__say em { font-style: italic; }
.foot h3 { font: 400 10px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); margin-bottom: 18px; }
.foot__col a { display: block; padding: 5px 0; font-size: 15px; opacity: 0.86; transition: opacity 0.3s, transform 0.4s var(--ease); }
.foot__col a:hover { opacity: 1; transform: translateX(4px); }
.foot__form { display: flex; align-items: center; border-bottom: 1px solid var(--hair); }
.foot__form input { flex: 1; min-width: 0; background: none; border: 0; color: inherit; font: 400 15px var(--sans); padding: 12px 0; }
.foot__form input::placeholder { color: var(--mute); }
.foot__form button { padding: 12px 0 12px 14px; }
.foot__note { margin-top: 10px; font: 400 10px/1.5 var(--mono); letter-spacing: 0.08em; color: var(--mute); min-height: 15px; }
.foot__note.is-bad { color: var(--signal); }
.foot__word { margin: clamp(50px, 8vw, 110px) 0 18px; font: 400 clamp(90px, 23.5vw, 420px)/0.76 var(--serif); letter-spacing: -0.02em; white-space: nowrap; text-align: center; transform: translateX(-0.02em); user-select: none; }
.foot__base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--hair); font: 400 10px/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.foot__base a:hover { color: var(--ink); }
.foot__made { display: flex; justify-content: space-between; gap: 6px 20px; flex-wrap: wrap; margin-top: 12px; font: 400 9px/1.6 var(--mono); letter-spacing: 0.08em; text-transform: none; color: rgb(var(--ink-rgb) / 0.42); }
.foot__made a { transition: color 0.3s; }
.foot__made a:hover, .credit a:hover { color: var(--ink); }
/* pages that have no footer still sign their work */
.credit { position: fixed; left: 50%; bottom: 10px; z-index: 12; translate: -50% 0; white-space: nowrap; font: 400 8.5px/1 var(--mono); letter-spacing: 0.08em; color: rgb(var(--ink-rgb) / 0.38); pointer-events: none; }
.credit a { pointer-events: auto; transition: color 0.3s; }
@media (max-width: 900px) { .foot__top { grid-template-columns: 1fr 1fr; } .foot__say { grid-column: 1 / -1; } }

/* ── forms ── */
.field { position: relative; display: block; }
.field > span { display: block; font: 400 10px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); margin-bottom: 8px; }
.field input, .field select, .field textarea { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--hair); color: var(--ink); font: 400 17px/1.4 var(--sans); padding: 8px 0 12px; border-radius: 0; transition: border-color 0.3s; appearance: none; }
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: none; }
.field.is-bad input, .field.is-bad select, .field.is-bad textarea { border-color: var(--signal); }
.field small { display: block; min-height: 16px; margin-top: 6px; font: 400 10px/1.4 var(--mono); letter-spacing: 0.06em; color: var(--signal); }

/* ── small screens: first pass (the phone layout comes next) ── */
@media (max-width: 860px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__links, .nav__tools .btn { display: none; }
  .nav__tools { gap: 14px; }
  .credit { display: none; }
  .burger { display: inline-flex; }
}
@media (max-width: 520px) {
  .nav__tools #hangar-link { display: none; }
  .brand { letter-spacing: 0.3em; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  .tool--sound:not(.is-sound) [data-sound-label] { animation: none; }
}
