/* ==========================================================================
   SolisTrack — Stylesheet
   Visual identity: a device ledger you could actually run a warehouse on.
   Ledger-paper surfaces, stamped verification marks, an asset-tag as the
   signature component. No build step, no dependencies.
   ========================================================================== */

/* -- Self-hosted fonts ----------------------------------------------------- */

@font-face {
  font-family: 'Big Shoulders';
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url('../fonts/bigshoulders-variable.woff2') format('woff2-variations'),
       url('../fonts/bigshoulders-variable.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/inter-variable.woff2') format('woff2-variations'),
       url('../fonts/inter-variable.woff2') format('woff2');
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/plexmono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/plexmono-500.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/plexmono-600.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/plexmono-700.woff2') format('woff2');
}

/* -- Design tokens -----------------------------------------------------
   Paper is warm sisal/manila, not cool sage and not flat cream. Ink is a
   near-black with a dusk-brown warmth — think jiko charcoal and last
   light over the savanna, not office-supply grey. Colour stays
   functional first (red = stamped/active, green = reconciled, amber =
   flagged/pending) with one added accent — solar gold — held for
   marketing/impact moments: hero energy, stat highlights, the brand
   strip. Nothing here is decorative-only.
   ---------------------------------------------------------------------- */

:root {
  /* Core neutrals */
  --ink: #1a140f;              /* dusk ink — warm near-black */
  --ink-soft: #261e16;
  --ink-line: rgba(245, 236, 217, 0.14);
  --paper: #f2e6cc;            /* sisal / manila paper */
  --paper-dim: #e8d7b3;        /* deeper manila for panels */
  --paper-line: rgba(26, 20, 15, 0.14);
  --text-on-paper: #201811;
  --text-on-paper-soft: #6b5c47;
  --text-on-ink: #f5ecd9;
  --text-on-ink-soft: #b3a688;

  /* Functional accents — status, not decoration */
  --stamp: #b23a22;            /* rubber-stamp red — primary / verified-in-progress */
  --stamp-strong: #8f2e1a;
  --verified: #3f7a4e;         /* reconciled / closed-loop green, warmed slightly */
  --verified-strong: #2c5a38;
  --warn: #b1832c;             /* flagged / pending amber (status only) */
  --warn-strong: #8f6a20;

  /* Marketing accent — reserved for hero energy, stat highlights, brand strip */
  --solar: #e08c2a;            /* solar gold — warmer & more vivid than --warn */
  --solar-strong: #b5691a;
  --savanna: #d9973c;          /* dusk-sky gold used only in the skyline motif */

  /* Legacy aliases (kept so inline references from earlier drafts still resolve) */
  --amber-strong: var(--stamp-strong);
  --copper-strong: var(--verified-strong);
  --gold: var(--warn);

  --focus-ring: #b23a22;

  /* Type */
  --font-display: 'Big Shoulders', 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;

  /* Layout */
  --container-max: 1200px;
  --container-pad: clamp(1.25rem, 4vw, 3rem);
  --section-pad-y: clamp(4rem, 9vw, 8rem);
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --rule-inset: clamp(20px, 6vw, 64px);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.6s;
}

/* -- Reset ------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text-on-paper);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p, figure { margin: 0; }

main { display: block; }

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: var(--text-on-ink);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

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

::selection { background: var(--warn); color: var(--ink); }

/* -- Ledger-margin rule --------------------------------------------------
   A single fixed-inset vertical rule, the way ruled ledger paper carries
   a margin line down the page. Appears inside full-bleed dark sections.
   ------------------------------------------------------------------- */

.hero, .page-hero, .section--ink, .cta-band { position: relative; }
.hero::before, .page-hero::before, .section--ink::before, .cta-band::before {
  content: '';
  position: absolute;
  left: var(--rule-inset);
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(178, 58, 34, 0.4);
  pointer-events: none;
}

/* -- Savanna / solar skyline motif ---------------------------------------
   A flat, hard-edged silhouette — no blur, no radial glow. Acacia trees
   and ground-mount solar arrays on one horizon line, with the sun as a
   solid disc clipped by the ground plane. Sits behind hero/CTA content.
   ------------------------------------------------------------------- */

