/* ============================================================================
   Northscale Studio — unified design system
   ----------------------------------------------------------------------------
   One language across every page, matched to the flagship brain.html hero:
   tinted near-black canvas, Satoshi display + JetBrains Mono labels, gradient-N
   brand, hairline borders, a single rationed blue→violet accent, and exactly
   one earned motion moment per section. No glow, no candy. Reference grammar:
   Linear / Stripe / Vercel. Drives services.html, why.html (About), contact.html.
   ========================================================================== */

:root {
  --bg:        #060509;
  --bg-2:      #08070c;
  --panel:     #0c0a14;
  --surface:   rgba(255,255,255,0.025);
  --surface-2: rgba(255,255,255,0.05);

  --text:   #ece9f2;
  --muted:  #9b97a8;
  --faint:  #5d5870;

  --violet: #8b6cf0;
  --blue:   #4b71f7;
  --peri:   #8aa0ff;
  --mint:   #8af0b3;
  --amber:  #ffb829;
  --accent: #9fb0ff;

  --line:      rgba(255,255,255,0.12);
  --line-soft: rgba(255,255,255,0.07);

  --display: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1180px;
  --pad: clamp(1.1rem, 4vw, 2.6rem);
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg);
  scrollbar-width: thin;
  scrollbar-color: #2a2533 #060509;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--display);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.011em;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: rgba(123,108,240,0.32); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

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

/* ---- ambient backdrop: live particle field (console-bg.js) on inner pages -- */
.bg-canvas { position: fixed; inset: 0; z-index: -2; pointer-events: none; }
.bg-scrim { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(125% 85% at 50% 38%, rgba(6,5,9,0.52), rgba(6,5,9,0.24) 60%, rgba(6,5,9,0.04)); }
main { position: relative; z-index: 1; }
/* keep copy crisp over the live field (same text-shadow trick as the hero) */
.page-hero .display, .section .h2, .cta-band .display, .cta-band .h1 { text-shadow: 0 2px 34px rgba(6,5,9,0.7); }
.lead, .h3 { text-shadow: 0 1px 18px rgba(6,5,9,0.66); }

/* ============================================================================
   TYPOGRAPHY
   ========================================================================== */
.display {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2.7rem, 7.4vw, 6rem);
  line-height: 0.95; letter-spacing: -0.045em;
  font-feature-settings: "ss01","cv01","liga","calt";
}
.h1 { font-weight: 600; font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 0.98; letter-spacing: -0.04em; }
.h2 { font-weight: 500; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.03; letter-spacing: -0.032em; }
.h3 { font-weight: 500; font-size: clamp(1.4rem, 2.4vw, 1.85rem); line-height: 1.08; letter-spacing: -0.022em; }
.h4 { font-weight: 600; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.2; letter-spacing: -0.015em; }

/* one rationed gradient accent word per heading */
.hl {
  background: linear-gradient(96deg, #ffd293 0%, #ffb24d 22%, #ff9f78 45%, #bf93ff 76%, #7ea6ff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: hlShift 11s ease-in-out infinite;
}
.hl.cool {
  background-image: linear-gradient(96deg, #8aa0ff 0%, #b79bff 60%, #8af0b3 120%);
}
@keyframes hlShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@media (prefers-reduced-motion: reduce) { .hl { animation: none; } }

.eyebrow {
  font-family: var(--mono); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: #ccd4ff;
  display: inline-flex; align-items: center; line-height: 1.5;
}
.eyebrow::before {
  content: ""; width: 1.9rem; height: 1.5px; margin-right: 0.75rem; border-radius: 2px;
  background: linear-gradient(90deg, var(--peri), transparent);
}
.eyebrow.center { justify-content: center; }
.eyebrow.center::after { content: ""; width: 1.9rem; height: 1.5px; margin-left: 0.75rem; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--peri)); }
.eyebrow.solo::before { display: none; }

.lead { font-weight: 400; font-size: clamp(1.05rem, 1.5vw, 1.24rem); line-height: 1.62; color: var(--muted); }
.lead strong, .lead b { color: var(--text); font-weight: 600; }
.muted { color: var(--muted); }
.serif { font-style: italic; }

