/* Digital Conclave — site styles
   Tokens carried over from the existing brand. */
:root {
  --ink: #121417;
  --ink-2: #1a1d22;
  --ink-3: #262a31;
  --paper: #f3f2f2;
  --paper-2: #eae9e9;
  --white: #ffffff;
  --text: #201e1d;
  --text-soft: #605d5d;
  --text-on-dark: #f5f3ef;
  --text-on-dark-soft: #b9b6b0;
  --blue: #0a6cf0;
  --blue-light: #6fb2ff;
  --violet: #5b2cf5;
  --teal: #006786;
  --magenta: #d6006c;
  --yellow: #edbb00;
  --line: rgba(32, 30, 29, .16);
  --line-dark: rgba(245, 243, 239, .14);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 3px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--serif); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--paper); }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 3px; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); color: var(--text); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- type ---------- */
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); line-height: 1.05; letter-spacing: -.03em; font-weight: 600; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.7rem); line-height: 1.12; letter-spacing: -.02em; font-weight: 600; max-width: 22ch; }
h3 { font-size: 1.3rem; line-height: 1.25; font-weight: 600; }
h4 { font-size: 1.08rem; line-height: 1.3; font-weight: 600; }
.eyebrow { font-family: var(--sans); font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); margin-bottom: 18px; }
.dark .eyebrow { color: var(--blue-light); }
.accent { color: var(--blue-light); }
.lede, .section-lede { font-size: 1.15rem; max-width: 62ch; }
.section-lede { margin-top: 20px; color: var(--text-soft); }
.dark .section-lede { color: var(--text-on-dark-soft); }
.fine { font-family: var(--sans); font-size: .78rem; color: var(--text-soft); margin-top: 18px; }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.dark { background: var(--ink); color: var(--text-on-dark); }
.light { background: var(--paper); }
.pull { margin-top: 48px; font-size: clamp(1.2rem, 2.2vw, 1.55rem); line-height: 1.35; max-width: 34ch; padding-left: 20px; border-left: 3px solid var(--magenta); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 12px 24px; font: 600 1rem var(--serif); text-decoration: none; border-radius: var(--radius); border: 1px solid transparent; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.btn-sm { min-height: 42px; padding: 8px 18px; font-size: .95rem; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--violet); }
.btn-ghost { border-color: var(--line-dark); color: var(--text-on-dark); }
.btn-ghost:hover { border-color: var(--blue-light); }
.btn span { transition: transform .2s; }
.btn:hover span { transform: translateX(3px); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(18, 20, 23, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-dark); color: var(--text-on-dark); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 58px; height: 34px; }
.brand-word { display: flex; flex-direction: column; font-family: var(--sans); text-transform: uppercase; line-height: 1.1; }
.brand-word b { font-size: .86rem; letter-spacing: .3em; font-weight: 600; }
.brand-word span { font-size: .56rem; letter-spacing: .52em; color: var(--text-on-dark-soft); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { text-decoration: none; font-size: .98rem; color: var(--text-on-dark-soft); }
.nav-links a:not(.btn):hover { color: var(--text-on-dark); }
.nav-toggle { display: none; width: 46px; height: 42px; background: none; border: 1px solid var(--line-dark); border-radius: var(--radius); cursor: pointer; padding: 0; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text-on-dark); margin: 4px auto; }

