/* =========================================================
   Khushvinder Singh — minimal glass on a starry night
   Monochrome by design: the stars are the only highlight.
   ========================================================= */

:root {
  --bg: #050507;
  --text: #ececef;
  --muted: #9a9ca6;
  --dim: #63656f;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --glass: rgba(255, 255, 255, 0.025);
  --glass-2: rgba(255, 255, 255, 0.05);
  --fill: rgba(255, 255, 255, 0.04);
  --radius: 20px;
  --radius-sm: 12px;
  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: "Space Grotesk", var(--font);
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --max: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: rgba(255, 255, 255, 0.18); }
svg { flex: none; }

/* ---------- Sky ---------- */
#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; cursor: crosshair; }
body::after {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 0%, transparent 60%, rgba(0, 0, 0, 0.5));
}
main, .nav, .footer { position: relative; z-index: 2; }
/* empty space lets clicks reach the sky canvas */
main, main section { pointer-events: none; }
main section > * { pointer-events: auto; }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 1px; z-index: 50; }
.progress span { display: block; height: 100%; width: 0; background: rgba(255, 255, 255, 0.7); }

/* ---------- Glass ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.glass-inner { background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); border-radius: var(--radius-sm); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(var(--max), calc(100% - 2 * var(--gutter)));
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 8px 8px 12px; border-radius: 999px; z-index: 40;
  background: rgba(10, 10, 14, 0.55);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.brand img { border-radius: 9px; }
.nav nav { display: flex; gap: 2px; align-items: center; }
.nav nav a { padding: 8px 13px; border-radius: 999px; font-size: 14px; color: var(--muted); transition: color .2s, background .2s; }
.nav nav a:hover, .nav nav a.active { color: var(--text); background: var(--fill); }
.nav nav a.nav-cta { background: var(--text); color: #0a0a0c; font-weight: 500; margin-left: 6px; }
.burger { display: none; background: none; border: 0; width: 42px; height: 42px; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--text); transition: transform .3s, top .3s; }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 24px; }
.burger[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid var(--line-2);
  background: transparent; font-weight: 500; font-size: 15px;
  transition: background .2s, border-color .2s, transform .2s;
  -webkit-user-select: none; user-select: none;
}
.btn:hover { background: var(--fill); border-color: rgba(255, 255, 255, 0.3); }
.btn-primary { background: var(--text); color: #0a0a0c; border-color: var(--text); }
.btn-primary:hover { background: #fff; border-color: #fff; }
.btn-small { padding: 8px 14px; font-size: 13px; }
.btn.big { padding: 14px 28px; }

.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--muted); transition: color .2s, border-color .2s;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-2); }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  width: min(var(--max), calc(100% - 2 * var(--gutter))); margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 40px;
  padding: 120px 0 60px; position: relative; overflow-x: clip;
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; color: var(--muted); margin: 0 0 20px; letter-spacing: .02em; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text); box-shadow: 0 0 10px rgba(255,255,255,.8); }
.hero h1 { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(44px, 7vw, 84px); line-height: 1.02; letter-spacing: -0.035em; }
.lead { color: var(--muted); font-size: clamp(16px, 1.45vw, 18px); max-width: 540px; margin: 26px 0 0; }
.lead-2 { margin-top: 14px; color: var(--dim); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.socials { display: flex; gap: 10px; margin-top: 28px; }

.hero-visual { position: relative; height: min(76vh, 660px); display: flex; align-items: flex-end; justify-content: center; }
.halo {
  position: absolute; width: 70%; aspect-ratio: 1; left: 15%; top: 8%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.07), transparent 65%);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.portrait {
  position: relative; z-index: 1; height: 100%; width: auto; object-fit: contain; object-position: bottom;
  filter: grayscale(0.25) contrast(1.03) brightness(0.95);
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 98%), linear-gradient(to left, transparent 0, #000 14%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, #000 70%, transparent 98%), linear-gradient(to left, transparent 0, #000 14%);
  mask-composite: intersect;
}
.scroll-hint { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); width: 24px; height: 38px; border-radius: 12px; border: 1px solid var(--line-2); }
.scroll-hint span { position: absolute; left: 50%; top: 7px; width: 2px; height: 7px; margin-left: -1px; border-radius: 2px; background: var(--text); animation: scrolly 2s infinite; }
@keyframes scrolly { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Stats + Shipped to ---------- */
.intro { width: min(var(--max), calc(100% - 2 * var(--gutter))); margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.stats { display: flex; align-items: center; padding: 30px 40px; }
.stat { flex: 1; }
.stat b { display: block; font-family: var(--display); font-weight: 500; font-size: clamp(40px, 5vw, 60px); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 10px; color: var(--muted); font-size: 14px; }
.stats .stat + .stat-divider + .stat { padding-left: 40px; }
.stat-divider { width: 1px; align-self: stretch; background: var(--line); }
.caption { font-family: var(--mono); font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: .14em; margin: 0; white-space: nowrap; }
.shipped { display: flex; align-items: center; gap: 32px; padding: 22px 40px; }
.orgs { flex: 1; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.org { display: flex; align-items: center; gap: 12px; }
.org { padding: 8px 14px; margin: -8px -14px; border-radius: 12px; cursor: default; transition: background .3s; }
.org img { height: 36px; width: 36px; object-fit: contain; border-radius: 9px; filter: grayscale(1) brightness(1.15); opacity: .8; transition: filter .3s, opacity .3s, transform .3s; }
.org span { font-size: 14.5px; color: var(--muted); transition: color .3s; }
.org:hover { background: var(--fill); }
.org:hover img { filter: none; opacity: 1; transform: scale(1.06); }
.org:hover span { color: var(--text); }

/* ---------- Sections ---------- */
.section { width: min(var(--max), calc(100% - 2 * var(--gutter))); margin: 0 auto; padding: 130px 0 0; }
.section-head { margin-bottom: 36px; }
.kicker { font-family: var(--mono); font-size: 12px; color: var(--dim); letter-spacing: .14em; text-transform: uppercase; margin: 0 0 12px; }
.section h2 { font-family: var(--display); font-weight: 500; font-size: clamp(32px, 4.4vw, 48px); line-height: 1.08; letter-spacing: -0.025em; margin: 0; }
.sub { color: var(--muted); font-size: 16px; margin: 12px 0 0; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Experience ---------- */
.xp { padding: 8px 0; }
.xp-row { display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding: 30px 34px; }
.xp-row + .xp-row { border-top: 1px solid var(--line); }
.xp-meta { display: flex; gap: 14px; align-items: flex-start; }
.xp-logo { width: 40px; height: 40px; border-radius: 10px; object-fit: contain; background: rgba(255,255,255,.03); border: 1px solid var(--line); padding: 4px; }
.xp-logo-icon { display: grid; place-items: center; color: var(--muted); }
.xp-logo-icon svg { width: 20px; height: 20px; }
.xp-meta h3 { margin: 0; font-size: 16px; font-weight: 600; }
.xp-meta time { font-family: var(--mono); font-size: 12.5px; color: var(--dim); }
.xp-role { margin: 0 0 12px; font-family: var(--display); font-size: 20px; font-weight: 500; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.badge { font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--text); border: 1px solid var(--line-2); padding: 2px 9px; border-radius: 999px; }
.xp-body ul, ul.dash { list-style: none; margin: 0; padding: 0; }
.xp-body li, ul.dash li { position: relative; padding-left: 20px; margin: 8px 0; color: var(--muted); font-size: 15px; }
.xp-body li::before, ul.dash li::before { content: ""; position: absolute; left: 2px; top: .8em; width: 8px; height: 1px; background: var(--dim); }

/* ---------- App cards ---------- */
.app { padding: 0; margin-bottom: 24px; overflow: hidden; }
.app-head { display: flex; align-items: center; gap: 18px; padding: 26px 32px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.app-icon { width: 60px; height: 60px; border-radius: 15px; object-fit: cover; border: 1px solid var(--line); background: #000; }
.app-title { flex: 1; min-width: 200px; }
.app-title h3 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 26px; letter-spacing: -0.01em; }
.app-title p { margin: 2px 0 0; color: var(--dim); font-size: 14px; }
.app-body { display: grid; grid-template-columns: 1.35fr 1fr; }
.app-info { padding: 30px 32px; }
.app-desc { margin: 0; color: var(--muted); font-size: 15.5px; }
.app-info h4 { margin: 28px 0 10px; font-family: var(--mono); font-size: 11.5px; font-weight: 500; color: var(--dim); text-transform: uppercase; letter-spacing: .14em; }
.features { display: flex; flex-wrap: wrap; gap: 8px; }
.features span { font-size: 13px; color: var(--muted); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.015); }
.app-visual { border-left: 1px solid var(--line); padding: 30px 32px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.18); }
.vis-caption { margin: 16px 0 0; text-align: center; font-size: 12.5px; color: var(--dim); max-width: 280px; }

/* phone frame + screenshot carousel */
.phone {
  position: relative; width: min(250px, 100%); aspect-ratio: 400 / 869;
  border-radius: 36px; padding: 8px; background: #0c0c0f;
  border: 1px solid var(--line-2); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9);
}
.phone img { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); object-fit: cover; border-radius: 28px; opacity: 0; transition: opacity .8s ease; }
.phone img.active { opacity: 1; }
.dots { display: flex; gap: 6px; margin-top: 16px; }
.dots button { width: 6px; height: 6px; padding: 0; border-radius: 50%; border: 0; background: var(--line-2); transition: background .3s, width .3s; }
.dots button.active { background: var(--text); width: 18px; border-radius: 3px; }

