/* CleanForce – design system
   Inspired by the editorial, high-contrast grotesque style of modern Salesforce consultancies:
   light-weight display type with tight tracking, floating pill navigation, alternating dark/off-white
   section themes, square cards, pill buttons with arrow. Colours from the CleanForce brand image. */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0A1F5C;
  --navy-deep: #040B24;
  --ink: #02061A;
  --blue: #1552D6;
  --blue-bright: #1E6BF0;
  --glow: #3FB8FF;
  --ice: #C3E2F7;
  --off: #F2F4F8;
  --white: #FFFFFF;
  --gold: #FFC56B;
  --line: rgba(10, 31, 92, .12);
  --line-dark: rgba(255, 255, 255, .14);
  --font: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --pad-x: clamp(16px, 5.5vw, 80px);
  --maxw: 1440px;
  --radius-pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--glow); color: var(--ink); }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 12px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 400; margin: 0; text-wrap: balance; }
.display { font-size: clamp(2.6rem, 6.2vw, 5.4rem); line-height: 1.02; letter-spacing: -.035em; }
.h2 { font-size: clamp(2rem, 4.2vw, 3.5rem); line-height: 1.08; letter-spacing: -.03em; }
.h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.2; letter-spacing: -.02em; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.55; letter-spacing: -.01em; max-width: 62ch; }
.eyebrow {
  font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: .6em;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 12px var(--glow); }
.muted { opacity: .72; }
.accent { color: var(--blue-bright); }
.t-dark .accent, .t-navy .accent { color: var(--glow); }
p { margin: 0 0 1em; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); }
.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; overflow-x: clip; }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.side { grid-column: 1 / span 3; }
.main { grid-column: 4 / span 9; }
@media (max-width: 900px) { .side, .main { grid-column: 1 / -1; } }