/* ============================================================================
   BUTTONS
   ========================================================================== */
.pill {
  position: relative; display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.5rem; border-radius: 100px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: #fff; font-weight: 700; font-size: 0.9rem; letter-spacing: 0.01em;
  box-shadow: 0 6px 20px -8px rgba(75,113,247,0.65);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), filter 0.3s var(--ease);
}
.pill:hover { transform: translateY(-2px); filter: brightness(1.07); box-shadow: 0 10px 28px -8px rgba(123,108,240,0.8); }
.pill.sm { padding: 0.6rem 1.2rem; font-size: 0.82rem; }

.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.8rem 1.4rem; border-radius: 100px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font-weight: 600; font-size: 0.9rem;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn:hover { border-color: rgba(255,255,255,0.28); background: var(--surface-2); transform: translateY(-1px); }
.btn .arr, .pill .arr { width: 13px; height: 13px; transition: transform 0.3s var(--ease); }
.btn:hover .arr, .pill:hover .arr { transform: translate(2px, -2px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ============================================================================
   HEADER  (class kept as .site-header so script.js drives .scrolled state)
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem var(--pad);
  border-bottom: 1px solid transparent;
  transition: background 0.45s var(--ease), backdrop-filter 0.45s var(--ease), padding 0.45s var(--ease), border-color 0.45s var(--ease);
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(6,5,9,0.6), rgba(6,5,9,0));
  transition: opacity 0.45s var(--ease);
}
.site-header.scrolled {
  background: rgba(8,7,12,0.66); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  border-bottom-color: rgba(255,255,255,0.08); padding-top: 0.85rem; padding-bottom: 0.85rem;
}
.site-header.scrolled::before { opacity: 0; }

.brand { display: flex; align-items: center; gap: 0.7rem; font-weight: 800; letter-spacing: -0.025em;
  font-size: 1.34rem; color: #fff; text-shadow: 0 2px 18px rgba(6,5,9,0.55);
  transition: transform 0.4s var(--ease); }
.brand:hover { transform: translateY(-1px); }
.brand-mark { display: block; filter: drop-shadow(0 3px 14px rgba(123,108,240,0.55)); transition: filter 0.4s var(--ease); }
.brand:hover .brand-mark { filter: drop-shadow(0 5px 22px rgba(123,108,240,0.9)); }

.nav-links { display: flex; align-items: center; gap: 2rem;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.16em; font-weight: 700; }
.nav-links a:not(.pill) { position: relative; color: #fff; opacity: 0.92; padding: 0.25rem 0; transition: opacity 0.25s var(--ease); }
.nav-links a:not(.pill)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1.5px;
  background: linear-gradient(90deg, var(--peri), var(--violet)); border-radius: 2px; transition: right 0.4s var(--ease); }
.nav-links a:not(.pill):hover, .nav-links a.is-current { opacity: 1; }
.nav-links a:not(.pill):hover::after, .nav-links a.is-current::after { right: 0; }

.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); position: relative; cursor: pointer; z-index: 61; }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after {
  content: ""; position: absolute; left: 11px; right: 11px; height: 1.6px; background: #fff; border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.2s var(--ease); }
.menu-toggle::before { top: 15px; } .menu-toggle span { top: 20px; } .menu-toggle::after { top: 25px; }
.site-header.nav-open .menu-toggle::before { transform: translateY(5px) rotate(45deg); }
.site-header.nav-open .menu-toggle span { opacity: 0; }
.site-header.nav-open .menu-toggle::after { transform: translateY(-5px) rotate(-45deg); }

/* ============================================================================
   PAGE HERO  (inner-page header band)
   ========================================================================== */
.page-hero { position: relative; padding-top: clamp(8rem, 18vh, 12rem); padding-bottom: clamp(3rem, 7vh, 6rem); }
.page-hero .eyebrow { margin-bottom: 1.6rem; }
.page-hero .display { max-width: 16ch; }
.page-hero .lead { max-width: 52ch; margin-top: 1.8rem; }
.page-hero .btn-row { margin-top: 2.4rem; }

/* ============================================================================
   SECTIONS
   ========================================================================== */
.section { position: relative; padding-block: clamp(4.5rem, 11vh, 9rem); }
.section--tight { padding-block: clamp(3rem, 7vh, 6rem); }
.section-head { max-width: 60rem; display: flex; flex-direction: column; gap: 1.3rem; }
.section-head.center { text-align: center; align-items: center; margin-inline: auto; }
.section-head .lead { max-width: 48rem; }
.section-head .eyebrow { margin-bottom: 0.2rem; }
.rule { height: 1px; background: var(--line-soft); border: 0; }

/* generic split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.split.lead-left { grid-template-columns: 0.9fr 1.1fr; }

/* lifted surface panel */
.panel { border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.7rem, 3vw, 2.6rem);
  background: linear-gradient(180deg, var(--surface), transparent); }

