/* Fusalis site styles.
   Rules: one page background for header, sections and footer; no lines between sections; no gradients,
   no transparency, no shadows of any kind. Only form fields carry a border. Depth comes from solid
   surface steps. The signature shape is the "D" from the mark: flat on the left, round on the right
   (border-radius only, never a cut). Light "Hall" theme by default; dark is the "Vessel". */

/* ------------------------------------------------ tokens: Hall (light, default) */
:root {
  color-scheme: light;
  --bg: #F6F6F3;          /* page, header, every section, footer */
  --s1: #FFFFFF;          /* raised: cards, console, odd table rows */
  --s2: #ECECE7;          /* sunken / hover / even table rows */
  --s3: #DCDBD4;          /* tracks, empty meters */
  --ink: #15110F;         /* text on bg, s1, s2, s3 */
  --ink-2: #575250;       /* muted text (7.1:1 on bg) */
  --line: #77716D;        /* form field borders (>= 4.5:1 on bg) */
  --copper: #A3441A;      /* brand: coil copper. Text on bg/s1 (5.7:1), fills with white text */
  --copper-2: #8A3712;    /* pressed copper */
  --copper-s: #F6E4DA;    /* copper tint block (solid, not transparent) */
  --on-copper: #FFFFFF;
  --plasma: #9A2DB5;      /* accent: deuterium-plasma orchid. Text on bg (5.7:1), plasma fills */
  --plasma-s: #F1E2F5;    /* plasma tint block */
  --on-plasma: #FFFFFF;
  --hold: #2A5CC7;        /* held / stable / cleared (blue, colour-blind safe against copper) */
  --on-hold: #FFFFFF;
  --risk: #A3441A;        /* disruption risk shares the copper; always paired with a word */
  --inv: #15110F;         /* inverse blocks: menus, table heads, code */
  --on-inv: #F6F2EE;
  --on-inv-2: #B5ADA6;
  --focus: #15110F;

  --font-display: "Funnel Display", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Red Hat Text", "Helvetica Neue", Arial, sans-serif;
  --font-data: "Red Hat Mono", ui-monospace, Menlo, monospace;

  --fs-hero: clamp(2.75rem, 6.6vw, 6rem);
  --fs-h1: clamp(2.4rem, 5.2vw, 4.5rem);
  --fs-h2: clamp(1.9rem, 3.6vw, 3.1rem);
  --fs-h3: clamp(1.125rem, 1.5vw, 1.3rem);
  --fs-big: clamp(1.35rem, 2.2vw, 1.85rem);
  --fs-lead: clamp(1.075rem, 1.35vw, 1.225rem);
  --fs-body: 1.0625rem;
  --fs-sm: 0.9375rem;
  --fs-data: 0.8125rem;
  --fs-tiny: 0.71875rem;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-6: 24px;
  --space-8: 32px; --space-10: 40px; --space-12: 48px; --space-16: 64px; --space-20: 80px;
  --section-y: clamp(48px, 6vw, 88px);
  --gutter: max(16px, env(safe-area-inset-left), env(safe-area-inset-right));
  --wrap: 1200px;
  --r-d: 6px 999px 999px 6px;          /* the D: buttons, tags, chips */
  --r-card: 8px 28px 28px 8px;          /* the D, on blocks */
  --r-sm: 6px;
  --dur: 200ms;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 68px;
}

