/* ============================================================
   AuraMedia — homepage
   Tokens map directly to DESIGN.md.
   No #000, no #fff. OKLCH throughout.
   ============================================================ */

:root {
  /* --- Surface ---------------------------------------------- */
  --anthracite:  oklch(0.14 0.01  60);
  --forge-char:  oklch(0.20 0.012 60);
  --forge-deep:  oklch(0.10 0.008 60);

  /* --- Text on dark surfaces -------------------------------- */
  --bone:        oklch(0.94 0.005 80);
  --bone-dim:    oklch(0.78 0.005 80);
  --bone-faint:  oklch(0.58 0.005 80);

  /* --- The one accent (Forge Amber) ------------------------- */
  --amber:       oklch(0.74 0.155 55);
  --amber-soft:  oklch(0.74 0.155 55 / 0.16);
  --amber-glow:  oklch(0.74 0.155 55 / 0.32);

  /* --- Hairlines -------------------------------------------- */
  --rule:        oklch(0.94 0.005 80 / 0.08);
  --rule-strong: oklch(0.94 0.005 80 / 0.16);

  /* --- Type ------------------------------------------------- */
  --sans: 'Switzer', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;

  /* --- Motion (state-only, AAA-conservative) --------------- */
  --ease-out-quart: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 160ms;
  --t-med:  240ms;
  --t-slow: 350ms;

  /* --- Layout ---------------------------------------------- */
  --gutter: clamp(1.25rem, 3vw, 3rem);

  color-scheme: dark;
}

/* ============================================================
   Reset (minimal)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
}
body {
  background: var(--anthracite);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: 'ss01', 'cv01';
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ol, ul { margin: 0; padding: 0; list-style: none; }
h1 { margin: 0; font-weight: 500; }
p  { margin: 0; }

/* ============================================================
   Skip link + focus
   ============================================================ */

.skip {
  position: absolute;
  top: 8px; left: 8px;
  padding: 10px 14px;
  background: var(--amber);
  color: var(--anthracite);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 2px;
  transform: translateY(-200%);
  transition: transform var(--t-med) var(--ease-out-quart);
  z-index: 100;
}
.skip:focus { transform: translateY(0); outline: none; }

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

/* ============================================================
   Hero — The Working Surface
   ============================================================ */

.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(2rem, 5vh, 5rem) var(--gutter);
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

/* The sodium task-lamp pool — a single off-center warm wash that
   anchors the headline column. No glow, no blur filter — just a
   tinted region of the surface, well under the 10% accent budget.
   Animates two ways at once:
     • flicker  → opacity breathes 0.85 ↔ 1   over ~9s
     • drift    → background-position crawls  over ~42s
   Both halt under prefers-reduced-motion. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 75% 65% at 22% 60%,
      oklch(0.74 0.155 55 / 0.22),
      oklch(0.74 0.155 55 / 0.09) 40%,
      transparent 72%
    );
  background-size: 116% 116%;
  background-position: 50% 50%;
  will-change: opacity, background-position;
  animation:
    hero-lamp-flicker 7.5s ease-in-out infinite,
    hero-lamp-drift  28s  ease-in-out infinite;
}

/* Cursor-following lamp — a small, discrete pool of light that sits ABOVE
   the anchored ambient pool but BELOW the content. JS writes --lamp-x and
   --lamp-y in pixels (relative to the hero) and toggles --lamp-opacity on
   enter/leave. Default position off-screen so it doesn't flash at (0,0)
   before the first mousemove. */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 140px;
  height: 140px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    circle,
    oklch(0.74 0.155 55 / 0.30) 0%,
    oklch(0.74 0.155 55 / 0.12) 32%,
    transparent 68%
  );
  transform: translate(var(--lamp-x, -9999px), var(--lamp-y, -9999px))
             translate(-50%, -50%);
  opacity: var(--lamp-opacity, 0);
  transition: opacity 280ms var(--ease-out-quart);
  will-change: transform, opacity;
}

@keyframes hero-lamp-flicker {
  0%, 100% { opacity: 0.78; }
  20%      { opacity: 1;    }
  45%      { opacity: 0.66; }
  72%      { opacity: 0.95; }
}