/* ============================================================================
   FEATURE TRIAD  (Stripe/Linear — 3 columns threaded by one hairline)
   ========================================================================== */
.triad { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.triad-item { padding: 2.4rem clamp(1.4rem, 2.4vw, 2.2rem) 0; border-left: 1px solid var(--line); }
.triad-item:first-child { border-left: 0; padding-left: 0; }
.triad-num { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.14em; color: var(--peri); }
.triad-item h3 { margin: 1.4rem 0 0.9rem; }
.triad-item p { color: var(--muted); font-size: 0.99rem; line-height: 1.55; }
.triad-item .icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(75,113,247,0.12); color: var(--peri); margin-bottom: 1.4rem; }
.triad-item .icon svg { width: 19px; height: 19px; }

/* ============================================================================
   CARDS  (matched to brain.html .card)
   ========================================================================== */
.card { position: relative; border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.5rem, 2.4vw, 2rem);
  background: rgba(255,255,255,0.02); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset, 0 18px 44px -30px rgba(0,0,0,0.7);
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,0.28);
  box-shadow: 0 1px 0 rgba(255,255,255,0.14) inset, 0 34px 64px -28px rgba(6,4,14,0.9); }
.card .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(75,113,247,0.12); color: var(--peri); margin-bottom: 1.3rem; transition: color 0.4s var(--ease); }
.card:hover .ico { color: #fff; }
.card .ico svg { width: 20px; height: 20px; }
.card h3 { margin: 0 0 0.6rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; line-height: 1.55; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }

/* ============================================================================
   BENTO  (asymmetric — size encodes hierarchy; 2 promoted tiles)
   ========================================================================== */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; grid-auto-rows: 1fr; }
.bento-item { position: relative; display: flex; flex-direction: column; justify-content: space-between;
  gap: 2rem; min-height: 14rem; padding: clamp(1.4rem, 2.2vw, 1.9rem);
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  background: rgba(255,255,255,0.02);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset, 0 18px 44px -30px rgba(0,0,0,0.7);
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease); }
.bento-item:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.26);
  box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 30px 60px -30px rgba(6,4,14,0.9); }
.bento-item.wide { grid-column: span 2; }
.bento-item .bglow { position: absolute; inset: 0; z-index: 0; opacity: 0; pointer-events: none;
  background: radial-gradient(70% 80% at 80% 10%, rgba(123,108,240,0.16), transparent 70%); transition: opacity 0.5s var(--ease); }
.bento-item:hover .bglow { opacity: 1; }
.bento-item > * { position: relative; z-index: 1; }
.bento-head { display: flex; align-items: center; justify-content: space-between; }
.bento-num { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.14em; color: var(--faint); }
.bento-ico { color: var(--peri); } .bento-ico svg { width: 22px; height: 22px; }
.bento-item h3 { margin-bottom: 0.5rem; }
.bento-item p { color: var(--muted); font-size: 0.96rem; line-height: 1.5; max-width: 42ch; }

/* ============================================================================
   TRUST LEDGER  (Stripe security — grouped principles, hairline, mono ticks)
   ========================================================================== */
