/* BizSuite Radar
 * Dark only. Three department colours carry meaning everywhere they appear:
 * orchid = HR, jade = IT, saffron = Finance. Saffron-to-ember is also the
 * action colour, used on buttons and the H1 accent only.
 */

:root {
  --bg: #07070c;
  --bg-2: #0b0a13;
  --surface: #110f1b;
  --surface-2: #161423;
  --surface-3: #1d1a2d;
  --line: rgba(228, 222, 255, 0.08);
  --line-2: rgba(228, 222, 255, 0.14);
  --text: #f1eff8;
  --muted: #a7a3bc;
  --dim: #75718c;

  --hr: #c77dff;
  --it: #2bd4a4;
  --fin: #f5b642;
  --ember: #ff7f50;
  --hr-rgb: 199, 125, 255;
  --it-rgb: 43, 212, 164;
  --fin-rgb: 245, 182, 66;

  --grad: linear-gradient(100deg, #f5b642 0%, #ff8a5b 42%, #c77dff 100%);
  --grad-btn: linear-gradient(110deg, #f7c25a 0%, #ff8f5a 100%);

  --font-d: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --r: 14px;
  --r-lg: 22px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ambient light + film grain, fixed so it never scrolls with content */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60vw 50vh at 12% -8%, rgba(var(--hr-rgb), 0.13), transparent 70%),
    radial-gradient(50vw 45vh at 96% 22%, rgba(var(--it-rgb), 0.08), transparent 70%),
    radial-gradient(60vw 50vh at 60% 115%, rgba(var(--fin-rgb), 0.08), transparent 70%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: rgba(var(--fin-rgb), 0.35); color: #fff; }

:focus-visible { outline: 2px solid var(--fin); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 14px; border-radius: 10px; background: var(--fin); color: #120d02;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- type ---------- */

h1, h2, h3, h4 { font-family: var(--font-d); font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.6rem); letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); letter-spacing: -0.015em; }
p { margin: 0; text-wrap: pretty; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--it); box-shadow: 0 0 0 4px rgba(var(--it-rgb), 0.15), 0 0 14px var(--it);
  animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: 0.35; } }

.lede { font-size: clamp(1.02rem, 1.3vw, 1.15rem); color: var(--muted); max-width: 60ch; }
.lede strong { color: var(--text); font-weight: 600; }

.mono { font-family: var(--mono); }
.muted { color: var(--muted); }

/* ---------- progress + nav ---------- */

