/* Third Shift — site styles
 *
 * The page is one night: deep navy at the top, a sunrise glow by the footer.
 * --p (0 to 1, scroll progress) is set on :root by effects.js and drives the sky.
 * Amber is the only accent. Mono (IBM Plex) is for machine output: the shift log, kickers, numbers.
 */

:root {
  --night-0: #050913;
  --night-1: #08101F;
  --night-2: #0D1730;
  --panel: #0D1629;
  --ink: #ECF1F8;
  --ink-2: #C3CFE0;
  --muted: #95A6BF;
  --faint: #6A7C98;
  --line: rgba(236, 241, 248, .09);
  --line-2: rgba(236, 241, 248, .17);
  --amber: #F2B055;
  --amber-hot: #FFD08A;
  --amber-deep: #D98E22;
  --amber-soft: rgba(242, 176, 85, .12);
  --dawn: #FF8F4D;
  --on-amber: #0B1222;
  --err: #FF8A73;
  --max: 1180px;
  --r: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --p: 0;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night-0);
  color: var(--ink);
  font-family: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: rgba(242, 176, 85, .35); color: var(--ink); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--amber); color: var(--on-amber); padding: .6rem 1rem; border-radius: 8px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* ---------------------------------------------------------------- Sky */

.sky {
  position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none;
  background: linear-gradient(180deg, #050913 0%, #07101F 55%, #0B1530 100%);
}
.stars, .stars::before, .stars::after { position: absolute; inset: 0; }
.stars { opacity: calc(1 - var(--p) * .85); }
.stars::before, .stars::after { content: ""; }
.stars::before {
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, .55), transparent 60%),
    radial-gradient(1px 1px at 34% 72%, rgba(255, 255, 255, .45), transparent 60%),
    radial-gradient(1.5px 1.5px at 58% 12%, rgba(255, 255, 255, .6), transparent 60%),
    radial-gradient(1px 1px at 76% 44%, rgba(255, 255, 255, .4), transparent 60%),
    radial-gradient(1px 1px at 90% 82%, rgba(255, 255, 255, .5), transparent 60%),
    radial-gradient(1.5px 1.5px at 22% 92%, rgba(255, 230, 190, .5), transparent 60%);
  background-size: 520px 520px;
}
.stars::after {
  background-image:
    radial-gradient(1px 1px at 8% 60%, rgba(255, 255, 255, .45), transparent 60%),
    radial-gradient(1px 1px at 46% 36%, rgba(255, 255, 255, .5), transparent 60%),
    radial-gradient(1.5px 1.5px at 68% 88%, rgba(255, 230, 190, .55), transparent 60%),
    radial-gradient(1px 1px at 84% 16%, rgba(255, 255, 255, .45), transparent 60%);
  background-size: 380px 380px;
  animation: twinkle 7s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .25; } to { opacity: 1; } }
.dawn {
  position: absolute; left: -20%; right: -20%; bottom: -22vh; height: 92vh;
  background:
    radial-gradient(ellipse 55% 70% at 50% 100%, rgba(255, 143, 77, .78), rgba(242, 150, 70, .32) 38%, rgba(242, 176, 85, .08) 62%, transparent 76%),
    linear-gradient(to top, rgba(255, 120, 60, .18), transparent 55%);
  opacity: calc(var(--p) * var(--p) * var(--p) * 1.1);
  transform: translateY(calc((1 - var(--p)) * 30vh));
}
/* The network of lights behind the whole page (night.js). */
.night { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none;
  background: linear-gradient(90deg, var(--amber-hot), var(--amber), var(--dawn));
  transform-origin: left; transform: scaleX(var(--p));
  box-shadow: 0 0 12px rgba(242, 176, 85, .7);
}
/* A soft ring that trails the pointer and swells over anything clickable (effects.js). */
.ring {
  position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none;
  width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  border: 1.5px solid rgba(242, 176, 85, .55);
  opacity: 0; transition: opacity .3s ease, width .25s var(--ease), height .25s var(--ease), margin .25s var(--ease), background-color .25s ease, border-color .25s ease;
  will-change: transform;
}
.ring.is-on { opacity: 1; }
.ring.is-hot { width: 58px; height: 58px; margin: -29px 0 0 -29px; background: rgba(242, 176, 85, .1); border-color: rgba(255, 208, 138, .8); }
.ring.is-down { width: 24px; height: 24px; margin: -12px 0 0 -12px; }
@media (hover: none) { .ring { display: none; } }
.spot {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(560px circle at var(--mx, -1000px) var(--my, -1000px), rgba(242, 176, 85, .065), transparent 65%);
}
@media (hover: none) { .spot { display: none; } }

/* ---------------------------------------------------------------- Header */