/* ------------------------------------------------ tokens: Vessel (dark) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #110E0D; --s1: #1B1715; --s2: #241F1C; --s3: #342D29;
    --ink: #F2EEEA; --ink-2: #ABA39C; --line: #8E857E;
    --copper: #F08C5A; --copper-2: #F6A47B; --copper-s: #3A2216; --on-copper: #110E0D;
    --plasma: #D88CF0; --plasma-s: #33183B; --on-plasma: #110E0D;
    --hold: #8CAEFF; --on-hold: #110E0D; --risk: #F08C5A;
    --inv: #F2EEEA; --on-inv: #15110F; --on-inv-2: #5C5450; --focus: #F2EEEA;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #110E0D; --s1: #1B1715; --s2: #241F1C; --s3: #342D29;
  --ink: #F2EEEA; --ink-2: #ABA39C; --line: #8E857E;
  --copper: #F08C5A; --copper-2: #F6A47B; --copper-s: #3A2216; --on-copper: #110E0D;
  --plasma: #D88CF0; --plasma-s: #33183B; --on-plasma: #110E0D;
  --hold: #8CAEFF; --on-hold: #110E0D; --risk: #F08C5A;
  --inv: #F2EEEA; --on-inv: #15110F; --on-inv-2: #5C5450; --focus: #F2EEEA;
}

/* ------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--fs-body)/1.6 var(--font-text); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.06; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.data { font-family: var(--font-data); font-size: var(--fs-data); letter-spacing: 0; font-feature-settings: "zero" 1; }
.sel { user-select: all; -webkit-user-select: all; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--inv); color: var(--on-inv); padding: 10px 16px; border-radius: var(--r-d); }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); max-width: 20ch; }
.h3 { font-size: var(--fs-h3); letter-spacing: -0.01em; line-height: 1.2; }
.lead { font-size: var(--fs-lead); color: var(--ink-2); max-width: 60ch; }
.big { font-family: var(--font-display); font-size: var(--fs-big); line-height: 1.25; letter-spacing: -0.015em; font-weight: 500; }
.vis-cap { margin-top: var(--space-4); color: var(--ink-2); font-size: var(--fs-sm); max-width: 72ch; }

/* ------------------------------------------------ header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); }
.bar { display: flex; align-items: center; gap: var(--space-6); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 1.375rem; letter-spacing: -0.03em; }
.brand .mark { width: 34px; height: 34px; fill: var(--copper); }
.nav-main { margin-left: auto; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 2px; }
.nav-link, .nav-menu-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: var(--r-d); text-decoration: none; font-size: var(--fs-sm); font-weight: 500; background: var(--bg); border: 0; cursor: pointer; }
.nav-link:hover, .nav-menu-btn:hover, .nav-menu-btn[aria-expanded="true"] { background: var(--s2); }
.nav-link[aria-current="page"], .nav-menu-btn.is-active { color: var(--copper); }
.nav-link[aria-current="page"] { background: var(--copper-s); }
.has-menu { position: relative; }
[data-icon="caret"] { width: 10px; height: 10px; transition: transform var(--dur) var(--ease); }
.nav-menu-btn[aria-expanded="true"] [data-icon="caret"] { transform: rotate(180deg); }
.nav-menu { position: absolute; top: calc(100% + 10px); left: -12px; width: 420px; background: var(--inv); color: var(--on-inv); border-radius: var(--r-card); padding: 10px; }
.nav-menu[hidden] { display: none; }
.menu-item { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; padding: 10px 12px; text-decoration: none; border-radius: 6px 20px 20px 6px; }
.menu-item:hover, .menu-item[aria-current="page"] { background: var(--copper); color: var(--on-copper); }
.menu-item strong { display: block; font-family: var(--font-display); font-weight: 600; }
.menu-item small { display: block; color: var(--on-inv-2); font-size: var(--fs-tiny); line-height: 1.4; }
.menu-item:hover small, .menu-item[aria-current="page"] small { color: var(--on-copper); }
.menu-foot { display: flex; justify-content: space-between; align-items: center; padding: 12px; margin-top: 4px; font-size: var(--fs-sm); text-decoration: none; color: var(--on-inv); }
.menu-foot:hover { text-decoration: underline; }
.nav-tools { display: flex; align-items: center; gap: var(--space-3); }
.nav-account { font-size: var(--fs-sm); font-weight: 500; text-decoration: none; padding: 8px 4px; }
.nav-account:hover { text-decoration: underline; }
.nav-account[aria-current="page"] { color: var(--copper); }
.panel-only { display: none; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-d); background: var(--s2); border: 0; cursor: pointer; }
.icon-btn svg { width: 22px; height: 22px; }
.nav-toggle { display: none; }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }

/* ------------------------------------------------ buttons, tags, chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 26px 12px 20px; border-radius: var(--r-d); border: 0; font-weight: 600; font-size: var(--fs-sm); text-decoration: none; cursor: pointer; transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.btn-sm { min-height: 40px; padding: 8px 20px 8px 16px; }
.btn-copper { background: var(--copper); color: var(--on-copper); }
.btn-copper:hover { background: var(--copper-2); }
.btn-ink { background: var(--inv); color: var(--on-inv); }
.btn-ink:hover { background: var(--copper); color: var(--on-copper); }
.btn-soft { background: var(--s2); color: var(--ink); }
.btn-soft:hover { background: var(--s3); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px 3px 9px; border-radius: var(--r-d); font: 500 var(--fs-tiny)/1.5 var(--font-data); text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
.tag-ex { background: var(--plasma-s); color: var(--plasma); }
.tag-plan { background: var(--s2); color: var(--ink-2); }
.tag-hold { background: var(--hold); color: var(--on-hold); }
.tag-risk { background: var(--risk); color: var(--on-copper); }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 8px; border-radius: var(--r-d); background: var(--s1); font-size: var(--fs-data); }
.chip-d { width: 16px; height: 16px; fill: var(--plasma); }
.more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--copper); }
.more:hover { text-decoration: underline; }
.arr { width: 14px; height: 14px; }

/* ------------------------------------------------ sections and the ψ eyebrow */
.section { padding: var(--section-y) 0; background: var(--bg); }
.sec-head { display: grid; gap: var(--space-4); margin-bottom: var(--space-12); max-width: 820px; }
.sec-head .sec-aside { margin-top: var(--space-2); }
.psi { display: inline-flex; align-items: center; gap: 12px; color: var(--ink-2); }
.psi-g { width: 30px; height: 30px; flex: none; }
.psi-g path { fill: none; stroke: var(--line); stroke-width: 1.4; }
.psi-g path.on { stroke: var(--copper); stroke-width: 2.6; }
.psi-g .ax { fill: var(--plasma); stroke: none; }
.psi-v { color: var(--copper); font-weight: 600; }
.psi-l { font-family: var(--font-data); font-size: var(--fs-data); text-transform: uppercase; letter-spacing: 0.06em; }

