/* ============================================================
   CRUCIBLE — agent evaluation harness
   Design system in the spirit of the provided reference clone:
   near-black canvas, hairline borders, mono labels, zero radius.
   Accent retinted: cold blue → molten ember.
   ============================================================ */

/* ---------- Fonts (local) ---------- */
@font-face {
  font-family: "Aspekta 350";
  src: url("../assets/fonts/Aspekta-350.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Aspekta 400";
  src: url("../assets/fonts/Aspekta-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Aspekta 700";
  src: url("../assets/fonts/Aspekta-700.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "PP Supply Mono";
  src: url("../assets/fonts/PPSupplyMono-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --c-black: #010101;
  --c-white: #ffffff;
  --c-white-80: rgba(255, 255, 255, .8);
  --c-white-50: rgba(255, 255, 255, .5);
  --c-white-30: rgba(255, 255, 255, .3);
  --c-gray: #353535;
  --c-gray-light: #c8c8c8;

  /* ember accent (reference blue → Crucible fire) */
  --c-accent: #b3260e;          /* deep molten red */
  --c-accent-light: #ff5a1f;    /* bright ember */

  --font-heading: "Aspekta 400", Arial, sans-serif;
  --font-body: "Aspekta 350", Arial, sans-serif;
  --font-label: "PP Supply Mono", "Courier New", monospace;

  --border-w: 1px;
  --container-max: 90rem;

  /* motion */
  --ease-out: cubic-bezier(.22, .8, .3, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--c-black);
  color: var(--c-white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { background: none; border: none; color: inherit; font: inherit; cursor: pointer; }
em { font-style: normal; }

::selection { background: var(--c-accent-light); color: var(--c-black); }

/* ---------- Layout primitives ---------- */
.padding-global { padding-left: 1.5rem; padding-right: 1.5rem; }

.container-large {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  border-left: .0625rem dashed var(--c-white-30);
  border-right: .0625rem dashed var(--c-white-30);
}
/* section rules: hairline drawn ON the container so it terminates at the rails */
.container-large.is-ruled { border-top: var(--border-w) solid var(--c-gray); }

.section_pad { padding: 6rem 3rem 7rem; }

/* ---------- Type scale ---------- */
.t-h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 4.6vw, 4.25rem);
  line-height: 1.12;
  letter-spacing: -.12rem;
  font-weight: 400;
}
.t-h2 {
  font-family: var(--font-heading);
  font-size: 2.375rem;
  line-height: 3rem;
  letter-spacing: -.0475rem;
  font-weight: 400;
}
.t-h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  line-height: 2.5rem;
  letter-spacing: -.05rem;
  font-weight: 400;
}
.t-label-1 {
  font-family: var(--font-label);
  font-size: 1.125rem;
  line-height: 1.5rem;
  letter-spacing: -.0225rem;
  text-transform: uppercase;
  font-weight: 400;
}
.t-para {
  font-family: var(--font-body);
  color: var(--c-gray-light);
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* ============================================================
   NAV
   ============================================================ */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(1,1,1,.92), rgba(1,1,1,.6) 70%, rgba(1,1,1,0));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.navbar_inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  border-bottom: var(--border-w) solid rgba(255,255,255,.08);
}
.brand_word {
  font-family: var(--font-label);
  text-transform: uppercase;
  font-size: 1.05rem;
  letter-spacing: .04em;
}
.navbar_links { display: flex; align-items: center; gap: 2rem; }
.nav_link {
  font-family: var(--font-label);
  text-transform: uppercase;
  font-size: .8rem;
  letter-spacing: -.01em;
  color: var(--c-white-80);
  transition: color .25s ease;
}
.nav_link:hover { color: var(--c-white); }
.nav_link.is-contact {
  border: var(--border-w) solid var(--c-gray);
  padding: .45rem 1rem;
  transition: border-color .25s ease, background-color .25s ease, color .25s ease;
}
.nav_link.is-contact:hover {
  border-color: var(--c-accent-light);
  background: var(--c-accent);
  color: var(--c-white);
}
.nav_burger { display: none; flex-direction: column; gap: 6px; padding: .5rem; }
.nav_burger span { display: block; width: 22px; height: 1px; background: var(--c-white); transition: transform .3s ease, opacity .3s ease; }
.nav_burger.is-open span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav_burger.is-open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* nav boot-in: slides down once on load */
[data-boot="nav"] {
  transform: translateY(-100%);
  transition: transform .8s var(--ease-out) .15s;
}
[data-boot="nav"].is-booted { transform: none; }

.menu-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(1,1,1,.97);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease;
}
.menu-overlay.is-open { opacity: 1; pointer-events: auto; }
.menu-overlay_links { display: flex; flex-direction: column; gap: 2rem; text-align: center; }
.menu_link {
  font-family: var(--font-label);
  text-transform: uppercase;
  font-size: 1.5rem;
  color: var(--c-white);
}

/* ============================================================
   HERO — full-bleed wave field, copy pinned to baseline
   ============================================================ */
.section_hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
/* hero canvas + glow live INSIDE the dashed rails: the container is the
   positioning context and clips everything at its borders */
.hero_container {
  position: relative;
  overflow: hidden;
}
.hero_waves { position: absolute; inset: 0; z-index: 0; }
.hero_waves canvas { display: block; width: 100%; height: 100%; }

.hero_glow {
  position: absolute; z-index: 1;
  left: 50%; bottom: -38vh;
  width: 160%; height: 80vh;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center,
      rgba(255, 90, 31, .30) 0%,
      rgba(179, 38, 14, .15) 34%,
      rgba(1, 1, 1, 0) 68%);
  pointer-events: none;
}
.hero_shade {
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(to bottom, rgba(1,1,1,.85) 0%, rgba(1,1,1,.25) 30%, rgba(1,1,1,0) 55%, rgba(1,1,1,.72) 100%);
  pointer-events: none;
}
/* boot veil: page wakes up from black */
.hero_veil {
  position: absolute; inset: 0; z-index: 4;
  background: var(--c-black);
  opacity: 1;
  transition: opacity 1.1s ease .05s;
  pointer-events: none;
}
body.is-booted .hero_veil { opacity: 0; }