.skyline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
  z-index: 0;
}
.skyline-fill { fill: var(--ink-soft); }
.skyline-rim { stroke: var(--solar); stroke-opacity: 0.5; }
.hero .hero-grid, .hero .stat-strip { position: relative; z-index: 1; }
.cta-band .container-inner { z-index: 1; }

/* Faint ledger ruling across paper sections */
.section:not(.section--ink):not(.section--dim) {
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(26, 20, 15, 0.05) 0,
    rgba(26, 20, 15, 0.05) 1px,
    transparent 1px,
    transparent 2.6rem
  );
  background-position: 0 4rem;
}

/* -- Typography ---------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.005em;
  line-height: 0.98;
  color: var(--text-on-paper);
}

.hero h1, .hero h2, .hero h3, .hero h4,
.page-hero h1, .page-hero h2, .page-hero h3, .page-hero h4,
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4,
.cta-band h1, .cta-band h2, .cta-band h3, .cta-band h4,
.on-ink h1, .on-ink h2, .on-ink h3, .on-ink h4 { color: var(--text-on-ink); }

h1, .h1 { font-size: clamp(2.75rem, 4.4vw + 1.2rem, 6.25rem); font-weight: 800; line-height: 0.96; }
h2, .h2 { font-size: clamp(2.1rem, 2.6vw + 1rem, 3.75rem); font-weight: 800; line-height: 1.0; }
h3, .h3 { font-size: clamp(1.375rem, 0.9vw + 1.05rem, 1.75rem); font-weight: 700; line-height: 1.08; }
h4, .h4 { font-size: clamp(1.125rem, 0.4vw + 1rem, 1.3rem); font-weight: 700; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stamp-strong);
}
.hero .eyebrow, .page-hero .eyebrow, .section--ink .eyebrow, .cta-band .eyebrow, .on-ink .eyebrow { color: var(--warn); }

.eyebrow::before {
  content: '';
  width: 1.5rem;
  height: 1px;
  background: currentColor;
}

.lede {
  font-size: clamp(1.125rem, 0.6vw + 1rem, 1.375rem);
  line-height: 1.55;
  color: var(--text-on-paper-soft);
  max-width: 46ch;
}
.hero .lede, .page-hero .lede, .section--ink .lede, .cta-band .lede, .on-ink .lede { color: var(--text-on-ink-soft); }

p.body-text { max-width: 62ch; color: var(--text-on-paper-soft); }

.italic-flourish {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: normal;
}

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

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

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

.section--tight { padding-block: clamp(2.5rem, 5vw, 4.5rem); }

.section--ink {
  background: var(--ink);
  color: var(--text-on-ink);
  background-image:
    repeating-linear-gradient(to bottom, rgba(236,238,220,0.05) 0, rgba(236,238,220,0.05) 1px, transparent 1px, transparent 2.6rem);
}

.section--dim { background: var(--paper-dim); }

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head.center { margin-inline: auto; text-align: center; }

.grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 980px) {
  .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
}

.stack { display: flex; flex-direction: column; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }

/* -- Buttons -----------------------------------------------------------
   Rectangular, stamped. Hard offset shadow instead of a blurred glow —
   the button "presses down" onto the shadow on interaction.
   ---------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.65rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.btn-primary {
  background: var(--stamp);
  color: #f6f2e4;
  box-shadow: 4px 4px 0 0 var(--ink);
}
.btn-primary:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 0 var(--ink); }
.btn-primary:active { transform: translate(4px, 4px); box-shadow: 0 0 0 0 var(--ink); }

.btn-ghost-on-ink {
  border: 1.5px solid var(--ink-line);
  color: var(--text-on-ink);
}
.btn-ghost-on-ink:hover { border-color: var(--warn); color: var(--warn); }

.btn-ghost {
  border: 1.5px solid var(--paper-line);
  color: var(--text-on-paper);
}
.btn-ghost:hover { border-color: var(--stamp-strong); color: var(--stamp-strong); }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--stamp-strong);
  border-bottom: 1.5px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.25s var(--ease), gap 0.25s var(--ease);
}
.btn-link:hover { border-color: currentColor; gap: 0.6rem; }
.on-ink .btn-link { color: var(--warn); }

.btn-link svg { width: 1em; height: 1em; }

/* -- Site header ------------------------------------------------------------*/

