/* ============================================================================
   CAIRNSTYLE — cairn26.com landing page
   Hand-written stylesheet. "What if Apple made n8n — built on LangSmith's
   design language." Refined, premium, restrained. Hairlines, never shadows.
   ONE teal accent. Geist / Geist Mono / Fraunces / Newsreader.
   ============================================================================ */

/* ---------------------------------------------------------------------------
   THEME TOKENS — 4-block pattern (CAIRNSTYLE "READ FIRST", non-negotiable)
   (1) light defaults · (2) @media dark · (3) [data-theme=dark] · (4) [data-theme=light]
   Block (4) defeats block (2) when OS=dark but the app toggle is LIGHT.
--------------------------------------------------------------------------- */

/* Block (1) — Light defaults */
:root {
  /* Chrome (the air) */
  --bg:            #F8F4EC;                 /* PAPER */
  --surface-1:     #F1F1EC;                 /* CREAM */
  --surface-2:     #ECE8DA;                 /* NEBULA */
  --ink:           #0A1224;                 /* GRAPHITE — never pure black */
  --ink-mid:       rgba(10, 18, 36, 0.74);
  --ink-muted:     rgba(10, 18, 36, 0.55);  /* SLATE */
  --ink-ghost:     rgba(10, 18, 36, 0.35);  /* placeholder / tertiary */

  /* Hairlines */
  --border-subtle: rgba(10, 18, 36, 0.06);
  --border:        rgba(10, 18, 36, 0.10);
  --border-strong: rgba(10, 18, 36, 0.16);

  /* Surface fills (opacity-stacked, never shadowed) */
  --fill-0:        rgba(10, 18, 36, 0.02);
  --fill-1:        rgba(10, 18, 36, 0.035);
  --fill-2:        rgba(10, 18, 36, 0.05);

  /* Brand */
  --teal:          #3BA6C9;
  --teal-hover:    #4FB3D9;
  --teal-ink:      #ffffff;                 /* text on a teal fill */
  --teal-border:   rgba(59, 166, 201, 0.30);
  --teal-wash:     rgba(59, 166, 201, 0.10);
  --teal-wash-hi:  rgba(59, 166, 201, 0.18);
  --green:         #B8D94A;                 /* APPLE GREEN — live/success only */

  /* Etching (faint mountain) */
  --ridge-1:       rgba(10, 18, 36, 0.06);
  --ridge-2:       rgba(10, 18, 36, 0.04);

  /* Motion */
  --ease:          cubic-bezier(0.16, 1, 0.3, 1);   /* ease-out-expo */

  /* Layout */
  --nav-h:         3.5rem;
  --maxw:          1120px;
  --shadow-modal:  0 1px 2px rgba(0, 0, 0, 0.04);

  color-scheme: light;
}

/* Block (2) — OS-preference dark */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:            #050508;               /* VOID */
    --surface-1:     #0C0C18;               /* DEEP */
    --surface-2:     #141424;               /* NIGHT */
    --ink:           rgba(255, 255, 255, 0.95);
    --ink-mid:       rgba(255, 255, 255, 0.74);
    --ink-muted:     rgba(255, 255, 255, 0.55);
    --ink-ghost:     rgba(255, 255, 255, 0.30);

    --border-subtle: rgba(255, 255, 255, 0.06);
    --border:        rgba(255, 255, 255, 0.10);
    --border-strong: rgba(255, 255, 255, 0.16);

    --fill-0:        rgba(255, 255, 255, 0.02);
    --fill-1:        rgba(255, 255, 255, 0.04);
    --fill-2:        rgba(255, 255, 255, 0.06);

    --teal-ink:      #04141b;
    --teal-wash:     rgba(59, 166, 201, 0.14);
    --teal-wash-hi:  rgba(59, 166, 201, 0.24);

    --ridge-1:       rgba(255, 255, 255, 0.045);
    --ridge-2:       rgba(255, 255, 255, 0.025);

    --shadow-modal:  0 1px 2px rgba(0, 0, 0, 0.4);

    color-scheme: dark;
  }
}