.grid { display: grid; gap: var(--space-4); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-12); align-items: start; }
.split-wide { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.split > div, .grid > *, .hero-grid > *, .ph > * { min-width: 0; }

.card { position: relative; background: var(--s1); border-radius: var(--r-card); padding: var(--space-8) var(--space-10) var(--space-8) var(--space-8); display: flex; flex-direction: column; gap: var(--space-3); }
.card p { color: var(--ink-2); }
.card-k { color: var(--copper); text-transform: uppercase; letter-spacing: 0.06em; font-size: var(--fs-tiny); }
.card-link { transition: background-color var(--dur) var(--ease); }
.card-link:hover { background: var(--copper-s); }
.stretch { text-decoration: none; }
.stretch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card .card-ico { width: 40px; height: 40px; }

.ticks { list-style: none; display: grid; gap: var(--space-4); }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.ck { width: 20px; height: 20px; margin-top: 3px; fill: var(--copper); }

.metric { background: var(--s1); border-radius: var(--r-card); padding: var(--space-6) var(--space-8) var(--space-6) var(--space-6); display: grid; gap: 4px; align-content: start; }
.metric-v { font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 2.75rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.metric-l { color: var(--ink-2); }
.metric-n { color: var(--plasma); margin-top: var(--space-2); text-transform: uppercase; letter-spacing: 0.05em; font-size: var(--fs-tiny); }
.metric-hl { background: var(--copper); color: var(--on-copper); }
.metric-hl .metric-l, .metric-hl .metric-n { color: var(--on-copper); }

/* steps: a shot timeline, phases along a track */
.steps { list-style: none; display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: var(--space-4); counter-reset: s; }
.step { background: var(--s1); border-radius: var(--r-card); padding: var(--space-6) var(--space-8) var(--space-8) var(--space-6); display: grid; gap: var(--space-3); align-content: start; }
.step-t { display: flex; justify-content: space-between; color: var(--copper); }
.step-bar { height: 6px; border-radius: var(--r-d); background: var(--s3); position: relative; overflow: hidden; }
.step-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w, 20%); background: var(--copper); border-radius: var(--r-d); }
.step p { color: var(--ink-2); font-size: var(--fs-sm); }

/* tables: alternate fills, never lines */
.table-wrap { overflow-x: auto; border-radius: var(--r-card); background: var(--s1); }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 620px; }
caption { text-align: left; padding: var(--space-4) var(--space-6); font: 500 var(--fs-data) var(--font-data); text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-2); background: var(--s1); }
thead th { background: var(--inv); color: var(--on-inv); text-align: left; font-weight: 600; padding: 12px var(--space-6); }
tbody th, tbody td { text-align: left; vertical-align: top; padding: 14px var(--space-6); }
tbody th { font-weight: 600; }
tbody tr:nth-child(even) { background: var(--s2); }
td.yes { color: var(--hold); font-weight: 600; }

