/* Fonts are self-hosted (no Google request): Plus Jakarta Sans, IBM Plex Sans, IBM Plex Mono 600, latin subset. SIL Open Font License 1.1. */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(../fonts/PlusJakartaSans.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: "IBM Plex Sans"; font-style: normal; font-weight: 100 700; font-display: swap; src: url(../fonts/IBMPlexSans.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: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/IBMPlexMono-600.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; }

/* Grimandi Services, 2026 brand: ink + bone, gold = recovered revenue, red = leak */
:root {
  --bg: #07090C;
  --bg-2: #0B0F14;
  --surface: #10151C;
  --surface-2: #151C25;
  --line: rgba(237, 234, 228, .09);
  --line-2: rgba(237, 234, 228, .16);
  --text: #EDEAE4;
  --muted: #A3ABB5;
  --faint: #7E8792;
  --gold: #FFB703;
  --gold-2: #FFC93C;
  --gold-ink: #1A1200;
  --gold-soft: rgba(255, 183, 3, .12);
  --red: #E5484D;
  /* one corner scale and one panel padding for the whole site */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --pad: clamp(22px, 3vw, 36px);
  --section: clamp(72px, 9vw, 120px);
  --maxw: 1180px;
  --gutter: clamp(16px, 4.5vw, 44px);
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
/* clip sideways overflow without creating a scroll container: stops the sideways wobble while scrolling on phones */
@supports (overflow-x: clip) { html, body { overflow-x: clip; } }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
a[href^="tel:"] { white-space: nowrap; }
/* Headings: Plus Jakarta Sans 700/800, tracking -0.03em, leading 1.15. Body: IBM Plex Sans 400/500. Numbers and tags: IBM Plex Mono 600 */
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.03em; line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; }
.mono { font-family: var(--mono); font-weight: 600; letter-spacing: .02em; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: var(--gold-ink); padding: 10px 14px; border-radius: var(--radius-sm); font-weight: 600; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: var(--radius-sm); }

/* grain, so flat darks don't band */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 60; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 3D scene layer ---------- */
.scene { position: fixed; inset: 0; height: 100vh; height: 100lvh; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s var(--ease); }
.scene-ready .scene { opacity: 1; }
.scene canvas { display: block; position: relative; z-index: 1; }
.scene::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(72% 80% at 64% 50%, rgba(7,9,12,0) 50%, rgba(7,9,12,.7) 82%, var(--bg) 100%); }
.scene-labels { position: absolute; inset: 0; z-index: 3; }
.scene-label {
  position: absolute; left: 0; top: 0; opacity: 0; white-space: nowrap; will-change: transform, opacity;
  font: 600 .72rem/1 var(--mono); letter-spacing: .04em; text-transform: uppercase;
  padding: 7px 10px; border-radius: 999px; translate: -50% -50%;
  background: rgba(7, 9, 12, .86); border: 1px solid var(--line-2); color: var(--text);
}
.scene-label.gold { border-color: rgba(255, 183, 3, .45); color: var(--gold-2); }
.scene-label.muted { color: var(--faint); }
.scene-label.pin { translate: -50% calc(-100% - 26px); border-color: rgba(237, 234, 228, .42); }
.scene-label.pin::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 22px; background: linear-gradient(rgba(237, 234, 228, .75), rgba(237, 234, 228, .25)); }
.scene-label.pin::before { content: ""; position: absolute; left: 50%; top: calc(100% + 22px); width: 7px; height: 7px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--text); box-shadow: 0 0 10px rgba(237, 234, 228, .8); }
/* Without WebGL (or with Save-Data), a still of the scene stands in */
.no-webgl .scene { opacity: 1; background: url("../assets/scene-still.jpg") center 70% / cover no-repeat; }