.top {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.top.is-scrolled {
  background: rgba(5, 9, 19, .74);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
}
.top-in { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.mark { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font-weight: 600; font-size: 1.15rem; letter-spacing: -.01em; }
.mark svg { width: 26px; height: 26px; }
.mark-moon { fill: var(--amber); }
.top nav { display: flex; gap: 1.8rem; align-items: center; font-size: .95rem; }
.nav-link {
  text-decoration: none; color: var(--muted);
  background: linear-gradient(var(--amber), var(--amber)) left bottom / 0 1px no-repeat;
  padding-bottom: 2px; transition: color .2s ease, background-size .3s var(--ease);
}
.nav-link:hover { color: var(--ink); background-size: 100% 1px; }
@media (max-width: 760px) { .nav-link { display: none; } }

/* ---------------------------------------------------------------- Buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: linear-gradient(180deg, var(--amber-hot), var(--amber) 70%);
  color: var(--on-amber);
  padding: .85rem 1.35rem; border-radius: 999px; border: 0;
  font: inherit; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
  box-shadow: 0 12px 30px -14px rgba(242, 176, 85, .75), inset 0 1px 0 rgba(255, 255, 255, .4);
  transition: box-shadow .3s ease, filter .2s ease, transform .35s var(--ease);
  will-change: transform;
}
.btn:hover { box-shadow: 0 16px 40px -12px rgba(242, 176, 85, .9), inset 0 1px 0 rgba(255, 255, 255, .5); filter: brightness(1.04); }
.btn:active { filter: brightness(.96); }
.btn:disabled { opacity: .6; cursor: progress; filter: none; }
.btn-sm { padding: .55rem 1rem; font-size: .95rem; }
.btn-lg { padding: 1rem 1.6rem; font-size: 1.05rem; }
.link-quiet { color: var(--ink-2); text-decoration: underline; text-decoration-color: rgba(195, 207, 224, .4); text-underline-offset: .25em; transition: color .2s, text-decoration-color .2s; }
.link-quiet:hover { color: var(--ink); text-decoration-color: var(--amber); }

/* ---------------------------------------------------------------- Hero */

.hero {
  position: relative;
  margin-top: -72px;
  padding: calc(72px + clamp(2.5rem, 7vh, 5rem)) 0 clamp(5rem, 11vh, 8rem);
  min-height: min(100svh, 1000px);
  display: grid; align-items: center;
  isolation: isolate;
}
.hero-in { display: grid; gap: 3rem; align-items: center; }
/* A soft shadow behind the headline so lights passing underneath never fight the text. */
.hero-copy { position: relative; }
.hero-copy::before {
  content: ""; position: absolute; inset: -12% -10% -12% -14%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(5, 9, 19, .78), rgba(5, 9, 19, .35) 60%, transparent);
}
@media (min-width: 980px) { .hero-in { grid-template-columns: 1.12fr .88fr; gap: 4.5rem; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: .65rem; margin: 0;
  font-size: .88rem; color: var(--ink-2);
  padding: .42rem .9rem .42rem .75rem; border: 1px solid var(--line-2); border-radius: 999px;
  background: rgba(13, 23, 48, .55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
@media (max-width: 420px) { .eyebrow { font-size: .8rem; border-radius: 14px; } }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); flex: none; }
.pulse::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1px solid var(--amber); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { from { transform: scale(.7); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }

h1 {
  font-size: clamp(2.9rem, 7.2vw, 5.8rem);
  line-height: .95; letter-spacing: -.042em; font-weight: 700;
  font-variation-settings: "opsz" 96;
  margin: 1.3rem 0 1.5rem;
}
h1 .line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
h1 .line > span { display: inline-block; }
.js h1 .line > span { animation: rise 1.1s var(--ease) both; }
.js h1 .line:nth-child(2) > span { animation-delay: .09s; }
.js h1 .line:nth-child(3) > span { animation-delay: .18s; }
@keyframes rise { from { transform: translateY(108%); } to { transform: none; } }
h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--amber-hot) 0%, var(--amber) 45%, var(--dawn) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: clamp(1.08rem, 1.45vw, 1.24rem); color: #B3C1D5; max-width: 35rem; margin: 0; text-wrap: pretty; }
.js .lede, .js .hero .actions, .js .hint { animation: fadeUp .9s var(--ease) both; }
.js .lede { animation-delay: .35s; }
.js .hero .actions { animation-delay: .45s; }
.js .hint { animation-delay: 1.1s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero .actions { display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; margin-top: 2.1rem; }
.hint { margin: 2.4rem 0 0; font-family: var(--mono); font-size: .8rem; color: var(--faint); display: flex; align-items: center; gap: .6rem; }
.hint::before { content: ""; width: 18px; height: 1px; background: var(--faint); flex: none; }
@media (hover: hover) { .hint-touch { display: none; } }
@media (hover: none) { .hint-fine { display: none; } }

.scroll-cue {
  position: absolute; left: 50%; bottom: 1.6rem; translate: -50% 0;
  width: 24px; height: 38px; border: 1.5px solid var(--line-2); border-radius: 999px;
}
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--amber); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(13px); } }
@media (max-width: 979px), (max-height: 720px) { .scroll-cue { display: none; } }

/* ---------------------------------------------------------------- Shift log */