/* FAQ */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); align-items: start; }
.qa { background: var(--s1); border-radius: var(--r-card); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: var(--space-6) var(--space-8) var(--space-6) var(--space-6); font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { width: 20px; height: 20px; flex: none; position: relative; margin-top: 3px; border-radius: var(--r-d); background: var(--s2); }
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; left: 5px; right: 5px; top: 9px; height: 2px; background: var(--copper); transition: transform var(--dur) var(--ease); }
.qa summary i::after { transform: rotate(90deg); }
.qa[open] summary i::after { transform: rotate(0deg); }
.qa p { padding: 0 var(--space-8) var(--space-6) var(--space-6); color: var(--ink-2); }

/* code */
.code { background: var(--inv); color: var(--on-inv); border-radius: var(--r-card); overflow: hidden; }
.code-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 20px; background: var(--inv); color: var(--on-inv-2); }
.code-bar .data { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy { border: 0; border-radius: var(--r-d); background: var(--copper); color: var(--on-copper); padding: 4px 14px 4px 10px; font: 600 var(--fs-tiny) var(--font-data); cursor: pointer; }
.code pre { margin: 0; padding: 4px 20px 20px; overflow-x: auto; font: 400 var(--fs-data)/1.7 var(--font-data); }

/* page hero */
.page-hero { padding-top: clamp(40px, 6vw, 88px); }
.ph { display: grid; gap: var(--space-12); }
.page-hero.has-side .ph { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; }
.ph-main { display: grid; gap: var(--space-5); justify-items: start; }
.ph-main .btn-row { margin-top: var(--space-3); }

/* home hero */
.hero { padding-top: clamp(32px, 5vw, 72px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-12); align-items: center; }
.hero-copy { display: grid; gap: var(--space-6); justify-items: start; }
.hero-h { font-size: var(--fs-hero); letter-spacing: -0.035em; line-height: 0.98; }
.hero-h em { font-style: normal; color: var(--plasma); }

/* the shot console */
.console { margin: 0; background: var(--s1); border-radius: var(--r-card); padding: var(--space-4); display: grid; gap: var(--space-3); }
.con-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 4px 0 8px; color: var(--ink-2); }
.con-body { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: var(--space-3); }
.con-view { background: var(--s2); border-radius: 6px 22px 22px 6px; position: relative; min-height: 340px; }
.con-view canvas, .con-view .con-static { position: absolute; inset: 0; width: 100%; height: 100%; }
.js .con-view .con-static { display: none; }
.con-side { display: grid; gap: var(--space-3); align-content: start; }
.ro { margin: 0; display: grid; gap: 2px; }
.ro div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 8px 10px; background: var(--s2); border-radius: 4px; }
.ro div:first-child { border-radius: 6px 16px 4px 4px; }
.ro div:last-child { border-radius: 4px 4px 16px 6px; }
.ro dt { font-size: var(--fs-tiny); color: var(--ink-2); }
.ro dd { margin: 0; font-weight: 600; }
.risk-m { height: 10px; border-radius: var(--r-d); background: var(--s3); position: relative; overflow: hidden; }
.risk-m i { position: absolute; left: 0; top: 0; bottom: 0; width: 8%; background: var(--hold); border-radius: var(--r-d); transition: width 120ms linear; }
.risk-m.is-hi i { background: var(--risk); }
.con-state { padding: 10px 12px; border-radius: 6px 18px 18px 6px; background: var(--hold); color: var(--on-hold); font-size: var(--fs-sm); font-weight: 600; }
.con-state.is-risk { background: var(--risk); color: var(--on-copper); }
.con-state.is-down { background: var(--inv); color: var(--on-inv); }
.ctl { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; background: var(--s2); border-radius: 6px 18px 18px 6px; border: 0; cursor: pointer; width: 100%; text-align: left; font-size: var(--fs-sm); font-weight: 600; }
.ctl-k { width: 40px; height: 22px; border-radius: 999px; background: var(--s3); position: relative; flex: none; }
.ctl-k::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 3px 999px 999px 3px; background: var(--ink-2); transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.ctl[aria-pressed="true"] .ctl-k { background: var(--copper-s); }
.ctl[aria-pressed="true"] .ctl-k::after { transform: translateX(18px); background: var(--copper); }
.con-leg { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--ink-2); font-size: var(--fs-tiny); }
.con-leg span { display: inline-flex; align-items: center; gap: 6px; }
.con-leg i { width: 14px; height: 4px; border-radius: 2px; background: var(--copper); }
.con-leg .k-pl { background: var(--plasma); height: 8px; width: 8px; border-radius: 1px 8px 8px 1px; }
.con-leg .k-w { background: var(--ink-2); }
.console figcaption { color: var(--ink-2); font-size: var(--fs-tiny); padding: 0 8px 4px; }

