/* ==============================================================
   VIKRAMA INDUSTRIES: design system v1
   Built for brands. Engineered for shipping.
   Concept: the packaging dieline as brand language. Blueprint
   navy ground, draft linework, cargo-orange signal, mono
   engineering annotations, one kraft moment.
   Type: Plus Jakarta Sans (display) · Instrument Sans (body)
         JetBrains Mono (annotations, readouts)
   ============================================================== */

:root {
  --navy-950: #071322;
  --navy-900: #0C1F38;
  --navy-800: #123052;
  --line: rgba(216, 232, 255, 0.16);
  --line-strong: rgba(216, 232, 255, 0.38);
  --paper: #F2EFE6;
  --muted: #8FA6C6;
  --signal: #FF6B35;
  --signal-deep: #E4551F;
  --kraft: #C9A87C;
  --kraft-ink: #2A2118;

  --font-display: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;

  --w: 1180px;
  --px: clamp(20px, 4.5vw, 48px);
}

/* ---------- self-hosted fonts (first-party, latin subset) ----------
   One variable woff2 per family covers every weight in use, so the whole
   type system is three files. font-display: swap keeps text visible during
   load; the two above-the-fold faces (display + body) are preloaded in <head>.
   unicode-range is Google's latin subset; anything outside falls back. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url("/fonts/plus-jakarta-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/instrument-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/fonts/jetbrains-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

html { scroll-behavior: smooth; }
/* No overflow-clip net (doctrine v1.3): overflow is fixed at the measure, not
   masked. The content column is fluid (max-width 800, width 100%), tables
   scroll inside .table-scroll, and long tokens wrap via overflow-wrap. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  background: var(--navy-950);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
}

.wrap { max-width: var(--w); margin: 0 auto; padding-left: var(--px); padding-right: var(--px); }

/* ---------- annotations (signature utility) ---------- */
.anno {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
}
.anno--dim { color: var(--muted); }
.anno-rule { display: inline-flex; align-items: center; gap: 12px; }
.anno-rule::before, .anno-rule::after { content: ""; height: 1px; width: 34px; background: var(--line-strong); }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--font-display); line-height: 0.98; letter-spacing: -0.01em; }
h1 { font-weight: 800; font-size: clamp(42px, 7.2vw, 92px); }
h2 { font-weight: 800; font-size: clamp(30px, 4.4vw, 54px); margin: 14px 0 16px; }
h3 { font-weight: 700; font-size: clamp(19px, 2.2vw, 24px); }
.lede { color: var(--muted); font-size: clamp(17px, 1.5vw, 19.5px); max-width: 58ch; }
.lede strong { color: var(--paper); font-weight: 500; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 60;
  background: rgba(7, 19, 34, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 66px; gap: 16px; }
.brand { font-family: var(--font-display); font-weight: 800; font-size: clamp(15px, 3.4vw, 19px); letter-spacing: 0.01em; text-decoration: none; display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.site-foot .brand { font-size: 20px; }
.brand-mark { width: 26px; height: 26px; }
.nav { display: flex; align-items: center; gap: 24px; }
/* :not(.btn) so this never overrides .btn--signal's navy ink on the CTA
   (root cause of the low-contrast header CTA). No !important needed. */
.nav a:not(.btn) { font-size: 15px; font-weight: 500; text-decoration: none; color: var(--muted); }
.nav a:not(.btn):hover { color: var(--paper); }
.nav a.is-active:not(.btn) { color: var(--signal); text-decoration: underline; text-underline-offset: 5px; }
.site-foot a.is-active { color: var(--signal); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16.5px;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 13px 24px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--paper);
  background: transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
/* navy ink on signal orange: 6.6:1 on --signal, 5.1:1 on --signal-deep, both
   clear AA. Hover and focus keep the same navy so contrast never drops. */
.btn--signal { background: var(--signal); border-color: var(--signal); color: #071322; }
.btn--signal:hover, .btn--signal:focus, .btn--signal:focus-visible { background: var(--signal-deep); border-color: var(--signal-deep); color: #071322; }
.btn--ghost:hover { border-color: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 84px); }
.hero-art { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
/* CLS: the art box is reserved from first paint. aspect-ratio matches the
   dieline SVG viewBox (1240 x 640) so the drawn linework and the ::after
   overlay occupy a known height before load and nothing reflows the hero. */
.hero-art svg { display: block; width: 120%; min-width: 900px; aspect-ratio: 1240 / 640; height: auto; margin-left: -6%; margin-top: -20px; opacity: 0.28; }
/* navy-950 overlay fades linework behind the text column and bottom edge.
   Opacity sits on the svg so this overlay stays at full strength. */
.hero-art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to right, var(--navy-950) 0%, rgba(7, 19, 34, 0.86) 38%, rgba(7, 19, 34, 0) 66%),
    linear-gradient(to top, var(--navy-950) 0%, rgba(7, 19, 34, 0) 32%);
}
/* dimension labels are signal-orange <text>; hide them where the layout
   tightens so they never collide with copy. */
@media (max-width: 1199px) {
  .hero-art svg text[fill="#FF6B35"] { display: none; }
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero h1 { margin: 16px 0 18px; max-width: 11ch; }
.hero .lede { margin-bottom: 26px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; }
.hero-proof span { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--muted); }
.hero-proof b { color: var(--paper); font-weight: 500; }

/* dieline draw-on animation */
.draw path, .draw line, .draw rect, .draw polyline {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: drawline 1.8s ease forwards;
}
.draw .d2 { animation-delay: 0.5s; }
.draw .d3 { animation-delay: 1s; }
@keyframes drawline { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .draw path, .draw line, .draw rect, .draw polyline { stroke-dasharray: none; stroke-dashoffset: 0; }
}

/* ---------- quote engine card ---------- */
.quote-card {
  background: var(--navy-900);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.qc-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}
.qc-head .anno--live { color: var(--signal); display: inline-flex; align-items: center; gap: 8px; }
.qc-head .anno--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); animation: pulse 2s ease infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.qc-body { padding: 20px; display: grid; gap: 14px; }
/* dual-unit toggle (IN | MM) */
.qc-units { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.unit-toggle { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 2px; }
.unit-toggle button {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
  background: var(--navy-950); border: 0; border-radius: 2px;
  padding: 8px 16px; cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.unit-toggle button + button { border-left: 1px solid var(--line-strong); }
.unit-toggle button:hover { color: var(--paper); }
.unit-toggle button[aria-pressed="true"] { background: var(--signal); color: #16100B; }
.qc-dims { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.qc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field label {
  display: block;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 6px;
}
.field input, .field select {
  width: 100%;
  background: var(--navy-950);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 15.5px;
  padding: 11px 12px;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.qc-readout {
  border: 1px dashed var(--line-strong);
  border-radius: 3px;
  padding: 16px 18px;
  display: grid; gap: 6px;
}
.qc-price { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 3.4vw, 40px); line-height: 1; color: var(--signal); }
.qc-sub { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.06em; color: var(--muted); }
.qc-sub b { color: var(--paper); font-weight: 500; }
.qc-note { font-size: 13px; color: var(--muted); line-height: 1.5; }
.qc-body .btn { width: 100%; text-align: center; }

/* ---------- ticker ---------- */
.ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--navy-900); }
.ticker .wrap { display: flex; flex-wrap: wrap; gap: 10px 34px; justify-content: space-between; padding-top: 13px; padding-bottom: 13px; }
.ticker span { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; color: var(--muted); }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(30px, 4vw, 52px); }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { border: 1px solid var(--line); border-radius: 4px; padding: 24px 22px 26px; background: var(--navy-900); position: relative; }
.step .anno { display: block; margin-bottom: 14px; }
.step svg { height: 74px; width: auto; margin-bottom: 18px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15.5px; }
.step::after {
  content: ""; position: absolute; top: 10px; right: 10px;
  width: 14px; height: 14px;
  border-top: 1px solid var(--line-strong); border-right: 1px solid var(--line-strong);
}

/* products */
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.prod { border: 1px solid var(--line); border-radius: 4px; background: var(--navy-900); padding: 22px; position: relative; }
.prod::before, .prod::after {
  content: ""; position: absolute; width: 12px; height: 12px;
}
.prod::before { top: 8px; left: 8px; border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); }
.prod::after { bottom: 8px; right: 8px; border-bottom: 1px solid var(--line-strong); border-right: 1px solid var(--line-strong); }
.prod svg { height: 88px; width: auto; margin: 6px 0 16px; }
.prod h3 { margin-bottom: 6px; }
.prod p { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.prod a { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--signal); text-decoration: none; }
.prod a:hover { text-decoration: underline; }

/* ledger: old way vs system */
.ledger { border: 1px solid var(--line-strong); border-radius: 4px; overflow: hidden; }
.ledger-row { display: grid; grid-template-columns: 1fr 1fr; }
.ledger-row + .ledger-row { border-top: 1px solid var(--line); }
.ledger-cell { padding: 18px 22px; font-family: var(--font-mono); font-size: 14px; line-height: 1.55; }
.ledger-cell.old { color: var(--muted); background: var(--navy-950); text-decoration: line-through; text-decoration-color: rgba(143,166,198,.5); text-decoration-thickness: 1px; }
.ledger-cell.new { background: var(--navy-900); color: var(--paper); border-left: 1px solid var(--line); }
.ledger-cell.new::before { content: "-> "; color: var(--signal); }
.ledger-head .ledger-cell { text-decoration: none; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--signal); padding-top: 13px; padding-bottom: 13px; }
.ledger-head .ledger-cell.old { color: var(--muted); }
.ledger-head .ledger-cell.new::before { content: ""; }