.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60;
  background: var(--grad); transform-origin: 0 50%; transform: scaleX(0);
}

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled, .nav.is-open {
  background: rgba(9, 8, 15, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-d); font-weight: 700; font-size: 1.08rem; letter-spacing: -0.02em; white-space: nowrap; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand .sweep-arm { transform-origin: 16px 16px; animation: spin 4.5s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.brand b { font-weight: 700; color: var(--fin); }

.nav-links { display: flex; gap: 4px; margin-left: auto; list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; }
.nav-links a {
  display: block; padding: 8px 12px; border-radius: 10px; text-decoration: none;
  font-size: 0.92rem; color: var(--muted); transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.05); }

.nav-cta { margin-left: 8px; }
.menu-btn { display: none; }

@media (max-width: 860px) {
  .nav .wrap { gap: 12px; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px;
    background: rgba(9, 8, 15, 0.96); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }
  .nav.is-open .nav-links { transform: none; opacity: 1; visibility: visible; }
  .nav-links a { padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-cta { margin-left: auto; }
  .menu-btn {
    display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
    background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-2); cursor: pointer;
  }
  .menu-btn span, .menu-btn span::before, .menu-btn span::after {
    display: block; width: 16px; height: 1.5px; background: var(--text); border-radius: 2px; position: relative;
    transition: transform 0.25s var(--ease), background 0.2s;
  }
  .menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
  .menu-btn span::before { top: -5px; }
  .menu-btn span::after { top: 5px; }
  .nav.is-open .menu-btn span { background: transparent; }
  .nav.is-open .menu-btn span::before { transform: translateY(5px) rotate(45deg); }
  .nav.is-open .menu-btn span::after { transform: translateY(-5px) rotate(-45deg); }
}
@media (max-width: 420px) {
  .brand span.full { display: none; }
}

/* ---------- buttons ---------- */

.btn {
  --mx: 0px; --my: 0px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 0.97rem; text-decoration: none; letter-spacing: -0.005em;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transform: translate(var(--mx), var(--my));
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.25s, border-color 0.25s, color 0.25s;
}
.btn-primary {
  background: var(--grad-btn); color: #1a0e02;
  box-shadow: 0 10px 30px -10px rgba(255, 143, 90, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary:hover { box-shadow: 0 16px 40px -12px rgba(255, 143, 90, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.24); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.9rem; }
.btn .arr { transition: transform 0.3s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: min(100svh, 980px);
  padding: calc(var(--nav-h) + 40px) 0 56px;
  display: flex; align-items: center;
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(24px, 4vw, 56px); align-items: center;
}
.hero-copy { position: relative; z-index: 2; }
.hero-copy h1 { margin: 22px 0 22px; font-size: clamp(2.3rem, 4.6vw, 4.1rem); }
.hero-copy .lede { margin-bottom: 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 30px; font-size: 0.84rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot.hr { background: var(--hr); box-shadow: 0 0 10px var(--hr); }
.dot.it { background: var(--it); box-shadow: 0 0 10px var(--it); }
.dot.fin { background: var(--fin); box-shadow: 0 0 10px var(--fin); }
.dot.suite { background: #fff; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--hr), 0 0 12px rgba(255, 255, 255, 0.6); }

.stage { position: relative; aspect-ratio: 1 / 0.92; width: 100%; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.stage canvas.is-drag { cursor: grabbing; }
.stage-hint {
  position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim);
  white-space: nowrap; pointer-events: none;
}
.stage-glow {
  position: absolute; inset: 12% 8%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--it-rgb), 0.09), transparent 70%);
  filter: blur(10px);
}

.tip {
  position: absolute; z-index: 5; pointer-events: none;
  min-width: 190px; max-width: 240px; padding: 12px 14px; border-radius: 12px;
  background: rgba(17, 15, 27, 0.92); border: 1px solid var(--line-2);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.8);
  transform: translate(-50%, calc(-100% - 16px)) scale(0.96); opacity: 0;
  transition: opacity 0.18s, transform 0.18s var(--ease);
  font-size: 0.82rem; line-height: 1.45;
}
.tip.on { opacity: 1; transform: translate(-50%, calc(-100% - 16px)) scale(1); }
.tip strong { display: block; font-family: var(--font-d); font-size: 1rem; margin-bottom: 6px; }
.tip .cov { display: flex; gap: 6px; margin-bottom: 6px; }
.tip .price { color: var(--muted); }
.tip .go { display: block; margin-top: 6px; color: var(--fin); font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.05em; text-transform: uppercase; }

@media (max-width: 960px) {
  .hero { min-height: 0; padding-top: calc(var(--nav-h) + 28px); padding-bottom: 24px; }
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .hero .stage { aspect-ratio: 1 / 0.86; max-width: 560px; margin: 0 auto; width: 100%; }
}

/* ---------- coverage pills (used in tip, matrix, cards) ---------- */

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 9px; border-radius: 999px;
  font-family: var(--mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase;
  border: 1px solid var(--line-2); color: var(--dim); white-space: nowrap;
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; }
.pill.full::before { background: currentColor; }
.pill.part::before { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.pill.none { opacity: 0.45; }
.pill.none::before { border-style: dashed; }
.pill.hr.full, .pill.hr.part { color: var(--hr); border-color: rgba(var(--hr-rgb), 0.35); background: rgba(var(--hr-rgb), 0.07); }
.pill.it.full, .pill.it.part { color: var(--it); border-color: rgba(var(--it-rgb), 0.35); background: rgba(var(--it-rgb), 0.07); }
.pill.fin.full, .pill.fin.part { color: var(--fin); border-color: rgba(var(--fin-rgb), 0.35); background: rgba(var(--fin-rgb), 0.07); }

/* ---------- stat band ---------- */

.stats { padding: 20px 0 30px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.005));
  overflow: hidden;
}
.stat { padding: 22px 22px 20px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .n { font-family: var(--font-d); font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.stat .l { margin-top: 8px; font-size: 0.86rem; color: var(--muted); line-height: 1.4; }
.stat:nth-child(2) .n { color: var(--fin); }
.stat:nth-child(5) .n { color: var(--it); }
@media (max-width: 860px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { border-bottom: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:last-child { grid-column: 1 / -1; border-bottom: 0; }
}

/* ---------- section scaffolding ---------- */

.section { padding: clamp(72px, 10vw, 130px) 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { margin: 16px 0 16px; }
.kicker { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fin); }

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

/* ---------- the sweep (pinned scrollytelling) ---------- */

.sweep { position: relative; height: 340vh; }
.sweep-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; align-items: center; overflow: hidden;
}
.sweep-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(20px, 4vw, 60px); align-items: center; width: 100%; }
.sweep .stage { aspect-ratio: 1 / 0.9; }
.sweep-copy { position: relative; }
.steps { position: relative; min-height: 470px; margin-top: 26px; }

.step {
  position: absolute; inset: 0 0 auto 0;
  opacity: 0; transform: translateY(30px); pointer-events: none;
  transition: opacity 0.6s var(--ease), transform 0.7s var(--ease);
}
.step.on { opacity: 1; transform: none; pointer-events: auto; }
.step.past { transform: translateY(-30px); }
.step h3 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin-bottom: 16px; letter-spacing: -0.03em; }
.step h3 .tag { display: block; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; }
.step.hr h3 .tag { color: var(--hr); }
.step.it h3 .tag { color: var(--it); }
.step.fin h3 .tag { color: var(--fin); }
.step p { color: var(--muted); margin-bottom: 14px; max-width: 54ch; }
.step p strong { color: var(--text); font-weight: 600; }
.step .who { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 16px; }
.chip-n {
  display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px;
  font-size: 0.84rem; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03);
}
.step.hr .chip-n.full { border-color: rgba(var(--hr-rgb), 0.5); color: #ecd9ff; background: rgba(var(--hr-rgb), 0.1); }
.step.it .chip-n.full { border-color: rgba(var(--it-rgb), 0.5); color: #cff8ec; background: rgba(var(--it-rgb), 0.1); }
.step.fin .chip-n.full { border-color: rgba(var(--fin-rgb), 0.5); color: #fde9c4; background: rgba(var(--fin-rgb), 0.1); }
.chip-n.part { color: var(--muted); border-style: dashed; }
.step p.ai { font-size: 0.9rem; border-left: 2px solid var(--line-2); padding-left: 12px; margin-bottom: 0; }
.step p.ai b { color: var(--text); font-weight: 600; }

.rail { display: flex; flex-wrap: wrap; gap: 8px; }
.rail button {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 13px; border-radius: 999px;
  background: transparent; border: 1px solid var(--line-2); color: var(--dim); cursor: pointer;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.rail button:hover { color: var(--text); }
.rail button i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.rail button[aria-current="true"][data-dept="hr"] { color: var(--hr); border-color: rgba(var(--hr-rgb), 0.5); background: rgba(var(--hr-rgb), 0.08); }
.rail button[aria-current="true"][data-dept="it"] { color: var(--it); border-color: rgba(var(--it-rgb), 0.5); background: rgba(var(--it-rgb), 0.08); }
.rail button[aria-current="true"][data-dept="fin"] { color: var(--fin); border-color: rgba(var(--fin-rgb), 0.5); background: rgba(var(--fin-rgb), 0.08); }

/* without JS the steps simply stack */
html:not(.js) .step { position: relative; opacity: 1; transform: none; margin-bottom: 40px; }
html:not(.js) .sweep { height: auto; }
html:not(.js) .sweep-sticky { position: relative; height: auto; }

@media (max-width: 960px) {
  .sweep { height: auto; padding-top: 40px; }
  .sweep-sticky { position: relative; height: auto; display: block; overflow: visible; }
  .sweep-grid { grid-template-columns: 1fr; gap: 0; }
  .sweep .stage-col {
    position: sticky; top: var(--nav-h); z-index: 2;
    background: var(--bg);
    padding-bottom: 6px;
    margin: 0 calc(var(--gutter) * -1);
    padding-left: var(--gutter); padding-right: var(--gutter);
  }
  /* soft edge below the pinned radar so text fades under it instead of showing through */
  .sweep .stage-col::after {
    content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 28px; pointer-events: none;
    background: linear-gradient(180deg, var(--bg), rgba(7, 7, 12, 0));
  }
  .sweep .stage { aspect-ratio: auto; height: min(36svh, 320px); max-width: 520px; margin: 0 auto; }
  .sweep .stage-hint { display: none; }
  .sweep-copy { padding-top: 10px; }
  .steps { min-height: 0; margin-top: 18px; }
  .step {
    position: relative; inset: auto; opacity: 0.4; transform: none; pointer-events: auto;
    padding: 32px 0 40px; border-top: 1px solid var(--line);
  }
  .step:last-child { min-height: 50svh; }
  .step.on { opacity: 1; }
  .step.past { transform: none; }
}

/* ---------- suites: pinned horizontal track ---------- */

.suites .hs-head { margin-bottom: 34px; }
.suites .hs-head h2 { margin: 16px 0 14px; max-width: 20ch; }
.hs-track { display: flex; gap: 20px; padding: 6px var(--gutter) 24px; }
/* pinned (desktop): heading holds still on the left, cards slide past it */
.suites.is-pinned { padding: 0; }
.suites.is-pinned .hs-sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); align-items: center; column-gap: 28px;
  padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  padding-top: calc(var(--nav-h) / 2);
}
.suites.is-pinned .hs-head { margin: 0; padding: 0; max-width: none; width: auto; }
.suites.is-pinned .hs-head h2 { font-size: clamp(1.8rem, 2.6vw, 2.5rem); }
.suites.is-pinned .hs-head .lede { font-size: 1rem; }
.suites.is-pinned .hs-view {
  overflow: hidden; padding: 24px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 36px, #000 calc(100% - 48px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 36px, #000 calc(100% - 48px), transparent 100%);
}
.suites.is-pinned .hs-track { will-change: transform; padding: 0 8vw 0 36px; }
.suites.is-pinned .hs-sticky > .wrap:last-child { display: none; }

.suite-card {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
  position: relative; flex: 0 0 min(440px, 84vw);
  padding: 26px; border-radius: var(--r-lg);
  background:
    radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.06), transparent 45%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-2);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.4s var(--ease), border-color 0.3s;
  display: flex; flex-direction: column;
}
.suite-card:hover { border-color: rgba(255, 255, 255, 0.22); }
.suite-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(var(--hr-rgb), 0.5), transparent 35%, transparent 65%, rgba(var(--fin-rgb), 0.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0.6;
}
.suite-card .top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.suite-card .rank { font-family: var(--mono); font-size: 0.72rem; color: var(--dim); letter-spacing: 0.08em; }
.suite-card h3 { font-size: 1.65rem; letter-spacing: -0.03em; margin-top: 6px; }
.suite-card .kind { font-size: 0.88rem; color: var(--muted); margin-bottom: 20px; }
.meter { display: flex; gap: 4px; margin-top: 8px; }
.meter i { width: 24px; height: 6px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); }
.meter i.hr.full { background: var(--hr); } .meter i.hr.part { background: linear-gradient(90deg, var(--hr) 50%, rgba(255,255,255,0.1) 50%); }
.meter i.it.full { background: var(--it); } .meter i.it.part { background: linear-gradient(90deg, var(--it) 50%, rgba(255,255,255,0.1) 50%); }
.meter i.fin.full { background: var(--fin); } .meter i.fin.part { background: linear-gradient(90deg, var(--fin) 50%, rgba(255,255,255,0.1) 50%); }
.dept-rows { display: grid; gap: 12px; margin: 0 0 20px; }
.dept-row { display: grid; grid-template-columns: 70px 1fr; gap: 10px; font-size: 0.9rem; line-height: 1.45; }
.dept-row dt { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; padding-top: 3px; }
.dept-row dt.hr { color: var(--hr); } .dept-row dt.it { color: var(--it); } .dept-row dt.fin { color: var(--fin); }
.dept-row dd { margin: 0; color: #dcd9e8; }
.dept-row dd.weak { color: var(--muted); }
.suite-card .stops { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--muted); }
.suite-card .stops b { color: var(--ember); font-weight: 600; }
.suite-card .sfoot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.suite-card .sfoot .p { font-family: var(--font-d); font-weight: 600; font-size: 1.1rem; }
.suite-card .sfoot .p small { font-family: var(--font); font-weight: 400; font-size: 0.8rem; color: var(--muted); margin-left: 2px; }

