/* =============================================================================
   TC TECH — all-in-one digital operations platform
   -----------------------------------------------------------------------------
   The palette runs one discipline, and everything else follows from it:

     WARM CARRIES STRUCTURE.  COOL CARRIES DATA.

   Copper draws every rule, heading accent, and button — it's the shop that built
   the thing. `--signal` (cool blue) is reserved *exclusively* for figures being
   measured: charts, telemetry values, status lamps. It never appears on a button,
   a border, or a decoration. The moment it does, the page collapses into the same
   dark-mode SaaS look as everything else.

   To check that rule still holds: `grep -n "signal" styles.css` and confirm every
   hit sits on something that is a measurement.
   ========================================================================== */

:root {
  /* ground — indigo-black, never neutral. #000 would kill the copper. */
  --deep:        #0b0e1a;
  --deep-sunk:   #070912;
  --panel:       #141926;
  --panel-hi:    #1d2434;
  --panel-line:  rgba(230, 232, 240, 0.09);

  --copper:      #c87137;
  --copper-hi:   #e89b5c;
  --copper-deep: #7a3f1c;
  --copper-wash: rgba(200, 113, 55, 0.13);

  /* measured data only */
  --signal:      #7fd4f5;
  --signal-wash: rgba(127, 212, 245, 0.12);
  --signal-mute: rgba(127, 212, 245, 0.66);   /* dense fills: uptime strip */
  --signal-edge: rgba(127, 212, 245, 0.10);   /* coverage rings */

  --paper:       #e6e8f0;
  --paper-dim:   #8a93a8;
  --paper-faint: #5d6478;

  --warn:        #d9a227;
  --down:        #c2543f;

  /* Archivo is loaded at width 125. `font-stretch: expanded` is what selects it —
     without that declaration the normal width renders and the whole display
     voice disappears. It's applied on .display, not here. */
  --display: "Archivo", "Arial Black", system-ui, sans-serif;
  --body:    "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:    "Martian Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1280px;
  --gut: clamp(1.15rem, 4vw, 3.25rem);
  --bay-pad: clamp(3.25rem, 6vw, 5.25rem);
  --bar-h: 60px;
  --r: 10px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + 1rem);
}

body {
  margin: 0;
  background: var(--deep);
  color: var(--paper);
  font-family: var(--body);
  font-size: clamp(1rem, 0.97rem + 0.16vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--display);
  font-stretch: expanded;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--copper-hi); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--paper); }

img, svg, canvas { display: block; max-width: 100%; }

::selection { background: var(--copper); color: #fff; }

:focus-visible {
  outline: 2px solid var(--copper-hi);
  outline-offset: 3px;
  border-radius: 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;
}

.skip-link {
  position: absolute; top: -60px; left: var(--gut); z-index: 100;
  background: var(--copper); color: #fff; padding: 0.6rem 1rem;
  border-radius: 0 0 var(--r) var(--r); font-weight: 500; text-decoration: none;
  transition: top 0.15s;
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------------------------------------------------------- shared atoms --- */

.eyebrow {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper-hi);
  margin: 0 0 1.1rem;
}

/* A lamp is a status indicator — a measurement — so it's allowed --signal. */
.lamp {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 3px var(--signal-wash);
  vertical-align: middle;
}
.lamp--lg { width: 10px; height: 10px; box-shadow: 0 0 0 5px var(--signal-wash); }

@media (prefers-reduced-motion: no-preference) {
  .lamp { animation: pulse 2.6s ease-in-out infinite; }
  @keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 3px var(--signal-wash); opacity: 1; }
    50%      { box-shadow: 0 0 0 6px transparent;        opacity: 0.62; }
  }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--body); font-size: 0.9375rem; font-weight: 500;
  padding: 0.8rem 1.4rem; border-radius: var(--r);
  border: 1px solid transparent; cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.18s;
}
.btn--primary {
  background: var(--copper); color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.14) inset, 0 8px 24px -12px var(--copper);
}
.btn--primary:hover { background: var(--copper-hi); color: #14100c; transform: translateY(-1px); }
.btn--primary:active { background: var(--copper-deep); transform: none; }
.btn--ghost { border-color: var(--panel-line); color: var(--paper); }
.btn--ghost:hover { border-color: var(--copper); background: var(--copper-wash); color: var(--paper); }
.btn--sm { padding: 0.5rem 0.95rem; font-size: 0.875rem; }
.btn--block { width: 100%; }

/* ================================================================= header === */

.bar {
  position: sticky; top: 0; z-index: 50;
  height: var(--bar-h);
  background: rgba(11, 14, 26, 0.82);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, background 0.25s;
}
.bar.is-stuck { border-bottom-color: var(--panel-line); background: rgba(11, 14, 26, 0.93); }

.bar__inner {
  max-width: var(--wrap); margin: 0 auto; height: 100%;
  padding: 0 var(--gut);
  display: flex; align-items: center; gap: 1.25rem;
}

.brand { display: flex; align-items: center; gap: 0.55rem; text-decoration: none; flex: none; }
.brand__mark { width: 32px; height: 32px; }
.brand__wire path {
  stroke: var(--copper-deep); stroke-width: 2.3; fill: none;
  stroke-linecap: round;
}
.brand__nodes circle { fill: var(--copper); }
.brand__apex { fill: var(--copper-hi); }
.brand__word {
  font-family: var(--display); font-stretch: expanded; font-weight: 800;
  font-size: 1.0625rem; letter-spacing: 0.01em; color: var(--paper);
}
.brand__word-thin { font-weight: 600; color: var(--paper-dim); margin-left: 0.22em; }

/* The mini-map: the hero topology reduced to its labels. It tracks reading
   position, which is information — so it isn't decoration. */
.minimap { display: flex; gap: 0.15rem; margin-left: auto; }
.minimap__item {
  display: inline-flex; align-items: center; gap: 0.38rem;
  font-family: var(--mono); font-size: 0.625rem; font-weight: 500;
  letter-spacing: 0.1em; color: var(--paper-faint);
  text-decoration: none; padding: 0.42rem 0.5rem; border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.minimap__item:hover { color: var(--paper); background: var(--panel); }
.minimap__lamp {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--paper-faint); transition: background 0.3s, box-shadow 0.3s;
}
.minimap__item.is-active { color: var(--paper); }
.minimap__item.is-active .minimap__lamp {
  background: var(--copper-hi); box-shadow: 0 0 0 3px var(--copper-wash);
}

.bar__cta { flex: none; }

/* =================================================================== hero === */

/* Column, not row. As a row, `.hero__index` became a second column beside the
   copy and pushed the whole document wider than the viewport. */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(3rem, 8vh, 6rem) 0 clamp(3rem, 7vh, 5rem);
  border-bottom: 1px solid var(--panel-line);
  overflow: hidden;
}
.hero__inner, .hero__index { width: 100%; }

