/* ============================================================
   AISMITH — THE SETTING-OUT SYSTEM
   Visual concept: the site is a structural setting-out grid.
   Fragmented operational inputs are shown being reorganised
   into structured outputs — transformation as the recurring
   visual principle. Neo-grotesk led (Archivo, width axis),
   cool concrete field, graphite structure, one volt accent
   used as a surveyor's mark. Mono lives ONLY inside system
   panels (interfaces, data), never as page decoration.
   ============================================================ */

:root {
  --bg: #edefe9;          /* cool concrete field */
  --srf: #ffffff;         /* white unit */
  --ink: #101315;         /* graphite structure */
  --grey: #575e60;        /* annotation grey */
  --grey-2: #9aa19d;      /* faint grey */
  --ln: rgba(16, 19, 21, 0.16);   /* light setting-out line */
  --ln-2: #101315;        /* structural line */
  --volt: #cdfb2e;        /* surveyor's mark */
  --volt-deep: #a8d40e;

  --sys: #101315;         /* system panel */
  --sys-2: #181d20;
  --sys-ln: #2b3236;
  --sys-txt: #e7eae2;
  --sys-dim: #8a9195;

  --grotesk: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Menlo, monospace;

  --max: 1320px;
  --pad: clamp(18px, 4vw, 56px);
  --mod: 88px; /* grid module */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--grotesk);
  font-size: 16.5px;
  line-height: 1.55;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; }