.hero_global { width: 100%; }
.hero_container {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100svh;
  padding: 8rem 3rem 5.5rem;
}
.hero_copy { position: relative; z-index: 3; }
.hero_copy {
  max-width: 64rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.tag {
  display: inline-flex;
  align-self: flex-start;
  background: var(--c-accent);
  font-family: var(--font-label);
  text-transform: uppercase;
  font-size: .875rem;
  line-height: 1rem;
  letter-spacing: -.0225rem;
  padding: .3rem .5rem;
}
/* tag boot-in */
[data-boot="tag"] {
  opacity: 0;
  transition: opacity .5s ease .35s;
}
body.is-booted [data-boot="tag"] { opacity: 1; }

.hero_h1 { margin: 0; }

/* buttons */
.btn-group { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }
.btn-group.is-center { justify-content: center; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-family: var(--font-label);
  text-transform: uppercase;
  font-size: 1rem;
  line-height: 1.25rem;
  letter-spacing: -.02rem;
  padding: .65rem .65rem .65rem 1.5rem;
  border: var(--border-w) solid transparent;
  transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}
.btn_icon {
  display: flex; align-items: center; justify-content: center;
  height: 2.5rem; padding: 0 .5rem;
  border-left: .0625rem dashed currentColor;
  transition: transform .3s ease;
}
.btn_icon svg { width: 1.1rem; height: 1.1rem; }
.btn:hover .btn_icon { transform: translateX(3px); }
.btn--ember {
  background: var(--c-accent);
  color: var(--c-white);
  border-color: rgba(255,255,255,.15);
}
.btn--ember:hover { background: var(--c-accent-light); color: var(--c-black); }
.btn--ghost {
  background: rgba(1,1,1,.4);
  color: var(--c-white);
  border-color: var(--c-gray);
}
.btn--ghost:hover { border-color: var(--c-white-50); }

/* ============================================================
   SECTION CHROME (shared)
   ============================================================ */
.plus-row {
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  transform: translateY(-50%);
}
.plus-icon { width: 1rem; height: 1rem; color: var(--c-white); opacity: .5; }

.section_head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.section_num {
  font-family: var(--font-label);
  font-size: .875rem;
  color: var(--c-accent-light);
}
.section_title { color: var(--c-white); }
.section_lede { max-width: 34rem; margin-bottom: 3.5rem; }

/* ============================================================
   01 — TRAPS
   ============================================================ */
.trap_list { border-top: var(--border-w) solid var(--c-gray); }
.trap_row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding: 1.9rem .75rem;
  border-bottom: var(--border-w) solid var(--c-gray);
  cursor: default;
}
.trap_row::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(255,90,31,.10), rgba(255,90,31,0) 60%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.trap_row:hover::before { opacity: 1; }
.trap_index {
  position: relative;
  font-family: var(--font-label);
  font-size: .85rem;
  color: var(--c-accent-light);
  width: 1.8rem;
  flex: none;
}
.trap_plus {
  position: relative;
  width: 1.05rem; height: 1.05rem;
  flex: none;
  color: var(--c-white-50);
  transition: color .45s ease, transform .45s var(--ease-out);
}
.trap_plus svg { width: 100%; height: 100%; }
.trap_row:hover .trap_plus { color: var(--c-accent-light); transform: rotate(90deg); }
.trap_main {
  position: relative;
  display: flex;
  flex-direction: column;
}
/* description unfolds via grid-rows — buttery, no jumpy max-height */
.trap_descwrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .55s var(--ease-out);
}
.trap_desc {
  overflow: hidden;
  min-height: 0;
  font-size: 1rem;
  color: var(--c-white-50);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .4s ease, transform .5s var(--ease-out);
}
.trap_row:hover .trap_descwrap { grid-template-rows: 1fr; }
.trap_row:hover .trap_desc { opacity: 1; transform: none; transition-delay: .08s; }
.trap_id {
  position: relative;
  margin-left: auto;
  font-family: var(--font-label);
  font-size: .85rem;
  text-transform: lowercase;
  color: var(--c-white-30);
  transition: color .3s ease;
}
.trap_row:hover .trap_id { color: var(--c-accent-light); }

