/* Local web fonts (assets/fonts, SIL Open Font License) */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 300; font-display: swap; src: url("assets/fonts/geist-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/geist-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/geist-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/geist-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/geist-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/ibm-plex-mono-latin-700-normal.woff2") format("woff2"); }

/* Ashall & Co. — Deep Navy #0A2031, Forest Green #123B25, Antique Gold #B58A3F, Warm Ivory #FEF9F2, White.
 * Geist display, Inter body, IBM Plex Mono labels. Layout: spec-sheet grid on warm ivory, navy instrument panels for the animations. */
:root {
  color-scheme: light;
  --color-paper: #FFFFFF; --color-paper-2: #FEF9F2; --color-paper-3: #F5EDE0;
  --color-ink: #0A2031; --color-ink-2: #34485A; --color-muted: #66737F; --color-rule: #ECE3D4; --color-rule-2: #DCCFBA;
  --color-accent: #123B25; --color-accent-hi: #1D5A38; --color-accent-deep: #0B2818; --color-accent-ink: #FFFFFF; --color-accent-soft: #EAF2EC;
  --color-gold: #B58A3F; --color-gold-hi: #CDA65E; --color-gold-soft: #F7EEDD;
  --color-accent-2: #A84B2B; --color-accent-2-ink: #FFFFFF; --color-accent-2-soft: #F8ECE5;
  --color-green: #1E6B42; --color-green-soft: #E6F1EA; --color-violet: #B58A3F; --color-violet-soft: #F7EEDD;
  --color-light: #FFFFFF; --color-shade: #061522; --color-mask: #000000; --color-lift: rgb(10 32 49 / 0.16);
  --color-haze: #F3E9D6; --color-pick: #F3E9D6; --color-pick-glow: rgb(181 138 63 / 0.28);
  --color-scrim-1: rgb(255 255 255 / 0.94); --color-scrim-2: rgb(255 255 255 / 0.7); --color-scrim-3: rgb(255 255 255 / 0.2);
  --color-well: #FEF9F2; --color-well-2: #F5EDE0; --color-well-ink: #0A2031; --color-well-muted: #66737F; --color-well-rule: #ECE3D4; --color-card: #FFFFFF;
  --color-focus: #B58A3F;
  --glass: rgb(255 255 255 / 0.78); --glass-blur: 18px; --glass-hi: inset 0 0 0 1px var(--color-rule);
  --shadow-card: 0 10px 15px -3px rgb(10 32 49 / 0.08), 0 4px 6px -4px rgb(10 32 49 / 0.08);
  --glow: rgb(181 138 63 / 0.12);
  --rgb-accent: 214 176 108; --rgb-accent-2: 230 128 92; --rgb-ink: 254 249 242; --rgb-ink-2: 207 214 220; --rgb-muted: 140 155 168;
  --rgb-rule: 31 59 82; --rgb-node: 7 24 37; --rgb-accent-deep: 181 138 63; --rgb-accent-hi: 236 210 156; --rgb-light: 255 255 255; --rgb-green: 108 196 145;
  --font-display: "Geist", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --radius-card: 0px; --radius-inner: 0px; --radius-pill: 999px;
  --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px;
  --text-xs: 0.8125rem; --text-sm: 0.875rem; --text-md: 1rem; --text-lg: 1.1875rem;
  --text-lead: clamp(1.0625rem, 0.3vw + 1rem, 1.25rem);
  --gutter: 56px; --container: 1440px; --section-gap: 128px; --gap-columns: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (max-width: 60rem) { :root { --gutter: 32px; --section-gap: 104px; } }
@media (max-width: 40rem) { :root { --gutter: 20px; --section-gap: 80px; --gap-columns: 16px; } }

/* ink panels: the same component tokens, dark values */
.dk {
  color-scheme: dark;
  --color-paper: #0A2031; --color-paper-2: #0F2A40; --color-paper-3: #16344D;
  --color-ink: #FEF9F2; --color-ink-2: #CDD5DC; --color-muted: #8C9BA8; --color-rule: #1F3B52; --color-rule-2: #2B4A63;
  --color-accent: #D6B06C; --color-accent-hi: #ECD29C; --color-accent-deep: #B58A3F; --color-accent-ink: #0A2031; --color-accent-soft: rgb(214 176 108 / 0.14);
  --color-gold: #D6B06C; --color-gold-hi: #ECD29C;
  --color-accent-2: #E6805C; --color-accent-2-ink: #2A0F05;
  --color-green: #6CC491; --color-haze: #123352; --color-lift: rgb(0 0 0 / 0.5);
  --color-pick-glow: rgb(214 176 108 / 0.3);
  --color-scrim-1: rgb(10 32 49 / 0.92); --color-scrim-2: rgb(10 32 49 / 0.7); --color-scrim-3: rgb(10 32 49 / 0.25);
  --glass: rgb(16 42 64 / 0.7); --glass-hi: inset 0 1px 0 rgb(255 255 255 / 0.08), inset 0 0 0 1px rgb(255 255 255 / 0.07);
  --shadow-card: 0 30px 60px -30px rgb(0 0 0 / 0.6);
  --glow: rgb(214 176 108 / 0.14);
  background: var(--color-paper); color: var(--color-ink);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--color-paper); }
::selection { background: var(--color-accent); color: #fff; }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
a { color: inherit; text-underline-offset: 0.16em; text-decoration-thickness: 1px; }
img, video { max-width: 100%; display: block; }
svg { display: block; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 500; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; overflow-wrap: break-word; min-width: 0; }
h2 { font-size: clamp(2.5rem, 4.4vw + 0.6rem, 4.5rem); }
h3 { font-size: clamp(1.25rem, 0.6vw + 1rem, 1.5rem); letter-spacing: -0.02em; line-height: 1.15; }
button, input, select, textarea { font: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.meta { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-muted); }
.meta b { color: var(--color-accent); font-weight: 600; }
.lead { font-size: var(--text-lead); line-height: 1.55; color: var(--color-ink-2); max-width: 54ch; }
.muted { color: var(--color-muted); }
.small { font-size: var(--text-sm); }
.sl { color: var(--color-accent); font-weight: 400; margin-right: 0.02em; }
.section { padding-block: var(--section-gap) 0; }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-lg); margin-bottom: var(--space-xl); }
.sec-head .meta { margin-bottom: var(--space-sm); }
.sec-head h2 { font-size: clamp(2.75rem, 5vw + 0.5rem, 4.75rem); }
.sec-head > a { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-ink); }
.sec-head > a:hover { color: var(--color-accent); }
.sec-intro { display: grid; gap: var(--space-lg); grid-template-columns: minmax(0, 1fr); margin-bottom: var(--space-xl); }
@media (min-width: 64rem) { .sec-intro { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; } }

/* buttons: the media-kit arrow block */
.btn { position: relative; display: inline-flex; align-items: stretch; min-height: 48px; border: 0; padding: 0; background: none; text-decoration: none; cursor: pointer; font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.btn__ic { display: grid; place-items: center; width: 48px; background: var(--color-accent); color: #fff; overflow: hidden; transition: background-color 200ms ease; }
.btn__ic svg { width: 16px; height: 16px; transition: transform 400ms var(--ease); }
.btn__tx { display: flex; align-items: center; justify-content: center; flex: 1; padding: 0 22px; background: var(--color-ink); color: var(--color-paper); white-space: nowrap; transition: background-color 250ms ease, color 250ms ease; }
.btn:hover .btn__ic svg { animation: nudge 600ms var(--ease); }
.btn:hover .btn__tx { background: var(--color-accent-deep); color: #fff; }
.dk .btn__tx { background: #fff; color: #111; }
.dk .btn:hover .btn__tx { background: var(--color-accent-deep); color: #fff; }
@keyframes nudge { 0% { transform: translateX(0); } 45% { transform: translateX(22px); } 46% { transform: translateX(-22px); } 100% { transform: translateX(0); } }
.btn--line .btn__tx { background: transparent; color: var(--color-ink); box-shadow: inset 0 0 0 1px var(--color-ink); }
.btn--line .btn__ic { background: var(--color-ink); }
.btn--line:hover .btn__tx { background: var(--color-ink); color: var(--color-paper); }
.dk .btn--line .btn__tx { color: var(--color-ink); box-shadow: inset 0 0 0 1px var(--color-ink); background: transparent; }
.dk .btn--line .btn__ic { background: #fff; color: #111; }
.dk .btn--line:hover .btn__tx { background: #fff; color: #111; }
.btn--full { width: 100%; }
.link-arrow { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none; color: var(--color-accent); }
.link-arrow:hover { text-decoration: underline; }

/* chips */
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 26px; padding: 0 10px; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; color: var(--color-ink-2); box-shadow: inset 0 0 0 1px var(--color-rule-2); background: var(--color-paper); }
.dk .chip { background: transparent; }
.chip--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--color-green); animation: breathe 2.4s ease-in-out infinite; }
.chip--blue { color: var(--color-accent); box-shadow: inset 0 0 0 1px currentColor; background: var(--color-accent-soft); }
@keyframes breathe { 50% { opacity: 0.35; transform: scale(0.8); } }
@keyframes enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* pointer glow, now a soft blue light on white */
.glow { position: relative; isolation: isolate; }
.glow::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--glow), transparent 62%); opacity: 0; transition: opacity 320ms ease; }
.glow:hover::before, .glow:focus-within::before { opacity: 1; }

/* scroll rise: transform only */
@supports (animation-timeline: view()) {
  .rise { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 38%; }
  @keyframes rise { from { transform: translateY(34px); } to { transform: none; } }
}

/* ---------- header: spec-sheet bar ---------- */
.hd { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; display: flex; flex-wrap: wrap; align-items: stretch; border-bottom: 1px solid var(--color-rule); background: rgb(255 255 255 / 0.94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); font-family: var(--font-mono); font-size: 12px; }
.hd__logo { order: 1; display: flex; align-items: center; padding: 0 max(24px, env(safe-area-inset-left, 0px)); min-height: 60px; text-decoration: none; }
.logo { display: inline-flex; align-items: center; gap: 9px; font: 600 1.25rem/1 var(--font-display); letter-spacing: -0.035em; color: var(--color-ink); white-space: nowrap; }
.logo svg { width: 15px; height: 22px; flex: none; }
.logo .amp { font-weight: 500; }
.hd__nav { order: 3; width: 100%; border-top: 1px solid var(--color-rule); }
.hd__nav nav { display: flex; overflow-x: auto; scrollbar-width: none; }
.hd__nav nav::-webkit-scrollbar { display: none; }
.hd__nav a { position: relative; display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-right: 1px solid var(--color-rule); white-space: nowrap; text-decoration: none; letter-spacing: 0.04em; color: var(--color-muted); transition: color 200ms ease, background-color 200ms ease; }
.hd__nav a .n { display: none; color: var(--color-rule-2); transition: color 200ms ease; }
.hd__nav a:hover { color: var(--color-ink); background: var(--color-paper-2); }
.hd__nav a:hover .n { color: var(--color-accent); }
.hd__nav a[aria-current="page"] { color: var(--color-ink); font-weight: 600; }
.hd__nav a[aria-current="page"] .n { color: var(--color-accent); }
.hd__nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--color-accent); }
.hd__side { order: 2; margin-left: auto; display: flex; align-items: center; gap: var(--space-md); padding: 0 max(24px, env(safe-area-inset-right, 0px)) 0 var(--space-md); }
.hd__status { display: inline-flex; align-items: center; gap: 8px; color: var(--color-green); font-weight: 600; letter-spacing: 0.04em; text-decoration: none; white-space: nowrap; }
.hd__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--color-green); animation: breathe 2.4s ease-in-out infinite; }
.hd__cta { display: none; }
@media (max-width: 30rem) { .hd__status span { display: none; } }
@media (min-width: 64rem) {
  .hd__logo { border-right: 1px solid var(--color-rule); min-height: 64px; }
  .hd__nav { order: 2; width: auto; flex: 1; border-top: 0; }
  .hd__nav nav { overflow: visible; height: 100%; }
  .hd__nav a { padding: 0 20px; }
  .hd__nav a .n { display: inline; }
  .hd__side { order: 3; margin-left: 0; padding-left: var(--space-lg); border-left: 1px solid var(--color-rule); }
  .hd__cta { display: inline-flex; min-height: 40px; }
  .hd__cta .btn__ic { width: 40px; }
}

/* ---------- page hero (inner pages) ---------- */
.phero { position: relative; isolation: isolate; border-bottom: 1px solid var(--color-rule); overflow: hidden; }
.phero__lines { position: absolute; inset: 0; z-index: -1; display: none; grid-template-columns: repeat(12, minmax(0, 1fr)); pointer-events: none; }
@media (min-width: 48rem) { .phero__lines { display: grid; } }
.phero__lines i { border-left: 1px dashed var(--color-rule); animation: drop 1100ms var(--ease) both; }
.phero__lines i:first-child { border-left: 0; }
@keyframes drop { from { transform: translateY(-100%); opacity: 0; } to { transform: none; opacity: 1; } }
.phero__in { padding-block: clamp(48px, 7vw, 96px); display: grid; gap: var(--space-xl); }
.phero__grid { display: grid; gap: var(--space-xl); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 64rem) { .phero__grid { grid-template-columns: minmax(0, 3fr) minmax(0, 1.15fr); gap: var(--space-2xl); align-items: end; } }
.phero h1 { font-size: clamp(3rem, 7.2vw + 0.5rem, 7.25rem); line-height: 0.94; letter-spacing: -0.045em; }
.phero h1 small { display: block; margin-top: 0.25em; font-size: 0.42em; letter-spacing: -0.03em; color: var(--color-muted); }
.abstract { border-left: 1px solid var(--color-rule-2); padding-left: var(--space-lg); display: grid; gap: var(--space-md); align-content: start; }
.abstract p { font-size: 0.9375rem; line-height: 1.65; color: var(--color-ink-2); }
.phero__in > *, .abstract > * { animation: enter 900ms var(--ease) both; }
.abstract > :nth-child(2) { animation-delay: 120ms; } .abstract > :nth-child(3) { animation-delay: 220ms; }

/* stats strip */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--color-rule); }
@media (min-width: 48rem) { .stats { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.stat { padding: var(--space-lg) var(--space-md); display: grid; gap: var(--space-xs); align-content: start; border-right: 1px solid var(--color-rule); border-bottom: 1px solid var(--color-rule); }
@media (min-width: 48rem) { .stat { padding: var(--space-xl) var(--space-lg); border-bottom: 0; } .stat:last-child { border-right: 0; } }
.stat b { font: 500 clamp(2.25rem, 3.4vw + 0.8rem, 4.5rem)/1 var(--font-display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.stat b small { font-size: 0.5em; letter-spacing: -0.02em; }
.stat .meta { color: inherit; }
.stat span:last-child { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-muted); }
.c-blue { color: var(--color-accent); } .c-green { color: var(--color-green); } .c-orange { color: var(--color-accent-2); } .c-violet { color: var(--color-violet); } .c-ink { color: var(--color-ink); }

/* ---------- home hero (ink instrument panel) ---------- */
.hhero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--color-rule); }
.hhero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 70% at 78% 45%, rgb(181 138 63 / 0.22), transparent 70%), radial-gradient(40% 60% at 0% 100%, rgb(18 59 37 / 0.55), transparent 70%); }
.hhero .phero__lines i { border-left-color: rgb(255 255 255 / 0.07); }
.hhero__in { padding-block: clamp(40px, 5vw, 72px) clamp(40px, 5vw, 64px); display: grid; gap: var(--space-xl); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 64rem) { .hhero__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-xl); } }
.hhero__copy { display: grid; gap: var(--space-lg); align-content: center; }
.hhero h1 { font-size: clamp(2.9rem, 5.6vw + 0.4rem, 6rem); line-height: 0.95; letter-spacing: -0.045em; }
.hhero h1 .sl { font-weight: 300; }
.hhero h1 small { display: block; margin-top: 0.3em; font-size: 0.44em; line-height: 1.1; letter-spacing: -0.03em; color: var(--color-ink-2); }
.hhero__copy > * { animation: enter 900ms var(--ease) both; }
.hhero__copy > :nth-child(2) { animation-delay: 120ms; } .hhero__copy > :nth-child(3) { animation-delay: 220ms; }
.hhero .abstract { border-left-color: rgb(255 255 255 / 0.18); max-width: 520px; }
.hhero__acts { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
@media (max-width: 40rem) { .hhero__acts .btn { width: 100%; } }

/* ---------- tools marquee (light) ---------- */
.tools { padding-block: var(--space-xl); border-bottom: 1px solid var(--color-rule); background: var(--color-paper-2); }
.tools__cap { margin-bottom: var(--space-lg); }
.marquees { display: grid; gap: var(--space-sm); }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: var(--space-sm); width: max-content; animation: marquee 52s linear infinite; }
.marquee--rev .marquee__track { animation-direction: reverse; animation-duration: 58s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.tool { display: inline-flex; align-items: center; gap: var(--space-sm); padding: 6px 18px 6px 6px; white-space: nowrap; background: var(--color-paper); box-shadow: inset 0 0 0 1px var(--color-rule); font: 500 0.9375rem/1 var(--font-display); letter-spacing: -0.01em; color: var(--color-ink-2); transition: box-shadow 250ms ease, color 200ms ease, transform 300ms var(--ease); }
.tool:hover { color: var(--color-ink); transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--color-accent); }
.tool__ic { width: 34px; height: 34px; display: grid; place-items: center; color: var(--color-accent); fill: var(--color-accent); background: var(--color-accent-soft); }
.tool__ic svg { width: 17px; height: 17px; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- /start doors ---------- */
.doors { border-top: 1px solid var(--color-ink); }
.doors__head { display: none; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr) 64px; border-bottom: 1px solid var(--color-rule); }
.doors__head span { padding: 12px 16px; border-right: 1px solid var(--color-rule); }
.doors__head span:last-child { border-right: 0; }
.door { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; text-decoration: none; border-bottom: 1px solid var(--color-rule); isolation: isolate; }
.door::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--color-accent-soft); transform: scaleX(0); transform-origin: left; transition: transform 500ms var(--ease); }
.door:hover::before, .door:focus-visible::before { transform: scaleX(1); }
.door__have { grid-column: 1 / -1; padding: 16px 16px 4px; font: 500 1.125rem/1.3 var(--font-display); letter-spacing: -0.015em; }
.door__start { padding: 4px 16px 16px; font-weight: 600; color: var(--color-accent); }
.door__start div { margin-top: 6px; font-weight: 400; font-size: 0.875rem; line-height: 1.5; color: var(--color-ink-2); }
.door__start mark { background: var(--color-accent-soft); color: var(--color-accent); padding: 0 4px; font-weight: 600; }
.door__to { display: none; }
.door__go { display: grid; place-items: center; width: 56px; color: var(--color-muted); transition: color 200ms ease, transform 400ms var(--ease); }
.door:hover .door__go { color: var(--color-accent); transform: translateX(4px); }
.door__go svg { width: 18px; height: 18px; }
@media (min-width: 56rem) {
  .doors__head { display: grid; }
  .door { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr) 64px; }
  .door > * { border-right: 1px solid var(--color-rule); }
  .door > :last-child { border-right: 0; }
  .door__have { grid-column: auto; padding: 22px 16px; }
  .door__start { padding: 22px 16px; }
  .door__to { display: flex; align-items: center; padding: 22px 16px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-muted); }
  .door__go { width: auto; }
}