/* Block (3) — Toggle-explicit dark (wins over OS=light) */
[data-theme="dark"] {
  --bg:            #050508;
  --surface-1:     #0C0C18;
  --surface-2:     #141424;
  --ink:           rgba(255, 255, 255, 0.95);
  --ink-mid:       rgba(255, 255, 255, 0.74);
  --ink-muted:     rgba(255, 255, 255, 0.55);
  --ink-ghost:     rgba(255, 255, 255, 0.30);

  --border-subtle: rgba(255, 255, 255, 0.06);
  --border:        rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.16);

  --fill-0:        rgba(255, 255, 255, 0.02);
  --fill-1:        rgba(255, 255, 255, 0.04);
  --fill-2:        rgba(255, 255, 255, 0.06);

  --teal-ink:      #04141b;
  --teal-wash:     rgba(59, 166, 201, 0.14);
  --teal-wash-hi:  rgba(59, 166, 201, 0.24);

  --ridge-1:       rgba(255, 255, 255, 0.045);
  --ridge-2:       rgba(255, 255, 255, 0.025);

  --shadow-modal:  0 1px 2px rgba(0, 0, 0, 0.4);

  color-scheme: dark;
}

/* Block (4) — EXPLICIT LIGHT OVERRIDE (THE KILLER CELL: OS=dark + toggle=light) */
[data-theme="light"] {
  --bg:            #F8F4EC;
  --surface-1:     #F1F1EC;
  --surface-2:     #ECE8DA;
  --ink:           #0A1224;
  --ink-mid:       rgba(10, 18, 36, 0.74);
  --ink-muted:     rgba(10, 18, 36, 0.55);
  --ink-ghost:     rgba(10, 18, 36, 0.35);

  --border-subtle: rgba(10, 18, 36, 0.06);
  --border:        rgba(10, 18, 36, 0.10);
  --border-strong: rgba(10, 18, 36, 0.16);

  --fill-0:        rgba(10, 18, 36, 0.02);
  --fill-1:        rgba(10, 18, 36, 0.035);
  --fill-2:        rgba(10, 18, 36, 0.05);

  --teal-ink:      #ffffff;
  --teal-wash:     rgba(59, 166, 201, 0.10);
  --teal-wash-hi:  rgba(59, 166, 201, 0.18);

  --ridge-1:       rgba(10, 18, 36, 0.06);
  --ridge-2:       rgba(10, 18, 36, 0.04);

  --shadow-modal:  0 1px 2px rgba(0, 0, 0, 0.04);

  color-scheme: light;
}

/* ---------------------------------------------------------------------------
   RESET
--------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Geist", -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  font-feature-settings: "cv11" "ss01" "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 240ms var(--ease), color 240ms var(--ease);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

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

/* ---------------------------------------------------------------------------
   TYPE HELPERS
--------------------------------------------------------------------------- */
.microlabel {
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-muted);
}

.display {
  font-family: "Fraunces", serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--ink);
  font-variation-settings: "opsz" 144;
}

.lede {
  font-family: "Newsreader", serif;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-mid);
  letter-spacing: -0.003em;
}

.mono { font-family: "Geist Mono", monospace; }

/* ---------------------------------------------------------------------------
   LAYOUT
--------------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 32px; }
@media (max-width: 640px) { .wrap { padding-inline: 20px; } }

section { padding-block: 88px; position: relative; }
@media (max-width: 768px) { section { padding-block: 64px; } }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head .microlabel { display: block; margin-bottom: 16px; }
.section-head h2 {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.section-head p { margin-top: 16px; color: var(--ink-muted); font-size: 16px; max-width: 620px; }

.hairline { border: 0; border-top: 1px solid var(--border-subtle); }

/* ---------------------------------------------------------------------------
   NAV
--------------------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav__inner {
  height: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 32px;
  display: flex; align-items: center; gap: 24px;
}
@media (max-width: 640px) { .nav__inner { padding-inline: 20px; } }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__pill {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--fill-0);
  transition: border-color 150ms var(--ease);
}
.brand:hover .brand__pill { border-color: var(--teal-border); }
.brand__pill { padding: 3px; }
.brand__pill img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
[data-theme="dark"] .brand__pill img,
:root:not([data-theme="light"]) .brand__pill img { mix-blend-mode: normal; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .brand__pill img { mix-blend-mode: multiply; }
}
.brand__word {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.nav__links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__link {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 150ms var(--ease), background 150ms var(--ease);
}
.nav__link:hover { color: var(--ink); background: var(--fill-1); }

.icon-btn {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: transparent;
  color: var(--ink-muted);
  transition: color 150ms var(--ease), border-color 150ms var(--ease), background 150ms var(--ease);
}
.icon-btn:hover { color: var(--teal); border-color: var(--teal-border); }
.icon-btn svg { width: 18px; height: 18px; }

/* theme toggle shows correct glyph per mode */
.theme-toggle .moon { display: none; }
.theme-toggle .sun  { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .sun  { display: none; }
}
[data-theme="dark"] .theme-toggle .moon { display: block; }
[data-theme="dark"] .theme-toggle .sun  { display: none; }
[data-theme="light"] .theme-toggle .moon { display: none; }
[data-theme="light"] .theme-toggle .sun  { display: block; }

