/* BDM Data Systems · marketing site (the homepage).
   The same palette and type as the systems we build. */
html { scroll-padding-top: 72px; }

@font-face { font-family: "Red Hat Display"; src: url("/assets/fonts/red-hat-display.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Red Hat Text"; src: url("/assets/fonts/red-hat-text.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Red Hat Mono"; src: url("/assets/fonts/red-hat-mono.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  --canvas: #e9e4d8;
  --canvas-2: #e2dccd;
  --surface: #fbf9f3;
  --surface-2: #f4f0e6;
  --surface-3: #ece6d8;
  --border: #e0d9c8;
  --border-strong: #cfc6b0;
  --lip: #d4ccb8;
  --fg: #1c2a22;
  --fg-2: #34433a;
  --muted: #5a6156;
  --subtle: #9a9d90;
  --accent: #1f4d36;
  --accent-deep: #0f2c1e;
  --accent-fg: #f2f7e4;
  --hl: #d5f05a;
  --hl-deep: #b5d12f;
  --up: #33601a; --up-bg: #e3f3c4;
  --down: #a5341a; --down-bg: #f6d9cf;
  --warn: #8a5a00; --warn-bg: #f6e7c4;
  --c2: #a9b5a0; --c3: #d9774a; --c4: #8fb33a; --c5: #2f7f7a; --c6: #c99a2e; --c7: #7a5aa8;
  --grid: #ebe5d6;
  --display: "Red Hat Display", ui-sans-serif, system-ui, sans-serif;
  --text: "Red Hat Text", ui-sans-serif, system-ui, sans-serif;
  --mono: "Red Hat Mono", ui-monospace, monospace;
  --pop: 0 1px 0 #fff inset, 0 30px 60px -30px rgb(40 35 20 / .45), 0 2px 0 var(--lip);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gut: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--canvas); color: var(--fg);
  font: 400 17px/1.55 var(--text); -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* paper grain */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .2 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, header, footer { position: relative; z-index: 1; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--hl); color: var(--fg); }
:focus-visible { outline: 3px solid var(--hl-deep); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
.tab { font-variant-numeric: tabular-nums; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-fg); padding: 10px 14px; border-radius: 10px; }
.skip-link:focus { top: 12px; }

.w { width: min(1240px, 100% - var(--gut) * 2); margin-inline: auto; }

/* ── Type ─────────────────────────────────────────────────────────── */
.display, .h2, .h3 { font-family: var(--display); color: var(--fg); margin: 0; text-wrap: balance; }
.display { font-weight: 800; font-size: clamp(46px, 7.2vw, 96px); line-height: .95; letter-spacing: -.04em; }
.h2 { font-weight: 800; font-size: clamp(34px, 4.6vw, 62px); line-height: 1; letter-spacing: -.035em; }
.h2--sm { font-size: clamp(28px, 3.2vw, 44px); }
.h3 { font-weight: 800; font-size: clamp(22px, 2.1vw, 28px); line-height: 1.1; letter-spacing: -.02em; }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--fg-2); max-width: 34em; margin: 0; text-wrap: pretty; }
.lead strong { color: var(--fg); font-weight: 700; }
.copy { color: var(--fg-2); max-width: 38em; margin: 0; text-wrap: pretty; }
.eyebrow { font: 600 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; }
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); box-shadow: 3px 3px 0 var(--hl); }

