/* tokens: colours from the logo package; deep blue is the only chromatic colour */
:root {
  --blue: #2a4f7b;
  --grey-1: #dbdcdc;
  --grey-2: #9e9e9f;
  --paper: #f7f7f5;
  --paper-2: #efefec;
  --ink: #1f2326;
  --ink-2: #5c6166;
  --line: #dbdcdc;
  --line-2: #c4c6c8;
  --accent: var(--blue);
  --on-accent: #ffffff;
  --band-bg: var(--paper);
  --band-head: var(--ink);
  --band-ink: var(--ink);
  --band-ink-2: var(--ink-2);
  --band-line: var(--line);
  --contact-bg: var(--paper-2);
  --foot-bg: var(--paper);
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t-quick: 160ms;
  --t-std: 420ms;
  --t-slow: 700ms;
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1280px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #24446a;
    --paper-2: #203d60;
    --ink: #f2f2f0;
    --ink-2: #b9c2cc;
    --line: rgba(219, 220, 220, 0.28);
    --line-2: rgba(219, 220, 220, 0.45);
    --accent: #dbdcdc;
    --on-accent: #24446a;
    --band-bg: #24446a;
    --band-head: #f2f2f0;
    --band-ink: #f2f2f0;
    --band-ink-2: #b9c2cc;
    --band-line: rgba(219, 220, 220, 0.28);
    --contact-bg: #203d60;
    --foot-bg: #24446a;
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: 0.01em; color: var(--ink-2); }
.rule { height: 1px; background: var(--line); transform-origin: left; }
.eyebrow { display: flex; gap: 14px; align-items: baseline; margin-bottom: 18px; white-space: nowrap; }

