/* ---------- Process: 5 real steps, sticky stage that changes per day ---------- */
.proc-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); }
.proc-steps { list-style: none; margin: 0; padding: 0; }
.step { padding-block: clamp(36px, 8vh, 80px); border-top: 1px solid var(--line); }
.step:first-child { padding-top: 6px; border-top: 0; }
.step-day { display: flex; align-items: center; gap: 12px; font: 500 .76rem/1.4 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); }
.step-day::after { content: ""; flex: 0 1 80px; height: 1px; background: var(--line-2); }
.step h3 { margin: 14px 0 12px; font: 500 clamp(1.5rem, 2.6vw, 2.25rem)/1.1 var(--f-display); letter-spacing: -.035em; transition: color .5s; }
.step p { margin: 0; max-width: 31em; color: var(--fg-2); transition: color .5s; }
.step .deliv { display: inline-flex; gap: 8px; align-items: center; margin-top: 18px; padding: .45em .85em; border-radius: 999px; border: 1px solid var(--line-2); font-size: .84rem; color: var(--fg-2); }
.step .deliv .ico { color: var(--go); }
.js .step:not(.active) h3 { color: var(--fg-3); }
.js .step:not(.active) p { color: color-mix(in srgb, var(--fg-2) 55%, var(--bg)); }

.proc-stage { position: sticky; top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 6vh); align-self: start; }
.stage-scenes { position: relative; aspect-ratio: 4 / 3.05; }
.day-badge { margin-left: auto; font: 500 .7rem var(--f-mono); color: var(--fg-2); letter-spacing: .08em; }
.day-badge b { color: var(--cyan); font-weight: 600; }
.stage-track { height: 2px; background: var(--line); }
.stage-track span { display: block; height: 100%; width: calc(var(--n, 1) * 20%); background: var(--grad); transition: width .8s var(--ease); }
.scene { position: absolute; inset: 0; padding: clamp(18px, 2.4vw, 30px); opacity: 0; transform: translateY(16px) scale(.98); pointer-events: none; transition: opacity .6s var(--ease), transform .9s var(--ease); }
[data-active="1"] .s1, [data-active="2"] .s2, [data-active="3"] .s3, [data-active="4"] .s4, [data-active="5"] .s5 { opacity: 1; transform: none; }
.mono-l { font: 500 .66rem/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }

.s1 { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; align-items: center; }
.tree { display: grid; justify-items: center; gap: 26px; }
.node { position: relative; padding: .55em .9em; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-3); font: 500 .74rem var(--f-mono); white-space: nowrap; }
.node.root { background: var(--brand); color: var(--brand-ink); border-color: transparent; }
.node.root::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 13px; background: var(--line-2); }
.tree-kids { position: relative; display: flex; gap: 8px; }
.tree-kids::before { content: ""; position: absolute; left: 14%; right: 14%; top: -13px; height: 1px; background: var(--line-2); }
.tree-kids .node::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 1px; height: 13px; background: var(--line-2); }
.notes { display: grid; gap: 10px; }
.note { display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; font-size: .82rem; line-height: 1.4; background: color-mix(in srgb, var(--brand) 13%, var(--bg-2)); border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent); transform: rotate(var(--rot, 0deg)); }

.s2 { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(16px, 3vw, 30px); align-items: center; }
.type-spec { display: grid; gap: 8px; }
.type-spec b { font: 600 clamp(3.4rem, 6.5vw, 5.6rem)/.9 var(--f-display); letter-spacing: -.06em; }
.type-spec b em { font-family: var(--f-serif); font-weight: 400; color: var(--cyan); }
.design-side { display: grid; gap: 16px; }
.swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.sw { display: grid; gap: 6px; }
.sw i { display: block; aspect-ratio: 1; border-radius: 12px; border: 1px solid var(--line); background: var(--c); }
.sw span { font: 400 .6rem var(--f-mono); color: var(--fg-3); }
.mini-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mini-layout i { display: block; height: 44px; border-radius: 8px; background: var(--bg-3); }
.mini-layout i:first-child { grid-column: span 2; height: 58px; background: var(--grad); }

