/* Critical AI — Giallo surface, carbon-black panels, cyber HUD detailing */
:root {
  --giallo: #FFC20E;
  --giallo-hi: #FFD84D;
  --giallo-lo: #EBA600;
  --carbon: #0A0A0A;
  --carbon-2: #121213;
  --ok: #3DDC97;

  /* Default scope = yellow surface */
  --fg: #0A0A0A;
  --muted: rgba(10, 10, 10, .72);
  --dim: rgba(10, 10, 10, .5);
  --line: rgba(10, 10, 10, .14);
  --accent: #0A0A0A;
  --on-accent: #FFC20E;
  --spot: rgba(255, 255, 255, .35);

  --r: 22px;
  --r-sm: 12px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --head: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --gutter: max(16px, (100vw - 1240px) / 2);
}
.dark, .ink {
  --fg: #F4F4F2;
  --muted: #A8A8AD;
  --dim: #6F6F75;
  --line: rgba(255, 255, 255, .1);
  --accent: #FFC20E;
  --on-accent: #0A0A0A;
  --spot: rgba(255, 194, 14, .12);
  color: var(--fg);
}
.dark { background: var(--carbon); }
.ink { background: linear-gradient(180deg, #141415, #0B0B0B); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; overflow-x: clip; }
body {
  margin: 0; color: var(--fg); font: 400 16px/1.65 var(--body);
  background: var(--giallo); -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
/* width/height attributes reserve space; height:auto keeps the real aspect ratio when CSS sets a width */
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--head); margin: 0; font-weight: 600; letter-spacing: -.035em; line-height: 1.02; }
h2 { font-size: clamp(2.3rem, 5.2vw, 4.2rem); }
h3 { font-size: 1.3rem; letter-spacing: -.015em; line-height: 1.2; }
p { margin: 0; }
.mono { font-family: var(--mono); letter-spacing: .04em; }
.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
.grad { background: linear-gradient(100deg, var(--giallo-hi), var(--giallo) 45%, var(--giallo-lo)); -webkit-background-clip: text; background-clip: text; color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--carbon); color: var(--giallo); padding: .6rem 1rem; border-radius: 8px; }
.skip:focus { left: 16px; }
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .07; mix-blend-mode: multiply;
  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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 50px; padding: 0 1.55rem; border: 0; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font: 600 .96rem var(--head); white-space: nowrap;
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .55);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .6); }
.btn:disabled, .btn:disabled:hover { opacity: .42; transform: none; box-shadow: none; cursor: not-allowed; }
.btn-ink { background: var(--carbon); color: var(--giallo); }
.btn-line { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--fg); }
.btn-line:hover { background: var(--fg); color: var(--giallo); box-shadow: none; }
.btn-sm { min-height: 42px; padding: 0 1.15rem; font-size: .88rem; }
.glass {
  background: linear-gradient(160deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, .16));
  border: 1px solid rgba(255, 255, 255, .55); box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 20px 40px -24px rgba(90, 60, 0, .45);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
}

/* ---------- Nav ---------- */
.nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 60; display: flex; justify-content: center; padding: 0 16px; }
.nav-pill {
  width: min(1240px, 100%); display: flex; align-items: center; gap: 1.5rem; padding: 7px 7px 7px 8px; border-radius: 999px;
  border: 1px solid transparent; transition: background .4s, border-color .4s, box-shadow .4s;
}
.nav.scrolled .nav-pill {
  background: rgba(255, 214, 80, .55); border-color: rgba(255, 255, 255, .5);
  box-shadow: 0 10px 40px -16px rgba(90, 60, 0, .5); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
}
.nav.on-dark .nav-pill { background: rgba(14, 14, 15, .75); border-color: rgba(255, 255, 255, .08); color: #F4F4F2; }
.nav.on-dark .brand-sub { color: #6F6F75; }
.nav.on-dark .nav-cta { background: var(--giallo); color: var(--carbon); }
.brand { display: flex; align-items: center; gap: .7rem; }
.badge { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--carbon); box-shadow: 0 0 0 1px rgba(255, 194, 14, .3) inset; }
.badge img { width: 32px; height: 32px; }
.brand-text { display: grid; line-height: 1.1; }
.brand-name { font: 700 1.08rem var(--head); letter-spacing: .08em; }
.brand-name b { margin-left: .25em; padding: 0 .3em; background: var(--carbon); color: var(--giallo); border-radius: 4px; }
.dark .brand-name b, .nav.on-dark .brand-name b { background: var(--giallo); color: var(--carbon); }
.brand-sub { font: 500 .6rem var(--mono); letter-spacing: .14em; color: var(--dim); }
.nav-links { display: flex; gap: .2rem; margin-left: auto; }
.nav-links a { padding: .55rem .9rem; border-radius: 999px; font-size: .9rem; font-weight: 500; color: var(--muted); transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--fg); background: rgba(255, 255, 255, .35); }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; padding: 0; border: 0; background: var(--carbon); }
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--giallo); margin: 5px auto; transition: transform .3s var(--ease); }

/* ---------- Flight hero ---------- */
.flight { position: relative; height: 460vh; }
.stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; z-index: 2;
  background:
    radial-gradient(70% 60% at 20% 10%, #FFE27A 0%, transparent 60%),
    radial-gradient(60% 60% at 100% 100%, #F0A800 0%, transparent 60%),
    var(--giallo);
  --bx: 70%; --by: 50%;
}
.fx-hex {
  position: absolute; inset: -10%; z-index: -3; opacity: .55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0l28 16v32L28 64 0 48V16zM28 64v33' fill='none' stroke='%230A0A0A' stroke-opacity='.16'/%3E%3C/svg%3E");
  mask-image: radial-gradient(30% 40% at var(--bx) var(--by), #000 0%, rgba(0, 0, 0, .25) 55%, transparent 100%);
  -webkit-mask-image: radial-gradient(30% 40% at var(--bx) var(--by), #000 0%, rgba(0, 0, 0, .25) 55%, transparent 100%);
  transform: translateY(calc(var(--prog, 0) * -120px));
}
.fx-light { position: absolute; inset: 0; z-index: -2; background: radial-gradient(28% 34% at var(--bx) var(--by), rgba(255, 255, 255, .55), transparent 70%); }
.mega {
  position: absolute; top: 50%; left: 0; z-index: -1; white-space: nowrap; pointer-events: none;
  font: 700 clamp(7rem, 22vw, 24rem)/.8 var(--head); letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(10, 10, 10, .13);
  transform: translate3d(var(--mx, 0), -50%, 0);
}

.rig {
  position: absolute; left: 50%; top: 50%; z-index: 3;
  width: min(62vmin, 640px); aspect-ratio: 1; margin: calc(min(62vmin, 640px) / -2) 0 0 calc(min(62vmin, 640px) / -2);
  will-change: transform; pointer-events: none;
}
.tilt { position: absolute; inset: 0; transform-style: preserve-3d; transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease); }
.b {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 40px 50px rgba(80, 45, 0, .45)) drop-shadow(0 8px 14px rgba(0, 0, 0, .25));
  animation: bob 4.6s ease-in-out infinite; will-change: opacity, transform;
}
.b-top { opacity: var(--o-top, 1); }
.b-side { opacity: var(--o-side, 0); }
/* live hover video replaces the still once its first frame is drawn */
.b-vid { visibility: hidden; scale: .96; }
.rig.live img.b-side { visibility: hidden; }
.rig.live .b-vid { visibility: visible; }
.b-alt { opacity: var(--o-alt, 0); }
/* VET bee: the same flapping loop, mirrored, standing in for the alt pose so this bee
   never freezes while the other two in the sequence are animating. */
.b-vid-alt { visibility: hidden; scale: -.96 .96; }
.rig.live-alt img.b-alt { visibility: hidden; }
.rig.live-alt .b-vid-alt { visibility: visible; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
.shadow { position: absolute; left: 20%; right: 20%; bottom: -6%; height: 9%; border-radius: 50%; background: radial-gradient(closest-side, rgba(70, 40, 0, .35), transparent); filter: blur(6px); opacity: var(--o-shadow, .6); }
.reticle { position: absolute; inset: -6%; opacity: var(--o-ret, 0); transition: opacity .3s; }
.rt-ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed rgba(10, 10, 10, .35); animation: spin 18s linear infinite; }
.rt-ring.r2 { inset: 9%; border: 1px solid rgba(10, 10, 10, .2); animation-direction: reverse; animation-duration: 30s; }
.rt-corner { position: absolute; width: 34px; height: 34px; border: 2.5px solid var(--carbon); }
.c1 { top: 4%; left: 4%; border-right: 0; border-bottom: 0; } .c2 { top: 4%; right: 4%; border-left: 0; border-bottom: 0; }
.c3 { bottom: 4%; left: 4%; border-right: 0; border-top: 0; } .c4 { bottom: 4%; right: 4%; border-left: 0; border-top: 0; }
.rt-label { position: absolute; top: -2%; left: 50%; translate: -50% 0; font-size: .66rem; font-weight: 600; background: var(--carbon); color: var(--giallo); padding: .25rem .6rem; border-radius: 4px; }
@keyframes spin { to { transform: rotate(360deg); } }

.minis { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.mini { position: absolute; left: 50%; top: 50%; width: clamp(34px, 4.6vmin, 60px); margin: calc(clamp(34px, 4.6vmin, 60px) / -2); opacity: 0; will-change: transform, opacity; filter: drop-shadow(0 8px 8px rgba(70, 40, 0, .35)); }

.ch { position: absolute; z-index: 4; top: 50%; width: min(600px, 44vw); opacity: 0; will-change: transform, opacity, filter; }
.ch-1 { left: var(--gutter); }
.ch-2 { right: var(--gutter); width: min(470px, 38vw); }
.ch-3 { left: var(--gutter); width: min(480px, 40vw); }
.ch-4 { left: 50%; top: 66%; width: min(760px, 92vw); text-align: center; display: grid; justify-items: center; gap: 1.6rem; }
.ch h1 { font-size: clamp(2.9rem, 6.4vw, 6rem); letter-spacing: -.05em; line-height: .95; margin: 1.6rem 0 1.4rem; }
.ch h2 { font-size: clamp(3.2rem, 7.5vw, 7rem); letter-spacing: -.055em; line-height: .9; margin: 1rem 0 1.3rem; }
.ch-4 h2 { margin: 0; }
.lead, .ch-p { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--muted); max-width: 34rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.1rem; }
.ch-k { display: inline-flex; align-items: center; gap: .6rem; font-size: .76rem; font-weight: 600; }
.ch-k span { background: var(--carbon); color: var(--giallo); padding: .2rem .5rem; border-radius: 4px; }
.status {
  display: inline-flex; align-items: center; gap: .7rem; padding: .45rem 1rem .45rem .75rem; border-radius: 999px; font-size: .85rem; font-weight: 500;
  background: rgba(255, 255, 255, .35); border: 1px solid rgba(255, 255, 255, .6); backdrop-filter: blur(10px);
}
.status .mono { font-size: .7rem; font-weight: 600; white-space: nowrap; }
.status-sep { width: 1px; height: 14px; background: var(--line); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--carbon); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(10, 10, 10, .5); } 70%, 100% { box-shadow: 0 0 0 10px rgba(10, 10, 10, 0); } }

.hud { margin-top: 2rem; border-radius: 18px; padding: 1.2rem 1.3rem; width: min(340px, 100%); box-shadow: 0 30px 60px -24px rgba(60, 35, 0, .6); }
.hud-top { display: flex; justify-content: space-between; font-size: .66rem; color: var(--dim); }
.hud-live { display: inline-flex; align-items: center; gap: .4rem; color: var(--ok); }
.hud-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); animation: blink 1.2s steps(1) infinite; }
.hud-big { display: flex; align-items: baseline; gap: .6rem; margin: .7rem 0 .8rem; }
.hud-big span { font: 600 2.6rem/1 var(--head); color: var(--giallo); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hud-big small { font-size: .7rem; color: var(--muted); }
.bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--giallo-lo), var(--giallo-hi)); }
.hud-foot { margin-top: .8rem; font-size: .58rem; color: var(--dim); }
.vet { list-style: none; margin: 1.8rem 0 0; padding: .5rem; border-radius: 18px; width: min(400px, 100%); box-shadow: 0 30px 60px -24px rgba(60, 35, 0, .6); }
.vet li { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem .8rem; font-size: .74rem; color: var(--muted); border-bottom: 1px solid var(--line); opacity: var(--lo, 1); transform: translateX(var(--lx, 0)); transition: opacity .4s, transform .4s var(--ease); }
.vet li:last-child { border-bottom: 0; }
.vet b { color: var(--ok); font-weight: 600; white-space: nowrap; }

.rail { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); z-index: 5; display: flex; gap: .9rem; align-items: stretch; font-size: .62rem; font-weight: 600; }
.rail-track { width: 2px; background: rgba(10, 10, 10, .15); border-radius: 2px; position: relative; overflow: hidden; }
.rail-track i { position: absolute; left: 0; top: 0; width: 100%; height: calc(var(--prog, 0) * 100%); background: var(--carbon); }
.rail ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; }
.rail li { color: rgba(10, 10, 10, .38); transition: color .3s; }
.rail li.on { color: var(--carbon); }
.cue { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; z-index: 5; display: grid; justify-items: center; gap: .6rem; font-size: .64rem; font-weight: 600; transition: opacity .4s; }
.cue span { width: 22px; height: 36px; border: 1.5px solid var(--carbon); border-radius: 12px; position: relative; }
.cue span::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--carbon); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 80%, 100% { transform: translateY(12px); opacity: 0; } }
.split .w { display: inline-block; opacity: 0; transform: translateY(.45em); filter: blur(8px); animation: word .9s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms + .2s); }
@keyframes word { to { opacity: 1; transform: none; filter: none; } }