/* ---------- rooftop inside the hero: the 3D scene over an original still render; both scroll away with the hero ---------- */
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.roof { position: absolute; inset: 0; background: var(--bg); }
.roof-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 64% 46%; animation: roof-in 1.6s var(--ease) both; }
.roof-lit { opacity: 0; transition: opacity 1.2s var(--ease);
  -webkit-mask-image: radial-gradient(circle var(--lr, 330px) at var(--lx, 66%) var(--ly, 42%), #000 0%, rgba(0,0,0,.5) 38%, transparent 74%);
  mask-image: radial-gradient(circle var(--lr, 330px) at var(--lx, 66%) var(--ly, 42%), #000 0%, rgba(0,0,0,.5) 38%, transparent 74%); }
.roof.lit-on .roof-lit { opacity: .9; }
.roof::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7,9,12,.9) 0%, rgba(7,9,12,.62) 30%, rgba(7,9,12,.14) 56%, rgba(7,9,12,0) 78%),
              linear-gradient(0deg, var(--bg) 0%, rgba(7,9,12,.55) 26%, rgba(7,9,12,0) 52%),
              linear-gradient(180deg, rgba(7,9,12,.55) 0%, rgba(7,9,12,0) 18%); }
@keyframes roof-in { from { opacity: 0; } }
.no-webgl .scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,9,12,.85), rgba(7,9,12,.2) 70%); }

/* ---------- header ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(7, 9, 12, .94); border-bottom-color: var(--line); }
.header-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font: 800 1.06rem/1 var(--display); letter-spacing: -.03em; }
.brand img { width: 30px; height: 30px; border-radius: var(--radius-sm); }
.brand em { font-style: normal; font-weight: 500; color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  --b: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 500 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  padding: 16px 22px; border-radius: var(--radius); border: 1px solid var(--b);
  transition: background .2s, border-color .2s, color .2s;
}
.btn > span[aria-hidden] { transition: transform .2s var(--ease); }
.btn:hover > span[aria-hidden] { transform: translateX(3px); }
.btn-gold { background: var(--gold); color: var(--gold-ink); --b: var(--gold); }
.btn-gold:hover { background: var(--gold-2); --b: var(--gold-2); }
.btn-gold:active { background: #E9A700; --b: #E9A700; }
.btn-ghost { background: rgba(255,255,255,.04); color: var(--text); }
.btn-ghost:hover { border-color: rgba(237,234,228,.32); background: rgba(255,255,255,.07); }
.btn-sm { padding: 14px 18px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn:disabled { cursor: progress; }
.btn .spin { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.btn[aria-busy="true"] .spin { display: inline-block; }
.btn[aria-busy="true"] .arr { display: none; }
.btn[aria-busy="true"]:hover > span[aria-hidden] { transform: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- shared type ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 .74rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.eyebrow.red { color: #FF8589; }
.head { max-width: 760px; margin-bottom: clamp(32px, 4.5vw, 56px); }
.head h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); margin-top: 16px; }
.head .sub { margin-top: 18px; font-size: clamp(1.0625rem, 1.3vw, 1.125rem); color: var(--muted); max-width: 600px; }
.soft { color: var(--faint); }
.fine { font-size: .86rem; color: var(--faint); margin-top: 22px; }
.center { text-align: center; margin-left: auto; margin-right: auto; max-width: 760px; }

/* ---------- sections ---------- */
main { position: relative; z-index: 2; }
.section { padding: var(--section) 0; position: relative; }
.solid { background: var(--bg); }
.solid.alt { background: var(--bg-2); }


/* ---------- menu button + full-screen menu ---------- */
.hdr-apply { margin-left: auto; }
.menu-btn { margin-left: 14px; width: 44px; height: 44px; flex: none; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: rgba(11, 15, 20, .7); display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; cursor: pointer; }
.menu-btn:hover { border-color: var(--gold); }
.menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .25s var(--ease), opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.site-menu { position: absolute; top: calc(100% + 6px); right: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter))); width: 290px;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .85); }
.site-menu .menu-in { display: flex; flex-direction: column; padding: 8px; }
.site-menu a { font: 600 .98rem/1.3 var(--display); letter-spacing: -.01em; color: var(--text); text-decoration: none; padding: 12px 14px; border-radius: var(--radius-sm); }
.site-menu a:hover { background: rgba(255, 255, 255, .05); color: var(--gold); }
.site-menu a.btn { margin: 6px; padding: 14px 16px; font: 500 .95rem/1 var(--font); letter-spacing: 0; color: var(--gold-ink); }
.site-menu a.btn:hover { background: var(--gold-2); color: var(--gold-ink); }

