/* ==========================================================================
   THEME EXPERIMENT — "Blueprint"
   Serious, technical, precise: an engineering spec sheet for ownership.
   White paper with a faint drafting grid, hairline rules, sharp corners,
   corner-bracketed cards, mono annotations with index numbers, one working
   accent (teal), and a fixed instrument rail that renumbers as you scroll.
   The site's default look. Loaded after style.css; scoped to html.theme-tech.
   ========================================================================== */

html.theme-tech {
  /* content is capped and centered — the gutter grows into real side
     margins on wide screens (rail width accounted for) */
  --rail-w: 58px;
  --page-max: 1200px;
  --gutter: max(clamp(20px, 5vw, 100px), calc((100vw - var(--rail-w) - var(--page-max)) / 2));

  --canvas: #FAFAF9;
  --ink: #0B0B0C;
  --ink-60: #3F4144;
  --ink-40: #696C71;
  --line: rgba(11, 11, 12, 0.16);
  --line-soft: rgba(11, 11, 12, 0.07);
  --ghost: rgba(11, 11, 12, 0.03);
  --pill: #0B0B0C;
  --accent: #2F737C;

  /* one engineering voice — the serif is decommissioned */
  --font-serif: "Switzer", "Helvetica Neue", sans-serif;
}

/* the drafting grid, faint, everywhere */
html.theme-tech body {
  background:
    linear-gradient(var(--line-soft) 1px, transparent 1px) 0 0 / 100% 96px,
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px) 0 0 / 96px 100%,
    var(--canvas);
}
html.theme-tech main { background: transparent; }
html.theme-tech .section:not(.band) { background: transparent; }

/* the instrument rail (injected by tech.js) shifts the whole page right —
   a different chassis, not just different paint */
html.theme-tech .tech-rail {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 58px;
  z-index: 60;
  border-right: 1px solid var(--line);
  background: var(--canvas);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--nav-h) + 18px) 0 18px;
}
html.theme-tech .tech-rail .tr-word {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-40);
  white-space: nowrap;
}
html.theme-tech .tech-rail .tr-index {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
html.theme-tech .tech-rail .tr-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: tech-pulse 2.4s ease-in-out infinite;
}
@keyframes tech-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@media (min-width: 1100px) {
  html.theme-tech main, html.theme-tech .footer { margin-left: 58px; }
  /* nav mark + links align with the content margins */
  html.theme-tech .nav { padding-left: calc(58px + var(--gutter)); padding-right: var(--gutter); }
}
@media (max-width: 1099px) {
  html.theme-tech { --rail-w: 0px; }
  html.theme-tech .tech-rail { display: none; }
}

/* the scroll progress line (injected by tech.js) */
html.theme-tech .tech-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 210;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* ---------- type: one weight axis, mono annotations ---------- */
html.theme-tech .h-serif { font-weight: 600; letter-spacing: -0.022em; font-style: normal; }
html.theme-tech .h-sans { font-weight: 600; letter-spacing: -0.022em; }
html.theme-tech .d1 .line:has(.h-serif),
html.theme-tech .d2 .line:has(.h-serif) { font-size: 1em; }
html.theme-tech .d1 .h-serif, html.theme-tech .d2 .h-serif { color: var(--ink); }
html.theme-tech .d1 .h-sans, html.theme-tech .d2 .h-sans { color: var(--accent); background: none; -webkit-text-fill-color: currentColor; }
html.theme-tech .d1 { font-size: clamp(2rem, 4.1vw, 3.7rem); line-height: 1.04; }
html.theme-tech .d2 { font-size: clamp(1.7rem, 3.4vw, 3rem); }
html.theme-tech .lede { color: var(--ink-60); font-size: 1.02rem; }
html.theme-tech .mono { font-family: var(--font-mono); letter-spacing: 0.07em; }
html.theme-tech .eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--ink-40);
}
html.theme-tech .eyebrow::before { content: "[ "; color: var(--accent); }
html.theme-tech .eyebrow::after { content: " ]"; color: var(--accent); }

/* section index stamps (injected by tech.js) */
html.theme-tech .tech-sec {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  color: var(--ink-40);
  margin-bottom: 14px;
}
html.theme-tech .tech-sec b { color: var(--accent); font-weight: 500; }