.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(26, 20, 15, 0.7);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid transparent;
  transition: padding 0.35s var(--ease), border-color 0.35s var(--ease), background-color 0.35s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--ink-line);
  background: rgba(15, 18, 12, 0.92);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.35rem;
  transition: padding 0.35s var(--ease);
}

.site-header.is-scrolled .container { padding-block: 0.85rem; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  color: var(--text-on-ink);
}

.brand .mark { width: 32px; height: 32px; flex: none; }

.nav-desktop {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2vw, 2.25rem);
}

.nav-desktop a {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-on-ink-soft);
  padding-block: 0.35rem;
  border-bottom: 1.5px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: var(--text-on-ink);
  border-bottom-color: var(--stamp);
}

.nav-cta { display: flex; align-items: center; gap: 1.5rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
}
.nav-toggle:hover { background: var(--ink-line); }
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-on-ink);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem var(--container-pad) 1.75rem;
  background: rgba(15, 18, 12, 0.98);
  border-bottom: 1px solid var(--ink-line);
}
.nav-mobile.is-open { display: flex; }
.nav-mobile a {
  padding: 0.9rem 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-on-ink-soft);
  border-bottom: 1px solid var(--ink-line);
}
.nav-mobile a:last-of-type { border-bottom: none; }
.nav-mobile a[aria-current="page"] { color: var(--warn); }
.nav-mobile .btn { margin-top: 1rem; justify-content: center; }

@media (max-width: 860px) {
  .nav-desktop { display: none; }
  .nav-cta .btn-primary { display: none; }
  .nav-toggle { display: flex; }
}

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

.hero {
  background: var(--ink);
  color: var(--text-on-ink);
  padding-top: clamp(3.5rem, 8vw, 6.5rem);
  padding-bottom: clamp(4rem, 9vw, 7rem);
  overflow: hidden;
}

.hero .container { position: relative; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
}

.hero h1 { margin-block: 1.25rem 1.5rem; }
.hero .lede { margin-bottom: 2.25rem; }

/* -- Hero slideshow ---------------------------------------------------
   All slides occupy the same grid cell; the container's height follows
   the tallest slide automatically. Crossfade only — no sliding/parallax.
   ------------------------------------------------------------------- */

.hero-slideshow { display: grid; }
.hero-slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s var(--ease), visibility 0s 0.6s;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s var(--ease), visibility 0s 0s;
  z-index: 1;
}

.hero-controls {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2.25rem;
}
.hero-dots { display: flex; gap: 0.6rem; }
.hero-dots button {
  width: 30px;
  height: 3px;
  border-radius: 2px;
  background: var(--ink-line);
  transition: background-color 0.3s var(--ease), width 0.3s var(--ease);
}
.hero-dots button.is-active { background: var(--solar); width: 46px; }
.hero-dots button:hover { background: var(--text-on-ink-soft); }
.hero-arrow {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--ink-line);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-on-ink-soft);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.hero-arrow:hover { border-color: var(--solar); color: var(--solar); }
.hero-arrow svg { width: 16px; height: 16px; }

.page-hero {
  background: var(--ink);
  color: var(--text-on-ink);
  padding-top: clamp(3rem, 7vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}
.page-hero h1 { margin-top: 1.1rem; }
.page-hero .lede { margin-top: 1.25rem; max-width: 52ch; }

/* -- Stat strip ------------------------------------------------------------*/

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 2rem);
  border-top: 1px solid var(--ink-line);
  padding-top: clamp(2rem, 4vw, 2.75rem);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
@media (max-width: 700px) {
  .stat-strip { grid-template-columns: 1fr; gap: 1.75rem; }
}
.stat-strip .num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(1.85rem, 2.6vw, 2.5rem);
  color: var(--warn);
  display: block;
  margin-bottom: 0.35rem;
}
.stat-strip .label { color: var(--text-on-ink-soft); font-size: 0.95rem; max-width: 26ch; }