/* ---------- compliance badges + collapsible programs ---------- */
.rules-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); grid-template-areas: "head shot" "rules shot"; gap: 0 clamp(32px, 5vw, 72px); align-items: start; }
.rules-grid > .head { grid-area: head; }
.rules-grid > .badges { grid-area: rules; }
.rules-grid > .shot { grid-area: shot; align-self: center; }
.badges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px clamp(24px, 3vw, 40px); }
.badges li { padding-top: 20px; border-top: 1px solid var(--line-2); }
.badges b { display: block; font: 700 1.12rem/1.25 var(--display); letter-spacing: -.02em; }
.badges span { display: block; margin-top: 8px; color: var(--muted); font-size: .97rem; line-height: 1.55; }
.progs { margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.progs summary { list-style: none; cursor: pointer; padding: 22px 56px 22px 0; position: relative; font: 600 1.04rem/1.5 var(--display); letter-spacing: -.01em; }
.progs summary::-webkit-details-marker { display: none; }
.progs summary .mono { display: block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 7px; }
.progs summary::after { content: "+"; position: absolute; right: 0; top: 50%; width: 40px; height: 40px; margin-top: -20px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); color: var(--gold); font: 600 1.25rem/1 var(--mono); transition: border-color .2s, background .2s; }
.progs summary:hover::after { border-color: rgba(255,183,3,.5); background: var(--gold-soft); }
.progs[open] summary::after { content: "\2013"; }
.progs-in { padding: 0 0 26px; }
.progs-list { list-style: none; margin: 0; padding: 0; }
.progs-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "k amt go" "note amt go"; gap: 4px 32px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.progs-list .pg-k { grid-area: k; font-size: .72rem; color: var(--faint); text-transform: uppercase; letter-spacing: .1em; }
.progs-list .pg-note { grid-area: note; color: var(--muted); font-size: .95rem; max-width: 62ch; }
.progs-list .pg-amt { grid-area: amt; font: 600 clamp(1.35rem, 2vw, 1.7rem)/1 var(--mono); letter-spacing: -.03em; color: var(--gold); white-space: nowrap; text-align: right; }
.progs-list .pg-go { grid-area: go; font-size: .76rem; color: var(--muted); white-space: nowrap; transition: color .2s; }
.progs-list a:hover .pg-go { color: var(--gold-2); }
.progs-in .fine { margin-top: 16px; }

/* ---------- small copy helpers ---------- */
.leak-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: center; margin-top: clamp(36px, 5vw, 64px); }
.fix { max-width: 620px; font-size: clamp(1.02rem, 1.3vw, 1.1rem); color: var(--muted); }
.fix-q { margin-top: 18px; padding-left: 16px; border-left: 2px solid var(--gold); font-size: 1rem; color: var(--faint); }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--bg); min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 110px 0 120px; }
.hero::before { /* scrim keeps text crisp over the rooftop */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(7,9,12,.92) 0%, rgba(7,9,12,.7) 34%, rgba(7,9,12,0) 62%), linear-gradient(0deg, var(--bg) 0%, rgba(7,9,12,0) 22%);
}
.hero-in { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2.4rem, 4.9vw, 4.2rem); font-weight: 800; max-width: 11ch; margin-top: 22px; }
.lede { margin-top: 26px; max-width: 520px; font-size: clamp(1.0625rem, 1.3vw, 1.125rem); color: var(--muted); }
.lede strong { color: var(--text); font-weight: 600; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.proof { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--muted); font-size: .94rem; }
.proof li { display: flex; align-items: center; gap: 8px; }
.proof li::before { content: ""; width: 14px; height: 14px; border-radius: 2px; border: 1.5px solid var(--gold); background: linear-gradient(var(--gold), var(--gold)) center / 6px 6px no-repeat; opacity: .9; }
.proof b { color: var(--text); font-weight: 600; }
.hint-touch { display: none; }
@media (hover: none) { .hint-mouse { display: none; } .hint-touch { display: inline; } }
.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid var(--line-2); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 80% { opacity: 0; transform: translateY(14px); } 100% { opacity: 0; } }

