/* ==========================================================================
   VectorCraft Labs v2: creative infrastructure lab
   Engineered precision. Gunmetal / deep teal / etched gold.
   ========================================================================== */

:root {
  /* surfaces */
  --bg:        #101317;
  --bg-2:      #14181d;
  --bg-3:      #181d22;
  --panel:     #1c2228;
  --panel-2:   #232a32;
  --panel-3:   #2b333c;
  --plate-1:   #d7dcdf;
  --plate-2:   #aab2b7;

  /* brand */
  --charcoal:   #333333;
  --gunmetal:   #1a1c1e;
  --gunmetal-2: #2a2d30;
  --teal:       #0f3b46;
  --teal-2:     #114e5a;
  --teal-line:  #2e7d86;
  --teal-glow:  rgba(46,125,134,.22);
  --gold:       #c9a35a;
  --gold-hi:    #e2bd76;
  --gold-soft:  rgba(201,163,90,.15);

  /* ink */
  --text:   #e8e9ea;
  --muted:  #99a3ab;
  --faint:  #6c757d;
  --dim:    #4a525a;
  --hair:   rgba(255,255,255,0.09);
  --hair-2: rgba(255,255,255,0.05);

  /* status chip colors */
  --st-live:        #4ec59a;
  --st-building:    #c9a35a;
  --st-prototype:   #6aa9c9;
  --st-internal:    #99a3ab;
  --st-public:      #4ec59a;
  --st-gated:       #c97f5a;
  --st-experiment:  #b78cc9;
  --st-concept:     #6c757d;
  --st-archived:    #4a525a;

  /* variant swatches */
  --var-core-a:    #1a1c1e;
  --var-core-b:    #0f3b46;
  --var-core-c:    #c9a35a;
  --var-vars-a:    #14233e;
  --var-vars-b:    #d8c69a;
  --var-vars-c:    #b03a3a;
  --var-kids-a:    #f3ead7;
  --var-kids-b:    #e08b54;
  --var-kids-c:    #4e8aa3;
  --var-retro-a:   #1a0f2e;
  --var-retro-b:   #ff3ea5;
  --var-retro-c:   #2bdfe6;
  --var-fab-a:     #2a2622;
  --var-fab-b:     #d18a3c;
  --var-fab-c:     #8a8f95;

  --font-display: 'Saira', system-ui, sans-serif;
  --font-body:    'IBM Plex Sans', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, monospace;

  --maxw: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-2: cubic-bezier(.65,0,.35,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* layered industrial background */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 600px at 88% -8%, var(--teal-glow), transparent 60%),
    radial-gradient(700px 500px at -5% 105%, rgba(15,59,70,0.30), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--hair-2) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hair-2) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 85%);
  opacity: .7;
}
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- type ---------- */
h1,h2,h3,h4 {
  font-family: var(--font-display);
  font-weight: 700; line-height: 1.05; margin: 0;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.2em; }
li { margin: .35em 0; color: var(--muted); }
strong { color: var(--text); font-weight: 600; }
code, kbd, samp {
  font-family: var(--font-mono); font-size: .92em;
  background: rgba(255,255,255,.04); padding: 1px 6px; border-radius: 3px;
  color: var(--gold-hi);
}

.kicker {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .28em;
  text-transform: uppercase; color: var(--gold);
  display: inline-flex; align-items: center; gap: 10px;
}
.kicker::before {
  content: ""; width: 28px; height: 1px; background: var(--gold); display: inline-block;
}
.section-no {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .25em;
  color: var(--faint); text-transform: uppercase;
}
.meta {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .18em;
  color: var(--faint); text-transform: uppercase;
}

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
section { position: relative; padding-block: clamp(72px, 12vh, 140px); }
.rule { height: 1px; background: var(--hair); border: 0; margin: 0; }
.rule.gold { background: linear-gradient(90deg, var(--gold), transparent 70%); height: 2px; }
.divider {
  display: flex; align-items: center; gap: 14px; margin: 48px 0;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .25em;
  color: var(--faint); text-transform: uppercase;
}
.divider::before, .divider::after {
  content: ""; flex: 1; height: 1px; background: var(--hair);
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 28px); }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(14,17,21,0.78);
  border-bottom: 1px solid var(--hair);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand .plate {
  display: grid; place-items: center;
  padding: 7px 12px; border-radius: 3px;
  background: linear-gradient(160deg, var(--plate-1), var(--plate-2));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -2px 4px rgba(0,0,0,.25), 0 2px 10px rgba(0,0,0,.35);
}
.brand .plate img { height: 26px; display: block; }
.brand .wordmark {
  font-family: var(--font-display); font-weight: 700;
  letter-spacing: .04em; font-size: 17px;
}
.brand .wordmark span { color: var(--muted); font-weight: 600; }