.t-dark { background: var(--ink); color: var(--white); }
.t-navy { background: radial-gradient(120% 90% at 80% 0%, #0E2C7A 0%, var(--navy-deep) 55%, var(--ink) 100%); color: var(--white); }
.t-off { background: var(--off); }
.t-white { background: var(--white); }

/* ---------- Header / pill navigation ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 16px 0;
  transition: background .3s var(--ease);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header.scrolled { background: linear-gradient(to bottom, rgba(255,255,255,.92), rgba(255,255,255,0)); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.45rem; letter-spacing: -.03em; }
.brand img { width: 40px; height: 40px; transition: transform .6s var(--ease); }
.brand:hover img { transform: rotate(-20deg) scale(1.06); }
.brand .w1 { color: var(--navy); }
.brand .w2 { color: var(--blue); }
.on-dark .brand .w1 { color: var(--white); }
.on-dark .brand .w2 { color: var(--glow); }
.scrolled .brand .w1 { color: var(--navy); }
.scrolled .brand .w2 { color: var(--blue); }
.on-dark .brand img { filter: brightness(0) invert(1); }
.scrolled .brand img { filter: none; }

.pill-nav {
  display: flex; align-items: center; gap: 4px;
  padding: 6px 6px 6px 20px;
  border-radius: var(--radius-pill);
  background: rgba(233, 236, 243, .72);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.5);
}
.on-dark .pill-nav { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); color: var(--white); }
.scrolled .pill-nav { background: rgba(233, 236, 243, .8); color: var(--ink); }
.pill-nav a.nl { text-decoration: none; padding: 10px 14px; font-weight: 500; font-size: .95rem; border-radius: var(--radius-pill); transition: background .2s; position: relative; }
.pill-nav a.nl:hover { background: rgba(10,31,92,.08); }
.on-dark .pill-nav a.nl:hover { background: rgba(255,255,255,.1); }
.pill-nav a.nl[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; background: var(--glow); border-radius: 2px; }
.badge { font-size: .7rem; font-weight: 700; background: var(--glow); color: var(--ink); padding: 3px 8px; border-radius: var(--radius-pill); margin-left: 6px; vertical-align: 1px; }
.menu-btn { display: none; }

@media (max-width: 960px) {
  .pill-nav { position: fixed; inset: 76px 16px auto 16px; flex-direction: column; align-items: stretch; padding: 12px; border-radius: 24px;
    background: rgba(255,255,255,.97) !important; color: var(--ink) !important; box-shadow: 0 30px 60px rgba(2,6,26,.25);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .3s var(--ease); }
  .pill-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .pill-nav a.nl { padding: 14px 16px; font-size: 1.1rem; }
  .pill-nav .btn { justify-content: center; margin-top: 8px; }
  .menu-btn { display: inline-flex; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(233,236,243,.8); align-items: center; justify-content: center; cursor: pointer; backdrop-filter: blur(10px); }
  .menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; transition: .3s var(--ease); }
  .menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
  .menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
  .menu-btn[aria-expanded="true"] span { background: transparent; }
  .menu-btn[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
  .menu-btn[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--blue); --fg: var(--white);
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 16px 14px 24px; border-radius: var(--radius-pill);
  background: var(--bg); color: var(--fg); border: 1.5px solid var(--bg);
  text-decoration: none; font-weight: 600; font-size: 1rem; letter-spacing: -.01em;
  cursor: pointer; position: relative; overflow: hidden; isolation: isolate;
  transition: color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; background: var(--navy); transform: translateX(-101%); transition: transform .45s var(--ease); z-index: -1; }
.btn:hover::before { transform: none; }
.btn:hover { border-color: var(--navy); }
.btn .arr { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px) rotate(-45deg); }
.btn.glow { --bg: var(--glow); --fg: var(--ink); box-shadow: 0 0 0 0 rgba(63,184,255,.6); animation: pulse 2.8s infinite; }
.btn.glow::before { background: var(--white); }
.btn.glow .arr { background: rgba(2,6,26,.1); }
.btn.ghost { --bg: transparent; --fg: currentColor; border-color: currentColor; }
.btn.ghost::before { background: currentColor; opacity: .1; }
.btn.sm { padding: 10px 12px 10px 18px; font-size: .92rem; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(63,184,255,.55); } 70% { box-shadow: 0 0 0 18px rgba(63,184,255,0); } 100% { box-shadow: 0 0 0 0 rgba(63,184,255,0); } }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: flex; align-items: center; padding: 140px 0 80px; overflow: hidden; }
.hero .wrap { position: relative; z-index: 2; width: 100%; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }
.display .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.display .ln > span { display: inline-block; transform: translateY(110%); animation: rise 1s var(--ease) forwards; animation-delay: calc(var(--i) * 120ms + 150ms); }
@keyframes rise { to { transform: none; } }
.fade-up { opacity: 0; transform: translateY(24px); animation: fadeUp .9s var(--ease) forwards; animation-delay: var(--d, .6s); }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
.hero .lead { margin: 32px 0 40px; color: rgba(255,255,255,.82); }

.sweep-word { position: relative; display: inline-block; color: var(--glow); }
.sweep-word::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.85) 50%, transparent 80%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 4s ease-in-out infinite 2s; pointer-events: none; }
@keyframes shine { 0% { background-position: 120% 0; } 45%, 100% { background-position: -120% 0; } }

/* Dotted particle spheres (orbital "Org" visual) */
.orbs { position: relative; aspect-ratio: 1; width: min(100%, 560px); margin-left: auto; }
.orb {
  position: absolute; border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(63,184,255,.35), transparent 60%),
    radial-gradient(circle, rgba(63,184,255,.95) 0 1.1px, transparent 1.6px) 0 0 / 7px 7px;
  -webkit-mask: radial-gradient(circle at 40% 38%, #000 30%, rgba(0,0,0,.55) 58%, transparent 71%);
          mask: radial-gradient(circle at 40% 38%, #000 30%, rgba(0,0,0,.55) 58%, transparent 71%);
  filter: drop-shadow(0 0 18px rgba(63,184,255,.45));
  animation: float 9s ease-in-out infinite, spin 40s linear infinite;
}
.orb.o1 { width: 46%; height: 46%; left: 30%; top: 22%; }
.orb.o2 { width: 30%; height: 30%; left: 4%; top: 46%; animation-delay: -2s, -10s; }
.orb.o3 { width: 34%; height: 34%; left: 62%; top: 48%; animation-delay: -4s, -20s; }
.orb.o4 { width: 18%; height: 18%; left: 64%; top: 16%; animation-delay: -6s, -5s; }
.orb.o5 { width: 22%; height: 22%; left: 12%; top: 12%; animation-delay: -3s, -30s; opacity: .7; }
@keyframes float { 0%,100% { translate: 0 0; } 50% { translate: 0 -18px; } }
@keyframes spin { to { rotate: 360deg; } }
.orb-core { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 26%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(63,184,255,.45), transparent 70%); animation: breathe 4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.35); opacity: .6; } }
.orbit-ring { position: absolute; inset: 6%; border-radius: 50%; border: 1px dashed rgba(63,184,255,.25); animation: spin 60s linear infinite reverse; }
.orbit-ring::before { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 16px 4px rgba(63,184,255,.7); }