/* Mobile menu */
.nav__burger { display: none; }
.nav__mobile { display: none; }
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__burger { display: grid; }
  .nav__mobile {
    display: block;
    position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 49;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    transform: translateY(-8px);
    opacity: 0; pointer-events: none;
    transition: opacity 200ms var(--ease), transform 200ms var(--ease);
  }
  .nav__mobile.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav__mobile a {
    display: block;
    padding: 16px 20px;
    border-top: 1px solid var(--border-subtle);
    font-family: "Geist Mono", monospace;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-muted);
  }
  .nav__mobile a:hover { color: var(--ink); }
  .nav__mobile a:first-child { border-top: 0; }
}

/* ---------------------------------------------------------------------------
   BUTTONS
--------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; font-weight: 600;
  padding: 11px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  letter-spacing: -0.005em;
  transition: background 150ms var(--ease), border-color 150ms var(--ease),
              color 150ms var(--ease), transform 150ms var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--teal); color: var(--teal-ink); }
.btn--primary:hover { background: var(--teal-hover); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--border-strong); background: var(--fill-1); }

.btn--secondary {
  background: var(--teal-wash);
  color: var(--teal);
  border-color: var(--teal-border);
}
.btn--secondary:hover { background: var(--teal-wash-hi); }

.btn svg { width: 16px; height: 16px; }

/* ---------------------------------------------------------------------------
   HERO
--------------------------------------------------------------------------- */
.hero { padding-top: 80px; padding-bottom: 96px; overflow: hidden; }
.hero__inner { max-width: 880px; }

.hero__eyebrow { display: block; margin-bottom: 24px; }

.hero h1 {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: none;
  white-space: nowrap;
  font-variation-settings: "opsz" 144;
}

.hero__sub {
  margin-top: 28px;
  font-family: "Newsreader", serif;
  font-size: clamp(17px, 2.2vw, 21px);
  line-height: 1.55;
  color: var(--ink-mid);
  max-width: 62ch;
  letter-spacing: -0.003em;
}

.hero__cta { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }

.hero__trust {
  grid-column: 1 / -1;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}
.trust-row {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0;
}
.trust-row .microlabel {
  padding: 4px 18px;
  border-left: 1px solid var(--border-subtle);
  color: var(--ink-muted);
}
.trust-row .microlabel:first-child { padding-left: 0; border-left: 0; }
.hero__trust-cap { margin-top: 14px; font-size: 13px; color: var(--ink-ghost); }
@media (max-width: 640px) {
  .trust-row .microlabel { border-left: 0; padding: 4px 0; flex: 1 0 46%; }
}

/* hero: large brand mark beside the copy (CAIRNSTYLE §2.6 cinematic watercolour) */
.hero > .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(24px, 4vw, 72px); }
.hero__art { display: flex; justify-content: flex-end; align-items: center; }
.hero__art img { width: clamp(240px, 32vw, 460px); height: auto; mix-blend-mode: multiply; }
[data-theme="dark"] .hero__art img,
:root:not([data-theme="light"]) .hero__art img { mix-blend-mode: normal; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .hero__art img { mix-blend-mode: multiply; }
}
@media (max-width: 900px) {
  .hero > .wrap { grid-template-columns: 1fr; }
  .hero__art { display: none; }
}
@media (max-width: 760px) {
  .hero h1 { white-space: normal; font-size: clamp(32px, 9vw, 46px); }
}

/* faint mountain etching — ambient brand watermark (CAIRNSTYLE §9.7) */
.etching {
  position: absolute; bottom: 0; left: 0; right: 0;
  width: 100%; height: 200px;
  pointer-events: none; z-index: 0;
  mask-image: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 100%);
}
.etching svg { width: 100%; height: 100%; }
.etching .ridge { fill: none; stroke-width: 1; stroke-linejoin: round; stroke-linecap: round; }
.etching .ridge-1 { stroke: var(--ridge-1); }
.etching .ridge-2 { stroke: var(--ridge-2); }