/* ---------- hero ---------- */
.hero { padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 120px); background: radial-gradient(900px 520px at 85% 110%, rgba(91, 44, 245, .32), transparent 62%), radial-gradient(700px 420px at 0% 100%, rgba(10, 108, 240, .16), transparent 60%), var(--ink); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero .lede { margin-top: 26px; color: var(--text-on-dark-soft); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.tagline { margin-top: 38px; font-style: italic; color: var(--text-on-dark-soft); }

.orbit { position: relative; aspect-ratio: 1; width: min(100%, 460px); margin-inline: auto; }
.ring { position: absolute; border: 1px solid var(--line-dark); border-radius: 50%; }
.ring-1 { inset: 9%; }
.ring-2 { inset: 27%; border-color: rgba(111, 178, 255, .3); }
.orbit-mark { position: absolute; inset: 0; margin: auto; width: 44%; filter: drop-shadow(0 12px 40px rgba(10, 108, 240, .45)); }
.node { position: absolute; transform: translate(-50%, -50%); background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 8px 12px; font-size: .86rem; white-space: nowrap; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); animation: float 7s ease-in-out infinite; }
.node small { display: block; font: 600 .6rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--text-on-dark-soft); }
.n1 { left: 50%; top: 6%; border-color: var(--blue-light); }
.n1 small { color: var(--blue-light); }
.n2 { left: 88%; top: 28%; animation-delay: -1s; }
.n3 { left: 88%; top: 72%; animation-delay: -2s; }
.n4 { left: 50%; top: 94%; animation-delay: -3s; }
.n5 { left: 12%; top: 72%; animation-delay: -4s; }
.n6 { left: 12%; top: 28%; animation-delay: -5s; }
@keyframes float { 50% { margin-top: -7px; } }

/* ---------- how we think ---------- */
.reframe { margin-top: 48px; border-top: 1px solid var(--line); }
.reframe-head, .reframe-row { display: grid; grid-template-columns: 1fr 1.25fr; gap: 32px; }
.reframe-head { font: 600 .72rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--text-soft); padding: 14px 0; }
.reframe-row { padding: 26px 0; border-top: 1px solid var(--line); align-items: baseline; }
.said { font-style: italic; color: var(--text-soft); font-size: 1.1rem; }
.asked { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.3; font-weight: 600; position: relative; padding-left: 30px; }
.asked::before { content: "→"; position: absolute; left: 0; color: var(--magenta); }

/* ---------- starting points ---------- */
.starts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.start { background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 30px 26px; display: flex; flex-direction: column; gap: 12px; }
.start-no { font: 600 .72rem var(--sans); letter-spacing: .16em; color: var(--blue-light); }
.start h3 { font-size: 1.55rem; }
.start-tag { font-style: italic; color: var(--text-on-dark-soft); font-size: .98rem; }
.start-first { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-dark); font-size: .98rem; }
.start-first b, .expect b, .get b { display: block; font: 600 .66rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--yellow); margin-bottom: 4px; }

/* ---------- problem ---------- */
.symptoms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.symptom p { margin-top: 16px; font-size: .98rem; color: var(--text-soft); }
.symptom p b { color: var(--text); display: block; }
.mock { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); min-height: 150px; padding: 16px; display: flex; flex-direction: column; justify-content: center; gap: 6px; font-family: var(--sans); font-size: .8rem; color: var(--text-soft); }
.mock-old { text-align: center; background: #e5e3da; font-family: "Times New Roman", serif; }
.mock-old b { color: #1a1ad0; text-decoration: underline; font-size: .95rem; }
.mock-list span { display: flex; flex-direction: column; padding: 5px 0; border-bottom: 1px dashed var(--line); color: var(--magenta); }
.mock-list span:last-child { border: 0; }
.mock-list i { font-style: normal; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-soft); }
.mock-q { align-items: center; font: 600 3.4rem var(--serif); color: var(--line); }

/* ---------- chapters ---------- */
.chapters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 52px; border-top: 1px solid var(--line-dark); }
.chapter { padding: 32px 30px 8px 0; }
.chapter + .chapter { padding-left: 30px; border-left: 1px solid var(--line-dark); }
.chapter-no { font: 600 .7rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--blue-light); margin-bottom: 12px; }
.chapter h3 { font-size: 1.9rem; margin-bottom: 14px; }
.chapter p { color: var(--text-on-dark-soft); }
.chapter ul { margin-top: 18px; }
.chapter li { padding: 9px 0 9px 22px; border-top: 1px solid var(--line-dark); position: relative; font-size: .98rem; }
.chapter li::before { content: "—"; position: absolute; left: 0; color: var(--blue-light); }

