/* ==========================================================================
   Arix Labs v3 — design system
   One accent, one ease, one type scale. Restraint is the brand.
   ========================================================================== */

:root {
  /* Surface */
  --bg: #fbfbfa;
  --bg-raised: #ffffff;
  --bg-sunken: #f4f4f2;
  --ink: #0b0b0c;
  --ink-70: rgba(11, 11, 12, 0.7);
  --ink-55: rgba(11, 11, 12, 0.55);
  --ink-40: rgba(11, 11, 12, 0.4);
  --rule: rgba(11, 11, 12, 0.1);
  --rule-soft: rgba(11, 11, 12, 0.06);

  /* Accent — the only chromatic colour in the system. */
  --accent: #1d4ed8;
  --accent-bright: #3b82f6;
  --accent-wash: rgba(29, 78, 216, 0.08);

  /* Type */
  --font-display: 'Clash Display', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'General Sans', ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

  /* Motion — a single shared curve, used everywhere. */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.7s;

  /* Layout */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --maxw: 78rem;
  --nav-h: 4.5rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

.display-xl { font-size: clamp(2.75rem, 7.5vw, 6rem); }
.display-lg { font-size: clamp(2.25rem, 5.5vw, 4rem); }
.display-md { font-size: clamp(1.75rem, 3.4vw, 2.75rem); }
.display-sm { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }

p { margin: 0; text-wrap: pretty; }
.lede {
  font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
  line-height: 1.6;
  color: var(--ink-70);
  font-weight: 400;
  max-width: 46ch;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.eyebrow--muted { color: var(--ink-40); }

.prose { color: var(--ink-70); max-width: 62ch; font-weight: 500; }
.prose + .prose { margin-top: 1.1em; }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(4.5rem, 10vw, 9rem);
  border-top: 1px solid var(--rule-soft);
  position: relative;
}
.section--flush { border-top: 0; }
.section--sunken { background: var(--bg-sunken); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 2.5rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 900px) {
  .section-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 3rem;
  }
  .section-head__aside {
    text-align: right;
    flex-shrink: 0;
    max-width: 22ch;
  }
}

.grid { display: grid; gap: 1.5rem; }
@media (min-width: 720px)  { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* --------------------------------------------------------------------------
   Boot sequence — the "0% // SYSTEM BOOT" signature
   -------------------------------------------------------------------------- */

.boot {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--bg);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: var(--gutter);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.boot__rule {
  --progress: 0%;
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: calc(var(--gutter) + 3rem);
  height: 1px;
  background: var(--rule);
}
.boot__rule::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--progress);
  background: var(--ink);
  transition: width 0.12s linear;
}
.boot__pct { font-variant-numeric: tabular-nums; }
.boot.is-done { opacity: 0; visibility: hidden; pointer-events: none; }

/* --------------------------------------------------------------------------
   Cursor (desktop, pointer-fine only)
   -------------------------------------------------------------------------- */

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 250;
  will-change: transform;
  opacity: 0;
  transition: opacity 0.3s;
}
.cursor-dot {
  width: 5px; height: 5px;
  background: var(--ink);
  margin: -2.5px 0 0 -2.5px;
}
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid var(--ink-40);
  margin: -17px 0 0 -17px;
  transition: opacity 0.3s, width 0.35s var(--ease), height 0.35s var(--ease),
              margin 0.35s var(--ease), background-color 0.35s var(--ease);
}
.cursor-ring.is-hot {
  width: 56px; height: 56px;
  margin: -28px 0 0 -28px;
  background: var(--accent-wash);
  border-color: var(--accent);
}
body.has-cursor .cursor-dot,
body.has-cursor .cursor-ring { opacity: 1; }

@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* --------------------------------------------------------------------------
   Background field (Three.js canvas)
   -------------------------------------------------------------------------- */

#field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}
#field.is-live { opacity: 1; }

.page-body { position: relative; z-index: 1; }

/* --------------------------------------------------------------------------
   Header — top bar + reveal nav
   -------------------------------------------------------------------------- */

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--gutter);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background-color 0.4s var(--ease);
}
.topbar.is-stuck { border-bottom-color: var(--rule); }

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: 1.0625rem;
}
#robot {
  width: 40px; height: 40px;
  flex-shrink: 0;
  cursor: pointer;
}

