/* ==========================================================================
   HAMLER — amazing can be simple
   Plain CSS, no build step. Fonts are self-hosted (no third-party requests).
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin-ext.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono-latin.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono-latin-ext.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic-latin-ext.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #07090c;
  --ink-2: #0b0e13;
  --text: #f4efe6;          /* warm cream, a nod to the old #f9f1e9 */
  --muted: #9aa2ab;
  --faint: #6b737d;
  --line: rgb(255 255 255 / 0.08);
  --line-strong: rgb(255 255 255 / 0.16);
  --accent: #9cd9f9;        /* the original constellation blue */
  --accent-rgb: 156 217 249;
  --warm-rgb: 243 201 146;

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: clamp(16px, 5vw, 56px);
  --maxw: 1240px;
  --radius: 22px;
  --nav-h: 72px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  background: var(--ink);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* film grain — barely there, keeps flat darks from banding */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; }

::selection { background: var(--accent); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.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;
  top: 12px; left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--text);
  color: var(--ink);
  font-weight: 500;
  transform: translateY(-160%);
  transition: transform 0.2s;
}
.skip-link:focus { transform: none; }

/* ---------- Shared type ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow b { color: var(--accent); font-weight: 500; }
.eyebrow::after {
  content: "";
  width: 40px; height: 1px;
  background: var(--line-strong);
}
.eyebrow--plain::after { display: none; }

.h2 {
  font-size: clamp(2.1rem, 5.2vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.038em;
  text-wrap: balance;
}

em, .serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.h2 em { color: var(--accent); padding-right: 0.04em; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 22px 0 24px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  background: var(--btn-bg);
  transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.4s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.98); }

.btn--primary {
  --btn-bg: var(--text);
  color: var(--ink);
  box-shadow: 0 0 0 0 rgb(var(--accent-rgb) / 0), 0 10px 30px -10px rgb(var(--accent-rgb) / 0.35);
}
.btn--primary:hover {
  --btn-bg: #fff;
  box-shadow: 0 0 0 6px rgb(var(--accent-rgb) / 0.12), 0 14px 40px -12px rgb(var(--accent-rgb) / 0.55);
}

.btn--ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: rgb(255 255 255 / 0.02);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn--ghost:hover { border-color: rgb(255 255 255 / 0.32); background: rgb(255 255 255 / 0.06); }
.btn--ghost:hover svg { transform: translateY(3px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s, border-color 0.4s, -webkit-backdrop-filter 0.4s, backdrop-filter 0.4s;
}
.nav.is-scrolled {
  background: rgb(7 9 12 / 0.62);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}
.nav__inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__mark .ln { stroke: rgb(244 239 230 / 0.55); }
.brand__mark .nd { fill: var(--text); }
.brand__mark .nd--a { fill: var(--accent); }
.brand:hover .brand__mark .nd--a { animation: blink 1.2s ease-in-out infinite; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0; padding: 0;
  list-style: none;
}
.nav__links a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.25s, background-color 0.25s;
}
.nav__links a:hover { color: var(--text); background: rgb(255 255 255 / 0.05); }

.nav__cta {
  height: 40px;
  padding: 0 16px 0 18px;
  font-size: 14px;
}
.nav__cta svg { width: 16px; height: 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  isolation: isolate;
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* slow aurora behind the network */
.hero__glow {
  position: absolute;
  inset: -25% -15% 10%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(38% 46% at 72% 34%, rgb(var(--accent-rgb) / 0.17), transparent 70%),
    radial-gradient(30% 36% at 18% 72%, rgb(var(--warm-rgb) / 0.075), transparent 70%),
    radial-gradient(60% 50% at 50% 0%, rgb(var(--accent-rgb) / 0.06), transparent 70%);
  filter: blur(24px);
  animation: drift 26s ease-in-out infinite alternate;
}

/* fade the canvas into the page */
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 32%;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgb(7 9 12 / 0), var(--ink));
}

.hero__inner {
  align-self: end;
  padding-top: calc(var(--nav-h) + 72px);
  padding-bottom: clamp(48px, 8vh, 96px);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 14px 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgb(7 9 12 / 0.4);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.chip__dot {
  position: relative;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgb(var(--accent-rgb) / 0.8);
}
.chip__dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgb(var(--accent-rgb) / 0.6);
  animation: ping 2.4s var(--ease-out) infinite;
}
.chip__sep { color: var(--faint); }

.display, .lede {
  /* soft ink halo keeps type crisp where the network passes behind it */
  text-shadow: 0 0 28px rgb(7 9 12 / 0.9), 0 0 2px rgb(7 9 12 / 0.6);
}
.display em { text-shadow: none; }

