/* ==========================================================================
   siriusdevops.com — "Quiet Precision"

   Single shared stylesheet for index.html, lab.html, book.html.
   No frameworks, no build step. Loaded from /assets/site.css.

   System: neutral obsidian canvas (#0A0B0D) over #111318 surfaces. One
   hairline — rgba(255, 255, 255, 0.08) — defines every edge; there are no
   drop shadows, no glows and no gradient fills. One accent (cyan) for links,
   the primary CTA and focus; emerald/amber are semantic only (live / retired)
   and always carry a text label.

   Ink: --text-primary #F3F4F6 measures 17.9:1 on canvas / 16.9:1 on surface,
   --text-secondary #9CA3AF 7.8:1 / 7.3:1, --text-quiet #8B9199 6.1:1 / 5.7:1
   for small labels. All three clear 4.5:1 on both backgrounds.

   Type: Inter for every heading and all body copy. JetBrains Mono is reserved
   for eyebrows, stack tags, metrics and mono label systems — never paragraphs.

   Rhythm: --section-pad is the single vertical-rhythm constant; strips and
   the footer derive from it with calc().
   ========================================================================== */

:root {
  /* surfaces — neutral obsidian, no hue */
  --bg-base: #0A0B0D;
  --bg-surface: #111318;
  --bg-surface-elevated: #17191F;

  /* lines — one hairline system; 1px defines every edge */
  --hairline: rgba(255, 255, 255, 0.08);
  --border-subtle: var(--hairline);
  --border-highlight: rgba(255, 255, 255, 0.16);

  /* ink */
  --text-primary: #F3F4F6;   /* 17.9:1 canvas · 16.9:1 surface */
  --text-secondary: #9CA3AF; /* 7.8:1 canvas · 7.3:1 surface */
  --text-quiet: #8B9199;     /* 6.1:1 canvas · 5.7:1 surface — small labels */

  /* accents — one accent (cyan); emerald/amber are semantic, always labeled */
  --accent-cyan: #38bdf8;
  --accent-emerald: #10b981; /* live */
  --accent-amber: #fbbf24;   /* retired */

  /* type scale — five steps */
  --fs-display: clamp(32px, 3.2vw, 42px); /* h1 — sized to the 1024 column so the hero rags to 3 lines */
  --fs-title: clamp(24px, 2.8vw, 34px);   /* h2 */
  --fs-head: clamp(18px, 1.5vw, 21px);    /* h3 */
  --fs-body: 16px;                        /* paragraphs, ledes, buttons */
  --fs-label: 12px;                       /* mono labels, chips, nav, meta */

  /* vertical rhythm — one constant for all section padding */
  --section-pad: clamp(96px, 8vw, 128px);

  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-head: var(--font-body);
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --maxw: 1024px;
  --gutter: 24px;
  --radius: 14px;
  --radius-sm: 8px;
  --nav-h: 68px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-secondary);
  background: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { list-style: none; }

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

::selection { background: rgba(56, 189, 248, 0.28); color: var(--text-primary); }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 1;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--accent-cyan);
  color: #0A0B0D;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top 0.15s var(--ease);
}
.skip-link:focus { top: 12px; }

.section {
  padding: var(--section-pad) 0;
  position: relative;
}

.section + .section { border-top: 1px solid var(--border-subtle); }

/* Asymmetric sheet header: eyebrow + hairline on the left, H2 left-aligned,
   lede hanging right, bottom-aligned. Stacks to one column under 900px. */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 0 clamp(24px, 4vw, 64px);
  align-items: end;
  margin-bottom: clamp(28px, 3.4vw, 44px);
}
.section-head .eyebrow { display: flex; margin-bottom: 14px; }
.section-head .eyebrow::after { flex: 1; width: auto; }
.section-head .h-section { margin-bottom: 0; }
.section-head .section-desc {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  max-width: 46ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.65;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 16px;
}
.eyebrow::after {
  content: "";
  width: 44px;
  height: 1px;
  background: var(--border-highlight);
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.h-section {
  font-size: var(--fs-title);
  font-weight: 600;
  margin-bottom: 14px;
}

.section-desc {
  font-size: var(--fs-body);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 62ch;
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.04em;
  color: var(--text-quiet);
}

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 11, 13, 0.82);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;
}
.brand .brand-sep { color: var(--text-quiet); font-weight: 400; }