/* traps scroll-in: simple drop-down, same register as How It Works */
.trap_list .trap_row[data-reveal] { transform: translateY(-16px); }
.trap_list .trap_row[data-reveal].is-in { transform: none; }

/* ============================================================
   02 — HARNESS (steps)
   ============================================================ */
.steps_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: var(--border-w) solid var(--c-gray);
  border-left: var(--border-w) solid var(--c-gray);
  margin-top: 2.5rem;
}
.step {
  border-right: var(--border-w) solid var(--c-gray);
  border-bottom: var(--border-w) solid var(--c-gray);
  padding: 2rem 2rem 2.5rem;
}
.step_iconbox {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 9.5rem;
  margin-bottom: 1.75rem;
  background:
    radial-gradient(circle at 50% 60%, rgba(255,90,31,.07), transparent 65%);
}
.step_num {
  position: absolute;
  top: .65rem; left: .75rem;
  font-family: var(--font-label);
  font-size: .8rem;
  color: var(--c-accent-light);
}
.corner {
  position: absolute;
  width: .625rem; height: .625rem;
  border-top: var(--border-w) solid var(--c-white-50);
  border-left: var(--border-w) solid var(--c-white-50);
}
.corner.is-tl { top: 1%; left: 1%; }
.corner.is-tr { top: 1%; right: 1%; transform: rotate(90deg); }
.corner.is-br { bottom: 1%; right: 1%; transform: rotate(180deg); }
.step_icon { width: 3.5rem; height: 3.5rem; color: var(--c-white); }
.step_title { margin-bottom: .9rem; }
.step_copy { font-size: 1rem; }

/* small idle animations on step icons */
.icon-trap-dot { animation: trapPulse 2.4s ease-in-out infinite; transform-origin: 28px 36px; }
@keyframes trapPulse { 0%,100% { opacity: .55; transform: scale(.92);} 50% { opacity: 1; transform: scale(1.05);} }
.icon-call { stroke-dasharray: 40; stroke-dashoffset: 40; animation: callIn 2.8s ease infinite; }
.icon-call-2 { animation-delay: .4s; }
.icon-call-3 { animation-delay: .8s; }
@keyframes callIn { 0% { stroke-dashoffset: 40; } 35%,80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.icon-diff-line { animation: diffBlink 1.8s steps(2, start) infinite; }
@keyframes diffBlink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

/* ============================================================
   03 — REPLAY (terminal)
   ============================================================ */
.replay_grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 4rem;
  align-items: start;
}
.replay_heading { margin-bottom: 1.5rem; }
.replay_para { max-width: 30rem; margin-bottom: 2.5rem; }

