/* Velaris VLR-01: dark studio, quiet luxury. Animate only transform + opacity. */
@font-face { font-family: "Sora"; src: url(../assets/fonts/sora-latin.woff2) format("woff2"); font-weight: 500 800; font-display: swap; }
@font-face { font-family: "Manrope"; src: url(../assets/fonts/manrope-latin.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
/* metric-matched fallbacks: no layout shift when the web fonts arrive */
@font-face { font-family: "Sora-fb"; src: local("Arial"); size-adjust: 112%; ascent-override: 92%; descent-override: 26%; }
@font-face { font-family: "Manrope-fb"; src: local("Arial"); size-adjust: 103%; ascent-override: 102%; descent-override: 29%; }

:root {
  --bg: #0a0a0c; --bg-2: #0f0f13; --panel: #141419; --panel-2: #1b1b22;
  --line: rgba(240, 236, 255, .09); --line-2: rgba(240, 236, 255, .16);
  --ink: #f4f2f8; --ink-2: rgba(244, 242, 248, .72); --mute: rgba(244, 242, 248, .5);
  --vio: #8b6bff; --vio-2: #b9a6ff; --vio-3: #ece4ff;
  --d: "Sora", "Sora-fb", system-ui, sans-serif; --b: "Manrope", "Manrope-fb", system-ui, sans-serif;
  --g: 16px; --hdr: 64px; --r: 18px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
@media (min-width: 761px) { :root { --g: 32px; --hdr: 72px; } }
@media (min-width: 1200px) { :root { --g: 56px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--b); overflow-x: clip; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
@media (min-width: 761px) { body { font-size: 17px; } }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
em { font-style: normal; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--vio-2); outline-offset: 3px; border-radius: 8px; }
.wrap { padding-left: var(--g); padding-right: var(--g); max-width: 1480px; margin: 0 auto; }
.label { font: 600 12px/1 var(--b); letter-spacing: .2em; text-transform: uppercase; color: var(--vio-2); }
.h2 { font: 700 clamp(32px, 4.6vw, 64px)/1.04 var(--d); letter-spacing: -.035em; margin-top: 18px; text-wrap: balance; }
.lead { color: var(--ink-2); font-size: clamp(16px, 1.25vw, 19px); max-width: 56ch; margin-top: 20px; text-wrap: pretty; }

/* ---------- 3D canvas: one fixed layer behind the page ---------- */
#gl { position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh; z-index: 0; display: block; opacity: 0; transition: opacity .6s linear; cursor: grab; }
#gl:active, .grabbing, .grabbing * { cursor: grabbing !important; }
#gl.on { opacity: 1; }
.no-webgl #gl { display: none; }
main, .ftr { position: relative; z-index: 1; }
/* stage sections let pointer events fall through to the canvas (main itself too, or it would catch them) */
main { pointer-events: none; }
main > :not(.stage) { pointer-events: auto; }
.stage { pointer-events: none; position: relative; }
.stage a, .stage button, .stage input, .stage label, .stage .panel, .stage .hero-in, .stage .design-in { pointer-events: auto; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent; text-decoration: none; font: 700 15px/1 var(--b); letter-spacing: .01em; white-space: nowrap; transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn-light { background: var(--ink); color: #0b0b0e; }
.btn-light:hover { background: #fff; }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: rgba(10, 10, 12, .35); }
.btn-ghost:hover { border-color: rgba(244, 242, 248, .5); }
.btn-sm { height: 42px; padding: 0 18px; font-size: 14px; }
.btn-full { width: 100%; }

/* ---------- header ---------- */
.hdr { position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--hdr); display: flex; align-items: center; gap: 24px; padding: 0 var(--g); border-bottom: 1px solid transparent; transition: background-color .35s, border-color .35s; }
.hdr.solid { background: rgba(10, 10, 12, .92); border-color: var(--line); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 17px/1 var(--d); letter-spacing: .28em; }
.logo svg { width: 28px; height: 28px; }
.nav { display: none; gap: 30px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 14px; font-weight: 600; color: var(--ink-2); position: relative; padding: 8px 0; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.hdr > .btn { margin-left: auto; }
@media (min-width: 980px) { .nav { display: flex; } .hdr > .btn { margin-left: 8px; } }
@media (max-width: 400px) { .hide-xs { display: none; } }
.show-m { display: none; }
@media (max-width: 760px) { .show-m { display: inline; } }

/* ---------- hero ---------- */
.hero { height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; }
.poster { position: absolute; inset: 0; z-index: 0; transition: opacity .8s ease; }
.poster img { width: 100%; height: 100%; object-fit: cover; }
.poster.off { opacity: 0; }
.poster.gone { display: none; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(90deg, rgba(10,10,12,.72) 0%, rgba(10,10,12,.25) 38%, rgba(10,10,12,0) 60%), linear-gradient(0deg, rgba(10,10,12,.7) 0%, rgba(10,10,12,0) 26%); }
.hero-in { position: absolute; z-index: 2; left: var(--g); top: calc(var(--hdr) + 7vh); max-width: 620px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 600 12px/1 var(--b); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--vio); box-shadow: 0 0 0 4px rgba(139, 107, 255, .2); }
.hero-t { font: 700 clamp(42px, 5.6vw, 92px)/.98 var(--d); letter-spacing: -.045em; margin-top: 22px; }
.hero-t .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-t .ln > span { display: inline-block; animation: rise 1s var(--ease) both; }
.hero-t .ln:nth-child(2) > span { animation-delay: .08s; }
.hero-t em { background: linear-gradient(100deg, var(--vio-3), var(--vio) 80%); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes rise { from { transform: translateY(105%); } }
.hero-sub { color: var(--ink-2); font-size: clamp(16px, 1.3vw, 19px); max-width: 44ch; margin-top: 22px; animation: fade .9s .25s var(--ease) both; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; animation: fade .9s .35s var(--ease) both; }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } }
.hero-specs { position: absolute; z-index: 2; left: var(--g); right: var(--g); bottom: 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 760px; border-top: 1px solid var(--line-2); }
.hero-specs > div { padding: 16px 12px 0 0; }
.hero-specs dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); white-space: nowrap; }
.hero-specs dd { font: 600 clamp(20px, 2.2vw, 30px)/1.2 var(--d); letter-spacing: -.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.hero-specs small { font-size: .55em; color: var(--ink-2); font-weight: 500; letter-spacing: 0; }
.loader { position: absolute; z-index: 3; right: var(--g); bottom: 32px; width: 230px; justify-content: flex-end; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .08em; color: var(--ink-2); transition: opacity .5s; }
.loader svg { width: 26px; height: 26px; transform: rotate(-90deg); }
.loader circle { fill: none; stroke: rgba(244, 242, 248, .14); stroke-width: 2.4; }
.loader .loader-arc { stroke: var(--vio-2); stroke-linecap: round; stroke-dasharray: 94.25; stroke-dashoffset: 80; transition: stroke-dashoffset .3s; }
.loader.wait .loader-arc { animation: spin 1.1s linear infinite; transform-origin: 18px 18px; }
@keyframes spin { to { transform: rotate(360deg); } }
.loader.is-done { opacity: 0; }
.drag-hint { position: absolute; z-index: 2; right: var(--g); bottom: 34px; display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .08em; color: var(--ink-2); opacity: 0; transition: opacity .6s; }
.drag-hint svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.drag-hint.on { opacity: 1; }
.drag-hint { background: rgba(10,10,12,.72); padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); }
.hint-touch { display: none; }
@media (pointer: coarse) { .hint-fine { display: none; } .hint-touch { display: inline; } }
.conf-hint { position: absolute; z-index: 2; left: var(--g); right: auto; bottom: 32px; }
@media (max-width: 760px) { .conf-hint { position: absolute; top: 44%; bottom: auto; left: 50%; transform: translateX(-50%); white-space: nowrap; } }
@media (max-width: 760px) {
  .hero-in { top: calc(var(--hdr) + 3.5vh); right: var(--g); }
  .hero-t { margin-top: 16px; }
  .hero-sub { margin-top: 14px; font-size: 15.5px; max-width: 34ch; }
  .hero-cta { margin-top: 20px; }
  .hero-cta .btn { height: 46px; padding: 0 18px; font-size: 14px; }
  .hero::after { background: linear-gradient(180deg, rgba(10,10,12,.78) 0%, rgba(10,10,12,.2) 46%, rgba(10,10,12,0) 60%), linear-gradient(0deg, rgba(10,10,12,.85) 0%, rgba(10,10,12,0) 22%); }
  .hero-specs { bottom: 18px; }
  .hero-specs > div { padding: 12px 6px 0 0; }
  .hero-specs dt { font-size: 9.5px; letter-spacing: .08em; }
  .hero-specs dd { font-size: 19px; }
  .loader, .drag-hint { bottom: 104px; left: 50%; right: auto; transform: translateX(-50%); white-space: nowrap; }
  .loader { justify-content: center; }
  .hide-m { display: none; }
}
@media (max-width: 760px) and (max-height: 700px) { .hero-sub { display: none; } }

/* ---------- design (side profile) ---------- */
.design { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--hdr) + 24px) var(--g) 48px; }
.design-in { max-width: 470px; }
.mini { display: flex; gap: 28px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.mini dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.mini dd { font: 600 22px/1.2 var(--d); margin-top: 6px; letter-spacing: -.02em; }
@media (max-width: 760px) { .design { align-items: flex-start; } .design-in .lead { font-size: 15.5px; } .mini { gap: 18px; } .mini dd { font-size: 18px; } }

/* ---------- regular (opaque) sections ---------- */
.sec { background: var(--bg); padding: clamp(80px, 12vw, 160px) 0; }
.sec-head { max-width: 760px; }
.figures { border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), var(--bg) 40%); }
.nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 56px; border-top: 1px solid var(--line); }
.num { padding: 26px 16px 28px 0; border-bottom: 1px solid var(--line); }
.num b { display: flex; align-items: baseline; gap: 6px; font: 700 clamp(38px, 5.4vw, 84px)/1 var(--d); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.num .count { display: inline-block; }
.num small { font: 600 clamp(14px, 1.4vw, 20px)/1 var(--b); letter-spacing: 0; color: var(--vio-2); }
.num > span { display: block; color: var(--mute); font-size: 14px; margin-top: 12px; }
@media (min-width: 761px) { .nums { grid-template-columns: repeat(3, minmax(0, 1fr)); } .num { padding: 40px 24px 40px 0; } .num:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); } }
@media (max-width: 760px) { .num:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); } }

