/* =========================================================
   Pirate Connect 360 — Concept
   Independent concept · Alto Gary, MBA · Carson July LLC
   ========================================================= */

:root {
  --void: #07030C;
  --night: #0C0614;
  --plum-950: #120820;
  --plum-900: #1A0C2E;
  --plum-800: #25103F;
  --plum-700: #341659;
  --plum-600: #4A1F80;
  --plum-500: #6530AD;
  --plum-300: #B9A2E8;
  --gold-100: #FFF4D6;
  --gold-200: #FBE3A4;
  --gold-300: #F3CD72;
  --gold-400: #E9B44C;
  --gold-500: #D9A034;
  --gold-700: #9A6E1C;
  --charcoal: #121017;
  --charcoal-2: #19161F;
  --charcoal-3: #221E2A;
  --ivory: #F5F0E6;
  --ivory-2: #ECE4D4;
  --ink: #1B1324;

  --text: rgba(255, 252, 245, .93);
  --muted: rgba(255, 250, 240, .62);
  --faint: rgba(255, 250, 240, .38);
  --line: rgba(255, 250, 240, .09);
  --line-2: rgba(255, 250, 240, .14);

  --gold-grad: linear-gradient(135deg, #FFF0C2 0%, #E9B44C 48%, #B07F22 100%);
  --gold-text: linear-gradient(180deg, #FFF6DA 0%, #F3CD72 38%, #D9A034 70%, #8F6316 100%);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1260px;
  --r: 24px;
  /* iPhone notch / home-indicator insets (non-zero when launched full-screen from the Home Screen) */
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(90px + var(--sat)); background: var(--night); }
body {
  margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.55;
  background: var(--night); color: var(--text);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.locked { overflow: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.04; }
p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--gold-400); color: var(--plum-950); }
:focus-visible { outline: 2px solid var(--gold-300); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; position: relative; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; font-optical-sizing: auto; }

/* ---------- Intro ---------- */
.intro {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; align-content: center; gap: 26px;
  background: radial-gradient(60% 50% at 50% 45%, #2A1150 0%, var(--void) 70%);
  transition: clip-path 1.1s var(--ease-io), opacity .6s 0.6s;
  clip-path: inset(0 0 0 0);
}
.intro.done { clip-path: inset(0 0 100% 0); pointer-events: none; }
.intro.gone { display: none; }
.intro-core { position: relative; width: 168px; height: 168px; }
.intro-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.intro-ring circle { fill: none; stroke-width: 1.5; }
.ir-track { stroke: rgba(255, 255, 255, .08); }
.ir-arc { stroke: var(--gold-400); stroke-linecap: round; stroke-dasharray: 553; stroke-dashoffset: 553; filter: drop-shadow(0 0 8px rgba(233, 180, 76, .8)); }
.intro-num { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-size: 30px; font-weight: 500; color: var(--gold-200); letter-spacing: .04em; }
.intro-num i { position: absolute; font-style: normal; transform: translate(42px, -10px); font-size: 18px; color: var(--gold-400); }
.intro-word { font-size: 12px; font-weight: 700; letter-spacing: .4em; text-transform: uppercase; color: var(--muted); }
.intro-word b { color: var(--gold-300); }

/* ---------- Progress ---------- */
.progress { position: fixed; inset: var(--sat) 0 auto 0; height: 2px; z-index: 70; pointer-events: none; }
.progress span { display: block; height: 100%; width: 0; background: var(--gold-grad); box-shadow: 0 0 14px rgba(233, 180, 76, .8); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: calc(14px + var(--sat)); left: 50%; transform: translateX(-50%);
  width: min(1280px, calc(100% - 28px)); z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 10px 10px 10px 14px; border-radius: 18px;
  border: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s, box-shadow .4s, color .4s, top .4s var(--ease);
}
.nav.scrolled {
  background: rgba(12, 6, 20, .72); border-color: var(--line);
  backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
}
.nav.on-light { background: rgba(250, 246, 238, .82); border-color: rgba(27, 19, 36, .08); color: var(--ink); }
.nav.on-light .nav-links a { color: rgba(27, 19, 36, .6); }
.nav.on-light .nav-links a:hover, .nav.on-light .nav-links a.active { color: var(--ink); background: rgba(27, 19, 36, .06); }
.nav.on-light .nav-links a i { color: var(--gold-700); }
.nav.on-light .nav-cta { color: var(--plum-950); }
.nav.on-light .nav-menu span { background: var(--ink); }
.nav.on-light .brand b { background: linear-gradient(180deg, #C99022, #8A5F14); -webkit-background-clip: text; background-clip: text; }
.brand { display: flex; align-items: center; gap: 11px; font-size: 15px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.brand-text { text-transform: uppercase; font-stretch: 88%; letter-spacing: .06em; }
.brand b { font-weight: 900; background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { font-size: 13.5px; font-weight: 600; color: var(--muted); padding: 9px 14px; border-radius: 11px; transition: color .25s, background .25s; }
.nav-links a i { font-style: normal; font-family: var(--mono); font-size: 10.5px; color: var(--gold-400); margin-right: 5px; }
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255, 255, 255, .07); }
.nav-cta {
  font-size: 13px; font-weight: 800; padding: 11px 18px; border-radius: 12px; color: var(--plum-950);
  background: var(--gold-grad); box-shadow: 0 10px 30px -10px rgba(233, 180, 76, .7), inset 0 1px 0 rgba(255, 255, 255, .5);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 14px 36px -10px rgba(233, 180, 76, .9), inset 0 1px 0 rgba(255, 255, 255, .5); }
.nav-menu { display: none; width: 44px; height: 44px; border-radius: 12px; position: relative; }
.nav-menu span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: #fff; border-radius: 2px; transition: transform .35s var(--ease), top .35s var(--ease); }
.nav-menu span:first-child { top: 18px; } .nav-menu span:last-child { top: 25px; }
.nav-menu[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.nav-menu[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

.sheet {
  position: fixed; inset: 0; z-index: 55; padding: calc(110px + var(--sat)) 28px calc(40px + var(--sab)); display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(80% 50% at 80% 0%, rgba(101, 48, 173, .45), transparent 60%), rgba(9, 4, 15, .97);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
}
.sheet.open { opacity: 1; visibility: visible; }
.sheet nav { display: grid; }
.sheet a { display: flex; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 30px; font-weight: 800; font-stretch: 75%; text-transform: uppercase; letter-spacing: .01em; transform: translateY(16px); opacity: 0; transition: transform .6s var(--ease), opacity .6s; }
.sheet.open a { transform: none; opacity: 1; }
.sheet.open a:nth-child(2) { transition-delay: .05s; } .sheet.open a:nth-child(3) { transition-delay: .1s; } .sheet.open a:nth-child(4) { transition-delay: .15s; }
.sheet a i { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--gold-400); font-weight: 500; }
.sheet p { font-size: 12px; color: var(--faint); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 17px 26px; border-radius: 14px; font-weight: 800; font-size: 15px; letter-spacing: .01em; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s, background .35s, color .35s, border-color .35s;
}
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-gold { background: var(--gold-grad); color: var(--plum-950); box-shadow: 0 16px 44px -14px rgba(233, 180, 76, .75), inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -1px 0 rgba(0, 0, 0, .12); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 22px 54px -14px rgba(233, 180, 76, .9), inset 0 1px 0 rgba(255, 255, 255, .55); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .2); color: #fff; background: rgba(255, 255, 255, .03); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .08); }
.btn-ghost .spark { color: var(--gold-300); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.link-btn { font-size: 13px; font-weight: 700; color: var(--gold-300); padding: 8px 0; transition: color .25s; }
.link-btn:hover { color: var(--gold-100); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 100ms); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Medallions (fictional monogram avatars) ---------- */
.medal {
  --h: 270; --s: 64px;
  position: relative; flex: none; width: var(--s); height: var(--s); border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif); font-style: italic; font-weight: 400; font-size: calc(var(--s) * .38); letter-spacing: -.02em;
  color: var(--gold-100);
  background:
    radial-gradient(120% 90% at 30% 15%, hsl(var(--h) 52% 46% / .95), transparent 55%),
    radial-gradient(100% 100% at 70% 100%, hsl(calc(var(--h) + 20) 60% 10%), hsl(var(--h) 45% 20%));
  box-shadow: inset 0 0 0 1px rgba(255, 240, 200, .28), inset 0 1px 0 rgba(255, 255, 255, .25), 0 8px 22px -8px rgba(0, 0, 0, .7);
}
.medal::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1px solid rgba(233, 180, 76, .38); }
.medal.xs { --s: 30px; font-size: 11px; font-family: var(--sans); font-style: normal; font-weight: 700; }
.medal.xs::after { display: none; }
.medal.sm { --s: 42px; }
.medal.lg { --s: 92px; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden; isolation: isolate;
  background:
    radial-gradient(70% 70% at 74% 42%, rgba(74, 31, 128, .62) 0%, rgba(37, 16, 63, .35) 40%, transparent 70%),
    radial-gradient(60% 50% at 0% 100%, rgba(101, 48, 173, .25), transparent 60%),
    linear-gradient(180deg, #0B0513 0%, #100719 60%, var(--void) 100%);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -3; }
.hero-light { position: absolute; inset: 0; z-index: -2; pointer-events: none; mix-blend-mode: screen; }
.hero-light span {
  position: absolute; top: -20%; width: 30vw; height: 130%; transform-origin: 50% 0;
  background: linear-gradient(180deg, rgba(255, 232, 180, .16), rgba(255, 220, 150, .04) 45%, transparent 75%);
  clip-path: polygon(47% 0, 53% 0, 100% 100%, 0 100%); filter: blur(20px);
  animation: sway 14s ease-in-out infinite alternate;
}
.hero-light span:nth-child(1) { left: 52%; rotate: 24deg; }
.hero-light span:nth-child(2) { left: 66%; rotate: 6deg; animation-delay: -5s; opacity: .7; }
.hero-light span:nth-child(3) { right: -8%; rotate: -24deg; animation-delay: -9s; }
@keyframes sway { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
.hero-vignette {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 3, 12, .9) 0%, rgba(7, 3, 12, .45) 40%, rgba(7, 3, 12, 0) 66%),
    linear-gradient(0deg, var(--void) 0%, rgba(7, 3, 12, 0) 32%),
    linear-gradient(180deg, rgba(7, 3, 12, .6) 0%, rgba(7, 3, 12, 0) 18%);
}
.grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-inner { width: min(var(--wrap), 100% - 48px); margin: 0 auto; padding: calc(150px + var(--sat)) 0 40px; position: relative; }
.hero-in { opacity: 0; transform: translateY(34px); filter: blur(8px); }
body.ready .hero-in { animation: heroIn 1.3s var(--ease) both; animation-delay: calc(var(--i) * 110ms + 100ms); }
@keyframes heroIn { to { opacity: 1; transform: none; filter: none; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-200);
  padding: 9px 16px; border-radius: 99px; border: 1px solid rgba(233, 180, 76, .28); background: rgba(233, 180, 76, .06);
}
.eyebrow em { font-style: normal; color: var(--gold-500); }
.eyebrow .dot, .live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-400); box-shadow: 0 0 0 4px rgba(233, 180, 76, .2); animation: pulse 2.4s infinite; flex: none; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(233, 180, 76, 0); } }

.hero-title { margin: 30px 0 26px; font-weight: 900; text-transform: uppercase; line-height: .8; letter-spacing: -0.012em; font-stretch: 62%; }
.ht-row { display: flex; align-items: flex-end; gap: .12em; font-size: clamp(76px, 12.4vw, 200px); color: #fff; text-shadow: 0 14px 70px rgba(0, 0, 0, .55); }
.ht-row + .ht-row { margin-top: .03em; }
.ht-360 {
  position: relative; font-style: italic; font-stretch: 70%;
  background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 18px 50px rgba(233, 180, 76, .3)); text-shadow: none; padding-right: .06em;
}
.ht-360 sup { font-size: .38em; vertical-align: top; position: relative; top: .1em; margin-left: .02em; }
.ht-360::after {
  content: attr(data-text); position: absolute; left: 0; top: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .9) 50%, transparent 62%) 0 0 / 260% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 7s ease-in-out infinite 2.4s;
}
@keyframes shine { 0% { background-position: 130% 0; } 35%, 100% { background-position: -130% 0; } }
.hero-sub { font-size: clamp(22px, 2.5vw, 34px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.18; max-width: 720px; color: #fff; }
.hero-sub em { font-family: var(--serif); font-weight: 400; color: var(--gold-200); letter-spacing: -0.02em; }
.hero-copy { margin-top: 18px; max-width: 560px; font-size: 17px; color: var(--muted); }
.hero-actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-actions.center { justify-content: center; }
.credit { margin-top: 46px; display: flex; align-items: center; gap: 16px; }
.credit.center { justify-content: center; text-align: center; }
.credit-rule { width: 44px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-400)); }
.credit.center .credit-rule:last-child { background: linear-gradient(90deg, var(--gold-400), transparent); }
.credit small { display: block; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); font-weight: 700; margin-bottom: 2px; }
.credit strong { font-weight: 800; font-size: 16px; margin-right: 8px; }
.credit span { color: var(--gold-200); font-family: var(--serif); font-style: italic; font-size: 15px; }