.frame {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---------- typographic voices ---------- */
.disp {
  font-stretch: 125%;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  line-height: 0.94;
}
h1.disp { font-size: clamp(32px, 7.4vw, 104px); }
h2.disp { font-size: clamp(24px, 4.2vw, 58px); }
@media (max-width: 380px) {
  .disp { overflow-wrap: anywhere; }
}
h3 { font-stretch: 110%; font-weight: 700; font-size: clamp(19px, 2vw, 24px); line-height: 1.15; }

.lbl {
  font-stretch: 78%;
  font-weight: 650;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
}
.lbl.volt { color: var(--volt-deep); }
.lbl.on-ink { color: var(--sys-dim); }

.sub {
  font-size: clamp(17px, 1.55vw, 20px);
  line-height: 1.55;
  color: var(--grey);
  max-width: 60ch;
}
.sub strong, .body strong { color: var(--ink); font-weight: 650; }

mark {
  background: var(--volt);
  color: var(--ink);
  padding: 0.02em 0.14em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.small { font-size: 13.5px; color: var(--grey); line-height: 1.55; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-stretch: 88%;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--srf);
  background: var(--ink);
  border: 2px solid var(--ink);
  padding: 14px 24px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn:hover { background: var(--volt); color: var(--ink); }
.btn.volt { background: var(--volt); color: var(--ink); }
.btn.volt:hover { background: var(--ink); color: var(--volt); }
.btn.line { background: transparent; color: var(--ink); }
.btn.line:hover { background: var(--ink); color: var(--srf); }
.btn .ar { font-stretch: 100%; }

/* ---------- header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bg);
  border-bottom: 2px solid var(--ink);
}
header.site .frame {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  height: 62px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand .mark {
  width: 26px; height: 26px;
  background: var(--ink);
  position: relative;
  flex: none;
}
.brand .mark::after {
  content: "";
  position: absolute;
  right: 3px; bottom: 3px;
  width: 9px; height: 9px;
  background: var(--volt);
}
.brand .word {
  font-stretch: 125%;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.04em;
}
.brand .sup {
  font-stretch: 78%;
  font-weight: 600;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--grey);
  display: block;
  margin-top: 1px;
}
nav.main { display: flex; align-items: stretch; }
nav.main a {
  display: flex;
  align-items: center;
  padding: 0 clamp(12px, 1.6vw, 22px);
  font-stretch: 88%;
  font-weight: 650;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--grey);
  border-left: 1px solid var(--ln);
  transition: color 0.15s, background 0.15s;
}
nav.main a:hover { color: var(--ink); }
nav.main a.active { color: var(--ink); box-shadow: inset 0 -3px 0 var(--volt); }
nav.main a.go {
  background: var(--ink);
  color: var(--srf);
  border-left: 2px solid var(--ink);
}
nav.main a.go:hover { background: var(--volt); color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  border-left: 1px solid var(--ln);
  padding: 0 18px;
  font-stretch: 88%;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--ink);
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  nav.main {
    display: none;
    position: fixed;
    inset: 62px 0 0 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    z-index: 55;
  }
  nav.main.open { display: flex; }
  nav.main a {
    border-left: none;
    border-bottom: 1px solid var(--ln);
    padding: 22px var(--pad);
    font-size: 20px;
    font-stretch: 110%;
    font-weight: 750;
    color: var(--ink);
  }
  nav.main a.active { box-shadow: inset 4px 0 0 var(--volt); }
  nav.main a.go { margin-top: auto; justify-content: center; padding: 26px; }
}

/* ---------- setting-out axis strip (desktop) ---------- */
.axis {
  display: none;
  border-bottom: 1px solid var(--ln);
}
@media (min-width: 901px) {
  .axis { display: block; }
  .axis .frame {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
  }
  .axis span {
    font-stretch: 78%;
    font-weight: 600;
    font-size: 10px;
    letter-spacing: 0.18em;
    color: var(--grey-2);
    padding: 6px 0 6px 10px;
    border-left: 1px solid var(--ln);
  }
}

/* ---------- zones (sections) ---------- */
.zone {
  position: relative;
  padding: clamp(64px, 8.5vw, 128px) 0;
  border-top: 2px solid var(--ink);
}
.zone.first { border-top: none; }
.zone.grid-bg {
  background-image:
    repeating-linear-gradient(to right, var(--ln) 0 1px, transparent 1px var(--mod)),
    repeating-linear-gradient(to bottom, var(--ln) 0 1px, transparent 1px var(--mod));
  background-position: center top;
}
/* registration crosses at zone corners */
@media (min-width: 901px) {
  .zone::before, .zone::after {
    content: "+";
    position: absolute;
    top: -0.72em;
    font-weight: 400;
    font-size: 18px;
    color: var(--ink);
    background: transparent;
    line-height: 1;
    z-index: 2;
  }
  .zone::before { left: 10px; }
  .zone::after { right: 10px; }
  .zone.first::before, .zone.first::after { content: none; }
}

/* coordinate kicker */
.coord {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(24px, 3.4vw, 44px);
}
.coord .sq { width: 10px; height: 10px; background: var(--volt); border: 1.5px solid var(--ink); flex: none; }
.coord .ref {
  font-stretch: 78%;
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.coord .ttl {
  font-stretch: 78%;
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey);
}
.coord::after { content: ""; flex: 1; border-top: 1px solid var(--ln); }

/* ---------- hero ---------- */
.hero { padding: clamp(56px, 7vw, 104px) 0 clamp(48px, 6vw, 88px); }
.hero .meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin-bottom: clamp(26px, 3.6vw, 44px);
}
.hero h1 { max-width: 14ch; }
.hero .sub { margin-top: clamp(22px, 2.8vw, 34px); }
.hero .cta-row {
  margin-top: clamp(26px, 3.4vw, 42px);
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.hero .cta-note { font-size: 13px; color: var(--grey); max-width: 34ch; line-height: 1.45; }

/* ---------- transformation stage ---------- */
.stage {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  border: 2px solid var(--ink);
  background: var(--srf);
}
@media (max-width: 900px) { .stage { grid-template-columns: 1fr; } }
.stage-head {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 2px solid var(--ink);
}
.stage-in {
  padding: clamp(20px, 2.6vw, 34px);
  border-right: 2px solid var(--ink);
  background:
    repeating-linear-gradient(to right, var(--ln) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(to bottom, var(--ln) 0 1px, transparent 1px 44px);
}
@media (max-width: 900px) { .stage-in { border-right: none; border-bottom: 2px solid var(--ink); } }
.stage-in .lbl, .stage-out .lbl { display: block; margin-bottom: 16px; }

.frag-field {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-content: flex-start;
}
.frag {
  background: var(--srf);
  border: 1.5px solid var(--ink);
  box-shadow: 4px 4px 0 rgba(16, 19, 21, 0.18);
  padding: 10px 12px;
  width: calc(50% - 7px);
  min-width: 150px;
  transition: transform 0.4s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.3s, border-color 0.3s;
}
.frag:nth-child(odd) { transform: rotate(-1.6deg); }
.frag:nth-child(even) { transform: rotate(1.3deg) translateY(4px); }
.frag:nth-child(3n) { transform: rotate(2.1deg); }
.frag.active {
  transform: rotate(0) translateY(0);
  border-color: var(--ink);
  box-shadow: 4px 4px 0 var(--volt);
  z-index: 2;
}
.frag .ftag {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-stretch: 78%;
  font-weight: 650;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 7px;
}
.frag .fbody { font-size: 12.5px; line-height: 1.4; color: var(--ink); }
.frag .fbody.dim { color: var(--grey); }
/* waveform */
.wave { display: flex; align-items: flex-end; gap: 2px; height: 22px; margin-top: 2px; }
.wave i { width: 3px; background: var(--ink); display: block; }
/* mini sheet */
.msheet { border: 1px solid var(--ln); margin-top: 2px; }
.msheet div {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  font-size: 9px;
  font-stretch: 88%;
  color: var(--grey);
  border-bottom: 1px solid var(--ln);
}
.msheet div:last-child { border-bottom: none; }
.msheet span { padding: 2px 5px; border-right: 1px solid var(--ln); overflow: hidden; white-space: nowrap; }
.msheet span:last-child { border-right: none; }
/* photo chip */
.fphoto {
  height: 44px;
  margin-top: 2px;
  background:
    linear-gradient(160deg, #3c4348 0%, #22282c 55%, #14181b 100%);
  position: relative;
}
.fphoto::before {
  content: "";
  position: absolute;
  left: 12%; bottom: 0;
  width: 3px; height: 78%;
  background: var(--volt);
  opacity: 0.85;
}
.fphoto::after {
  content: "";
  position: absolute;
  left: 6%; top: 26%;
  width: 46%; height: 3px;
  background: var(--volt);
  opacity: 0.85;
}

/* system output panel */
.stage-out { background: var(--sys); color: var(--sys-txt); padding: clamp(20px, 2.6vw, 34px); }
.sys-rows { display: flex; flex-direction: column; }
.sys-row {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: 12px;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.5;
  padding: 10px 0;
  border-bottom: 1px solid var(--sys-ln);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.2, 0, 0, 1);
}
.sys-row.on { opacity: 1; transform: none; }
.sys-row .gl { color: var(--volt); }
.sys-row .st { color: var(--sys-dim); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; }
.sys-foot {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sys-dim);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--volt);
  border-radius: 50%;
  margin-right: 7px;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ---------- system panels (generic dark interface) ---------- */
.sys-panel {
  background: var(--sys);
  color: var(--sys-txt);
  border: 2px solid var(--ink);
}
.sys-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--sys-ln);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sys-dim);
}
.sys-bar .volt-t { color: var(--volt); }
.sys-body { padding: clamp(16px, 2.2vw, 26px); }

