@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,600;12..96,800&family=JetBrains+Mono:wght@400;700&display=swap");

:root {
  --bg: #eef8fb;
  --ink: #062a3a;
  --muted: #4d6e7c;
  --accent: #00a3d9;
  --accent-2: #5fd36b;
  --card: #ffffff;
  --line: rgba(6, 42, 58, 0.1);
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
body[data-mode="rot"] {
  --bg: #0b0f0a;
  --ink: #d8ffcc;
  --muted: #7fa375;
  --accent: #9dff3a;
  --accent-2: #ff3d9a;
  --card: #121a10;
  --line: rgba(157, 255, 58, 0.15);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  transition: background .6s var(--ease), color .6s var(--ease);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

#field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
body[data-mode="rot"]::after {
  content: ""; position: fixed; inset: 0; z-index: 50; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.07) 0 1px, transparent 1px 4px);
}

/* nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 48px);
  transition: background .3s, backdrop-filter .3s;
}
.nav.scrolled { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: -.03em; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.wordmark i { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); transition: background .6s; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav ul a { text-decoration: none; font-size: .92rem; font-weight: 500; padding: 8px 14px; border-radius: 999px; color: var(--muted); transition: color .2s, background .2s; }
.nav ul a:hover, .nav ul a.on { color: var(--ink); background: var(--line); }

main, footer { position: relative; z-index: 1; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 48px); }

/* hero */
.hero { min-height: min(100vh, 920px); display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 5vw, 80px); align-items: center; padding-top: 110px; padding-bottom: 60px; }
.eyebrow { font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); transition: color .6s; }
h1 {
  font-family: var(--display); font-weight: 800; letter-spacing: -.045em; line-height: .9;
  font-size: clamp(3.4rem, 9vw, 8.4rem); margin: 18px 0 26px;
}
h1 .stroke { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.hero p { font-size: 1.15rem; line-height: 1.6; color: var(--muted); max-width: 440px; margin: 0 0 34px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  font: 600 .98rem var(--body); padding: 15px 26px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none;
  background: var(--ink); color: var(--bg); transition: transform .25s var(--ease), background .6s, color .6s;
}
.btn:hover { transform: translateY(-3px); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }

/* tilt cards */
.tilt { position: relative; transform-style: preserve-3d; transition: transform .5s var(--ease); will-change: transform; cursor: zoom-in; }
.tilt img { border-radius: 22px; width: 100%; height: 100%; object-fit: cover; }
.tilt::after {
  content: ""; position: absolute; inset: 0; border-radius: 22px; pointer-events: none;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.45), transparent 45%);
  opacity: 0; transition: opacity .3s;
}
.tilt:hover::after { opacity: 1; }
.hero-card { aspect-ratio: 1170 / 1532; box-shadow: 0 40px 80px -30px rgba(6, 42, 58, .45); border-radius: 22px; }
.tag {
  position: absolute; left: -18px; bottom: 28px; transform: translateZ(40px);
  background: var(--card); color: var(--ink); padding: 12px 16px; border-radius: 14px; font-size: .85rem; font-weight: 600;
  box-shadow: 0 14px 30px -10px rgba(0,0,0,.25); display: flex; gap: 10px; align-items: center;
}
.tag b { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

/* marquee */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; background: color-mix(in srgb, var(--bg) 70%, transparent); }
.marquee div { display: flex; gap: 48px; width: max-content; animation: slide 28s linear infinite; font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 3.5vw, 2.8rem); letter-spacing: -.03em; white-space: nowrap; }
.marquee span:nth-child(even) { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
@keyframes slide { to { transform: translateX(-50%); } }

/* sections */
section { padding: clamp(80px, 12vw, 150px) 0; }
h2 { font-family: var(--display); font-weight: 800; letter-spacing: -.04em; line-height: .95; font-size: clamp(2.4rem, 5.5vw, 4.6rem); margin: 14px 0 0; }
.head { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; margin-bottom: 50px; }

/* mode switch */
.switch { position: relative; display: inline-flex; padding: 5px; border-radius: 999px; background: var(--line); }
.switch button { position: relative; z-index: 1; font: 600 .92rem var(--body); border: 0; background: none; color: var(--muted); padding: 11px 20px; cursor: pointer; border-radius: 999px; transition: color .3s; }
.switch button.on { color: var(--bg); }
.switch .pill { position: absolute; top: 5px; bottom: 5px; border-radius: 999px; background: var(--ink); transition: left .45s var(--ease), width .45s var(--ease), background .6s; }

.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product {
  background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 28px; min-height: 300px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .35s var(--ease), background .6s, border-color .6s;
}
.product:hover { transform: translateY(-6px); }
.product .num { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.product h3 { font-family: var(--display); font-size: 1.7rem; letter-spacing: -.03em; margin: 0 0 10px; }
.product p { margin: 0; color: var(--muted); line-height: 1.55; }
.product .row { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; }
.product .price { font-family: var(--display); font-weight: 800; font-size: 1.6rem; }
.add { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--accent); color: var(--bg); font-size: 1.4rem; cursor: pointer; transition: transform .3s var(--ease), background .6s; }
.add:hover { transform: rotate(90deg) scale(1.08); }
.add.done { background: var(--accent-2); }
.orb { width: 92px; height: 92px; border-radius: 50%; margin-bottom: 30px; }
.o1 { background: radial-gradient(circle at 32% 28%, #fff 0 10%, #8fe9ff 30%, #00a3d9 70%, #045c84); }
.o2 { background: radial-gradient(circle at 32% 28%, #fff 0 10%, #c8f7b0 30%, #5fd36b 70%, #2a7a33); }
.o3 { background: radial-gradient(circle at 32% 28%, #fff 0 10%, #ffe1b3 30%, #f29a4a 70%, #9c4a17); }
.o4, .o5, .o6 { border-radius: 14px; background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 10px), var(--card); outline: 1px solid var(--accent); animation: glitchbox 2.2s steps(1) infinite; }
.o5 { background: repeating-linear-gradient(0deg, var(--accent-2) 0 4px, transparent 4px 9px); outline-color: var(--accent-2); animation-delay: -.7s; }
.o6 { background: conic-gradient(from 0deg, var(--accent), transparent, var(--accent-2), transparent, var(--accent)); animation-delay: -1.4s; }
@keyframes glitchbox { 0%, 88%, 100% { transform: none; } 90% { transform: translate(4px, -2px) skewX(8deg); } 94% { transform: translate(-3px, 2px); } }
[data-set] { display: none; }
body:not([data-mode="rot"]) [data-set="aero"], body[data-mode="rot"] [data-set="rot"] { display: contents; }
body[data-mode="rot"] .product h3, body[data-mode="rot"] h1, body[data-mode="rot"] h2 { font-family: var(--mono); letter-spacing: -.02em; }

/* gallery */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.shot { border-radius: 22px; overflow: hidden; position: relative; aspect-ratio: 4 / 5; }
.shot .tilt { height: 100%; }
.shot figcaption { position: absolute; left: 18px; bottom: 18px; background: var(--card); color: var(--ink); padding: 10px 14px; border-radius: 12px; font-weight: 600; font-size: .9rem; pointer-events: none; transform: translateZ(30px); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.stats div { padding: 34px 0 0; }
.stats b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 6vw, 5rem); letter-spacing: -.04em; }
.stats span { color: var(--muted); }

/* founder */
.founder { min-height: min(100vh, 920px); display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 5vw, 80px); align-items: center; padding-top: 110px; }
.photo-slot { aspect-ratio: 3 / 4; border-radius: 22px; border: 1.5px dashed var(--line); display: grid; place-items: center; color: var(--muted); font-family: var(--mono); font-size: .85rem; background: color-mix(in srgb, var(--card) 60%, transparent); }
.founder p { font-size: 1.15rem; line-height: 1.65; color: var(--muted); max-width: 520px; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(3, 15, 22, .85); backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transition: opacity .3s; cursor: zoom-out; padding: 30px; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-height: 90vh; width: auto; border-radius: 18px; transform: scale(.94); transition: transform .4s var(--ease); }
.lightbox.open img { transform: none; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 90; transform: translate(-50%, 120px); background: var(--ink); color: var(--bg); padding: 14px 22px; border-radius: 999px; font-weight: 600; transition: transform .45s var(--ease); }
.toast.show { transform: translate(-50%, 0); }

/* reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

footer { border-top: 1px solid var(--line); padding: 34px 0 44px; color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .hero, .founder { grid-template-columns: 1fr; }
  .products { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .nav ul a { padding: 8px 9px; font-size: .85rem; }
  .tag { left: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* founder photo */
.fjump { transition: transform .9s cubic-bezier(.2, .9, .3, 1); touch-action: none; user-select: none; -webkit-user-select: none; }
.fjump.charging { transform: translateY(-46px) scale(1.03); transition: transform 1.4s cubic-bezier(.2, .8, .2, 1); }
.fjump.land { animation: land .55s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes land { 0% { transform: translateY(-46px); } 45% { transform: translateY(8px) scaleY(.97) scaleX(1.02); } 100% { transform: none; } }
.fcard { aspect-ratio: 1073 / 1400; border-radius: 22px; overflow: hidden; cursor: grab; box-shadow: 0 40px 80px -30px rgba(6, 42, 58, .5); }
.fcard img { transform: scale(1.08) translate(var(--px, 0), var(--py, 0)); transition: transform .4s var(--ease); pointer-events: none; }
.fjump.charging .fcard { cursor: grabbing; }
.hint { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); background: rgba(6,42,58,.75); color: #fff; font: 600 .82rem var(--body); padding: 8px 14px; border-radius: 999px; backdrop-filter: blur(6px); transition: opacity .3s; pointer-events: none; white-space: nowrap; }
.pin { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.35); z-index: 2; }
.pin::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid #fff; animation: ring 2s infinite; }
.pin::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--accent); }
@keyframes ring { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.pin span { position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translate(-50%, 6px); background: var(--card); color: var(--ink); font: 600 .82rem var(--body); padding: 8px 12px; border-radius: 10px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--ease); box-shadow: 0 10px 24px -8px rgba(0,0,0,.35); }
.pin:hover span, .pin:focus-visible span, .pin.show span { opacity: 1; transform: translate(-50%, 0); }
.ripple { position: absolute; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; border: 2px solid rgba(255,255,255,.9); pointer-events: none; animation: rip .8s ease-out forwards; }
@keyframes rip { to { transform: scale(9); opacity: 0; } }
.fstats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 36px; margin: 6px 0 34px; }
.fstats b { display: block; font-family: var(--display); font-weight: 800; font-size: 2rem; letter-spacing: -.03em; }
.fstats span { color: var(--muted); font-size: .9rem; }

/* cart */
.cartbtn { margin-left: 8px; display: inline-flex; align-items: center; gap: 8px; font: 600 .92rem var(--body); padding: 9px 16px; border-radius: 999px; border: 0; cursor: pointer; background: var(--ink); color: var(--bg); transition: transform .25s var(--ease), background .6s, color .6s; }
.cartbtn:hover { transform: translateY(-2px); }
.cartbtn b { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--bg); display: grid; place-items: center; font-size: .78rem; }
.cartbtn.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.15); } }
.nav .right { display: flex; align-items: center; }
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(3,15,22,.45); opacity: 0; pointer-events: none; transition: opacity .3s; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 81; width: min(420px, 100%); background: var(--bg); border-left: 1px solid var(--line); transform: translateX(100%); transition: transform .45s var(--ease), background .6s; display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.drawer header { display: flex; justify-content: space-between; align-items: center; padding: 24px 26px; border-bottom: 1px solid var(--line); }
.drawer h3 { font-family: var(--display); font-size: 1.6rem; letter-spacing: -.03em; margin: 0; }
.x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--line); color: var(--ink); font-size: 1.2rem; cursor: pointer; }
.items { flex: 1; overflow-y: auto; padding: 10px 26px; }
.item { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.item h4 { margin: 0; font-size: 1.05rem; }
.item .ip { font-weight: 700; text-align: right; }
.qty { display: inline-flex; align-items: center; gap: 4px; background: var(--line); border-radius: 999px; padding: 3px; width: max-content; }
.qty button { width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--card); color: var(--ink); cursor: pointer; font-weight: 700; }
.qty span { min-width: 22px; text-align: center; font-weight: 600; }
.rm { justify-self: end; align-self: center; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: .85rem; text-decoration: underline; }
.empty { color: var(--muted); padding: 40px 0; text-align: center; }
.drawer footer { padding: 22px 26px 26px; border-top: 1px solid var(--line); }
.total { display: flex; justify-content: space-between; font-family: var(--display); font-weight: 800; font-size: 1.4rem; margin-bottom: 16px; }
.drawer .btn { width: 100%; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.done-msg { text-align: center; padding: 60px 10px; }
.done-msg b { display: block; font-family: var(--display); font-size: 1.8rem; letter-spacing: -.03em; margin-bottom: 8px; }
.done-msg span { color: var(--muted); }