.ledger { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  border: 1px solid var(--line-soft); border-radius: 20px; overflow: hidden; background: var(--line-soft); }
.ledger-group { background: var(--bg); padding: clamp(1.6rem, 2.6vw, 2.3rem); display: flex; flex-direction: column; gap: 0.2rem; }
.ledger-group > h4 { font-family: var(--mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--peri); margin-bottom: 1.6rem; }
.ledger-item { padding: 1.1rem 0; border-top: 1px solid var(--line-soft); display: grid; grid-template-columns: auto 1fr; gap: 0.85rem; }
.ledger-item:first-of-type { border-top: 0; padding-top: 0; }
.ledger-tick { width: 18px; height: 18px; margin-top: 0.15rem; flex: none; color: var(--mint); }
.ledger-item h5 { font-weight: 600; font-size: 1.02rem; letter-spacing: -0.015em; margin-bottom: 0.25rem; }
.ledger-item p { color: var(--muted); font-size: 0.9rem; line-height: 1.5; }

/* ============================================================================
   INDUSTRIES  (interactive list → one shared preview panel)
   ========================================================================== */
.industries { display: grid; grid-template-columns: 1fr 0.85fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.ind-list { display: flex; flex-direction: column; border-top: 1px solid var(--line-soft); }
.ind-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: clamp(1.1rem, 2vw, 1.6rem) 0.4rem; border-bottom: 1px solid var(--line-soft);
  cursor: pointer; color: var(--muted); transition: color 0.3s var(--ease), padding-left 0.4s var(--ease); background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; width: 100%; }