@keyframes hero-lamp-drift {
  0%, 100% { background-position: 44% 50%; }
  25%      { background-position: 56% 46%; }
  50%      { background-position: 53% 56%; }
  75%      { background-position: 41% 52%; }
}

/* Dust motes — four sparse, very faint specks drifting down through
   the lamp pool. Real-physics slow (35–55s per drift), tiny (1–2px),
   off-white tinted warm. Confined to the headline column area where
   the pool is brightest, so they read as dust-in-light, not as a
   particle background. Halt entirely under prefers-reduced-motion. */
.hero-motes {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.hero-mote {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: oklch(0.94 0.005 80 / 0.95);
  opacity: 0;
  will-change: transform, opacity;
  box-shadow: 0 0 6px oklch(0.74 0.155 55 / 0.5);
}
.hero-mote--1 { left: 12%; animation: hero-mote-drift-a 28s linear infinite; }
.hero-mote--2 { left: 22%; animation: hero-mote-drift-b 34s linear infinite; animation-delay:  -9s; }
.hero-mote--3 { left: 31%; animation: hero-mote-drift-a 31s linear infinite; animation-delay: -19s; }
.hero-mote--4 {
  left: 19%; animation: hero-mote-drift-b 38s linear infinite; animation-delay:  -5s;
  width: 3px; height: 3px;
  background: oklch(0.94 0.005 80 / 0.8);
}
.hero-mote--5 {
  left: 8%;  animation: hero-mote-drift-a 36s linear infinite; animation-delay: -24s;
  width: 3px; height: 3px;
  background: oklch(0.94 0.005 80 / 0.7);
}
.hero-mote--6 {
  left: 27%; animation: hero-mote-drift-b 30s linear infinite; animation-delay: -14s;
  width: 5px; height: 5px;
  background: oklch(0.94 0.005 80 / 0.85);
}

@keyframes hero-mote-drift-a {
  0%   { transform: translateY(-4vh)  translateX(0);    opacity: 0; }
  8%   {                                                opacity: 1; }
  50%  {                               transform: translateY(50vh) translateX(10px); }
  92%  {                                                opacity: 0.9; }
  100% { transform: translateY(105vh) translateX(-6px); opacity: 0; }
}
@keyframes hero-mote-drift-b {
  0%   { transform: translateY(-2vh)  translateX(0);    opacity: 0; }
  10%  {                                                opacity: 0.95; }
  50%  {                               transform: translateY(55vh) translateX(-12px); }
  90%  {                                                opacity: 0.85; }
  100% { transform: translateY(108vh) translateX(8px);  opacity: 0; }
}

.v1-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  min-height: calc(100vh - clamp(4rem, 10vh, 10rem));
  min-height: calc(100svh - clamp(4rem, 10vh, 10rem));
}
.v1-grid > .v1-term { width: 100%; max-width: 980px; }

.v1-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--bone-dim);
  margin-bottom: clamp(1.5rem, 4vh, 2.5rem);
}
.v1-eyebrow-sep { color: var(--bone-faint); }

.v1-headline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: clamp(0.5rem, 1.5vh, 1rem) 0 clamp(0.75rem, 2vh, 1.25rem);
}
.v1-headline-mega {
  font-family: var(--mono);
  font-size: clamp(3.5rem, 11vw, 9rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: var(--bone);
  display: inline-flex;
  align-items: baseline;
  gap: 0.06em;
}
.v1-headline-caret {
  display: inline-block;
  color: var(--amber);
  font-weight: 500;
  animation: topbar-caret-blink 1.05s steps(1, end) infinite;
}

/* --- The services / intro terminals ----------------------- */

.v1-term {
  background: var(--forge-char);
  border: 1px solid var(--rule);
  border-radius: 6px;
  font-family: var(--mono);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 oklch(0.94 0.005 80 / 0.05),
    0 1px 2px oklch(0.05 0.005 60 / 0.6);
}

/* Window chrome */
.v1-term-chrome {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 7px 12px;
  border-bottom: 1px solid var(--rule);
  background: var(--forge-deep);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--bone-faint);
}
.v1-term-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--bone-faint);
}
.v1-term-dot--live {
  background: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-soft);
}
.v1-term-path {
  color: var(--bone-dim);
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.02em;
}
.v1-term-meta {
  color: var(--bone-faint);
  font-size: 10px;
}

