/* ==========================================================================
   BuildMindHQ — buildmindhq.com
   Design direction: "Drawing Sheet". The visual language of a construction
   document set — title blocks, sheet numbers, revision tables, hairline
   rules, registration marks. Desktop-first, precise, instrument-like.
   Light ground by default; full dark support via prefers-color-scheme.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens — complete light palette defined on bare :root
   -------------------------------------------------------------------------- */
:root {
  /* ground + surfaces */
  --concrete:      #E4E3DE;
  --concrete-deep: #D6D5CF;
  --sheet:         #FAF9F7;
  --sheet-2:       #F1F0EC;

  /* ink */
  --ink:      #14171A;
  --steel:    #5C636B;
  --dim:      #8A9096;

  /* lines */
  --rule:     rgba(20, 23, 26, 0.14);
  --rule-2:   rgba(20, 23, 26, 0.28);
  --rule-3:   rgba(20, 23, 26, 0.06);

  /* chalk-line blue — structure, links, emphasis */
  --marker:      #1B4D8F;
  --marker-soft: rgba(27, 77, 143, 0.10);
  --marker-line: rgba(27, 77, 143, 0.30);

  /* hi-vis amber — fills, marks, underlines. never small text on light */
  --hivis:      #C88606;
  --hivis-fill: #E8A81C;
  --hivis-soft: rgba(232, 168, 28, 0.16);

  /* semantic */
  --live:     #1F6B45;
  --live-soft: rgba(31, 107, 69, 0.12);
  --partial:  #8A5A08;
  --partial-soft: rgba(200, 134, 6, 0.14);
  --planned:  #5C636B;
  --planned-soft: rgba(92, 99, 107, 0.10);

  /* type */
  --display: "Archivo", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --body:    "IBM Plex Sans", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* metrics */
  --gutter: clamp(20px, 4.4vw, 56px);
  --max:    1320px;
  --narrow: 760px;
  --r:      3px;
  --r-lg:   5px;

  /* motion */
  --ease: cubic-bezier(0.22, 0.68, 0.14, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --concrete:      #0E1113;
    --concrete-deep: #090B0D;
    --sheet:         #171A1D;
    --sheet-2:       #1E2226;

    --ink:    #E8EAE7;
    --steel:  #99A1A9;
    --dim:    #6C757D;

    --rule:   rgba(232, 234, 231, 0.15);
    --rule-2: rgba(232, 234, 231, 0.30);
    --rule-3: rgba(232, 234, 231, 0.07);

    --marker:      #79ADE9;
    --marker-soft: rgba(121, 173, 233, 0.12);
    --marker-line: rgba(121, 173, 233, 0.32);

    --hivis:      #E9B53F;
    --hivis-fill: #E9B53F;
    --hivis-soft: rgba(233, 181, 63, 0.15);

    --live:      #5FBE8D;
    --live-soft: rgba(95, 190, 141, 0.14);
    --partial:   #E0A83E;
    --partial-soft: rgba(224, 168, 62, 0.14);
    --planned:   #99A1A9;
    --planned-soft: rgba(153, 161, 169, 0.12);
  }
}

:root[data-theme="dark"] {
  --concrete:      #0E1113;
  --concrete-deep: #090B0D;
  --sheet:         #171A1D;
  --sheet-2:       #1E2226;
  --ink:    #E8EAE7;
  --steel:  #99A1A9;
  --dim:    #6C757D;
  --rule:   rgba(232, 234, 231, 0.15);
  --rule-2: rgba(232, 234, 231, 0.30);
  --rule-3: rgba(232, 234, 231, 0.07);
  --marker:      #79ADE9;
  --marker-soft: rgba(121, 173, 233, 0.12);
  --marker-line: rgba(121, 173, 233, 0.32);
  --hivis:      #E9B53F;
  --hivis-fill: #E9B53F;
  --hivis-soft: rgba(233, 181, 63, 0.15);
  --live:      #5FBE8D;
  --live-soft: rgba(95, 190, 141, 0.14);
  --partial:   #E0A83E;
  --partial-soft: rgba(224, 168, 62, 0.14);
  --planned:   #99A1A9;
  --planned-soft: rgba(153, 161, 169, 0.12);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background-color: var(--concrete);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.62;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--marker); text-decoration-color: var(--marker-line); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

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

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

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

.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;
}