/* ---------- services ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.filter { font: 600 .82rem var(--sans); letter-spacing: .06em; padding: 10px 18px; min-height: 42px; background: transparent; border: 1px solid var(--line); border-radius: 100px; color: var(--text); cursor: pointer; transition: background .2s, color .2s; }
.filter:hover { border-color: var(--text); }
.filter.is-on { background: var(--ink); color: var(--text-on-dark); border-color: var(--ink); }
.filter-status { font: .82rem var(--sans); color: var(--text-soft); min-height: 1.4em; margin-top: 12px; }
.svc-group { display: grid; grid-template-columns: 240px 1fr; gap: 36px; padding: 40px 0; border-top: 1px solid var(--line); margin-top: 20px; }
.svc-group-head h3 { font-size: 1.7rem; }
.svc-group-head p { margin-top: 8px; color: var(--text-soft); font-size: .98rem; }
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.svc { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; transition: border-color .2s, transform .2s; }
.svc:hover { border-color: var(--blue); transform: translateY(-2px); }
.svc > p:not(.tags) { font-size: .96rem; color: var(--text-soft); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.tags span { font: 600 .64rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--teal); background: #e9f8ff; padding: 4px 9px; border-radius: 100px; }
.svc[hidden], .svc-group[hidden] { display: none; }
.svc-foot { margin-top: 28px; font-size: 1.1rem; }
.svc-foot a { color: var(--blue); font-weight: 600; }

/* ---------- search terms ---------- */
.terms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.terms article { background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 28px 26px; }
.term { font-size: 2.6rem; font-weight: 600; line-height: 1; color: var(--blue-light); margin-bottom: 10px; }
.terms h3 { font-size: 1.1rem; margin-bottom: 10px; }
.terms article p:last-child { color: var(--text-on-dark-soft); font-size: .98rem; }
.honest { margin-top: 40px; max-width: 60ch; padding-left: 20px; border-left: 3px solid var(--yellow); font-size: 1.1rem; }