/* product rows */
.prows { display: grid; gap: var(--space-2); }
.prow { display: grid; grid-template-columns: 56px 48px minmax(120px, 180px) 110px 1fr 32px; gap: var(--space-4); align-items: center; padding: var(--space-4) var(--space-6) var(--space-4) var(--space-4); background: var(--s1); border-radius: var(--r-card); text-decoration: none; transition: background-color var(--dur) var(--ease); }
.prow:hover { background: var(--copper); color: var(--on-copper); }
.prow:hover .prow-n, .prow:hover .prow-verb, .prow:hover .glyph { color: var(--on-copper); }
.prow-n { color: var(--ink-2); }
.prow-name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; }
.prow-verb { color: var(--copper); text-transform: uppercase; letter-spacing: 0.06em; }
.prow-go { justify-self: end; }
.glyph { display: inline-grid; place-items: center; color: var(--copper); }
.glyph svg { width: 26px; height: 26px; }
.glyph .gp { fill: var(--plasma); }
.prow:hover .glyph .gp, .menu-item:hover .glyph .gp, .menu-item[aria-current="page"] .glyph .gp { fill: currentColor; }
.glyph-lg svg { width: 36px; height: 36px; }
.menu-item .glyph { color: var(--copper); }
.menu-item:hover .glyph, .menu-item[aria-current="page"] .glyph { color: var(--on-copper); }

/* loop diagram: Plasmara in the middle */
.loopd { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: ". n ." "w c e" ". s ."; gap: var(--space-4); max-width: 760px; margin: 0 auto; }
.ld-node { display: grid; justify-items: start; gap: 6px; padding: var(--space-5) var(--space-6) var(--space-5) var(--space-5); background: var(--s1); border-radius: var(--r-card); text-decoration: none; transition: background-color var(--dur) var(--ease); }
.ld-node:hover { background: var(--copper-s); }
.ld-node strong { font-family: var(--font-display); font-size: 1.2rem; }
.ld-node small { color: var(--ink-2); }
.ld-c { grid-area: c; background: var(--copper); color: var(--on-copper); }
.ld-c small, .ld-c .glyph { color: var(--on-copper); }
.ld-c .glyph .gp { fill: currentColor; }
.ld-c:hover { background: var(--copper-2); }
.ld-n { grid-area: n; } .ld-e { grid-area: e; } .ld-s { grid-area: s; } .ld-w { grid-area: w; }

/* stack list */
.stack { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
.stack li { background: var(--s1); padding: 14px 20px 14px 16px; border-radius: 6px 20px 20px 6px; display: grid; gap: 2px; }
.stack strong { font-family: var(--font-display); }
.stack span { color: var(--ink-2); font-size: var(--fs-sm); }

/* calculators and tools */
.calc { background: var(--s1); border-radius: var(--r-card); padding: var(--space-8); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-8); }
.calc-in { display: grid; gap: var(--space-5); align-content: start; }
.calc-out { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); align-content: start; }
.calc-out .metric { background: var(--s2); }
.calc-out .metric-hl { background: var(--copper); }
.calc .vis-cap { grid-column: 1 / -1; margin: 0; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: var(--fs-sm); display: flex; justify-content: space-between; gap: 12px; }
.field output { color: var(--copper); font-weight: 600; }
.opt { color: var(--ink-2); font-weight: 400; }
input[type="text"], input[type="email"], input[type="number"], input[type="password"], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; background: var(--s1); border: 1.5px solid var(--line); border-radius: var(--r-sm); }
textarea { min-height: 120px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--copper); outline-offset: 1px; }
input[type="range"] { width: 100%; accent-color: var(--copper); min-height: 32px; }
.hint { color: var(--ink-2); font-size: var(--fs-tiny); }
.err { color: var(--copper); font-size: var(--fs-tiny); font-weight: 600; min-height: 0; }
.field.has-err input, .field.has-err select, .field.has-err textarea { border-color: var(--copper); border-width: 2px; }