/* Body */
.v1-term-body {
  padding: 16px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Prompt line */
.v1-term-prompt {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0;
  font-size: 11.5px;
  line-height: 1.35;
  letter-spacing: 0.005em;
}
.v1-term-user   { color: var(--amber); font-weight: 500; }
.v1-term-at     { color: var(--bone-faint); }
.v1-term-host   { color: var(--bone); }
.v1-term-sep    { color: var(--bone-faint); }
.v1-term-cwd    { color: var(--bone-dim); margin-right: 8px; }
.v1-term-dollar { color: var(--amber); margin-right: 8px; font-weight: 500; }
.v1-term-cmd    { color: var(--bone); white-space: pre; }

/* Output table */
.v1-term-output {
  display: flex;
  flex-direction: column;
}
.v1-term-headrow,
.v1-svc {
  display: grid;
  grid-template-columns: 28px 1fr 96px 88px 64px;
  align-items: baseline;
  gap: 12px;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  padding: 12px 0;
}
.v1-term-headrow {
  color: var(--bone-faint);
  text-transform: uppercase;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 10px;
  margin-bottom: 2px;
}

.v1-services { display: flex; flex-direction: column; }

.v1-svc {
  position: relative;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  cursor: default;
  transition: background var(--t-fast) var(--ease-out-quart);
}
.v1-svc:last-child { border-bottom: 0; }

.v1-svc-num {
  color: var(--bone-faint);
  font-weight: 400;
  letter-spacing: 0.04em;
  transition: color var(--t-fast) var(--ease-out-quart);
}
.v1-svc-name {
  color: var(--bone);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  text-transform: none;
}
.v1-svc-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--bone-dim);
  text-transform: lowercase;
  letter-spacing: 0.04em;
  font-size: 10.5px;
}
.v1-svc-statusmark {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 2.5px var(--amber-soft);
}
.v1-svc-lead {
  color: var(--bone-dim);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  font-size: 10.5px;
}
.v1-svc-scale {
  color: var(--amber);
  font-weight: 500;
  letter-spacing: 0.04em;
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}

/* Per-row description — collapsed by default, expands on hover/focus */
.v1-svc-desc {
  grid-column: 2 / -1;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-med) var(--ease-out-quart),
              padding-top var(--t-med) var(--ease-out-quart);
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--bone-dim);
  letter-spacing: -0.005em;
  text-transform: none;
}
.v1-svc-desc > span {
  overflow: hidden;
  min-height: 0;
}
.v1-svc:hover,
.v1-svc:focus-within {
  background: oklch(0.94 0.005 80 / 0.025);
}
.v1-svc:hover .v1-svc-num,
.v1-svc:focus-within .v1-svc-num { color: var(--amber); }
.v1-svc:hover .v1-svc-desc,
.v1-svc:focus-within .v1-svc-desc {
  grid-template-rows: 1fr;
  padding-top: 8px;
}

/* Status bar (tmux-style footer) */
.v1-term-status {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 6px 12px;
  border-top: 1px solid var(--rule);
  background: var(--forge-deep);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--bone-faint);
  text-transform: lowercase;
}
.v1-term-status-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.v1-term-status-cell--end { justify-self: end; text-transform: none; }

.v1-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-soft);
  animation: v1-pulse 2.4s var(--ease-out-quart) infinite;
}
@keyframes v1-pulse {
  0%, 60%, 100% { box-shadow: 0 0 0 3px var(--amber-soft); }
  30%           { box-shadow: 0 0 0 6px oklch(0.74 0.155 55 / 0.06); }
}

.v1-term-kbd {
  display: inline-block;
  padding: 2px 6px;
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  background: var(--anthracite);
  font-family: var(--mono);
  font-size: 10px;
  color: var(--bone-dim);
  letter-spacing: 0.04em;
}