/* ---------------------------------------------------------------------------
   FOUR CAPABILITIES — hairline cards
--------------------------------------------------------------------------- */
.cards4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
}
@media (max-width: 980px) { .cards4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards4 { grid-template-columns: 1fr; } }

.cap {
  background: var(--bg);
  padding: 28px 24px 32px;
  transition: background 200ms var(--ease);
  position: relative;
}
.cap::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--teal); transform: scaleX(0); transform-origin: left;
  transition: transform 240ms var(--ease);
}
.cap:hover { background: var(--fill-0); }
.cap:hover::after { transform: scaleX(1); }
.cap__icon {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--ink);
  margin-bottom: 20px;
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
}
.cap:hover .cap__icon { color: var(--teal); border-color: var(--teal-border); }
.cap__icon svg { width: 20px; height: 20px; }
.cap h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 10px; }
.cap p { font-size: 14px; line-height: 1.55; color: var(--ink-muted); }

/* ---------------------------------------------------------------------------
   TWO PILLARS — larger panels
--------------------------------------------------------------------------- */
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }

.pillar {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-1);
  padding: 36px 32px;
  transition: border-color 200ms var(--ease);
}
.pillar:hover { border-color: var(--border-strong); }
.pillar__top { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.pillar__icon {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid var(--teal-border); border-radius: 10px;
  background: var(--teal-wash); color: var(--teal);
}
.pillar__icon svg { width: 22px; height: 22px; }
.pillar h3 { font-family: "Fraunces", serif; font-weight: 600; font-size: 26px; letter-spacing: -0.02em; }
.pillar p { color: var(--ink-mid); font-size: 15.5px; line-height: 1.6; }

/* primitive chips (Source / Action / Decide / Output) */
.primitives { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip {
  font-family: "Geist Mono", monospace;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em;
  padding: 6px 11px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--ink-muted);
  background: var(--fill-0);
}

/* ---------------------------------------------------------------------------
   GOVERNANCE — hairline grid
--------------------------------------------------------------------------- */
.gov-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border-subtle);
  border: 1px solid var(--border-subtle); border-radius: 12px; overflow: hidden;
}
@media (max-width: 900px) { .gov-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .gov-grid { grid-template-columns: 1fr; } }

.gov {
  background: var(--bg); padding: 24px 22px;
  display: flex; gap: 14px; align-items: flex-start;
  transition: background 180ms var(--ease);
}
.gov:hover { background: var(--fill-0); }
.gov__icon { flex: none; color: var(--teal); margin-top: 1px; }
.gov__icon svg { width: 18px; height: 18px; }
.gov h4 { font-size: 14.5px; font-weight: 600; letter-spacing: -0.005em; margin-bottom: 5px; }
.gov p { font-size: 13.5px; line-height: 1.5; color: var(--ink-muted); }

.gov-close {
  margin-top: 32px;
  display: flex; align-items: center; gap: 12px;
  font-family: "Newsreader", serif; font-style: italic;
  font-size: 18px; color: var(--ink-mid);
}
.gov-close .live-dot { flex: none; }

/* live pulse (APPLE GREEN — live/success semantic) */
.live-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 999px;
  background: var(--green); animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.82); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

/* ---------------------------------------------------------------------------
   INTEGRATE — banded statement
--------------------------------------------------------------------------- */
.integrate { background: var(--surface-1); border-block: 1px solid var(--border-subtle); }
.integrate .wrap { max-width: 860px; }
.integrate h2 {
  font-family: "Fraunces", serif; font-weight: 600;
  font-size: clamp(26px, 3.6vw, 38px); line-height: 1.14; letter-spacing: -0.02em;
  margin: 16px 0 20px;
}
.integrate p { font-family: "Newsreader", serif; font-size: 19px; line-height: 1.6; color: var(--ink-mid); }
.integrate p + p { margin-top: 18px; }

/* ---------------------------------------------------------------------------
   FINAL CTA
--------------------------------------------------------------------------- */
.final { text-align: center; overflow: hidden; }
.final .wrap { max-width: 720px; }
.final__mark {
  width: 180px; height: 180px; margin: 0 auto 8px;
  mix-blend-mode: multiply;
}
[data-theme="dark"] .final__mark,
:root:not([data-theme="light"]) .final__mark { mix-blend-mode: normal; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .final__mark { mix-blend-mode: multiply; }
}
.final h2 {
  font-family: "Fraunces", serif; font-weight: 600;
  font-size: clamp(30px, 4.6vw, 48px); line-height: 1.08; letter-spacing: -0.025em;
  max-width: 18ch; margin: 16px auto 0;
}
.final p { margin: 18px auto 32px; color: var(--ink-muted); font-size: 17px; max-width: 52ch; }