/* The topology owns the right half so it can never collide with the headline —
   a veil dark enough to fix an overlap would also hide the signature. */
/* `height: 100%` is load-bearing. A canvas is a replaced element, so with
   `height: auto` it takes its 300×150 intrinsic ratio and ignores `bottom: 0`,
   collapsing to half its width. */
.hero__canvas {
  position: absolute; top: 0; right: 0;
  width: 52%; height: 100%;
  /* feather the inner edge so the diagram sits in the page rather than in a box */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 7%);
          mask-image: linear-gradient(to right, transparent 0%, #000 7%);
}

.hero__veil {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, var(--deep) 0%, transparent 26%);
}

.hero__inner {
  position: relative; z-index: 2;
  max-width: var(--wrap); width: 100%; margin: 0 auto; padding: 0 var(--gut);
}

.hero__inner > * { max-width: 46rem; }

/* Three lines now, so the type comes down a step — at 4.75rem the headline ran
   into the ring, and shrinking the ring instead left the right half looking empty. */
.hero__title {
  font-size: clamp(2.1rem, 4.6vw, 3.9rem);
  max-width: 13ch;
  margin-bottom: 1.4rem;
}
.hero__title em {
  font-style: normal;
  color: var(--copper);
  /* The one gradient on the page, on the one phrase that is the thesis. */
  background: linear-gradient(96deg, var(--copper) 12%, var(--copper-hi) 62%, var(--copper) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__lede {
  max-width: 44ch; color: var(--paper-dim);
  font-size: clamp(1rem, 0.95rem + 0.32vw, 1.1875rem);
  margin-bottom: 2rem;
}
.hero__lede strong { color: var(--paper); font-weight: 500; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero__hint {
  font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--paper-faint);
  margin: 1.9rem 0 0; opacity: 0; transition: opacity 0.6s;
}
.hero__hint.is-on { opacity: 1; }

/* Keyboard and no-JS route to the same systems the canvas nodes link to.
   Visible on small screens where the canvas labels get too tight to hit. */
.hero__index {
  position: relative; z-index: 2;
  list-style: none; margin: 2.5rem auto 0; padding: 0 var(--gut);
  display: none; flex-wrap: wrap; gap: 0.4rem;
  max-width: var(--wrap); box-sizing: border-box;
}
.hero__index a {
  display: block; font-family: var(--mono); font-size: 0.6875rem;
  letter-spacing: 0.06em; color: var(--paper-dim); text-decoration: none;
  padding: 0.45rem 0.7rem; border: 1px solid var(--panel-line); border-radius: 6px;
}
.hero__index a:hover { border-color: var(--copper); color: var(--paper); }

/* ==================================================================== bay === */

.bay {
  padding: var(--bay-pad) 0;
  border-bottom: 1px solid var(--panel-line);
  position: relative;
}
.bay--data { background: linear-gradient(180deg, var(--deep-sunk), var(--deep)); }

.bay__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut);
  display: grid; grid-template-columns: minmax(210px, 260px) 1fr;
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: start;
}
/* Alternate the stage side so seven sections don't read as one repeated template. */
.bay--flip .bay__inner { grid-template-columns: 1fr minmax(210px, 260px); }
.bay--flip .rail { order: 2; }
.bay--flip .bay__body { order: 1; }

.rail { position: sticky; top: calc(var(--bar-h) + 2rem); }

.rail__code {
  display: flex; align-items: center; gap: 0.55rem;
  font-family: var(--mono); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.22em; color: var(--copper-hi);
  margin: 0 0 0.9rem; padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--copper-wash);
}
.rail__name { font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin-bottom: 0.9rem; }
.rail__thesis { color: var(--paper-dim); font-size: 0.9375rem; }
.rail__count {
  font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--paper-faint); margin: 1.2rem 0 0;
}
.rail__count span { color: var(--paper); }

.bay__body { display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); min-width: 0; }

/* ---------------------------------------------------------------- modules --- */

.mods { display: grid; gap: 0.5rem; }

.mod {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--r);
  transition: border-color 0.2s, background 0.2s;
}
.mod:hover { border-color: rgba(200, 113, 55, 0.38); }
.mod[data-open="true"] { background: var(--panel-hi); border-color: var(--copper); }

.mod__head {
  display: grid;
  grid-template-columns: minmax(0, 12rem) minmax(0, 1fr) auto;
  align-items: baseline; gap: 0.4rem 1.25rem;
  width: 100%; padding: 1rem 1.15rem;
  background: none; border: 0; border-radius: var(--r);
  font: inherit; color: inherit; text-align: left; cursor: pointer;
}

.mod__name {
  font-family: var(--display); font-stretch: expanded; font-weight: 700;
  font-size: 0.9375rem; letter-spacing: -0.005em; color: var(--paper);
}
.mod__line { color: var(--paper-dim); font-size: 0.9375rem; }
.mod[data-open="true"] .mod__line { color: var(--paper); }

.mod__chev {
  position: relative; width: 11px; height: 11px; align-self: center; flex: none;
}
.mod__chev::before, .mod__chev::after {
  content: ""; position: absolute; background: var(--copper);
  transition: transform 0.28s, opacity 0.28s;
}
.mod__chev::before { top: 5px; left: 0; width: 11px; height: 1.5px; }
.mod__chev::after  { left: 5px; top: 0; width: 1.5px; height: 11px; }
.mod[data-open="true"] .mod__chev::after { transform: scaleY(0); opacity: 0; }

