/* ZEROSTAFF — midnight office. */
:root {
  --bg: #06080d;
  --ink: #eef3ff;
  --ink-2: rgba(238, 243, 255, 0.7);
  --ink-3: rgba(238, 243, 255, 0.46);
  --line: rgba(238, 243, 255, 0.1);
  --burn: #ff6a1a;
  --ember: #ffc35a;
  --cyan: #5be7ff;
  --buy: #2bff9a;
  --display: "Clash Display", "Unbounded", "Inter", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --pad: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 22px;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; font: 400 16px/1.55 var(--sans); background: var(--bg); color: var(--ink);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}
body.is-intro { overflow: hidden; }
a { color: inherit; }
img { display: block; }
button { font: inherit; color: inherit; }
::selection { background: rgba(255, 106, 26, 0.35); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--bg); border-radius: 10px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.mono, .label, .kicker, .panel__label { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------ poster (0.0 s) */
.poster {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: #000;
  transition: opacity 0.45s ease, visibility 0.45s; pointer-events: none;
}
.poster.is-gone { opacity: 0; visibility: hidden; }
.poster__line { font: 400 clamp(15px, 1.4vw, 19px) var(--mono); letter-spacing: 0.02em; color: var(--ink); margin: 0; }
.poster__line span { color: var(--burn); }
.poster__line::after { content: ""; display: inline-block; width: 0.55em; height: 1.1em; margin-left: 6px; vertical-align: -0.18em; background: var(--burn); animation: blink 0.9s steps(1) infinite; }
.poster__hint { position: absolute; bottom: 28px; margin: 0; font: 400 11px var(--mono); color: var(--ink-3); opacity: 0; animation: fade 0.6s 0.9s forwards; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes fade { to { opacity: 1; } }

/* ------------------------------------------------ the office canvas */
.office { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; z-index: 0; display: block; background: #05070c; }
.office-dim {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 40%, rgba(6, 8, 13, 0.2), rgba(6, 8, 13, 0.85));
  opacity: 0; transition: opacity 0.9s var(--ease);
}
body.is-dim .office-dim { opacity: 1; }
body[data-section="staff"] .office-dim { opacity: 1; background: linear-gradient(90deg, rgba(6, 8, 13, 0.82) 0%, rgba(6, 8, 13, 0.45) 34%, transparent 58%); }
.hero::before { /* legibility gradient behind hero copy */
  content: ""; position: absolute; inset: auto 0 0 0; height: 62%; pointer-events: none;
  background: linear-gradient(to top, rgba(6, 8, 13, 0.92), rgba(6, 8, 13, 0.55) 45%, transparent);
}

/* ------------------------------------------------ bubbles */
.bubbles { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
.bubble {
  position: absolute; left: 0; top: 0; width: max-content; max-width: 230px; translate: -50% -100%;
  padding: 8px 11px 9px; border-radius: 12px; font: 500 12.5px/1.35 var(--sans); color: var(--ink);
  background: linear-gradient(180deg, rgba(22, 28, 42, 0.78), rgba(10, 13, 21, 0.78));
  border: 1px solid rgba(238, 243, 255, 0.12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 12px 30px -8px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px) saturate(140%); -webkit-backdrop-filter: blur(12px) saturate(140%);
  opacity: 0; scale: 0.92; transition: opacity 0.35s var(--ease), scale 0.35s var(--ease);
}
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 9px; height: 9px; translate: -50% 0; rotate: 45deg; background: rgba(10, 13, 21, 0.85); border-right: 1px solid rgba(238, 243, 255, 0.12); border-bottom: 1px solid rgba(238, 243, 255, 0.12); }
.bubble.is-on { opacity: 1; scale: 1; }
.bubble__name { display: flex; align-items: center; gap: 6px; font: 500 10.5px var(--mono); color: var(--ink-3); margin-bottom: 2px; letter-spacing: 0.01em; }
.bubble__name i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.bubble__text { display: block; }
.bubble--manager { max-width: 260px; }
.bubble--manager .bubble__text { font-family: var(--serif); font-size: 16px; line-height: 1.25; font-style: italic; }
.bubble.is-stamped::before {
  content: "Approved"; position: absolute; right: -12px; top: -14px; padding: 2px 7px; font: 600 10px var(--mono); color: var(--burn);
  border: 1.5px solid var(--burn); border-radius: 5px; background: rgba(6, 8, 13, 0.85); rotate: -8deg; animation: stamp 0.5s var(--ease) both;
}
@keyframes stamp { from { scale: 2.2; opacity: 0; } 60% { scale: 0.92; opacity: 1; } to { scale: 1; } }
body:not(.is-live-ui) .bubble { opacity: 0 !important; }
body.is-dim .bubble { opacity: 0 !important; }

/* ------------------------------------------------ header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; gap: 24px;
  padding: 18px var(--pad); transition: background 0.4s, border-color 0.4s, opacity 0.6s var(--ease), translate 0.6s var(--ease);
  border-bottom: 1px solid transparent;
}
body.is-intro .site-header { opacity: 0; translate: 0 -12px; }
body.is-scrolled .site-header { background: rgba(6, 8, 13, 0.62); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); border-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 17px var(--display); letter-spacing: 0.02em; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; font-size: 13.5px; color: var(--ink-2); transition: color 0.2s, background 0.2s; }
.nav a:hover { color: var(--ink); background: rgba(238, 243, 255, 0.06); }
.header-tools { display: flex; align-items: center; gap: 8px; }
.sound, .x-link {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 13px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(238, 243, 255, 0.04); color: var(--ink-2); font: 500 12px var(--mono); text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.x-link { width: 36px; padding: 0; justify-content: center; }
.sound:hover, .x-link:hover { color: var(--ink); border-color: rgba(238, 243, 255, 0.25); }
.sound i { width: 14px; height: 10px; background: linear-gradient(90deg, currentColor 2px, transparent 2px) 0 100% / 4px 40% repeat-x; opacity: 0.8; }
.sound[aria-pressed="true"] { color: var(--ink); }
.sound[aria-pressed="true"] i { background: none; display: flex; gap: 2px; align-items: flex-end; }
.sound[aria-pressed="true"] i { background-image: linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor); background-size: 2px 60%, 2px 100%, 2px 40%; background-position: 0 100%, 6px 100%, 12px 100%; background-repeat: no-repeat; animation: eq 0.9s infinite alternate; }
@keyframes eq { to { background-size: 2px 100%, 2px 30%, 2px 80%; } }
.x-link[hidden] { display: none; }

/* ------------------------------------------------ shared */
main { position: relative; z-index: 2; }
.section { position: relative; padding: clamp(110px, 16vh, 180px) var(--pad); }
.label, .panel__label { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 11.5px; letter-spacing: 0.04em; color: var(--cyan); }
.label::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: 0.7; }
.panel__label { color: var(--ink-3); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vh, 72px); }
.section-head h2 { margin: 0 0 14px; font: 600 clamp(40px, 6.2vw, 92px)/0.95 var(--display); letter-spacing: -0.035em; }
.section-head p:not(.label) { margin: 0; max-width: 560px; font-size: clamp(16px, 1.25vw, 19px); color: var(--ink-2); }
.panel {
  position: relative; border-radius: var(--radius); border: 1px solid rgba(238, 243, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.11), inset 0 0 0 1px rgba(255, 255, 255, 0.015), 0 40px 90px -30px rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%);
}
.panel::before { /* light hitting the top edge */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(70% 50% at 30% 0%, rgba(190, 215, 255, 0.09), transparent 70%);
}
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 999px;
  font: 500 14.5px var(--sans); text-decoration: none; cursor: pointer; border: 1px solid transparent; white-space: nowrap;
  transition: transform 0.35s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.35s;
}
.btn:hover { transform: translateY(-2px); }
.btn--glass { background: linear-gradient(180deg, rgba(238, 243, 255, 0.95), rgba(205, 216, 238, 0.95)); color: #070a11; box-shadow: inset 0 1px 0 #fff, 0 10px 30px -10px rgba(190, 215, 255, 0.5); }
.btn--line { border-color: rgba(238, 243, 255, 0.2); background: rgba(238, 243, 255, 0.04); color: var(--ink); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--line:hover { border-color: rgba(238, 243, 255, 0.4); background: rgba(238, 243, 255, 0.08); }
.btn--burn { background: linear-gradient(180deg, #ff8a3d, var(--burn)); color: #160700; box-shadow: inset 0 1px 0 rgba(255, 230, 200, 0.7), 0 14px 40px -12px rgba(255, 106, 26, 0.75); }

/* ------------------------------------------------ 1. hero */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 var(--pad) clamp(28px, 5vh, 52px); }
.hero__copy { position: relative; max-width: 560px; transition: opacity 0.9s var(--ease), translate 0.9s var(--ease); }
body.is-intro .hero__copy, body.is-intro .ticker, body.is-intro .scroll-cue { opacity: 0; translate: 0 18px; }
.kicker { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 16px; font-size: 12px; color: var(--ink-2); padding: 7px 12px 7px 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(6, 8, 13, 0.4); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.kicker__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 4px rgba(255, 195, 90, 0.15); animation: breathe 2.4s ease-in-out infinite; }
body:not(.is-onboarding) .kicker__dot { background: var(--buy); box-shadow: 0 0 0 4px rgba(43, 255, 154, 0.15); }
@keyframes breathe { 50% { opacity: 0.45; } }
.hero__sub { margin: 0 0 26px; font: 400 clamp(18px, 1.6vw, 22px)/1.45 var(--sans); color: var(--ink-2); letter-spacing: -0.01em; text-wrap: pretty; }
.hero__sub b { color: var(--ink); font-weight: 500; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.ticker { position: absolute; right: var(--pad); bottom: clamp(28px, 5vh, 52px); text-align: right; transition: opacity 0.9s 0.15s var(--ease), translate 0.9s 0.15s var(--ease); }
.ticker__row { display: flex; gap: 26px; font: 500 15px var(--mono); font-variant-numeric: tabular-nums; }
.ticker__row span { display: flex; flex-direction: column; gap: 3px; }
.ticker__row em { font-style: normal; font-size: 10.5px; color: var(--ink-3); letter-spacing: 0.04em; }
.ticker__burn b { color: var(--ember); }
.ticker__note { margin: 8px 0 0; font: 400 11.5px var(--mono); color: var(--ember); min-height: 1em; }
body.is-onboarding .ticker__row--live, body:not(.is-onboarding) .ticker__row--onboarding { display: none; }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 8px; font: 400 10.5px var(--mono); color: var(--ink-3); transition: opacity 0.9s 0.3s; }
.scroll-cue span { width: 1px; height: 34px; background: linear-gradient(var(--ink-3), transparent); animation: cue 2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { scale: 1 0; } 50% { scale: 1 1; } 100% { scale: 1 1; opacity: 0; } }

/* ------------------------------------------------ 2. memo */
.memo { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(to bottom, transparent, rgba(6, 8, 13, 0.85) 18%, rgba(6, 8, 13, 0.9) 82%, transparent); }
.quote { margin: 0; max-width: 1180px; }
.quote p { margin: 0; font: 400 clamp(38px, 5.6vw, 92px)/1.02 var(--serif); letter-spacing: -0.02em; text-wrap: balance; }
.quote__line { display: block; }
.quote mark { background: none; color: var(--ember); font-style: italic; }
.quote footer { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 34px; font: 400 13px var(--mono); color: var(--ink-3); }
.quote footer a { color: var(--ink); text-decoration: none; border-bottom: 1px solid rgba(238, 243, 255, 0.3); padding-bottom: 1px; }
.quote footer a:hover { border-color: var(--ink); }
.sep { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-3); }
.memo__then { margin: clamp(70px, 12vh, 130px) 0 0 auto; text-align: right; font: 600 clamp(36px, 5vw, 78px)/0.98 var(--display); letter-spacing: -0.04em; }
.memo__then em { font-style: normal; background: linear-gradient(90deg, var(--burn), var(--ember)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.memo__fine { margin: 26px 0 0 auto; max-width: 420px; text-align: right; font-size: 12.5px; color: var(--ink-3); }

/* ------------------------------------------------ 3. staff */
.staff { padding-bottom: 0; }
.staff .section-head { position: relative; padding: 28px 30px; margin-left: -30px; border-radius: var(--radius); background: radial-gradient(100% 100% at 0% 50%, rgba(6, 8, 13, 0.75), transparent); }
.staff__track { position: relative; }
.desk-card {
  min-height: 92vh; display: flex; flex-direction: column; justify-content: center; max-width: 440px;
  opacity: 0.25; transition: opacity 0.6s var(--ease), translate 0.6s var(--ease); translate: -10px 0;
}
.desk-card.is-active { opacity: 1; translate: 0 0; }
.desk-card > * { position: relative; }
.desk-card::before { content: ""; position: absolute; }
.desk-card__no { margin: 0 0 14px; font: 500 11.5px var(--mono); color: var(--c); letter-spacing: 0.04em; }
.desk-card h3 { margin: 0 0 14px; font: 600 clamp(44px, 5.4vw, 80px)/0.92 var(--display); letter-spacing: -0.04em; text-shadow: 0 6px 40px rgba(6, 8, 13, 0.8); }
.desk-card__job { margin: 0 0 22px; font-size: clamp(16px, 1.3vw, 19px); color: var(--ink); opacity: 0.85; text-shadow: 0 2px 20px rgba(6, 8, 13, 0.9); text-wrap: pretty; }
.desk-card__live {
  display: flex; gap: 11px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; font: 400 13.5px/1.45 var(--mono); font-variant-numeric: tabular-nums;
  background: rgba(8, 11, 18, 0.66); border: 1px solid rgba(238, 243, 255, 0.1); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.desk-card--manager .desk-card__live { font: italic 400 19px/1.3 var(--serif); }
.pulse { flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 0 var(--c); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 60%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
.desk-card__proof { align-self: flex-start; margin-top: 12px; font: 500 12px var(--mono); color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--line); }
.desk-card__proof:hover { color: var(--ink); }
.staff__dots { display: none; }

/* ------------------------------------------------ 4. burn */
.burn { background: linear-gradient(to bottom, transparent, rgba(6, 8, 13, 0.75) 12%); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step { padding: 30px 28px 26px; display: flex; flex-direction: column; min-height: 330px; }
.step__n { font: 500 12px var(--mono); color: var(--ink-3); }
.step h3 { margin: 70px 0 12px; font: 600 clamp(24px, 2vw, 30px)/1.05 var(--display); letter-spacing: -0.03em; }
.step p { margin: 0 0 22px; color: var(--ink-2); font-size: 15px; }
.step + .step::after { content: ""; position: absolute; left: -17px; top: 50%; width: 16px; height: 1px; background: linear-gradient(90deg, transparent, var(--ember)); }
.step--burn { background: linear-gradient(180deg, rgba(255, 106, 26, 0.12), rgba(255, 106, 26, 0.02)); border-color: rgba(255, 140, 60, 0.22); }
.step--burn .step__n { color: var(--burn); }
.proof { margin-top: auto; display: flex; flex-direction: column; gap: 4px; padding-top: 16px; border-top: 1px solid var(--line); font: 400 12.5px var(--mono); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.proof a { color: var(--ink); text-decoration: none; }
.proof a:hover { color: var(--cyan); }
.proof .pending { color: var(--ink-3); }
.proof .pending::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--ember); opacity: 0.7; }
.burn__line { margin: clamp(56px, 9vh, 100px) 0 0; font: 400 clamp(30px, 3.6vw, 56px)/1.08 var(--serif); letter-spacing: -0.015em; max-width: 960px; }
.burn__line span { color: var(--ink-3); font-style: italic; }

/* ------------------------------------------------ 5. payroll */
.payroll { background: rgba(6, 8, 13, 0.75); }
.payroll__grid { display: grid; grid-template-columns: minmax(300px, 0.8fr) 1.4fr; gap: 16px; align-items: stretch; }
.pay, .memo-card, .log { padding: 30px; }
.pay__list { margin: 6px 0 0; }
.pay__list div { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.pay__list dt { color: var(--ink-2); font-size: 15px; }
.pay__list dd { margin: 0; font: 600 clamp(26px, 2.4vw, 36px)/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; text-align: right; }
.pay__burn dd { color: var(--ember); }
.panel__fine { margin: 18px 0 0; font-size: 12.5px; color: var(--ink-3); }
.memo-card { display: flex; flex-direction: column; }
.memo-card__text { margin: 4px 0 26px; max-width: 640px; font: 400 clamp(26px, 2.6vw, 40px)/1.12 var(--serif); letter-spacing: -0.01em; text-wrap: pretty; }
.memo-card__stamp {
  position: absolute; right: 28px; top: 24px; padding: 6px 12px 5px; border: 2px solid var(--burn); border-radius: 8px; color: var(--burn);
  font: 600 15px/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; rotate: -8deg; text-align: center; opacity: 0.9;
}
.memo-card__stamp small { display: block; font: 500 8.5px var(--mono); letter-spacing: 0.08em; margin-top: 3px; }
.share { margin-top: auto; }
.share canvas { width: 100%; height: auto; aspect-ratio: 1200 / 675; border-radius: 14px; border: 1px solid var(--line); display: block; background: #06080d; }
.share__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.share__actions .btn { height: 42px; padding: 0 18px; font-size: 13.5px; }
.share__note { margin: 10px 0 0; min-height: 1.2em; font: 400 12px var(--mono); color: var(--buy); }
.log { margin-top: 16px; }
.log__list { list-style: none; margin: 0; padding: 0; }
.log__row { display: grid; grid-template-columns: 120px 1fr auto auto auto; gap: 18px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.log__who { font-size: 11.5px; color: var(--ember); }
.log__row--buyback .log__who { color: var(--buy); }
.log__what b { font-weight: 600; font-variant-numeric: tabular-nums; }
.log__what .muted { color: var(--ink-3); font-size: 12.5px; margin-left: 6px; }
.log__note { display: block; margin-top: 3px; font: italic 400 15px var(--serif); color: var(--ink-2); }
.log__when { font-size: 11.5px; color: var(--ink-3); }
.log__proof { font-size: 11.5px; text-decoration: none; color: var(--ink-2); }
.log__proof:hover { color: var(--cyan); }
.log__stamp { font-size: 9.5px; color: var(--burn); border: 1.5px solid var(--burn); border-radius: 4px; padding: 2px 6px; rotate: -6deg; }
.log__empty { padding: 22px 0 6px; color: var(--ink-2); font: italic 400 21px var(--serif); border-top: 1px solid var(--line); }

/* ------------------------------------------------ 6. CA */
.ca { background: rgba(6, 8, 13, 0.75); padding-top: 40px; }
.ca__box { display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 26px; max-width: 900px; }
.ca__box code { flex: 1; min-width: 0; font: 500 clamp(15px, 1.6vw, 21px) var(--mono); letter-spacing: 0.01em; overflow-wrap: anywhere; color: var(--ink); }
.ca__box.is-pending code { color: var(--ember); font-family: var(--display); font-size: clamp(22px, 2.6vw, 34px); letter-spacing: -0.02em; padding: 10px 0; }
.ca__box.is-pending code::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 14px; vertical-align: middle; border-radius: 50%; background: var(--ember); box-shadow: 0 0 18px var(--ember); animation: breathe 2s infinite; }
.ca__copy { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 14px; border: 1px solid rgba(238, 243, 255, 0.18); background: rgba(238, 243, 255, 0.06); cursor: pointer; font: 500 13px var(--mono); }
.ca__copy:hover { background: rgba(238, 243, 255, 0.12); }
.ca__copy .i-tick { display: none; }
.is-copied .ca__copy { color: var(--buy); border-color: rgba(43, 255, 154, 0.4); }
.is-copied .ca__copy .i-tick { display: inline; stroke-dasharray: 20; animation: tick 0.4s var(--ease) both; }
.is-copied .ca__copy .i-copy { display: none; }
@keyframes tick { from { stroke-dashoffset: 20; } to { stroke-dashoffset: 0; } }
.ca__links { display: flex; gap: 10px; margin-top: 16px; }
.ca__links[hidden] { display: none; }
.ca__wallet { margin: 28px 0 0; font-size: 14.5px; color: var(--ink-2); }
.ca__wallet a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); margin-left: 8px; }
.ca__fine { margin: 10px 0 0; font-size: 13px; color: var(--ink-3); max-width: 560px; }

/* ------------------------------------------------ 7. FAQ */
.faq { background: rgba(6, 8, 13, 0.78); }
.faq__list { max-width: 900px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0; font: 500 clamp(20px, 1.8vw, 26px)/1.2 var(--display); letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat; transition: rotate 0.35s var(--ease); opacity: 0.7; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { margin: -8px 0 26px; max-width: 680px; color: var(--ink-2); }

/* ------------------------------------------------ 8. footer */
.site-footer { position: relative; z-index: 2; padding: 70px var(--pad) 40px; background: #05060a; border-top: 1px solid var(--line); }
.site-footer__top { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.site-footer__pitch { margin: 0; color: var(--ink-2); font: 400 22px var(--serif); }
.x-link--text { width: auto; padding: 0 14px; margin-left: auto; }
.site-footer__bottom { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-top: 26px; font-size: 12.5px; color: var(--ink-3); }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom a { color: var(--ink-2); }

/* ------------------------------------------------ toasts */
.toasts { position: fixed; left: var(--pad); bottom: 24px; z-index: 30; display: flex; flex-direction: column-reverse; gap: 8px; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px; font-size: 13.5px; pointer-events: auto;
  background: rgba(12, 16, 26, 0.85); border: 1px solid rgba(238, 243, 255, 0.12); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.8); opacity: 0; translate: 0 10px; transition: opacity 0.5s var(--ease), translate 0.5s var(--ease);
}
.toast.is-in { opacity: 1; translate: 0 0; }
.toast a { font-size: 11px; color: var(--ink-2); text-decoration: none; }
.toast__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--burn); box-shadow: 0 0 12px var(--burn); }
.toast--buy .toast__dot { background: var(--buy); box-shadow: 0 0 12px var(--buy); }

/* ------------------------------------------------ og capture mode */
.og-mark { display: none; }
body.is-og .site-header, body.is-og main, body.is-og .site-footer, body.is-og .bubbles, body.is-og .poster, body.is-og .toasts { display: none !important; }
body.is-og .og-mark { display: flex; position: fixed; z-index: 5; left: 0; right: 0; bottom: 70px; justify-content: center; align-items: center; gap: 22px; font: 600 86px var(--display); letter-spacing: 0.01em; text-shadow: 0 10px 60px rgba(0, 0, 0, 0.9); }
body.is-og .og-mark img { width: 96px; height: 96px; }

/* ------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .nav a:nth-child(n + 5) { display: none; }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 0; }
  .step h3 { margin-top: 26px; }
  .step + .step::after { display: none; }
  .payroll__grid { grid-template-columns: 1fr; }
  .ticker__row { gap: 18px; }
  .ticker__row span:nth-child(4) { display: none; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .header-tools { margin-left: auto; }
  .site-header { padding-top: 14px; padding-bottom: 14px; }
  .sound span { display: none; }
  .sound { width: 36px; padding: 0; justify-content: center; }
  .hero { padding-bottom: 26px; }
  .hero__sub { font-size: 17px; margin-bottom: 20px; }
  .hero__cta .btn { height: 44px; padding: 0 18px; font-size: 14px; }
  .ticker { position: relative; right: auto; bottom: auto; text-align: left; margin-top: 22px; }
  .ticker__row { gap: 18px; font-size: 13.5px; }
  .ticker__row span:nth-child(3) { display: none; }
  .scroll-cue { display: none; }
  .bubble { max-width: 190px; font-size: 12px; }
  /* staff becomes a swipeable desk carousel */
  .staff { min-height: 100svh; display: flex; flex-direction: column; padding-bottom: 28px; }
  .staff .section-head { margin: 0 0 auto; padding: 0; background: none; }
  .staff .section-head p:not(.label) { display: none; }
  .staff__track {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad);
    scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  }
  .staff__track::-webkit-scrollbar { display: none; }
  .desk-card {
    flex: 0 0 86%; min-height: 0; scroll-snap-align: center; padding: 22px 20px; border-radius: 20px; opacity: 1; translate: 0 0;
    background: rgba(8, 11, 18, 0.72); border: 1px solid rgba(238, 243, 255, 0.12); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  }
  .desk-card h3 { font-size: 36px; }
  .desk-card__job { font-size: 15px; margin-bottom: 16px; }
  .desk-card__live { background: rgba(255, 255, 255, 0.04); }
  .staff__dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
  .staff__dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px; background: rgba(238, 243, 255, 0.25); cursor: pointer; transition: width 0.3s var(--ease), background 0.3s; }
  .staff__dots button.is-active { width: 22px; background: var(--ink); }
  .memo__then, .memo__fine { text-align: left; margin-left: 0; }
  .log__row { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .log__who { grid-column: 1 / -1; }
  .log__stamp { display: none; }
  .memo-card__stamp { position: static; align-self: flex-start; margin-bottom: 16px; }
  .ca__box { flex-direction: column; align-items: stretch; padding: 18px; }
  .ca__copy { justify-content: center; }
  .ca__links .btn { flex: 1; }
  .pay, .memo-card, .log { padding: 22px; }
  .x-link--text { margin-left: 0; }
  .toasts { left: 12px; right: 12px; bottom: 12px; }
}

/* ------------------------------------------------ reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
}
body.is-reduced .desk-card { transition: none; }

/* ------------------------------------------------ refinements */
[hidden] { display: none !important; }
.section-head h2 { letter-spacing: -0.028em; word-spacing: 0.06em; }
.desk-card h3, .memo__then, .step h3, .faq summary, .ca__box.is-pending code { word-spacing: 0.07em; }
.desk-card h3 { letter-spacing: -0.03em; }
.step h3 { letter-spacing: -0.018em; }
.pay__list dd.is-text { font: 500 13px var(--mono); color: var(--ink-3); letter-spacing: 0; }
.share { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(180px, 1fr); gap: 18px; align-items: end; }
.share__actions { flex-direction: column; align-items: stretch; margin-top: 0; }
.share__note { grid-column: 1 / -1; margin-top: 0; }
@media (max-width: 760px) { .share { grid-template-columns: 1fr; } .share__actions { flex-direction: row; flex-wrap: wrap; } }

/* ------------------------------------------------ CA bar at the top */
.ca-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 25; height: 36px; display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 0 12px; background: linear-gradient(90deg, rgba(255, 106, 26, 0.16), rgba(255, 195, 90, 0.12), rgba(255, 106, 26, 0.16)), rgba(6, 8, 13, 0.92);
  border-bottom: 1px solid rgba(255, 140, 60, 0.28); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font: 500 12.5px var(--mono);
}
.ca-bar__label { color: var(--burn); font-weight: 600; letter-spacing: 0.04em; }
.ca-bar__ca { color: var(--ink); font-family: var(--mono); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; user-select: all; }
.ca-bar__copy { flex: none; height: 24px; padding: 0 11px; border-radius: 999px; border: 1px solid rgba(255, 140, 60, 0.5); background: rgba(255, 106, 26, 0.14); color: var(--ink); font: 500 11.5px var(--mono); cursor: pointer; }
.ca-bar__copy:hover { background: rgba(255, 106, 26, 0.26); }
.ca-bar.is-copied .ca-bar__copy { border-color: rgba(43, 255, 154, 0.6); color: var(--buy); background: rgba(43, 255, 154, 0.1); }
body.has-ca-bar .site-header { top: 36px; }
@media (max-width: 760px) { .ca-bar { justify-content: space-between; font-size: 11.5px; } }