/* filters + lists */
.filters { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-5); }
.fchip { border: 0; cursor: pointer; padding: 8px 18px 8px 14px; border-radius: var(--r-d); background: var(--s2); font-size: var(--fs-sm); font-weight: 600; }
.fchip[aria-pressed="true"] { background: var(--inv); color: var(--on-inv); }
.q-list { list-style: none; display: grid; gap: var(--space-2); }
.q-row { display: grid; grid-template-columns: 110px minmax(0, 1.4fr) 110px minmax(0, 1.4fr) 90px; gap: var(--space-4); align-items: center; padding: 14px 20px 14px 16px; background: var(--s1); border-radius: 6px 22px 22px 6px; }
.q-row[hidden] { display: none; }
.q-loc { font-weight: 600; }
.q-sig { color: var(--ink-2); font-size: var(--fs-sm); }
.sc-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.sc { display: grid; gap: 6px; padding: var(--space-5) var(--space-6) var(--space-5) var(--space-5); grid-template-columns: 1fr; }
.sc .sc-k { color: var(--plasma); text-transform: uppercase; letter-spacing: 0.05em; }
.sc .data:last-child { color: var(--ink-2); }

/* sweep / sensor / chart visuals */
.chart { background: var(--s1); border-radius: var(--r-card); padding: var(--space-6); }
.chart svg { width: 100%; height: auto; }
.ch-axis { stroke: var(--s3); stroke-width: 1.5; fill: none; }
.ch-a { stroke: var(--ink-2); stroke-width: 2.5; fill: none; stroke-dasharray: 5 5; }
.ch-b { stroke: var(--copper); stroke-width: 3; fill: none; }
.ch-th { stroke: var(--plasma); stroke-width: 2; fill: none; }
.ch-dot { fill: var(--plasma); }
.ch-txt { fill: var(--ink-2); font: 500 11px var(--font-data); }
.ch-key { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: var(--space-3); color: var(--ink-2); }
.ch-key span { display: inline-flex; align-items: center; gap: 6px; }
.ch-key i { width: 16px; height: 4px; border-radius: 2px; }
.k-a { background: var(--ink-2); } .k-b { background: var(--copper); } .k-th { background: var(--plasma); }

.sensors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2); }
.sensor { background: var(--s1); border-radius: 6px 20px 20px 6px; padding: 14px 18px 14px 14px; display: grid; gap: 4px; }
.sensor strong { font-family: var(--font-display); }
.sensor span { color: var(--ink-2); font-size: var(--fs-tiny); }
.sensor .rate { color: var(--copper); }
.fuse-out { margin-top: var(--space-3); background: var(--copper); color: var(--on-copper); border-radius: var(--r-card); padding: var(--space-6); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4); align-items: center; }
.fuse-out strong { font-family: var(--font-display); font-size: 1.35rem; }

.ladder { list-style: none; display: grid; gap: var(--space-2); }
.ladder li { background: var(--s1); border-radius: 6px 22px 22px 6px; padding: var(--space-5) var(--space-8) var(--space-5) var(--space-5); display: grid; grid-template-columns: 48px 1fr; gap: 4px 12px; }
.ladder li > span { grid-row: span 2; color: var(--copper); font-weight: 600; }
.ladder li p { color: var(--ink-2); font-size: var(--fs-sm); }
.ladder li.is-on { background: var(--copper); color: var(--on-copper); }
.ladder li.is-on > span, .ladder li.is-on p { color: var(--on-copper); }

.envelope { background: var(--s1); border-radius: var(--r-card); padding: var(--space-6); display: grid; gap: var(--space-4); }
.env-row { display: grid; grid-template-columns: 120px 1fr 70px; gap: var(--space-3); align-items: center; font-size: var(--fs-sm); }
.env-t { height: 12px; border-radius: var(--r-d); background: var(--s3); position: relative; }
.env-t .ok { position: absolute; top: 0; bottom: 0; left: var(--a); width: var(--w); background: var(--hold); border-radius: var(--r-d); }
.env-t .now { position: absolute; top: -4px; width: 4px; height: 20px; left: var(--x); background: var(--ink); border-radius: 2px; }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); align-items: stretch; }
.plan { background: var(--s1); border-radius: var(--r-card); padding: var(--space-8); display: flex; flex-direction: column; gap: var(--space-4); }
.plan-hl { background: var(--inv); color: var(--on-inv); }
.plan-hl p, .plan-hl .plan-unit { color: var(--on-inv-2); }
.plan-hl .ck { fill: var(--copper); }
.plan .ticks { margin-bottom: var(--space-4); }
.plan .btn { margin-top: auto; align-self: flex-start; }
.plan-name { font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; }
.plan-unit { color: var(--ink-2); }
.plan-price { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--copper); }

