:root {
  --bg: #07030a;
  --bg-2: #12060f;
  --ink: #fff;
  --ink-dim: rgba(255, 255, 255, .68);
  --pink: #ff3ec9;
  --hot: #ff2d8b;
  --rose: #ff3c8e;
  --blue: #1f5bff;
  --cyan: #2bb7ff;
  --yellow: #ffe14a;
  --orange: #ff9a1f;
  --purple: #9b3dff;
  --lime: #b6ff3b;
  --f-display: "Unbounded", system-ui, sans-serif;
  --f-hand: "Caveat", cursive;
  --f-mono: "Space Mono", ui-monospace, monospace;
  --f-body: "Inter", system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; scrollbar-gutter: stable; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::after { /* film grain */
  content: "";
  position: fixed; inset: -50%;
  pointer-events: none; z-index: 100;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------- nav ---------- */
.nav {
  position: fixed; z-index: 50;
  top: 14px; left: 50%; transform: translateX(-50%);
  width: min(1100px, calc(100% - 24px));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 14px;
  border-radius: 999px;
  background: rgba(10, 4, 14, .45);
  border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  transition: background .3s;
}
.nav.scrolled { background: rgba(10, 4, 14, .78); }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-display); font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.nav-brand img { border-radius: 9px; }
.nav-links { display: flex; gap: 28px; font-size: 14px; font-weight: 500; }
.nav-links a { text-decoration: none; color: var(--ink-dim); transition: color .2s; }
.nav-links a:hover { color: #fff; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 700; border-radius: 999px; white-space: nowrap;
  transition: none;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px) scale(1.03); transition: transform .25s cubic-bezier(.2, .9, .3, 1.4), box-shadow .25s; }