/* PartyPal suite switcher */
.suite { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 24px 0 18px; }
.suite button { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 6px; border-radius: 14px; border: 1px solid var(--line); background: transparent; transition: border-color .2s, background .2s; }
.suite img { width: 40px; height: 40px; border-radius: 10px; filter: grayscale(1); opacity: .6; transition: filter .3s, opacity .3s; }
.suite span { font-size: 12.5px; color: var(--dim); }
.suite button:hover img { opacity: .9; }
.suite button.active { border-color: var(--line-2); background: var(--glass-2); }
.suite button.active img { filter: none; opacity: 1; }
.suite button.active span { color: var(--text); }
.tab-panel { display: none; animation: fadeUp .35s ease; }
.tab-panel.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } }
.tp-desc { margin: 0 0 12px; color: var(--text); font-size: 14.5px; }

/* AR demo */
.phone.ar { aspect-ratio: 9 / 18; }
.ar-cam { position: relative; width: 100%; height: 100%; border-radius: 28px; overflow: hidden; background: linear-gradient(to bottom, #07070b 0%, #101018 55%, #16161f 63%, #0a0a0d 63.2%, #060608 100%); }
.ar-skyline {
  position: absolute; left: -50%; right: -50%; bottom: 37%; height: 22%;
  --b: #0a0a0d;
  background:
    linear-gradient(var(--b), var(--b)) 0 100% / 8% 60% no-repeat,
    linear-gradient(var(--b), var(--b)) 9% 100% / 6% 85% no-repeat,
    linear-gradient(var(--b), var(--b)) 16% 100% / 9% 45% no-repeat,
    linear-gradient(var(--b), var(--b)) 26% 100% / 5% 100% no-repeat,
    linear-gradient(var(--b), var(--b)) 32% 100% / 10% 55% no-repeat,
    linear-gradient(var(--b), var(--b)) 43% 100% / 6% 75% no-repeat,
    linear-gradient(var(--b), var(--b)) 50% 100% / 8% 40% no-repeat,
    linear-gradient(var(--b), var(--b)) 59% 100% / 5% 90% no-repeat,
    linear-gradient(var(--b), var(--b)) 65% 100% / 9% 60% no-repeat,
    linear-gradient(var(--b), var(--b)) 75% 100% / 6% 80% no-repeat,
    linear-gradient(var(--b), var(--b)) 82% 100% / 8% 50% no-repeat,
    linear-gradient(var(--b), var(--b)) 91% 100% / 9% 70% no-repeat;
}
.ar-pins { position: absolute; inset: 0; }
.ar-pin { position: absolute; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; gap: 4px; transition: opacity .3s; }
.ar-pin .ar-card { padding: 6px 10px; border-radius: 10px; font-size: 10.5px; line-height: 1.3; white-space: nowrap; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--muted); }
.ar-pin .ar-card b { display: block; font-size: 11.5px; font-weight: 500; color: var(--text); }
.ar-pin .stem { width: 1px; height: 22px; background: linear-gradient(to bottom, rgba(255,255,255,.5), transparent); }
.ar-pin .ping { width: 5px; height: 5px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px #fff; }
.ar-hud { position: absolute; top: 16px; left: 14px; right: 14px; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; color: var(--muted); }
.ar-hud span { padding: 3px 9px; border-radius: 999px; background: rgba(0,0,0,.4); border: 1px solid var(--line); }
.ar-radar { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); width: 80px; height: 80px; border-radius: 50%; border: 1px solid var(--line-2); overflow: hidden; background: radial-gradient(circle, transparent 0 31%, rgba(255,255,255,.06) 32% 33%, transparent 34% 63%, rgba(255,255,255,.06) 64% 65%, transparent 66%); }
.ar-radar .sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 300deg, rgba(255,255,255,.22) 360deg); animation: spinr 3.5s linear infinite; }
@keyframes spinr { to { transform: rotate(360deg); } }
.ar-blips { position: absolute; inset: 0; }
.ar-blips i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--muted); transform: translate(-50%, -50%); }
.ar-blips i.me { width: 6px; height: 6px; background: #fff; left: 50%; top: 50%; }

/* SecureCrypt demo */
.crypt { width: 100%; max-width: 340px; padding: 18px; display: flex; flex-direction: column; gap: 14px; min-height: 240px; }
.crypt-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; font-weight: 500; }
.crypt-head small { color: var(--dim); font-family: var(--mono); font-size: 11px; font-weight: 400; }
.bubble { align-self: flex-end; max-width: 92%; padding: 11px 15px; border-radius: 16px 16px 4px 16px; background: rgba(255,255,255,.08); border: 1px solid var(--line-2); font-family: var(--mono); font-size: 13px; word-break: break-all; transition: opacity .6s, filter .6s, transform .6s; }
.bubble.burn { opacity: 0; filter: blur(8px); transform: translateY(-10px); }
.crypt-meta { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11.5px; color: var(--dim); }
.crypt .btn { align-self: flex-start; margin-top: auto; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.card { padding: 26px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .3s; }
.card:nth-child(4n) { border-right: 0; }
.card:nth-last-child(-n + 4) { border-bottom: 0; }
.card:hover { background: var(--glass-2); }
.card svg, .interest svg { width: 22px; height: 22px; fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 16px; }
.card h3 { margin: 0 0 6px; font-size: 15.5px; font-weight: 600; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }

.interest-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.interest { padding: 24px; display: flex; flex-direction: column; gap: 2px; transition: border-color .3s, background .3s; }
.interest:hover { border-color: var(--line-2); background: var(--glass-2); }
.interest b { font-size: 17px; font-weight: 600; }
.interest small { color: var(--muted); font-size: 14px; }

/* ---------- Garage ---------- */
.garage { padding: 28px; overflow: hidden; --car: #ececef; }
.car-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.car-tab { border: 1px solid var(--line); background: transparent; padding: 9px 16px; border-radius: 12px; text-align: left; transition: border-color .2s, background .2s; }
.car-tab small { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--dim); letter-spacing: .08em; text-transform: uppercase; }
.car-tab b { font-size: 14.5px; font-weight: 500; color: var(--muted); }
.car-tab.active { border-color: var(--line-2); background: var(--glass-2); }
.car-tab.active b { color: var(--text); }
.garage-body { display: grid; grid-template-columns: 1fr 230px; gap: 24px; align-items: center; margin-top: 22px; }
.car-name small { font-family: var(--mono); font-size: 12px; color: var(--dim); letter-spacing: .12em; text-transform: uppercase; }
.car-name h3 { margin: 4px 0 0; font-family: var(--display); font-weight: 500; font-size: clamp(28px, 4vw, 42px); line-height: 1.05; letter-spacing: -0.02em; }
.car-name p { margin: 6px 0 0; color: var(--muted); }
#carSvg { width: 100%; height: auto; margin-top: 4px; overflow: visible; }
#carSvg .body { fill: url(#carFill); stroke: rgba(255,255,255,.85); stroke-width: 1.6; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(255,255,255,.25)); }
#carSvg .line { fill: none; stroke: rgba(255,255,255,.45); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
#carSvg .glass-w { fill: rgba(255,255,255,.05); stroke: rgba(255,255,255,.35); stroke-width: 1; }
#carSvg .wheel { fill: #07070a; stroke: rgba(255,255,255,.7); stroke-width: 1.6; }
#carSvg .rim { fill: none; stroke: rgba(255,255,255,.35); stroke-width: 1.2; }
#carSvg .light-f { fill: #fff; filter: drop-shadow(0 0 5px #fff); }
#carSvg .light-r { fill: #ff4555; opacity: .8; }
#carSvg .draw { stroke-dasharray: 2200; stroke-dashoffset: 2200; animation: drawIn 1.6s ease forwards; }
@keyframes drawIn { to { stroke-dashoffset: 0; } }
.car-shake #carGroup { animation: shake .08s linear infinite; }
@keyframes shake { 50% { transform: translate(.6px, -.8px); } }
.road { height: 1px; margin-top: -6px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); position: relative; overflow: hidden; }
.road span { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.5) 0 30px, transparent 30px 70px); opacity: 0; }
.revving .road span { opacity: .5; animation: roadmove .4s linear infinite; }
@keyframes roadmove { to { background-position: -70px 0; } }
.car-side { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.tacho { position: relative; width: 210px; max-width: 100%; }
.tacho svg { width: 100%; height: auto; display: block; }
.tacho-read { position: absolute; left: 0; right: 0; bottom: 34px; text-align: center; }
.tacho-read b { display: block; font-family: var(--mono); font-weight: 500; font-size: 24px; font-variant-numeric: tabular-nums; }
.tacho-read small { font-family: var(--mono); font-size: 10px; color: var(--dim); letter-spacing: .2em; }
.rev { width: 100%; touch-action: none; -webkit-touch-callout: none; }
.rev.on { transform: scale(.97); }
.sound-toggle { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; cursor: pointer; }
.sound-toggle input { accent-color: #ececef; }
.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 26px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.spec { padding: 16px 18px; background: #08080b; }
.spec small { font-family: var(--mono); font-size: 10.5px; color: var(--dim); text-transform: uppercase; letter-spacing: .1em; }
.spec b { display: block; font-family: var(--display); font-weight: 500; font-size: 22px; margin: 2px 0 10px; }
.spec .bar { height: 2px; background: var(--line); overflow: hidden; }
.spec .bar i { display: block; height: 100%; width: 0; background: var(--text); transition: width 1s cubic-bezier(.2, .7, .2, 1); }
.car-facts { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.car-facts li { font-size: 14px; color: var(--muted); padding-left: 16px; position: relative; }
.car-facts li::before { content: ""; position: absolute; left: 0; top: .75em; width: 6px; height: 1px; background: var(--dim); }
.car-facts li b { color: var(--text); font-weight: 500; }

/* ---------- Music ---------- */
.player { display: grid; grid-template-columns: 340px 1fr; gap: 36px; padding: 32px; }
.player-now { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cover { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #0c0c0f; box-shadow: 0 30px 60px -30px rgba(0,0,0,.9); }
.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 8s linear; }
.playing .cover img { transform: scale(1.06); }
.now-info h3 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 26px; line-height: 1.15; }
.now-info p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.now-info small { font-family: var(--mono); font-size: 11.5px; color: var(--dim); }
.eq { display: flex; align-items: flex-end; gap: 3px; height: 22px; }
.eq i { flex: 1; height: 8%; border-radius: 1px; background: rgba(255,255,255,.45); }
.playing .eq i { animation: eq 1s ease-in-out infinite alternate; }
.eq i:nth-child(odd) { animation-duration: .7s !important; }
.eq i:nth-child(3n) { animation-duration: 1.2s !important; }
.eq i:nth-child(4n) { animation-duration: .55s !important; }
.eq i:nth-child(5n) { animation-delay: -.3s; }
@keyframes eq { 0% { height: 10%; } 50% { height: 95%; } 100% { height: 35%; } }
.seek { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 11.5px; color: var(--dim); }
.seek input { flex: 1; }
input[type="range"] { -webkit-appearance: none; appearance: none; height: 2px; border-radius: 2px; background: var(--line-2); outline: none; cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--text); }
input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--text); }
.controls { display: flex; align-items: center; gap: 8px; }
.ctl { width: 40px; height: 40px; border-radius: 50%; border: 1px solid transparent; background: none; display: grid; place-items: center; color: var(--muted); transition: color .2s, background .2s; }
.ctl svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ctl:hover { color: var(--text); background: var(--fill); }
.ctl.on { color: var(--text); border-color: var(--line-2); }
.ctl-play { width: 52px; height: 52px; background: var(--text); color: #0a0a0c; }
.ctl-play:hover { background: #fff; color: #0a0a0c; }
.ctl-play svg { stroke: none; width: 20px; height: 20px; }
.ctl-play .i-pause, .playing .ctl-play .i-play { display: none; }
.playing .ctl-play .i-pause { display: block; }
.vol { margin-left: auto; width: 90px; }
.player-note { margin: 0; font-size: 12px; color: var(--dim); min-height: 1em; }
.player-note a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.tracklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.track { display: grid; grid-template-columns: 26px 44px 1fr auto; gap: 14px; align-items: center; padding: 9px 12px; border-radius: 12px; cursor: pointer; transition: background .2s; }
.track + .track { margin-top: 2px; }
.track:hover { background: var(--fill); }
.track.active { background: var(--glass-2); }
.track .n { font-family: var(--mono); font-size: 12px; color: var(--dim); text-align: center; }
.track.active .n { color: var(--text); }
.track img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; }
.track b { display: block; font-size: 15px; font-weight: 500; }
.track small { color: var(--dim); font-size: 13px; }
.track a { font-size: 12px; color: var(--dim); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.track a:hover { color: var(--text); border-color: var(--line-2); }

/* ---------- Arcade ---------- */
.arcade { padding: 28px; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; border: 1px solid var(--line); margin-bottom: 26px; }
.tabs button { border: 0; background: none; padding: 7px 18px; border-radius: 999px; color: var(--muted); font-size: 14px; transition: background .2s, color .2s; }
.tabs button.active { background: var(--text); color: #0a0a0c; }
.game-wrap { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: start; }
.game-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.g-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.g-stats div { padding: 12px 16px; background: #08080b; }
.g-stats small { font-family: var(--mono); font-size: 10.5px; color: var(--dim); text-transform: uppercase; letter-spacing: .1em; }
.g-stats b { display: block; font-family: var(--mono); font-weight: 500; font-size: 20px; font-variant-numeric: tabular-nums; }
.g-msg { margin: 0; color: var(--muted); font-size: 14px; }
.g-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.seg { display: flex; padding: 3px; border-radius: 10px; border: 1px solid var(--line); }
.seg button { flex: 1; border: 0; background: none; padding: 7px; border-radius: 8px; font-size: 13px; color: var(--muted); }
.seg button.active { background: var(--glass-2); color: var(--text); }

.sudoku { display: grid; grid-template-columns: repeat(9, 1fr); width: min(450px, calc(100vw - 2 * var(--gutter) - 56px)); aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .4); }
.sd-cell { border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; display: grid; place-items: center; font-family: var(--display); font-size: clamp(16px, 3.3vw, 22px); font-weight: 500; color: #b9bcc8; padding: 0; transition: background .15s; }
.sd-cell.given { color: var(--text); font-weight: 600; }
.sd-cell.c3, .sd-cell.c6 { border-right-color: var(--line-2); }
.sd-cell.r3, .sd-cell.r6 { border-bottom-color: var(--line-2); }
.sd-cell.peer { background: rgba(255,255,255,.025); }
.sd-cell.same { background: rgba(255,255,255,.08); }
.sd-cell.sel { background: rgba(255,255,255,.14); }
.sd-cell.bad { color: #ff6b7a; }
.sd-cell.pop { animation: pop .3s ease; }
@keyframes pop { 50% { transform: scale(1.18); } }
.sudoku.won .sd-cell { animation: winwave 1.2s ease both; }
@keyframes winwave { 50% { background: rgba(255,255,255,.12); } }
.numpad { display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; }
.numpad button { aspect-ratio: 1; border-radius: 10px; border: 1px solid var(--line); background: transparent; font-family: var(--display); font-size: 17px; font-weight: 500; transition: background .15s; }
.numpad button:hover { background: var(--fill); }
.numpad button.done { opacity: .25; }

.snake-box { position: relative; width: min(400px, calc(100vw - 2 * var(--gutter) - 56px)); aspect-ratio: 1; }
#snake { width: 100%; height: 100%; border-radius: 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, .45); display: block; touch-action: none; }
.snake-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border-radius: 14px; background: rgba(5,5,7,.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); text-align: center; padding: 20px; }
.snake-overlay h3 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 28px; }
.snake-overlay p { margin: 0 0 12px; color: var(--muted); }
.snake-overlay.hidden { display: none; }
.dpad { display: grid; grid-template-columns: repeat(3, 52px); grid-template-rows: repeat(2, 52px); gap: 8px; }
.dpad button { border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 14px; }
.dpad button:active { background: var(--fill); }
.dpad [data-dir="up"] { grid-column: 2; }
.dpad [data-dir="left"] { grid-column: 1; grid-row: 2; }
.dpad [data-dir="down"] { grid-column: 2; grid-row: 2; }
.dpad [data-dir="right"] { grid-column: 3; grid-row: 2; }

/* ---------- Contact ---------- */
.contact { padding-bottom: 40px; }
.contact-card { padding: clamp(32px, 6vw, 64px); text-align: center; }
.contact-card .sub { margin: 14px auto 0; }
.contact-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 36px 0 30px; text-align: left; }
.contact-link { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: transparent; transition: border-color .25s, background .25s; width: 100%; text-align: left; }
.contact-link:hover { border-color: var(--line-2); background: var(--fill); }
.contact-link svg { width: 20px; height: 20px; color: var(--muted); }
.contact-link span { display: flex; flex-direction: column; min-width: 0; }
.contact-link b { font-weight: 500; }
.contact-link small { color: var(--dim); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-link em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--dim); font-family: var(--mono); }

/* ---------- Save-contact QR ---------- */
.vcard { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; margin-top: 44px; padding-top: 44px; border-top: 1px solid var(--line); text-align: left; }
.qr { position: relative; width: 220px; padding: 12px; border-radius: 20px; background: #ececef; box-shadow: 0 0 0 1px var(--line-2), 0 30px 60px -30px rgba(0, 0, 0, .9), 0 0 60px -20px rgba(255, 255, 255, .25); overflow: hidden; transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s; }
.qr img { display: block; width: 100%; height: auto; border-radius: 8px; }
.qr:hover { transform: scale(1.03); box-shadow: 0 0 0 1px var(--line-2), 0 30px 60px -30px rgba(0, 0, 0, .9), 0 0 80px -16px rgba(255, 255, 255, .4); }
.qr-scan { position: absolute; left: 0; right: 0; top: 0; height: 40%; pointer-events: none; background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, .55) 90%, rgba(255, 255, 255, 0)); mix-blend-mode: soft-light; animation: qrscan 3.2s ease-in-out infinite; }
@keyframes qrscan { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(260%); } }
.vcard-text h3 { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -0.01em; }
.vcard-text p:not(.kicker) { margin: 10px 0 20px; color: var(--muted); font-size: 15px; max-width: 460px; }
.contact-card .vcard .kicker { justify-content: flex-start; margin-bottom: 10px; }