.log {
  position: relative;
  background: linear-gradient(180deg, rgba(14, 23, 44, .9), rgba(7, 12, 25, .94));
  border: 1px solid var(--line-2); border-radius: 18px;
  padding: 1.15rem 1.3rem 1.2rem;
  font-family: var(--mono); font-size: .84rem; line-height: 1.5; color: #E2E9F3;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  will-change: transform;
}
.log::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: radial-gradient(240px circle at 85% 0%, rgba(242, 176, 85, .22), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  padding: 1px;
}
.log-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-bottom: .8rem; border-bottom: 1px solid rgba(236, 241, 248, .1); margin-bottom: .5rem; color: #9DB0CC; }
.log-head strong { color: var(--ink); font-weight: 500; }
.log-rows {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column;
  height: 17rem; overflow: hidden;
}
/* Once the night fills the panel, older rows scroll up and fade out under the header. */
.log-rows.is-full {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 3.2rem);
  mask-image: linear-gradient(to bottom, transparent 0, #000 3.2rem);
}
.log-rows li { flex: none; display: grid; grid-template-columns: 5.4em 1fr; gap: .75rem; padding: .34rem .45rem; margin: 0 -.45rem; border-radius: 6px; }
.log-rows time { color: #F2B55A; }
.log-rows li.flag span::before { content: ""; display: inline-block; width: .5em; height: .5em; border-radius: 50%; background: #F2B55A; margin-right: .5em; vertical-align: middle; box-shadow: 0 0 10px #F2B55A; }
.log-rows li.divider { grid-template-columns: 1fr; color: #6E81A0; text-align: center; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; padding-block: .6rem; }
.js .log-rows li:not(.live) { animation: rowIn .6s var(--ease) both; }
.js .log-rows li:not(.live):nth-child(1) { animation-delay: .5s; }
.js .log-rows li:not(.live):nth-child(2) { animation-delay: .9s; }
.js .log-rows li:not(.live):nth-child(3) { animation-delay: 1.3s; }
.js .log-rows li:not(.live):nth-child(4) { animation-delay: 1.7s; }
.js .log-rows li:not(.live):nth-child(5) { animation-delay: 2.1s; }
.log-rows li.live { animation: rowIn .5s var(--ease) both, flash 1.6s ease-out both; }
@keyframes rowIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes flash { from { background: rgba(242, 176, 85, .16); } to { background: transparent; } }
.log-foot { margin-top: .6rem; padding-top: .7rem; border-top: 1px solid rgba(236, 241, 248, .1); color: #9DB0CC; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.log-foot #log-done, .log-foot #log-held { color: var(--ink); font-variant-numeric: tabular-nums; }
.cursor::after { content: "▍"; color: #F2B55A; animation: blink 1.1s steps(1) infinite; margin-left: .15em; }
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 520px) { .log { font-size: .78rem; padding: 1rem 1rem 1.1rem; } .log-rows { height: 15rem; } }

/* ---------------------------------------------------------------- Tool band */

.band { border-block: 1px solid var(--line); background: rgba(8, 14, 28, .55); padding: 1.3rem 0 1.5rem; }
.band-label { margin: 0 0 .9rem; text-align: center; font-family: var(--mono); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.band-view {
  display: flex; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.band-track { flex: none; display: flex; gap: 3.2rem; padding: 0 3.2rem 0 0; margin: 0; list-style: none; animation: marquee 45s linear infinite; }
.band-track li { font-size: 1.12rem; font-weight: 600; letter-spacing: -.01em; color: #5F7190; white-space: nowrap; transition: color .2s; }
.band-track li:hover { color: var(--ink); }
.band-view:hover .band-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------------------------------------------------------------- Sections */

.section { position: relative; padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.sec-head { max-width: 46rem; margin-bottom: 3rem; }
.kicker {
  display: flex; align-items: center; gap: .7rem; margin: 0 0 1rem;
  font-family: var(--mono); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--amber);
}
.kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; }
h2 {
  font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.04; letter-spacing: -.032em; font-weight: 600;
  font-variation-settings: "opsz" 72; margin: 0 0 1rem; text-wrap: balance;
}
h3 { letter-spacing: -.012em; }
.intro { color: var(--muted); font-size: 1.12rem; max-width: 40rem; margin: 0; text-wrap: pretty; }

/* Pointer-following glow border, shared by cards, the calculator and the form.
   effects.js sets --gx/--gy on hover; without it the glow sits at the top. */
/* Panels let a hint of the night through on wide screens; on phones, where a card fills the
   width, they're near-solid so passing lights never sit over the words. The amber edge is a masked ring. */
[data-glow] {
  position: relative; isolation: isolate;
  background: rgba(13, 22, 41, .88);
  border: 1px solid var(--line-2);
}
@media (max-width: 759px) { [data-glow] { background: rgba(13, 22, 41, .96); } }
[data-glow]::after {
  content: ""; position: absolute; inset: -1px; padding: 1px; border-radius: inherit; pointer-events: none;
  background: radial-gradient(440px circle at var(--gx, 50%) var(--gy, -30%), rgba(242, 176, 85, .75), transparent 46%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
[data-glow]::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(380px circle at var(--gx, 50%) var(--gy, 0%), rgba(242, 176, 85, .09), transparent 62%);
  opacity: 0; transition: opacity .35s ease;
}
[data-glow]:hover::before, [data-glow]:focus-within::before { opacity: 1; }

/* Scroll reveal. .fx is added by effects.js once the observer is running,
   so nothing stays hidden if the script never loads. */
.fx [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease), rotate .6s var(--ease); transition-delay: var(--d, 0ms), var(--d, 0ms), 0ms; }
.fx [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- Service cards */

.cards { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .cards { grid-template-columns: 1fr 1fr; } }
.cards { perspective: 1400px; }
/* effects.js tilts cards toward the pointer with the rotate property, so it never fights the reveal transform. */
.card { border-radius: var(--r); padding: 1.5rem 1.6rem 1.8rem; transition: rotate .6s var(--ease); }
.card h3 { margin: 0 0 .5rem; font-size: 1.28rem; font-weight: 600; }
.card p { margin: 0; color: var(--muted); }

.viz {
  container-type: inline-size;
  position: relative; height: 140px; margin-bottom: 1.5rem; overflow: hidden;
  border-radius: 12px; border: 1px solid var(--line); background: rgba(5, 9, 19, .62);
}
.viz::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(236, 241, 248, .07) 1px, transparent 1px); background-size: 16px 16px; }
.js .card:not(.is-in) .viz * { animation-play-state: paused; }

/* Each card's illustration is a small product at work. Loops are seamless: whatever is on screen
   at 100% is invisible or identical at 0%, so nothing ever parks or snaps. Base styles are the
   finished picture, which is what reduced-motion visitors see. */
.viz[data-label]::before {
  content: attr(data-label); position: absolute; left: 12px; top: 10px; z-index: 1;
  font-family: var(--mono); font-size: 9px; letter-spacing: .16em; color: var(--faint);
}
.viz-tag {
  position: absolute; padding: 4px 9px; border-radius: 999px; z-index: 1;
  font: 600 9px/1.2 var(--mono); letter-spacing: .12em; white-space: nowrap;
}

/* Invoices: four documents share one 4.8s loop, a quarter apart. Each slides in, is checked at the
   scan line, and drops into Posted; the fourth is held for Review. The trays light up on arrival. */
.viz-ap .lane { position: absolute; left: 12px; right: 100px; top: 50%; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2) 25%, var(--line-2)); }
.viz-ap .scan {
  position: absolute; left: calc(46% - 1px); top: 30px; bottom: 26px; width: 2px; border-radius: 2px;
  background: linear-gradient(transparent, var(--amber), transparent); box-shadow: 0 0 14px rgba(242, 176, 85, .6);
  animation: scan 1.2s ease-in-out infinite both;
}
.viz-ap .tray {
  position: absolute; right: 14px; width: 78px; height: 46px; border-radius: 9px;
  display: grid; place-items: end center; padding-bottom: 6px;
  font-family: var(--mono); font-size: 9px; letter-spacing: .14em; color: var(--faint);
  border: 1px dashed var(--line-2);
}
.viz-ap .tray-ok { top: 18px; border-color: rgba(242, 176, 85, .55); background: rgba(242, 176, 85, .05); color: rgba(255, 208, 138, .85); animation: trayOk 4.8s ease-out infinite both; }
.viz-ap .tray-hold { bottom: 14px; animation: trayHold 4.8s ease-out infinite both; }
.viz-ap .tray-ok::after { content: "POSTED"; }
.viz-ap .tray-hold::after { content: "REVIEW"; }
.viz-ap .doc {
  position: absolute; left: 14px; top: calc(50% - 19px); width: 30px; height: 38px; border-radius: 4px;
  background: linear-gradient(#2A3D66, #1B2849); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09);
  animation: docFlow 4.8s linear infinite both;
}
.viz-ap .doc::before { content: ""; position: absolute; inset: 9px 6px 11px; background: repeating-linear-gradient(180deg, rgba(236, 241, 248, .28) 0 2px, transparent 2px 6px); }
.viz-ap .d2 { animation-delay: -1.2s; }
.viz-ap .d3 { animation-delay: -2.4s; }
.viz-ap .d4 { animation-name: docHold; animation-delay: -3.6s; }
@keyframes docFlow {
  0% { opacity: 0; transform: translate(0, 0); }
  6% { opacity: 1; }
  38% { transform: translate(calc(46cqw - 29px), 0); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09); }
  45% { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09), 0 0 0 1.5px rgba(242, 176, 85, .8), 0 0 16px rgba(242, 176, 85, .4); }
  52% { transform: translate(calc(46cqw - 29px), 0); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09); }
  80% { opacity: 1; transform: translate(calc(100cqw - 99px), -31px) scale(.6); }
  86%, 100% { opacity: 0; transform: translate(calc(100cqw - 99px), -28px) scale(.5); }
}
@keyframes docHold {
  0% { opacity: 0; transform: translate(0, 0); }
  6% { opacity: 1; }
  38% { transform: translate(calc(46cqw - 29px), 0); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09); }
  45%, 52% { transform: translate(calc(46cqw - 29px), 0); box-shadow: 0 0 0 2px var(--amber), 0 0 24px rgba(242, 176, 85, .6); }
  80% { opacity: 1; transform: translate(calc(100cqw - 99px), 28px) scale(.6); box-shadow: 0 0 0 2px var(--amber), 0 0 16px rgba(242, 176, 85, .5); }
  86%, 100% { opacity: 0; transform: translate(calc(100cqw - 99px), 24px) scale(.5); box-shadow: 0 0 0 2px var(--amber); }
}
@keyframes scan { 0%, 100% { opacity: .5; transform: scaleY(.75); } 8%, 52% { opacity: .2; transform: scaleY(.55); } 80% { opacity: 1; transform: scaleY(1); } }
@keyframes trayOk {
  0%, 27%, 35%, 52%, 60%, 77%, 85%, 100% { box-shadow: none; background-color: rgba(242, 176, 85, .05); }
  30%, 55%, 80% { box-shadow: 0 0 20px rgba(242, 176, 85, .45); background-color: rgba(242, 176, 85, .16); }
}
@keyframes trayHold { 0%, 14%, 100% { box-shadow: none; border-color: var(--line-2); color: var(--faint); } 5% { box-shadow: 0 0 20px rgba(242, 176, 85, .45); border-color: var(--amber); color: var(--amber-hot); } }