/* Floating dust being swept away */
.dust { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.dust i { position: absolute; bottom: -10px; width: var(--s, 3px); height: var(--s, 3px); border-radius: 50%; background: rgba(195,226,247,.8); box-shadow: 0 0 8px rgba(63,184,255,.8); left: var(--x); animation: dust var(--t, 14s) linear infinite; animation-delay: var(--dl, 0s); opacity: 0; }
@keyframes dust { 0% { transform: translate(0,0); opacity: 0; } 10% { opacity: .9; } 100% { transform: translate(var(--dx, 60px), -105vh); opacity: 0; } }
.grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask: radial-gradient(ellipse at 70% 40%, #000, transparent 70%); mask: radial-gradient(ellipse at 70% 40%, #000, transparent 70%); animation: gridmove 20s linear infinite; }
@keyframes gridmove { to { background-position: 64px 64px, 64px 64px; } }

.hero-meta { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line-dark); font-size: .92rem; color: rgba(255,255,255,.72); }
.hero-meta b { display: block; color: var(--white); font-size: 1.6rem; font-weight: 500; letter-spacing: -.02em; }

.scroll-cue { position: absolute; right: var(--pad-x); bottom: 24px; width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,.4); border-radius: 14px; z-index: 3; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--glow); animation: cue 1.8s var(--ease) infinite; }
@media (max-width: 960px) { .scroll-cue { display: none; } }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--white); padding: 26px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-size: clamp(1.4rem, 2.6vw, 2.2rem); letter-spacing: -.02em; padding: 0 28px; white-space: nowrap; display: inline-flex; align-items: center; gap: 28px; color: var(--navy); }
.marquee-track span::after { content: "✦"; color: var(--blue-bright); font-size: .6em; }
.marquee-track span:nth-child(odd) s { color: rgba(10,31,92,.35); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Reveal on scroll ---------- */
.rv { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.rv.in { opacity: 1; transform: none; }
.rv-l { opacity: 0; transform: translateX(-40px); transition: .9s var(--ease); }
.rv-l.in { opacity: 1; transform: none; }
.rv-scale { opacity: 0; transform: scale(.94); transition: 1.1s var(--ease); }
.rv-scale.in { opacity: 1; transform: none; }
.no-js .rv, .no-js .rv-l, .no-js .rv-scale { opacity: 1; transform: none; }

/* ---------- Stats / tax calculator ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 56px; }
.stat { background: var(--off); padding: 32px; }
.t-white .stat { background: var(--white); }
.stat .num { font-size: clamp(2.4rem, 4.6vw, 4rem); letter-spacing: -.04em; line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums; }
.stat .num small { font-size: .45em; letter-spacing: 0; color: var(--blue-bright); }
.stat p { margin: 14px 0 0; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; } }

.equation { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 18px; margin-top: 40px; font-size: clamp(1.3rem, 2.8vw, 2.4rem); letter-spacing: -.03em; }
.equation .op { color: var(--blue-bright); }
.equation .res { background: var(--navy); color: var(--white); padding: 4px 18px; border-radius: var(--radius-pill); }

/* ---------- Mess -> Clean visual ---------- */
.mess-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 56px; }
@media (max-width: 760px) { .mess-wrap { grid-template-columns: 1fr; } }
.panel { background: var(--white); border: 1px solid var(--line); padding: 28px; min-height: 340px; position: relative; overflow: hidden; }
.panel h4 { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 20px; display: flex; justify-content: space-between; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: .85rem; padding: 7px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--off); white-space: nowrap; transition: transform 1.1s var(--ease), opacity 1.1s var(--ease), background .6s; }
.messy .chip { transform: rotate(var(--r)) translate(var(--tx), var(--ty)); }
.messy .chip.dup { background: #FFE9E6; border-color: #F5B5AC; }
.messy .chip.dead { opacity: .45; text-decoration: line-through; }
.panel.clean-panel .chip { background: #EAF3FF; border-color: #B9D6FF; }
.cleaned .messy .chip { transform: none; }
.cleaned .messy .chip.dup, .cleaned .messy .chip.dead { transform: translateY(40px) scale(.6); opacity: 0; }
.collapsed .messy .chip.dup, .collapsed .messy .chip.dead { display: none; }
.broom { position: absolute; top: 0; bottom: 0; width: 38%; left: -45%; background: linear-gradient(90deg, transparent, rgba(63,184,255,.28), rgba(63,184,255,.05)); pointer-events: none; }
.cleaned .broom { animation: broom 1.6s var(--ease) forwards; }
@keyframes broom { to { left: 110%; } }
.meter { height: 8px; background: var(--off); border-radius: 8px; overflow: hidden; margin-top: 24px; }
.meter i { display: block; height: 100%; width: var(--from, 22%); background: linear-gradient(90deg, #F06A55, #FFC56B); border-radius: 8px; transition: width 1.6s var(--ease) .3s, background 1.6s; }
.cleaned .meter i { width: var(--to, 92%); background: linear-gradient(90deg, var(--blue), var(--glow)); }
.meter-label { display: flex; justify-content: space-between; font-size: .85rem; margin-top: 8px; }

/* ---------- Cards (square, SalesFive style) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.cards.c2 { grid-template-columns: repeat(2, 1fr); }
.cards.c4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .cards.c4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .cards, .cards.c2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .cards.c4 { grid-template-columns: 1fr; } }
.card {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  min-height: 320px; padding: 28px; background: var(--ink); color: var(--white);
  text-decoration: none; overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease);
}
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(130% 100% at var(--mx, 85%) var(--my, 0%), rgba(30,107,240,.5), rgba(30,107,240,.12) 45%, transparent 80%); opacity: .55; transition: opacity .5s; }
.card:hover { transform: translateY(-6px); }
.card:hover::before { opacity: 1; }
.card .k { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--glow); font-weight: 600; }
.card h3 { margin-top: auto; padding-top: 48px; }
.card p { color: rgba(255,255,255,.75); margin: 14px 0 0; font-size: .98rem; }
.card .more { margin-top: 22px; display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; }
.card .more svg { transition: transform .35s var(--ease); }
.card:hover .more svg { transform: translateX(6px); }
.card.light { background: var(--white); color: var(--ink); border: 1px solid var(--line); }
.card.light p { color: rgba(2,6,26,.7); }
.card.light .k { color: var(--blue); }
.card.light::before { background: radial-gradient(130% 100% at var(--mx, 85%) var(--my, 0%), rgba(63,184,255,.2), rgba(63,184,255,.05) 45%, transparent 80%); }
.card .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(63,184,255,.12); color: var(--glow); margin-bottom: 20px; }
.card.light .ico { background: #EAF3FF; color: var(--blue); }
.card.featured { background: linear-gradient(145deg, var(--blue) 0%, var(--navy) 60%, var(--ink) 100%); }

/* ---------- Audit steps / timeline ---------- */
.steps { counter-reset: s; display: grid; gap: 0; margin-top: 48px; border-top: 1px solid var(--line-dark); }
.step { counter-increment: s; display: grid; grid-template-columns: 90px 1fr 1.3fr; gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--line-dark); align-items: start; position: relative; }
.step::before { content: "0" counter(s); font-size: 1rem; color: var(--glow); font-variant-numeric: tabular-nums; padding-top: 6px; }
.step::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: var(--glow); transition: width 1.2s var(--ease); }
.step.in::after { width: 100%; }
.step p { margin: 0; color: rgba(255,255,255,.75); }
.t-off .step, .t-white .step { border-color: var(--line); }
.t-off .steps, .t-white .steps { border-color: var(--line); }
.t-off .step p, .t-white .step p { color: rgba(2,6,26,.72); }
.t-off .step::before, .t-white .step::before { color: var(--blue); }
@media (max-width: 760px) { .step { grid-template-columns: 1fr; gap: 10px; } }

/* Audit orbit of eight areas */
.orbit { position: relative; width: min(100%, 520px); aspect-ratio: 1; margin: 0 auto; }
.orbit .center { position: absolute; inset: 32%; border-radius: 50%; display: grid; place-items: center; text-align: center; background: radial-gradient(circle, var(--blue) 0%, var(--navy) 70%); color: var(--white); box-shadow: 0 0 60px rgba(30,107,240,.45); font-weight: 500; letter-spacing: -.02em; }
.orbit .center small { display: block; font-size: .75rem; color: var(--ice); letter-spacing: .06em; text-transform: uppercase; }
.orbit .ring { position: absolute; inset: 0; animation: spin 50s linear infinite; }
.orbit .ring::before { content: ""; position: absolute; inset: 12%; border-radius: 50%; border: 1px dashed rgba(10,31,92,.25); }
.orbit .node { position: absolute; left: 50%; top: 50%; width: 132px; margin: -22px 0 0 -66px; transform: rotate(var(--a)) translateY(-205px) rotate(calc(-1 * var(--a))); }
.orbit .node span { display: block; text-align: center; font-size: .8rem; font-weight: 600; padding: 8px 10px; border-radius: var(--radius-pill); background: var(--white); border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(10,31,92,.08); animation: spin 50s linear infinite reverse; }
@media (max-width: 560px) {
  .orbit .node { width: 88px; margin-left: -44px; transform: rotate(var(--a)) translateY(-37vw) rotate(calc(-1 * var(--a))); }
  .orbit .node span { font-size: .68rem; padding: 6px 6px; }
}

/* Scorecard bars */
.score { display: grid; gap: 14px; margin-top: 28px; }
.score-row { display: grid; grid-template-columns: 190px 1fr 42px; gap: 14px; align-items: center; font-size: .92rem; }
.score-row .bar { height: 10px; border-radius: 10px; background: rgba(255,255,255,.1); overflow: hidden; }
.t-off .score-row .bar, .t-white .score-row .bar { background: rgba(10,31,92,.08); }
.score-row .bar i { display: block; height: 100%; width: 0; border-radius: 10px; background: linear-gradient(90deg, var(--blue), var(--glow)); transition: width 1.4s var(--ease); transition-delay: calc(var(--i) * 120ms); }
.score.in .score-row .bar i { width: var(--v); }
.score-row b { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .score-row { grid-template-columns: 1fr 42px; } .score-row .bar { grid-column: 1 / -1; order: 3; } }

/* Fit checklist */
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; font-size: 1.05rem; }
.checks li::before { content: ""; flex: 0 0 24px; height: 24px; border-radius: 50%; background: var(--glow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%2302061A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }

/* ---------- Quote / principle ---------- */
.big-quote { font-size: clamp(1.8rem, 4vw, 3.3rem); line-height: 1.12; letter-spacing: -.03em; }
.big-quote .hl { background: linear-gradient(transparent 62%, rgba(63,184,255,.45) 62%); background-size: 0% 100%; background-repeat: no-repeat; transition: background-size 1.4s var(--ease) .4s; }
.in .big-quote .hl, .big-quote.in .hl { background-size: 100% 100%; }

.ratio { display: flex; height: 64px; border-radius: 12px; overflow: hidden; margin-top: 40px; font-weight: 600; }
.ratio .a { flex: 85; background: var(--navy); color: var(--white); display: flex; align-items: center; padding: 0 20px; }
.ratio .b { flex: 0; background: var(--glow); color: var(--ink); display: flex; align-items: center; justify-content: center; white-space: nowrap; overflow: hidden; transition: flex 1.6s var(--ease) .3s; }
.ratio.in .b { flex: 15; }

/* ---------- About ---------- */
.about-img { position: relative; overflow: hidden; border-radius: 4px; }
.about-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 2.4s var(--ease); }
.about-img.in img { transform: scale(1); }
.about-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(2,6,26,.55), transparent 45%); }
.creds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.creds span { padding: 8px 14px; border-radius: var(--radius-pill); border: 1px solid var(--line-dark); font-size: .9rem; }
.t-off .creds span, .t-white .creds span { border-color: var(--line); background: var(--white); }