.display {
  margin-top: 28px;
  font-size: clamp(2.75rem, 10.4vw, 9.25rem);
  line-height: 0.94;
  letter-spacing: -0.048em;
  font-weight: 500;
}
.display .line {
  display: block;
  overflow: hidden;
  /* room for italic overhang + descenders inside the reveal mask */
  padding: 0 0.12em 0.1em;
  margin: 0 -0.12em -0.1em;
}
.display .line > span { display: inline-block; }
.display em {
  font-size: 1.1em;
  line-height: 0.85;
  letter-spacing: -0.025em;
  padding-right: 0.08em;
  background: linear-gradient(100deg, var(--text) 8%, var(--accent) 55%, #e2f5ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px 48px;
  margin-top: clamp(32px, 5vh, 52px);
}

.lede {
  max-width: 34rem;
  font-size: clamp(1.06rem, 1.35vw, 1.24rem);
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}
.lede strong { color: var(--text); font-weight: 500; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__meta {
  border-top: 1px solid var(--line);
}
.hero__meta .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  height: 64px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.hero__meta time { color: var(--muted); font-variant-numeric: tabular-nums; }
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; transition: color 0.25s; }
.scroll-cue:hover { color: var(--text); }
.scroll-cue__bar {
  position: relative;
  width: 1px; height: 28px;
  overflow: hidden;
  background: var(--line-strong);
}
.scroll-cue__bar::after {
  content: "";
  position: absolute;
  left: 0; top: -40%;
  width: 1px; height: 40%;
  background: var(--accent);
  animation: fall 2.2s var(--ease-out) infinite;
}

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(96px, 13vw, 176px); }
.section + .section { border-top: 1px solid var(--line); }

.section__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}
.section__head .eyebrow { grid-column: 1 / span 4; margin-top: 0.9em; }
.section__head .h2 { grid-column: 5 / -1; }