.menu { display: flex; align-items: center; gap: 26px; }
.menu a {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); padding: 6px 0; position: relative;
  transition: color .25s var(--ease);
}
.menu a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  height: 2px; width: 0; background: var(--gold);
  transition: width .3s var(--ease);
}
.menu a:hover, .menu a[aria-current="page"] { color: var(--text); }
.menu a:hover::after, .menu a[aria-current="page"]::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; }

/* ---------- buttons ---------- */
.btn {
  font-family: var(--font-mono); font-size: 12.5px;
  letter-spacing: .16em; text-transform: uppercase;
  padding: 12px 20px; border-radius: 3px;
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--gold); color: var(--gold); background: transparent;
  transition: all .25s var(--ease); cursor: pointer;
}
.btn:hover { background: var(--gold); color: #1a1407; }
.btn--solid { background: var(--gold); color: #1a1407; }
.btn--solid:hover { background: var(--gold-hi); border-color: var(--gold-hi); }
.btn--ghost { border-color: var(--hair); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- hero (home) ---------- */
.hero { padding-top: clamp(60px, 9vh, 110px); padding-bottom: clamp(60px, 10vh, 120px); }
.hero .wrap { display: grid; grid-template-columns: 1.4fr .9fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero-head {
  font-size: clamp(2.6rem, 7.5vw, 6.4rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.98;
}
.hero-head .ln { display: block; overflow: hidden; }
.hero-head em { font-style: normal; color: var(--gold); }
.etch { height: 3px; background: linear-gradient(90deg, var(--gold), transparent); transform-origin: left; margin: 26px 0; }
.hero-sub {
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  color: var(--muted); max-width: 54ch;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

/* hero pillar card grid (right of home hero) */
.pillars {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  position: relative; padding: 18px;
  border: 1px solid var(--hair); border-radius: 4px;
  background: linear-gradient(180deg, rgba(38,46,54,.5), rgba(20,24,28,.4));
}
.pillars::before, .pillars::after {
  content: ""; position: absolute; width: 14px; height: 14px;
  border: 1px solid var(--gold); opacity: .6;
}
.pillars::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.pillars::after { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }
.pillar {
  border: 1px solid var(--hair-2); border-radius: 3px;
  padding: 14px; background: rgba(0,0,0,.18);
}
.pillar .pno {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: .22em; color: var(--gold); text-transform: uppercase;
}
.pillar .pn {
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  margin: 6px 0 0; text-transform: uppercase; letter-spacing: -.01em;
}
.pillar .pd {
  font-size: 12.5px; color: var(--muted); margin: 6px 0 0; line-height: 1.45;
}

/* ---------- page hero (interior pages) ---------- */
.phero { padding-top: clamp(56px, 9vh, 96px); padding-bottom: clamp(30px, 5vh, 56px); }
.phero .crumb {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: .2em; color: var(--faint); text-transform: uppercase;
  margin-bottom: 18px;
}
.phero .crumb a:hover { color: var(--gold); }
.phero h1 {
  font-size: clamp(2.4rem, 6.5vw, 5rem);
  text-transform: uppercase;
}
.phero .lead {
  color: var(--muted); max-width: 60ch;
  margin-top: 18px; font-size: 1.1rem;
}

/* ---------- proof strip ---------- */
.proof { border-block: 1px solid var(--hair); background: rgba(0,0,0,.18); }
.proof .wrap { display: flex; flex-wrap: wrap; gap: 0; }
.proof .stat { flex: 1 1 220px; padding: 26px 28px; border-left: 1px solid var(--hair); }
.proof .stat:first-child { border-left: 0; padding-left: 0; }
.proof .num { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; }
.proof .num em { color: var(--gold); font-style: normal; }
.proof .lbl {
  font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}

/* ---------- section heading ---------- */
.head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 44px; flex-wrap: wrap; }
.head h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); text-transform: uppercase; }
.head .lead { color: var(--muted); max-width: 44ch; }

/* ---------- capability cards (5-up grid on home) ---------- */
.caps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.cap {
  position: relative; border: 1px solid var(--hair); border-radius: 4px;
  padding: 22px 20px; background: linear-gradient(180deg, var(--panel), var(--bg-2));
  transition: transform .35s var(--ease), border-color .35s var(--ease);
  display: flex; flex-direction: column; gap: 12px;
}
.cap:hover { transform: translateY(-4px); border-color: rgba(201,163,90,.45); }
.cap .ix {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .22em; color: var(--gold); text-transform: uppercase;
}
.cap h3 {
  font-size: 1.15rem; text-transform: uppercase;
  letter-spacing: -.005em;
}
.cap p { color: var(--muted); font-size: 14.5px; margin: 0; line-height: 1.55; }

/* ---------- build cards (Builds page + Featured Build on home) ---------- */
.builds {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: clamp(20px, 3vw, 28px);
}
.bld {
  position: relative; border: 1px solid var(--hair); border-radius: 5px; overflow: hidden;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  transition: transform .35s var(--ease), border-color .35s var(--ease);
  display: flex; flex-direction: column;
}
.bld:hover { transform: translateY(-6px); border-color: rgba(201,163,90,.5); }
.bld .media {
  height: 200px; background: var(--panel-2);
  position: relative; overflow: hidden;
}
.bld .media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  transition: transform .5s var(--ease);
}
.bld:hover .media img { transform: scale(1.04); }
.bld .media .ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .2em;
  color: var(--faint); text-transform: uppercase;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 12px, transparent 12px 24px),
    radial-gradient(400px 200px at 70% 0%, var(--teal-glow), transparent 70%);
}
.bld .body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.bld .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.bld h3 { font-size: 1.35rem; text-transform: uppercase; margin: 4px 0 0; }
.bld p { color: var(--muted); margin: 0; font-size: 14.5px; }
.bld .link {
  margin-top: auto; padding-top: 14px;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--text); position: relative; display: inline-flex; gap: 8px; align-self: flex-start;
}
.bld .link::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  height: 2px; width: 0; background: var(--gold);
  transition: width .3s var(--ease);
}
.bld:hover .link::after { width: 100%; }