/* 0fr → 1fr animates the panel to its natural height with no magic numbers.
   `visibility` is what keeps collapsed copy out of the tab order and the
   accessibility tree, so it must stay paired with the row change. */
/* `visibility` is a discrete property: transitioned normally it flips at the
   halfway point, so the copy would pop in late on open and vanish early on
   close. Instead it switches instantly — delayed on close so the panel stays
   readable until the height finishes collapsing. */
.mod__detail {
  display: grid; grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.34s ease, visibility 0s linear 0.34s;
}
.mod__detail > div { overflow: hidden; }
.mod__detail > div > :first-child { padding-top: 0.15rem; }
.mod__detail p {
  margin: 0 1.15rem 0.9rem; max-width: 62ch;
  font-size: 0.9375rem; color: var(--paper-dim);
}
.mod__detail p:last-child { margin-bottom: 1.15rem; }
.mod[data-open="true"] .mod__detail {
  grid-template-rows: 1fr; visibility: visible;
  transition: grid-template-rows 0.34s ease, visibility 0s linear 0s;
}

/* Rack variant: INF reads as equipment, so its modules get a mono nameplate. */
.mods--rack .mod__name { font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.06em; }

/* =================================================================== stage === */

.stage {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--r);
  padding: clamp(1rem, 2vw, 1.5rem);
  min-width: 0;
}
.stage__cap {
  font-family: var(--mono); font-size: 0.5625rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--paper-faint);
  margin: 1rem 0 0; text-align: center;
}

/* ------------------------------------------------- WEB stage: browser mock --- */