.weeks { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.week { background: var(--s1); border-radius: var(--r-card); padding: var(--space-6) var(--space-8) var(--space-6) var(--space-6); display: grid; gap: var(--space-2); align-content: start; }
.week .data { color: var(--copper); }
.week p { color: var(--ink-2); font-size: var(--fs-sm); }

.roadmap { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); }
.roadmap li { background: var(--s1); border-radius: var(--r-card); padding: var(--space-6); display: grid; gap: var(--space-2); align-content: start; }
.roadmap li.is-now { background: var(--copper-s); }
.roadmap .data { color: var(--copper); }
.roadmap p { color: var(--ink-2); font-size: var(--fs-sm); }

.roles { list-style: none; display: grid; gap: var(--space-2); }
.role { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-4); padding: 18px 24px 18px 18px; background: var(--s1); border-radius: 6px 24px 24px 6px; align-items: center; }
.role strong { font-family: var(--font-display); font-size: 1.15rem; }
.role span { color: var(--ink-2); font-size: var(--fs-sm); }

.leaders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.leader { flex-direction: row; align-items: flex-start; gap: var(--space-6); }
.avatar { width: 96px; height: 96px; flex: none; border-radius: 8px 48px 48px 8px; overflow: hidden; background: var(--s2); color: var(--s3); display: grid; place-items: center; }
.avatar svg { width: 72px; height: 72px; }
.avatar img { width: 96px; height: 96px; object-fit: cover; }
.leader-links { display: flex; gap: 8px; }
.icon-link { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-d); background: var(--s2); color: var(--ink); }
.icon-link svg { width: 18px; height: 18px; }
.leader h3 { min-height: 1.2em; }

.form { display: grid; gap: var(--space-5); background: var(--s1); border-radius: var(--r-card); padding: var(--space-8); }
.form .btn { justify-self: start; }
.form-ok { background: var(--plasma-s); color: var(--ink); padding: var(--space-4) var(--space-5); border-radius: 6px 20px 20px 6px; }
.form-ok[hidden] { display: none; }
.form-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
.mails { list-style: none; display: grid; gap: var(--space-2); }
.mails li { background: var(--s1); border-radius: 6px 22px 22px 6px; padding: 16px 22px 16px 16px; display: grid; gap: 2px; }
.mails li span:first-child { color: var(--ink-2); font-size: var(--fs-sm); }
.mails .data { font-size: 0.95rem; color: var(--copper); }

/* CTA band */
.cta-block { background: var(--inv); color: var(--on-inv); border-radius: 10px 56px 56px 10px; padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: var(--space-8); align-items: center; }
.cta-block .psi { color: var(--on-inv-2); }
.cta-block .psi-g path { stroke: var(--on-inv-2); }
.cta-block .psi-g path.on { stroke: var(--copper); }
.cta-block p { color: var(--on-inv-2); max-width: 56ch; margin-top: var(--space-4); }
.cta-block .h2 { margin-top: var(--space-4); }
.cta-block .btn-soft { background: var(--ink-2); color: var(--on-inv); }
.cta-block .btn-soft:hover { background: var(--copper-2); color: var(--on-copper); }
.cta-mark { fill: var(--copper); justify-self: end; width: 100%; max-width: 220px; }

/* signin */
.signin { max-width: 460px; }

/* ------------------------------------------------ footer */
.site-footer { background: var(--bg); padding: var(--space-16) 0 var(--space-10); }
.foot { display: grid; grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)); gap: var(--space-8); }
.foot-brand { display: grid; gap: var(--space-4); align-content: start; }
.foot-brand p { color: var(--ink-2); max-width: 32ch; }
.foot-mail { display: inline-flex; align-items: center; gap: 8px; color: var(--ink) !important; }
.foot-mail svg { width: 18px; height: 18px; color: var(--copper); }
.foot-col h2 { font-size: var(--fs-data); font-family: var(--font-data); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); margin-bottom: var(--space-4); }
.foot-col ul { list-style: none; display: grid; gap: 10px; }
.foot-col a { text-decoration: none; font-size: var(--fs-sm); }
.foot-col a:hover { color: var(--copper); text-decoration: underline; }
.foot-flux { margin: var(--space-16) 0 var(--space-8); }
.foot-flux svg { width: 100%; height: auto; }
.foot-flux path { fill: none; stroke: var(--s3); stroke-width: 2; }
.foot-flux path.sep { stroke: var(--copper); stroke-width: 3; }
.foot-flux .fw { fill: var(--ink); font-family: var(--font-display); font-weight: 600; letter-spacing: -0.04em; }
.foot-base { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--space-8); color: var(--ink-2); font-size: var(--fs-tiny); }