/* spec vault: the kraft moment */
.vault { display: grid; grid-template-columns: 1fr 0.9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.spec-card {
  background: var(--kraft);
  color: var(--kraft-ink);
  border-radius: 4px;
  padding: 26px 26px 24px;
  transform: rotate(-1.4deg);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
}
.spec-card .anno { color: var(--signal-deep); }
.spec-card h3 { font-size: 26px; margin: 8px 0 16px; }
.spec-lines { font-family: var(--font-mono); font-size: 13.5px; line-height: 2; border-top: 1px dashed rgba(42, 33, 24, 0.45); padding-top: 14px; }
.spec-lines b { font-weight: 600; }
.spec-stamp {
  display: inline-block; margin-top: 16px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em;
  border: 2px solid var(--signal-deep); color: var(--signal-deep);
  padding: 5px 10px; transform: rotate(1.6deg);
}

/* CTA */
.cta { background: var(--signal); color: #16100B; }
.cta h2 { max-width: 16ch; }
.cta .lede { color: rgba(22, 16, 11, 0.78); }
.cta .btn { border-color: #16100B; color: #16100B; }
.cta .btn:hover { background: #16100B; color: var(--signal); }
.cta .btn--dark { background: #16100B; color: var(--signal); }
.cta .btn--dark:hover { background: transparent; color: #16100B; }
.cta .anno { color: #16100B; }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding: 44px 0 36px; }
.foot-top { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding-bottom: 28px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 40px; }
@media (max-width: 860px) { .foot-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-cols { grid-template-columns: 1fr; } }
.site-foot p, .site-foot a { color: var(--muted); font-size: 14.5px; }
.site-foot a:hover { color: var(--paper); }
.foot-tag { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.foot-note { margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--muted); }
/* Studio credit: keep the linked name on one line, wrap only between words */
.foot-note a { white-space: nowrap; }

/* WhatsApp float */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 70;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  text-decoration: none; color: #16100B;
  background: var(--signal); border-radius: 3px;
  padding: 12px 18px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  display: inline-flex; align-items: center; gap: 8px;
}
.wa-float:hover { background: var(--signal-deep); color: var(--paper); }
.wa-float-icon { display: none; width: 26px; height: 26px; }
@media (max-width: 640px) {
  .wa-float { right: 16px; bottom: 16px; padding: 0; width: 56px; height: 56px; border-radius: 50%; justify-content: center; }
  .wa-float-text { display: none; }
  .wa-float-icon { display: block; }
  /* clearance so the circular float never covers the footer credit lines */
  .site-foot { padding-bottom: 96px; }
}

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero-grid, .vault { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
  .hero-art svg { opacity: 0.22; }
}
@media (max-width: 640px) {
  .ledger-row { grid-template-columns: 1fr; }
  .ledger-cell.new { border-left: none; border-top: 1px dashed var(--line); }
  .ledger-head { display: none; }
  .qc-dims { grid-template-columns: 1fr 1fr 1fr; }
}

/* ---------- mobile menu + compact header (<=1024 / <=768) ---------- */
.nav-toggle { display: none; }
.nav-menu { display: none; }
@media (max-width: 1024px) {
  .nav a:not(.btn) { display: none; }        /* inline links move into the panel */
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0; background: transparent;
    border: 1px solid var(--line-strong); border-radius: 3px; color: var(--paper); cursor: pointer;
  }
  .nav-toggle svg { width: 22px; height: 22px; display: block; }
  .nav-menu {
    display: flex; position: fixed; inset: 0; height: 100dvh; z-index: 200;
    background: var(--navy-950);          /* opaque #071322 from the token */
    flex-direction: column; justify-content: flex-start; overflow-y: auto;
    padding: calc(72px + env(safe-area-inset-top)) calc(var(--px) + env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) calc(var(--px) + env(safe-area-inset-left));
    transform: translateY(-100%); visibility: hidden;
    transition: transform 0.25s ease, visibility 0s linear 0.25s;
  }
  .nav-menu.is-open { transform: translateY(0); visibility: visible; transition: transform 0.25s ease; }
  .nav-menu-close {
    position: absolute; top: calc(14px + env(safe-area-inset-top)); right: var(--px); width: 44px; height: 44px;
    background: transparent; border: 1px solid var(--line-strong); border-radius: 3px;
    color: var(--paper); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  }
  .nav-menu-close svg { width: 22px; height: 22px; }
  .nav-menu ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 4px; }
  .nav-menu-link {
    font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em;
    font-size: clamp(18px, 5vw, 24px); color: var(--paper); text-decoration: none; padding: 12px 0; display: block;
  }
  .nav-menu-link:hover { color: var(--signal); }
  .nav-menu-link.is-active { color: var(--signal); text-decoration: underline; text-underline-offset: 6px; }
  .nav-menu-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 768px) {
  /* compact single-line CTA, vertically centred; header row height stays stable */
  .site-head .nav .btn--signal { padding: 9px 15px; font-size: 15px; white-space: nowrap; }
  .site-head .wrap { gap: 10px; }
  .site-head .nav { gap: 10px; }             /* logo left; CTA + hamburger right, even gap, no crowding at 360px */
  /* decorative hero art must not intersect the heading/badge on small screens;
     the box stays reserved (art is absolutely positioned) so there is no CLS. */
  .hero-art { opacity: 0; }
}

/* ==============================================================
   BLOG ENGINE (Phase 1). Components built on existing tokens only.
   Generated pages: blog/, authors/. No new colours or fonts.
   ============================================================== */

/* Article reading layout as a grid: a single centered content column, plus an
   optional left rail column for the contents TOC that only exists at >=1480px.
   The 800px column is the single source of the measure: every block inside the
   article takes the full column width, nothing breaks out. */
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 1048px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--px) clamp(56px, 8vw, 96px); }
.article-grid > .post-toc { display: none; }
.article { max-width: 800px; width: 100%; margin: 0 auto; min-width: 0; overflow-wrap: anywhere; }
/* The TOC rail column exists ONLY on .has-toc grids (blog posts). Every other
   article page is a single centered column at all widths, so its content never
   lands in a reserved rail. */
@media (min-width: 1480px) {
  .article-grid.has-toc { grid-template-columns: 200px 800px; column-gap: 40px; max-width: 1040px; justify-content: center; padding-left: 0; padding-right: 0; }
  .article-grid.has-toc > .post-toc { display: block; grid-column: 1; position: sticky; top: 100px; align-self: start; max-height: calc(100vh - 130px); overflow-y: auto; }
}

.breadcrumb { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--paper); }
.breadcrumb span { color: var(--line-strong); margin: 0 8px; }

.tag { display: inline-block; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--signal); border: 1px solid var(--line-strong); border-radius: 2px; padding: 4px 10px; text-decoration: none; }
.article h1 { font-size: clamp(30px, 5vw, 46px); margin: 16px 0 22px; }