.ind-row .ind-name { font-weight: 500; font-size: clamp(1.3rem, 2.4vw, 1.9rem); letter-spacing: -0.02em; transition: color 0.3s var(--ease); }
.ind-row .ind-tag { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.ind-row:hover, .ind-row.active { color: var(--text); padding-left: 1rem; }
.ind-row.active .ind-name { color: #fff; }
.ind-row.active .ind-tag { color: var(--peri); }
.ind-preview { position: sticky; top: 16vh; border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(1.7rem, 3vw, 2.4rem); min-height: 20rem; overflow: hidden;
  background: linear-gradient(180deg, var(--surface), transparent); display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; }
.ind-preview .pv-glow { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(80% 70% at 70% 0%, rgba(123,108,240,0.18), transparent 70%); }
.ind-preview > * { position: relative; z-index: 1; }
.ind-preview .pv-num { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.14em; color: var(--peri); }
.ind-preview .pv-name { margin: 0.8rem 0 1rem; }
.ind-preview .pv-desc { color: var(--muted); line-height: 1.6; }
.ind-preview .pv-foot { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }

/* ============================================================================
   PROCESS  (sticky aside headline + stepped right column)
   ========================================================================== */
.process { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.process-aside { position: sticky; top: 18vh; display: flex; flex-direction: column; gap: 1.4rem; }
.process-count { font-family: var(--mono); font-weight: 700; letter-spacing: -0.02em; line-height: 1;
  font-size: clamp(3.5rem, 9vw, 7rem); color: #fff; }
.process-count .total { color: var(--faint); font-size: 0.4em; vertical-align: super; }
.process-steps { display: flex; flex-direction: column; }
.process-step { padding: clamp(1.6rem, 3vw, 2.4rem) 0; border-top: 1px solid var(--line-soft); display: grid;
  grid-template-columns: auto 1fr; gap: clamp(1rem, 2.5vw, 2rem); opacity: 0.5; transition: opacity 0.5s var(--ease); }
.process-step:first-child { border-top: 0; }
.process-step.active { opacity: 1; }
.process-step .pn { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.14em; color: var(--peri); padding-top: 0.35rem; }
.process-step h3 { margin-bottom: 0.6rem; }
.process-step p { color: var(--muted); font-size: 1rem; line-height: 1.55; max-width: 46ch; }

/* ============================================================================
   CODE BLOCK  (governed-core demo)
   ========================================================================== */
.code { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--panel);
  box-shadow: 0 30px 70px -40px rgba(0,0,0,0.9); }
.code-bar { display: flex; align-items: center; gap: 0.8rem; padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--line-soft); }
.code-dots { display: flex; gap: 0.4rem; } .code-dots i { width: 10px; height: 10px; border-radius: 50%; background: #2a2636; }
.code-file { font-family: var(--mono); font-size: 0.74rem; color: var(--faint); letter-spacing: 0.04em; }
.code pre { margin: 0; padding: 1.3rem 1.4rem; font-family: var(--mono); font-size: 0.84rem; line-height: 1.7;
  color: #d7d3e6; overflow-x: auto; }
.ln-c { color: var(--faint); } .ln-k { color: var(--peri); } .ln-s { color: var(--mint); } .ln-f { color: #ffd293; }

/* ============================================================================
   CTA BAND
   ========================================================================== */
.cta-band { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1.8rem; }
.cta-band .display, .cta-band .h1 { max-width: 18ch; }

/* ============================================================================
   CONTACT FORM  (hooks preserved for script.js)
   ========================================================================== */
.contact-form { display: grid; gap: 1.2rem; }
.field { display: grid; gap: 0.5rem; }
.field label { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.field input, .field select, .field textarea { font-family: var(--display); font-size: 1rem; color: var(--text);
  background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-radius: 11px; padding: 0.85rem 1rem; width: 100%;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: rgba(123,108,240,0.6); background: rgba(255,255,255,0.05); }
.field textarea { min-height: 8rem; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field select option { background: #14121c; color: var(--text); }
.form-status { font-family: var(--mono); font-size: 0.82rem; color: var(--muted); min-height: 1.2em; }
.form-status[data-state="ok"] { color: var(--mint); } .form-status[data-state="err"] { color: #ff9a9a; }

/* ============================================================================
   FOOTER
   ========================================================================== */
.site-footer { border-top: 1px solid var(--line-soft); padding-block: clamp(3rem, 6vw, 5rem); background: var(--bg-2); position: relative; z-index: 2; }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2.5rem; align-items: flex-start; }
.footer-brand { max-width: 24rem; }
.footer-brand .lead { margin-top: 1rem; font-size: 0.98rem; }
.footer-links { display: flex; gap: clamp(2rem, 5vw, 4rem); flex-wrap: wrap; }
.footer-col h4 { font-family: var(--mono); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 1.1rem; }
.footer-col a, .footer-col button { display: block; background: none; border: 0; text-align: left; padding: 0.35rem 0;
  color: var(--muted); font-family: var(--display); font-size: 0.96rem; cursor: pointer; transition: color 0.3s var(--ease); }
.footer-col a:hover, .footer-col button:hover { color: var(--text); }
.footer-bottom { margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.4rem; border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: 0.84rem; color: var(--faint); }

/* ============================================================================
   REVEAL  (script.js toggles .is-visible)
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; } .reveal.d2 { transition-delay: 0.16s; } .reveal.d3 { transition-delay: 0.24s; }
html:not(.js) .reveal { opacity: 1; transform: none; }

/* ---- cursor dot ---------------------------------------------------------- */
.cursor-dot { position: fixed; top: 0; left: 0; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%;
  background: #fff; z-index: 9998; pointer-events: none; mix-blend-mode: difference; transition: opacity 0.3s var(--ease); }
@media (hover: none), (pointer: coarse) { .cursor-dot { display: none; } }

/* ============================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 920px) {
  .split, .split.lead-left { grid-template-columns: 1fr; }
  .cards, .suite { grid-template-columns: 1fr 1fr; }
  .triad { grid-template-columns: 1fr; }
  .triad-item { border-left: 0; border-top: 1px solid var(--line); padding: 2rem 0 0; }
  .triad-item:first-child { border-top: 0; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-item.wide { grid-column: span 2; }
  .ledger { grid-template-columns: 1fr; }
  .industries { grid-template-columns: 1fr; }
  .ind-preview { display: none; }
  .process { grid-template-columns: 1fr; }
  .process-aside { position: static; flex-direction: row; align-items: baseline; gap: 1rem; }
}
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .nav-links { position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px); flex-direction: column;
    align-items: flex-start; justify-content: center; gap: 1.8rem; padding: 2rem clamp(1.6rem, 6vw, 2.6rem);
    background: rgba(8,7,12,0.96); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border-left: 1px solid var(--line); transform: translateX(105%); transition: transform 0.5s var(--ease); }
  .site-header.nav-open .nav-links { transform: none; }
  .nav-links a:not(.pill) { font-size: 1rem; }
  .cards, .suite { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento-item.wide { grid-column: span 1; }
  .field-row { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  * { scroll-behavior: auto !important; }
}
