/* Fixed Focus
   Drafting grid, hairlines, mono labels, Geist type on near-black ink. */

:root {
  /* colour */
  --ink-0: #0B1016;          /* page */
  --ink-1: #111820;          /* panels */
  --fg: #F5F4F0;             /* warm white */
  --fg-2: #C9CCCB;           /* body copy */
  --mute: #8C959D;           /* muted gray */
  --steel: #B5C5D5;          /* accent */
  --line: rgba(181, 197, 213, .12);
  --line-2: rgba(181, 197, 213, .24);
  --guide: rgba(181, 197, 213, .045);

  /* type */
  --sans: 'Geist', 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* layout */
  --max: 1440px;
  --gut: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink-0); color: var(--fg-2);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: hidden;
  min-height: 100svh; display: flex; flex-direction: column;
}
main { flex: 1; }
img, svg { display: block; max-width: 100%; }
h1, p { margin: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 1px solid var(--steel); outline-offset: 4px; }
::selection { background: var(--steel); color: var(--ink-0); }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); position: relative; }
.dim { color: var(--mute); }

/* ---------- drafting guides (fixed 12-col) ---------- */
.guides { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.guides__grid { height: 100%; display: grid; grid-template-columns: repeat(12, 1fr); }
.guides__grid i { border-left: 1px solid var(--guide); }
.guides__grid i:last-child { border-right: 1px solid var(--guide); }
@media (max-width: 760px) {
  .guides__grid { grid-template-columns: repeat(4, 1fr); }
  .guides__grid i:nth-child(n+5) { display: none; }
  .guides__grid i:nth-child(4) { border-right: 1px solid var(--guide); }
}
main, .foot, .nav { position: relative; z-index: 1; }

/* ---------- type ---------- */
.eyebrow, .fig-note, .foot__note {
  font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
}
.eyebrow { color: var(--steel); display: flex; align-items: center; gap: 14px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.display {
  font-weight: 500; color: var(--fg); letter-spacing: -.04em; line-height: 1;
  font-size: clamp(40px, 4.6vw, 76px);
}
.display span { display: block; }
.lede { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.45; color: var(--fg); letter-spacing: -.01em; max-width: 34ch; }

/* ---------- buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 14px; height: 52px; padding: 0 24px;
  font: 500 15px/1 var(--sans); letter-spacing: -.005em; border: 1px solid var(--fg);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s;
}
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn--solid { background: var(--fg); color: var(--ink-0); }
.btn--solid:hover { background: var(--steel); border-color: var(--steel); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; border-bottom: 1px solid transparent;
  transition: background .4s, border-color .4s, backdrop-filter .4s;
}
.nav.is-scrolled {
  background: rgba(11, 16, 22, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__bar { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav__brand { transition: opacity .25s; }
.nav__brand:hover { opacity: .8; }
.nav__brand img { height: 20px; width: auto; }

/* ---------- reveal ---------- */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; transition: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 140px; overflow: hidden; }
.hero--page { min-height: 0; padding-top: clamp(150px, 16vw, 220px); }
.hero > .wrap { width: 100%; }
.hero__fig {
  position: absolute; top: 96px; right: var(--gut); bottom: 210px; width: min(46vw, 720px);
  pointer-events: none; color: var(--steel);
}
.hero__fig svg { width: 100%; height: 100%; }
.hero__fig::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--ink-0) 0%, transparent 30%), linear-gradient(0deg, var(--ink-0) 0%, transparent 22%);
}
.fig-note { position: absolute; right: 0; color: var(--mute); font-size: 11px; z-index: 1; }
.fig-note--t { top: 12px; }
.fig-note--b { bottom: -28px; }
.hero__inner { display: grid; gap: 28px; padding-bottom: clamp(56px, 7vw, 104px); max-width: 680px; }
.notfound { flex: 1; }
@media (max-width: 900px) {
  .hero { min-height: 0; padding-top: 76px; }
  .hero--page { padding-top: clamp(130px, 30vw, 180px); }
  .hero__fig { position: relative; inset: auto; width: auto; height: clamp(220px, 60vw, 360px); margin: 28px var(--gut) 36px; }
  .hero__fig::after { background: linear-gradient(0deg, var(--ink-0) 0%, transparent 30%); }
  .fig-note { display: none; }
}

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); background: var(--ink-0); }
.foot__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  padding: 24px 0 32px; color: var(--mute); font-size: 12px;
}
.foot__note { font-size: 11px; }
