/* ================= themes ================= */
:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --bg-2: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #48484c;
  --ink-3: #6e6e73;
  --faint: #a1a1a6;
  --line: #d2d2d7;
  --wall: url("assets/w1.webp");
  --hero-wash: linear-gradient(180deg, rgba(245, 245, 247, .55) 0%, rgba(245, 245, 247, 0) 30%, rgba(245, 245, 247, 0) 55%, rgba(245, 245, 247, .82) 100%);
  --g1: rgba(255, 255, 255, .55);
  --g2: rgba(255, 255, 255, .2);
  --g-border: rgba(255, 255, 255, .6);
  --g-hi: rgba(255, 255, 255, .95);
  --g-lo: rgba(255, 255, 255, .4);
  --g-shadow: rgba(16, 24, 64, .38);
  --nav-bg: linear-gradient(135deg, rgba(255, 255, 255, .74), rgba(255, 255, 255, .52));
  --panel-a: rgba(255, 255, 255, .78);
  --panel-b: rgba(255, 255, 255, .5);
  --panel-rim: rgba(255, 255, 255, .7);
  --chip-bg: rgba(255, 255, 255, .55);
  --blue: #0071e3;
  --blue-hi: #0a84ff;
  --flag: #ff453a;
  --ok: #1f9d55;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.6, 0, .2, 1);
  --spring: cubic-bezier(.2, .8, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #000000;
    --bg-2: #0d0d10;
    --ink: #f5f5f7;
    --ink-2: #c4c4c9;
    --ink-3: #a1a1a6;
    --faint: #6e6e73;
    --line: #2c2c30;
    --wall: url("assets/w2.webp");
    --hero-wash: linear-gradient(180deg, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, .85) 100%);
    --g1: rgba(36, 36, 44, .66);
    --g2: rgba(16, 16, 22, .5);
    --g-border: rgba(255, 255, 255, .18);
    --g-hi: rgba(255, 255, 255, .35);
    --g-lo: rgba(255, 255, 255, .1);
    --g-shadow: rgba(0, 0, 0, .7);
    --nav-bg: linear-gradient(135deg, rgba(44, 44, 50, .66), rgba(24, 24, 28, .5));
    --panel-a: rgba(14, 14, 20, .74);
    --panel-b: rgba(8, 8, 12, .6);
    --panel-rim: rgba(255, 255, 255, .16);
    --chip-bg: rgba(255, 255, 255, .08);
    --blue-hi: #3d9bff;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --bg-2: #0d0d10;
  --ink: #f5f5f7;
  --ink-2: #c4c4c9;
  --ink-3: #a1a1a6;
  --faint: #6e6e73;
  --line: #2c2c30;
  --wall: url("assets/w2.webp");
  --hero-wash: linear-gradient(180deg, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, .85) 100%);
  --g1: rgba(36, 36, 44, .66);
  --g2: rgba(16, 16, 22, .5);
  --g-border: rgba(255, 255, 255, .18);
  --g-hi: rgba(255, 255, 255, .35);
  --g-lo: rgba(255, 255, 255, .1);
  --g-shadow: rgba(0, 0, 0, .7);
  --nav-bg: linear-gradient(135deg, rgba(44, 44, 50, .66), rgba(24, 24, 28, .5));
  --panel-a: rgba(14, 14, 20, .74);
  --panel-b: rgba(8, 8, 12, .6);
    --panel-rim: rgba(255, 255, 255, .16);
    --chip-bg: rgba(255, 255, 255, .08);
  --blue-hi: #3d9bff;
}
.theme-anim, .theme-anim * { transition: background-color .6s ease, color .6s ease, border-color .6s ease !important; }

/* ================= base ================= */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--font); letter-spacing: -.011em; -webkit-font-smoothing: antialiased; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 3px solid var(--blue-hi); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--bg-2); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 40; }
.skip:focus { left: 8px; }
h1, h2 { font-weight: 700; }
h2 { font-size: clamp(38px, 5.4vw, 80px); line-height: 1.02; letter-spacing: -.045em; }
h3 { font-size: clamp(20px, 1.7vw, 24px); line-height: 1.2; font-weight: 600; letter-spacing: -.025em; }
p { color: var(--ink-2); }