.terminal {
  position: relative;
  border: var(--border-w) solid var(--c-gray);
  background: #050505;
  overflow: hidden;
}
.terminal_bar {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem 1rem;
  border-bottom: var(--border-w) solid var(--c-gray);
  font-family: var(--font-label);
  font-size: .75rem;
  text-transform: lowercase;
  color: var(--c-white-50);
}
.terminal_dot {
  width: .5rem; height: .5rem;
  background: var(--c-accent-light);
  border-radius: 50%;
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse { 0%,100% { opacity: .4; } 50% { opacity: 1; } }
.terminal_title { color: var(--c-white-80); }
.terminal_tag { margin-left: auto; color: var(--c-white-30); }

.terminal_body {
  padding: 1.4rem 1.25rem 1.6rem;
  font-family: var(--font-label);
  font-size: .85rem;
  line-height: 1.5;
  min-height: 16.5rem;
}
.tl {
  display: flex;
  gap: 1rem;
  padding: .35rem 0;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .45s ease, transform .45s ease;
}
.tl.is-on { opacity: 1; transform: none; }
.tl_key {
  flex: 0 0 4.6rem;
  color: var(--c-white-30);
  text-transform: lowercase;
}
.tl_key.is-cmd { color: var(--c-accent-light); flex-basis: 1rem; }
.tl_val { color: var(--c-white-80); overflow-wrap: anywhere; }
.tl_val em { color: var(--c-accent-light); }
.tl_val.is-call { color: var(--c-white); }
.is-blocked { color: var(--c-accent-light); font-weight: 400; }
.tl.is-json .tl_val { color: var(--c-white-30); }
.tl.is-json {
  margin-top: .8rem;
  padding-top: .9rem;
  border-top: .0625rem dashed rgba(255,255,255,.18);
}

/* verdict row — quiet, typographic */
.tl.is-verdict { margin-top: .35rem; }
.verdict_word {
  display: inline-block;
  font-family: var(--font-label);
  color: var(--c-accent-light);
  letter-spacing: .14em;
  border-bottom: var(--border-w) solid var(--c-accent-light);
  padding-bottom: .1rem;
}

.terminal_foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .6rem 1.25rem;
  border-top: var(--border-w) solid var(--c-gray);
  font-family: var(--font-label);
  font-size: .72rem;
  text-transform: lowercase;
  color: var(--c-white-30);
}
.terminal_replay {
  font-family: var(--font-label);
  font-size: .72rem;
  text-transform: lowercase;
  color: var(--c-white-50);
  transition: color .25s ease;
}
.terminal_replay:hover { color: var(--c-accent-light); }

/* ============================================================
   TICKER — inside the rails, quiet mono strip
   ============================================================ */
.ticker_band {
  border-top: var(--border-w) solid var(--c-gray);
  border-bottom: var(--border-w) solid var(--c-gray);
  padding: 1.05rem 0;
}
.ticker_clip {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.ticker_track {
  display: flex;
  width: max-content;
  animation: tickerScroll 44s linear infinite;
}
.ticker_clip:hover .ticker_track { animation-play-state: paused; }
.ticker_set {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-right: 2.5rem;
}
.tk {
  font-family: var(--font-label);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: -.01em;
  color: var(--c-white-30);
  white-space: nowrap;
}
.tk.is-fail { color: rgba(255, 90, 31, .55); }
.tk_sep {
  font-family: var(--font-label);
  font-size: .8rem;
  color: var(--c-white-30);
  opacity: .5;
}
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   PRE-FOOTER
   ============================================================ */
.section_pad.is-prefooter { padding: 9rem 3rem; }
.prefooter_inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.prefooter_inner .tag { align-self: center; margin-bottom: 1.75rem; }
.prefooter_h {
  font-size: 4.25rem;
  line-height: 4.75rem;
  letter-spacing: -.16rem;
  margin-bottom: 3rem;
}

/* meta strip above the footer monolith */
.footer_metaband { }
.footer_metaband .footer_meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2.5rem;
  padding: 1.2rem 1.5rem;
  border-top: var(--border-w) solid var(--c-gray);
  font-family: var(--font-label);
  text-transform: uppercase;
  font-size: .75rem;
  color: var(--c-white-50);
}
.footer_links { display: flex; gap: 1.75rem; margin-left: auto; }
.footer_link { color: var(--c-white-50); transition: color .25s ease; }
.footer_link:hover { color: var(--c-accent-light); }