/* --- Intro terminal (left column) ------------------------- */
/* Reuses .v1-term chrome verbatim. These rules just add the body
   rhythm and the in-terminal CTA prompt-link. */

.v1-intro-body {
  padding: clamp(1.25rem, 2.5vh, 2rem) clamp(1rem, 2vw, 1.75rem);
  display: flex;
  flex-direction: column;
  gap: clamp(0.6rem, 1.4vh, 1rem);
}
.v1-intro-prompt { font-size: 12px; }
.v1-intro-tag {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.55;
  color: var(--bone);
  max-width: 56ch;
}

/* CTA = a clickable prompt line. */
.v1-intro-cta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0;
  padding: 6px 0;
  min-height: 44px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.005em;
  color: var(--bone);
  align-self: flex-start;
}
.v1-intro-cta-cmd {
  color: var(--amber);
  position: relative;
  margin-right: 8px;
}
.v1-intro-cta-cmd::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1px;
  background: var(--amber);
  transition: height var(--t-med) var(--ease-out-quart),
              bottom var(--t-med) var(--ease-out-quart);
}
.v1-intro-cta:hover .v1-intro-cta-cmd::after,
.v1-intro-cta:focus-visible .v1-intro-cta-cmd::after {
  height: 2px;
  bottom: -4px;
}
.v1-intro-cta-arrow {
  color: var(--amber);
  transition: transform var(--t-med) var(--ease-out-quart);
}
.v1-intro-cta:hover .v1-intro-cta-arrow,
.v1-intro-cta:focus-visible .v1-intro-cta-arrow {
  transform: translateX(4px);
}

/* --- Typewriter build-up (initial-paint state) --------------
   The inline <script> in <head> arms html.typewriter-pending before
   first paint. CSS hides what JS will reveal so there's no flash. */

html.typewriter-pending .v1-intro-prompt,
html.typewriter-pending .v1-intro-tag,
html.typewriter-pending .v1-headline,
html.typewriter-pending .v1-intro-cta { opacity: 0; }
html.typewriter-pending .v1-headline-caret { opacity: 0; }

/* The roving caret: only the element currently being typed shows it. */
.is-typing::after {
  content: '█';
  display: inline-block;
  margin-left: 1px;
  color: var(--amber);
  animation: topbar-caret-blink 0.9s steps(1, end) infinite;
}

/* Reveal animation for output blocks */
.typewriter-reveal {
  opacity: 1;
  transition: opacity 380ms var(--ease-out-quart);
}

/* --- Services section (header above the existing terminal) ------ */
.services-section {
  padding: clamp(4rem, 9vh, 7rem) var(--gutter);
  scroll-margin-top: 64px;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 900px) {
  .v1-grid {
    align-items: stretch;
    min-height: 0;
    padding: clamp(2rem, 5vh, 3rem) 0;
  }
}

@media (max-width: 560px) {
  .v1-term-headrow,
  .v1-svc {
    grid-template-columns: 24px 1fr auto;
    column-gap: 10px;
  }
  .v1-svc-status,
  .v1-term-headrow > :nth-child(3) { display: none; }
  .v1-svc-scale,
  .v1-term-headrow > :nth-child(5) { display: none; }
  .v1-svc-desc { grid-column: 2 / -1; }
  .v1-term-status > :nth-child(2) { display: none; }
}