.social {
  display: none;
  gap: 0.5rem;
}
@media (min-width: 1100px) { .social { display: flex; } }
.social a {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink-55);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.social a:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.social svg { width: 15px; height: 15px; fill: currentColor; }

.topbar__right { display: flex; align-items: center; gap: 1rem; }

/* Reveal nav — the "second navbar". Hides on scroll-down, returns on scroll-up. */
.navbar {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  z-index: 110;
  padding: 0 var(--gutter);
  transform: translateY(0);
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
}
.navbar.is-hidden {
  transform: translateY(-130%);
  opacity: 0;
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: var(--ink);
  color: var(--bg);
  padding: 0.9rem 1.5rem;
  border-radius: 2px;
  box-shadow: 0 18px 40px -24px rgba(11, 11, 12, 0.6);
}
.nav-links { display: none; gap: 2rem; }
@media (min-width: 860px) { .nav-links { display: flex; } }

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(251, 251, 250, 0.62);
  position: relative;
  padding-block: 0.25rem;
  transition: color 0.3s var(--ease);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: var(--accent-bright);
  transition: right 0.4s var(--ease);
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after,
.nav-link.is-active::after { right: 0; }
.nav-link.is-active { color: #fff; }

.nav-meta {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(251, 251, 250, 0.4);
}
@media (min-width: 1100px) { .nav-meta { display: block; } }

/* Burger */
.burger {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 999px;
  cursor: pointer;
  padding: 0;
}
@media (min-width: 860px) { .burger { display: none; } }
.burger span {
  display: block;
  width: 16px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.35s var(--ease), opacity 0.2s;
}
.burger span + span { margin-top: 4px; }
body.menu-open .burger span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 115;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  padding: var(--gutter);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-link {
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  padding-block: 0.35rem;
  border-bottom: 1px solid var(--rule-soft);
  transform: translateY(14px);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease), color 0.3s;
}
body.menu-open .mobile-link { transform: none; opacity: 1; }
.mobile-link:hover { color: var(--accent); }
.mobile-link.is-active { color: var(--accent); }
.mobile-menu__foot {
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-40);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: transform 0.35s var(--ease), background-color 0.3s var(--ease),
              color 0.3s var(--ease), border-color 0.3s var(--ease),
              box-shadow 0.35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 15px; height: 15px; }

.btn--primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  box-shadow: 0 12px 28px -18px rgba(11, 11, 12, 0.9);
}
.btn--primary:hover { box-shadow: 0 20px 38px -18px rgba(11, 11, 12, 0.85); }

.btn--accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 12px 28px -18px rgba(29, 78, 216, 0.9);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn--ghost:hover { border-color: var(--ink); }

.btn--sm { padding: 0.6rem 1.15rem; font-size: 0.8125rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-weight: 500;
  font-size: 0.9375rem;
}
.link-arrow svg { width: 15px; height: 15px; transition: transform 0.35s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  min-height: min(92vh, 54rem);
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-h) + 6rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
}
.hero__grid { display: grid; gap: 3rem; align-items: stretch; }
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 4rem; }
}
.hero h1 { margin-bottom: 1.75rem; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}
.hero-panel {
  border: 1px solid var(--rule);
  background: var(--bg-raised);
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  display: flex;
  flex-direction: column;
  height: 100%;
  opacity: 0;
  transform: translateY(16px);
}
.hero-panel.is-in { opacity: 1; transform: none; }
.hero-panel__badge { align-self: flex-start; margin-bottom: 1.25rem; }
.hero-panel__title { margin-bottom: 0.75rem; }
.hero-panel__body {
  color: var(--ink-70);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.waitlist-form__row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.waitlist-form__row input {
  flex: 1 1 12rem;
  min-width: 0;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--bg-sunken);
  border: 1px solid var(--rule);
  padding: 0.7rem 0.85rem;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.waitlist-form__row input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-raised);
}
.hero-panel__more { margin-top: auto; padding-top: 1.5rem; font-size: 0.875rem; }