.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  flex: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: var(--fs-label);
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text-primary); background: rgba(56, 189, 248, 0.07); }

.nav-links .nav-cta {
  margin-left: 8px;
  color: #0A0B0D;
  background: var(--accent-cyan);
  font-weight: 600;
  padding: 0 16px;
}
.nav-links .nav-cta:hover { background: #7dd3fc; color: #0A0B0D; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 11px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease),
              border-color 0.18s var(--ease);
}

.btn-primary {
  background: var(--accent-cyan);
  color: #0A0B0D;
}
.btn-primary:hover { background: #7dd3fc; }

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-highlight);
}
.btn-secondary:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.06);
}

.btn-ghost {
  min-height: 40px;
  padding: 8px 0;
  background: none;
  color: var(--accent-cyan);
  font-weight: 500;
  font-size: var(--fs-body);
  border: 0;
}
.btn-ghost:hover { color: #7dd3fc; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  padding: var(--section-pad) 0;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.13em;
  color: var(--text-quiet);
  border: 1px solid var(--border-subtle);
  background: rgba(17, 19, 24, 0.7);
  border-radius: 999px;
  padding: 7px 14px;
  margin-bottom: 24px;
  max-width: 100%;
}
.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  flex: none;
  animation: pulse-dot 2.6s infinite;
}

.hero-title {
  font-size: var(--fs-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
  text-wrap: balance;
}
.hero-title em {
  font-style: normal;
  color: var(--accent-cyan);
}

.hero-sub {
  font-size: var(--fs-body);
  color: var(--text-secondary);
  max-width: 62ch;
  line-height: 1.6;
  margin-bottom: 30px;
}
.hero-sub strong { color: var(--text-primary); font-weight: 600; }

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

/* Operator micro-crop beside the action row. Same monogram-behind-photo
   fallback as .portrait; the 200px export keeps the 48px circle sharp. */
.hero-operator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}
.hero-face {
  position: relative;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}
.hero-face picture { position: absolute; inset: 0; }
.hero-face img { width: 100%; height: 100%; object-fit: cover; }
.hero-face .monogram { font-size: var(--fs-body); }
.hero-operator-name {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.05em;
  line-height: 1.5;
  color: var(--text-quiet);
}

/* Telemetry card — the page's signature object. */
.telemetry {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}



.telemetry-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(10, 11, 13, 0.4);
}

.telemetry-head .cluster {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}
.telemetry-head .cluster b { color: var(--text-primary); font-weight: 500; }

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.09);
  border-radius: 999px;
  padding: 5px 10px;
  white-space: nowrap;
}
.badge-live .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-emerald);
  animation: pulse-dot-live 2.6s infinite;
}

.telemetry-rows { padding: 6px 0; }

.telemetry-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 16px;
  align-items: baseline;
}
.telemetry-row + .telemetry-row { border-top: 1px solid var(--hairline); }

.telemetry-row dt {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-quiet);
}

.telemetry-row dd {
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-secondary);
}
.telemetry-row dd b {
  color: var(--text-primary);
  font-weight: 500;
}
.telemetry-row dd .val {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  color: var(--accent-cyan);
}

.telemetry-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.07em;
  color: var(--text-quiet);
  background: rgba(10, 11, 13, 0.4);
}
.telemetry-foot .ok { color: var(--accent-emerald); }

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: clamp(160px, 18vw, 200px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 32px);
  align-items: start;
  max-width: 820px;
}

/* Headshot served from /media/ (private Garage bucket, synced at pod start —
   never baked into the image). The LW monogram sits behind the photo in the
   same fixed box: if the sync failed, the img's onerror hides the <picture>
   and the monogram shows with zero layout shift. 1:1 box only — the source
   crop has the top of the head ~3% from the edge; a taller cover box clips it. */
.portrait {
  position: relative;
  width: clamp(160px, 18vw, 200px);
  aspect-ratio: 1 / 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.portrait picture { position: absolute; inset: 0; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }

.monogram {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent-cyan);
}
.portrait .monogram { font-size: var(--fs-title); }

.about-body p { font-size: var(--fs-body); line-height: 1.6; color: var(--text-secondary); max-width: 62ch; }
.about-body p + p { margin-top: 14px; }
.about-body strong { color: var(--text-primary); font-weight: 600; }