.footer { text-align: center; padding: 50px var(--gutter) 40px; color: var(--dim); font-size: 13px; }
.footer p { margin: 4px 0; }
.footer .hint { font-family: var(--mono); font-size: 11.5px; opacity: .7; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 160%); z-index: 60; padding: 10px 18px; border-radius: 999px; font-size: 13.5px; background: rgba(16,16,20,.85); border: 1px solid var(--line-2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.toast.show { transform: translate(-50%, 0); }

/* =========================================================
   Motion & interaction layer
   ========================================================= */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: hidden; }

/* hero intro */
.hero h1 .word { display: inline-block; white-space: nowrap; }
.hero h1 .ch { display: inline-block; opacity: 0; filter: blur(14px); transform: translateY(35%) scale(1.04); }
.loaded .hero h1 .ch { animation: chIn 1.1s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--i) * 38ms + .15s); }
@keyframes chIn { to { opacity: 1; filter: blur(0); transform: none; } }
.hero-text > :not(h1) { opacity: 0; transform: translateY(14px); }
.loaded .hero-text > :not(h1) { animation: riseIn 1s cubic-bezier(.2, .8, .2, 1) forwards; }
.loaded .hero-text > .eyebrow { animation-delay: .05s; }
.loaded .hero-text > .lead { animation-delay: .75s; }
.loaded .hero-text > .lead-2 { animation-delay: .9s; }
.loaded .hero-text > .hero-cta { animation-delay: 1.05s; }
.loaded .hero-text > .socials { animation-delay: 1.2s; }
@keyframes riseIn { to { opacity: 1; transform: none; } }
.portrait { opacity: 0; }
.loaded .portrait { animation: portraitIn 1.6s cubic-bezier(.2, .8, .2, 1) .3s forwards; }
@keyframes portraitIn { from { opacity: 0; filter: grayscale(.25) blur(16px) brightness(.6); transform: translateY(24px) scale(.98); } to { opacity: 1; } }
.hero-visual { will-change: transform; }
.halo::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%; padding: 1px;
  background: conic-gradient(from 0deg, transparent 0 70%, rgba(255,255,255,.45) 85%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 14s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
#role .glyph { color: var(--dim); }

/* section headings: words rise out of a mask */
.section-head.reveal { opacity: 1; transform: none; }
.section h2 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.section h2 .w > span { display: inline-block; transform: translateY(110%); opacity: 0; filter: blur(6px); transition: transform 1s cubic-bezier(.2, .8, .2, 1), opacity 1s ease, filter 1s ease; transition-delay: calc(var(--i) * 70ms + .1s); }
.in h2 .w > span { transform: none; opacity: 1; filter: blur(0); }
.kicker { display: flex; align-items: center; gap: 12px; }
.contact-card .kicker { justify-content: center; }
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--dim); transform: scaleX(0); transform-origin: left; transition: transform .9s cubic-bezier(.2, .8, .2, 1); }
.in .kicker::before, .in.kicker::before { transform: scaleX(1); }
.section-head .sub { opacity: 0; transform: translateY(10px); transition: opacity .9s ease .35s, transform .9s cubic-bezier(.2, .8, .2, 1) .35s; }
.section-head.in .sub { opacity: 1; transform: none; }

