/* ============================================================
   ARCGENT — BLUEPRINT / TECHNICAL DRAWING AESTHETIC
   All dimensions, notation, and layout follows engineering
   drawing conventions. No shadcn tokens here.
   ============================================================ */

:root {
  /* Paper (warm cream, engineering drawing vellum) */
  --paper:       #F1EBD9;
  --paper-2:     #E8E0C8;
  --paper-3:     #D9CFB1;
  --paper-4:     #C8BC97;

  /* Ink (warm black, pencil on vellum) */
  --ink:         #1A1612;
  --ink-2:       #3C342A;
  --ink-3:       #6E6557;
  --ink-4:       #928778;

  /* Blueprint blue (the signature color — callouts, dimensions, emphasis) */
  --blue:        #1E5799;
  --blue-2:      #2B6CB0;
  --blue-3:      #3687D1;
  --blue-bg:     rgba(30, 87, 153, 0.08);
  --blue-tint:   rgba(30, 87, 153, 0.04);

  /* Rust red (error / warning / revision marker) */
  --rust:        #B54B2A;
  --rust-2:      #D06240;
  --rust-bg:     rgba(181, 75, 42, 0.08);

  /* Rule colors */
  --rule:        rgba(26, 22, 18, 0.16);
  --rule-heavy:  rgba(26, 22, 18, 0.32);
  --rule-blue:   rgba(30, 87, 153, 0.4);

  /* Type */
  --sans:    "Space Grotesk", -apple-system, system-ui, "Segoe UI", sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --body:    "IBM Plex Sans", -apple-system, system-ui, sans-serif;

  /* Grid system — every element sits on a 20px rhythm */
  --grid:    20px;
  --grid-2x: 40px;
  --grid-5x: 100px;

  --ease:     cubic-bezier(0.2, 0.7, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  overflow-x: hidden;
  /* Grid paper — 20px minor grid + 100px major grid */
  background-image:
    linear-gradient(to right, rgba(26, 22, 18, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(26, 22, 18, 0.035) 1px, transparent 1px),
    linear-gradient(to right, rgba(30, 87, 153, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 87, 153, 0.08) 1px, transparent 1px);
  background-size:
    var(--grid) var(--grid),
    var(--grid) var(--grid),
    var(--grid-5x) var(--grid-5x),
    var(--grid-5x) var(--grid-5x);
  background-position: -1px -1px;
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 0; }
::selection { background: var(--blue); color: var(--paper); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--ink-4); border: 2px solid var(--paper); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--blue); }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.rise { animation: rise 0.8s var(--ease-out) forwards; opacity: 0; }
.d1 { animation-delay: 0.05s; }
.d2 { animation-delay: 0.15s; }
.d3 { animation-delay: 0.25s; }
.d4 { animation-delay: 0.35s; }
.d5 { animation-delay: 0.45s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
}

/* ============================================================
   TITLE BLOCK / NAV — like an engineering drawing header
   ============================================================ */
.titleblock {
  border-bottom: 2px solid var(--ink);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 60;
}
.titleblock__strip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: stretch;
  border-bottom: 1px solid var(--rule);
}
.titleblock__project {
  padding: 0.85rem 1.5rem 0.85rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-right: 1px solid var(--rule);
}
.titleblock__project img {
  height: 28px;
  width: auto;
  display: block;
}
.titleblock__project .tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  line-height: 1.3;
}
.titleblock__project .tag strong { display: block; color: var(--ink); font-weight: 700; letter-spacing: 0.04em; }

.titleblock__meta {
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  border-right: 1px solid var(--rule);
}
.titleblock__meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.titleblock__meta strong { color: var(--ink); font-weight: 700; }
.titleblock__meta .sep { color: var(--rule-heavy); font-weight: 400; }
.titleblock__meta .status { color: var(--blue); font-weight: 700; }
.titleblock__meta .status::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  margin-right: 0.4rem;
  animation: pulse 2.2s ease-out infinite;
}