/* ---------- ink section wrapper ---------- */
.inkband { margin-top: var(--section-gap); padding-block: var(--section-gap); position: relative; isolation: isolate; overflow: hidden; }
.inkband::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 60% at 85% 0%, rgb(181 138 63 / 0.18), transparent 70%), radial-gradient(40% 50% at 0% 100%, rgb(18 59 37 / 0.5), transparent 70%); }
.inkband .sec-head h2, .inkband .sec-intro h2 { color: var(--color-ink); }

/* ---------- /services grid ---------- */
.models { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--color-ink); border-left: 1px solid var(--color-rule); }
@media (min-width: 40rem) { .models { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .models { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.model { position: relative; display: grid; gap: var(--space-md); align-content: start; padding: var(--space-lg); border-right: 1px solid var(--color-rule); border-bottom: 1px solid var(--color-rule); text-decoration: none; isolation: isolate; transition: background-color 300ms ease; }
.model::after { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; background: var(--color-accent); transform: scaleX(0); transform-origin: left; transition: transform 500ms var(--ease); }
.model:hover { background: var(--color-paper-2); }
.model:hover::after { transform: scaleX(1); }
.model__top { display: flex; justify-content: space-between; align-items: center; }
.model__ic { width: 44px; height: 44px; display: grid; place-items: center; background: var(--color-accent-soft); color: var(--color-accent); transition: background-color 300ms ease, color 300ms ease, transform 500ms var(--ease); }
.model:hover .model__ic { background: var(--color-accent); color: #fff; transform: rotate(-6deg); }
.model__ic svg { width: 22px; height: 22px; }
.model h3 { font-size: 1.5rem; }
.model__tag { font-size: 0.9375rem; color: var(--color-ink-2); }
.model ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em; color: var(--color-ink-2); }
.model li::before { content: "› "; color: var(--color-accent); }
.model__more { margin-top: var(--space-xs); }

/* ---------- reposition ---------- */
.shift { display: grid; gap: 0; border-top: 1px solid var(--color-ink); }
.shift__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); padding: var(--space-lg) 0; border-bottom: 1px solid var(--color-rule); }
@media (min-width: 48rem) { .shift__row { grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); align-items: center; gap: var(--space-md); } }
.shift__old { font: 400 clamp(1.25rem, 1.4vw + 0.8rem, 1.875rem)/1.2 var(--font-display); letter-spacing: -0.02em; color: var(--color-muted); text-decoration: line-through; text-decoration-color: var(--color-accent-2); text-decoration-thickness: 2px; }
.shift__arrow { color: var(--color-accent); }
.shift__arrow svg { width: 28px; height: 28px; }
.shift__new { font: 500 clamp(1.25rem, 1.4vw + 0.8rem, 1.875rem)/1.2 var(--font-display); letter-spacing: -0.02em; }

/* ---------- /work deck ---------- */
.deck { position: relative; display: flex; flex-direction: column; align-items: center; }
.dcard { width: 92%; z-index: var(--z); transform: translateX(var(--shift)) rotate(var(--tilt)); transition: transform 300ms var(--ease), width 300ms var(--ease); cursor: pointer; perspective: 1500px; color: var(--color-ink); container-type: inline-size; text-decoration: none; display: block; }
.dcard + .dcard { margin-top: -6%; }
.dcard.is-raised { transform: none; z-index: 40; }
@media (min-width: 64rem) {
  .deck { --card-w: 30vw; --row-w: calc(min(100vw, var(--container)) - 2 * var(--gutter)); --step-x: calc((var(--row-w) - var(--card-w)) / (var(--cards) - 1)); display: block; height: calc(var(--card-w) * 0.6); }
  .dcard { position: absolute; top: 50%; left: calc(var(--i) * var(--step-x)); width: var(--card-w); transform: translateY(-50%) rotate(var(--tilt)); transition: transform 200ms ease; }
  .dcard + .dcard { margin-top: 0; }
  .dcard.is-raised { transform: translateY(calc(-50% - 12px)) scale(1.14); }
}
.dcard__in { position: relative; aspect-ratio: 1200 / 680; transform-style: preserve-3d; transition: transform 600ms cubic-bezier(.25, .8, .25, 1); }
.dcard.is-flipped .dcard__in { transform: rotateX(180deg); }
.dface { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 4cqw; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; box-shadow: inset 0 0 0 1px var(--color-rule), 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); transition: box-shadow 200ms ease; }
.dcard.is-raised .dface { box-shadow: inset 0 0 0 1px var(--color-rule-2), 0 25px 50px -12px rgb(0 0 0 / 0.28); }
.dface--back { transform: rotateX(180deg); background: #fff; }
.t-blue { background: #FEF9F2; } .t-green { background: #EEF4EF; } .t-orange { background: #F9F1E4; } .t-violet { background: #F1F4F7; } .t-grey { background: #F5F5F4; }
.drow { display: flex; align-items: center; justify-content: space-between; gap: 1.6cqw; font-family: var(--font-mono); font-size: max(9px, 1.7cqw); letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-muted); }
.dbrand { font-weight: 600; color: var(--color-accent); display: inline-flex; align-items: center; gap: 1cqw; }
.dbrand i { width: 1.2cqw; height: 1.2cqw; min-width: 6px; min-height: 6px; background: var(--color-accent-2); }
.dthumbs { display: flex; gap: 1.4cqw; margin-top: 2.4cqw; height: 19cqw; }
.dthumb { flex: 1; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px var(--color-rule); padding: 1.4cqw; display: grid; gap: 1cqw; align-content: start; }
.dmid { display: flex; flex: 1; flex-direction: column; justify-content: center; min-height: 0; }
.dname { margin: 0.6cqw 0; font-size: max(18px, 4.8cqw); font-weight: 500; letter-spacing: -0.035em; line-height: 1.04; }
.ddomain { font-family: var(--font-mono); font-size: max(9px, 1.6cqw); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-accent); }
.ddesc { margin-top: 1.4cqw; font-size: max(11px, 1.9cqw); line-height: 1.45; color: var(--color-ink-2); }
.dfoot { display: flex; flex-direction: column; gap: 1cqw; margin-top: 1.6cqw; border-top: 1px solid var(--color-rule); padding-top: 1.6cqw; }
.dstack { font-family: var(--font-mono); font-size: max(9px, 1.45cqw); letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dresult { font-family: var(--font-mono); font-size: max(10px, 1.8cqw); font-weight: 600; color: var(--color-green); text-transform: uppercase; letter-spacing: 0.03em; }
.dchips { display: flex; flex-wrap: wrap; gap: 0.8cqw; }
.dchips span { box-shadow: inset 0 0 0 1px var(--color-rule-2); padding: 0.5cqw 0.9cqw; font-family: var(--font-mono); font-size: max(9px, 1.3cqw); letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-muted); }
.dspecs { display: flex; flex-wrap: wrap; gap: 0.6cqw 2.4cqw; font-family: var(--font-mono); font-size: max(9px, 1.4cqw); letter-spacing: 0.03em; color: var(--color-muted); }
.dspecs b { font-weight: 500; color: var(--color-ink); }
.dcta { display: block; border: 2px solid var(--color-accent); padding: 0.7em 1em; text-align: center; font-family: var(--font-mono); font-size: max(11px, 1.7cqw); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--color-accent); transition: background-color 150ms ease, color 150ms ease; }
.dcard:hover .dcta { background: var(--color-accent); color: #fff; }
.dfig { display: flex; gap: 3cqw; margin-top: 1.6cqw; }
.dfig div b { display: block; font: 500 max(16px, 3.4cqw)/1 var(--font-display); letter-spacing: -0.02em; color: var(--color-green); }
.dfig div span { font-family: var(--font-mono); font-size: max(8px, 1.3cqw); letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-muted); }
/* tiny screens inside thumbs */
.ts-bar { height: 4px; background: var(--color-rule); }
.ts-bar.on { background: var(--color-accent); }
.ts-chart { display: flex; align-items: flex-end; gap: 4%; height: 9cqw; }
.ts-chart i { flex: 1; background: var(--color-rule-2); }
.ts-chart i.on { background: var(--color-accent); }
.ts-chart i.g { background: var(--color-green); }
.ts-msg { height: 2.2cqw; max-width: 80%; background: var(--color-paper-3); }
.ts-msg.out { margin-left: auto; background: var(--color-gold-soft); }
.ts-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; }
.ts-col i { height: 3cqw; background: var(--color-paper-3); }
.ts-col i.on { background: var(--color-gold-soft); box-shadow: inset 0 0 0 1px var(--color-accent); }
.ts-lbl { font-family: var(--font-mono); font-size: max(6px, 1.05cqw); letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-muted); }
.ts-big { font: 600 max(10px, 2.6cqw)/1 var(--font-display); letter-spacing: -0.02em; }
@media (max-width: 63.99rem) { .dcard__in { aspect-ratio: auto; } .dface--front { position: relative; } .dthumbs { height: 26cqw; } }
.deck-note { margin-top: var(--space-lg); text-align: center; }
@media (min-width: 64rem) { .deck-note { margin-top: var(--space-2xl); } }

/* ---------- protocol on white ---------- */
.pcard { background: #fff !important; box-shadow: inset 0 0 0 1px var(--color-rule), 0 -24px 60px -40px rgb(17 17 17 / 0.25) !important; border-radius: 0 !important; }
.pcard__when { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em; font-size: 11px !important; border-radius: 0 !important; color: var(--color-accent) !important; background: var(--color-accent-soft) !important; box-shadow: none !important; }
.pcard::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--color-accent); }
.pvis__n { -webkit-text-stroke: 1px var(--color-rule-2) !important; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--color-ink); border-left: 1px solid var(--color-rule); }
@media (min-width: 64rem) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plan { display: grid; gap: var(--space-md); grid-template-rows: auto auto auto auto 1fr auto; padding: var(--space-xl) var(--space-lg); border-right: 1px solid var(--color-rule); border-bottom: 1px solid var(--color-rule); transition: background-color 300ms ease; }
.plan:hover { background: var(--color-paper-2); }
.plan--pick { background: var(--color-ink); color: #fff; }
.plan--pick:hover { background: #0D273B; }
.plan__top { display: flex; justify-content: space-between; align-items: center; gap: var(--space-sm); }
.plan__top h3 { font-size: 1.5rem; }
.plan--pick .chip { color: #fff; background: var(--color-accent); box-shadow: none; }
.price { display: flex; align-items: baseline; gap: var(--space-xs); }
.price b { font: 500 clamp(3rem, 3vw + 1.5rem, 4rem)/1 var(--font-display); letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.price span { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-muted); }
.plan--pick .price span, .plan--pick .plan__sub { color: #B7C2CC; }
.plan__sub { color: var(--color-ink-2); }
.plan__meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em; color: var(--color-accent); padding-bottom: var(--space-md); border-bottom: 1px solid var(--color-rule); }
.plan--pick .plan__meta { color: #D6B06C; border-color: #1F3B52; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: start; }
.plan li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; font-size: 0.9375rem; line-height: 1.45; color: var(--color-ink-2); }
.plan--pick li { color: #DCE3E9; }
.plan li svg { width: 16px; height: 16px; margin-top: 3px; color: var(--color-accent); }
.plan--pick li svg { color: #D6B06C; }
.plan .btn { width: 100%; }
.plan--pick .btn__tx { background: #fff; color: #111; }
.plans__note { margin-top: var(--space-md); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: var(--space-xl); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 64rem) { .faq { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-2xl); } }
.qa { border-top: 1px solid var(--color-ink); }
.qa details { border-bottom: 1px solid var(--color-rule); }
.qa summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 48px minmax(0, 1fr) 32px; gap: var(--space-sm); align-items: center; padding: 22px 0; font: 500 1.1875rem/1.3 var(--font-display); letter-spacing: -0.015em; transition: color 200ms ease; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .meta { color: var(--color-accent); }
.qa summary:hover { color: var(--color-accent); }
.qa summary i { width: 32px; height: 32px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--color-rule-2); transition: transform 400ms var(--ease), background-color 200ms ease, color 200ms ease; }
.qa summary i svg { width: 14px; height: 14px; }
.qa details[open] summary i { transform: rotate(45deg); background: var(--color-accent); color: #fff; box-shadow: none; }
.qa details p { padding: 0 44px 24px 60px; color: var(--color-ink-2); max-width: 70ch; }
.qa details[open] p { animation: enter 500ms var(--ease) both; }
@media (max-width: 40rem) { .qa summary { grid-template-columns: 36px minmax(0, 1fr) 32px; } .qa details p { padding: 0 0 24px 48px; } }

/* ---------- closing band ---------- */
.close { margin-top: var(--section-gap); border-top: 1px solid var(--color-rule); }
.close .lead { color: var(--color-ink-2); }

/* ---------- footer ---------- */
.ft { padding-top: var(--space-3xl); border-top: 1px solid var(--color-rule); }
.ft__cta { display: grid; gap: var(--space-xl); grid-template-columns: minmax(0, 1fr); align-items: end; padding-bottom: var(--space-2xl); }
@media (min-width: 64rem) { .ft__cta { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
.ft__cta h2 { font-size: clamp(3rem, 7vw, 7rem); line-height: 0.94; letter-spacing: -0.045em; }
.ft__info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--color-rule); border-bottom: 1px solid var(--color-rule); }
@media (min-width: 56rem) { .ft__info { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.ft__info div { padding: var(--space-md) var(--space-md) var(--space-md) 0; display: grid; gap: 4px; font-size: 0.9375rem; }
.ft__info div + div { padding-left: var(--space-md); border-left: 1px solid var(--color-rule); }
@media (max-width: 55.99rem) { .ft__info div:nth-child(odd) { border-left: 0; padding-left: 0; } .ft__info div:nth-child(n+3) { border-top: 1px solid var(--color-rule); } }
.ft__info a { text-decoration: none; } .ft__info a:hover { color: var(--color-accent); }
.ft__links { display: grid; gap: var(--space-xl); grid-template-columns: repeat(2, minmax(0, 1fr)); padding-block: var(--space-2xl); }
@media (min-width: 56rem) { .ft__links { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); } }
.ft__brand { grid-column: 1 / -1; display: grid; gap: var(--space-md); align-content: start; }
@media (min-width: 56rem) { .ft__brand { grid-column: auto; } }
.ft__brand p { color: var(--color-muted); max-width: 36ch; font-size: 0.9375rem; }
.ft h3 { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-muted); margin-bottom: var(--space-md); }
.ft ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.9375rem; }
.ft ul a { text-decoration: none; color: var(--color-ink-2); transition: color 200ms ease; }
.ft ul a:hover { color: var(--color-accent); }
.ft__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-md); padding-block: var(--space-lg) calc(var(--space-lg) + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--color-rule); }
.ft__base a { color: var(--color-muted); text-decoration: none; margin-left: var(--space-lg); }
.ft__base a:hover { color: var(--color-ink); }
.ft__big { overflow: hidden; border-top: 1px solid var(--color-rule); padding-top: var(--space-lg); }
.ft__big span { display: block; font: 600 clamp(4rem, 15vw, 15rem)/0.8 var(--font-display); letter-spacing: -0.06em; color: var(--color-paper-2); white-space: nowrap; user-select: none; }
.ft__big .sl { color: var(--color-accent-soft); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .rise { animation: none !important; transform: none !important; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee__track [aria-hidden] { display: none; }
  .pcard { position: relative !important; top: auto !important; }
}

/* the orbit: one glossy capsule, the channels circling it */
.orbit { position: relative; width: min(560px, 100%); aspect-ratio: 1; max-width: 100%; justify-self: center; isolation: isolate; }
.orbit__glow { position: absolute; inset: 20%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in oklab, var(--color-accent) 30%, transparent), transparent); filter: blur(24px); animation: glowpulse 7s ease-in-out infinite; z-index: 0; }
@keyframes glowpulse { 50% { opacity: 0.6; transform: scale(1.06); } }
.orbit canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; cursor: grab; touch-action: pan-y; }
.orbit.is-grab canvas { cursor: grabbing; }
#globe-labels { z-index: 4; pointer-events: none; }
.orbit__hint { position: absolute; left: 50%; bottom: 3%; z-index: 4; transform: translateX(-50%); font-size: var(--text-xs); color: var(--color-muted); pointer-events: none; display: inline-flex; align-items: center; gap: 6px; }
.orbit__hint::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: 0.6; }
.orbit__hint::after { content: ""; width: 18px; height: 1px; background: currentColor; opacity: 0.6; }
.onode { pointer-events: none; }
.onode { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: var(--space-xs); padding: 5px 14px 5px 5px; border-radius: var(--radius-pill); white-space: nowrap; background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--glass-hi), 0 14px 30px -16px var(--color-lift); font-size: var(--text-xs); font-weight: 500; color: var(--color-ink-2); will-change: transform, opacity; }
.onode i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--color-accent-hi); fill: var(--color-accent-hi); background: radial-gradient(circle at 32% 26%, color-mix(in oklab, var(--color-accent) 40%, transparent), color-mix(in oklab, var(--color-accent) 8%, transparent) 70%); box-shadow: inset 0 1px 0 color-mix(in oklab, var(--color-light) 18%, transparent), inset 0 0 0 1px color-mix(in oklab, var(--color-accent) 30%, transparent); }
.onode i svg { width: 16px; height: 16px; }
.otoast { position: absolute; right: 0; bottom: 10%; z-index: 4; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: var(--space-sm); align-items: center; width: 268px; padding: var(--space-sm) var(--space-md) var(--space-sm) var(--space-sm); border-radius: 16px; }
.otoast__ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--color-accent-ink); background: var(--color-accent); animation: okpulse 2.6s ease-out infinite; }
.otoast__ic svg { width: 16px; height: 16px; }
@keyframes okpulse { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--color-accent) 50%, transparent); } 70%, 100% { box-shadow: 0 0 0 12px color-mix(in oklab, var(--color-accent) 0%, transparent); } }
.otoast b { display: block; font-size: var(--text-sm); font-weight: 500; }
.otoast small { display: block; font-size: 0.75rem; color: var(--color-muted); }
.otoast__ic .ic-alert { display: none; }
.orbit.is-alert .otoast__ic { background: var(--color-accent-2); color: var(--color-accent-2-ink); animation: alertpulse 1.6s ease-out infinite; }
.orbit.is-alert .otoast__ic .ic-ok { display: none; }
.orbit.is-alert .otoast__ic .ic-alert { display: block; }
.orbit.is-alert .otoast { box-shadow: var(--glass-hi), inset 0 0 0 1px color-mix(in oklab, var(--color-accent-2) 35%, transparent), var(--shadow-card); }
@keyframes alertpulse { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--color-accent-2) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 12px color-mix(in oklab, var(--color-accent-2) 0%, transparent); } }
.otoast { transition: box-shadow 400ms ease; }
.otoast__txt { transition: opacity 400ms ease, transform 500ms var(--ease); }
.otoast__txt.is-out { opacity: 0; transform: translateY(6px); }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; padding: 0 var(--space-sm); border-radius: var(--radius-pill); font-size: var(--text-xs); font-weight: 500; white-space: nowrap; background: color-mix(in oklab, var(--color-light) 6%, transparent); color: var(--color-ink-2); }
.glass { background: var(--glass); border-radius: var(--radius-card); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.35); backdrop-filter: blur(var(--glass-blur)) saturate(1.35); box-shadow: var(--glass-hi), var(--shadow-card); }
.hero__scroll { position: absolute; left: 50%; bottom: 24px; width: 24px; height: 38px; margin-left: -12px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--color-light) 30%, transparent); }
.hero__scroll::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--color-ink-2); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }
@media (max-width: 63.99rem) { .orbit { width: min(480px, 100%); } .hero__scroll { display: none; } }
@media (max-width: 40rem) {
  .onode { padding: 4px; font-size: 0; gap: 0; }
  .onode i { width: 30px; height: 30px; }
  .orbit { aspect-ratio: 1 / 1.2; }
  .otoast { width: min(300px, 100%); right: auto; left: 50%; bottom: 0; transform: translateX(-50%); }
  .orbit__hint { bottom: auto; top: 0; }
  .hero__proof b { font-size: 1.375rem; }
}