.chrome {
  border: 1px solid var(--panel-line); border-radius: 8px;
  overflow: hidden; background: var(--deep-sunk);
}
.chrome__bar {
  display: flex; align-items: center; gap: 5px;
  padding: 0.5rem 0.7rem; background: #1b2231;
  border-bottom: 1px solid var(--panel-line);
}
.chrome__dot { width: 7px; height: 7px; border-radius: 50%; background: #39424f; }
.chrome__url {
  margin-left: 0.6rem; font-family: var(--mono); font-size: 0.5625rem;
  letter-spacing: 0.06em; color: var(--paper-faint);
}
.chrome__view {
  position: relative; height: clamp(230px, 30vw, 300px);
  padding: 0.85rem; overflow: hidden;
}

/* The page underneath: abstracted to blocks so it reads as "a site" without
   pretending to be a specific one. */
/* Flex with proportional growth, so the mock fills the viewport at any height
   instead of leaving a dead band at the bottom. */
.mock { display: flex; flex-direction: column; gap: 0.6rem; height: 100%; }
.mock__nav { display: flex; gap: 0.4rem; flex: none; }
.mock__nav span { height: 5px; border-radius: 3px; background: #232c3d; }
.mock__nav span:nth-child(1) { width: 34px; background: var(--copper-deep); }
.mock__nav span:nth-child(2) { width: 22px; }
.mock__nav span:nth-child(3) { width: 26px; }
.mock__hero {
  flex: 2.1 1 0; min-height: 70px;
  border-radius: 6px; padding: 0.8rem;
  background:
    radial-gradient(80% 120% at 88% 10%, rgba(200,113,55,0.16), transparent 62%),
    linear-gradient(120deg, #1a2233 0%, #232c3d 100%);
  display: grid; align-content: center; gap: 0.45rem;
}
.mock__hero b { display: block; height: 10px; width: 58%; border-radius: 3px; background: #3b4a68; }
.mock__hero i { display: block; height: 6px; width: 38%; border-radius: 3px; background: #2a3448; }

.mock__grid { flex: 1.4 1 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; min-height: 40px; }
.mock__grid span { border-radius: 5px; background: #1a2233; border: 1px solid #232c3d; }

.mock__text { flex: none; display: grid; gap: 0.32rem; }
.mock__text span { height: 5px; border-radius: 3px; background: #202939; }
.mock__text span:nth-child(1) { width: 88%; }
.mock__text span:nth-child(2) { width: 76%; }
.mock__text span:nth-child(3) { width: 54%; }

/* Demo overlays. Hidden by default; `data-demo` on the stage reveals one. */
.dm {
  position: absolute; opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.34s cubic-bezier(0.2, 0.8, 0.3, 1);
  font-size: 0.6875rem; color: var(--paper);
}
.dm__t { font-weight: 500; margin: 0 0 0.3rem; font-size: 0.75rem; }
.dm__p { margin: 0 0 0.5rem; color: var(--paper-dim); }
.dm__meta {
  font-family: var(--mono); font-size: 0.5rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--paper-faint); margin: 0.35rem 0 0;
}
.dm__field {
  display: block; padding: 0.35rem 0.5rem; border-radius: 5px;
  background: var(--deep); border: 1px solid var(--panel-line);
  color: var(--paper-faint); margin-bottom: 0.35rem;
}
.dm__btn {
  display: block; text-align: center; padding: 0.35rem 0.5rem; border-radius: 5px;
  background: var(--copper); color: #fff; font-weight: 500;
}
.dm__tag {
  display: inline-block; font-family: var(--mono); font-size: 0.5rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--copper-hi); margin-bottom: 0.3rem;
}
.dm__chip {
  display: inline-block; padding: 0.28rem 0.55rem; margin: 0 0.25rem 0.25rem 0;
  border: 1px solid var(--panel-line); border-radius: 20px;
  font-size: 0.625rem; color: var(--paper-dim); background: var(--deep);
}

.dm--popup {
  inset: 50% auto auto 50%; width: 62%; max-width: 210px;
  transform: translate(-50%, -46%) scale(0.96);
  padding: 0.85rem; border-radius: 8px;
  background: var(--panel-hi); border: 1px solid var(--copper);
  box-shadow: 0 24px 60px -20px #000;
}
.dm--sub {
  left: 0.85rem; right: 0.85rem; bottom: 0.85rem;
  transform: translateY(14px);
  padding: 0.75rem; border-radius: 8px;
  background: var(--panel-hi); border: 1px solid var(--panel-line);
}
.dm--chat {
  right: 0.85rem; bottom: 0.85rem; width: 68%; max-width: 200px;
  transform: translateY(16px) scale(0.97);
  padding: 0.7rem; border-radius: 10px 10px 4px 10px;
  background: var(--panel-hi); border: 1px solid var(--panel-line);
  box-shadow: 0 20px 50px -20px #000;
}
.dm__chat { margin: 0 0 0.35rem; padding: 0.4rem 0.55rem; border-radius: 8px; line-height: 1.45; }
.dm__chat--them { background: var(--deep); color: var(--paper-dim); }
.dm__chat--us { background: var(--copper-wash); border: 1px solid rgba(200,113,55,0.3); }
.dm__typing { display: flex; gap: 3px; padding-left: 0.3rem; }
.dm__typing i { width: 4px; height: 4px; border-radius: 50%; background: var(--copper); opacity: 0.5; }

.dm--blog {
  left: 0.85rem; top: 0.85rem; width: 66%;
  transform: translateY(-12px);
  padding: 0.75rem; border-radius: 8px;
  background: var(--panel-hi); border: 1px solid var(--panel-line);
}
.dm--reviews {
  left: 50%; top: 50%; width: 70%; max-width: 210px;
  transform: translate(-50%, -44%);
  padding: 0.8rem; border-radius: 8px;
  background: var(--panel-hi); border: 1px solid var(--panel-line);
  box-shadow: 0 20px 50px -20px #000;
}
.stars { display: flex; gap: 2px; margin-bottom: 0.4rem; }
.stars i {
  width: 9px; height: 9px; background: var(--copper-hi);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.dm--social {
  left: 0.85rem; right: 0.85rem; bottom: 0.85rem;
  transform: translateY(12px); text-align: center;
}
.dm--offer {
  left: 0.85rem; right: 0.85rem; top: 0.85rem;
  transform: translateY(-14px);
  padding: 0.5rem 0.7rem; border-radius: 6px; text-align: center;
  background: linear-gradient(96deg, var(--copper-deep), var(--copper));
  color: #fff; font-weight: 500;
}
.dm--offer .dm__tag { color: #ffe7d2; margin: 0 0.4rem 0 0; }
.dm--offer b { margin-left: 0.4rem; font-family: var(--mono); font-size: 0.625rem; }

/* One rule per demo, driven by data-demo on the stage. */
[data-demo="popup"]   .dm--popup   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
[data-demo="sub"]     .dm--sub     { opacity: 1; transform: translateY(0); }
[data-demo="chat"]    .dm--chat    { opacity: 1; transform: translateY(0) scale(1); }
[data-demo="blog"]    .dm--blog    { opacity: 1; transform: translateY(0); }
[data-demo="reviews"] .dm--reviews { opacity: 1; transform: translate(-50%, -50%); }
[data-demo="social"]  .dm--social  { opacity: 1; transform: translateY(0); }
[data-demo="offer"]   .dm--offer   { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: no-preference) {
  [data-demo="chat"] .dm__typing i { animation: blink 1.3s infinite; }
  [data-demo="chat"] .dm__typing i:nth-child(2) { animation-delay: 0.18s; }
  [data-demo="chat"] .dm__typing i:nth-child(3) { animation-delay: 0.36s; }
  @keyframes blink { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }

  [data-demo="reviews"] .stars i { animation: star 0.4s backwards; }
  .stars i:nth-child(1) { animation-delay: 0.05s; }
  .stars i:nth-child(2) { animation-delay: 0.12s; }
  .stars i:nth-child(3) { animation-delay: 0.19s; }
  .stars i:nth-child(4) { animation-delay: 0.26s; }
  .stars i:nth-child(5) { animation-delay: 0.33s; }
  @keyframes star { from { opacity: 0; transform: scale(0.4); } }
}

/* -------------------------------------------------- CRV stage: media wall --- */

/* A fixed 4×2 mosaic with one tall element. Letting each tile carry its own
   aspect-ratio produced ragged rows and large gaps — the grid defines the
   shapes instead, and the art fills whatever it's given. */
.stage--wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, clamp(118px, 11vw, 168px));
  gap: 0.6rem;
}
.tile {
  margin: 0; min-width: 0; min-height: 0;
  display: grid; grid-template-rows: 1fr auto;
}
.tile__art {
  position: relative; height: 100%; min-height: 0;
  border-radius: 8px; overflow: hidden;
  border: 1px solid var(--panel-line);
}
.tile figcaption {
  font-family: var(--mono); font-size: 0.5rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--paper-faint); margin-top: 0.35rem;
}

.tile--banner { grid-area: 1 / 1 / 2 / 3; }
.tile--video  { grid-area: 1 / 3 / 2 / 4; }
.tile--testi  { grid-area: 1 / 4 / 3 / 5; }   /* the one tall frame */
.tile--still  { grid-area: 2 / 1 / 3 / 2; }
.tile--brand  { grid-area: 2 / 2 / 3 / 4; }

.tile__art--mesh {
  background:
    repeating-linear-gradient(90deg, rgba(11,14,26,0.32) 0 1px, transparent 1px 9px),
    radial-gradient(58% 78% at 22% 24%, var(--copper-hi) 0%, transparent 58%),
    radial-gradient(52% 70% at 84% 82%, var(--copper-deep) 0%, transparent 60%),
    linear-gradient(140deg, #2a3047, #12162a);
  display: grid; place-items: center;
}
.tile__word {
  font-family: var(--display); font-stretch: expanded; font-weight: 800;
  font-size: clamp(1.1rem, 2.6vw, 1.9rem); line-height: 0.95;
  text-align: center; color: #fff; letter-spacing: -0.02em;
  text-shadow: 0 2px 18px rgba(0,0,0,0.5);
}
.tile__art--film {
  background: linear-gradient(165deg, #1c2438, #0d1120 70%);
  display: grid; place-items: center;
}
.tile__play {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: 1px solid var(--copper-hi);
  position: relative;
}
.tile__play::after {
  content: ""; position: absolute; left: 11px; top: 9px;
  border-left: 9px solid var(--copper-hi);
  border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}
.tile__tc {
  position: absolute; bottom: 6px; left: 7px;
  font-family: var(--mono); font-size: 0.5rem; color: var(--paper-dim);
}
.tile__art--grain {
  background:
    repeating-linear-gradient(115deg, rgba(255,255,255,0.028) 0 2px, transparent 2px 5px),
    radial-gradient(80% 70% at 65% 25%, #33405a, transparent 65%),
    linear-gradient(180deg, #1a2033, #0e1220);
}
.tile__art--slot {
  background: var(--deep-sunk);
  border-style: dashed; border-color: rgba(230,232,240,0.16);
  display: grid; place-items: center; padding: 0.7rem;
}
.slot {
  font-family: var(--mono); font-size: 0.5rem; line-height: 1.7;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--paper-faint); text-align: center;
}
.tile__art--spec {
  background:
    radial-gradient(70% 100% at 100% 100%, rgba(200,113,55,0.1), transparent 60%),
    var(--deep-sunk);
  display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 0.9rem;
  align-content: center; justify-content: center; padding: 0.9rem;
}
.spec__mark {
  grid-row: span 2; align-self: center;
  font-family: var(--display); font-stretch: expanded; font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.9rem); color: var(--copper);
  letter-spacing: -0.03em; line-height: 1;
}
.spec__row { font-family: var(--mono); font-size: 0.5625rem; color: var(--paper-dim); align-self: end; }
.spec__sw { display: flex; gap: 4px; align-self: start; }
.spec__sw i { width: 17px; height: 10px; border-radius: 2px; }

.stage--wall .stage__cap { grid-column: 1 / -1; }

/* --------------------------------------------------- INF stage: edge map --- */

.stage--edge .edge { display: grid; gap: 0.9rem; }
/* No cool glow behind the globe: that would be `--signal` used as decoration,
   which is the one thing the palette rule forbids. */
.edge__map { width: 100%; height: auto; border-radius: 8px; background: var(--deep-sunk); }
.edge__globe * { fill: none; stroke: #2b3550; stroke-width: 0.6; }
.edge__globe > circle:first-child { stroke: #3d4a68; stroke-width: 0.9; }
/* Reach rings measure coverage radius, so they carry the data colour. */
.edge__reach circle { fill: none; stroke: var(--signal-edge); stroke-width: 0.5; stroke-dasharray: 2 4; }
.edge__hops path { fill: none; stroke: rgba(232,155,92,0.55); stroke-width: 0.8; }
/* Points of presence are a measurement of coverage — signal is correct here. */
.edge__pops circle { fill: var(--signal); }

@media (prefers-reduced-motion: no-preference) {
  .edge__pops circle { animation: ping 3.4s ease-out infinite; transform-origin: center; }
  .edge__pops circle:nth-child(2) { animation-delay: 0.4s; }
  .edge__pops circle:nth-child(3) { animation-delay: 0.8s; }
  .edge__pops circle:nth-child(4) { animation-delay: 1.2s; }
  .edge__pops circle:nth-child(5) { animation-delay: 1.6s; }
  .edge__pops circle:nth-child(6) { animation-delay: 2.0s; }
  .edge__pops circle:nth-child(7) { animation-delay: 2.4s; }
  .edge__pops circle:nth-child(8) { animation-delay: 2.8s; }
  @keyframes ping {
    0%   { opacity: 0.35; }
    12%  { opacity: 1; }
    100% { opacity: 0.35; }
  }
}

.edge__read { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.read {
  margin: 0; padding: 0.6rem 0.7rem; border-radius: 6px;
  background: var(--deep-sunk); border: 1px solid var(--panel-line);
  display: grid; gap: 0.25rem;
}
.read__k {
  font-family: var(--mono); font-size: 0.5rem; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--paper-faint);
}
.read__v { font-family: var(--mono); font-size: 0.9375rem; color: var(--signal); }
.read__v i { font-style: normal; font-size: 0.5625rem; color: var(--paper-dim); margin-left: 0.15em; }

/* -------------------------------------------------- TEL stage: dashboard --- */

.stage--dash { display: grid; gap: 0.9rem; }
.dash__flag {
  font-family: var(--mono); font-size: 0.5rem; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--warn);
  margin: 0; padding: 0.4rem 0.6rem; border-radius: 5px;
  background: rgba(217, 162, 39, 0.09);
  border: 1px solid rgba(217, 162, 39, 0.28);
  justify-self: start;
}

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.kpi {
  padding: 0.7rem 0.75rem; border-radius: 6px;
  background: var(--deep-sunk); border: 1px solid var(--panel-line);
  display: grid; gap: 0.2rem; min-width: 0;
}
.kpi__k {
  font-family: var(--mono); font-size: 0.5rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--paper-faint);
}
.kpi__v {
  font-family: var(--mono); font-size: clamp(0.9375rem, 1.5vw, 1.125rem);
  color: var(--signal); line-height: 1.1;
}
.kpi__v i { font-style: normal; font-size: 0.625rem; color: var(--paper-dim); }
.kpi__d { font-family: var(--mono); font-size: 0.5rem; color: var(--paper-faint); }
.kpi__d--up { color: #6fbf8a; }
.kpi__d--dn { color: #6fbf8a; }

.chart { margin: 0; }
.chart figcaption {
  font-family: var(--mono); font-size: 0.5rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--paper-faint); margin-bottom: 0.45rem;
}
.chart__svg { width: 100%; height: auto; }
.chart__grid path { stroke: rgba(230,232,240,0.06); stroke-width: 0.6; fill: none; }
.chart__area { fill: var(--signal-wash); }
.chart__line { fill: none; stroke: var(--signal); stroke-width: 1.6; stroke-linejoin: round; }
.chart__dot { fill: var(--signal); }

.strip { display: flex; gap: 2px; }
.strip i { flex: 1; height: 22px; border-radius: 2px; background: var(--signal-mute); }
.strip i.is-warn { background: var(--warn); }
.strip i.is-down { background: var(--down); }

/* ----------------------------------------------------- MKT stage: funnel --- */

.stage--funnel { display: grid; gap: 1.25rem; }
.funnel { display: grid; gap: 0.3rem; }
.fstep {
  width: var(--w); min-width: 11rem; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.8rem;
  padding: 0.5rem 0.8rem; border-radius: 5px;
  background: linear-gradient(90deg, rgba(122,63,28,0.75), rgba(200,113,55,0.3));
  border: 1px solid rgba(200,113,55,0.55);
}
.fstep__k { font-size: 0.8125rem; color: var(--paper); white-space: nowrap; }
.fstep__v { font-family: var(--mono); font-size: 0.75rem; color: var(--signal); }

@media (prefers-reduced-motion: no-preference) {
  .fstep { animation: grow 0.85s cubic-bezier(0.2, 0.8, 0.3, 1) backwards; }
  .fstep:nth-child(2) { animation-delay: 0.07s; }
  .fstep:nth-child(3) { animation-delay: 0.14s; }
  .fstep:nth-child(4) { animation-delay: 0.21s; }
  .fstep:nth-child(5) { animation-delay: 0.28s; }
  @keyframes grow { from { transform: scaleX(0.72); opacity: 0; } }
}

.flow { display: grid; gap: 0.3rem; justify-items: center; }
.flow__cap {
  font-family: var(--mono); font-size: 0.5rem; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--paper-faint); margin: 0 0 0.3rem;
}
.flow__row { display: flex; gap: 0.4rem; position: relative; padding-bottom: 0.85rem; }
.flow__row::after {
  content: ""; position: absolute; left: 50%; bottom: 0.2rem;
  width: 1px; height: 0.5rem; background: var(--copper-deep);
}
.flow__row:last-child { padding-bottom: 0; }
.flow__row:last-child::after { display: none; }
.node {
  font-family: var(--mono); font-size: 0.5625rem; letter-spacing: 0.04em;
  padding: 0.35rem 0.6rem; border-radius: 4px;
  background: var(--deep-sunk); border: 1px solid var(--panel-line);
  color: var(--paper-dim); white-space: nowrap;
}
.node--trig { border-color: var(--copper); color: var(--paper); }
.node--wait { border-style: dashed; }
.node--stop { border-color: rgba(194,84,63,0.5); color: #d98b7a; }

/* ------------------------------------------------------- COM stage: plan --- */

.stage--plan { display: grid; gap: 0.9rem; }
.plan__cap, .lang__cap {
  font-family: var(--mono); font-size: 0.5rem; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--paper-faint); margin: 0 0 0.5rem;
}
/* The spine and the dots share one offset (--spine) measured from the track's
   left edge, so they stay concentric instead of drifting apart. */
.plan__track {
  --spine: 0.375rem;
  list-style: none; margin: 0; padding: 0 0 0 1.5rem;
  position: relative; display: grid; gap: 0.4rem;
}
.plan__track::before {
  content: ""; position: absolute; left: var(--spine); top: 0.8rem; bottom: 0.8rem;
  width: 1px; background: linear-gradient(180deg, var(--copper), var(--copper-deep));
}
.pl {
  position: relative; display: grid; grid-template-columns: 2.1rem 1fr;
  gap: 0.6rem; align-items: baseline;
  padding: 0.4rem 0.7rem; border-radius: 5px; background: var(--deep-sunk);
}
.pl::before {
  content: ""; position: absolute;
  left: calc(-1.5rem + var(--spine)); top: 0.72rem;
  transform: translateX(-50%);
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--copper); box-shadow: 0 0 0 2.5px var(--panel);
}
.pl--soft::before { background: var(--copper-deep); }
.pl__wk { font-family: var(--mono); font-size: 0.5625rem; color: var(--copper-hi); }
.pl__t { font-size: 0.8125rem; color: var(--paper-dim); }
.pl:not(.pl--soft) .pl__t { color: var(--paper); }

.lang {
  padding: 0.85rem; border-radius: 6px;
  background: var(--deep-sunk); border: 1px solid var(--panel-line);
}
.lang__line {
  font-family: var(--display); font-stretch: expanded; font-weight: 700;
  font-size: clamp(0.9375rem, 1.9vw, 1.25rem); color: var(--paper);
  margin: 0 0 0.35rem; min-height: 1.2em;
  transition: opacity 0.3s;
}
.lang__line.is-out { opacity: 0; }
.lang__meta {
  font-family: var(--mono); font-size: 0.5rem; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--copper-hi); margin: 0;
}

.pres {
  display: grid; grid-template-columns: auto 1fr; gap: 0.15rem 0.7rem;
  align-items: center;
  padding: 0.7rem 0.85rem; border-radius: 6px;
  background: var(--deep-sunk); border: 1px solid var(--panel-line);
}
.pres .lamp { grid-row: span 2; }
.pres__t { margin: 0; font-weight: 500; font-size: 0.875rem; align-self: end; }
.pres__m {
  margin: 0; font-family: var(--mono); font-size: 0.5rem; letter-spacing: 0.08em;
  color: var(--paper-faint); align-self: start;
}

/* ------------------------------------------------------ SUP stage: tiers --- */

.stage--tier { display: grid; gap: 1.1rem; }
.talk__cap {
  font-family: var(--mono); font-size: 0.5rem; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--paper-faint); margin: 0 0 0.5rem;
}
.talk__them, .talk__us {
  margin: 0 0 0.4rem; padding: 0.55rem 0.7rem; border-radius: 8px;
  font-size: 0.8125rem; line-height: 1.55; max-width: 92%;
}
.talk__them { background: var(--deep-sunk); color: var(--paper-dim); border-radius: 8px 8px 8px 2px; }
.talk__us {
  margin-left: auto; background: var(--panel-hi);
  border: 1px solid var(--panel-line); border-radius: 8px 8px 2px 8px;
}
.talk__us--patter { border-color: var(--copper); background: var(--copper-wash); }
.talk__lbl {
  display: block; font-family: var(--mono); font-size: 0.4375rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--copper-hi); margin-bottom: 0.2rem;
}

/* The ladder ascends and warms toward VIP — the gradient encodes the tier, so
   it isn't decoration. */
.ladder { display: grid; gap: 0.3rem; align-content: end; }
.rung {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.7rem;
  padding: 0.5rem 0.75rem; border-radius: 5px;
  border: 1px solid var(--panel-line); background: var(--deep-sunk);
}
.rung__k { font-family: var(--display); font-stretch: expanded; font-weight: 700; font-size: 0.8125rem; }
.rung__v { font-family: var(--mono); font-size: 0.5625rem; color: var(--paper-dim); }
.rung--1 { margin-right: 24%; }
.rung--2 { margin-right: 16%; border-color: rgba(200,113,55,0.25); }
.rung--3 { margin-right: 8%; border-color: rgba(200,113,55,0.45); background: rgba(200,113,55,0.07); }
.rung--4 {
  border-color: var(--copper-hi);
  background: linear-gradient(96deg, rgba(200,113,55,0.24), rgba(232,155,92,0.1));
}
.rung--4 .rung__k { color: var(--copper-hi); }

/* ================================================================ portfolio ===
   Real work, so this section is the one place on the page with photography. It
   gets no rail and no system code — those belong to the seven systems only. */

.work {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  border-bottom: 1px solid var(--panel-line);
  background: linear-gradient(180deg, var(--deep), var(--deep-sunk));
}
.work__inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }

.work__head { max-width: 62ch; margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.work__title { font-size: clamp(1.9rem, 4.2vw, 3rem); margin-bottom: 1.1rem; }
.work__lede { color: var(--paper-dim); }

/* The parent shop, given the room a lead item deserves. */
.lead {
  display: grid; grid-template-columns: 1.15fr 1fr; align-items: stretch;
  gap: 0; margin-bottom: 0.6rem;
  background: var(--panel); border: 1px solid var(--panel-line);
  border-radius: var(--r); overflow: hidden; text-decoration: none;
  transition: border-color 0.2s;
}
.lead:hover { border-color: var(--copper); }
.lead img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.lead__body { padding: clamp(1.1rem, 2.4vw, 1.9rem); align-self: center; }
.lead__k {
  font-family: var(--mono); font-size: 0.5625rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--copper-hi); margin: 0 0 0.5rem;
}
.lead__n {
  font-family: var(--display); font-stretch: expanded; font-weight: 800;
  font-size: clamp(1.15rem, 2.2vw, 1.6rem); color: var(--paper);
  letter-spacing: -0.015em; margin: 0 0 0.6rem;
}
.lead__d { color: var(--paper-dim); font-size: 0.9375rem; margin-bottom: 0.9rem; }
.lead__go {
  font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.08em;
  color: var(--copper-hi);
}
.lead__go::after { content: " \2192"; }

.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem;
}
.card { min-width: 0; }
.card a {
  display: grid; gap: 0.15rem; height: 100%;
  background: var(--panel); border: 1px solid var(--panel-line);
  border-radius: var(--r); overflow: hidden;
  text-decoration: none; padding-bottom: 0.9rem;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.card a:hover {
  border-color: var(--copper); background: var(--panel-hi);
  transform: translateY(-2px);
}
.card img {
  width: 100%; height: auto; aspect-ratio: 16 / 10;
  object-fit: cover; object-position: top center;
  border-bottom: 1px solid var(--panel-line);
  margin-bottom: 0.75rem;
  background: var(--deep-sunk);
}
.card__name {
  font-family: var(--display); font-stretch: expanded; font-weight: 700;
  font-size: 0.875rem; color: var(--paper);
  padding: 0 0.9rem; letter-spacing: -0.005em;
}
.card__kind {
  font-family: var(--mono); font-size: 0.5625rem; line-height: 1.6;
  letter-spacing: 0.05em; color: var(--paper-faint); padding: 0 0.9rem;
}

.work__more { margin: 1.5rem 0 0; text-align: center; }

/* =================================================================== demo === */

.demo {
  padding: clamp(4rem, 9vw, 7.5rem) 0;
  background:
    radial-gradient(90% 120% at 12% 0%, rgba(200,113,55,0.11), transparent 58%),
    var(--deep-sunk);
}
.demo__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut);
  display: grid; grid-template-columns: 1fr minmax(0, 460px);
  gap: clamp(2rem, 5vw, 5rem); align-items: start;
}
.demo__title { font-size: clamp(1.9rem, 4.4vw, 3.1rem); margin-bottom: 1.2rem; }
.demo__lede { color: var(--paper-dim); max-width: 46ch; margin-bottom: 1.8rem; }