.swipe-hint { display: none; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); margin-top: 4px; }
@media (max-width: 960px), (pointer: coarse) {
  .hs-track { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain; }
  .hs-track::-webkit-scrollbar { display: none; }
  .suite-card { scroll-snap-align: start; }
  .swipe-hint { display: block; }
}

/* ---------- matrix ---------- */

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 15px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-2); color: var(--muted);
  font-size: 0.88rem; cursor: pointer; transition: all 0.25s var(--ease);
}
.chip:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.25); }
.chip[aria-pressed="true"] { color: #140d03; background: var(--text); border-color: var(--text); }
.chip[aria-pressed="true"][data-f="hr"] { background: var(--hr); border-color: var(--hr); }
.chip[aria-pressed="true"][data-f="it"] { background: var(--it); border-color: var(--it); }
.chip[aria-pressed="true"][data-f="fin"] { background: var(--fin); border-color: var(--fin); }
.chip .c { font-family: var(--mono); font-size: 0.72rem; opacity: 0.7; }

.seg { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.02); }
.seg button { height: 32px; padding: 0 14px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); font-size: 0.84rem; cursor: pointer; transition: all 0.25s var(--ease); }
.seg button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.1); color: var(--text); }
.seg-label { font-size: 0.8rem; color: var(--dim); margin-right: 8px; }