/* report table inside system panel */
.report { font-family: var(--mono); font-size: 12.5px; }
.report .rhead {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--sys-txt);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
}
.report .rrow {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 0.9fr 0.6fr;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--sys-ln);
  color: var(--sys-dim);
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.3s, transform 0.3s cubic-bezier(0.2, 0, 0, 1);
}
.report .rrow.on { opacity: 1; transform: none; }
.report .rrow .num { text-align: right; color: var(--sys-txt); }
.report .rrow .flag { color: var(--volt); }
.report .rfoot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  color: var(--sys-txt);
  opacity: 0;
  transition: opacity 0.35s 0.1s;
}
.report .rfoot.on { opacity: 1; }
.report .rfoot .volt-t { color: var(--volt); }

/* chat inside system panel */
.chat { display: flex; flex-direction: column; gap: 10px; font-family: var(--mono); }
.msg {
  max-width: 92%;
  padding: 10px 13px;
  font-size: 12.5px;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s cubic-bezier(0.2, 0, 0, 1);
}
.msg.on { opacity: 1; transform: none; }
.msg .tag {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 5px;
  color: var(--sys-dim);
}
.msg.guest { align-self: flex-start; background: var(--sys-2); border: 1px solid var(--sys-ln); }
.msg.bot { align-self: flex-end; background: var(--sys-txt); color: var(--sys); }
.msg.bot .tag { color: rgba(16, 19, 21, 0.55); }