/* byline: centered author block */
.byline { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding-bottom: 26px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.avatar { border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; color: #16100B; background: var(--signal); }
.byline .avatar { width: 52px; height: 52px; font-size: 18px; }
.byline .who { font-family: var(--font-mono); font-size: 13.5px; letter-spacing: 0.03em; color: var(--muted); }
.byline .who a { color: var(--paper); text-decoration: none; font-weight: 500; }
.byline .who a:hover { color: var(--signal); }
.byline .stamp { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--muted); }

/* body */
.article p { margin: 0 0 18px; }
.article h2 { font-size: clamp(23px, 3vw, 30px); margin: 40px 0 14px; }
.article ul { margin: 0 0 22px; padding: 0; list-style: none; display: grid; gap: 9px; }
.article ul li { position: relative; padding-left: 24px; }
.article ul li::before { content: ""; position: absolute; left: 3px; top: 12px; width: 9px; height: 1px; background: var(--signal); }

/* answer box: AEO snippet target */
.answerbox { background: var(--navy-900); border: 1px solid var(--line-strong); border-left: 3px solid var(--signal); border-radius: 4px; padding: 20px 22px; margin: 0 0 32px; }
.answerbox .anno { display: block; margin-bottom: 8px; }
.answerbox p { margin: 0; font-size: 17.5px; color: var(--paper); line-height: 1.55; }

/* pull quote: GEO citation hook */
.pullquote { border-left: 3px solid var(--signal); padding: 4px 0 4px 22px; margin: 30px 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 2.6vw, 26px); line-height: 1.26; color: var(--paper); }

