/* ==========================================================================
   GTDataWorks — layered glass primitives and responsive components.
   The final GLASSWORKS / DIMENSIONAL EDITION layer at the end of this file
   sets the current graphite + warm gold palette and geometric hero styling.
   Legacy colors and components remain here for page compatibility.
   Depth is shown with actual plane offsets, perspective, edges and shadows.
   ========================================================================== */

/* Self-hosted brand fonts (SIL Open Font License; see assets/fonts/LICENSE-*.txt) */
@font-face { font-family: 'Cinzel'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/cinzel-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cinzel'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/cinzel-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cinzel'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/cinzel-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/space-grotesk-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/space-grotesk-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/space-grotesk-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); }

:root {
  /* base */
  --ink: #07070c;
  --ink-2: #0d0d15;
  --text: #efeaf7;
  --muted: #aaa5bf;
  --faint: #938ea9; /* 6.4:1 on --ink, 4.6:1 over the purple orb; the earlier #716c86 was 3.9:1 on plain ink */

  /* brand light sources */
  --pink: #ff2e9a;
  --purple: #7a3cff;
  --gold: #f2c14e;
  --cyan: #2fe3ff;

  /* glass */
  --glass-fill: linear-gradient(160deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.035) 38%, rgba(255,255,255,.06) 100%);
  --glass-fill-soft: linear-gradient(160deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,.02) 45%, rgba(255,255,255,.04) 100%);
  --glass-fill-dark: linear-gradient(160deg, rgba(0,0,0,.34), rgba(0,0,0,.18));
  /* edge gradients paint the 1px border, but they also show through the translucent fill, so the bright
     stops stay within the first ~10% of the diagonal: a catch of light on the corner, not a wash over the text */
  --edge: linear-gradient(135deg, rgba(255,255,255,.45) 0%, rgba(255,255,255,.10) 9%, rgba(255,255,255,.06) 70%, rgba(255,255,255,.06) 91%, rgba(255,255,255,.24) 100%);
  --edge-soft: linear-gradient(135deg, rgba(255,255,255,.24) 0%, rgba(255,255,255,.06) 10%, rgba(255,255,255,.06) 90%, rgba(255,255,255,.14) 100%);
  --edge-flat: rgba(255,255,255,.10);
  --blur: 16px;
  --shadow-near: 0 40px 80px -36px rgba(0,0,0,.9), 0 12px 30px -18px rgba(0,0,0,.7);
  --shadow-far: 0 20px 50px -30px rgba(0,0,0,.8);

  /* shape — two radii only: slabs and UI */
  --r-slab: 22px;
  --r-ui: 8px;

  /* type */
  --font-display: 'Cinzel', 'Times New Roman', serif;
  --font-body: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --measure: 66ch;

  /* layout */
  --maxw: 1180px;
  --gutter: clamp(16px, 4vw, 48px);
  --nav-h: 72px;
  --space-section: clamp(72px, 10vw, 136px);

  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--ink);
  background-image:
    radial-gradient(1200px 700px at 50% -10%, rgba(122,60,255,.10), transparent 60%),
    radial-gradient(900px 600px at 100% 100%, rgba(47,227,255,.05), transparent 60%);
  color: var(--text);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  padding-top: var(--nav-h);
  isolation: isolate;
  position: relative;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--cyan); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li + li { margin-top: .35em; }