/* ============================================================
   Topbar — terminal-flavored sticky header
   ============================================================ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: oklch(0.14 0.01 60 / 0.94);
  border-bottom: 1px solid var(--rule);
}

.topbar-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 56px;
}

.topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.topbar-brand-prompt { color: var(--amber); font-weight: 500; }
.topbar-brand-name   { color: var(--bone);  font-weight: 500; }

.topbar-nav {
  display: inline-flex;
  gap: clamp(1rem, 2.5vw, 2rem);
  justify-self: center;
}

.topbar-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  padding: 8px 4px;
  min-height: 44px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--bone-dim);
  transition: color var(--t-fast) var(--ease-out-quart);
}
.topbar-link:hover,
.topbar-link:focus-visible { color: var(--bone); }

.topbar-link-caret {
  display: inline-block;
  width: 0.5ch;
  color: var(--amber);
  opacity: 0;
  transform: translateY(-1px);
  transition: opacity var(--t-fast) var(--ease-out-quart);
}
.topbar-link:hover .topbar-link-caret,
.topbar-link:focus-visible .topbar-link-caret {
  opacity: 1;
  animation: topbar-caret-blink 1s steps(1, end) infinite;
}
@keyframes topbar-caret-blink {
  0%, 50%      { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

.topbar-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  min-height: 44px;
  border: 1px solid var(--amber);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--amber);
  background: transparent;
  transition: background var(--t-med) var(--ease-out-quart),
              color      var(--t-med) var(--ease-out-quart);
}
.topbar-cta-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-soft);
  animation: v1-pulse 2.4s var(--ease-out-quart) infinite;
}
.topbar-cta-arrow {
  font-family: var(--mono);
  transition: transform var(--t-med) var(--ease-out-quart);
}

.topbar-cta:hover,
.topbar-cta:focus-visible {
  background: var(--amber);
  color: var(--anthracite);
}
.topbar-cta:hover .topbar-cta-pulse,
.topbar-cta:focus-visible .topbar-cta-pulse {
  background: var(--anthracite);
  box-shadow: 0 0 0 3px oklch(0.14 0.01 60 / 0.4);
  animation: topbar-cta-beat 0.6s var(--ease-out-quart) infinite;
}
.topbar-cta:hover .topbar-cta-arrow,
.topbar-cta:focus-visible .topbar-cta-arrow {
  transform: translateX(3px);
}

@keyframes topbar-cta-beat {
  0%, 100% { transform: scale(1);    }
  30%      { transform: scale(1.45); }
  60%      { transform: scale(1);    }
}

@media (max-width: 640px) {
  .topbar-nav { display: none; }
  .topbar-inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }
}

/* ============================================================
   Section heads (shared by Services + ROI)
   ============================================================ */

.section-head {
  max-width: 720px;
  margin: 0 0 clamp(2rem, 5vh, 3.5rem);
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 1.4vh, 1.1rem);
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin: 0;
}
.section-eyebrow-num   { color: var(--amber); }
.section-eyebrow-sep   { color: var(--bone-faint); }
.section-eyebrow-label { color: var(--bone-dim); }

.section-heading {
  margin: 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(1.75rem, 3.2vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--bone);
  max-width: 22ch;
}

.section-supporting {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--bone-dim);
  max-width: 60ch;
  margin: 0;
}

/* ============================================================
   Services / ROI section frames
   ============================================================ */

.services-section-inner {
  display: block;
  max-width: 1100px;
  margin: 0 auto;
}
.services-section .v1-services-term {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

.roi-section {
  padding: clamp(4rem, 9vh, 7rem) var(--gutter);
  scroll-margin-top: 64px;
  background: var(--anthracite);
  border-top: 1px solid var(--rule);
}
.roi-section-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.roi-section .v1-roi-term {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

.v1-roi-list {
  display: flex;
  flex-direction: column;
  margin-top: 4px;
}

.v1-roi-row {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: baseline;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  min-height: 44px;
  transition: background var(--t-fast) var(--ease-out-quart);
}
.v1-roi-row:last-child { border-bottom: 0; }
.v1-roi-row:hover      { background: oklch(0.94 0.005 80 / 0.025); }

.v1-roi-glyph {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--amber);
  line-height: 1;
}
.v1-roi-claim {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--bone);
  letter-spacing: -0.005em;
}
.v1-roi-meta {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bone-faint);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .v1-roi-row {
    grid-template-columns: 18px 1fr;
    row-gap: 4px;
  }
  .v1-roi-meta {
    grid-column: 2 / -1;
    color: var(--bone-faint);
  }
  .section-heading { font-size: clamp(1.5rem, 6vw, 1.875rem); }
}

/* ============================================================
   Work section — vertical deploy-log timeline
   ============================================================ */