/* --------------------------------------------------------------------------
   3. Type scale
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--display); margin: 0; color: var(--ink); }

h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.6rem);
  font-variation-settings: "wdth" 112, "wght" 700;
  line-height: 0.98;
  letter-spacing: -0.028em;
}

h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.9rem);
  font-variation-settings: "wdth" 110, "wght" 680;
  line-height: 1.05;
  letter-spacing: -0.024em;
}

h3 {
  font-size: clamp(1.12rem, 1.6vw, 1.3rem);
  font-variation-settings: "wdth" 104, "wght" 640;
  line-height: 1.24;
  letter-spacing: -0.014em;
}

h4 {
  font-size: 1rem;
  font-variation-settings: "wdth" 102, "wght" 620;
  line-height: 1.3;
  letter-spacing: -0.008em;
}

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.06rem, 1.5vw, 1.22rem);
  line-height: 1.6;
  color: var(--steel);
  max-width: 62ch;
}

.muted { color: var(--steel); }

/* mono label — the drawing-sheet voice */
.label {
  font-family: var(--mono);
  font-size: 0.665rem;
  font-weight: 500;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--dim);
}

/* --------------------------------------------------------------------------
   4. Sheet — the base surface. Hairline, near-square, no drop shadow.
   -------------------------------------------------------------------------- */
.sheet {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: var(--r);
}

/* registration marks — corner ticks, like a plotted drawing */
.regmark { position: relative; }
.regmark::before,
.regmark::after {
  content: "";
  position: absolute;
  width: 9px; height: 9px;
  pointer-events: none;
}
.regmark::before {
  top: -1px; left: -1px;
  border-top: 2px solid var(--hivis-fill);
  border-left: 2px solid var(--hivis-fill);
}
.regmark::after {
  bottom: -1px; right: -1px;
  border-bottom: 2px solid var(--hivis-fill);
  border-right: 2px solid var(--hivis-fill);
}

/* --------------------------------------------------------------------------
   5. Nav — a slim sheet edge, inset to the grid. Signage, not jewellery.
   -------------------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--concrete) 88%, transparent);
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  border-bottom: 1px solid var(--rule);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .topbar { background: var(--concrete); }
}

.topbar .wrap {
  display: flex; align-items: center; gap: 24px;
  min-height: 62px;
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
  font-family: var(--display);
  font-variation-settings: "wdth" 108, "wght" 720;
  font-size: 1.02rem; letter-spacing: -0.022em;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand .mk { flex: none; }
.brand b { font-weight: inherit; color: var(--marker); }

.navlinks {
  display: none; align-items: center; gap: 26px;
  margin-left: auto;
}
@media (min-width: 940px) { .navlinks { display: flex; } }

.navlinks a {
  font-family: var(--mono);
  font-size: 0.71rem; font-weight: 500;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--steel); text-decoration: none;
  padding-block: 4px;
  border-bottom: 1px solid transparent;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.navlinks a:hover { color: var(--ink); border-bottom-color: var(--hivis-fill); }

.topbar .btn { margin-left: auto; }
@media (min-width: 940px) { .topbar .btn { margin-left: 4px; } }

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--body);
  font-size: 0.9rem; font-weight: 600; letter-spacing: -0.005em;
  padding: 11px 18px;
  border-radius: var(--r);
  border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  white-space: nowrap;
  transition: background-color .35s var(--ease), border-color .35s var(--ease),
              color .35s var(--ease), transform .35s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--ink); color: var(--concrete);
  border-color: var(--ink);
}
.btn-primary:hover { background: var(--marker); border-color: var(--marker); color: #fff; }

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

.btn-lg { font-size: 0.98rem; padding: 14px 22px; }

/* The nav CTA carries a shorter label once the viewport can no longer hold the
   brand and the full one side by side — clipping it would be worse. */
.btn .sm { display: none; }
@media (max-width: 620px) {
  .topbar .wrap { gap: 12px; min-height: 56px; }
  .topbar .btn { padding: 9px 13px; font-size: 0.84rem; gap: 8px; }
  .btn .lg { display: none; }
  .btn .sm { display: inline; }
}

/* Email addresses are long and unbreakable at the word level; let them wrap
   rather than push the page sideways. */
@media (max-width: 500px) {
  .cta-actions .btn {
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 0.9rem;
    padding: 12px 15px;
    text-align: left;
  }
}