/* exhibit caption under panels */
.cap {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.cap a {
  font-stretch: 88%;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--volt);
  padding-bottom: 2px;
  white-space: nowrap;
}
.cap a:hover { background: var(--volt); box-shadow: none; }

.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2.6vw, 36px);
  align-items: start;
  margin-top: clamp(28px, 3.6vw, 48px);
}
@media (max-width: 900px) { .duo { grid-template-columns: 1fr; } }

/* ---------- incoming feed (pains as raw fragments) ---------- */
.feed {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.8vw, 24px);
  margin-top: clamp(28px, 3.6vw, 48px);
}
@media (max-width: 1000px) { .feed { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feed { grid-template-columns: 1fr; } }
.feed .frag { width: auto; min-width: 0; }
.feed .frag .fbody { font-size: 14px; line-height: 1.45; }
.feed .frag:hover { transform: rotate(0); box-shadow: 4px 4px 0 var(--volt); }

/* ---------- split: noise vs structure ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 2px solid var(--ink);
  margin-top: clamp(28px, 3.6vw, 48px);
  background: var(--srf);
}
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
.split-a { padding: clamp(22px, 3vw, 38px); border-right: 2px solid var(--ink); }
@media (max-width: 800px) { .split-a { border-right: none; border-bottom: 2px solid var(--ink); } }
.split-a .lbl { display: block; margin-bottom: 18px; }
.split-a ul { list-style: none; }
.split-a li {
  padding: 11px 0;
  border-bottom: 1px dashed var(--ln);
  color: var(--grey);
  font-size: 15px;
}
.split-a li:nth-child(odd) { padding-left: 10px; }
.split-a li:nth-child(3) { padding-left: 22px; }
.split-a li:last-child { border-bottom: none; }
.split-b { background: var(--sys); color: var(--sys-txt); padding: clamp(22px, 3vw, 38px); }
.split-b .lbl { display: block; margin-bottom: 18px; color: var(--volt); }
.split-b ul { list-style: none; }
.split-b li {
  position: relative;
  padding: 11px 0 11px 28px;
  border-bottom: 1px solid var(--sys-ln);
  font-size: 15px;
}
.split-b li::before { content: "→"; position: absolute; left: 0; top: 11px; color: var(--volt); font-weight: 700; }
.split-b li:last-child { border-bottom: none; }

/* ---------- programme (phases) ---------- */
.prog-track {
  position: relative;
  height: 8px;
  background: var(--srf);
  border: 1.5px solid var(--ink);
  margin: clamp(28px, 3.6vw, 48px) 0 0;
}
.prog-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--volt);
  transition: width 1.4s cubic-bezier(0.2, 0, 0, 1);
}
.prog-track.on .prog-fill { width: 100%; }
.prog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 2px solid var(--ink);
  border-top: none;
  background: var(--srf);
}
@media (max-width: 900px) { .prog-grid { grid-template-columns: 1fr 1fr; border-top: 2px solid var(--ink); margin-top: 20px; } }
@media (max-width: 560px) { .prog-grid { grid-template-columns: 1fr; } }
.phase {
  padding: clamp(20px, 2.6vw, 32px) clamp(16px, 2vw, 26px);
  border-right: 1px solid var(--ln);
  position: relative;
}
.phase:last-child { border-right: none; }
@media (max-width: 900px) {
  .phase { border-bottom: 1px solid var(--ln); }
  .phase:nth-child(even) { border-right: none; }
}
.phase .n {
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(38px, 4vw, 56px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
  margin-bottom: 12px;
}
.phase h3 { text-transform: uppercase; font-stretch: 110%; margin-bottom: 10px; }
.phase p { font-size: 14.5px; color: var(--grey); }
.phase .deliv {
  margin-top: 16px;
  padding: 10px 12px;
  background: var(--bg);
  border-left: 3px solid var(--volt);
  font-size: 12.5px;
  color: var(--ink);
}
.phase .deliv b {
  display: block;
  font-stretch: 78%;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 3px;
}

/* ---------- principal ---------- */
.principal {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: clamp(28px, 4.5vw, 68px);
  align-items: start;
}
@media (max-width: 900px) { .principal { grid-template-columns: 1fr; } }
.portrait {
  border: 2px solid var(--ink);
  background:
    repeating-linear-gradient(to right, rgba(231, 234, 226, 0.06) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(to bottom, rgba(231, 234, 226, 0.06) 0 1px, transparent 1px 34px),
    linear-gradient(165deg, #262c30 0%, #14181b 70%);
  aspect-ratio: 4 / 5;
  position: relative;
  overflow: hidden;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08); }
.portrait .ph {
  position: absolute;
  left: 16px; bottom: 14px;
  font-stretch: 78%;
  font-weight: 650;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sys-dim);
  line-height: 1.9;
}
.portrait-cap { margin-top: 10px; }

.stack { margin-top: clamp(24px, 3vw, 36px); border: 2px solid var(--ink); background: var(--srf); }
.srow {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--ln);
  font-size: 15px;
}
.srow:last-child { border-bottom: none; }
.srow .lbl { padding-top: 3px; }
.srow .role { color: var(--ink); }
.srow .where { color: var(--grey-2); }
@media (max-width: 560px) { .srow { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- project register (schedule) ---------- */
.schedule { border: 2px solid var(--ink); background: var(--srf); }
.sched-row {
  display: grid;
  grid-template-columns: 96px 1.35fr 1.8fr 132px;
  gap: 18px;
  align-items: center;
  padding: 20px clamp(14px, 2vw, 26px);
  border-bottom: 1px solid var(--ln);
  text-decoration: none;
  position: relative;
  transition: background 0.15s;
}
.sched-row:last-child { border-bottom: none; }
a.sched-row:hover { background: var(--bg); }
a.sched-row::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: var(--volt);
  transition: width 0.18s cubic-bezier(0.2, 0, 0, 1);
}
a.sched-row:hover::before { width: 6px; }
.sched-row.head {
  padding-top: 10px; padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
  background: var(--bg);
}
.sched-row .no { font-stretch: 88%; font-weight: 700; font-size: 13px; letter-spacing: 0.06em; }
.sched-row .name { font-stretch: 115%; font-weight: 750; font-size: clamp(18px, 1.9vw, 23px); line-height: 1.1; text-transform: uppercase; }
.sched-row .scope { font-size: 13.5px; color: var(--grey); line-height: 1.5; }
@media (max-width: 780px) {
  .sched-row { grid-template-columns: 1fr; gap: 8px; padding: 18px; }
  .sched-row.head { display: none; }
}

/* status tags — site signage */
.tag {
  font-stretch: 78%;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 10px;
  border: 1.5px solid var(--ink);
  justify-self: start;
  white-space: nowrap;
  background: var(--srf);
}
.tag.service { background: var(--volt); }
.tag.delivered { background: var(--ink); color: var(--srf); }
.tag.prototype { border-style: dashed; }
.tag.concept { border-color: var(--grey-2); color: var(--grey); }

/* ---------- page heads ---------- */
.page-head { padding: clamp(52px, 7vw, 100px) 0 clamp(36px, 4.6vw, 64px); }
.page-head h1 { max-width: 16ch; }
.page-head .sub { margin-top: clamp(20px, 2.6vw, 32px); }

/* case meta strip */
.meta-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border: 2px solid var(--ink);
  background: var(--srf);
  margin-top: clamp(26px, 3.4vw, 42px);
}
.meta-strip > div { padding: 14px 18px; border-right: 1px solid var(--ln); }
.meta-strip > div:last-child { border-right: none; }
.meta-strip .lbl { display: block; margin-bottom: 5px; }
.meta-strip .val { font-size: 14.5px; font-weight: 600; }
.meta-strip .val.volt-t { background: var(--volt); display: inline-block; padding: 0 6px; }
@media (max-width: 720px) {
  .meta-strip { grid-template-columns: 1fr 1fr; }
  .meta-strip > div { border-bottom: 1px solid var(--ln); }
}