/* ---------- diagnosis: the leak simulation ---------- */
.diag { display: grid; gap: var(--space-lg); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 64rem) { .diag { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); } }
.tube { position: relative; border-radius: 24px; overflow: hidden; background-color: var(--color-paper-2); background-image: radial-gradient(color-mix(in oklab, var(--color-light) 7%, transparent) 1px, transparent 1.2px), radial-gradient(90% 70% at 50% 40%, var(--color-haze), transparent 75%); background-size: 22px 22px, 100% 100%; box-shadow: inset 0 0 0 1px var(--color-rule); }
.tube { min-height: clamp(320px, 30vw, 420px); }
.tube canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.tube__labels { position: absolute; inset: 0; pointer-events: none; }
.tlabel { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: var(--space-xs); padding: var(--space-2xs) var(--space-sm) var(--space-2xs) var(--space-2xs); border-radius: var(--radius-pill); background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--glass-hi); font-size: var(--text-xs); font-weight: 500; white-space: nowrap; transition: box-shadow 300ms ease; }
.tlabel i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in oklab, var(--color-light) 7%, transparent); color: var(--color-ink-2); transition: color 300ms ease, background-color 300ms ease; }
.tlabel svg { width: 15px; height: 15px; }
.tlabel em { font-style: normal; }
.tube__names { display: none; }
@media (max-width: 37.5rem) {
  .tlabel { padding: 3px; }
  .tlabel em { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .tube__names { position: absolute; left: 0; right: 0; bottom: 40px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding-inline: var(--space-xs); text-align: center; font-size: 0.75rem; font-weight: 500; color: var(--color-ink-2); }
  .tube__legend { left: var(--space-md); bottom: var(--space-sm); }
  .tube { min-height: 340px; }
}
.diag-wrap.is-on .tlabel i { color: var(--color-accent-ink); background: var(--color-accent); }
.tlabel.is-end i { color: var(--color-accent-ink); background: var(--color-accent); }
.tube__legend { position: absolute; left: var(--space-lg); bottom: var(--space-md); display: flex; gap: var(--space-lg); font-size: var(--text-xs); color: var(--color-muted); }
.tube__legend span { display: inline-flex; align-items: center; gap: 6px; }
.tube__legend b { width: 8px; height: 8px; border-radius: 50%; }
.tube__legend .k-flow b { background: var(--color-accent); }
.tube__legend .k-lost b { background: var(--color-accent-2); }
.vitals { padding: var(--space-lg); display: grid; gap: var(--space-lg); align-content: start; border-radius: 24px; }
.vitals__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); }
.vitals__head h3 { font-size: 1.125rem; }
.gauge { position: relative; width: min(210px, 70%); aspect-ratio: 1; max-width: 100%; justify-self: center; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge circle { fill: none; stroke-width: 9; }
.gauge__bg { stroke: var(--color-rule); }
.gauge__fg { stroke: var(--color-accent-2); stroke-linecap: round; stroke-dasharray: 326.73; stroke-dashoffset: 326.73; transition: stroke-dashoffset 700ms var(--ease), stroke 400ms ease; }
.diag-wrap.is-on .gauge__fg { stroke: var(--color-accent); }
.gauge__val { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 2px; }
.gauge__val b { font: 500 2.75rem/1 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.gauge__val span { font-size: var(--text-xs); color: var(--color-muted); max-width: 14ch; margin-inline: auto; }
.vrows { margin: 0; display: grid; border-top: 1px solid var(--color-rule); }
.vrows div { display: flex; justify-content: space-between; align-items: baseline; padding-block: var(--space-sm); border-bottom: 1px solid var(--color-rule); }
.vrows dt { font-size: var(--text-sm); color: var(--color-ink-2); }
.vrows dd { margin: 0; font: 500 1.5rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.vrows .is-won dd { color: var(--color-accent); }
.vrows .is-lost dd { color: var(--color-accent-2); }
.switch { display: inline-flex; align-items: center; gap: 14px; min-height: 52px; padding: 0 var(--space-md) 0 var(--space-xs); border: 0; border-radius: var(--radius-pill); background: color-mix(in oklab, var(--color-light) 5%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--color-light) 10%, transparent); cursor: pointer; font-weight: 500; font-size: 0.9375rem; transition: background-color 200ms ease; }
.switch:hover { background: color-mix(in oklab, var(--color-light) 9%, transparent); }
.switch__track { position: relative; flex: none; width: 52px; height: 32px; border-radius: var(--radius-pill); background: var(--color-paper-3); box-shadow: inset 0 0 0 1px var(--color-rule); transition: background-color 300ms ease; }
.switch__track::after { content: ""; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: var(--color-ink-2); transition: transform 360ms var(--ease), background-color 300ms ease; }
.switch[aria-checked="true"] .switch__track { background: var(--color-accent-deep); }
.switch[aria-checked="true"] .switch__track::after { transform: translateX(20px); background: var(--color-accent-hi); }
.vitals__note { font-size: var(--text-xs); color: var(--color-muted); }
.gaps { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-sm); margin: var(--space-lg) 0 0; list-style: none; padding: 0; }
@media (min-width: 48rem) { .gaps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gaps li { display: grid; gap: var(--space-2xs); align-content: start; padding: var(--space-md); border-radius: 14px; background: color-mix(in oklab, var(--color-accent-2) 5%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--color-accent-2) 18%, transparent); font-size: var(--text-sm); transition: background-color 500ms ease, box-shadow 500ms ease; }
.diag-wrap.is-on .gaps li { background: color-mix(in oklab, var(--color-accent) 6%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--color-accent) 22%, transparent); }
.gaps .g-off { color: var(--color-accent-2); font-weight: 500; }
.gaps .g-on { color: var(--color-accent); font-weight: 500; display: none; }
.diag-wrap.is-on .gaps .g-off, .diag-wrap.is-on .gaps .g-txt-off { display: none; }
.diag-wrap.is-on .gaps .g-on, .diag-wrap.is-on .gaps .g-txt-on { display: block; }
.gaps .g-txt { color: var(--color-ink-2); }
.gaps .g-txt-on { display: none; }


/* ---------- protocol: stacking phase cards ---------- */
.stack { display: grid; gap: var(--space-lg); }
.pcard { --dim: 0; position: sticky; top: calc(96px + var(--i) * 16px); display: grid; gap: var(--space-xl); grid-template-columns: minmax(0, 1fr); align-items: center; padding: clamp(var(--space-lg), 4vw, 56px); border-radius: 28px; overflow: hidden; isolation: isolate; transform-origin: 50% 0; background: radial-gradient(70% 90% at 100% 0%, var(--color-haze), transparent 70%), linear-gradient(160deg, var(--color-paper-3), var(--color-paper-2)); box-shadow: inset 0 0 0 1px var(--color-rule), 0 -24px 60px -36px var(--color-lift); }
.pcard::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; background: var(--color-shade); opacity: var(--dim); }
@media (min-width: 56rem) { .pcard { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); min-height: 420px; } }
@media (max-width: 40rem) { .pcard { top: calc(84px + var(--i) * 10px); gap: var(--space-md); } .pvis { min-height: 0; } .pvis__obj { width: 170px; } .pvis__n { font-size: 3rem; top: 0; } }
.pcard__copy { display: grid; gap: var(--space-md); align-content: start; }
.pcard__when { justify-self: start; font-size: var(--text-xs); font-weight: 500; color: var(--color-accent-hi); padding: 5px 12px; border-radius: var(--radius-pill); background: color-mix(in oklab, var(--color-accent) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--color-accent) 28%, transparent); }
.pcard__copy h3 { font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem); }
.pcard__copy > p { color: var(--color-ink-2); max-width: 46ch; }
.pcard ul { list-style: none; margin: var(--space-xs) 0 0; padding: 0; display: grid; gap: var(--space-sm); }
.pcard li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: var(--space-sm); font-size: 0.9875rem; color: var(--color-ink-2); }
.pcard li svg { width: 20px; height: 20px; margin-top: 2px; color: var(--color-accent); }
.pvis { position: relative; display: grid; place-items: center; min-height: 260px; perspective: 900px; }
.pvis__n { position: absolute; right: 0; top: -8px; font: 500 clamp(4rem, 8vw, 7rem)/1 var(--font-display); letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1px color-mix(in oklab, var(--color-light) 14%, transparent); font-variant-numeric: tabular-nums; }
.pvis__obj { position: relative; z-index: 1; width: min(280px, 82%); transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; transition: transform 600ms var(--ease); }
.pvis__obj svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 18px 26px var(--color-lift)); animation: floaty 6s ease-in-out infinite; }
.pvis__shadow { position: absolute; bottom: 10%; left: 50%; width: 46%; height: 18px; margin-left: -23%; border-radius: 50%; background: radial-gradient(closest-side, var(--color-shade), transparent); animation: shadowy 6s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-12px); } }
@keyframes shadowy { 50% { transform: scaleX(0.82); opacity: 0.6; } }
.pcard:nth-child(even) .pvis__obj svg, .pcard:nth-child(even) .pvis__shadow { animation-delay: -3s; }
.drip { animation: drip 2.4s ease-in infinite; }
.drip:nth-of-type(2) { animation-delay: 0.8s; } .drip:nth-of-type(3) { animation-delay: 1.6s; }
@keyframes drip { 0% { transform: translateY(-12px); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(34px); opacity: 0; } }
.scan { animation: scan 5s ease-in-out infinite; }
@keyframes scan { 0%, 100% { transform: translate(-6px, 0); } 50% { transform: translate(-58px, 8px); } }
.wave { animation: wave 3.2s linear infinite; }
@keyframes wave { to { transform: translateX(60px); } }
.bubble { animation: bubble 3s ease-in infinite; }
.bubble:nth-of-type(2) { animation-delay: 1s; } .bubble:nth-of-type(3) { animation-delay: 2s; }
@keyframes bubble { 0% { transform: translateY(0) scale(0.6); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-58px) scale(1); opacity: 0; } }
.cap-l { animation: capL 3.6s var(--ease) infinite alternate; } .cap-r { animation: capR 3.6s var(--ease) infinite alternate; }
@keyframes capL { 0%, 30% { transform: translateX(0); } 100% { transform: translateX(-18px); } }
@keyframes capR { 0%, 30% { transform: translateX(0); } 100% { transform: translateX(18px); } }
.granules { transform-box: fill-box; transform-origin: center; animation: gran 3.6s var(--ease) infinite alternate; }
@keyframes gran { 0%, 40% { opacity: 0; transform: scale(0.4); } 100% { opacity: 1; transform: scale(1.25); } }
.ping { transform-box: fill-box; transform-origin: center; animation: ping 3s ease-out infinite; }
.ping--2 { animation-delay: 1.5s; }
@keyframes ping { from { transform: scale(0.9); opacity: 0.7; } to { transform: scale(2.6); opacity: 0; } }
.ecg { stroke-dasharray: 1; stroke-dashoffset: 1; animation: ecg 2.6s var(--ease) infinite; }
@keyframes ecg { 60%, 100% { stroke-dashoffset: 0; } }
.blink { animation: blinkdot 1.6s ease-in-out infinite; }
@keyframes blinkdot { 50% { opacity: 0.25; } }
.mbar { transform-box: fill-box; transform-origin: 50% 100%; animation: mbar 2.8s var(--ease) infinite alternate; }
.mbar:nth-of-type(2) { animation-delay: 0.3s; } .mbar:nth-of-type(3) { animation-delay: 0.6s; } .mbar:nth-of-type(4) { animation-delay: 0.9s; }
@keyframes mbar { from { transform: scaleY(0.55); } }
.trend { animation: trend 1.8s linear infinite; }
@keyframes trend { to { stroke-dashoffset: -0.07; } }


/* ---------- closing: the formula molecule ---------- */
.close { position: relative; margin-top: var(--section-gap); padding-block: var(--space-3xl); overflow: hidden; isolation: isolate; background: radial-gradient(55% 70% at 70% 50%, var(--color-haze), transparent 72%), linear-gradient(to bottom, var(--color-paper), var(--color-shade)); }
.close__grid { display: grid; gap: var(--space-xl); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 64rem) { .close__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.close__copy { display: grid; gap: var(--space-lg); justify-items: start; position: relative; z-index: 1; }
.close__copy h2 { max-width: 14ch; }
.close__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.close__stage { position: relative; }
.close canvas { display: block; width: 100%; height: clamp(340px, 44vw, 580px); cursor: grab; touch-action: pan-y; }
.close__hint { position: absolute; right: 0; bottom: 0; font-size: var(--text-xs); color: var(--color-muted); }


/* ---------- case files page ---------- */
.ch-old { position: relative; isolation: isolate; overflow: hidden; padding-block: 148px 72px; }
.ch::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 80% 10%, var(--color-haze), transparent 70%), radial-gradient(40% 50% at 0% 100%, color-mix(in oklab, var(--color-accent) 10%, transparent), transparent 70%); }
.ch__grid { display: grid; gap: var(--space-xl); grid-template-columns: minmax(0, 1fr); align-items: end; }
@media (min-width: 64rem) { .ch__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.ch h1 { font-size: clamp(2.5rem, 4vw + 0.8rem, 4.4rem); max-width: 15ch; }
.ch .lead { max-width: 44ch; }
.ch__copy > * { animation: enter 900ms var(--ease) both; }
.ch__copy > :nth-child(2) { animation-delay: 120ms; }
.note { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: var(--space-sm); padding: var(--space-md); border-radius: 0; font-size: var(--text-sm); color: var(--color-ink-2); background: color-mix(in oklab, var(--color-accent-2) 7%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--color-accent-2) 25%, transparent); }
.note svg { width: 20px; height: 20px; color: var(--color-accent-2); margin-top: 1px; }
.picker { display: grid; gap: var(--space-md); grid-template-columns: minmax(0, 1fr); margin-top: var(--space-2xl); }
@media (min-width: 56rem) { .picker { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pick { position: relative; display: grid; gap: var(--space-md); align-content: start; padding: var(--space-lg); border-radius: 0; text-decoration: none; background: linear-gradient(165deg, var(--color-paper-3), var(--color-paper-2)); box-shadow: inset 0 0 0 1px var(--color-rule); transition: transform 400ms var(--ease), box-shadow 300ms ease; animation: enter 900ms var(--ease) both; }
.pick:nth-child(2) { animation-delay: 120ms; } .pick:nth-child(3) { animation-delay: 240ms; }
.pick:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--color-accent) 45%, transparent), 0 24px 50px -30px var(--color-pick-glow); }
.pick__top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); }
.pick__ic { width: 46px; height: 46px; border-radius: 0; display: grid; place-items: center; color: var(--color-accent-hi); background: radial-gradient(circle at 32% 26%, color-mix(in oklab, var(--color-accent) 40%, transparent), color-mix(in oklab, var(--color-accent) 8%, transparent) 70%); box-shadow: inset 0 1px 0 color-mix(in oklab, var(--color-ink) 14%, transparent), inset 0 0 0 1px color-mix(in oklab, var(--color-accent) 30%, transparent); }
.pick__ic svg { width: 22px; height: 22px; }
.pick__n { font-size: var(--text-xs); color: var(--color-muted); }
.pick h2 { font-size: 1.375rem; max-width: none; }
.pick p { color: var(--color-ink-2); font-size: 0.9375rem; }
.pick__kpi { display: flex; align-items: baseline; gap: var(--space-sm); padding-top: var(--space-md); border-top: 1px solid var(--color-rule); }
.pick__kpi b { font: 500 2rem/1 var(--font-display); letter-spacing: -0.03em; color: var(--color-accent); font-variant-numeric: tabular-nums; }
.pick__kpi span { font-size: var(--text-sm); color: var(--color-muted); }
.pick__go { font-size: var(--text-sm); font-weight: 500; color: var(--color-accent-hi); }