/* --------------------------------------------------------------------------
   Contact + form
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.contact-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.contact-facts {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  display: grid;
  gap: 8px;
}
.contact-facts div {
  display: flex;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  color: var(--text-quiet);
}
.contact-facts span:first-child { min-width: 74px; color: var(--text-quiet); }

.form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 30px);
  min-width: 0;
}

.form-card .field { margin-bottom: 16px; }

.form-card label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-quiet);
  margin-bottom: 7px;
}

.form-card input,
.form-card textarea,
.form-card select {
  width: 100%;
  background: rgba(10, 11, 13, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--text-primary);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
  appearance: none;
}

.form-card select {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-quiet) 50%),
    linear-gradient(135deg, var(--text-quiet) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% + 1px),
    calc(100% - 13px) calc(50% + 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}
.form-card select option { background: var(--bg-surface-elevated); color: var(--text-primary); }

.form-card input::placeholder,
.form-card textarea::placeholder { color: var(--text-quiet); } /* 6.59:1 on the field bg — placeholder text carries meaning, so it passes 4.5:1 like every other label */

.form-card input:focus,
.form-card textarea:focus,
.form-card select:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}

.form-card textarea { resize: vertical; min-height: 128px; line-height: 1.6; }

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-card .btn-primary { width: 100%; margin-top: 4px; }
.form-card .btn-primary[disabled] { opacity: 0.55; cursor: not-allowed; }

.form-status {
  min-height: 22px;
  margin-top: 12px;
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--text-quiet);
}
.form-status.ok { color: var(--accent-emerald); }
.form-status.err { color: #fca5a5; }

.form-note {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.55;
  max-width: 62ch;
  color: var(--text-quiet);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: calc(var(--section-pad) * 0.5) 0;
  margin-top: 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.03em;
  color: var(--text-quiet);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.footer-links a {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.03em;
  color: var(--text-quiet);
  text-decoration: none;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  transition: color 0.18s var(--ease);
}
.footer-links a:hover { color: var(--accent-cyan); }

.footer-offer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--border-subtle);
}
.footer-tagline {
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 62ch;
}

/* --------------------------------------------------------------------------
   Lab page
   -------------------------------------------------------------------------- */

.page-hero {
  padding: var(--section-pad) 0;
}

.page-hero h1 {
  font-size: var(--fs-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: 780px;
  margin-bottom: 18px;
  text-wrap: balance;
}
.page-hero .lede {
  font-size: var(--fs-body);
  max-width: 62ch;
  line-height: 1.6;
  color: var(--text-secondary);
}
.page-hero .hero-note {
  margin-top: 16px;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-quiet);
  max-width: 62ch;
}
.page-hero .hero-actions { margin-top: 22px; }

.shot code {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.08);
  border-radius: 3px;
  padding: 1px 5px;
  overflow-wrap: anywhere;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.shot {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 0;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.shot:hover { border-color: var(--border-highlight); transform: translateY(-2px); }
.shot img { width: 100%; border-bottom: 1px solid var(--border-subtle); background: #0A0B0D; }
.shot figcaption {
  padding: 18px 20px 22px;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-secondary);
}
.shot figcaption strong {
  display: block;
  font-family: var(--font-head);
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: -0.015em;
}
.shot-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 4px;
  padding: 3px 8px;
  margin-bottom: 10px;
}


.cta-band { text-align: left; }

.section--flush-top { padding-top: 0; }
.cta-band .section-desc { margin-bottom: 0; }
.cta-band .back-link {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  color: var(--text-quiet);
  text-decoration: none;
}
.cta-band .back-link:hover { color: var(--accent-cyan); }

/* --------------------------------------------------------------------------
   Book page
   -------------------------------------------------------------------------- */

.book-shell { max-width: 760px; margin: 0 auto; }

.what-you-get,
.after-submit {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-bottom: 22px;
}
.what-you-get h2,
.after-submit h2 {
  font-family: var(--font-head);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-quiet);
  margin-bottom: 16px;
}
.what-you-get ul,
.after-submit ul { display: grid; gap: 10px; }
.what-you-get li,
.after-submit li {
  position: relative;
  padding-left: 22px;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-secondary);
}
.what-you-get li::before,
.after-submit li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  color: var(--accent-cyan);
  line-height: 2.1;
}
.what-you-get .tz-note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.03em;
  color: var(--text-quiet);
}