/* ---------- io strip (inputs → output, case pages) ---------- */
.io {
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  align-items: center;
  gap: clamp(10px, 1.6vw, 20px);
  margin: clamp(28px, 3.6vw, 48px) 0;
}
@media (max-width: 760px) { .io { grid-template-columns: 1fr; } }
.io-list { border: 1.5px solid var(--ink); background: var(--srf); }
.io-list .lbl { display: block; padding: 9px 14px; border-bottom: 1.5px solid var(--ink); background: var(--bg); }
.io-list ul { list-style: none; }
.io-list li { padding: 9px 14px; border-bottom: 1px dashed var(--ln); font-size: 13.5px; color: var(--grey); }
.io-list li:last-child { border-bottom: none; }
.io-list.out { border-width: 2px; }
.io-list.out .lbl { background: var(--sys); color: var(--volt); border-color: var(--ink); }
.io-list.out li { color: var(--ink); border-bottom-style: solid; }
.io-list.out li::before { content: "→ "; color: var(--volt-deep); font-weight: 700; }
.io-arrow {
  text-align: center;
  font-stretch: 125%;
  font-weight: 800;
  font-size: 26px;
}
@media (max-width: 760px) { .io-arrow { transform: rotate(90deg); } }

/* ---------- prose (articles, case text) ---------- */
.prose { max-width: 70ch; }
.prose h3 {
  text-transform: uppercase;
  font-stretch: 115%;
  margin: clamp(34px, 4.6vw, 56px) 0 14px;
  padding-top: 14px;
  border-top: 2px solid var(--ink);
}
.prose p { color: var(--grey); }
.prose p + p { margin-top: 1em; }
.prose ul, .prose ol { margin: 1em 0 1em 1.2em; color: var(--grey); }
.prose li { margin-bottom: 0.5em; }
.prose li strong { color: var(--ink); }
.prose blockquote {
  margin: 1.6em 0;
  padding: clamp(16px, 2.2vw, 24px);
  background: var(--srf);
  border: 1.5px solid var(--ink);
  border-left: 6px solid var(--volt);
  font-stretch: 110%;
  font-weight: 650;
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.4;
  color: var(--ink);
}
.prose code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--srf);
  padding: 2px 6px;
  border: 1px solid var(--ln);
}
.prose pre {
  background: var(--sys);
  color: var(--sys-txt);
  padding: clamp(16px, 2.4vw, 26px);
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.65;
  margin: 1.6em 0;
  border: 2px solid var(--ink);
}
.prose pre code { background: none; border: none; padding: 0; }
.prose a { color: var(--ink); box-shadow: inset 0 -2px 0 var(--volt); text-decoration: none; }
.prose a:hover { background: var(--volt); box-shadow: none; }