/* ================= liquid glass ================= */
.lg {
  --mx: 30%; --my: 0%;
  position: relative; isolation: isolate;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  -webkit-backdrop-filter: blur(18px) saturate(1.9);
  backdrop-filter: blur(18px) saturate(1.9);
  backdrop-filter: blur(5px) saturate(1.9) url(#lg);
  border: 1px solid var(--g-border);
  box-shadow: inset 0 1.5px 0 var(--g-hi), inset 0 -1px 0 var(--g-lo), inset 1px 0 0 var(--g-lo), 0 1px 2px rgba(16, 24, 64, .06), 0 24px 60px -26px var(--g-shadow);
}
.lg::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 255, 255, .55), transparent 45%), linear-gradient(180deg, rgba(255, 255, 255, .25), transparent 38%);
  mix-blend-mode: soft-light;
}
.lg::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; padding: 1.5px;
  background: linear-gradient(140deg, var(--g-hi), rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, 0) 65%, var(--g-lo));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

/* ================= header ================= */
.top {
  position: fixed; z-index: 20; top: 14px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 2 * var(--gutter) + 40px); max-width: 1320px;
  display: flex; align-items: center; gap: 18px; padding: 8px 8px 8px 22px; border-radius: 999px;
  color: var(--ink); border: 1px solid transparent;
  transition: width .8s var(--spring), background-color .5s ease, border-color .5s ease, box-shadow .5s ease;
}
.top.docked {
  width: min(760px, calc(100% - 24px));
  background: var(--nav-bg); border-color: var(--g-border);
  -webkit-backdrop-filter: blur(24px) saturate(2); backdrop-filter: blur(24px) saturate(2);
  box-shadow: inset 0 1.5px 0 var(--g-hi), inset 0 -1px 0 var(--g-lo), 0 18px 40px -18px var(--g-shadow);
}
.mark { font-weight: 700; font-size: 18px; letter-spacing: -.03em; text-decoration: none; }
.mark { display: inline-flex; align-items: center; gap: 9px; }
.mark img { display: block; border-radius: 7px; }
.top-nav { display: flex; gap: 24px; margin-left: auto; font-size: 14px; font-weight: 500; }
.top-nav a { text-decoration: none; opacity: .85; }
.top-nav a:hover { opacity: 1; }
.theme-toggle { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--ink); background: var(--g1); border: 1px solid var(--g-border); box-shadow: inset 0 1px 0 var(--g-hi); transition: transform .4s var(--spring); }
.theme-toggle:hover { transform: rotate(-20deg) scale(1.06); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; grid-area: 1 / 1; transition: opacity .3s ease, transform .5s var(--spring); }
.theme-toggle .i-moon { fill: currentColor; stroke: none; }
.theme-toggle .i-sun { opacity: 0; transform: rotate(-90deg) scale(.5); }
:root[data-theme="dark"] .theme-toggle .i-sun { opacity: 1; transform: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { opacity: 0; transform: rotate(90deg) scale(.5); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { opacity: 1; transform: none; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { opacity: 0; transform: rotate(90deg) scale(.5); }
}

/* ================= buttons ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; position: relative;
  font: 600 17px/1 var(--font); letter-spacing: -.015em; padding: 18px 28px; border-radius: 999px; text-decoration: none;
  transform: translate3d(var(--bx, 0px), var(--by, 0px), 0) scale(var(--bs, 1));
  transition: transform .4s var(--spring), background-color .2s ease, box-shadow .3s ease;
}
.btn:hover { --bs: 1.03; }
.btn:active { --bs: .97; }
.btn-blue { background: var(--blue); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 30px -10px rgba(0, 113, 227, .7); }
.btn-blue:hover { background: var(--blue-hi); }
.btn-glass { color: var(--ink); }
.btn-small { font-size: 14px; padding: 11px 17px; }
.btn-big { font-size: 19px; padding: 22px 36px; }

/* ================= 1. hero ================= */
.hero { height: 300vh; position: relative; }
.stage { --hp: 0; position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; z-index: -2; inset: -6%; background: var(--wall) center / cover; transform: scale(calc(1 + var(--hp) * .18)) rotate(calc(var(--hp) * -4deg)); animation: drift 24s ease-in-out infinite alternate; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: var(--hero-wash); }
@keyframes drift { from { translate: -1.5% -1%; } to { translate: 1.5% 1%; } }
.objects { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.obj { position: absolute; display: block; will-change: transform; }
.obj img { width: 100%; height: auto; animation: bob 7s ease-in-out infinite alternate; filter: drop-shadow(0 40px 50px rgba(16, 24, 64, .22)); }
.o-phone { width: min(30vw, 470px); right: 17vw; top: 9vh; }
.o-browser { width: min(30vw, 470px); right: -3vw; top: -2vh; }
.o-chart { width: min(17vw, 260px); right: 44vw; top: 6vh; }
.o-bag { width: min(16vw, 250px); right: 2vw; top: 48vh; }
.o-browser img { animation-duration: 9s; animation-delay: -3s; }
.o-chart img { animation-duration: 6s; animation-delay: -1s; }
.o-bag img { animation-duration: 8s; animation-delay: -5s; }
@keyframes bob { from { transform: translateY(-10px) rotate(-1.5deg); } to { transform: translateY(12px) rotate(1.5deg); } }
.bloom { position: absolute; inset: 0; background: var(--bg); opacity: 0; pointer-events: none; }
.beat { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(70px, 11vh, 130px); will-change: opacity, transform; }
h1 { font-size: clamp(54px, 9.2vw, 152px); line-height: .9; letter-spacing: -.06em; color: var(--ink); }
.sheen { background: linear-gradient(100deg, #2f8bff 0%, #0a63e0 35%, #ff6a00 72%, #ff9a3c 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .04em; }
.build .line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.build .line > span { display: block; transform: translateY(110%); animation: rise 1.1s var(--spring) forwards; }
.build .line:nth-child(2) > span { animation-delay: .12s; }
@keyframes rise { to { transform: none; } }
.lede { max-width: 30em; margin-top: 26px; font-size: clamp(17px, 1.4vw, 21px); color: var(--ink-2); font-weight: 500; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.beat-2, .beat-3 { font-size: clamp(36px, 5.6vw, 88px); font-weight: 700; line-height: 1; letter-spacing: -.05em; max-width: 12em; color: var(--ink); opacity: 0; pointer-events: none; }
.cue { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; font-size: 12px; font-weight: 500; color: var(--ink-3); }
.cue i { width: 22px; height: 36px; border-radius: 999px; border: 1.5px solid currentColor; position: relative; }
.cue i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: currentColor; animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 0; } 25% { opacity: 1; } 80% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ================= shared phone ================= */
.phone { position: relative; width: 300px; aspect-ratio: 300 / 600; border-radius: 44px; background: #fbfbfd; border: 7px solid #1d1d1f; overflow: hidden; color: #1d1d1f; font: 400 13px/1.4 var(--font); box-shadow: 0 0 0 1px rgba(255, 255, 255, .4), 0 50px 90px -40px rgba(10, 16, 40, .55); }
.phone p { color: inherit; }
.phone .nav { display: flex; justify-content: space-between; padding: 16px 18px 10px; font-weight: 600; font-size: 15px; }
.phone .nav i { width: 18px; height: 9px; border-top: 2px solid; border-bottom: 2px solid; }
.phone .shot { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: #dfe6ec; }
.phone .info { padding: 14px 18px; }
.phone .name { font-weight: 600; font-size: 19px; }
.phone .price { margin: 2px 0 12px; color: #515154; }
.phone .buy { display: block; text-align: center; padding: 14px; border-radius: 999px; font-weight: 600; font-size: 14px; color: #fff; background: var(--blue); }
.phone .fine { margin-top: 10px; font-size: 11px; color: #6e6e73; }
.phone .pop { position: absolute; left: 8%; right: 8%; top: 20%; padding: 24px 16px; border-radius: 14px; text-align: center; background: #ffe24a; box-shadow: 0 0 0 600px rgba(0, 0, 0, .42); font-weight: 600; font-size: 18px; line-height: 1.15; }
.phone .pop span { display: block; margin-top: 10px; height: 32px; border-radius: 8px; background: #fff; }
.rig-wrap { position: relative; justify-self: center; display: grid; place-items: center; }
.wash { position: absolute; width: 150%; aspect-ratio: 1; border-radius: 50%; background: var(--wall) center / cover; filter: blur(50px) saturate(1.3); opacity: .75; animation: breathe 14s ease-in-out infinite alternate; }
.wash-2 { background-position: 80% 40%; }
@keyframes breathe { from { transform: scale(.9) rotate(0deg); } to { transform: scale(1.08) rotate(25deg); } }

/* ================= 2. rebuild ================= */
.rebuild { height: 280vh; position: relative; background: var(--bg); }
.pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 24px; padding: 0 var(--gutter); overflow: hidden; }
.rebuild h2 { font-size: clamp(40px, 6.2vw, 96px); line-height: .96; max-width: 9em; }
.rebuild-copy > p { max-width: 28em; margin: 22px 0 28px; font-size: clamp(17px, 1.4vw, 20px); }
.fixes { display: inline-grid; gap: 12px; padding: 20px 26px 20px 22px; border-radius: 22px; }
.fixes li { position: relative; padding-left: 34px; font-weight: 500; color: var(--ink-3); transition: color .3s ease; }
.fixes li::before { content: ""; position: absolute; left: 0; top: .15em; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid currentColor; transition: background-color .3s ease, border-color .3s ease, transform .4s var(--spring); }
.fixes li::after { content: ""; position: absolute; left: 8px; top: calc(.15em + 4px); width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .4s var(--spring); }
.fixes li.done { color: var(--ink); }
.fixes li.done::before { background: var(--blue); border-color: var(--blue); transform: scale(1.08); }
.fixes li.done::after { transform: rotate(45deg) scale(1); }
.rig { --a: 0; --b: 0; --c: 0; position: relative; transform: translate3d(0, var(--lift, 0px), 0) rotate(var(--spin, 4deg)); }
.rig .pop { transform: translate(calc(var(--a) * 120%), calc(var(--a) * -90%)) rotate(calc(var(--a) * 24deg)); opacity: calc(1 - var(--a)); }
.rig .shot { transform-origin: 0 0; transform: scale(calc(.48 + .52 * var(--b))) translate(calc((1 - var(--b)) * 18px), calc((1 - var(--b)) * 6px)); filter: saturate(calc(.3 + .7 * var(--b))); }
.rig .info { transform: translateY(calc((1 - var(--c)) * 190px)); }

/* ================= wallpaper sections ================= */
.wall { position: relative; overflow: hidden; isolation: isolate; padding: clamp(100px, 13vw, 180px) var(--gutter); background: var(--bg); }
.wall-bg { position: absolute; z-index: -1; inset: -12% -4%; background: var(--wall) center / cover; translate: 0 var(--py, 0px); animation: pan 30s ease-in-out infinite alternate; }
.wall-soft .wall-bg { filter: blur(30px) saturate(1.2); opacity: .5; inset: -20%; }
@keyframes pan { from { transform: scale(1.04) translateX(-1.5%); } to { transform: scale(1.12) translateX(1.5%); } }
.head { max-width: 1320px; margin: 0 auto clamp(44px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: end; }
.head h2 { max-width: 10em; }
.head p { max-width: 26em; font-size: clamp(17px, 1.4vw, 20px); color: var(--ink); font-weight: 500; }
.card-grid { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.card { padding: 30px 26px 32px; border-radius: 30px; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--spring); }
.card svg { width: 52px; height: 52px; margin-bottom: 40px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card svg .hot { stroke: var(--blue-hi); }
.card svg .soft { opacity: .4; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 15.5px; }

/* ================= plain sections ================= */
.plain { padding: clamp(100px, 13vw, 180px) var(--gutter); background: var(--bg); }
.split { display: grid; gap: clamp(32px, 5vw, 80px); grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); max-width: 1320px; margin: 0 auto; align-items: start; }
.audit { display: grid; grid-template-columns: minmax(0, 1.1fr) auto; gap: clamp(32px, 7vw, 120px); align-items: center; justify-content: center; overflow: hidden; }
.audit h2 { max-width: 10em; }
.audit-copy > p { max-width: 30em; margin: 22px 0 30px; font-size: clamp(17px, 1.4vw, 19px); }
.notes { display: grid; gap: 10px; max-width: 30em; }
.note { padding: 16px 20px; border-radius: 20px; transition: box-shadow .4s ease; }
.note b { display: block; font-weight: 600; font-size: 18px; letter-spacing: -.02em; }
.note p { font-size: 15px; }
.note.on { box-shadow: inset 0 0 0 2px var(--ok), 0 24px 60px -26px var(--g-shadow); }
.rig3 { position: relative; margin: 0 26px; translate: 0 var(--py, 0px); }
.home { padding: 18px 18px 0; }
.swap, .home .buy { display: grid; }
.swap > *, .home .buy > * { grid-area: 1 / 1; transition: opacity .45s ease, transform .6s var(--spring); }
.hl { font-size: 28px; font-weight: 700; line-height: 1.05; letter-spacing: -.04em; min-height: 3.2em; }
.hl.old { color: #8e8e93; }
.home .new { opacity: 0; transform: translateY(10px); }
.home .buy { margin: 4px 0 12px; background: #636366; transition: background-color .45s ease; }
.proof { font-size: 12px; color: #515154; margin-bottom: 14px; opacity: 0; transform: translateY(8px); transition: opacity .45s ease, transform .6s var(--spring); }
.proof span { color: #e0a100; letter-spacing: 1px; margin-right: 4px; }
.home img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.load { position: absolute; left: 0; bottom: 0; height: 5px; width: 22%; background: var(--flag); transition: width .8s var(--ease), background-color .4s ease; }
.rig3.f1 .old { opacity: 0; transform: translateY(-10px); }
.rig3.f1 .new { opacity: 1; transform: none; }
.rig3.f1 .buy { background: var(--blue); }
.rig3.f2 .proof { opacity: 1; transform: none; }
.rig3.f3 .load { width: 100%; background: #30d158; }
.dot { position: absolute; z-index: 4; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; background: var(--flag); color: #fff; font: 600 18px/1 var(--font); animation: pulse 1.8s ease-out infinite; transition: transform .3s var(--spring); }
.dot:hover { transform: scale(1.1); }
.dot[aria-pressed="true"] { background: var(--ok); animation: none; }
.d1 { right: -23px; top: 17%; }
.d2 { left: -23px; top: 43%; }
.d3 { right: -23px; bottom: 6%; }
@keyframes pulse { from { box-shadow: 0 0 0 0 rgba(255, 69, 58, .6); } to { box-shadow: 0 0 0 22px rgba(255, 69, 58, 0); } }

/* ================= 5. services ================= */
.gallery { height: 420vh; position: relative; background: #0b1230; }
.gallery-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; padding: clamp(90px, 12vh, 130px) 0 clamp(28px, 5vh, 52px); }
.gallery-bg { position: absolute; z-index: -1; inset: -6% -20%; background: url("assets/w2.webp") center / cover; transform: translate3d(calc(var(--gp, 0) * -12%), 0, 0) scale(1.08); }
.gallery-head { display: flex; justify-content: space-between; align-items: end; padding: 0 var(--gutter) clamp(20px, 3.5vh, 40px); }
.gallery h2 { color: #fff; }
.count { font-size: clamp(20px, 2vw, 28px); font-weight: 600; color: rgba(255, 255, 255, .7); letter-spacing: -.02em; }
.count .cur { color: #fff; }
.track { display: flex; gap: clamp(16px, 2vw, 28px); padding: 0 var(--gutter); will-change: transform; height: 100%; }
.panel {
  --v: 0;
  flex: 0 0 min(62vw, 900px); height: 100%; border-radius: 30px;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: end; gap: clamp(16px, 3vw, 48px); padding: clamp(28px, 4vw, 56px);
  background: linear-gradient(160deg, var(--panel-a), var(--panel-b));
  -webkit-backdrop-filter: blur(30px) saturate(1.5); backdrop-filter: blur(30px) saturate(1.5);
  border: 1px solid var(--panel-rim);
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(calc(.93 + .07 * var(--v)));
  transition: transform .6s var(--spring);
}
/* a thin ring of light that travels around the edge */
.panel::after {
  padding: 1.2px;
  background: conic-gradient(from var(--spin-a, 0deg), transparent 0 55%, rgba(255, 255, 255, .9) 65%, rgba(120, 180, 255, .8) 72%, rgba(255, 160, 80, .8) 78%, transparent 88%);
  animation: rim 7s linear infinite;
  opacity: calc(.35 + .65 * var(--v));
}
@property --spin-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes rim { to { --spin-a: 360deg; } }
/* a band of light that crosses the glass as the card reaches the centre */
.sweep { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; z-index: 0; }
.sweep b { position: absolute; top: -20%; bottom: -20%; width: 32%; left: calc(-40% + 160% * var(--v)); transform: skewX(-18deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22), transparent); filter: blur(6px); }
.panel-copy { position: relative; z-index: 1; }
.panel h3 { font-size: clamp(34px, 4vw, 62px); font-weight: 700; line-height: .98; letter-spacing: -.05em; color: var(--ink); margin-bottom: 16px; }
.panel p { color: var(--ink-2); font-size: clamp(16px, 1.25vw, 18px); max-width: 24em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips li { font-size: 13px; font-weight: 600; letter-spacing: -.01em; padding: 8px 13px; border-radius: 999px; color: var(--ink); background: var(--chip-bg); border: 1px solid var(--panel-rim); box-shadow: inset 0 1px 0 var(--g-hi); }
/* the icon floats above the card and breaks out of its top edge */
.icon { position: relative; z-index: 1; align-self: start; justify-self: center; width: 100%; max-width: 380px; margin-top: calc(-1 * clamp(56px, 9vh, 110px)); translate: var(--shift, 0px) 0; }
.icon img { position: relative; width: 100%; height: auto; animation: float 6s ease-in-out infinite alternate; filter: drop-shadow(0 34px 34px rgba(0, 0, 0, .28)); }
.panel:nth-child(2n) .icon img { animation-delay: -3s; }
.halo { position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle, rgba(90, 160, 255, .55), rgba(255, 140, 60, .35) 45%, transparent 70%); filter: blur(30px); opacity: calc(.4 + .6 * var(--v)); }
@keyframes float { from { transform: translateY(-8px) rotate(-2deg); } to { transform: translateY(10px) rotate(2deg); } }
.progress { margin: clamp(20px, 3.5vh, 36px) var(--gutter) 0; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.progress i { display: block; height: 100%; width: 100%; border-radius: 4px; background: #fff; transform-origin: 0 0; transform: scaleX(0); }

/* ================= 6. how ================= */
.timeline { position: relative; padding-left: 56px; }
.timeline li { position: relative; padding: 0 0 clamp(44px, 6vw, 72px); }
.timeline li:last-of-type { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -56px; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line); transition: border-color .4s ease, background-color .4s ease, transform .5s var(--spring), box-shadow .4s ease; z-index: 1; }
.timeline li.lit::before { border-color: var(--blue); background: var(--blue); transform: scale(1.15); box-shadow: 0 0 0 7px rgba(0, 113, 227, .18); }
.timeline h3 { font-size: clamp(26px, 2.8vw, 40px); font-weight: 700; line-height: 1.05; letter-spacing: -.045em; margin-bottom: 12px; color: var(--faint); transition: color .4s ease; }
.timeline li.lit h3 { color: var(--ink); }
.timeline p { max-width: 30em; }
.rail { position: absolute; left: 10px; top: 14px; bottom: 14px; width: 2px; background: var(--line); }
.rail b { position: absolute; inset: 0; background: var(--blue); transform-origin: 0 0; transform: scaleY(0); }

/* ================= 7. faq ================= */
.faq { display: grid; gap: 12px; }
.faq details { border-radius: 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 22px 60px 22px 26px; position: relative; font-weight: 600; font-size: clamp(18px, 1.5vw, 20px); letter-spacing: -.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 28px; top: 50%; width: 10px; height: 10px; margin-top: -8px; border-right: 2px solid var(--blue-hi); border-bottom: 2px solid var(--blue-hi); transform: rotate(45deg); transition: transform .35s var(--spring); }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { padding: 0 26px 24px; }

/* ================= 8. close ================= */
.close { position: relative; overflow: hidden; isolation: isolate; padding: clamp(120px, 16vw, 220px) var(--gutter); display: grid; place-items: center; background: #0b1230; }
.close-bg { position: absolute; z-index: -1; inset: -10%; background: url("assets/w2.webp") center / cover; animation: pan 26s ease-in-out infinite alternate; }
.close-card { max-width: 980px; width: 100%; text-align: center; padding: clamp(44px, 7vw, 96px) clamp(24px, 5vw, 72px); border-radius: 48px; color: #fff;
  background: linear-gradient(135deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .06)); border-color: rgba(255, 255, 255, .3); }
.close h2 { color: #fff; max-width: 11em; margin: 0 auto 40px; font-size: clamp(40px, 6.4vw, 100px); line-height: .98; letter-spacing: -.055em; }
.close p { margin-top: 22px; color: rgba(255, 255, 255, .85); }
.foot { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; padding: 26px var(--gutter); background: var(--bg); border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
.foot .mark { color: var(--ink); }

/* ================= motion layer ================= */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.anim main h2 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.anim main h2 .w > span { display: inline-block; transform: translate3d(0, 105%, 0) rotate(5deg); transform-origin: 0 100%; transition: transform 1s var(--spring); transition-delay: calc(var(--i) * 50ms); }
.anim main h2.in .w > span { transform: none; }
.anim .rise { opacity: 0; translate: 0 50px; scale: .97; transition: opacity .9s ease, translate 1.1s var(--spring), scale 1.1s var(--spring); transition-delay: var(--d, 0s); }
.anim .rise.in { opacity: 1; translate: 0 0; scale: 1; }
.wall-bg[data-depth], .rig3[data-depth] { translate: 0 var(--py, 0px); }

/* ================= small screens ================= */
@media (max-width: 1080px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .split, .audit, .head { grid-template-columns: minmax(0, 1fr); }
  .top-nav, .cue { display: none; }
  .top { padding: 7px 7px 7px 18px; gap: 10px; }
  .theme-toggle { margin-left: auto; width: 36px; height: 36px; }
  .top.docked { width: calc(100% - 20px); }
  .o-phone { width: 64vw; right: 6vw; top: 9vh; }
  .o-browser { width: 62vw; right: 30vw; top: 6vh; }
  .o-chart { width: 30vw; right: 2vw; top: 36vh; }
  .o-bag { width: 26vw; right: 60vw; top: 33vh; }
  .beat { bottom: 40px; }
  .pin { grid-template-columns: minmax(0, 1fr); align-content: center; gap: 0; padding-top: 30px; }
  .rebuild h2 { font-size: clamp(34px, 9.5vw, 48px); }
  .rebuild-copy > p { margin: 10px 0 12px; font-size: 15px; }
  .fixes { gap: 4px; font-size: 14px; padding: 12px 16px; }
  .fixes li::before { width: 18px; height: 18px; }
  .fixes li::after { left: 6px; height: 8px; }
  .rig { transform: rotate(3deg) scale(.6); margin: -110px 0 -120px; }
  .rig3 { justify-self: center; transform: scale(.9); }
  .wash { width: 120%; }
  .gallery { height: auto; }
  .gallery-pin { position: relative; height: auto; display: block; padding: 100px 0 72px; }
  .gallery-bg { inset: 0; transform: none; }
  .track { display: grid; gap: 16px; height: auto; transform: none !important; }
  .panel { height: auto; grid-template-columns: minmax(0, 1fr); padding: 28px; margin-top: 56px; }
  .icon { order: -1; max-width: 62%; margin-top: -84px; }
  .count, .progress { display: none; }
  .timeline { padding-left: 44px; }
  .timeline li::before { left: -44px; }
  .close-card { border-radius: 32px; }
}
@media (max-width: 560px) { .card-grid { grid-template-columns: minmax(0, 1fr); } .card svg { margin-bottom: 24px; } }

/* ================= reduced motion ================= */
@media (prefers-reduced-motion: reduce) {
  .hero, .rebuild, .gallery { height: auto; }
  .hero .stage { position: relative; }
  .stage, .pin { position: relative; }
  .gallery-pin { position: relative; height: auto; display: block; padding: 100px 0 72px; }
  .track { display: grid; gap: 16px; transform: none !important; }
  .panel { height: auto; flex: none; }
  .progress, .count, .cue, .beat-2, .beat-3 { display: none; }
  .build .line > span { animation: none; transform: none; }
  .icon img, .panel::after, .obj img, .hero-bg, .dot, .wash, .wall-bg, .close-bg, .cue i::after { animation: none; }
  .rig { --a: 1; --b: 1; --c: 1; }
  .rail b { transform: none; }
  .timeline li::before { border-color: var(--blue); background: var(--blue); }
  .timeline h3 { color: var(--ink); }
  .wall-bg[data-depth], .rig3[data-depth] { translate: none; }
  .btn, .card, .panel, .theme-toggle, .fixes li::before, .fixes li::after, .swap > *, .home .buy > *, .proof, .load { transition: none; }
}

/* cards come alive as they reach the centre (--v goes 0 to 1) */
.panel h3 { translate: calc((1 - var(--v)) * 60px) 0; transition: translate .5s var(--spring); }
.panel p { translate: calc((1 - var(--v)) * 90px) 0; opacity: calc(.35 + .65 * var(--v)); transition: translate .5s var(--spring); }
.chips li { opacity: clamp(0, calc((var(--v) - .55) * 6), 1); translate: 0 calc((1 - clamp(0, calc((var(--v) - .55) * 6), 1)) * 18px); scale: calc(.85 + .15 * clamp(0, calc((var(--v) - .55) * 6), 1)); transition: opacity .35s ease, translate .5s var(--spring), scale .5s var(--spring); }
.chips li:nth-child(2) { transition-delay: .08s; }
.chips li:nth-child(3) { transition-delay: .16s; }
.icon { transform: perspective(900px) rotateY(calc((1 - var(--v)) * -28deg)) scale(calc(.82 + .18 * var(--v))); transition: transform .5s var(--spring); }
.panel:hover .icon img { animation-duration: 2.8s; }
@media (max-width: 860px) { .panel { --v: 1 !important; } }
@media (prefers-reduced-motion: reduce) { .panel { --v: 1 !important; } }

.panel-copy { grid-column: 1; grid-row: 1; }
.icon { grid-column: 2; grid-row: 1; }
@media (max-width: 860px) { .panel-copy, .icon { grid-column: auto; grid-row: auto; } }

/* ================= more motion ================= */
:root { interpolate-size: allow-keywords; }

/* floating glass objects that drift in other sections */
.float { position: absolute; z-index: 0; pointer-events: none; translate: 0 var(--fy, 0px); }
.float img { width: 100%; height: auto; animation: bob 7s ease-in-out infinite alternate; filter: drop-shadow(0 30px 30px rgba(0, 0, 0, .25)); }
.f-a { width: clamp(120px, 14vw, 220px); left: 6%; top: 12%; }
.f-b { width: clamp(110px, 12vw, 190px); right: 7%; bottom: 10%; }
.f-b img { animation-delay: -3s; animation-duration: 8s; }
.f-c { width: clamp(90px, 9vw, 150px); right: 12%; top: 8%; }
.f-c img { animation-delay: -5s; animation-duration: 6s; }
.f-d { width: clamp(110px, 11vw, 180px); right: 4%; top: 4%; z-index: -1; opacity: .85; }
.close-card { z-index: 1; }

/* problem cards: idle float, icons draw themselves in */
.card { animation: cardfloat 6s ease-in-out infinite alternate; }
.card:nth-child(2) { animation-delay: -1.5s; }
.card:nth-child(3) { animation-delay: -3s; }
.card:nth-child(4) { animation-delay: -4.5s; }
@keyframes cardfloat { from { top: -6px; } to { top: 6px; } }
.anim .card svg * { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s cubic-bezier(.6, 0, .2, 1) .35s; }
.anim .card.in svg * { stroke-dashoffset: 0; }
.card:hover svg { animation: wiggle .6s var(--spring); }
@keyframes wiggle { 30% { transform: rotate(-8deg) scale(1.08); } 60% { transform: rotate(6deg) scale(1.04); } }

/* timeline: a glowing orb rides the tip of the line */
.rail .orb { position: absolute; left: 50%; top: calc(var(--fill, 0) * 100%); width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(0, 113, 227, .35), 0 0 24px 6px rgba(10, 132, 255, .7); opacity: calc(min(1, var(--fill, 0) * 8)); }
.timeline li.lit h3 { animation: pop .7s var(--spring); }
@keyframes pop { 0% { transform: translateX(-12px); } 100% { transform: none; } }

/* faq: answers slide open */
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size .5s var(--spring), content-visibility .5s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq details[open] p { animation: fadeup .5s var(--spring); }
@keyframes fadeup { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.faq summary { transition: padding-left .35s var(--spring); }
.faq summary:hover { padding-left: 32px; }

/* blue buttons: a light sheen passes over them every few seconds */
.btn-blue { overflow: hidden; }
.btn-blue::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); animation: shine 4.5s ease-in-out infinite; }
@keyframes shine { 0%, 60% { left: -60%; } 85%, 100% { left: 130%; } }

/* close card tilts toward the pointer */
.close-card { transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--spring); }

/* audit phone gently tilts while the demo plays */
.rig3 .phone { transition: transform .8s var(--spring); }
.rig3.f1 .phone { transform: rotate(-2deg); }
.rig3.f2 .phone { transform: rotate(1.5deg); }
.rig3.f3 .phone { transform: rotate(0deg) scale(1.02); }

@media (max-width: 860px) {
  .f-a, .f-c { display: none; }
  .f-b { width: 110px; right: 4%; bottom: 3%; }
  .f-d { width: 100px; top: 1%; }
}
@media (prefers-reduced-motion: reduce) {
  .float img, .card, .btn-blue::after, .card:hover svg { animation: none; }
  .anim .card svg * { stroke-dashoffset: 0; transition: none; }
  .faq details::details-content { transition: none; }
}

/* per-service button on each card */
.ask { position: relative; display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 12px 18px 12px 20px; border-radius: 999px; font-weight: 600; font-size: 15px; letter-spacing: -.015em; text-decoration: none; color: #fff; background: var(--blue); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 24px -10px rgba(0, 113, 227, .7); transition: background-color .2s ease, transform .4s var(--spring); opacity: clamp(0, calc((var(--v) - .7) * 5), 1); translate: 0 calc((1 - clamp(0, calc((var(--v) - .7) * 5), 1)) * 14px); }
.ask:hover { background: var(--blue-hi); transform: scale(1.04); }
.ask span { width: 8px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); transition: translate .3s var(--spring); }
.ask:hover span { translate: 3px 0; }
.chips { margin-top: 18px; }