/* ---------- CTA band ---------- */
.cta-band { overflow: hidden; }
.cta-band .wrap { position: relative; z-index: 2; }
.cta-band .display { max-width: 16ch; }
.cta-band .bgimg { position: absolute; inset: 0; background: url("/assets/img/crew.webp") center 30%/cover; opacity: .22; animation: kenburns 30s ease-in-out infinite alternate; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 20%, rgba(2,6,26,.6) 70%, rgba(2,6,26,.3)); z-index: 1; }
@keyframes kenburns { to { transform: scale(1.12) translate(-2%, -2%); } }

/* ---------- Article pages ---------- */
.article-hero { padding: 160px 0 64px; }
.article-hero .display { font-size: clamp(2.2rem, 5vw, 4.2rem); max-width: 20ch; }
.meta-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; font-size: .92rem; color: rgba(255,255,255,.7); }
.prose { font-size: 1.14rem; line-height: 1.72; max-width: 70ch; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -.025em; line-height: 1.2; margin: 2em 0 .6em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--blue); }
.prose blockquote { margin: 1.6em 0; padding: 8px 0 8px 24px; border-left: 3px solid var(--glow); font-size: 1.35rem; letter-spacing: -.02em; line-height: 1.4; }
.prose .callout { background: var(--off); padding: 24px 28px; border-radius: 4px; margin: 2em 0; }
.prose code { font-size: .9em; background: var(--off); padding: 2px 6px; border-radius: 4px; }
.flow { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.2em 0 1.6em; }
.flow span { font-size: .86rem; padding: 6px 12px; border-radius: var(--radius-pill); background: #EAF3FF; color: var(--navy); position: relative; }
.flow span:not(:last-child)::after { content: "→"; margin-left: 10px; color: var(--blue); }
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--blue), var(--glow)); z-index: 60; }