/* -- Asset-tag card (signature component) --------------------------------
   Styled like a physical hardware tag: a punch-hole grommet, a mono
   device ID, and a row of entries each carrying a status stamp.
   ------------------------------------------------------------------- */

.tag-card {
  background: var(--ink-soft);
  border: 1.5px solid var(--ink-line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  position: relative;
}

.tag-card .grommet {
  position: absolute;
  top: 1.4rem;
  left: 1.4rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--text-on-ink-soft);
  background: var(--ink);
}

.tag-card .tag-id {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--text-on-ink-soft);
  padding-left: 2.5rem;
  margin-bottom: 1.1rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--ink-line);
}

.tag-card .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--ink-line);
}
.tag-card .row:last-child { border-bottom: none; }
.tag-card .row .id {
  font-size: 0.85rem;
  color: var(--text-on-ink-soft);
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stamp-mark {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.6rem;
  border-radius: 3px;
  white-space: nowrap;
}
.stamp-done {
  border: 1.5px solid var(--verified);
  color: var(--verified);
  background: rgba(63, 122, 78, 0.1);
  transform: rotate(-3deg);
  display: inline-block;
}
.stamp-active {
  border: 1.5px solid var(--stamp);
  color: var(--stamp);
  background: rgba(178, 58, 34, 0.12);
}
.stamp-pending {
  border: 1px dashed var(--ink-line);
  color: var(--text-on-ink-soft);
  background: transparent;
}

/* Light-surface variant of the tag card, used on paper sections */
.tag-card.on-paper {
  background: var(--paper);
  border-color: var(--paper-line);
}
.tag-card.on-paper .grommet { border-color: var(--text-on-paper-soft); background: var(--paper-dim); }
.tag-card.on-paper .tag-id { color: var(--text-on-paper-soft); border-bottom-color: var(--paper-line); }
.tag-card.on-paper .row { border-bottom-color: var(--paper-line); }
.tag-card.on-paper .row .id { color: var(--text-on-paper-soft); }
.tag-card.on-paper .stamp-pending { border-color: var(--paper-line); color: var(--text-on-paper-soft); }

/* -- Feature cards ---------------------------------------------------------*/

.card {
  background: var(--paper);
  border: 1.5px solid var(--paper-line);
  border-radius: var(--radius-md);
  padding: clamp(1.75rem, 3vw, 2.25rem);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.section--dim .card, .section--ink .card { background: var(--ink-soft); border-color: var(--ink-line); }

.card:hover {
  transform: translateY(-4px);
  border-color: var(--stamp);
}

.card .icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1.5px solid var(--stamp);
  color: var(--stamp-strong);
  margin-bottom: 1.5rem;
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 0.65rem; }
.card p { color: var(--text-on-paper-soft); font-size: 0.98rem; }
.section--ink .card p, .section--dim .card p { color: var(--text-on-ink-soft); }

.card-copper .icon { border-color: var(--verified); color: var(--verified); }
.card-solar .icon { border-color: var(--solar); color: var(--solar); }
.section--ink .card-solar, .section--ink .card { border-color: var(--ink-line); }
.section--ink .card-solar:hover { border-color: var(--solar); }

/* -- Feature deep-dive rows -------------------------------------------------*/

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(3rem, 6vw, 5rem);
}
.feature-row:not(:last-child) { border-bottom: 1px solid var(--paper-line); }
.feature-row.reverse { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.feature-row.reverse .feature-visual { order: -1; }

@media (max-width: 900px) {
  .feature-row, .feature-row.reverse { grid-template-columns: minmax(0, 1fr); }
  .feature-row.reverse .feature-visual { order: 0; }
}
.feature-row > * { min-width: 0; }

.feature-copy .icon-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px; height: 54px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--stamp);
  background: transparent;
  color: var(--stamp-strong);
  margin-bottom: 1.5rem;
}
.feature-copy .icon-tag svg { width: 26px; height: 26px; }
.feature-copy h2 { margin-bottom: 1rem; }
.feature-copy ul { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.85rem; }
.feature-copy li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-on-paper-soft);
  font-size: 0.98rem;
}
.feature-copy li svg { flex: none; width: 1.2em; height: 1.2em; margin-top: 0.15em; color: var(--verified); }