/* ---------------------------------------------------------------------------
   FOOTER
--------------------------------------------------------------------------- */
.footer { border-top: 1px solid var(--border-subtle); padding-block: 56px; }
.footer__grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px;
}
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 460px) { .footer__grid { grid-template-columns: 1fr; } }

.footer__brand .brand { margin-bottom: 14px; }
.footer__tag { font-size: 14px; color: var(--ink-muted); max-width: 38ch; line-height: 1.55; }
.footer__col h5 {
  font-family: "Geist Mono", monospace; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.2em; color: var(--ink-ghost);
  margin-bottom: 16px;
}
.footer__col a {
  display: block; font-size: 14px; color: var(--ink-muted);
  padding: 5px 0; transition: color 150ms var(--ease);
}
.footer__col a:hover { color: var(--teal); }
.footer__bottom {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border-subtle);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--ink-ghost);
}

/* ===========================================================================
   FEATURE SHOWCASE — alternating image / text rows (id="features")
   Image side is a CSS/HTML product mock in CAIRNSTYLE (no screenshots).
   =========================================================================== */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.feature-row + .feature-row { margin-top: clamp(48px, 7vw, 88px); }
.feature-row.reverse .feature-row__mock { order: 2; }
@media (max-width: 860px) {
  .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .feature-row.reverse .feature-row__mock { order: 0; }
}

.feature-row__copy .microlabel { display: block; margin-bottom: 16px; }
.feature-row__copy h3 {
  font-family: "Fraunces", serif; font-weight: 600;
  font-size: clamp(24px, 3vw, 32px); line-height: 1.14; letter-spacing: -0.02em;
  color: var(--ink);
}
.feature-row__copy p {
  margin-top: 16px; font-family: "Newsreader", serif; font-size: 18px;
  line-height: 1.6; color: var(--ink-mid); max-width: 52ch;
}
.feature-row__copy .feature-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }

/* shared mock chrome — a hairline product surface */
.mock {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-1);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.mock__bar {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 14px; margin-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}
.mock__dot { width: 8px; height: 8px; border-radius: 999px; background: var(--border-strong); }
.mock__title {
  font-family: "Geist Mono", monospace; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.18em; color: var(--ink-ghost);
  margin-left: 6px;
}

/* --- Mock A: four-primitive canvas (SOURCE → ACTION → DECIDE → OUTPUT) --- */
.mock-canvas__flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; align-items: stretch; }
.mock-node {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  padding: 14px 10px;
  display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center;
  position: relative;
  transition: border-color 200ms var(--ease);
}
.mock-node:hover { border-color: var(--teal-border); }
.mock-node__icon {
  width: 30px; height: 30px; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 8px; color: var(--ink);
}
.mock-node__icon svg { width: 16px; height: 16px; }
.mock-node__label {
  font-family: "Geist Mono", monospace; font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-mid);
}
.mock-node__pill {
  font-family: "Geist Mono", monospace; font-size: 8.5px; letter-spacing: 0.08em;
  color: var(--ink-ghost); border: 1px solid var(--border-subtle); border-radius: 999px;
  padding: 2px 7px;
}
/* dotted connector between nodes (design-time wire, §7.10) */
.mock-canvas { padding-bottom: 22px; }
.mock-canvas__wires { display: block; margin: 14px 2px 4px; height: 18px; }
.mock-canvas__wires path { fill: none; stroke: var(--ink-ghost); stroke-width: 1.5; stroke-dasharray: 6 4; }
.mock-canvas__wires circle { fill: var(--ink-ghost); }
.mock-canvas__foot {
  margin-top: 12px; font-family: "Geist Mono", monospace; font-size: 9.5px;
  letter-spacing: 0.06em; color: var(--ink-ghost);
}