.titleblock__cta {
  padding: 0.85rem 0 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.toc {
  display: flex;
  align-items: stretch;
  padding: 0.6rem 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-2);
  overflow-x: auto;
  gap: 0;
}
.toc a {
  padding: 0.45rem 1rem;
  border-right: 1px solid var(--rule);
  transition: color 220ms var(--ease), background 220ms var(--ease);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.toc a:first-child { padding-left: 0; }
.toc a:last-child { border-right: none; }
.toc a .num { color: var(--blue); font-weight: 700; }
.toc a:hover { color: var(--ink); background: var(--blue-tint); }
.toc a.active { color: var(--ink); }
.toc a.active .num { color: var(--rust); }
.toc a.active::before {
  content: "●";
  color: var(--rust);
  font-size: 0.6rem;
  margin-right: 0.2rem;
}
@media (max-width: 900px) {
  .titleblock__meta { display: none; }
  .toc { font-size: 0.7rem; }
  .toc a { padding: 0.4rem 0.7rem; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.1rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  transition: all 200ms var(--ease);
  cursor: pointer;
  border-radius: 0;
  white-space: nowrap;
}
.btn:hover {
  background: var(--ink);
  color: var(--paper);
}
.btn::after { content: "→"; font-weight: 400; transition: transform 220ms var(--ease); }
.btn:hover::after { transform: translateX(3px); }

.btn--blue {
  border-color: var(--blue);
  color: var(--blue);
}
.btn--blue:hover { background: var(--blue); color: var(--paper); }

.btn--solid {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn--solid:hover { background: var(--blue); border-color: var(--blue); }

.btn--lg {
  padding: 0.85rem 1.4rem;
  font-size: 0.85rem;
}

/* ============================================================
   FIGURE HEADER — section "FIG. 01 — Title"
   ============================================================ */
.fig-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--ink);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  font-family: var(--mono);
}
.fig-header__num {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.fig-header__title {
  font-family: var(--sans);
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-transform: none;
}
.fig-header__meta {
  font-size: 0.7rem;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: right;
  line-height: 1.5;
}
.fig-header__meta strong { color: var(--ink); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
  position: relative;
}
.hero__top {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.75rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed var(--rule);
}
.hero__top .label { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero__top .label strong { color: var(--ink); font-weight: 700; }

.hero__headline {
  font-family: var(--sans);
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0 0 clamp(1.5rem, 3vw, 2.5rem);
  max-width: 16ch;
}
.hero__headline .blue {
  color: var(--blue);
  position: relative;
  font-weight: 700;
}
.hero__headline .blue::before,
.hero__headline .blue::after {
  content: "";
  position: absolute;
  background: var(--blue);
}
.hero__headline .blue::before {
  top: -0.1em;
  left: -0.12em;
  width: 0.3em;
  height: 2.5px;
}
.hero__headline .blue::after {
  bottom: 0.05em;
  right: -0.12em;
  width: 0.3em;
  height: 2.5px;
}

.hero__lede {
  font-size: clamp(1.08rem, 1.4vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 58ch;
  margin: 0 0 2rem;
}
.hero__lede strong { color: var(--ink); font-weight: 600; }

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

/* Dimension line — decorative rule with arrows and labels */
.dim-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 1.5rem 0;
}
.dim-line::before,
.dim-line::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--ink-4);
  max-width: 120px;
  position: relative;
}
.dim-line::before { background: linear-gradient(90deg, transparent, var(--ink-4)); }
.dim-line::after  { background: linear-gradient(90deg, var(--ink-4), transparent); }
.dim-line span { white-space: nowrap; }

/* ============================================================
   SCHEMATIC — flow diagram (for AI-SOP, process, etc)
   ============================================================ */
.schematic {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  position: relative;
  overflow: hidden;
}
.schematic::before,
.schematic::after,
.schematic__c1,
.schematic__c2 {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--ink);
  pointer-events: none;
}
.schematic::before { top: -1px; left: -1px; border-top: 2px solid; border-left: 2px solid; }
.schematic::after  { top: -1px; right: -1px; border-top: 2px solid; border-right: 2px solid; }
.schematic__c1     { position: absolute; bottom: -1px; left: -1px; border-bottom: 2px solid var(--ink); border-left: 2px solid var(--ink); width: 14px; height: 14px; }
.schematic__c2     { position: absolute; bottom: -1px; right: -1px; border-bottom: 2px solid var(--ink); border-right: 2px solid var(--ink); width: 14px; height: 14px; }
.schematic__drawing {
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--ink-2);
  white-space: pre;
  overflow-x: auto;
  padding: 0.5rem 0;
}
.schematic__drawing .label { color: var(--blue); font-weight: 600; }
.schematic__drawing .node { color: var(--ink); font-weight: 700; }
.schematic__drawing .arrow { color: var(--ink-3); }
.schematic__drawing .dim { color: var(--ink-4); }
.schematic__drawing .warn { color: var(--rust); font-weight: 600; }

/* ============================================================
   ELEVATION CARD — service / feature as technical elevation
   ============================================================ */