/* ---------- Ticker ---------- */
.ticker { display: flex; align-items: center; gap: 1.5rem; padding: 1.15rem 0; position: relative; z-index: 2; }
.ticker-label { flex: none; padding-left: var(--gutter); font-size: .7rem; color: var(--giallo); font-weight: 600; }
.ticker-mask { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.ticker-track span { padding: 0 1.6rem; font-size: .88rem; color: var(--fg); white-space: nowrap; position: relative; }
.ticker-track span::after { content: ""; position: absolute; right: -3px; top: 50%; width: 6px; height: 6px; background: var(--giallo); transform: translateY(-50%) rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }
.avatar-ticker { padding: 2.4rem 0; }
.ticker-track .av { padding: 0 .55rem; display: flex; align-items: center; }
.ticker-track .av::after { content: none; }
.ticker-track .av img { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; display: block; border: 2px solid rgba(255, 194, 14, .45); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .65); transition: transform .25s var(--ease), border-color .25s; }
.ticker-track .av:hover img { transform: translateY(-4px) scale(1.07); border-color: var(--giallo); }
@media (max-width: 640px) { .ticker-track .av img { width: 48px; height: 48px; } }

/* ---------- Sections ---------- */
.section { padding: clamp(5rem, 11vw, 9rem) 0; position: relative; }
/* clip (not hidden) keeps decorative overflow out without breaking position: sticky */
main > section, .footer { overflow-x: clip; }
.section-tight { padding-top: 2rem; }
.carbon {
  background:
    radial-gradient(60% 50% at 85% 0%, rgba(255, 194, 14, .1), transparent 60%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .015) 0 2px, transparent 2px 6px),
    var(--carbon);
}
.head { max-width: 52rem; margin-bottom: 3.6rem; }
.head-row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; }
.head-row .sub { max-width: 26rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .7rem; font-size: .74rem; font-weight: 600; text-transform: uppercase; margin-bottom: 1.3rem; color: var(--fg); }
.eyebrow span { background: var(--accent); color: var(--on-accent); padding: .22rem .5rem; border-radius: 4px; }
.sub { color: var(--muted); font-size: 1.1rem; margin-top: 1.3rem; max-width: 40rem; }

.spot { position: relative; overflow: hidden; }
.spot::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s; z-index: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--spot), transparent 45%);
}
.spot:hover::before { opacity: 1; }
.spot > * { position: relative; z-index: 1; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.tile { border-radius: var(--r); padding: 1.8rem; border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.tile:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(60, 35, 0, .6); }
.tile.ink { box-shadow: 0 30px 60px -36px rgba(60, 35, 0, .7); }
.tile-lg { grid-column: span 2; min-height: 400px; display: flex; flex-direction: column; padding: 2.3rem; }
.tile-ai { background: radial-gradient(80% 80% at 100% 100%, rgba(255, 194, 14, .2), transparent 60%), linear-gradient(180deg, #141415, #0B0B0B); }
.tile-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: auto; }
.tile-idx { font-size: .7rem; font-weight: 600; color: var(--accent); }
.tile-ico { width: 46px; height: 46px; padding: 11px; border-radius: 12px; background: rgba(255, 194, 14, .1); border: 1px solid rgba(255, 194, 14, .3); fill: none; stroke: var(--giallo); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tile h3 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); margin: 3rem 0 .8rem; letter-spacing: -.035em; }
.tile-sm h3 { font-size: 1.4rem; margin: 2.4rem 0 .5rem; }
.tile p { color: var(--muted); max-width: 32rem; }
.tile-sm p { font-size: .95rem; }
.tags { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: .45rem; max-width: 78%; }
.tags li { font-size: .7rem; padding: .38rem .68rem; border-radius: 6px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.tile-person { display: flex; align-items: center; gap: .55rem; margin-top: .9rem; font-size: .78rem; color: var(--muted); position: relative; z-index: 1; }
.tile-avatar { width: 38px; height: 38px; border-radius: 50%; padding: 2px; background: conic-gradient(var(--giallo), rgba(255, 194, 14, .25), var(--giallo)); flex: none; display: grid; }
.tile-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid var(--carbon); display: block; }
.tile-bee { position: absolute !important; width: clamp(150px, 34%, 230px); aspect-ratio: 1; object-fit: contain; right: 1.4rem; top: 1.6rem; transform: rotate(-8deg); transition: transform .9s var(--ease); pointer-events: none; z-index: 0 !important; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .55)) drop-shadow(0 0 30px rgba(255, 194, 14, .2)); }
.tile-ai:hover .tile-bee { transform: rotate(-2deg) translateY(-8px) scale(1.04); }
.tile-ai .tile-top { padding-right: clamp(150px, 34%, 230px); }
.tile-ai h3, .tile-ai > p { max-width: 62%; }