/* Legal pages */
.legal { font-size: 1.02rem; line-height: 1.7; max-width: 78ch; }
.legal h2 { font-size: 1.6rem; letter-spacing: -.02em; margin: 2.2em 0 .6em; }
.legal h3 { font-size: 1.15rem; font-weight: 600; margin: 1.8em 0 .4em; }
.legal address { font-style: normal; }
.lang-switch { display: inline-flex; gap: 6px; margin-top: 24px; }
.lang-switch a { padding: 8px 16px; border-radius: var(--radius-pill); border: 1px solid var(--line-dark); text-decoration: none; font-size: .9rem; }
.lang-switch a:hover { background: rgba(255,255,255,.1); }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 72px 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.75); padding: 88px 0 32px; font-size: .95rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 64px; border-bottom: 1px solid var(--line-dark); }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--white); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--glow); }
.site-footer .brand .w1 { color: var(--white); }
.site-footer .brand .w2 { color: var(--glow); }
.site-footer .brand img { filter: brightness(0) invert(1); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; font-size: .85rem; }
.giant { font-size: clamp(4rem, 17vw, 16rem); letter-spacing: -.06em; line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.14); margin-top: 56px; white-space: nowrap; user-select: none; overflow: hidden; }
.giant span { display: inline-block; background: linear-gradient(90deg, transparent 0%, rgba(63,184,255,.5) 50%, transparent 100%) -100% 0 / 50% 100% no-repeat; -webkit-background-clip: text; background-clip: text; animation: sweepText 6s ease-in-out infinite; }
@keyframes sweepText { to { background-position: 200% 0; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .rv, .rv-l, .rv-scale, .fade-up { opacity: 1 !important; transform: none !important; }
  .hero h1 .ln > span { transform: none; }
  .dust { display: none; }
}

/* ======================= v2: essence rebuild ======================= */
.col-a, .col-b { min-width: 0; }
@media (max-width: 900px) { .col-a, .col-b { grid-column: 1 / -1 !important; } }

/* Hero visual: crew image with floating result tags */
.hero-visual { position: relative; width: min(100%, 560px); margin-left: auto; aspect-ratio: 1; }
.hero-visual .orbs { position: absolute; inset: -8%; width: auto; opacity: .55; }
.crew { position: absolute; inset: 9%; margin: 0; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1px rgba(63,184,255,.35), 0 0 80px rgba(30,107,240,.45); animation: float 10s ease-in-out infinite; }
.crew img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.08); animation: kenburns 24s ease-in-out infinite alternate; }
.crew::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 50% 40%, transparent 55%, rgba(2,6,26,.55)); }
.float-tag { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 10px; border-radius: 999px; font-size: .82rem; font-weight: 600; color: var(--ink); background: rgba(255,255,255,.92); box-shadow: 0 12px 30px rgba(2,6,26,.35); white-space: nowrap; animation: tagIn .8s var(--ease) both, float 7s ease-in-out infinite; backdrop-filter: blur(8px); }
.float-tag i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--glow); font-size: .75rem; }
.float-tag.t1 { top: 6%; left: -4%; animation-delay: 1.2s, 0s; }
.float-tag.t2 { top: 30%; right: -6%; animation-delay: 1.5s, -2s; }
.float-tag.t3 { bottom: 20%; left: -8%; animation-delay: 1.8s, -4s; }
.float-tag.t4 { bottom: 4%; right: 2%; animation-delay: 2.1s, -1s; }
@keyframes tagIn { from { opacity: 0; transform: translateY(16px) scale(.9); } to { opacity: 1; transform: none; } }
@media (max-width: 960px) { .hero-visual { margin: 24px auto 0; width: min(100%, 420px); } .float-tag { font-size: .72rem; } .float-tag.t1 { left: 0; } .float-tag.t3 { left: 0; } .float-tag.t2 { right: 0; } }