.elevation {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
@media (max-width: 820px) {
  .elevation { grid-template-columns: 1fr; }
}
.elev {
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  position: relative;
  transition: background 200ms var(--ease);
}
.elev + .elev { border-left: none; }
.elev:nth-child(n+3) { border-top: none; }
@media (max-width: 820px) {
  .elev + .elev { border-left: 1px solid var(--ink); border-top: none; }
}
.elev:hover { background: var(--paper-2); }
.elev__num {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--blue);
  padding: 0.15rem 0.45rem;
}
.elev__type {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}
.elev__type::before { content: "//"; color: var(--blue); margin-right: 0.4rem; }
.elev h3 {
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.65rem;
  letter-spacing: -0.015em;
  line-height: 1.2;
  max-width: 90%;
}
.elev p {
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0 0 1rem;
  max-width: 50ch;
}
.elev__includes {
  border-top: 1px dashed var(--rule);
  padding-top: 0.85rem;
  margin-top: 1rem;
}
.elev__includes h5 {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 0.55rem;
}
.elev__includes ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.35rem;
  font-family: var(--mono);
  font-size: 0.78rem;
}
.elev__includes li {
  color: var(--ink-2);
  display: flex;
  gap: 0.55rem;
  align-items: baseline;
}
.elev__includes li::before {
  content: "▸";
  color: var(--blue);
  font-size: 0.72rem;
}

.elev--featured {
  background: var(--ink);
  color: var(--paper);
}
.elev--featured:hover { background: var(--ink-2); }
.elev--featured .elev__num { color: var(--blue-3); border-color: var(--blue-3); }
.elev--featured .elev__type { color: var(--blue-3); }
.elev--featured .elev__type::before { color: var(--blue-3); }
.elev--featured h3 { color: var(--paper); }
.elev--featured p { color: rgba(241, 235, 217, 0.75); }
.elev--featured .elev__includes { border-top-color: rgba(241, 235, 217, 0.2); }
.elev--featured .elev__includes h5 { color: rgba(241, 235, 217, 0.5); }
.elev--featured .elev__includes li { color: rgba(241, 235, 217, 0.82); }
.elev--featured .elev__includes li::before { color: var(--blue-3); }
.elev--featured .elev__popular {
  position: absolute;
  top: 0.75rem;
  left: 1rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--blue-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.55rem;
}

/* ============================================================
   PROCESS / PIPELINE — 5 step horizontal flow chart
   ============================================================ */
.flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 1px solid var(--ink);
}
@media (max-width: 1000px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .flow { grid-template-columns: 1fr; } }