hr { border: 0; border-top: 1px solid var(--edge-flat); margin: 2.5rem 0; }
code, kbd, pre, .mono, .num { font-family: var(--font-mono); font-size: .92em; }
.num { font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
pre {
  background: var(--glass-fill-dark);
  border: 1px solid var(--edge-flat);
  border-radius: var(--r-ui);
  padding: 16px 18px;
  overflow: auto;
  line-height: 1.5;
}
strong { font-weight: 600; }
small, .small { font-size: 14px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.measure { max-width: var(--measure); }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 3px; }
::selection { background: rgba(255,46,154,.45); color: #fff; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 14px; background: var(--gold); color: #1b1400; border-radius: var(--r-ui); font-weight: 600;
}
.skip:focus { top: 12px; }
#main:focus { outline: none; } /* focus target of the skip link; the ring would wrap the whole page */

/* --------------------------------------------------------------------------
   Type scale (ratio ≈ 1.25; Cinzel for display only)
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.12; font-weight: 600; text-wrap: balance; }
h1, h2 { font-family: var(--font-display); letter-spacing: .012em; }
h1 { font-size: clamp(34px, 5vw, 62px); line-height: 1.06; }
h2 { font-size: clamp(27px, 3.3vw, 40px); }
h3 { font-family: var(--font-body); font-size: clamp(20px, 2vw, 23px); letter-spacing: -.005em; }
h4 { font-family: var(--font-body); font-size: 16px; letter-spacing: .01em; color: var(--muted); font-weight: 500; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--muted); max-width: var(--measure); text-wrap: pretty; }
.display-sm { font-family: var(--font-display); font-size: clamp(20px, 2.2vw, 26px); font-weight: 600; letter-spacing: .02em; }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { margin-bottom: .35em; }
.section-head .lede { margin: 0; }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 860px; }
.section { padding-block: var(--space-section); position: relative; }
/* local lights and glows may spill past the viewport edge; clip horizontally without creating a scroll container */
.section, .hero, .page-hero { overflow-x: clip; }
.section-tight { padding-block: clamp(40px, 6vw, 80px); }
.section + .section { padding-top: 0; }
/* the footer carries its own top margin, so the last section gives back most of its bottom padding */
main > .section:last-child { padding-bottom: clamp(24px, 4vw, 48px); }
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-sidebar { grid-template-columns: minmax(0, 1.65fr) minmax(280px, .95fr); align-items: start; }
/* headings inside the narrower two-column layout: one size on every page that uses it */
.grid-sidebar h2 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: .6em; }
/* the sidebar's own headings are labels, not section headings */
.grid-sidebar > aside h3 { font-family: var(--font-body); font-size: 14px; font-weight: 500; letter-spacing: .02em; color: var(--muted); margin: 24px 0 10px; }
.grid-sidebar > aside h3:first-child { margin-top: 0; }
.stack-v > * + * { margin-top: var(--gap, 20px); }
.cluster { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.row-between { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.sticky { position: sticky; top: calc(var(--nav-h) + 20px); }

/* --------------------------------------------------------------------------
   Light sources (fixed, behind everything, refracted by the glass above)
   -------------------------------------------------------------------------- */
/* The lights layer spans the whole document (body is position:relative), so every
   part of a long page has light behind its glass. Orbs are placed in viewport
   heights down the page; site.js lets them lag the scroll a little (they sit further back). */
.lights { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(70px); opacity: .55;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  background: radial-gradient(circle at 50% 50%, var(--orb) 0%, var(--orb-mid) 35%, transparent 70%);
}
.orb-purple { --orb: var(--purple); --orb-mid: rgba(122,60,255,.4); width: 56vw; height: 56vw; left: -14vw; top: -18vw; }
.orb-pink   { --orb: var(--pink);   --orb-mid: rgba(255,46,154,.35); width: 44vw; height: 44vw; right: -16vw; top: 6vw; opacity: .42; }
.orb-gold   { --orb: var(--gold);   --orb-mid: rgba(242,193,78,.3);  width: 36vw; height: 36vw; left: 28vw; top: 78vh; opacity: .30; }
.orb-cyan   { --orb: var(--cyan);   --orb-mid: rgba(47,227,255,.3);  width: 40vw; height: 40vw; right: -8vw; top: 140vh; opacity: .34; }
.orb-purple-2 { --orb: var(--purple); --orb-mid: rgba(122,60,255,.4); width: 50vw; height: 50vw; left: -16vw; top: 215vh; opacity: .5; }
.orb-pink-2   { --orb: var(--pink);   --orb-mid: rgba(255,46,154,.35); width: 38vw; height: 38vw; right: -10vw; top: 290vh; opacity: .36; }
.orb-gold-2   { --orb: var(--gold);   --orb-mid: rgba(242,193,78,.3);  width: 34vw; height: 34vw; left: 20vw; top: 365vh; opacity: .28; }
.orb-cyan-2   { --orb: var(--cyan);   --orb-mid: rgba(47,227,255,.3);  width: 40vw; height: 40vw; right: -6vw; top: 440vh; opacity: .3; }
.orb-purple-3 { --orb: var(--purple); --orb-mid: rgba(122,60,255,.4); width: 48vw; height: 48vw; left: -12vw; top: 520vh; opacity: .45; }
.orb-pink-3   { --orb: var(--pink);   --orb-mid: rgba(255,46,154,.35); width: 36vw; height: 36vw; right: -12vw; top: 600vh; opacity: .34; }

/* Local light: place inside a .section (position:relative) to put a glow behind one panel */
.light-local {
  position: absolute; width: 520px; height: 520px; border-radius: 50%;
  filter: blur(80px); opacity: .5; pointer-events: none; z-index: -1;
}
/* gold and cyan are 3–6× more luminous than pink and purple, so they run dimmer to read as the same brightness */
.light-local.is-gold  { background: radial-gradient(circle, rgba(242,193,78,.8), transparent 65%); opacity: .4; }
.light-local.is-pink  { background: radial-gradient(circle, rgba(255,46,154,.8), transparent 65%); }
.light-local.is-cyan  { background: radial-gradient(circle, rgba(47,227,255,.8), transparent 65%); opacity: .4; }
.light-local.is-purple{ background: radial-gradient(circle, rgba(122,60,255,.9), transparent 65%); }

/* --------------------------------------------------------------------------
   Glass primitives
   .glass        — a sheet of glass (gradient fill, gradient edge, specular, blur)
   .glass-soft   — quieter sheet for secondary content
   .glass-dark   — tinted inset (code, charts, diagrams, form fields)
   .stack        — 2.5D: ghost sheets offset behind the glass (depth-1..3)
   .slab         — large padded panel;  .tile — compact padded panel
   -------------------------------------------------------------------------- */
.glass, .glass-soft, .glass-dark {
  position: relative;
  border-radius: var(--r-slab);
  border: 1px solid transparent;
  background-clip: padding-box, border-box;
  background-origin: padding-box, border-box;
}
.glass {
  background-image: var(--glass-fill), var(--edge);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(150%);
  backdrop-filter: blur(var(--blur)) saturate(150%);
  box-shadow: var(--shadow-near), inset 0 1px 0 rgba(255,255,255,.22), inset 0 -1px 0 rgba(255,255,255,.04);
}
.glass-soft {
  background-image: var(--glass-fill-soft), var(--edge-soft);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  backdrop-filter: blur(12px) saturate(130%);
  box-shadow: var(--shadow-far), inset 0 1px 0 rgba(255,255,255,.14);
}
.glass-dark {
  background-image: var(--glass-fill-dark), linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.04) 50%, rgba(255,255,255,.10));
  border-radius: var(--r-ui);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), inset 0 10px 30px rgba(0,0,0,.25);
}
/* specular sheen along the top of a glass sheet */
.glass::before, .glass-soft::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,0) 22%);
  opacity: .9;
}
.glass > *, .glass-soft > * { position: relative; }
/* Quiet text on glass sits over fill, sheen and a light, so it is one step brighter there than on
   bare ink: every rule that reads --muted / --faint picks this up inside a glass panel. */
.glass, .glass-soft { --muted: #ccc7dd; --faint: #b9b4cc; }

.slab { padding: clamp(26px, 3.4vw, 44px); }
.tile { padding: clamp(18px, 2.2vw, 26px); }
.tile h3, .slab h3 { margin-top: 0; }

/* 2.5D stack: ghost sheets step back and down-right, dimmer with distance.
   .stack is a WRAPPER around the glass sheet, never the same element:
     <div class="stack depth-3 lit lit-gold"><article class="glass slab">…</article></div>
   (pseudo-elements of the glass itself would paint above its own face). */
.stack { position: relative; isolation: isolate; border-radius: var(--r-slab); display: grid; }
.stack > .glass, .stack > .glass-soft { z-index: 1; }
.stack::before, .stack::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  border-radius: var(--r-slab);
  border: 1px solid rgba(255,255,255,.13);
  background: linear-gradient(160deg, rgba(255,255,255,.04), rgba(255,255,255,.014));
  transform: translate(var(--sx, 14px), var(--sy, 14px)) scale(.988);
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.stack::after {
  transform: translate(calc(var(--sx, 14px) * 2), calc(var(--sy, 14px) * 2)) scale(.974);
  border-color: rgba(255,255,255,.08);
  opacity: .8;
}
.stack.depth-1::after { display: none; }
.stack.depth-3 { --sx: 18px; --sy: 20px; }
.stack.lift::before, .stack.lift::after { transform: translate(var(--sx, 14px), var(--sy, 14px)) scale(.988); }
.stack.lift:hover::after { transform: translate(calc(var(--sx, 14px) * 2.3), calc(var(--sy, 14px) * 2.3)) scale(.97); }
.stack.lift:hover::before { transform: translate(calc(var(--sx, 14px) * 1.2), calc(var(--sy, 14px) * 1.2)) scale(.986); }

/* a glass sheet with a coloured light pinned behind it */
.lit { position: relative; }
.lit::after {
  content: ""; position: absolute; z-index: -2; pointer-events: none;
  width: 60%; height: 60%; left: -10%; top: -20%; border-radius: 50%;
  filter: blur(60px); opacity: var(--lit-opacity, .55);
  background: radial-gradient(circle, var(--lit-color, var(--purple)), transparent 70%);
}
/* a page may dim one light further with style="--lit-opacity:.3" on the .stack */
/* secondary slabs in the two-column layout sit beside a lit sidebar and carry quiet text, so their lights run low */
.grid-sidebar .stack.lit { --lit-opacity: .28; }
.lit-gold { --lit-color: var(--gold); --lit-opacity: .4; }
.lit-pink { --lit-color: var(--pink); }
.lit-cyan { --lit-color: var(--cyan); --lit-opacity: .4; }
.lit-purple { --lit-color: var(--purple); }

/* perspective tilt (pointer-driven via site.js; CSS vars --rx/--ry) */
.tilt {
  transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform .35s ease-out;
  will-change: transform;
}

/* hairline gold seal — used sparingly as the "hallmark" on key panels */
.seal {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold); font-weight: 500; font-size: 14px;
}
.seal::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 14px var(--gold); }