.btn .tick {
  flex: none;
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: color-mix(in srgb, currentColor 16%, transparent);
  transition: transform .4s var(--ease-out);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .btn .tick { background: rgba(128,128,128,.22); }
}
.btn:hover .tick { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   7. Section frame + sheet numbers
   -------------------------------------------------------------------------- */
section { padding-block: clamp(64px, 9vw, 128px); }

.sechead { display: grid; gap: 18px; margin-bottom: clamp(34px, 4.5vw, 56px); }
@media (min-width: 900px) {
  .sechead {
    grid-template-columns: 148px minmax(0, 1fr);
    gap: 0 40px;
    align-items: start;
  }
}

.sheetno {
  font-family: var(--mono);
  font-size: 0.665rem; font-weight: 600;
  letter-spacing: 0.17em; text-transform: uppercase;
  color: var(--dim);
  padding-top: 0.5em;
  display: flex; align-items: baseline; gap: 9px;
}
.sheetno::before {
  content: ""; width: 18px; height: 2px; flex: none;
  background: var(--hivis-fill); transform: translateY(-4px);
}

.sechead p { margin-top: 14px; }

.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero {
  padding-top: clamp(48px, 7vw, 92px);
  padding-bottom: clamp(46px, 6vw, 84px);
  position: relative;
  overflow: hidden;
}

/* faint drafting grid, ground only */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--rule-3) 1px, transparent 1px),
    linear-gradient(to bottom, var(--rule-3) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(120% 90% at 30% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(120% 90% at 30% 0%, #000 0%, transparent 72%);
  pointer-events: none;
}
.hero > * { position: relative; }

.hero-grid { display: grid; gap: clamp(38px, 5vw, 54px); align-items: start; }
@media (min-width: 1040px) {
  .hero-grid { grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr); gap: 60px; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono);
  font-size: 0.665rem; font-weight: 500;
  letter-spacing: 0.17em; text-transform: uppercase;
  color: var(--steel);
  border: 1px solid var(--rule);
  background: var(--sheet);
  padding: 6px 12px 6px 9px;
  border-radius: 100px;
  margin-bottom: 26px;
}
.eyebrow .pip {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--hivis-fill); flex: none;
}

h1 .mark {
  color: var(--marker);
  background-image: linear-gradient(var(--hivis-fill), var(--hivis-fill));
  background-repeat: no-repeat;
  background-position: 0 92%;
  background-size: 0% 0.13em;
  transition: background-size 1.1s var(--ease-out) .45s;
}
.js-anim .hero.in h1 .mark { background-size: 100% 0.13em; }
:root:not(.js-anim) h1 .mark { background-size: 100% 0.13em; }

.hero .lede { margin-top: 24px; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero-note {
  margin-top: 26px;
  font-size: 0.86rem; color: var(--dim);
  max-width: 48ch;
}

/* --- the record panel: an illustrative job record, clearly labelled --- */
.record { padding: 0; overflow: hidden; }

.record-top {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  background: var(--sheet-2);
}
.record-top .label { color: var(--steel); }
.record-dots { display: flex; gap: 5px; }
.record-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--rule-2); }

.record-body { padding: 20px 16px 18px; }

.record-title {
  font-family: var(--display);
  font-variation-settings: "wdth" 104, "wght" 640;
  font-size: 1.14rem; letter-spacing: -0.015em;
  margin-bottom: 3px;
}
.record-sub { font-family: var(--mono); font-size: 0.72rem; color: var(--dim); }

.record-rail {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px; margin: 20px 0 6px;
}
.record-rail .seg {
  height: 5px; border-radius: 2px;
  background: var(--rule);
  transform-origin: left center;
}
.js-anim .record-rail .seg { transform: scaleX(0); }
.js-anim .record.in .seg { animation: segIn .55s var(--ease-out) forwards; }
.js-anim .record.in .seg:nth-child(1) { animation-delay: .10s; }
.js-anim .record.in .seg:nth-child(2) { animation-delay: .19s; }
.js-anim .record.in .seg:nth-child(3) { animation-delay: .28s; }
.js-anim .record.in .seg:nth-child(4) { animation-delay: .37s; }
.js-anim .record.in .seg:nth-child(5) { animation-delay: .46s; }
@keyframes segIn { to { transform: scaleX(1); } }

.record-rail .seg.done { background: var(--marker); }
.record-rail .seg.now  { background: var(--hivis-fill); }

.record-legend {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  font-family: var(--mono); font-size: 0.575rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--dim);
}
.record-legend span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.record-legend .on { color: var(--ink); }