/* Lead intake: an inquiry types itself in, travels to the CRM, lands as a new row, reply goes out. */
.viz-leads .msg {
  position: absolute; left: 14px; top: 38px; width: 38%; height: 60px; padding: 13px 12px; border-radius: 12px 12px 12px 3px;
  display: grid; align-content: start; gap: 8px;
  background: rgba(242, 176, 85, .12); box-shadow: inset 0 0 0 1px rgba(242, 176, 85, .45);
  animation: msgIn 6s var(--ease) infinite both;
}
.viz-leads .msg > span { display: block; height: 6px; border-radius: 3px; background: rgba(255, 208, 138, .6); transform-origin: left; }
.viz-leads .msg-l1 { width: 88%; animation: typeA 6s ease-out infinite both; }
.viz-leads .msg-l2 { width: 56%; animation: typeB 6s ease-out infinite both; }
.viz-leads .packet {
  position: absolute; left: calc(14px + 38%); top: 64px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%;
  background: var(--amber-hot); box-shadow: 0 0 14px var(--amber), 0 0 4px #fff;
  animation: packet 6s var(--ease) infinite both;
}
.viz-leads .crm { position: absolute; right: 14px; top: 32px; width: 44%; display: grid; gap: 6px; }
.viz-leads .crm-row { position: relative; height: 20px; padding: 0 8px; border-radius: 6px; display: flex; align-items: center; gap: 8px; background: rgba(236, 241, 248, .05); box-shadow: inset 0 0 0 1px var(--line); }
.viz-leads .crm-dot { width: 6px; height: 6px; border-radius: 50%; flex: none; background: var(--faint); }
.viz-leads .crm-l { flex: 1; max-width: 72%; height: 5px; border-radius: 3px; background: rgba(236, 241, 248, .2); transform-origin: left; }
.viz-leads .crm-row:nth-child(3) .crm-l { max-width: 52%; }
.viz-leads .crm-new { background: rgba(242, 176, 85, .14); box-shadow: inset 0 0 0 1px rgba(242, 176, 85, .5); animation: rowNew 6s var(--ease) infinite both; }
.viz-leads .crm-new .crm-dot { background: var(--amber); box-shadow: 0 0 8px var(--amber); animation: dotOn 6s ease infinite both; }
.viz-leads .crm-new .crm-l { background: rgba(255, 208, 138, .65); animation: rowFill 6s var(--ease) infinite both; }
.viz-leads .reply { right: 14px; bottom: 12px; background: var(--amber); color: var(--on-amber); box-shadow: 0 0 18px rgba(242, 176, 85, .5); animation: replyIn 6s var(--ease) infinite both; }
@keyframes msgIn { 0% { opacity: 0; transform: translateX(-14px); } 8%, 42% { opacity: 1; transform: none; } 52%, 88% { opacity: .35; transform: scale(.96); } 96%, 100% { opacity: 0; transform: scale(.96); } }
@keyframes typeA { 0%, 9% { transform: scaleX(0); } 21%, 100% { transform: scaleX(1); } }
@keyframes typeB { 0%, 16% { transform: scaleX(0); } 29%, 100% { transform: scaleX(1); } }
@keyframes packet { 0%, 40% { opacity: 0; transform: translateX(0); } 43% { opacity: 1; } 53% { opacity: 1; transform: translateX(calc(18cqw - 24px)); } 56%, 100% { opacity: 0; transform: translateX(calc(18cqw - 24px)); } }
@keyframes rowNew {
  0%, 52% { background: transparent; box-shadow: inset 0 0 0 1px rgba(236, 241, 248, .14); }
  55% { background: rgba(242, 176, 85, .34); box-shadow: inset 0 0 0 1px var(--amber), 0 0 20px rgba(242, 176, 85, .5); }
  70%, 90% { background: rgba(242, 176, 85, .14); box-shadow: inset 0 0 0 1px rgba(242, 176, 85, .5); }
  97%, 100% { background: transparent; box-shadow: inset 0 0 0 1px rgba(236, 241, 248, .14); }
}
@keyframes dotOn { 0%, 53% { opacity: 0; } 57%, 92% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes rowFill { 0%, 54% { transform: scaleX(0); } 64%, 92% { transform: scaleX(1); } 97%, 100% { transform: scaleX(0); } }
@keyframes replyIn { 0%, 62% { opacity: 0; transform: translateY(6px) scale(.9); } 68%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: translateY(-4px); } }

/* Reporting: bars rise, the trend line draws itself, the peak pings, the report is marked ready. */
.viz-report .bars { position: absolute; left: 16px; right: 16px; bottom: 16px; height: 66px; display: flex; align-items: flex-end; gap: 7%; }
.viz-report .bar { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: linear-gradient(180deg, rgba(242, 176, 85, .5), rgba(242, 176, 85, .07)); transform-origin: bottom; animation: grow 6s var(--ease) infinite both; }
.viz-report .b1 { --h: 30%; } .viz-report .b2 { --h: 48%; animation-delay: .1s; } .viz-report .b3 { --h: 40%; animation-delay: .2s; }
.viz-report .b4 { --h: 64%; animation-delay: .3s; } .viz-report .b5 { --h: 56%; animation-delay: .4s; } .viz-report .b6 { --h: 84%; animation-delay: .5s; }
.viz-report .trend { position: absolute; left: 16px; top: 34px; width: calc(100% - 32px); height: 58px; overflow: visible; }
.viz-report .trend path { fill: none; stroke: var(--amber-hot); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; filter: drop-shadow(0 0 3px rgba(242, 176, 85, .8)); animation: draw 6s var(--ease) infinite both; }
.viz-report .peak { position: absolute; right: 11px; top: 37px; width: 10px; height: 10px; border-radius: 50%; background: var(--amber-hot); box-shadow: 0 0 0 4px rgba(242, 176, 85, .25), 0 0 16px var(--amber); animation: peak 6s var(--ease) infinite both; }
.viz-report .ready { right: 12px; top: 7px; color: var(--amber-hot); box-shadow: inset 0 0 0 1px rgba(242, 176, 85, .55); background: rgba(242, 176, 85, .1); animation: tagIn 6s var(--ease) infinite both; }
@keyframes grow { 0%, 4% { transform: scaleY(0); } 22%, 88% { transform: scaleY(1); } 96%, 100% { transform: scaleY(0); } }
@keyframes draw { 0%, 18% { stroke-dashoffset: 1; opacity: 1; } 52%, 88% { stroke-dashoffset: 0; opacity: 1; } 96%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes peak { 0%, 50% { opacity: 0; transform: scale(0); } 56% { opacity: 1; transform: scale(1.4); } 62%, 88% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; transform: scale(.6); } }
@keyframes tagIn { 0%, 58% { opacity: 0; transform: translateY(-4px); } 64%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: none; } }