/* ============================================================
   FOOTER — quiet monolith: ember gradient washing down from the
   top, one giant wordmark standing tall on the bottom edge.
   No canvas animation — stillness is the statement.
   ============================================================ */
.section_footer { overflow: hidden; }
.footer_container { border-bottom: none; }
.footer_wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 80vh;
  min-height: 30rem;
  max-height: 50rem;
  padding: 2.5rem 1.5rem 0;
  overflow: hidden;
}
.footer_overlay-grad {
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(179,38,14,.5), rgba(179,38,14,0) 38%);
  pointer-events: none;
}
.footer_wordmark {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  /* tall letterforms, baseline bleeding just past the bottom edge */
  margin-bottom: -1.4rem;
}
.footer_wordmark-text {
  font-family: var(--font-label);
  font-size: 230px;
  fill: var(--c-white);
  letter-spacing: .02em;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.section_contact-hero { padding-top: 4.5rem; }
.contact-hero_container {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 52svh;
  padding: 7rem 3rem 4rem;
}
.contact-hero_shade {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to bottom, rgba(1,1,1,.88) 0%, rgba(1,1,1,.3) 45%, rgba(1,1,1,.15) 100%);
  pointer-events: none;
}
.contact-hero_copy {
  position: relative; z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 64rem;
}
.contact-hero_h1 { margin: 0; }

.nav_link.is-current { border-color: var(--c-accent-light); color: var(--c-white); }

.contact_grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 4.5rem;
  align-items: start;
}
.contact_lede { max-width: 30rem; margin-bottom: 3rem; }

/* ---- form ---- */
.cform { display: flex; flex-direction: column; gap: 1.75rem; }
.cform_row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}
.cform_field { display: flex; flex-direction: column; gap: .55rem; }
.cform_label {
  font-family: var(--font-label);
  text-transform: uppercase;
  font-size: .75rem;
  letter-spacing: -.01em;
  color: var(--c-white-50);
}
.cform_input {
  font-family: var(--font-label);
  font-size: .95rem;
  color: var(--c-white);
  background: rgba(255,255,255,.02);
  border: var(--border-w) solid var(--c-gray);
  border-radius: 0;
  padding: .85rem 1rem;
  transition: border-color .3s ease, background-color .3s ease;
  -webkit-appearance: none;
  appearance: none;
}
.cform_input::placeholder { color: var(--c-white-30); }
.cform_input:hover { border-color: rgba(255,255,255,.45); }
.cform_input:focus {
  outline: none;
  border-color: var(--c-accent-light);
  background: rgba(255,90,31,.04);
}
.cform_textarea { resize: vertical; min-height: 8rem; line-height: 1.55; }
.cform_selectwrap { position: relative; display: block; }
.cform_select { width: 100%; text-transform: lowercase; cursor: pointer; }
.cform_chev {
  position: absolute;
  right: 1rem; top: 50%;
  width: .9rem; height: .9rem;
  transform: translateY(-50%);
  color: var(--c-white-50);
  pointer-events: none;
}
.cform_actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: .5rem;
}
.cform_note {
  font-family: var(--font-label);
  font-size: .72rem;
  text-transform: lowercase;
  color: var(--c-white-30);
}
.cform_note.is-sent { color: var(--c-accent-light); }

/* ---- side column ---- */
.contact_side-col {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  border-left: .0625rem dashed var(--c-white-30);
  padding-left: 3rem;
}
.contact_email {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 1.4rem;
  letter-spacing: -.02em;
  color: var(--c-white);
  border-bottom: var(--border-w) solid var(--c-gray);
  padding-bottom: .35rem;
  margin: .5rem 0 .9rem;
  transition: border-color .3s ease, color .3s ease;
}
.contact_email:hover { border-color: var(--c-accent-light); color: var(--c-accent-light); }
.contact_direct-note { font-size: .95rem; }