.escrow-flow { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.escrow-flow #escrowFlowCanvas {
  display: block;
  width: 100%;
  aspect-ratio: 2.1 / 1;
}
.escrow-flow__labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-40);
}
.escrow-flow__labels span:nth-child(2) { color: var(--accent); }

.hero__meta {
  display: grid;
  gap: 1.25rem;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.hero__stat { display: flex; flex-direction: column; gap: 0.15rem; }
.hero__stat dt {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-40);
}
.hero__stat dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
}

.line { display: block; overflow: hidden; }
.line > span {
  display: block;
  transform: translateY(105%);
  will-change: transform;
}

/* --------------------------------------------------------------------------
   Marquee
   -------------------------------------------------------------------------- */

.marquee {
  border-block: 1px solid var(--rule-soft);
  background: var(--bg-sunken);
  overflow: hidden;
  padding-block: 1.1rem;
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: 3.5rem;
  animation: marquee 48s linear infinite;
}
.marquee__track > * { flex-shrink: 0; }
.marquee span {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-40);
  display: flex;
  gap: 3.5rem;
}
.marquee span::after { content: '//'; color: var(--accent); opacity: 0.5; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.card {
  display: flex;
  flex-direction: column;
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  position: relative;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease),
              border-color 0.45s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 50px -34px rgba(11, 11, 12, 0.5);
  border-color: rgba(11, 11, 12, 0.18);
}

/* Engagement model cards */
.model { }
.model--featured {
  border-color: var(--accent);
  box-shadow: 0 26px 60px -38px rgba(29, 78, 216, 0.7);
}
@media (min-width: 900px) { .model--featured { transform: translateY(-14px); } }
@media (min-width: 900px) { .model--featured:hover { transform: translateY(-18px); } }
.model__tag {
  position: absolute;
  top: -0.75rem; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
}
.model__kind {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-40);
  margin-bottom: 1.25rem;
}
.model h3 { margin-bottom: 0.35rem; }
.model__tagline { color: var(--ink-55); font-size: 0.9375rem; margin-bottom: 1rem; }
.model__body { color: var(--ink-70); font-size: 0.9375rem; margin-bottom: 1.75rem; }
.feature-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  font-size: 0.9063rem;
  color: var(--ink-70);
}
.feature-list li {
  display: grid;
  grid-template-columns: 1rem 1fr;
  gap: 0.65rem;
  align-items: start;
}
.feature-list svg {
  width: 1rem; height: 1rem;
  margin-top: 0.28rem;
  color: var(--accent);
  flex-shrink: 0;
}
.model .btn { margin-top: auto; }

/* Numbered pillar cards */
.pillar__num {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.pillar h3 { margin-bottom: 0.75rem; font-size: 1.25rem; }
.pillar p { color: var(--ink-70); font-size: 0.9375rem; margin-bottom: 1.5rem; }
.tag-list {
  list-style: none;
  margin: auto 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--rule-soft);
  display: grid;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--ink-55);
}

/* Process steps */
.step { display: grid; gap: 1rem; }
.step__index {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--rule);
}
.step h3 { font-size: 1.15rem; }
.step p { color: var(--ink-70); font-size: 0.9375rem; }
.step__meta {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-40);
}

/* Stat callouts */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: 3rem;
}
.stat { background: var(--bg); padding: 1.75rem 1.5rem; }
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat__label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-40);
  margin-top: 0.6rem;
}
.stat__note { font-size: 0.8125rem; color: var(--ink-55); margin-top: 0.5rem; }

/* Flow diagram */
.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.flow__node {
  padding: 0.55rem 1rem;
  border: 1px solid var(--rule);
  background: var(--bg-raised);
  color: var(--ink-70);
}
.flow__arrow { color: var(--accent); }

/* Callout / note */
.note {
  border-left: 2px solid var(--accent);
  padding: 0.35rem 0 0.35rem 1.25rem;
  color: var(--ink-70);
  font-size: 0.9375rem;
}

/* Definition rows */
.rows { border-top: 1px solid var(--rule); }
.row {
  display: grid;
  gap: 0.75rem;
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 800px) {
  .row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 3rem; align-items: start; }
}
.row h3 { font-size: 1.2rem; font-weight: 600; }
.row p { color: var(--ink-70); font-size: 0.9375rem; font-weight: 500; }
.row p strong { display: block; margin-top: 0.6em; }

