/* Shared below-the-hero components (dark aquarium skin) */
#below { position: relative; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.glass { background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }

.shead { display: grid; gap: 10px; margin: 0 0 28px; max-width: 760px; }
.shead .kick { font: 500 12px var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.shead h2 { margin: 0; font: 400 clamp(38px, 5.4vw, 72px)/1 var(--serif); letter-spacing: -.02em; text-shadow: 0 0 18px rgb(var(--bg-c)), 0 0 6px rgb(var(--bg-c)); }
.shead h2 em { font-style: italic; color: var(--fg-hi); }
.shead p { margin: 0; color: var(--fg2); font-size: 17px; max-width: 58ch; text-shadow: 0 0 10px rgb(var(--bg-c)); }
.sec { padding-top: clamp(72px, 11vw, 140px); }
[data-hide] { display: none !important; }

/* media frame */
.mf { position: relative; border-radius: 18px; overflow: hidden; background: #0d0e11; border: 1px solid rgba(var(--ink-c),.1); box-shadow: 0 40px 90px -40px rgba(0,0,0,.9), inset 0 1px 0 rgba(var(--ink-c),.05); display: flex; flex-direction: column; }
.mf-top { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-bottom: 1px solid rgba(var(--ink-c),.07); background: rgb(var(--surf-c)); min-height: 42px; }
.mf-dots { display: flex; gap: 6px; } .mf-dots i { width: 10px; height: 10px; border-radius: 50%; background: #2a2b30; }
.mf-url { font: 500 12px var(--font-mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mf-tabs { margin-left: auto; display: flex; gap: 2px; padding: 3px; border-radius: 9px; background: rgba(var(--ink-c),.04); }
.mf-tabs button { border: 0; background: none; color: var(--muted); font: 500 12px var(--font-mono); padding: 6px 10px; border-radius: 7px; cursor: pointer; }
.mf-tabs button[aria-selected="true"] { background: rgba(var(--ink-c),.1); color: var(--fg-hi); }
.mf-stage { position: relative; flex: 1; min-height: 340px; }
.mf-pane { display: none; height: 100%; }
.mf[data-view="watch"] [data-pane="watch"], .mf[data-view="play"] [data-pane="play"], .mf[data-view="screens"] [data-pane="screens"] { display: block; }
.mf video { display: block; width: 100%; height: 100%; max-height: 72vh; object-fit: contain; background: rgb(var(--surf-c)); }
.mf [data-pane="watch"] { background: radial-gradient(120% 80% at 50% 0%, rgba(var(--ink-c),.06), transparent 60%), rgb(var(--surf-c)); }
.mf video.is-phone { display: block; width: auto; max-width: 100%; height: min(72vh, 680px); margin: 18px auto; border-radius: 34px; box-shadow: 0 0 0 8px rgb(var(--surf-c)), 0 0 0 9px rgba(var(--ink-c),.12), 0 30px 60px -20px rgba(0,0,0,.8); }
.mf-play-cta { position: relative; isolation: isolate; display: grid; place-content: center; justify-items: center; gap: 12px; min-height: 340px; padding: 24px; text-align: center; }
.mf-play-cta small { color: var(--muted); font-size: 13px; max-width: 40ch; }
.mf-start { font: 600 15px var(--font-body); padding: 14px 20px; border-radius: 12px; border: 0; background: var(--fg); color: rgb(var(--bg-c)); cursor: pointer; transition: transform .2s; }
.mf-start:hover { transform: scale(1.04); }
.mf.demo-on .mf-play-cta { display: none; }
.mf-demo { padding: 10px; background: var(--fg); }
.mf:not(.demo-on) .mf-demo { display: none; }
.mf-shots { position: relative; aspect-ratio: 16/10; cursor: e-resize; background: rgb(var(--surf-c)); }
.mf-shots figure { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .5s; }
.mf-shots figure.on { opacity: 1; }
.mf-shots img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mf-dotsnav { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; }
.mf-dotsnav button { width: 7px; height: 7px; padding: 0; border-radius: 50%; border: 0; background: rgba(var(--ink-c),.3); cursor: pointer; }
.mf-dotsnav button[aria-current] { background: var(--fg-hi); width: 18px; border-radius: 4px; }
.mf-live { position: absolute; right: 10px; bottom: 10px; z-index: 2; font: 500 12px var(--font-mono); text-decoration: none; color: rgb(var(--bg-c)); background: var(--accent); padding: 7px 10px; border-radius: 8px; }
.mf[data-view="play"] .mf-live { display: none; }

/* build log */
.blog { list-style: none; margin: 0; padding: 0; position: relative; }
.blog::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--line), rgba(var(--ink-c),.18), var(--line)); }
.blog li { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 9px 0 9px 24px; }
.blog li::before { content: ""; position: absolute; left: 1px; top: 15px; width: 9px; height: 9px; border-radius: 50%; background: rgb(var(--bg-c)); border: 1px solid rgba(var(--ink-c),.35); }
.blog li:last-child::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 10px var(--accent); }
.blog time { font: 500 12px var(--font-mono); color: var(--muted); }
.blog .rel { font: 500 12px var(--font-mono); color: var(--accent); text-align: right; }
.blog .what { grid-column: 1 / -1; font-size: 15px; color: var(--fg); }
.stamp { display: inline-grid; gap: 2px; padding: 12px 16px; border-radius: 14px; border: 1px solid rgba(var(--acc-c),.35); background: rgba(var(--acc-c),.06); }
.stamp b { font: 500 clamp(26px, 3vw, 36px)/1 var(--font-mono); color: var(--accent); letter-spacing: -.02em; }
.stamp span { font: 500 11px var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* decisions */
.dec { display: grid; gap: 12px; padding: 22px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.dec header { display: flex; justify-content: space-between; font: 500 11px var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.dec .who { display: block; font: 500 11px var(--font-mono); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.dec p { margin: 0; font-size: 15.5px; line-height: 1.5; }
.dec-agent { padding: 12px 14px; border-radius: 12px; background: rgba(255,90,70,.06); border: 1px dashed rgba(255,110,90,.35); }
.dec-agent .who { color: #ff8a75; } .dec-agent p { color: var(--fg2); text-decoration: line-through; text-decoration-color: rgba(255,110,90,.6); text-decoration-thickness: 1px; }
.dec-me { padding: 12px 14px; border-radius: 12px; background: rgba(var(--acc-c),.06); border: 1px solid rgba(var(--acc-c),.35); }
.dec-me .who { color: var(--accent); } .dec-me p { color: var(--fg); }
.dec-why .who { color: var(--muted); } .dec-why p { color: var(--fg2); }
.dec footer { font: 500 12px var(--font-mono); color: #9fb4ff; }

/* loop */
.loop { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: l; }
@media (min-width: 900px) { .loop { grid-template-columns: repeat(5, 1fr); } }
.loop li { position: relative; padding: 18px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); display: grid; gap: 6px; align-content: start; }
.loop .n { font: 500 12px var(--font-mono); color: var(--muted); }
.loop b { font: 600 17px var(--font-display); }
.loop p { margin: 0; font-size: 14px; color: var(--fg2); line-height: 1.5; }
.loop small { font: 500 11px var(--font-mono); color: var(--muted); margin-top: 4px; }
.loop li.is-figma { border-color: rgba(162,89,255,.55); box-shadow: 0 0 0 1px rgba(162,89,255,.25), 0 20px 50px -30px rgba(162,89,255,.6); }
.loop li.is-figma .n::after { content: " · Figma"; color: var(--figma); }
@media (min-width: 900px) { .loop li:not(:last-child)::after { content: "→"; position: absolute; right: -10px; top: 18px; z-index: 2; color: var(--muted); font: 500 14px var(--font-mono); } }

/* tools */
.tools { display: grid; gap: 16px; }
@media (min-width: 760px) { .tools { grid-template-columns: repeat(2, 1fr); } }
.tool { border-radius: 18px; overflow: hidden; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); display: flex; flex-direction: column; }
.tool figure { margin: 0; aspect-ratio: 16/10; overflow: hidden; background: rgb(var(--surf-c)); }
.tool figure img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); display: block; }
.tool-body { padding: 16px 18px 20px; display: grid; gap: 8px; }
.tool-cmd { font: 500 12px var(--font-mono); color: var(--accent); } .tool-cmd span { color: var(--muted); }
.tool h3 { margin: 0; font: 600 20px var(--font-display); letter-spacing: -.01em; }
.tool p { margin: 0; font-size: 14.5px; color: var(--fg2); line-height: 1.5; }
.tool .killed b { color: #ff8a75; font-weight: 600; }
.tool small { font: 500 11px var(--font-mono); color: var(--muted); }

/* client work */
.wgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.wcard { position: relative; display: grid; text-decoration: none; border-radius: 16px; overflow: hidden; background: var(--card); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .25s; }
.wcard:hover { transform: translateY(-3px); border-color: rgba(var(--ink-c),.22); }
.wcard-img { aspect-ratio: 16/10; overflow: hidden; background: var(--p-accent); }
.wcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.wcard:hover .wcard-img img { transform: scale(1.04); }
.wcard img[src*="groupama"] { object-position: 50% 0; }
.wcard-body { padding: 14px 16px 16px; display: grid; gap: 4px; }
.wcard .meta { display: flex; justify-content: space-between; font: 500 11px var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.wcard h3 { margin: 0; font: 600 19px/1.2 var(--font-display); letter-spacing: -.01em; }
.wcard p { margin: 0; color: var(--muted); font-size: 14px; }
.arow { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .25s, background .25s; }
.arow:hover { padding-left: 12px; background: rgba(var(--ink-c),.025); }
.arow b { font: 500 17px var(--font-display); } .arow span { color: var(--muted); font-size: 14px; } .arow small { font: 500 12px var(--font-mono); color: var(--muted); grid-row: span 2; }

/* variant switcher */
.vswitch { position: fixed; z-index: 40; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 12px; background: rgba(var(--bg-c),.86); border: 1px solid rgba(var(--ink-c),.14); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font: 500 12px var(--font-mono); box-shadow: 0 20px 40px -20px #000; max-width: calc(100vw - 24px); overflow-x: auto; }
.vswitch span { color: var(--muted); padding: 0 8px; white-space: nowrap; }
.vswitch a { text-decoration: none; color: var(--fg2); padding: 7px 10px; border-radius: 8px; white-space: nowrap; }
.vswitch a[aria-current] { background: var(--fg); color: rgb(var(--bg-c)); }
@media (max-width: 600px) { .vswitch span { display: none; } }

.mf-play-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bg) center / cover no-repeat; opacity: .28; filter: blur(2px) saturate(.8); transform: scale(1.03); }
.mf-play-cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(closest-side, rgba(var(--bg-c),.75), rgba(var(--bg-c),.2)); }
.mf-play-cta small { color: var(--fg2); }
.chap, .theatre, .acts, .act { grid-template-columns: minmax(0, 1fr); }
.mf { min-width: 0; max-width: 100%; }
.mf-url { min-width: 0; flex: 1; }

.mf [data-pane="watch"] { position: relative; }
.mf-chaps { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px 14px; justify-content: center; }
.mf-chaps button { display: inline-flex; align-items: center; gap: 7px; font: 500 12px var(--font-body); color: var(--fg2); background: rgba(var(--ink-c),.04); border: 1px solid var(--line); border-radius: 999px; padding: 6px 11px 6px 6px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.mf-chaps button span { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font: 500 10px var(--font-mono); background: rgba(var(--ink-c),.08); }
.mf-chaps button:hover { color: var(--fg-hi); border-color: rgba(var(--ink-c),.25); }
.mf-chaps button[aria-current] { color: rgb(var(--bg-c)); background: var(--accent); border-color: transparent; }
.mf-chaps button[aria-current] span { background: rgba(0,0,0,.12); }

/* iPhone frame — bezel and screen corners scale with the phone's width (container units) */
.mf-vid { display: none; } .mf-vid.on { display: block; }
.iphone { container-type: inline-size; position: relative; width: min(320px, 82%, calc((72vh - 40px) * .455)); margin: 22px auto 6px; padding: 7px; border-radius: 17% / 7.9%; background: linear-gradient(145deg, #3a3b40, #17181b 40%, #0e0f11 60%, #2c2d31); box-shadow: inset 0 0 0 2px #08090a, inset 0 0 0 4px rgb(var(--surf2-c)), 0 0 0 1px rgba(var(--ink-c),.14), 0 40px 70px -30px rgba(0,0,0,.9); }
.iphone-screen { position: relative; border-radius: 14cqw; overflow: hidden; background: #000; isolation: isolate; }
.iphone-screen video, .mf .iphone-screen video { display: block; width: 100%; height: auto; max-height: none; margin: 0; border-radius: 0; box-shadow: none; object-fit: cover; background: #000; }
.iphone .ib { position: absolute; width: 1.1cqw; border-radius: 1cqw; background: linear-gradient(90deg, rgb(var(--surf2-c)), rgb(var(--surf2-c))); }
.iphone .ib-a { left: -1cqw; top: 17%; height: 5%; } .iphone .ib-b { left: -1cqw; top: 25%; height: 9.5%; } .iphone .ib-c { left: -1cqw; top: 36%; height: 9.5%; } .iphone .ib-p { right: -1cqw; top: 27%; height: 14%; }
.mf-vtoggle { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; width: max-content; margin: 16px auto 0; padding: 4px; border-radius: 12px; background: rgba(var(--ink-c),.05); border: 1px solid var(--line); --i: 0; }
.mf-vtoggle button { position: relative; z-index: 1; border: 0; background: none; color: var(--muted); font: 500 13px var(--font-body); padding: 7px 18px; border-radius: 8px; cursor: pointer; transition: color .25s; }
.mf-vtoggle button[aria-selected="true"] { color: rgb(var(--bg-c)); }
.mf-vthumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 2); border-radius: 8px; background: var(--accent); transform: translateX(calc(var(--i) * 100%)); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.stage-item .iphone { width: min(300px, calc((100vh - 330px) * .455)); }

/* complex design decisions */
.ddc { display: grid; gap: 20px; padding: clamp(18px, 2.4vw, 28px); border-radius: 20px; background: rgba(var(--bg-c),.84); border: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
@media (min-width: 1000px) { .ddc:has(.ddc-fig) { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: start; } }
.ddc-main { display: grid; gap: 14px; min-width: 0; }
.ddc-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; }
.ddc-tag { font: 500 11px var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: rgb(var(--bg-c)); background: var(--accent); padding: 5px 9px; border-radius: 6px; }
.ddc-meta { font: 500 11px var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.ddc h3 { margin: 0; font: 400 clamp(28px, 3vw, 40px)/1.05 var(--serif); letter-spacing: -.01em; }
.ddc-ctx { margin: 0; color: var(--fg); font-size: 16px; line-height: 1.6; }
.ddc-opts { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.ddc-opts li { display: grid; grid-template-columns: 26px 1fr auto auto; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px dashed rgba(var(--ink-c),.14); color: var(--fg2); font-size: 14.5px; line-height: 1.45; }
.ddc-opts li.is-chosen { border-style: solid; border-color: rgba(var(--acc-c),.55); background: rgba(var(--acc-c),.08); color: var(--fg); }
.ddc-k { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font: 500 11px var(--font-mono); background: rgba(var(--ink-c),.06); color: var(--muted); }
.is-chosen .ddc-k { background: var(--accent); color: rgb(var(--bg-c)); }
.ddc-opts em { font: 500 10px var(--font-mono); font-style: normal; text-transform: uppercase; letter-spacing: .06em; padding: 3px 6px; border-radius: 5px; white-space: nowrap; }
.ddc-ai { color: var(--fg2); border: 1px solid rgba(var(--ink-c),.18); }
.ddc-ok { color: rgb(var(--bg-c)); background: var(--accent); }
@media (max-width: 560px) { .ddc-opts li { grid-template-columns: 22px 1fr; } .ddc-opts em { grid-column: 2; justify-self: start; } }
.ddc-row { display: grid; gap: 4px; }
@media (min-width: 700px) { .ddc-row { grid-template-columns: 96px 1fr; gap: 14px; } }
.ddc-row span { font: 500 11px var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding-top: 4px; }
.ddc-row p { margin: 0; color: var(--fg); font-size: 15px; line-height: 1.6; }
.ddc-out p { color: var(--accent); font-family: var(--font-mono); font-size: 13px; }
.ddc-fig { margin: 0; border-radius: 14px; overflow: hidden; background: rgb(var(--surf-c)); border: 1px solid var(--line); }
.ddc-fig img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: contain; cursor: zoom-in; }
.ddcs { display: grid; gap: 18px; }
.quick { margin-top: 40px; }
.quick summary { cursor: pointer; font: 500 12px var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); list-style: none; padding: 8px 0; }
.quick summary::before { content: "▸ "; } .quick[open] summary::before { content: "▾ "; }
.quick .decs { margin-top: 12px; }

/* figma plugin illustration */
.tool-illus { position: relative; display: grid !important; grid-template-columns: 1fr 1fr; gap: 12px; padding: 18px; align-items: center; background: radial-gradient(120% 90% at 0% 0%, rgba(162,89,255,.18), transparent 60%), #0e0f12 !important; }
.ti-panel { display: grid; gap: 8px; padding: 10px; border-radius: 10px; background: #1e1f23; border: 1px solid rgba(var(--ink-c),.1); font: 500 10px var(--font-body); color: var(--fg2); }
.ti-bar { display: flex; align-items: center; gap: 6px; font-weight: 600; } .ti-bar i { width: 8px; height: 8px; border-radius: 2px; background: #a259ff; }
.ti-sw { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; border-radius: 6px; background: rgba(var(--ink-c),.06); }
.ti-sw span { text-align: center; padding: 4px 0; border-radius: 4px; color: var(--muted); } .ti-sw span.on { background: #fff; color: #002157; }
.ti-tok { grid-template-columns: repeat(4, 1fr); background: none; padding: 0; } .ti-tok b { height: 14px; border-radius: 3px; background: var(--c); }
.ti-panel small { text-align: center; padding: 5px; border-radius: 5px; background: #0d99ff; color: #fff; font-size: 9px; }
.ti-card { display: grid; gap: 6px; padding: 12px; border-radius: 10px; background: #fff; border-top: 6px solid #002157; }
.ti-t { height: 10px; width: 70%; border-radius: 3px; background: #002157; } .ti-l { height: 6px; border-radius: 3px; background: #d8dce6; } .ti-l.s { width: 60%; }
.ti-btn { height: 14px; width: 55%; border-radius: 7px; background: #e4002b; margin-top: 4px; }
.tool-illus figcaption { position: absolute; right: 10px; bottom: 8px; font: 500 10px var(--font-mono); color: var(--muted); }
.tool figure img { cursor: zoom-in; }
/* timeline line: segment from each dot's centre to the next — centred, first dot to last */
.blog::before { display: none; }
.blog li::after { content: ""; position: absolute; left: 5px; top: 20px; height: 100%; width: 1px; background: rgba(var(--ink-c),.16); }
.blog li:last-child::after { display: none; }
.blog li::before { z-index: 1; }
/* pixel-exact: 10px dots centred at x=6, 1px line spanning 5.5–6.5 */
.blog li::before { left: 1px; top: 15px; width: 10px; height: 10px; }
.blog li::after { left: 5.5px; top: 20px; }
/* pseudo-elements don't inherit the global border-box rule — make the dot's 1px border count inside its 10px */
.blog li::before, .blog li::after { box-sizing: border-box; }