.demo__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.demo__facts li {
  display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start;
  font-size: 0.9375rem; color: var(--paper-dim);
}
/* Numbered because this genuinely is a sequence — the three steps of the call,
   in order. Nothing else on the page is numbered. */
.demo__facts span {
  font-family: var(--mono); font-size: 0.625rem; line-height: 1.55rem;
  width: 1.55rem; height: 1.55rem; text-align: center; border-radius: 50%;
  border: 1px solid var(--copper); color: var(--copper-hi); flex: none;
}

.form {
  background: var(--panel); border: 1px solid var(--panel-line);
  border-radius: 14px; padding: clamp(1.2rem, 2.4vw, 1.9rem);
  display: grid; gap: 1rem;
}
.field { display: grid; gap: 0.35rem; min-width: 0; }
/* Direct children only. `.field label` also matched the checkbox labels inside
   `.checks`, which turned the choices into mono uppercase codes by accident. */
.field > label, .field > legend {
  font-family: var(--mono); font-size: 0.5625rem; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--paper-dim); padding: 0;
}
.opt { text-transform: none; letter-spacing: 0.04em; color: var(--paper-faint); }

.field input, .field textarea {
  width: 100%; font: inherit; font-size: 0.9375rem; color: var(--paper);
  background: var(--deep-sunk); border: 1px solid var(--panel-line);
  border-radius: 7px; padding: 0.65rem 0.8rem;
  transition: border-color 0.18s, background 0.18s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--paper-faint); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--copper); background: var(--deep);
}
.field textarea { resize: vertical; min-height: 4.5rem; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--down); }