.btn-pill {
  padding: 10px 18px; font-size: 14px;
  background: linear-gradient(135deg, var(--pink), var(--hot));
  box-shadow: 0 6px 24px rgba(255, 45, 139, .45);
}
.btn-store {
  position: relative;
  padding: 12px 24px 12px 20px; min-height: 54px;
  background: #fff; color: #000;
  font-family: var(--f-display); font-size: 18px; line-height: 1;
  box-shadow: 0 12px 40px rgba(155, 61, 255, .4);
}
.btn-store::before {
  content: ''; position: absolute; inset: -3px; border-radius: 999px; z-index: -1;
  background: linear-gradient(90deg, var(--purple), var(--blue), var(--cyan), var(--pink), var(--purple));
  background-size: 300% 100%;
  animation: gradshift 3s linear infinite;
}
.btn-store span { display: flex; flex-direction: column; text-align: left; }
.btn-store small { font-family: var(--f-body); font-size: 11px; font-weight: 500; opacity: .7; margin-bottom: 3px; }
.btn-ghost {
  padding: 15px 22px; font-size: 14px; font-family: var(--f-mono); letter-spacing: .04em; text-transform: uppercase;
  border: 1.5px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .04);
}
.btn-android {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: 50px; min-height: 54px;
  font-family: var(--f-body); font-weight: 700; font-size: 17px;
  color: var(--ink); text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .06);
  white-space: nowrap;
}
.btn-android:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .35); transition: background .15s, border-color .15s; }
.btn-android span { display: flex; flex-direction: column; text-align: left; }
.btn-android small { font-family: var(--f-body); font-size: 11px; font-weight: 500; opacity: .6; margin-bottom: 2px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: 100svh; min-height: 680px;
  overflow: hidden;
  display: grid; place-items: center;
  isolation: isolate;
}
/* --- meteor streaks --- */
.meteor {
  position: absolute;
  width: var(--mw, 160px);
  height: 1.5px;
  border-radius: 999px;
  /* head (left) is bright white, tail fades right — meteor moves left */
  background: linear-gradient(90deg, #fff 0%, rgba(200,230,255,.85) 25%, rgba(43,183,255,.4) 60%, transparent);
  box-shadow: 0 0 5px 1px rgba(255,255,255,.5);
  filter: blur(0.7px);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  animation: meteor var(--md, 9s) linear var(--delay, 0s) infinite;
}
@keyframes meteor {
  0%, 72%, 100% { opacity: 0; transform: rotate(-38deg) translateX(0px); }
  74% { opacity: .95; }
  88% { opacity: 0; transform: rotate(-38deg) translateX(-900px); }
}

/* --- floating bubbles --- */
.bubbles { position: absolute; inset: 0; z-index: -1; pointer-events: none; filter: blur(7px); }
.bubble {
  position: absolute; border-radius: 50%;
  animation: float-bub var(--dur, 7s) ease-in-out var(--delay, 0s) infinite;
  will-change: transform;
}
@keyframes float-bub {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-28px) scale(1.05); }
}
/* glossy sphere look: highlight at 30% 30%, fade to transparent edge */
.b1 { width: 260px; height: 260px; left: -80px; top: 15%; --dur: 7s; --delay: 0s;
  background: radial-gradient(circle at 32% 30%, rgba(255,255,255,.55) 0%, #ff3ec9 22%, #9b3dff 56%, rgba(80,0,180,.18) 85%, transparent 100%); }
.b2 { width: 200px; height: 200px; right: -50px; top: 8%; --dur: 8.5s; --delay: -2.1s;
  background: radial-gradient(circle at 32% 30%, rgba(255,255,255,.55) 0%, #2bb7ff 22%, #7a5cff 56%, rgba(0,60,180,.18) 85%, transparent 100%); }
.b3 { width: 150px; height: 150px; left: 22%; top: -50px; --dur: 6.2s; --delay: -4s;
  background: radial-gradient(circle at 32% 30%, rgba(255,255,255,.5) 0%, #c02dff 22%, #2bb7ff 56%, rgba(0,80,200,.18) 85%, transparent 100%); }
.b4 { width: 180px; height: 180px; right: 12%; bottom: -40px; --dur: 9s; --delay: -1.4s;
  background: radial-gradient(circle at 32% 30%, rgba(255,255,255,.5) 0%, #ff3ec9 22%, #7a5cff 56%, rgba(80,0,180,.18) 85%, transparent 100%); }
.b5 { width: 120px; height: 120px; left: 55%; top: 55%; --dur: 7.5s; --delay: -3.3s;
  background: radial-gradient(circle at 32% 30%, rgba(255,255,255,.45) 0%, #9b3dff 22%, #ff3ec9 56%, rgba(180,0,80,.18) 85%, transparent 100%); }
.b6 { width: 90px; height: 90px; left: 35%; bottom: 10%; --dur: 6.8s; --delay: -5.5s;
  background: radial-gradient(circle at 32% 30%, rgba(255,255,255,.45) 0%, #2bb7ff 22%, #9b3dff 56%, rgba(60,0,160,.18) 85%, transparent 100%); }

/* --- gradient cursor --- */
body { cursor: none; }
#cursor {
  position: fixed; top: 0; left: 0;
  width: 22px; height: 22px; border-radius: 50%;
  pointer-events: none; z-index: 99999;
  transform: translate(-50%, -50%);
  background: linear-gradient(90deg, var(--purple), var(--blue), var(--cyan), var(--pink), var(--purple));
  background-size: 300% 100%;
  animation: gradshift 2s linear infinite;
  box-shadow: 0 0 8px 2px rgba(155,61,255,.7), 0 0 18px 4px rgba(43,183,255,.4);
  opacity: 0;
  transition: opacity .15s;
}
#cursor.cursor-link {
  background: transparent;
  box-shadow: none;
  width: 42px; height: 42px;
}
#cursor.cursor-link::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  padding: 2.5px;
  background: linear-gradient(90deg, var(--purple), var(--blue), var(--cyan), var(--pink), var(--purple));
  background-size: 300% 100%;
  animation: gradshift 2s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
}

.floaters { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.fl { position: absolute; will-change: transform; }
.hero-core { position: relative; z-index: 2; text-align: center; padding: 70px 16px 0; will-change: transform, opacity; }

.bob { animation: bob var(--dur, 7s) ease-in-out var(--delay, 0s) infinite; }
@keyframes bob {
  0%, 100% { transform: translate(-50%, -50%) rotate(var(--r, 0deg)) translateY(0); }
  50% { transform: translate(-50%, -50%) rotate(calc(var(--r, 0deg) + 6deg)) translateY(-18px); }
}
.spin { animation: spinc var(--dur, 20s) linear infinite; width: var(--s); height: var(--s); transform: translate(-50%, -50%); filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .45)); }
@keyframes spinc { from { transform: translate(-50%, -50%) rotate(0); } to { transform: translate(-50%, -50%) rotate(360deg); } }

.orb {
  width: var(--s); height: var(--s); border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .55) 0 6%, transparent 22%),
    radial-gradient(circle at 42% 40%, #46d0ff 0%, #1fa0ff 38%, #1a7dff 56%, #ffe14a 82%, #ffc400 100%);
  box-shadow: inset -6px -10px 24px rgba(0, 20, 80, .35), 0 0 50px rgba(43, 183, 255, .25);
}

.tube {
  position: relative;
  width: var(--len); height: var(--d);
  border-radius: 0 calc(var(--d) / 2) calc(var(--d) / 2) 0 / 0 50% 50% 0;
  background: repeating-linear-gradient(90deg, var(--stripe-a, #ff3ec9) 0 7px, var(--stripe-b, #2bb7ff) 7px 14px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .45);
}
.tube::after { /* cylinder shading */
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, .45) 0%, rgba(255, 255, 255, .05) 30%, rgba(0, 0, 0, .05) 60%, rgba(0, 0, 0, .45) 100%);
}
.tube::before { /* open end cap */
  content: ""; position: absolute; z-index: 1;
  left: calc(var(--d) * -.28); top: 0;
  width: calc(var(--d) * .56); height: 100%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 60% 50%, #7a0a3f 0 30%, #ff6a00 55%, #ffb21f 75%);
  border: 3px solid #fff3a8;
}
.tube-rainbow { background: repeating-linear-gradient(90deg, #ff3ec9 0 10px, #ffe14a 10px 20px, #2bb7ff 20px 30px, #9b3dff 30px 40px); }
.tube-rainbow::before { background: radial-gradient(ellipse at 55% 44%, #0d0520 0 22%, #9b3dff 50%, #ff3ec9 68%, #ffe14a 84%); border-color: #6ad9ff; }

.xflower { position: relative; width: var(--s); height: var(--s); transform: translate(-50%, -50%); }
.xflower svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
@property --spin { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
.xflower { animation: xspin 22s linear infinite; }
@keyframes xspin { to { --spin: 360deg; } }
.xflower svg { transform: translate(var(--tx), var(--ty)) rotate(var(--spin)); }

.twinkle {
  position: absolute; width: var(--s); height: var(--s); fill: var(--c);
  filter: drop-shadow(0 0 8px var(--c));
  animation: twinkle 2.6s ease-in-out var(--delay, 0s) infinite;
}
@keyframes twinkle { 0%, 100% { transform: scale(.4) rotate(0); opacity: .3; } 50% { transform: scale(1) rotate(90deg); opacity: 1; } }

/* polaroid */
.pol {
  --w: clamp(120px, 13vw, 190px);
  position: relative; margin: 0;
  width: var(--w);
  padding: 8px 8px 0;
  background: #fbf8f1;
  border-radius: 3px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .08), 0 18px 40px rgba(0, 0, 0, .5);
  transform: translate(-50%, -50%) rotate(var(--r, 0deg));
}
.pol img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 1px; filter: saturate(1.15) contrast(1.05); pointer-events: none; user-select: none; -webkit-user-drag: none; }
.pol figcaption { font-family: var(--f-hand); font-weight: 700; color: #222; font-size: calc(var(--w) * .12); text-align: center; padding: 4px 0 8px; line-height: 1.1; white-space: nowrap; }
.pol-sm { --w: clamp(100px, 10vw, 150px); }
.tape {
  position: absolute; left: 50%; top: -12px;
  width: 44%; height: 24px;
  transform: translateX(-50%) rotate(-4deg);
  background: repeating-linear-gradient(45deg, rgba(255, 225, 74, .85) 0 6px, rgba(255, 240, 160, .85) 6px 12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
  -webkit-mask: linear-gradient(90deg, transparent 0 2px, #000 2px calc(100% - 2px), transparent 0);
}
.tape-pink { background: repeating-linear-gradient(45deg, rgba(255, 62, 201, .8) 0 6px, rgba(255, 160, 225, .8) 6px 12px); transform: translateX(-50%) rotate(5deg); }
.tape-blue { background: repeating-linear-gradient(-45deg, rgba(43, 183, 255, .8) 0 6px, rgba(160, 225, 255, .8) 6px 12px); transform: translateX(-50%) rotate(-2deg); }

/* extruded 3D type (shadows set in JS) */
.x3d { font-family: var(--f-display); font-weight: 900; color: #fff; margin: 0; letter-spacing: -.035em; line-height: .9; }
.logo { margin: 0; }
.logo-word { font-size: clamp(44px, 10.5vw, 155px); display: block; letter-spacing: -.03em; }
.kicker {
  margin: clamp(26px, 4vh, 44px) 0 0;
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(14px, 1.7vw, 22px);
  letter-spacing: .55em; text-transform: uppercase;
  padding-left: .55em;
}
.tag-big {
  margin: 18px 0 0;
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(18px, 5vw, 58px); line-height: 1.08; letter-spacing: -.02em;
  text-transform: uppercase;
}
.tag-sub {
  margin: 12px 0 0;
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(11px, 1.25vw, 16px); letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-dim);
}
.cta-row { margin-top: clamp(22px, 4vh, 38px); display: flex; align-items: center; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- ribbons ---------- */
.ribbons { position: relative; height: 210px; margin-top: -60px; z-index: 5; overflow: hidden; }
.ribbon {
  position: absolute; left: -5%; width: 110%;
  padding: 16px 0; overflow: hidden; white-space: nowrap;
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(20px, 2.6vw, 34px); letter-spacing: -.01em;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .4);
}
.ribbon-a { top: 40px; background: linear-gradient(90deg, var(--hot), var(--pink), var(--purple)); transform: rotate(-3deg); }
.ribbon-b { top: 100px; background: var(--yellow); color: #14060f; transform: rotate(2.5deg); }
.ribbon i { font-style: normal; color: var(--yellow); margin: 0 .5em; }
.ribbon b { color: var(--hot); }
.ribbon-track { display: inline-flex; animation: marquee 32s linear infinite; }
.ribbon-track.rev { animation-direction: reverse; animation-duration: 38s; }
.ribbon-track span { padding-right: .3em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- section heads ---------- */
.section-head { text-align: center; max-width: 820px; margin: 0 auto; padding: 0 20px; }
.eyebrow { font-family: var(--f-mono); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--yellow); margin: 0 0 16px; }
.h2 { font-family: var(--f-display); font-weight: 900; font-size: clamp(32px, 5.2vw, 68px); line-height: 1.02; letter-spacing: -.03em; margin: 0; }
.grad-text {
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue), var(--cyan), var(--pink));
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradshift 8s linear infinite;
}
.grad-2 { background-image: linear-gradient(90deg, var(--purple), var(--blue), var(--cyan), var(--pink), var(--purple)); background-size: 300% 100%; }
@keyframes gradshift { to { background-position: 300% 0; } }
.lede { color: var(--ink-dim); font-size: clamp(18px, 1.7vw, 22px); line-height: 1.55; margin: 20px auto 0; max-width: 600px; }
.lede em { font-family: var(--f-hand); font-size: 1.4em; color: var(--pink); font-style: normal; }

/* ---------- scrapbook ---------- */
.scrap {
  position: relative; padding: 90px 0 110px;
}
.scrap::before {
  content: ""; position: absolute; pointer-events: none; z-index: -1;
  left: 0; right: 0; top: -150px; bottom: -200px;
  background:
    radial-gradient(60% 50% at 15% 40%, rgba(155, 61, 255, .22), transparent 70%),
    radial-gradient(50% 50% at 85% 60%, rgba(255, 62, 201, .2), transparent 70%),
    radial-gradient(55% 45% at 50% 76%, rgba(43, 183, 255, .2), transparent 60%),
    radial-gradient(60% 38% at 50% 88%, rgba(155, 61, 255, .16), transparent 55%);
}
.board-wrap {
  position: relative;
  width: min(1200px, calc(100% - 32px));
  margin: 56px auto 0;
}
.board {
  position: relative;
  width: 100%;
  height: clamp(640px, 62vw, 780px);
  border-radius: 28px;
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .12) 1px, transparent 1.5px) 0 0 / 22px 22px,
    linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .01));
  border: 1px solid rgba(255, 255, 255, .08);
}
.board .pol, .board .sticker { position: absolute; transform: translate(var(--x, 0px), var(--y, 0px)) rotate(var(--r, 0deg)) scale(var(--sc, 1)); }
.board .pol { --w: clamp(120px, 15vw, 200px); }
.drag { cursor: grab; touch-action: none; user-select: none; transition: transform .5s cubic-bezier(.2, .9, .25, 1.25), box-shadow .3s; }
.drag.dragging { cursor: grabbing; transition: box-shadow .3s; --sc: 1.06; box-shadow: 0 2px 0 rgba(0, 0, 0, .08), 0 40px 80px rgba(0, 0, 0, .6); }
.drag:not(.dragging):hover { --sc: 1.03; }

.sticker { filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .45)); }
.st-burst svg { width: clamp(90px, 9vw, 120px); display: block; }
.st-burst .burst { fill: var(--hot); stroke: #fff; stroke-width: 4; }
.st-burst text { fill: #fff; font-family: var(--f-display); font-weight: 900; font-size: 17px; text-anchor: middle; }
.st-bubble span {
  display: block; padding: 12px 22px;
  background: var(--lime); color: #14060f;
  font-family: var(--f-display); font-weight: 900; font-size: clamp(22px, 2.4vw, 30px);
  border-radius: 999px; border: 4px solid #fff; position: relative;
}
.st-bubble span::after { content: ""; position: absolute; left: 22%; bottom: -16px; border: 9px solid transparent; border-top: 14px solid #fff; }
.st-smile img { width: clamp(70px, 7vw, 96px); border-radius: 22%; border: 4px solid #fff; }
.st-label span {
  display: block; padding: 8px 14px; border-radius: 6px; white-space: nowrap;
  background: #14060f; color: var(--orange);
  font-family: var(--f-mono); font-weight: 700; font-size: 14px; letter-spacing: .12em;
  border: 2px dashed var(--orange);
}
.st-heart svg { width: clamp(60px, 6vw, 84px); display: block; fill: var(--hot); stroke: #fff; stroke-width: 6; }
.st-flower svg { width: clamp(64px, 6vw, 90px); display: block; }
.st-emoji { font-size: clamp(58px, 7vw, 90px); line-height: 1; filter: drop-shadow(0 4px 14px rgba(0,0,0,.4)); }
.doodle { position: absolute; pointer-events: none; color: #fff; font-family: var(--f-hand); font-size: clamp(24px, 2.4vw, 34px); font-weight: 700; display: flex; align-items: center; gap: 4px; }
.doodle svg { width: 120px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.doodle-2 { color: var(--yellow); transform: rotate(-6deg); }
.shuffle {
  position: absolute; left: 50%; bottom: -24px; transform: translateX(-50%);
  border: 0; cursor: pointer; white-space: nowrap;
  padding: 14px 26px; border-radius: 999px;
  font-family: var(--f-mono); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  color: #14060f; background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(255, 225, 74, .25), 0 14px 30px rgba(0, 0, 0, .5);
  transition: transform .25s cubic-bezier(.2, .9, .3, 1.4);
}
.shuffle:hover { transform: translateX(-50%) scale(1.06) rotate(-2deg); }

/* ---------- features ---------- */
.features { padding: 110px 0 120px; position: relative; }
.phones {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 48px 36px;
  width: min(1200px, calc(100% - 32px));
  margin: 64px auto 0;
  perspective: 1200px;
}
.phone-card { text-align: center; }
.phone {
  position: relative;
  width: 100%; aspect-ratio: 9 / 16;
  margin: 0 auto 0;
  border-radius: 38px; padding: 8px;
  background: linear-gradient(145deg, #2b2330, #0e0910);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .14), 0 30px 60px rgba(0, 0, 0, .6), 0 0 80px -10px var(--glow);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform .4s cubic-bezier(.2, .8, .3, 1), box-shadow .4s;
}
.phone::before { /* glow puddle */
  content: ""; position: absolute; inset: 10% -30% -10%; z-index: -1;
  background: radial-gradient(closest-side, var(--glow), transparent);
  opacity: .35; filter: blur(30px);
}
.phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 30px; background: #000; display: block; }
.phone-card:hover .phone { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .25), 0 40px 80px rgba(0, 0, 0, .7), 0 0 120px -5px var(--glow); }
.chip {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--glow); border: 1px solid color-mix(in srgb, var(--glow) 50%, transparent);
  background: color-mix(in srgb, var(--glow) 10%, transparent);
}
.phone-card h3 { font-family: var(--f-display); font-weight: 700; font-size: 22px; letter-spacing: -.02em; margin: 14px 0 6px; }
.phone-card p { color: var(--ink-dim); margin: 0 auto; max-width: 260px; line-height: 1.5; font-size: 15px; }

/* ---------- memories heading ---------- */
.memories-head { text-align: center; padding: 80px 16px 70px; }

/* ---------- join banner ---------- */
.join-banner {
  position: relative; isolation: isolate;
  text-align: center; padding: 80px 16px 120px;
}
.join-text {
  font-family: var(--f-display); font-size: clamp(28px, 5vw, 60px); font-weight: 900;
  color: var(--ink); line-height: 1.15; letter-spacing: -.01em; text-transform: uppercase;
}
.join-num { font-size: clamp(52px, 10vw, 120px); display: block; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }

/* ---------- photo river ---------- */
.river { padding: 20px 0 120px; display: grid; gap: 22px; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.river-row { overflow: visible; }
.river-track { display: flex; gap: 22px; width: max-content; animation: marquee 60s linear infinite; }
.river-track.rev { animation-direction: reverse; animation-duration: 70s; }
.river:hover .river-track { animation-play-state: paused; }
.river img {
  height: clamp(170px, 20vw, 260px); width: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 18px;
  transition: transform .4s cubic-bezier(.2, .9, .3, 1.3), filter .4s;
  filter: saturate(1.1);
}
.river img:hover { transform: scale(1.12) rotate(-2deg); filter: saturate(1.4); z-index: 10; position: relative; }

/* ---------- final ---------- */
.final {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 140px 20px 160px; text-align: center;
}
.final-card { position: relative; max-width: 760px; margin: 0 auto; }
.icon-orbit { position: relative; max-width: calc(100vw - 140px); width: 150px; height: 150px; margin: 0 auto 40px; }
.final-icon { width: 100%; border-radius: 34px; box-shadow: 0 0 60px rgba(255, 62, 201, .6), 0 0 140px rgba(155, 61, 255, .4); animation: floaty 5s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-10px) rotate(-3deg); } }
.orbit { position: absolute; inset: -34px; border-radius: 50%; border: 1.5px dashed rgba(255, 62, 201, .45); animation: spin 18s linear infinite; }
.orbit::after { content: ""; position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 16px var(--yellow); }
.o2 { inset: -64px; border-color: rgba(43, 183, 255, .3); animation-duration: 28s; animation-direction: reverse; }
.o2::after { background: var(--cyan); box-shadow: 0 0 16px var(--cyan); }
.final-title { font-size: clamp(44px, 8vw, 110px); }

/* ---------- footer ---------- */
.footer {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px;
  width: min(1100px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0 44px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: var(--ink-dim); font-size: 14px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 700; color: #fff; }
.footer-brand img { border-radius: 8px; }
.footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.footer p { margin: 0; }

/* sparkle cursor trail */
.spark { position: fixed; z-index: 90; pointer-events: none; width: 14px; height: 14px; margin: -7px 0 0 -7px; animation: sparkfade .9s ease-out forwards; }
@keyframes sparkfade { from { opacity: 1; transform: translate(0, 0) scale(1) rotate(0); } to { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.2) rotate(180deg); } }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .phones { grid-template-columns: repeat(3, 82%); overflow-x: auto; scroll-snap-type: x mandatory; gap: 20px; width: 100%; padding: 0 9% 20px; perspective: none; scrollbar-width: none; }
  .phones::-webkit-scrollbar { display: none; }
  .phone-card { scroll-snap-align: center; }
  .board { height: 980px; overflow: hidden; }
  .board .pol { --w: clamp(120px, 30vw, 180px); }
}
@media (max-width: 640px) {
  .hide-sm { display: none; }
  .pol-fl .pol { --w: 96px; }
  .ribbons { height: 170px; }
  .ribbon-a { top: 30px; } .ribbon-b { top: 84px; }
  .btn-ghost { display: none; }
  .doodle svg { width: 70px; }
  .doodle-2 { display: none; }
  .tag-sub { max-width: 30ch; margin-inline: auto; line-height: 1.6; }
}
@media (max-width: 420px) {
  .nav-brand span { display: none; }
  .board .pol { --w: 42vw; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