/* ---------- leak ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: linear-gradient(90deg, var(--gold) 0%, rgba(255,183,3,.35) 40%, rgba(229,72,77,.6) 78%, var(--red) 100%); transform-origin: left; transform: scaleX(var(--tl, 1)); transition: transform 1.6s var(--ease); }
.js .timeline:not(.in) { --tl: 0; }
.timeline li { position: relative; padding: 34px 22px 0 0; display: flex; flex-direction: column; gap: 6px; }
.timeline li::before { content: ""; position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--gold); }
.timeline li.t-end::before { border-color: var(--red); background: var(--red); }
.t-when { font-size: .78rem; color: var(--faint); text-transform: uppercase; letter-spacing: .1em; }
.timeline b { font: 700 1.18rem/1.25 var(--display); letter-spacing: -.02em; }
.timeline li > span:last-child { color: var(--muted); font-size: .98rem; }
.t-end b { color: #FF8589; }


/* ---------- how it works (scroll-driven) ---------- */
.how { position: relative; }
.how-intro { padding-bottom: clamp(56px, 8vw, 100px); }
.how-intro::after { content: ""; position: absolute; left: 0; right: 0; bottom: -120px; height: 120px; background: linear-gradient(var(--bg), rgba(7,9,12,0)); pointer-events: none; }
.steps { position: relative; }
.step { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
.step .wrap { display: flex; }
.step-card {
  max-width: 440px; padding: var(--pad); border-radius: var(--radius-lg);
  background: rgba(11, 15, 20, .9); border: 1px solid var(--line-2);
  box-shadow: 0 24px 60px -28px rgba(0,0,0,.85);
}
.step-n { font-size: .8rem; color: var(--faint); }
.step-n span { color: var(--gold); }
.step-card h3 { font-size: clamp(1.35rem, 2vw, 1.65rem); margin-top: 12px; }
.step-card p:not(.step-n):not(.fine) { margin-top: 14px; color: var(--muted); }
.step-card .fine { margin-top: 16px; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.no-webgl .step-card { background: rgba(11, 15, 20, .9); }

/* ---------- calculator ---------- */
.calc { display: grid; grid-template-columns: 1fr 1.05fr; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; position: relative; }
.calc-in { padding: var(--pad); display: grid; gap: 32px; align-content: start; border-right: 1px solid var(--line); }
.slider { display: grid; grid-template-columns: 1fr auto; gap: 14px 12px; align-items: baseline; }
.slider label { color: var(--muted); font-size: .98rem; }
.slider output { font: 600 1.45rem/1 var(--mono); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.slider input { grid-column: 1 / -1; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 40px; background: transparent; cursor: pointer; --p: 50%; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--gold) var(--p), rgba(237,234,228,.14) var(--p)); }
input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(237,234,228,.14); }
input[type=range]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--gold); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: var(--text); border: 4px solid var(--gold); }
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--text); border: 4px solid var(--gold); }
.seg { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.seg legend { color: var(--muted); font-size: .98rem; margin-bottom: 14px; padding: 0; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; text-align: center; padding: 15px 6px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); font: 600 .86rem/1 var(--mono); color: var(--muted); transition: background .2s, border-color .2s, color .2s; }
.seg label:hover span { border-color: rgba(237,234,228,.32); color: var(--text); }
.seg input:checked + span { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.seg input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.calc-out { padding: var(--pad); display: grid; gap: 22px; align-content: start; }
.big { display: grid; gap: 8px; }
.big .k { font-size: .74rem; color: var(--faint); text-transform: uppercase; letter-spacing: .1em; }
.big .v { font: 600 clamp(2rem, 4.2vw, 3.1rem)/1 var(--mono); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.big.gold .v { color: var(--gold); }
.big .n { color: var(--muted); font-size: .96rem; }
.grid-viz { display: grid; grid-template-columns: repeat(auto-fill, minmax(9px, 1fr)); gap: 4px; max-height: 120px; overflow: hidden; }
.grid-viz i { aspect-ratio: 1.4; border-radius: 2px; background: rgba(237,234,228,.1); transition: background .4s; }
.grid-viz i.on { background: var(--gold); }
.calc-out .fine { margin-top: 0; }

/* ---------- offer ---------- */
.offer { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.stack h3, .price-k { font-size: .74rem; color: var(--faint); text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.stack-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; }
.stack-list li { padding: 18px 0; border-top: 1px solid var(--line); }
.stack-list li:last-child { border-bottom: 1px solid var(--line); }
.stack-list b { display: block; font: 600 1.1rem/1.35 var(--display); letter-spacing: -.015em; }
.stack-list span { display: block; margin-top: 4px; color: var(--muted); font-size: .97rem; }
.price { border: 1px solid rgba(255,183,3,.35); border-radius: var(--radius-lg); background: var(--surface); padding: var(--pad); position: sticky; top: 92px; }
.price-rows { margin-top: 18px; display: grid; }
.price-rows div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.price-rows span { color: var(--muted); }
.price-rows b { font: 600 1.9rem/1 var(--mono); letter-spacing: -.04em; color: var(--gold); }
.price-rows b.small { font: 500 .95rem/1.4 var(--font); letter-spacing: 0; color: var(--text); text-align: right; max-width: 200px; }
.price-note { margin-top: 16px; color: var(--muted); font-size: .94rem; }
.spots { display: flex; gap: 12px; align-items: center; margin: 20px 0 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .94rem; color: var(--muted); }
.spots b { color: var(--text); }
.spot-dots { display: flex; gap: 5px; flex: none; }
.spot-dots i { width: 10px; height: 10px; border-radius: 2px; background: var(--gold); }
.spot-dots i.taken { background: transparent; border: 1.5px solid var(--faint); box-shadow: none; }

/* ---------- rendered equipment pictures (original renders, feathered into the page) ---------- */
.shot { margin: 0; position: relative; }
.shot img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent), linear-gradient(180deg, transparent, #000 12%, #000 86%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent), linear-gradient(180deg, transparent, #000 12%, #000 86%, transparent);
  mask-composite: intersect; }

/* ---------- founder (layered portrait) ---------- */
.founder { overflow: hidden; padding-bottom: 0; }
.founder-word { position: absolute; left: 0; top: 54%; z-index: 0; pointer-events: none; white-space: nowrap; transform: translate3d(var(--fx, 0px), -50%, 0); will-change: transform; }
.founder-word span { display: block; font: 800 clamp(6.4rem, 19vw, 17rem)/.8 var(--display); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1px rgba(255, 183, 3, .2); }
.founder-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 4vw, 60px); align-items: center; }
.founder-copy { padding-bottom: clamp(60px, 8vw, 110px); }
.note-q { font-size: clamp(1.5rem, 2.5vw, 2.05rem); margin-top: 20px; }
.note-body { margin-top: 26px; display: grid; gap: 16px; max-width: 560px; color: var(--muted); font-size: 1.06rem; }
.stage { --fw: clamp(240px, 24vw, 330px); position: relative; height: max(calc(var(--fw) * 1.66), calc(var(--fw) * .99 + 400px)); margin-top: clamp(20px, 4vw, 40px); }
.stage-glow { position: absolute; left: calc(var(--fw) * -.35); top: calc(var(--fw) * -.1); width: calc(var(--fw) * 1.9); height: calc(var(--fw) * 1.9); border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 170, 40, .26), rgba(255, 140, 20, .08) 55%, transparent 75%); filter: blur(10px); }
.stage-figure { position: absolute; left: 0; top: 0; width: var(--fw); z-index: 2; transition: transform .6s var(--ease); filter: drop-shadow(0 0 1px rgba(255, 214, 150, .4)) drop-shadow(-12px 0 36px rgba(255, 170, 40, .16)); }
.stage-figure img { width: 100%; height: auto; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 86%); mask-image: linear-gradient(180deg, #000 70%, transparent 86%); }
.ledge {
  position: absolute; z-index: 1; left: calc(var(--fw) * .8); top: calc(var(--fw) * .99); width: 330px;
  padding: 28px 24px 24px; border-radius: var(--radius-sm) var(--radius-sm) var(--radius-lg) var(--radius-lg);
  background: rgba(16, 21, 28, .96);
  border: 1px solid var(--line-2); border-top: 1px solid rgba(255, 196, 110, .55);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9);
  transition: transform .6s var(--ease);
}
.ledge-k { font-size: .72rem; color: var(--gold); text-transform: uppercase; letter-spacing: .14em; }
.ledge-name { margin-top: 8px; font: 800 1.5rem/1.15 var(--display); letter-spacing: -.03em; }
.ledge-facts { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; color: var(--muted); font-size: .92rem; }
.ledge-facts li { padding-left: 14px; position: relative; }
.ledge-facts li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 1px; background: var(--gold); opacity: .8; }

