/* ============================================================================
   NIKSA — website stylesheet
   v0.1 · 2026-09-12

   The palette is lifted straight from the Niksa Sydney Water Estimator app
   (app/shell-v3.30.html :root) so the website and the software look like one
   company:
       app --bg #1e1e1e · --accent #0e639c · --accent2 #1177bb · blue #4a9eff
       app --win-bg #161616 · --win-border #b7862a · --win-title #ffcc66
   Here the background is taken darker and bluer ("black blue") as asked, and
   the orange family is kept for accents, rules and highlights.

   NOTHING is loaded from the internet — no web fonts, no CDN, no framework.
   The whole site opens by double-clicking index.html.
   ========================================================================== */

/* Inter (SIL Open Font Licence) — stored in assets/fonts, never fetched */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
                 U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
                 U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* ── ink: the black-blue background family ───────────────────────────── */
  --ink-900: #05070b;          /* deepest — hero base, footer */
  --ink-850: #070a10;
  --ink-800: #0a0e15;          /* page background */
  --ink-700: #0e141d;          /* alternating section */
  --ink-600: #121a25;          /* card */
  --ink-500: #18222f;          /* raised / hover */
  --ink-400: #1f2b3a;

  /* ── lines ───────────────────────────────────────────────────────────── */
  --line:      #1e2a3a;
  --line-soft: rgba(140, 175, 215, 0.12);
  --line-blue: rgba(74, 158, 255, 0.32);
  --line-amber: rgba(183, 134, 42, 0.45);

  /* ── blue (from the app + the logo drop) ─────────────────────────────── */
  --blue-200: #b9e0fb;
  --blue-300: #7cc4f5;
  --blue-400: #4a9eff;         /* app sub-tab highlight */
  --blue-500: #1a8ad4;         /* logo drop */
  --blue-600: #1177bb;         /* app --accent2 */
  --blue-700: #0e639c;         /* app --accent */
  --blue-900: #0b2138;

  /* ── orange / amber (the app's window palette) ───────────────────────── */
  --amber-200: #ffe3a8;
  --amber-300: #ffcc66;        /* app --win-title */
  --amber-400: #e0a33a;        /* app unsaved marker */
  --amber-500: #b7862a;        /* app --win-border */

  /* ── text ────────────────────────────────────────────────────────────── */
  --fg:      #e9eef5;
  --fg-soft: #bac6d4;
  --muted:   #8a97a8;
  --dim:     #64717f;

  /* ── shape ───────────────────────────────────────────────────────────── */
  --wrap: 1240px;
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 18px;
  --shadow:     0 14px 40px rgba(0, 0, 0, 0.55);
  --shadow-lg:  0 30px 80px rgba(0, 0, 0, 0.65);
  --glow-blue:  0 0 0 1px rgba(74, 158, 255, 0.25), 0 12px 34px rgba(17, 119, 187, 0.28);
  --glow-amber: 0 0 0 1px rgba(224, 163, 58, 0.28), 0 12px 34px rgba(183, 134, 42, 0.22);

  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", Consolas, "SF Mono", "Roboto Mono", monospace;

  --ease: cubic-bezier(.22, .68, .36, 1);
}

/* ============================ base ======================================= */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink-800);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--blue-300); text-decoration: none; }
a:hover { color: var(--blue-200); }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 1.2rem + 3.4vw, 4rem); }
h2 { font-size: clamp(1.6rem, 1.05rem + 2vw, 2.6rem); }
h3 { font-size: clamp(1.12rem, .98rem + .6vw, 1.42rem); letter-spacing: -0.01em; }
h4 { font-size: 1.02rem; letter-spacing: 0; }
p  { margin: 0 0 1em; color: var(--fg-soft); }

::selection { background: rgba(74, 158, 255, .3); color: #fff; }

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

/* ============================ layout ==================================== */
.wrap { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }
.wrap-narrow { width: min(880px, calc(100% - 48px)); margin-inline: auto; }

section { position: relative; }
.sect { padding: clamp(56px, 7vw, 108px) 0; }
.sect-alt { background: var(--ink-700); border-block: 1px solid var(--line); }
.sect-deep { background: var(--ink-900); border-block: 1px solid var(--line); }

.grid   { display: grid; gap: 22px; }
.g-2    { grid-template-columns: repeat(2, 1fr); }
.g-3    { grid-template-columns: repeat(3, 1fr); }
.g-4    { grid-template-columns: repeat(4, 1fr); }
.split  { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 64px); align-items: center; }