.feature-visual {
  background: var(--paper-dim);
  border: 1.5px solid var(--paper-line);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}
.feature-visual svg { width: 100%; height: auto; max-width: 420px; }

/* -- Lifecycle diagram -------------------------------------------------------*/

.lifecycle {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 1rem;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.lifecycle-step {
  flex: 1 0 200px;
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
}

.lifecycle-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 200px;
  flex: none;
}

.lifecycle-node .dot {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ink-soft);
  border: 1.5px solid var(--stamp);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--warn);
  margin-bottom: 1.1rem;
  position: relative;
  z-index: 2;
  flex: none;
}
.lifecycle-node .dot svg { width: 28px; height: 28px; }
.lifecycle-node .step-index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-on-ink-soft);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  display: block;
}
.lifecycle-node h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.lifecycle-node p { font-size: 0.85rem; color: var(--text-on-ink-soft); max-width: 21ch; margin-inline: auto; }
.lifecycle-text { min-width: 0; }

.lifecycle-connector {
  flex: 1 0 40px;
  height: 1px;
  background: repeating-linear-gradient(to right, var(--ink-line) 0 6px, transparent 6px 12px);
  margin-top: 32px;
  min-width: 24px;
}

@media (max-width: 860px) {
  .lifecycle { flex-direction: column; overflow-x: visible; }
  .lifecycle-step { flex-direction: column; width: 100%; }
  .lifecycle-node { flex-direction: row; width: 100%; text-align: left; align-items: flex-start; gap: 1.25rem; }
  .lifecycle-node .dot { margin-bottom: 0; }
  .lifecycle-text { flex: 1 1 auto; }
  .lifecycle-node p { max-width: 34ch; margin-inline: 0; }
  .lifecycle-connector { width: 1px; height: 32px; margin-left: 31px; margin-top: 0; background: repeating-linear-gradient(to bottom, var(--ink-line) 0 6px, transparent 6px 12px); }
}

/* -- Role cards --------------------------------------------------------------*/

.role-card {
  border: 1.5px solid var(--paper-line);
  border-radius: var(--radius-md);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.role-card:hover { transform: translateY(-4px); border-color: var(--stamp); }

.role-card .top { display: flex; align-items: center; gap: 1rem; }
.role-card .icon {
  width: 54px; height: 54px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--stamp); color: var(--stamp-strong); flex: none;
}
.role-card .icon svg { width: 26px; height: 26px; }
.role-card:nth-of-type(2n) .icon { border-color: var(--verified); color: var(--verified); }
.role-card .tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-on-paper-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.role-card h3 { font-size: 1.35rem; }
.role-card ul { display: flex; flex-direction: column; gap: 0.65rem; }
.role-card li { display: flex; gap: 0.65rem; font-size: 0.95rem; color: var(--text-on-paper-soft); }
.role-card li svg { flex: none; width: 1.1em; height: 1.1em; margin-top: 0.2em; color: var(--verified); }

/* -- Quote / mission block --------------------------------------------------*/

.pull-quote {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.4vw + 0.6rem, 2.6rem);
  line-height: 1.15;
  max-width: 30ch;
}

/* -- Fact grid (about page) --------------------------------------------------*/

.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--paper-line);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.fact-grid .fact { background: var(--paper); padding: 2rem 1.75rem; }
.fact .num { font-family: var(--font-mono); font-weight: 600; font-size: clamp(1.85rem, 2.6vw, 2.4rem); color: var(--stamp-strong); display: block; margin-bottom: 0.5rem; }
.fact .label { color: var(--text-on-paper-soft); font-size: 0.92rem; }

/* -- Forms ------------------------------------------------------------------*/

.form-grid { display: grid; gap: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-on-paper);
}
.field .hint { font-size: 0.8rem; color: var(--text-on-paper-soft); font-weight: 400; text-transform: none; letter-spacing: normal; }

.field input,
.field textarea,
.field select {
  border: 1.5px solid var(--paper-line);
  background: var(--paper);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  font-size: 1rem;
  color: var(--text-on-paper);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--stamp);
  box-shadow: 0 0 0 3px rgba(178, 58, 34, 0.15);
  outline: none;
}
.field textarea { resize: vertical; min-height: 140px; }