/* spec table */
/* a wide article table scrolls within its own wrapper, never widening the page */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 8px 0 24px; }
/* Only 4+ column tables get a min-width so they scroll inside the wrapper;
   2 and 3 column tables compress and fit the page down to 360px. */
.table-scroll .spectable--wide { min-width: 560px; }
.spectable { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.spectable caption { text-align: left; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.spectable th, .spectable td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.spectable thead th { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--signal); background: var(--navy-900); white-space: nowrap; }
.spectable tbody tr:nth-child(even) td { background: rgba(216, 232, 255, 0.03); }

/* neutral two-column comparison */
.compare { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-strong); border-radius: 4px; overflow: hidden; margin: 8px 0 24px; }
.compare > div { padding: 12px 16px; }
.compare .col-head { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; background: var(--navy-900); }
.compare .col-head.a { color: var(--muted); }
.compare .col-head.b { color: var(--signal); }
.compare .cell { font-size: 14.5px; border-top: 1px solid var(--line); line-height: 1.5; }
.compare .cell.a { color: var(--muted); }
.compare .cell.b { color: var(--paper); }
.compare .b { border-left: 1px solid var(--line); }

/* FAQ */
.faq { border-top: 1px solid var(--line); margin-top: 8px; }
.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item h3 { font-size: 18px; margin-bottom: 8px; }
.faq-item p { color: var(--muted); margin: 0; }