.flow__node {
  padding: clamp(1.25rem, 2vw, 1.5rem);
  border-right: 1px solid var(--ink);
  background: var(--paper);
  position: relative;
  transition: background 220ms var(--ease);
}
.flow__node:last-child { border-right: none; }
.flow__node:hover { background: var(--blue-tint); }
@media (max-width: 1000px) {
  .flow__node { border-bottom: 1px solid var(--ink); }
  .flow__node:nth-child(2n) { border-right: none; }
  .flow__node:nth-last-child(-n+2):nth-child(odd) { border-bottom: none; }
}
@media (max-width: 560px) {
  .flow__node { border-right: none !important; border-bottom: 1px solid var(--ink); }
  .flow__node:last-child { border-bottom: none; }
}
.flow__num {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.flow__num .dim {
  color: var(--ink-4);
  font-weight: 400;
}
.flow__name {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.5rem;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
.flow__desc {
  font-size: 0.85rem;
  color: var(--ink-2);
  line-height: 1.5;
  margin: 0;
}

/* ============================================================
   TIMELINE (How We Work detail) — vertical stepped drawing
   ============================================================ */
.timeline {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 0;
}
.tl-step {
  display: grid;
  grid-template-columns: 140px 1fr 1fr;
  gap: 0;
  border: 1px solid var(--ink);
  border-bottom: none;
  background: var(--paper);
  transition: background 220ms var(--ease);
}
.tl-step:last-child { border-bottom: 1px solid var(--ink); }
.tl-step:hover { background: var(--paper-2); }
@media (max-width: 820px) {
  .tl-step { grid-template-columns: 1fr; }
}
.tl-step__num {
  padding: 1.5rem 1.25rem;
  border-right: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.5rem;
}
.tl-step__num .big {
  font-family: var(--sans);
  font-size: 3rem;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--blue-3);
}
.tl-step__num .label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(241, 235, 217, 0.65);
}
@media (max-width: 820px) {
  .tl-step__num { border-right: none; border-bottom: 1px solid var(--ink); flex-direction: row; align-items: center; padding: 1rem 1.25rem; }
}
.tl-step__body {
  padding: 1.5rem 1.5rem;
  border-right: 1px solid var(--rule);
}
.tl-step__body h3 {
  font-family: var(--sans);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.65rem;
  letter-spacing: -0.02em;
}
.tl-step__body p {
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0;
}
.tl-step__deliverable {
  padding: 1.5rem 1.5rem;
  background: var(--blue-tint);
  font-family: var(--mono);
}
.tl-step__deliverable .label {
  font-size: 0.64rem;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.tl-step__deliverable .label::before { content: "◇"; font-size: 0.6rem; }
.tl-step__deliverable .item {
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  margin: 0;
}
@media (max-width: 820px) {
  .tl-step__body { border-right: none; border-bottom: 1px dashed var(--rule); }
}

/* ============================================================
   CALLOUT — annotation with leader line
   ============================================================ */
.callout {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  max-width: 30ch;
}
.callout::before {
  content: "";
  flex: 0 0 auto;
  width: 30px;
  height: 1px;
  background: var(--blue);
  margin-top: 0.65em;
}
.callout strong { color: var(--ink); font-weight: 700; }

/* ============================================================
   NODE DIAGRAM — simple SVG for hero / visual flow
   ============================================================ */
.node-diagram {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  position: relative;
}
.node-diagram__label {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: space-between;
}
.node-diagram__label strong { color: var(--ink); }
.node-diagram svg {
  width: 100%;
  height: auto;
  display: block;
}
.node-diagram svg text {
  font-family: var(--mono);
  font-size: 11px;
  fill: var(--ink-2);
}
.node-diagram svg .node-label {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  fill: var(--ink);
}
.node-diagram svg .accent { fill: var(--blue); }

/* ============================================================
   STAT ROW — KPI cards as technical specs
   ============================================================ */
.specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--ink);
}
@media (max-width: 900px) { .specs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .specs { grid-template-columns: 1fr; } }
.spec {
  padding: 1.5rem 1.25rem;
  border-right: 1px solid var(--ink);
  position: relative;
}
.spec:last-child { border-right: none; }
@media (max-width: 900px) {
  .spec { border-bottom: 1px solid var(--ink); }
  .spec:nth-child(2n) { border-right: none; }
  .spec:nth-last-child(-n+2):nth-child(odd) { border-bottom: none; }
}
@media (max-width: 540px) {
  .spec { border-right: none !important; border-bottom: 1px solid var(--ink); }
  .spec:last-child { border-bottom: none; }
}
.spec__key {
  font-family: var(--mono);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin-bottom: 0.45rem;
}
.spec__value {
  font-family: var(--sans);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.35rem;
}
.spec__value .blue { color: var(--blue); }
.spec__note {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ============================================================
   TEAM LEGEND / VALUES
   ============================================================ */
.legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--ink);
}
@media (max-width: 820px) { .legend { grid-template-columns: 1fr; } }
.legend__item {
  padding: clamp(1.5rem, 2.5vw, 2rem);
  border-right: 1px solid var(--ink);
}
.legend__item:last-child { border-right: none; }
@media (max-width: 820px) {
  .legend__item { border-right: none; border-bottom: 1px solid var(--ink); }
  .legend__item:last-child { border-bottom: none; }
}
.legend__key {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.legend__key::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--blue);
}
.legend__item h3 {
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.5rem;
  letter-spacing: -0.015em;
}
.legend__item p {
  font-size: 0.92rem;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0;
}

/* ============================================================
   BIG QUOTE — framed like a watermark on a drawing
   ============================================================ */