.result-line { font-size: 0.86rem; color: var(--muted); margin-bottom: 12px; min-height: 1.4em; }
.result-line b { color: var(--text); }

.matrix-wrap { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.005)); }
table.matrix { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.matrix thead th {
  text-align: left; font-family: var(--mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--dim); padding: 14px 16px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.015);
}
.matrix tbody { transition: opacity 0.35s var(--ease); }
.matrix tbody.gone { display: none; }
.matrix tr.main { cursor: pointer; transition: background 0.2s; }
.matrix tr.main:hover { background: rgba(255, 255, 255, 0.025); }
.matrix td { padding: 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.matrix tbody:last-of-type tr.detail td, .matrix tbody:last-of-type tr.main:last-child td { border-bottom: 0; }
.matrix .name { display: flex; align-items: center; gap: 12px; }
.matrix .name .logo {
  width: 36px; height: 36px; border-radius: 10px; flex: none; display: grid; place-items: center;
  font-family: var(--font-d); font-weight: 700; font-size: 0.95rem; color: #fff;
  background: var(--surface-3); border: 1px solid var(--line-2);
}
.matrix .name b { display: block; font-family: var(--font-d); font-size: 1.02rem; font-weight: 600; letter-spacing: -0.01em; }
.matrix .name small { display: block; color: var(--dim); font-size: 0.78rem; }
.matrix .price b { display: block; font-weight: 600; white-space: nowrap; }
.matrix .price small { display: block; color: var(--dim); font-size: 0.78rem; line-height: 1.35; margin-top: 2px; }
.matrix .price.quote b { color: var(--muted); font-weight: 500; }
.matrix .ai { color: var(--muted); font-size: 0.84rem; line-height: 1.4; max-width: 22ch; }
.matrix .ai.unk { color: var(--dim); font-style: italic; }
.pays { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 8px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--muted); border: 1px solid var(--line-2); }
.exp {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; cursor: pointer;
  display: grid; place-items: center; color: var(--muted); transition: transform 0.35s var(--ease), background 0.2s;
}
.exp svg { width: 12px; height: 12px; }
tbody.open .exp { transform: rotate(180deg); background: rgba(255, 255, 255, 0.06); color: var(--text); }
tbody.flash tr.main { animation: flash 1.8s var(--ease); }
@keyframes flash { 0%, 40% { background: rgba(var(--fin-rgb), 0.12); } 100% { background: transparent; } }