.contact_next-label {
  display: block;
  font-family: var(--font-label);
  text-transform: uppercase;
  font-size: .75rem;
  color: var(--c-white-50);
  margin-bottom: 1.4rem;
}
.next_list { display: flex; flex-direction: column; }
.next_row {
  display: flex;
  gap: 1.25rem;
  padding: 1.1rem 0;
  border-top: var(--border-w) solid var(--c-gray);
}
.next_row:last-child { border-bottom: var(--border-w) solid var(--c-gray); }
.next_num {
  font-family: var(--font-label);
  font-size: .8rem;
  color: var(--c-accent-light);
  flex: none;
  padding-top: .2rem;
}
.next_copy { color: var(--c-gray-light); font-size: .98rem; line-height: 1.55; }

/* compact footer variant for subpages */
.footer_wrapper.is-compact {
  height: 56vh;
  min-height: 22rem;
  max-height: 36rem;
}

@media (max-width: 991px) {
  .contact_grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .contact_side-col { border-left: none; padding-left: 0; border-top: .0625rem dashed var(--c-white-30); padding-top: 3rem; }
  .contact-hero_container { padding: 6.5rem 2rem 3rem; min-height: 44svh; }
}
@media (max-width: 600px) {
  .cform_row { grid-template-columns: 1fr; }
  .contact-hero_container { padding: 6rem 1.1rem 2.5rem; }
  .contact_side-col { gap: 2.75rem; }
  .contact_email { font-size: 1.15rem; }
}

/* ============================================================
   REVEAL STATES (JS adds .is-in)
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* word-stagger: masked line-slide, reference-style */
[data-stagger-words] .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(110%);
  transition: opacity .75s var(--ease-out), transform .75s var(--ease-out);
}
[data-stagger-words].is-in .w { opacity: 1; transform: none; }
[data-stagger-words] .w-wrap { display: inline-block; overflow: hidden; vertical-align: bottom; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal], [data-stagger-words] .w { opacity: 1 !important; transform: none !important; transition: none !important; }
  [data-boot="nav"] { transform: none; transition: none; }
  .hero_veil { opacity: 0 !important; transition: none; }
  [data-boot="tag"] { opacity: 1 !important; }
  .ticker_track { animation-duration: 120s; }
  .tl { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
  .t-h1 { font-size: clamp(2.1rem, 5.4vw, 2.9rem); line-height: 1.18; letter-spacing: -.08rem; }
  .prefooter_h { font-size: 3.1rem; line-height: 3.5rem; }
  .section_pad { padding: 4.5rem 2rem 5.5rem; }
  .hero_container { padding: 7rem 2rem 4rem; }
  .steps_grid { grid-template-columns: 1fr; }
  .replay_grid { grid-template-columns: 1fr; gap: 3rem; }
  .navbar_links { display: none; }
  .nav_burger { display: flex; }
  .footer_wrapper { height: 70vh; min-height: 25rem; max-height: 40rem; padding: 1.25rem 1.25rem 0; }
}

@media (max-width: 600px) {
  .padding-global { padding-left: 1rem; padding-right: 1rem; }
  .section_pad { padding: 3.5rem 1.1rem 4.5rem; }
  .hero_container { padding: 6.5rem 1.1rem 3rem; }
  .t-h1 { font-size: 2rem; line-height: 2.45rem; letter-spacing: -.06rem; }
  .t-h2 { font-size: 1.55rem; line-height: 2rem; }
  .t-h3 { font-size: 1.35rem; line-height: 1.8rem; }
  .prefooter_h { font-size: 2.2rem; line-height: 2.65rem; letter-spacing: -.08rem; }
  .section_pad.is-prefooter { padding: 5.5rem 1.1rem; }
  .trap_row { gap: .9rem; padding: 1.25rem .25rem; flex-wrap: wrap; }
  .trap_id { flex-basis: 100%; margin-left: 2.5rem; }
  .trap_descwrap { display: none; }
  .terminal_body { font-size: .74rem; }
  .tl_key { flex-basis: 3.9rem; }
  .footer_metaband .footer_meta { padding: 1.1rem .5rem; }
  .footer_links { margin-left: 0; }
  .footer_wrapper { height: 46vh; min-height: 17rem; }
}