.s3 { display: grid; grid-template-rows: 1fr auto; gap: 14px; }
.code { margin: 0; overflow: hidden; white-space: pre; font: 400 clamp(.66rem, .95vw, .82rem)/1.8 var(--f-mono); color: var(--fg-2); }
.code .ln { display: block; opacity: 0; transform: translateX(-8px); transition: opacity .4s, transform .6s var(--ease); }
[data-active="3"] .code .ln { opacity: 1; transform: none; transition-delay: calc(var(--l) * 110ms + 150ms); }
.code .t { color: var(--cyan); }
.code .a { color: var(--brand-2); }
.code .s { color: var(--go); }
.code .c { color: var(--fg-3); font-style: italic; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks span { display: inline-flex; align-items: center; gap: 6px; padding: .4em .75em; border-radius: 999px; background: color-mix(in srgb, var(--go) 12%, transparent); color: var(--fg); font: 500 .7rem var(--f-mono); }
.checks .ico { color: var(--go); width: 13px; height: 13px; }

.s4 { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; align-items: center; }
.rev-page { position: relative; display: grid; gap: 10px; padding: 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg-3); }
.rev-page i { display: block; height: 8px; border-radius: 4px; background: var(--line-2); }
.rev-page i.h { height: 70px; border-radius: 10px; background: var(--grad); }
.rev-page i.s { width: 64%; }
.pin { position: absolute; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50% 50% 50% 4px; background: var(--cyan); color: var(--bg); font: 700 .72rem var(--f-mono); box-shadow: 0 6px 16px -6px var(--cyan); }
.rev-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rev-list li { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; font-size: .82rem; }
.rev-list li b { display: grid; place-items: center; grid-row: span 2; width: 24px; height: 24px; border-radius: 50%; background: color-mix(in srgb, var(--go) 18%, transparent); color: var(--go); }
.rev-list li b .ico { width: 13px; height: 13px; }
.rev-list small { color: var(--fg-3); font-size: .72rem; }

.s5 { display: grid; place-content: center; justify-items: center; gap: 18px; text-align: center; }
.live-badge { display: inline-flex; align-items: center; gap: 14px; font: 600 clamp(2.2rem, 4.4vw, 3.6rem)/1 var(--f-display); letter-spacing: -.05em; }
.live-badge i { position: relative; width: 14px; height: 14px; border-radius: 50%; background: var(--go); }
.live-badge i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--go); animation: ping 2s var(--ease) infinite; }
.live-url { display: inline-flex; align-items: center; gap: 8px; font: 400 .82rem var(--f-mono); color: var(--fg-2); }
.live-url .ico { color: var(--go); width: 13px; height: 13px; }
.rings-row { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(10px, 2vw, 22px); }
.rings-row figure { margin: 0; display: grid; justify-items: center; gap: 6px; }
.rings-row .ring { width: 58px; height: 58px; font-size: 1rem; }
.rings-row figcaption { font-size: .7rem; color: var(--fg-3); }
.toast { display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--glass); text-align: left; font-size: .82rem; box-shadow: var(--shadow); }
.toast strong { display: block; font-weight: 600; }
.toast small { color: var(--fg-3); }