.work-section {
  padding: clamp(4rem, 9vh, 7rem) var(--gutter);
  scroll-margin-top: 64px;
}
.work-section-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}
.work-section .v1-work-term { width: 100%; max-width: 980px; }

.v1-work-headline {
  margin: 6px 0 4px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  line-height: 1.18;
  letter-spacing: -0.012em;
  color: var(--bone);
}
.v1-work-lede {
  font-family: var(--sans);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--bone-dim);
  max-width: 62ch;
  margin-bottom: clamp(0.75rem, 2vh, 1.25rem);
}

.v1-work-log {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-left: 18px;
  margin-top: 4px;
}
.v1-work-log::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: var(--rule-strong);
}

.v1-work-stage {
  position: relative;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: baseline;
  column-gap: 12px;
  row-gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  transition: background var(--t-fast) var(--ease-out-quart);
}
.v1-work-stage:last-child { border-bottom: 0; }
.v1-work-stage:hover { background: oklch(0.94 0.005 80 / 0.025); }

.v1-work-marker {
  position: absolute;
  left: -18px;
  top: 20px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--forge-deep);
  border: 1px solid var(--rule-strong);
  transition: background var(--t-fast) var(--ease-out-quart),
              border-color var(--t-fast) var(--ease-out-quart);
}
.v1-work-stage:hover .v1-work-marker { border-color: var(--bone-faint); }
.v1-work-stage--active .v1-work-marker {
  background: var(--amber);
  border-color: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-soft);
}

.v1-work-time {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--bone-faint);
  font-variant-numeric: tabular-nums;
}
.v1-work-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 2px;
  border: 1px solid var(--rule-strong);
  color: var(--bone-dim);
}
.v1-work-tag--ok   { color: var(--bone-dim); }
.v1-work-tag--run  { color: var(--amber); border-color: var(--amber); }
.v1-work-tag--idle { color: var(--bone-faint); }

.v1-work-name {
  grid-column: 3 / -1;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--bone);
}
.v1-work-desc {
  grid-column: 2 / -1;
  margin-top: 2px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.55;
  color: var(--bone-dim);
  max-width: 64ch;
}

/* ============================================================
   Contact section — terminal as input form
   ============================================================ */

.contact-section {
  padding: clamp(4rem, 9vh, 7rem) var(--gutter);
  scroll-margin-top: 64px;
}
.contact-section-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vh, 3.5rem);
}
.v1-contact-term { width: 100%; max-width: 980px; align-self: center; }

.contact-header {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.contact-header .v1-eyebrow { margin-bottom: 0.25rem; }
.contact-heading {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--bone);
}
.contact-lede {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--bone-dim);
  max-width: 60ch;
  margin: 0;
}

.v1-contact-body {
  padding: clamp(1rem, 2.5vh, 1.5rem) clamp(1rem, 2vw, 1.75rem);
  gap: 0;
}
.v1-form {
  display: flex;
  flex-direction: column;
  margin-top: 6px;
}

.v1-form-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  border-bottom: 1px solid var(--rule);
  min-height: 44px;
  transition: border-color var(--t-fast) var(--ease-out-quart);
}
.v1-form-row:focus-within { border-bottom-color: var(--amber); }
.v1-form-row--block {
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 6px;
  padding: 10px 0;
}

.v1-form-label {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--bone-dim);
  cursor: pointer;
  user-select: none;
}
.v1-form-arrow { color: var(--amber); font-weight: 500; }
.v1-form-key   { color: var(--amber); font-weight: 500; text-transform: lowercase; }
.v1-form-req   { color: var(--amber); font-size: 13px; line-height: 1; }

.v1-form-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.005em;
  color: var(--bone);
  caret-color: var(--amber);
  appearance: none;
  -webkit-appearance: none;
}
.v1-form-input::placeholder { color: var(--bone-faint); }
.v1-form-input:focus { outline: none; }

.v1-form-select {
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--amber) 50%),
    linear-gradient(135deg, var(--amber) 50%, transparent 50%);
  background-position:
    calc(100% - 14px) 55%,
    calc(100% - 9px)  55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 28px;
}
.v1-form-select option {
  background: var(--forge-deep);
  color: var(--bone);
}