/* ============================ bits ====================================== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--amber-300); margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--amber-500), var(--amber-300));
}
.eyebrow.blue { color: var(--blue-300); }
.eyebrow.blue::before { background: linear-gradient(90deg, var(--blue-700), var(--blue-400)); }

.lead { font-size: clamp(1.02rem, .96rem + .35vw, 1.2rem); color: var(--fg-soft); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

.sect-head { max-width: 70ch; margin-bottom: clamp(28px, 4vw, 52px); }
.sect-head.center { margin-inline: auto; text-align: center; }

.rule {
  height: 1px; border: 0; margin: 0;
  background: linear-gradient(90deg, transparent, var(--line-blue), var(--line-amber), transparent);
}

/* ── buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 24px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-size: .95rem; font-weight: 700; letter-spacing: .01em;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              background .18s var(--ease), border-color .18s var(--ease), color .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  color: #fff; box-shadow: var(--glow-blue);
}
.btn-primary:hover { background: linear-gradient(135deg, #1789d6, var(--blue-600)); color: #fff;
  box-shadow: 0 0 0 1px rgba(74,158,255,.45), 0 18px 44px rgba(17,119,187,.42); }

.btn-amber {
  background: linear-gradient(135deg, var(--amber-400), var(--amber-500));
  color: #1a1206; box-shadow: var(--glow-amber);
}
.btn-amber:hover { color: #1a1206; background: linear-gradient(135deg, #f0b44a, var(--amber-400)); }

.btn-ghost {
  background: rgba(255, 255, 255, .02); color: var(--fg);
  border-color: var(--line); backdrop-filter: blur(6px);
}
.btn-ghost:hover { color: #fff; border-color: var(--line-blue); background: rgba(74, 158, 255, .09); }

.btn-sm { padding: 8px 16px; font-size: .85rem; }
.btn-block { display: flex; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ── chips ────────────────────────────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .025);
  font-size: .8rem; color: var(--fg-soft); white-space: nowrap;
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue-400); flex: 0 0 auto; }
.chip.amber { border-color: var(--line-amber); color: var(--amber-200); background: rgba(183, 134, 42, .10); }
.chip.amber .dot { background: var(--amber-300); }
.chip.ok { border-color: rgba(111, 158, 111, .45); color: #9fd09f; background: rgba(111, 158, 111, .10); }
.chip.ok .dot { background: #6f9e6f; }
.chip.red { border-color: rgba(217, 48, 37, .45); color: #f2a49d; background: rgba(217, 48, 37, .10); }
.chip.red .dot { background: #d93025; }

/* ── cards ────────────────────────────────────────────────────────────── */
.card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--ink-600), var(--ink-700));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 26px 24px;
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.card::before {                                 /* cursor spotlight */
  content: ""; position: absolute; inset: -1px; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%),
              rgba(74, 158, 255, .13), transparent 62%);
  transition: opacity .3s;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-blue); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.card.amber:hover { border-color: var(--line-amber); }
.card.amber::before { background: radial-gradient(420px circle at var(--mx,50%) var(--my,0%), rgba(224,163,58,.13), transparent 62%); }

.card-icon {
  width: 46px; height: 46px; border-radius: 13px; margin-bottom: 16px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, rgba(17,119,187,.28), rgba(10,20,32,.6));
  border: 1px solid var(--line-blue); color: var(--blue-300);
}
.card-icon svg { width: 23px; height: 23px; }
.card.amber .card-icon {
  background: linear-gradient(140deg, rgba(183,134,42,.28), rgba(26,18,6,.6));
  border-color: var(--line-amber); color: var(--amber-300);
}

/* numbered list inside cards */
.ticks { list-style: none; margin: 14px 0 0; padding: 0; }
.ticks li { position: relative; padding-left: 26px; margin-bottom: 9px; color: var(--fg-soft); font-size: .94rem; }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: .62em;
  width: 9px; height: 9px; border-radius: 2px; transform: rotate(45deg);
  border: 1.5px solid var(--blue-400); background: rgba(74, 158, 255, .18);
}
.ticks.amber li::before { border-color: var(--amber-400); background: rgba(224, 163, 58, .18); }
.ticks li b { color: var(--fg); font-weight: 600; }

/* ── stats ────────────────────────────────────────────────────────────── */
.stat { text-align: center; padding: 20px 12px; }
.stat .n {
  font-size: clamp(1.9rem, 1.2rem + 2vw, 3rem); font-weight: 800; letter-spacing: -.03em;
  background: linear-gradient(180deg, #fff, var(--blue-300));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1.05;
}
.stat.amber .n { background: linear-gradient(180deg, #fff, var(--amber-300)); -webkit-background-clip: text; background-clip: text; }
.stat .k { font-size: .82rem; color: var(--muted); letter-spacing: .07em; text-transform: uppercase; margin-top: 6px; }

/* ============================ header ==================================== */
.scrollbar {
  position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 120;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-400), var(--amber-300));
  box-shadow: 0 0 12px rgba(74, 158, 255, .7);
}

.site-head {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6, 9, 14, .72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background .25s, border-color .25s, box-shadow .25s;
}
.site-head.stuck { background: rgba(6, 9, 14, .93); border-bottom-color: var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.site-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-blue) 30%, var(--line-amber) 70%, transparent);
  opacity: .0; transition: opacity .3s;
}
.site-head.stuck::after { opacity: 1; }