/* ---------- Performance ---------- */
.perf-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 clamp(16px, 2.4vw, 28px); align-items: stretch; }
.perf-head { grid-column: 1 / -1; }
.perf-copy { display: flex; min-width: 0; order: 1; }
.feat-list { flex: 1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 10px; }
.feat-list li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg-2) 70%, transparent); min-width: 0; }
.feat-list .ico { width: 22px; height: 22px; color: var(--cyan); margin-top: 1px; }
.feat-list strong { display: block; font-size: .96rem; font-weight: 600; line-height: 1.3; }
.feat-list span { display: block; margin-top: 2px; font-size: .84rem; line-height: 1.45; color: var(--fg-3); }
/* Home: the four items stack in one column so together they match the panel height, content centred in each. */
.perf .feat-list { grid-template-columns: minmax(0, 1fr); }
.perf .feat-list li { align-items: center; gap: 16px; padding: 14px 18px; }
.perf .feat-list .ico { width: 44px; height: 44px; padding: 10px; margin-top: 0; border-radius: 12px; background: color-mix(in srgb, var(--brand) 18%, transparent); }
.perf .feat-list strong { font-size: 1.05rem; }
.perf .feat-list span { font-size: .9rem; }
.perf-panel { position: relative; display: grid; gap: 26px; align-content: space-between; padding: clamp(22px, 3vw, 36px); border-radius: var(--r-lg); border: 1px solid var(--line-2); background: linear-gradient(160deg, var(--bg-2), var(--bg)); box-shadow: var(--shadow); overflow: hidden; }
.perf-panel::before { content: none; }
.panel-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.panel-head strong { font: 500 1.05rem var(--f-display); letter-spacing: -.02em; }
.rings { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; text-align: center; }
.rings figure { margin: 0; display: grid; justify-items: center; gap: 10px; }
.rings .ring { width: min(100%, 92px); aspect-ratio: 1; font-size: 1.45rem; }
.rings figcaption { font-size: .8rem; color: var(--fg-2); }
.vitals { display: grid; gap: 16px; padding-top: 22px; border-top: 1px dashed var(--line-2); }
.vital { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: baseline; }
.vital span { font-size: .9rem; color: var(--fg-2); }
.vital b { font: 500 .82rem var(--f-mono); color: var(--fg); font-variant-numeric: tabular-nums; }
.vital-bar { grid-column: 1 / -1; position: relative; display: flex; height: 6px; border-radius: 3px; overflow: hidden; }
.vital-bar i { display: block; height: 100%; }
.vital-bar i:nth-child(1) { background: var(--go); }
.vital-bar i:nth-child(2) { background: #ffa400; }
.vital-bar i:nth-child(3) { background: #ff4e42; }
.vital-bar em { position: absolute; top: -4px; bottom: -4px; width: 3px; border-radius: 2px; background: var(--fg); left: var(--at); box-shadow: 0 0 0 2px var(--bg-2); }

/* Loading race: two phones load the same page; the timer stops when each one is ready (js: [data-race]). */
.race { gap: 18px; align-content: start; padding: clamp(20px, 2.6vw, 30px); }
.race-lanes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 28px); }
.lane { margin: 0; display: flex; align-items: center; justify-content: center; gap: 14px; }
.lane figcaption { display: grid; justify-items: start; gap: 6px; }
.lane-brand { display: block; }
.lane-brand .logo-img { height: 18px; }
.lane figcaption span { font-size: .84rem; color: var(--fg-3); }
.race-t { font: 600 clamp(1.5rem, 2.6vw, 2rem)/1 var(--f-display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--fg); transition: color .4s; }
.lane-fast.done .race-t { color: var(--go); }
.lane-slow.done .race-t { color: #ffa400; }
.rphone { position: relative; flex: none; width: 112px; aspect-ratio: 9 / 17; padding: 8px 6px; border-radius: 20px; border: 1px solid var(--line-2); background: var(--bg-3); box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .8); overflow: hidden; }
.lane-fast .rphone { border-color: color-mix(in srgb, var(--go) 40%, var(--line-2)); }
.ph-load { position: absolute; left: 0; right: 0; top: 0; height: 3px; }
.ph-load i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--brand); }
.lane-fast .ph-load i { background: var(--go); }
.ph-screen { display: grid; align-content: start; gap: 7px; height: 100%; padding: 7px 5px; border-radius: 14px; background: var(--bg-2); }
.ph-screen > *, .ph-hero > * { opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .45s var(--ease); }
.ph-nav { height: 10px; border-radius: 5px; background: var(--line-2); }
.ph-hero { display: grid; gap: 6px; padding: 10px 8px; border-radius: 10px; background: color-mix(in srgb, var(--brand) 18%, transparent); }
.ph-hero b { height: 9px; border-radius: 4px; background: var(--fg); opacity: .8; }
.ph-hero b.s { width: 70%; }
.ph-hero em { width: 54%; height: 16px; margin-top: 4px; border-radius: 999px; background: var(--go); }
.ph-img { height: 40px; border-radius: 10px; background: linear-gradient(135deg, color-mix(in srgb, var(--cyan) 35%, var(--bg-3)), color-mix(in srgb, var(--brand) 35%, var(--bg-3))); }
.ph-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ph-cards i { height: 26px; border-radius: 8px; background: var(--bg-3); border: 1px solid var(--line); }
.lane.ls1 .ph-nav, .lane.ls2 .ph-hero, .lane.ls2 .ph-hero > *, .lane.ls3 .ph-img, .lane.ls4 .ph-cards { opacity: 1; transform: none; }
.ph-hero > * { transition-delay: .1s; }
.ph-spin { position: absolute; left: 50%; top: 46%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--fg-2); opacity: 0; transition: opacity .3s; }
.lane.running:not(.ls1) .ph-spin { opacity: 1; animation: vspin .8s linear infinite; }
.ph-done { position: absolute; left: 50%; bottom: 10px; padding: 4px 9px; border-radius: 999px; font: 600 .7rem/1 var(--f-body); letter-spacing: .02em; white-space: nowrap; transform: translate(-50%, 10px); opacity: 0; transition: opacity .35s, transform .45s var(--ease); background: #ffa400; color: #1f1300; }
.lane-fast .ph-done { background: var(--go); color: var(--go-ink); }
.lane.done .ph-done { opacity: 1; transform: translate(-50%, 0); }
.race-note { display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, #ffa400 10%, transparent); border: 1px solid color-mix(in srgb, #ffa400 28%, transparent); }
.race-note b { flex: none; font: 600 1.35rem/1 var(--f-display); letter-spacing: -.04em; color: #ffa400; }
.race-note span { font-size: .84rem; line-height: 1.45; color: var(--fg-2); }
.race-note small { display: block; margin-top: 2px; font-size: .74rem; color: var(--fg-3); }
.race-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap; padding-top: 14px; border-top: 1px dashed var(--line-2); }
.rings-mini { flex: 1; min-width: 0; gap: 8px; }
.rings-mini .ring { width: 48px; font-size: .9rem; }
.rings-mini figcaption { font-size: .72rem; }
.race-replay { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--fg-2); font: 500 .82rem/1 var(--f-body); cursor: pointer; transition: color .3s, border-color .3s; }
.race-replay:hover { color: var(--fg); border-color: var(--brand); }
.race-replay .ico { width: 15px; height: 15px; color: var(--cyan); }
@keyframes vspin { to { transform: rotate(360deg); } }
@media (max-width: 560px) {
  .lane { flex-direction: column; gap: 10px; }
  .lane figcaption { justify-items: center; }
}
@media (max-width: 520px) {
  .rings-mini { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rings-mini .ring { width: 48px; font-size: .9rem; }
  .race-replay { width: 100%; justify-content: center; }
}

/* ---------- Portfolio ---------- */
.work-nav { display: flex; gap: 10px; }
.round-btn { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--fg); cursor: pointer; transition: background-color .3s, border-color .3s, transform .5s var(--ease); }
.round-btn:hover { background: var(--bg-3); border-color: var(--fg-3); }
.round-btn.prev .ico { transform: scaleX(-1); }
.work-track {
  display: flex; gap: 20px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 10px;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px), calc((100% - var(--maxw)) / 2));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px), calc((100% - var(--maxw)) / 2));
  scroll-padding-inline: max(var(--gutter), calc((100% - var(--maxw)) / 2));
}
.work-track::-webkit-scrollbar { display: none; }
.work-track.drag { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.work-card { flex: 0 0 clamp(272px, 33vw, 430px); scroll-snap-align: start; }
.work-card a { display: block; text-decoration: none; color: inherit; border-radius: var(--r); }
.work-shot { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(145deg, var(--h1), var(--h2)); }
.ws { position: absolute; inset: 9% 9% -30%; display: grid; align-content: start; gap: 12px; padding: 16px; border-radius: 12px 12px 0 0; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #fff; transition: transform 1.2s var(--ease); }
.ws-nav { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ws-nav b { font: 700 .72rem var(--f-body); letter-spacing: .02em; }
.ws-nav span { display: flex; gap: 6px; }
.ws-nav span i { display: block; width: 22px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .45); }
.ws-title { font: 600 clamp(1.4rem, 2.6vw, 2rem)/1.02 var(--f-display); letter-spacing: -.04em; max-width: 11em; text-wrap: balance; }
.ws-lines i { display: block; height: 6px; margin-bottom: 7px; border-radius: 3px; background: rgba(255, 255, 255, .35); }
.ws-lines i:nth-child(2) { width: 70%; }
.ws-btn { justify-self: start; padding: .55em 1em; border-radius: 999px; background: #fff; color: #0a0f24; font: 600 .72rem var(--f-body); }
.work-card a:hover .ws { transform: translateY(-14%); }
.work-shot .visit { position: absolute; right: 14px; top: 14px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: #0a0f24; transform: scale(.6) rotate(-45deg); opacity: 0; transition: transform .6s var(--ease), opacity .4s; }
.work-card a:hover .visit, .work-card a:focus-visible .visit { transform: scale(1) rotate(-45deg); opacity: 1; }
.work-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 16px; }
.work-meta h3 { margin: 0; font: 500 1.18rem/1.2 var(--f-display); letter-spacing: -.03em; }
.work-meta span { font-size: .88rem; color: var(--fg-3); text-align: right; }
.work-more { margin: 36px 0 0; color: var(--fg-3); font-size: .95rem; }
.work-more strong { color: var(--fg-2); font-weight: 500; }

/* ---------- Quote builder ---------- */
.quote { overflow: clip; }
.quote::before { content: none; }
.quote-grid { position: relative; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(36px, 6vw, 84px); align-items: start; }
.quote-copy .sec-head { margin-bottom: 30px; }
.contact-box { display: grid; gap: 10px; padding: 20px; border-radius: var(--r); border: 1px solid var(--line); background: color-mix(in srgb, var(--bg-2) 70%, transparent); }
.contact-box p { margin: 0; color: var(--fg-2); font-size: .95rem; }
.contact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.phone-num { font: 500 1.35rem var(--f-display); letter-spacing: -.03em; user-select: all; }
.copy-btn { padding: .45em .9em; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; font-size: .84rem; font-weight: 600; color: var(--fg-2); }
.copy-btn:hover { color: var(--fg); border-color: var(--fg-3); }
.contact-wa { gap: 14px; border-color: color-mix(in srgb, var(--go) 35%, transparent); background: color-mix(in srgb, var(--go) 6%, var(--bg-2)); }
.contact-wa .cw-head { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--fg); }
.contact-wa .btn-go { justify-self: start; }
.builder { display: grid; gap: 26px; padding: clamp(20px, 3vw, 34px); border-radius: var(--r-lg); border: 1px solid var(--line-2); background: var(--bg-2); box-shadow: var(--shadow); }
.builder fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.builder legend { padding: 0; margin-bottom: 12px; font: 500 .74rem/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
.opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.opt, .chip { position: relative; display: block; }
.opt input, .chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt-box { display: grid; gap: 4px; height: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); cursor: pointer; transition: border-color .3s, background-color .3s, box-shadow .3s, transform .4s var(--ease); }
.opt-box b { font-weight: 600; }
.opt-box small { font-size: .82rem; line-height: 1.4; color: var(--fg-3); }
.opt-box:hover { border-color: var(--fg-3); }
.opt input:checked + .opt-box { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 14%, transparent); box-shadow: inset 0 0 0 1px var(--brand); }
.opt input:focus-visible + .opt-box, .chip input:focus-visible + .chip-box { outline: 2px solid var(--cyan); outline-offset: 3px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-box { display: inline-flex; align-items: center; gap: 8px; padding: .6em 1em; border-radius: 999px; border: 1px solid var(--line-2); cursor: pointer; font-size: .92rem; color: var(--fg-2); transition: all .3s; }
.chip-box::before { content: "+"; font: 500 .9rem var(--f-mono); color: var(--fg-3); }
.chip input:checked + .chip-box { color: var(--fg); border-color: var(--cyan); background: color-mix(in srgb, var(--cyan) 12%, transparent); }
.chip input:checked + .chip-box::before { content: "✓"; color: var(--cyan); }
.text-in { width: 100%; padding: .9em 1em; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); color: var(--fg); font: inherit; transition: border-color .3s; }
.text-in::placeholder { color: var(--fg-3); }
.text-in:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 30%, transparent); }
.summary { display: grid; gap: 16px; padding-top: 24px; border-top: 1px dashed var(--line-2); }
.bubble { position: relative; margin: 0; padding: 14px 16px; border-radius: 18px 18px 4px 18px; border: 1px solid color-mix(in srgb, var(--go) 35%, transparent); background: color-mix(in srgb, var(--go) 11%, var(--bg-2)); font-size: .95rem; line-height: 1.5; white-space: pre-line; }
.sum-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.eta { display: grid; gap: 2px; }
.eta b { font: 500 1.3rem var(--f-display); letter-spacing: -.03em; }
/* Step form: one question at a time (shares .f-progress, .fstep, .field, .f-actions with the LP). */
.builder.steps { gap: 22px; align-content: start; }
.builder .fs-title { margin-bottom: 18px; font: 500 1.3rem/1.25 var(--f-display); letter-spacing: -.02em; text-transform: none; color: var(--fg); }
.builder .fstep { display: grid; gap: 18px; }
.builder .field-l { font-weight: 600; font-size: .95rem; }
.builder .summary { padding-top: 0; border-top: 0; }
.builder .f-help { margin: 0; font-size: .84rem; color: var(--fg-3); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(36px, 6vw, 84px); align-items: start; }
.faq .sec-head { position: sticky; top: calc(var(--nav-h) + 40px); }
.faq .sec-head a { color: var(--cyan); }
.faq-item { border-bottom: 1px solid var(--line); interpolate-size: allow-keywords; }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item h3 { margin: 0; font: 500 clamp(1.04rem, 1.6vw, 1.3rem)/1.3 var(--f-display); letter-spacing: -.025em; transition: color .3s; }
.faq-item summary:hover h3 { color: var(--cyan); }
.plus { position: relative; flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--fg); transition: transform .6s var(--ease), background-color .3s, border-color .3s, color .3s; }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .plus { transform: rotate(135deg); background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.faq-item::details-content { height: 0; overflow: clip; transition: height .55s var(--ease), content-visibility .55s allow-discrete; }
.faq-item[open]::details-content { height: auto; }
.faq-a { padding: 0 58px 26px 0; color: var(--fg-2); }
.faq-a p { margin: 0; }

/* ---------- Final CTA ---------- */
.final { position: relative; overflow: clip; padding-block: clamp(110px, 16vw, 220px); text-align: center; }
.final::before { content: ""; position: absolute; left: 50%; top: 55%; width: min(1100px, 120%); aspect-ratio: 2; transform: translate(-50%, -50%); background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 32%, transparent), transparent); pointer-events: none; }
.final .wrap { position: relative; display: grid; justify-items: center; gap: 44px; }
.final-title { margin: 0; max-width: 13em; font: 500 clamp(2.1rem, 4.8vw, 4rem)/1.05 var(--f-display); letter-spacing: -.035em; text-wrap: balance; }
.final-title .serif { font-size: 1.12em; line-height: .85; }
.final-arrow { width: min(560px, 90%); height: 70px; color: var(--brand); overflow: visible; }
.final-arrow path { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--draw, 1)); }
.final-sub { margin: -18px 0 0; color: var(--fg-2); }
/* Closing rocket: lifts off from behind the button, leaving a trail (js: .final-cta.go). Shapes and flame come from lp.css. */
.final-cta { position: relative; display: grid; justify-items: center; }
.final-cta .btn { position: relative; z-index: 2; }
.final-cta::after { content: ""; position: absolute; left: 50%; top: 50%; z-index: 1; width: 80px; height: 80px; margin: -40px 0 0 -40px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 55%, transparent), transparent); opacity: 0; pointer-events: none; }
.fl-rocket { position: absolute; left: 50%; top: 50%; z-index: 1; width: 38px; height: 52px; margin: -26px 0 0 -19px; opacity: 0; pointer-events: none; }
.fl-rocket svg { display: block; width: 100%; height: 100%; overflow: visible; }
.fl-trail { position: absolute; left: 50%; bottom: 50%; z-index: 0; width: 3px; height: 0; margin-left: -1.5px; border-radius: 3px; background: linear-gradient(to top, transparent, color-mix(in srgb, var(--cyan) 70%, transparent)); opacity: 0; pointer-events: none; }
.final-cta.go .fl-rocket { animation: flUp 2.4s cubic-bezier(.5, 0, .7, .3) forwards; }
.final-cta.go .fl-trail { animation: flTrail 2.4s cubic-bezier(.5, 0, .7, .3) forwards; }
.final-cta.go::after { animation: flPuff 1s ease-out; }
@keyframes flUp { 0% { opacity: 0; transform: translateY(0) scale(.6); } 12% { opacity: 1; transform: translateY(-46px) scale(1); } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(-560px) scale(.85); } }
@keyframes flTrail { 0% { height: 0; opacity: 0; } 15% { opacity: 1; } 100% { height: 520px; opacity: 0; } }
@keyframes flPuff { 0% { opacity: 0; transform: scale(.4); } 25% { opacity: 1; } 100% { opacity: 0; transform: scale(2.4); } }
.final-lead { margin: -22px 0 0; max-width: 30em; font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--fg-2); text-wrap: balance; }