.v1-form-textarea {
  resize: vertical;
  min-height: 120px;
  padding: 8px 0 12px;
  line-height: 1.55;
}

.v1-form-submit {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0;
  padding: 14px 0 6px;
  margin-top: 14px;
  min-height: 44px;
  background: transparent;
  border: 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.005em;
  color: var(--bone);
  cursor: pointer;
  align-self: flex-start;
  text-align: left;
}
.v1-form-submit-cmd {
  color: var(--amber);
  position: relative;
  margin-right: 8px;
}
.v1-form-submit-cmd::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1px;
  background: var(--amber);
  transition: height var(--t-med) var(--ease-out-quart),
              bottom var(--t-med) var(--ease-out-quart);
}
.v1-form-submit:hover .v1-form-submit-cmd::after,
.v1-form-submit:focus-visible .v1-form-submit-cmd::after {
  height: 2px;
  bottom: -4px;
}
.v1-form-submit-arrow {
  color: var(--amber);
  transition: transform var(--t-med) var(--ease-out-quart);
}
.v1-form-submit:hover .v1-form-submit-arrow,
.v1-form-submit:focus-visible .v1-form-submit-arrow {
  transform: translateX(4px);
}

@media (max-width: 560px) {
  .v1-form-row {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 2px;
    padding: 8px 0;
  }
  .v1-form-label { font-size: 11px; }
  .v1-form-input { padding: 6px 0 10px; }
}

/* ============================================================
   Site footer — terminal status-bar continuation
   ============================================================ */

.site-footer {
  background: var(--forge-deep);
  border-top: 1px solid var(--rule);
  padding: clamp(2.5rem, 5vh, 4rem) var(--gutter) 0;
  margin-top: clamp(2rem, 4vh, 4rem);
}
.site-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.site-footer-top {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(2rem, 4vh, 3rem);
  border-bottom: 1px solid var(--rule);
}
.site-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: start;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  min-height: 44px;
}
.site-footer-prompt   { color: var(--amber); font-weight: 500; }
.site-footer-wordmark { color: var(--bone);  font-weight: 500; }
.site-footer-tag      { color: var(--bone-faint); font-size: 10.5px; letter-spacing: 0.04em; }

.site-footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, auto));
  gap: clamp(1.5rem, 4vw, 3rem);
}
.site-footer-col-head {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone-faint);
}
.site-footer-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.site-footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--bone-dim);
  transition: color var(--t-fast) var(--ease-out-quart);
}
.site-footer-link:hover,
.site-footer-link:focus-visible { color: var(--amber); }
.site-footer-link--inline { min-height: 0; }

.site-footer-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px 0 18px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--bone-faint);
}
.site-footer-bar-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.site-footer-bar-cell--mid { justify-self: center; }
.site-footer-bar-cell--end { justify-self: end; }
.site-footer-pill {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  background: var(--anthracite);
  color: var(--bone-dim);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
}

@media (max-width: 720px) {
  .site-footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .site-footer-cols {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem 1.5rem;
  }
  .site-footer-bar {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .site-footer-bar-cell--mid,
  .site-footer-bar-cell--end { justify-self: start; }
}

@media (max-width: 560px) {
  .v1-work-stage { grid-template-columns: auto 1fr; }
  .v1-work-time { grid-row: 1; }
  .v1-work-tag  { grid-row: 1; }
  .v1-work-name { grid-column: 1 / -1; }
  .v1-work-desc { grid-column: 1 / -1; }
}

/* ============================================================
   Legal pages (imprint / privacy / terms) — reading column
   ============================================================ */

.legal-page {
  padding: clamp(3rem, 7vh, 6rem) var(--gutter) clamp(3rem, 6vh, 5rem);
  scroll-margin-top: 64px;
}

.legal-doc {
  max-width: 760px;
  margin: 0 auto;
}

.legal-head {
  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, 1.2vh, 0.85rem);
  margin-bottom: clamp(2.5rem, 6vh, 4rem);
  padding-bottom: clamp(1.5rem, 3vh, 2rem);
  border-bottom: 1px solid var(--rule);
}

