/* ════════════════════════════════════════════════════════════
   CSINTEL — main.css
   DOC NO. CSI-2026-CSS-01 · REV 05 · DARK TECHNICAL
   Engineering drawing sheet aesthetic. No gradients. No orbs.
   ════════════════════════════════════════════════════════════ */

:root {
  --bg:            #0A0A0A;
  --surface:       #111111;
  --surface-2:     #161614;
  --accent:        #E8521A;
  --accent-dim:    rgba(232, 82, 26, 0.14);
  --amber:         #F59E0B;
  --ok:            #4ADE80;
  --text:          #F0EDE8;
  --text-muted:    #9A9288;
  --text-faint:    #5C564E;
  --border:        rgba(240, 237, 232, 0.10);
  --border-strong: rgba(240, 237, 232, 0.22);
  --mono:          'IBM Plex Mono', 'Courier New', monospace;
  --sans:          'Space Grotesk', -apple-system, sans-serif;
  --frame:         14px;
  --nav-h:         58px;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* faint graph-paper ground — works without JS */
  background-image:
    linear-gradient(rgba(240,237,232,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240,237,232,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
}

::selection { background: var(--accent); color: #0A0A0A; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2A2722; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

a { color: var(--accent); }

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

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Skip link ── */
.skip-link {
  position: absolute;
  top: -48px;
  left: var(--frame);
  z-index: 200;
  background: var(--accent);
  color: #0A0A0A;
  font-family: var(--mono);
  font-size: 0.75rem;
  padding: 10px 16px;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: var(--frame); }

/* ════════════════════════════════════════
   DRAWING SHEET FRAME
   ruled border + zone markers around viewport
   ════════════════════════════════════════ */
.sheet-frame {
  position: fixed;
  inset: var(--frame);
  border: 1px solid var(--border-strong);
  pointer-events: none;
  z-index: 90;
}
.sheet-frame::before,
.sheet-frame::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
}
.sheet-frame::before {
  top: -1px; left: -1px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}
.sheet-frame::after {
  bottom: -1px; right: -1px;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}
.zone-marks {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}
.zone-marks span { position: absolute; }
.zm-t1 { top: 1px; left: 25%; }
.zm-t2 { top: 1px; left: 50%; }
.zm-t3 { top: 1px; left: 75%; }
.zm-l1 { left: 3px; top: 25%; }
.zm-l2 { left: 3px; top: 50%; }
.zm-l3 { left: 3px; top: 75%; }
.zm-ref {
  right: 20px;
  top: 1px;
  color: var(--text-faint);
}

@media (max-width: 900px) {
  :root { --frame: 8px; }
  .zone-marks { display: none; }
}

/* ════════════════════════════════════════
   CURSOR GLOW — torch over the drawing
   ════════════════════════════════════════ */
.cursor-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.6s;
  background: radial-gradient(
    520px circle at var(--mx, 50%) var(--my, 40%),
    rgba(232, 82, 26, 0.055),
    rgba(240, 237, 232, 0.018) 40%,
    transparent 70%
  );
}
.cursor-glow.on { opacity: 1; }
@media (hover: none), (prefers-reduced-motion: reduce) {
  .cursor-glow { display: none; }
}

/* ════════════════════════════════════════
   PAGE TRANSITION — scan-line wipe
   ════════════════════════════════════════ */
.page-wipe {
  position: fixed;
  inset: 0;
  z-index: 300;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(240,237,232,0.04) 0 1px,
      transparent 1px 4px
    ),
    #0A0A0A;
  transform: translateY(100%);
  pointer-events: none;
  visibility: hidden;
}
.page-wipe.run {
  visibility: visible;
  transition: transform 0.42s cubic-bezier(0.76, 0, 0.24, 1);
  transform: translateY(0);
}
.page-wipe .wipe-label {
  position: absolute;
  bottom: 28px;
  left: 32px;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--accent);
}

/* ════════════════════════════════════════
   NAVIGATION — precision-ruled bar
   ════════════════════════════════════════ */