/* ---------- Roles radar ---------- */
.radar { border-radius: calc(var(--r) + 6px); overflow: hidden; box-shadow: 0 40px 80px -40px rgba(60, 35, 0, .8); }
.tabs { display: flex; gap: .3rem; padding: .55rem; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; background: none; border: 0; padding: .7rem 1.1rem; border-radius: 12px; min-height: 44px; font-weight: 500; font-size: .92rem; color: var(--muted); transition: color .2s, background .2s; }
.tabs button:hover { color: var(--fg); background: rgba(255, 255, 255, .05); }
.tabs button[aria-selected="true"] { color: var(--carbon); background: var(--giallo); }
.radar-body { display: grid; grid-template-columns: 380px 1fr; min-height: 440px; }
.radar-viz {
  position: relative; margin: 2.4rem; aspect-ratio: 1; border-radius: 50%; align-self: center;
  background:
    radial-gradient(circle, transparent 24%, rgba(255, 194, 14, .16) 24.5%, transparent 25%),
    radial-gradient(circle, transparent 49%, rgba(255, 194, 14, .16) 49.5%, transparent 50%),
    radial-gradient(circle, transparent 74%, rgba(255, 194, 14, .16) 74.5%, transparent 75%),
    linear-gradient(rgba(255, 194, 14, .12), rgba(255, 194, 14, .12)) center / 1px 100% no-repeat,
    linear-gradient(90deg, rgba(255, 194, 14, .12), rgba(255, 194, 14, .12)) center / 100% 1px no-repeat,
    radial-gradient(circle, rgba(255, 194, 14, .06), transparent 70%);
  border: 1px solid rgba(255, 194, 14, .28);
}
.sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 75%, rgba(255, 194, 14, .4) 100%); animation: spin 4s linear infinite; }
.blip { position: absolute; left: var(--x); top: var(--y); width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: var(--giallo); box-shadow: 0 0 12px var(--giallo); animation: blip 4s ease-out infinite; animation-delay: var(--d, 0s); }
@keyframes blip { 0%, 100% { opacity: .15; transform: scale(.6); } 10% { opacity: 1; transform: scale(1.3); } 40% { opacity: .5; transform: scale(1); } }
.radar-bee { position: absolute; left: 50%; top: 50%; width: 22%; translate: -50% -50%; filter: drop-shadow(0 0 16px rgba(255, 194, 14, .5)); }
.panel { padding: 2.6rem 2.6rem 2.6rem 1rem; }
.panel-k { font-size: .7rem; color: var(--giallo); font-weight: 600; }
.panel h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: .8rem 0 1.7rem; letter-spacing: -.04em; }
.role-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.role-list li {
  display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .95rem 1.1rem; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: rgba(255, 255, 255, .025); font-weight: 500;
  animation: rise .5s var(--ease) both; animation-delay: calc(var(--i) * 45ms); transition: border-color .2s, background .2s;
}
.role-list li:hover { border-color: rgba(255, 194, 14, .5); background: rgba(255, 194, 14, .08); }
.role-list li span { font: 500 .62rem var(--mono); color: var(--dim); letter-spacing: .06em; white-space: nowrap; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Hive ---------- */
.hive { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.hive .head { margin-bottom: 2.4rem; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; position: relative; }
.steps::before { content: ""; position: absolute; left: 21px; top: 20px; bottom: 20px; width: 1px; background: linear-gradient(var(--giallo), rgba(255, 194, 14, .05)); }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 1.2rem; padding: 1rem 0; }
.step > span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--carbon); border: 1px solid rgba(255, 194, 14, .45); color: var(--giallo); font-size: .78rem; position: relative; }
.step h3 { margin-bottom: .3rem; }
.step p { color: var(--muted); font-size: .97rem; }
.terminal { position: sticky; top: 110px; border-radius: var(--r); border: 1px solid rgba(255, 255, 255, .12); background: #08080A; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 90px -30px rgba(255, 194, 14, .25); }
.term-bar { display: flex; align-items: center; gap: .45rem; padding: .85rem 1rem; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.term-bar > span { width: 11px; height: 11px; border-radius: 50%; background: #2a2a2e; }
.term-bar > span:first-child { background: var(--giallo); }
.term-bar p { margin-left: .6rem; font-size: .72rem; color: var(--dim); }
.term-body { margin: 0; padding: 1.4rem 1.4rem .6rem; min-height: 430px; font-size: .8rem; line-height: 1.8; color: var(--muted); white-space: pre-wrap; word-break: break-word; }
.c-y { color: var(--giallo); } .c-ok { color: var(--ok); } .c-d { color: var(--dim); } .c-w { color: var(--fg); }
.cursor { display: inline-block; width: .55em; height: 1.1em; background: var(--giallo); vertical-align: -.2em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.term-note { padding: 0 1.4rem 1.1rem; font-size: .62rem; color: var(--dim); }

/* ---------- Advisory cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.card { border-radius: var(--r); padding: 1.9rem; display: flex; flex-direction: column; min-height: 360px; border: 1px solid rgba(255, 255, 255, .06); box-shadow: 0 30px 60px -36px rgba(60, 35, 0, .8); transition: transform .5s var(--ease); }
.card:hover { transform: translateY(-6px); }
.card-idx { font-size: .72rem; color: var(--giallo); font-weight: 600; }
.card h3 { font-size: 1.5rem; margin: 2.8rem 0 .8rem; }
.card p { color: var(--muted); font-size: .95rem; }
.card-link { margin-top: auto; padding-top: 1.6rem; font-size: .74rem; display: inline-flex; align-items: center; gap: .5rem; }
.card-link svg { width: 16px; height: 16px; fill: none; stroke: var(--giallo); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.card:hover .card-link svg { transform: translateX(5px); }

/* ---------- Why ---------- */
.why { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--carbon); }
.why-item { padding: 2rem 1.6rem 0 0; }
.why-item + .why-item { padding-left: 1.6rem; border-left: 1px solid var(--line); }
.why-item span { font-size: .74rem; font-weight: 600; }
.why-item h3 { font-size: 1.55rem; margin: 1.4rem 0 .7rem; letter-spacing: -.03em; }
.why-item p { color: var(--muted); font-size: .97rem; }

/* ---------- Candidates ---------- */
.cand { display: grid; grid-template-columns: .85fr 1.15fr; gap: 4rem; align-items: center; }
.cand-visual { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; justify-self: center; display: grid; place-items: center; }
.cand-visual img { width: 54%; z-index: 1; filter: drop-shadow(0 0 50px rgba(255, 194, 14, .3)); animation: bob 6s ease-in-out infinite, turn 24s ease-in-out infinite; }
@keyframes turn { 50% { rotate: 14deg; } }
.hex-orbit {
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='83' viewBox='0 0 48 83'%3E%3Cpath d='M24 0l24 14v27L24 55 0 41V14zM24 55v28' fill='none' stroke='%23FFC20E' stroke-opacity='.4'/%3E%3C/svg%3E");
  mask-image: radial-gradient(circle, #000 15%, transparent 68%); -webkit-mask-image: radial-gradient(circle, #000 15%, transparent 68%);
  animation: spin 90s linear infinite;
}
.checks { list-style: none; padding: 0; margin: 2rem 0 2.3rem; display: grid; gap: .9rem; }
.checks li { position: relative; padding-left: 2rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: .35rem; width: 18px; height: 18px; border-radius: 6px; background: rgba(255, 194, 14, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFC20E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; border: 1px solid rgba(255, 194, 14, .4); }

/* ---------- Brief ---------- */
.brief { border-radius: calc(var(--r) + 8px); padding: clamp(1.1rem, 3vw, 2.2rem); box-shadow: 0 50px 100px -50px rgba(60, 35, 0, .9); }
.mode { display: inline-flex; flex-wrap: wrap; gap: .3rem; padding: .3rem; border-radius: 14px; background: rgba(0, 0, 0, .5); border: 1px solid var(--line); margin-bottom: 1.9rem; }
.mode button { background: none; border: 0; padding: .65rem 1.1rem; border-radius: 10px; min-height: 44px; font-weight: 500; font-size: .92rem; color: var(--muted); transition: background .2s, color .2s; }
.mode button[aria-checked="true"] { background: var(--giallo); color: var(--carbon); }
.form { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.2rem; }
.builder { display: grid; gap: 1.4rem; align-content: start; }
.builder.hidden { display: none; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-size: .68rem; color: var(--dim); margin-bottom: .7rem; }
.opts { display: flex; flex-wrap: wrap; gap: .45rem; }
.opts button { min-height: 42px; padding: 0 1rem; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .02); font-size: .88rem; color: var(--muted); transition: all .2s; }
.opts button:hover { border-color: rgba(255, 194, 14, .5); color: var(--fg); }
.opts button.on { background: rgba(255, 194, 14, .12); border-color: var(--giallo); color: var(--giallo); }
.fields { display: grid; gap: 1rem; align-content: start; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: grid; gap: .45rem; font-size: .82rem; font-weight: 500; color: var(--muted); }
.form label small { font-weight: 400; font-size: .75rem; line-height: 1.35; color: var(--muted); opacity: .85; }
.form input, .form textarea {
  width: 100%; font: 400 .98rem var(--body); color: var(--fg); background: rgba(0, 0, 0, .5);
  border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--r-sm); padding: .85rem 1rem; transition: border-color .2s, box-shadow .2s;
}
.form input[type="checkbox"] { width: auto; padding: 0; }
.form select { width: 100%; font: 400 .98rem var(--body); color: var(--fg); background: rgba(0, 0, 0, .5); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--r-sm); padding: .85rem 1rem; min-height: 48px; }
.form select:focus { outline: none; border-color: var(--giallo); box-shadow: 0 0 0 4px rgba(255, 194, 14, .14); }
.form textarea { resize: vertical; font-family: var(--mono); font-size: .84rem; line-height: 1.7; }
.form input::placeholder { color: var(--dim); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--giallo); box-shadow: 0 0 0 4px rgba(255, 194, 14, .14); }
.form .invalid { border-color: #FF5C5C; }
/* Branded "Choose file" control: the input stays native (keyboard, drag-drop, a11y all still work),
   only its button face is restyled, so filename text and file-picker behaviour stay the browser's own. */
.form input[type="file"] {
  padding: .45rem .45rem .45rem 1rem; cursor: pointer; font-size: .82rem; color: var(--dim);
  display: flex; align-items: center;
}
.form input[type="file"]::file-selector-button, .form input[type="file"]::-webkit-file-upload-button {
  margin-right: .9rem; min-height: 38px; padding: 0 1.1rem; border: 0; border-radius: 999px;
  background: var(--giallo); color: var(--carbon); font: 600 .8rem var(--head); cursor: pointer;
  transition: background .2s, transform .15s; -webkit-appearance: none; appearance: none;
}
.form input[type="file"]:hover::file-selector-button, .form input[type="file"]:hover::-webkit-file-upload-button { background: var(--giallo-hi); }
.form input[type="file"]:focus { outline: none; border-color: var(--giallo); box-shadow: 0 0 0 4px rgba(255, 194, 14, .14); }
.form-foot { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.form-note { font-size: .74rem; color: var(--fg); }
.ink .form-note { color: var(--giallo); }

/* ---------- Final + footer ---------- */
.final { padding: clamp(5rem, 10vw, 8rem) 0; text-align: center; position: relative; overflow: hidden; }
.final::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 50% 35%, rgba(255, 194, 14, .18), transparent 70%); }
.final-inner { position: relative; display: grid; justify-items: center; gap: 2rem; }
.final-bee { position: relative; width: min(360px, 66vw); aspect-ratio: 1; animation: bob 5s ease-in-out infinite; filter: drop-shadow(0 20px 60px rgba(255, 194, 14, .3)); }
.avid > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.avid canvas { visibility: hidden; }
.avid.live canvas { visibility: visible; }
.avid.live img { visibility: hidden; }
.final h2 { font-size: clamp(2.1rem, 4.8vw, 3.8rem); max-width: 56rem; }
.footer { border-top: 1px solid var(--line); padding-top: 4rem; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer-blurb { color: var(--muted); margin-top: 1.2rem; max-width: 26rem; font-size: .95rem; }
.footer nav { display: grid; gap: .6rem; align-content: start; }
.footer nav p { font-size: .68rem; color: var(--dim); margin-bottom: .4rem; }
.footer nav a { color: var(--muted); font-size: .95rem; transition: color .2s; }
.footer nav a:hover { color: var(--giallo); }
.footer-bar { display: flex; justify-content: space-between; margin-top: 3.5rem; padding-top: 1.4rem; border-top: 1px solid var(--line); font-size: .68rem; color: var(--dim); }
.footer-mega {
  font: 700 clamp(4rem, 17vw, 16rem)/.8 var(--head); letter-spacing: -.06em; text-align: center; white-space: nowrap; margin: 2rem 0 -.12em;
  background: linear-gradient(180deg, var(--giallo), rgba(255, 194, 14, .1) 85%); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); filter: blur(6px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: repeat(2, 1fr); }
  .why-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .radar-body { grid-template-columns: 280px 1fr; }
}
@media (max-width: 900px) {
  .nav-links {
    position: fixed; top: 76px; left: 16px; right: 16px; flex-direction: column; gap: 0; padding: .6rem; border-radius: 20px;
    background: rgba(12, 12, 13, .96); border: 1px solid rgba(255, 255, 255, .08); backdrop-filter: blur(18px);
    opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .25s, transform .25s var(--ease);
  }
  .nav-links a, .nav.on-dark .nav-links a { padding: 1rem; font-size: 1rem; color: #E4E4E2; }
  .nav.open .nav-links { opacity: 1; pointer-events: auto; transform: none; }
  .nav-toggle { display: block; }
  .tt { margin-left: auto; }
  .nav.open .nav-toggle span:first-child { transform: translateY(3.25px) rotate(45deg); }
  .nav.open .nav-toggle span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

  .flight { height: 420vh; }
  .rig { width: min(70vw, 420px); margin: calc(min(70vw, 420px) / -2) 0 0 calc(min(70vw, 420px) / -2); }
  .ch, .ch-2, .ch-3 { left: 16px; right: 16px; width: auto; top: auto; bottom: 7svh; }
  .ch-4 { left: 16px; right: 16px; width: auto; top: auto; bottom: 10svh; }
  .ch h1 { font-size: clamp(2.3rem, 10vw, 3.6rem); margin: 1rem 0 .9rem; }
  .ch h2 { font-size: clamp(2.8rem, 13vw, 4.4rem); margin: .6rem 0 .8rem; }
  .lead, .ch-p { font-size: .98rem; }
  .cta-row { margin-top: 1.4rem; }
  .hud { margin-top: 1rem; padding: .9rem 1rem; }
  .hud-big span { font-size: 2rem; }
  .vet { margin-top: 1rem; }
  .vet li { padding: .55rem .7rem; }
  .rail { display: none; }

  .hive, .cand, .form { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .terminal { position: relative; top: 0; }
  .radar-body { grid-template-columns: 1fr; }
  .radar-viz { width: 210px; margin: 2rem auto 0; }
  .panel { padding: 1.6rem; }
  .cand-visual { max-width: 300px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .brand-sub, .nav-cta { display: none; }
  .status-sep, .status-text { display: none; }
  .cue { display: none; }
  .ch-1 .lead { display: none; }
  .ch-p { display: none; }
  .bento, .cards, .why, .role-list, .form .row { grid-template-columns: 1fr; }
  .tile-lg { grid-column: auto; min-height: 0; padding: 1.6rem; }
  .tile-ai h3, .tile-ai > p { max-width: none; }
  .tile-ai .tile-top { padding-right: 0; }
  .tile-bee { width: 120px; top: 1rem; right: 1rem; }
  .tile-ai .tile-ico { display: none; }
  .tags { max-width: none; }
  .why-item, .why-item + .why-item { padding: 1.8rem 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .ticker-label { display: none; }
  .footer-bar { flex-direction: column; gap: .5rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .split .w { opacity: 1; transform: none; filter: none; }
  html { scroll-behavior: auto; }
  .flight { height: auto; }
  .stage { position: relative; }
}

/* =========================================================
   Site-wide background (inspired by a fixed FX layer: aurora + lattice + pointer)
   .bgfx sits behind everything; transparent (yellow) sections show it.
   .fx-hive is the interactive honeycomb canvas, drawn above section backgrounds
   but below content, so it reacts to the pointer on yellow and black sections alike.
   ========================================================= */
.bgfx { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bgfx .aurora { position: absolute; width: 62vmax; height: 62vmax; border-radius: 50%; filter: blur(30px); }
.bgfx .a1 { background: radial-gradient(circle, rgba(255, 255, 255, .6), transparent 62%); top: -24vmax; left: -14vmax; animation: drift1 28s ease-in-out infinite alternate; }
.bgfx .a2 { background: radial-gradient(circle, rgba(240, 140, 0, .38), transparent 62%); bottom: -28vmax; right: -18vmax; animation: drift2 34s ease-in-out infinite alternate; }
.bgfx .a3 { background: radial-gradient(circle, rgba(255, 240, 170, .55), transparent 62%); top: 28%; left: 38%; width: 44vmax; height: 44vmax; animation: drift3 40s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(22vw, 16vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-20vw, -14vh) scale(1.1); } }
@keyframes drift3 { to { transform: translate(-26vw, 10vh) scale(.9); } }
.bgfx .lattice {
  position: absolute; inset: 0; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0l28 16v32L28 64 0 48V16zM28 64v33' fill='none' stroke='%230A0A0A' stroke-opacity='.09'/%3E%3C/svg%3E");
  mask-image: radial-gradient(120% 90% at 50% 40%, #000 30%, transparent 85%); -webkit-mask-image: radial-gradient(120% 90% at 50% 40%, #000 30%, transparent 85%);
}
.bgfx .vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 55%, rgba(150, 90, 0, .22)); }
.fx-hive { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; transition: opacity .5s; }
main > section:not(.flight) > *, .footer > *, .ticker > * { position: relative; z-index: 2; }
.final > .final-inner { z-index: 2; }

/* ---------- Mega navigation ---------- */
.dd { position: relative; }
.dd-btn { display: inline-flex; align-items: center; gap: .35rem; padding: .55rem .9rem; border-radius: 999px; border: 0; background: none; font-size: .9rem; font-weight: 500; color: var(--muted); transition: color .2s, background .2s; }
.dd-btn svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; transition: transform .25s; }
.dd-btn:hover, .dd.open .dd-btn { color: var(--giallo); background: var(--carbon); }
.nav.on-dark .dd-btn { color: #A8A8AD; }
.nav.on-dark .dd-btn:hover, .nav.on-dark .dd.open .dd-btn { color: var(--carbon); background: var(--giallo); }
.dd.open .dd-btn svg:last-child { transform: rotate(180deg); }
/* Icon-only trigger (Bee Hive): a hex badge instead of a text label, same hover language as the text dd-btns. */
.dd-btn-icon { gap: .3rem; padding: .5rem .7rem; }
.dd-btn-icon svg:first-child { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.dd-btn-icon svg:last-child { width: 11px; height: 11px; }
.dd-icon-label { display: none; }
.dd-panel {
  position: absolute; top: calc(100% + 14px); left: 50%; width: 560px; translate: -50% 6px;
  display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; padding: .55rem; border-radius: 20px;
  background: rgba(14, 14, 15, .97); border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7);
  backdrop-filter: blur(18px); opacity: 0; visibility: hidden; transition: opacity .2s, translate .25s var(--ease), visibility .2s;
}
.dd-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.dd:hover .dd-panel, .dd.open .dd-panel { opacity: 1; visibility: visible; translate: -50% 0; }
/* Hover feedback is background/colour/box-shadow only — never a transform or size change.
   A translateY() here shifts the element's hit box by that many px; with rows this close
   together that moves the box out from under the pointer, which un-hovers it, which undoes
   the shift, which re-hovers it — a visible flicker loop right at the row boundary. */
.dd-panel a { display: grid; gap: .2rem; padding: .85rem .95rem .85rem 1.1rem; border-radius: 14px; color: #EDEDEB; box-shadow: inset 0 0 0 1px transparent; transition: background .2s, color .2s, box-shadow .2s; }
.dd-panel a:hover, .dd-panel a:focus-visible { background: var(--giallo); color: var(--carbon); box-shadow: inset 3px 0 0 var(--carbon); }
.dd-panel a b { font: 600 .95rem var(--head); display: flex; align-items: center; gap: .5rem; }
.dd-panel a b i { font: 600 .55rem var(--mono); letter-spacing: .1em; color: var(--carbon); background: var(--giallo); padding: .12rem .4rem; border-radius: 4px; font-style: normal; }
.dd-panel a small { font-size: .78rem; color: #9A9AA0; line-height: 1.45; }
.dd-panel a:hover small, .dd-panel a:focus-visible small { color: rgba(10, 10, 10, .68); }
.dd-panel a:hover b i, .dd-panel a:focus-visible b i { background: var(--carbon); color: var(--giallo); }
.dd-panel .dd-feature { grid-row: span 2; background: linear-gradient(160deg, rgba(255, 194, 14, .16), rgba(255, 194, 14, .03)); border: 1px solid rgba(255, 194, 14, .25); align-content: end; min-height: 150px; position: relative; overflow: hidden; }
.dd-panel .dd-feature img { position: absolute; width: 96px; right: -6px; top: -4px; transform: rotate(12deg); opacity: .95; }
.dd-panel.compact { width: 272px; grid-template-columns: 1fr; }
.nav-signin {
  display: inline-flex; align-items: center; gap: .45rem; padding: .5rem 1rem .5rem .8rem; font-size: .88rem; font-weight: 600;
  border-radius: 999px; white-space: nowrap; color: var(--carbon); background: transparent;
  border: 1.5px solid var(--carbon); box-shadow: none;
  transition: transform .2s var(--ease), box-shadow .2s, background .2s, color .2s, border-color .2s;
}
.nav-signin svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav-signin:hover {
  background: var(--carbon); color: var(--giallo); border-color: var(--carbon); transform: translateY(-1px);
  box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .45);
}
.nav.on-dark .nav-signin { color: #fff; border-color: rgba(255, 255, 255, .4); }
.nav.on-dark .nav-signin:hover { background: var(--giallo); color: var(--carbon); border-color: var(--giallo); box-shadow: 0 10px 22px -10px rgba(255, 194, 14, .7); }
.nav-links > a[aria-current="page"], .dd.current .dd-btn { color: var(--fg); font-weight: 600; }
.nav.on-dark .nav-links > a[aria-current="page"], .nav.on-dark .dd.current .dd-btn { color: #fff; }
.dd.current .dd-btn:hover, .dd.current.open .dd-btn { color: var(--giallo); background: var(--carbon); }
.nav.on-dark .dd.current .dd-btn:hover, .nav.on-dark .dd.current.open .dd-btn { color: var(--carbon); background: var(--giallo); }

/* ---------- Inner page hero ---------- */
.page-hero { padding: clamp(8.5rem, 14vw, 11rem) 0 clamp(3.5rem, 7vw, 6rem); position: relative; }
.ph-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.page-hero h1 { font-size: clamp(2.5rem, 5.6vw, 5rem); letter-spacing: -.05em; line-height: .98; margin: 0 0 1.4rem; }
.page-hero .lead { max-width: 38rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: .45rem; font: 600 .7rem var(--mono); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.4rem; color: var(--dim); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--fg); }
.crumbs span[aria-hidden] { opacity: .5; }
.ph-visual { position: relative; aspect-ratio: 1; width: min(440px, 100%); justify-self: center; display: grid; place-items: center; }
.ph-visual::before, .ph-visual::after { content: ""; position: absolute; border-radius: 50%; border: 1.5px dashed rgba(10, 10, 10, .22); inset: 4%; animation: spin 40s linear infinite; }
.ph-visual::after { inset: 18%; border-style: solid; border-color: rgba(10, 10, 10, .12); animation-direction: reverse; animation-duration: 60s; }
.ph-visual img { width: 74%; aspect-ratio: 1; object-fit: contain; position: relative; z-index: 1; animation: bob 5s ease-in-out infinite; filter: drop-shadow(0 30px 40px rgba(80, 45, 0, .4)); }
.ph-visual.wide { aspect-ratio: auto; width: 100%; }
.ph-grid.ph-wide { grid-template-columns: 1fr 1.05fr; }
.footer-grid-5 { grid-template-columns: 1.6fr repeat(4, 1fr); }
@media (max-width: 1100px) { .footer-grid-5 { grid-template-columns: 1fr 1fr 1fr; } .footer-grid-5 > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 900px) { .ph-grid.ph-wide { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .footer-grid-5 { grid-template-columns: 1fr 1fr; } }
.ph-visual.wide::before, .ph-visual.wide::after { display: none; }

/* ---------- Human photography (hero + section visuals) ---------- */
.ph-photo { position: relative; width: min(440px, 100%); justify-self: center; aspect-ratio: 4 / 5; border-radius: 26px; overflow: hidden; box-shadow: 0 40px 80px -28px rgba(20, 12, 0, .5); }
.ph-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 10, 10, 0) 58%, rgba(10, 10, 10, .72) 100%); }
.ph-photo .ph-chip { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; z-index: 1; display: flex; align-items: center; gap: .5rem; padding: .65rem .9rem; border-radius: 12px; background: rgba(10, 10, 10, .4); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .14); color: #fff; font: 600 .76rem var(--mono); letter-spacing: .02em; }
.ph-photo .ph-chip svg { width: 15px; height: 15px; padding: 0; border: none; background: none; border-radius: 0; fill: none; stroke: var(--giallo); stroke-width: 2.2; flex: none; }
.photo-card { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 30px 60px -26px rgba(20, 12, 0, .45); }
.photo-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px) { .ph-photo { width: min(320px, 70%); } }
.hero-points { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.hero-points li { display: inline-flex; align-items: center; gap: .45rem; font-size: .82rem; font-weight: 500; padding: .45rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .35); border: 1px solid rgba(255, 255, 255, .6); }
.hero-points li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--carbon); }

/* ---------- Content blocks ---------- */
.split2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feat { border-radius: var(--r); padding: 1.7rem; border: 1px solid var(--line); display: grid; gap: .7rem; align-content: start; transition: transform .5s var(--ease); }
.feat:hover { transform: translateY(-4px); }
.feat .tile-ico { margin-bottom: .6rem; }
.feat h3 { font-size: 1.25rem; }
.feat p { color: var(--muted); font-size: .95rem; }
.chip-new { justify-self: start; font: 600 .6rem var(--mono); letter-spacing: .1em; padding: .2rem .5rem; border-radius: 4px; background: var(--giallo); color: var(--carbon); }
.chip-soon { justify-self: start; font: 600 .6rem var(--mono); letter-spacing: .1em; padding: .2rem .5rem; border-radius: 4px; border: 1px solid var(--line); color: var(--muted); }
.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; counter-reset: flow; position: relative; }
.flow li { padding: 1.6rem; border-radius: var(--r); border: 1px solid var(--line); position: relative; }
.flow li::before { counter-increment: flow; content: "0" counter(flow); display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; font: 600 .8rem var(--mono); background: var(--accent); color: var(--on-accent); margin-bottom: 1.2rem; }
.flow h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.flow p { color: var(--muted); font-size: .94rem; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--fg); }
.stat { padding: 1.6rem 1.4rem 0 0; }
.stat + .stat { padding-left: 1.4rem; border-left: 1px solid var(--line); }
.stat b { display: block; font: 600 clamp(2rem, 4vw, 3rem)/1 var(--head); letter-spacing: -.04em; }
.stat span { display: block; margin-top: .6rem; color: var(--muted); font-size: .92rem; }
.pill-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.pill-list li { padding: .5rem .85rem; border-radius: 999px; border: 1px solid var(--line); font-size: .86rem; font-weight: 500; }
.dark .pill-list li { background: rgba(255, 255, 255, .03); }
.callout { border-radius: var(--r); padding: clamp(1.6rem, 4vw, 2.6rem); display: grid; gap: 1rem; }
/* ---------- Recruitment-page cross-sell: "we use Critical Hive too" ---------- */
.hive-promo {
  border-radius: var(--r); padding: clamp(1.8rem, 4vw, 3rem); display: grid; grid-template-columns: auto 1fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: center;
  position: relative; overflow: hidden;
}
.hive-promo::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background: radial-gradient(45% 60% at 85% 20%, rgba(255, 194, 14, .16), transparent 70%);
}
.hive-promo-visual { position: relative; width: clamp(120px, 16vw, 190px); aspect-ratio: 1; flex: none; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .5)); }
.hive-promo-copy { position: relative; max-width: 42rem; }
.hive-promo-copy h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
@media (max-width: 700px) { .hive-promo { grid-template-columns: 1fr; text-align: center; } .hive-promo-visual { margin: 0 auto; } .hive-promo-copy { max-width: none; } }
/* ---------- Product demo reel: real screenshots, auto-advancing captions, no fake video file ---------- */
.demo-frame {
  position: relative; aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden;
  background: var(--carbon); border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .55);
}
.demo-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .6s ease; }
.demo-slide.on { opacity: 1; }
.demo-caption { margin-top: 1.1rem; padding: 1.1rem 1.3rem; border-radius: 14px; background: var(--carbon); color: #F4F4F2; }
.demo-step-label { color: var(--giallo); font-size: .68rem; letter-spacing: .14em; margin-bottom: .4rem; }
.demo-caption p:last-child { font-size: .96rem; line-height: 1.5; color: #D8D8D6; }
.demo-dots { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.demo-dots button { padding: .55rem .95rem; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-size: .78rem; font-weight: 600; color: var(--muted); transition: background .2s, color .2s, border-color .2s; }
.demo-dots button.on { background: var(--carbon); color: var(--giallo); border-color: var(--carbon); }
.demo-dots button:hover { border-color: var(--carbon); }
.link-arrow { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.link-arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Compare table ---------- */
.compare-wrap { border-radius: var(--r); overflow: hidden; box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .35); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.compare { width: 100%; min-width: 760px; border-collapse: collapse; font-size: .92rem; background: #fff; }
.compare thead tr { background: var(--carbon); }
.compare th { padding: 1.1rem 1.1rem; text-align: left; font: 700 .68rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .55); vertical-align: bottom; }
.compare th.cap-col { color: rgba(255, 255, 255, .8); }
.compare th.win-col { color: var(--carbon); background: var(--giallo); position: relative; }
.win-badge { display: flex; align-items: center; gap: .3rem; font: 800 .62rem var(--mono); letter-spacing: .08em; color: var(--carbon); margin-bottom: .3rem; }
.win-badge svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.compare td { padding: 1rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .9rem; }
.compare tbody tr:last-child td { border-bottom: none; }
.compare tbody tr:nth-child(even) td:not(.win) { background: rgba(10, 10, 10, .022); }
.compare tbody tr:hover td:not(.win) { background: rgba(10, 10, 10, .045); }
.compare td:first-child { font-weight: 600; color: var(--carbon); position: sticky; left: 0; background: #fff; z-index: 1; box-shadow: 1px 0 0 var(--line); }
.compare thead th.cap-col { position: sticky; left: 0; background: var(--carbon); z-index: 3; box-shadow: 1px 0 0 rgba(255, 255, 255, .1); }
.compare tbody tr:nth-child(even) td:first-child { background: #fafafa; }
.compare tbody tr:hover td:first-child { background: #f3f3f3; }
/* Never set display:flex/grid/block directly on a <td> — it drops out of table-cell layout and
   columns collapse onto each other. Flex lives on an inner <span> instead; the td stays table-cell. */
.compare .yes { color: var(--carbon); font-weight: 600; }
.compare .yes-row { display: inline-flex; align-items: center; gap: .4rem; }
.compare .yes svg { width: 15px; height: 15px; fill: none; stroke: #2BAA5E; stroke-width: 3; flex: none; }
.compare .no, .compare .dunno { color: var(--dim); }
.compare .win { background: rgba(255, 194, 14, .14); font-weight: 600; color: var(--carbon); border-left: 2px solid var(--giallo); }
.compare .win-row { display: flex; align-items: flex-start; gap: .5rem; }
.compare .tick { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 999px; background: var(--carbon); flex: none; margin-top: .1rem; }
.compare .tick svg { width: 11px; height: 11px; fill: none; stroke: var(--giallo); stroke-width: 3.2; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .6rem; max-width: 56rem; }
.faq details { border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .22); transition: background .2s; }
.dark .faq details { background: rgba(255, 255, 255, .03); }
.faq details[open] { background: rgba(255, 255, 255, .4); }
.dark .faq details[open] { background: rgba(255, 255, 255, .06); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.3rem; font: 600 1.05rem var(--head); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 500 1.4rem/1 var(--mono); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 1.3rem 1.25rem; color: var(--muted); max-width: 48rem; }
.faq .ans p + p { margin-top: .7rem; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; align-items: stretch; }
.plan { border-radius: var(--r); padding: 1.8rem; display: flex; flex-direction: column; gap: 1rem; border: 1px solid var(--line); position: relative; }
.plan.featured { outline: 2px solid var(--giallo); outline-offset: -2px; }
.plan .ribbon { position: absolute; top: -12px; left: 1.8rem; font: 600 .62rem var(--mono); letter-spacing: .1em; background: var(--giallo); color: var(--carbon); padding: .3rem .6rem; border-radius: 6px; }
.plan h3 { font-size: 1.3rem; }
.plan .price { font: 600 2.4rem/1 var(--head); letter-spacing: -.04em; }
.plan .price small { font: 500 .85rem var(--body); color: var(--muted); letter-spacing: 0; }
.plan .for { color: var(--muted); font-size: .9rem; min-height: 2.8em; }
.plan ul { list-style: none; padding: 0; margin: 0 0 auto; display: grid; gap: .55rem; font-size: .92rem; }
.plan li { padding-left: 1.6rem; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: .32rem; width: 14px; height: 14px; border-radius: 4px; background: rgba(255, 194, 14, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFC20E' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 10px no-repeat; }
.plan.glass li::before { background-color: rgba(10, 10, 10, .9); }
.plan .btn { justify-content: center; }
.fine { font-size: .8rem; color: var(--dim); }

/* ---------- Product mock (pure HTML/CSS screenshot of Critical Hive) ---------- */
.mock { border-radius: 18px; overflow: hidden; background: #0E0E10; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 60px 120px -50px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 194, 14, .08); color: #EDEDEB; font-size: .78rem; transform: perspective(1400px) rotateY(-6deg) rotateX(3deg); transition: transform .8s var(--ease); width: 100%; }
.mock:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.mock-bar { display: flex; align-items: center; gap: .4rem; padding: .7rem .9rem; border-bottom: 1px solid rgba(255, 255, 255, .07); background: #131315; }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: #2C2C30; }
.mock-bar i:first-child { background: var(--giallo); }
.mock-bar span { margin-left: .6rem; font: .66rem var(--mono); color: #6C6C72; }
.mock-body { display: grid; grid-template-columns: 150px 1fr; min-height: 300px; }
.mock-side { border-right: 1px solid rgba(255, 255, 255, .06); padding: .9rem .7rem; display: grid; gap: .3rem; align-content: start; }
.mock-side b { display: flex; align-items: center; gap: .4rem; font: 700 .78rem var(--head); margin-bottom: .6rem; }
.mock-side b img { width: 20px; }
.mock-side span { padding: .45rem .55rem; border-radius: 7px; color: #9B9BA1; }
.mock-side span.on { background: rgba(255, 194, 14, .12); color: var(--giallo); }
.mock-main { padding: .9rem 1rem; display: grid; gap: .6rem; align-content: start; }
.mock-main h4 { font: 600 .95rem var(--head); display: flex; justify-content: space-between; align-items: center; margin: 0; }
.mock-row { display: grid; grid-template-columns: 1.4fr .5fr 1fr .9fr; align-items: center; gap: .6rem; padding: .55rem .6rem; border-radius: 9px; background: rgba(255, 255, 255, .025); border: 1px solid rgba(255, 255, 255, .05); }
.mock-row b { font-weight: 600; }
.mock-row small { display: block; color: #6C6C72; font-size: .64rem; }
.mock-score { font: 700 1.05rem var(--head); }
.mock-bars { display: flex; gap: 2px; align-items: end; height: 18px; }
.mock-bars i { width: 7px; background: var(--giallo); border-radius: 2px; }
.mock-chip { font: 600 .56rem var(--mono); padding: .18rem .45rem; border-radius: 999px; justify-self: start; white-space: nowrap; }
.mock-chip.ok { color: #3DDC97; background: rgba(61, 220, 151, .1); }
.mock-chip.warn { color: #FFB020; background: rgba(255, 176, 32, .1); }
.mock-chip.bad { color: #FF5C5C; background: rgba(255, 92, 92, .1); }
.mock-note { font: .6rem var(--mono); color: #6C6C72; text-align: right; }

/* ---------- Live-interview hero stage (AI Interview Platform page) ---------- */
.live-stage { position: relative; width: 100%; min-height: 540px; display: grid; place-items: center; padding: 2.5rem 1.5rem 3.5rem; }
.live-frame { position: relative; width: 240px; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; box-shadow: 0 50px 90px -30px rgba(20, 12, 0, .55); z-index: 2; }
.live-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.live-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 10, 10, 0) 52%, rgba(10, 10, 10, .78) 100%); }
.live-tag { position: absolute; top: .7rem; left: .7rem; z-index: 1; display: flex; align-items: center; gap: .4rem; padding: .32rem .6rem; border-radius: 999px; background: rgba(10, 10, 10, .5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; font: 700 .6rem var(--mono); letter-spacing: .06em; }
.live-tag i { width: 6px; height: 6px; border-radius: 50%; background: #FF5C5C; animation: livePulse 1.6s ease-in-out infinite; }
@keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.live-caption { position: absolute; left: .85rem; right: .85rem; bottom: .8rem; z-index: 1; color: #fff; font: italic 500 .74rem/1.4 var(--body); }
.live-float { position: absolute; width: 185px; padding: .8rem .9rem; border-radius: 14px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 25px 50px -24px rgba(20, 12, 0, .4); font-size: .76rem; z-index: 3; color: var(--carbon); border: 1px solid rgba(255, 255, 255, .6); }
.live-float h5 { display: flex; align-items: center; gap: .4rem; font: 700 .64rem var(--mono); text-transform: uppercase; letter-spacing: .03em; color: var(--carbon); margin: 0 0 .55rem; }
.live-float h5 svg { width: 14px; height: 14px; padding: 0; border: none; background: none; fill: none; stroke: var(--carbon); stroke-width: 2; flex: none; }
.live-float .row { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .3rem 0; border-top: 1px solid rgba(10, 10, 10, .08); }
.live-float .row:first-of-type { border-top: none; }
.live-float .row b.ok { color: #1E8F55; font-weight: 700; }
.live-float.tl { top: 1.5rem; left: -.5rem; }
.live-float.tr { top: 1.5rem; right: -.5rem; }
.live-foot { margin: .5rem 0 0; font-size: .68rem; line-height: 1.4; color: var(--dim); }
.live-bars { display: flex; gap: 2px; }
.live-bars i { width: 5px; height: 11px; border-radius: 2px; background: rgba(10, 10, 10, .12); }
.live-bars i.on { background: var(--giallo); }
.live-decision { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: min(300px, 90%); padding: .75rem 1rem; border-radius: 14px; background: var(--carbon); color: #fff; display: flex; align-items: center; gap: .7rem; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .55); z-index: 4; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--giallo); flex: none; box-shadow: 0 0 0 4px rgba(255, 194, 14, .18); }
.live-decision b { display: block; font-size: .82rem; }
.live-decision small { display: block; color: rgba(255, 255, 255, .55); font-size: .72rem; margin-top: .1rem; }
@media (max-width: 1100px) { .live-float { width: 165px; } .live-float.tl { left: -1rem; } .live-float.tr { right: -1rem; } }
@media (max-width: 900px) {
  .live-stage { min-height: 0; display: flex; flex-direction: column; align-items: center; gap: .9rem; padding: 0; }
  .live-frame { width: min(280px, 70%); order: -2; }
  .live-float { position: static; width: min(320px, 100%); }
  .live-decision { position: static; transform: none; width: 100%; order: 10; margin-top: .4rem; }
}

/* ---------- Workday integration flow (illustrative) ---------- */
.wd-flow { width: 100%; max-width: 520px; margin-inline: auto; display: grid; gap: 0; position: relative; }
.wd-node { position: relative; display: grid; grid-template-columns: auto 1fr; gap: .2rem .9rem; align-items: center; padding: 1rem 1.1rem; border-radius: 18px; background: rgba(255, 255, 255, .86); border: 1px solid rgba(255, 255, 255, .7); box-shadow: 0 30px 60px -34px rgba(20, 12, 0, .5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--carbon); }
.wd-node b { display: block; font: 700 1rem var(--head); letter-spacing: -.01em; }
.wd-node small { display: block; font-size: .78rem; color: rgba(10, 10, 10, .62); }
.wd-hive { background: var(--carbon); border-color: rgba(255, 194, 14, .35); color: #fff; }
.wd-hive small { color: rgba(255, 255, 255, .62); }
.wd-logo { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(10, 10, 10, .08); font: 800 1.2rem var(--head); color: var(--carbon); flex: none; }
.wd-logo.wd-bee { background: var(--giallo); }
.wd-logo.wd-bee img { width: 30px; height: 30px; }
.wd-tag { grid-column: 1 / -1; justify-self: start; margin-top: .45rem; padding: .22rem .6rem; border-radius: 999px; font: 700 .64rem var(--mono); letter-spacing: .05em; text-transform: uppercase; background: rgba(10, 10, 10, .07); color: rgba(10, 10, 10, .75); }
.wd-hive .wd-tag { background: rgba(255, 194, 14, .16); color: var(--giallo); }
.wd-tag.ok { background: rgba(30, 143, 85, .14); color: #14703f; }
.wd-link { display: flex; align-items: center; gap: .6rem; justify-content: center; padding: .5rem 0; font: 600 .68rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: rgba(10, 10, 10, .65); }
.wd-link i { width: 2px; height: 26px; background: repeating-linear-gradient(180deg, var(--carbon) 0 5px, transparent 5px 9px); position: relative; }
.wd-link i::after { content: ""; position: absolute; left: 50%; bottom: -3px; width: 8px; height: 8px; border-right: 2px solid var(--carbon); border-bottom: 2px solid var(--carbon); transform: translateX(-50%) rotate(45deg); }
.wd-link.up i::after { bottom: auto; top: -3px; transform: translateX(-50%) rotate(-135deg); }
.wd-note { text-align: right; font-size: .62rem; color: rgba(10, 10, 10, .45); margin: .6rem .3rem 0; }

/* ---------- Articles / legal prose ---------- */
.prose { max-width: 46rem; font-size: 1.06rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-top: 2.6rem; letter-spacing: -.03em; line-height: 1.15; }
.prose h3 { font-size: 1.25rem; margin-top: 1.8rem; }
.prose ul, .prose ol { padding-left: 1.3rem; display: grid; gap: .45rem; }
.prose a { border-bottom: 1.5px solid currentColor; font-weight: 600; }
.prose blockquote { margin: 1.6rem 0; padding: 1rem 1.3rem; border-left: 3px solid var(--carbon); background: rgba(255, 255, 255, .3); border-radius: 0 12px 12px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.article-meta { display: flex; flex-wrap: wrap; gap: .8rem; font: 600 .72rem var(--mono); letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.toc { border-radius: 16px; padding: 1.2rem 1.4rem; background: rgba(255, 255, 255, .3); border: 1px solid rgba(255, 255, 255, .6); }
.toc ol { margin: .6rem 0 0; padding-left: 1.2rem; display: grid; gap: .3rem; font-size: .95rem; }
.post-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.post-card { border-radius: var(--r); padding: 1.6rem; display: grid; gap: .8rem; align-content: start; border: 1px solid var(--line); transition: transform .4s var(--ease); }
.post-card:hover { transform: translateY(-4px); }
.post-card h3 { font-size: 1.3rem; line-height: 1.25; }
.post-card p { color: var(--muted); font-size: .94rem; }

/* ---------- Location cards ---------- */
.locs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.loc { border-radius: var(--r); padding: 1.6rem; border: 1px solid var(--line); display: grid; gap: .6rem; transition: transform .4s var(--ease), border-color .3s; }
.loc:hover { transform: translateY(-4px); border-color: rgba(255, 194, 14, .5); }
.loc h3 { font-size: 1.5rem; }
.loc p { color: var(--muted); font-size: .93rem; }

@media (max-width: 1100px) {
  .plans { grid-template-columns: 1fr 1fr; }
  .features, .post-cards { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .dd { width: 100%; }
  .dd-btn { width: 100%; justify-content: space-between; padding: 1rem; font-size: 1rem; color: #E4E4E2; border-radius: 12px; }
  .dd-btn-icon { justify-content: flex-start; gap: .65rem; }
  .dd-btn-icon svg:first-child { width: 22px; height: 22px; }
  .dd-btn-icon .dd-icon-label { display: block; flex: 1; text-align: left; }
  .dd-btn-icon svg:last-child { margin-left: auto; }
  .dd-panel, .dd-panel.compact { position: static; width: auto; translate: none; grid-template-columns: 1fr; opacity: 1; visibility: visible; display: none; background: rgba(255, 255, 255, .03); box-shadow: none; margin: 0 0 .4rem; }
  .dd.open .dd-panel { display: grid; translate: none; }
  .dd:hover .dd-panel { translate: none; }
  .dd-panel .dd-feature { grid-row: auto; min-height: 0; }
  .dd-panel .dd-feature img { display: none; }
  .dd-btn:hover, .dd.open .dd-btn,
  .nav.on-dark .dd-btn:hover, .nav.on-dark .dd.open .dd-btn,
  .dd.current .dd-btn:hover, .dd.current.open .dd-btn,
  .nav.on-dark .dd.current .dd-btn:hover, .nav.on-dark .dd.current.open .dd-btn { color: var(--carbon); background: var(--giallo); }
  .nav-signin { display: none; }
  .nav-links { max-height: calc(100svh - 100px); overflow-y: auto; }
  .ph-grid, .split2 { grid-template-columns: 1fr; }
  .ph-visual { width: min(300px, 80%); order: -1; }
  .ph-visual.wide { width: 100%; order: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .mock { transform: none; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .locs { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .features, .post-cards, .plans, .flow { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { border-left: 0; padding-left: 0; }
  .mock-row { grid-template-columns: 1.4fr .6fr 1fr; }
  .mock-row .mock-bars { display: none; }
  .ph-visual { width: min(240px, 70%); }
}
@media (prefers-reduced-motion: reduce) { .fx-hive { display: none; } }

/* ---------- First-visit intro: the hive wakes ----------
   A canvas draws the whole sequence: gold motes spiral in and orbit the bee while a honeycomb
   lattice ignites outward from the centre. The real wing-flapping bee video sits on top, the
   wordmark resolves letter by letter, a HUD counts the hive online, then the lattice shatters
   cell by cell from the centre like an iris and the page appears underneath. */
.intro { display: none; position: fixed; inset: 0; z-index: 200; background: var(--carbon); overflow: hidden; }
html.show-intro .intro { display: block; }
html.show-intro, html.show-intro body { overflow: hidden; }
.intro.iris { background: transparent; }
.intro-canvas, .intro-plate, .intro-vignette { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro-plate { object-fit: cover; opacity: 0; mix-blend-mode: screen; transition: opacity 1.2s ease; pointer-events: none; }
.intro-plate.on { opacity: .5; }
.intro.leaving .intro-plate, .intro.leaving .intro-vignette { opacity: 0; }
.intro-vignette { pointer-events: none; background: radial-gradient(60% 55% at 50% 46%, rgba(255, 194, 14, .16), transparent 70%), radial-gradient(120% 100% at 50% 50%, transparent 55%, rgba(0, 0, 0, .65)); transition: opacity .4s; }
.intro-badge {
  position: absolute; left: 50%; top: 42%; width: min(270px, 56vw); aspect-ratio: 1; translate: -50% -50%;
  opacity: 0; animation: badgeIn .9s var(--ease) .5s forwards; transition: opacity .45s, scale .6s var(--ease);
}
@keyframes badgeIn { from { opacity: 0; scale: .45; filter: blur(10px); } to { opacity: 1; scale: 1; filter: none; } }
.intro-ring, .intro-ring::before { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(255, 194, 14, .55); }
.intro-ring::before { content: ""; inset: -26px; border-color: rgba(255, 194, 14, .25); border-style: dashed; animation: introSpin 14s linear infinite; }
@keyframes introSpin { to { transform: rotate(360deg); } }
.intro-ring::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--giallo); opacity: 0; animation: introPulse 1.1s var(--ease) 1.9s; }
@keyframes introPulse { 0% { opacity: .95; scale: 1; } 100% { opacity: 0; scale: 2.3; } }
.intro-bee { position: absolute; inset: 10%; filter: drop-shadow(0 0 28px rgba(255, 194, 14, .45)) drop-shadow(0 18px 24px rgba(0, 0, 0, .55)); animation: introBob 3.4s ease-in-out .8s infinite; }
@keyframes introBob { 50% { translate: 0 -5%; } }
.intro-word { position: absolute; left: 50%; top: 66%; translate: -50% 0; width: 100%; text-align: center; transition: opacity .45s, translate .6s var(--ease); }
.intro-name { display: inline-flex; align-items: center; justify-content: center; gap: .3em; font: 700 clamp(1.7rem, 5.2vw, 3rem) var(--head); letter-spacing: .26em; margin-right: -.26em; color: #F4F4F2; }
.intro-name .iw { display: inline-flex; }
.intro-name i { font-style: normal; display: inline-block; opacity: 0; transform: translateY(60%) scale(1.15); filter: blur(12px); animation: letterIn .8s var(--ease) calc(1.3s + var(--i) * 70ms) forwards; }
@keyframes letterIn { to { opacity: 1; transform: none; filter: none; } }
.intro-name b { padding: 0 .26em; background: var(--giallo); color: var(--carbon); border-radius: 6px; letter-spacing: 0; opacity: 0; animation: letterIn .8s var(--ease) 2.05s forwards; box-shadow: 0 0 30px rgba(255, 194, 14, .55); }
.intro-tag { display: block; margin-top: 1rem; font: 500 clamp(.62rem, 1.5vw, .78rem) var(--mono); letter-spacing: .22em; text-transform: uppercase; color: #A8A8AD; opacity: 0; animation: wordIn .8s var(--ease) 2.3s forwards; }
.intro-tag em { color: var(--giallo); font-style: normal; margin: 0 .4em; }
@keyframes wordIn { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
.intro-hud { position: absolute; left: 0; right: 0; margin-inline: auto; bottom: clamp(26px, 7vh, 64px); width: min(380px, 78vw); display: grid; grid-template-columns: 1fr auto; gap: .55rem .8rem; align-items: center; font: 500 .66rem var(--mono); letter-spacing: .16em; color: #A8A8AD; opacity: 0; animation: wordIn .6s var(--ease) .4s forwards; transition: opacity .4s; }
.hud-status { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-pct { color: var(--giallo); font-variant-numeric: tabular-nums; }
.hud-bar { grid-column: 1 / -1; height: 2px; background: rgba(255, 255, 255, .12); border-radius: 2px; overflow: hidden; order: 3; }
.hud-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #FFE27A, var(--giallo)); box-shadow: 0 0 12px var(--giallo); }
.intro.leaving .intro-badge { opacity: 0; scale: 1.25; animation: none; }
.intro.leaving .intro-word { opacity: 0; translate: -50% -14px; }
.intro.leaving .intro-hud, .intro.leaving .intro-skip { opacity: 0; animation: none; }
.intro-skip {
  position: absolute; top: 18px; right: 18px; z-index: 5; min-height: 42px; padding: 0 1.1rem;
  border-radius: 999px; border: 1.5px solid rgba(255, 194, 14, .5); background: rgba(10, 10, 10, .6);
  color: var(--giallo); font: 600 .8rem var(--head); opacity: 0; animation: wordIn .4s var(--ease) .3s forwards; transition: opacity .3s;
}
.intro-skip:hover { background: var(--giallo); color: var(--carbon); border-color: var(--giallo); }
@media (max-width: 640px) { .intro-name { letter-spacing: .14em; margin-right: -.14em; } .intro-word { top: 63%; } }

/* ---------- Bright view for the AI interview pages ---------- */
/* Sliding theme switch (nav): Honey (yellow theme, hexagon) <-> Sun (white theme) */
.tt { position: relative; flex: 0 0 auto; display: inline-grid; place-items: center; width: 64px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; color: inherit; -webkit-tap-highlight-color: transparent; }
.tt .track { position: relative; width: 60px; height: 32px; border-radius: 999px; overflow: hidden;
  background: linear-gradient(135deg, #FFE27A, #FFC20E 55%, #EBA600);
  box-shadow: inset 0 0 0 1.5px rgba(10, 10, 10, .85), 0 6px 16px -6px rgba(235, 166, 0, .8); transition: background .6s, box-shadow .6s; }
.tt .stars i { position: absolute; width: 9px; height: 10px; background: rgba(10, 10, 10, .2); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); transition: opacity .4s, transform .6s var(--ease); }
.tt .stars i:nth-child(1) { left: 34px; top: 5px; }
.tt .stars i:nth-child(2) { left: 43px; top: 11px; }
.tt .stars i:nth-child(3) { left: 34px; top: 17px; }
.tt .stars i:nth-child(4) { left: 43px; top: 22px; opacity: .6; }
.tt .stars i:nth-child(5) { left: 51px; top: 6px; opacity: .6; }
.tt .rays { position: absolute; inset: 0; background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, .95), transparent 60%); opacity: 0; transition: opacity .6s; }
.tt .knob { position: absolute; left: 3px; top: 3px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #2A2A2C, #0A0A0A 70%);
  box-shadow: 0 0 12px rgba(255, 194, 14, .55), 0 2px 6px rgba(0, 0, 0, .4);
  transition: transform .6s cubic-bezier(.65, 0, .2, 1.25), background .6s, box-shadow .6s; }
.tt .knob svg { position: absolute; width: 16px; height: 16px; transition: opacity .4s, transform .6s var(--ease); }
.tt .moon { fill: #FFC20E; }
.tt .moon path:last-child { fill: #0A0A0A; }
.tt .sun { fill: #fff; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; opacity: 0; transform: rotate(-90deg) scale(.5); }
html.hive-bright .tt .track { background: linear-gradient(135deg, #FFFFFF, #F1F4FA 60%, #DCE6F7); box-shadow: inset 0 0 0 1.5px rgba(10, 10, 10, .25), 0 6px 16px -8px rgba(40, 70, 140, .5); }
html.hive-bright .tt .stars i { opacity: 0; transform: translateY(6px); }
html.hive-bright .tt .rays { opacity: 1; }
html.hive-bright .tt .knob { transform: translateX(28px) rotate(180deg); background: radial-gradient(circle at 35% 30%, #FFF8E1, #FFD36B 60%, #FF9F1A); box-shadow: 0 0 16px rgba(255, 190, 60, .85), 0 2px 6px rgba(120, 80, 0, .25); }
html.hive-bright .tt .moon { opacity: 0; transform: rotate(90deg) scale(.5); }
html.hive-bright .tt .sun { opacity: 1; transform: none; fill: #7A4A00; stroke: #7A4A00; }
.tt:hover .knob { box-shadow: 0 0 18px rgba(255, 224, 130, 1), 0 2px 6px rgba(0, 0, 0, .4); }
.tt:focus-visible { outline: 2px solid var(--giallo); outline-offset: 2px; border-radius: 999px; }
.tt .tip { position: absolute; top: calc(100% + 4px); right: 0; z-index: 5; display: grid; gap: 1px; min-width: 9.5rem; padding: .5rem .75rem; border-radius: 12px; text-align: left; white-space: nowrap;
  background: var(--carbon); color: #F4F4F2; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .7); opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .2s, transform .2s; }
.tt .tip b { font: 600 .82rem var(--head); }
.tt .tip small { font: 500 .6rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--giallo); }
.tt .tip [data-when="light"], html.hive-bright .tt .tip [data-when="dark"] { display: none; }
html.hive-bright .tt .tip [data-when="light"] { display: block; }
.tt:hover .tip, .tt:focus-visible .tip { opacity: 1; transform: none; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; }
@media (hover: none) { .tt .tip { display: none; } }
@media (prefers-reduced-motion: reduce) { .tt .stars i { animation: none; } .tt .knob, .tt .track, .tt .knob svg { transition: none; } }
html.hive-bright .dark:not(.intro) {
  background: transparent;
  --fg: #0A0A0A; --muted: rgba(10, 10, 10, .72); --dim: rgba(10, 10, 10, .5);
  --line: rgba(10, 10, 10, .14); --accent: #0A0A0A; --on-accent: #FFC20E; --spot: rgba(255, 255, 255, .35);
  color: var(--fg);
}
html.hive-bright .ink {
  background: rgba(255, 255, 255, .55); color: #0A0A0A;
  --fg: #0A0A0A; --muted: rgba(10, 10, 10, .72); --dim: rgba(10, 10, 10, .5);
  --line: rgba(10, 10, 10, .12); --accent: #0A0A0A; --on-accent: #FFC20E;
}
html.hive-bright .grad { background: none; color: inherit; -webkit-text-fill-color: currentColor; }
html.hive-bright .footer.dark { background: var(--carbon); color: #F4F4F2; --fg: #F4F4F2; --muted: #A8A8AD; --dim: #6F6F75; --line: rgba(255, 255, 255, .1); --accent: #FFC20E; --on-accent: #0A0A0A; }
.link-accent { color: var(--giallo); }
html.hive-bright .link-accent { color: var(--carbon); }

/* White theme: a real white surface (the yellow is Honey, the default) */
html.hive-bright body { background: #FBFAF7; }
html.hive-bright .bgfx .a1 { background: radial-gradient(circle, rgba(255, 194, 14, .16), transparent 62%); }
html.hive-bright .bgfx .a2 { background: radial-gradient(circle, rgba(255, 194, 14, .12), transparent 62%); }
html.hive-bright .bgfx .a3 { background: radial-gradient(circle, rgba(255, 226, 122, .18), transparent 62%); }
html.hive-bright .bgfx .vignette { background: none; }
html.hive-bright .grain { opacity: .03; }
html.hive-bright .nav.scrolled .nav-pill { background: rgba(255, 255, 255, .82); border-color: rgba(10, 10, 10, .08); box-shadow: 0 10px 40px -18px rgba(10, 10, 10, .35); }
html.hive-bright .nav-links > a:hover { background: rgba(10, 10, 10, .06); }
html.hive-bright .glass { background: rgba(255, 255, 255, .85); border-color: rgba(10, 10, 10, .08); box-shadow: 0 1px 0 #fff inset, 0 18px 40px -26px rgba(10, 10, 10, .3); }
html.hive-bright .ink:not(.footer) { background: rgba(255, 255, 255, .85); box-shadow: inset 0 0 0 1px rgba(10, 10, 10, .08), 0 18px 40px -28px rgba(10, 10, 10, .3); }
html.hive-bright .dark [style*="color:var(--giallo)"] { color: #8A5A00 !important; }
html.hive-bright .footer .ink { box-shadow: none; }

/* ---------- JD studio, roles, uploads ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.jd-form, .apply-form, .pool-form { display: grid; gap: 1rem; padding: clamp(1.2rem, 3vw, 1.8rem); border-radius: var(--r); position: relative; }
.jd-form label, .apply-form label, .pool-form label { display: grid; gap: .45rem; font-size: .82rem; font-weight: 500; color: var(--muted); }
.jd-form textarea, .apply-form input, .apply-form textarea, .pool-form input, .pool-form textarea {
  width: 100%; font: 400 .98rem var(--body); color: var(--fg); background: rgba(255, 255, 255, .62);
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: .85rem 1rem;
}
.jd-form textarea { resize: vertical; font-family: var(--mono); font-size: .84rem; line-height: 1.7; }
.apply-form textarea, .pool-form textarea { resize: vertical; }
.jd-form textarea:focus, .apply-form input:focus, .apply-form textarea:focus, .pool-form input:focus, .pool-form textarea:focus {
  outline: none; border-color: var(--carbon); box-shadow: 0 0 0 4px rgba(255, 194, 14, .35);
}
.apply-form input[type="file"], .pool-form input[type="file"] {
  padding: .45rem .45rem .45rem 1rem; cursor: pointer; font-size: .82rem; color: var(--muted);
  display: flex; align-items: center; background: rgba(255, 255, 255, .62);
}
.apply-form input[type="file"]::file-selector-button, .apply-form input[type="file"]::-webkit-file-upload-button,
.pool-form input[type="file"]::file-selector-button, .pool-form input[type="file"]::-webkit-file-upload-button {
  margin-right: .9rem; min-height: 38px; padding: 0 1.1rem; border: 0; border-radius: 999px;
  background: var(--carbon); color: var(--giallo); font: 600 .8rem var(--head); cursor: pointer;
  transition: background .2s; -webkit-appearance: none; appearance: none;
}
.apply-form input[type="file"]:hover::file-selector-button, .apply-form input[type="file"]:hover::-webkit-file-upload-button,
.pool-form input[type="file"]:hover::file-selector-button, .pool-form input[type="file"]:hover::-webkit-file-upload-button { background: #000; }
.apply-form .row, .pool-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.jobs { display: grid; gap: 1rem; }
.job, .roles-empty { padding: clamp(1.3rem, 3vw, 1.8rem); border-radius: var(--r); display: grid; gap: .8rem; }
.job h3, .roles-empty h3 { font-size: clamp(1.4rem, 2vw, 1.8rem); }
.jd-out { margin-top: 1.2rem; display: grid; gap: 1rem; }
.jd-skills { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.jd-skills li { display: inline-flex; align-items: center; gap: .55rem; padding: .45rem .75rem; border-radius: 999px; background: var(--carbon); color: var(--giallo); font-size: .85rem; }
.jd-skills span { font: 600 .7rem var(--mono); color: #fff; }
.jd-qs { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; counter-reset: q; }
.jd-qs li { padding: 1rem 1.1rem; border-radius: 16px; background: rgba(255, 255, 255, .4); border: 1px solid var(--line); display: grid; gap: .35rem; }
.jd-qs li::before { counter-increment: q; content: "0" counter(q); font: 600 .72rem var(--mono); }
.file-line input { margin-top: .35rem; }
/* ---------- Human-verification slider: a branded hive gate, not a generic captcha widget ---------- */
.human { user-select: none; }
.human-track {
  position: relative; height: 54px; border-radius: 999px; overflow: hidden; touch-action: none;
  background: rgba(255, 194, 14, .08); border: 1.5px solid rgba(255, 194, 14, .3);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='48' viewBox='0 0 28 48'%3E%3Cpath d='M14 0l14 8v16l-14 8L0 24V8zM14 32v16' fill='none' stroke='%23FFC20E' stroke-opacity='.16'/%3E%3C/svg%3E");
  transition: border-color .2s, box-shadow .2s;
}
.ink .human-track, .dark .human-track { background-color: rgba(255, 255, 255, .04); }
.human-fill {
  position: absolute; inset: 0; width: var(--fill, 0%); pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 194, 14, .22), rgba(255, 194, 14, .55));
  transition: width .08s linear;
}
.human-label {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
  font: 600 .74rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); z-index: 1;
}
.human-knob {
  position: absolute; top: 3px; left: 3px; width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: var(--carbon); cursor: grab; touch-action: none; padding: 0; z-index: 2;
  box-shadow: 0 0 0 1.5px rgba(255, 194, 14, .55), 0 6px 16px -6px rgba(0, 0, 0, .6);
  display: flex; align-items: center; justify-content: center; gap: 1px;
  transition: box-shadow .2s, scale .15s;
}
.human-knob:hover { scale: 1.04; }
.human-knob:active { cursor: grabbing; }
.human-knob svg { width: 9px; height: 9px; fill: none; stroke: var(--giallo); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; margin-left: -3px; }
.human.done .human-track { border-color: var(--giallo); box-shadow: 0 0 0 3px rgba(255, 194, 14, .18); }
.human.done .human-fill { background: linear-gradient(90deg, rgba(255, 194, 14, .55), var(--giallo)); }
.human.done .human-label { color: var(--carbon); font-weight: 700; }
.human.done .human-knob { cursor: default; background: var(--giallo); box-shadow: 0 0 0 1.5px var(--giallo), 0 6px 16px -6px rgba(234, 160, 0, .7); }
.human.done .human-knob svg { stroke: var(--carbon); }
@media (max-width: 700px) {
  .apply-form .row, .pool-form .row { grid-template-columns: 1fr; }
  @keyframes trackIn { from { letter-spacing: .5em; opacity: 0; } to { letter-spacing: .14em; opacity: 1; } }
}

/* White theme: the homepage flight hero keeps its bee and layout, only the backdrop turns white */
html.hive-bright .stage { background: radial-gradient(70% 60% at 20% 10%, #FFFFFF 0%, transparent 60%), radial-gradient(60% 60% at 100% 100%, #FFEFB8 0%, transparent 60%), #FBFAF7; }
html.hive-bright .fx-light { background: radial-gradient(28% 34% at var(--bx) var(--by), rgba(255, 194, 14, .22), transparent 70%); }

/* White theme: the "Get in touch" brief form and other controls that assumed a dark surface */
html.hive-bright .brief { box-shadow: 0 30px 70px -40px rgba(10, 10, 10, .35); }
html.hive-bright .mode { background: rgba(10, 10, 10, .05); border-color: rgba(10, 10, 10, .12); }
html.hive-bright .mode button { color: rgba(10, 10, 10, .72); }
html.hive-bright .mode button:hover { color: #0A0A0A; background: rgba(10, 10, 10, .06); }
html.hive-bright .mode button[aria-checked="true"] { background: #0A0A0A; color: var(--giallo); }
html.hive-bright .opts button { background: #fff; border-color: rgba(10, 10, 10, .2); color: rgba(10, 10, 10, .78); }
html.hive-bright .opts button:hover { border-color: #0A0A0A; color: #0A0A0A; }
html.hive-bright .opts button.on { background: #0A0A0A; border-color: #0A0A0A; color: var(--giallo); }
html.hive-bright .form input, html.hive-bright .form textarea, html.hive-bright .form select { background: #fff; color: #0A0A0A; border-color: rgba(10, 10, 10, .22); }
html.hive-bright .form input::placeholder, html.hive-bright .form textarea::placeholder { color: rgba(10, 10, 10, .45); }
html.hive-bright .form input:focus, html.hive-bright .form textarea:focus { border-color: #0A0A0A; box-shadow: 0 0 0 4px rgba(255, 194, 14, .35); }
html.hive-bright .form input[type="file"] { background: #fff; }
html.hive-bright .form input[type="file"]::file-selector-button { background: #0A0A0A; color: var(--giallo); }
html.hive-bright .form label { color: rgba(10, 10, 10, .72); }
html.hive-bright legend { color: rgba(10, 10, 10, .55); }
html.hive-bright .tabs button:hover { background: rgba(10, 10, 10, .06); }

.footer-grid-6 { grid-template-columns: 1.5fr repeat(5, 1fr); }
@media (max-width: 1100px) { .footer-grid-6 { grid-template-columns: 1fr 1fr 1fr; } .footer-grid-6 > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 640px) { .footer-grid-6 { grid-template-columns: 1fr 1fr; } }

/* Live demo video */
.demo-video video { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 20px; background: var(--carbon); border: 1px solid rgba(10, 10, 10, .12); box-shadow: 0 40px 90px -40px rgba(10, 10, 10, .5); }
.demo-slide { object-position: top; }
.demo-dots { gap: .4rem; }
.demo-dots button { padding: .5rem .8rem; }


/* ---------- Platform hero v2: live interview with the integrity report, skills evidence and fairness check ---------- */
.hv { position: relative; width: 100%; min-height: 600px; display: grid; place-items: center; padding: 2rem 0 3.6rem; isolation: isolate; }
.hv-glow { position: absolute; inset: 8% 10%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 194, 14, .5), transparent 70%); filter: blur(30px); animation: hvGlow 7s ease-in-out infinite alternate; }
@keyframes hvGlow { to { transform: scale(1.12); opacity: .8; } }
.hv-frame { position: relative; width: 250px; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; z-index: 2; box-shadow: 0 60px 100px -34px rgba(20, 12, 0, .6), 0 0 0 1px rgba(255, 255, 255, .5) inset; }
.hv-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hv-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 10, 10, 0) 50%, rgba(10, 10, 10, .82) 100%); }
.hv-scan { position: absolute; left: 0; right: 0; top: 0; height: 56px; z-index: 1; background: linear-gradient(180deg, rgba(255, 194, 14, 0), rgba(255, 194, 14, .35)); border-bottom: 1.5px solid rgba(255, 226, 122, .9); animation: hvScan 4.2s ease-in-out infinite; }
@keyframes hvScan { 0% { transform: translateY(-60px); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateY(330px); opacity: 0; } }
.hv-tag { position: absolute; top: .75rem; left: .75rem; z-index: 3; display: flex; align-items: center; gap: .4rem; padding: .32rem .62rem; border-radius: 999px; background: rgba(10, 10, 10, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; font: 600 .6rem var(--mono); letter-spacing: .06em; }
.hv-tag i { width: 6px; height: 6px; border-radius: 50%; background: #FF5C5C; animation: livePulse 1.6s ease-in-out infinite; }
.hv-quote { position: absolute; left: .9rem; right: .9rem; bottom: .85rem; z-index: 3; margin: 0; color: #fff; font: italic 500 .76rem/1.4 var(--body); }
.hv-card { position: absolute; z-index: 3; width: 218px; padding: .85rem .95rem; border-radius: 16px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(10, 10, 10, .06); box-shadow: 0 30px 60px -26px rgba(20, 12, 0, .45); color: #0A0A0A; font-size: .74rem; animation: hvFloat 6s ease-in-out infinite; }
.hv-integrity { top: .6rem; left: -.8rem; animation-delay: -1s; }
.hv-skills { top: 1.6rem; right: -.8rem; animation-delay: -3s; }
.hv-fair { bottom: 3.3rem; left: -1.2rem; width: 226px; animation-delay: -2s; }
@keyframes hvFloat { 50% { transform: translateY(-7px); } }
.hv-card h5 { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; margin: 0 0 .55rem; font: 700 .62rem var(--mono); text-transform: uppercase; letter-spacing: .03em; color: #0A0A0A; }
.hv-card h5 svg { width: 14px; height: 14px; padding: 0; border: 0; background: none; fill: none; stroke: #0A0A0A; stroke-width: 2; flex: none; }
.hv-chip { margin-left: auto; padding: .12rem .45rem; border-radius: 999px; font: 700 .56rem var(--mono); letter-spacing: .04em; text-transform: none; }
.hv-chip.warn { background: #FFF0C2; color: #7A5200; }
.hv-chip.ok { background: #DDF6E8; color: #17794A; }
.hv-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .28rem 0; border-top: 1px solid rgba(10, 10, 10, .07); opacity: 0; animation: hvIn .5s ease forwards; animation-delay: calc(.5s + var(--i, 0) * .22s); }
.hv-row:first-of-type { border-top: 0; }
@keyframes hvIn { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
.hv-st { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; font-size: .68rem; }
.hv-dot { width: 8px; height: 8px; border-radius: 50%; background: #aaa; }
.hv-dot.ok { background: #1E8F55; box-shadow: 0 0 0 3px rgba(30, 143, 85, .18); }
.hv-dot.look { background: #E8A200; box-shadow: 0 0 0 3px rgba(232, 162, 0, .22); animation: hvBlink 1.8s ease-in-out infinite; }
.hv-dot.na { background: #B9B9BF; }
@keyframes hvBlink { 50% { opacity: .35; } }
.hv-st.ok { color: #1E8F55; } .hv-st.look { color: #8A5A00; } .hv-st.na { color: #6B6B72; }
.hv-bar { flex: 0 0 74px; height: 6px; border-radius: 6px; background: rgba(10, 10, 10, .1); overflow: hidden; }
.hv-bar.wide { flex: 1; }
.hv-bar i { display: block; height: 100%; width: calc(var(--v) * 100%); border-radius: 6px; background: linear-gradient(90deg, #FFE27A, #FFC20E); transform-origin: left; animation: hvGrow 1.1s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(.7s + var(--i, 0) * .2s); }
@keyframes hvGrow { from { transform: scaleX(0); } }
.hv-fair b { font-size: .68rem; min-width: 2.2rem; text-align: right; }
.hv-foot, .hv-evi { margin: .5rem 0 0; font-size: .64rem; line-height: 1.4; color: rgba(10, 10, 10, .55); }
.hv-evi { font-style: italic; color: rgba(10, 10, 10, .7); }
.hv-decision { position: absolute; bottom: .2rem; right: -.4rem; z-index: 4; width: min(290px, 86%); padding: .75rem 1rem; border-radius: 14px; background: #0A0A0A; color: #fff; display: flex; align-items: center; gap: .7rem; box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .7); animation: hvFloat 6.5s ease-in-out infinite; animation-delay: -4s; }
.hv-decision b { display: block; font-size: .8rem; }
.hv-decision small { display: block; color: rgba(255, 255, 255, .6); font-size: .7rem; margin-top: .1rem; }
.hv-note { position: absolute; left: 0; bottom: 0; margin: 0; font-size: .58rem; letter-spacing: .12em; color: rgba(10, 10, 10, .4); }
@media (max-width: 1100px) { .hv-card { width: 196px; } .hv-fair { width: 204px; } }
@media (max-width: 900px) {
  .hv { min-height: 0; display: flex; flex-direction: column; align-items: center; gap: .9rem; padding: 0 0 1.4rem; }
  .hv-frame { width: min(280px, 72%); order: -2; }
  .hv-card { position: static; width: min(340px, 100%); animation: none; }
  .hv-decision { position: static; width: min(340px, 100%); animation: none; }
  .hv-note { position: static; }
}
@media (prefers-reduced-motion: reduce) { .hv-glow, .hv-card, .hv-decision, .hv-scan, .hv-dot.look { animation: none; } .hv-row { opacity: 1; animation: none; } .hv-bar i { animation: none; } }

/* ---------- Trust banner (fraud + bias): stays dark in both themes ---------- */
.band { padding: clamp(2rem, 5vw, 4rem) 0; }
.band-card { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(1.6rem, 4vw, 3.4rem); color: #F4F4F2; background: radial-gradient(60% 80% at 100% 0%, rgba(255, 194, 14, .22), transparent 60%), radial-gradient(50% 70% at 0% 100%, rgba(255, 194, 14, .1), transparent 60%), #0A0A0A; box-shadow: 0 60px 120px -50px rgba(10, 10, 10, .8); display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr); gap: clamp(1.6rem, 4vw, 3.4rem); align-items: center; }
.band-card::before { content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0l28 16v32L28 64 0 48V16zM28 64v33' fill='none' stroke='%23FFC20E' stroke-opacity='.07'/%3E%3C/svg%3E"); mask-image: radial-gradient(70% 90% at 90% 20%, #000, transparent 75%); -webkit-mask-image: radial-gradient(70% 90% at 90% 20%, #000, transparent 75%); }
.band-card > * { position: relative; }
.band-card .eyebrow { color: #A8A8AD; } .band-card .eyebrow span { background: var(--giallo); color: #0A0A0A; }
.band-card h2 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.3rem); }
.band-card h2 .grad { background: linear-gradient(100deg, #FFE27A, #FFC20E 45%, #EBA600); -webkit-background-clip: text; background-clip: text; color: transparent; }
.band-card .sub { color: #C8C8CC; margin-top: 1rem; }
.band-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin: 1.6rem 0 1.8rem; }
.band-cols h3 { font-size: .78rem; font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--giallo); margin-bottom: .6rem; }
.band-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.band-cols li { display: flex; gap: .5rem; font-size: .9rem; color: #E4E4E2; line-height: 1.4; }
.band-cols li::before { content: ""; flex: none; width: 14px; height: 14px; margin-top: .2rem; border-radius: 50%; background: rgba(255, 194, 14, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFC20E' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/9px no-repeat; }
.band-card .cta-row .btn { background: var(--giallo); color: #0A0A0A; }
.band-card .cta-row .btn-line { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); }
.band-card .cta-row .btn-line:hover { background: #fff; color: #0A0A0A; }
.band-fine { margin-top: 1.2rem; font-size: .74rem; color: #8B8B92; }
.shot-stack { position: relative; aspect-ratio: 16 / 12; }
.shot { position: absolute; width: 74%; border-radius: 14px; overflow: hidden; background: #111; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9); transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s, z-index 0s .2s; }
.shot img { width: 100%; height: auto; display: block; }
.shot::before { content: ""; display: block; height: 22px; background: #1a1a1c linear-gradient(90deg, #FF5F57 0 0) 12px 50% / 8px 8px no-repeat; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.shot::after { content: attr(data-label); position: absolute; top: 0; left: 0; right: 0; height: 22px; padding-left: 28px; font: 600 .58rem/22px var(--mono); letter-spacing: .08em; color: #8B8B92; text-transform: uppercase; }
.shot.s1 { left: 0; top: 0; z-index: 1; transform: rotate(-2deg); }
.shot.s2 { right: 0; top: 14%; z-index: 2; transform: rotate(1.5deg); }
.shot.s3 { left: 14%; bottom: 0; z-index: 3; transform: rotate(-.8deg); }
.shot:hover { transform: translateY(-10px) rotate(0) scale(1.03); z-index: 5; transition-delay: 0s; box-shadow: 0 60px 100px -30px rgba(255, 194, 14, .3), 0 40px 80px -30px rgba(0, 0, 0, .9); }
@media (max-width: 900px) {
  .band-card { grid-template-columns: 1fr; }
  .band-cols { grid-template-columns: 1fr; }
  .shot-stack { aspect-ratio: auto; display: grid; gap: .9rem; }
  .shot { position: static; width: 100%; transform: none !important; }
}
@media (prefers-reduced-motion: reduce) { .shot { transition: none; } }
/* A form or panel swapped out with the hidden attribute must really disappear, even though .form sets display:grid. */
#deckForm[hidden], #deckDone[hidden] { display: none !important; }

/* Presentation download banner (agencies and employers pages) */
.deck-cta { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.deck-points { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .55rem; }
.deck-points li { display: flex; gap: .55rem; color: #E4E4E2; font-size: .95rem; }
.deck-points li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: .22rem; border-radius: 50%; background: rgba(255, 194, 14, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFC20E' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 10px no-repeat; }
.deck-meta { font-size: .68rem; letter-spacing: .12em; color: #A8A8AD; align-self: center; }
.deck-cover { position: relative; aspect-ratio: 16 / 11; max-width: 440px; width: 100%; justify-self: center; }
.deck-slide { position: absolute; border-radius: 16px; background: #fff; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .7); }
.deck-slide.back { inset: 8% 0 0 10%; background: #FFF3C9; transform: rotate(4deg); display: grid; align-content: end; gap: .4rem; padding: 1rem; }
.deck-slide.back i { display: block; height: 7px; border-radius: 4px; background: rgba(176, 122, 0, .35); } .deck-slide.back i:nth-child(2) { width: 70%; } .deck-slide.back i:nth-child(3) { width: 45%; }
.deck-slide.front { inset: 0 10% 8% 0; transform: rotate(-3deg); padding: clamp(.9rem, 2.4vw, 1.5rem); display: flex; flex-direction: column; gap: .55rem; color: #15151A; background: linear-gradient(135deg, #fff, #FFF8E0); }
.deck-logo { display: inline-flex; align-items: center; gap: .5rem; font: 600 .8rem var(--head); letter-spacing: .08em; }
.deck-logo img { border-radius: 8px; background: #0B0B0C; padding: 2px; }
.deck-logo em { font-style: normal; background: var(--giallo); padding: 0 .35rem; border-radius: 3px; margin-left: .2rem; }
.deck-slide small { font-size: .56rem; letter-spacing: .14em; color: #B07A00; margin-top: .3rem; }
.deck-slide strong { font: 600 clamp(1.15rem, 2.4vw, 1.7rem)/1.02 var(--head); letter-spacing: -.035em; }
.deck-slide strong u { text-decoration: none; background: linear-gradient(transparent 62%, #FFC20E 62%, #FFC20E 92%, transparent 92%); }
.deck-foot { margin-top: auto; font-size: .56rem; letter-spacing: .12em; color: #8A8A93; }
@media (max-width: 820px) { .deck-cta { grid-template-columns: 1fr; } .deck-cover { max-width: 340px; } }

/* ---------- Mobile menu fixes ---------- */
.nav-actions { display: none; }
@media (max-width: 900px) {
  .nav-cta { display: none; }
  .nav-links { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-bottom: 0; }
  /* shorter rows: the description lines made one section taller than the screen, pushing the next headings out of sight */
  .dd-panel a { padding: .75rem 1rem; gap: 0; }
  .dd-panel a small { display: none; }
  .dd-panel .dd-feature small { display: block; margin-top: .2rem; }
  .dd-panel a b { font-size: 1rem; }
  .dd-btn { min-height: 52px; }
  /* The drawer is always dark, so item colours must not follow the page theme (a dark "current page" label on the dark drawer looked like the item had disappeared). */
  .nav-links .dd-btn, .nav.on-dark .nav-links .dd-btn, .nav-links .dd.current .dd-btn, .nav.on-dark .nav-links .dd.current .dd-btn { color: #E4E4E2; }
  .nav-links .dd.current .dd-btn, .nav.on-dark .nav-links .dd.current .dd-btn { color: var(--giallo); font-weight: 600; }
  .nav-links .dd-btn:hover, .nav-links .dd.open .dd-btn, .nav-links .dd.current .dd-btn:hover, .nav-links .dd.current.open .dd-btn, .nav.on-dark .nav-links .dd.open .dd-btn { color: #0A0A0A; background: var(--giallo); }
  .nav-links > a { color: #E4E4E2; }
  .nav-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; position: sticky; bottom: 0; margin: .5rem -.6rem 0; padding: .8rem .6rem .7rem; background: rgba(12, 12, 13, .98); border-top: 1px solid rgba(255, 255, 255, .08); border-radius: 0 0 20px 20px; }
  .nav-links .nav-actions a { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 48px; padding: .7rem 1rem; border-radius: 999px; font: 600 .95rem var(--body); text-align: center; }
  .nav-links .nav-actions .nav-m-signin { color: #fff; background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }
  .nav-links .nav-actions .nav-m-signin:hover { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }
  .nav-links .nav-actions .nav-m-signin svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .nav-links .nav-actions .nav-m-cta { color: #0A0A0A; background: var(--giallo); box-shadow: none; }
  .nav-links .nav-actions .nav-m-cta:hover { background: var(--giallo-hi); color: #0A0A0A; }
}

/* The "more" menu is a hexagon icon only, no visible text, on desktop and phone. The label stays for screen readers. */
@media (max-width: 900px) {
  .dd-btn-icon .dd-icon-label { position: absolute; display: block; flex: none; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .dd-btn-icon { justify-content: space-between; }
  .dd-btn-icon svg:first-child { width: 26px; height: 26px; }
}

/* Branded banner at the top of the phone menu, and a stronger tag on the Pricing item */
.nav-banner { display: none; }
.dd-panel a b i.tag-hot, .dd-panel a b i { white-space: nowrap; }
@media (max-width: 900px) {
  .nav-links .nav-banner { position: relative; display: grid; gap: .35rem; overflow: hidden; margin: 0 0 .5rem; padding: 1.1rem 6.2rem 1.1rem 1.1rem; border-radius: 16px; color: #fff;
    background: radial-gradient(120% 140% at 100% 0%, rgba(255, 194, 14, .55) 0%, rgba(255, 194, 14, .12) 38%, rgba(255, 194, 14, 0) 62%), linear-gradient(135deg, #1a1405 0%, #0A0A0A 70%); box-shadow: inset 0 0 0 1px rgba(255, 194, 14, .28); }
  .nav-banner::before { content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='56' height='98' viewBox='0 0 56 98'><g fill='none' stroke='%23FFC20E' stroke-opacity='.22' stroke-width='1'><path d='M28 2 L54 17 L54 47 L28 62 L2 47 L2 17 Z'/><path d='M0 66 L26 81 L26 111 M56 66 L30 81'/></g></svg>"); -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 100%); mask-image: linear-gradient(90deg, transparent 30%, #000 100%); }
  .nav-banner img { position: absolute; right: .4rem; top: 50%; width: 92px; height: 92px; transform: translateY(-50%) rotate(14deg); filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .55)); pointer-events: none; }
  .nav-banner > * { position: relative; }
  .nav-banner .nb-eyebrow { font: 600 .62rem var(--mono); letter-spacing: .14em; color: var(--giallo); }
  .nav-banner b { font: 700 1.12rem/1.15 var(--head); letter-spacing: -.02em; color: #fff; }
  .nav-banner .nb-cta { display: inline-flex; align-items: center; gap: .35rem; margin-top: .25rem; font: 600 .82rem var(--body); color: var(--giallo); }
  .nav-links .nav-banner:hover, .nav-links .nav-banner:focus-visible { background: radial-gradient(120% 140% at 100% 0%, rgba(255, 194, 14, .7) 0%, rgba(255, 194, 14, .18) 40%, rgba(255, 194, 14, 0) 64%), linear-gradient(135deg, #221a06 0%, #0A0A0A 70%); color: #fff; }
}

/* "FREE PILOT" on Pricing: filled, slightly larger, softly shining, and the whole row is tinted so it stands out from the NEW tags */
.dd-panel a b i.tag-hot { position: relative; overflow: hidden; font-size: .62rem; padding: .2rem .55rem; border-radius: 999px; background: linear-gradient(135deg, #FFD84D, #FFC20E 55%, #EBA600); color: #0A0A0A; box-shadow: 0 0 0 1px rgba(255, 194, 14, .5), 0 4px 12px -4px rgba(255, 194, 14, .75); }
.dd-panel a b i.tag-hot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .75) 50%, transparent 70%); transform: translateX(-120%); animation: tagShine 3.2s ease-in-out infinite; }
@keyframes tagShine { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.dd-panel a:has(.tag-hot) { background: rgba(255, 194, 14, .1); box-shadow: inset 0 0 0 1px rgba(255, 194, 14, .35); }
.dd-panel a:has(.tag-hot):hover, .dd-panel a:has(.tag-hot):focus-visible { background: var(--giallo); box-shadow: inset 3px 0 0 var(--carbon); }
.dd-panel a:hover b i.tag-hot, .dd-panel a:focus-visible b i.tag-hot { background: var(--carbon); color: var(--giallo); box-shadow: none; }

/* FREE PILOT, premium version: carbon pill, a flowing gold-champagne gradient ring, a gold text glint and a soft pulsing glow. */
.dd-panel a b i.tag-hot {
  position: relative; isolation: isolate; overflow: visible; font: 700 .64rem var(--mono); letter-spacing: .14em; padding: .27rem .7rem .27rem .62rem; border-radius: 999px;
  color: #FFE9A6; background: #0A0A0A; box-shadow: 0 0 14px -2px rgba(255, 194, 14, .55); text-shadow: 0 0 8px rgba(255, 194, 14, .6);
  animation: tagGlow 2.8s ease-in-out infinite;
}
.dd-panel a b i.tag-hot::before {
  content: ""; position: absolute; inset: -1.5px; z-index: -1; border-radius: inherit;
  background: linear-gradient(110deg, #FFC20E 0%, #FFF3C9 18%, #FF9F1C 36%, #FFD84D 54%, #FFFBEA 70%, #FFC20E 100%); background-size: 300% 100%; animation: tagFlow 3.4s linear infinite;
}
.dd-panel a b i.tag-hot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; clip-path: inset(0 round 999px);
  background: linear-gradient(100deg, transparent 35%, rgba(255, 233, 166, .55) 50%, transparent 65%); transform: translateX(-130%); animation: tagShine 3.4s ease-in-out infinite;
}
@keyframes tagFlow { to { background-position: -300% 0; } }
@keyframes tagGlow { 0%, 100% { box-shadow: 0 0 10px -2px rgba(255, 194, 14, .45); } 50% { box-shadow: 0 0 20px 0 rgba(255, 194, 14, .85); } }
/* the row: a faint gold wash that drifts, so the whole line draws the eye without shouting */
.dd-panel a:has(.tag-hot) { background: linear-gradient(100deg, rgba(255, 194, 14, .16), rgba(255, 233, 166, .06) 40%, rgba(255, 194, 14, .16)); background-size: 250% 100%; animation: rowDrift 6s ease-in-out infinite; box-shadow: inset 0 0 0 1px rgba(255, 194, 14, .4); }
@keyframes rowDrift { 0%, 100% { background-position: 0 0; } 50% { background-position: 100% 0; } }
.dd-panel a:has(.tag-hot):hover, .dd-panel a:has(.tag-hot):focus-visible { animation: none; background: var(--giallo); box-shadow: inset 3px 0 0 var(--carbon); }
.dd-panel a:hover b i.tag-hot, .dd-panel a:focus-visible b i.tag-hot { background: var(--carbon); color: var(--giallo); text-shadow: none; box-shadow: none; animation: none; }
.dd-panel a:hover b i.tag-hot::before, .dd-panel a:focus-visible b i.tag-hot::before { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .dd-panel a b i.tag-hot, .dd-panel a b i.tag-hot::before, .dd-panel a b i.tag-hot::after, .dd-panel a:has(.tag-hot) { animation: none !important; } }

/* FREE PILOT ring fix: the dark fill and the flowing gold ring are two layers of the pill's own background, so the fill can never be covered. */
.dd-panel a b i.tag-hot {
  border: 1.5px solid transparent; padding: .22rem .66rem .22rem .58rem;
  background: linear-gradient(#0A0A0A, #0A0A0A) padding-box, linear-gradient(110deg, #FFC20E 0%, #FFF3C9 18%, #FF9F1C 36%, #FFD84D 54%, #FFFBEA 70%, #FFC20E 100%) border-box;
  background-size: 100% 100%, 300% 100%; animation: tagGlow 2.8s ease-in-out infinite, tagFlow 3.4s linear infinite;
}
.dd-panel a b i.tag-hot::before { display: none; }
@keyframes tagFlow { from { background-position: 0 0, 0 0; } to { background-position: 0 0, -300% 0; } }
.dd-panel a:hover b i.tag-hot, .dd-panel a:focus-visible b i.tag-hot { background: #0A0A0A; border-color: #0A0A0A; animation: none; }
.dd-panel a b i.tag-hot { overflow: hidden; }
.dd-panel a b i.tag-hot::after { clip-path: none; }
/* The "more" (hexagon) menu button never shows text at any width; the label is for screen readers only. */
.dd-btn-icon .dd-icon-label { position: absolute; display: block; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Free tools */
.roi-calc { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding: 1.6rem; border-radius: 22px; }
.roi-calc .fields label { display: grid; gap: .35rem; font-weight: 600; font-size: .92rem; }
.roi-calc .fields input { min-height: 46px; padding: 0 .9rem; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.55); color: inherit; font: inherit; }
.roi-out { display: grid; gap: .7rem; align-content: start; }
.roi-out ul { padding-left: 1.1rem; display: grid; gap: .3rem; }
.roi-big { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.roi-big small { font-size: .9rem; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.star-table { width: 100%; min-width: 46rem; border-collapse: collapse; font-size: .95rem; }
.star-table th, .star-table td { text-align: left; padding: .8rem; border: 1px solid var(--line); vertical-align: top; }
.star-table th { font: 600 .74rem var(--mono); letter-spacing: .06em; text-transform: uppercase; background: rgba(255,255,255,.4); }
@media (max-width: 760px) { .roi-calc { grid-template-columns: 1fr; padding: 1.1rem; } }