/* highlighter that draws itself in */
.mark { background: linear-gradient(transparent 58%, var(--hl) 58%, var(--hl) 92%, transparent 92%) no-repeat 0 0 / 100% 100%; padding: 0 .06em; transition: background-size 1.1s var(--ease) .25s; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.js .mark { background-size: 0% 100%; }
.js .mark.is-in, .js .is-in .mark { background-size: 100% 100%; }
/* On dark sections the highlight covers the whole line, and the text only
   turns dark once the highlight is behind it. */
.sec--dark .mark { background-image: linear-gradient(var(--hl), var(--hl)); color: var(--accent-fg); transition: background-size 1.1s var(--ease) .25s, color .5s .55s; }
.sec--dark .mark.is-in, .sec--dark .is-in .mark, html:not(.js) .sec--dark .mark { color: var(--fg); }

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 22px; border-radius: 13px; font: 700 16px/1 var(--text); text-decoration: none; border: 0; cursor: pointer; transition: transform .12s, box-shadow .12s, background .2s; white-space: nowrap; }
.btn--p { background: var(--accent); color: var(--accent-fg); box-shadow: 0 4px 0 var(--accent-deep); }
.btn--s { background: var(--surface); color: var(--fg); box-shadow: 0 4px 0 var(--border-strong); }
.btn:hover { transform: translateY(-1px); }
.btn--p:hover { box-shadow: 0 5px 0 var(--accent-deep); }
.btn--s:hover { box-shadow: 0 5px 0 var(--border-strong); }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 transparent; }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ── Nav ──────────────────────────────────────────────────────────── */
.nav { position: sticky; top: 12px; z-index: 50; margin-top: 12px; }
.nav__in { display: flex; align-items: center; gap: 4px; background: rgb(251 249 243 / .92); backdrop-filter: blur(8px); border-radius: 999px; padding: 7px 7px 7px 20px; box-shadow: 0 1px 0 var(--lip), 0 12px 30px -20px rgb(40 35 20 / .35); }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 900 18px/1 var(--display); letter-spacing: -.02em; text-decoration: none; margin-right: auto; white-space: nowrap; }
.logo i { width: 24px; height: 24px; border-radius: 7px; background: var(--accent); box-shadow: 3px 3px 0 var(--hl); flex: none; display: grid; place-items: center; transition: transform .4s var(--ease); }
.logo i svg { width: 100%; height: 100%; display: block; }
.logo i polyline { stroke-dasharray: 420; stroke-dashoffset: 420; animation: markLine 1s .3s var(--ease) forwards; }
.logo i circle { transform-box: fill-box; transform-origin: center; transform: scale(0); animation: markDot .5s 1.1s cubic-bezier(.3, 1.6, .5, 1) forwards; }
.logo:hover i circle { animation: markPing .8s var(--ease); }
@keyframes markLine { to { stroke-dashoffset: 0; } }
@keyframes markDot { to { transform: scale(1); } }
@keyframes markPing { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.logo:hover i { transform: rotate(-12deg); }
.nav__links { display: flex; gap: 2px; }
.nav__links a { white-space: nowrap; padding: 10px 15px; border-radius: 999px; font-size: 15px; font-weight: 500; text-decoration: none; transition: background .2s; }
.nav__links a:hover { background: var(--surface-3); }
.nav__in { position: relative; }
.nav__progress { position: absolute; left: 22px; right: 22px; bottom: 0; height: 2px; border-radius: 2px; background: var(--hl-deep); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.nav__links a { position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 15px; right: 15px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transition: transform .35s var(--ease); }
.nav__links a.is-here::after { transform: scaleX(1); }
.nav .btn { padding: 12px 18px; font-size: 15px; border-radius: 999px; box-shadow: 0 3px 0 var(--accent-deep); }
.nav__menu { display: none; background: var(--surface-3); border: 0; border-radius: 999px; padding: 11px 16px; font-weight: 600; font-size: 15px; cursor: pointer; }

/* ── Sections ─────────────────────────────────────────────────────── */
.sec { padding: clamp(52px, 6.6vw, 90px) 0; position: relative; }
.sec--tight { padding-top: clamp(28px, 3.6vw, 48px); }
.sec__head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.sec__head .copy { justify-self: end; }
.sec--dark { background: var(--accent); color: var(--accent-fg); border-radius: clamp(24px, 3vw, 40px); margin-inline: clamp(8px, 1.4vw, 20px); }
.sec--dark .h2, .sec--dark .h3 { color: var(--accent-fg); }
.sec--dark .copy, .sec--dark .lead { color: #c9d6c0; }
.sec--dark .eyebrow { color: #a9bca3; }
.sec--dark .eyebrow::before { background: var(--hl); box-shadow: 3px 3px 0 #0f2c1e; }

/* reveal */
.js [data-r] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-r].is-in { opacity: 1; transform: none; }

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero { padding: clamp(56px, 8vw, 110px) 0 clamp(40px, 6vw, 80px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.hero .display { font-size: clamp(46px, 5.6vw, 84px); }
.hero .lead { margin-top: 26px; }
.hero__note { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 18px; font: 500 13px var(--mono); color: var(--muted); }
.hero__note span::before { content: "✓ "; color: var(--accent); font-weight: 700; }

.desk { position: relative; padding: 0 0 70px 0; }
.desk__main { position: relative; z-index: 2; }
.float { position: absolute; z-index: 3; background: var(--surface); border-radius: 16px; box-shadow: var(--pop); padding: 14px 16px; width: 250px; font-size: 14px; }
.float h5 { margin: 0 0 6px; font: 600 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; }
.float--dark { background: var(--accent); color: var(--accent-fg); }
.float--dark h5 { color: #a9bca3; }
.float--a { right: -18px; bottom: 0; rotate: 2.5deg; animation: bob 6s ease-in-out infinite; }
.float--b { left: -26px; bottom: 18px; rotate: -3deg; animation: bob 7s ease-in-out infinite reverse; }
@keyframes bob { 50% { translate: 0 -9px; } }
.float ul { list-style: none; margin: 0; padding: 0; }
.float li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed rgb(0 0 0 / .12); transition: background .4s; }
.float li:last-child { border: 0; }
.float--dark li { border-color: rgb(255 255 255 / .14); }
.float--dark b { color: var(--hl); }
.float li.flash { background: color-mix(in srgb, var(--hl) 45%, transparent); }
.lb-row { position: relative; transition: transform .6s var(--ease); }

/* toasts on the desk */
.toasts { position: absolute; z-index: 4; right: 22px; top: 58px; display: grid; gap: 8px; width: 270px; pointer-events: none; }
.toast { background: var(--fg); color: #eef0e6; border-radius: 12px; padding: 10px 12px; font-size: 13px; line-height: 1.35; display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: center; box-shadow: 0 16px 30px -16px rgb(0 0 0 / .5); animation: toastIn .5s var(--ease) both; }
.toast.out { animation: toastOut .45s ease both; }
.toast i { width: 26px; height: 26px; border-radius: 8px; background: var(--hl); color: var(--fg); display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 13px; }
.toast small { display: block; color: #a8b0a2; font-size: 12px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }

/* ── Ticker of teams ──────────────────────────────────────────────── */
.ticker { overflow: hidden; padding: 6px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker__row { display: flex; gap: 10px; width: max-content; animation: tick 60s linear infinite; }
.ticker:hover .ticker__row { animation-play-state: paused; }
.ticker span { background: var(--surface); border-radius: 999px; padding: 10px 18px; font: 600 15px var(--display); box-shadow: 0 2px 0 var(--lip); white-space: nowrap; }
.ticker span b { font: 500 12px var(--mono); color: var(--muted); margin-left: 8px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ── Scatter → one (problem) ──────────────────────────────────────── */
.scatter { position: relative; height: 356px; }
.sec:has(.scatter) { overflow-x: clip; padding-top: clamp(48px, 6vw, 84px); padding-bottom: clamp(12px, 2vw, 24px); }
.sec:has(.scatter) .sec__head { margin-bottom: clamp(24px, 3vw, 40px); }
/* Going back out: the cards pop from the centre with a little overshoot, one after another. */
.scrap { position: absolute; background: var(--surface); border-radius: 12px; box-shadow: var(--pop); padding: 14px 16px; width: 230px; font-size: 14px; --pop-d: .2s; transition: transform .8s cubic-bezier(.3, 1.55, .5, 1) var(--pop-d), opacity .35s var(--pop-d), left .8s cubic-bezier(.3, 1.35, .5, 1) var(--pop-d), top .8s cubic-bezier(.3, 1.35, .5, 1) var(--pop-d); }
.scrap:nth-child(2) { --pop-d: .27s; } .scrap:nth-child(3) { --pop-d: .34s; } .scrap:nth-child(4) { --pop-d: .41s; } .scrap:nth-child(5) { --pop-d: .48s; } .scrap:nth-child(6) { --pop-d: .55s; }
.scrap h6 { margin: 0 0 8px; font: 700 12px var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); display: flex; justify-content: space-between; }
.scrap strong { font: 800 30px var(--display); letter-spacing: -.02em; display: block; }
.scrap small { color: var(--muted); }
.scrap--sheet { background: #f3f8ec; }
.scrap--note { background: #fff6c9; rotate: -2deg; }
/* Going in: the cards slide together and fade into the one portal card. */
.scatter.is-merged .scrap { opacity: 0; transform: scale(.6); left: calc(50% - 115px) !important; top: 112px !important; transition: transform 1.2s var(--ease), opacity .8s, left 1.2s var(--ease), top 1.2s var(--ease); }
.scatter__one { position: absolute; left: 50%; top: 50%; width: min(520px, 92%); translate: -50% -50%; opacity: 0; transform: scale(.8); transition: opacity .3s, transform .4s cubic-bezier(.5, 0, .75, 0); }
.scatter.is-merged .scatter__one { opacity: 1; transform: none; transition: opacity .7s .6s, transform .9s .6s cubic-bezier(.3, 1.4, .5, 1); }

/* ── Product tour ─────────────────────────────────────────────────── */
.tour { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 40px; align-items: start; }
.tour__nav { position: sticky; top: 100px; display: grid; gap: 4px; }
.tour__dept { text-align: left; background: none; border: 0; padding: 14px 16px; border-radius: 14px; cursor: pointer; display: grid; gap: 2px; transition: background .25s, box-shadow .25s; position: relative; }
.tour__dept b { font: 800 19px var(--display); letter-spacing: -.01em; }
.tour__dept span { font-size: 14px; color: var(--muted); }
.tour__dept:hover { background: rgb(251 249 243 / .5); }
.tour__dept[aria-selected="true"] { background: var(--surface); box-shadow: 0 2px 0 var(--lip); }
.tour__dept[aria-selected="true"]::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; border-radius: 3px; background: var(--accent); width: var(--p, 0%); }
.tour__stage { min-width: 0; }
.tour__tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tour__tabs button { border: 0; background: rgb(251 249 243 / .6); border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: 14px; cursor: pointer; }
.tour__tabs button[aria-selected="true"] { background: var(--fg); color: var(--surface); }
.tour__cap { display: grid; grid-template-columns: 1fr auto; gap: 16px; margin-top: 18px; align-items: start; }
.tour__cap p { margin: 0; color: var(--fg-2); max-width: 46em; }

/* ── Platform features ────────────────────────────────────────────── */
.plat { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.tile { grid-column: span 4; background: var(--surface); border-radius: 22px; padding: 24px; box-shadow: 0 2px 0 var(--lip); display: flex; flex-direction: column; gap: 10px; min-height: 270px; overflow: hidden; position: relative; }
.tile--wide { grid-column: span 8; }
.tile--half { grid-column: span 6; }
.tile p { margin: 0; color: var(--fg-2); font-size: 15.5px; }
.tile__viz { margin-top: auto; padding-top: 12px; }
.sec--dark .tile { background: #24573e; box-shadow: 0 2px 0 #143a28; color: var(--accent-fg); }
.sec--dark .tile .h3 { color: var(--accent-fg); }
.sec--dark .tile p { color: #c9d6c0; }

/* role toggles */
.perm { display: grid; gap: 6px; font-size: 14px; }
.perm div { display: flex; justify-content: space-between; align-items: center; background: var(--surface-2); border-radius: 10px; padding: 8px 10px; }
.sw { width: 34px; height: 20px; border-radius: 99px; background: var(--border-strong); position: relative; transition: background .25s; flex: none; border: 0; cursor: pointer; padding: 0; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); box-shadow: 0 1px 2px rgb(0 0 0 / .2); }
.sw.on { background: var(--accent); }
.sw.on::after { transform: translateX(14px); }

/* audit log */
.audit { font: 13px/1.4 var(--mono); display: grid; gap: 6px; height: 170px; overflow: hidden; mask-image: linear-gradient(transparent, #000 30%); align-content: end; }
.audit div { display: grid; grid-template-columns: 46px 1fr; gap: 8px; background: rgb(255 255 255 / .06); padding: 7px 10px; border-radius: 8px; animation: toastIn .5s var(--ease) both; }
.tile .audit div { background: var(--surface-2); }
.sec--dark .tile .audit div { background: rgb(255 255 255 / .08); color: var(--accent-fg); }
.audit time { opacity: .6; }

/* brand swatches */
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches button { width: 34px; height: 34px; border-radius: 10px; border: 0; cursor: pointer; box-shadow: 0 2px 0 rgb(0 0 0 / .2); transition: transform .2s; }
.swatches button[aria-pressed="true"] { outline: 3px solid var(--fg); outline-offset: 2px; }
.swatches button:hover { transform: translateY(-2px); }


/* ── Integrations: everything orbits one place ────────────────────── */
.hub { position: relative; height: clamp(440px, 52vw, 660px); background: var(--surface); border-radius: clamp(24px, 3vw, 34px); box-shadow: 0 2px 0 var(--lip); overflow: hidden; isolation: isolate;
  background-image: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--hl) 22%, transparent), transparent 42%); }
.hub__ring { position: absolute; inset: 0; z-index: 1; pointer-events: none; animation: hubSpin var(--dur, 120s) linear infinite; }
.hub__ring::before { content: ""; position: absolute; left: 50%; top: 50%; width: calc(var(--r, 200px) * 2); height: calc(var(--r, 200px) * 2); translate: -50% -50%; border-radius: 50%; border: 1.5px dashed var(--border-strong); }
.hub__ring--1 { --dur: 80s; }
.hub__ring--2 { --dur: 120s; animation-direction: reverse; }
.hub__ring--3 { --dur: 170s; }
.hub__orb { pointer-events: auto; cursor: default; position: absolute; left: 50%; top: 50%; width: var(--s, 46px); height: var(--s, 46px); margin: calc(var(--s, 46px) / -2) 0 0 calc(var(--s, 46px) / -2); transform: rotate(var(--a)) translateX(var(--r, 200px)) rotate(calc(-1 * var(--a))); }
.hub__in { display: block; width: 100%; height: 100%; animation: hubSpin var(--dur, 120s) linear infinite reverse; transition: opacity .35s, scale .35s cubic-bezier(.3, 1.5, .5, 1); }
.hub__ring--2 .hub__in { animation-direction: normal; }
.hub__in img { width: 100%; height: 100%; border-radius: 28%; object-fit: cover; background: #fff; box-shadow: 0 8px 18px -8px rgb(40 35 20 / .45), 0 0 0 1px rgb(40 35 20 / .05); display: block; }
.hub__orb.is-hover .hub__in { scale: 1.18; }
.hub__tip { position: absolute; left: 0; top: 0; z-index: 10; white-space: nowrap; background: var(--fg); color: var(--accent-fg); font: 600 12.5px var(--text); padding: 7px 10px; border-radius: 9px; pointer-events: none; opacity: 0; translate: -50% calc(-100% - 10px); transition: opacity .18s; box-shadow: 0 10px 24px -10px rgb(0 0 0 / .45); }
.hub__tip.is-on { opacity: 1; }
.hub__tip b { color: var(--hl); font-weight: 600; }
.hub.is-filtered .hub__in { opacity: .18; scale: .82; }
.hub.is-filtered .hub__orb.is-hit .hub__in { opacity: 1; scale: 1.14; }
.hub.is-filtered .hub__orb.is-hit .hub__in img { box-shadow: 0 0 0 3px var(--hl), 0 10px 22px -8px rgb(40 35 20 / .5); }
.hub__core { position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 2; pointer-events: none; width: clamp(96px, 11vw, 150px); aspect-ratio: 1; }
.hub__core i { position: relative; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 24%; background: var(--accent); box-shadow: 8px 8px 0 var(--hl); }
.hub__core i svg { width: 78%; }
.hub__pulse, .hub__pulse::after { position: absolute; inset: 0; border-radius: 24%; border: 2px solid var(--accent); opacity: 0; animation: hubPulse 3.2s var(--ease) infinite; }
.hub__pulse::after { content: ""; inset: -2px; animation-delay: 1.6s; }
@keyframes hubSpin { to { rotate: 360deg; } }
@keyframes hubPulse { 0% { opacity: .5; scale: 1; } 100% { opacity: 0; scale: 2.2; } }
.hub__legend { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.hub__legend button { display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; padding: 9px 14px; border-radius: 999px; background: var(--surface); color: var(--fg); font: 600 14.5px var(--text); box-shadow: 0 2px 0 var(--lip); transition: background .2s, color .2s, transform .2s var(--ease); }
.hub__legend button span { font: 600 11.5px var(--mono); color: var(--muted); }
.hub__legend button:hover { transform: translateY(-2px); }
.hub__legend button[aria-pressed="true"] { background: var(--fg); color: var(--hl); }
.hub__legend button[aria-pressed="true"] span { color: var(--hl); }
.hub__more { margin: 16px 0 0; text-align: center; color: var(--fg-2); display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; }
/* The plain list: shown without JS, kept for screen readers with JS. */
.hub__list { list-style: none; margin: 0; padding: 8px 24px; background: var(--surface); border-radius: 22px; box-shadow: 0 2px 0 var(--lip); }
.hub__list li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--border-strong); }
.hub__list li:last-child { border: 0; }
.hub__list b { width: 200px; font: 800 17px var(--display); }
.hub__list span { display: inline-flex; align-items: center; gap: 7px; background: var(--surface-2); border-radius: 999px; padding: 4px 12px 4px 4px; font-weight: 600; font-size: 14px; }
.hub__list img { width: 24px; height: 24px; border-radius: 99px; object-fit: cover; background: #fff; }
.js .hub__list { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html:not(.js) .hub, html:not(.js) .hub__legend { display: none; }
@media (max-width: 760px) { .hub__orb { --s: 30px; } .hub__core { width: 84px; } .hub__core i { box-shadow: 5px 5px 0 var(--hl); } .hub__legend button { font-size: 13.5px; padding: 8px 12px; } }
@media (prefers-reduced-motion: reduce) { .hub__ring, .hub__in, .hub__pulse, .hub__pulse::after { animation: none !important; } }

/* ── Pointer glow on cards ───────────────────────────────────────── */
.glow { position: relative; isolation: isolate; }
.glow::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; opacity: 0; transition: opacity .35s; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--hl) 34%, transparent), transparent 70%); }
.glow:hover::before { opacity: 1; }
.sec--dark .glow::before, .layer:last-of-type.glow::before { background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgb(213 240 90 / .16), transparent 70%); }

/* ── Steps ────────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; position: relative; }
.step { background: var(--surface); border-radius: 22px; padding: 26px 24px; box-shadow: 0 2px 0 var(--lip); position: relative; }
.step__n { font: 800 64px/1 var(--display); color: var(--surface-3); letter-spacing: -.04em; -webkit-text-stroke: 1.5px var(--border-strong); display: inline-block; background: linear-gradient(var(--hl), var(--hl)) no-repeat 0 100% / 100% 0; -webkit-background-clip: text; background-clip: text; transition: background-size .9s var(--ease) .2s; }
.step.is-live .step__n { background-size: 100% 100%; color: transparent; }
.step:hover .step__n { transform: rotate(-4deg); transition: transform .3s var(--ease), background-size .9s var(--ease); }
.step h3 { margin: 18px 0 8px; }
.step p { margin: 0; color: var(--fg-2); font-size: 15.5px; }
.step__tag { display: inline-block; margin-top: 16px; font: 600 12px var(--mono); background: var(--up-bg); color: var(--up); padding: 4px 9px; border-radius: 7px; }

/* ── What we build: the layers of one system ───────────────────────── */
.stack { position: relative; display: grid; gap: 12px; padding-left: 64px; }
.stack__flow { position: absolute; left: 22px; top: 26px; bottom: 26px; width: 3px; border-radius: 3px; background: linear-gradient(var(--hl), var(--accent)); opacity: .55; }
.stack__flow i { position: absolute; left: 50%; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: var(--hl); box-shadow: 0 0 0 4px rgb(213 240 90 / .35); animation: stackFlow 3.6s var(--ease) infinite; }
@keyframes stackFlow { 0% { top: 100%; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: 0; opacity: 0; } }
.layer { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; margin-left: calc(var(--i) * 26px); background: var(--surface); border-radius: 22px; padding: 22px 26px; box-shadow: 0 2px 0 var(--lip); transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s; }
.layer::before { content: ""; position: absolute; left: calc(-64px - var(--i) * 26px + 16px); top: 50%; width: calc(48px + var(--i) * 26px - 16px); height: 2px; background: repeating-linear-gradient(90deg, var(--border-strong) 0 6px, transparent 6px 11px); }
.layer::after { content: ""; position: absolute; left: calc(-64px - var(--i) * 26px + 17px); top: 50%; width: 13px; height: 13px; margin-top: -6px; border-radius: 4px; background: var(--accent); box-shadow: 2px 2px 0 var(--hl); }
.layer:hover { transform: translateX(8px); box-shadow: 0 6px 0 var(--lip), 0 26px 44px -26px rgb(40 35 20 / .4); }
.layer:last-of-type { background: var(--accent); color: var(--accent-fg); box-shadow: 0 2px 0 var(--accent-deep); }
.layer:last-of-type .h3 { color: var(--accent-fg); }
.layer:last-of-type p { color: #c9d6c0; }
.layer:last-of-type .layer__n { background: var(--hl); color: var(--fg); }
.layer:last-of-type .layer__chips span { background: rgb(255 255 255 / .1); color: var(--accent-fg); }
.layer__n { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font: 800 16px var(--mono); background: var(--surface-3); color: var(--accent); }
.layer__body .h3 { font-size: clamp(20px, 1.8vw, 24px); }
.layer__body p { margin: 6px 0 0; color: var(--fg-2); font-size: 15.5px; max-width: 44em; }
.layer__chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; max-width: 300px; }
.layer__chips span { font: 600 12px var(--mono); padding: 6px 9px; border-radius: 8px; background: var(--surface-2); color: var(--fg-2); white-space: nowrap; }
.teams__head { margin-top: clamp(56px, 7vw, 96px); }
@media (max-width: 900px) {
  .stack { padding-left: 34px; }
  .stack__flow { left: 10px; }
  .layer { grid-template-columns: auto minmax(0, 1fr); margin-left: 0; padding: 18px; gap: 14px; }
  .layer::before { display: none; }
  .layer::after { left: -30px; }
  .layer__chips { grid-column: 1 / -1; justify-content: flex-start; max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .stack__flow i { animation: none; display: none; } }

/* ── Team cards ───────────────────────────────────────────────────── */
.insides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.inside { background: var(--surface); border-radius: 22px; padding: 26px 24px 18px; box-shadow: 0 2px 0 var(--lip); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.inside:hover { transform: translateY(-4px); box-shadow: 0 6px 0 var(--lip), 0 30px 50px -30px rgb(40 35 20 / .35); }
.inside__n { margin: 0 0 14px; font: 600 12px var(--mono); color: var(--muted); display: flex; align-items: center; gap: 10px; }
.inside__n::after { content: ""; flex: 1; height: 1px; background: var(--border-strong); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease) .3s; }
.insides.is-live .inside__n::after { transform: scaleX(1); }
.inside__sub { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.inside .feat { margin-top: 14px; }
.inside .feat li:last-child { border-bottom: 0; }
.feat { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 2px; }
.feat li { padding: 10px 0; border-bottom: 1px dashed var(--border-strong); font-size: 15px; color: var(--fg-2); }
.feat li b { color: var(--fg); font-weight: 700; display: block; font-size: 15.5px; }
/* ── FAQ ──────────────────────────────────────────────────────────── */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border-radius: 16px; box-shadow: 0 2px 0 var(--lip); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 22px; font: 700 18px var(--display); display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 26px/0.8 var(--text); transition: transform .3s var(--ease); color: var(--accent); }
.faq details[open]:not(.is-open) summary::after, .faq details.is-open summary::after { transform: rotate(45deg); }
.faq details { transition: box-shadow .3s var(--ease), background .3s; }
.faq details.is-open { box-shadow: inset 4px 0 0 var(--hl-deep), 0 2px 0 var(--lip); }
.faq summary { transition: color .2s; }
.faq summary:hover { color: var(--accent); }
.faq summary::after { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; flex: none; background: var(--surface-3); line-height: 1; transition: transform .4s var(--ease), background .3s; }
.faq details.is-open summary::after { background: var(--hl); }
.faq__a { overflow: hidden; }
.faq details p { margin: 0; padding: 0 22px 22px; color: var(--fg-2); max-width: 60em; }

/* ── Book ─────────────────────────────────────────────────────────── */
.book { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(28px, 4vw, 60px); align-items: start; }
.book__who { display: flex; gap: 14px; align-items: center; margin-top: 30px; }
.book__who img { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; box-shadow: 4px 4px 0 var(--hl); transition: transform .4s cubic-bezier(.3, 1.5, .5, 1), box-shadow .4s var(--ease); }
.book__who:hover img { transform: rotate(-4deg) scale(1.04); box-shadow: 6px 6px 0 var(--hl); }
.book__who b { display: block; }
.book__who span { color: #a9bca3; font-size: 15px; }
.book__list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.book__list li { display: flex; gap: 12px; color: #dfe8d6; }
.book__list li::before { content: "✓"; color: var(--hl); font-weight: 800; }
.book__alt { margin-top: 26px; color: #a9bca3; font-size: 15px; }
.book__alt a { color: var(--accent-fg); }
.book__cal { background: var(--surface); border-radius: 22px; min-height: 640px; overflow: hidden; box-shadow: 0 4px 0 #0f2c1e; }
.cal-inline { min-height: 640px; }

/* ── Legal pages ───────────────────────────────────────────────── */
.legal__hero { padding: clamp(56px, 8vw, 110px) 0 clamp(8px, 2vw, 20px); }
.legal__title { font-size: clamp(42px, 6vw, 80px); margin: 0 0 22px; }
.legal__meta { margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; justify-content: space-between; font: 500 13px var(--mono); color: var(--muted); }
.legal__tabs { display: inline-flex; gap: 6px; background: var(--surface); padding: 5px; border-radius: 999px; box-shadow: 0 2px 0 var(--lip); }
.legal__tabs a { padding: 9px 16px; border-radius: 999px; text-decoration: none; font: 600 14px var(--text); color: var(--fg-2); transition: background .2s, color .2s; }
.legal__tabs a:hover { background: var(--surface-3); }
.legal__tabs a[aria-current] { background: var(--accent); color: var(--accent-fg); }
.legal__summary { margin-top: 28px; background: var(--accent); color: var(--accent-fg); border-radius: 22px; padding: 22px 26px; box-shadow: 0 2px 0 var(--accent-deep); }
.legal__summary p { margin: 0 0 10px; font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--hl); }
.legal__summary ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; }
.legal__summary li { display: flex; gap: 10px; color: #dfe8d6; font-size: 15.5px; line-height: 1.5; }
.legal__summary li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--hl); flex: none; margin-top: 8px; }
@media (max-width: 760px) { .legal__summary ul { grid-template-columns: 1fr; } }
.legal__sec b { color: var(--fg); }
.legal__grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.legal__toc { position: sticky; top: 104px; display: grid; gap: 2px; }
.legal__toc p { margin: 0 0 10px; font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.legal__toc a { display: flex; gap: 10px; align-items: baseline; padding: 8px 12px; border-radius: 10px; text-decoration: none; font-size: 14.5px; color: var(--fg-2); transition: background .2s, color .2s; }
.legal__toc a span { font: 600 11.5px var(--mono); color: var(--muted); }
.legal__toc a:hover { background: var(--surface); }
.legal__toc a.is-here { background: var(--surface); color: var(--fg); box-shadow: inset 3px 0 0 var(--hl-deep); }
.legal__body { background: var(--surface); border-radius: clamp(22px, 3vw, 30px); box-shadow: 0 2px 0 var(--lip); padding: clamp(24px, 4vw, 52px); }
.legal__sec { scroll-margin-top: 28px; padding: 0 0 26px; margin: 0 0 26px; border-bottom: 1px dashed var(--border-strong); }
.legal__sec:last-of-type { border-bottom: 0; }
.legal__sec h2 { display: flex; gap: 12px; align-items: center; margin: 0 0 12px; font: 800 clamp(20px, 2vw, 24px) var(--display); letter-spacing: -.02em; }
.legal__sec h2 span { display: grid; place-items: center; min-width: 34px; height: 34px; border-radius: 10px; background: var(--surface-3); color: var(--accent); font: 700 12.5px var(--mono); }
.legal__sec p, .legal__sec li { margin: 0 0 10px; color: var(--fg-2); max-width: 44em; line-height: 1.65; }
.legal__sec ul { margin: 4px 0 10px; padding-left: 20px; }
.legal__sec a, .legal__contact a { color: var(--accent); text-underline-offset: 3px; }
.legal__contact { margin: 6px 0 0; padding: 18px 20px; border-radius: 16px; background: color-mix(in srgb, var(--hl) 28%, var(--surface)); }
@media (max-width: 900px) { .legal__grid { grid-template-columns: 1fr; } .legal__toc { display: none; } }

/* ── Footer ───────────────────────────────────────────────────────── */
.foot { padding: 70px 0 40px; }
.foot__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; }
.foot p { margin: 12px 0 0; color: var(--muted); font-size: 15px; max-width: 26em; }
.foot .foot__h { margin: 0 0 12px; font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.foot nav { display: grid; gap: 8px; }
.foot__contact a { display: inline-flex; align-items: center; gap: 10px; }
.foot__contact i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--surface); box-shadow: 0 2px 0 var(--lip); flex: none; transition: background .25s, transform .35s cubic-bezier(.3, 1.5, .5, 1); }
.foot__contact svg { width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.foot__contact svg.fill { fill: var(--accent); stroke: none; }
.foot__contact svg .dotfill { fill: var(--accent); stroke: none; }
.foot__contact a:hover { text-decoration: none; }
.foot__contact a:hover i { background: var(--hl); transform: rotate(-8deg) scale(1.08); }
.foot nav a, .foot nav button { text-decoration: none; font-size: 15px; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
.foot nav a:hover, .foot nav button:hover { text-decoration: underline; }
.foot__base { margin-top: 50px; padding-top: 20px; border-top: 1px solid var(--border-strong); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font: 500 13px var(--mono); color: var(--muted); }
.foot .foot__big { display: block; width: 100%; height: auto; margin: 60px 0 0; overflow: visible; user-select: none; }
.foot__big text { font: 900 120px var(--display); fill: var(--canvas-2); stroke: var(--border-strong); stroke-width: 2; paint-order: stroke; }
.foot__big .foot__hl { fill: color-mix(in srgb, var(--hl) 38%, var(--canvas-2)); stroke: color-mix(in srgb, var(--hl-deep) 70%, var(--border-strong)); }
.foot__sweep { transform-box: fill-box; transform-origin: left; transform: scaleX(0); transition: transform 1.8s var(--ease) .2s; }
.foot__big.is-live .foot__sweep { transform: scaleX(1); }

/* ── Consent banner (app.js toggles .is-hidden) ───────────────────── */
.consent-banner { position: fixed; z-index: 90; left: 16px; bottom: 16px; max-width: 420px; background: var(--fg); color: #eef0e6; border-radius: 18px; padding: 18px; box-shadow: 0 20px 40px -20px rgb(0 0 0 / .6); font-size: 14.5px; }
.consent-banner.is-hidden { display: none; }
.consent-banner__text { margin: 0 0 14px; }
.consent-banner a { color: var(--hl); }
.consent-banner__actions { display: flex; gap: 8px; justify-content: flex-end; }
.consent-btn { border: 0; border-radius: 10px; padding: 10px 16px; font-weight: 700; cursor: pointer; }
.consent-btn--decline { background: #34433a; color: #eef0e6; }
.consent-btn--accept { background: var(--hl); color: var(--fg); }

/* ════════════════════════════════════════════════════════════════════
   Portal recreation. Screens are laid out at a fixed virtual size and
   scaled to fit, so they look the same at any width.
   ════════════════════════════════════════════════════════════════════ */
.stage { position: relative; width: 100%; aspect-ratio: var(--ar, 1280 / 800); border-radius: 18px; overflow: hidden; background: var(--surface); box-shadow: var(--pop); isolation: isolate; }
.stage > .app { position: absolute; left: 0; top: 0; width: var(--vw, 1280px); height: var(--vh, 800px); transform: scale(var(--k, 1)); transform-origin: 0 0; }
.app { --a: var(--accent); --a-deep: var(--accent-deep); --a-soft: color-mix(in srgb, var(--a) 12%, var(--surface)); display: grid; grid-template-columns: 64px 1fr; grid-template-rows: 56px 1fr; background: var(--canvas); font: 400 14px/1.4 var(--text); color: var(--fg); overflow: hidden; text-align: left; }
.app * { transition-property: background, color, box-shadow, opacity, transform; transition-duration: .3s; }
.app__top { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 0 16px; }
.app__brand { display: flex; align-items: center; gap: 10px; font: 800 15px var(--display); width: 210px; }
.app__brand i svg { width: 100%; height: 100%; display: block; }
.app__brand i { width: 30px; height: 30px; border-radius: 9px; background: var(--a); display: grid; place-items: center; color: var(--accent-fg); font: 800 12px var(--display); font-style: normal; box-shadow: 3px 3px 0 var(--hl); }
.app__search { flex: 0 1 420px; margin-inline: auto; background: var(--surface); border-radius: 12px; padding: 9px 14px; color: var(--subtle); display: flex; justify-content: space-between; box-shadow: 0 1px 0 var(--lip); }
.app__search kbd { font: 600 11px var(--mono); background: var(--surface-3); padding: 2px 6px; border-radius: 5px; }
.app__me { display: flex; align-items: center; gap: 8px; background: var(--surface); padding: 5px 12px 5px 5px; border-radius: 99px; font-weight: 600; box-shadow: 0 1px 0 var(--lip); }
.app__bell { width: 34px; height: 34px; border-radius: 99px; background: var(--surface); display: grid; place-items: center; box-shadow: 0 1px 0 var(--lip); position: relative; }
.app__bell::after { content: ""; position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border-radius: 9px; background: var(--c3); opacity: var(--dot, 0); }
.av { width: 26px; height: 26px; border-radius: 99px; background: var(--a-soft); color: var(--a); display: inline-grid; place-items: center; font: 700 10px var(--mono); flex: none; }
.app__rail { display: grid; align-content: start; justify-items: center; gap: 6px; padding-top: 6px; }
.app__rail span { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: var(--muted); }
.app__rail span.on { background: var(--surface); color: var(--a); box-shadow: 0 1px 0 var(--lip); }
.app__rail svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app__main { background: var(--surface); border-radius: 20px 0 0 0; padding: 28px 32px; overflow: hidden; position: relative; box-shadow: 0 -1px 0 var(--lip); }
.app--bare { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.app--bare .app__main { border-radius: 0; }

.pg { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.pg h1 { margin: 0; font: 800 26px/1.1 var(--display); letter-spacing: -.02em; }
.pg p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 11px; padding: 3px; gap: 2px; box-shadow: inset 0 0 0 1px var(--border); }
.seg span { padding: 6px 11px; border-radius: 8px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.seg span.on { background: var(--surface); color: var(--fg); font-weight: 600; box-shadow: 0 1px 0 var(--lip); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.chips span { padding: 6px 12px; border-radius: 99px; background: var(--surface-2); font-size: 13px; box-shadow: inset 0 0 0 1px var(--border); white-space: nowrap; }
.chips span b { font: 600 11px var(--mono); color: var(--muted); margin-left: 6px; }
.chips span.on { background: var(--a); color: var(--accent-fg); box-shadow: none; }
.chips span.on b { color: var(--hl); }
.utabs { display: flex; gap: 20px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.utabs span { padding: 8px 0 10px; color: var(--muted); font-size: 13.5px; position: relative; white-space: nowrap; }
.utabs span b { font: 600 11px var(--mono); background: var(--surface-3); padding: 1px 6px; border-radius: 5px; margin-left: 6px; }
.utabs span.on { color: var(--fg); font-weight: 600; }
.utabs span.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--a); border-radius: 2px; }

.card { background: var(--surface); border-radius: 16px; box-shadow: inset 0 0 0 1px var(--border), 0 1px 0 var(--lip); overflow: hidden; }
.card__h { padding: 14px 18px; font: 700 15px var(--display); border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.card__h small { font: 500 12px var(--text); color: var(--muted); }
.card__b { padding: 16px 18px; }
.kpi small { color: var(--muted); font-size: 13px; display: block; }
.kpi strong { display: block; font: 800 30px/1.1 var(--display); letter-spacing: -.02em; margin: 6px 0 6px; }
.kpi--lg strong { font-size: 38px; }
.chip { display: inline-block; font: 600 11.5px/1 var(--mono); padding: 4px 7px; border-radius: 6px; white-space: nowrap; }
.chip.up { background: var(--up-bg); color: var(--up); }
.chip.dn { background: var(--down-bg); color: var(--down); }
.chip.wn { background: var(--warn-bg); color: var(--warn); }
.chip.nt { background: var(--surface-3); color: var(--muted); }
.chip.ac { background: var(--a-soft); color: var(--a); }
.chip.hl { background: var(--hl); color: var(--fg); }
.line { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 18px; border-top: 1px solid var(--border); font-size: 13.5px; }
.line span:last-child { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.line small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.g { display: grid; gap: 16px; }
.g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
.spark { width: 110px; height: 40px; }
.spark path, .chart path.ln { fill: none; stroke: var(--a); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.chart { width: 100%; display: block; overflow: visible; }
.chart .grid { stroke: var(--grid); stroke-width: 1; }
.chart path.cmp { fill: none; stroke: var(--c2); stroke-width: 2; stroke-dasharray: 5 5; }
.chart path.area { fill: color-mix(in srgb, var(--a) 10%, transparent); stroke: none; }
.chart text { font: 11px var(--text); fill: var(--muted); }
.draw { stroke-dasharray: var(--len, 2000); stroke-dashoffset: var(--len, 2000); }
.is-live .draw { animation: drawIn 1.8s var(--ease) forwards; }
@keyframes drawIn { to { stroke-dashoffset: 0; } }
.bar { height: 8px; background: var(--surface-3); border-radius: 9px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--a); border-radius: 9px; transition: width 1.4s var(--ease); }
.bar i.c3 { background: var(--c3); } .bar i.dn { background: var(--down); } .bar i.hl { background: var(--hl-deep); }

.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12.5px; padding: 10px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--surface-2); }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td small { display: block; color: var(--muted); font-size: 12px; }
.tbl .r { text-align: right; }
.tbl .who { display: flex; gap: 10px; align-items: center; }
.tbl tr.new { animation: rowIn .7s var(--ease) both; }
.tbl tr.new td { background: color-mix(in srgb, var(--hl) 30%, var(--surface)); }
@keyframes rowIn { from { opacity: 0; transform: translateY(-14px); } }
.b-sm { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 9px; font-weight: 600; font-size: 12.5px; background: var(--a); color: var(--accent-fg); box-shadow: 0 2px 0 var(--a-deep); white-space: nowrap; }
.b-sm.s { background: var(--surface); color: var(--fg); box-shadow: inset 0 0 0 1px var(--border-strong), 0 2px 0 var(--lip); }
.b-sm.d { background: var(--down); box-shadow: 0 2px 0 #6e2210; }
.b-sm.pressed { transform: translateY(2px); box-shadow: none; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 9px; background: var(--up); margin-right: 6px; }
.perm [data-job] .dot { transition: background .3s; box-shadow: 0 0 0 0 rgb(51 96 26 / .5); animation: jobPulse 2.4s infinite; }
.perm [data-job].is-off .dot { background: var(--subtle); animation: none; }
.job__state { font: 600 11px var(--mono); font-style: normal; color: var(--up); background: var(--up-bg); padding: 2px 7px; border-radius: 6px; margin-left: 8px; transition: color .3s, background .3s; }
.perm [data-job].is-off .job__state { color: var(--muted); background: var(--surface-3); }
.perm [data-job].is-off > span { color: var(--muted); }
@keyframes jobPulse { 0% { box-shadow: 0 0 0 0 rgb(51 96 26 / .5); } 70% { box-shadow: 0 0 0 6px rgb(51 96 26 / 0); } 100% { box-shadow: 0 0 0 0 rgb(51 96 26 / 0); } }
.dot.dn { background: var(--down); } .dot.wn { background: var(--c6); } .dot.nt { background: var(--subtle); }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.warnbox { background: var(--warn-bg); color: var(--warn); border-radius: 12px; padding: 10px 14px; font-size: 13px; margin-bottom: 14px; }

/* kanban */
.kb { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-items: start; }
.kb__col { background: var(--surface-2); border-radius: 14px; padding: 10px; min-height: 520px; box-shadow: inset 0 0 0 1px var(--border); }
.kb__col h6 { margin: 2px 4px 10px; font: 700 13px var(--display); display: flex; justify-content: space-between; }
.kb__col h6.dn { color: var(--down); }
.kb__card { background: var(--surface); border-radius: 12px; padding: 11px 12px; margin-bottom: 8px; box-shadow: inset 0 0 0 1px var(--border), 0 1px 0 var(--lip); font-size: 13px; position: relative; }
.kb__card b { display: block; font-size: 13.5px; }
.kb__card .tags { display: flex; gap: 5px; flex-wrap: wrap; margin: 7px 0; }
.kb__card .dot { position: absolute; right: 10px; top: 14px; }
.kb__card.lift { box-shadow: 0 20px 30px -14px rgb(40 35 20 / .45), inset 0 0 0 2px var(--a); rotate: -2deg; z-index: 5; }

/* inbox */
.ibx { display: grid; grid-template-columns: 280px 1fr 250px; height: 610px; border-radius: 16px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--border); }
.ibx__list { border-right: 1px solid var(--border); overflow: hidden; }
.ibx__item { padding: 11px 14px; border-bottom: 1px solid var(--border); font-size: 13px; }
.ibx__item.on { background: var(--a-soft); box-shadow: inset 3px 0 0 var(--a); }
.ibx__item b { display: flex; justify-content: space-between; font-size: 13.5px; }
.ibx__item b small { font-weight: 400; color: var(--muted); }
.ibx__item p { margin: 4px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.ibx__thread { display: flex; flex-direction: column; background: var(--surface-2); }
.ibx__thread header { padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--border); }
.ibx__msgs { flex: 1; padding: 16px; display: grid; align-content: start; gap: 10px; }
.msg { background: var(--surface); border-radius: 12px; padding: 10px 12px; max-width: 78%; font-size: 13px; box-shadow: 0 1px 0 var(--lip); }
.msg.me { justify-self: end; background: var(--a); color: var(--accent-fg); }
.msg small { display: block; color: var(--muted); font-size: 11.5px; margin-bottom: 3px; }
.msg.me small { color: #b9cdb1; }
.ibx__compose { margin: 0 14px 14px; background: var(--surface); border-radius: 12px; padding: 10px 12px; min-height: 92px; box-shadow: inset 0 0 0 1px var(--border-strong); font-size: 13px; position: relative; }
.ibx__compose .ai { font: 600 11px var(--mono); color: var(--a); margin-bottom: 4px; display: block; }
.ibx__side { padding: 14px; font-size: 13px; display: grid; align-content: start; gap: 14px; }
.ibx__side h6 { margin: 0 0 4px; font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* countdown */
.cd { display: flex; gap: 8px; }
.cd div { background: var(--surface-2); border-radius: 12px; padding: 8px 12px; text-align: center; min-width: 64px; box-shadow: inset 0 0 0 1px var(--border); }
.cd b { display: block; font: 800 26px var(--display); }
.cd small { font: 600 10px var(--mono); color: var(--muted); }

/* timeline (promotions) */
.tl { position: relative; height: 110px; background: var(--surface-2); border-radius: 12px; margin: 10px 0; }
.tl i { position: absolute; height: 9px; border-radius: 9px; transform-origin: left; animation: grow 1s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } }
.tl .now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--fg); }


/* fake cursor */
.cur { position: absolute; z-index: 20; left: 0; top: 0; width: 22px; height: 22px; pointer-events: none; transition: transform .9s cubic-bezier(.5, 0, .2, 1); opacity: 0; }
.cur.on { opacity: 1; }
.cur svg { width: 22px; height: 22px; filter: drop-shadow(0 2px 2px rgb(0 0 0 / .3)); }
.cur::after { content: ""; position: absolute; left: -9px; top: -9px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--hl-deep); opacity: 0; transform: scale(.3); }
.cur.click::after { animation: ping .5s ease-out; }
@keyframes ping { 0% { opacity: 1; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.6); } }
.app .hot { box-shadow: 0 0 0 3px color-mix(in srgb, var(--hl) 80%, transparent) !important; }

/* dark preview of the app (platform tile) */
.app.dk { --canvas: #121713; --surface: #1a201b; --surface-2: #1f2620; --surface-3: #262e27; --border: #2c352d; --border-strong: #3a453b; --lip: #0b0e0b; --fg: #eef0e6; --fg-2: #cdd3c4; --muted: #98a092; --subtle: #6c7468; --grid: #262e27; --a: #9cc98a; --a-deep: #5d8a4c; --accent-fg: #0f1a12; --up-bg: rgb(143 179 58 / .18); --up: #b8dc7c; --down-bg: rgb(217 119 74 / .18); --down: #f0a07a; }

/* screens-b */
.line.done b { text-decoration: line-through; color: var(--muted); }
.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: 420px; background: var(--surface); box-shadow: -30px 0 60px -30px rgb(40 35 20 / .45), inset 1px 0 0 var(--border); padding: 24px; transform: translateX(105%); transition: transform .6s var(--ease); overflow: hidden; font-size: 13.5px; }
.drawer.open { transform: none; }
.mini { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; }
.mini small { display: block; color: var(--muted); font-size: 12px; }
.mini b { font: 800 20px var(--display); }
.tline { display: grid; gap: 10px; margin-top: 8px; border-left: 2px solid var(--border); padding-left: 14px; }
.tline div { display: grid; position: relative; }
.tline div::before { content: ""; position: absolute; left: -20px; top: 4px; width: 10px; height: 10px; border-radius: 9px; background: var(--a); box-shadow: 0 0 0 3px var(--surface); }
.flagged { background: var(--down-bg); color: var(--down); border-radius: 4px; padding: 1px 3px; box-shadow: 0 0 0 2px var(--down-bg); font-weight: 600; }
.card__b:has(.cal) { position: relative; }
.line.sel { background: var(--a-soft); box-shadow: inset 3px 0 0 var(--a); }
.app__bell svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tl i { height: 12px; }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .hero__grid, .book, .tour { grid-template-columns: 1fr; }
  .tour__nav { position: static; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; scrollbar-width: none; }
  .tour__dept { flex: none; padding: 10px 14px; }
  .tour__dept span { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile--wide, .tile--half { grid-column: span 6; }
  .plat > .tile:last-child { grid-column: 1 / -1; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .float--b { left: -8px; } .float--a { right: -6px; }
}
/* The full nav needs about 1000px; below that it folds into the Menu button. */
@media (max-width: 1000px) {
  .nav__links, .nav .btn { display: none; }
  .nav__menu { display: block; }
  .nav.is-open .nav__in { flex-wrap: wrap; border-radius: 22px; }
  .nav.is-open .nav__links { display: grid; width: 100%; order: 3; padding: 8px 0 4px; }
  .nav.is-open .btn { display: inline-flex; order: 4; width: 100%; justify-content: center; margin-bottom: 4px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .sec__head, .insides, .steps { grid-template-columns: 1fr; }
  .sec__head .copy { justify-self: start; }
  .tile, .tile--wide, .tile--half { grid-column: 1 / -1; min-height: 0; }
  .float { width: 200px; font-size: 12.5px; padding: 10px 12px; }
  .float--b { display: none; }
  .toasts { width: 210px; right: 8px; top: 40px; }
  .toast { font-size: 12px; }
  .scatter { height: 440px; }
  .foot__grid { grid-template-columns: 1fr; }
  .book__cal, .cal-inline { min-height: 560px; }
  .tour__cap { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-r] { opacity: 1; transform: none; }
  .draw { stroke-dashoffset: 0; }
}