/* contact links (icons and list) */
.contact { list-style: none; margin: 0; padding: 0; }
.contact svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact.list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; margin-top: 10px; }
.contact.list li { border-top: 1px solid var(--line); min-width: 0; }
.contact.list a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 0; color: var(--text); text-decoration: none; font-size: .96rem; transition: color .2s; }
.contact.list a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact.list a svg { color: var(--gold); }
.contact.list a:hover { color: var(--gold-2); }
.contact.list li:first-child { grid-column: 1 / -1; }
.direct .mono { font-size: .74rem; color: var(--faint); text-transform: uppercase; letter-spacing: .12em; }

/* ---------- apply ---------- */
.apply { background: var(--bg); }
.apply-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.apply-copy h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); margin-top: 16px; }
.apply-copy .sub { margin-top: 18px; color: var(--muted); font-size: 1.1rem; }
.apply-steps { list-style: none; counter-reset: s; margin: 34px 0 0; padding: 0; display: grid; gap: 4px; }
.apply-steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; padding: 14px 0; border-top: 1px solid var(--line); }
.apply-steps li::before { content: "0" counter(s); grid-row: span 2; font: 600 .82rem/1.6 var(--mono); color: var(--gold); }
.apply-steps b { font-weight: 600; }
.apply-steps span { color: var(--muted); font-size: .95rem; }
.direct { margin-top: 30px; }
.form { border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: var(--surface); padding: var(--pad); display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .88rem; font-weight: 500; color: var(--muted); }
.opt { color: var(--faint); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--font); color: var(--text); background: var(--bg-2);
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 13px 14px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 84px; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%23A3ABB5' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(255,183,3,.14); }
/* after someone has typed in a field and left it wrong (not before) */
.field input:user-invalid { border-color: rgba(229, 72, 77, .75); }
.field select:user-invalid { border-color: rgba(229, 72, 77, .75); }
.form-status { font-size: .92rem; color: #FF9EA1; }
.form-status a { color: var(--text); }
.form[aria-busy="true"] .field, .form[aria-busy="true"] .consent { opacity: .6; transition: opacity .2s; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--muted); cursor: pointer; padding: 4px 0; }
.consent input { margin-top: 2px; accent-color: var(--gold); width: 18px; height: 18px; flex: none; }
.form .small { font-size: .82rem; color: var(--faint); }
.form .small a { color: var(--muted); }
.hp { display: none; }

