:root {
  --navy: #0F2238;
  --navy-2: #16304D;
  --navy-3: #0A1828;
  --teal: #238FA1;
  --teal-ink: #17707F;   /* teal that passes contrast on white */
  --teal-lite: #6FD3E3;  /* teal that passes contrast on navy */
  --gold: #E6B54A;
  --ink: #0F2238;
  --body: #33475C;
  --line: #C9D5E0;
  --paper: #F3F7FA;
  --r: 20px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: Barlow, system-ui, sans-serif; font-size: 19px; line-height: 1.55; color: var(--body); background: #fff; -webkit-font-smoothing: antialiased; }
body.has-bar { padding-bottom: 96px; }
img, svg { max-width: 100%; display: block; }
h1, h2, h3, p, ul, ol, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: #fff; padding: 10px 14px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* Type */
h1 { font-size: clamp(3rem, 9vw, 5.4rem); line-height: .98; font-weight: 800; letter-spacing: -.02em; color: #fff; }
h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.08; font-weight: 800; letter-spacing: -.015em; color: var(--ink); max-width: 20ch; }
h3 { font-size: 1.35rem; line-height: 1.2; font-weight: 700; color: var(--ink); }
.eyebrow { font-weight: 700; font-size: .95rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-lite); margin-bottom: 14px; }
.eyebrow.dark { color: var(--teal-ink); }
.sub { font-size: 1.25rem; margin-top: 16px; max-width: 56ch; }
.navy { background: var(--navy); color: #D5E0EA; }
.navy h2, .navy h3 { color: #fff; }
.light { background: var(--paper); }
.sec { padding: clamp(64px, 9vw, 120px) 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 14px 28px; border-radius: 999px; border: 2px solid transparent; font: 700 1.1rem Barlow, sans-serif; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--navy); border-color: var(--gold); box-shadow: 0 8px 22px rgba(230, 181, 74, .28); }
.btn-gold:hover { background: #F0C460; }
.btn-ghost { color: #fff; border-color: #8FA6BC; }
.btn-ghost:hover { border-color: #fff; }
.btn-line { color: var(--navy); border-color: var(--navy); background: #fff; }
.btn-sm { min-height: 46px; padding: 8px 20px; font-size: 1rem; }
.btn-lg { min-height: 66px; padding: 18px 40px; font-size: 1.3rem; }

/* Header */
.top { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand img { height: 68px; width: auto; margin-left: -8px; }
.nav { margin-left: auto; display: none; gap: 28px; }
.nav a { text-decoration: none; font-weight: 600; color: var(--ink); font-size: 1.05rem; }
.nav a:hover { color: var(--teal-ink); }
.top .btn { margin-left: auto; }
@media (min-width: 860px) { .nav { display: flex; } .top .btn { margin-left: 0; } }

/* Hero */
.hero { padding: clamp(48px, 7vw, 96px) 0 0; overflow: hidden; background: radial-gradient(900px 500px at 85% 20%, rgba(35, 143, 161, .28), transparent 65%), var(--navy); }
.hero-in { display: grid; gap: 56px; align-items: center; }
.lead { font-size: clamp(1.25rem, 2.4vw, 1.55rem); line-height: 1.4; color: #E3ECF3; margin-top: 22px; max-width: 30ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; font-weight: 600; font-size: 1rem; color: #D5E0EA; }
.ticks li::before { content: "✓"; color: var(--gold); font-weight: 800; margin-right: 8px; }
@media (min-width: 940px) { .hero-in { grid-template-columns: 1.05fr .95fr; } }
@media (max-width: 520px) { .cta-row .btn { width: 100%; } }

/* Avatars */
.av { width: 84px; height: 56px; flex: none; --b: #1B4E7A; --n: #8DF6FF; --v: #DDFBFF; filter: drop-shadow(0 0 10px rgba(111, 211, 227, .35)); }
.c-navy .av, .t-navy .av { --b: #1B4E7A; --n: #8DF6FF; --v: #DDFBFF; }
.c-gold .av, .t-gold .av, .av.c-gold { --b: #E6B54A; --n: #0F2238; --v: #0F2238; }
.c-teal .av, .t-teal .av { --b: #238FA1; --n: #DDFBFF; --v: #fff; }

/* Tower */
.tower { position: relative; width: min(430px, 100%); margin-inline: auto; display: grid; gap: 10px; padding-top: 26px; }
.t-card { display: flex; align-items: center; gap: 16px; padding: 16px 22px; border-radius: 34px; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .25), 0 14px 30px rgba(0, 0, 0, .35); }
.t-card b { display: block; font-size: 1.35rem; font-weight: 800; line-height: 1.1; }
.t-card span { font-size: 1rem; font-weight: 600; }
.t-navy { background: linear-gradient(180deg, #1E5A8C, #153F66); color: #fff; }
.t-gold { background: linear-gradient(180deg, #F2C65E, #DDA936); color: var(--navy); }
.t-teal { background: linear-gradient(180deg, #2BA5B9, #1D7F90); color: #fff; }
.t-navy .av { --b: #0F2238; }
.t-gold .av { --b: #0F2238; --n: #0F2238; --v: #F7DC97; }
.t-teal .av { --b: #0F2238; --n: #DDFBFF; --v: #DDFBFF; }
.t-tilt { transform: rotate(-7deg) translate(14px, 2px); transform-origin: left bottom; }
.t-more { text-align: center; font-weight: 700; color: var(--gold); padding: 10px; border: 2px dashed #46607A; border-radius: 34px; }
.t-shadow { height: 24px; margin: 0 8%; background: radial-gradient(closest-side, rgba(0, 0, 0, .5), transparent); }
@media (prefers-reduced-motion: no-preference) {
  .t-card { animation: drop .6s cubic-bezier(.2, .9, .3, 1.2) backwards; }
  .t-card:nth-child(5) { animation-delay: .05s; } .t-card:nth-child(4) { animation-delay: .15s; }
  .t-card:nth-child(3) { animation-delay: .25s; } .t-card:nth-child(2) { animation-delay: .35s; }
  .t-card:nth-child(1) { animation-delay: .5s; }
  @keyframes drop { from { opacity: 0; translate: 0 -60px; } }
}

/* Tools strip */
.tools { margin-top: clamp(40px, 6vw, 72px); padding: 22px 0 26px; border-top: 1px solid #2A435E; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; }
.tools > span { font-weight: 600; color: #B7C7D6; font-size: 1rem; }
.tools ul { display: flex; flex-wrap: wrap; gap: 10px; }
.tools li { padding: 6px 16px; border: 1.5px solid #46607A; border-radius: 999px; font-weight: 600; font-size: 1rem; color: #fff; }

/* Cards */
.card { background: #fff; border: 1.5px solid var(--line); border-radius: var(--r); padding: 28px; }
.card p { margin-top: 10px; }
.two { display: grid; gap: 20px; margin-top: 28px; }
@media (min-width: 760px) { .two { grid-template-columns: 1fr 1fr; } }
.pile { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.pile li { padding: 10px 22px; border-radius: 999px; background: #fff; border: 1.5px solid var(--navy); color: var(--navy); font-weight: 700; font-size: 1.1rem; }

/* Steps */
.steps { display: grid; gap: 20px; margin-top: 44px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.num { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--navy); color: var(--gold); font-weight: 800; font-size: 1.6rem; margin-bottom: 20px; box-shadow: 0 0 0 5px rgba(35, 143, 161, .18); }

/* Squad grid */
.grid { display: grid; gap: 18px; margin-top: 44px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.agent { display: flex; flex-direction: column; background: var(--navy-2); border: 2px solid #2C4A6B; border-radius: var(--r); padding: 24px; transition: border-color .15s, transform .15s; }
.agent:hover { transform: translateY(-3px); border-color: var(--teal); }
.agent.on { border-color: var(--gold); background: #1B3857; }
.agent h3 { font-size: 1.6rem; font-weight: 800; margin-top: 16px; }
.role { color: var(--teal-lite); font-weight: 700; font-size: 1.05rem; }
.power { margin: 12px 0 22px; color: #D5E0EA; font-size: 1.05rem; }
.buy { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid #2C4A6B; }
.price { font-size: 1.6rem; font-weight: 800; color: #fff; }
.add { min-height: 48px; padding: 8px 20px; border-radius: 999px; border: 2px solid var(--gold); background: transparent; color: var(--gold); font: 700 1.05rem Barlow, sans-serif; cursor: pointer; }
.add:hover, .agent.on .add { background: var(--gold); color: var(--navy); }

/* Control */
.split { display: grid; gap: 44px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } }
.checks { margin-top: 28px; display: grid; gap: 14px; }
.checks li { padding-left: 40px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 28px; height: 28px; border-radius: 50%; background: var(--teal-ink); color: #fff; font-weight: 800; font-size: 1rem; display: grid; place-items: center; }
.checks b { color: var(--ink); }
.approve { background: var(--navy); color: #E3ECF3; border-radius: 26px; padding: 26px; box-shadow: 0 24px 50px rgba(15, 34, 56, .25); }
.ap-head { display: flex; align-items: center; gap: 14px; }
.ap-head .av { width: 66px; height: 44px; }
.ap-head b { display: block; color: #fff; font-size: 1.2rem; line-height: 1.1; }
.ap-head span { font-size: 1rem; color: #B7C7D6; }
.ap-head em { margin-left: auto; font-style: normal; font-weight: 700; font-size: .9rem; color: var(--navy); background: var(--gold); padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.ap-to { margin-top: 20px; font-size: 1rem; color: #B7C7D6; }
.ap-body { margin-top: 8px; background: #fff; color: var(--ink); border-radius: 14px; padding: 16px 18px; font-size: 1.05rem; }
.ap-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; font-weight: 700; font-size: 1rem; }
.ap-btns span { padding: 9px 18px; border-radius: 999px; border: 2px solid #46607A; color: #fff; }
.ap-btns .ap-yes { background: var(--gold); border-color: var(--gold); color: var(--navy); }

/* Pricing */
.plans { display: grid; gap: 22px; margin-top: 52px; align-items: stretch; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 2px solid var(--line); border-radius: 24px; padding: 34px 28px 28px; }
.plan h3 { font-size: 1.5rem; }
.amt { margin-top: 14px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.amt b { font-size: 3.4rem; line-height: 1; font-weight: 800; color: var(--ink); }
.amt s { font-size: 1.5rem; font-weight: 600; color: #5A6C7E; text-decoration-thickness: 2px; }
.amt span { font-weight: 600; font-size: 1.05rem; }
.pdesc { margin-top: 12px; font-weight: 600; color: var(--ink); }
.plan ul { margin: 20px 0 28px; display: grid; gap: 10px; }
.plan li { padding-left: 28px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--teal-ink); font-weight: 800; }
.plan .btn { margin-top: auto; width: 100%; }
.badge { position: absolute; top: -16px; left: 24px; padding: 5px 16px; border-radius: 999px; font-weight: 800; font-size: .95rem; background: var(--teal-ink); color: #fff; }
.badge.gold, .best .badge { background: var(--gold); color: var(--navy); }
.best { background: var(--navy); border-color: var(--gold); color: #D5E0EA; box-shadow: 0 26px 60px rgba(15, 34, 56, .3); }
.best h3, .best .amt b, .best .pdesc { color: #fff; }
.best .amt s { color: #B7C7D6; }
.best li::before { color: var(--gold); }
@media (min-width: 900px) { .best { transform: scale(1.04); } }
.addon { margin-top: 44px; display: grid; gap: 18px; align-items: center; padding: 28px; border-radius: 24px; background: #fff; border: 2px dashed var(--teal-ink); }
.addon-tag { font-weight: 700; font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-ink); margin-bottom: 6px; }
.addon h3 span { font-weight: 600; color: var(--body); }
.addon h3 + p { margin-top: 8px; max-width: 60ch; }
.addon-btn { margin-top: 18px; }
.addon-note { font-weight: 700; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 18px; }
@media (min-width: 900px) { .addon { grid-template-columns: 1fr auto; } }

/* Founder */
.note { margin-top: 26px; padding-left: 22px; border-left: 4px solid var(--gold); display: grid; gap: 14px; font-size: 1.2rem; color: var(--ink); }
.note footer { display: grid; margin-top: 6px; font-size: 1.05rem; }
.note footer span { color: var(--body); }
.result { background: var(--navy); border-radius: 28px; padding: 40px 28px; text-align: center; color: #D5E0EA; box-shadow: 0 24px 50px rgba(15, 34, 56, .25); }
.r-label { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .95rem; color: var(--teal-lite); }
.r-from { margin-top: 14px; font-size: 2.2rem; font-weight: 700; color: #B7C7D6; text-decoration: line-through; text-decoration-thickness: 3px; }
.r-arrow { font-size: 2rem; color: var(--gold); line-height: 1.3; }
.r-to { font-size: clamp(3rem, 8vw, 4.6rem); line-height: 1; font-weight: 800; color: var(--gold); }
.r-cap { margin-top: 20px; font-size: 1.1rem; color: #fff; }

/* FAQ */
.faqs { margin-top: 36px; display: grid; gap: 14px; }
.faqs details { background: #fff; border: 1.5px solid var(--line); border-radius: 18px; }
.faqs details[open] { border-color: var(--teal-ink); }
.faqs summary { cursor: pointer; list-style: none; padding: 22px 60px 22px 24px; font-weight: 700; font-size: 1.25rem; color: var(--ink); position: relative; }
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary::after { content: "+"; position: absolute; right: 24px; top: 50%; translate: 0 -50%; font-size: 1.8rem; font-weight: 600; color: var(--teal-ink); }
.faqs details[open] summary::after { content: "–"; }
.faqs details p { padding: 0 24px 24px; }

/* Final CTA */
.final { padding: clamp(72px, 10vw, 130px) 0; text-align: center; background: radial-gradient(700px 360px at 50% 0, rgba(35, 143, 161, .3), transparent 70%), var(--navy); }
.final h2 { max-width: none; font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 32px; }
.fine { margin-top: 18px; font-weight: 600; color: #B7C7D6; }

/* Footer */
.foot { background: var(--navy-3); color: #B7C7D6; padding: 44px 0; font-size: 1rem; }
.foot-in { display: grid; gap: 24px; justify-items: start; }
.foot-logo { background: #fff; border-radius: 14px; padding: 6px 14px; }
.foot-logo img { height: 46px; width: auto; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.foot a { color: #fff; font-weight: 600; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
@media (min-width: 860px) { .foot-in { grid-template-columns: auto 1fr auto; align-items: center; } .foot nav { justify-content: center; } }

/* Sticky stack counter */
.stackbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--navy-3); border-top: 3px solid var(--teal); color: #fff; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); box-shadow: 0 -12px 30px rgba(0, 0, 0, .3); }
.stackbar.nudge { border-top-color: var(--gold); }
.sb-in { display: flex; align-items: center; gap: 16px; }
.sb-count { display: grid; justify-items: center; flex: none; min-width: 64px; padding: 4px 10px; border-radius: 14px; background: var(--teal); line-height: 1.1; }
.sb-count b { font-size: 1.7rem; font-weight: 800; }
.sb-count span { font-size: .85rem; font-weight: 700; }
.nudge .sb-count { background: var(--gold); color: var(--navy); }
.sb-mid { flex: 1; min-width: 0; }
.sb-total b { font-size: 1.4rem; font-weight: 800; }
.sb-total s { color: #B7C7D6; font-weight: 600; }
.sb-msg { font-size: 1rem; font-weight: 600; color: #D5E0EA; line-height: 1.25; }
.nudge .sb-msg { color: var(--gold); }
.stackbar .btn { flex: none; }
.stackbar .btn:hover { transform: none; }

/* Order summary */
dialog { width: min(480px, calc(100% - 32px)); border: 0; border-radius: 24px; padding: 30px; color: var(--body); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
dialog::backdrop { background: rgba(10, 24, 40, .7); }
dialog h2 { font-size: 1.9rem; }
#orderList { margin-top: 18px; max-height: 42vh; overflow: auto; border-top: 1.5px solid var(--line); }
#orderList li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1.5px solid var(--line); }
#orderList b { color: var(--ink); }
#orderList span { text-align: right; font-size: 1rem; }
.o-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 18px; font-weight: 700; color: var(--ink); }
.o-total b { font-size: 2rem; font-weight: 800; }
.o-note { margin-top: 6px; font-weight: 600; color: var(--teal-ink); }
.o-btns { display: grid; gap: 10px; margin-top: 22px; }
[hidden] { display: none !important; }

/* Phone header: keep the button on one line */
.top .btn { white-space: nowrap; }
@media (max-width: 480px) { .top-in { gap: 10px; } .brand img { height: 56px; } .top .btn { padding: 8px 16px; } }
#orderList { padding-right: 10px; }

/* Agent pictures. The name and role printed at the bottom of each picture are
   cropped off, because the card prints them as real text right below. */
.agent.has-pic { padding-top: 0; overflow: hidden; }
.pic { display: block; width: calc(100% + 48px); max-width: none; margin: 0 -24px; aspect-ratio: 6 / 5; height: auto; object-fit: cover; object-position: 50% 0; background: var(--navy); }
.agent.has-pic h3 { margin-top: 18px; }
.t-pic { flex: none; width: 68px; height: 68px; border-radius: 50%; overflow: hidden; border: 3px solid rgba(255, 255, 255, .85); background: var(--navy); }
.t-pic img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.5); transform-origin: 50% 28%; }
.ap-head .t-pic { width: 56px; height: 56px; border-color: var(--gold); }

/* Each agent's own color, matched to their picture */
.agent .role { color: var(--accent, var(--teal-lite)); }
.agent.has-pic .pic { border-bottom: 3px solid var(--accent, var(--teal)); }

/* Agent dropdown: what the agent does, core skills, integrations */
.power { margin-bottom: 16px; font-size: 1.15rem; font-weight: 600; color: #fff; }
.more { margin-bottom: 20px; border-top: 1px solid #2C4A6B; }
.more summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 12px 0 0; font-weight: 700; font-size: 1.05rem; color: var(--accent, var(--teal-lite)); }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "+"; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 2px solid currentColor; display: grid; place-items: center; font-size: 1.4rem; line-height: 1; }
.more[open] summary::after { content: "\2013"; }
.more-in { padding-top: 10px; color: #D5E0EA; font-size: 1.05rem; }
.more-in h4 { margin: 18px 0 8px; font-size: .9rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.skills { display: grid; gap: 6px; }
.skills li { padding-left: 24px; position: relative; }
.skills li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent, var(--gold)); font-weight: 800; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 4px 12px; border-radius: 999px; border: 1.5px solid #46607A; background: var(--navy); color: #fff; font-size: 1rem; font-weight: 600; }
.grid { align-items: start; }

/* How the squad works together: the 3D tower film */
.tower-sec { position: relative; height: calc(100svh + var(--len, 480vh)); background: #07121F; }
.tw-sticky { position: sticky; top: 72px; height: calc(100svh - 72px); display: grid; align-items: center; overflow: hidden; }
.tw-in { display: grid; gap: 12px; align-items: center; }
.tw-film { aspect-ratio: 4 / 3; width: calc(100% + 40px); margin: 0 -20px; background: url(assets/stack-film/m/000.webp) center / cover; -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent), linear-gradient(to bottom, transparent, #000 10%, #000 82%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent), linear-gradient(to bottom, transparent, #000 10%, #000 82%, transparent); mask-composite: intersect; }
.tw-film canvas { width: 100%; height: 100%; }
.tw-side .eyebrow { margin-bottom: 8px; }
.tw-caps { display: grid; }
.tw-cap { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .35s, transform .35s, visibility .35s; }
.tw-cap.on { opacity: 1; visibility: visible; transform: none; }
.tw-cap h2, .tw-cap h3 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); line-height: 1.08; font-weight: 800; color: #fff; max-width: none; }
.tw-cap p { margin-top: 12px; font-size: 1.15rem; color: #E3ECF3; max-width: 46ch; }
.tw-who { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tw-cap .btn { margin-top: 20px; }
.who { display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; border-radius: 999px; border: 2px solid #46607A; background: var(--navy); color: #fff; font-weight: 700; font-size: 1rem; text-decoration: none; }
.who:hover { border-color: var(--gold); }
.who img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.tw-dots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tw-dots button { min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 2px solid #46607A; background: transparent; color: #D5E0EA; font: 700 .95rem Barlow, sans-serif; cursor: pointer; }
.tw-dots button:hover { border-color: #fff; color: #fff; }
.tw-dots button.on { background: var(--gold); border-color: var(--gold); color: var(--navy); }
@media (min-width: 900px) {
  .tw-in { grid-template-columns: 1.3fr 1fr; gap: 36px; }
  .tw-film { width: 100%; margin: 0; max-height: calc(100svh - 110px); justify-self: center; }
  .tw-cap p { font-size: 1.25rem; }
}
@media (max-width: 899px) {
  .tw-sticky { align-items: start; }
  .tw-cap p { font-size: 1.05rem; margin-top: 8px; }
  .tw-dots { margin-top: 14px; gap: 6px; }
  .tw-dots button { min-height: 36px; padding: 4px 11px; font-size: .9rem; }
}

/* The job film sits on the other side on wide screens */
@media (min-width: 900px) { .tw-flip .tw-in { grid-template-columns: 1fr 1.3fr; } .tw-flip .tw-film { order: 2; } }

/* Build my stack quiz */
.quiz { margin-top: 40px; background: var(--navy-2); border: 2px solid var(--gold); border-radius: 24px; padding: 26px 22px; }
.quiz-head h3 { font-size: 1.7rem; font-weight: 800; }
.quiz-head p { margin-top: 6px; font-size: 1.15rem; color: #E3ECF3; }
.quiz-body { margin-top: 22px; }
.quiz-step { font-weight: 700; font-size: 1rem; color: var(--gold); }
.quiz-bar { height: 8px; margin-top: 8px; border-radius: 99px; background: #0B1B2E; border: 1px solid #46607A; overflow: hidden; }
.quiz-bar span { display: block; height: 100%; background: var(--gold); border-radius: 99px; transition: width .3s; }
.quiz-q { margin-top: 20px; font-size: 1.5rem; font-weight: 800; color: #fff; outline: none; }
.quiz-opts { display: grid; gap: 12px; margin-top: 16px; }
.quiz-opts button { min-height: 62px; padding: 12px 20px; text-align: left; border-radius: 16px; border: 2px solid #5A7896; background: var(--navy); color: #fff; font: 600 1.15rem Barlow, sans-serif; cursor: pointer; }
.quiz-opts button:hover { border-color: var(--gold); background: #132B45; }
.quiz-back { margin-top: 16px; padding: 8px 0; border: 0; background: none; color: #D5E0EA; font: 700 1.05rem Barlow, sans-serif; text-decoration: underline; cursor: pointer; }
.quiz-picks { display: grid; gap: 14px; margin-top: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.quiz-pick { background: var(--navy); border: 2px solid var(--accent, #46607A); border-radius: 18px; overflow: hidden; }
.quiz-pick img { width: 100%; aspect-ratio: 6 / 5; height: auto; object-fit: cover; object-position: 50% 0; }
.quiz-pick div { padding: 12px 14px 14px; }
.quiz-pick b { display: block; font-size: 1.3rem; font-weight: 800; color: #fff; line-height: 1.1; }
.quiz-pick span { display: block; font-weight: 700; font-size: 1rem; color: var(--accent, var(--teal-lite)); }
.quiz-pick small { display: block; margin-top: 8px; font-size: 1rem; color: #D5E0EA; line-height: 1.3; }
.quiz-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 22px; }
.quiz-note { margin-top: 12px; font-size: 1.05rem; color: #E3ECF3; }
@media (min-width: 760px) { .quiz { padding: 34px; } .quiz-opts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .quiz-btns .btn { width: 100%; } }

/* The stack bar's little tower: a pill for each agent added, stacked in fives like the logo */
.sb-tw { position: relative; flex: none; }
.sb-tower { display: flex; align-items: flex-end; gap: 5px; }
.sb-col { display: flex; flex-direction: column-reverse; gap: 2px; }
.sb-pill { position: relative; width: 34px; height: 10px; border-radius: 5px; border: 1.5px solid #46607A; }
.sb-pill.free { border-color: var(--gold); }
.sb-pill.in { border: 0; background: var(--c, var(--teal)); box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .4); }
.sb-pill.in::after { content: ""; position: absolute; left: 10px; right: 10px; top: 2px; bottom: 2px; border-radius: 3px; background: #0B1B2E; }
.sb-pill.in.free { background: var(--gold); box-shadow: 0 0 10px 1px var(--gold); }
.sb-pill.top { transform: rotate(-9deg) translate(2px, -1px); transform-origin: left bottom; }
.sb-free { position: absolute; left: 0; bottom: 100%; margin-bottom: 16px; padding: 3px 12px; border-radius: 999px; background: var(--gold); color: var(--navy); font-weight: 800; font-size: .95rem; white-space: nowrap; opacity: 0; pointer-events: none; }
.sb-n { font-weight: 700; margin-right: 6px; }
.sb-n::after { content: " \00B7"; }
@media (prefers-reduced-motion: no-preference) {
  .sb-pill.drop { animation: pilldrop .5s cubic-bezier(.3, 1.5, .5, 1) backwards; }
  @keyframes pilldrop { from { opacity: 0; translate: 0 -70px; } }
  .stackbar.flash { animation: barflash 1s; }
  @keyframes barflash { 0%, 30% { background: #6B5212; } }
  .flash .sb-free { animation: freepop 1.8s; }
  @keyframes freepop { 0% { opacity: 0; translate: 0 10px; } 15%, 75% { opacity: 1; translate: 0 0; } 100% { opacity: 0; translate: 0 -14px; } }
}

/* The 3D tower at the top of the page */
.tower3d { position: relative; width: min(480px, 100%); margin-inline: auto; }
.tower3d::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 6%; height: 7%; background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent); z-index: 0; }
.tower3d img { position: relative; z-index: 1; width: 100%; height: auto; }
@media (min-width: 940px) { .tower3d { margin-block: -30px; } }
@media (max-width: 520px) { .sb-n { display: block; margin: 0; font-size: .95rem; } .sb-n::after { content: ""; } .sb-total { line-height: 1.2; } .sb-msg { font-size: .92rem; } }

/* Chief's voice: a big gold "Hear it from Chief" button on Chief's picture. The picture plays it too. */
.voice-pic { position: relative; width: calc(100% + 48px); margin: 0 -24px; cursor: pointer; }
.voice-pic .pic { width: 100%; margin: 0; }
.voice { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 12px; padding: 10px 16px 14px 10px; border: 0; border-radius: 999px; background: var(--gold); color: var(--navy); font: inherit; text-align: left; cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); overflow: hidden; }
.voice:hover { background: #F0C45E; }
.voice:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.v-ic { position: relative; flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--navy); }
.v-ic svg { width: 24px; height: 24px; fill: var(--gold); }
.v-ic .i-pause, .voice.playing .i-play { display: none; }
.voice.playing .i-pause { display: block; }
.voice:not(.playing):not(.heard) .v-ic::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 3px solid var(--navy); animation: vring 1.8s ease-out infinite; }
@keyframes vring { from { transform: scale(1); opacity: .7; } to { transform: scale(1.45); opacity: 0; } }
.v-txt { display: flex; flex-direction: column; line-height: 1.2; }
.v-txt b { font-size: 1.15rem; font-weight: 800; }
.v-txt small { font-size: .9rem; font-weight: 600; opacity: .85; }
.v-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(15, 34, 56, .2); }
.v-bar i { display: block; height: 100%; width: 0; background: var(--navy); }
@media (prefers-reduced-motion: reduce) { .v-ic::after { animation: none !important; } }