/* --------------------------------------------------------------------------
   CTA + footer
   -------------------------------------------------------------------------- */

.cta { padding-block: clamp(5rem, 11vw, 9rem); }
.cta h2 { margin-bottom: 1.5rem; }

.footer {
  border-top: 1px solid var(--rule);
  padding-block: 3rem;
  font-size: 0.875rem;
}
.footer__grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
@media (min-width: 800px) {
  .footer__grid { grid-template-columns: 1.4fr repeat(2, minmax(0, 1fr)); gap: 3rem; }
}
.footer h4 {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-40);
  margin-bottom: 1rem;
}
.footer__links { display: grid; gap: 0.6rem; }
.footer__links a { color: var(--ink-70); transition: color 0.3s var(--ease); }
.footer__links a:hover { color: var(--accent); }
.footer__base {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-40);
}
@media (min-width: 700px) {
  .footer__base { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* --------------------------------------------------------------------------
   Modal + forms
   -------------------------------------------------------------------------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(11, 11, 12, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal__panel {
  position: relative;
  width: min(34rem, 100%);
  max-height: min(86vh, 46rem);
  overflow-y: auto;
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.45s var(--ease);
  box-shadow: 0 40px 90px -50px rgba(11, 11, 12, 0.8);
}
.modal.is-open .modal__panel { transform: none; }
.modal__close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink-55);
  transition: color 0.3s, border-color 0.3s;
}
.modal__close:hover { color: var(--ink); border-color: var(--ink); }
.modal__close svg { width: 15px; height: 15px; }

.field { display: grid; gap: 0.4rem; margin-bottom: 1rem; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-55);
}
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--bg-sunken);
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: 0.7rem 0.85rem;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.field textarea { resize: vertical; min-height: 5rem; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-raised);
}
.field--split { display: grid; gap: 1rem; }
@media (min-width: 560px) { .field--split { grid-template-columns: 1fr 1fr; } }

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-msg {
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  border-left: 2px solid;
}
.form-msg--ok { background: var(--accent-wash); border-color: var(--accent); color: var(--accent); }
.form-msg--err { background: rgba(190, 24, 24, 0.07); border-color: #be1818; color: #9c1414; }

/* --------------------------------------------------------------------------
   Contact page — typewriter + service pills
   -------------------------------------------------------------------------- */

.type-caret {
  display: inline-block;
  width: 2px;
  height: 0.95em;
  background: var(--accent);
  vertical-align: text-bottom;
  margin-left: 3px;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.type-caret.is-done { animation: none; opacity: 0; }

.pills { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--bg-raised);
  color: var(--ink);
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
              border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.pill:hover { border-color: var(--ink-40); transform: translateY(-1px); }
.pill[aria-pressed='true'] {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.pill__check {
  width: 0; height: 14px;
  overflow: hidden;
  transition: width 0.35s var(--ease);
}
.pill[aria-pressed='true'] .pill__check { width: 14px; }
.pill__check svg { width: 14px; height: 14px; }

.pills--compact { margin-bottom: 1.25rem; gap: 0.4rem; }
.pill--sm { padding: 0.4rem 0.85rem; font-size: 0.75rem; }

.selection-note {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--ink-40);
  font-style: italic;
}
.selection-panel {
  margin-top: 1.5rem;
  border: 1px solid var(--rule);
  background: var(--bg-raised);
  border-radius: 2px;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  overflow: hidden;
}
.selection-panel__label {
  font-size: 0.875rem;
  color: var(--ink-70);
}
.selection-panel strong { color: var(--ink); font-weight: 500; }

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
}
.is-revealed[data-reveal] {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

/* --------------------------------------------------------------------------
   Status / venture badges
   -------------------------------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-55);
  background: var(--bg-raised);
}
.badge__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* --------------------------------------------------------------------------
   Accessibility
   -------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 400;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--bg);
}
.skip-link:focus { left: 1rem; top: 1rem; }

:where(a, button, input, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .line > span { transform: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  #field { display: none; }
}