html.theme-tech .rule { background: var(--line); height: 1px; }
html.theme-tech .ghost { display: none; }

/* ---------- chrome: hairline nav, mono links ---------- */
html.theme-tech .nav {
  height: 56px;
  background: rgba(250, 250, 249, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
html.theme-tech { --nav-h: 56px; }
html.theme-tech .nav-link {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
}
html.theme-tech .nav-link::after { height: 1px; background: var(--ink); }
html.theme-tech .mark-domain { color: var(--ink-40); }

/* ---------- controls: sharp, labeled, no theatre ---------- */
html.theme-tech .pill {
  border-radius: 0;
  background: var(--ink);
  border: 1px solid var(--ink);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.95em 1.6em;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
html.theme-tech .pill:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: none; box-shadow: none; }
html.theme-tech .pill-light { background: transparent; border: 1px solid var(--line); color: var(--ink); }
html.theme-tech .pill-light:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
html.theme-tech .band .pill { background: #fff; border-color: #fff; color: var(--ink); }
html.theme-tech .band .pill:hover { background: transparent; border-color: #fff; color: #fff; }
html.theme-tech .chip { border-radius: 0; border-color: var(--line); font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; }
html.theme-tech .chip:hover { border-color: var(--ink); box-shadow: none; }
html.theme-tech .chip-other { background: var(--ink); border-color: var(--ink); }

/* ---------- surfaces: hairline panels with corner brackets ---------- */
html.theme-tech .quote-card,
html.theme-tech .note-card,
html.theme-tech .principle,
html.theme-tech .step,
html.theme-tech .econ-stat,
html.theme-tech .role-card,
html.theme-tech .teaser,
html.theme-tech .sector-card:not(.sector-featured),
html.theme-tech .product-card,
html.theme-tech .face-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  /* a soft, restrained lift so the cards read firm and substantial,
     not flat — keeps the drafting border + corner tick */
  box-shadow: 0 16px 38px -26px rgba(20, 18, 16, 0.26), 0 2px 6px -4px rgba(20, 18, 16, 0.1);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
html.theme-tech .quote-card::before,
html.theme-tech .note-card::before,
html.theme-tech .step::before,
html.theme-tech .role-card::before,
html.theme-tech .teaser::after,
html.theme-tech .product-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 14px;
  height: 14px;
  border-top: 2px solid var(--ink);
  border-left: 2px solid var(--ink);
  opacity: 0.85;
  background: none;
}
html.theme-tech .teaser::before { display: none; }
html.theme-tech .teaser:hover,
html.theme-tech .note-card:hover,
html.theme-tech .quote-card:hover,
html.theme-tech .product-card:hover,
html.theme-tech .role-card:hover,
html.theme-tech .face-card:hover {
  border-color: var(--ink);
  box-shadow: 0 22px 46px -24px rgba(20, 18, 16, 0.34), 0 3px 8px -4px rgba(20, 18, 16, 0.12);
  transform: translateY(-3px);
}
html.theme-tech .sector-featured { border-radius: 0; }
html.theme-tech .careers-card { border-radius: 0; background: var(--ink); }
html.theme-tech .receipt { border: 1px solid var(--line); box-shadow: 0 16px 38px -26px rgba(20, 18, 16, 0.24), 0 2px 6px -4px rgba(20, 18, 16, 0.1); }

/* stat bricks become instrument readouts: number + label + a color datum */
html.theme-tech .stat-brick {
  border-radius: 0;
  border: 1px solid var(--line);
  border-top: 3px solid var(--c, var(--accent));
  background: #fff;
  color: var(--ink);
  box-shadow: 0 16px 38px -26px rgba(20, 18, 16, 0.26), 0 2px 6px -4px rgba(20, 18, 16, 0.1);
  margin-top: 0;
  padding: clamp(20px, 2.4vw, 30px) clamp(18px, 2.4vw, 28px);
}
html.theme-tech .stat-brick::before, html.theme-tech .stat-brick::after { display: none; }
html.theme-tech .stat-brick:hover, html.theme-tech .stat-brick:focus-visible {
  filter: none;
  border-color: var(--ink);
  border-top-color: var(--c, var(--accent));
}
html.theme-tech .stat-big { color: var(--ink); font-variant-numeric: tabular-nums; }
html.theme-tech .stat-brick .mono {
  color: var(--ink-40);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
html.theme-tech .stat-foot { max-width: 52ch; margin-top: 26px; }
html.theme-tech .stat-foot strong { color: var(--ink); }

/* ---------- bands: kept, framed like plates on a panel ---------- */
html.theme-tech .band { border-block: 1px solid var(--ink); outline: none; }
html.theme-tech .band .eyebrow { color: rgba(255, 255, 255, 0.75); }
html.theme-tech .band .eyebrow::before, html.theme-tech .band .eyebrow::after { color: rgba(255, 255, 255, 0.75); }
html.theme-tech .band .lede { color: rgba(255, 255, 255, 0.92); }
html.theme-tech .band .lede strong { color: #fff; }

/* ---------- the hero: centered, the board laid out underneath ---------- */
html.theme-tech .hero-lego {
  text-align: center;
  justify-content: flex-start;
  padding-top: calc(var(--nav-h) + 8vh);
}
html.theme-tech .hero-lego .hero-copy {
  margin: 0 auto;
  max-width: 780px;
  position: relative;
  padding-left: 0;
  border-left: none;
}
/* the measured datum tick, recentred above the eyebrow (was a left rail) */
html.theme-tech .hero-lego .hero-copy::before {
  display: block;
  content: "";
  position: absolute;
  inset: auto;
  left: 50%;
  top: -22px;
  transform: translateX(-50%);
  height: 14px;
  width: 2px;
  background: var(--accent);
  filter: none;
  border-radius: 0;
}
html.theme-tech .hero-lego .lede { margin-inline: auto; }
html.theme-tech .hero-actions { justify-content: center; }
html.theme-tech .hero-note { text-align: center; color: var(--ink-40); }
html.theme-tech .scroll-cue { left: 50%; transform: translateX(-50%); }

/* beat cards: spec callouts pinned top-left, not centered */
html.theme-tech .lego-cap {
  left: var(--gutter);
  right: auto;
  margin: 0;
  width: fit-content;
  max-width: min(480px, 86vw);
  text-align: left;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: rgba(250, 250, 249, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: none;
}
html.theme-tech .lego-cap .cap-kicker {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}
html.theme-tech .lego-cap .cap-body { margin-inline: 0; }
html.theme-tech .lego-label {
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(250, 250, 249, 0.94);
  font-family: var(--font-mono);
}
html.theme-tech .ll-owned { color: var(--accent); }
html.theme-tech .lego-chip { border-radius: 0; border: 1px solid var(--ink); border-style: solid; background: #fff; }
html.theme-tech .lego-tip { border-radius: 0; border: 1px solid var(--ink); box-shadow: none; }
html.theme-tech .lego-cue { font-family: var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; }

/* ---------- the cursor: a fine crosshair dot ---------- */
html.theme-tech .cursor-dot { width: 5px; height: 5px; border-radius: 0; }
html.theme-tech .cursor-ring { border-radius: 0; border-width: 1px; }

/* ---------- menu, veil, footer ---------- */
html.theme-tech .menu-overlay { background: rgba(250, 250, 249, 0.97); }
html.theme-tech .menu-list a { font-weight: 600; letter-spacing: -0.01em; }
html.theme-tech #veil, html.theme-tech .transit {
  background:
    linear-gradient(var(--line-soft) 1px, transparent 1px) 0 0 / 100% 96px,
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px) 0 0 / 96px 100%,
    var(--canvas);
}
html.theme-tech #veil { gap: 22px; align-content: center; }

/* the letters arrive as plotted cells, decode, and get stamped in ink */
html.theme-tech .bk {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 0;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  box-shadow: none;
}
html.theme-tech .bk::before, html.theme-tech .bk::after { display: none; }
html.theme-tech .veil-status {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-40);
}
html.theme-tech .footer { background: var(--canvas); border-top: 1px solid var(--ink); }
html.theme-tech .footer-reflection { color: rgba(11, 11, 12, 0.05); }

/* one thin spectrum line survives — the brand signature, used precisely */
html.theme-tech .footer::before {
  content: "";
  display: block;
  position: absolute;
  top: -3px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--spectrum);
}
html.theme-tech .footer { position: relative; }