/* The routine in someone's head: the checklist ticks and strikes itself off, then gets a schedule. */
.viz-list .items { position: absolute; left: 16px; right: 40%; top: 34px; display: grid; gap: 11px; animation: listFade 6s ease infinite both; }
.viz-list .item { display: flex; align-items: center; gap: 10px; }
.viz-list .box { position: relative; flex: none; width: 15px; height: 15px; border-radius: 4px; border: 1.5px solid var(--amber); background: var(--amber); animation: 6s var(--ease) infinite both; }
.viz-list .box::after { content: ""; position: absolute; left: 3.5px; top: .5px; width: 4px; height: 8px; border: solid var(--on-amber); border-width: 0 2px 2px 0; transform: rotate(45deg); animation: 6s var(--ease) infinite both; }
.viz-list .txt { position: relative; height: 6px; border-radius: 3px; background: rgba(236, 241, 248, .24); width: 100%; animation: 6s ease infinite both; }
.viz-list .i2 .txt { width: 78%; } .viz-list .i3 .txt { width: 88%; } .viz-list .i4 .txt { width: 64%; }
.viz-list .txt::after { content: ""; position: absolute; left: -3px; right: -3px; top: 50%; height: 1.5px; margin-top: -.75px; background: var(--amber-hot); transform-origin: left; animation: 6s var(--ease) infinite both; }
.viz-list .sched { right: 14px; bottom: 14px; color: var(--amber-hot); box-shadow: inset 0 0 0 1px rgba(242, 176, 85, .55); background: rgba(242, 176, 85, .1); animation: tagIn 6s var(--ease) infinite both; }
@keyframes listFade { 0% { opacity: 0; } 5%, 86% { opacity: 1; } 94%, 100% { opacity: 0; } }
@keyframes box1 { 0%, 12% { background: transparent; border-color: var(--line-2); box-shadow: none; } 14% { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 14px var(--amber); } 20%, 100% { background: var(--amber); border-color: var(--amber); box-shadow: none; } }
@keyframes check1 { 0%, 13% { transform: rotate(45deg) scale(0); } 17%, 100% { transform: rotate(45deg) scale(1); } }
@keyframes strike1 { 0%, 15% { transform: scaleX(0); } 21%, 100% { transform: scaleX(1); } }
@keyframes dim1 { 0%, 17% { opacity: 1; } 22%, 100% { opacity: .45; } }
.viz-list .i1 .box { animation-name: box1; }
.viz-list .i1 .box::after { animation-name: check1; }
.viz-list .i1 .txt::after { animation-name: strike1; }
.viz-list .i1 .txt { animation-name: dim1; }
@keyframes box2 { 0%, 24% { background: transparent; border-color: var(--line-2); box-shadow: none; } 26% { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 14px var(--amber); } 32%, 100% { background: var(--amber); border-color: var(--amber); box-shadow: none; } }
@keyframes check2 { 0%, 25% { transform: rotate(45deg) scale(0); } 29%, 100% { transform: rotate(45deg) scale(1); } }
@keyframes strike2 { 0%, 27% { transform: scaleX(0); } 33%, 100% { transform: scaleX(1); } }
@keyframes dim2 { 0%, 29% { opacity: 1; } 34%, 100% { opacity: .45; } }
.viz-list .i2 .box { animation-name: box2; }
.viz-list .i2 .box::after { animation-name: check2; }
.viz-list .i2 .txt::after { animation-name: strike2; }
.viz-list .i2 .txt { animation-name: dim2; }
@keyframes box3 { 0%, 36% { background: transparent; border-color: var(--line-2); box-shadow: none; } 38% { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 14px var(--amber); } 44%, 100% { background: var(--amber); border-color: var(--amber); box-shadow: none; } }
@keyframes check3 { 0%, 37% { transform: rotate(45deg) scale(0); } 41%, 100% { transform: rotate(45deg) scale(1); } }
@keyframes strike3 { 0%, 39% { transform: scaleX(0); } 45%, 100% { transform: scaleX(1); } }
@keyframes dim3 { 0%, 41% { opacity: 1; } 46%, 100% { opacity: .45; } }
.viz-list .i3 .box { animation-name: box3; }
.viz-list .i3 .box::after { animation-name: check3; }
.viz-list .i3 .txt::after { animation-name: strike3; }
.viz-list .i3 .txt { animation-name: dim3; }
@keyframes box4 { 0%, 48% { background: transparent; border-color: var(--line-2); box-shadow: none; } 50% { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 14px var(--amber); } 56%, 100% { background: var(--amber); border-color: var(--amber); box-shadow: none; } }
@keyframes check4 { 0%, 49% { transform: rotate(45deg) scale(0); } 53%, 100% { transform: rotate(45deg) scale(1); } }
@keyframes strike4 { 0%, 51% { transform: scaleX(0); } 57%, 100% { transform: scaleX(1); } }
@keyframes dim4 { 0%, 53% { opacity: 1; } 58%, 100% { opacity: .45; } }
.viz-list .i4 .box { animation-name: box4; }
.viz-list .i4 .box::after { animation-name: check4; }
.viz-list .i4 .txt::after { animation-name: strike4; }
.viz-list .i4 .txt { animation-name: dim4; }

/* ---------------------------------------------------------------- Overnight audit */

.audit { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 980px) { .audit { grid-template-columns: .85fr 1.15fr; gap: 4.5rem; } .audit-copy { position: sticky; top: 110px; } }
.audit-score { display: flex; align-items: flex-end; gap: 1rem; margin: 2.2rem 0 1rem; }
.audit-num {
  display: inline-block; font-size: clamp(4.5rem, 10vw, 7rem); line-height: .8; font-weight: 700; letter-spacing: -.05em;
  font-variant-numeric: tabular-nums; font-variation-settings: "opsz" 96;
  background: linear-gradient(100deg, var(--amber-hot), var(--amber) 50%, var(--dawn)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.audit-num.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.14); } }