.hero-pings { position: absolute; left: 62%; top: 30%; z-index: 1; pointer-events: none; }
.ping {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 12px; border-radius: 14px;
  background: rgba(18, 8, 32, .62); border: 1px solid rgba(233, 180, 76, .22);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8);
  opacity: 0; transform: translateY(10px) scale(.96); transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.ping.show { opacity: 1; transform: none; }
.ping-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-400); box-shadow: 0 0 12px var(--gold-400); }
.ping small { display: block; font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.ping b { font-size: 13.5px; font-weight: 700; }

.hero-foot { width: min(var(--wrap), 100% - 48px); margin: 0 auto; padding: 0 0 30px; position: relative; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); padding-top: 22px; }
.hero-stats div { display: flex; gap: 14px; align-items: baseline; padding-right: 24px; }
.hero-stats div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.hero-stats b { font-size: 30px; font-weight: 900; font-stretch: 70%; color: var(--gold-300); letter-spacing: -.01em; }
.hero-stats span { font-size: 13px; color: var(--muted); line-height: 1.35; }
.disclaimer { margin-top: 18px; font-size: 11.5px; color: var(--faint); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--void); padding: 22px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 34px; width: max-content; animation: marquee 50s linear infinite; }
.marquee span { font-size: 22px; font-weight: 800; font-stretch: 70%; text-transform: uppercase; letter-spacing: .06em; color: rgba(255, 250, 240, .5); white-space: nowrap; }
.marquee span:nth-of-type(3n+1) { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--gold-200); font-size: 24px; }
.marquee i { font-style: normal; color: var(--gold-500); font-size: 11px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   SECTION HEADS
   ========================================================= */
section { position: relative; }
.section-head { margin-bottom: 70px; }
.section-head.center { text-align: center; max-width: 860px; margin-inline: auto; }
.section-head.split { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 56px; align-items: end; }
.section-head.split .lede { padding-bottom: 8px; }
.kicker { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-300); margin-bottom: 22px; }
.kicker b { font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .04em; padding: 4px 8px; border-radius: 7px; border: 1px solid rgba(233, 180, 76, .4); }
.display { font-size: clamp(46px, 6.4vw, 96px); font-weight: 900; font-stretch: 66%; text-transform: uppercase; line-height: .9; letter-spacing: -0.005em; }
.display .serif { text-transform: none; font-stretch: 100%; font-weight: 300; font-size: 1.02em; letter-spacing: -0.035em; color: var(--gold-200); line-height: 1; }
.display.xl { font-size: clamp(54px, 8.6vw, 138px); }
.lede { font-size: 18px; color: var(--muted); max-width: 560px; line-height: 1.6; }
.section-head.center .lede { margin: 26px auto 0; }

/* =========================================================
   THE LOOP
   ========================================================= */