.record-rows { margin: 22px 0 0; padding: 0; border-top: 1px solid var(--rule-3); }
.record-rows dd { margin: 0; }
.record-rows div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px 16px;
  flex-wrap: wrap;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule-3);
  font-size: 0.86rem;
}
.record-rows dt, .record-rows .k {
  font-family: var(--mono); font-size: 0.68rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim);
}
.record-rows .v { color: var(--ink); font-weight: 500; text-align: right; min-width: 0; margin-left: auto; }

.record-foot {
  padding: 11px 16px;
  border-top: 1px solid var(--rule);
  background: var(--sheet-2);
  font-family: var(--mono); font-size: 0.63rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim);
}

/* --------------------------------------------------------------------------
   9. Lifecycle — a real sequence, so it is genuinely numbered
   -------------------------------------------------------------------------- */
.lifecycle { display: grid; gap: 0; }
@media (min-width: 900px) {
  .lifecycle { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.stage {
  padding: 26px 0 30px;
  border-top: 1px solid var(--rule);
  position: relative;
}
@media (min-width: 900px) {
  .stage { padding: 30px 26px 34px 0; }
  .stage + .stage { padding-left: 26px; border-left: 1px solid var(--rule); }
}

.stage::before {
  content: "";
  position: absolute; top: -1px; left: 0;
  width: 34px; height: 3px;
  background: var(--hivis-fill);
}
@media (min-width: 900px) {
  .stage + .stage::before { left: 26px; }
}

.stage .n {
  font-family: var(--mono); font-size: 0.665rem; font-weight: 600;
  letter-spacing: 0.16em; color: var(--dim);
  display: block; margin-bottom: 14px;
}
.stage h3 { margin-bottom: 9px; }
.stage p { font-size: 0.9rem; color: var(--steel); }

/* --------------------------------------------------------------------------
   10. Feature grid — bento-ish, asymmetric on desktop
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; }
@media (min-width: 700px)  { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.cell {
  background: var(--sheet);
  padding: clamp(22px, 2.4vw, 30px);
  display: flex; flex-direction: column; gap: 11px;
  transition: background-color .4s var(--ease);
}
.cell:hover { background: var(--sheet-2); }
.cell .ic { color: var(--marker); margin-bottom: 4px; }
.cell p { font-size: 0.9rem; color: var(--steel); }

@media (min-width: 1040px) {
  .cell-wide { grid-column: span 2; }
}

/* --------------------------------------------------------------------------
   11. Split — white-label / tenancy
   -------------------------------------------------------------------------- */
.split { display: grid; gap: clamp(32px, 4.5vw, 56px); align-items: start; }
@media (min-width: 980px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; } }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.checklist li {
  display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 13px;
  padding: 15px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.95rem;
}
.checklist li:first-child { border-top: 1px solid var(--rule); }
.checklist .bx {
  width: 17px; height: 17px; margin-top: 3px;
  border: 1.5px solid var(--marker-line);
  border-radius: 2px;
  display: grid; place-items: center;
  color: var(--marker);
}
.checklist strong { font-weight: 600; }
.checklist span.d { display: block; color: var(--steel); font-size: 0.88rem; margin-top: 2px; }

/* tenancy diagram */
.tenancy { padding: 24px 20px 20px; }
.tenancy .label { margin-bottom: 16px; display: block; }
.tenants { display: grid; gap: 10px; }
.tenant {
  flex-wrap: wrap;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--tint, var(--marker));
  border-radius: var(--r);
  background: var(--sheet-2);
  padding: 12px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.tenant .nm { font-weight: 600; font-size: 0.92rem; }
.tenant .rl { font-family: var(--mono); font-size: 0.63rem; letter-spacing: 0.11em; text-transform: uppercase; color: var(--dim); }
.tenancy .barrier {
  margin-top: 16px; padding-top: 14px;
  border-top: 1px dashed var(--rule-2);
  font-size: 0.84rem; color: var(--steel);
}
.tenancy .barrier code {
  font-family: var(--mono); font-size: 0.8em;
  background: var(--marker-soft); color: var(--marker);
  padding: 1px 5px; border-radius: 2px;
}

/* --------------------------------------------------------------------------
   12. AI modules
   -------------------------------------------------------------------------- */
.modules { display: grid; gap: 20px; }
@media (min-width: 900px) { .modules { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.module { padding: 26px 24px 24px; display: flex; flex-direction: column; }
.module .label { display: block; margin-bottom: 16px; }
.module h3 { margin-bottom: 10px; }
.module p { font-size: 0.9rem; color: var(--steel); }
.module .limit {
  margin-top: auto; padding-top: 16px;
  border-top: 1px dashed var(--rule-2);
  font-size: 0.8rem; color: var(--dim);
  display: flex; gap: 8px; align-items: flex-start;
}
.module .limit b { color: var(--partial); font-weight: 600; flex: none; }

/* --------------------------------------------------------------------------
   13. Revision table — the honest build-status section
   -------------------------------------------------------------------------- */
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--rule); border-radius: var(--r); background: var(--sheet); }

table.rev { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 0.9rem; }
table.rev th, table.rev td { text-align: left; padding: 13px 16px; vertical-align: top; border-bottom: 1px solid var(--rule-3); }
table.rev thead th {
  font-family: var(--mono); font-size: 0.63rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--dim);
  background: var(--sheet-2);
  border-bottom: 1px solid var(--rule);
}
table.rev tbody tr:last-child td { border-bottom: 0; }
table.rev td.what { color: var(--ink); font-weight: 500; width: 30%; }
table.rev td.note { color: var(--steel); }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 100px;
  white-space: nowrap;
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag-live    { color: var(--live);    background: var(--live-soft); }
.tag-partial { color: var(--partial); background: var(--partial-soft); }
.tag-planned { color: var(--planned); background: var(--planned-soft); }