.audit-of { color: var(--muted); font-size: .95rem; line-height: 1.3; padding-bottom: .4rem; }
.audit-meter { height: 6px; border-radius: 999px; background: rgba(236, 241, 248, .1); overflow: hidden; margin-bottom: 1.2rem; }
.audit-meter span { display: block; height: 100%; transform-origin: left; transform: scaleX(var(--audit, 0)); background: linear-gradient(90deg, var(--amber), var(--dawn)); box-shadow: 0 0 14px rgba(242, 176, 85, .6); transition: transform .5s var(--ease); }
.audit-verdict { margin: 0 0 1.4rem; color: var(--ink-2); min-height: 3.2em; }
.audit-list { border: 0; margin: 0; padding: 0; min-width: 0; }
.audit-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
@media (min-width: 640px) { .audit-list ul { grid-template-columns: 1fr 1fr; } }
.tick {
  position: relative; display: flex; align-items: center; gap: .9rem; height: 100%;
  padding: 1rem 1.1rem; border-radius: 14px; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line-2);
  transition: border-color .25s, background-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.tick:hover { border-color: rgba(242, 176, 85, .45); transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(242, 176, 85, .5); }
.tick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tick-box { position: relative; flex: none; width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--line-2); transition: background-color .2s, border-color .2s, box-shadow .3s; }
.tick-box::after { content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid var(--on-amber); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(0); transition: transform .25s var(--ease); }
.tick-text { font-size: .98rem; line-height: 1.35; color: var(--ink-2); }
.tick input:checked ~ .tick-box { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 16px rgba(242, 176, 85, .55); }
.tick input:checked ~ .tick-box::after { transform: rotate(45deg) scale(1); }
.tick:has(input:checked) { border-color: rgba(242, 176, 85, .55); background: linear-gradient(var(--amber-soft), var(--amber-soft)), var(--panel); }
.tick:has(input:checked) .tick-text { color: var(--ink); }
.tick input:focus-visible ~ .tick-box { outline: 3px solid var(--amber); outline-offset: 3px; }

/* ---------------------------------------------------------------- Jobs chip and phone call-to-action */

.chip {
  position: fixed; left: 1.25rem; bottom: 1.25rem; z-index: 55; max-width: 330px;
  display: grid; grid-template-columns: 1fr auto; gap: .7rem 1rem; align-items: center;
  padding: 1rem 1.1rem; border-radius: 16px;
  background: rgba(10, 17, 34, .92); border: 1px solid rgba(242, 176, 85, .4);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .8), 0 0 30px -10px rgba(242, 176, 85, .4);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: .9rem; color: var(--ink-2);
  animation: chipIn .6s var(--ease) both;
}
.chip[hidden] { display: none; }
.chip p { margin: 0; grid-column: 1; }
.chip p strong { font-family: var(--mono); color: var(--amber-hot); font-size: 1.05rem; }
.chip p span { display: block; color: var(--muted); font-size: .84rem; margin-top: .15rem; }
.chip-cta { grid-column: 1; justify-self: start; color: var(--on-amber); background: var(--amber); padding: .45rem .85rem; border-radius: 999px; font-weight: 600; font-size: .88rem; text-decoration: none; }
.chip-cta:hover { background: var(--amber-hot); }
.chip-x { grid-column: 2; grid-row: 1; align-self: start; position: relative; width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(236, 241, 248, .08); cursor: pointer; }
.chip-x::before, .chip-x::after { content: ""; position: absolute; left: 7px; right: 7px; top: 12px; height: 1.5px; background: var(--muted); transform: rotate(45deg); }
.chip-x::after { transform: rotate(-45deg); }
.chip-x:hover { background: rgba(236, 241, 248, .16); }
@keyframes chipIn { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) { .chip { display: none; } }

.mobile-cta {
  position: fixed; left: 1rem; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 55;
  display: none; text-align: center; padding: 1rem; border-radius: 999px;
  background: linear-gradient(180deg, var(--amber-hot), var(--amber) 70%); color: var(--on-amber); font-weight: 600; text-decoration: none;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .7), 0 0 30px -6px rgba(242, 176, 85, .6);
  transform: translateY(160%); transition: transform .45s var(--ease);
}
.mobile-cta.is-on { transform: none; }
@media (max-width: 760px) { .mobile-cta { display: block; } .foot { padding-bottom: 6.5rem; } }

/* ---------------------------------------------------------------- Calculator */

.calc { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 980px) { .calc { grid-template-columns: .9fr 1.1fr; gap: 4.5rem; } }
.assume { margin: 2.2rem 0 0; display: grid; gap: 1.1rem; }
.assume div { border-left: 2px solid var(--line-2); padding-left: 1rem; }
.assume dt { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: .2rem; }
.assume dd { margin: 0; color: var(--muted); font-size: .95rem; }

.calc-panel { border-radius: 22px; padding: clamp(1.4rem, 3vw, 2.2rem); display: grid; gap: 1.7rem; }
.range { display: grid; gap: .8rem; }
.range-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-weight: 500; color: var(--ink-2); }
.range output { font-family: var(--mono); font-size: 1.1rem; color: var(--amber-hot); font-variant-numeric: tabular-nums; white-space: nowrap; }

input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; margin: 8px 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(90deg, var(--amber) var(--fill, 15%), rgba(236, 241, 248, .14) var(--fill, 15%));
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--amber-hot); border: 4px solid var(--on-amber);
  box-shadow: 0 0 0 1px rgba(242, 176, 85, .6), 0 0 20px rgba(242, 176, 85, .45);
  transition: transform .2s var(--ease);
}
input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%; background: var(--amber-hot); border: 4px solid var(--on-amber);
  box-shadow: 0 0 0 1px rgba(242, 176, 85, .6), 0 0 20px rgba(242, 176, 85, .45);
}
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--amber), 0 0 20px rgba(242, 176, 85, .6); }
input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--amber), 0 0 20px rgba(242, 176, 85, .6); }

.seg { border: 0; padding: 0; margin: 0; min-width: 0; }
.seg legend { padding: 0; margin-bottom: .8rem; font-weight: 500; color: var(--ink-2); }
.seg-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .35rem; padding: .3rem; border-radius: 13px; border: 1px solid var(--line); background: rgba(5, 9, 19, .6); }
.seg-opts label { position: relative; }
.seg-opts input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.seg-opts span { display: grid; place-items: center; height: 100%; text-align: center; padding: .65rem .5rem; border-radius: 10px; font-size: .92rem; line-height: 1.25; color: var(--muted); transition: background-color .2s, color .2s, box-shadow .2s; }
.seg-opts label:hover span { color: var(--ink); }
.seg-opts input:checked + span { background: var(--amber-soft); color: var(--amber-hot); box-shadow: inset 0 0 0 1px rgba(242, 176, 85, .45); }
.seg-opts input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }

.calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 1.5rem; padding: 1.5rem 0; border-block: 1px solid var(--line); }
.stat-big { grid-column: 1 / -1; }
.stat-num { display: block; font-weight: 700; letter-spacing: -.035em; line-height: 1; font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-variant-numeric: tabular-nums; font-variation-settings: "opsz" 96; }
.stat-big .stat-num {
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  background: linear-gradient(100deg, var(--amber-hot), var(--amber) 50%, var(--dawn));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-lbl { display: block; margin-top: .45rem; color: var(--muted); font-size: .9rem; }
.verdict { margin: 0; padding: .95rem 1.1rem; border-radius: 12px; color: var(--ink-2); background: rgba(236, 241, 248, .05); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .3s, box-shadow .3s; }
.verdict strong { color: var(--ink); }
.verdict[data-level="strong"] { background: var(--amber-soft); box-shadow: inset 0 0 0 1px rgba(242, 176, 85, .35); }
.verdict[data-level="strong"] strong { color: var(--amber-hot); }
.verdict[data-level="worth"] { background: rgba(157, 176, 204, .1); box-shadow: inset 0 0 0 1px rgba(157, 176, 204, .25); }
#calc-send { justify-self: start; }

/* ---------------------------------------------------------------- Steps */

.steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 2.6rem; max-width: 46rem; }
.steps::before { content: ""; position: absolute; left: 22px; top: 12px; bottom: 12px; width: 2px; background: var(--line-2); border-radius: 2px; }
.js .steps::after {
  content: ""; position: absolute; left: 22px; top: 12px; bottom: 12px; width: 2px; border-radius: 2px;
  background: linear-gradient(var(--amber-hot), var(--amber));
  box-shadow: 0 0 12px rgba(242, 176, 85, .6);
  transform-origin: top; transform: scaleY(var(--steps-p, 0));
}
.steps li { position: relative; padding-left: 4.4rem; }
.step-n {
  position: absolute; left: 0; top: -.25rem; z-index: 1; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--mono); color: var(--amber);
  background: var(--panel); border: 1px solid var(--line-2);
  transition: border-color .5s ease, box-shadow .5s ease;
}
.steps li.is-in .step-n { border-color: var(--amber); box-shadow: 0 0 0 6px rgba(242, 176, 85, .08), 0 0 26px rgba(242, 176, 85, .35); }
.steps h3 { margin: 0 0 .35rem; font-size: 1.3rem; font-weight: 600; }
.steps p { margin: 0; color: var(--muted); }

/* ---------------------------------------------------------------- Principles */

.principles { display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
@media (min-width: 760px) { .principles { grid-template-columns: 1fr 1fr; } }
.principles li { background: var(--night-1); padding: clamp(1.5rem, 3vw, 2.2rem); transition: background-color .3s; }
.principles li:hover { background: #0B1428; }
.principles h3 { margin: 0 0 .5rem; font-size: 1.22rem; font-weight: 600; }
.principles h3::before { content: ""; display: block; width: 28px; height: 2px; margin-bottom: 1.1rem; background: var(--amber); box-shadow: 0 0 12px rgba(242, 176, 85, .7); }
.principles p { margin: 0; color: var(--muted); }

/* ---------------------------------------------------------------- Fit */

.fit { display: grid; gap: 3rem; }
@media (min-width: 860px) { .fit { grid-template-columns: 1fr 1fr; gap: 4.5rem; } }
.fit h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.fit p:not(.kicker) { color: var(--muted); margin: 0 0 1rem; }

/* ---------------------------------------------------------------- FAQ */

.faq { display: grid; gap: 1rem; }
@media (min-width: 980px) { .faq { grid-template-columns: .75fr 1.25fr; gap: 4.5rem; } }
.faq-list { border-top: 1px solid var(--line-2); }
.faq-list details { border-bottom: 1px solid var(--line-2); }
.faq-list summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 1.35rem 3rem 1.35rem 0; font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em;
  transition: color .2s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--amber-hot); }
.faq-list summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(var(--amber), var(--amber)) center / 14px 2px no-repeat, linear-gradient(var(--amber), var(--amber)) center / 2px 14px no-repeat;
  transition: transform .35s var(--ease);
}
.faq-list details[open] summary::after { transform: rotate(135deg); }
.faq-list details p { margin: 0 0 1.4rem; color: var(--muted); max-width: 42rem; }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq-list details::details-content { block-size: 0; overflow: clip; transition: block-size .4s var(--ease), content-visibility .4s allow-discrete; }
  .faq-list details[open]::details-content { block-size: auto; }
}

/* ---------------------------------------------------------------- Contact */

.contact { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 980px) { .contact { grid-template-columns: .8fr 1.2fr; gap: 4.5rem; } }
.contact .side p:not(.kicker) { color: var(--muted); }
.contact .side a { color: var(--amber-hot); text-decoration: none; }
.contact .side a:hover { text-decoration: underline; }
form#lead { border-radius: 22px; padding: 1.5rem; display: grid; gap: 1.1rem; }
@media (min-width: 640px) { form#lead { padding: 2.2rem; grid-template-columns: 1fr 1fr; } form#lead .full { grid-column: 1 / -1; } }
form#lead label { display: grid; gap: .45rem; font-size: .92rem; font-weight: 500; color: var(--ink-2); }
label .opt { color: var(--faint); font-weight: 400; }
input:not([type="range"]):not([type="radio"]), textarea {
  font: inherit; font-size: 1rem; color: var(--ink); width: 100%;
  background: rgba(5, 9, 19, .6); border: 1px solid var(--line-2); border-radius: 11px; padding: .8rem .95rem;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
input:not([type="range"]):not([type="radio"]):hover, textarea:hover { border-color: rgba(236, 241, 248, .3); }
input:not([type="range"]):not([type="radio"]):focus, textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 4px rgba(242, 176, 85, .16); background: rgba(5, 9, 19, .8); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--err); }
::placeholder { color: var(--faint); opacity: 1; }
textarea { min-height: 8.5rem; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.note { font-size: .92rem; color: var(--muted); margin: 0; }
.note.err { color: var(--err); }
.fine { font-size: .84rem; color: var(--faint); margin: 0; }
.fine a { color: var(--muted); }
.sent { padding: 1.4rem 1.5rem; border-radius: 14px; background: var(--amber-soft); box-shadow: inset 0 0 0 1px rgba(242, 176, 85, .35); }
.sent strong { display: block; margin-bottom: .25rem; font-size: 1.15rem; color: var(--amber-hot); }
.sent:focus { outline: none; }

/* ---------------------------------------------------------------- Footer */

.foot { position: relative; padding: clamp(5rem, 12vw, 9rem) 0 3rem; color: var(--ink-2); font-size: .92rem; }
.foot-line {
  margin: 0 0 clamp(3rem, 7vw, 5rem);
  font-size: clamp(2.3rem, 6.4vw, 5rem); line-height: 1; letter-spacing: -.04em; font-weight: 700; color: var(--ink);
  font-variation-settings: "opsz" 96; text-wrap: balance;
}
.foot-line span { background: linear-gradient(100deg, var(--amber-hot), var(--dawn)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.foot-grid { display: grid; gap: 1.4rem; padding-top: 2rem; border-top: 1px solid rgba(236, 241, 248, .16); }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1fr auto; align-items: start; } }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.3rem; flex-wrap: wrap; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .2em; }