.nav { display: flex; align-items: center; gap: 18px; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand img, .brand svg { width: 40px; height: 40px; border-radius: 11px; flex: 0 0 auto; }
.brand-name { font-size: 1.18rem; font-weight: 800; letter-spacing: .01em; color: #fff; line-height: 1.1; }
.brand-sub { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  position: relative; display: block; padding: 9px 14px; border-radius: 8px;
  color: var(--fg-soft); font-size: .93rem; font-weight: 600;
  transition: color .18s, background .18s;
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.nav-links a.on { color: #fff; }
.nav-links a.on::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--blue-400), var(--amber-300));
}

.nav-cta { display: flex; align-items: center; gap: 10px; }

.burger {
  display: none; width: 42px; height: 38px; border-radius: 9px; cursor: pointer;
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
  align-items: center; justify-content: center; flex-direction: column; gap: 4px;
}
.burger span { display: block; width: 17px; height: 2px; border-radius: 2px; background: var(--fg); transition: transform .22s, opacity .22s; }
.burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================ hero ====================================== */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink-900);
  padding: clamp(54px, 7vw, 96px) 0 clamp(60px, 8vw, 110px);
  border-bottom: 1px solid var(--line);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(1100px 620px at 78% 8%,  rgba(17, 119, 187, .20), transparent 62%),
    radial-gradient(760px 520px at 6% 92%,   rgba(183, 134, 42, .14), transparent 60%),
    linear-gradient(180deg, rgba(5,7,11,.14) 0%, rgba(5,7,11,.62) 72%, var(--ink-800) 100%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(30px, 4vw, 60px); align-items: center; }