/* Moments */
.moments { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
@media (max-width: 1100px) { .moments { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .moments { grid-template-columns: 1fr; } }
.moment { background: var(--off); padding: 28px; display: flex; flex-direction: column; gap: 14px; border-top: 3px solid transparent; transition: border-color .4s var(--ease), transform .4s var(--ease), background .4s; position: relative; }
.moment:hover { border-top-color: var(--glow); transform: translateY(-4px); background: #EAF3FF; }
.moment .k { font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--blue); }
.moment blockquote { margin: 0; font-size: 1.35rem; line-height: 1.25; letter-spacing: -.02em; color: var(--navy); }
.moment p { margin: 0; font-size: .95rem; color: rgba(2,6,26,.72); }
.moment .more { margin-top: auto; font-weight: 600; font-size: .9rem; text-decoration: none; display: inline-flex; gap: 8px; align-items: baseline; color: var(--ink); }
.moment .more svg { flex: 0 0 auto; transition: transform .3s var(--ease); }
.moment .more:hover svg { transform: translateX(4px); }
.moment .topic-link { font-size: .82rem; color: var(--blue); text-decoration: none; }
.moment .topic-link:hover { text-decoration: underline; }

/* Steps in light sections */
.light-steps .step { border-color: var(--line); }
.light-steps { border-color: var(--line); }
.light-steps .step p { color: rgba(2,6,26,.72); }
.light-steps .step::before { color: var(--blue); }
.light-steps .step::after { background: var(--blue); }
.stats.s3 .stat { background: var(--off); }

/* Compare */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }
.compare .col { padding: 28px; border-radius: 4px; }
.compare .bad { background: rgba(255,255,255,.05); border: 1px solid var(--line-dark); }
.compare .good { background: linear-gradient(145deg, rgba(30,107,240,.35), rgba(63,184,255,.12)); border: 1px solid rgba(63,184,255,.4); }
.compare h3 { font-size: 1.4rem; letter-spacing: -.02em; margin-bottom: 16px; }
.compare ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.compare li { padding-left: 28px; position: relative; color: rgba(255,255,255,.82); }
.compare .bad li::before { content: "×"; position: absolute; left: 4px; color: #F06A55; font-weight: 700; }
.compare .good li::before { content: "✓"; position: absolute; left: 2px; color: var(--glow); font-weight: 700; }

/* Topic chips */
.tchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tchip, .fchip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); text-decoration: none; font-size: .9rem; font-weight: 500; color: var(--ink); cursor: pointer; transition: .25s var(--ease); font-family: inherit; }
.tchip b, .fchip b { font-weight: 600; font-size: .75rem; padding: 2px 7px; border-radius: 999px; background: var(--off); color: var(--navy); }
.tchip:hover, .fchip:hover { border-color: var(--blue); color: var(--blue); }
.fchip[aria-pressed="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.fchip[aria-pressed="true"] b { background: var(--glow); color: var(--ink); }

/* Library filter */
.filterbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; position: sticky; top: 84px; z-index: 5; padding: 14px 0; background: linear-gradient(var(--off) 80%, transparent); }
.fchips { display: flex; flex-wrap: wrap; gap: 8px; }
.search input { font: inherit; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); min-width: min(320px, 100%); outline: none; transition: border-color .2s, box-shadow .2s; }
.search input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(30,107,240,.15); }
.search { flex: 1 1 260px; display: flex; justify-content: flex-end; }
@media (max-width: 760px) { .search { justify-content: stretch; } .search input { width: 100%; } .filterbar { position: static; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.fcount { margin: 8px 0 0; font-size: .9rem; color: rgba(2,6,26,.6); }
.lib .card { min-height: 280px; }
.lib .card.hide { display: none; }
.empty { padding: 40px 0; font-size: 1.1rem; }

/* Article side */
.sticky-side { position: sticky; top: 120px; align-self: start; }
@media (max-width: 900px) { .sticky-side { position: static; order: 2; } }
.side-quote { font-size: 1.2rem; line-height: 1.3; letter-spacing: -.02em; color: var(--navy); margin: 14px 0; }
.prose .ps { font-size: .95rem; color: rgba(2,6,26,.62); font-style: italic; }
.prose h3 { font-size: 1.25rem; letter-spacing: -.015em; margin: 1.6em 0 .4em; }
@media (max-width: 760px) {
  .fchips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin: 0 calc(-1 * var(--pad-x)); padding-left: var(--pad-x); scrollbar-width: none; }
  .fchip { flex: 0 0 auto; }
  .hero-meta { gap: 18px 28px; }
  .hero-meta > div { flex: 1 1 40%; }
}

/* X-Ray: two scores */
.xgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
@media (max-width: 760px) { .xgrid { grid-template-columns: 1fr; } }
.xcard { background: var(--white); border: 1px solid var(--line); padding: 32px; position: relative; overflow: hidden; }
.xcard::after { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--blue), var(--glow)); transition: width 1.2s var(--ease) .3s; }
.xcard.in::after { width: 100%; }
.xhead { display: flex; gap: 18px; align-items: flex-start; }
.xnum { flex: 0 0 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 1.1rem; font-weight: 600; color: var(--white); background: radial-gradient(circle at 35% 30%, var(--blue-bright), var(--navy)); box-shadow: 0 0 0 6px rgba(63,184,255,.15); }
.xhead h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -.025em; }
.xhead p { margin: 4px 0 0; color: rgba(2,6,26,.65); }
.xcard ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.xcard li { padding-left: 26px; position: relative; }
.xcard li::before { content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--glow); }
.xextra { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 16px; }
.xextra > div { background: var(--navy); color: var(--white); padding: 22px 24px; display: flex; flex-direction: column; gap: 4px; }
.xextra b { font-weight: 600; }
.xextra span { font-size: .9rem; color: rgba(255,255,255,.72); }
@media (max-width: 760px) { .xextra { grid-template-columns: 1fr; } }