.nav-bar {
  position: fixed;
  top: var(--frame);
  left: var(--frame);
  right: var(--frame);
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  background: rgba(10, 10, 10, 0.94);
  border-bottom: 1px solid var(--border-strong);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 24px;
  border-right: 1px solid var(--border);
  text-decoration: none;
}
.nav-wordmark {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.06em;
  color: var(--text);
}
.nav-wordmark b { color: var(--accent); font-weight: 700; }
.nav-doc {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  border-left: 1px solid var(--border);
  padding-left: 14px;
  line-height: 1.5;
}
.nav-links {
  display: flex;
  list-style: none;
  align-items: stretch;
}
.nav-links li { display: flex; }
.nav-links a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 26px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-decoration: none;
  color: var(--text-muted);
  border-left: 1px solid var(--border);
  transition: color 0.2s, background 0.2s;
  cursor: pointer;
}
.nav-links a:hover { color: var(--text); background: rgba(240,237,232,0.03); }
.nav-links a .idx { color: var(--text-faint); font-size: 0.62rem; }
.nav-links a .sq {
  width: 7px;
  height: 7px;
  border: 1px solid var(--text-faint);
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}
.nav-links a.active { color: var(--text); }
.nav-links a.active .sq { background: var(--accent); border-color: var(--accent); }
.nav-links a:hover .sq { border-color: var(--accent); }

.nav-burger {
  display: none;
  background: none;
  border: none;
  border-left: 1px solid var(--border);
  width: var(--nav-h);
  cursor: pointer;
  position: relative;
}
.nav-burger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  margin: 5px auto;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  position: fixed;
  top: calc(var(--frame) + var(--nav-h));
  left: var(--frame);
  right: var(--frame);
  z-index: 99;
  background: #0C0C0B;
  border-bottom: 1px solid var(--border-strong);
  display: none;
  flex-direction: column;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-decoration: none;
  padding: 18px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
}
.nav-mobile a.active { color: var(--accent); }
.nav-mobile a::after { content: "→"; color: var(--text-faint); }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .nav-doc { display: none; }
}

/* ════════════════════════════════════════
   HERO
   ════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--nav-h) + var(--frame) + 40px);
  overflow: hidden;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.9;
}
.hero .container { position: relative; z-index: 2; width: 100%; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-bottom: 34px;
}
.hero-meta .hm { display: flex; align-items: center; gap: 8px; }
.hero-meta .hm::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--text-faint);
}
.hero-meta .hm.hm-live::before { background: var(--ok); animation: pulse 1.6s ease-in-out infinite; }
.hero-meta .hm.hm-accent::before { background: var(--accent); }

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
  50% { opacity: 0.55; box-shadow: 0 0 0 5px rgba(74, 222, 128, 0); }
}

.hero h1 {
  font-size: clamp(2.6rem, 7.2vw, 5.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  max-width: 13ch;
  margin-bottom: 0;
}
.hero h1 .accent { color: var(--accent); }
.hero h1 .tw-caret {
  display: inline-block;
  width: 0.55ch;
  height: 0.82em;
  background: var(--accent);
  vertical-align: baseline;
  transform: translateY(0.08em);
  animation: caret 0.85s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

.hero-rule {
  height: 1px;
  background: var(--border-strong);
  margin: 38px 0 30px;
  position: relative;
  transform-origin: left;
}
.hero-rule::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  background: var(--accent);
}

.hero-sub {
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 54ch;
  margin-bottom: 40px;
}
.hero-sub strong { color: var(--text); font-weight: 500; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* readout column, desktop only */
.hero-readout {
  position: absolute;
  right: 32px;
  bottom: 110px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  text-align: right;
  line-height: 2.1;
}
.hero-readout b { color: var(--text-muted); font-weight: 400; }
@media (max-width: 1100px) { .hero-readout { display: none; } }