/* ---------- footer ---------- */
.site-footer { position: relative; z-index: 2; background: var(--bg-2); border-top: 1px solid var(--line); padding: clamp(48px, 6vw, 72px) 0 40px; font-size: .95rem; }
.foot { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; }
.foot > * { min-width: 0; }
.foot a { overflow-wrap: anywhere; }
.foot-brand p { margin-top: 16px; color: var(--muted); max-width: 340px; }
.foot .mono { font-size: .72rem; color: var(--faint); text-transform: uppercase; letter-spacing: .12em; }
.foot ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; color: var(--muted); }
.foot ul a { display: inline-block; padding: 5px 0; }
.foot a { text-decoration: none; color: var(--muted); transition: color .2s; }
.foot a:hover { color: var(--text); }
.legal { grid-column: 1 / -1; padding-top: 28px; border-top: 1px solid var(--line); color: var(--faint); font-size: .82rem; line-height: 1.75; }
.legal a { color: var(--muted); }

/* ---------- simple pages (thanks, privacy, 404) ---------- */
.page { padding: 140px 0 100px; min-height: 70vh; }
.page .wrap { max-width: 780px; }
.page h1 { font-size: clamp(2rem, 3.8vw, 2.8rem); margin-top: 16px; }
.page h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.page p, .page li { color: var(--muted); }
.page p + p { margin-top: 14px; }
.page ul, .page ol { padding-left: 20px; }
.page li { margin: 6px 0; }
.page a { color: var(--text); text-underline-offset: 3px; }
.page .lead { font-size: 1.15rem; margin-top: 20px; }
.next-steps { list-style: none; padding: 0 !important; margin: 34px 0; display: grid; gap: 12px; counter-reset: s; }
.next-steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin: 0 !important; }
.next-steps li::before { content: "0" counter(s); font: 600 .85rem/1.6 var(--mono); color: var(--gold); }
.next-steps b { color: var(--text); font-weight: 600; display: block; }