/* --------------------------------------------------------------------------
   Ledger — continuous glass sheet of rows (radius 0 on rows: they are one sheet)
   -------------------------------------------------------------------------- */
.ledger {
  border-radius: var(--r-slab); overflow: hidden;
  border: 1px solid var(--edge-flat);
  background: rgba(255,255,255,.028);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: var(--shadow-far), inset 0 1px 0 rgba(255,255,255,.12);
}
.ledger-row {
  display: grid; gap: 18px; align-items: baseline;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.6fr) minmax(0, .9fr) auto;
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,.07);
  transition: background .2s ease;
}
.ledger-row:first-child { border-top: 0; }
.ledger-row:hover { background: rgba(255,255,255,.035); }
.ledger-head { font-size: 13px; color: var(--faint); padding-block: 12px; }
.ledger-row h3 { font-size: 18px; margin: 0; }
.ledger-row .num { color: var(--gold); }
/* the last column is fixed-width, so a row that ends in a status label keeps the same column
   edges as a row that ends in a short link; cells align on their right edge */
@media (min-width: 901px) {
  .ledger-row { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.8fr) minmax(0, .9fr) 160px; }
  .ledger-row > :last-child { justify-self: end; text-align: right; }
}

/* --------------------------------------------------------------------------
   Navigation — fixed glass bar
   -------------------------------------------------------------------------- */