/* featured build (home): wider single panel */
.feature {
  position: relative; border: 1px solid var(--hair); border-radius: 5px; overflow: hidden;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  display: grid; grid-template-columns: 1fr 1fr;
}
.feature .media {
  position: relative; min-height: 360px;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 12px, transparent 12px 24px),
    radial-gradient(420px 240px at 30% 30%, var(--teal-glow), transparent 70%),
    linear-gradient(180deg, var(--panel-2), var(--bg-3));
  display: grid; place-items: center;
  overflow: hidden;
}
.feature .media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
.feature .media .lbl-tag {
  position: absolute; top: 16px; left: 16px;
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: .22em; color: var(--gold);
  text-transform: uppercase;
  padding: 5px 10px; border: 1px solid var(--gold);
  background: rgba(14,17,21,.72); backdrop-filter: blur(6px);
  border-radius: 2px;
  z-index: 2;
}
.feature .media .lbl {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.02em;
  text-transform: uppercase;
  color: var(--text); opacity: .95;
  background: linear-gradient(180deg, var(--text), var(--muted) 130%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 0 20px; text-align: center;
}
.feature .media .lbl small {
  display: block; -webkit-text-fill-color: var(--gold); color: var(--gold);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .25em;
  margin-bottom: 12px; font-weight: 500;
}
.feature .body { padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.feature h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); text-transform: uppercase; margin: 4px 0 0; }
.feature .row { display: flex; gap: 8px; flex-wrap: wrap; }
.feature p { color: var(--muted); margin: 0; }
.feature .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }

/* ---------- status chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: .2em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 2px;
  border: 1px solid currentColor; opacity: .9;
}
.chip::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; flex-shrink: 0;
}
.chip.live      { color: var(--st-live); }
.chip.building  { color: var(--st-building); }
.chip.prototype { color: var(--st-prototype); }
.chip.internal  { color: var(--st-internal); }
.chip.public    { color: var(--st-public); }
.chip.gated     { color: var(--st-gated); }
.chip.experiment{ color: var(--st-experiment); }
.chip.concept   { color: var(--st-concept); }
.chip.archived  { color: var(--st-archived); }
.chip.cat       { color: var(--muted); border-color: var(--hair); opacity: .8; }
.chip.cat::before { background: var(--teal-line); }

/* build filter (Builds page) */
.filter {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px;
  padding: 14px 0; border-bottom: 1px solid var(--hair);
}
.filter .fbtn {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .18em; text-transform: uppercase;
  background: transparent; border: 1px solid var(--hair);
  color: var(--muted); padding: 7px 12px; border-radius: 3px;
  cursor: pointer; transition: all .2s var(--ease);
}
.filter .fbtn:hover { color: var(--text); border-color: var(--text); }
.filter .fbtn[aria-pressed="true"] { background: var(--gold); color: #1a1407; border-color: var(--gold); }

/* ---------- design variants (5-up) ---------- */
.variants { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.var {
  position: relative; border: 1px solid var(--hair); border-radius: 4px; overflow: hidden;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.var:hover { transform: translateY(-4px); border-color: rgba(201,163,90,.4); }
.var .swatch {
  height: 110px; position: relative;
  display: flex; align-items: flex-end; padding: 14px;
}
.var .swatch .name {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: 1.2rem; letter-spacing: -.005em;
  text-shadow: 0 1px 2px rgba(0,0,0,.45);
}
.var .swatch .dots { position: absolute; top: 12px; right: 12px; display: flex; gap: 5px; }
.var .swatch .dot { width: 11px; height: 11px; border-radius: 50%; border: 1px solid rgba(0,0,0,.25); }
.var .body { padding: 16px 18px 20px; }
.var .ix {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: .22em; color: var(--faint); text-transform: uppercase;
}
.var p { font-size: 13.5px; color: var(--muted); margin: 8px 0 0; line-height: 1.5; }
.var .uses {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .14em; color: var(--gold); text-transform: uppercase;
  margin: 12px 0 0;
}

/* variant swatch backgrounds */
.var.core   .swatch { background: linear-gradient(135deg, var(--var-core-a), var(--var-core-b)); color: var(--var-core-c); }
.var.varsity .swatch { background: linear-gradient(135deg, var(--var-vars-a), #1f3863); color: var(--var-vars-b); }
.var.kids   .swatch { background: linear-gradient(135deg, var(--var-kids-a), #e8d8af); color: #2a2a2a; }
.var.kids   .swatch .name { text-shadow: 0 1px 2px rgba(255,255,255,.4); }
.var.retro  .swatch { background: linear-gradient(135deg, var(--var-retro-a), #4a155a); color: var(--var-retro-b); }
.var.fab    .swatch { background: linear-gradient(135deg, var(--var-fab-a), #4a3f33); color: var(--var-fab-b); }

/* ---------- systems / Foreman card with diagram ---------- */
.system-card {
  position: relative;
  border: 1px solid var(--hair); border-radius: 5px;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  padding: clamp(28px, 4vw, 44px);
  overflow: hidden;
}
.system-card::before, .system-card::after {
  content: ""; position: absolute; width: 18px; height: 18px;
  border: 1px solid var(--gold); opacity: .55;
}
.system-card::before { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.system-card::after { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }
.system-card .head { margin-bottom: 28px; }

/* system diagram (Systems page) */
.diagram {
  border: 1px solid var(--hair); border-radius: 5px;
  background: rgba(0,0,0,.22); padding: 28px;
  display: grid; grid-template-columns: 1fr; gap: 16px;
  font-family: var(--font-mono);
}
.dn { display: grid; grid-template-columns: 110px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--hair-2); border-radius: 4px; background: rgba(255,255,255,.02); }
.dn .id { color: var(--gold); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; }
.dn .nm { color: var(--text); font-size: 14px; letter-spacing: .04em; }
.dn .st { color: var(--faint); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }

/* ---------- services (indexed rows from v1, kept) ---------- */
.svc { display: grid; gap: 0; }
.svc-row {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 24px; align-items: center;
  padding: 28px 4px; border-top: 1px solid var(--hair);
  transition: background .3s var(--ease), padding .3s var(--ease);
}
.svc-row:last-child { border-bottom: 1px solid var(--hair); }
.svc-row .ix { font-family: var(--font-mono); color: var(--gold); font-size: 13px; letter-spacing: .15em; }
.svc-row h3 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); text-transform: uppercase; }
.svc-row p { margin: 6px 0 0; color: var(--muted); max-width: 60ch; }
.svc-row .go { font-family: var(--font-mono); font-size: 12px; letter-spacing: .15em; color: var(--faint); text-transform: uppercase; white-space: nowrap; }
.svc-row:hover { background: linear-gradient(90deg, var(--gold-soft), transparent); padding-left: 18px; }
.svc-row:hover .go { color: var(--gold); }

/* service category panel (Services page) */
.svc-cat {
  border: 1px solid var(--hair); border-radius: 5px;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  padding: clamp(24px, 3vw, 36px);
}
.svc-cat .ix {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .25em; color: var(--gold); text-transform: uppercase;
}
.svc-cat h3 { font-size: 1.5rem; text-transform: uppercase; margin: 8px 0 12px; }
.svc-cat ul { list-style: none; padding: 0; margin: 0; }
.svc-cat ul li {
  padding: 8px 0; border-top: 1px dashed var(--hair);
  font-size: 14.5px; color: var(--muted);
  display: flex; align-items: center; gap: 10px;
}
.svc-cat ul li::before {
  content: ""; width: 8px; height: 1px; background: var(--gold); flex-shrink: 0;
}
.svc-cat ul li:first-child { border-top: 0; }

/* ---------- build log list ---------- */
.log {
  display: grid; gap: 0;
  border-top: 1px solid var(--hair);
}
.log-entry {
  display: grid; grid-template-columns: 160px 1fr auto;
  gap: 28px; padding: 24px 4px;
  border-bottom: 1px solid var(--hair);
  align-items: start;
  transition: background .3s var(--ease), padding .3s var(--ease);
}
.log-entry:hover { background: linear-gradient(90deg, var(--gold-soft), transparent); padding-left: 18px; }
.log-entry .date {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .14em; color: var(--gold); text-transform: uppercase;
  padding-top: 4px;
}
.log-entry h3 { font-size: 1.2rem; text-transform: uppercase; margin: 0 0 6px; }
.log-entry p { color: var(--muted); margin: 0; font-size: 14.5px; }
.log-entry .row { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

/* ---------- gates / principles list ---------- */
.gates {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.gate {
  border: 1px solid var(--hair); border-radius: 4px;
  padding: 22px 20px; background: rgba(0,0,0,.16);
  display: flex; flex-direction: column; gap: 10px;
}
.gate .ix {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .22em; color: var(--gold); text-transform: uppercase;
}
.gate h4 { font-size: 1.05rem; text-transform: uppercase; }
.gate p { color: var(--muted); margin: 0; font-size: 14px; line-height: 1.55; }

/* ---------- CTA band ---------- */
.cta { text-align: left; }
.cta .wrap {
  display: grid; grid-template-columns: 1fr auto;
  gap: 30px; align-items: center;
  padding-top: clamp(60px,9vh,110px);
}
.cta h2 { font-size: clamp(2.2rem, 5vw, 4rem); text-transform: uppercase; }
.cta p { color: var(--muted); margin: 10px 0 0; max-width: 56ch; }

/* ---------- contact form ---------- */
.form {
  display: grid; gap: 18px;
  border: 1px solid var(--hair); border-radius: 5px;
  padding: clamp(24px, 3vw, 36px);
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
}
.field { display: grid; gap: 6px; }
.field label {
  font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: .2em; color: var(--gold); text-transform: uppercase;
}
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 15px;
  background: rgba(0,0,0,.32); color: var(--text);
  border: 1px solid var(--hair); border-radius: 3px;
  padding: 12px 14px; outline: none;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold); background: rgba(0,0,0,.5);
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .submit { display: flex; gap: 14px; align-items: center; margin-top: 6px; }
.form .submit small { color: var(--faint); font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }

/* contact panel sidekick */
.contact-side {
  display: flex; flex-direction: column; gap: 22px;
}
.contact-side .block {
  border: 1px solid var(--hair); border-radius: 4px;
  padding: 22px; background: rgba(0,0,0,.18);
}
.contact-side h4 {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .25em;
  color: var(--faint); text-transform: uppercase; margin: 0 0 10px;
}
.contact-side p { color: var(--muted); margin: 0; font-size: 14.5px; }
.contact-side a { color: var(--gold); }
.contact-side a:hover { color: var(--gold-hi); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--hair); padding-block: 54px; margin-top: 40px; }
.foot .wrap { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; }
.foot .col h5 {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .22em; color: var(--faint); text-transform: uppercase;
  margin: 0 0 16px;
}
.foot a { color: var(--muted); display: block; padding: 4px 0; transition: color .2s var(--ease); }
.foot a:hover { color: var(--gold); }
.foot .blurb { color: var(--muted); max-width: 36ch; margin-top: 14px; font-size: 14.5px; }
.colophon {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--hair);
  font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: .12em; color: var(--faint); text-transform: uppercase;
}

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
[data-d="1"]{ transition-delay:.08s } [data-d="2"]{ transition-delay:.16s } [data-d="3"]{ transition-delay:.24s }
[data-d="4"]{ transition-delay:.32s } [data-d="5"]{ transition-delay:.40s } [data-d="6"]{ transition-delay:.48s }
.etch { transform: scaleX(0); }
.etch.in { transition: transform .9s var(--ease) .3s; transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .etch { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .caps { grid-template-columns: repeat(3, 1fr); }
  .variants { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .pillars { order: 2; }
  .feature { grid-template-columns: 1fr; }
  .feature .media { min-height: 220px; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .caps { grid-template-columns: 1fr 1fr; }
  .variants { grid-template-columns: 1fr 1fr; }
  .foot .wrap { grid-template-columns: 1fr 1fr; }
  .cta .wrap { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .log-entry { grid-template-columns: 110px 1fr; }
  .log-entry .row { grid-column: 2; }
}
@media (max-width: 680px) {
  .menu { position: fixed; inset: 76px 0 auto 0; flex-direction: column; gap: 0;
    background: rgba(14,17,21,.97); border-bottom: 1px solid var(--hair); padding: 8px var(--gutter) 20px;
    transform: translateY(-120%); transition: transform .35s var(--ease); }
  .menu.open { transform: none; }
  .menu a { width: 100%; padding: 14px 0; border-top: 1px solid var(--hair); }
  .menu .btn { margin-top: 12px; justify-content: center; }
  .nav-toggle { display: inline-flex; }
  .svc-row { grid-template-columns: 40px 1fr; }
  .svc-row .go { display: none; }
  .foot .wrap { grid-template-columns: 1fr; }
  .proof .stat { flex-basis: 100%; border-left: 0; padding-left: 0; border-top: 1px solid var(--hair); }
  .proof .stat:first-child { border-top: 0; }
  .caps, .variants { grid-template-columns: 1fr; }
  .log-entry { grid-template-columns: 1fr; gap: 8px; padding: 18px 0; }
  .log-entry .row { grid-column: 1; }
}
