@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: italic;
  font-display: swap;
}

:root {
  --cobalt: #2340d8;
  --cobalt-deep: #1a31ad;
  --navy: #0c1735;
  --navy-2: #15234a;
  --navy-line: #2a3a68;
  --paper: #f1f2ee;
  --sheet: #ffffff;
  --ink: #0f1420;
  --ink-2: #4b5466;
  --rule: #cfd3da;
  --signal: #ffd43b;
  --signal-deep: #f5c400;
  --red: #e5342b;
  --green: #2fbf71;
  --on-dark: #e9ecf5;
  --on-dark-2: #a9b3cf;

  --wide: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.75rem);
  --step: clamp(4.5rem, 10vw, 8rem);
  --measure: 64ch;

  font-family: "Archivo", ui-sans-serif, system-ui, sans-serif;
  font-size: 112.5%;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.display { font-weight: 820; font-stretch: 122%; letter-spacing: -0.035em; line-height: .95; }
h1 { font-size: clamp(2.8rem, 7.4vw, 6.6rem); font-weight: 820; font-stretch: 122%; letter-spacing: -0.035em; line-height: .95; }
h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 800; font-stretch: 118%; letter-spacing: -0.03em; line-height: 1; }
h3 { font-size: 1.22rem; font-weight: 700; font-stretch: 108%; letter-spacing: -0.01em; line-height: 1.2; }

a { color: var(--cobalt); text-decoration-thickness: 1.5px; text-underline-offset: .18em; }
a:hover { color: var(--cobalt-deep); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 3px; }
.on-light :focus-visible, .section-light :focus-visible { outline-color: var(--cobalt); }