/* callout */
.callout {
  border: 2px solid var(--ink);
  background: var(--srf);
  padding: clamp(18px, 2.6vw, 28px);
  margin: 2em 0;
  position: relative;
}
.callout::before {
  content: "";
  position: absolute;
  left: -2px; top: -2px;
  width: 42px; height: 8px;
  background: var(--volt);
}
.callout .lbl { display: block; margin-bottom: 10px; }
.callout a { color: var(--ink); box-shadow: inset 0 -2px 0 var(--volt); text-decoration: none; }
.callout a:hover { background: var(--volt); box-shadow: none; }

/* ---------- field notes list ---------- */
.note-card {
  display: grid;
  grid-template-columns: 110px 1fr 150px;
  gap: 20px;
  align-items: start;
  padding: clamp(22px, 3vw, 34px) clamp(14px, 2vw, 26px);
  border-bottom: 1px solid var(--ln);
  text-decoration: none;
  position: relative;
  transition: background 0.15s;
}
.note-card:last-child { border-bottom: none; }
a.note-card:hover { background: var(--srf); }
a.note-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: var(--volt);
  transition: width 0.18s cubic-bezier(0.2, 0, 0, 1);
}
a.note-card:hover::before { width: 6px; }
.note-card h3 { text-transform: uppercase; font-stretch: 112%; }
.note-card p { font-size: 14px; color: var(--grey); margin-top: 8px; max-width: 58ch; }
.note-card .go-t {
  font-stretch: 88%; font-weight: 700; font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink);
}
@media (max-width: 720px) { .note-card { grid-template-columns: 1fr; gap: 8px; } }
.notes-box { border: 2px solid var(--ink); background: var(--bg); }