.legal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.legal-eyebrow-num { color: var(--amber); }
.legal-eyebrow-sep { color: var(--bone-faint); }

.legal-title {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--bone);
}

.legal-updated {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--bone-faint);
}

.legal-intro {
  margin: clamp(0.5rem, 1.5vh, 1rem) 0 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--bone-dim);
  max-width: 62ch;
}

/* --- Body prose --- */
.legal-body {
  font-family: var(--sans);
  color: var(--bone);
  font-size: 1rem;
  line-height: 1.7;
}

.legal-body h2 {
  margin: clamp(2rem, 4vh, 2.75rem) 0 clamp(0.5rem, 1vh, 0.75rem);
  font-family: var(--sans);
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.005em;
  font-weight: 500;
  color: var(--bone);
}
.legal-body h2:first-child { margin-top: 0; }

.legal-body h3 {
  margin: clamp(1.25rem, 2.5vh, 1.5rem) 0 0.4rem;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.35;
  font-weight: 500;
  color: var(--bone);
}

.legal-body p {
  margin: 0 0 1rem;
  color: var(--bone-dim);
  max-width: 68ch;
}
.legal-body p strong { color: var(--bone); font-weight: 600; }

.legal-body ul {
  margin: 0 0 1.25rem;
  padding-left: 1.4rem;
  list-style: none;
  color: var(--bone-dim);
  max-width: 68ch;
}
.legal-body ul li {
  position: relative;
  padding: 4px 0 4px 4px;
}
.legal-body ul li::before {
  content: '›';
  position: absolute;
  left: -1.1rem;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
}

.legal-body a {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: text-decoration-thickness var(--t-fast) var(--ease-out-quart);
}
.legal-body a:hover,
.legal-body a:focus-visible {
  text-decoration-thickness: 2px;
}

.legal-mono {
  font-family: var(--mono);
  font-size: 0.92em;
  letter-spacing: 0.01em;
  color: var(--bone);
  background: var(--forge-deep);
  padding: 1px 6px;
  border: 1px solid var(--rule);
  border-radius: 3px;
}

/* --- Tables (used in privacy policy) --- */
.legal-table {
  width: 100%;
  max-width: 68ch;
  border-collapse: collapse;
  margin: 0.5rem 0 1.5rem;
  font-size: 0.9375rem;
}
.legal-table th,
.legal-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  color: var(--bone-dim);
  line-height: 1.55;
}
.legal-table th {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone-faint);
  background: var(--forge-deep);
  border-top: 1px solid var(--rule);
}
.legal-table tr:last-child td { border-bottom: 0; }

/* --- Footer of the legal article --- */
.legal-foot {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: clamp(3rem, 6vh, 4rem);
  padding-top: clamp(1.25rem, 3vh, 1.75rem);
  border-top: 1px solid var(--rule);
}
.legal-foot-meta { margin: 0; }
.legal-foot-back { margin: 0; }
.legal-back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--amber);
  transition: transform var(--t-fast) var(--ease-out-quart);
}
.legal-back-link:hover,
.legal-back-link:focus-visible {
  transform: translateX(-3px);
}

/* ============================================================
   Reduced motion (AAA conservative — collapse to instant)
   ============================================================ */

@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;
  }
  .v1-status-dot { animation: none !important; }
  .hero::before { animation: none !important; opacity: 0.92 !important; background-position: 50% 50% !important; }
  .hero-mote { animation: none !important; opacity: 0 !important; }
  .topbar-link:hover .topbar-link-caret,
  .topbar-link:focus-visible .topbar-link-caret { animation: none !important; opacity: 1 !important; }
  .v1-headline-caret { animation: none !important; opacity: 1 !important; }
  .topbar-cta-pulse { animation: none !important; }
  .topbar-cta:hover .topbar-cta-pulse,
  .topbar-cta:focus-visible .topbar-cta-pulse  { animation: none !important; transform: none !important; }
  .topbar-cta:hover .topbar-cta-arrow,
  .topbar-cta:focus-visible .topbar-cta-arrow  { transform: none !important; }
}