/* sticky case navigator */
.cnav { position: sticky; top: calc(84px + env(safe-area-inset-top, 0px)); z-index: 30; margin-top: var(--space-2xl); }
.cnav__in { display: flex; gap: var(--space-2xs); padding: 5px; border-radius: var(--radius-pill); width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; margin-inline: auto; }
.cnav a { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 42px; padding: 0 var(--space-md); border-radius: var(--radius-pill); text-decoration: none; font-size: var(--text-sm); font-weight: 500; color: var(--color-ink-2); white-space: nowrap; transition: background-color 250ms ease, color 250ms ease; }
.cnav a:hover { color: var(--color-ink); background: color-mix(in oklab, var(--color-ink) 5%, transparent); }
.cnav a.is-on { color: var(--color-accent-ink); background: var(--color-accent); }
.cnav a i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0.6; }

/* one case */
.case-x { padding-block: var(--section-gap) 0; scroll-margin-top: 150px; }
.cx-head { display: grid; gap: var(--space-xl); grid-template-columns: minmax(0, 1fr); align-items: end; margin-bottom: var(--space-xl); }
@media (min-width: 64rem) { .cx-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.cx-tags { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-bottom: var(--space-md); }
.cx-head h2 { font-size: clamp(2rem, 2.6vw + 1rem, 3.25rem); max-width: 18ch; }
.cx-head .lead { max-width: 46ch; }
.cx-media { position: relative; border-radius: 0; overflow: hidden; aspect-ratio: 21 / 8; max-width: 100%; background: radial-gradient(70% 90% at 70% 20%, var(--color-haze), transparent 70%), linear-gradient(160deg, var(--color-paper-3), var(--color-paper-2)); box-shadow: inset 0 0 0 1px var(--color-rule); display: grid; place-items: center; }
@media (max-width: 40rem) { .cx-media { aspect-ratio: auto; display: block; padding-top: 170px; } .cx-media > svg { position: absolute; top: 50px; left: 50%; margin-left: -36px; } .cx-media::after { background: linear-gradient(to bottom, transparent, var(--color-scrim-1) 45%); } .cx-kpis { position: relative; left: auto; right: auto; bottom: auto; padding: var(--space-md); } }
.cx-media > svg { width: 72px; height: 72px; color: color-mix(in oklab, var(--color-accent) 60%, transparent); }
.cx-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; filter: saturate(0.7) brightness(0.62) contrast(1.05); transform: scale(1.06); transition: transform 1600ms var(--ease); }
.cx-media.is-in img { transform: scale(1); }
.cx-media::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(90deg, var(--color-scrim-1), transparent 70%); }
.cx-kpis { position: absolute; z-index: 3; left: clamp(var(--space-md), 3vw, var(--space-xl)); right: clamp(var(--space-md), 3vw, var(--space-xl)); bottom: clamp(var(--space-md), 3vw, var(--space-xl)); display: grid; gap: var(--space-sm); grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 40rem) { .cx-kpis { grid-template-columns: minmax(0, 1fr); } }
.kpi-t { padding: var(--space-md); border-radius: 0; display: grid; gap: var(--space-2xs); }
.kpi-t b { font: 500 clamp(1.75rem, 2vw + 1rem, 2.6rem)/1 var(--font-display); letter-spacing: -0.035em; color: var(--color-ink); font-variant-numeric: tabular-nums; }
.kpi-t span { font-size: var(--text-xs); color: var(--color-ink-2); }
.cx-snap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: var(--space-lg) 0 0; border-block: 1px solid var(--color-rule); }
@media (min-width: 56rem) { .cx-snap { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.cx-snap div { padding: var(--space-md) var(--space-md) var(--space-md) 0; display: grid; gap: var(--space-2xs); }
.cx-snap dt { font-size: var(--text-xs); color: var(--color-muted); }
.cx-snap dd { margin: 0; font-size: 0.9375rem; font-weight: 500; }
.cx-block { margin-top: var(--space-3xl); display: grid; gap: var(--space-xl); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 64rem) { .cx-block { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-2xl); } }
.cx-label { display: grid; gap: var(--space-sm); align-content: start; }
.cx-label h3 { font-size: clamp(1.4rem, 1vw + 1rem, 1.75rem); }
.cx-label p { color: var(--color-ink-2); font-size: 0.9875rem; max-width: 40ch; }
.cx-step { font-size: var(--text-xs); font-weight: 500; color: var(--color-accent); }

/* before / after */
.ba { padding: var(--space-lg); border-radius: 0; display: grid; gap: var(--space-lg); }
.ba__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-md); }
.ba__bar small { color: var(--color-muted); font-size: var(--text-xs); }
.seg { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: var(--radius-pill); background: color-mix(in oklab, var(--color-ink) 4%, transparent); box-shadow: inset 0 0 0 1px var(--color-rule); }
.seg::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: var(--radius-pill); background: var(--color-accent-2); transition: transform 450ms var(--ease), background-color 300ms ease; }
.seg.is-after::before { transform: translateX(100%); background: var(--color-accent); }
.seg button { position: relative; z-index: 1; min-height: 40px; padding: 0 var(--space-lg); border: 0; background: none; cursor: pointer; font-size: var(--text-sm); font-weight: 600; color: var(--color-ink-2); border-radius: var(--radius-pill); transition: color 300ms ease; }
.seg button[aria-pressed="true"] { color: var(--color-accent-ink); }
.seg:not(.is-after) button[aria-pressed="true"] { color: var(--color-accent-2-ink); }
.metrics { display: grid; gap: var(--space-sm); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) { .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.met { padding: var(--space-md); border-radius: 0; background: color-mix(in oklab, var(--color-ink) 3%, transparent); box-shadow: inset 0 0 0 1px var(--color-rule); display: grid; gap: var(--space-xs); transition: box-shadow 400ms ease; }
.met__top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-sm); }
.met__name { font-size: var(--text-sm); color: var(--color-ink-2); }
.met__delta { font-size: var(--text-xs); font-weight: 500; color: var(--color-accent); opacity: 0; transition: opacity 400ms ease; }
.ba.is-after .met__delta { opacity: 1; }
.met__val { font: 500 2rem/1 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--color-accent-2); transition: color 400ms ease; }
.ba.is-after .met__val { color: var(--color-accent); }
.met__track { height: 6px; border-radius: 0; background: color-mix(in oklab, var(--color-ink) 5%, transparent); overflow: hidden; }
.met__track i { display: block; height: 100%; border-radius: 0; background: var(--color-accent-2); transform-origin: left; transition: transform 900ms var(--ease), background-color 400ms ease; }
.ba.is-after .met__track i { background: var(--color-accent); }

/* challenge */
.pains { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-sm); }
.pains li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: var(--space-sm); align-items: start; padding: var(--space-md); border-radius: 0; background: color-mix(in oklab, var(--color-accent-2) 5%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--color-accent-2) 16%, transparent); }
.pains li i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--color-accent-2-ink); background: var(--color-accent-2); }
.pains li i svg { width: 16px; height: 16px; }
.pains b { display: block; font-weight: 500; margin-bottom: 2px; }
.pains span { color: var(--color-ink-2); font-size: 0.9375rem; }
.pull { margin: var(--space-md) 0 0; padding: var(--space-lg); border-left: 2px solid var(--color-accent); display: grid; gap: var(--space-sm); }
.pull blockquote { margin: 0; font: 400 clamp(1.125rem, 0.6vw + 1rem, 1.375rem)/1.45 var(--font-display); letter-spacing: -0.01em; }
.pull figcaption { font-size: var(--text-sm); color: var(--color-muted); display: flex; flex-wrap: wrap; gap: var(--space-xs); align-items: center; }

/* what we built: timeline + screens */
.build { display: grid; gap: var(--space-lg); }
.phases { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.phases::before { content: ""; position: absolute; left: 0; right: 0; top: 15px; height: 2px; background: var(--color-rule); }
.phases li { position: relative; display: grid; gap: var(--space-xs); padding-right: var(--space-sm); }
.phases li b { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: var(--text-xs); background: var(--color-paper); box-shadow: inset 0 0 0 1.5px var(--color-accent-deep); color: var(--color-accent); transition: background-color 400ms ease, color 400ms ease; }
.phases.is-in li b { background: var(--color-accent); color: var(--color-accent-ink); }
.phases.is-in li:nth-child(2) b { transition-delay: 300ms; } .phases.is-in li:nth-child(3) b { transition-delay: 600ms; } .phases.is-in li:nth-child(4) b { transition-delay: 900ms; }
.phases strong { font-size: var(--text-sm); font-weight: 500; }
.phases span { font-size: var(--text-xs); color: var(--color-muted); }
@media (max-width: 40rem) { .phases { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-lg); } .phases::before { display: none; } }
.shots { border-radius: 0; padding: var(--space-md); display: grid; gap: var(--space-md); }
.shots__tabs { display: flex; flex-wrap: wrap; gap: var(--space-2xs); }
.shots__tabs button { min-height: 38px; padding: 0 var(--space-md); border: 0; border-radius: var(--radius-pill); cursor: pointer; font-size: var(--text-sm); font-weight: 500; color: var(--color-ink-2); background: color-mix(in oklab, var(--color-ink) 4%, transparent); transition: background-color 250ms ease, color 250ms ease; }
.shots__tabs button:hover { color: var(--color-ink); }
.shots__tabs button[aria-selected="true"] { color: var(--color-accent-ink); background: var(--color-accent); }
.screens { display: grid; }
.screen { grid-area: 1 / 1; min-width: 0; }
.js .screen { opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 400ms ease, transform 500ms var(--ease), visibility 0s linear 400ms; }
.js .screen.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity 400ms ease, transform 500ms var(--ease), visibility 0s; }
.win { border-radius: 0; overflow: hidden; background: var(--color-paper); box-shadow: inset 0 0 0 1px var(--color-rule), 0 20px 40px -24px var(--color-lift); }
.win__bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: var(--color-paper-3); font-size: 0.75rem; color: var(--color-muted); }
.win__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--color-rule); }
.win__bar span { margin-left: var(--space-xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win__body { padding: var(--space-md); min-height: 260px; display: grid; gap: var(--space-sm); align-content: start; }
.shot-cap { font-size: var(--text-xs); color: var(--color-muted); }
/* mock UI atoms */
.m-lp { border-radius: 0; background: var(--color-card); color: var(--color-well-ink); padding: var(--space-md); display: grid; gap: var(--space-sm); }
.m-lp strong { font: 500 1.125rem/1.2 var(--font-display); }
.m-lp small { color: var(--color-well-muted); font-size: 0.8125rem; }
.m-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.m-opts span { padding: 7px 11px; border-radius: var(--radius-pill); font-size: 0.75rem; font-weight: 500; box-shadow: inset 0 0 0 1px var(--color-well-rule); }
.m-opts span.on { background: var(--color-well-ink); color: var(--color-card); box-shadow: none; }
.m-btn { justify-self: start; padding: 9px 14px; border-radius: var(--radius-pill); background: var(--color-accent-deep); color: var(--color-card); font-size: 0.8125rem; font-weight: 600; }
.m-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 40rem) { .m-board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.m-col { display: grid; gap: 6px; align-content: start; }
.m-col > span { font-size: 0.75rem; color: var(--color-muted); }
.m-card { padding: 9px; border-radius: 0; background: color-mix(in oklab, var(--color-ink) 5%, transparent); font-size: 0.75rem; line-height: 1.35; color: var(--color-ink-2); }
.m-card b { display: block; color: var(--color-ink); font-weight: 500; font-size: 0.8125rem; }
.m-card.hot { box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--color-accent) 50%, transparent); }
.m-chat { display: grid; gap: 8px; }
.m-msg { max-width: 82%; padding: 9px 12px; border-radius: 0 14px 14px 4px; font-size: 0.8125rem; line-height: 1.4; background: color-mix(in oklab, var(--color-ink) 6%, transparent); }
.m-msg.out { margin-left: auto; border-radius: 0 14px 4px 14px; background: color-mix(in oklab, var(--color-accent) 18%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--color-accent) 30%, transparent); }
.m-msg small { display: block; margin-top: 3px; font-size: 0.6875rem; color: var(--color-muted); }
.m-ok { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 0; font-size: 0.8125rem; color: var(--color-accent-hi); background: color-mix(in oklab, var(--color-accent) 12%, transparent); }
.m-ok svg { width: 16px; height: 16px; flex: none; }
.m-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.m-table th { text-align: left; font-weight: 500; font-size: 0.75rem; color: var(--color-muted); padding: 0 8px 8px; }
.m-table td { padding: 9px 8px; border-top: 1px solid var(--color-rule); }
.m-tbl-wrap { overflow-x: auto; }
.pill-s { display: inline-block; padding: 3px 9px; border-radius: var(--radius-pill); font-size: 0.6875rem; font-weight: 600; }
.pill-s.ok { color: var(--color-accent-ink); background: var(--color-accent); }
.pill-s.wait { color: var(--color-accent-2-ink); background: var(--color-accent-2); }
.pill-s.dim { color: var(--color-ink-2); background: color-mix(in oklab, var(--color-ink) 6%, transparent); }
.m-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.m-kpis div { padding: 10px; border-radius: 0; background: color-mix(in oklab, var(--color-ink) 4%, transparent); display: grid; gap: 2px; }
.m-kpis small { font-size: 0.6875rem; color: var(--color-muted); }
.m-kpis b { font: 500 1.25rem/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.m-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; font-size: 0.6875rem; text-align: center; }
.m-cal span { padding: 8px 0; border-radius: 0; background: color-mix(in oklab, var(--color-ink) 3%, transparent); color: var(--color-muted); }
.m-cal span.b { background: color-mix(in oklab, var(--color-accent) 22%, transparent); color: var(--color-accent-hi); }
.m-cal span.h { color: var(--color-ink-2); background: none; }

/* results chart */
.res { padding: var(--space-lg); border-radius: 0; display: grid; gap: var(--space-md); }
.res__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--space-sm); }
.res__head h4 { margin: 0; font: 500 1.0625rem/1.2 var(--font-display); }
.legend { display: flex; gap: var(--space-md); font-size: var(--text-xs); color: var(--color-muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 0; }
.legend .l-b i { background: var(--color-accent-2); } .legend .l-a i { background: var(--color-accent); }
.chart { width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: var(--color-rule); stroke-width: 1; }
.chart text { fill: var(--color-muted); font: 500 11px var(--font-body); }
.chart .val { fill: var(--color-ink); font-size: 12px; }
.chart .bar-b { fill: var(--color-accent-2); }
.chart .bar-a { fill: var(--color-accent); }
.chart .cb { transform-box: fill-box; transform-origin: 50% 100%; transition: transform 1100ms var(--ease); }
.chart .divider { stroke: var(--color-ink-2); stroke-dasharray: 3 5; opacity: 0.5; }
.chart.armed .cb { transform: scaleY(0); }
.chart .line { fill: none; stroke: var(--color-accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1800ms var(--ease) 400ms; }
.chart.armed .line { stroke-dashoffset: 1; }
.res__foot { display: grid; gap: var(--space-sm); grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: var(--space-md); border-top: 1px solid var(--color-rule); }
@media (max-width: 40rem) { .res__foot { grid-template-columns: minmax(0, 1fr); } }
.res__foot div { display: grid; gap: 2px; }
.res__foot b { font: 500 1.5rem/1.1 var(--font-display); letter-spacing: -0.02em; color: var(--color-accent); font-variant-numeric: tabular-nums; }
.res__foot span { font-size: var(--text-xs); color: var(--color-muted); }
.next { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: var(--space-sm); padding: var(--space-md); border-radius: 0; font-size: 0.9375rem; color: var(--color-ink-2); background: color-mix(in oklab, var(--color-accent) 6%, transparent); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--color-accent) 20%, transparent); }
.next svg { width: 20px; height: 20px; color: var(--color-accent); margin-top: 2px; }
.next b { color: var(--color-ink); font-weight: 500; }
.cx-sep { margin-top: var(--section-gap); height: 1px; background: linear-gradient(90deg, transparent, var(--color-rule), transparent); }