/* --- Mock B: Fleet one-pane-of-glass --- */
.mock-fleet__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 14px;
}
.mock-fleet__spend { display: flex; align-items: baseline; gap: 6px; }
.mock-fleet__spend .figure {
  font-family: "Geist Mono", monospace; font-size: 22px; font-weight: 500;
  letter-spacing: -0.01em; color: var(--ink);
}
.mock-fleet__spend .cap {
  font-family: "Geist Mono", monospace; font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-ghost);
}
.mock-fleet__badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: "Geist Mono", monospace; font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--teal); border: 1px solid var(--teal-border); background: var(--teal-wash);
  border-radius: 999px; padding: 5px 10px;
}
.mock-fleet__badge svg { width: 12px; height: 12px; }
.mock-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center;
  padding: 11px 4px; border-top: 1px solid var(--border-subtle);
}
.mock-row:first-of-type { border-top: 0; }
.mock-row__name { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink); }
.mock-row__name .mono { font-family: "Geist Mono", monospace; font-size: 12px; color: var(--ink-mid); }
.mock-row__meta { font-family: "Geist Mono", monospace; font-size: 10.5px; color: var(--ink-ghost); }
.mock-row__state {
  font-family: "Geist Mono", monospace; font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-muted);
}

/* --- Mock C: eval / feedback loop --- */
.mock-loop { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 6px 0 2px; }
.mock-loop__ring { display: grid; place-items: center; }
.mock-loop__ring svg { width: 100%; max-width: 320px; height: auto; }
.mock-loop__stat {
  display: flex; gap: 22px; margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--border-subtle); width: 100%; justify-content: center;
}
.mock-loop__stat div { text-align: center; }
.mock-loop__stat .num {
  font-family: "Geist Mono", monospace; font-size: 18px; font-weight: 500; color: var(--ink);
}
.mock-loop__stat .num .up { color: var(--teal); }
.mock-loop__stat .lbl {
  display: block; margin-top: 4px;
  font-family: "Geist Mono", monospace; font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-ghost);
}

/* ===========================================================================
   PROCESS — numbered steps strip (id="process")
   =========================================================================== */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border-subtle);
  border: 1px solid var(--border-subtle); border-radius: 12px; overflow: hidden;
}
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.step {
  background: var(--bg); padding: 28px 24px 30px;
  position: relative; transition: background 200ms var(--ease);
}
.step:hover { background: var(--fill-0); }
.step__num {
  font-family: "Geist Mono", monospace; font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; color: var(--teal); margin-bottom: 18px;
}
.step__icon {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 8px; color: var(--ink);
  margin-bottom: 18px; transition: color 200ms var(--ease), border-color 200ms var(--ease);
}
.step:hover .step__icon { color: var(--teal); border-color: var(--teal-border); }
.step__icon svg { width: 18px; height: 18px; }
.step h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px; }
.step p { font-size: 13.5px; line-height: 1.55; color: var(--ink-muted); }

/* ===========================================================================
   PRICING — three hairline cards, middle teal "most popular" (id="pricing")
   =========================================================================== */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
@media (max-width: 920px) { .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

.price-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-1);
  padding: 32px 28px;
  display: flex; flex-direction: column;
  position: relative;
  transition: border-color 200ms var(--ease);
}
.price-card:hover { border-color: var(--border-strong); }
.price-card--featured {
  border-color: var(--teal-border);
  background: var(--bg);
}
.price-card--featured:hover { border-color: var(--teal); }
.price-card--featured::before {
  content: ""; position: absolute; inset: -1px; border-radius: 16px;
  border: 1px solid var(--teal-border); pointer-events: none;
}
.price-card__flag {
  position: absolute; top: -11px; left: 28px;
  font-family: "Geist Mono", monospace; font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--teal-ink); background: var(--teal);
  border-radius: 999px; padding: 4px 12px;
}
.price-card__name { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.price-card__tagline { margin-top: 6px; font-size: 13.5px; color: var(--ink-muted); min-height: 38px; }
.price-card__price {
  margin: 22px 0 4px; padding-bottom: 22px; border-bottom: 1px solid var(--border-subtle);
}
.price-card__price .amount {
  font-family: "Fraunces", serif; font-weight: 600; font-size: 26px;
  letter-spacing: -0.02em; color: var(--ink);
}
.price-card__list { list-style: none; margin: 22px 0 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.price-card__list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink-mid); line-height: 1.45; }
.price-card__list li svg { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--teal); }
.price-card__list li.off { color: var(--ink-ghost); }
.price-card__list li.off svg { color: var(--ink-ghost); }
.price-card .btn { width: 100%; }

/* ===========================================================================
   TESTIMONIALS — quote cards (id="testimonials")
   =========================================================================== */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