/* shimmering text */
.shimmer {
  background: linear-gradient(110deg, #8d8f99 30%, #ffffff 50%, #8d8f99 70%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 4.5s linear infinite;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -150% 0; } }

/* staggered entrances */
.stagger > * {
  opacity: 0; transform: translateY(16px);
  transition: opacity .8s ease calc(var(--d, 0) * 70ms), transform .8s cubic-bezier(.2, .8, .2, 1) calc(var(--d, 0) * 70ms), background .3s, border-color .3s, color .3s;
}
.in.stagger > *, .in .stagger > * { opacity: 1; transform: none; }
.features.stagger > * { transition-delay: calc(var(--d, 0) * 35ms), calc(var(--d, 0) * 35ms), 0s, 0s, 0s; }

/* spotlight that follows the cursor across glass */
.spot { isolation: isolate; }
.spot { position: relative; }
.spot::before, .spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .5s ease; }
.spot::before { z-index: -1; background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.055), transparent 45%); }
.spot::after {
  padding: 1px; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.4), transparent 65%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.spot:hover::before, .spot:hover::after { opacity: 1; }
.card.spot::after { display: none; }

/* buttons */
.btn, .icon-btn, .ctl-play, .nav-cta { transition: background .25s, border-color .25s, color .25s, transform .35s cubic-bezier(.2, .8, .2, 1); }
.btn .arrow { display: inline-block; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.75) 50%, transparent 65%); transform: translateX(-120%); }
.btn-primary:hover::after { transform: translateX(120%); transition: transform .8s ease; }