.m-bar { display: none; }

/* ---------- Footer ---------- */
.footer { position: relative; overflow: clip; padding-top: 76px; border-top: 1px solid var(--line); }
/* Mega footer: brand on the left, six link columns in a 3 × 2 grid. Columns become accordions on phones. */
.foot-mega { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 44px 56px; }
.foot-brand { display: grid; gap: 16px; align-content: start; }
/* Link columns flow like a newspaper, so short lists don't leave holes under them. */
.foot-links { columns: 3; column-gap: 40px; }
.foot-col { break-inside: avoid; margin-bottom: 36px; }
@media (min-width: 641px) and (max-width: 860px) { .foot-links { columns: 2; } }
.foot-brand .foot-meta { font-size: .88rem; color: var(--fg-3); }
.foot-brand .logo { justify-self: start; }
.foot-social { display: inline-flex; align-items: center; gap: 8px; justify-self: start; color: var(--fg-2); font-weight: 500; text-decoration: none; transition: color .3s; }
.foot-social:hover { color: var(--fg); }
.foot-social .ico { width: 20px; height: 20px; color: var(--cyan); }
.foot-col summary { list-style: none; pointer-events: none; }
.foot-col summary::-webkit-details-marker { display: none; }
.foot-all { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.footer ul .foot-all { color: var(--cyan); }
.foot-all .ico { width: 14px; height: 14px; }
.foot-brand p { margin: 0; max-width: 26em; color: var(--fg-2); }
.foot-h { margin: 0 0 16px; font: 500 .74rem/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--fg-2); text-decoration: none; font-size: .95rem; transition: color .3s; }
.footer ul a:hover { color: var(--fg); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-top: 64px; padding-block: 26px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--fg-3); }
.foot-bottom p { margin: 0; }
.verse { font-family: var(--f-serif); font-style: italic; font-size: 1.08rem; color: var(--fg-2); }
.foot-giant {
  margin: 10px 0 -.16em; text-align: center; white-space: nowrap; user-select: none;
  font: 700 clamp(4rem, 19.5vw, 17.5rem)/.9 var(--f-logo); letter-spacing: -.045em;
  color: transparent; -webkit-text-stroke: 1px var(--line-2);
  background: radial-gradient(340px circle at var(--mx, -400px) var(--my, 50%), var(--brand), transparent 70%);
  -webkit-background-clip: text; background-clip: text;
}