/* principles */
.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: clamp(56px, 7vw, 96px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.principle {
  position: relative;
  padding: 36px 32px 0 0;
}
.principle + .principle {
  padding-left: 32px;
  border-left: 1px solid var(--line);
}
.principle::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.8s var(--ease-out);
}
.principle:hover::before { width: 100%; }
.principle__num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 60px;
  line-height: 1;
  color: var(--accent);
}
.principle h3 {
  margin: 32px 0 12px;
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.principle p { max-width: 34ch; color: var(--muted); text-wrap: pretty; }

/* statement — words light up as you scroll */
.statement-wrap { padding-block: clamp(96px, 13vw, 176px); border-top: 1px solid var(--line); }
.statement {
  max-width: 19em;
  margin-left: auto;
  font-size: clamp(1.85rem, 4.4vw, 3.9rem);
  line-height: 1.12;
  letter-spacing: -0.032em;
  font-weight: 450;
  text-wrap: balance;
}
.statement em { color: var(--accent); }
.statement .w { transition: opacity 0.25s linear; }

/* craft cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(56px, 7vw, 96px);
}
.card {
  --mx: 50%;
  --my: 0%;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 460px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.035), rgb(255 255 255 / 0.008) 60%);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.4s, transform 0.6s var(--ease-out);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(480px circle at var(--mx) var(--my), rgb(var(--accent-rgb) / 0.11), transparent 45%);
  opacity: 0;
  transition: opacity 0.5s;
}
.card:hover { border-color: var(--line-strong); }
.card:hover::before { opacity: 1; }

.card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.card__icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgb(255 255 255 / 0.03);
  color: var(--accent);
}
.card__icon svg { width: 22px; height: 22px; }
.card__idx {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--faint);
}

.card__art {
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 150px;
  margin: 12px -8px;
}
.card__art svg { width: 100%; max-width: 260px; height: auto; overflow: visible; }

.card h3 {
  font-size: 27px;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.card p { margin-top: 12px; color: var(--muted); text-wrap: pretty; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.tags li {
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
  background: rgb(7 9 12 / 0.35);
}

/* card illustrations */
.art-bar { fill: rgb(255 255 255 / 0.09); }
.art-bar--hi { fill: rgb(var(--accent-rgb) / 0.75); }
.art-caret { fill: var(--accent); animation: caret 1.1s steps(1) infinite; }
.art-line { stroke: rgb(255 255 255 / 0.14); fill: none; }
.art-unit { fill: rgb(255 255 255 / 0.025); stroke: rgb(255 255 255 / 0.12); }
.art-led { fill: var(--accent); animation: blink 2.6s ease-in-out infinite; }
.art-led--w { fill: rgb(var(--warm-rgb)); }
.art-node { fill: var(--ink); stroke: rgb(255 255 255 / 0.28); }
.art-hub { fill: var(--accent); }
.art-ring { fill: none; stroke: rgb(var(--accent-rgb) / 0.6); transform-box: fill-box; transform-origin: center; animation: ring 3.6s var(--ease-out) infinite; }
.art-flow { stroke: var(--accent); stroke-dasharray: 3 9; fill: none; animation: flow 1.6s linear infinite; }

/* ---------- Contact ---------- */
.contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(120px, 16vw, 220px);
  border-top: 1px solid var(--line);
  text-align: center;
}
.contact__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  -webkit-mask-image: radial-gradient(62% 70% at 50% 50%, #000 20%, transparent 78%);
  mask-image: radial-gradient(62% 70% at 50% 50%, #000 20%, transparent 78%);
}
.contact .eyebrow { justify-content: center; }
.contact .eyebrow::before {
  content: "";
  width: 40px; height: 1px;
  background: var(--line-strong);
}
.contact__title {
  margin: 32px auto 0;
  max-width: 13em;
  font-size: clamp(2.5rem, 7.4vw, 6.4rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.contact__title em {
  padding-right: 0.06em;
  background: linear-gradient(100deg, var(--text), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.email {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  margin-top: clamp(40px, 5vw, 56px);
  font-size: clamp(1.45rem, 3.4vw, 2.5rem);
  font-weight: 450;
  letter-spacing: -0.025em;
  line-height: 1.2;
  padding-bottom: 6px;
}
.email::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), rgb(var(--accent-rgb) / 0.15));
  opacity: 0.55;
  transform-origin: left;
  transition: opacity 0.4s, transform 0.6s var(--ease-out);
}
.email:hover::after { opacity: 1; transform: translateY(2px); }
.email svg {
  width: 0.8em; height: 0.8em;
  color: var(--accent);
  transition: transform 0.5s var(--ease-out);
}
.email:hover svg { transform: translate(4px, -4px); }

.contact__aux {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s, border-color 0.25s, background-color 0.25s;
}
.copy:hover { color: var(--text); border-color: rgb(255 255 255 / 0.32); background: rgb(255 255 255 / 0.04); }
.copy svg { width: 14px; height: 14px; }
.copy .copy__ok { display: none; color: var(--accent); }
.copy.is-done .copy__ok { display: block; }
.copy.is-done .copy__ico { display: none; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); }
.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  padding-block: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.footer a { transition: color 0.25s; }
.footer a:hover { color: var(--text); }
.footer__motto { font-family: var(--font-serif); font-style: italic; font-size: 17px; letter-spacing: 0; text-transform: none; color: var(--muted); }

/* ---------- 404 ---------- */
.lost {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}
.lost .display { margin-top: 20px; }
.lost .lede { margin: 24px auto 36px; }

/* ---------- Motion ---------- */
@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-3%, 2%, 0) scale(1.05); }
  100% { transform: translate3d(2%, -2%, 0) scale(1.02); }
}
@keyframes ping {
  0%   { transform: scale(0.6); opacity: 0.9; }
  80%, 100% { transform: scale(2.2); opacity: 0; }
}
@keyframes fall {
  0%   { top: -40%; }
  100% { top: 100%; }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
@keyframes caret {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}
@keyframes ring {
  0%   { transform: scale(0.4); opacity: 0.9; }
  100% { transform: scale(2.6); opacity: 0; }
}
@keyframes flow {
  to { stroke-dashoffset: -24; }
}
@keyframes rise {
  from { transform: translateY(105%); }
  to   { transform: none; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* entrance (only when JS is on, so no-JS visitors always see content) */
.js .display .line > span { animation: rise 1.25s var(--ease-out) both; animation-delay: var(--d, 0s); }
.js .intro { animation: fade-up 1.1s var(--ease-out) both; animation-delay: var(--d, 0s); }

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .hero__glow { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .section__head { grid-template-columns: 1fr; gap: 28px; }
  .section__head .eyebrow, .section__head .h2 { grid-column: 1 / -1; margin-top: 0; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .card__art { min-height: 170px; }
  .statement { margin-left: 0; }
}

@media (max-width: 760px) {
  .nav__links { display: none; }
  .principles { grid-template-columns: 1fr; border-top: 0; }
  .principle,
  .principle + .principle {
    padding: 32px 0 36px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .principle h3 { margin-top: 20px; }
  .principle__num { font-size: 48px; }
  .hero__row { flex-direction: column; align-items: flex-start; }
  .chip { font-size: 11px; letter-spacing: 0.06em; }
}

@media (max-width: 420px) {
  .brand { letter-spacing: 0.2em; }
  .nav__cta span { display: none; }
  .nav__cta { width: 40px; padding: 0; justify-content: center; }
  .actions { width: 100%; }
  .actions .btn { flex: 1 1 auto; justify-content: center; }
  .chip .chip__extra { display: none; }
}