/* ---------------------------------------------------------------- Simple pages (privacy, 404) */

.page { padding: clamp(3rem, 8vw, 6rem) 0 5rem; }
.page .wrap { max-width: 46rem; }
.page h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); margin: 0 0 1rem; }
.page h2 { font-size: 1.4rem; margin: 2.6rem 0 .6rem; }
.page p, .page li { color: var(--muted); }
.page ul { padding-left: 1.2rem; }
.page a:not(.btn) { color: var(--amber-hot); }
.page .updated { font-family: var(--mono); font-size: .8rem; color: var(--faint); }
.lost { min-height: calc(100svh - 72px); display: grid; place-items: center; text-align: center; padding: 2rem 0 6rem; }
.lost h1 { margin-bottom: .8rem; }
.lost p { color: var(--muted); margin: 0 0 2rem; }

/* ---------------------------------------------------------------- Reduced motion */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
  .band-track { animation: none !important; }
  .band-view { overflow-x: auto; }
  .viz * { animation: none !important; }
  .viz-ap .d2 { transform: translate(calc(46cqw - 29px), 0); }
  .viz-ap .d3 { transform: translate(calc(100cqw - 99px), -31px) scale(.6); }
  .viz-ap .d4 { transform: translate(calc(100cqw - 99px), 28px) scale(.6); box-shadow: 0 0 0 2px var(--amber); }
  .viz-leads .msg { opacity: .35; }
  .viz-leads .packet { opacity: 0; }
  .ring, .progress { display: none; }
  .mobile-cta { transition: none; }
  .fx [data-reveal] { transform: none; }
  .spot, .hint, .scroll-cue { display: none; }
  .cursor::after { animation: none; }
  .btn, .log { will-change: auto; }
}

/* ---------------------------------------------------------------- Night-to-dawn details */

/* The logo's moon fills toward a dawn sun as the page scrolls (--p is scroll progress). */
.mark mask circle { transform: translate(calc(min(var(--p) * 1.12, 1) * 13px), calc(min(var(--p) * 1.12, 1) * -13px)); }
.mark-moon { fill: var(--amber); fill: color-mix(in oklab, var(--amber), var(--dawn) calc(var(--p) * 100%)); }
.mark svg { filter: drop-shadow(0 0 calc(var(--p) * 7px) rgba(255, 143, 77, calc(var(--p) * .85))); }

/* The opening line's tasks underline as the shift log does that kind of job (app.js). */
.lede .task {
  background: linear-gradient(90deg, var(--amber-hot), var(--dawn)) 100% 100% / 0 2px no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size .7s var(--ease), color .4s ease;
}
.lede .task.is-done { background-position: 0 100%; background-size: 100% 2px; color: var(--ink); }

/* A comet laps the hero's call-to-action every few seconds, and keeps going on hover. */
@property --comet { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.comet { position: relative; isolation: isolate; }
.comet::before {
  content: ""; position: absolute; inset: -6px; padding: 1.5px; border-radius: inherit; pointer-events: none;
  background: conic-gradient(from var(--comet), transparent 0 52%, rgba(255, 208, 138, .3) 74%, rgba(255, 236, 200, .95) 91%, #fff 94.5%, transparent 95.5%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  filter: drop-shadow(0 0 3px #FFD08A) drop-shadow(0 0 8px rgba(255, 143, 77, .85));
  opacity: 0;
}
.comet.is-live::before { animation: cometLap 6.5s linear infinite 1.8s; }
.comet:hover::before, .comet:focus-visible::before { opacity: 1; animation: cometSpin 1.5s linear infinite; }
@keyframes cometLap {
  0% { --comet: 0deg; opacity: 0; }
  4% { opacity: 1; }
  24% { opacity: 1; }
  28%, 100% { --comet: 360deg; opacity: 0; }
}
@keyframes cometSpin { to { --comet: 360deg; } }

/* The send button while the message is on its way. */
.btn.is-sending { background-image: linear-gradient(100deg, var(--amber) 0%, var(--amber-hot) 40%, var(--amber) 80%); background-size: 220% 100%; animation: sending 1.1s linear infinite; }
@keyframes sending { from { background-position: 100% 0; } to { background-position: -120% 0; } }

/* The form becomes the confirmation with a view transition where supported (form.js). */
#lead { view-transition-name: lead; }
::view-transition-group(lead) { animation-duration: .5s; animation-timing-function: var(--ease); }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
.sent .sent-line { display: block; margin-top: .35rem; }
@view-transition { navigation: auto; }

/* "Nights back": a year of nights, one dot per eight-hour shift (calculator.js). */
.nights { display: grid; gap: .8rem; }
.nights-grid { display: grid; grid-template-rows: repeat(7, auto); grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; }
.nights-grid i { display: block; aspect-ratio: 1; border-radius: 1.5px; background: rgba(157, 176, 204, .14); transition: background-color .35s ease, box-shadow .35s ease; transition-delay: calc(min(var(--k, 0), 140) * 3ms); }
.nights-grid i.on { background: var(--amber); box-shadow: 0 0 6px rgba(242, 176, 85, .55); }
.nights-cap { margin: 0; color: var(--muted); font-size: .92rem; }
.nights-num { color: var(--amber-hot); font-weight: 700; font-variant-numeric: tabular-nums; }

/* Dawn over the town at the foot of the page (effects.js builds it). */
.foot { overflow: hidden; }
.skyline { display: block; width: 100%; height: clamp(118px, 11vw, 160px); margin-top: clamp(2.5rem, 6vw, 4rem); margin-bottom: -3rem; --dawn-p: 0; }
.skyline .bldgs { fill: #03060d; }
.skyline .win { fill: #FFD08A; opacity: clamp(0, calc((var(--dawn-p) - var(--t)) * 14), .9); transition: opacity .3s ease; }
.skyline .beacons { fill: #FF5A4E; opacity: .85; }
.skyline.is-live .beacons circle { animation: beacon 2.6s steps(1) infinite; }
.skyline .track { fill: rgba(242, 176, 85, .14); }
.skyline .train { fill: #FFE3B5; opacity: 0; filter: drop-shadow(0 0 4px rgba(255, 214, 150, .9)); }
.skyline.is-live .train { animation: train 13s linear infinite 1s; }
@keyframes beacon { 50% { opacity: .15; } }
@keyframes train { 0% { transform: translateX(0); opacity: 0; } 4%, 92% { opacity: 1; } 100% { transform: translateX(1560px); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .comet::before, .skyline .train { display: none; }
  .skyline .beacons circle { animation: none; }
  .nights-grid i, .lede .task { transition: none; }
}