/* ---------- Floating actions ---------- */
.wa-float {
  position: fixed; z-index: 45; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: var(--go); color: var(--go-ink); box-shadow: 0 12px 28px -14px color-mix(in srgb, var(--go) 75%, transparent); text-decoration: none;
  transition: transform .5s var(--ease);
}
.wa-float .ico { width: 28px; height: 28px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--go); animation: ring 2.6s var(--ease) infinite; }
@keyframes ring { 70%, 100% { transform: scale(1.6); opacity: 0; } }
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }
.wa-float .tip { position: absolute; right: calc(100% + 12px); padding: .5em .9em; border-radius: 10px; background: var(--fg); color: var(--bg); font-size: .82rem; font-weight: 600; white-space: nowrap; opacity: 0; transform: translateX(8px); transition: opacity .3s, transform .4s var(--ease); pointer-events: none; }
.wa-float:hover .tip, .wa-float:focus-visible .tip { opacity: 1; transform: none; }
.seo-toggle {
  position: fixed; z-index: 45; left: calc(18px + env(safe-area-inset-left, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 8px; padding: .6em .95em; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font: 500 .72rem var(--f-mono); letter-spacing: .06em; color: var(--fg-2); cursor: pointer;
}
.seo-toggle[aria-pressed="true"] { color: var(--bg); background: var(--cyan); border-color: var(--cyan); }
.outline main [data-tag] { outline: 1px dashed var(--cyan); outline-offset: 6px; position: relative; }
.outline main [data-tag]::before { content: attr(data-tag); position: absolute; left: 0; top: -1.9em; z-index: 5; padding: 3px 6px; border-radius: 4px; background: var(--cyan); color: var(--bg); font: 700 10px/1.2 var(--f-mono); letter-spacing: .06em; white-space: nowrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1140px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-lg { grid-row: auto; grid-column: span 2; }
  .card-lg .viz { height: 220px; }
  .foot-mega { grid-template-columns: minmax(0, 1fr); }
  .chan-grid { grid-template-columns: minmax(0, 1fr); }
  .chan { flex-direction: row; }
  .chan-viz { flex: 0 0 44%; height: auto; min-height: 240px; border-bottom: 0; border-right: 1px solid var(--line); }
}
@media (max-width: 980px) {
  .hero-in, .perf-grid, .quote-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .perf-grid { row-gap: 16px; }
  .hero-visual { max-width: 620px; margin-inline: auto; width: 100%; }
  .hero-browser { transform: none; }
  .fc-lead { right: 8px; top: -18px; }
  .fc-ai { left: 8px; bottom: -22px; }
  .fc-ads { display: none; }
  .faq .sec-head { position: static; }
  .scroll-cue { display: none; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .proc-grid { grid-template-columns: minmax(0, 1fr); }
  .proc-stage { display: none; }
  .js .step:not(.active) h3 { color: inherit; }
  .js .step:not(.active) p { color: var(--fg-2); }
  .step, .step:first-child { padding-block: 30px; padding-left: 26px; border-top: 0; border-left: 1px solid var(--line-2); position: relative; }
  .step::before { content: ""; position: absolute; left: -6px; top: 36px; width: 11px; height: 11px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--bg); }
  .sec-head.split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav .nav-cta { display: none; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .card-lg, .card-wide { grid-column: auto; }
  .card-wide { flex-direction: column; }
  .card-wide .viz { min-height: 180px; }
  .opts, .feat-list { grid-template-columns: minmax(0, 1fr); }
  .rings { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
  .foot-mega { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .foot-brand { margin-bottom: 24px; }
  .foot-links { columns: 1; }
  .foot-col { margin-bottom: 0; border-top: 1px solid var(--line); }
  .foot-col summary { pointer-events: auto; cursor: pointer; display: flex; justify-content: space-between; align-items: center; margin: 0; padding: 16px 0; }
  .foot-col summary::after { content: "+"; font: 400 1.3rem/1 var(--f-body); color: var(--fg-2); transition: transform .3s; }
  .foot-col[open] summary::after { transform: rotate(45deg); }
  .foot-col ul { padding-bottom: 18px; }
  .b-cards .b-card:nth-child(3) { display: none; }
  .b-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .float-card { font-size: .78rem; padding: 9px 12px 9px 9px; }
  .faq-a { padding-right: 0; }
  .hero { padding-bottom: 64px; }
  .hero-ready { margin-top: 34px; }
  .hero-proof { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .lead { margin: 22px 0 28px; }
  .section { padding-block: 72px; }
  .manifesto { padding-block: 72px; }
  .sec-head { margin-bottom: 32px; }
  .sec-lead { font-size: 1rem; }
  .card, .chan-body { padding: 20px; }
  .card-lg .viz { height: 190px; }
  .chan { flex-direction: column; }
  .chan-viz { flex: none; height: 200px; min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .work-card { flex-basis: 82vw; }
  .chip-box { min-height: 44px; }
  .sum-row .btn { flex: 1 1 100%; }
  .step h3 { font-size: 1.35rem; }
  .final-title { font-size: clamp(2.1rem, 9.5vw, 2.8rem); }
  .wa-float, .seo-toggle { display: none; }
  .m-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: flex; gap: 10px;
    padding-top: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
    background: var(--glass); border-top: 1px solid var(--line); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
    transform: translateY(110%); transition: transform .5s var(--ease);
  }
  .m-bar.show { transform: none; }
  .m-bar .btn { min-height: 48px; padding-block: .8em; }
  .m-bar .btn-primary { flex: 1; }
  .footer { padding-bottom: 80px; }
  .note-toast { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .marquee ul { width: auto; flex-wrap: wrap; justify-content: center; padding: 0 16px; }
  .marquee [aria-hidden="true"] { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
}

.note-toast {
  position: fixed; z-index: 90; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  display: grid; gap: 4px; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 14px;
  border: 1px solid var(--line-2); background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow); transform: translateX(-50%); animation: toastIn .5s var(--ease);
}
.note-toast b { font: 500 .86rem var(--f-mono); color: var(--cyan); overflow-wrap: anywhere; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 14px); } }