/* ---------- reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .offer { grid-template-columns: 1fr; }
  .price { position: relative; top: 0; }
  .rules-grid { grid-template-columns: 1fr; grid-template-areas: "head" "shot" "rules"; }
  .rules-grid > .shot { margin-bottom: clamp(28px, 4vw, 40px); }
}
@media (max-width: 860px) {
  .calc, .apply-grid, .founder-grid, .leak-foot { grid-template-columns: 1fr; }
  .founder-copy { padding-bottom: 0; }
  .stage { --fw: min(62vw, 340px); height: calc(var(--fw) * 1.22 + 450px); }
  .founder { padding-bottom: 40px; }
  .founder-word { top: 74%; }
  .ledge { z-index: 3; left: 26vw; right: 0; width: auto; top: calc(var(--fw) * 1.22); }
  .calc-in { border-right: 0; border-bottom: 1px solid var(--line); }
  .timeline { grid-template-columns: 1fr; gap: 26px; padding-left: 34px; }
  .timeline::before { left: 7px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; transform-origin: top; transform: scaleY(var(--tl, 1)); background: linear-gradient(180deg, var(--gold) 0%, rgba(255,183,3,.35) 40%, rgba(229,72,77,.6) 78%, var(--red) 100%); }
  .timeline li { padding: 0; }
  .timeline li::before { left: -34px; top: 2px; }
}
@media (max-width: 760px) {
  body { font-size: 1rem; }
  .header-in { height: 60px; }
  .brand { font-size: .98rem; }
  .brand em { display: none; }
  .hero { align-items: flex-start; padding-top: 104px; padding-bottom: 46svh; }
  .hero::before { background: linear-gradient(180deg, rgba(7,9,12,.94) 0%, rgba(7,9,12,.82) 42%, rgba(7,9,12,0) 64%), linear-gradient(0deg, var(--bg) 0%, rgba(7,9,12,0) 18%); }
  .hero h1 { font-size: clamp(2.05rem, 9vw, 2.6rem); }
  .lede { margin-top: 20px; }
  .ctas { margin-top: 26px; }
  .ctas .btn { flex: 1 1 100%; }
  .proof { margin-top: 24px; gap: 8px 18px; font-size: .88rem; }
  .hdr-apply { display: none; }
  .menu-btn { margin-left: auto; }
  .badges { grid-template-columns: 1fr; }
  .site-menu { left: var(--gutter); right: var(--gutter); width: auto; top: calc(100% + 4px); }
  .roof-img { top: auto; height: 64%; object-position: 64% 26%; }
  .roof { --lr: 190px; }
  .roof::after { background: linear-gradient(180deg, var(--bg) 34%, rgba(7,9,12,.6) 50%, rgba(7,9,12,.12) 70%, rgba(7,9,12,.3) 88%, var(--bg) 100%); }
  .eyebrow { font-size: .68rem; letter-spacing: .08em; }
  .scroll-cue { display: none; }
  .step { align-items: flex-end; padding-bottom: 7svh; }
  .step-card { max-width: none; padding: 24px 22px; background: rgba(11, 15, 20, .93); }
  .progs-list a { grid-template-columns: 1fr; grid-template-areas: "k" "amt" "note" "go"; gap: 8px; }
  .progs-list .pg-amt { text-align: left; }
  .contact.list { grid-template-columns: 1fr; }
  .shot img { aspect-ratio: 16 / 10; }
  .foot ul a { padding: 10px 0; }
  /* lighter work while scrolling on phones: no grain overlay, sections fade in without sliding */
  body::after { display: none; }
  .js [data-reveal] { transform: none; transition: opacity .6s var(--ease); }
  .form .row { grid-template-columns: 1fr; }
  .seg { grid-template-columns: repeat(2, 1fr); }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .scene-label { font-size: .64rem; padding: 6px 8px; }
}

@media (max-width: 400px) {
  .foot { grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .timeline:not(.in) { --tl: 1; }
}

/* legal pages rendered from Legal/*.md */
.legal-text h2 { font-size: 1.3rem; }
.legal-text ol, .legal-text ul { margin: 10px 0; }
.form .sender { margin-top: -8px; }