.field--set { border: 0; margin: 0; padding: 0; }
.field--set legend { margin-bottom: 0.5rem; }
.checks { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.check { cursor: pointer; }
.check input {
  position: absolute; opacity: 0; width: 1px; height: 1px;
}
.check span {
  display: block; padding: 0.4rem 0.75rem; border-radius: 20px;
  border: 1px solid var(--panel-line); background: var(--deep-sunk);
  font-family: var(--body); font-size: 0.8125rem; letter-spacing: 0;
  text-transform: none; color: var(--paper-dim);
  transition: border-color 0.16s, background 0.16s, color 0.16s;
}
.check:hover span { border-color: var(--copper-deep); color: var(--paper); }
.check input:checked + span {
  border-color: var(--copper); background: var(--copper-wash); color: var(--paper);
}
.check input:focus-visible + span { outline: 2px solid var(--copper-hi); outline-offset: 2px; }

.field__err {
  margin: 0; font-size: 0.75rem; color: #e0836f; min-height: 0;
}
.field__err:empty { display: none; }

.form__note { margin: 0; font-size: 0.75rem; color: var(--paper-faint); text-align: center; }
.form__done {
  margin: 0; padding: 0.85rem 1rem; border-radius: 8px;
  background: var(--copper-wash); border: 1px solid var(--copper);
  font-size: 0.9375rem; color: var(--paper);
}
.form__done:empty { display: none; }

/* ================================================================== footer === */

.foot { border-top: 1px solid var(--panel-line); padding: clamp(2.5rem, 5vw, 4rem) 0 2rem; }
.foot__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut);
  display: grid; grid-template-columns: 1fr auto auto; gap: 2rem;
  align-items: start;
}
.foot__brand { display: grid; gap: 0.6rem; }
.foot__brand .brand__mark { width: 34px; height: 34px; }
.foot__brand p {
  margin: 0; font-family: var(--display); font-stretch: expanded; font-weight: 700;
  font-size: 0.9375rem; color: var(--paper-dim);
}
.foot__nav { display: grid; gap: 0.3rem; }
.foot__nav a { font-size: 0.8125rem; color: var(--paper-dim); text-decoration: none; }
.foot__nav a:hover { color: var(--copper-hi); }
.foot__contact { display: grid; gap: 0.3rem; justify-items: start; }
.foot__contact a { font-size: 0.8125rem; color: var(--paper); text-decoration: none; }
.foot__contact a:hover { color: var(--copper-hi); }
.foot__ph {
  margin: 0.2rem 0 0; font-family: var(--mono); font-size: 0.5rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--warn);
}
.foot__legal {
  grid-column: 1 / -1; margin: 1rem 0 0; padding-top: 1.5rem;
  border-top: 1px solid var(--panel-line);
  font-size: 0.75rem; color: var(--paper-faint);
}