.disclosure {
  margin-top: 22px; font-size: 0.88rem; color: var(--steel);
  max-width: 68ch;
}

/* --------------------------------------------------------------------------
   14. Surface area — the two-row nav rendered honestly
   -------------------------------------------------------------------------- */
.navdemo { padding: 0; overflow: hidden; }
.navdemo .row {
  display: flex; flex-wrap: wrap; gap: 7px;
  padding: 15px 18px;
}
.navdemo .row-1 { border-bottom: 1px solid var(--rule); background: var(--sheet-2); }
.navdemo .cap {
  padding: 10px 18px 0;
  display: block;
}
.chip {
  font-family: var(--mono); font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.05em;
  padding: 6px 11px; border-radius: 100px;
  border: 1px solid var(--rule);
  color: var(--steel); background: var(--sheet);
  white-space: nowrap;
}
.chip-primary {
  color: var(--ink); border-color: var(--rule-2);
  font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase;
  font-size: 0.66rem;
}
.chip-primary.is-on { background: var(--ink); color: var(--concrete); border-color: var(--ink); }

/* --------------------------------------------------------------------------
   15. FAQ
   -------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--rule); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-q {
  width: 100%; text-align: left;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  background: none; border: 0; cursor: pointer;
  padding: 20px 2px;
  font-family: var(--display);
  font-variation-settings: "wdth" 104, "wght" 620;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  letter-spacing: -0.012em; line-height: 1.32;
  color: var(--ink);
}
.faq-q .pm { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--steel); transition: transform .4s var(--ease-out), color .3s var(--ease); }
.faq-item.open .faq-q .pm { transform: rotate(45deg); color: var(--marker); }
.faq-a { display: none; padding: 0 2px 22px; max-width: 74ch; color: var(--steel); font-size: 0.94rem; }
.faq-item.open .faq-a { display: block; animation: fadeUp .4s var(--ease-out); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   16. CTA
   -------------------------------------------------------------------------- */
.cta-sheet {
  padding: clamp(38px, 5.5vw, 68px) clamp(24px, 4vw, 60px);
  display: grid; gap: 28px; align-items: center;
}
@media (min-width: 940px) {
  .cta-sheet { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; }
}
.cta-sheet h2 { margin-bottom: 14px; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; }
.cta-actions .btn { justify-content: space-between; }
.cta-actions small { color: var(--dim); font-size: 0.82rem; line-height: 1.5; }

/* --------------------------------------------------------------------------
   17. Footer — a real drawing title block. The signature.
   -------------------------------------------------------------------------- */
footer { border-top: 1px solid var(--rule-2); padding-block: clamp(34px, 5vw, 52px) 30px; }