.calendar-slot {
  border: 1px dashed var(--border-highlight);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 22px;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-secondary);
}
.calendar-slot a { color: var(--accent-cyan); text-decoration: underline; text-underline-offset: 2px; }
.calendar-slot a:hover { text-decoration: underline; }

/* Funnel: free review → audit → build/retainer, stated once, plainly. */
.funnel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 22px;
}
.funnel-title {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-quiet);
  margin-bottom: 14px;
}
.funnel-steps {
  display: grid;
  gap: 10px;
  counter-reset: none;
}
.funnel-steps li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-secondary);
}
.funnel-steps strong { color: var(--text-primary); font-weight: 600; }
.funnel-num {
  flex: none;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  color: var(--accent-cyan);
}
.funnel-note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-secondary);
}

.book-form { max-width: none; margin: 0; }

/* /book prose runs to a 62ch measure inside the wider shell. */
.book-shell .lede,
.book-shell .calendar-slot,
.book-shell .what-you-get li,
.book-shell .after-submit li,
.book-shell .funnel-steps li,
.book-shell .funnel-note,
.book-shell .tz-note { max-width: 62ch; }

/* --------------------------------------------------------------------------
   Positioning pass additions: honest status, diagram sheet, engagement funnel
   -------------------------------------------------------------------------- */

/* Status chips: every repo card states whether the thing is live. */
.status-chip {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 3px 8px;
  white-space: nowrap;
  border: 1px solid var(--border-highlight);
  color: var(--text-quiet);
}
.status-chip--live {
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.1);
}
.status-chip--retired {
  color: var(--accent-amber);
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.07);
}

.also-available {
  margin-top: 26px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-quiet);
  max-width: 62ch;
}

.also-available a { color: var(--accent-cyan); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.also-available a:hover { text-decoration: underline; }

/* Architecture sheet — drawn evidence, not decoration. */
.arch {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
}

.arch-sheet {
  overflow-x: auto;
  background: var(--bg-base);
}
.arch-sheet:focus-visible { outline-offset: -2px; }

.arch-svg {
  display: block;
  width: 100%;
  min-width: 720px; /* labels stay legible; the sheet pans instead of shrinking */
  height: auto;
  padding: 20px 18px 10px;
}

.arch-svg text {
  font-family: var(--font-mono);
  font-size: 15px;
  fill: var(--text-primary);
  text-anchor: middle;
  letter-spacing: 0.02em;
}
.arch-svg .arch-sub {
  font-size: 11.5px;
  fill: var(--text-quiet);
}

.arch-edge rect {
  fill: var(--bg-surface-elevated);
  stroke: var(--accent-cyan);
  stroke-width: 1.4;
}

.arch-tunnel rect {
  fill: rgba(56, 189, 248, 0.05);
  stroke: var(--accent-cyan);
  stroke-width: 1.5;
  stroke-dasharray: 6 5;
}

.arch-gateway circle {
  fill: rgba(56, 189, 248, 0.09);
  stroke: var(--accent-cyan);
  stroke-width: 1.8;
}

.arch-svc rect {
  fill: rgba(17, 19, 24, 0.95);
  stroke: var(--border-highlight);
  stroke-width: 1.3;
}

.arch-node circle { fill: var(--accent-cyan); }
.arch-svg .arch-mesh { fill: var(--text-quiet); }

.arch figcaption {
  padding: 18px 22px 22px;
  border-top: 1px solid var(--border-subtle);
}

.arch-caption {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-quiet);
  margin-bottom: 14px;
}

.arch-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 22px;
}
.arch-legend li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--text-secondary);
}

.swatch { flex: none; display: inline-block; }
.swatch-box {
  width: 20px;
  height: 12px;
  border: 1.5px solid var(--accent-cyan);
  border-radius: 2px;
}
.swatch-dashed {
  width: 22px;
  height: 12px;
  border: 1.5px dashed var(--accent-cyan);
  border-radius: 3px;
}
.swatch-circle {
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--accent-cyan);
  border-radius: 50%;
}
.swatch-rounded {
  width: 20px;
  height: 12px;
  border: 1.5px solid var(--border-highlight);
  border-radius: 5px;
}
.swatch-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-cyan);
  margin: 0 6px;
}
.swatch-line {
  width: 22px;
  height: 2px;
  background: var(--accent-cyan);
}