/* nav */
nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--accent); }
.brand .m { height: 34px; width: auto; display: block; }
.brand .wm { display: flex; flex-direction: column; justify-content: center; font-size: 12.5px; line-height: 1.2; letter-spacing: 0.1em; font-weight: 500; color: var(--accent); padding-top: 1px; }
.brand .wm span { display: block; }
.nav-links { display: flex; gap: 28px; align-items: center; font-size: 14px; color: var(--ink-2); }
.nav-links a { transition: color var(--t-quick) var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { color: var(--ink); border: 1px solid var(--line-2); padding: 8px 14px; border-radius: 2px; transition: border-color var(--t-quick) var(--ease); }
.nav-cta:hover { border-color: var(--ink); }
nav .rule { animation: rule-in var(--t-slow) var(--ease) 1.4s both; }

/* hero */
.hero { padding: clamp(56px, 10vh, 120px) 0 clamp(48px, 8vh, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: end; }
.mark { color: var(--accent); width: clamp(96px, 12vw, 150px); height: auto; display: block; margin-bottom: clamp(28px, 4vh, 48px); }
.h1 { font-size: clamp(40px, 6.2vw, 84px); font-weight: 500; letter-spacing: -0.028em; line-height: 1.02; max-width: 15ch; color: var(--ink); }
.h1 .w { display: inline-block; animation: word-in var(--t-slow) var(--ease) both; }
.lede { margin-top: clamp(20px, 3vh, 32px); font-size: clamp(17px, 1.4vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 46ch; animation: fade-up var(--t-slow) var(--ease) 2.05s both; }
.lede b { font-weight: 500; color: var(--ink); }
.actions { margin-top: clamp(28px, 4vh, 44px); display: flex; gap: 22px; align-items: center; animation: fade-up var(--t-slow) var(--ease) 2.2s both; }
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: var(--on-accent); padding: 14px 22px; border-radius: 2px; font-weight: 500; font-size: 15px; border: none; font-family: inherit; cursor: pointer; transition: transform var(--t-quick) var(--ease), opacity var(--t-quick) var(--ease); }
.btn:hover { transform: translateY(-1px); opacity: 0.92; }
.btn:active { transform: translateY(0); transition-duration: 80ms; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.link { font-size: 15px; color: var(--ink-2); border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: color var(--t-quick) var(--ease), border-color var(--t-quick) var(--ease); }
.link:hover { color: var(--ink); border-color: var(--ink); }

/* ledger */
.ledger { display: grid; gap: 18px; padding-bottom: 6px; }
.ledger .cap { margin-bottom: 4px; opacity: 0; animation: fade-in var(--t-std) var(--ease) 1.85s both; }
.ledger .row { display: grid; grid-template-columns: 40px 1fr; gap: 6px 14px; align-items: baseline; }
.ledger .name { font-size: 15px; color: var(--ink); opacity: 0; animation: fade-in var(--t-std) var(--ease) 2.5s both; }
.ledger .row .rule { grid-column: 1 / -1; animation: rule-in var(--t-slow) var(--ease) both; }
.ledger .row:nth-child(2) .rule { animation-delay: 1.9s; }
.ledger .row:nth-child(3) .rule { animation-delay: 2.0s; }
.ledger .row:nth-child(4) .rule { animation-delay: 2.1s; }
.ledger .row:nth-child(5) .rule { animation-delay: 2.2s; }
.ledger .row:nth-child(6) .rule { animation-delay: 2.3s; }
.ledger .mono { opacity: 0; animation: fade-in var(--t-std) var(--ease) 2.5s both; }
.ledger .row.live .mono { color: var(--accent); }
.ledger .row.live .rule { background: var(--accent); }
.ledger .row.live .name { color: var(--accent); }
.ledger .typing { display: inline-block; vertical-align: bottom; white-space: nowrap; overflow: hidden; max-width: 0; border-right: 1px solid transparent; padding-right: 2px; animation: type 2.4s steps(30, end) 3.2s forwards, caret 1s steps(1, end) 3.2s 6 forwards; }
.ledger .name { will-change: transform; }

/* the moment */
.moment { view-timeline-name: --moment; view-timeline-axis: block; height: 320vh; position: relative; background: var(--paper-2); }
.moment .stage { position: sticky; top: 0; height: 100vh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 72px); align-items: center; }
.beats { position: relative; min-height: 260px; }
.beat { position: absolute; inset: 0; opacity: 0; animation: beat1 1s linear both; animation-timeline: --moment; animation-range: contain 0% contain 100%; }
.beat-2 { animation-name: beat2; }
.beat-3 { animation-name: beat3; }
.beat h2 { font-size: clamp(30px, 3.4vw, 46px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.08; max-width: 14ch; }
.beat p { margin-top: 16px; color: var(--ink-2); max-width: 40ch; font-size: clamp(16px, 1.25vw, 19px); }
.record { margin-top: 14px; display: grid; grid-template-columns: auto 1fr; gap: 12px 18px; align-items: baseline; opacity: 0; animation: record 1s linear both; animation-timeline: --moment; animation-range: contain 0% contain 100%; }
.record .k { font-family: var(--mono); font-size: 12px; color: var(--ink-2); letter-spacing: 0.04em; white-space: nowrap; }
.record .v { font-family: var(--mono); font-size: 13px; color: var(--ink); text-wrap: pretty; }
.record .v em { font-style: normal; color: var(--accent); }

.scene { width: 100%; height: auto; display: block; color: var(--ink-2); }
.scene .t { font-family: var(--mono); font-size: 11px; fill: var(--ink-2); }
.scene .tl { fill: var(--accent); }
.scene .g-struct, .scene .g-hatch { color: var(--ink); }
.scene .g-limit, .scene .g-craft, .scene .g-dim2, .scene .g-hold { color: var(--accent); }
.scene .d { stroke-dasharray: 1; stroke-dashoffset: 1; }
.scene .g-grid, .scene .g-hatch, .scene .g-wp, .scene .g-sheet, .scene .g-limitlabel, .scene .g-craft, .scene .g-dim2, .scene .g-hold, .scene .g-ghost { opacity: 0; }
.scene .g-grid, .scene .g-hatch, .scene .g-wp, .scene .g-sheet, .scene .g-limitlabel, .scene .g-craft, .scene .g-dim2, .scene .g-hold, .scene .g-ghost, .scene .d, .scene .dim1 {
  animation-duration: 1s; animation-timing-function: linear; animation-fill-mode: both;
  animation-timeline: --moment; animation-range: contain 0% contain 100%;
}
.scene .g-grid { animation-name: s-grid; }
.scene .d-struct { animation-name: s-struct; }
.scene .g-hatch { animation-name: s-hatch; }
.scene .d-plan { animation-name: s-plan; }
.scene .g-wp { animation-name: s-wp; }
.scene .g-sheet { animation-name: s-sheet; }
.scene .d-limit { animation-name: s-limit; }
.scene .g-limitlabel { animation-name: s-limitlabel; }
.scene .g-craft { animation-name: s-craft; --travel: 149.43px; }
.scene .dim1 { animation-name: s-dim1; }
.scene .g-dim2 { animation-name: s-dim2; }
.scene .g-hold { transform-origin: 0 0; animation-name: s-hold; }
.scene .g-ghost { animation-name: s-ghost; }

/* statements */
.what { padding: clamp(64px, 12vh, 140px) 0; background: var(--band-bg); color: var(--band-ink); }
.what h2, .what h3 { color: var(--band-head); }
.what h2 { font-size: clamp(30px, 3.4vw, 46px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.08; }
.what .grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); margin-top: 36px; }
.what .item { padding: 28px 0 8px; border-top: 1px solid var(--band-line); animation: fade-up var(--t-slow) var(--ease) both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
.what h3 { font-size: clamp(20px, 1.7vw, 24px); font-weight: 500; letter-spacing: -0.015em; line-height: 1.2; }
.what p { margin-top: 12px; color: var(--band-ink-2); font-size: 16px; max-width: 34ch; }

/* contact */
.contact { padding: clamp(64px, 12vh, 140px) 0 clamp(48px, 8vh, 96px); background: var(--contact-bg); }
.contact .inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 72px); align-items: start; }
.contact .head { max-width: 40ch; }
.contact h2 { font-size: clamp(30px, 3.4vw, 46px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.08; }
.contact .sub { margin-top: 14px; color: var(--ink-2); font-size: clamp(16px, 1.25vw, 19px); }
.contact .sub span { display: block; }
.form-wrap { max-width: 560px; margin-top: 6px; justify-self: end; width: 100%; }
form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
label { font-size: 13px; color: var(--ink-2); }
.req { color: var(--accent); margin-left: 0.15em; }
.opt { font-size: 12px; color: var(--ink-2); margin-left: 0.5em; opacity: 0.8; }
input[type="email"], input[type="text"], textarea {
  background: transparent; border: 1px solid var(--line-2); border-radius: 2px; color: var(--ink);
  font-family: var(--sans); font-size: 16px; padding: 12px 14px; width: 100%; appearance: none; -webkit-appearance: none;
  transition: border-color var(--t-quick) var(--ease);
}
input:focus, textarea:focus { outline: none; border-color: var(--accent); }
input::placeholder, textarea::placeholder { color: var(--ink-2); opacity: 0.7; }
textarea { resize: vertical; min-height: 120px; }
.cf-turnstile { min-height: 65px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { font-size: 13px; color: var(--accent); margin: 0; }
.form-error[hidden] { display: none; }
.form-note { font-size: 13px; color: var(--ink-2); }
.form-success { display: none; padding: 32px 0; }
.form-success.show { display: block; }
.form-success .m { height: 40px; width: auto; color: var(--accent); margin-bottom: 18px; }
.form-success .title { font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
.form-success .sub { margin-top: 6px; color: var(--ink-2); }

/* pages */
.page { padding: clamp(48px, 8vh, 96px) 0 0; max-width: 60ch; }
.page h1 { font-size: clamp(32px, 3.6vw, 48px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.08; }
.page p { margin-top: 18px; color: var(--ink); font-size: 17px; }
.page p.dim { color: var(--ink-2); }
.page a { color: var(--accent); border-bottom: 1px solid var(--line-2); }
.page .meta { margin-top: 32px; }

/* footer */
footer { border-top: 1px solid var(--line); background: var(--foot-bg); padding: 56px 0 40px; font-size: 14px; color: var(--ink-2); }
.foot-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 28px; padding-top: 6px; }
.foot-links a { transition: color var(--t-quick) var(--ease); }
.foot-links a:hover { color: var(--ink); }
.foot-brand .brand { color: var(--accent); }
.foot-brand .m { height: 30px; }
.foot-brand .wm { font-size: 11.5px; }
.foot-brand p { margin-top: 14px; max-width: 34ch; }
.foot-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }

/* keyframes */
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rule-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes word-in { from { opacity: 0; transform: translateY(0.35em); } to { opacity: 1; transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes type { from { max-width: 0; } to { max-width: 30ch; } }
@keyframes caret { 0%, 50% { border-color: var(--accent); } 50.01%, 100% { border-color: transparent; } }
@keyframes beat1 { 0% { opacity: 0; transform: translateY(12px); } 4%, 30% { opacity: 1; transform: none; } 36%, 100% { opacity: 0; transform: translateY(-12px); } }
@keyframes beat2 { 0%, 34% { opacity: 0; transform: translateY(12px); } 40%, 58% { opacity: 1; transform: none; } 64%, 100% { opacity: 0; transform: translateY(-12px); } }
@keyframes beat3 { 0%, 62% { opacity: 0; transform: translateY(12px); } 68%, 100% { opacity: 1; transform: none; } }
@keyframes record { 0%, 78% { opacity: 0; transform: translateY(8px); } 84%, 100% { opacity: 1; transform: none; } }
@keyframes s-grid { 0% { opacity: 0; } 3%, 100% { opacity: 1; } }
@keyframes s-struct { 0%, 2% { stroke-dashoffset: 1; } 18%, 100% { stroke-dashoffset: 0; } }
@keyframes s-hatch { 0%, 16% { opacity: 0; } 24%, 100% { opacity: 1; } }
@keyframes s-plan { 0%, 10% { stroke-dashoffset: 1; } 30%, 100% { stroke-dashoffset: 0; } }
@keyframes s-wp { 0%, 24% { opacity: 0; } 30%, 100% { opacity: 1; } }
@keyframes s-sheet { 0%, 22% { opacity: 0; } 30%, 100% { opacity: 1; } }
@keyframes s-limit { 0%, 38% { stroke-dashoffset: 1; } 56%, 100% { stroke-dashoffset: 0; } }
@keyframes s-limitlabel { 0%, 52% { opacity: 0; } 58%, 100% { opacity: 1; } }
@keyframes s-craft { 0%, 60% { opacity: 0; transform: translateX(0); } 62% { opacity: 1; transform: translateX(0); } 78%, 100% { opacity: 1; transform: translateX(var(--travel)); } }
@keyframes s-dim1 { 0%, 68% { opacity: 0; } 70%, 79% { opacity: 1; } 84%, 100% { opacity: 0; } }
@keyframes s-dim2 { 0%, 79% { opacity: 0; } 84%, 100% { opacity: 1; } }
@keyframes s-hold { 0%, 78% { opacity: 0; transform: scale(0.4); } 84% { opacity: 1; transform: scale(1.12); } 90%, 100% { opacity: 1; transform: scale(1); } }
@keyframes s-ghost { 0%, 78% { opacity: 0; } 86%, 100% { opacity: 0.55; } }

/* mark: drawn in the order the character is written */
.mark .s { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw var(--t-slow) var(--ease) both; }
.mark .a1 { animation-delay: 0.10s; animation-duration: 0.55s; }
.mark .a2 { animation-delay: 0.18s; animation-duration: 0.50s; }
.mark .b1 { animation-delay: 0.55s; animation-duration: 0.65s; }
.mark .b2 { animation-delay: 0.70s; animation-duration: 0.55s; }
.mark .b3 { animation-delay: 1.00s; animation-duration: 0.40s; }
.mark .b4 { animation-delay: 1.08s; animation-duration: 0.40s; }
.mark .c1 { animation-delay: 1.38s; animation-duration: 0.30s; }
.mark .c2 { animation-delay: 1.38s; animation-duration: 0.30s; }
.mark .c3 { animation-delay: 1.48s; animation-duration: 0.45s; }
.h1 .w:nth-child(1) { animation-delay: 1.55s; }
.h1 .w:nth-child(2) { animation-delay: 1.62s; }
.h1 .w:nth-child(3) { animation-delay: 1.69s; }
.h1 .w:nth-child(4) { animation-delay: 1.76s; }
.h1 .w:nth-child(5) { animation-delay: 1.83s; }
.h1 .w:nth-child(6) { animation-delay: 1.90s; }

.static-scene .scene .d { stroke-dashoffset: 0; animation: none; }
.static-scene .scene .g-grid, .static-scene .scene .g-hatch, .static-scene .scene .g-wp, .static-scene .scene .g-sheet, .static-scene .scene .g-limitlabel, .static-scene .scene .g-craft, .static-scene .scene .g-dim2, .static-scene .scene .g-hold { opacity: 1; animation: none; }
.static-scene .scene .g-ghost { opacity: 0.55; animation: none; }
.static-scene .scene .g-craft { transform: translateX(var(--travel)); }
.static-scene .scene .dim1 { opacity: 0; animation: none; }
.static-scene .scene .g-hold { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .mark .s { stroke-dashoffset: 0; }
  .h1 .w, .lede, .actions, .ledger .mono, .ledger .name, .ledger .cap, .beat, .record, .what .item { opacity: 1; transform: none; }
  .ledger .typing { max-width: none; border-right-color: transparent; }
  .scene .d { stroke-dashoffset: 0; }
  .scene .g-grid, .scene .g-hatch, .scene .g-wp, .scene .g-sheet, .scene .g-limitlabel, .scene .g-craft, .scene .g-dim2, .scene .g-hold { opacity: 1; }
  .scene .g-ghost { opacity: 0.55; }
  .scene .g-craft { transform: translateX(var(--travel)); }
  .scene .dim1 { opacity: 0; }
  .moment { height: auto; }
  .moment .stage { position: static; height: auto; padding: 80px var(--gutter); }
  .beats { min-height: 0; display: grid; gap: 40px; }
  .beat { position: static; }
}
@media (max-width: 860px) {
  .hero-grid, .moment .stage { grid-template-columns: 1fr; }
  .ledger { display: none; }
  .moment { height: auto; }
  .moment .stage { position: static; height: auto; padding: 64px var(--gutter); gap: 40px; }
  .beats { min-height: 0; display: grid; gap: 40px; }
  .beat { position: static; opacity: 1; animation: none; transform: none; }
  .record { opacity: 1; animation: none; }
  .scene .d { stroke-dashoffset: 0; animation: none; }
  .scene .g-grid, .scene .g-hatch, .scene .g-wp, .scene .g-sheet, .scene .g-limitlabel, .scene .g-craft, .scene .g-dim2, .scene .g-hold { opacity: 1; animation: none; }
  .scene .g-ghost { opacity: 0.55; animation: none; }
  .scene .g-craft { transform: translateX(var(--travel)); }
  .scene .dim1 { opacity: 0; animation: none; }
  .scene .g-hold { transform: none; }
  .what .grid { grid-template-columns: 1fr; }
  .contact .inner { grid-template-columns: 1fr; }
  .form-wrap { margin-top: 28px; justify-self: start; }
  .what .item { animation: none; opacity: 1; }
  .foot-links { flex-wrap: wrap; gap: 16px 24px; }
  .nav-links { gap: 18px; }
  .nav-links a:not(.nav-cta) { display: none; }
}