.hero h1 { margin-bottom: .42em; }
.hero h1 .hl {
  background: linear-gradient(105deg, var(--blue-300) 10%, var(--blue-400) 45%, var(--amber-300) 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { font-size: clamp(1.04rem, .98rem + .45vw, 1.26rem); margin-bottom: 28px; }

.rotator { display: inline-block; position: relative; color: var(--amber-300); font-weight: 800; }
.rotator::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 3px;
  background: var(--amber-300); vertical-align: -.12em; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* ── the live estimate panel (the hero's moving centrepiece) ──────────── */
.est-panel {
  position: relative;
  background: linear-gradient(180deg, rgba(18, 26, 37, .96), rgba(8, 12, 18, .97));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.est-panel::after {                     /* sweeping sheen */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.05) 46%, transparent 62%);
  transform: translateX(-120%); animation: sheen 7s var(--ease) infinite;
}
@keyframes sheen { 0%, 62% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

.est-bar {
  display: flex; align-items: center; gap: 9px; padding: 11px 15px;
  background: #0b0f16; border-bottom: 1px solid var(--line);
}
.est-bar .lights { display: flex; gap: 6px; margin-right: 4px; }
.est-bar .lights i { width: 9px; height: 9px; border-radius: 50%; background: #2a3444; display: block; }
.est-bar .lights i:first-child { background: #b7862a; }
.est-bar .t { font-size: .8rem; color: var(--muted); font-weight: 600; }
.est-bar .v { margin-left: auto; font-size: .72rem; color: var(--dim); font-family: var(--mono); }

.est-job {
  display: flex; gap: 18px; flex-wrap: wrap; padding: 10px 16px;
  background: #0a0e15; border-bottom: 1px solid var(--line); font-size: .72rem;
}
.est-job span { color: var(--dim); text-transform: uppercase; letter-spacing: .07em; }
.est-job b { color: var(--blue-300); font-weight: 700; margin-left: 6px; letter-spacing: 0; text-transform: none; }
.est-job b.amber { color: var(--amber-300); }

/* a fixed window: rows scroll up inside it, the panel never grows (his word 2026-11-01) */
.est-rows { padding: 6px 0 4px; height: 292px; overflow: hidden; font-family: var(--mono); font-size: .78rem; }
.est-row {
  display: grid; grid-template-columns: 1fr 52px 74px 88px; gap: 8px;
  padding: 6px 16px; align-items: baseline;
  opacity: 0; transform: translateY(6px);
  animation: rowIn .45s var(--ease) forwards;
}
@keyframes rowIn { to { opacity: 1; transform: none; } }
.est-row .it { color: var(--fg-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.est-row .q, .est-row .r { color: var(--muted); text-align: right; }
.est-row .a { color: var(--blue-300); text-align: right; font-weight: 600; }
.est-row.head { color: var(--dim); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
  border-bottom: 1px solid var(--line); padding-bottom: 7px; margin-bottom: 3px; opacity: 1; transform: none; animation: none; }
.est-row.head .it, .est-row.head .q, .est-row.head .r, .est-row.head .a { color: var(--dim); font-weight: 600; }
.est-row.sect { color: var(--amber-300); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  padding-top: 13px; grid-template-columns: 1fr; }

.est-total {
  display: flex; align-items: center; gap: 12px; padding: 13px 16px;
  border-top: 1px solid var(--line); background: linear-gradient(90deg, rgba(17,119,187,.12), rgba(183,134,42,.10));
}
.est-total .l { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-soft); }
.est-total .n { margin-left: auto; font-family: var(--mono); font-size: 1.28rem; font-weight: 800; color: var(--amber-300); }

/* ============================ pieces ==================================== */
/* feature row with a screenshot-ish frame */
.frame {
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(180deg, var(--ink-600), var(--ink-850)); box-shadow: var(--shadow);
}
.frame-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #0b0f16; border-bottom: 1px solid var(--line); }
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: #2a3444; }
.frame-bar i:first-child { background: var(--amber-500); }
.frame-bar span { font-size: .76rem; color: var(--muted); margin-left: 6px; }
.frame-body { padding: 20px; }

/* app tab strip mock */
.tabmock { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.tabmock span { padding: 8px 13px; background: #151c26; font-size: .78rem; color: var(--muted); }
.tabmock span.on { background: rgba(23, 110, 190, .26); color: #eaf4ff; font-weight: 700; box-shadow: inset 0 2px 0 var(--blue-400); }

/* timeline */
.tl { position: relative; margin: 0; padding: 0 0 0 34px; list-style: none; }
.tl::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, var(--blue-600), var(--blue-700) 40%, var(--amber-500)); border-radius: 2px; opacity: .55; }
.tl li { position: relative; padding-bottom: 30px; }
.tl li::before {
  content: ""; position: absolute; left: -30px; top: 7px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--ink-800); border: 2px solid var(--blue-400); box-shadow: 0 0 0 4px rgba(74,158,255,.12);
}
.tl li.amber::before { border-color: var(--amber-400); box-shadow: 0 0 0 4px rgba(224,163,58,.12); }
.tl .when { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--amber-300); font-weight: 700; }
.tl h4 { margin: 3px 0 6px; }
.tl p { margin: 0; font-size: .95rem; }

/* LGA coverage cloud */
.lgas { display: flex; flex-wrap: wrap; gap: 8px; }
.lgas span {
  padding: 6px 12px; border-radius: 7px; font-size: .82rem;
  background: rgba(255,255,255,.025); border: 1px solid var(--line); color: var(--fg-soft);
  transition: border-color .2s, color .2s, background .2s, transform .2s;
}
.lgas span:hover { border-color: var(--line-blue); color: #fff; background: rgba(74,158,255,.08); transform: translateY(-2px); }

/* contact rows */
.crow { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.crow:last-child { border-bottom: 0; }
.crow .ci { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 auto;
  background: rgba(17,119,187,.16); border: 1px solid var(--line-blue); color: var(--blue-300); }
.crow .ci svg { width: 18px; height: 18px; }
.crow .ck { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.crow .cv { color: var(--fg); font-weight: 600; }
.crow .cv a { color: var(--fg); }
.crow .cv a:hover { color: var(--blue-300); }

/* forms */
.field { margin-bottom: 15px; }
.field label { display: block; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; font: inherit; font-size: .95rem;
  color: var(--fg); background: #0b0f16; border: 1px solid var(--line); border-radius: var(--r-sm);
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-400); background: #0d131c;
  box-shadow: 0 0 0 3px rgba(74, 158, 255, .13);
}
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }

.note {
  border-left: 3px solid var(--amber-500); background: rgba(183, 134, 42, .09);
  padding: 13px 16px; border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: .9rem; color: var(--fg-soft);
}
.note b { color: var(--amber-300); }
.note.blue { border-left-color: var(--blue-600); background: rgba(17, 119, 187, .10); }
.note.blue b { color: var(--blue-300); }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  border: 1px solid var(--line); padding: clamp(30px, 4vw, 54px);
  background:
    radial-gradient(700px 300px at 12% 0%, rgba(17,119,187,.24), transparent 62%),
    radial-gradient(600px 280px at 92% 100%, rgba(183,134,42,.18), transparent 60%),
    linear-gradient(180deg, var(--ink-600), var(--ink-850));
}

/* ============================ footer ==================================== */
.site-foot { background: var(--ink-900); border-top: 1px solid var(--line); padding: clamp(44px, 5vw, 72px) 0 26px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 34px; }
.foot-grid h5 { margin: 0 0 12px; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--amber-300); font-weight: 700; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 8px; }
.foot-grid a { color: var(--fg-soft); font-size: .92rem; }
.foot-grid a:hover { color: var(--blue-300); }
.foot-bot {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: .83rem; color: var(--dim);
}
.foot-bot .ver {
  margin-left: auto; font-family: var(--mono); font-size: .76rem;
  color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px;
}

/* draft-note marker — anything on the site that still needs the owner's real
   detail is wrapped in <span class="todo"> so it can be spotted at a glance.
   The footer switch turns the highlight off to preview the "clean" site. */
.todo { border-bottom: 1px dashed var(--amber-400); color: var(--amber-200); cursor: help; }
body.no-todo .todo { border-bottom: 0; color: inherit; }
.todo-switch { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); cursor: pointer; user-select: none; }
.todo-switch input { accent-color: var(--amber-400); }

/* ============================ reveal ==================================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
.reveal.d5 { transition-delay: .40s; } .reveal.d6 { transition-delay: .48s; }

/* ============================ responsive ================================ */
@media (max-width: 1080px) {
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 920px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .g-3 { grid-template-columns: 1fr 1fr; }
  .nav-links {
    position: fixed; inset: 74px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    /* solid, not translucent — the headline behind it was still faintly
       readable through a 98% background once the blur spread it around */
    background: var(--ink-900);
    border-bottom: 1px solid var(--line); padding: 12px 24px 20px;
    max-height: 0; overflow: hidden; transition: max-height .3s var(--ease), padding .3s;
  }
  .nav-links.open { max-height: 70vh; }
  .nav-links a { padding: 13px 8px; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .nav-links a.on::after { left: 8px; right: auto; width: 22px; }
  .burger { display: flex; }
  .wrap, .wrap-narrow { width: calc(100% - 36px); }
}
@media (max-width: 640px) {
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .nav-cta .btn-hide-sm { display: none; }
  .est-rows { min-height: 220px; }
  .est-row { grid-template-columns: 1fr 42px 62px 74px; font-size: .72rem; }
}

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

/* ============================ print ===================================== */
@media print {
  .site-head, .site-foot, .hero-canvas, .scrollbar { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ============================================================================
   PAGE HEADERS · TABLES · THE CLIENT PORTAL
   Added with the inner pages so the whole site still needs only this one file.
   ========================================================================== */

section[id], div[id], article[id] { scroll-margin-top: 96px; }

/* ── inner-page header band ──────────────────────────────────────────── */
.page-hero {
  position: relative; overflow: hidden; background: var(--ink-900);
  border-bottom: 1px solid var(--line);
  padding: clamp(44px, 6vw, 82px) 0 clamp(34px, 4.5vw, 58px);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 420px at 80% -12%, rgba(17, 119, 187, .22), transparent 62%),
    radial-gradient(680px 380px at 2% 115%,  rgba(183, 134, 42, .14), transparent 60%);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image:
    linear-gradient(rgba(120, 165, 215, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 165, 215, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(72% 100% at 50% 0%, #000, transparent 76%);
          mask-image: radial-gradient(72% 100% at 50% 0%, #000, transparent 76%);
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.2rem); }

.crumbs { font-size: .8rem; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--blue-300); }
.crumbs span { margin: 0 7px; color: var(--dim); }

/* ── plain tables ─────────────────────────────────────────────────────── */
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th {
  text-align: left; padding: 10px 14px; font-size: .7rem; letter-spacing: .09em;
  text-transform: uppercase; color: var(--dim); font-weight: 700;
  background: #0b0f16; border-bottom: 1px solid var(--line);
}
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--fg-soft); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background .15s; }
.tbl tbody tr:hover { background: rgba(74, 158, 255, .05); }
.tbl td b, .tbl td strong { color: var(--fg); font-weight: 600; }
.tbl .num { text-align: right; font-family: var(--mono); }
.tbl-wrap { border: 1px solid var(--line); border-radius: var(--r); overflow-x: auto; background: var(--ink-600); }

/* ── two-column definition rows (services detail) ────────────────────── */
.deflist { border-top: 1px solid var(--line); }
.defrow { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.defrow h4 { margin: 0; color: var(--amber-300); font-size: .95rem; letter-spacing: .02em; }
.defrow p { margin: 0; font-size: .95rem; }
@media (max-width: 720px) { .defrow { grid-template-columns: 1fr; gap: 6px; } }

/* ============================ the portal ================================ */
.portal { display: grid; grid-template-columns: 262px 1fr; min-height: calc(100vh - 74px); }
.pside {
  background: var(--ink-900); border-right: 1px solid var(--line);
  padding: 24px 16px; display: flex; flex-direction: column; gap: 5px;
}
.pside .who {
  padding: 14px; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 16px;
  background: linear-gradient(180deg, var(--ink-600), var(--ink-850));
}
.pside .who .nm { font-weight: 700; color: #fff; font-size: .96rem; }
.pside .who .rl { font-size: .74rem; color: var(--amber-300); letter-spacing: .08em; text-transform: uppercase; }
.pside .who .co { font-size: .82rem; color: var(--muted); margin-top: 3px; }

.pnav { display: flex; align-items: center; gap: 10px; padding: 10px 13px; border-radius: 9px;
  color: var(--fg-soft); font-size: .93rem; font-weight: 600; cursor: pointer; border: 1px solid transparent;
  background: none; font-family: inherit; text-align: left; width: 100%;
  transition: background .16s, color .16s, border-color .16s; }
.pnav:hover { background: rgba(255,255,255,.04); color: #fff; }
.pnav.on { background: rgba(23, 110, 190, .24); border-color: var(--line-blue); color: #eaf4ff;
  box-shadow: inset 0 2px 0 var(--blue-400); }
.pnav svg { width: 17px; height: 17px; flex: 0 0 auto; }
.pnav .tag { margin-left: auto; font-size: .68rem; padding: 1px 7px; border-radius: 999px;
  background: rgba(183,134,42,.18); color: var(--amber-300); border: 1px solid var(--line-amber); }

.pmain { padding: clamp(20px, 3vw, 34px); background: var(--ink-800); min-width: 0; }
.phead { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.phead h2 { margin: 0; font-size: clamp(1.3rem, 1.05rem + 1vw, 1.9rem); }
.phead .sub { color: var(--muted); font-size: .9rem; }
.phead .right { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 24px; }
.tile { background: linear-gradient(180deg, var(--ink-600), var(--ink-700)); border: 1px solid var(--line);
  border-radius: var(--r); padding: 15px 17px; }
.tile .k { font-size: .7rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.tile .v { font-size: 1.65rem; font-weight: 800; color: var(--blue-300); line-height: 1.2; margin: 2px 0; }
.tile.amber .v { color: var(--amber-300); }
.tile .s { font-size: .78rem; color: var(--dim); }

.panel { background: var(--ink-600); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 20px; overflow: hidden; }
.panel > h3 { margin: 0; padding: 14px 18px; font-size: .95rem; border-bottom: 1px solid var(--line);
  background: #0b0f16; color: var(--amber-300); letter-spacing: .04em; }
.panel .pbody { padding: 18px; }

.perm { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 8px; }
.perm label { display: flex; align-items: center; gap: 8px; font-size: .87rem; color: var(--fg-soft);
  padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: #0b0f16; }
.perm input { accent-color: var(--blue-500); }

.audit { list-style: none; margin: 0; padding: 0; font-size: .87rem; }
.audit li { padding: 9px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; }
.audit li:last-child { border-bottom: 0; }
.audit .t { color: var(--dim); font-family: var(--mono); font-size: .78rem; flex: 0 0 132px; }

.login-wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 54px); align-items: center;
  padding: clamp(34px, 5vw, 70px) 0; }
.login-card { background: linear-gradient(180deg, var(--ink-600), var(--ink-850)); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(24px, 3vw, 34px); box-shadow: var(--shadow-lg); }
.demo-btn { display: block; width: 100%; text-align: left; padding: 10px 13px; margin-bottom: 7px;
  background: #0b0f16; border: 1px solid var(--line); border-radius: 9px; color: var(--fg-soft);
  font: inherit; font-size: .84rem; cursor: pointer; transition: border-color .16s, background .16s; }
.demo-btn:hover { border-color: var(--line-blue); background: rgba(74,158,255,.07); }
.demo-btn b { color: var(--amber-300); }
.demo-btn .em { color: var(--muted); font-family: var(--mono); font-size: .78rem; }

.err { display: none; margin-bottom: 14px; padding: 11px 14px; border-radius: var(--r-sm);
  border-left: 3px solid #d93025; background: rgba(217, 48, 37, .12); color: #f2a49d; font-size: .89rem; }
.err.on { display: block; }

@media (max-width: 900px) {
  .portal { grid-template-columns: 1fr; }
  .pside { border-right: 0; border-bottom: 1px solid var(--line); flex-direction: row; flex-wrap: wrap; padding: 14px; }
  .pside .who { width: 100%; margin-bottom: 8px; }
  .pnav { width: auto; }
  .login-wrap { grid-template-columns: 1fr; }
}

/* a .todo on a block element should only underline its own text */
div.todo, li.todo { display: inline-block; }

/* ── scrollbars in the site's own colours (a pale grey bar on a near-black
      page reads as a fault; this keeps them part of the design) ─────────── */
* { scrollbar-width: thin; scrollbar-color: #253141 transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0b0f16; }
::-webkit-scrollbar-thumb { background: #253141; border-radius: 6px; border: 2px solid #0b0f16; }
::-webkit-scrollbar-thumb:hover { background: #33455e; }
::-webkit-scrollbar-corner { background: #0b0f16; }

/* ── narrow phones: the strapline under NIKSA wraps onto two lines and pushes
      the name out of the bar, so below 640px the mark and the name carry the
      brand on their own ─────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .brand-sub { display: none; }
  .brand-name { white-space: nowrap; font-size: 1.1rem; }
  .brand img, .brand svg { width: 34px; height: 34px; }
  .site-foot .brand-sub { display: block; }        /* the footer has the room */
}

/* ============================================================================
   v0.2 — THE MODERN / 3D LAYER  (2026-10-19)
   Sits on top of everything above. The 3D itself is drawn by
   assets/js/scene3d.js; this is the type, the glass, the depth and the stage.
   ========================================================================== */

body { font-feature-settings: "cv11", "ss03"; letter-spacing: -0.006em; }
h1 { font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; }
h2 { font-weight: 760; letter-spacing: -0.032em; line-height: 1.08; }
h3 { font-weight: 700; letter-spacing: -0.016em; }

/* ── eyebrow → a small lit pill ───────────────────────────────────────── */
.eyebrow {
  padding: 6px 13px 6px 11px; border-radius: 999px; font-size: .7rem; letter-spacing: .14em;
  border: 1px solid var(--line-amber); background: rgba(183, 134, 42, .08);
}
.eyebrow::before { width: 6px; height: 6px; border-radius: 50%; background: var(--amber-300); box-shadow: 0 0 10px var(--amber-300); }
.eyebrow.blue { border-color: var(--line-blue); background: rgba(74, 158, 255, .08); }
.eyebrow.blue::before { background: var(--blue-400); box-shadow: 0 0 10px var(--blue-400); }

/* ── buttons with a lit top edge ──────────────────────────────────────── */
.btn-primary { box-shadow: inset 0 1px 0 rgba(255,255,255,.22), var(--glow-blue); }
.btn-amber   { box-shadow: inset 0 1px 0 rgba(255,255,255,.35), var(--glow-amber); }
.btn-ghost   { box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }

/* ── glass cards with a gradient edge and a 3D tilt (site.js) ─────────── */
.card, .frame {
  background: linear-gradient(180deg, rgba(22, 32, 46, .78), rgba(10, 15, 23, .86));
  border-color: rgba(140, 175, 215, .11);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 1px 2px rgba(0,0,0,.4);
  transform-style: preserve-3d;
  transition: opacity .7s var(--ease), transform .45s var(--ease), border-color .25s, box-shadow .35s;
}
.card::after, .frame::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(74,158,255,.55), transparent 38%, transparent 62%, rgba(224,163,58,.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .35s;
}
.frame { position: relative; }
.card:hover::after, .frame:hover::after { opacity: 1; }
.card:hover, .frame:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 26px 60px rgba(0,0,0,.55); }
.is-tilting { transition: opacity .7s, transform .12s linear, border-color .25s, box-shadow .35s; }

.card-icon {
  width: 50px; height: 50px; border-radius: 14px;
  background: linear-gradient(150deg, #2b8fd8, #0e4f80 70%);
  border: 1px solid rgba(124,196,245,.45); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -6px 12px rgba(0,0,0,.25), 0 10px 24px rgba(17,119,187,.35);
  transform: translateZ(30px);
}
.card.amber .card-icon {
  background: linear-gradient(150deg, #f0b44a, #8a5e14 72%);
  border-color: rgba(255,204,102,.5); color: #1a1206;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 -6px 12px rgba(0,0,0,.22), 0 10px 24px rgba(183,134,42,.32);
}
.card h3 { transform: translateZ(18px); }

/* ── the 3D hero ──────────────────────────────────────────────────────── */
.scene3d-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; z-index: 0; pointer-events: none;
}
/* on the home page the canvas is pinned to the viewport so the logo can travel
   down the page with the reader (scene3d.js moves it between data-logo-stop
   sections); z-index 2 keeps it under the header (100) and the hero callouts (3) */
.scene3d-canvas.travel { position: fixed; z-index: 2; }
.hero-3d {
  min-height: min(92vh, 920px); display: flex; align-items: center;
  padding: clamp(36px, 5vw, 70px) 0 clamp(80px, 9vw, 120px);
}
.hero-3d > .wrap { width: min(1320px, calc(100% - 48px)); }
.hero-3d .hero-veil {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5,7,11,.88) 0%, rgba(5,7,11,.55) 38%, rgba(5,7,11,0) 62%),
    radial-gradient(760px 520px at 4% 96%, rgba(183, 134, 42, .14), transparent 60%),
    linear-gradient(180deg, rgba(5,7,11,0) 70%, var(--ink-800) 100%);
}
.hero-3d .hero-grid { grid-template-columns: 1.05fr .95fr; }
.hero-3d h1 { font-size: clamp(2.6rem, 1.3rem + 4vw, 4.9rem); }
.hero-copy { max-width: 720px; }

.stage3d { position: relative; min-height: clamp(400px, 44vw, 620px); }
.stage-fallback { display: none; }
.no3d .stage-fallback {
  display: block; position: absolute; inset: 0; margin: auto;
  width: min(68%, 360px); height: auto; filter: drop-shadow(0 30px 60px rgba(17,119,187,.45));
}

/* glass callouts floating beside the 3D logo */
.tag3d {
  position: absolute; z-index: 3; display: inline-flex; gap: 8px; align-items: baseline;
  padding: 9px 14px; border-radius: 12px; white-space: nowrap;
  font-family: var(--mono); font-size: .76rem; color: var(--fg-soft);
  background: rgba(12, 18, 27, .62); border: 1px solid var(--line-blue);
  backdrop-filter: blur(10px) saturate(140%); -webkit-backdrop-filter: blur(10px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 14px 34px rgba(0,0,0,.5);
  animation: tagFloat 6s ease-in-out infinite;
}
.tag3d b { color: var(--blue-300); font-weight: 700; }
.tag3d.amber { border-color: var(--line-amber); }
.tag3d.amber b { color: var(--amber-300); }
.tag3d.t1 { top: 10%; left: 0; }
.tag3d.t2 { top: 50%; right: -2%; animation-delay: -2s; }
.tag3d.t3 { bottom: 6%; left: 10%; animation-delay: -4s; }
.tag3d.t3 b { color: var(--fg); }
@keyframes tagFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.no3d .tag3d { display: none; }

.scroll-cue {
  position: absolute; z-index: 3; left: 50%; bottom: 26px; transform: translateX(-50%);
  width: 26px; height: 42px; border-radius: 14px; border: 1.5px solid rgba(186,198,212,.35);
}
.scroll-cue span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px;
  background: var(--amber-300); animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ── the live estimate, set in perspective ─────────────────────────────── */
.sect-live {
  background:
    radial-gradient(900px 520px at 88% 30%, rgba(17,119,187,.16), transparent 62%),
    var(--ink-800);
}
.est-stage { perspective: 1600px; }
.est-panel.tilt {
  transform: rotateY(-11deg) rotateX(5deg) rotateZ(.4deg);
  transform-origin: 60% 50%;
  box-shadow: 0 50px 100px rgba(0,0,0,.6), 0 0 0 1px rgba(74,158,255,.12), -30px 30px 80px rgba(17,119,187,.18);
  transition: transform .8s var(--ease), box-shadow .8s var(--ease);
}
.est-stage:hover .est-panel.tilt { transform: none; }

/* ── stats band with hairline dividers ────────────────────────────────── */
.stat .n { font-size: clamp(2.2rem, 1.3rem + 2.4vw, 3.5rem); letter-spacing: -.045em; }
@media (min-width: 1081px) {
  .g-4 > .stat:not(:first-child) { border-left: 1px solid var(--line); }
}

/* deep sections get the faint setting-out grid too */
.sect-deep::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(120,165,215,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,165,215,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(70% 90% at 50% 50%, #000, transparent 80%);
          mask-image: radial-gradient(70% 90% at 50% 50%, #000, transparent 80%);
}
.sect-deep > .wrap { position: relative; }

/* ── inner pages: the smaller 3D logo on the right of the header ──────── */
.page-hero[data-scene3d] { min-height: 340px; display: flex; align-items: center; }
.page-hero[data-scene3d] > .wrap { width: min(var(--wrap), calc(100% - 48px)); }
.page-hero[data-scene3d] .lead { max-width: 58ch; }
.page-hero .stage3d {
  position: absolute; z-index: 1; min-height: 0;
  right: max(24px, calc((100% - var(--wrap)) / 2)); top: 50%; transform: translateY(-50%);
  width: clamp(220px, 22vw, 320px); height: clamp(220px, 22vw, 320px);
}
@media (max-width: 1100px) { .page-hero .stage3d { display: none; } }

/* ── responsive ───────────────────────────────────────────────────────── */
@media (max-width: 920px) {
  .hero-3d { min-height: 0; }
  .hero-3d .hero-grid { grid-template-columns: 1fr; }
  .hero-3d .hero-veil {
    background: linear-gradient(180deg, rgba(5,7,11,.82) 0%, rgba(5,7,11,.5) 55%, rgba(5,7,11,.1) 75%, var(--ink-800) 100%);
  }
  .stage3d { min-height: 340px; }
  .tag3d.t2 { right: 0; }
  .est-panel.tilt { transform: none; }
}
@media (max-width: 640px) {
  .stage3d { min-height: 300px; }
  .tag3d { font-size: .7rem; padding: 7px 11px; }
  .tag3d.t1 { top: 4%; }
  .scroll-cue { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .est-panel.tilt { transform: none; }
}