.quote {
  border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface-1); padding: 28px 26px;
  display: flex; flex-direction: column;
  transition: border-color 200ms var(--ease);
}
.quote:hover { border-color: var(--border-strong); }
.quote__mark { color: var(--teal); margin-bottom: 14px; }
.quote__mark svg { width: 22px; height: 22px; }
.quote__body {
  font-family: "Newsreader", serif; font-size: 17px; line-height: 1.55;
  color: var(--ink-mid); flex: 1;
}
.quote__by { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border-subtle); }
.quote__avatar {
  width: 36px; height: 36px; flex: none; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--teal-wash); color: var(--teal);
  border: 1px solid var(--border-subtle);
  font-family: "Geist", sans-serif; font-size: 12px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.quote__role { font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.quote__sector {
  font-family: "Geist Mono", monospace; font-size: 9.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-muted); margin-top: 3px;
}

/* ===========================================================================
   CLIENTS — sector wordmark strip (id="clients")
   =========================================================================== */
.clients { background: var(--surface-1); border-block: 1px solid var(--border-subtle); }
.clients__inner { text-align: center; }
.clients__eyebrow { display: block; margin-bottom: 28px; }
.clients__row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0;
}
.clients__mark {
  font-family: "Geist Mono", monospace; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.2em; color: var(--ink-ghost);
  padding: 6px 28px; border-left: 1px solid var(--border-subtle);
  transition: color 180ms var(--ease);
}
.clients__mark:first-child { border-left: 0; }
.clients__mark:hover { color: var(--ink-muted); }
@media (max-width: 640px) {
  .clients__mark { border-left: 0; padding: 8px 14px; }
}

/* ---------------------------------------------------------------------------
   LOAD ANIMATION — one orchestrated reveal, staggered
--------------------------------------------------------------------------- */
/* Progressive enhancement: content is visible by default. Only when JS adds
   `.js-anim` to <html> do reveals start hidden and animate in. This keeps the
   page fully visible without JS, for crawlers, and in static screenshots. */
.js-anim .reveal { opacity: 0; transform: translateY(12px) scale(0.985); }
.js-anim .reveal.in {
  opacity: 1; transform: none;
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
}
/* hero stagger via inline transition-delay set in markup classes */
.d1 { transition-delay: 40ms; }
.d2 { transition-delay: 100ms; }
.d3 { transition-delay: 160ms; }
.d4 { transition-delay: 220ms; }
.d5 { transition-delay: 280ms; }

@media (prefers-reduced-motion: reduce) {
  .js-anim .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------------------------------------------------------------------------
   CAIRNSTYLE CHARTS (SCRUM-4834) — dependency-free inline-SVG data viz.
   Same token language as the .mock visuals: hairlines never shadows, ONE teal
   accent, apple-green for live/success only, theme-aware via CSS vars.
--------------------------------------------------------------------------- */
#charts .section-head { margin-bottom: 8px; }

.chart-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
@media (max-width: 860px) {
  .chart-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
}

.chart-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.chart-card__head { margin-bottom: 18px; }
.chart-card__head h3 {
  margin-top: 8px;
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--ink);
}

.chart-svg { width: 100%; height: auto; display: block; }
.chart-svg--donut { max-width: 176px; margin: 6px auto auto; }

.chart-card__cap {
  display: flex;
  gap: 28px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}
.chart-num {
  font-family: "Geist Mono", monospace;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
}
.chart-num.up { color: var(--teal); }
.chart-lbl {
  display: block;
  margin-top: 4px;
  font-family: "Geist Mono", monospace;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-ghost);
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  justify-content: center;
}
.chart-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}
.chart-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }

/* "alive" charts (SCRUM-4834): draw-in + count-up are JS-driven progressive
   enhancement (default markup = final drawn state; JS resets to a hidden start
   then transitions in on scroll). Only the live-pulse ring is pure CSS. */
@keyframes chartPulse {
  0%        { transform: scale(1);   opacity: 0.45; }
  70%, 100% { transform: scale(2.7); opacity: 0; }
}
.chart-pulse {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;                 /* hidden until the chart animates in */
}
.charts-in .chart-pulse {
  animation: chartPulse 2.6s var(--ease) infinite;
}
@media (prefers-reduced-motion: reduce) {
  .chart-pulse { display: none; }
}

/* ===========================================================================
   CAIRN:FORGE — flagship showcase (SCRUM-4869)
   "Forge a specialist. Command a crew." Augmentation, never replacement.
   Same token language: hairlines never shadows, ONE teal accent, apple-green
   for live/success only, theme-aware via CSS vars. Alive: loadout snaps in,
   stat bars draw, numbers count up on scroll (JS progressive enhancement).
   =========================================================================== */