/* related links */
.related { border: 1px solid var(--line); border-radius: 4px; padding: 20px 22px; margin: 36px 0 0; background: var(--navy-900); }
.related .anno { display: block; margin-bottom: 12px; }
.related ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.related a { color: var(--paper); text-decoration: none; font-family: var(--font-mono); font-size: 14px; }
.related a::before { content: "-> "; color: var(--signal); }
.related a:hover { color: var(--signal); }

/* blog hub + author cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; align-items: stretch; }
@media (max-width: 1099px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .card-grid { grid-template-columns: 1fr; } }
/* industries hub tiles: same responsive card treatment, higher specificity
   than .article ul so the dash bullets do not apply. */
.article ul.link-list { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.article ul.link-list li { padding-left: 0; }
.article ul.link-list li::before { display: none; }
.article ul.link-list a { display: block; border: 1px solid var(--line); border-radius: 4px; background: var(--navy-900); padding: 14px 16px; text-decoration: none; color: var(--paper); transition: border-color 0.15s ease, color 0.15s ease; }
.article ul.link-list a:hover { border-color: var(--line-strong); color: var(--signal); }
@media (max-width: 720px) { .article ul.link-list { grid-template-columns: 1fr; } }
.card { border: 1px solid var(--line); border-radius: 4px; background: var(--navy-900); padding: 24px; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: border-color 0.15s ease, transform 0.15s ease; }
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card .tag { margin-bottom: 14px; align-self: flex-start; }
.card h3 { font-size: 20px; margin-bottom: 10px; line-height: 1.12; }
.card p { color: var(--muted); font-size: 14.5px; margin-bottom: 16px; flex-grow: 1; }
.card-meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.03em; color: var(--muted); }
.card-meta b { color: var(--paper); font-weight: 500; }