.cards { display: grid; gap: 16px; margin-top: 56px; }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.card { background: linear-gradient(160deg, var(--panel-2), var(--panel) 60%); border: 1px solid var(--line); border-radius: var(--r); padding: 30px 28px 26px; display: flex; flex-direction: column; transition: transform .45s var(--ease), border-color .3s; }
.card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.card .ico { width: 34px; height: 34px; fill: none; stroke: var(--vio-2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 36px; }
.card h3 { font: 600 24px/1.2 var(--d); letter-spacing: -.02em; margin-top: 12px; }
.card > p:not(.label) { color: var(--ink-2); margin-top: 12px; font-size: 15.5px; }
.card dl { margin-top: auto; padding-top: 26px; }
.card dl div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; }
.card dt { color: var(--mute); }
.card dd { font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- configurator (3D stage) ---------- */
.conf { min-height: 100vh; min-height: 100svh; display: grid; padding: calc(var(--hdr) + 28px) var(--g) 32px; grid-template-columns: minmax(0, 1fr) 400px; grid-template-rows: auto 1fr; gap: 0 40px; border-top: 1px solid var(--line); }
.conf-head { grid-column: 1; max-width: 520px; }
.conf-head .h2 { font-size: clamp(30px, 3.4vw, 50px); margin-top: 14px; }
.conf-sub { color: var(--ink-2); margin-top: 12px; font-size: 15px; max-width: 42ch; }
.conf-fallback { grid-column: 1; align-self: center; }
.conf-fallback img { border-radius: var(--r); }
.conf-fallback p { color: var(--ink-2); font-size: 14px; margin-top: 12px; }
.panel { grid-column: 2; grid-row: 1 / span 2; align-self: center; background: rgba(17, 17, 22, .94); border: 1px solid var(--line); border-radius: 22px; padding: 10px 10px 18px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8); }
.tabs { display: flex; gap: 2px; padding: 4px; background: rgba(255, 255, 255, .04); border-radius: 14px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: 1 0 auto; border: 0; background: none; color: var(--ink-2); font-size: 13px; font-weight: 700; padding: 10px 12px; border-radius: 10px; transition: background-color .2s, color .2s; }
.tabs button[aria-selected="true"] { background: var(--panel-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.panes { padding: 18px 8px 4px; min-height: 196px; }
.sw-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.sw { position: relative; width: 52px; height: 52px; justify-self: center; border-radius: 50%; border: 0; padding: 0; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); transition: transform .3s var(--ease); }
.sw::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.55), rgba(255,255,255,0) 42%), radial-gradient(circle at 70% 80%, rgba(0,0,0,.45), rgba(0,0,0,0) 60%); }
.sw[data-finish="Matte"]::before { background: radial-gradient(circle at 70% 80%, rgba(0,0,0,.35), rgba(0,0,0,0) 60%); }
.sw::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid var(--ink); opacity: 0; transform: scale(.92); transition: opacity .25s, transform .3s var(--ease); }
.sw[aria-checked="true"]::after { opacity: 1; transform: scale(1); }
.sw:hover { transform: scale(1.06); }
.sw-grid.chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chip { border: 1px solid var(--line-2); background: rgba(255,255,255,.03); border-radius: 14px; padding: 12px 10px; text-align: left; display: flex; flex-direction: column; gap: 10px; transition: border-color .2s, background-color .2s; }
.chip i { display: block; width: 100%; height: 26px; border-radius: 8px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.chip span { font-size: 12.5px; font-weight: 700; line-height: 1.25; }
.chip[aria-checked="true"] { border-color: var(--ink); background: rgba(255,255,255,.07); }
.custom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.picker { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.picker input { width: 34px; height: 34px; border: 0; padding: 0; border-radius: 50%; background: none; cursor: pointer; }
.picker input::-webkit-color-swatch-wrapper { padding: 0; }
.picker input::-webkit-color-swatch { border: 1px solid rgba(255,255,255,.3); border-radius: 50%; }
.picker input::-moz-color-swatch { border: 1px solid rgba(255,255,255,.3); border-radius: 50%; }
.picker.on input { outline: 1.5px solid var(--ink); outline-offset: 3px; }
.seg { display: flex; background: rgba(255,255,255,.05); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; font-size: 12px; font-weight: 700; color: var(--ink-2); padding: 7px 11px; border-radius: 999px; }
.seg button[aria-checked="true"] { background: var(--ink); color: #0b0b0e; }
.choice { padding: 12px 8px 0; font-size: 13.5px; color: var(--ink-2); min-height: 2.6em; }
.choice b { color: var(--ink); }
.sum { margin: 10px 8px 0; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sum span { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.sum b { font: 700 24px/1.2 var(--d); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sum-act { display: flex; gap: 8px; }
@media (max-width: 1100px) and (min-width: 761px) { .conf { grid-template-columns: minmax(0, 1fr) 360px; } }
@media (max-width: 760px) {
  .conf { display: flex; flex-direction: column; padding: calc(var(--hdr) + 12px) var(--g) 18px; }
  .conf-head .h2 { font-size: 28px; margin-top: 10px; }
  .conf-sub { display: none; }
  .panel { margin-top: auto; padding: 8px 6px 14px; border-radius: 20px; }
  .tabs button { font-size: 12.5px; padding: 9px 10px; }
  .panes { padding: 14px 6px 2px; min-height: 0; }
  .sw-grid { gap: 10px 8px; }
  .sw { width: 42px; height: 42px; }
  .sw-grid.chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chip { padding: 10px 8px; gap: 8px; }
  .chip i { height: 20px; }
  .custom { margin-top: 12px; padding-top: 10px; }
  .choice { padding-top: 8px; min-height: 0; font-size: 13px; }
  .sum b { font-size: 20px; }
  .sum { margin-top: 8px; padding-top: 12px; }
}
@media (max-width: 380px) { .seg button { padding: 7px 9px; } .picker span { max-width: 9ch; line-height: 1.2; } }

/* ---------- gallery ---------- */
.gallery { border-top: 1px solid var(--line); }
.g-grid { display: grid; gap: 16px; margin-top: 48px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.g { position: relative; overflow: hidden; border-radius: var(--r); background: var(--panel); }
.g img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; transition: transform 1.2s var(--ease); }
.g:hover img { transform: scale(1.03); }
.g figcaption { position: absolute; left: 16px; bottom: 14px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); background: rgba(10,10,12,.72); padding: 6px 10px; border-radius: 999px; }
.g1 { grid-column: span 7; } .g2 { grid-column: span 5; } .g3 { grid-column: span 5; } .g4 { grid-column: span 7; } .g5 { grid-column: span 12; }
.g5 img { aspect-ratio: 21 / 8; }
@media (max-width: 760px) {
  .g-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 8px; scrollbar-width: none; }
  .g-grid::-webkit-scrollbar { display: none; }
  .g { flex: 0 0 86%; scroll-snap-align: center; }
  .g5 img { aspect-ratio: 16 / 10; }
}

/* ---------- reserve ---------- */
.reserve { border-top: 1px solid var(--line); background: radial-gradient(120% 80% at 85% 0%, rgba(139,107,255,.12), rgba(139,107,255,0) 55%), var(--bg); }
.res-grid { display: grid; gap: 48px; }
@media (min-width: 980px) { .res-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 80px; align-items: start; } }
.facts { display: grid; gap: 0; margin-top: 40px; border-top: 1px solid var(--line); max-width: 520px; }
.facts li { display: flex; align-items: baseline; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts b { font: 600 26px/1 var(--d); letter-spacing: -.02em; min-width: 5.2em; }
.facts span { color: var(--ink-2); font-size: 15px; }
.form-card { background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 3vw, 38px); }
.form-card h3 { font: 600 26px/1.2 var(--d); letter-spacing: -.02em; margin-bottom: 22px; }
.f-row { display: grid; gap: 14px; }
@media (min-width: 560px) { .f-row { grid-template-columns: 1fr 1fr; } }
.f { display: block; margin-bottom: 14px; position: relative; }
.f > span { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 7px; }
.f i { font-style: normal; font-weight: 500; color: var(--mute); }
.f input, .f select, .f textarea { width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 13px 14px; font-size: 16px; transition: border-color .2s; }
.f textarea { resize: vertical; min-height: 88px; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--vio-2); }
.f [aria-invalid="true"] { border-color: #ff7a8a; }
.build-f { background: var(--bg-2); border: 1px dashed var(--line-2); border-radius: 12px; padding: 12px 14px; }
.build-f > span { margin-bottom: 4px; }
.build { font-size: 14px; font-weight: 600; padding-right: 44px; }
.edit { position: absolute; right: 14px; top: 12px; font-size: 12.5px; font-weight: 700; color: var(--vio-2); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); margin: 6px 0 18px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--vio); flex: none; }
.err { color: #ff9aa6; font-size: 14px; margin-bottom: 14px; }
.note { text-align: center; color: var(--mute); font-size: 12.5px; margin-top: 12px; }
.done { text-align: center; padding: 30px 6px; }
.done svg { width: 64px; height: 64px; margin: 0 auto 20px; fill: none; stroke: var(--vio-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.done svg path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .7s .2s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done h3 { margin-bottom: 12px; }
.done p { color: var(--ink-2); margin: 0 auto 22px; max-width: 40ch; }

/* ---------- footer ---------- */
.ftr { background: #070709; border-top: 1px solid var(--line); padding: 72px 0 28px; font-size: 14px; }
.ftr-top { display: grid; gap: 36px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ftr-top > :first-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .ftr-top { grid-template-columns: 2fr 1fr 1fr 1fr; } .ftr-top > :first-child { grid-column: auto; } }
.ftr-blurb { color: var(--ink-2); max-width: 36ch; margin-top: 16px; }
.ftr h4 { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); margin: 0 0 14px; }
.ftr li { margin-bottom: 8px; }
.ftr li a { color: var(--ink-2); text-decoration: none; }
.ftr li a:hover { color: var(--ink); }
.ftr-addr { color: var(--ink-2); }
.ftr-legal { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--mute); font-size: 12.5px; }
.ftr-legal a { color: var(--ink-2); }
.ftr-legal a:hover { color: var(--ink); }

/* ---------- drive mode ---------- */
.btn-ghost svg { width: 20px; height: 20px; stroke-width: 1.6; }
.btn-ghost:hover svg { transform: rotate(-20deg); }
.conf-drive { margin-top: 18px; }
.driving, .driving body { overflow: hidden; }
.driving main, .driving .ftr, .driving .hdr, .driving .skip { visibility: hidden; }
.driving #gl { cursor: default; }
#gl.blink { opacity: 0 !important; transition: opacity .22s linear; }
.drive-ui { position: fixed; inset: 0; z-index: 50; pointer-events: none; color: var(--ink); user-select: none; -webkit-user-select: none; }
.drive-ui button, .drive-ui .btn { pointer-events: auto; }
.d-top { position: absolute; left: var(--g); right: var(--g); top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.d-title { display: flex; align-items: center; gap: 10px; font: 600 12px/1 var(--b); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
kbd { font: 700 11px/1 var(--b); padding: 4px 6px; border-radius: 6px; border: 1px solid var(--line-2); background: rgba(255,255,255,.06); color: var(--ink); }
.btn-light kbd { border-color: rgba(0,0,0,.15); background: rgba(0,0,0,.06); color: #0b0b0e; margin-left: 4px; }
.d-hud { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); display: grid; grid-template-columns: auto auto; align-items: end; gap: 6px 14px; padding: 14px 22px 16px; background: rgba(10,10,12,.82); border: 1px solid var(--line); border-radius: 18px; min-width: 210px; }
.d-gear { font: 700 15px/1 var(--d); color: var(--vio-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 8px; align-self: center; }
.d-speed b { font: 700 46px/1 var(--d); letter-spacing: -.04em; font-variant-numeric: tabular-nums; display: inline-block; min-width: 3ch; text-align: right; }
.d-speed small { font-size: 13px; color: var(--ink-2); margin-left: 6px; font-weight: 600; }
.d-bar { grid-column: 1 / -1; height: 3px; background: rgba(255,255,255,.1); border-radius: 2px; overflow: hidden; }
.d-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--vio-2), var(--vio)); transform: scaleX(0); transform-origin: left; }
.d-keys { position: absolute; left: var(--g); bottom: 40px; max-width: 30ch; font-size: 12.5px; line-height: 2; color: var(--ink-2); }
.d-pads { display: none; }
@media (pointer: coarse), (max-width: 760px) {
  .d-keys { display: none; }
  .d-hud { top: 70px; bottom: auto; padding: 10px 16px 12px; min-width: 170px; }
  .d-speed b { font-size: 34px; }
  .d-pads { display: flex; justify-content: space-between; align-items: flex-end; position: absolute; left: 14px; right: 14px; bottom: max(18px, env(safe-area-inset-bottom)); }
  .d-pads > div { display: flex; gap: 12px; }
  .d-pads button { touch-action: none; width: 72px; height: 72px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(20,20,26,.78); color: var(--ink); font: 700 13px/1 var(--b); display: grid; place-items: center; transition: transform .12s, background-color .12s; }
  .d-pads button svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
  .d-pads .gas { width: 84px; height: 84px; background: var(--ink); color: #0b0b0e; }
  .d-pads .brake { background: rgba(120,20,28,.75); }
  .d-pads button.on { transform: scale(.92); }
  .d-pads .gas.on { background: #fff; }
  .d-title { font-size: 11px; letter-spacing: .14em; }
}
@media (max-width: 360px) { .d-pads button { width: 64px; height: 64px; } .d-pads .gas { width: 76px; height: 76px; } }

/* ---------- toast ---------- */
.toast { position: fixed; z-index: 60; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #0b0b0e; font-weight: 700; font-size: 14px; padding: 12px 18px; border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s var(--ease); max-width: calc(100% - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- reveal ---------- */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.js .nums .rv:nth-child(3n+2), .js .cards .rv:nth-child(2) { transition-delay: .08s; }
.js .nums .rv:nth-child(3n), .js .cards .rv:nth-child(3) { transition-delay: .16s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .js .rv { opacity: 1; transform: none; }
}