/* compare table + final cta */
.cmp-wrap { overflow-x: auto; border-radius: 0; box-shadow: inset 0 0 0 1px var(--color-rule); }
.cmp { width: 100%; min-width: 640px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.cmp th, .cmp td { text-align: left; padding: var(--space-md) var(--space-lg); border-bottom: 1px solid var(--color-rule); font-size: 0.9375rem; }
.cmp thead th { font-size: var(--text-xs); font-weight: 500; color: var(--color-muted); background: var(--color-paper-2); }
.cmp tbody th { font-weight: 500; color: var(--color-ink-2); }
.cmp td b { color: var(--color-accent); font-weight: 500; }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp tbody tr { transition: background-color 200ms ease; }
.cmp tbody tr:hover { background: color-mix(in oklab, var(--color-ink) 3%, transparent); }
.cta-band { margin-top: var(--section-gap); padding: clamp(var(--space-xl), 5vw, var(--space-3xl)); border-radius: 0; display: grid; gap: var(--space-lg); justify-items: start; background: radial-gradient(70% 100% at 100% 0%, var(--color-haze), transparent 70%), linear-gradient(160deg, var(--color-paper-3), var(--color-paper-2)); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--color-accent) 30%, transparent); }
.cta-band h2 { max-width: 18ch; }
.cta-band .row-btn { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
@media (max-width: 40rem) { .cta-band .row-btn .btn { flex: 1 1 100%; } }


/* ---------- shared tweaks for reused animation pieces ---------- */
.pcard { top: calc(132px + var(--i) * 12px) !important; }
@media (min-width: 64rem) { .pcard { top: calc(96px + var(--i) * 16px) !important; } }
.orbit { width: min(600px, 100%); }
.close { padding-block: var(--space-3xl); }
.close h2 { font-size: clamp(2.5rem, 4.4vw + 0.6rem, 4.5rem); }
.diag-wrap .tube, .diag-wrap .vitals, .gaps li { border-radius: 0 !important; }
.switch, .switch__track { border-radius: 0 !important; }
.switch__track::after { border-radius: 0 !important; }
.tlabel, .onode, .otoast { border-radius: 0 !important; }
.onode i, .tlabel i { border-radius: 0 !important; }

/* ---------- services list ---------- */
.svcs { border-top: 1px solid var(--color-ink); }
.svc { display: grid; gap: var(--space-lg); grid-template-columns: minmax(0, 1fr); padding-block: var(--space-xl); border-bottom: 1px solid var(--color-rule); scroll-margin-top: 140px; }
@media (min-width: 64rem) { .svc { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: var(--space-xl); } }
.svc__name { display: grid; gap: var(--space-sm); align-content: start; }
.svc__name h2 { font-size: clamp(2rem, 2.4vw + 1rem, 3rem); }
.svc__name p { color: var(--color-ink-2); max-width: 42ch; }
.svc__inc h3, .svc__res h3 { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-muted); margin-bottom: var(--space-sm); }
.svc__inc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.svc__inc li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; font-size: 0.9375rem; color: var(--color-ink-2); }
.svc__inc li svg { width: 16px; height: 16px; margin-top: 4px; color: var(--color-accent); }
.svc__res { display: grid; gap: var(--space-sm); align-content: start; padding: var(--space-lg); background: var(--color-paper-2); }
.svc__res b { font: 500 clamp(2.25rem, 2vw + 1.2rem, 3rem)/1 var(--font-display); letter-spacing: -0.04em; color: var(--color-green); font-variant-numeric: tabular-nums; }
.svc__res p { font-size: 0.875rem; color: var(--color-ink-2); }
.svc__res .meta { margin-top: var(--space-xs); }
.phases3 { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--color-ink); border-left: 1px solid var(--color-rule); }
@media (min-width: 56rem) { .phases3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ph3 { padding: var(--space-xl) var(--space-lg); border-right: 1px solid var(--color-rule); border-bottom: 1px solid var(--color-rule); display: grid; gap: var(--space-md); align-content: start; position: relative; }
.ph3 b { font: 500 4rem/1 var(--font-display); letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1px var(--color-rule-2); transition: -webkit-text-stroke-color 300ms ease, color 300ms ease; }
.ph3:hover b { color: var(--color-accent); -webkit-text-stroke-color: var(--color-accent); }
.ph3 h3 { font-size: 1.75rem; }
.ph3 p { color: var(--color-ink-2); }
.ph3 .meta { color: var(--color-accent); }

/* ---------- single service ---------- */
.chatpanel { padding: var(--space-lg); display: grid; gap: var(--space-md); min-height: 440px; align-content: start; }
.chatpanel__top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); padding-bottom: var(--space-md); border-bottom: 1px solid var(--color-rule); }
.agent { display: flex; align-items: center; gap: var(--space-sm); }
.agent__av { width: 40px; height: 40px; display: grid; place-items: center; background: var(--color-accent-deep); color: #fff; }
.agent__av svg { width: 20px; height: 20px; }
.agent b { display: block; font-weight: 500; font-size: 0.9375rem; }
.agent small { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--color-green); letter-spacing: 0.04em; text-transform: uppercase; }
.chatlog { display: grid; gap: 10px; align-content: start; }
.cm { max-width: 84%; padding: 10px 13px; font-size: 0.9375rem; line-height: 1.45; background: rgb(255 255 255 / 0.07); animation: cmIn 500ms var(--ease) both; }
.cm.out { margin-left: auto; background: rgb(214 176 108 / 0.16); box-shadow: inset 0 0 0 1px rgb(214 176 108 / 0.35); }
.cm small { display: block; margin-top: 4px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.03em; color: var(--color-muted); }
.cm.sys { max-width: none; display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.03em; color: var(--color-green); background: rgb(108 196 145 / 0.1); box-shadow: inset 0 0 0 1px rgb(108 196 145 / 0.3); }
.cm.sys svg { width: 16px; height: 16px; flex: none; }
.cm.typing { width: 64px; display: flex; gap: 4px; justify-content: center; }
.cm.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--color-ink-2); animation: tdot 1s ease-in-out infinite; }
.cm.typing i:nth-child(2) { animation-delay: 0.15s; } .cm.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes tdot { 50% { opacity: 0.3; transform: translateY(-3px); } }
@keyframes cmIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.chans { display: flex; gap: 6px; flex-wrap: wrap; }
.probs { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--color-ink); border-left: 1px solid var(--color-rule); }
@media (min-width: 56rem) { .probs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.prob { padding: var(--space-xl) var(--space-lg); border-right: 1px solid var(--color-rule); border-bottom: 1px solid var(--color-rule); display: grid; gap: var(--space-md); align-content: start; }
.prob__ic { width: 44px; height: 44px; display: grid; place-items: center; background: var(--color-accent-2-soft); color: var(--color-accent-2); }
.prob__ic svg { width: 20px; height: 20px; }
.prob h3 { font-size: 1.375rem; }
.prob p { color: var(--color-ink-2); }
.flow { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); counter-reset: f; }
@media (min-width: 56rem) { .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-md); } }
.flow__line { display: none; position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: var(--color-rule); }
.flow__line i { position: absolute; inset: 0; background: var(--color-accent); transform-origin: left; transform: scaleX(0); transition: transform 2400ms var(--ease); }
.flow.is-in .flow__line i { transform: scaleX(1); }
@media (min-width: 56rem) { .flow__line { display: block; } }
.fstep { position: relative; display: grid; gap: var(--space-sm); align-content: start; }
.fstep__n { width: 48px; height: 48px; display: grid; place-items: center; background: var(--color-paper); box-shadow: inset 0 0 0 1.5px var(--color-rule-2); font-family: var(--font-mono); font-weight: 600; font-size: 13px; color: var(--color-muted); transition: background-color 400ms ease, color 400ms ease, box-shadow 400ms ease; }
.flow.is-in .fstep__n { background: var(--color-accent); color: #fff; box-shadow: none; }
.flow.is-in .fstep:nth-child(3) .fstep__n { transition-delay: 600ms; } .flow.is-in .fstep:nth-child(4) .fstep__n { transition-delay: 1200ms; } .flow.is-in .fstep:nth-child(5) .fstep__n { transition-delay: 1800ms; }
.fstep h3 { font-size: 1.25rem; }
.fstep p { font-size: 0.9375rem; color: var(--color-ink-2); }
.fstep .meta { color: var(--color-accent); }
.guards { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-md); }
@media (min-width: 48rem) { .guards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.guard { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--space-md); padding: var(--space-lg); box-shadow: inset 0 0 0 1px var(--color-rule); background: #fff; transition: box-shadow 300ms ease; }
.guard:hover { box-shadow: inset 0 0 0 1px var(--color-green); }
.guard i { width: 44px; height: 44px; display: grid; place-items: center; background: var(--color-green-soft); color: var(--color-green); }
.guard i svg { width: 20px; height: 20px; }
.guard h3 { font-size: 1.125rem; margin-bottom: 4px; }
.guard p { font-size: 0.9375rem; color: var(--color-ink-2); }
.res3 { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--color-ink); border-left: 1px solid var(--color-rule); }
@media (min-width: 56rem) { .res3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.res3 a { padding: var(--space-xl) var(--space-lg); border-right: 1px solid var(--color-rule); border-bottom: 1px solid var(--color-rule); display: grid; gap: var(--space-sm); text-decoration: none; transition: background-color 300ms ease; }
.res3 a:hover { background: var(--color-paper-2); }
.res3 b { font: 500 clamp(2.5rem, 2.4vw + 1.2rem, 3.5rem)/1 var(--font-display); letter-spacing: -0.04em; color: var(--color-accent); font-variant-numeric: tabular-nums; }
.res3 p { color: var(--color-ink-2); }
.incl-note { margin-top: var(--space-xl); display: grid; gap: var(--space-lg); grid-template-columns: minmax(0, 1fr); align-items: center; padding: var(--space-xl); background: var(--color-accent-soft); box-shadow: inset 0 0 0 1px rgb(18 59 37 / 0.25); }
@media (min-width: 56rem) { .incl-note { grid-template-columns: minmax(0, 1fr) auto; } }
.incl-note h3 { font-size: 1.75rem; }
.incl-note p { color: var(--color-ink-2); margin-top: 6px; }

/* ---------- about ---------- */
.story { display: grid; gap: var(--space-xl); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 64rem) { .story { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--space-2xl); } }
.story__text { display: grid; gap: var(--space-md); }
.story__text p { font-size: 1.125rem; line-height: 1.7; color: var(--color-ink-2); max-width: 62ch; }
.story__text p:first-child { font: 500 clamp(1.5rem, 1.4vw + 1rem, 2.125rem)/1.3 var(--font-display); letter-spacing: -0.02em; color: var(--color-ink); }
.facts { margin: 0; border-top: 1px solid var(--color-ink); align-self: start; }
.facts div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: var(--space-md); padding: 14px 0; border-bottom: 1px solid var(--color-rule); font-size: 0.9375rem; }
.facts dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-muted); padding-top: 3px; }
.facts dd { margin: 0; }
.princ { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--color-ink); border-left: 1px solid var(--color-rule); }
@media (min-width: 48rem) { .princ { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .princ { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pr { padding: var(--space-xl) var(--space-lg); border-right: 1px solid var(--color-rule); border-bottom: 1px solid var(--color-rule); display: grid; gap: var(--space-md); align-content: start; }
.pr .meta { color: var(--color-accent); }
.pr h3 { font-size: 1.375rem; }
.pr p { color: var(--color-ink-2); font-size: 0.9375rem; }
.founder { display: grid; gap: var(--space-xl); grid-template-columns: minmax(0, 1fr); padding: var(--space-xl); box-shadow: inset 0 0 0 1px var(--color-rule); }
@media (min-width: 56rem) { .founder { grid-template-columns: 240px minmax(0, 1fr); } }
.founder__av { aspect-ratio: 1; max-width: 240px; display: grid; place-items: center; background: linear-gradient(150deg, var(--color-accent), var(--color-accent-deep)); color: #fff; position: relative; overflow: hidden; }
.founder__av span { font: 600 5rem/1 var(--font-display); letter-spacing: -0.05em; }
.founder__av::after { content: ""; position: absolute; left: 18%; top: -10%; width: 14%; height: 120%; background: rgb(255 255 255 / 0.12); transform: skewX(-20deg); }
.founder__txt { display: grid; gap: var(--space-md); align-content: start; }
.founder__txt h3 { font-size: 2rem; }
.founder__txt p { color: var(--color-ink-2); max-width: 64ch; }
.toolstack { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--color-ink); }
@media (min-width: 48rem) { .toolstack { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .toolstack { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.toolstack__col { padding: var(--space-lg) var(--space-md) var(--space-lg) 0; border-bottom: 1px solid var(--color-rule); }
@media (min-width: 72rem) { .toolstack__col + .toolstack__col { padding-left: var(--space-md); border-left: 1px solid var(--color-rule); } }
.toolstack__col ul { list-style: none; margin: var(--space-md) 0 0; padding: 0; display: grid; gap: 8px; }
.toolstack__col li { display: flex; justify-content: space-between; align-items: center; font-size: 0.9375rem; }
.toolstack__col li::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--color-green); }
.tl { border-top: 1px solid var(--color-ink); }
.tl__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); padding: var(--space-lg) 0; border-bottom: 1px solid var(--color-rule); }
@media (min-width: 48rem) { .tl__row { grid-template-columns: 180px minmax(0, 1fr); gap: var(--space-xl); } }
.tl__row b { font: 500 1.75rem/1 var(--font-display); letter-spacing: -0.03em; color: var(--color-accent); }
.tl__row h3 { font-size: 1.25rem; margin-bottom: 4px; }
.tl__row p { color: var(--color-ink-2); max-width: 64ch; }

/* ---------- contact ---------- */
.ct { display: grid; gap: var(--space-xl); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 64rem) { .ct { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-2xl); align-items: start; } }
.form { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); padding: var(--space-xl); box-shadow: inset 0 0 0 1px var(--color-rule); background: #fff; }
@media (min-width: 40rem) { .form { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form .full { grid-column: 1 / -1; } }
.form__head { display: grid; gap: 6px; }
.form__head h2 { font-size: 2rem; }
.field { display: grid; gap: 7px; }
.field label { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-ink-2); }
.field label em { font-style: normal; color: var(--color-muted); }
.input { width: 100%; min-height: 50px; padding: 12px 14px; border: 0; border-radius: 0; background: var(--color-paper-2); box-shadow: inset 0 0 0 1px var(--color-rule); transition: box-shadow 200ms ease, background-color 200ms ease; }
textarea.input { min-height: 120px; resize: vertical; }
.input::placeholder { color: var(--color-muted); }
.input:hover { box-shadow: inset 0 0 0 1px var(--color-rule-2); }
.input:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 2px var(--color-accent); }
.input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--color-accent-2); }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--color-muted) 50%), linear-gradient(135deg, var(--color-muted) 50%, transparent 50%); background-position: calc(100% - 22px) 22px, calc(100% - 16px) 22px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.err { min-height: 1lh; font-size: var(--text-xs); color: var(--color-accent-2); }
.consent { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; font-size: var(--text-xs); color: var(--color-muted); line-height: 1.5; }
.consent input { width: 20px; height: 20px; margin: 0; accent-color: var(--color-accent); }
.form__foot { display: flex; flex-wrap: wrap; gap: var(--space-md); align-items: center; }
.status { font-size: var(--text-sm); color: var(--color-ink-2); }
.status a { color: var(--color-accent); }
.book { padding: var(--space-xl); display: grid; gap: var(--space-lg); }
.book h3 { font-size: 2rem; }
.book p { color: var(--color-ink-2); }
.specs { margin: 0; border-top: 1px solid var(--color-rule); }
.specs div { display: flex; justify-content: space-between; gap: var(--space-md); padding: 12px 0; border-bottom: 1px solid var(--color-rule); font-size: 0.9375rem; }
.specs dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-muted); }
.specs dd { margin: 0; text-align: right; }
.ct__side { display: grid; gap: var(--space-lg); }
.next3 { display: grid; gap: 0; border-top: 1px solid var(--color-ink); }
.next3 li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--space-md); padding: var(--space-md) 0; border-bottom: 1px solid var(--color-rule); }
.next3 b { font-family: var(--font-mono); font-size: 13px; color: var(--color-accent); }
.next3 strong { display: block; font-weight: 500; }
.next3 span { font-size: 0.9375rem; color: var(--color-ink-2); }