.labs-more {
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.03em;
  color: var(--text-quiet);
}
.labs-more a { color: var(--accent-cyan); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.labs-more a:hover { text-decoration: underline; }

.about-link {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  color: var(--text-quiet);
}
.about-link a { color: var(--accent-cyan); text-decoration: underline; text-underline-offset: 2px; }
.about-link a:hover { text-decoration: underline; }
.about-link .sep { margin: 0 8px; color: var(--border-highlight); }

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

/* Entrance motion is additive: content is visible by default and only dimmed
   once JS owns the reveal. No JS, no IntersectionObserver — still readable. */
.anim .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.anim .reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Responsive — mobile-first constraints, breakpoints at 900px and 600px
   -------------------------------------------------------------------------- */

@media (max-width: 1280px) {
  .nav-links a { padding: 0 10px; font-size: var(--fs-label); }
  .nav-links .nav-cta { padding: 0 14px; }
}

/* Nav collapses before the links would crowd or clip — the six required
   destinations plus a long CTA need ~1090px of row. Layout breakpoints stay
   at 900 and 600. */
@media (max-width: 1140px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 18px;
    background: rgba(10, 11, 13, 0.98);
    border-bottom: 1px solid var(--border-subtle);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a {
    min-height: 48px;
    font-size: var(--fs-body);
    padding: 0 4px;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .nav-links .nav-cta {
    margin: 12px 0 0;
    justify-content: center;
    border-bottom: 0;
    border-radius: var(--radius-sm);
  }
}

@media (max-width: 900px) {
  :root { --nav-h: 62px; --gutter: 20px; }

  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .proof-grid { grid-template-columns: minmax(0, 1fr); }

  .telemetry-row { grid-template-columns: 96px minmax(0, 1fr); }

  .section-head { grid-template-columns: minmax(0, 1fr); }
  .section-head .section-desc {
    grid-column: 1;
    grid-row: auto;
    align-self: start;
    margin-top: 12px;
    max-width: 62ch;
  }
}

@media (max-width: 600px) {
  :root { --gutter: 18px; }

  /* The repositioning eyebrow is the longest label on the site; tighten the
     tracking and padding so it stays one line at 375px instead of orphaning
     "AI" on a second pill row. */
  .hero-eyebrow { letter-spacing: 0.04em; padding: 6px 10px; gap: 8px; }
  .hero-actions .btn { flex: 1 1 100%; }

  .telemetry-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 12px 14px;
  }
  .telemetry-row dt { color: var(--text-secondary); }
  .telemetry-head { padding: 12px 14px; }
  .telemetry-foot { flex-wrap: wrap; }


  .arch-legend { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .arch figcaption { padding: 16px 16px 18px; }

  .about-grid { grid-template-columns: minmax(0, 1fr); }


  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-offer { flex-direction: column; align-items: flex-start; }

  .form-card { padding: 20px 16px; }
}

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

/* --------------------------------------------------------------------------
   Five-band homepage (principal infrastructure + private AI)
   Hairlines only — no new surfaces, no new accent. Three classes:
   .hairline-grid/.cap/.proof-strip for the capability columns and proof strip,
   .engagement-row for the how-we-work schedule, .hero-proof/.contact-about for
   the two rules that separate bands inside hero and contact.
   -------------------------------------------------------------------------- */

.hairline-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.hairline-grid > * {
  min-width: 0;
  padding: 0 clamp(16px, 2.6vw, 32px);
  border-left: 1px solid var(--border-subtle);
}
.hairline-grid > *:first-child { padding-left: 0; border-left: 0; }
.hairline-grid > *:last-child { padding-right: 0; }

.cap-head {
  font-size: var(--fs-head);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.cap p {
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-secondary);
}

.proof-strip {
  padding: 22px 0;
  margin-bottom: clamp(28px, 3.4vw, 40px);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.strip-label {
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}
.strip-line {
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-secondary);
}

.engagement-list { border-top: 1px solid var(--border-subtle); }
.engagement-row {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(16px, 3vw, 48px);
  padding: 26px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.engagement-row h3 {
  font-size: var(--fs-head);
  letter-spacing: -0.02em;
}
.engagement-row p {
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 62ch;
}
.engagement-row .btn { margin-top: 16px; }

.hero-proof {
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  letter-spacing: 0.1em;
  color: var(--text-quiet);
}

.contact-about {
  margin-top: clamp(32px, 4vw, 56px);
  padding-top: clamp(28px, 3.4vw, 44px);
  border-top: 1px solid var(--border-subtle);
}

@media (max-width: 900px) {
  .hairline-grid { grid-template-columns: minmax(0, 1fr); }
  .hairline-grid > * {
    padding: 20px 0;
    border-left: 0;
    border-top: 1px solid var(--border-subtle);
  }
  .hairline-grid > *:first-child { padding-top: 0; border-top: 0; }
  .hairline-grid > *:last-child { padding-bottom: 0; }
  .engagement-row { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 22px 0; }
}

/* --------------------------------------------------------------------------
   Lab briefs — Problem / Stack / Outcome, each with an inline topology sheet.

   The sheet is drawn at viewBox width 340 so it renders ~1:1 inside the card
   at 375px: 10-11px labels stay 10-11px instead of shrinking under a pan.
   On desktop the sheet keeps the left column and the prose keeps the right.
   -------------------------------------------------------------------------- */

.brief {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
}

.brief-head {
  padding: 24px 26px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.brief-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

.brief-title {
  font-size: var(--fs-title);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  max-width: 38ch;
  text-wrap: balance;
}

.brief-body {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
}

.brief-figure {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg-base);
  border-right: 1px solid var(--border-subtle);
}

.brief-sheet { padding: 12px 0 2px; }
.sheet-svg { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto; }

.sheet-svg text {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: var(--text-primary);
  text-anchor: middle;
  letter-spacing: 0.01em;
}
.sheet-svg .s { font-size: 10px; fill: var(--text-quiet); }
.sheet-svg .band { fill: var(--bg-surface); stroke: var(--border-subtle); stroke-width: 1; }
.sheet-svg .band--dash { fill: none; stroke: var(--border-highlight); stroke-dasharray: 4 4; }
.sheet-svg .chip { fill: none; stroke: var(--border-highlight); stroke-width: 1; }
.sheet-svg .chip--dash { stroke-dasharray: 3 3; }
.sheet-svg .flow { fill: none; stroke: var(--accent-cyan); stroke-width: 1; }
.sheet-svg .tie { fill: none; stroke: var(--border-highlight); stroke-width: 1; stroke-dasharray: 4 4; }
.sheet-svg .rail { stroke: var(--border-highlight); stroke-width: 1; }
.sheet-svg .node { fill: var(--text-primary); }
.sheet-svg .bandlabel {
  font-size: 10px;
  letter-spacing: 0.12em;
  fill: var(--text-quiet);
  text-anchor: start;
}
.sheet-svg .tie-label { text-anchor: start; }

.brief-figure figcaption {
  margin-top: auto;
  padding: 14px 18px 16px;
  border-top: 1px solid var(--border-subtle);
}

.brief-sheet-caption {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-quiet);
}

.brief-key {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 10px;
}
.key {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
}
.key-sw { flex: none; display: inline-block; width: 14px; height: 9px; }
.key-sw--box { border: 1px solid var(--border-highlight); border-radius: 1px; }
.key-sw--dash { border: 1px dashed var(--border-highlight); border-radius: 1px; }
.key-sw--flow { height: 1px; background: var(--accent-cyan); }
.key-sw--tie { height: 0; border-top: 1px dashed var(--border-highlight); }
.key-sw--dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-primary); }

.brief-parts { padding: 24px 26px 22px; min-width: 0; }

.brief-part + .brief-part {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.brief-label {
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-quiet);
}

.brief-part p {
  max-width: 62ch;
  color: var(--text-secondary);
}

.brief-part code,
.brief-source code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.08);
  border-radius: 3px;
  padding: 1px 5px;
  overflow-wrap: anywhere;
}

.brief-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.brief-stack li {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  line-height: 1.4;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.03);
}

.brief-source {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  line-height: 1.8;
  color: var(--text-quiet);
  overflow-wrap: anywhere;
}
.brief-source a {
  color: var(--accent-cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.brief-source a:hover { color: #7dd3fc; }

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tool-tags li {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  padding: 5px 10px;
}

@media (max-width: 900px) {
  .brief-body { grid-template-columns: minmax(0, 1fr); }
  .brief-figure { border-right: 0; border-bottom: 1px solid var(--border-subtle); }
  .brief-sheet { padding: 14px 0 4px; }
  .brief-head { padding: 22px 18px 18px; }
  .brief-title { max-width: none; }
  .brief-parts { padding: 20px 18px; }
  .brief-part + .brief-part { margin-top: 20px; padding-top: 18px; }
}