.author-hero { text-align: center; max-width: 640px; margin: 0 auto clamp(36px, 6vw, 60px); }
.author-hero .avatar { width: 78px; height: 78px; margin: 0 auto 18px; font-size: 28px; }
.author-hero .role { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--signal); margin: 8px 0 14px; }
.author-hero p { color: var(--muted); }
.author-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.author-card { border: 1px solid var(--line); border-radius: 4px; background: var(--navy-900); padding: 24px 22px; text-decoration: none; color: inherit; text-align: center; }
.author-card:hover { border-color: var(--line-strong); }
.author-card .avatar { width: 58px; height: 58px; margin: 0 auto 14px; font-size: 21px; }
.author-card h3 { font-size: 18px; }
.author-card .role { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

@media (max-width: 640px) {
  .card-grid { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .compare .b { border-left: none; }
  .compare .cell.b { border-top: 1px dashed var(--line); }
}

/* ==============================================================
   MOTION (Phase-1 polish). Applied by js/ui.js only when motion is
   allowed; every effect is also killed by the global reduced-motion
   rule near the top of this file. Hero dieline draw-on is unchanged.
   ============================================================== */

/* scroll reveal: js/ui.js adds .js-reveal to below-fold targets, then
   .is-visible when they enter. Under reduced motion ui.js does nothing,
   so nothing is ever hidden. */
.js-reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js-reveal.is-visible { opacity: 1; transform: none; }

/* quote readout pulse on every recompute */
.qc-price { transform-origin: left center; }
@keyframes qpulse {
  0% { transform: scale(1); }
  45% { transform: scale(1.02); text-shadow: 0 0 12px rgba(255, 107, 53, 0.55); }
  100% { transform: scale(1); text-shadow: none; }
}
.qc-price.is-pulse { animation: qpulse 150ms ease; }

/* trust ticker marquee: ui.js wraps the spans in a duplicated track */
.ticker.is-marquee { overflow: hidden; }
.ticker.is-marquee .wrap { display: block; overflow: hidden; }
.ticker-track { display: flex; align-items: center; width: max-content; white-space: nowrap; will-change: transform; animation: tickerscroll 40s linear infinite; }
.ticker-track > * { margin-right: 34px; }
.ticker.is-marquee:hover .ticker-track { animation-play-state: paused; }
@keyframes tickerscroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ==============================================================
   EXACTLY-FIVE CARD GRID (3+2 centered). Applied to /products only.
   ============================================================== */
/* Desktop >=1100px unchanged: 3 over 2, centred. Below that, explicit
   breakpoints with no orphan spanning, so the last card is the same size as
   its siblings (fixes the die-cut monolith). Rows equalise via stretch. */
.grid-5 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; align-items: stretch; }
.grid-5 > * { grid-column: span 2; }
.grid-5 > *:nth-child(4) { grid-column: 2 / span 2; }
.grid-5 > *:nth-child(5) { grid-column: 4 / span 2; }
@media (max-width: 1099px) {
  .grid-5 { grid-template-columns: 1fr 1fr; }
  .grid-5 > *, .grid-5 > *:nth-child(4), .grid-5 > *:nth-child(5) {
    grid-column: auto; justify-self: stretch; width: auto;
  }
}
@media (max-width: 720px) {
  .grid-5 { grid-template-columns: 1fr; }
}

/* expanded footer column headings */
.foot-head { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--paper); margin-bottom: 8px; }

/* blog post contents rail: styled here, shown as a sticky grid item by the
   .article-grid rules above only at >=1480px (never a fixed overlay) */
.post-toc { display: none; }
.post-toc .toc-head { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.post-toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; border-left: 1px solid var(--line); }
.post-toc a { display: block; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.35; color: var(--muted); text-decoration: none; padding: 0 0 0 14px; }
.post-toc a:hover { color: var(--paper); }

/* contact form (secondary path under WhatsApp) */
.vi-form { display: grid; gap: 14px; max-width: 560px; margin-top: 8px; }
.vi-form .field textarea {
  width: 100%; background: var(--navy-950); border: 1px solid var(--line-strong);
  border-radius: 2px; color: var(--paper); font-family: var(--font-body);
  font-size: 15.5px; line-height: 1.5; padding: 11px 12px; resize: vertical;
}
.vi-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.vi-form button { justify-self: start; }
.vi-form-status { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.02em; margin: 2px 0 0; min-height: 1.2em; }
.vi-form-status.ok { color: var(--signal); }
.vi-form-status.err { color: var(--kraft); }
.vi-form .field { position: relative; }
.field-err { display: block; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em; color: var(--signal); margin-top: 5px; min-height: 1em; }
.captcha-q { font-family: var(--font-mono); color: var(--paper); text-transform: none; letter-spacing: 0; }
.vi-form-note { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 4px 0 0; }