/* ------------------------------------------------ motion */
.js .rv { transform: translateY(18px); transition: transform 600ms var(--ease); }
.js .rv.in { transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
  .js .rv { transform: none; }
}

/* ------------------------------------------------ responsive */
@media (max-width: 1180px) {
  .nav-account { display: none; }
}
@media (max-width: 1080px) {
  .nav-toggle { display: inline-grid; }
  .nav-tools .nav-cta { display: none; }
  .nav-main { position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0; background: var(--bg); overflow-y: auto; padding: var(--space-4) var(--gutter) var(--space-16); display: none; margin: 0; }
  .nav-main.is-open { display: block; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-link, .nav-menu-btn { width: 100%; justify-content: space-between; padding: 14px 16px; font-size: 1.125rem; }
  .nav-menu { position: static; width: auto; margin-top: 6px; }
  .nav-tools { margin-left: auto; }
  .panel-only { display: block; margin-top: var(--space-3); }
  .panel-only .btn { width: 100%; }
  .hero-grid, .page-hero.has-side .ph { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
  .roadmap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc { grid-template-columns: 1fr; }
  .g-4, .sensors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prow { grid-template-columns: 40px 40px minmax(110px, 160px) 1fr 28px; }
  .prow-verb { display: none; }
}
@media (max-width: 780px) {
  .split, .split-wide, .g-2, .g-3, .faq, .plans, .weeks, .leaders, .sc-list, .form-2, .foot-base { grid-template-columns: 1fr; }
  .cta-block { grid-template-columns: 1fr; border-radius: 10px 40px 40px 10px; }
  .cta-mark { justify-self: start; max-width: 96px; }
  .q-row { grid-template-columns: 1fr auto; }
  .q-row .q-id, .q-row .q-c { grid-column: auto; }
  .q-row .q-sig { grid-column: 1 / -1; }
  .role { grid-template-columns: 1fr; gap: 4px; }
  .con-body { grid-template-columns: 1fr; }
  .con-view { min-height: 300px; }
  .calc-out { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .g-4, .steps, .sensors, .roadmap, .stack, .foot { grid-template-columns: 1fr; }
  .loopd { grid-template-columns: 1fr; grid-template-areas: "c" "n" "e" "s" "w"; }
  .prow { grid-template-columns: 36px 1fr 24px; padding: var(--space-4); }
  .prow .glyph, .prow-line { display: none; }
  .prow-line { grid-column: 2 / 3; }
  .card { padding: var(--space-6) var(--space-8) var(--space-6) var(--space-6); }
  .btn-row .btn { width: 100%; }
  .env-row { grid-template-columns: 1fr 60px; }
  .env-row > span:first-child { grid-column: 1 / -1; }
  .brand span { font-size: 1.25rem; }
  .theme-t { display: none; }
}

/* ------------------------------------------------ brand icons + theme toggle (Fusalis: Hall / Vessel) */
[data-icon] { flex: none; }
[data-icon="menu"], [data-icon="close"] { width: 22px; height: 22px; }
[data-icon="mail"], [data-icon="linkedin"] { width: 18px; height: 18px; }
.theme { display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; min-height: 40px; border: 0; border-radius: var(--r-d); background: var(--s2); cursor: pointer; font: 600 var(--fs-tiny) var(--font-data); text-transform: uppercase; letter-spacing: 0.05em; }
.theme-k { position: relative; width: 52px; height: 32px; border-radius: 6px 999px 999px 6px; background: var(--s1); flex: none; }
.theme-k::before { content: ""; position: absolute; left: 24px; top: 5px; width: 4px; height: 22px; border-radius: 1px; background: var(--copper); }
.theme-k i { position: absolute; top: 6px; width: 14px; height: 20px; background: var(--ink-2); transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.theme-k .tl { left: 6px; border-radius: 999px 2px 2px 999px; background: var(--plasma); }
.theme-k .tr { left: 32px; border-radius: 2px 999px 999px 2px; background: var(--s3); }
.theme[aria-pressed="true"] .tl { background: var(--s3); }
.theme[aria-pressed="true"] .tr { background: var(--plasma); }
.theme-t .t-d { display: none; }
.theme[aria-pressed="true"] .t-l { display: none; }
.theme[aria-pressed="true"] .t-d { display: inline; }