.site-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  background: linear-gradient(180deg, rgba(7,7,12,.72), rgba(7,7,12,.55));
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.03);
}
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: .04em; }
.nav-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.nav-menu li { margin: 0; }
.nav-menu a:not(.btn) { display: inline-block; padding: 10px 14px; border-radius: var(--r-ui); color: var(--muted); font-weight: 500; font-size: 15px; }
.nav-menu a:not(.btn):hover { color: var(--text); text-decoration: none; background: rgba(255,255,255,.05); }
.nav-menu a:not(.btn)[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--gold); border-radius: var(--r-ui) var(--r-ui) 2px 2px; }
.nav-cta { margin-left: 10px; }
.nav-toggle { display: none; appearance: none; background: transparent; border: 1px solid var(--edge-flat); border-radius: var(--r-ui); width: 44px; height: 40px; cursor: pointer; position: relative; }
.nav-toggle-bar { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s ease, top .25s ease; }
.nav-toggle-bar:nth-child(1) { top: 14px; }
.nav-toggle-bar:nth-child(2) { top: 22px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { top: 18px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { top: 18px; transform: rotate(-45deg); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: var(--r-ui);
  font: 500 15px/1 var(--font-body); letter-spacing: .005em;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-lg { padding: 17px 28px; font-size: 16px; }
.btn-primary {
  color: #22040f;
  background: linear-gradient(135deg, #ff5bb0 0%, var(--pink) 55%, #e3157f 100%);
  box-shadow: 0 14px 34px -14px rgba(255,46,154,.75), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn-primary:hover { box-shadow: 0 18px 40px -14px rgba(255,46,154,.9), inset 0 1px 0 rgba(255,255,255,.4); }
.btn-glass {
  color: var(--text);
  background-image: var(--glass-fill), var(--edge-soft);
  background-clip: padding-box, border-box; background-origin: padding-box, border-box;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-glass:hover { background-image: linear-gradient(160deg, rgba(255,255,255,.14), rgba(255,255,255,.06)), var(--edge); }
.btn-gold { color: #1b1400; background: linear-gradient(135deg, #ffd978, var(--gold) 60%, #d9a52e); box-shadow: 0 14px 34px -14px rgba(242,193,78,.6), inset 0 1px 0 rgba(255,255,255,.45); }
.btn-ghost { color: var(--text); border-color: var(--edge-flat); background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.05); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.link-quiet { color: var(--text); border-bottom: 1px solid rgba(255,255,255,.22); }
.link-quiet:hover { border-color: var(--gold); text-decoration: none; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { padding-block: clamp(48px, 8vw, 110px) clamp(56px, 8vw, 110px); position: relative; }
.hero-slab { padding: clamp(30px, 4.5vw, 64px); }
.hero-slab h1 { max-width: 20ch; }
.hero-slab .lede { margin-top: 8px; }
.hero-actions { margin-top: clamp(22px, 3vw, 34px); display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { margin-top: clamp(26px, 3vw, 40px); padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; gap: 28px 40px; flex-wrap: wrap; color: var(--muted); font-size: 15px; }
.hero-meta .num { color: var(--text); font-size: 20px; display: block; }
.page-hero { padding-block: clamp(40px, 6vw, 80px) clamp(28px, 4vw, 48px); }
.page-hero + .section { padding-top: clamp(24px, 4vw, 48px); }
.page-hero h1 { max-width: 22ch; }
.page-hero .lede { margin-top: 10px; }

@keyframes settle {
  from { opacity: 0; transform: perspective(1400px) rotateX(9deg) translateY(28px); }
  to   { opacity: 1; transform: perspective(1400px) rotateX(0deg) translateY(0); }
}
.hero-slab.tilt { animation: settle .95s cubic-bezier(.2,.75,.2,1) backwards; }

/* --------------------------------------------------------------------------
   Lists, chips, prices, notes
   -------------------------------------------------------------------------- */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 26px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--gold); box-shadow: inset 0 0 0 3px var(--ink), inset 0 0 0 7px var(--gold); opacity: .95; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { margin: 0; }
.chip {
  display: inline-block; padding: 6px 11px; border-radius: 6px; font-size: 13.5px; color: var(--muted);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09);
}

.price { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--gold); font-weight: 500; }
.price-lg { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.02em; }
.tier { padding: 22px 24px; }
.tier .row-between { margin-bottom: 8px; }
.tier h3 { margin: 0; font-size: 18px; }
.tier p { margin: 0; color: #d3cee1; font-size: 15px; }
.tier-featured { box-shadow: var(--shadow-near), inset 0 1px 0 rgba(255,255,255,.22), 0 0 0 1px rgba(242,193,78,.35); }

.note {
  padding: 16px 20px 16px 22px; border-radius: var(--r-ui);
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
  border-left: 3px solid var(--gold); color: var(--muted); font-size: 15px;
}
.note-cyan { border-left-color: var(--cyan); }
.note-pink { border-left-color: var(--pink); }
.note p:last-child { margin: 0; }

dl.facts { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; }
dl.facts dt { color: var(--muted); font-size: 14px; }
dl.facts dd { margin: 0; }

/* stat: a number with its label underneath (not a hero default — use where numbers are the content) */
.stat .num { font-size: clamp(26px, 3vw, 38px); color: var(--text); display: block; line-height: 1.05; }
.stat .stat-label { color: var(--muted); font-size: 14px; margin-top: 6px; display: block; }

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-slab); }
table.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 14px 18px; border-top: 1px solid rgba(255,255,255,.07); vertical-align: top; }
.table thead th { border-top: 0; color: var(--faint); font-weight: 500; font-size: 13.5px; background: rgba(255,255,255,.02); }
.table td.num, .table th.num { text-align: right; }
.table tbody tr:hover { background: rgba(255,255,255,.03); }

/* --------------------------------------------------------------------------
   Diagrams & charts (inline SVG on dark glass)
   -------------------------------------------------------------------------- */
.diagram, .chart { padding: clamp(14px, 2vw, 22px); }
.diagram svg, .chart svg { width: 100%; height: auto; overflow: visible; }
.diagram text, .chart text { fill: var(--text); font-family: var(--font-body); font-size: 13px; }
.chart .axis text, .chart .tick text, .diagram .mono, .chart .mono { font-family: var(--font-mono); fill: var(--muted); font-size: 12px; }
.chart .grid line { stroke: rgba(255,255,255,.07); }
.chart .axis line, .chart .axis path { stroke: rgba(255,255,255,.18); }
.svg-node { fill: rgba(255,255,255,.06); stroke: rgba(255,255,255,.28); stroke-width: 1; }
.svg-node-accent { fill: rgba(242,193,78,.12); stroke: var(--gold); }
.svg-node-cyan { fill: rgba(47,227,255,.10); stroke: var(--cyan); }
.svg-node-pink { fill: rgba(255,46,154,.10); stroke: var(--pink); }
.svg-edge { stroke: rgba(255,255,255,.35); stroke-width: 1.4; fill: none; }
.svg-edge-accent { stroke: var(--gold); }
.chart-caption { color: var(--muted); font-size: 14px; margin-top: 12px; }
.legend { display: flex; flex-wrap: wrap; gap: 14px 22px; font-size: 14px; color: var(--muted); margin-top: 12px; }
.legend-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.field { display: block; margin-bottom: 18px; }
.field > span, .field-label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 7px; }
.input, textarea.input, select.input {
  width: 100%; color: var(--text); font: 400 16px/1.4 var(--font-body);
  padding: 13px 14px; border-radius: var(--r-ui);
  background: linear-gradient(160deg, rgba(0,0,0,.35), rgba(0,0,0,.2));
  border: 1px solid rgba(255,255,255,.13);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), inset 0 8px 20px rgba(0,0,0,.2);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.input::placeholder { color: var(--faint); }
.input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(47,227,255,.18), inset 0 1px 0 rgba(255,255,255,.05); }
textarea.input { min-height: 130px; resize: vertical; }
select.input { appearance: none; color-scheme: light; background-image: linear-gradient(160deg, rgba(0,0,0,.35), rgba(0,0,0,.2)), url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'><path d='M3 5l4 4 4-4' fill='none' stroke='%23aaa5bf' stroke-width='1.6'/></svg>"); background-repeat: no-repeat; background-position: 0 0, right 14px center; background-size: auto, 14px; padding-right: 40px; }
/* Native popups may paint a light OS menu despite the dark page. Give every
   option an explicit high-contrast pair instead of inheriting the input text. */
select.input option { color: #172126; background-color: #f5f6f3; }
.choice { display: flex; flex-wrap: wrap; gap: 10px; }
.choice label {
  position: relative; cursor: pointer; padding: 11px 15px; border-radius: var(--r-ui);
  background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.11); color: var(--muted); font-size: 15px;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice label:has(input:checked) { color: var(--text); border-color: var(--gold); background: rgba(242,193,78,.10); }
.choice label:has(input:focus-visible) { outline: 2px solid var(--cyan); outline-offset: 2px; }
.field-error { color: #ff7ab8; font-size: 14px; margin-top: 6px; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 24px; }

/* stepped progress — a real sequence, so numbering is legitimate here */
.steps { list-style: none; padding: 0; margin: 0 0 26px; display: flex; gap: 8px; }
.steps li { flex: 1; height: 4px; margin: 0; border-radius: 2px; background: rgba(255,255,255,.1); position: relative; }
.steps li.is-done { background: var(--gold); }
.steps li.is-current { background: linear-gradient(90deg, var(--gold), rgba(242,193,78,.25)); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { margin-top: var(--space-section); border-top: 1px solid rgba(255,255,255,.08); background: linear-gradient(180deg, rgba(255,255,255,.02), transparent); padding-block: 56px 32px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand p { max-width: 36ch; margin-top: 16px; }
/* footer column titles are h2 so the document outline does not jump from h2 to h4; they keep the quiet h4 look */
.footer-col h2 { font-family: var(--font-body); font-size: 16px; letter-spacing: .01em; color: var(--muted); font-weight: 500; margin: 0 0 14px; line-height: 1.12; text-wrap: balance; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li + li { margin-top: 10px; }
.footer-col a, .footer-brand a:not(.brand) { color: var(--muted); }
.footer-col a:hover, .footer-brand a:not(.brand):hover { color: var(--text); }
.footer-legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.06); }
.footer-legal p { margin: 0; max-width: 90ch; }

/* --------------------------------------------------------------------------
   Page-level helpers
   -------------------------------------------------------------------------- */
.cta-band { text-align: left; }
.cta-band h2 { max-width: 22ch; }
.breadcrumb { font-size: 14px; color: var(--faint); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb span { margin: 0 8px; opacity: .6; }
.prose { max-width: var(--measure); }
.prose h2 { font-family: var(--font-body); font-size: 24px; margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: #d7d2e6; }
.anchor-offset { scroll-margin-top: calc(var(--nav-h) + 20px); }
/* declared after the glass primitives so a glass sidebar can stick (they set position: relative) */
.sticky, .glass.sticky, .glass-soft.sticky { position: sticky; top: calc(var(--nav-h) + 20px); }
.badge-live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--cyan); }
.badge-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-sidebar { grid-template-columns: 1fr; }
  .sticky, .glass.sticky, .glass-soft.sticky { position: static; }
  .ledger-row { grid-template-columns: 1fr auto; }
  .ledger-row > :nth-child(2) { grid-column: 1 / -1; order: 2; color: var(--muted); font-size: 15px; }
  .ledger-row > :nth-child(4) { grid-column: 1 / -1; order: 3; }
  .ledger-head { display: none; }
}
@media (max-width: 760px) {
  :root { --nav-h: 64px; --blur: 10px; }
  .nav-toggle { display: inline-block; }
  .nav-menu {
    position: fixed; left: 12px; right: 12px; top: calc(var(--nav-h) + 8px);
    flex-direction: column; align-items: stretch; gap: 2px; padding: 10px;
    border-radius: var(--r-slab); border: 1px solid var(--edge-flat);
    background: rgba(10,10,16,.92); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    box-shadow: var(--shadow-near);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
  }
  .nav-menu.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-menu a:not(.btn) { display: block; padding: 14px 16px; font-size: 16px; }
  .nav-menu a:not(.btn)[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold); border-radius: var(--r-ui); }
  .nav-cta { margin: 8px 0 0; }
  .nav-cta .btn { width: 100%; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  /* 2.5D flattens on small screens: one sheet, no perspective */
  .stack::before, .stack::after { display: none; }
  .tilt { transform: none !important; }
  .hero-slab.tilt { animation-name: settle-flat; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .ledger-row { padding: 18px 18px; }
  .orb { filter: blur(50px); }
}
/* the tallest sidebar is ~810px; on a shorter viewport a stuck sidebar would hide its own bottom until the column ends */
@media (max-height: 920px) {
  .sticky, .glass.sticky, .glass-soft.sticky { position: static; }
}
@keyframes settle-flat { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (max-width: 480px) {
  body { font-size: 16px; }
  .btn { width: 100%; }
  .hero-actions .btn { width: 100%; }
  .choice label { flex: 1 1 100%; text-align: center; }
}

/* --------------------------------------------------------------------------
   Motion & accessibility
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .tilt { transform: none !important; }
  .orb { will-change: auto; }
}
@media (prefers-contrast: more) {
  :root { --muted: #cdc8dc; --faint: #a39eb5; --edge-flat: rgba(255,255,255,.3); }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .glass-soft, .ledger, .site-nav, .btn-glass { background-color: rgba(14,14,22,.92); }
}
@media print {
  .lights, .site-nav, .nav-toggle, .hero-actions, .btn { display: none !important; }
  body { background: #fff; color: #000; padding-top: 0; }
  .glass, .glass-soft, .glass-dark, .ledger { background: none; border: 1px solid #999; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
/* ========================================================================
   GLASSWORKS / DIMENSIONAL EDITION — 2026-11-06
   Slate and warm metal. Geometry, not saturated light, establishes depth.
   This layer intentionally extends the shared primitives so legacy pages
   keep all existing structural and functional behavior.
   ======================================================================== */

:root {
  --ink: #141a1e;
  --ink-2: #1b2429;
  --text: #f2f0e9;
  --muted: #b8bec0;
  --faint: #9da9ad;
  --gold: #dfbc80;
  --cyan: #98c1bd;
  --pink: #a68d8c;
  --purple: #8d8d9b;
  --glass-fill: linear-gradient(151deg, rgba(50,61,66,.93), rgba(29,38,43,.94) 42%, rgba(35,44,49,.94));
  --glass-fill-soft: linear-gradient(154deg, rgba(44,54,59,.92), rgba(29,38,43,.95) 58%, rgba(35,43,47,.96));
  --glass-fill-dark: linear-gradient(165deg, rgba(17,24,29,.93), rgba(27,35,39,.92));
  --edge: linear-gradient(135deg, rgba(236,227,205,.48), rgba(213,222,221,.12) 16%, rgba(198,212,212,.12) 78%, rgba(218,183,128,.33));
  --edge-soft: linear-gradient(135deg, rgba(214,212,193,.32), rgba(203,217,214,.10) 18%, rgba(203,217,214,.08) 80%, rgba(221,189,135,.17));
  --edge-flat: rgba(199,216,215,.14);
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --r-slab: 18px;
  --r-ui: 9px;
  --shadow-near: 0 35px 80px -34px rgba(0,0,0,.69), 0 14px 35px -18px rgba(0,0,0,.60);
  --shadow-far: 0 16px 44px -24px rgba(0,0,0,.46);
  --space-section: clamp(72px, 9vw, 112px);
}

body {
  background-color: var(--ink);
  background-image:
    radial-gradient(ellipse 900px 700px at 83% 3%, rgba(127,145,139,.09), transparent 74%),
    radial-gradient(ellipse 950px 740px at 12% 44%, rgba(157,119,76,.042), transparent 78%),
    linear-gradient(180deg, #161e22 0%, #141a1e 38%, #192126 100%);
}
::selection { background: rgba(223,188,128,.32); color: #fff; }
a { color: var(--gold); }
a:hover { color: #f3d7a7; }
:focus-visible { outline-color: #eccb96; }
h1, h2 { font-weight: 600; letter-spacing: -.046em; }
h1 { line-height: 1.03; }
h2 { line-height: 1.12; }
h3 { letter-spacing: -.025em; }
.lede { color: var(--muted); }
.site-nav {
  background: linear-gradient(180deg, rgba(24,32,36,.97), rgba(22,29,34,.91));
  border-bottom: 1px solid rgba(214,219,211,.12);
  box-shadow: 0 12px 36px rgba(4,10,11,.18);
}
.brand-name { font-family: var(--font-body); font-weight: 600; letter-spacing: -.042em; font-size: 21px; }
.brand img { filter: drop-shadow(0 3px 10px rgba(208,176,115,.1)); }
.nav-menu a:not(.btn) { color: #c6cac9; font-size: 14px; }
.nav-menu a:not(.btn):hover { background: rgba(221,225,216,.055); }
.nav-menu a:not(.btn)[aria-current="page"] { color: #f1e7d5; }
.btn { font-weight: 600; }
.btn-primary {
  color: #17201f;
  background: linear-gradient(125deg, #f1d5a5 0%, #e2be82 54%, #c99b60 100%);
  border-color: rgba(245,218,170,.46);
  box-shadow: 0 17px 34px -19px rgba(213,167,100,.55), inset 0 1px 0 rgba(255,255,255,.45), inset 0 -1px 0 rgba(67,47,21,.21);
}
.btn-primary:hover { color: #17201f; box-shadow: 0 20px 42px -17px rgba(213,167,100,.64), inset 0 1px 0 rgba(255,255,255,.4); }
.btn-glass { background-image: linear-gradient(157deg, rgba(50,61,66,.82), rgba(31,40,45,.92)), var(--edge-soft); }
.btn-glass:hover { background-image: linear-gradient(157deg, rgba(58,70,75,.91), rgba(34,45,50,.96)), var(--edge); }
.glass, .glass-soft { --muted: #bfc5c5; --faint: #aab6b7; }
.glass::before, .glass-soft::before { background: linear-gradient(180deg, rgba(255,244,221,.046), transparent 25%); }
.glass-dark { background-image: linear-gradient(160deg, rgba(17,26,29,.87), rgba(20,30,33,.93)), var(--edge-soft); }
.light-local { opacity: .17 !important; filter: blur(95px); }
.lit { --lit-opacity: .13 !important; }
.stack::before, .stack::after { border-color: rgba(231,213,179,.14); background: linear-gradient(160deg, #253036, #172126); }
.stack::after { border-color: rgba(225,212,187,.09); }
.lights { opacity: .23; }
.orb { filter: blur(130px); opacity: .22 !important; }
.orb-gold { left: 10%; top: 68vh; }
.orb-cyan { right: -18vw; top: 180vh; }
.orb-gold-2 { left: 20%; top: 340vh; }
.orb-cyan-2 { right: 0; top: 520vh; }
.section-head h2 { margin-bottom: .35em; }
.prose p, .prose li { color: #c2c8c7; }
.footer-brand p { color: var(--muted); }
.site-footer { background: linear-gradient(180deg, rgba(39,49,52,.45), rgba(16,22,25,.7)); }
.ledger { border-color: rgba(215,216,207,.13); }
.ledger-row { border-color: rgba(221,218,208,.1); }
.ledger-row:hover { background: rgba(236,210,164,.035); }
.badge-live { color: #a6d0b9; }
.badge-live::before { background: #a6d0b9; box-shadow: 0 0 9px rgba(166,208,185,.35); }

/* Editorial labels: legible but quiet, distinct from navigation and CTAs. */
.eyebrow {
  display: flex; align-items: center; gap: 12px; margin: 0 0 22px;
  color: #e1c89f; font: 500 11px/1.4 var(--font-mono);
  letter-spacing: .125em; text-transform: uppercase;
}
.eyebrow-line { display: inline-block; width: 26px; height: 1px; background: var(--gold); box-shadow: 0 0 9px rgba(221,186,127,.33); }

/* Home hero: expansive, non-boxed typography beside a machined floating stack.
   Position and layering are deliberate: no fake ground reflection or lighting. */
.dimensional-hero {
  padding: clamp(66px, 7vw, 105px) 0 0;
  position: relative;
  background: radial-gradient(ellipse at 73% 44%, rgba(91,107,105,.11), transparent 51%);
}
.hero-atmosphere {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(216,191,148,.19) .7px, transparent 1px),
    linear-gradient(130deg, transparent 40%, rgba(184,188,179,.027) 56%, transparent 73%);
  background-size: 53px 53px, 100% 100%;
  mask-image: linear-gradient(90deg, transparent 12%, #000 72%, transparent 103%);
  opacity: .32;
}
.hero-layout {
  min-height: 595px;
  display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  align-items: center; gap: clamp(14px, 2vw, 38px);
}
.hero-copy { position: relative; z-index: 2; padding-bottom: 38px; }
.dimensional-hero h1 { font-size: clamp(50px, 5.15vw, 79px); letter-spacing: -.069em; max-width: 11.2ch; margin: 0 0 25px; line-height: .99; }
.dimensional-hero h1 span { display: block; color: #e6c794; }
.dimensional-hero .lede { max-width: 49ch; font-size: clamp(17px, 1.55vw, 19px); line-height: 1.62; color: #c3c9c7; }
.dimensional-hero .hero-actions { margin-top: 32px; gap: 12px; }
.dimensional-hero .btn-lg { padding: 17px 23px; }
.cta-chevron { display: inline-block; width: 8px; height: 8px; margin-left: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
.hero-capabilities {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px; max-width: 540px; margin-top: 58px; padding-top: 22px;
  border-top: 1px solid rgba(214,221,213,.18);
}
.hero-capabilities > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cap-index { color: #bca780; font: 500 12px/1 var(--font-mono); }
.cap-name { color: #c5cecb; font-size: 13px; line-height: 1.35; }
.hero-footline {
  display: flex; justify-content: space-between; gap: 16px;
  padding-top: 22px; padding-bottom: 22px;
  border-top: 1px solid rgba(219,223,212,.13);
  color: #869598; font: 500 10px/1.4 var(--font-mono); letter-spacing: .12em;
}

/* Geometry stage — every visible surface is an actual geometric layer. */
.dimension-scene { height: 568px; width: 100%; position: relative; isolation: isolate; perspective: 1100px; }
.scene-ambient {
  position: absolute; inset: 5% -5%; border-radius: 50%;
  background: radial-gradient(ellipse at 54% 48%, rgba(182,153,109,.14), rgba(96,115,113,.08) 28%, transparent 67%);
  filter: blur(36px); z-index: -2;
}
.scene-ground {
  position: absolute; width: 92%; height: 49%; left: 5%; top: 49%;
  transform: perspective(570px) rotateX(67deg) rotateZ(-16deg);
  background: repeating-linear-gradient(0deg, transparent 0 35px, rgba(183,202,198,.095) 36px, transparent 37px),
    repeating-linear-gradient(90deg, transparent 0 35px, rgba(183,202,198,.09) 36px, transparent 37px);
  border: 1px solid rgba(197,213,209,.09);
  mask-image: radial-gradient(ellipse, rgba(0,0,0,.78) 10%, transparent 72%);
  z-index: -1;
}
.scene-orbit { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; }
.scene-orbit-outer { width: 94%; height: 53%; left: 3%; top: 26%; border: 1px solid rgba(226,199,151,.19); transform: rotate(-20deg); box-shadow: inset 0 0 20px rgba(235,189,126,.035), 0 0 20px rgba(201,184,143,.05); }
.scene-orbit-inner { width: 70%; height: 41%; left: 15%; top: 34%; border: 1px dashed rgba(180,203,197,.17); transform: rotate(12deg); }
.scene-structure { position: absolute; inset: 0; transform-style: preserve-3d; animation: assemblyHover 8s ease-in-out infinite; z-index: 1; }
.scene-slab {
  position: absolute; width: min(77%, 400px); height: 260px;
  border-radius: 20px; transform: rotate(-13deg) skewY(3deg);
  overflow: hidden; border: 1px solid rgba(239,227,206,.19);
  backface-visibility: hidden;
}
.scene-slab-back {
  left: 22%; top: 119px;
  background: linear-gradient(145deg, #455157 0%, #273238 56%, #202b30 100%);
  box-shadow: 18px 35px 35px -26px rgba(0,0,0,.8), inset 0 1px 0 rgba(250,241,226,.17), inset 0 -12px 24px rgba(0,0,0,.26);
}
.scene-slab-mid {
  left: 15%; top: 158px;
  background: linear-gradient(144deg, rgba(61,74,77,.98), rgba(29,41,45,.96));
  box-shadow: 13px 21px 44px rgba(1,8,12,.42), inset 0 1px 0 rgba(255,241,211,.13);
}
.scene-slab-front {
  left: 8%; top: 201px; height: 268px; padding: 19px 23px 17px;
  background: linear-gradient(152deg, rgba(43,57,61,.98) 0%, rgba(24,37,43,.99) 67%, rgba(29,40,44,.99) 100%);
  box-shadow: 0 30px 80px -22px rgba(0,0,0,.85), 0 0 0 1px rgba(224,199,157,.08), inset 0 1px 0 rgba(255,236,203,.23), inset 0 -3px 0 rgba(6,14,17,.6);
}
.scene-slab-front::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(120deg, rgba(255,244,214,.09), transparent 24%, transparent 80%, rgba(220,182,124,.04)); }
.slab-rails { display: flex; flex-direction: column; gap: 12px; margin: 25px 24px; }
.slab-rails i { display: block; width: 64%; height: 1px; background: rgba(238,213,172,.25); }
.slab-rails i:nth-child(2) { width: 86%; opacity: .5; }
.slab-rails i:nth-child(3) { width: 44%; opacity: .35; }
.slab-grid {
  position: absolute; inset: 17px; border-radius: 10px;
  background: repeating-linear-gradient(0deg, transparent 0 25px, rgba(217,225,214,.055) 26px), repeating-linear-gradient(90deg, transparent 0 25px, rgba(217,225,214,.055) 26px);
  border: 1px solid rgba(238,226,206,.10);
}
.slab-topline, .slab-bottomline { display: flex; justify-content: space-between; align-items: center; gap: 8px; position: relative; z-index: 1; font: 500 10px/1.2 var(--font-mono); letter-spacing: .065em; color: #b7c4c2; }
.slab-topline { padding-bottom: 16px; border-bottom: 1px solid rgba(212,221,217,.14); }
.slab-bottomline { padding-top: 12px; border-top: 1px solid rgba(212,221,217,.14); }
.slab-signal { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: #d4bd89; box-shadow: 0 0 12px rgba(212,189,137,.45); margin-right: 8px; }
.slab-check { width: 9px; height: 9px; border: 1px solid #9ec7af; border-radius: 3px; display: inline-block; vertical-align: -1px; margin-right: 8px; position: relative; }
.slab-check::after { content: ""; width: 4px; height: 2px; border-left: 1px solid #9ec7af; border-bottom: 1px solid #9ec7af; position: absolute; left: 2px; top: 2px; transform: rotate(-45deg); }
.slab-graph { height: 175px; display: flex; align-items: center; justify-content: center; position: relative; }
.slab-graph svg { width: 100%; max-height: 145px; filter: drop-shadow(0 4px 13px rgba(224,190,134,.19)); }
.scene-tag {
  position: absolute; z-index: 3; padding: 12px 16px 11px;
  border: 1px solid rgba(230,211,184,.27); border-radius: 10px;
  background: linear-gradient(130deg, rgba(61,73,76,.97), rgba(29,42,47,.97));
  box-shadow: 5px 12px 24px rgba(0,0,0,.33), inset 0 1px 0 rgba(250,238,212,.13);
  transform: rotate(-7deg);
}
.scene-tag span { display: block; color: #aab8b9; letter-spacing: .09em; font: 500 9px/1.3 var(--font-mono); }
.scene-tag strong { display: block; color: #e8ce9c; font: 500 13px/1.4 var(--font-body); letter-spacing: .04em; margin-top: 3px; }
.scene-tag-top { top: 74px; right: 3%; }
.scene-tag-side { bottom: 72px; right: 0; transform: rotate(8deg); }
.scene-axis { position: absolute; height: 1px; background: linear-gradient(90deg, transparent, rgba(218,194,152,.35), transparent); z-index: 0; }
.scene-axis-a { width: 160px; top: 127px; left: 7%; transform: rotate(-26deg); }
.scene-axis-b { width: 190px; top: 471px; right: -8%; transform: rotate(-26deg); }
.scene-glint { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #dfc594; box-shadow: 0 0 10px 3px rgba(220,185,128,.24); }
.scene-glint-a { top: 171px; left: 9%; }
.scene-glint-b { bottom: 135px; right: 15%; width: 4px; height: 4px; }
@keyframes assemblyHover { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-9px); } }

/* Service offers: small physical plaques, with one meaningful price anchor. */
.section-head-offers { display: flex; align-items: end; justify-content: space-between; gap: 34px; }
.section-head-offers > div { min-width: 0; flex: 1; }
.section-head-offers .lede { max-width: 41ch; font-size: 17px; flex: 0 1 41ch; line-height: 1.55; }
.offers-grid { gap: 25px; align-items: stretch; }
.offer-card {
  position: relative; isolation: isolate; display: flex; flex-direction: column;
  min-height: 368px; padding: 27px 27px 24px;
  border: 1px solid rgba(231,217,189,.19); border-radius: 16px;
  background: linear-gradient(145deg, rgba(54,65,68,.97), rgba(34,45,50,.97) 48%, rgba(25,36,41,.98));
  box-shadow: 0 21px 40px -22px rgba(0,0,0,.76), inset 0 1px 0 rgba(255,249,234,.14);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.offer-card::before {
  content: ""; position: absolute; z-index: -1; inset: 8px -8px -11px 8px; border-radius: 16px;
  background: linear-gradient(140deg, #303d40, #19252a);
  border: 1px solid rgba(220,200,167,.11);
  box-shadow: 8px 16px 25px rgba(0,0,0,.17);
}
.offer-card:hover { transform: translateY(-6px); border-color: rgba(233,204,154,.46); box-shadow: 0 31px 48px -24px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,249,234,.17); }
.offer-top { display: flex; justify-content: space-between; align-items: start; gap: 16px; min-height: 65px; }
.offer-number { color: #d4ba8f; font: 500 11px/1.4 var(--font-mono); letter-spacing: .095em; }
.offer-symbol { display: block; width: 60px; height: 55px; position: relative; opacity: .83; flex: none; }
.offer-symbol i { position: absolute; display: block; border: 1px solid rgba(231,208,170,.75); background: linear-gradient(135deg, rgba(214,195,162,.24), rgba(49,63,66,.21)); box-shadow: 4px 6px 10px rgba(0,0,0,.16); }
.offer-symbol-rag i { width: 32px; height: 38px; border-radius: 4px; transform: skewY(-15deg); }
.offer-symbol-rag i:nth-child(1) { top: 4px; right: 3px; opacity: .38; }
.offer-symbol-rag i:nth-child(2) { top: 10px; right: 11px; opacity: .67; }
.offer-symbol-rag i:nth-child(3) { top: 16px; right: 19px; }
.offer-symbol-workflow i { width: 22px; height: 22px; border-radius: 5px; transform: rotate(-21deg) skewY(13deg); }
.offer-symbol-workflow i:nth-child(1) { top: 4px; left: 0; }
.offer-symbol-workflow i:nth-child(2) { top: 24px; left: 23px; }
.offer-symbol-workflow i:nth-child(3) { top: 1px; right: 0; opacity: .48; }
.offer-symbol-eval i { border-radius: 50%; width: 46px; height: 16px; left: 8px; transform: rotate(-24deg); background: transparent; }
.offer-symbol-eval i:nth-child(1) { top: 6px; }
.offer-symbol-eval i:nth-child(2) { top: 16px; }
.offer-symbol-eval i:nth-child(3) { top: 26px; border-color: #dcc394; }
.offer-card h3 { font-size: clamp(21px, 2vw, 25px); line-height: 1.19; max-width: 15ch; letter-spacing: -.035em; margin: 15px 0 13px; }
.offer-card > p { color: #bdc8c5; font-size: 15px; line-height: 1.6; margin: 0 0 26px; }
.offer-bottom {
  margin-top: auto; border-top: 1px solid rgba(212,223,217,.16); padding-top: 19px;
  display: flex; align-items: end; justify-content: space-between; gap: 10px;
}
.offer-from { color: #8e9e9f; display: block; font: 500 10px/1.2 var(--font-mono); letter-spacing: .09em; }
.offer-price { display: block; font: 500 28px/1.18 var(--font-body); color: #efd09b; letter-spacing: -.04em; margin: 6px 0 0; }
.offer-duration { display: block; color: #acb9b8; font-size: 12px; margin-top: 3px; }
.offer-link { color: #efe8d9; font-weight: 500; font-size: 12px; padding-bottom: 2px; white-space: nowrap; border-bottom: 1px solid rgba(235,211,174,.48); }
.offer-link:hover { text-decoration: none; border-color: var(--gold); }
.offer-link span { font-size: 16px; padding-left: 3px; }
body.page-index .receipts-grid > div:first-child .lede { max-width: 59ch; }
body.page-index .receipts-aside .diagram { border-color: rgba(238,212,170,.18); }
body.page-index .receipts-grid h2 { max-width: 19ch; }

/* Smartphones keep the physical layers, but lose the pointer/scroll distractions. */
@media (max-width: 1100px) {
  .hero-layout { grid-template-columns: 1fr 1fr; }
  .dimensional-hero h1 { font-size: clamp(47px, 5.3vw, 65px); }
  .dimension-scene { transform: scale(.93); transform-origin: center center; }
  .offer-card { padding-inline: 21px; }
  .offer-bottom { flex-wrap: wrap; }
}
@media (max-width: 900px) {
  .hero-layout { grid-template-columns: 1fr; gap: 0; min-height: 0; }
  .hero-copy { padding-top: 12px; padding-bottom: 0; }
  .dimensional-hero h1 { max-width: 14ch; font-size: clamp(48px, 8vw, 72px); }
  .dimensional-hero .lede { max-width: 56ch; }
  .hero-capabilities { margin-top: 34px; }
  .dimension-scene { width: min(580px, 100%); margin: -15px auto -5px; transform: none; }
  .section-head-offers { display: block; }
  .section-head-offers .lede { max-width: 63ch; }
  .offers-grid { gap: 23px; }
  .offer-card h3 { max-width: 18ch; }
}
@media (max-width: 760px) {
  .nav-menu { background: rgba(25,34,39,.97); }
  .dimensional-hero { padding-top: 54px; }
  .hero-footline { font-size: 9px; }
  .offers-grid { gap: 19px; }
  .offer-card { min-height: 325px; }
  .offer-card h3 { max-width: none; }
}
@media (max-width: 540px) {
  .dimensional-hero { padding-top: 42px; }
  .dimensional-hero h1 { font-size: clamp(44px, 12vw, 63px); max-width: 12.6ch; }
  .dimensional-hero .lede { font-size: 16px; }
  .dimensional-hero .hero-actions { margin-top: 25px; }
  .hero-capabilities { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; padding-top: 18px; margin-top: 30px; }
  .cap-name { font-size: 11px; }
  .dimension-scene { width: 470px; max-width: none; height: 485px; left: 50%; margin: -30px 0 -14px; transform: translateX(-50%) scale(.77); transform-origin: 50% 50%; }
  .scene-slab { width: 355px; }
  .scene-slab-back { left: 17%; }
  .scene-slab-mid { left: 12%; }
  .scene-slab-front { left: 7%; }
  .scene-tag-top { top: 76px; right: 8%; }
  .scene-tag-side { bottom: 22px; right: 1%; }
  .hero-footline { padding-block: 16px; }
  .eyebrow { font-size: 10px; letter-spacing: .085em; }
  .offer-card { min-height: 320px; padding: 24px; }
  .offer-bottom { flex-wrap: nowrap; }
  .section-head-offers .lede { font-size: 16px; }
}
@media (max-width: 380px) {
  .dimensional-hero h1 { font-size: 43px; }
  .dimension-scene { transform: translateX(-50%) scale(.68); margin-top: -45px; margin-bottom: -32px; }
  .cap-name { font-size: 10px; }
  .offer-bottom { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .scene-structure { animation: none !important; }
  .offer-card:hover { transform: none; }
}
@media (prefers-contrast: more) {
  :root { --muted: #e0e6e2; --faint: #ced7d4; }
  .offer-card > p, .dimensional-hero .lede { color: #e0e6e2; }
}

/* A faint vanishing grid in the open air behind the three planes. */
.scene-vanishing {
  position: absolute; width: 94%; height: 55%; left: 3%; top: 0;
  z-index: 0; opacity: .35; pointer-events: none;
  mask-image: radial-gradient(ellipse at 50% 42%, #000 4%, rgba(0,0,0,.74) 36%, transparent 78%);
}

/* Cursor light moves within each surface without shifting content. */
.dimensional-hero {
  background: radial-gradient(ellipse 520px 430px at var(--cursor-x, 73%) var(--cursor-y, 44%), rgba(134,145,130,.13), transparent 78%);
}
.scene-ambient {
  background: radial-gradient(ellipse at var(--cursor-x, 54%) var(--cursor-y, 48%), rgba(182,153,109,.17), rgba(96,115,113,.08) 28%, transparent 67%);
}
.offer-card {
  background: radial-gradient(ellipse 330px 280px at var(--cursor-x, 50%) var(--cursor-y, 50%), rgba(221,189,135,.11), transparent 80%),
    linear-gradient(145deg, rgba(54,65,68,.97), rgba(34,45,50,.97) 48%, rgba(25,36,41,.98));
}
.btn-primary {
  background-image: radial-gradient(ellipse 190px 130px at var(--cursor-x, 50%) var(--cursor-y, 50%), rgba(255,255,255,.22), transparent 87%),
    linear-gradient(125deg, #f1d5a5 0%, #e2be82 54%, #c99b60 100%);
}
.btn-glass {
  background-image: radial-gradient(ellipse 190px 130px at var(--cursor-x, 50%) var(--cursor-y, 50%), rgba(223,199,154,.14), transparent 90%),
    linear-gradient(157deg, rgba(50,61,66,.82), rgba(31,40,45,.92)), var(--edge-soft);
}
.nav-menu a:not(.btn):hover, .link-quiet:hover, .offer-link:hover {
  background-image: radial-gradient(ellipse 140px 55px at var(--cursor-x, 50%) var(--cursor-y, 50%), rgba(221,192,145,.12), transparent 90%);
}

/* One visible response per pointer hover or keyboard focus. */
a.click-signal, button.click-signal {
  border-radius: max(4px, var(--r-ui, 4px));
  animation: calmClick .46s ease-out both;
}
@keyframes calmClick {
  0% { outline: 1px solid rgba(238,208,153,.8); outline-offset: 0; filter: brightness(1.15); }
  45% { outline: 2px solid rgba(238,208,153,.48); outline-offset: 4px; filter: brightness(1.09); }
  100% { outline: 2px solid rgba(238,208,153,0); outline-offset: 8px; filter: brightness(1); }
}
@media (prefers-reduced-motion: reduce) {
  a.click-signal, button.click-signal { animation: none; outline: 2px solid rgba(238,208,153,.75); outline-offset: 3px; }
}