/* ---------- case files (light) ---------- */
.ch { padding-block: 0 var(--space-xl) !important; }
.ch::before { display: none; }
.cnav__in { background: rgb(255 255 255 / 0.92) !important; box-shadow: inset 0 0 0 1px var(--color-rule), 0 10px 20px -12px rgb(0 0 0 / 0.15) !important; }
.cnav a.is-on { color: #fff !important; background: var(--color-accent) !important; }
.cnav { top: calc(118px + env(safe-area-inset-top, 0px)) !important; }
@media (min-width: 64rem) { .cnav { top: calc(78px + env(safe-area-inset-top, 0px)) !important; } }
.cx-media::after { background: linear-gradient(90deg, rgb(17 17 17 / 0.82), rgb(17 17 17 / 0.2) 75%) !important; }
.cx-media .kpi-t { background: rgb(255 255 255 / 0.94) !important; box-shadow: none !important; }
.cx-media > svg { color: var(--color-accent) !important; }
.win__body .m-msg { background: var(--color-paper-3); }
.win__body .m-msg.out { background: var(--color-gold-soft); box-shadow: inset 0 0 0 1px rgb(181 138 63 / 0.4); }
.win__body .m-card { background: var(--color-paper-2); box-shadow: inset 0 0 0 1px var(--color-rule); }
.win__body .m-ok { color: var(--color-green); background: var(--color-green-soft); }
.met__val { color: var(--color-accent-2) !important; }
.ba.is-after .met__val, .ba.is-after .met__delta { color: var(--color-green) !important; }
.ba.is-after .met__track i, .seg.is-after::before { background: var(--color-green) !important; }
.res__foot b, .pick__kpi b, .cmp td b { color: var(--color-green) !important; }
.chart .cb.bar-a { fill: var(--color-accent); }
.chart .line { stroke: var(--color-green) !important; }
.legend .l-a i { background: var(--color-accent) !important; }
.pull { border-left-color: var(--color-accent) !important; }
.cta-band { background: var(--color-ink) !important; color: #fff; box-shadow: none !important; }
.cta-band .lead { color: #CDD5DC; }
.cta-band .btn__tx { background: #fff; color: #111; }
.cta-band .btn--line .btn__tx { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px #fff; }
.cta-band .btn--line .btn__ic { background: #fff; color: #111; }

/* ---------- polish ---------- */
.glass.dk, .dk .glass { background: var(--color-paper-2); -webkit-backdrop-filter: none; backdrop-filter: none; }
.hhero .glass, .hhero .onode, .hhero .otoast { background: rgb(22 24 30 / 0.78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.chip, .cnav__in, .cnav a, .seg, .seg::before, .seg button, .shots__tabs button, .pill-s, .m-opts span, .m-btn, .tube__legend b { border-radius: 0 !important; }
.cx-media { background: linear-gradient(135deg, #0A2031 0%, #123B25 100%) !important; }
.cx-media > svg { color: #D6B06C !important; }

/* ================= v3: crest, ivory atmosphere, premium footer, production line ================= */
body { background: var(--color-paper-2); }
body::after { content: ""; position: fixed; inset: -20%; z-index: -2; pointer-events: none;
  background: radial-gradient(38% 34% at 18% 22%, rgb(181 138 63 / 0.16), transparent 70%), radial-gradient(34% 30% at 82% 30%, rgb(18 59 37 / 0.10), transparent 70%), radial-gradient(40% 36% at 50% 88%, rgb(10 32 49 / 0.07), transparent 70%);
  animation: atmos 28s ease-in-out infinite alternate; }
@keyframes atmos { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(3%, -2%, 0) scale(1.05); } 100% { transform: translate3d(-3%, 2%, 0) scale(1.02); } }
.hd { background: rgb(254 249 242 / 0.88); }
.tools { background: rgb(255 255 255 / 0.55); }
.stats, .phero { background: transparent; }
.stat, .model, .plan:not(.plan--pick), .ph3, .prob, .pr, .door, .form, .guard { background-color: rgb(255 255 255 / 0.6); }
.model:hover, .plan:not(.plan--pick):hover { background: #fff; }

/* crest logo */
.logo { gap: 10px; font-size: 1.3125rem; }
.logo img { width: 42px; height: 42px; flex: none; filter: drop-shadow(0 2px 4px rgb(10 32 49 / 0.18)); transition: transform 500ms var(--ease); }
a:hover > .logo img { transform: rotate(-6deg) scale(1.06); }
.logo .amp, .ft .amp { color: var(--color-gold); font-weight: 500; }
.sl { color: var(--color-gold); }
.meta b { color: var(--color-gold); }
.hd__nav a[aria-current="page"]::after { background: var(--color-gold); }
.hd__nav a[aria-current="page"] .n, .hd__nav a:hover .n { color: var(--color-gold); }
.hd__status { color: var(--color-accent); } .hd__status::before { background: #2E8B57; }

/* buttons: gold arrow block on navy */
.btn__ic { background: var(--color-gold); color: var(--color-ink); }
.dk .btn__ic { background: var(--color-gold); color: #0A2031; }
.btn__tx { background: var(--color-ink); color: #FEF9F2; }
.btn:hover .btn__tx { background: var(--color-accent); color: #fff; }
.dk .btn__tx { background: #FEF9F2; color: #0A2031; }
.dk .btn:hover .btn__tx { background: var(--color-gold); color: #0A2031; }
.btn--line .btn__ic { background: var(--color-ink); color: var(--color-gold-hi); }
.dk .btn--line .btn__ic { background: #FEF9F2; color: #0A2031; }
.link-arrow, .model__ic, .tool__ic, .door__start, .fstep .meta, .pr .meta, .ph3 .meta, .qa summary .meta, .plan__meta { color: var(--color-accent); }
.model__ic, .tool__ic { background: var(--color-gold-soft); color: var(--color-accent); fill: var(--color-accent); }
.model:hover .model__ic { background: var(--color-accent); color: var(--color-gold-hi); }
.model::after { background: var(--color-gold); }
.door::before { background: var(--color-gold-soft); }
.door__start mark { background: var(--color-gold-soft); color: var(--color-accent); }
.qa details[open] summary i { background: var(--color-accent); }
.c-blue { color: var(--color-accent); } .c-violet { color: var(--color-gold); }
.chip--blue { color: var(--color-accent); background: var(--color-gold-soft); }
.plan--pick { background: linear-gradient(165deg, #0F2A40, #0A2031 60%); }
.plan--pick .chip { background: var(--color-gold); color: #0A2031; }
.plan--pick .btn__tx { background: #FEF9F2; color: #0A2031; }
.pcard::before { background: var(--color-gold); }
.pcard__when { color: var(--color-accent) !important; background: var(--color-gold-soft) !important; }
.dbrand { color: var(--color-accent); } .dbrand i { background: var(--color-gold); }
.ddomain { color: var(--color-gold); }
.dcta { border-color: var(--color-accent); color: var(--color-accent); }
.dcard:hover .dcta { background: var(--color-accent); color: #fff; }
.ts-chart i.on { background: var(--color-accent); } .ts-bar.on { background: var(--color-gold); }
.founder__av { background: linear-gradient(150deg, #123B25, #0A2031); }
.founder__av span { color: var(--color-gold-hi); }
.incl-note { background: var(--color-gold-soft) !important; box-shadow: inset 0 0 0 1px rgb(181 138 63 / 0.35) !important; }
.cnav a.is-on { background: var(--color-accent) !important; }
.chart .cb.bar-a { fill: var(--color-accent); }
.legend .l-a i { background: var(--color-accent) !important; }
.pull { border-left-color: var(--color-gold) !important; }
.cta-band { background: linear-gradient(160deg, #0F2A40, #0A2031) !important; }
.cta-band .btn__tx { background: #FEF9F2; color: #0A2031; }
.agent__av { background: var(--color-accent); color: var(--color-gold-hi); }
.hhero::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, transparent, var(--color-gold), transparent); opacity: 0.5; }
.ft__big { display: none; }

/* ---------- production line (diagnosis) ---------- */
.pline { position: relative; overflow: hidden; min-height: clamp(360px, 32vw, 460px); background: radial-gradient(70% 60% at 50% 30%, #123352, transparent 75%), linear-gradient(180deg, #0F2A40, #0A2031); box-shadow: inset 0 0 0 1px var(--color-rule); }
.pline canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pline__legend { position: absolute; right: var(--space-lg); top: var(--space-md); display: flex; flex-wrap: wrap; gap: var(--space-md); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--color-muted); }
.pline__legend span { display: inline-flex; align-items: center; gap: 6px; }
.pline__legend b { width: 9px; height: 9px; }
.pline__legend .k1 b { background: #D6B06C; } .pline__legend .k2 b { background: #E6805C; }
@media (max-width: 40rem) { .pline { min-height: 400px; } .pline__legend { left: var(--space-md); right: auto; } }
.vitals { background: var(--color-paper-2) !important; }
.gauge__fg { stroke: var(--color-accent-2); }
.diag-wrap.is-on .gauge__fg { stroke: var(--color-accent); }

/* ---------- premium footer ---------- */
.pf { position: relative; isolation: isolate; overflow: hidden; margin-top: 0; }
.pf::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 70% at 85% 0%, rgb(181 138 63 / 0.22), transparent 70%), radial-gradient(45% 60% at 0% 100%, rgb(18 59 37 / 0.6), transparent 70%), linear-gradient(180deg, #0A2031, #061522); }
.pf::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.35; background-image: linear-gradient(rgb(255 255 255 / 0.04) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 0.04) 1px, transparent 1px); background-size: 72px 72px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%); }
.pf__cta { display: grid; gap: var(--space-xl); grid-template-columns: minmax(0, 1fr); align-items: end; padding-block: var(--space-3xl) var(--space-2xl); border-bottom: 1px solid var(--color-rule); }
@media (min-width: 64rem) { .pf__cta { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.pf__cta h2 { font-size: clamp(3rem, 7vw + 0.5rem, 7.5rem); line-height: 0.92; letter-spacing: -0.05em; }
.pf__cta h2 em { font-style: normal; color: var(--color-gold); }
.pf__act { display: grid; gap: var(--space-lg); }
.pf__act p { color: var(--color-ink-2); font-size: 1.0625rem; max-width: 44ch; }
.pf__btns { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
@media (max-width: 40rem) { .pf__btns .btn { width: 100%; } }
.pf__live { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-green); }
.pf__live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--color-green); box-shadow: 0 0 0 0 rgb(108 196 145 / 0.6); animation: ping2 2s ease-out infinite; }
@keyframes ping2 { 70%, 100% { box-shadow: 0 0 0 10px rgb(108 196 145 / 0); } }
.pf__grid { display: grid; gap: var(--space-xl); grid-template-columns: repeat(2, minmax(0, 1fr)); padding-block: var(--space-2xl); border-bottom: 1px solid var(--color-rule); }
@media (min-width: 64rem) { .pf__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 2.2fr) minmax(0, 1.6fr) minmax(0, 3fr); } }
.pf__brand { grid-column: 1 / -1; display: grid; gap: var(--space-lg); align-content: start; }
@media (min-width: 64rem) { .pf__brand { grid-column: auto; } }
.pf__crest { display: flex; align-items: center; gap: var(--space-md); text-decoration: none; }
.pf__crest img { width: 84px; height: 84px; filter: drop-shadow(0 10px 24px rgb(0 0 0 / 0.45)); animation: crestfloat 6s ease-in-out infinite; }
@keyframes crestfloat { 50% { transform: translateY(-6px); } }
.pf__crest > span { display: grid; gap: 6px; }
.pf__crest b { font: 600 1.75rem/1 var(--font-display); letter-spacing: -0.035em; }
.pf__crest small { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-gold); }
.pf__brand p { color: var(--color-muted); max-width: 38ch; font-size: 0.9375rem; }
.pf h3 { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-gold); margin-bottom: var(--space-md); }
.pf ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.pf ul a { position: relative; text-decoration: none; color: var(--color-ink-2); font-size: 0.9375rem; transition: color 200ms ease, padding-left 300ms var(--ease); }
.pf ul a::before { content: ""; position: absolute; left: 0; top: 50%; width: 0; height: 1px; background: var(--color-gold); transition: width 300ms var(--ease); }
.pf ul a:hover { color: #fff; padding-left: 16px; }
.pf ul a:hover::before { width: 10px; }
.pf__contact { grid-column: 1 / -1; display: grid; gap: var(--space-sm); align-content: start; }
@media (min-width: 64rem) { .pf__contact { grid-column: auto; } }
.pf__ci { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: var(--space-sm); align-items: center; padding: 12px; background: rgb(255 255 255 / 0.04); box-shadow: inset 0 0 0 1px var(--color-rule); transition: box-shadow 250ms ease, background-color 250ms ease; }
.pf__ci:hover { box-shadow: inset 0 0 0 1px var(--color-gold); background: rgb(214 176 108 / 0.06); }
.pf__ci > span:first-child { width: 36px; height: 36px; display: grid; place-items: center; color: var(--color-gold); background: rgb(214 176 108 / 0.12); }
.pf__ci > span:first-child svg { width: 18px; height: 18px; }
.pf__ci > span:last-child { display: grid; gap: 2px; font-size: 0.9375rem; min-width: 0; overflow-wrap: anywhere; }
.pf__ci small { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-muted); }
.pf__word { overflow: hidden; padding-block: var(--space-xl) var(--space-lg); border-bottom: 1px solid var(--color-rule); }
.pf__track { display: flex; width: max-content; gap: var(--space-2xl); animation: marquee 40s linear infinite; }
.pf__track span { display: inline-flex; align-items: center; gap: var(--space-2xl); font: 600 clamp(3.5rem, 10vw, 9rem)/1 var(--font-display); letter-spacing: -0.05em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgb(214 176 108 / 0.45); }
.pf__track > i { font-style: normal; display: inline-block; flex: none; width: 18px; height: 18px; background: var(--color-gold); transform: rotate(45deg); -webkit-text-stroke: 0; }
.pf__base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-md); padding-block: var(--space-lg) calc(var(--space-lg) + env(safe-area-inset-bottom, 0px)); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--color-muted); }
.pf__legal { display: flex; flex-wrap: wrap; gap: var(--space-lg); }
.pf__base a { color: var(--color-muted); text-decoration: none; } .pf__base a:hover { color: var(--color-gold); }
.pf__top { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; box-shadow: inset 0 0 0 1px var(--color-rule-2); color: var(--color-ink) !important; }
.pf__top svg { width: 14px; height: 14px; transform: rotate(-90deg); color: var(--color-gold); transition: transform 300ms var(--ease); }
.pf__top:hover svg { transform: rotate(-90deg) translateX(3px); }
@media (prefers-reduced-motion: reduce) { body::after, .pf__track, .pf__crest img { animation: none !important; } }

.pf__track { align-items: center; }
.pf__ci b { font-weight: 500; }
@media (max-width: 40rem) { .pf__grid { gap: var(--space-xl) var(--space-lg); } .pf__crest img { width: 68px; height: 68px; } }

/* =================== v4: forest-led palette, softer dark panels, hero video, mobile menu, side tabs =================== */
:root { --rgb-rule: 58 110 82; --rgb-node: 18 56 37; --rgb-ink-2: 222 233 225; --rgb-muted: 172 194 180; }
.dk {
  --color-paper: #1E4E36; --color-paper-2: #245B40; --color-paper-3: #2C694A;
  --color-ink: #FEF9F2; --color-ink-2: #DCE8DF; --color-muted: #ABC2B3; --color-rule: #3A6E52; --color-rule-2: #4A8064;
  --color-accent-ink: #123B25; --color-green: #9BE0B5; --color-haze: #2C6649;
  --color-scrim-1: rgb(18 59 37 / 0.9); --color-scrim-2: rgb(18 59 37 / 0.65); --color-scrim-3: rgb(18 59 37 / 0.2);
}
.dk { background-color: var(--color-paper); }
.btn__tx { background: var(--color-accent); color: #fff; }
.btn:hover .btn__tx { background: var(--color-accent-hi); color: #fff; }
.btn--line .btn__tx { background: transparent; color: var(--color-accent); box-shadow: inset 0 0 0 1px var(--color-accent); }
.btn--line .btn__ic { background: var(--color-accent); color: var(--color-gold-hi); }
.btn--line:hover .btn__tx { background: var(--color-accent); color: #fff; }
.dk .btn__tx { background: #FEF9F2; color: #123B25; }
.dk .btn--line .btn__tx { color: #FEF9F2; box-shadow: inset 0 0 0 1px rgb(254 249 242 / 0.7); background: transparent; }
.dk .btn--line .btn__ic { background: #FEF9F2; color: #123B25; }
.dk .btn--line:hover .btn__tx { background: #FEF9F2; color: #123B25; }
.plan--pick { background: linear-gradient(165deg, #2A6447, #1E4E36 60%); }
.plan--pick .chip, .dk .btn__ic { color: #123B25; }
.plan--pick .btn__tx, .cta-band .btn__tx { color: #123B25; }
.cta-band { background: linear-gradient(160deg, #2A6447, #1A4530) !important; }
.cx-media { background: linear-gradient(135deg, #1E4E36 0%, #123B25 100%) !important; }
.founder__av { background: linear-gradient(150deg, #2A6447, #123B25); }
.pline { background: radial-gradient(70% 60% at 50% 30%, #2D6A4B, transparent 75%), linear-gradient(180deg, #245B40, #1A4530); }
.pf::before { background: radial-gradient(50% 70% at 85% 0%, rgb(181 138 63 / 0.24), transparent 70%), radial-gradient(45% 60% at 0% 100%, rgb(10 32 49 / 0.25), transparent 70%), linear-gradient(180deg, #1E4E36, #173F2B); }
.inkband::before { background: radial-gradient(50% 60% at 85% 0%, rgb(181 138 63 / 0.2), transparent 70%), radial-gradient(40% 50% at 0% 100%, rgb(10 32 49 / 0.18), transparent 70%), linear-gradient(180deg, #1E4E36, #1A4732); }
.hhero .glass, .hhero .onode, .hhero .otoast { background: rgb(18 59 37 / 0.62); }
.hd__status::before { background: #2E8B57; }

/* hero video */
.hhero { background: #1E4E36; }
.hhero::before { z-index: -1; }
.hhero__media { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
.hhero__vid { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.04); animation: vidzoom 26s ease-in-out infinite alternate; }
@keyframes vidzoom { to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); } }
.hhero__veil { position: absolute; inset: 0; z-index: -2; background: linear-gradient(100deg, rgb(18 59 37 / 0.88) 0%, rgb(18 59 37 / 0.72) 36%, rgb(24 70 47 / 0.48) 68%, rgb(24 70 47 / 0.38) 100%), linear-gradient(0deg, rgb(18 59 37 / 0.55), transparent 40%); }
@media (max-width: 64rem) { .hhero__veil { background: linear-gradient(180deg, rgb(18 59 37 / 0.82), rgb(18 59 37 / 0.7) 55%, rgb(18 59 37 / 0.85)); } }

/* hamburger + mobile menu */
.hd__burger { display: none; }
@media (max-width: 63.99rem) {
  .hd { flex-wrap: nowrap; }
  .hd__nav { display: none; }
  .hd__logo { padding-left: max(16px, env(safe-area-inset-left, 0px)); }
  .hd__side { gap: var(--space-sm); padding-right: max(12px, env(safe-area-inset-right, 0px)); }
  .hd__burger { display: inline-grid; place-content: center; gap: 5px; width: 46px; height: 46px; padding: 0; border: 0; cursor: pointer; background: var(--color-accent); position: relative; overflow: hidden; }
  .hd__burger::after { content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: var(--color-gold); transform: scaleX(0.35); transform-origin: left; transition: transform 400ms var(--ease); }
  .hd__burger:hover::after { transform: scaleX(1); }
  .hd__burger span { display: block; width: 20px; height: 2px; background: #FEF9F2; transition: transform 400ms var(--ease), width 400ms var(--ease); }
  .hd__burger span:nth-child(2) { width: 14px; margin-left: 6px; background: var(--color-gold-hi); }
  .hd__burger:hover span:nth-child(2) { width: 20px; margin-left: 0; }
}
@media (max-width: 30rem) { .hd__status span { display: none; } .logo img { width: 36px; height: 36px; } }
.mnav { position: fixed; inset: 0; z-index: 1200; display: flex; flex-direction: column; padding: calc(env(safe-area-inset-top, 0px) + 12px) max(20px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 24px) max(20px, env(safe-area-inset-left, 0px)); color: #FEF9F2; visibility: hidden; pointer-events: none; overflow-y: auto; }
.mnav__bg { position: fixed; inset: 0; z-index: -1; background: radial-gradient(60% 40% at 100% 0%, rgb(181 138 63 / 0.35), transparent 70%), radial-gradient(70% 50% at 0% 100%, rgb(44 105 74 / 0.9), transparent 70%), linear-gradient(170deg, #1E4E36, #123B25); clip-path: circle(0% at calc(100% - 40px) 34px); transition: clip-path 700ms cubic-bezier(0.76, 0, 0.24, 1); }
.mnav__bg::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgb(255 255 255 / 0.05) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 0.05) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(180deg, #000, transparent 80%); }
.mnav.is-open { visibility: visible; pointer-events: auto; }
.mnav.is-open .mnav__bg { clip-path: circle(150% at calc(100% - 40px) 34px); }
.mnav__top { display: flex; align-items: center; justify-content: space-between; min-height: 48px; }
.mnav__top .logo { color: #FEF9F2; } .mnav__top .logo .amp { color: var(--color-gold-hi); }
.mnav__close { width: 46px; height: 46px; border: 0; background: rgb(254 249 242 / 0.1); box-shadow: inset 0 0 0 1px rgb(254 249 242 / 0.25); position: relative; cursor: pointer; }
.mnav__close span { position: absolute; left: 13px; top: 22px; width: 20px; height: 2px; background: #FEF9F2; transform: rotate(45deg); }
.mnav__close span + span { transform: rotate(-45deg); background: var(--color-gold-hi); }
.mnav__meta { margin: var(--space-xl) 0 var(--space-sm); color: rgb(254 249 242 / 0.6); } .mnav__meta b { color: var(--color-gold-hi); }
.mnav__links { display: grid; border-top: 1px solid rgb(254 249 242 / 0.16); }
.mnav__links a { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; padding: 16px 0; border-bottom: 1px solid rgb(254 249 242 / 0.16); color: #FEF9F2; text-decoration: none; }
.mnav__links .n { font-family: var(--font-mono); font-size: 12px; color: var(--color-gold-hi); }
.mnav__links .t { font: 500 clamp(2rem, 9vw, 2.75rem)/1 var(--font-display); letter-spacing: -0.04em; }
.mnav__links .a { width: 38px; height: 38px; display: grid; place-items: center; background: rgb(254 249 242 / 0.08); transition: background 300ms ease, transform 300ms var(--ease); }
.mnav__links .a svg { width: 16px; height: 16px; }
.mnav__links a:hover .a, .mnav__links a[aria-current="page"] .a { background: var(--color-gold); color: #123B25; transform: translateX(-4px); }
.mnav__links a[aria-current="page"] .t { color: var(--color-gold-hi); }
.mnav__links a, .mnav__foot, .mnav__meta { opacity: 0; transform: translateY(24px); transition: opacity 500ms ease, transform 700ms var(--ease); }
.mnav.is-open .mnav__links a, .mnav.is-open .mnav__foot, .mnav.is-open .mnav__meta { opacity: 1; transform: none; transition-delay: calc(220ms + var(--i, 0) * 60ms); }
.mnav__foot { margin-top: auto; padding-top: var(--space-xl); display: grid; gap: var(--space-md); }
.mnav__foot .btn { width: 100%; }
.mnav__info { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-sm); font-family: var(--font-mono); font-size: 12px; color: rgb(254 249 242 / 0.75); }
.mnav__info a { color: inherit; }
.mnav__live { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: #9BE0B5; }
.mnav__live i { width: 8px; height: 8px; border-radius: 50%; background: #9BE0B5; animation: breathe 2.4s ease-in-out infinite; }
html.menu-open, html.pop-open { overflow: hidden; }

/* side tabs (itsua-style) */
.ptabs { position: fixed; left: 0; top: 50%; z-index: 900; display: flex; flex-direction: column; gap: 8px; transform: translateY(-50%); pointer-events: none; }
.ptab { pointer-events: auto; display: inline-flex; align-items: stretch; padding: 0; border: 0; cursor: pointer; font: 500 11px/1 var(--font-mono); letter-spacing: 0.06em; transform: translateX(-76px); transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 8px 20px -10px rgb(10 32 49 / 0.5); }
.ptab__l { width: 76px; padding: 11px 0; text-align: center; background: #0A2031; color: #fff; }
.ptab__a { display: grid; place-items: center; width: 36px; padding: 11px 0; color: #fff; font-size: 13px; }
.ptab--g .ptab__a { background: #1E6B42; } .ptab--o .ptab__a { background: #B58A3F; } .ptab--c .ptab__a { background: #A84B2B; }
.ptab:hover, .ptab:focus-visible, .ptab[data-revealed="true"] { transform: translateX(0); }
@media (max-width: 47.99rem) { .ptabs { top: auto; bottom: calc(env(safe-area-inset-bottom, 0px) + 18px); transform: none; } .ptab__a { width: 32px; padding: 10px 0; } .ptab__l { padding: 10px 0; } }

/* popups */
.pop { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; padding: 16px; visibility: hidden; pointer-events: none; }
.pop.is-open { visibility: visible; pointer-events: auto; }
.pop__bd { position: absolute; inset: 0; background: rgb(10 32 49 / 0.38); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity 300ms ease; }
.pop.is-open .pop__bd { opacity: 1; }
.pop__p { position: relative; display: none; flex-direction: column; width: 100%; max-width: 640px; max-height: calc(100dvh - 32px); overflow: hidden; background: #fff; color: #0A2031; border-top: 4px solid var(--c); box-shadow: 0 30px 80px -20px rgb(10 32 49 / 0.45); opacity: 0; transform: translateY(16px) scale(0.98); transition: opacity 300ms ease, transform 400ms var(--ease); }
.pop__p.is-on { display: flex; }
.pop.is-open .pop__p.is-on { opacity: 1; transform: none; }
.pop__p--g { --c: #1E6B42; } .pop__p--o { --c: #B58A3F; } .pop__p--c { --c: #A84B2B; max-width: 680px; }
.pop__hd { display: flex; align-items: center; justify-content: space-between; padding: 10px 20px; background: #FEF9F2; border-bottom: 1px solid #ECE3D4; font: 600 11px/1.4 var(--font-mono); letter-spacing: 0.04em; color: var(--c); flex: none; }
.pop__x { border: 0; background: none; cursor: pointer; font-size: 18px; line-height: 1; color: #66737F; padding: 4px; } .pop__x:hover { color: #0A2031; }
.pop__body { padding: 28px; overflow-y: auto; min-height: 0; flex: 1; } .pop__body--flush { padding: 0; }
@media (max-width: 40rem) { .pop__body { padding: 22px; } }
.pop__sl { margin: 0 0 18px; font: 600 11px/1.4 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--c); }
.pop__sl--c { color: #A84B2B; } .pop__sl--ink { color: #0A2031; margin: 24px 0 8px; }
.pop h3 { font-size: clamp(22px, 3vw, 26px); line-height: 1.15; letter-spacing: -0.02em; color: #0A2031; }
.pop__sub { margin: 8px 0 0; font-size: 14px; line-height: 1.55; color: #66737F; }
.pop__list, .pop__table, .pop__steps { margin-top: 26px; border: 1px solid #ECE3D4; }
.pop__steps { margin-top: 0; }
.pop__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 16px; border-left: 2px solid var(--rc); color: #0A2031; text-decoration: none; font-size: 14px; font-weight: 500; line-height: 1.35; transition: background 200ms ease; }
.pop__row + .pop__row { border-top: 1px solid #ECE3D4; }
.pop__row b { font: 600 11px/1 var(--font-mono); white-space: nowrap; color: var(--rc); }
.pop__row:hover { background: #FEF9F2; }
.pop__row--g, .pop__kv--g, .pop__step--g { --rc: #1E6B42; } .pop__row--o, .pop__kv--o, .pop__step--o { --rc: #B58A3F; } .pop__row--c, .pop__step--c { --rc: #A84B2B; }
@media (max-width: 30rem) { .pop__row { grid-template-columns: 1fr; gap: 4px; } }
.pop__big { display: grid; gap: 8px 24px; align-items: end; } @media (min-width: 40rem) { .pop__big { grid-template-columns: auto 1fr; } }
.pop__num { display: flex; align-items: baseline; color: var(--c); line-height: 0.9; }
.pop__num b { font: 500 clamp(96px, 18vw, 150px)/0.85 var(--font-display); letter-spacing: -0.06em; }
.pop__num small { margin-left: 4px; font: 500 clamp(24px, 4vw, 34px)/1 var(--font-display); letter-spacing: -0.03em; }
.pop__big > div:last-child { padding-bottom: 12px; }
.pop__kv { display: grid; grid-template-columns: 120px 1fr; padding: 10px 16px; border-left: 2px solid var(--rc, #ECE3D4); font: 12px/1.5 var(--font-mono); }
.pop__kv + .pop__kv { border-top: 1px solid #ECE3D4; }
.pop__kv span:first-child { font-weight: 600; letter-spacing: 0.06em; color: var(--rc, #0A2031); }
.pop__kv--g span:last-child { color: #1E6B42; font-weight: 600; }
.pop__split { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid #ECE3D4; }
.pop__split > div { padding: 22px; background: #FEF9F2; } .pop__split > div + div { border-left: 1px solid #ECE3D4; }
.pop__split .pop__sl { margin-bottom: 8px; color: #1E6B42; } .pop__split .pop__sl--c { color: #A84B2B; }
.pop__num--g { color: #1E6B42; } .pop__num--c { color: #A84B2B; }
.pop__split .pop__num b { font-size: clamp(64px, 12vw, 88px); } .pop__split .pop__num small { font-size: clamp(20px, 3vw, 30px); }
.pop__split .meta { margin-top: 8px; text-transform: none; letter-spacing: 0; font-size: 12px; }
.pop__pad { padding: 28px; } @media (max-width: 40rem) { .pop__pad { padding: 22px; } }
.pop__step { display: grid; grid-template-columns: auto 1fr 1.6fr; align-items: center; gap: 16px; padding: 10px 16px; border-left: 2px solid var(--rc); font: 12px/1.45 var(--font-mono); color: #66737F; }
.pop__step + .pop__step { border-top: 1px solid #ECE3D4; }
.pop__step > span:first-child { font-weight: 600; color: var(--rc); }
.pop__step b { font: 500 14px/1.3 var(--font-body); color: #0A2031; }
@media (max-width: 30rem) { .pop__step { grid-template-columns: auto 1fr; } .pop__step > span:last-child { grid-column: 2; } }
.pop__ft { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 20px; background: #FEF9F2; border-top: 1px solid #ECE3D4; flex: none; }
@media (min-width: 40rem) { .pop__ft { flex-direction: row; align-items: center; justify-content: space-between; } .pop__ft--2 > * { flex: 1; } }
.pop__ghost { display: flex; align-items: center; justify-content: center; padding: 12px 16px; border: 1px solid #ECE3D4; font: 500 12px/1 var(--font-mono); letter-spacing: 0.04em; color: #0A2031; text-decoration: none; background: transparent; transition: background 200ms ease; }
.pop__ghost:hover { background: #fff; }
.pop__go { display: flex; align-items: stretch; font: 500 12px/1 var(--font-mono); letter-spacing: 0.04em; text-decoration: none; white-space: nowrap; }
.pop__go-a { display: grid; place-items: center; padding: 12px 14px; color: #fff; }
.pop__go-a--g { background: #1E6B42; } .pop__go-a--o { background: #B58A3F; } .pop__go-a--c { background: #A84B2B; }
.pop__go-t { flex: 1; display: grid; place-items: center; padding: 12px 18px; background: #0A2031; color: #fff; transition: background 200ms ease; }
.pop__go:hover .pop__go-t { background: #123B25; }
@media (prefers-reduced-motion: reduce) { .hhero__vid { animation: none; } .mnav__bg { transition: none; } }

/* =================== v5: AI reply agent walkthrough film (diagnosis section) =================== */
.fm { --fm-forest: #123B25; --fm-forest-hi: #1E6B42; --fm-gold: #B58A3F; --fm-gold-hi: #CDA65E; --fm-ivory: #FEF9F2; --fm-navy: #0A2031; --fm-coral: #A84B2B; --fm-rule: #ECE3D4; --fm-muted: #66737F; --fm-spring: cubic-bezier(0.34, 1.32, 0.64, 1); --fm-ease: cubic-bezier(0.22, 1, 0.36, 1); color: var(--fm-navy); }
.fm__stage { position: relative; aspect-ratio: 16 / 8.4; min-height: 500px; max-height: 720px; width: 100%; overflow: hidden; border-radius: 14px; background: radial-gradient(70% 90% at 0% 0%, #FFFFFF 0%, transparent 60%), linear-gradient(160deg, #FEF9F2 0%, #F6F1E7 55%, #EEF3EC 100%); box-shadow: 0 40px 90px -40px rgb(0 0 0 / 0.55), inset 0 0 0 1px rgb(255 255 255 / 0.6); isolation: isolate; }
.fm__glow { position: absolute; inset: -20%; z-index: -1; background: radial-gradient(35% 35% at 80% 75%, rgb(181 138 63 / 0.16), transparent 70%), radial-gradient(30% 30% at 20% 85%, rgb(30 107 66 / 0.1), transparent 70%); animation: fmGlow 14s ease-in-out infinite alternate; }
@keyframes fmGlow { to { transform: translate3d(-4%, -3%, 0) rotate(4deg); } }
.fm__scene { position: absolute; inset: 0; visibility: hidden; opacity: 0; transition: opacity 420ms ease, transform 620ms var(--fm-ease), visibility 0s linear 620ms; transform: translateY(14px); }
.fm__scene.is-on { visibility: visible; opacity: 1; transform: none; transition: opacity 420ms ease 120ms, transform 620ms var(--fm-ease) 120ms, visibility 0s; }
.fm__scene.is-out { transform: translateY(-14px) scale(0.985); }
.fm__cam { position: absolute; inset: 0; transform-origin: 60% 50%; }
.fm__scene.is-on .fm__cam { animation: fmPush var(--dur, 5000ms) linear both; }
@keyframes fmPush { from { transform: scale(1); } to { transform: scale(1.04); } }
.fm__scene--split .fm__cam { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: 4%; padding: 0 6% 56px; }
.fm__scene--full .fm__cam, .fm__scene--end .fm__cam { display: grid; place-items: center; padding: 5% 7% 74px; }
.fm__scene--end .fm__cam { align-content: center; gap: 10px; text-align: center; }

/* entrance primitives: run only on the active scene */
.fm .a-up, .fm .a-line, .fm .a-pop, .fm .a-slide, .fm .a-drop, .fm .a-typing, .fm .a-cursor { opacity: 0; }
.fm .is-on .a-up { animation: fmUp 700ms var(--fm-spring) var(--d, 0ms) both; }
.fm .is-on .a-line { animation: fmLine 760ms var(--fm-ease) var(--d, 0ms) both; }
.fm .is-on .a-pop { animation: fmPop 760ms var(--fm-spring) var(--d, 0ms) both; }
.fm .is-on .a-slide { animation: fmSlide 640ms var(--fm-spring) var(--d, 0ms) both; }
.fm .is-on .a-drop { animation: fmDrop 820ms var(--fm-spring) var(--d, 0ms) both; }
.fm .is-on .a-typing { animation: fmTyping 900ms ease var(--d, 0ms) both; }
.fm .is-on .a-cursor { animation: fmCursor 1500ms var(--fm-ease) var(--d, 0ms) both; }
@keyframes fmUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fmLine { from { opacity: 0; transform: translateY(0.5em); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 -0.2em 0); } }
@keyframes fmPop { from { opacity: 0; transform: translateY(24px) scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes fmSlide { from { opacity: 0; transform: translateY(-14px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes fmDrop { 0% { opacity: 0; transform: translateY(-46px) scale(0.9); } 100% { opacity: 1; transform: none; } }
@keyframes fmTyping { 0% { opacity: 0; transform: translateY(8px); } 25%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; height: 0; margin: 0; padding: 0; } }
@keyframes fmCursor { 0% { opacity: 0; transform: translate(120px, 110px); } 20% { opacity: 1; } 100% { opacity: 1; transform: translate(0, 0); } }

/* copy */
.fm__chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--fm-rule); font: 600 10px/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fm-navy); }
.fm__chip--live i { width: 6px; height: 6px; border-radius: 50%; background: var(--fm-forest-hi); box-shadow: 0 0 0 3px rgb(30 107 66 / 0.18); }
.fm__h { margin-top: 18px; font: 600 clamp(28px, 4.1vw, 60px)/1.02 var(--font-display); letter-spacing: -0.045em; color: var(--fm-navy); }
.fm__h .a-line { display: block; }
.fm__h em { font-style: normal; }
.c-coral { color: var(--fm-coral); } .c-forest { color: var(--fm-forest-hi); } .c-gold { color: var(--fm-gold); }
.fm__sub { margin: 14px 0 0; font-size: clamp(14px, 1.3vw, 18px); color: var(--fm-muted); }

/* cards */
.fm-card { position: relative; background: #fff; border-radius: 16px; box-shadow: 0 1px 0 rgb(10 32 49 / 0.04), 0 18px 40px -18px rgb(10 32 49 / 0.28), 0 0 0 1px rgb(10 32 49 / 0.05); }
.fm__ui { position: relative; display: grid; justify-items: center; gap: 10px; }
.fm-phone { width: min(260px, 100%); padding: 18px 18px 16px; display: grid; justify-items: center; gap: 8px; text-align: center; }
.fm-phone__line { margin: 0; font: 600 9px/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--fm-muted); }
.fm-phone__ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #F7E4DD; color: var(--fm-coral); margin: 6px 0 2px; }
.fm-phone__ic svg { width: 26px; height: 26px; }
.fm .is-on .fm-ring { animation: fmRing 1.1s ease-in-out 3 600ms; }
@keyframes fmRing { 0%, 100% { box-shadow: 0 0 0 0 rgb(168 75 43 / 0.35); transform: rotate(0); } 20% { transform: rotate(-9deg); } 40% { transform: rotate(9deg); } 60% { box-shadow: 0 0 0 16px rgb(168 75 43 / 0); transform: rotate(0); } }
.fm-phone__num { font: 600 22px/1.1 var(--font-display); letter-spacing: -0.02em; }
.fm-phone__st { font-size: 12px; font-weight: 600; color: var(--fm-coral); }
.fm-phone__btns { display: flex; gap: 22px; margin-top: 6px; }
.fm-phone__btns i { width: 34px; height: 34px; border-radius: 50%; background: #F7E4DD; } .fm-phone__btns .yes { background: #DDEEE3; }
.fm-notes { width: min(260px, 100%); display: grid; gap: 7px; }
.fm-note { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 9px 12px; background: #fff; border-radius: 11px; box-shadow: 0 8px 20px -14px rgb(10 32 49 / 0.35), 0 0 0 1px rgb(10 32 49 / 0.05); font-size: 11px; }
.fm-note__ic { width: 22px; height: 22px; border-radius: 50%; background: #F7E4DD; position: relative; }
.fm-note__ic::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--fm-coral); }
.fm-note b { display: block; font-size: 11.5px; } .fm-note small { color: var(--fm-muted); font-size: 10px; } .fm-note time { font: 500 9.5px/1 var(--font-mono); color: var(--fm-muted); }

.fm-callbar { width: min(380px, 100%); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; justify-self: center; }
.fm-callbar__ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #DDEEE3; color: var(--fm-forest-hi); } .fm-callbar__ic svg { width: 18px; height: 18px; }
.fm-callbar b { display: block; font: 600 15px/1.2 var(--font-display); }
.fm-callbar small { display: inline-flex; align-items: center; gap: 6px; font: 600 10px/1.4 var(--font-mono); color: var(--fm-forest-hi); }
.fm-callbar small i { width: 6px; height: 6px; border-radius: 50%; background: var(--fm-forest-hi); }
.fm-wave { display: flex; align-items: center; gap: 2.5px; height: 26px; }
.fm-wave i { width: 2.5px; height: 100%; border-radius: 2px; background: var(--fm-gold); transform: scaleY(0.25); }
.fm .is-on .fm-wave i { animation: fmWave 900ms ease-in-out infinite alternate; }
.fm-wave i:nth-child(3n) { animation-delay: -300ms !important; } .fm-wave i:nth-child(3n+1) { animation-delay: -650ms !important; } .fm-wave i:nth-child(4n) { animation-duration: 640ms !important; }
@keyframes fmWave { to { transform: scaleY(1); } }
.fm-bubble { max-width: min(330px, 92%); padding: 10px 14px; border-radius: 14px; font-size: 13px; line-height: 1.45; box-shadow: 0 10px 24px -16px rgb(10 32 49 / 0.4); }
.fm-bubble small { display: block; margin-bottom: 3px; font: 600 9px/1.3 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; }
.fm-bubble--in { justify-self: start; background: #fff; border: 1px solid var(--fm-rule); border-bottom-left-radius: 4px; margin-left: 6%; }
.fm-bubble--out { justify-self: end; background: var(--fm-forest); color: #FEF9F2; border-bottom-right-radius: 4px; margin-right: 6%; }
.fm-bubble--out small { color: var(--fm-gold-hi); opacity: 1; }
.fm-typing { justify-self: end; margin-right: 6%; display: inline-flex; gap: 4px; padding: 10px 14px; border-radius: 14px; background: var(--fm-forest); overflow: hidden; }
.fm-typing i { width: 6px; height: 6px; border-radius: 50%; background: #FEF9F2; animation: tdot 900ms ease-in-out infinite; } .fm-typing i:nth-child(2) { animation-delay: 150ms; } .fm-typing i:nth-child(3) { animation-delay: 300ms; }

/* calendar */
.fm-cal { width: min(860px, 100%); padding: 16px 18px 18px; }
.fm-cal__hd { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; } .fm-cal__hd b { font: 600 16px/1 var(--font-display); }
.fm-cal__btn { margin-left: auto; padding: 7px 11px; border-radius: 8px; background: var(--fm-navy); color: #fff; font: 600 10px/1 var(--font-mono); }
.fm-cal__grid { --row: clamp(26px, 4.4vh, 40px); display: grid; grid-template-columns: 44px repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--fm-rule); }
.fm-cal__times { display: grid; grid-template-rows: 26px repeat(7, var(--row)); font: 500 9px/1 var(--font-mono); color: var(--fm-muted); }
.fm-cal__times span { transform: translateY(-4px); }
.fm-cal__day { position: relative; border-left: 1px solid var(--fm-rule); background-image: linear-gradient(var(--fm-rule) 1px, transparent 1px); background-size: 100% var(--row); background-position: 0 26px; min-height: calc(26px + var(--row) * 7); }
.fm-cal__day--hot { background-color: rgb(181 138 63 / 0.05); }
.fm-cal__dn { display: block; height: 26px; padding: 7px 8px 0; font: 600 10px/1 var(--font-mono); color: var(--fm-muted); }
.fm-cal__day--hot .fm-cal__dn { color: var(--fm-gold); }
.ev { position: absolute; left: 4px; right: 4px; top: calc(26px + var(--row) * var(--r)); height: calc(var(--row) * var(--h) - 4px); padding: 5px 7px; border-radius: 6px; font: 500 10px/1.25 var(--font-body); font-style: normal; overflow: hidden; }
.ev--g { background: #E6F0E9; color: var(--fm-forest); border-left: 3px solid var(--fm-forest-hi); }
.ev--o { background: #F7EEDD; color: #6E5223; border-left: 3px solid var(--fm-gold); }
.ev--new { background: var(--fm-forest); color: #DDEEE3; border-left: 3px solid var(--fm-gold-hi); box-shadow: 0 12px 26px -10px rgb(18 59 37 / 0.6), 0 0 0 2px rgb(181 138 63 / 0.6); z-index: 2; height: calc(var(--row) * 1.3); }
.ev--new b { display: block; color: #fff; font-weight: 600; }
.fm-cursor { position: absolute; width: 22px; height: 22px; z-index: 3; left: calc(44px + 18px + (100% - 80px) * 0.7); top: calc(16px + 36px + 26px + var(--rowp, 34px) * 5.6); }
.fm-toast { position: absolute; right: 18px; bottom: -16px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--fm-navy); color: #fff; font: 600 11px/1 var(--font-mono); box-shadow: 0 14px 30px -12px rgb(10 32 49 / 0.6); }
.fm-toast i { width: 7px; height: 7px; border-radius: 50%; background: #6CC491; }

/* intake */
.fm-intake { width: min(380px, 100%); padding: 16px; display: grid; gap: 8px; }
.fm-intake__hd { display: flex; justify-content: space-between; align-items: center; padding-bottom: 8px; border-bottom: 1px solid var(--fm-rule); } .fm-intake__hd b { font: 600 14px/1 var(--font-display); }
.fm-field { position: relative; padding: 9px 36px 9px 12px; border-radius: 10px; background: var(--fm-ivory); box-shadow: inset 0 0 0 1px var(--fm-rule); }
.fm-field small { display: block; font: 600 9px/1.3 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fm-muted); }
.fm-field b { font-size: 13px; font-weight: 500; }
.fm-field i { position: absolute; right: 12px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; background: var(--fm-forest-hi); }
.fm-field i::after { content: ""; position: absolute; left: 6px; top: 3px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.fm-intake__ok { padding: 9px 12px; border-radius: 10px; background: var(--fm-forest); color: #DDEEE3; font: 600 10.5px/1.4 var(--font-mono); }

/* dashboard */
.fm-dash { width: min(900px, 100%); overflow: hidden; }
.fm-dash__bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--fm-rule); background: #FBF8F2; }
.fm-dash__bar i { width: 9px; height: 9px; border-radius: 50%; background: #E3DACB; }
.fm-dash__bar span { margin: 0 auto; padding: 3px 14px; border-radius: 6px; background: #fff; box-shadow: 0 0 0 1px var(--fm-rule); font: 500 10px/1.4 var(--font-mono); color: var(--fm-muted); }
.fm-dash__body { display: grid; grid-template-columns: 150px minmax(0, 1fr); }
.fm-dash__side { display: grid; align-content: start; gap: 4px; padding: 14px 10px; border-right: 1px solid var(--fm-rule); font-size: 12px; color: var(--fm-muted); }
.fm-dash__side span { padding: 6px 8px; border-radius: 6px; } .fm-dash__side .on { background: #E6F0E9; color: var(--fm-forest); font-weight: 600; }
.fm-dash__brand { display: flex !important; align-items: center; gap: 6px; margin-bottom: 8px; color: var(--fm-navy); font: 600 13px/1 var(--font-display) !important; }
.fm-dash__main { padding: 14px 16px 16px; display: grid; gap: 12px; }
.fm-dash__top { display: flex; justify-content: space-between; align-items: center; } .fm-dash__top b { font: 600 15px/1 var(--font-display); }
.fm-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.fm-tile { padding: 10px 12px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--fm-rule); }
.fm-tile small { display: block; font: 600 9px/1.3 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--fm-muted); }
.fm-tile b { display: block; margin: 4px 0 2px; font: 600 clamp(20px, 2.3vw, 30px)/1 var(--font-display); letter-spacing: -0.03em; color: var(--fm-forest); }
.fm-tile > span { font-size: 10px; color: var(--fm-muted); }
.fm-chart { padding: 10px 12px 4px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--fm-rule); }
.fm-chart small { font: 600 9px/1.3 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--fm-muted); }
.fm-chart svg { display: block; width: 100%; height: clamp(70px, 13vh, 120px); margin-top: 4px; }
.fm-chart__line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.fm .is-on .fm-chart__line { animation: fmDraw 1800ms var(--fm-ease) 700ms forwards; }
.fm-chart__fill { opacity: 0; } .fm .is-on .fm-chart__fill { animation: fmFade 900ms ease 1500ms forwards; }
@keyframes fmDraw { to { stroke-dashoffset: 0; } } @keyframes fmFade { to { opacity: 1; } }

/* end card */
.fm-end__crest { width: clamp(84px, 9vw, 120px); height: auto; filter: drop-shadow(0 18px 24px rgb(18 59 37 / 0.25)); }
.fm-end__name { font: 600 clamp(32px, 4.6vw, 64px)/1 var(--font-display); letter-spacing: -0.045em; color: var(--fm-navy); } .fm-end__name em { font-style: normal; color: var(--fm-gold); }
.fm-end__line { margin: 0; font-size: clamp(14px, 1.4vw, 19px); color: var(--fm-muted); }
.fm-end__cta { justify-self: center; margin-top: 14px; display: inline-flex; align-items: stretch; font: 600 12px/1 var(--font-mono); letter-spacing: 0.04em; text-transform: uppercase; color: #fff; text-decoration: none; }
.fm-end__cta span { display: grid; place-items: center; padding: 0 14px; background: var(--fm-gold); }
.fm-end__cta { background: var(--fm-forest); padding-right: 18px; gap: 16px; } .fm-end__cta:hover { background: var(--fm-forest-hi); }
.fm-end__cta, .fm-end__cta span { min-height: 44px; }
.fm-end__cta { align-items: center; }

/* caption + controls */
.fm__cap { position: absolute; left: 50%; bottom: 18px; z-index: 4; margin: 0; transform: translateX(-50%); pointer-events: none; }
.fm__cap span { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px; background: rgb(10 32 49 / 0.88); color: #fff; font: 500 12px/1.3 var(--font-body); white-space: nowrap; opacity: 0; transform: translateY(10px); transition: opacity 300ms ease, transform 500ms var(--fm-ease); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.fm__cap span::before { content: ""; width: 14px; height: 1.5px; background: var(--fm-gold-hi); }
.fm__cap.is-on span { opacity: 1; transform: none; transition-delay: 700ms; }
.fm__ctrl { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.fm__play { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgb(254 249 242 / 0.12); box-shadow: inset 0 0 0 1px rgb(254 249 242 / 0.3); color: #FEF9F2; cursor: pointer; }
.fm__play svg { width: 14px; height: 14px; } .fm__play .i-play { display: none; } .fm.is-paused .fm__play .i-play { display: block; } .fm.is-paused .fm__play .i-pause { display: none; }
.fm__segs { flex: 1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.fm__seg { display: grid; gap: 7px; padding: 6px 0; border: 0; background: none; cursor: pointer; text-align: left; color: rgb(254 249 242 / 0.6); font: 500 10px/1.2 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; }
.fm__seg i { position: relative; height: 3px; border-radius: 2px; background: rgb(254 249 242 / 0.18); overflow: hidden; }
.fm__seg i::after { content: ""; position: absolute; inset: 0; background: var(--fm-gold-hi); transform: scaleX(var(--p, 0)); transform-origin: left; }
.fm__seg.is-done i::after { --p: 1; }
.fm__seg.is-on { color: #FEF9F2; }
.fm__seg:hover { color: #FEF9F2; }

/* mobile */
@media (max-width: 47.99rem) {
  .fm__stage { aspect-ratio: auto; height: 660px; max-height: none; min-height: 0; }
  .fm__scene--split .fm__cam { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 22px; padding: 28px 20px 70px; }
  .fm__h { margin-top: 12px; font-size: clamp(28px, 8.4vw, 36px); }
  .fm__sub { font-size: 14px; }
  .fm__scene--full .fm__cam { padding: 22px 12px 74px; align-content: center; }
  .fm-cal { padding: 12px; } .fm-cal__grid { grid-template-columns: 36px repeat(3, minmax(0, 1fr)); --row: 46px; }
  .fm-cal__day:nth-of-type(2), .fm-cal__day:nth-of-type(3) { display: none; }
  .fm-cal__hd .meta { display: none; }
  .fm-dash__body { grid-template-columns: minmax(0, 1fr); } .fm-dash__side { display: none; }
  .fm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fm-cursor { display: none; }
  .fm-toast { right: 50%; transform: translateX(50%); bottom: -14px; white-space: nowrap; }
  .fm .is-on .fm-toast { animation-name: fmUpC; }
  .fm__cap span { font-size: 11px; white-space: normal; text-align: left; max-width: calc(100vw - 72px); }
  .fm__segs { gap: 5px; } .fm__seg span { display: none; }
  .fm-bubble--in { margin-left: 0; } .fm-bubble--out, .fm-typing { margin-right: 0; }
}
@keyframes fmUpC { from { opacity: 0; transform: translate(50%, 18px); } to { opacity: 1; transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) {
  .fm .a-up, .fm .a-line, .fm .a-pop, .fm .a-slide, .fm .a-drop, .fm .a-typing, .fm .a-cursor { opacity: 1 !important; animation: none !important; transform: none !important; clip-path: none !important; }
  .fm__scene, .fm__scene.is-on .fm__cam, .fm__glow { transition: none; animation: none !important; }
  .fm-chart__line { stroke-dashoffset: 0; } .fm-chart__fill { opacity: 1; }
  .fm-typing { display: none; }
}
.fm.is-paused .fm__scene.is-on *, .fm.is-paused .fm__scene.is-on .fm__cam { animation-play-state: paused !important; }

/* footer contact table (itsua style) */
.pf__kv { margin: 0; display: grid; }
.pf__kv > div { display: grid; grid-template-columns: minmax(96px, 0.8fr) minmax(0, 1.6fr); gap: 16px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid rgb(254 249 242 / 0.1); }
.pf__kv > div:first-child { border-top: 1px solid rgb(254 249 242 / 0.1); }
.pf__kv dt { font: 500 11px/1.5 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: rgb(254 249 242 / 0.5); }
.pf__kv dd { margin: 0; font: 500 13.5px/1.5 var(--font-mono); color: #FEF9F2; overflow-wrap: anywhere; }
.pf__kv dd a { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 300ms ease; }
.pf__kv dd a:hover { background-size: 100% 1px; }
.pf__kv .pf__ok { color: #6CC491; font-weight: 700; }

/* v5.1: tighter film stage, less empty space top and bottom */
.fm__stage { aspect-ratio: 16 / 6.9; min-height: 430px; max-height: 600px; }
.fm__scene--split .fm__cam { padding: 34px 6% 58px; gap: 5%; }
.fm__scene--full .fm__cam { padding: 26px 6% 66px; }
.fm__scene--end .fm__cam { padding: 26px 6% 40px; }
.fm__h { font-size: clamp(30px, 4.4vw, 64px); }
.fm-phone { width: min(290px, 100%); padding: 16px 18px 14px; gap: 6px; }
.fm-phone__ic { width: 50px; height: 50px; margin: 4px 0 0; }
.fm-notes { width: min(290px, 100%); gap: 6px; }
.fm-note { padding: 8px 12px; }
.fm-callbar { width: min(420px, 100%); }
.fm-bubble { max-width: min(360px, 94%); font-size: 14px; }
.fm-intake { width: min(420px, 100%); gap: 7px; }
.fm-field { padding: 7px 36px 7px 12px; }
.fm-cal { width: min(920px, 100%); padding: 14px 18px 16px; }
.fm-cal__grid { --row: clamp(24px, 3.6vh, 34px); }
.fm-dash { width: min(940px, 100%); }
.fm-chart svg { height: clamp(60px, 10vh, 96px); }
.fm__cap { bottom: 14px; }
.fm-toast { bottom: -14px; }
@media (max-width: 47.99rem) {
  .fm__stage { aspect-ratio: auto; height: auto; min-height: 0; }
  .fm__scene { position: absolute; }
  .fm__stage { height: 560px; }
  .fm__scene--split .fm__cam { align-content: center; gap: 18px; padding: 22px 18px 58px; }
  .fm__scene--full .fm__cam { padding: 18px 12px 66px; }
  .fm-cal__grid { --row: 38px; }
}

.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; }