/* ---------- compare ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.compare-col { border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.before { background: var(--paper-2); border: 1px dashed var(--line); }
.after { background: var(--ink); color: var(--text-on-dark); }
.compare-label { font: 600 .72rem var(--sans); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 6px; }
.before .compare-label { color: var(--magenta); }
.after .compare-label { color: var(--blue-light); }
.card { border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; font-size: .95rem; }
.before .card { background: var(--white); border: 1px solid var(--line); color: var(--text-soft); }
.after .card { background: var(--ink-2); border: 1px solid var(--line-dark); color: var(--text-on-dark-soft); }
.card small { font: 600 .62rem var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.card b { font-size: 1.05rem; }
.before .card b { color: var(--text); }
.after .card b { color: var(--text-on-dark); }
.meters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; font: .74rem var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.meters b { display: block; font: 600 1.1rem var(--serif); text-transform: none; letter-spacing: 0; margin-top: 2px; }
.before .meters b { color: var(--magenta); }
.after .meters b { color: var(--blue-light); }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 52px; counter-reset: none; }
.steps li { padding: 28px 24px 0 0; border-top: 2px solid var(--line-dark); position: relative; display: flex; flex-direction: column; gap: 12px; }
.steps li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--blue-light); }
.step-no { font: 600 .72rem var(--sans); letter-spacing: .16em; color: var(--blue-light); }
.steps h3 { font-size: 1.6rem; }
.steps p { color: var(--text-on-dark-soft); font-size: .98rem; }
.steps .get { color: var(--text-on-dark); }
.get b { color: var(--blue-light); }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.about-grid > div > p:not(.eyebrow):not(.section-lede) { margin-top: 18px; max-width: 56ch; }
.about-mark { width: 150px; margin-top: 36px; display: block; }
.values li { padding: 22px 0; border-top: 1px solid var(--line); }
.values li:last-child { border-bottom: 1px solid var(--line); }
.values p { color: var(--text-soft); margin-top: 4px; }

/* ---------- faq ---------- */
.faq-section { padding-top: 0; }
.faq-section h2 { margin-bottom: 28px; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 20px 40px 20px 0; font-size: 1.2rem; font-weight: 600; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 1.5rem; font-weight: 400; color: var(--blue); }
details[open] summary::after { content: "–"; }
details p { padding: 0 0 22px; color: var(--text-soft); max-width: 62ch; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.prefer { margin-top: 36px; font: 600 .72rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--text-on-dark-soft); line-height: 2.2; }
.prefer a { font: 400 1.15rem var(--serif); letter-spacing: 0; text-transform: none; color: var(--blue-light); }
.form { background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: 4px; padding: clamp(20px, 3vw, 36px); display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .9rem; color: #d9d7d2; }
.field input, .field select, .field textarea { font: 1rem var(--serif); min-height: 48px; padding: 10px 14px; background: var(--ink); color: var(--text-on-dark); border: 1px solid var(--line-dark); border-radius: var(--radius); width: 100%; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue-light); outline: none; box-shadow: 0 0 0 3px rgba(111, 178, 255, .25); }
.field [aria-invalid="true"] { border-color: #ff90b1; }
.form .btn { align-self: flex-start; }
.form-status { font-size: .95rem; color: #ffb3c8; min-height: 1.4em; }
.form-status.ok { color: #8fe3b0; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line-dark); padding: 28px 0; font-size: .9rem; color: #9a9893; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .orbit { width: min(100%, 380px); margin-top: 12px; }
  .starts, .terms, .chapters { grid-template-columns: 1fr; }
  .chapter, .chapter + .chapter { padding: 28px 0 8px; border-left: 0; border-top: 1px solid var(--line-dark); }
  .chapters { border-top: 0; }
  .symptoms { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .svc-group { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--ink); border-bottom: 1px solid var(--line-dark); padding: 8px 20px 20px; }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
  .nav-links .btn { margin-top: 16px; justify-content: center; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .reframe-head { display: none; }
  .reframe-row { grid-template-columns: 1fr; gap: 10px; }
  .symptoms, .svc-grid, .compare, .steps { grid-template-columns: 1fr; }
  .node { font-size: .74rem; padding: 6px 9px; }
  .n2, .n3 { left: 84%; } .n5, .n6 { left: 16%; }
  .meters { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .node { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn span { transition: none; }
}

/* ================= CTAs & micro-interactions (v2) ================= */

/* inline CTAs */
.inline-cta { margin-top: 36px; font-size: 1.1rem; }
.inline-cta a { font-weight: 600; color: var(--blue); text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; white-space: nowrap; }
.inline-cta a span { display: inline-block; transition: transform .2s; }
.inline-cta a:hover span { transform: translateX(4px); }
.dark .inline-cta a { color: var(--blue-light); }
#process .cta-row { margin-top: 48px; }

/* starting-point cards are links */
.start { position: relative; transition: border-color .25s, transform .25s, background .25s; }
.start:hover, .start:focus-within { border-color: var(--blue-light); transform: translateY(-4px); background: var(--ink-3); }
.start-link { font-weight: 600; color: var(--blue-light); text-decoration: none; margin-top: 6px; }
.start-link::after { content: ""; position: absolute; inset: 0; }
.start-link span { display: inline-block; transition: transform .2s; }
.start:hover .start-link span { transform: translateX(5px); }
.start-link:focus-visible { outline: none; }
.start:focus-within { outline: 3px solid var(--blue-light); outline-offset: 3px; }

/* hero touchpoints */
.orbit-wrap { width: min(100%, 460px); margin-inline: auto; }
.orbit-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbit-lines line { stroke: rgba(111, 178, 255, .28); stroke-width: .4; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .9s ease-out forwards; transition: stroke .25s, stroke-width .25s; }
.orbit-lines line:nth-child(2) { animation-delay: .12s; } .orbit-lines line:nth-child(3) { animation-delay: .24s; }
.orbit-lines line:nth-child(4) { animation-delay: .36s; } .orbit-lines line:nth-child(5) { animation-delay: .48s; }
.orbit-lines line:nth-child(6) { animation-delay: .6s; }
.orbit-lines line.is-active { stroke: var(--blue-light); stroke-width: .9; }
@keyframes draw { to { stroke-dashoffset: 0; } }
button.node { font-family: var(--serif); color: var(--text-on-dark); text-align: left; cursor: pointer; transition: border-color .2s, box-shadow .2s, background .2s; }
button.node:hover, button.node.is-active { border-color: var(--blue-light); background: var(--ink-3); box-shadow: 0 0 0 3px rgba(111, 178, 255, .22), 0 8px 24px rgba(0, 0, 0, .35); }
.orbit.has-active .node:not(.is-active) { opacity: .55; }
.orbit-mark { transition: filter .3s; }
.orbit.has-active .orbit-mark { filter: drop-shadow(0 12px 48px rgba(111, 178, 255, .7)); }
.orbit-caption { margin-top: 22px; min-height: 4.8em; text-align: center; font-size: .98rem; color: var(--text-on-dark-soft); }
.orbit-caption b { display: block; font: 600 .68rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--blue-light); margin-bottom: 4px; }

/* how we think: the better question arrives after the request */
.js .reframe-row .asked { opacity: 0; transform: translateX(-16px); transition: opacity .6s ease .35s, transform .6s ease .35s; }
.js .reframe-row.in .asked { opacity: 1; transform: none; }
.reframe-row { transition: background .25s; }
.reframe-row:hover { background: rgba(10, 108, 240, .05); }
.asked::before { transition: transform .25s; }
.reframe-row:hover .asked::before { transform: translateX(5px); }

/* demo stepper */
.stepper { margin-top: 44px; background: var(--ink); color: var(--text-on-dark); border-radius: 4px; padding: clamp(20px, 3vw, 36px); }
.stepper-on .compare { display: none; }
.stepper-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stepper-nav button { display: flex; align-items: center; gap: 10px; text-align: left; font: 600 .95rem var(--serif); color: var(--text-on-dark-soft); background: transparent; border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 12px 14px; min-height: 52px; cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.stepper-nav button i { font: 600 .74rem var(--sans); font-style: normal; width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid currentColor; }
.stepper-nav button:hover { border-color: var(--blue-light); color: var(--text-on-dark); }
.stepper-nav button.is-on { background: var(--blue); border-color: var(--blue); color: #fff; }
.stepper-nav button.is-done i { background: var(--blue-light); border-color: var(--blue-light); color: var(--ink); }
.stepper-desc { margin: 24px 0; min-height: 3.2em; font-size: 1.1rem; max-width: 62ch; }
.stepper-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stepper-cards .card { background: var(--ink-2); border: 1px solid var(--line-dark); color: var(--text-on-dark-soft); min-height: 118px; transition: border-color .4s; }
.stepper-cards .card b { color: var(--text-on-dark); }
.stepper-cards .card.is-bad small { color: #ff90b1; }
.stepper-cards .card.is-good small { color: var(--blue-light); }
.stepper-cards .card.is-good { border-color: rgba(111, 178, 255, .45); }
.stepper-cards .card.is-changed { animation: pulse .9s ease-out; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(111, 178, 255, .7); transform: scale(.98); } 100% { box-shadow: 0 0 0 14px rgba(111, 178, 255, 0); transform: none; } }
.card .pill { align-self: flex-start; margin-top: 8px; font: 600 .78rem var(--sans); background: var(--blue); color: #fff; padding: 5px 12px; border-radius: 100px; }
.stepper-meters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
.stepper-meters li { font: .72rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--text-on-dark-soft); }
.stepper-meters b { display: block; font: 600 1.15rem var(--serif); letter-spacing: 0; text-transform: none; color: #ff90b1; margin: 2px 0 8px; transition: color .4s; }
.stepper-meters .bar { display: block; height: 4px; background: var(--line-dark); border-radius: 4px; overflow: hidden; }
.stepper-meters .bar span { display: block; height: 100%; width: 28%; background: #ff90b1; transition: width .7s cubic-bezier(.2, .8, .2, 1), background .4s; }
.stepper-meters li.is-good b { color: var(--blue-light); }
.stepper-meters li.is-good .bar span { width: 100%; background: var(--blue-light); }
.stepper-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.stepper-foot button { font: 600 .95rem var(--serif); color: var(--text-on-dark); background: transparent; border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 10px 18px; min-height: 44px; cursor: pointer; }
.stepper-foot button:hover:not(:disabled) { border-color: var(--blue-light); }
.stepper-foot button:disabled { opacity: .35; cursor: default; }

/* nav: current section */
.nav-links a:not(.btn) { position: relative; padding: 6px 0; transition: color .2s; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--blue-light); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.nav-links a[aria-current="true"] { color: var(--text-on-dark); }
.nav-links a[aria-current="true"]::after, .nav-links a:not(.btn):hover::after { transform: scaleX(1); }

/* form feedback */
.err { font-size: .86rem; color: #ffb3c8; min-height: 0; }
.err:empty { display: none; }
.field.is-ok { position: relative; }
.field.is-ok::after { content: "✓"; position: absolute; right: 14px; bottom: 12px; color: #8fe3b0; font-family: var(--sans); pointer-events: none; }
.field.is-ok input, .field.is-ok textarea { border-color: rgba(143, 227, 176, .5); padding-right: 38px; }
.form.is-sent > *:not(.form-done) { display: none; }
.form-done { text-align: center; padding: 40px 10px; animation: rise .5s ease-out; }
.form-done .check { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; background: #8fe3b0; color: var(--ink); font: 600 1.6rem var(--sans); }
.form-done p { color: var(--text-on-dark-soft); margin-top: 6px; }
.form .btn[disabled] { opacity: .6; cursor: progress; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.field.flash select { animation: flash 1.2s ease-out; }
@keyframes flash { 0%, 40% { border-color: var(--blue-light); box-shadow: 0 0 0 4px rgba(111, 178, 255, .35); } }

@media (max-width: 820px) {
  .nav-links a:not(.btn)::after { display: none; }
  .stepper-nav { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .stepper-cards, .stepper-meters { grid-template-columns: 1fr; }
  .stepper-cards .card { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .orbit-lines line { animation: none; stroke-dashoffset: 0; }
  .js .reframe-row .asked { opacity: 1; transform: none; transition: none; }
  .stepper-cards .card.is-changed, .form-done, .field.flash select { animation: none; }
  .stepper-meters .bar span, .start, .inline-cta a span, .start-link span { transition: none; }
  .start:hover, .svc:hover { transform: none; }
}

/* ================= Wave transitions between sections ================= */
.has-wave { padding-bottom: 0; }
.wave { height: clamp(90px, 11vw, 170px); margin-top: clamp(40px, 6vw, 80px); position: relative; overflow: hidden; }
.wave svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.wave-fill { stroke: none; }
.to-light .wave-fill { fill: var(--paper); }
.to-dark .wave-fill { fill: var(--ink); }
.wave-line { fill: none; stroke: url(#dc-rib); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.to-dark .wave-line { filter: drop-shadow(0 0 6px rgba(89, 124, 255, .7)); }
.section + .section, .hero + .section { margin-top: -1px; } /* hide hairline seams under the waves */