#forge { background: var(--surface-1); border-block: 1px solid var(--border-subtle); }

.forge-stage {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  margin-top: 44px;
}
@media (max-width: 920px) { .forge-stage { grid-template-columns: 1fr; gap: 40px; } }

/* --- the character sheet (a CAIRNSTYLE product mock) --- */
.forge-sheet {
  border: 1px solid var(--teal-border);
  border-radius: 16px;
  background: var(--bg);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.forge-sheet__status {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: "Geist Mono", monospace; font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--teal);
}

/* identity: procedural crest + name + role + purpose */
.forge-id { display: flex; gap: 16px; align-items: flex-start; }
.forge-crest { width: 58px; height: 58px; flex: none; }
.forge-crest svg { width: 100%; height: 100%; display: block; }
.forge-id__name {
  display: block; font-family: "Fraunces", serif; font-weight: 600;
  font-size: 23px; letter-spacing: -0.02em; line-height: 1.05; color: var(--ink);
}
.forge-id__role {
  display: block; margin-top: 7px;
  font-family: "Geist Mono", monospace; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--teal);
}
.forge-id__purpose { display: block; margin-top: 9px; font-size: 13px; line-height: 1.5; color: var(--ink-muted); }

/* shared block divider inside the sheet */
.forge-block { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border-subtle); }
.forge-block > .microlabel { display: block; margin-bottom: 12px; }

/* loadout slots — capabilities snap into these */
.forge-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.forge-slot {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: "Geist Mono", monospace; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 7px 12px; border-radius: 8px;
  border: 1px solid var(--border); color: var(--ink-mid); background: var(--fill-0);
}
.forge-slot::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--ink-muted); flex: none; }
.forge-slot.is-spec { color: var(--teal); border-color: var(--teal-border); background: var(--teal-wash); }
.forge-slot.is-spec::before { background: var(--teal); }
.forge-slot.is-empty { color: var(--ink-ghost); border-style: dashed; background: transparent; }
.forge-slot.is-empty::before { display: none; }

/* mind selector — Fast / Balanced / Frontier segmented control */
.forge-mind__opts { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: 999px; }
.forge-mind__opt {
  font-family: "Geist Mono", monospace; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-muted);
  padding: 6px 15px; border-radius: 999px;
}
.forge-mind__opt.is-sel { background: var(--teal); color: var(--teal-ink); }
.forge-mind__adv { margin-left: 12px; font-family: "Geist Mono", monospace; font-size: 9px; letter-spacing: 0.08em; color: var(--ink-ghost); }

/* character-sheet stats — cairnstyle mini bars */
.forge-stats { display: grid; gap: 13px; }
.forge-stat { display: grid; grid-template-columns: 96px 1fr auto; gap: 12px; align-items: center; }
.forge-stat__lbl {
  font-family: "Geist Mono", monospace; font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-ghost);
}
.forge-stat__track { height: 6px; border-radius: 999px; background: var(--fill-2); overflow: hidden; }
.forge-stat__fill { height: 100%; border-radius: 999px; background: var(--teal); width: 0; }
.forge-stat__fill.is-green { background: var(--green); }
.forge-stat__val { font-family: "Geist Mono", monospace; font-size: 13px; font-weight: 500; color: var(--ink); text-align: right; }
.forge-stats__cap {
  margin-top: 14px; font-family: "Geist Mono", monospace; font-size: 9px;
  letter-spacing: 0.08em; color: var(--ink-ghost);
}

/* --- the three felt steps (right column) --- */
.forge-steps { list-style: none; display: block; }
.forge-step {
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start;
  padding: 18px 0; border-top: 1px solid var(--border-subtle);
}
.forge-step:first-child { border-top: 0; padding-top: 0; }
.forge-step__num {
  font-family: "Geist Mono", monospace; font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; color: var(--teal); padding-top: 2px;
}
.forge-step__t { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.forge-step__d { margin-top: 6px; font-size: 14px; line-height: 1.55; color: var(--ink-muted); }

/* augmentation closing line */
.forge-close {
  margin-top: 40px;
  display: flex; align-items: center; gap: 12px;
  font-family: "Newsreader", serif; font-style: italic; font-size: 18px; color: var(--ink-mid);
}
.forge-close .live-dot { flex: none; }