tr.detail td { padding: 0 16px; }
tr.detail .inner { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.45s var(--ease); }
.js tr.detail .inner { grid-template-rows: 0fr; }
.js tbody.open tr.detail .inner { grid-template-rows: 1fr; }
tr.detail .inner > div { overflow: hidden; }
.detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.15fr); gap: 18px; padding: 4px 0 22px; }
.detail-grid h4 { font-family: var(--mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; }
.detail-grid h4.hr { color: var(--hr); } .detail-grid h4.it { color: var(--it); } .detail-grid h4.fin { color: var(--fin); }
.detail-grid h4.stop { color: var(--ember); }
.detail-grid p { font-size: 0.88rem; color: #d4d1e1; line-height: 1.5; }
.detail-grid p.weak { color: var(--dim); }
.detail-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 0 0 22px; font-size: 0.82rem; color: var(--dim); }
.detail-foot a { color: var(--muted); }
.detail-foot .btn { margin-left: auto; }

@media (max-width: 1060px) {
  .matrix th.ai-h, .matrix td.ai { display: none; }
}
@media (max-width: 760px) {
  .matrix thead { display: none; }
  .matrix tbody { display: block; border-bottom: 1px solid var(--line); }
  .matrix tbody.gone { display: none; }
  .matrix tr { display: block; }
  .matrix tr.main { display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; padding: 16px; }
  .matrix td { display: block; padding: 0; border: 0; }
  .matrix td.cov { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; }
  .matrix td.cov .pill { display: inline-flex; }
  .matrix td.cov-extra { display: none; }
  .matrix td.price { grid-column: 1 / 2; }
  .matrix td.pays-c { grid-column: 2 / 3; grid-row: 1; align-self: start; justify-self: end; }
  .matrix td.exp-c { grid-column: 2 / 3; grid-row: 3; align-self: end; justify-self: end; }
  tr.detail td { padding: 0 16px; }
  .detail-grid { grid-template-columns: 1fr; gap: 14px; }
  .detail-foot .btn { margin-left: 0; width: 100%; }
}
@media (min-width: 761px) {
  .matrix td.cov { display: none; }
}

/* ---------- method ---------- */

.method-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.m-card {
  position: relative; padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); overflow: hidden;
}
.m-card .num { font-family: var(--mono); font-size: 0.72rem; color: var(--dim); letter-spacing: 0.1em; }
.m-card h3 { margin: 18px 0 10px; font-size: 1.2rem; }
.m-card p { font-size: 0.92rem; color: var(--muted); }
.m-card .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2); margin-top: 18px; }
.m-card .ic svg { width: 20px; height: 20px; }
.not-done {
  margin-top: 18px; padding: 22px 24px; border-radius: var(--r-lg);
  border: 1px dashed rgba(var(--fin-rgb), 0.4); background: rgba(var(--fin-rgb), 0.04);
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start;
}
.not-done .b { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fin); padding-top: 3px; white-space: nowrap; }
.not-done p { color: #d8d4e6; font-size: 0.95rem; }
@media (max-width: 960px) { .method-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .method-grid { grid-template-columns: 1fr; } .not-done { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- faq ---------- */

.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px 0; font-family: var(--font-d); font-size: clamp(1.05rem, 1.6vw, 1.22rem); font-weight: 600; letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { position: relative; width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: var(--text); transform: translate(-50%, -50%); transition: transform 0.3s var(--ease); }
.faq summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq .ans { padding: 0 0 24px; color: var(--muted); max-width: 70ch; }
.faq .ans p + p { margin-top: 10px; }
.faq .ans strong { color: var(--text); font-weight: 600; }

/* ---------- end cta ---------- */

.end {
  position: relative; text-align: center; padding: clamp(70px, 10vw, 120px) var(--gutter);
  border-radius: 28px; border: 1px solid var(--line-2); overflow: hidden;
  background:
    radial-gradient(60% 80% at 50% 120%, rgba(var(--fin-rgb), 0.18), transparent 70%),
    radial-gradient(50% 60% at 10% -10%, rgba(var(--hr-rgb), 0.16), transparent 70%),
    radial-gradient(40% 60% at 95% 0%, rgba(var(--it-rgb), 0.12), transparent 70%),
    var(--surface);
}
.end h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); max-width: 16ch; margin: 0 auto 18px; }
.end p { color: var(--muted); max-width: 52ch; margin: 0 auto 30px; }
.end .rings { position: absolute; left: 50%; top: 50%; width: 900px; height: 900px; transform: translate(-50%, -50%); pointer-events: none; opacity: 0.4; }

/* ---------- prose pages ---------- */

.page-hero { padding: calc(var(--nav-h) + 64px) 0 30px; }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); margin: 18px 0 18px; max-width: 18ch; }
.prose { max-width: 760px; padding-bottom: 90px; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 48px 0 14px; }
.prose h3 { margin: 28px 0 10px; font-size: 1.15rem; }
.prose p, .prose li { color: #cfcbdd; }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 20px; margin: 12px 0; }
.prose li + li { margin-top: 8px; }
.prose a { color: var(--fin); text-underline-offset: 3px; }
.prose strong { color: var(--text); }
.src-table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 0.88rem; }
.src-table th, .src-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.src-table th { font-family: var(--mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.src-table td:first-child { font-weight: 600; color: var(--text); white-space: nowrap; }
.src-table td { color: #cfcbdd; }
.src-table a { word-break: break-word; }
.def { display: grid; grid-template-columns: auto 1fr; gap: 12px 16px; align-items: start; margin: 18px 0; }
.def .pill { margin-top: 2px; }
@media (max-width: 640px) {
  .src-table thead { display: none; }
  .src-table tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .src-table td { display: block; padding: 2px 0; border: 0; }
  .def { grid-template-columns: 1fr; gap: 4px; }
  .def dd { margin: 0 0 12px; }
}

/* ---------- footer ---------- */

.foot { padding: 60px 0 40px; margin-top: 40px; border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.foot h4 { font-family: var(--mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; color: var(--muted); }
.foot a:hover { color: var(--text); }
.foot .disc { margin-top: 14px; max-width: 46ch; line-height: 1.55; }
.foot .base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--dim); font-size: 0.8rem; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- 404 ---------- */

.nf { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 0 var(--gutter); }
.nf h1 { font-size: clamp(3rem, 10vw, 7rem); }
.nf p { color: var(--muted); margin: 16px 0 28px; }

/* ---------- matrix extras ---------- */

.ring { width: 36px; height: 36px; flex: none; }
.ring path { fill: none; stroke-width: 3; stroke-linecap: round; }
.ring path.none { stroke: rgba(255, 255, 255, 0.1); }
.ring path.hr.full { stroke: var(--hr); } .ring path.it.full { stroke: var(--it); } .ring path.fin.full { stroke: var(--fin); }
.ring path.part { stroke-dasharray: 3 3.5; }
.ring path.hr.part { stroke: var(--hr); } .ring path.it.part { stroke: var(--it); } .ring path.fin.part { stroke: var(--fin); }
.ring .core { fill: rgba(255, 255, 255, 0.85); }
.matrix .price .u { font-weight: 400; color: var(--muted); font-size: 0.84em; margin-left: 2px; }
.matrix tbody { transition: opacity 0.18s var(--ease); }
.matrix.is-sorting tbody { opacity: 0; }
.detail-foot .note { flex-basis: 100%; order: 3; color: var(--muted); font-size: 0.82rem; border-left: 2px solid rgba(var(--fin-rgb), 0.5); padding-left: 10px; }
.detail-foot .btn { order: 2; }
.no-canvas canvas { display: none; }

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js [data-rv] { opacity: 1; transform: none; }
  .brand .sweep-arm { animation: none; }
}