/* nav pill */
#navLinks { position: relative; }
.nav-pill { position: absolute; left: 0; top: 50%; height: 36px; margin-top: -18px; border-radius: 999px; background: rgba(255,255,255,.07); opacity: 0; pointer-events: none; transition: transform .45s cubic-bezier(.2, .8, .2, 1), width .45s cubic-bezier(.2, .8, .2, 1), opacity .3s; }
.nav nav a { position: relative; z-index: 1; }
.nav nav a:not(.nav-cta):hover, .nav nav a:not(.nav-cta).active { background: transparent; }

/* hover details */
.xp-row { transition: background .4s; }
.xp.stagger > .xp-row { transition: opacity .9s ease calc(var(--d, 0) * 110ms), transform .9s cubic-bezier(.2, .8, .2, 1) calc(var(--d, 0) * 110ms), background .4s; }
.xp-row:hover { background: rgba(255,255,255,.018); }
.xp-logo { transition: filter .4s, transform .4s; filter: grayscale(1) brightness(1.1); }
.xp-row:hover .xp-logo { filter: none; transform: scale(1.06); }
.xp-body li { transition: color .3s; }
.xp-row:hover .xp-body li { color: #b4b6c0; }
.app-icon { transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.app:hover .app-icon { transform: rotate(-6deg) scale(1.05); }
.features span:hover { border-color: var(--line-2); color: var(--text); }
.phone, .crypt { transition: transform .6s cubic-bezier(.2, .8, .2, 1); transform-style: preserve-3d; }
.card svg { transition: stroke .3s, transform .5s cubic-bezier(.2, .8, .2, 1); }
.card:hover svg { stroke: var(--text); transform: translateY(-2px) scale(1.08); }
.interest svg { transition: stroke .3s, transform .5s cubic-bezier(.2, .8, .2, 1); }
.interest:hover svg { stroke: var(--text); transform: rotate(-8deg) scale(1.1); }
.contact-link em { transition: transform .35s cubic-bezier(.2, .8, .2, 1), color .3s; }
.contact-link:hover em { transform: translate(3px, -3px); color: var(--text); }
.track img { transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.track:hover img { transform: scale(1.08); }
.footer a, .player-note a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s; }

/* marquee */
.marquee { margin: 110px 0 -20px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 40s linear infinite; font-family: var(--display); font-size: clamp(22px, 3vw, 34px); color: rgba(255,255,255,.18); white-space: nowrap; }
.marquee-track span { transition: color .4s; }
.marquee-track span:hover { color: var(--text); }
.marquee-track i { font-style: normal; font-size: .5em; color: rgba(255,255,255,.3); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* back to top */
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 45; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(12,12,16,.6); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .4s, transform .4s cubic-bezier(.2, .8, .2, 1), border-color .3s; }
.to-top svg { width: 18px; height: 18px; fill: none; stroke: var(--text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--line-2); }
.to-top:hover svg { transform: translateY(-3px); }

/* custom cursor (desktop only) */
.has-cursor, .has-cursor * { cursor: none !important; }
.cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; border-radius: 50%; mix-blend-mode: difference; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; }
.cursor-ring { width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1px solid rgba(255,255,255,.6); transition: width .3s, height .3s, margin .3s, background .3s, border-color .3s, opacity .3s; }
.cursor-ring.hover { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: rgba(255,255,255,.12); border-color: transparent; }
.cursor-ring.sky { width: 22px; height: 22px; margin: -11px 0 0 -11px; border-style: dashed; }
.cursor-ring.down { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
.cursor-out .cursor-dot, .cursor-out .cursor-ring { opacity: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .shipped { flex-direction: column; align-items: flex-start; gap: 18px; }
  .shipped > .stat-divider { display: none; }
  .orgs { width: 100%; display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; }
  .app-body { grid-template-columns: 1fr; }
  .app-visual { border-left: 0; border-top: 1px solid var(--line); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card:nth-child(4n) { border-right: 1px solid var(--line); }
  .card:nth-child(2n) { border-right: 0; }
  .card:nth-last-child(-n + 4) { border-bottom: 1px solid var(--line); }
  .card:nth-last-child(-n + 2) { border-bottom: 0; }
  .player { grid-template-columns: 1fr; }
  .player-now { max-width: 420px; }
  .game-wrap { grid-template-columns: 1fr; justify-items: center; }
  .game-side { width: 100%; max-width: 480px; }
}

@media (max-width: 860px) {
  .burger { display: block; }
  .nav { border-radius: 22px; flex-wrap: wrap; }
  .nav nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding: 8px 0 4px; }
  .nav nav.open { display: flex; }
  .nav nav a { padding: 12px 14px; font-size: 15px; }
  .nav nav a.nav-cta { margin: 6px 0 0; text-align: center; }
  .nav-pill { display: none; }
  .nav nav a:not(.nav-cta):hover, .nav nav a:not(.nav-cta).active { background: var(--fill); }
  .marquee { margin-top: 80px; }

  .hero { grid-template-columns: 1fr; padding-top: 100px; gap: 8px; }
  .hero-visual { order: -1; height: 52vh; max-height: 440px; }
  .scroll-hint { display: none; }

  .orgs { grid-template-columns: repeat(3, 1fr); row-gap: 18px; }
  .xp-row { grid-template-columns: 1fr; gap: 14px; padding: 24px; }
  .garage-body { grid-template-columns: 1fr; }
  .car-side { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .tacho { width: 170px; }
  .rev { width: auto; flex: 1; min-width: 150px; }
  .specs { grid-template-columns: 1fr 1fr; }
  .car-facts { grid-template-columns: 1fr; gap: 10px; }
  .contact-links { grid-template-columns: 1fr; }
  .vcard { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 24px; }
  .contact-card .vcard .kicker { justify-content: center; }
  .vcard-text p:not(.kicker) { margin-left: auto; margin-right: auto; }
  .interest-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .section { padding-top: 96px; }
  .stats { padding: 22px; }
  .stats .stat + .stat-divider + .stat { padding-left: 22px; }
  .shipped { padding: 22px; }
  .orgs { column-gap: 12px; }
  .org { flex-direction: column; gap: 8px; text-align: center; }
  .org span { font-size: 13px; }
  .cards { grid-template-columns: 1fr; }
  .card, .card:nth-child(n) { border-right: 0; border-bottom: 1px solid var(--line); }
  .card:last-child { border-bottom: 0; }
  .app-head, .app-info, .app-visual { padding: 22px; }
  .app-head { gap: 14px; }
  .app-icon { width: 52px; height: 52px; border-radius: 13px; }
  .app-title h3 { font-size: 22px; }
  .suite span { font-size: 11px; }
  .garage, .player, .arcade { padding: 20px; }
  .track { grid-template-columns: 20px 40px 1fr auto; gap: 10px; padding: 8px; }
  .track img { width: 40px; height: 40px; }
  .vol { width: 64px; }
  .sudoku, .snake-box { width: calc(100vw - 2 * var(--gutter) - 42px); }
  .numpad { gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal, .stagger > *, .hero-text > *, .portrait, .hero h1 .ch, .section h2 .w > span, .section-head .sub { opacity: 1 !important; transform: none !important; filter: none !important; }
}