.quote {
  border: 1.5px solid var(--ink);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3rem);
  text-align: center;
  position: relative;
  background: var(--paper);
}
.quote::before,
.quote::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: var(--blue);
}
.quote::before { top: -1px; left: -1px; border-top: 2px solid; border-left: 2px solid; }
.quote::after  { top: -1px; right: -1px; border-top: 2px solid; border-right: 2px solid; }
.quote__mark {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}
.quote__text {
  font-family: var(--sans);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 auto;
  max-width: 28ch;
  text-wrap: balance;
}
.quote__rev {
  margin-top: 1.5rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================================
   ORIGIN / FOUNDER CARD
   ============================================================ */
.origin {
  border: 1px solid var(--ink);
  background: var(--paper);
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  max-width: 1000px;
  margin: 0 auto;
}
@media (max-width: 820px) { .origin { grid-template-columns: 1fr; } }
.origin__portrait {
  padding: 1.5rem;
  border-right: 1px solid var(--ink);
  background: var(--paper-2);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
}
@media (max-width: 820px) {
  .origin__portrait { border-right: none; border-bottom: 1px solid var(--ink); min-height: 200px; }
}
.origin__portrait::before {
  content: "PORTRAIT / REF 001";
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--ink-3);
  letter-spacing: 0.08em;
}
.origin__portrait::after {
  content: "NO PHOTO ON FILE";
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--rust);
  letter-spacing: 0.06em;
}
.origin__portrait .initials {
  font-family: var(--sans);
  font-size: 5rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -0.04em;
  line-height: 1;
}
.origin__body {
  padding: clamp(1.75rem, 3vw, 2.5rem);
}
.origin__label {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}
.origin__body h3 {
  font-family: var(--sans);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 1rem;
  letter-spacing: -0.018em;
}
.origin__body p {
  font-size: 0.98rem;
  color: var(--ink-2);
  line-height: 1.65;
  margin: 0 0 1rem;
}
.origin__body p.emph { color: var(--ink); font-weight: 600; border-left: 2px solid var(--blue); padding-left: 0.85rem; margin-left: -0.85rem; }

/* ============================================================
   CTA BLOCK — centered callout
   ============================================================ */
.cta-block {
  padding: clamp(3rem, 5vw, 4.5rem) 0;
}
.cta-block__wrap {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  border: 1.5px solid var(--ink);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3rem);
  background: var(--paper);
  position: relative;
}
.cta-block__wrap::before,
.cta-block__wrap::after,
.cta-block__wrap > .c1,
.cta-block__wrap > .c2 {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--blue);
}
.cta-block__wrap::before { top: -1px; left: -1px; border-top: 2.5px solid; border-left: 2.5px solid; }
.cta-block__wrap::after  { top: -1px; right: -1px; border-top: 2.5px solid; border-right: 2.5px solid; }
.cta-block__wrap .c1     { bottom: -1px; left: -1px; border-bottom: 2.5px solid var(--blue); border-left: 2.5px solid var(--blue); }
.cta-block__wrap .c2     { bottom: -1px; right: -1px; border-bottom: 2.5px solid var(--blue); border-right: 2.5px solid var(--blue); }
.cta-block__label {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.cta-block h2 {
  font-family: var(--sans);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.028em;
  color: var(--ink);
  margin: 0 0 1rem;
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}
.cta-block p {
  font-size: 1.05rem;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0 auto 1.75rem;
  max-width: 52ch;
  text-wrap: balance;
}
.cta-block__cta {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   FOOTER / TITLE BLOCK TABLE — full engineering drawing title block
   ============================================================ */
.title-block {
  border-top: 2px solid var(--ink);
  background: var(--paper);
  margin-top: 3rem;
}
.title-block__table {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-bottom: 1px solid var(--ink);
}
@media (max-width: 900px) { .title-block__table { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .title-block__table { grid-template-columns: repeat(2, 1fr); } }
.tb-cell {
  padding: 0.85rem 1rem;
  border-right: 1px solid var(--ink);
  font-family: var(--mono);
}
.tb-cell:last-child { border-right: none; }
.tb-cell .k {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
  display: block;
}
.tb-cell .v {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.3;
}
.tb-cell .v.blue { color: var(--blue); }
.tb-cell .v.rust { color: var(--rust); }

.title-block__lower {
  padding: 0.85rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-wrap: wrap;
  gap: 0.75rem;
  border-bottom: 1px solid var(--ink);
}
.title-block__lower a { color: var(--blue); }
.title-block__lower a:hover { text-decoration: underline; }
.title-block__sig {
  padding: 0.85rem 1rem;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--ink-4);
  letter-spacing: 0.06em;
}

/* ============================================================
   SECTION SPACING
   ============================================================ */
.section {
  padding: clamp(3.5rem, 6vw, 5.5rem) 0;
}
.section + .section { border-top: 1px dashed var(--rule); }

/* ============================================================
   PROSE (for text-heavy pages)
   ============================================================ */
.prose {
  max-width: 720px;
  margin: 0 auto;
}
.prose p {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0 0 1.25rem;
}
.prose p:first-of-type { font-size: 1.15rem; color: var(--ink); }
.prose h3 {
  font-family: var(--sans);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  margin: 2.5rem 0 0.85rem;
  letter-spacing: -0.018em;
}