.loop {
  padding: 150px 0 140px; overflow: hidden;
  background:
    radial-gradient(50% 60% at 78% 50%, rgba(74, 31, 128, .4), transparent 70%),
    linear-gradient(180deg, var(--void), var(--plum-950));
}
.loop-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.loop-copy .lede { margin-top: 26px; }
.loop-list { margin-top: 44px; display: grid; border-top: 1px solid var(--line); }
.loop-list li { display: flex; gap: 20px; align-items: baseline; padding: 18px 8px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .3s, padding .4s var(--ease); border-radius: 4px; }
.loop-list li i { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--faint); transition: color .3s; }
.loop-list li b { display: block; font-size: 20px; font-weight: 800; font-stretch: 80%; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); transition: color .3s; }
.loop-list li span { font-size: 14.5px; color: var(--faint); transition: color .3s; }
.loop-list li.on { padding-left: 18px; background: linear-gradient(90deg, rgba(233, 180, 76, .1), transparent 70%); }
.loop-list li.on i { color: var(--gold-400); }
.loop-list li.on b { color: #fff; }
.loop-list li.on span { color: var(--muted); }
.loop-visual { position: relative; aspect-ratio: 1; max-width: 560px; width: 100%; margin-inline: auto; }
.loop-visual svg { width: 100%; height: 100%; overflow: visible; }
.loop-seg { fill: none; stroke-width: 26; stroke-linecap: butt; stroke: rgba(255, 255, 255, .05); transition: stroke .5s, stroke-width .5s var(--ease); cursor: pointer; }
.loop-seg.on { stroke: url(#segGold); stroke-width: 30; }
.loop-tick { stroke: rgba(255, 250, 240, .18); stroke-width: 1; }
.loop-tick.major { stroke: rgba(233, 180, 76, .55); }
.loop-label { font-family: var(--sans); font-size: 12px; font-weight: 800; letter-spacing: .2em; fill: var(--faint); text-transform: uppercase; transition: fill .4s; }
.loop-label.on { fill: var(--gold-200); }
.loop-orbit { fill: none; stroke: rgba(255, 250, 240, .08); stroke-dasharray: 2 6; }
.loop-runner { fill: var(--gold-200); filter: drop-shadow(0 0 8px var(--gold-400)); }
.loop-center { position: absolute; inset: 27%; display: grid; place-content: center; text-align: center; gap: 8px; }
.loop-center small { font-family: var(--mono); font-size: 12px; color: var(--gold-400); }
.loop-center b { font-size: clamp(30px, 3.6vw, 48px); font-weight: 900; font-stretch: 66%; text-transform: uppercase; line-height: 1; }
.loop-center span { font-size: 14px; color: var(--muted); max-width: 230px; margin-inline: auto; line-height: 1.45; }
.loop-center.swap > * { animation: fadeUp .6s var(--ease) both; }
.loop-center.swap > *:nth-child(2) { animation-delay: .05s; } .loop-center.swap > *:nth-child(3) { animation-delay: .1s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* =========================================================
   01 PIRATE CONNECT LIVE
   ========================================================= */
.live { padding: 150px 0 150px; overflow: hidden; background: linear-gradient(180deg, var(--plum-950) 0%, #170A29 50%, var(--night) 100%); }
.live-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(36% 40% at 50% 62%, rgba(101, 48, 173, .5), transparent 70%),
    radial-gradient(20% 24% at 50% 70%, rgba(233, 180, 76, .14), transparent 70%),
    repeating-linear-gradient(90deg, transparent 0 129px, rgba(255, 255, 255, .022) 129px 130px);
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
}
.live-stage { display: grid; grid-template-columns: 270px 1fr 340px; gap: 40px; align-items: center; }

.persona { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); margin-bottom: 26px; }
.persona small { display: block; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.persona b { display: block; font-size: 15.5px; font-weight: 800; }
.persona span:not(.medal) { font-size: 12.5px; color: var(--muted); }

.steps { position: relative; display: grid; gap: 2px; margin-bottom: 18px; }
.steps::before { content: ""; position: absolute; left: 15px; top: 24px; bottom: 24px; width: 1px; background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .18), rgba(255, 255, 255, .04)); }
.steps li { position: relative; display: flex; gap: 18px; padding: 13px 14px 13px 6px; border-radius: 14px; transition: background .4s; }
.steps li i { position: relative; z-index: 1; flex: none; width: 19px; height: 19px; margin: 3px 0 0 1px; border-radius: 50%; background: var(--plum-900); border: 1.5px solid rgba(255, 255, 255, .25); transition: all .4s var(--ease); }
.steps li b { display: block; font-size: 16px; font-weight: 800; font-stretch: 85%; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); transition: color .4s; }
.steps li span { font-size: 13px; color: var(--faint); transition: color .4s; }
.steps li.done i { background: var(--gold-500); border-color: var(--gold-500); }
.steps li.done i::after { content: ""; position: absolute; left: 5px; top: 3px; width: 5px; height: 8px; border: solid var(--plum-950); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.steps li.done b { color: var(--muted); }
.steps li.on { background: linear-gradient(90deg, rgba(233, 180, 76, .13), rgba(233, 180, 76, 0)); }
.steps li.on i { border-color: var(--gold-300); background: var(--plum-900); box-shadow: 0 0 0 5px rgba(233, 180, 76, .16), 0 0 18px rgba(233, 180, 76, .7); }
.steps li.on i::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--gold-300); }
.steps li.on b { color: #fff; }
.steps li.on span { color: var(--muted); }
.fine { margin-top: 14px; font-size: 11.5px; color: var(--faint); line-height: 1.5; }

/* Phone */
.phone-stage { position: relative; display: grid; place-items: center; padding: 10px 0; }
.phone-halo { position: absolute; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(233, 180, 76, .2), rgba(101, 48, 173, .28) 42%, transparent 70%); filter: blur(12px); animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.06); opacity: .8; } }
.phone {
  position: relative; width: 352px; height: 724px; border-radius: 56px; padding: 11px;
  background: linear-gradient(150deg, #3a3542 0%, #121016 30%, #0a090d 60%, #2a2630 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .14), inset 0 0 0 1.5px rgba(0, 0, 0, .9), inset 0 0 0 3px rgba(255, 255, 255, .06),
    0 70px 130px -30px rgba(0, 0, 0, .9), 0 30px 70px -20px rgba(52, 22, 89, .9);
}
.phone::before { content: ""; position: absolute; right: -3px; top: 170px; width: 3px; height: 74px; border-radius: 0 3px 3px 0; background: #2a2630; }
.phone-island { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 108px; height: 31px; border-radius: 20px; background: #000; z-index: 5; }
.phone-screen {
  position: relative; height: 100%; border-radius: 46px; overflow: hidden; isolation: isolate;
  background: radial-gradient(130% 55% at 50% 0%, #3B1A66 0%, #1A0C2E 50%, #0E0619 100%);
}
.status { position: absolute; top: 0; left: 0; right: 0; height: 54px; padding: 18px 30px 0 34px; display: flex; justify-content: space-between; align-items: center; z-index: 4; font-size: 14px; font-weight: 700; }
.status span { display: flex; gap: 6px; align-items: center; }
.status svg { height: 11px; width: auto; fill: currentColor; }
.home-bar { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: 128px; height: 4.5px; border-radius: 4px; background: rgba(255, 255, 255, .55); z-index: 4; }
.screens { position: absolute; inset: 0; }
.scr {
  position: absolute; inset: 0; padding: 60px 18px 26px; display: flex; flex-direction: column; gap: 12px;
  overflow-y: auto; overflow-x: hidden; scrollbar-width: none;
  transition: transform .65s var(--ease), opacity .5s var(--ease), filter .5s;
}
.scr::-webkit-scrollbar { display: none; }
.scr.enter { transform: translateX(28%); opacity: 0; }
.scr.enter.back { transform: translateX(-28%); }
.scr.leave { transform: translateX(-18%); opacity: 0; filter: blur(4px); pointer-events: none; }
.scr.leave.back { transform: translateX(18%); }
.scr > * { flex-shrink: 0; }
.scr-stagger > * { animation: scrIn .7s var(--ease) both; }
.scr-stagger > *:nth-child(2) { animation-delay: .06s; } .scr-stagger > *:nth-child(3) { animation-delay: .12s; }
.scr-stagger > *:nth-child(4) { animation-delay: .18s; } .scr-stagger > *:nth-child(5) { animation-delay: .24s; }
.scr-stagger > *:nth-child(6) { animation-delay: .3s; } .scr-stagger > *:nth-child(7) { animation-delay: .36s; }
@keyframes scrIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.app-bar { display: flex; justify-content: space-between; align-items: center; padding-top: 4px; }
.app-bar .ab-brand { display: flex; align-items: center; gap: 7px; font-size: 10.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-300); }
.app-bar .ab-brand img { width: 20px; height: 20px; }
.ab-pill { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; border-radius: 99px; background: rgba(255, 255, 255, .08); color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.ab-pill i { width: 5px; height: 5px; border-radius: 50%; background: #5EE29A; box-shadow: 0 0 8px #5EE29A; }
.ab-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--gold-200); padding: 4px 0; }

.ev-card {
  position: relative; overflow: hidden; border-radius: 24px; padding: 20px 18px 18px; min-height: 196px; display: flex; flex-direction: column; justify-content: flex-end;
  background:
    radial-gradient(90% 70% at 85% 0%, rgba(233, 180, 76, .55), transparent 60%),
    radial-gradient(80% 80% at 0% 100%, rgba(101, 48, 173, .9), transparent 70%),
    linear-gradient(160deg, #3B1A66, #1A0C2E);
  border: 1px solid rgba(255, 240, 200, .14);
}
.ev-card::before { content: ""; position: absolute; right: -50px; top: -50px; width: 190px; height: 190px; border-radius: 50%; border: 1px solid rgba(255, 240, 200, .3); box-shadow: 0 0 0 18px rgba(255, 240, 200, .05), 0 0 0 42px rgba(255, 240, 200, .03); }
.ev-card .ab-pill { position: absolute; top: 16px; left: 16px; background: rgba(0, 0, 0, .3); color: #fff; }
.ev-card small { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-200); font-weight: 700; }
.ev-card h4 { margin: 6px 0 6px; font-size: 30px; font-weight: 900; font-stretch: 66%; text-transform: uppercase; line-height: .92; }
.ev-card p { font-size: 12.5px; color: rgba(255, 255, 255, .78); }

.me-card { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 20px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); }
.me-card div { flex: 1; min-width: 0; }
.me-card b { display: block; font-size: 15px; font-weight: 800; }
.me-card span { display: block; font-size: 11.5px; color: var(--muted); }
.me-card em { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #5EE29A; display: inline-flex; gap: 5px; align-items: center; margin-top: 4px; }

.room { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: rgba(0, 0, 0, .22); border: 1px solid var(--line); }
.stack { display: flex; }
.stack .medal { --s: 28px; font-size: 10.5px; margin-left: -9px; box-shadow: 0 0 0 2px #1A0C2E; }
.stack .medal:first-child { margin-left: 0; }
.stack .medal::after { display: none; }
.room b { display: block; font-size: 14px; font-weight: 800; }
.room span { font-size: 11px; color: var(--muted); }

.p-cta {
  margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  padding: 16px; border-radius: 18px; font-size: 15px; font-weight: 800; color: var(--plum-950);
  background: var(--gold-grad); box-shadow: 0 14px 30px -12px rgba(233, 180, 76, .8), inset 0 1px 0 rgba(255, 255, 255, .55);
  transition: transform .3s var(--ease), opacity .3s, filter .3s;
}
.p-cta:active { transform: scale(.98); }
.p-cta[disabled] { opacity: .35; filter: grayscale(.6); pointer-events: none; }
.p-cta.ghost { background: rgba(255, 255, 255, .08); color: #fff; box-shadow: none; border: 1px solid var(--line-2); }
.p-cta.done { background: rgba(94, 226, 154, .14); color: #8BF0B8; box-shadow: none; border: 1px solid rgba(94, 226, 154, .3); pointer-events: none; }
.p-fine { text-align: center; font-size: 10.5px; color: var(--faint); }

.scr-title { font-size: 28px; font-weight: 900; font-stretch: 68%; text-transform: uppercase; line-height: .95; letter-spacing: .005em; margin-top: 6px; }
.scr-title em { font-family: var(--serif); font-style: italic; font-weight: 300; font-stretch: 100%; text-transform: none; color: var(--gold-200); letter-spacing: -0.02em; }
.scr-sub { font-size: 12.5px; color: var(--muted); margin-top: -4px; }

.ints { display: grid; gap: 8px; }
.int {
  display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 12px; border-radius: 18px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
  transition: background .3s, border-color .3s, transform .3s var(--ease);
}
.int:active { transform: scale(.985); }
.int-ic { flex: none; width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); color: var(--gold-300); transition: background .3s, color .3s; }
.int-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.int div { flex: 1; min-width: 0; }
.int b { display: block; font-size: 14px; font-weight: 800; }
.int span { font-size: 11.5px; color: var(--muted); line-height: 1.35; display: block; }
.int .tick { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .25); display: grid; place-items: center; transition: all .3s var(--ease); }
.int .tick svg { width: 12px; height: 12px; stroke: var(--plum-950); stroke-width: 2.6; fill: none; opacity: 0; transform: scale(.5); transition: all .3s var(--ease); }
.int.on { background: linear-gradient(120deg, rgba(233, 180, 76, .2), rgba(233, 180, 76, .05)); border-color: rgba(233, 180, 76, .55); }
.int.on .int-ic { background: var(--gold-grad); color: var(--plum-950); }
.int.on .tick { background: var(--gold-300); border-color: var(--gold-300); }
.int.on .tick svg { opacity: 1; transform: none; }
.sticky-foot { position: sticky; bottom: -26px; margin: auto -18px -26px; padding: 14px 18px 26px; background: linear-gradient(180deg, rgba(14, 6, 25, 0), rgba(14, 6, 25, .95) 30%); display: grid; gap: 8px; }

/* Scan */
.scan { flex: 1; display: grid; place-items: center; align-content: center; gap: 28px; text-align: center; }
.radar { position: relative; width: 250px; height: 250px; border-radius: 50%; }
.radar .rg { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(233, 180, 76, .2); }
.radar .rg:nth-child(2) { inset: 20%; } .radar .rg:nth-child(3) { inset: 40%; }
.radar .sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(233, 180, 76, .55), rgba(233, 180, 76, 0) 70deg, transparent 360deg); animation: spin 1.6s linear infinite; mask: radial-gradient(circle, #000 69%, transparent 70%); }
@keyframes spin { to { transform: rotate(360deg); } }
.radar .core { position: absolute; left: 50%; top: 50%; translate: -50% -50%; }
.radar .blip { position: absolute; translate: -50% -50%; opacity: 0; transform: scale(.4); animation: blip .6s var(--ease) forwards; }
.radar .blip .medal { --s: 34px; font-size: 12px; }
.radar .blip .medal::after { inset: -4px; border-color: var(--gold-300); }
@keyframes blip { to { opacity: 1; transform: none; } }
.scan-copy b { display: block; font-size: 22px; font-weight: 900; font-stretch: 70%; text-transform: uppercase; }
.scan-copy span { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--gold-200); margin-top: 8px; min-height: 1.4em; }

/* Results */
.res-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 10.5px; font-weight: 700; padding: 5px 9px; border-radius: 99px; background: rgba(233, 180, 76, .12); color: var(--gold-200); border: 1px solid rgba(233, 180, 76, .22); white-space: nowrap; }
.tag.dim { background: rgba(255, 255, 255, .05); border-color: var(--line); color: var(--muted); }
.match {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; width: 100%; text-align: left;
  padding: 14px 12px; border-radius: 20px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
  transition: background .3s, border-color .3s, transform .3s var(--ease);
}
.match:hover { background: rgba(255, 255, 255, .08); border-color: rgba(233, 180, 76, .35); }
.match:active { transform: scale(.985); }
.match.top { background: linear-gradient(140deg, rgba(233, 180, 76, .16), rgba(255, 255, 255, .03) 60%); border-color: rgba(233, 180, 76, .4); }
.match .medal { --s: 48px; }
.m-txt { min-width: 0; }
.m-txt b { display: flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 800; }
.m-txt b small { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 13px; color: var(--gold-200); }
.m-txt > span:not(.m-why) { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-why { display: block; white-space: normal; font-size: 11.5px; color: rgba(255, 250, 240, .82); margin-top: 6px; line-height: 1.38; }
.m-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 7px; }
.m-tags .tag { font-size: 9.5px; padding: 3px 7px; }
.m-flag { font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #8BF0B8; }
.score { position: relative; width: 46px; height: 46px; align-self: start; }
.score svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score circle { fill: none; stroke-width: 3; }
.score .bg { stroke: rgba(255, 255, 255, .08); }
.score .fg { stroke: var(--gold-300); stroke-linecap: round; transition: stroke-dashoffset 1.2s var(--ease); }
.score b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 1px; font-family: var(--mono); font-size: 11.5px; font-weight: 600; }
.score b small { font-size: 8px; opacity: .6; }
.top-badge { font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--plum-950); background: var(--gold-grad); padding: 3px 7px; border-radius: 6px; }

/* Profile */
.prof-head { text-align: center; display: grid; justify-items: center; gap: 4px; padding: 8px 0 4px; position: relative; }
.prof-head::before { content: ""; position: absolute; top: -10px; left: 50%; width: 220px; height: 220px; translate: -50% 0; border-radius: 50%; background: radial-gradient(circle, rgba(233, 180, 76, .25), transparent 65%); z-index: -1; }
.prof-head .medal { margin-bottom: 10px; }
.prof-head h4 { font-size: 24px; font-weight: 900; font-stretch: 72%; text-transform: uppercase; }
.prof-head h4 small { font-family: var(--serif); font-style: italic; font-weight: 300; font-stretch: 100%; text-transform: none; color: var(--gold-200); font-size: .8em; }
.prof-head p { font-size: 12.5px; color: var(--muted); }
.prof-score { display: inline-flex; gap: 8px; align-items: center; margin-top: 8px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-200); padding: 6px 12px; border-radius: 99px; border: 1px solid rgba(233, 180, 76, .3); background: rgba(233, 180, 76, .08); }
.prof-score b { font-family: var(--mono); font-size: 13px; color: #fff; }
.blk { padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.blk h5 { font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-300); margin-bottom: 10px; }
.why { display: grid; gap: 9px; }
.why li { display: flex; gap: 10px; font-size: 12.5px; line-height: 1.42; color: rgba(255, 250, 240, .86); }
.why li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 6px; transform: rotate(45deg); background: var(--gold-400); }
.starter { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 16px; line-height: 1.35; color: var(--gold-100); }
.open-to { display: flex; gap: 6px; flex-wrap: wrap; }

/* Sent */
.sent { flex: 1; display: grid; align-content: center; justify-items: center; text-align: center; gap: 14px; }
.sent-ring { position: relative; width: 120px; height: 120px; display: grid; place-items: center; }
.sent-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.sent-ring circle { fill: none; stroke: var(--gold-300); stroke-width: 2.5; stroke-dasharray: 340; stroke-dashoffset: 340; animation: draw 1s var(--ease) .1s forwards; stroke-linecap: round; filter: drop-shadow(0 0 10px rgba(233, 180, 76, .7)); }
.sent-ring path { fill: none; stroke: var(--gold-200); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .6s var(--ease) .8s forwards; }
.sent-ring > svg + svg { transform: none; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.sent h4 { font-size: 30px; font-weight: 900; font-stretch: 66%; text-transform: uppercase; line-height: .95; }
.sent h4 em { display: block; font-family: var(--serif); font-style: italic; font-weight: 300; font-stretch: 100%; text-transform: none; color: var(--gold-200); }
.sent p { font-size: 13px; color: var(--muted); max-width: 270px; }
.pair { display: flex; align-items: center; gap: 0; margin: 4px 0; }
.pair .medal { --s: 52px; }
.pair-line { width: 54px; height: 2px; background: linear-gradient(90deg, var(--gold-300), var(--gold-500)); position: relative; overflow: hidden; }
.pair-line::after { content: ""; position: absolute; inset: 0; width: 30%; background: #fff; animation: travel 1.6s ease-in-out infinite; filter: blur(1px); }
@keyframes travel { from { transform: translateX(-100%); } to { transform: translateX(330%); } }
.sent-card { width: 100%; text-align: left; display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); }
.sent-card svg { flex: none; width: 22px; height: 22px; stroke: var(--gold-300); fill: none; stroke-width: 1.6; }
.sent-card b { display: block; font-size: 12.5px; }
.sent-card span { font-size: 11.5px; color: var(--muted); }

/* Intelligence panel */
.intel {
  padding: 26px; border-radius: var(--r); min-height: 520px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
  border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6);
}
.intel-head { display: flex; align-items: center; gap: 10px; padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.intel-head b { font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-200); flex: 1; }
.intel-head em { font-style: normal; font-family: var(--mono); font-size: 10px; color: var(--faint); border: 1px solid var(--line-2); padding: 3px 7px; border-radius: 6px; }
.intel-body > * { animation: fadeUp .7s var(--ease) both; }
.intel-body > *:nth-child(2) { animation-delay: .08s; } .intel-body > *:nth-child(3) { animation-delay: .16s; } .intel-body > *:nth-child(4) { animation-delay: .24s; }
.ib-label { font-size: 10.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.ib-big { display: flex; align-items: baseline; gap: 10px; margin-bottom: 22px; }
.ib-big b { font-size: 64px; font-weight: 900; font-stretch: 62%; line-height: .85; background: var(--gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ib-big span { font-size: 13px; color: var(--muted); line-height: 1.35; }
.ib-sec { margin-bottom: 22px; }
.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; font-size: 12.5px; }
.bar span { color: var(--muted); }
.bar b { font-family: var(--mono); font-size: 11.5px; font-weight: 500; color: var(--text); }
.bar i { grid-column: 1 / -1; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.bar i::after { content: ""; display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--plum-500), var(--gold-400)); transition: width 1s var(--ease); animation: grow 1.1s var(--ease) both; }
.bar.off i::after { background: rgba(255, 255, 255, .12); }
.bar.off span, .bar.off b { color: var(--faint); }
@keyframes grow { from { width: 0; } }
.cols { display: flex; align-items: flex-end; gap: 8px; height: 90px; padding-top: 8px; }
.cols div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.cols i { width: 100%; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--gold-300), rgba(101, 48, 173, .6)); height: var(--h); animation: rise 1s var(--ease) both; transform-origin: bottom; }
.cols span { font-family: var(--mono); font-size: 10px; color: var(--faint); }
@keyframes rise { from { transform: scaleY(0); } }
.ib-note { display: flex; gap: 10px; padding: 14px; border-radius: 14px; background: rgba(233, 180, 76, .07); border: 1px solid rgba(233, 180, 76, .18); font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.ib-note svg { flex: none; width: 18px; height: 18px; stroke: var(--gold-300); fill: none; stroke-width: 1.6; margin-top: 1px; }
.ib-note b { color: var(--gold-100); }
.factor { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.factor:last-child { border-bottom: 0; }
.factor b { font-size: 13.5px; font-weight: 700; }
.factor em { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--gold-300); }
.factor span { grid-column: 1 / -1; font-size: 12px; color: var(--muted); line-height: 1.4; }
.ib-who { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.ib-who b { display: block; font-size: 16px; font-weight: 800; }
.ib-who span { font-size: 12px; color: var(--muted); }
.ib-total { margin-left: auto; text-align: right; }
.ib-total b { font-size: 34px; font-weight: 900; font-stretch: 62%; color: var(--gold-200); line-height: 1; }
.ib-total small { display: block; font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.pipe { display: grid; gap: 4px; }
.pipe li { display: flex; gap: 12px; align-items: center; padding: 10px 0; font-size: 13px; color: var(--faint); transition: color .4s; }
.pipe li i { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .2); position: relative; transition: all .4s; }
.pipe li.run { color: #fff; }
.pipe li.run i { border-color: var(--gold-300); border-top-color: transparent; animation: spin .8s linear infinite; }
.pipe li.ok { color: var(--muted); }
.pipe li.ok i { background: var(--gold-400); border-color: var(--gold-400); }
.pipe li.ok i::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid var(--plum-950); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* =========================================================
   02 COMMAND CENTER (on ivory)
   ========================================================= */
.command {
  padding: 150px 0 140px; color: var(--ink);
  background:
    radial-gradient(60% 40% at 85% 0%, rgba(233, 180, 76, .22), transparent 60%),
    radial-gradient(50% 40% at 0% 30%, rgba(101, 48, 173, .1), transparent 60%),
    linear-gradient(180deg, #F7F2E8, var(--ivory-2));
}
.command::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(27, 19, 36, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(27, 19, 36, .045) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent);
}
.on-light .kicker { color: var(--gold-700); }
.on-light .kicker b { border-color: rgba(154, 110, 28, .4); }
.on-light .display { color: var(--plum-950); }
.on-light .display .serif { color: var(--plum-600); }
.on-light .lede { color: rgba(27, 19, 36, .68); }
.cc-note { margin-top: 22px; font-size: 12px; color: rgba(27, 19, 36, .5); text-align: center; }

.cc {
  position: relative; border-radius: 28px; overflow: clip; color: var(--text);
  background: linear-gradient(180deg, #16121C, #0F0C14);
  box-shadow: 0 0 0 1px rgba(27, 19, 36, .2), 0 80px 140px -50px rgba(26, 12, 46, .65), 0 30px 60px -30px rgba(26, 12, 46, .4);
}
.cc::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 30% at 70% 0%, rgba(101, 48, 173, .28), transparent 70%); }
.cc-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.cc-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cc-id b { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.cc-id span { font-size: 12.5px; color: var(--faint); padding-left: 10px; border-left: 1px solid var(--line-2); white-space: nowrap; }
.cc-top-right { display: flex; align-items: center; gap: 12px; }
.chip-sim { font-family: var(--mono); font-size: 10.5px; color: var(--gold-200); padding: 5px 9px; border-radius: 7px; background: rgba(233, 180, 76, .09); border: 1px solid rgba(233, 180, 76, .2); white-space: nowrap; }
.cc-body { position: relative; display: grid; grid-template-columns: 220px 1fr; min-height: 720px; }
.cc-nav { padding: 18px 12px; border-right: 1px solid var(--line); background: rgba(0, 0, 0, .14); }
.cc-nav-in { position: sticky; top: calc(96px + var(--sat)); display: flex; flex-direction: column; gap: 3px; }
.cc-nav button { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; font-size: 13.5px; font-weight: 600; color: var(--muted); text-align: left; transition: background .25s, color .25s; white-space: nowrap; }
.cc-nav button svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.cc-nav button:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.cc-nav button.on { background: rgba(255, 255, 255, .08); color: #fff; box-shadow: inset 2px 0 0 var(--gold-400); }
.cc-nav button.on svg { color: var(--gold-300); }
.cc-nav button em { margin-left: auto; font-style: normal; font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--plum-950); background: var(--gold-grad); padding: 2px 6px; border-radius: 5px; }
.cc-plan-tab { margin-top: 10px; border: 1px dashed rgba(233, 180, 76, .35) !important; animation: fadeUp .6s var(--ease) both; }
.cc-plan-tab[hidden] { display: none !important; }
.cc-main { min-width: 0; padding: 22px 26px 30px; display: flex; flex-direction: column; gap: 22px; }

.composer {
  position: relative; display: flex; align-items: center; gap: 16px; padding: 10px 10px 10px 16px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .03));
  border: 1px solid rgba(233, 180, 76, .26);
  box-shadow: 0 0 0 4px rgba(233, 180, 76, .05), 0 20px 50px -30px rgba(233, 180, 76, .5);
}
.composer-field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; }
.composer-ic { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--plum-950); background: var(--gold-grad); font-size: 16px; }
.composer small { display: block; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.composer p { font-size: 15.5px; font-weight: 600; color: #fff; }
.composer p.typing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--gold-300); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.gen-btn { flex: none; overflow: hidden; padding: 15px 22px; font-size: 14.5px; }
.gen-glint { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .7) 50%, transparent 65%) 0 0 / 250% 100%; animation: shine 4.5s ease-in-out infinite 1s; mix-blend-mode: soft-light; pointer-events: none; }
.gen-btn.busy { pointer-events: none; filter: saturate(.7); }