/* ---------- dark CTA zone ---------- */
.zone.dark {
  background: var(--sys);
  color: var(--sys-txt);
  border-top: 2px solid var(--ink);
  background-image:
    repeating-linear-gradient(to right, rgba(231, 234, 226, 0.05) 0 1px, transparent 1px var(--mod)),
    repeating-linear-gradient(to bottom, rgba(231, 234, 226, 0.05) 0 1px, transparent 1px var(--mod));
}
.zone.dark::before, .zone.dark::after { color: var(--sys-dim); }
.zone.dark .coord .ttl { color: var(--sys-dim); }
.zone.dark .coord::after { border-color: var(--sys-ln); }
.zone.dark .coord .ref { color: var(--sys-txt); }
.zone.dark h2 { color: var(--sys-txt); }
.zone.dark mark { background: var(--volt); color: var(--ink); }
.zone.dark .sub { color: var(--sys-dim); }
.zone.dark .btn { background: var(--volt); border-color: var(--volt); color: var(--ink); }
.zone.dark .btn:hover { background: var(--sys-txt); border-color: var(--sys-txt); }

/* ---------- intake form ---------- */
.intake { border: 2px solid var(--ink); background: var(--srf); max-width: 780px; }
.intake-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 2px solid var(--ink);
  background: var(--bg);
}
.intake-body { padding: clamp(22px, 3.4vw, 42px); }
.step { display: none; }
.step.on { display: block; }
.step .q {
  font-stretch: 115%;
  font-weight: 750;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.15;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.step .hint { font-size: 13.5px; color: var(--grey); margin-bottom: 22px; }
textarea, input[type="text"], input[type="email"] {
  width: 100%;
  font-family: var(--grotesk);
  font-size: 15.5px;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--ink);
  padding: 13px 15px;
  outline: none;
}
textarea:focus, input:focus { box-shadow: 4px 4px 0 var(--volt); }
textarea { min-height: 140px; resize: vertical; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice {
  font-stretch: 88%;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 11px 16px;
  border: 1.5px solid var(--ink);
  background: var(--srf);
  cursor: pointer;
  transition: all 0.12s;
}
.choice:hover { box-shadow: 3px 3px 0 var(--volt); }
.choice.sel { background: var(--ink); color: var(--volt); }
.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  gap: 14px;
}
.step-back {
  background: none; border: none;
  font-stretch: 88%; font-weight: 700; font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--grey); cursor: pointer;
}
.step-back:hover { color: var(--ink); }
.field + .field { margin-top: 16px; }
.field label {
  display: block;
  font-stretch: 78%;
  font-weight: 650;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 7px;
}
.summary {
  border: 2px solid var(--ink);
  background: var(--sys);
  color: var(--sys-txt);
  padding: 18px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.8;
  white-space: pre-wrap;
  margin-bottom: 24px;
}