.hero-scroll {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--text-faint);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hero-scroll::after {
  content: "";
  width: 1px;
  height: 34px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: drop 2s ease-in-out infinite;
}
@keyframes drop {
  0% { transform: scaleY(0); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: top; }
  56% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-decoration: none;
  padding: 15px 26px;
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: transparent;
  position: relative;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  cursor: pointer;
}
.btn::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  transition: width 0.25s, height 0.25s;
}
.btn:hover { border-color: var(--accent); }
.btn:hover::before { width: 14px; height: 14px; }
.btn-solid {
  background: var(--accent);
  border-color: var(--accent);
  color: #0A0A0A;
  font-weight: 600;
}
.btn-solid::before { border-color: #0A0A0A; }
.btn-solid:hover { background: #FF6B2E; border-color: #FF6B2E; }
.btn .arr { transition: transform 0.2s; }
.btn:hover .arr { transform: translateX(4px); }

/* ════════════════════════════════════════
   SECTION SCAFFOLDING
   ════════════════════════════════════════ */
section { padding: 110px 0; position: relative; }

.sec-head { margin-bottom: 56px; }
.sec-label {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.sec-label::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
}
.sec-label .sec-no { color: var(--text-faint); }
.sec-title {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 22ch;
}
.sec-sub {
  margin-top: 16px;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 58ch;
}

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

/* ════════════════════════════════════════
   STATS STRIP
   ════════════════════════════════════════ */
.stats-strip {
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
  background: var(--surface);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-cell {
  padding: 42px 30px;
  border-left: 1px solid var(--border);
  position: relative;
}
.stat-cell:first-child { border-left: none; }
.stat-cell .stat-ref {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  color: var(--text-faint);
  position: absolute;
  top: 12px;
  right: 14px;
}
.stat-value {
  font-family: var(--mono);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-value .stat-cursor {
  display: inline-block;
  width: 0.5ch;
  height: 0.85em;
  background: var(--accent);
  vertical-align: baseline;
  transform: translateY(0.08em);
  animation: caret 0.85s steps(1) infinite;
  margin-left: 2px;
}
.stat-label {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  text-transform: uppercase;
}
@media (max-width: 820px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-cell:nth-child(3) { border-left: none; }
  .stat-cell:nth-child(n+3) { border-top: 1px solid var(--border); }
}

/* ════════════════════════════════════════
   CURRENTLY BUILDING — live status block
   ════════════════════════════════════════ */
.live-block {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
  padding: 26px 30px;
  position: relative;
}
.live-block::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
}
.live-ind {
  width: 12px;
  height: 12px;
  background: var(--ok);
  animation: pulse 1.6s ease-in-out infinite;
}
.live-copy .live-tag {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.26em;
  color: var(--ok);
  display: block;
  margin-bottom: 8px;
}
.live-copy h3 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.live-copy p {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}
.live-ref {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  text-align: right;
  line-height: 2;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .live-block { grid-template-columns: auto 1fr; }
  .live-ref { display: none; }
}

/* ════════════════════════════════════════
   ABOUT — operator spec sheet
   ════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 70px;
  align-items: start;
}
.about-text p {
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 22px;
  font-size: 0.99rem;
}
.about-text p strong { color: var(--text); font-weight: 500; }
.about-link {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.about-link:hover { border-color: var(--accent); }

.spec-sheet {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-family: var(--mono);
}
.spec-sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-strong);
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  color: var(--text-muted);
}
.spec-sheet-head .sq-mark { width: 8px; height: 8px; background: var(--accent); }
.spec-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  border-bottom: 1px solid var(--border);
  font-size: 0.72rem;
}
.spec-row:last-child { border-bottom: none; }
.spec-row dt {
  padding: 13px 20px;
  color: var(--text-faint);
  letter-spacing: 0.12em;
  border-right: 1px solid var(--border);
}
.spec-row dd {
  padding: 13px 20px;
  color: var(--text);
  letter-spacing: 0.04em;
  line-height: 1.6;
}
.spec-row dd .ok { color: var(--ok); }
.spec-row dd .acc { color: var(--accent); }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ════════════════════════════════════════
   BUILD LOG — typed spec-sheet entries
   ════════════════════════════════════════ */
.log-section { background: var(--surface); border-top: 1px solid var(--border-strong); border-bottom: 1px solid var(--border-strong); }
.log-list { border: 1px solid var(--border-strong); background: var(--bg); }
.log-entry {
  display: grid;
  grid-template-columns: 110px 130px 1fr 120px;
  gap: 20px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  align-items: baseline;
}
.log-entry:last-child { border-bottom: none; }
.log-id {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.log-date {
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}
.log-text {
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  min-height: 1.4em;
}
.log-text b { color: var(--text); font-weight: 500; }
.log-status {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-align: right;
}
.st-shipped { color: var(--ok); }
.st-live { color: var(--accent); }
.st-testing { color: var(--amber); }
.st-queue { color: var(--text-faint); }
@media (max-width: 820px) {
  .log-entry { grid-template-columns: 1fr; gap: 6px; padding: 18px 20px; }
  .log-status { text-align: left; }
}

/* ════════════════════════════════════════
   PROJECT CARDS — spec modules + callouts
   ════════════════════════════════════════ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 40px 28px;
  margin-top: 8px;
}
.spec-card {
  position: relative;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, background 0.25s;
}
.spec-card:hover { border-color: rgba(240,237,232,0.4); background: var(--surface-2); }
.spec-card::before,
.spec-card::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  transition: border-color 0.25s;
}
.spec-card::before {
  top: -1px; left: -1px;
  border-top: 2px solid var(--text-faint);
  border-left: 2px solid var(--text-faint);
}
.spec-card::after {
  bottom: -1px; right: -1px;
  border-bottom: 2px solid var(--text-faint);
  border-right: 2px solid var(--text-faint);
}
.spec-card:hover::before,
.spec-card:hover::after { border-color: var(--accent); }

/* drawing callout — extends up from top-right corner on hover */
.callout {
  position: absolute;
  top: 0;
  right: 22px;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transform: translateY(-100%);
  opacity: 0;
  transition: opacity 0.28s ease;
}
.callout-label {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  background: var(--bg);
  border: 1px solid var(--accent);
  padding: 4px 8px;
  white-space: nowrap;
  transform: translateY(4px);
  transition: transform 0.28s ease;
}
.callout-line {
  width: 1px;
  height: 14px;
  background: var(--accent);
  margin-right: 14px;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.28s ease;
}
.spec-card:hover .callout { opacity: 1; }
.spec-card:hover .callout-label { transform: translateY(0); }
.spec-card:hover .callout-line { transform: scaleY(1); }

.card-fig {
  border-bottom: 1px solid var(--border);
  padding: 22px 24px 14px;
  background:
    linear-gradient(rgba(240,237,232,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240,237,232,0.03) 1px, transparent 1px);
  background-size: 18px 18px;
}
.card-fig svg { display: block; width: 100%; height: 110px; }
.fig-stroke { stroke: var(--text-muted); fill: none; stroke-width: 1.2; }
.fig-faint { stroke: var(--text-faint); fill: none; stroke-width: 1; }
.fig-accent { stroke: var(--accent); fill: none; stroke-width: 1.4; }
.fig-fill-accent { fill: var(--accent); }
.fig-dash { stroke-dasharray: 4 4; }

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
}
.card-ref { color: var(--text-faint); }
.tag { padding: 3px 0; }
.tag-shipped { color: var(--ok); }
.tag-live { color: var(--accent); }
.tag-testing { color: var(--amber); }
.tag-queue { color: var(--text-faint); }
.tag::before { content: "■ "; font-size: 0.5rem; vertical-align: 1px; }

.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 {
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}
.card-body h3 a { color: inherit; text-decoration: none; }
.card-body h3 a:hover { color: var(--accent); }
.card-body p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.72;
  margin-bottom: 14px;
}
.card-tech {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
}
.card-tech span {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 5px 9px;
}
.card-link {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.card-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* filter row */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid var(--border-strong);
  width: fit-content;
  margin-bottom: 46px;
}
.filter-btn {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  background: none;
  border: none;
  border-left: 1px solid var(--border);
  color: var(--text-muted);
  padding: 12px 20px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.filter-btn:first-child { border-left: none; }
.filter-btn:hover { color: var(--text); }
.filter-btn.active { background: var(--accent); color: #0A0A0A; font-weight: 600; }
.spec-card.hidden { display: none; }

/* ════════════════════════════════════════
   PROCESS — drawing notes
   ════════════════════════════════════════ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border-strong);
}
.process-step {
  padding: 40px 34px 44px;
  border-left: 1px solid var(--border);
  position: relative;
}
.process-step:first-child { border-left: none; }
.process-num {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.process-num::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.process-step h3 {
  font-size: 1.12rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.process-step p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.75;
}
@media (max-width: 820px) {
  .process-grid { grid-template-columns: 1fr; }
  .process-step { border-left: none; border-top: 1px solid var(--border); }
  .process-step:first-child { border-top: none; }
}

/* ════════════════════════════════════════
   BUILD NOTES strip (tools page)
   ════════════════════════════════════════ */
.notes-strip {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  padding: 30px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.notes-strip .ns-copy h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.notes-strip .ns-copy p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.65;
  max-width: 60ch;
}

/* ════════════════════════════════════════
   CTA STRIP
   ════════════════════════════════════════ */
.cta-strip {
  border-top: 1px solid var(--border-strong);
  background: var(--surface);
  padding: 96px 0;
  text-align: left;
}
.cta-strip h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  max-width: 24ch;
  margin-bottom: 16px;
}
.cta-strip > .container > p {
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 52ch;
  line-height: 1.75;
}

/* ════════════════════════════════════════
   CONTACT PAGE
   ════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
}
.contact-links { display: flex; flex-direction: column; border: 1px solid var(--border-strong); }
.contact-link {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  text-decoration: none;
  border-top: 1px solid var(--border);
  transition: background 0.2s;
  cursor: pointer;
}
.contact-link:first-child { border-top: none; }
.contact-link:hover { background: var(--surface-2); }
.contact-link-icon {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s;
}
.contact-link:hover .contact-link-icon { color: var(--accent); border-color: var(--accent); }
.contact-link-name {
  display: block;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--text);
}
.contact-link-detail {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-top: 4px;
}
.contact-link-arrow { color: var(--text-faint); font-family: var(--mono); transition: color 0.2s, transform 0.2s; }
.contact-link:hover .contact-link-arrow { color: var(--accent); transform: translateX(4px); }

.open-list { border: 1px solid var(--border-strong); background: var(--surface); }
.open-list-head {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-strong);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.24em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.avail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ok);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
}
.avail::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  animation: pulse 1.6s ease-in-out infinite;
}
.open-list ul { list-style: none; }
.open-list li {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 16px;
  padding: 17px 24px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  align-items: baseline;
}
.open-list li:first-child { border-top: none; }
.open-list li .oi {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.open-list li b { font-weight: 600; color: var(--text); display: block; }
.open-list li span.od { color: var(--text-muted); font-size: 0.82rem; line-height: 1.6; display: block; margin-top: 3px; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
}

/* ════════════════════════════════════════
   TITLE BLOCK FOOTER — engineering drawing
   ════════════════════════════════════════ */
footer {
  border-top: 1px solid var(--border-strong);
  background: var(--bg);
  margin-bottom: var(--frame);
}
.tb-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  border-bottom: 1px solid var(--border-strong);
}
.tb-cell {
  padding: 16px 20px 14px;
  border-left: 1px solid var(--border);
  font-family: var(--mono);
}
.tb-cell:first-child { border-left: none; }
.tb-key {
  display: block;
  font-size: 0.54rem;
  letter-spacing: 0.22em;
  color: var(--text-faint);
  margin-bottom: 7px;
}
.tb-val {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--text);
}
.tb-val.acc { color: var(--accent); }
.tb-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px 32px;
}
.tb-logo {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--text);
  text-decoration: none;
}
.tb-logo b { color: var(--accent); }
.tb-copy {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--text-faint);
}
.tb-links {
  display: flex;
  gap: 26px;
  list-style: none;
}
.tb-links a {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.tb-links a:hover { color: var(--accent); }
@media (max-width: 900px) {
  .tb-grid { grid-template-columns: 1fr 1fr; }
  .tb-cell { border-top: 1px solid var(--border); }
  .tb-cell:nth-child(odd) { border-left: none; }
  .tb-cell:nth-child(-n+2) { border-top: none; }
}

/* ════════════════════════════════════════
   SUB-PAGE HERO (tools / contact)
   ════════════════════════════════════════ */
.page-hero {
  padding-top: calc(var(--nav-h) + var(--frame) + 100px);
  padding-bottom: 70px;
  border-bottom: 1px solid var(--border-strong);
  position: relative;
}
.page-hero h1 {
  font-size: clamp(2.2rem, 5.4vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 20px;
}
.page-hero .sec-sub { margin-top: 0; }

/* ════════════════════════════════════════
   UTILITY
   ════════════════════════════════════════ */
.mt-xl { margin-top: 72px; }
.center { text-align: center; }

@media (max-width: 600px) {
  .container { padding: 0 20px; }
  section { padding: 80px 0; }
  .hero-meta { gap: 8px 18px; }
  .callout { display: none; }
}