.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--signal); color: var(--ink); padding: .6rem 1rem; z-index: 20; font-weight: 700; }
.skip-link:focus { top: 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.lede { font-size: clamp(1.12rem, 1.7vw, 1.36rem); line-height: 1.5; max-width: 54ch; }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .95rem 1.4rem; border-radius: 999px; font: inherit; font-size: 1rem; font-weight: 700; font-stretch: 108%; line-height: 1.1; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: transform .15s ease, background-color .15s ease; }
.button:hover { transform: translateY(-1px); text-decoration: none; }
.button-signal { background: var(--signal); color: var(--ink); }
.button-signal:hover { background: #ffe066; color: var(--ink); }
.button-ink { background: var(--ink); color: #fff; }
.button-ink:hover { background: var(--navy-2); color: #fff; }
.button-cobalt { background: var(--cobalt); color: #fff; }
.button-cobalt:hover { background: var(--cobalt-deep); color: #fff; }
.button-ghost { border-color: currentColor; color: inherit; background: transparent; }
.button-ghost:hover { color: inherit; background: rgba(255,255,255,.08); }
.on-light .button-ghost:hover { background: rgba(15,20,32,.05); }

/* Header */
.site-header { position: relative; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 5rem; }
.header-cobalt { background: var(--cobalt); color: #fff; }
.header-navy { background: var(--navy); color: #fff; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: inherit; text-decoration: none; font-weight: 800; font-stretch: 122%; letter-spacing: -0.02em; font-size: 1.1rem; }
.brand:hover { color: inherit; }
.brand svg { width: 32px; height: 32px; flex: none; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; }
.nav a { color: inherit; text-decoration: none; font-size: .96rem; font-weight: 520; }
.nav a:hover { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 3px; }
.nav .button { padding: .62rem 1.05rem; font-size: .92rem; }
.nav .button:hover { text-decoration: none; }
.nav-toggle { display: none; }
@media (max-width: 1180px) {
  .nav-toggle { display: block; }
  .nav-toggle summary { list-style: none; cursor: pointer; padding: .55rem 1rem; border: 2px solid currentColor; border-radius: 999px; font-size: .95rem; font-weight: 650; }
  .nav-toggle summary::-webkit-details-marker { display: none; }
  .nav .nav-desktop { display: none; }
  .nav-panel { position: absolute; left: 0; right: 0; top: 5rem; background: var(--navy); padding: 1rem var(--gutter) 1.75rem; z-index: 15; box-shadow: 0 30px 40px -20px rgba(0,0,0,.4); }
  .nav .nav-panel ul { display: block; }
  .nav-panel li a { display: block; padding: .8rem 0; color: #fff; font-size: 1.25rem; font-weight: 700; font-stretch: 112%; border-bottom: 1px solid var(--navy-line); }
}
@media (min-width: 1181px) { .nav-panel { display: none; } }

/* Section shells */
.section { padding: var(--step) 0; }
.section-light { background: var(--paper); color: var(--ink); }
.section-white { background: var(--sheet); color: var(--ink); }
.section-navy { background: var(--navy); color: var(--on-dark); }
.section-cobalt { background: var(--cobalt); color: #fff; }
.section-signal { background: var(--signal); color: var(--ink); }
.section-navy a:not(.button), .section-cobalt a:not(.button) { color: #fff; }
.section-navy a:not(.button):hover, .section-cobalt a:not(.button):hover { text-decoration-color: var(--signal); }
.section-signal a:not(.button) { color: var(--ink); }
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head p { margin-top: 1.2rem; font-size: 1.12rem; }
.section-light .section-head p, .section-white .section-head p { color: var(--ink-2); }
.section-navy .section-head p { color: var(--on-dark-2); }
.tight { padding-top: 0; }

/* Hero */
.hero { background: var(--cobalt); color: #fff; padding: clamp(2rem, 5vw, 4rem) 0 clamp(4rem, 8vw, 6.5rem); overflow: hidden; position: relative; }
.hero::after { content: ""; position: absolute; inset: auto -10% -45% auto; width: 60vw; height: 60vw; background: radial-gradient(closest-side, rgba(255,212,59,.18), transparent 70%); pointer-events: none; }
.hero h1 { max-width: 17ch; position: relative; z-index: 1; font-size: clamp(2.8rem, 7vw, 6.4rem); }
.hero .lede { color: #dfe5ff; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; position: relative; z-index: 1; margin-top: clamp(2rem, 4vw, 3rem); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
@media (max-width: 1080px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

.page-hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 7vw, 5.5rem); }
.page-hero h1 { max-width: 14ch; font-size: clamp(2.6rem, 6.4vw, 5.6rem); }
.page-hero .lede { margin-top: 1.5rem; }
.section-cobalt.page-hero .lede, .section-navy.page-hero .lede { color: #dfe5ff; }
.crumb { margin-bottom: 1.4rem; font-weight: 600; font-size: .95rem; }
.crumb a { text-decoration: none; opacity: .85; }
.crumb a:hover { opacity: 1; text-decoration: underline; }
.split-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 1000px) { .split-hero { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Quote engine (hero) ---------- */
.engine { background: var(--navy); border-radius: 18px; padding: clamp(1rem, 2vw, 1.4rem); box-shadow: 0 40px 80px -30px rgba(5,10,40,.6), 0 0 0 1px rgba(255,255,255,.06) inset; color: var(--on-dark); font-size: .9rem; }
.engine-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .9rem; }
.engine-title { font-weight: 750; font-stretch: 112%; font-size: 1rem; color: #fff; }
.engine-mode { font-size: .82rem; color: var(--on-dark-2); display: inline-flex; align-items: center; gap: .45rem; }
.engine-mode::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0 rgba(255,212,59,.6); animation: pulse 1.6s infinite; }
.engine.is-manual .engine-mode::before { background: var(--green); animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(255,212,59,0); } 100% { box-shadow: 0 0 0 0 rgba(255,212,59,0); } }
.engine-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem .8rem; margin-bottom: 1rem; }
.ctl { border: 0; margin: 0; padding: 0; min-width: 0; }
.ctl legend { font-size: .76rem; color: var(--on-dark-2); margin-bottom: .3rem; padding: 0; font-weight: 600; }
.seg { display: flex; background: var(--navy-2); border-radius: 10px; padding: 3px; gap: 3px; }
.seg button { flex: 1; font: inherit; font-size: .8rem; font-weight: 650; color: var(--on-dark-2); background: transparent; border: 0; border-radius: 8px; padding: .45rem .3rem; cursor: pointer; white-space: nowrap; transition: background-color .2s, color .2s; }
.seg button:hover { color: #fff; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.seg button:disabled { color: #5c6789; cursor: not-allowed; text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.engine-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: .9rem; }
@media (max-width: 640px) { .engine-body, .engine-controls { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 641px) and (max-width: 860px) { .engine-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.quote { background: var(--sheet); color: var(--ink); border-radius: 12px; padding: .9rem 1rem 1rem; font-variant-numeric: tabular-nums; }
.quote-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--ink); padding-bottom: .5rem; margin-bottom: .35rem; }
.quote-head strong { font-weight: 800; font-stretch: 118%; font-size: 1.05rem; }
.quote-head span { color: var(--ink-2); font-size: .78rem; }
.qline { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .75rem; padding: .34rem 0; border-bottom: 1px solid #eceef2; font-size: .84rem; line-height: 1.3; transition: background-color .5s; }
.qline .muted { color: var(--ink-2); }
.qline.is-discount .amt { color: var(--green); font-weight: 650; }
.qline.flash { background: #fff6cc; }
.qline.is-new { animation: slidein .35s ease-out; }
@keyframes slidein { from { opacity: 0; transform: translateY(-4px); } }
.qtotal { display: flex; justify-content: space-between; align-items: baseline; padding-top: .55rem; font-weight: 800; font-size: 1.12rem; font-stretch: 110%; }
.qmeta { display: flex; justify-content: space-between; gap: .6rem; font-size: .78rem; color: var(--ink-2); margin-top: .3rem; }
.status { display: inline-flex; align-items: center; gap: .4rem; margin-top: .7rem; padding: .35rem .65rem; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-ok { background: #e3f7ec; color: #12764a; }
.status-hold { background: #fff0c2; color: #8a5b00; }
.status-sent { background: #e5e9ff; color: var(--cobalt-deep); }

.log { background: var(--navy-2); border-radius: 12px; padding: .8rem .9rem; display: flex; flex-direction: column; min-height: 15rem; }
.log-title { font-size: .76rem; color: var(--on-dark-2); font-weight: 650; margin-bottom: .5rem; display: flex; justify-content: space-between; }
.log ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; overflow: hidden; max-height: 17rem; }
.log li { font-size: .8rem; line-height: 1.32; padding: .45rem .55rem .45rem .7rem; border-radius: 8px; background: rgba(255,255,255,.04); border-left: 3px solid var(--on-dark-2); }
.log li strong { display: block; font-weight: 700; color: #fff; font-size: .8rem; }
.log li span { color: var(--on-dark-2); }
.log li.k-block { border-left-color: var(--red); }
.log li.k-price { border-left-color: var(--green); }
.log li.k-hold { border-left-color: var(--signal); }
.log li.k-info { border-left-color: #7d9bff; }
.log li.k-send { border-left-color: #7d9bff; background: rgba(125,155,255,.12); }
.log li.is-new { animation: logIn .45s cubic-bezier(.2,.8,.2,1); }
.log li.is-new strong { animation: logFlash 1.2s ease-out; }
@keyframes logIn { from { opacity: 0; transform: translateX(10px); } }
@keyframes logFlash { 0%, 40% { color: var(--signal); } }
.engine-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: .9rem; flex-wrap: wrap; }
.engine-foot p { margin: 0; font-size: .8rem; color: var(--on-dark-2); }
.engine-send { font: inherit; font-size: .84rem; font-weight: 750; padding: .55rem 1rem; border-radius: 999px; border: 0; background: var(--signal); color: var(--ink); cursor: pointer; }
.engine-send:disabled { background: #3a4670; color: #8d97b8; cursor: not-allowed; }
.engine-send.is-approve { background: #fff; }

/* ---------- Symptoms ---------- */
.symptoms { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.symptoms li { background: var(--sheet); border-radius: 16px; padding: 1.4rem 1.4rem 1.6rem; font-size: 1.06rem; line-height: 1.45; position: relative; font-weight: 520; }
.symptoms li::before { content: ""; display: block; width: 2.2rem; height: 1.3rem; margin-bottom: 1rem; border: 2.5px solid var(--red); border-radius: 50%; transform: rotate(-10deg); }
@media (max-width: 960px) { .symptoms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .symptoms { grid-template-columns: 1fr; } }

/* ---------- Capability tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.tile { display: flex; flex-direction: column; background: var(--navy-2); color: var(--on-dark); border-radius: 18px; padding: 1.5rem; text-decoration: none; min-height: 19rem; position: relative; overflow: hidden; transition: transform .2s ease, background-color .2s ease; }
.tile:hover { transform: translateY(-3px); background: #1b2c5c; color: var(--on-dark); }
.tile h3 { color: #fff; font-size: 1.35rem; margin-top: auto; padding-top: 1.2rem; }
.tile p { color: var(--on-dark-2); margin: .55rem 0 0; font-size: .98rem; line-height: 1.45; }
.tile .go { margin-top: 1rem; color: var(--signal); font-weight: 700; font-size: .92rem; }
.tile svg.glyph { width: 100%; height: 7.5rem; }
.tile:nth-child(1) { background: var(--cobalt); }
.tile:nth-child(1):hover { background: #2b4ae6; }
.tile:nth-child(1) p { color: #dfe5ff; }
.glyph .g-line { stroke: var(--on-dark-2); stroke-width: 2; fill: none; }
.glyph .g-box { fill: rgba(255,255,255,.07); stroke: rgba(255,255,255,.25); stroke-width: 1.5; }
.glyph .g-hot { fill: var(--signal); }
.glyph .g-red { stroke: var(--red); stroke-width: 3; fill: none; stroke-linecap: round; }
.glyph .g-ok { fill: var(--green); }
@media (max-width: 960px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .tiles { grid-template-columns: 1fr; } .tile { min-height: 0; } }

/* ---------- Big statement band ---------- */
.statement { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: end; }
.statement .body { font-size: 1.15rem; max-width: 40rem; }
@media (max-width: 900px) { .statement { grid-template-columns: 1fr; } }

/* ---------- Sizes ---------- */
.sizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.size { background: var(--sheet); border-radius: 18px; padding: 1.8rem 1.6rem; display: flex; flex-direction: column; }
.size h3 { font-size: 1.6rem; font-stretch: 116%; font-weight: 800; letter-spacing: -0.02em; }
.size p { color: var(--ink-2); margin-top: .6rem; }
.size ul { margin: auto 0 0; padding: 1.2rem 0 0; list-style: none; border-top: 1px solid var(--rule); font-size: .96rem; }
.size li { padding: .35rem 0 .35rem 1.4rem; position: relative; }
.size li::before { content: ""; position: absolute; left: 0; top: .78em; width: .7rem; height: .7rem; background: var(--signal); border-radius: 50%; }
.size.is-accent { background: var(--ink); color: #fff; }
.size.is-accent p { color: var(--on-dark-2); }
.size.is-accent ul { border-top-color: var(--navy-line); }
@media (max-width: 900px) { .sizes { grid-template-columns: 1fr; } }

/* ---------- Feature (demo) ---------- */
.feature { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.3fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.feature h2 { margin-bottom: 1.2rem; }
.feature p { color: var(--on-dark-2); font-size: 1.08rem; }
.feature .fine { font-size: .9rem; margin-top: 1.1rem; }
.feature .button { margin-top: .8rem; }
.shot { display: block; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); transition: transform .5s ease; }
a.shot:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.shot-flat { transform: none; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } .shot { transform: none; } }
@media (prefers-reduced-motion: reduce) { .shot, a.shot:hover { transform: none; } }

/* ---------- Detail lists ---------- */
.detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.detail-card { background: var(--sheet); border-radius: 18px; padding: 1.6rem; }
.detail-card h2 { font-size: 1.35rem; font-stretch: 112%; margin-bottom: 1rem; letter-spacing: -0.01em; }
.detail-card ul { list-style: none; margin: 0; padding: 0; }
.detail-card li { padding: .7rem 0; border-top: 1px solid #e8eaee; font-size: 1rem; line-height: 1.45; }
.detail-card li:first-child { border-top: 0; padding-top: 0; }
.detail-card.breaks { background: var(--ink); color: var(--on-dark); }
.detail-card.breaks li { border-top-color: var(--navy-line); padding-left: 1.7rem; position: relative; }
.detail-card.breaks li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 1rem; height: .62rem; border: 2px solid var(--red); border-radius: 50%; transform: rotate(-10deg); }
.detail-card.breaks li:first-child::before { top: .35rem; }
.detail-card.changes { background: var(--signal); }
.detail-card.changes li { border-top-color: rgba(15,20,32,.15); font-weight: 560; }
@media (max-width: 960px) { .detail-grid { grid-template-columns: 1fr; } }

.faq { max-width: 54rem; }
.faq details { background: var(--sheet); border-radius: 14px; margin-bottom: .6rem; }
.faq summary { cursor: pointer; padding: 1.15rem 3rem 1.15rem 1.3rem; font-weight: 700; font-size: 1.08rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.2rem; top: .85rem; font-size: 1.6rem; font-weight: 400; color: var(--cobalt); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 1.3rem 1.3rem; max-width: var(--measure); color: var(--ink-2); }

.related { display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; margin: 0; list-style: none; }
.related a { display: inline-block; padding: .6rem 1rem; border-radius: 999px; background: var(--sheet); text-decoration: none; font-weight: 650; color: var(--ink); font-size: .95rem; }
.related a:hover { background: var(--ink); color: #fff; }

/* Steps: a real sequence */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 1rem; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 5rem minmax(0, 17rem) minmax(0, 1fr); gap: .5rem 2rem; padding: 1.8rem; border-radius: 18px; background: var(--sheet); align-items: start; }
.steps > li::before { content: counter(step); font-size: 3.6rem; font-weight: 820; font-stretch: 125%; line-height: .9; color: var(--cobalt); }
.steps h3 { font-size: 1.4rem; font-stretch: 114%; font-weight: 800; }
.steps .body { max-width: var(--measure); color: var(--ink-2); }
.steps .body ul { margin: .8rem 0 0; padding-left: 1.1rem; }
.steps .body li { margin-bottom: .35rem; }
@media (max-width: 860px) { .steps > li { grid-template-columns: 3.2rem minmax(0, 1fr); } .steps > li::before { font-size: 2.4rem; } .steps .body { grid-column: 2; } }

/* Two-column text bands */
.band { display: grid; grid-template-columns: minmax(0, 24rem) minmax(0, 1fr); gap: 1.5rem clamp(2rem, 6vw, 5rem); }
.band h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.band .body { max-width: var(--measure); font-size: 1.1rem; }
.band .body ul { padding-left: 1.2rem; margin: 0 0 1em; }
.band .body li { margin-bottom: .55rem; }
.band + .band { margin-top: clamp(3rem, 6vw, 4.5rem); }
@media (max-width: 860px) { .band { grid-template-columns: 1fr; } }

/* Notes grid (products, small builds) */
.notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.notes section { background: var(--sheet); border-radius: 18px; padding: 1.6rem; }
.notes h3 { margin-bottom: .6rem; font-size: 1.3rem; }
.notes p { color: var(--ink-2); }
.section-navy .notes section { background: var(--navy-2); }
.section-navy .notes h3 { color: #fff; }
.section-navy .notes p { color: var(--on-dark-2); }
@media (max-width: 820px) { .notes { grid-template-columns: 1fr; } }
.chip { display: inline-block; font-size: .88rem; font-weight: 650; padding: .35rem .8rem; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; margin-top: 1.4rem; }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.card { background: var(--sheet); border-radius: 20px; padding: 1rem 1rem 1.6rem; }
.card .shot { transform: none; box-shadow: none; border-radius: 12px; }
.card h2 { font-size: 2rem; margin: 1.3rem .5rem .5rem; }
.card h2 a { color: var(--ink); text-decoration: none; }
.card h2 a:hover { color: var(--cobalt); }
.card p { color: var(--ink-2); margin: 0 .5rem; }
@media (max-width: 820px) { .cards { grid-template-columns: 1fr; } }

/* Closing CTA */
.closing { background: var(--signal); color: var(--ink); padding: clamp(4rem, 9vw, 7rem) 0; }
.closing h2 { font-size: clamp(2.4rem, 6vw, 5rem); max-width: 14ch; }
.closing p { font-size: 1.15rem; max-width: 50ch; margin-top: 1.4rem; }
.closing .actions { margin-top: 2rem; }
.closing :focus-visible { outline-color: var(--ink); }

/* Forms */
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
@media (max-width: 860px) { .form-layout { grid-template-columns: 1fr; } }
.inquiry { background: var(--sheet); border-radius: 20px; padding: clamp(1.4rem, 3vw, 2.2rem); max-width: 42rem; box-shadow: 0 30px 60px -40px rgba(12,23,53,.5); }
.inquiry fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.field { margin-bottom: 1.3rem; }
.field label { display: block; font-weight: 700; margin-bottom: .45rem; font-size: 1rem; }
.field label span { font-weight: 400; color: var(--ink-2); }
.field input, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #f6f7f9; border: 2px solid #d9dde4; border-radius: 10px; padding: .75rem .85rem; }
.field textarea { min-height: 11rem; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cobalt); background: #fff; box-shadow: 0 0 0 4px rgba(35,64,216,.15); }
.field [aria-invalid="true"] { border-color: var(--red); }
.field-hint { font-size: .88rem; color: var(--ink-2); margin-top: .4rem; }
.field-error { display: block; color: #b0161a; font-size: .92rem; margin-top: .4rem; font-weight: 600; }
.form-error { color: #b0161a; font-weight: 600; margin: 0 0 1rem; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-success h2 { font-size: 1.8rem; margin-bottom: .6rem; }
.form-success:focus { outline: none; }
.form-fallback { margin-top: 1.2rem; font-size: .95rem; color: var(--ink-2); }
.aside { background: var(--navy); color: var(--on-dark); border-radius: 20px; padding: 1.6rem; }
.aside h2 { font-size: 1.35rem; margin-bottom: .9rem; color: #fff; }
.aside ul { padding-left: 1.1rem; margin: 0; color: var(--on-dark-2); }
.aside li { margin-bottom: .5rem; }
.aside p { color: var(--on-dark-2); }

/* Footer */
.site-footer { background: var(--navy); color: var(--on-dark-2); padding: 3.5rem 0 4rem; font-size: .95rem; }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; }
.site-footer .brand { color: #fff; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { text-decoration-color: var(--signal); }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* ---------- Solution visuals ---------- */
.viz { background: var(--navy); color: var(--on-dark); border-radius: 18px; padding: 1.3rem; min-height: 22rem; box-shadow: 0 40px 80px -30px rgba(5,10,40,.55); font-size: .9rem; position: relative; overflow: hidden; }
.viz-title { display: flex; justify-content: space-between; font-size: .8rem; color: var(--on-dark-2); font-weight: 650; margin-bottom: 1rem; }
.viz-title b { color: #fff; font-weight: 750; }

/* configurator */
.cfg-groups { display: grid; gap: .9rem; }
.cfg-group .vh { margin: 0 0 .4rem; font-size: .76rem; color: var(--on-dark-2); font-weight: 650; }
.cfg-opts { display: flex; flex-wrap: wrap; gap: .4rem; }
.cfg-opt { padding: .5rem .8rem; border-radius: 999px; background: var(--navy-2); font-weight: 650; font-size: .84rem; transition: all .3s; border: 2px solid transparent; }
.cfg-opt.on { background: #fff; color: var(--ink); }
.cfg-opt.off { color: #5c6789; text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 2px; border-color: rgba(229,52,43,.4); }
.cfg-out { margin-top: 1.1rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.cfg-out div { background: var(--navy-2); border-radius: 10px; padding: .6rem .7rem; }
.cfg-out span { display: block; font-size: .72rem; color: var(--on-dark-2); }
.cfg-out strong { font-size: 1rem; color: #fff; font-variant-numeric: tabular-nums; }
.viz-msg { margin-top: .9rem; padding: .6rem .75rem; border-radius: 10px; font-size: .84rem; background: rgba(229,52,43,.14); border-left: 3px solid var(--red); min-height: 2.6rem; }
.viz-msg.ok { background: rgba(47,191,113,.14); border-left-color: var(--green); }

/* waterfall */
.wf-tabs { display: flex; gap: .4rem; margin-bottom: 1rem; }
.wf-tabs span { padding: .4rem .8rem; border-radius: 999px; background: var(--navy-2); font-size: .8rem; font-weight: 650; color: var(--on-dark-2); transition: all .3s; }
.wf-tabs span.on { background: var(--signal); color: var(--ink); }
.wf { display: grid; gap: .45rem; }
.wf-row { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) 5.5rem; gap: .6rem; align-items: center; font-size: .82rem; }
.wf-row .lbl { color: var(--on-dark-2); }
.wf-track { height: 1.35rem; position: relative; }
.wf-bar { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: #7d9bff; transition: left .6s cubic-bezier(.2,.8,.2,1), width .6s cubic-bezier(.2,.8,.2,1), background-color .3s; }
.wf-bar.minus { background: var(--green); }
.wf-bar.plus { background: var(--signal); }
.wf-bar.total { background: #fff; }
.wf-row .val { text-align: right; font-variant-numeric: tabular-nums; color: #fff; font-weight: 650; }

/* portal */
.pt-tabs { display: flex; gap: .4rem; margin-bottom: .9rem; flex-wrap: wrap; }
.pt-tabs span { padding: .4rem .8rem; border-radius: 999px; background: var(--navy-2); font-size: .8rem; font-weight: 650; color: var(--on-dark-2); transition: all .3s; }
.pt-tabs span.on { background: #fff; color: var(--ink); }
.pt-list { display: grid; gap: .45rem; }
.pt-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .8rem; align-items: center; background: var(--navy-2); border-radius: 10px; padding: .6rem .8rem; transition: opacity .35s, transform .35s; }
.pt-item.hidden { opacity: .18; transform: scale(.98); }
.pt-item .nm { font-weight: 650; color: #fff; font-size: .86rem; }
.pt-item .terms { font-size: .74rem; color: var(--on-dark-2); }
.pt-item .px { font-variant-numeric: tabular-nums; font-weight: 750; color: var(--signal); }
.pt-foot { margin-top: .9rem; display: flex; justify-content: space-between; font-size: .8rem; color: var(--on-dark-2); }

/* checks */
.ck-order { background: #fff; color: var(--ink); border-radius: 12px; padding: .8rem 1rem; margin-bottom: .8rem; font-size: .84rem; display: flex; justify-content: space-between; gap: 1rem; }
.ck-order strong { font-weight: 800; }
.ck-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.ck-list li { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); align-items: center; gap: .5rem; padding: .5rem .7rem; border-radius: 10px; background: var(--navy-2); font-size: .84rem; opacity: .35; transition: opacity .3s, background-color .3s; }
.ck-list li .ic { width: 1.3rem; height: 1.3rem; border-radius: 50%; border: 2px solid var(--on-dark-2); display: grid; place-items: center; font-size: .75rem; font-weight: 800; }
.ck-list li.pass { opacity: 1; }
.ck-list li.pass .ic { background: var(--green); border-color: var(--green); color: var(--navy); }
.ck-list li.fail { opacity: 1; background: rgba(229,52,43,.16); }
.ck-list li.fail .ic { background: var(--red); border-color: var(--red); color: #fff; }
.ck-list li.run { opacity: 1; }
.ck-list li.run .ic { border-color: var(--signal); border-top-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ck-route { margin-top: .8rem; padding: .65rem .8rem; border-radius: 10px; font-size: .84rem; background: var(--navy-2); min-height: 2.8rem; transition: background-color .3s; }
.ck-route.hold { background: rgba(255,212,59,.16); border-left: 3px solid var(--signal); }
.ck-route.done { background: rgba(47,191,113,.16); border-left: 3px solid var(--green); }

/* pipeline */
.pipe svg { width: 100%; height: auto; display: block; }
.pipe .node rect { fill: var(--navy-2); stroke: var(--navy-line); stroke-width: 1.5; }
.pipe .node text { fill: #fff; font: 650 13px "Archivo", sans-serif; }
.pipe .node .sub { fill: var(--on-dark-2); font-weight: 500; font-size: 11px; }
.pipe .wire { stroke: var(--navy-line); stroke-width: 2; fill: none; }
.pipe .pkt { fill: var(--signal); }
.pipe .pkt.bad { fill: var(--red); }
.pipe .exq rect { fill: rgba(229,52,43,.12); stroke: var(--red); stroke-dasharray: 4 3; }
.pipe-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin-top: .8rem; }
.pipe-stats div { background: var(--navy-2); border-radius: 10px; padding: .55rem .7rem; }
.pipe-stats span { display: block; font-size: .72rem; color: var(--on-dark-2); }
.pipe-stats strong { color: #fff; font-size: 1.1rem; font-variant-numeric: tabular-nums; }

/* board */
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.col { background: var(--navy-2); border-radius: 12px; padding: .55rem; min-height: 15rem; }
.col .vh { margin: 0 0 .5rem; font-size: .74rem; color: var(--on-dark-2); font-weight: 700; display: flex; justify-content: space-between; }
.bcard { background: #fff; color: var(--ink); border-radius: 8px; padding: .5rem .55rem; font-size: .76rem; line-height: 1.25; margin-bottom: .4rem; box-shadow: 0 4px 10px -6px rgba(0,0,0,.5); }
.bcard b { display: block; font-weight: 700; font-size: .78rem; }
.bcard .who { display: inline-block; margin-top: .3rem; font-size: .68rem; font-weight: 750; padding: .1rem .4rem; border-radius: 999px; background: #e5e9ff; color: var(--cobalt-deep); }
.bcard.moving { animation: pop .45s ease-out; }
@keyframes pop { from { transform: scale(.85); opacity: 0; } }
@media (max-width: 560px) { .board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print { .site-header, .site-footer, .closing { display: none; } }
.split-hero h1 { font-size: clamp(2.3rem, 4.3vw, 4rem); font-stretch: 112%; max-width: none; overflow-wrap: break-word; }
@media (max-width: 560px) {
  .hero h1 { font-size: 2.4rem; font-stretch: 108%; }
  h1, .page-hero h1, .split-hero h1 { font-size: 2.3rem; font-stretch: 108%; }
  h2 { font-size: 1.9rem; font-stretch: 110%; }
  .closing h2 { font-size: 2.3rem; }
  .log { min-height: 0; }
  .wf-row { grid-template-columns: 6.2rem minmax(0, 1fr) 4.4rem; font-size: .76rem; gap: .4rem; }
  .engine-top { flex-wrap: wrap; }
}

/* ================= v3 home ================= */
.hero-v3 { padding-bottom: clamp(3rem, 6vw, 5rem); }
.sentence { font-size: clamp(2.6rem, 6.6vw, 6.2rem); font-weight: 820; font-stretch: 122%; letter-spacing: -0.035em; line-height: 1.02; margin: 0; max-width: 20ch; position: relative; z-index: 1; }
.pick { position: relative; display: inline-block; white-space: nowrap; }
.pick select, .pick-measure { font: inherit; letter-spacing: inherit; font-stretch: inherit; }
.pick select { appearance: none; -webkit-appearance: none; background: transparent; color: var(--signal); border: 0; border-bottom: .09em solid var(--signal); border-radius: 0; padding: 0 .55em 0 0; margin: 0; cursor: pointer; line-height: 1; max-width: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 12'%3E%3Cpath d='M2 2l8 8 8-8' fill='none' stroke='%23ffd43b' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .05em center; background-size: .4em auto; }
.pick select:hover { color: #ffe066; }
.pick select:focus-visible { outline: 3px solid #fff; outline-offset: 6px; }
.pick select option { color: var(--ink); background: #fff; font-size: 1rem; font-weight: 500; font-stretch: 100%; letter-spacing: 0; }
.pick-measure { position: absolute; left: -9999px; top: 0; white-space: nowrap; visibility: hidden; font-size: clamp(2.6rem, 6.6vw, 6.2rem); font-weight: 820; font-stretch: 122%; letter-spacing: -0.035em; padding-right: .55em; }
.who-line { font-size: clamp(1.15rem, 1.9vw, 1.5rem); color: #dfe5ff; margin-top: 1.4rem; max-width: 46ch; min-height: 2.6em; position: relative; z-index: 1; }
.hero-v3 .actions { position: relative; z-index: 1; margin-top: 1.6rem; }
.stage-wrap { display: grid; grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; margin-top: clamp(2.5rem, 5vw, 4rem); position: relative; z-index: 1; }
.stage-caption h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); color: #fff; margin-bottom: .8rem; }
.stage-caption p { color: #dfe5ff; font-size: 1.05rem; }
.stage-link { display: inline-block; margin-top: 1rem; color: var(--signal) !important; font-weight: 700; }
.stage { min-height: 26rem; }
.stage.swap > * { animation: stageIn .55s cubic-bezier(.2,.8,.2,1); }
@keyframes stageIn { from { opacity: 0; transform: translateY(18px) scale(.985); } }
.stage .viz { min-height: 24rem; }
@media (max-width: 1000px) { .stage-wrap { grid-template-columns: minmax(0, 1fr); } .stage-caption { order: 2; } }
@media (max-width: 560px) { .sentence, .pick-measure { font-size: 2.35rem; font-stretch: 108%; } }

/* Marquee */
.marquee { background: var(--navy); color: #fff; padding: clamp(2.5rem, 5vw, 4rem) 0; overflow: hidden; }
.mq-row { display: flex; width: max-content; animation: mq 80s linear infinite; }
.mq-track { display: flex; align-items: center; }
.mq-row.rev { animation-direction: reverse; animation-duration: 90s; }
.mq-item { white-space: nowrap; font-weight: 800; font-stretch: 116%; letter-spacing: -0.02em; font-size: clamp(1.5rem, 2.8vw, 2.5rem); line-height: 1.2; display: inline-flex; align-items: center; }
.mq-item::after { content: ""; display: inline-block; width: .9em; height: .52em; margin: 0 .55em; border: .07em solid var(--red); border-radius: 50%; transform: rotate(-10deg); }
.mq-row.rev .mq-item { font-size: clamp(1.05rem, 1.7vw, 1.45rem); color: var(--signal); font-weight: 700; font-stretch: 110%; letter-spacing: -0.01em; }
.mq-row.rev .mq-item::after { border-color: var(--on-dark-2); border-width: 2px; }
.mq-row.rev { margin-top: 1rem; }
.mq-label { max-width: var(--wide); margin: 0 auto 1.2rem; padding: 0 var(--gutter); color: var(--on-dark-2); font-size: .95rem; }
@keyframes mq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .mq-row { width: auto; flex-wrap: wrap; padding: 0 var(--gutter); animation: none; } .mq-track { flex-wrap: wrap; white-space: normal; } .mq-track[aria-hidden] { display: none; } .mq-item { white-space: normal; } }

/* Physics pile */
.pile-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(2rem, 5vw, 4rem); align-items: end; }
.pile-hint { color: var(--ink-2); font-size: .95rem; margin-top: 1rem; }
.pile { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.pile li { background: var(--sheet); border-radius: 16px; padding: 1.1rem 1.2rem 1.2rem; font-size: 1.02rem; line-height: 1.4; font-weight: 560; box-shadow: 0 14px 30px -18px rgba(12,23,53,.45); user-select: none; }
.pile li::before { content: ""; display: block; width: 2rem; height: 1.15rem; margin-bottom: .7rem; border: 2.5px solid var(--red); border-radius: 50%; transform: rotate(-10deg); }
.pile li:nth-child(3n+2) { background: var(--signal); }
.pile li:nth-child(3n) { background: var(--ink); color: #fff; }
.pile.is-physics { display: block; position: relative; height: 34rem; overflow: hidden; border-bottom: 3px solid var(--ink); cursor: grab; touch-action: pan-y; }
.pile.is-physics:active { cursor: grabbing; }
.pile.is-physics li { position: absolute; left: 0; top: 0; width: 17.5rem; transform: translate(-9999px, -9999px); will-change: transform; }
@media (max-width: 900px) { .pile-grid { grid-template-columns: 1fr; } .pile { grid-template-columns: 1fr; } }

/* Scroll story */
.story { background: var(--sheet); position: relative; }
.story.is-pinned { height: 560vh; }
.story-sticky { padding: clamp(3rem, 6vw, 5rem) 0; }
.story.is-pinned .story-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; padding: 0; }
.story-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; width: 100%; }
.story h2 { margin-bottom: 1.4rem; }
.story-steps { list-style: none; margin: 0; padding: 0 0 0 1.4rem; position: relative; counter-reset: st; }
.story-steps::before { content: ""; position: absolute; left: 0; top: .3rem; bottom: .3rem; width: 4px; background: #e3e6ec; border-radius: 4px; }
.story-progress { position: absolute; left: 0; top: .3rem; bottom: .3rem; width: 4px; background: var(--cobalt); border-radius: 4px; transform-origin: top; transform: scaleY(0); }
.story-steps li { counter-increment: st; }
.story-steps button { all: unset; cursor: pointer; display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); gap: .5rem; padding: .5rem 0; font-size: 1.15rem; font-weight: 650; font-stretch: 108%; color: #9aa2b2; transition: color .3s; }
.story-steps button::before { content: counter(st); font-weight: 820; font-stretch: 122%; }
.story-steps button:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; border-radius: 4px; }
.story-steps li.is-active button { color: var(--ink); }
.story-steps li.is-active button::before { color: var(--cobalt); }
.story-steps li.is-done button { color: var(--ink-2); }
.story-steps small { display: block; font-size: .9rem; font-weight: 450; font-stretch: 100%; color: var(--ink-2); grid-column: 2; max-height: 0; overflow: hidden; transition: max-height .4s; }
.story-steps li.is-active small { max-height: 4rem; }
.story-stage { position: relative; min-height: 27rem; }
.panel { background: var(--navy); color: var(--on-dark); border-radius: 22px; padding: clamp(1.2rem, 2.5vw, 1.8rem); box-shadow: 0 50px 90px -40px rgba(5,10,40,.55); }
.story.is-pinned .panel { position: absolute; inset: 0; opacity: 0; transform: translateY(30px) scale(.97); transition: opacity .45s ease, transform .55s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.story.is-pinned .panel.is-past { transform: translateY(-30px) scale(.97); }
.story.is-pinned .panel.is-active { opacity: 1; transform: none; pointer-events: auto; }
.story.is-static .panel + .panel { margin-top: 1rem; }
.story.is-static .story-steps { display: none; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1rem; }
.panel-head b { font-size: 1.15rem; color: #fff; font-stretch: 112%; font-weight: 780; }
.panel-head span { font-size: .82rem; color: var(--on-dark-2); }
.panel-sheet { background: #fff; color: var(--ink); border-radius: 14px; padding: 1rem 1.1rem; font-variant-numeric: tabular-nums; }
.panel-note { margin-top: 1rem; font-size: .95rem; color: var(--on-dark); display: flex; gap: .6rem; align-items: center; }
.panel-note::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--signal); flex: none; }
.pchips { display: flex; flex-wrap: wrap; gap: .45rem; }
.pchip { padding: .5rem .85rem; border-radius: 999px; font-weight: 650; font-size: .88rem; background: var(--navy-2); }
.pchip.on { background: #fff; color: var(--ink); }
.pchip.off { color: #66708f; text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.prow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; padding: .42rem 0; border-bottom: 1px solid #eceef2; font-size: .92rem; }
.prow.disc span:last-child { color: #12764a; font-weight: 700; }
.prow.total { border: 0; border-top: 2px solid var(--ink); font-weight: 820; font-size: 1.15rem; padding-top: .6rem; margin-top: .2rem; }
.panel .stagger > * { opacity: 0; transform: translateY(8px); }
.panel.is-active .stagger > * { animation: rise .45s cubic-bezier(.2,.8,.2,1) forwards; }
.panel.is-active .stagger > *:nth-child(2) { animation-delay: .08s; } .panel.is-active .stagger > *:nth-child(3) { animation-delay: .16s; }
.panel.is-active .stagger > *:nth-child(4) { animation-delay: .24s; } .panel.is-active .stagger > *:nth-child(5) { animation-delay: .32s; }
.panel.is-active .stagger > *:nth-child(6) { animation-delay: .40s; } .panel.is-active .stagger > *:nth-child(7) { animation-delay: .48s; }
.panel.is-active .stagger > *:nth-child(8) { animation-delay: .56s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.story.is-static .panel .stagger > * { opacity: 1; transform: none; }
.stamp { display: inline-block; margin-top: 1rem; border: 3px solid #12764a; color: #12764a; border-radius: 10px; padding: .4rem .9rem; font-weight: 820; font-stretch: 118%; transform: rotate(-6deg); opacity: 0; }
.panel.is-active .stamp { animation: stamp .45s .5s cubic-bezier(.2,1.6,.4,1) forwards; }
.story.is-static .stamp { opacity: 1; }
@keyframes stamp { from { opacity: 0; transform: rotate(-6deg) scale(1.8); } to { opacity: 1; transform: rotate(-6deg) scale(1); } }
.map { display: grid; grid-template-columns: minmax(0, 1fr) 1.6rem minmax(0, 1fr); gap: .45rem .3rem; align-items: center; font-size: .86rem; }
.map .from { background: #fff; color: var(--ink); border-radius: 8px; padding: .45rem .6rem; }
.map .to { background: var(--navy-2); border: 1px solid var(--navy-line); color: #fff; border-radius: 8px; padding: .45rem .6rem; font-variant-numeric: tabular-nums; }
.map .arr { color: var(--signal); text-align: center; font-weight: 800; }
.map .hd { font-size: .74rem; color: var(--on-dark-2); font-weight: 650; }
.pick-list .pl { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr) auto; gap: .6rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid #eceef2; font-size: .9rem; }
.pick-list .pl i { width: 1.3rem; height: 1.3rem; border-radius: 6px; border: 2px solid #c5cad4; display: grid; place-items: center; font-style: normal; font-size: .8rem; color: #fff; }
.panel.is-active .pick-list .pl i { animation: tick .3s forwards; }
.panel.is-active .pick-list .pl:nth-child(1) i { animation-delay: .5s; } .panel.is-active .pick-list .pl:nth-child(2) i { animation-delay: .9s; } .panel.is-active .pick-list .pl:nth-child(3) i { animation-delay: 1.3s; } .panel.is-active .pick-list .pl:nth-child(4) i { animation-delay: 1.7s; }
.story.is-static .pick-list .pl i { background: var(--green); border-color: var(--green); }
@keyframes tick { to { background: var(--green); border-color: var(--green); } }
.pick-list .pl i::after { content: "✓"; }
.pick-list .bin { font-size: .78rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.badge-ok { display: inline-flex; gap: .4rem; align-items: center; background: #e3f7ec; color: #12764a; font-weight: 750; font-size: .82rem; padding: .3rem .7rem; border-radius: 999px; }
@media (max-width: 900px) { .story-grid { grid-template-columns: 1fr; } }

/* Work grid */
.work { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.work-tile { display: flex; flex-direction: column; min-width: 0; }
.work-tile.span2 { grid-column: span 2; }
.work-media { border-radius: 18px; overflow: hidden; background: var(--navy-2); flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 24rem; position: relative; }
.work-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.work-tile:hover .work-media img { transform: scale(1.03); }
.work-media .viz { box-shadow: none; border-radius: 0; flex: 1; min-height: 24rem; }
.work-cap { padding: 1rem .2rem 0; position: relative; }
/* The heading link covers the whole caption, so the caption is clickable even when the media above is an interactive demo. */
.work-cap h3 a::after { content: ""; position: absolute; inset: 0; }
.work-cap h3 { color: #fff; font-size: 1.25rem; }
.work-cap h3 a { color: #fff; text-decoration: none; }
.work-cap h3 a:hover { text-decoration: underline; text-decoration-color: var(--signal); }
.work-cap p { color: var(--on-dark-2); margin: .3rem 0 0; font-size: .95rem; }
.work-kind { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--navy); background: var(--signal); border-radius: 999px; padding: .2rem .6rem; margin-bottom: .55rem; }
.work-kind.prod { background: #fff; }
.work-tile.cta .work-media { background: var(--signal); color: var(--ink); padding: 2rem; justify-content: flex-end; text-decoration: none; }
.work-tile.cta .work-media h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 820; font-stretch: 120%; letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.work-tile.cta .work-media p { margin-top: .8rem; font-weight: 600; }
.work-tile.cta .work-media:hover { background: #ffe066; }
@media (max-width: 1000px) { .work { grid-template-columns: repeat(2, minmax(0, 1fr)); } .work-tile.span2 { grid-column: span 2; } }
@media (max-width: 640px) { .work { grid-template-columns: 1fr; } .work-tile.span2 { grid-column: auto; } .work-media { min-height: 0; } }
/* Work grid on paper so the dark tiles read as objects */
.section-work { background: var(--paper); color: var(--ink); }
.section-work .section-head p { color: var(--ink-2); }
.section-work .work-cap h3, .section-work .work-cap h3 a { color: var(--ink); }
.section-work .work-cap h3 a:hover { text-decoration-color: var(--cobalt); }
.section-work .work-cap p { color: var(--ink-2); }
.section-work .work-kind.prod { background: var(--ink); color: #fff; }
.section-work .work-media { background: var(--navy); box-shadow: 0 30px 60px -35px rgba(12,23,53,.6); }

/* Visuals adapt to the space they're given */
.viz { container-type: inline-size; }
@container (max-width: 480px) {
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .col { min-height: 0; }
  .wf-row { grid-template-columns: 5.6rem minmax(0, 1fr) 4.2rem; font-size: .74rem; gap: .35rem; }
  .pt-item { grid-template-columns: minmax(0, 1fr) auto; }
  .pt-item .terms { display: none; }
  .cfg-out { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cfg-out strong { font-size: .9rem; }
  .viz-title { flex-direction: column; gap: .15rem; }
  .pipe-stats strong { font-size: .95rem; }
}

.nowrap { white-space: nowrap; }
.prow { grid-template-columns: minmax(0, 1fr) minmax(0, auto); }
.prow span:last-child { text-align: right; }

/* Custom sentence pickers (native select menus inherit the headline size on macOS) */
.pick-btn { font: inherit; letter-spacing: inherit; font-stretch: inherit; color: var(--signal); background: transparent; border: 0; border-bottom: .09em solid var(--signal); border-radius: 0; padding: 0 .55em 0 0; margin: 0; cursor: pointer; line-height: 1; text-align: left;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 12'%3E%3Cpath d='M2 2l8 8 8-8' fill='none' stroke='%23ffd43b' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .05em center; background-size: .4em auto; }
.pick-btn:hover { color: #ffe066; }
.pick-btn:focus-visible { outline: 3px solid #fff; outline-offset: 6px; }
.pick-btn[aria-expanded="true"] { color: #fff; border-bottom-color: #fff; }
.pick-menu { position: absolute; left: 0; top: calc(100% + .5rem); z-index: 30; min-width: 15rem; max-width: calc(100vw - 2.5rem); max-height: 22rem; overflow-y: auto; margin: 0; padding: .4rem; list-style: none; background: #fff; color: var(--ink); border-radius: 14px; box-shadow: 0 30px 60px -20px rgba(5,10,40,.55), 0 0 0 1px rgba(15,20,32,.08);
  font-size: 1.05rem; font-weight: 600; font-stretch: 104%; letter-spacing: 0; line-height: 1.3; white-space: nowrap; }
.pick-menu:focus { outline: none; }
.pick-menu li { padding: .7rem .9rem .7rem 2.1rem; border-radius: 9px; cursor: pointer; position: relative; }
.pick-menu li.is-active { background: #eef1ff; color: var(--cobalt-deep); }
.pick-menu li[aria-selected="true"]::before { content: ""; position: absolute; left: .85rem; top: 50%; width: .5rem; height: .5rem; margin-top: -.25rem; border-radius: 50%; background: var(--cobalt); }
.pick-menu li[aria-selected="true"] { font-weight: 750; }
.hero-v3 .sentence { z-index: 5; }

/* CRM visual */
.crm-sheet { background: #fff; color: var(--ink); border-radius: 10px; overflow: hidden; font-size: .78rem; font-variant-numeric: tabular-nums; }
.crm-row { display: grid; grid-template-columns: 1.2fr .9fr 1.3fr .7fr; gap: .5rem; padding: .38rem .7rem; border-bottom: 1px solid #eceef2; transition: background-color .3s; }
.crm-row:last-child { border-bottom: 0; }
.crm-head { background: #f1f3f6; font-weight: 700; color: var(--ink-2); font-size: .72rem; }
.crm-row.scan { background: #fff6cc; }
.crm-row.seen:not(.scan) { color: #8a93a5; }
.crm-val { text-align: right; }
.crm-out { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: .6rem; margin-top: .8rem; }
.crm-out .vh { margin: 0 0 .45rem; font-size: .74rem; color: var(--on-dark-2); font-weight: 700; }
.crm-today { background: var(--navy-2); border-radius: 10px; padding: .6rem; min-height: 9.5rem; }
.crm-today ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.crm-today li { background: rgba(255,255,255,.05); border-radius: 8px; padding: .4rem .55rem; font-size: .76rem; color: var(--on-dark-2); }
.crm-today li b { color: #fff; font-weight: 700; margin-right: .35rem; }
.crm-chip { display: inline-block; font-size: .66rem; font-weight: 800; padding: .08rem .4rem; border-radius: 999px; margin-right: .4rem; }
.crm-chip.overdue { background: var(--red); color: #fff; }
.crm-chip.today { background: var(--signal); color: var(--ink); }
.crm-outlook { background: var(--navy-2); border-radius: 10px; padding: .6rem .7rem; display: flex; flex-direction: column; }
.crm-outlook strong { font-size: 1.6rem; font-weight: 820; font-stretch: 118%; color: #fff; font-variant-numeric: tabular-nums; margin-top: auto; }
.crm-outlook span { font-size: .76rem; color: var(--on-dark-2); }
@container (max-width: 480px) {
  .crm-last { display: none; }
  .crm-row { grid-template-columns: 1.2fr 1.3fr .8fr; }
  .crm-out { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .sentence .nowrap, .sentence .pick { white-space: normal; max-width: 100%; }
  .pick-btn { max-width: 100%; white-space: normal; }
}
@media (max-width: 560px) {
  .pick-btn { border-bottom: 0; background-image: none; padding-right: 0; text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .14em; }
  .pick-btn::after { content: ""; display: inline-block; width: .42em; height: .3em; margin-left: .2em; vertical-align: middle; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 12'%3E%3Cpath d='M2 2l8 8 8-8' fill='none' stroke='%23ffd43b' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain; }
}

/* ===== Interactive visuals ===== */
.viz-title { align-items: center; gap: .6rem; }
.viz-replay { font: inherit; font-size: .74rem; font-weight: 700; color: var(--navy); background: var(--signal); border: 0; border-radius: 999px; padding: .25rem .65rem; cursor: pointer; margin-left: auto; }
.viz button { font: inherit; cursor: pointer; }
.viz button:focus-visible, .viz input:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
.cfg-opt { border: 2px solid transparent; color: var(--on-dark); }
.cfg-opt:hover { border-color: rgba(255,255,255,.35); }
.cfg-opt.off { cursor: not-allowed; }
.wf-tabs button, .pt-tabs button { padding: .4rem .8rem; border-radius: 999px; background: var(--navy-2); font-size: .8rem; font-weight: 650; color: var(--on-dark-2); border: 0; transition: all .25s; }
.wf-tabs button:hover, .pt-tabs button:hover { color: #fff; }
.wf-tabs button.on { background: var(--signal); color: var(--ink); }
.pt-tabs button.on { background: #fff; color: var(--ink); }
.wf-qty { display: flex; align-items: center; gap: .5rem; margin: -.3rem 0 .9rem; font-size: .8rem; color: var(--on-dark-2); }
.wf-qty button { width: 1.8rem; height: 1.8rem; border-radius: 50%; border: 0; background: var(--navy-2); color: #fff; font-weight: 800; font-size: 1rem; line-height: 1; }
.wf-qty button:hover { background: #24356b; }
.wf-qty strong { color: #fff; min-width: 1.2rem; text-align: center; font-variant-numeric: tabular-nums; }
.pt-item { grid-template-columns: minmax(0, 1fr) auto auto; }
.pt-add { border: 0; border-radius: 999px; background: var(--signal); color: var(--ink); font-weight: 750; font-size: .74rem; padding: .3rem .7rem; }
.pt-add:disabled { background: transparent; color: transparent; cursor: default; }
.ck-toggles { display: flex; flex-wrap: wrap; gap: .4rem .9rem; align-items: center; margin-bottom: .8rem; font-size: .8rem; color: var(--on-dark-2); }
.ck-toggles label { display: inline-flex; align-items: center; gap: .35rem; cursor: pointer; }
.ck-toggles input { accent-color: var(--signal); width: 1rem; height: 1rem; }
.ck-run { margin-left: auto; border: 0; border-radius: 999px; background: var(--signal); color: var(--ink); font-weight: 750; font-size: .78rem; padding: .4rem .9rem; }
.pipe-ctl { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; margin-bottom: .6rem; font-size: .8rem; color: var(--on-dark-2); }
.pipe-send { border: 0; border-radius: 999px; background: var(--signal); color: var(--ink); font-weight: 750; font-size: .78rem; padding: .4rem .9rem; }
.pipe-sw { display: inline-flex; align-items: center; gap: .35rem; cursor: pointer; }
.pipe-sw input { accent-color: var(--green); width: 1rem; height: 1rem; }
.pipe [data-whnode].down rect { stroke: var(--red); stroke-width: 2; fill: rgba(229,52,43,.12); }
.pipe [data-exq]:hover rect { fill: rgba(229,52,43,.22); }
.crm-acts { display: flex; gap: .3rem; margin-top: .35rem; }
.crm-acts button { border: 0; border-radius: 999px; font-size: .68rem; font-weight: 750; padding: .2rem .55rem; background: rgba(255,255,255,.12); color: #fff; }
.crm-acts button:hover { background: rgba(255,255,255,.22); }
.crm-acts button[data-act="won"] { background: var(--green); color: var(--navy); }
.crm-row.won { background: #e3f7ec; color: #12764a; }
.crm-empty { color: var(--on-dark-2); font-size: .78rem; }
.crm-won { color: var(--green) !important; font-weight: 700; margin-top: .2rem; }
.bcard { cursor: grab; }
.bcard:hover { box-shadow: 0 0 0 2px var(--signal), 0 4px 10px -6px rgba(0,0,0,.5); }
.bcard:focus-visible { outline: 3px solid var(--signal); outline-offset: 1px; }
.col.drop { background: #1b2c5c; }
@container (max-width: 480px) {
  .ck-run { margin-left: 0; }
  .crm-acts button { font-size: .64rem; }
}

/* Problem cards reveal their fix */
.pile li { position: relative; cursor: pointer; }
.pile li:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.pile .fix { position: absolute; inset: 0; border-radius: inherit; background: var(--cobalt); color: #dfe5ff; display: flex; flex-direction: column; justify-content: center; gap: .3rem; padding: 1rem 1.2rem; font-size: .85rem; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s; }
.pile .fix a { color: var(--signal); font-size: 1.15rem; font-weight: 800; font-stretch: 112%; text-decoration: underline; text-underline-offset: .15em; }
.pile li.flip .fix { opacity: 1; pointer-events: auto; }

/* Story: interactive configure + approval + pick list */
.panel .pchip { font: inherit; font-size: .88rem; font-weight: 650; border: 2px solid transparent; color: var(--on-dark); cursor: pointer; }
.panel .pchip:hover { border-color: rgba(255,255,255,.35); }
.panel .pchip.off { cursor: not-allowed; }
.panel .pchip:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
.panel .pchips + .pchips { margin-top: .5rem; }
.cfg-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin-top: 1rem; }
.cfg-sum div { background: var(--navy-2); border-radius: 10px; padding: .6rem .75rem; }
.cfg-sum span { display: block; font-size: .74rem; color: var(--on-dark-2); }
.cfg-sum strong { color: #fff; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.panel-hint { font-size: .82rem; color: var(--on-dark-2); margin: .6rem 0 0; }
.approve-btn { margin-top: 1rem; font: inherit; font-weight: 750; font-size: .95rem; border: 0; border-radius: 999px; padding: .65rem 1.2rem; background: var(--signal); color: var(--ink); cursor: pointer; }
.approve-btn:hover { background: #ffe066; }
.pick-list .pl { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: grid; grid-template-columns: 1.6rem minmax(0, 1fr) auto; gap: .6rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid #eceef2; font-size: .9rem; }
.pick-list .pl:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; border-radius: 6px; }
.panel.is-active .pick-list .pl i, .pick-list .pl i { animation: none !important; }
.story.is-static .pick-list .pl i { background: transparent; border-color: #c5cad4; }
.pick-list .pl.done i { background: var(--green) !important; border-color: var(--green) !important; }
.pick-list .pl.done span:not(.bin) { text-decoration: line-through; text-decoration-color: #9aa2b2; }
.story-stage { min-height: 33rem; }
@media (max-width: 560px) { .cfg-sum { grid-template-columns: 1fr 1fr; } }
.panel .pchip.on, .cfg-opt.on { color: var(--ink); background: #fff; }
.panel .pchip.off, .cfg-opt.off { color: #66708f; }
/* CRM call list keeps fixed slots */
.crm-today li.pending { visibility: hidden; }
.crm-today li.done { opacity: .75; }
.crm-today li.done .ghost { visibility: hidden; }
.crm-chip.won { background: var(--green); color: var(--navy); }
.crm-chip.called { background: rgba(255,255,255,.18); color: #fff; }
.crm-won { min-height: 1.2em; }
.crm-today li.appear { animation: logIn .4s cubic-bezier(.2,.8,.2,1); }

/* Compact CRM call list */
.crm-today li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .45rem; padding: .35rem .5rem; }
.crm-today li .crm-chip { margin: 0; }
.crm-today li b { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crm-today li .crm-step { display: none; }
.crm-acts { margin: 0; }
.crm-today { min-height: 0; }
.crm-row { padding: .32rem .7rem; }

/* Work grid: every tile's media is the same height */
.work-media { flex: none; height: 42rem; min-height: 0; }
.work-media .viz { min-height: 0; height: 100%; overflow: hidden; }
@media (max-width: 640px) { .work-media { height: 42rem; } }
@container (max-width: 480px) {
  .crm-outlook { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; }
  .crm-outlook .vh { margin: 0; width: 100%; }
  .crm-outlook strong { margin-top: 0; font-size: 1.3rem; }
  .crm-today { padding: .5rem; }
  .crm-today ul { gap: .3rem; }
  .crm-row { padding: .28rem .6rem; }
  .crm-acts button { padding: .18rem .45rem; }
}

/* Endpaper visual */
.ep-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .9rem; }
.ep-tabs button { padding: .4rem .85rem; border-radius: 999px; background: var(--navy-2); font-size: .8rem; font-weight: 650; color: var(--on-dark-2); border: 0; }
.ep-tabs button.on { background: #f4d6c9; color: #3b1f16; }
.ep-now { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr) auto; gap: .9rem; align-items: center; background: var(--navy-2); border-radius: 12px; padding: .8rem; }
.ep-cover { width: 3.4rem; height: 4.8rem; border-radius: 4px 8px 8px 4px; background: linear-gradient(135deg, #e7b8a4, #9d4d3a); box-shadow: inset 4px 0 0 rgba(0,0,0,.18), 0 8px 16px -8px rgba(0,0,0,.6); }
.ep-book { display: flex; flex-direction: column; min-width: 0; font-size: .82rem; color: var(--on-dark-2); }
.ep-label { font-size: .7rem; font-weight: 700; color: #e7b8a4; }
.ep-book strong { color: #fff; font-size: 1.02rem; font-weight: 700; line-height: 1.25; }
.ep-bar { height: 5px; border-radius: 3px; background: rgba(255,255,255,.12); margin-top: .5rem; overflow: hidden; }
.ep-bar i { display: block; height: 100%; background: #e7b8a4; transition: width .6s cubic-bezier(.2,.8,.2,1); }
.ep-finish { border: 0; border-radius: 999px; background: var(--signal); color: var(--ink); font-weight: 750; font-size: .78rem; padding: .45rem .9rem; white-space: nowrap; }
.ep-finish:disabled { background: rgba(255,255,255,.12); color: var(--on-dark-2); cursor: default; }
.ep-rate { display: flex; align-items: center; gap: .25rem; margin-top: .7rem; font-size: .82rem; color: var(--on-dark-2); }
.ep-rate span { margin-right: .4rem; }
.ep-rate button { border: 0; background: transparent; color: #46527a; font-size: 1.35rem; line-height: 1; padding: .1rem; }
.ep-rate button.on { color: var(--signal); }
.ep-recs { margin-top: .9rem; }
.ep-recs .vh { margin: 0 0 .5rem; font-size: .76rem; color: var(--on-dark-2); font-weight: 700; }
.ep-recs ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.ep-recs li { background: rgba(255,255,255,.05); border-radius: 10px; padding: .55rem .7rem; font-size: .8rem; color: var(--on-dark-2); animation: logIn .45s cubic-bezier(.2,.8,.2,1) both; }
.ep-recs li b { color: #fff; }
.ep-why { display: block; margin-top: .15rem; }
.ep-badges { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .35rem; }
.ep-badge { font-size: .68rem; font-weight: 700; padding: .12rem .5rem; border-radius: 999px; background: rgba(255,212,59,.16); color: var(--signal); }
.ep-badge.ok { background: rgba(47,191,113,.18); color: #6fe0a3; }
.ep-badge.none { background: rgba(255,255,255,.08); color: var(--on-dark-2); }
.work-tile.cta.wide { grid-column: 1 / -1; }
.work-tile.cta.wide .work-media { height: auto; min-height: 14rem; }
.card-wide { grid-column: 1 / -1; }
.card-wide .viz { min-height: 0; }
.viz-feature { max-width: 860px; margin: 0 auto; }
.viz-caption { text-align: center; color: var(--on-dark-2); font-size: .9rem; margin-top: .8rem; }
.chip-link { color: var(--navy) !important; background: var(--signal); text-decoration: none; margin-left: .4rem; }
@container (max-width: 480px) {
  .ep-now { grid-template-columns: 2.6rem minmax(0, 1fr); }
  .ep-cover { width: 2.6rem; height: 3.7rem; }
  .ep-finish { grid-column: 1 / -1; justify-self: start; }

  .ep-badges { flex-wrap: wrap; }
  .ep-badge { font-size: .62rem; white-space: nowrap; }
  .work-media .ep-cover { display: none; }
  .work-media .ep-recs .ep-why + .ep-why, .work-media .ep-badge + .ep-badge, .work-media .ep-label { display: none; }
  .work-media .ep-now { grid-template-columns: minmax(0, 1fr) auto; }
  .work-media .ep-finish { grid-column: auto; }
  .work-media .ep-rate > span { display: none; }
  .ep-rate button[data-verdict] { padding: .25rem .5rem; font-size: .7rem; }
  .viz .ep-rate { gap: .25rem; flex-wrap: nowrap; }
  .work-media .ep-feed .ep-why, .work-media .ep-panel[data-panel="ai"] .ep-note { display: none; }
  .ep-feed li { grid-template-columns: 1.7rem minmax(0, 1fr) auto; padding: .5rem .6rem; }
  .ep-avatar { width: 1.7rem; height: 1.7rem; }
}
.card .chip-invite { display: inline-block; margin: .8rem .5rem 0; background: var(--signal); color: var(--ink); }
.ep-views { display: flex; gap: 1.1rem; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: .9rem; }
.ep-views button { border: 0; background: none; color: var(--on-dark-2); font-weight: 700; font-size: .84rem; padding: .35rem 0 .55rem; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ep-views button.on { color: #fff; border-bottom-color: #e7b8a4; }
.ep-scope { display: inline-flex; background: var(--navy-2); border-radius: 999px; padding: 3px; margin-bottom: .8rem; }
.ep-scope button { border: 0; border-radius: 999px; background: none; color: var(--on-dark-2); font-size: .78rem; font-weight: 700; padding: .35rem .85rem; }
.ep-scope button.on { background: #f4d6c9; color: #3b1f16; }
.ep-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.ep-feed li { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; gap: .65rem; align-items: start; background: rgba(255,255,255,.05); border-radius: 10px; padding: .6rem .7rem; font-size: .8rem; color: var(--on-dark-2); animation: logIn .4s cubic-bezier(.2,.8,.2,1) both; }
.ep-feed b, .ep-feed i { color: #fff; }
.ep-avatar { width: 2rem; height: 2rem; border-radius: 50%; background: #34406b; color: #fff; display: grid; place-items: center; font-weight: 750; font-size: .8rem; }
.ep-stars { color: var(--signal); letter-spacing: .05em; }
.ep-follow { border: 1px solid rgba(255,255,255,.3); background: none; color: #fff; border-radius: 999px; font-size: .72rem; font-weight: 700; padding: .3rem .7rem; white-space: nowrap; }
.ep-follow.on { background: #f4d6c9; border-color: #f4d6c9; color: #3b1f16; }
.ep-follow.req { color: var(--on-dark-2); border-style: dashed; }
.ep-note { font-size: .78rem; color: var(--on-dark-2); margin: .7rem 0 0; line-height: 1.45; }
.ep-panel[data-panel="ai"] .ep-note { margin: 0 0 .7rem; }
.ep-asks { display: grid; gap: .35rem; }
.ep-asks button { text-align: left; border: 1px solid rgba(255,255,255,.16); background: none; color: #fff; border-radius: 10px; font-size: .8rem; padding: .5rem .7rem; }
.ep-asks button.on { border-color: #e7b8a4; background: rgba(231,184,164,.1); }
.ep-asks button:disabled { opacity: .55; cursor: default; }
.ep-asks button.on:disabled { opacity: 1; }
.ep-chat { margin-top: .9rem; display: grid; gap: .4rem; }
.ep-msg { border-radius: 12px; padding: .55rem .75rem; font-size: .82rem; line-height: 1.45; max-width: 88%; animation: logIn .35s cubic-bezier(.2,.8,.2,1) both; }
.ep-you { justify-self: end; background: #f4d6c9; color: #3b1f16; }
.ep-bot { background: var(--navy-2); color: #fff; }
.ep-tool { display: flex; justify-content: space-between; gap: .6rem; font-size: .74rem; color: var(--on-dark-2); background: rgba(255,255,255,.04); border-radius: 8px; padding: .35rem .6rem; animation: logIn .3s both; }
.ep-tool code { color: #e7b8a4; font-size: .74rem; }
.ep-tool.done span { color: #6fe0a3; }
.ep-rate { flex-wrap: wrap; gap: .35rem; }
.ep-rate button[data-verdict] { font-size: .76rem; font-weight: 700; color: #fff; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: .3rem .7rem; }
.ep-rate button[data-verdict].on { background: #f4d6c9; border-color: #f4d6c9; color: #3b1f16; }
.ep-recs li { animation: none; }
.ep-recs li.appear { animation: logIn .45s cubic-bezier(.2,.8,.2,1) both; }
.ep-gate { font-size: .76rem; color: #f0a58a; margin: 0 0 .5rem; }
@container (max-width: 480px) { .work-media .ep-panel[data-panel="feed"] .ep-note { display: none; } }
.work-media img[src*="awayfold-plan"] { object-position: 42% top; }

/* Wide screens: the live quote sits beside the hero text so it's in the first view */
@media (min-width: 1200px) {
  .hero-v3 .wrap { display: grid; grid-template-columns: minmax(0, .74fr) minmax(0, 1.26fr); grid-template-rows: auto auto auto 1fr; column-gap: 3rem; align-items: start; }
  .hero-v3 .sentence { grid-column: 1 / -1; grid-row: 1; }
  .hero-v3 .who-line { grid-column: 1; grid-row: 2; font-size: 1.3rem; }
  .hero-v3 .actions { grid-column: 1; grid-row: 3; }
  .hero-v3 .stage-wrap { display: contents; }
  .hero-v3 .stage-caption { grid-column: 1; grid-row: 4; align-self: start; margin-top: 2.6rem; }
  .hero-v3 .stage-caption h2 { font-size: 1.6rem; }
  .hero-v3 .stage { grid-column: 2; grid-row: 2 / span 3; margin-top: 1.6rem; position: relative; z-index: 1; }
}
.section-products { background: var(--sheet); }
.brand, .nav a, .nav .button { white-space: nowrap; }

/* "About this demo": server-rendered text for each client-side demo. Inherits the section's text color. */
.demo-about { margin-top: 1rem; font-size: .92rem; line-height: 1.5; }
.demo-about summary { cursor: pointer; font-weight: 700; width: max-content; max-width: 100%; opacity: .85; }
.demo-about summary:hover { opacity: 1; }
.demo-about p { margin: .6rem 0 0; max-width: 64ch; opacity: .85; }
.section-cobalt .demo-about, .hero-v3 .demo-about, .section-navy .demo-about { color: #fff; }
.story .demo-about { color: var(--ink-2); margin-top: 1.2rem; }
.feature .demo-about p { font-size: .92rem; }
.story.is-pinned .demo-about p { max-height: clamp(4rem, calc(100vh - 620px), 13rem); overflow-y: auto; padding-right: .4rem; }
.viz-caption + .demo-about { max-width: 54rem; margin-inline: auto; }

/* Privacy page: plain heading and text, no hero */
.privacy { max-width: 46rem; }
.privacy h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); margin-bottom: 1.6rem; }
.privacy p { font-size: 1.1rem; line-height: 1.65; color: var(--ink-2); }
.privacy .fine { font-size: .92rem; margin-top: 1.4rem; }