/* ============================================================== responsive === */

@media (max-width: 1080px) {
  .minimap { display: none; }
  .bar__cta { margin-left: auto; }
  .grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .bay__inner,
  .bay--flip .bay__inner { grid-template-columns: 1fr; }
  .bay--flip .rail, .bay--flip .bay__body { order: initial; }
  .rail { position: static; }
  .rail__name { font-size: clamp(1.5rem, 6vw, 2rem); }
  .rail__thesis { max-width: 52ch; }

  .demo__inner { grid-template-columns: 1fr; }

  .lead { grid-template-columns: 1fr; }
  .lead img { aspect-ratio: 16 / 9; height: auto; }

  .foot__inner { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  /* No room for a side-by-side split: the topology goes full-bleed and dims,
     and the hero index below takes over as the way into the systems. */
  .hero__canvas {
    left: 0; width: 100%; height: 100%; opacity: 0.4;
    -webkit-mask-image: none; mask-image: none;
  }
  .hero__veil {
    background:
      radial-gradient(125% 85% at 50% 42%, var(--deep) 0%, rgba(11,14,26,0.88) 44%, rgba(11,14,26,0.3) 78%),
      linear-gradient(to top, var(--deep) 0%, transparent 30%);
  }
  .hero__index { display: flex; }
  .hero__hint { display: none; }
}

@media (max-width: 720px) {
  .hero { min-height: auto; }

  .mod__head { grid-template-columns: 1fr auto; }
  .mod__name { grid-column: 1; }
  .mod__line { grid-column: 1; font-size: 0.875rem; }
  .mod__chev { grid-column: 2; grid-row: 1 / span 2; }

  /* Every tile is re-placed, not just re-spanned: the desktop `grid-area`
     values reference a 4-column grid and would overlap in a 2-column one. */
  .stage--wall {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, clamp(96px, 26vw, 132px));
  }
  .tile--banner { grid-area: 1 / 1 / 2 / 3; }
  .tile--video  { grid-area: 2 / 1 / 3 / 2; }
  .tile--testi  { grid-area: 2 / 2 / 4 / 3; }
  .tile--still  { grid-area: 3 / 1 / 4 / 2; }
  .tile--brand  { grid-area: 4 / 1 / 5 / 3; }
  .stage--wall .stage__cap { grid-area: 5 / 1 / 6 / 3; }

  .kpis { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .edge__read { grid-template-columns: 1fr; }
  .rung--1, .rung--2, .rung--3 { margin-right: 0; }
  .talk__them, .talk__us { max-width: 100%; }
}

@media (max-width: 480px) {
  .foot__inner { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 100%; }
  .chrome__view { height: 250px; }
  .grid { grid-template-columns: 1fr; }
  .work__more .btn { width: 100%; }
}

/* ========================================================== reduced motion === */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  /* The drill-in still has to open — it just opens instantly. */
  .mod[data-open="true"] .mod__detail { grid-template-rows: 1fr; visibility: visible; }
}