.cc-view { min-width: 0; }
.cc-view > .mod { animation: fadeUp .6s var(--ease) both; }
.mod-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.mod-head h3 { font-size: 30px; font-weight: 900; font-stretch: 68%; text-transform: uppercase; letter-spacing: .01em; }
.mod-head h3 em { font-family: var(--serif); font-style: italic; font-weight: 300; font-stretch: 100%; text-transform: none; color: var(--gold-200); letter-spacing: -0.02em; }
.mod-head p { font-size: 13px; color: var(--muted); }
.pnl { padding: 20px; border-radius: 20px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); min-width: 0; }
.pnl h4 { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.pnl h4 em { font-style: normal; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0; text-transform: none; color: var(--faint); font-weight: 400; }
.g2 { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; }
.g2e { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mt { margin-top: 16px; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; margin-bottom: 16px; background: rgba(255, 255, 255, .02); }
.kpi { padding: 18px 20px; position: relative; }
.kpi + .kpi { border-left: 1px solid var(--line); }
.kpi small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.kpi b { display: block; font-size: 38px; font-weight: 900; font-stretch: 64%; line-height: 1; margin-top: 8px; }
.kpi span { font-size: 11.5px; color: #8BF0B8; font-weight: 600; }
.kpi span.flat { color: var(--muted); }
.kpi svg { position: absolute; right: 16px; bottom: 18px; width: 64px; height: 24px; fill: none; stroke: var(--gold-400); stroke-width: 1.5; opacity: .8; }

.next-ev { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; padding: 24px; border-radius: 20px; background: radial-gradient(80% 120% at 100% 0%, rgba(233, 180, 76, .25), transparent 60%), linear-gradient(140deg, #3B1A66, #1F0D36); border: 1px solid rgba(233, 180, 76, .22); }
.next-ev small { font-size: 10.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-200); }
.next-ev h5 { font-size: 30px; font-weight: 900; font-stretch: 66%; text-transform: uppercase; line-height: .95; margin: 8px 0 8px; }
.next-ev p { font-size: 13px; color: rgba(255, 255, 255, .72); }
.ring { position: relative; width: 104px; height: 104px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 7; }
.ring .bg { stroke: rgba(255, 255, 255, .1); }
.ring .fg { stroke: url(#ringGold); stroke-linecap: round; transition: stroke-dashoffset 1.4s var(--ease); }
.ring div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring b { font-size: 26px; font-weight: 900; font-stretch: 64%; line-height: 1; }
.ring span { font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.rows { display: grid; }
.row { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.row:last-child { border-bottom: 0; padding-bottom: 0; }
.row:first-child { padding-top: 0; }
.row b { font-weight: 700; }
.row small { display: block; font-size: 12px; color: var(--muted); }
.row .when { font-family: var(--mono); font-size: 11px; color: var(--faint); text-align: right; }
.dotc { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-400); box-shadow: 0 0 0 4px rgba(233, 180, 76, .15); }
.dotc.red { background: #FF8A7A; box-shadow: 0 0 0 4px rgba(255, 138, 122, .15); }
.dotc.green { background: #5EE29A; box-shadow: 0 0 0 4px rgba(94, 226, 154, .15); }
.dotc.dim { background: rgba(255, 255, 255, .3); box-shadow: none; }
.st { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 7px; white-space: nowrap; }
.st.ok { color: #8BF0B8; background: rgba(94, 226, 154, .1); }
.st.warn { color: var(--gold-200); background: rgba(233, 180, 76, .12); }
.st.idle { color: var(--muted); background: rgba(255, 255, 255, .06); }

.insight { display: flex; gap: 12px; padding: 14px; border-radius: 14px; background: linear-gradient(120deg, rgba(233, 180, 76, .1), rgba(101, 48, 173, .1)); border: 1px solid rgba(233, 180, 76, .18); font-size: 13px; line-height: 1.5; color: rgba(255, 250, 240, .84); }
.insight + .insight { margin-top: 10px; }
.insight i { flex: none; font-style: normal; font-size: 9.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--plum-950); background: var(--gold-grad); padding: 3px 6px; border-radius: 5px; height: fit-content; margin-top: 1px; }

.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .axis { stroke: rgba(255, 255, 255, .08); }
.chart text { font-family: var(--mono); font-size: 10px; fill: var(--faint); }
.chart .line { fill: none; stroke: var(--gold-300); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: drawl 1.8s var(--ease) .2s forwards; }
.chart .area { fill: url(#areaGold); opacity: 0; animation: fadeIn 1s ease .8s forwards; }
.chart .pt { fill: var(--charcoal); stroke: var(--gold-300); stroke-width: 2; }
@keyframes drawl { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }

.vol-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.vol { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.vol .medal { --s: 40px; font-size: 15px; }
.vol b { display: block; font-size: 14px; font-weight: 700; }
.vol small { display: block; font-size: 11.5px; color: var(--muted); }
.avail { display: flex; gap: 3px; margin-top: 7px; }
.avail i { width: 14px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .1); }
.avail i.y { background: var(--gold-400); }

/* ---------- AI workflow + plan ---------- */
.flow-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.flow-head h3 { font-size: 26px; font-weight: 900; font-stretch: 68%; text-transform: uppercase; display: flex; align-items: center; gap: 12px; }
.flow-head h3 .spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--gold-300); border-top-color: transparent; animation: spin .8s linear infinite; }
.flow-head h3 .okc { width: 22px; height: 22px; border-radius: 50%; background: var(--gold-grad); display: grid; place-items: center; }
.flow-head h3 .okc::after { content: ""; width: 5px; height: 10px; border: solid var(--plum-950); border-width: 0 2.2px 2.2px 0; transform: translateY(-1px) rotate(45deg); }
.flow-head p { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.flow-bar { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-bottom: 22px; }
.flow-bar i { display: block; height: 100%; width: 0; background: var(--gold-grad); box-shadow: 0 0 12px var(--gold-400); transition: width .6s var(--ease); }
.flow-grid { display: grid; grid-template-columns: 250px 1fr; gap: 22px; align-items: start; }
.agent { position: sticky; top: 100px; display: grid; gap: 2px; padding: 16px; border-radius: 18px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.agent h5 { font-size: 10.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.agent li { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; padding: 9px 0; color: var(--faint); transition: color .4s; }
.agent li i { grid-row: span 2; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .18); position: relative; margin-top: 1px; transition: all .4s; }
.agent li b { font-size: 13px; font-weight: 700; }
.agent li span { font-size: 11.5px; line-height: 1.4; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .5s var(--ease), opacity .5s; }
.agent li.run { color: #fff; }
.agent li.run i { border-color: var(--gold-300); border-top-color: transparent; animation: spin .8s linear infinite; }
.agent li.ok { color: var(--text); }
.agent li.ok span { color: var(--muted); max-height: 60px; opacity: 1; }
.agent li.ok i { background: var(--gold-400); border-color: var(--gold-400); }
.agent li.ok i::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid var(--plum-950); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.saved { margin-top: 10px; padding: 14px; border-radius: 14px; background: linear-gradient(140deg, rgba(233, 180, 76, .18), rgba(233, 180, 76, .04)); border: 1px solid rgba(233, 180, 76, .3); }
.saved small { font-size: 9.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-200); }
.saved b { display: block; font-size: 32px; font-weight: 900; font-stretch: 62%; line-height: 1.05; }
.saved span { font-size: 11px; color: var(--muted); }

.doc { display: grid; gap: 16px; min-width: 0; }
.doc-sec { padding: 22px; border-radius: 20px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); animation: secIn .8s var(--ease) both; min-width: 0; }
@keyframes secIn { from { opacity: 0; transform: translateY(20px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.doc-sec > header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.doc-sec > header i { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--gold-300); padding: 4px 7px; border: 1px solid rgba(233, 180, 76, .3); border-radius: 6px; }
.doc-sec > header h4 { font-size: 20px; font-weight: 900; font-stretch: 72%; text-transform: uppercase; letter-spacing: .02em; flex: 1; }
.doc-sec > header .aside { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.doc-snap { position: relative; overflow: hidden; padding: 26px; border-radius: 22px; background: radial-gradient(80% 120% at 100% 0%, rgba(233, 180, 76, .3), transparent 55%), radial-gradient(60% 100% at 0% 100%, rgba(101, 48, 173, .6), transparent 70%), linear-gradient(140deg, #2D1450, #170A29); border: 1px solid rgba(233, 180, 76, .25); animation: secIn .8s var(--ease) both; }
.doc-snap::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; border: 1px solid rgba(255, 240, 200, .18); box-shadow: 0 0 0 26px rgba(255, 240, 200, .04), 0 0 0 60px rgba(255, 240, 200, .025); pointer-events: none; }
.doc-snap small { font-size: 10.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-200); }
.doc-snap h4 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 900; font-stretch: 64%; text-transform: uppercase; line-height: .92; margin: 10px 0 18px; max-width: 620px; }
.doc-snap h4 em { font-family: var(--serif); font-style: italic; font-weight: 300; font-stretch: 100%; text-transform: none; color: var(--gold-200); }
.facts { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255, 255, 255, .1); border-radius: 14px; overflow: hidden; z-index: 1; }
.facts div { padding: 14px 16px; background: rgba(20, 9, 36, .82); }
.facts small { display: block; font-size: 9.5px; letter-spacing: .14em; color: var(--faint); }
.facts b { display: block; font-size: 14px; font-weight: 700; margin-top: 4px; line-height: 1.3; }
.facts span { font-size: 11.5px; color: var(--muted); }
.rationale { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.rationale p { font-size: 12.5px; color: rgba(255, 255, 255, .78); line-height: 1.45; padding-left: 14px; border-left: 1px solid rgba(233, 180, 76, .45); }
.rationale p b { display: block; color: var(--gold-100); font-size: 12px; margin-bottom: 3px; }

.chk-prog { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.chk-prog i { width: 120px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.chk-prog i::after { content: ""; display: block; height: 100%; width: var(--p, 0%); background: var(--gold-grad); transition: width .5s var(--ease); }
.phases-chk { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ph h6 { margin: 0 0 8px; font-size: 10.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-300); display: flex; justify-content: space-between; }
.ph h6 span { font-family: var(--mono); font-weight: 400; letter-spacing: 0; color: var(--faint); text-transform: none; }
.ck { display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left; padding: 8px 8px; margin: 0 -8px; border-radius: 10px; font-size: 12.5px; line-height: 1.4; color: rgba(255, 250, 240, .85); transition: background .2s, color .3s; }
.ck:hover { background: rgba(255, 255, 255, .04); }
.ck i { flex: none; width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid rgba(255, 255, 255, .25); margin-top: 1px; position: relative; transition: all .3s var(--ease); }
.ck.on { color: var(--faint); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .25); }
.ck.on i { background: var(--gold-400); border-color: var(--gold-400); }
.ck.on i::after { content: ""; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid var(--plum-950); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ck em { font-style: normal; margin-left: auto; font-family: var(--mono); font-size: 10px; color: var(--faint); padding-left: 6px; white-space: nowrap; text-decoration: none; }

.roles { display: grid; }
.role { display: grid; grid-template-columns: 190px 1fr auto; gap: 18px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.role:first-child { padding-top: 0; } .role:last-child { border-bottom: 0; padding-bottom: 0; }
.role-who { display: flex; gap: 10px; align-items: center; min-width: 0; }
.role-who .medal { --s: 36px; font-size: 13px; }
.role-who b { display: block; font-size: 13.5px; font-weight: 800; }
.role-who small { display: block; font-size: 11.5px; color: var(--gold-200); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.role p { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.role .hrs { font-family: var(--mono); font-size: 11px; color: var(--faint); text-align: right; white-space: nowrap; }
.role .hrs .st { display: inline-block; margin-top: 4px; }

.promo-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.promo-tabs button { font-size: 12px; font-weight: 700; padding: 7px 12px; border-radius: 9px; color: var(--muted); transition: all .25s; }
.promo-tabs button.on { background: var(--ivory); color: var(--plum-950); }
.promo-box { margin-top: 14px; border-radius: 16px; background: var(--ivory); color: var(--ink); padding: 22px 24px; position: relative; }
.promo-box .meta { display: grid; gap: 4px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid rgba(27, 19, 36, .1); font-size: 12.5px; color: rgba(27, 19, 36, .6); }
.promo-box .meta b { color: var(--ink); font-weight: 700; }
.promo-body { font-size: 14px; line-height: 1.65; white-space: pre-line; color: rgba(27, 19, 36, .88); min-height: 120px; }
.promo-body strong { color: var(--plum-700); }
.promo-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.mini-btn { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line-2); color: var(--text); transition: all .25s; }
.mini-btn:hover { border-color: rgba(233, 180, 76, .5); color: var(--gold-100); }
.mini-btn.gold { background: var(--gold-grad); color: var(--plum-950); border-color: transparent; }

.ros { position: relative; display: grid; gap: 0; }
.ros::before { content: ""; position: absolute; left: 62px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(180deg, var(--gold-400), rgba(101, 48, 173, .6)); }
.ros li { display: grid; grid-template-columns: 52px 1fr; gap: 22px; padding: 10px 0; position: relative; }
.ros li::before { content: ""; position: absolute; left: 58px; top: 16px; width: 9px; height: 9px; border-radius: 50%; background: var(--charcoal); border: 2px solid var(--gold-300); }
.ros time { font-family: var(--mono); font-size: 11.5px; color: var(--gold-200); padding-top: 3px; }
.ros b { display: block; font-size: 14px; font-weight: 800; }
.ros span { font-size: 12.5px; color: var(--muted); line-height: 1.45; display: block; }
.ros .tag { display: inline-block; margin-top: 6px; }

.fu { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.fu::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 1px; background: linear-gradient(90deg, var(--gold-400), rgba(233, 180, 76, .1)); }
.fu li { padding: 0 16px 0 0; position: relative; }
.fu li::before { content: ""; display: block; width: 11px; height: 11px; border-radius: 50%; background: var(--gold-300); box-shadow: 0 0 0 5px rgba(233, 180, 76, .14); margin: 8px 0 18px; }
.fu time { font-family: var(--mono); font-size: 11px; color: var(--gold-200); }
.fu b { display: block; font-size: 14px; font-weight: 800; margin: 4px 0 6px; }
.fu span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.fu em { display: inline-block; margin-top: 8px; font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--plum-300); }

.metrics { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line); border-radius: 14px; overflow: hidden; }
.metrics div { flex: 1 1 130px; padding: 16px; background: #15111B; }
.metrics b { display: block; font-size: 30px; font-weight: 900; font-stretch: 62%; color: var(--gold-200); line-height: 1; }
.metrics span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 6px; line-height: 1.35; }

.plan-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; padding-top: 6px; }

/* =========================================================
   PILOT PATH
   ========================================================= */
.path { padding: 150px 0 120px; background: radial-gradient(50% 40% at 50% 0%, rgba(101, 48, 173, .35), transparent 70%), linear-gradient(180deg, var(--void), var(--plum-950)); overflow: hidden; }
.phases { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-bottom: 90px; }
.phases::before { content: ""; position: absolute; left: 0; right: 0; top: 34px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-400) 15%, var(--gold-400) 85%, transparent); opacity: .5; }
.phase { position: relative; padding: 0 34px; text-align: center; }
.phase-days { position: relative; z-index: 1; display: inline-block; font-family: var(--mono); font-size: 12px; color: var(--gold-200); padding: 10px 16px; border-radius: 99px; background: var(--plum-950); border: 1px solid rgba(233, 180, 76, .4); box-shadow: 0 0 0 8px var(--void); }
.phase h3 { margin: 30px 0 12px; font-size: clamp(40px, 4.4vw, 60px); font-weight: 900; font-stretch: 62%; text-transform: uppercase; }
.phase p { font-size: 15px; color: var(--muted); max-width: 330px; margin-inline: auto; }
.principles { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.principle { padding: 30px 26px 0 0; display: grid; gap: 8px; align-content: start; }
.principle + .principle { padding-left: 26px; border-left: 1px solid var(--line); }
.principle i { font-family: var(--serif); font-style: italic; font-size: 28px; color: var(--gold-300); line-height: 1; }
.principle b { font-size: 17px; font-weight: 800; margin-top: 8px; }
.principle span { font-size: 14px; color: var(--muted); }

/* =========================================================
   CLOSE + FOOTER
   ========================================================= */
.close { padding: 170px 0 150px; overflow: hidden; text-align: center; background: radial-gradient(50% 50% at 50% 50%, rgba(74, 31, 128, .55), transparent 70%), var(--void); }
.close-ring { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: min(1100px, 150vw); aspect-ratio: 1; pointer-events: none; }
.close-ring span { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(233, 180, 76, .14); animation: spin 80s linear infinite; }
.close-ring span::after { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-300); box-shadow: 0 0 16px var(--gold-400); }
.close-ring span:nth-child(2) { inset: 14%; animation-duration: 60s; animation-direction: reverse; border-color: rgba(255, 255, 255, .06); }
.close-ring span:nth-child(3) { inset: 28%; animation-duration: 44s; border-style: dashed; border-color: rgba(233, 180, 76, .1); }
.close-inner { position: relative; }
.close .display { margin-bottom: 44px; }
.close .credit { margin-top: 60px; }
.footer { padding: 46px 0 calc(50px + var(--sab)); background: var(--void); border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: center; }
.footer p { font-size: 12px; color: var(--faint); max-width: 720px; line-height: 1.6; }
.footer-credit { white-space: nowrap; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 16px; right: 16px; bottom: calc(28px + var(--sab)); z-index: 80; margin-inline: auto; width: fit-content;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: 16px; font-size: 13.5px; font-weight: 600;
  background: rgba(22, 12, 36, .92); color: #fff; border: 1px solid rgba(233, 180, 76, .3);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7);
  opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.toast.show { opacity: 1; transform: none; }
.toast::before { content: "✦"; color: var(--gold-300); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1240px) {
  .live-stage { grid-template-columns: 1fr 360px; align-items: start; }
  .phone-stage { position: sticky; top: calc(96px + var(--sat)); }
  .live-steps { grid-column: 1; grid-row: 1; }
  .phone-stage { grid-column: 2; grid-row: 1 / span 2; }
  .intel { grid-column: 1; grid-row: 2; min-height: 0; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .phases-chk { grid-template-columns: 1fr; }
}
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .loop-grid { grid-template-columns: 1fr; gap: 40px; }
  .loop-visual { max-width: 480px; }
  .cc-body { grid-template-columns: 1fr; }
  .cc-nav { overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 12px; scrollbar-width: none; }
  .cc-nav-in { position: static; flex-direction: row; }
  .cc-nav::-webkit-scrollbar { display: none; }
  .cc-nav button.on { box-shadow: inset 0 -2px 0 var(--gold-400); }
  .cc-plan-tab { margin-top: 0; }
  .flow-grid { grid-template-columns: 1fr; }
  .agent { position: static; }
  .rationale { grid-template-columns: 1fr; }
  .hero-pings { left: auto; right: 6%; top: 18%; }
}
@media (max-width: 860px) {
  .wrap, .hero-inner, .hero-foot { width: calc(100% - 32px); }
  .nav { top: calc(10px + var(--sat)); width: calc(100% - 20px); padding: 8px 8px 8px 12px; }
  .nav-cta { display: none; }
  .nav-menu { display: block; }
  .brand-text { font-size: 14px; }
  .hero-inner { padding-top: calc(120px + var(--sat)); }
  .hero-vignette { background: linear-gradient(180deg, rgba(7, 3, 12, .55) 0%, rgba(7, 3, 12, .25) 30%, rgba(7, 3, 12, .7) 62%, var(--void) 100%); }
  .hero-pings { display: none; }
  .hero-stats { grid-template-columns: 1fr; gap: 14px; }
  .hero-stats div + div { padding-left: 0; border-left: 0; }
  .hero-stats b { min-width: 72px; }
  .section-head.split { grid-template-columns: 1fr; gap: 22px; }
  .section-head { margin-bottom: 48px; }
  .loop, .live, .command, .path { padding: 100px 0; }
  .live-stage { grid-template-columns: 1fr; gap: 28px; }
  .live-steps, .phone-stage, .intel { grid-column: 1; grid-row: auto; }
  .phone-stage { position: relative; top: 0; }
  .live-steps { order: 1; } .phone-stage { order: 2; } .intel { order: 3; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .steps::before { display: none; }
  .steps li { flex-direction: column; gap: 8px; padding: 10px 8px; align-items: flex-start; }
  .steps li span { display: none; }
  .steps li b { font-size: 12.5px; }
  .phone { width: min(352px, calc(100vw - 32px)); height: 700px; }
  .phone-halo { width: 400px; height: 400px; }
  .g2, .g2e, .vol-grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .kpi:nth-child(3) { border-left: 0; }
  .kpi:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cc { border-radius: 22px; margin-inline: -4px; }
  .cc-id span { display: none; }
  .cc-main { padding: 16px 14px 22px; }
  .composer { flex-direction: column; align-items: stretch; padding: 14px; }
  .gen-btn { width: 100%; }
  .role { grid-template-columns: 1fr; gap: 8px; }
  .role .hrs { text-align: left; }
  .fu { grid-template-columns: 1fr 1fr; row-gap: 22px; }
  .fu::before { display: none; }
  .phases { grid-template-columns: 1fr; gap: 50px; }
  .phases::before { display: none; }
  .principles { grid-template-columns: 1fr 1fr; }
  .principle:nth-child(3) { padding-left: 0; border-left: 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 18px; }
  .next-ev { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .ht-row { font-size: clamp(64px, 23vw, 120px); flex-wrap: wrap; }
  .ht-360 { flex-basis: 100%; margin-top: .03em; }
  .eyebrow .eb-2 { display: none; }
  .agent li span { display: none; }
  .agent li.ok span { display: none; }
  .display { font-size: clamp(42px, 12.4vw, 64px); }
  .hero-actions .btn { width: 100%; }
  .chip-sim { display: none; }
  .facts { grid-template-columns: 1fr 1fr; }
  .doc-snap, .doc-sec { padding: 18px; }
  .principles { grid-template-columns: 1fr; }
  .principle, .principle + .principle { padding: 24px 0 0; border-left: 0; }
  .fu { grid-template-columns: 1fr; }
  .marquee span { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .hero-in { opacity: 1; transform: none; filter: none; }
}