.titleblock {
  border: 1px solid var(--rule-2);
  border-radius: var(--r);
  background: var(--sheet);
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
}
@media (min-width: 640px)  { .titleblock { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .titleblock { grid-template-columns: minmax(0, 1.9fr) repeat(3, minmax(0, 1fr)); } }

.tb-cell {
  padding: 14px 16px 15px;
  border-bottom: 1px solid var(--rule);
  min-width: 0;
}
@media (min-width: 640px)  { .tb-cell:nth-child(odd)  { border-right: 1px solid var(--rule); } }
@media (min-width: 1000px) {
  .tb-cell { border-bottom: 0; border-right: 1px solid var(--rule); }
  .tb-cell:nth-child(odd) { border-right: 1px solid var(--rule); }
  .tb-cell:last-child { border-right: 0; }
}
.titleblock .tb-cell:last-child { border-bottom: 0; }

.tb-cell .k {
  font-family: var(--mono); font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.17em; text-transform: uppercase; color: var(--dim);
  display: block; margin-bottom: 7px;
}
.tb-cell .v { font-size: 0.92rem; color: var(--ink); }
.tb-cell .v a { display: block; text-decoration: none; color: var(--ink); padding: 1px 0; }
.tb-cell .v a:hover { color: var(--marker); }

.tb-brand {
  font-family: var(--display);
  font-variation-settings: "wdth" 108, "wght" 720;
  font-size: 1.16rem; letter-spacing: -0.024em;
  margin-bottom: 6px; display: block;
}
.tb-brand b { font-weight: inherit; color: var(--marker); }

.legal-line {
  margin-top: 20px;
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  align-items: baseline; justify-content: space-between;
  font-family: var(--mono); font-size: 0.65rem;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--dim);
}
.legal-line nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.legal-line a { color: var(--dim); text-decoration: none; }
.legal-line a:hover { color: var(--ink); }

/* --------------------------------------------------------------------------
   18. Legal pages
   -------------------------------------------------------------------------- */
.legal-head { padding-block: clamp(44px, 6.5vw, 78px) 0; }
.legal-head .label { display: block; margin-bottom: 16px; }
.legal-head h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.legal-head .updated {
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--dim); margin-top: 18px;
}
.legal-head .band {
  height: 4px; margin-top: 30px; border-radius: 2px;
  background: repeating-linear-gradient(
    135deg,
    var(--hivis-fill) 0 12px,
    var(--ink) 12px 24px
  );
  opacity: .85;
}

main.legal { padding-bottom: clamp(56px, 8vw, 100px); }
main.legal .wrap-narrow > .lede { margin-top: 30px; color: var(--ink); }

main.legal h2 {
  font-size: clamp(1.22rem, 2.2vw, 1.5rem);
  margin: clamp(38px, 5vw, 54px) 0 14px;
  scroll-margin-top: 82px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}
main.legal h3 {
  font-size: 1.02rem;
  margin: 28px 0 10px;
}
main.legal p, main.legal li { color: var(--steel); }
main.legal p strong, main.legal li strong { color: var(--ink); font-weight: 600; }
main.legal ul { margin: 0 0 18px; padding-left: 20px; }
main.legal li { margin-bottom: 8px; }
main.legal li::marker { color: var(--hivis); }

.toc {
  border: 1px solid var(--rule);
  border-radius: var(--r);
  background: var(--sheet);
  padding: 20px 22px;
  margin: 32px 0 8px;
}
.toc .label { display: block; margin-bottom: 12px; }
.toc ol { margin: 0; padding-left: 18px; font-size: 0.92rem; }
.toc li { margin-bottom: 6px; color: var(--steel); }
.toc li::marker { color: var(--dim); font-family: var(--mono); font-size: 0.78em; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.note {
  border: 1px solid var(--rule);
  border-left: 3px solid var(--marker);
  border-radius: var(--r);
  background: var(--marker-soft);
  padding: 17px 20px;
  margin: 22px 0;
}
.note .label { display: block; margin-bottom: 9px; color: var(--marker); }
.note p:last-child { margin-bottom: 0; }
.note.warn { border-left-color: var(--hivis-fill); background: var(--hivis-soft); }
.note.warn .label { color: var(--partial); }

main.legal .tablewrap { margin: 6px 0 22px; }
main.legal table.rev { min-width: 480px; }

/* --------------------------------------------------------------------------
   19. Motion — reveal on scroll. Progressive enhancement only.
   -------------------------------------------------------------------------- */
.js-anim .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .75s var(--ease-out), transform .75s var(--ease-out);
}
.js-anim .reveal.in { opacity: 1; transform: none; }

.js-anim .reveal[data-d="1"] { transition-delay: .07s; }
.js-anim .reveal[data-d="2"] { transition-delay: .14s; }
.js-anim .reveal[data-d="3"] { transition-delay: .21s; }
.js-anim .reveal[data-d="4"] { transition-delay: .28s; }

@media (prefers-reduced-motion: reduce) {
  .js-anim .reveal { opacity: 1; transform: none; transition: none; }
  .js-anim .record-rail .seg { transform: none; animation: none; }
  .js-anim .hero h1 .mark { background-size: 100% 0.13em; transition: none; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