.form-note {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  background: rgba(63, 122, 78, 0.08);
  border: 1.5px solid rgba(63, 122, 78, 0.3);
  color: var(--verified-strong);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.form-note[hidden] { display: none; }
.form-note svg { flex: none; width: 1.3em; height: 1.3em; margin-top: 0.1em; }
.form-note a { text-decoration: underline; }
.form-note-error {
  background: rgba(178, 58, 34, 0.08);
  border-color: rgba(178, 58, 34, 0.3);
  color: var(--stamp-strong);
}

/* Honeypot field: kept in the DOM and tab-order-excluded, but clipped to
   zero size (not pushed off-screen, which would blow out scrollWidth) so
   real visitors never see or reach it. */
.field-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.site-footer {
  background: var(--ink);
  color: var(--text-on-ink-soft);
  padding-block: clamp(3.5rem, 6vw, 5rem) 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--ink-line);
}
@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
}

.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand p { max-width: 32ch; font-size: 0.9rem; }
.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warn);
  margin-top: 1rem;
}
.footer-col h4 {
  color: var(--text-on-ink);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  margin-bottom: 1.1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a { font-size: 0.93rem; transition: color 0.25s var(--ease); }
.footer-col a:hover { color: var(--warn); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.75rem;
  font-size: 0.85rem;
}
.footer-langs { display: flex; gap: 0.5rem; }
.footer-langs span {
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* -- Reveal-on-scroll ------------------------------------------------------*/

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.33s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-stagger > *, .card, .role-card, .btn, .nav-toggle span {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-slide, .hero-slide.is-active { transition: none !important; }
  .brand-track { animation: none !important; }
  .brand-logo[aria-hidden="true"] { display: none !important; }
}

/* -- Brand-compatibility marquee -------------------------------------------
   Infinite CSS-only scroll strip. The track holds the logo set twice back
   to back; animating to -50% loops seamlessly. The second set is
   aria-hidden so screen readers only hear the list once.
   ------------------------------------------------------------------- */

.brand-marquee {
  position: relative;
  overflow: hidden;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.brand-marquee::before, .brand-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(40px, 8vw, 120px);
  z-index: 2;
  pointer-events: none;
}
.brand-marquee::before { left: 0; background: linear-gradient(to right, var(--paper-dim), transparent); }
.brand-marquee::after { right: 0; background: linear-gradient(to left, var(--paper-dim), transparent); }

.brand-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  animation: brand-scroll 46s linear infinite;
}
.brand-marquee:hover .brand-track,
.brand-marquee:focus-within .brand-track { animation-play-state: paused; }

@keyframes brand-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.brand-logo {
  flex: none;
  width: 140px;
  height: 72px;
  background: var(--paper);
  border: 1.5px solid var(--paper-line);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
}
.brand-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  filter: grayscale(1) opacity(0.72);
  transition: filter 0.3s var(--ease);
}
.brand-logo:hover img { filter: grayscale(0) opacity(1); }

/* -- CTA band ---------------------------------------------------------------*/

.cta-band {
  background: var(--ink);
  color: var(--text-on-ink);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
  overflow: hidden;
  background-image: repeating-linear-gradient(to bottom, rgba(236,238,220,0.05) 0, rgba(236,238,220,0.05) 1px, transparent 1px, transparent 2.6rem);
}
.cta-band::before { left: 50%; opacity: 0; }
.cta-band .container-inner { position: relative; max-width: 40rem; margin-inline: auto; }
.cta-band h2 { margin-bottom: 1rem; }
.cta-band .lede { margin-inline: auto; margin-bottom: 2rem; }
.cta-band .cluster { justify-content: center; }

/* -- Misc utility ---------------------------------------------------------*/

.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.center-col { margin-inline: auto; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.breadcrumb-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  background: rgba(178, 58, 34, 0.16);
  color: var(--warn);
  border: 1px solid rgba(178, 58, 34, 0.35);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}

hr.rule { border: none; border-top: 1px solid var(--paper-line); margin-block: 3rem; }
.section--ink hr.rule, .section--dim hr.rule { border-top-color: var(--ink-line); }