/* ---------- footer ---------- */
footer.site {
  background: var(--sys);
  color: var(--sys-txt);
  border-top: 2px solid var(--ink);
  padding: clamp(36px, 5vw, 64px) 0 clamp(28px, 4vw, 44px);
  margin-top: 0;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 30px;
  align-items: start;
}
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-grid .brand .word { color: var(--sys-txt); }
.foot-grid .brand .mark { background: var(--sys-txt); }
.foot-grid .tagline {
  margin-top: 16px;
  font-stretch: 115%;
  font-weight: 750;
  font-size: clamp(20px, 2.2vw, 26px);
  text-transform: uppercase;
  line-height: 1.1;
  max-width: 14ch;
}
.foot-grid .tagline mark { background: var(--volt); }
.foot-grid ul { list-style: none; margin-top: 12px; }
.foot-grid li { margin-bottom: 9px; }
.foot-grid .col-l { font-stretch: 78%; font-weight: 650; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sys-dim); }
.foot-grid a { text-decoration: none; font-size: 14px; color: var(--sys-txt); opacity: 0.85; }
.foot-grid a:hover { color: var(--volt); opacity: 1; }
.foot-bottom {
  margin-top: clamp(28px, 4vw, 44px);
  padding-top: 18px;
  border-top: 1px solid var(--sys-ln);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-stretch: 78%;
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sys-dim);
}

/* ---------- mobile sticky CTA ---------- */
.m-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  background: var(--ink);
  border-top: 2px solid var(--volt);
}
.m-cta a {
  display: block;
  text-align: center;
  padding: 15px;
  font-stretch: 88%;
  font-weight: 750;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--volt);
  text-decoration: none;
}
@media (max-width: 760px) {
  .m-cta { display: block; }
  body { padding-bottom: 52px; }
}

/* ---------- reveal motion (snap-into-grid) ---------- */
.rv {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.2, 0, 0, 1);
}
.rv.on { opacity: 1; transform: none; }
.rv.d1 { transition-delay: 0.07s; }
.rv.d2 { transition-delay: 0.14s; }
.rv.d3 { transition-delay: 0.21s; }

@media (prefers-reduced-motion: reduce) {
  .rv, .report .rrow, .report .rfoot, .msg, .sys-row, .frag { opacity: 1 !important; transform: none !important; transition: none !important; }
  .prog-fill { transition: none !important; }
  .live-dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- intake helpers & channels ---------- */
.zone.dark .btn.line {
  background: transparent;
  border-color: var(--sys-txt);
  color: var(--sys-txt);
}
.zone.dark .btn.line:hover { background: var(--volt); border-color: var(--volt); color: var(--ink); }

.chips-lbl {
  display: block;
  font-stretch: 78%;
  font-weight: 650;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  margin: 18px 0 10px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip {
  font-stretch: 88%;
  font-weight: 650;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 9px 13px;
  border: 1.5px dashed var(--ink);
  background: var(--srf);
  cursor: pointer;
  transition: all 0.12s;
}
.chip:hover { border-style: solid; box-shadow: 3px 3px 0 var(--volt); }
.chip.sel { background: var(--ink); color: var(--volt); border-style: solid; }

.send-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.wa-note { margin-top: 14px; }
.wa-note a { color: var(--ink); font-weight: 650; }
