/* Zoodiac · 十二灵 — zoodiac.uk
   Brand tokens mirror the app (warm paper + ink, per-zodiac accents).
   3D: CSS transforms only (ring, phone, tilt cards); no libraries. */

:root {
  --paper: #f6efe4;
  --paper-2: #fbf6ec;
  --card: #fffdf8;
  --ink: #2a211b;
  --ink-2: #4d4138;
  --muted: #6b5d52;
  --line: #e7dcc9;
  --accent: #c2410c;
  --accent-ink: #fff;
  --dragon: #3fa36b;
  --dragon-dark: #1e6a43;
  --gold: #f3c551;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow-1: 0 2px 6px rgba(42, 33, 27, .06), 0 12px 32px rgba(42, 33, 27, .08);
  --shadow-2: 0 10px 24px rgba(42, 33, 27, .10), 0 30px 70px rgba(42, 33, 27, .16);
  --shadow-phone: 0 40px 90px rgba(30, 106, 67, .28), 0 12px 30px rgba(42, 33, 27, .18);
  /* Type system: display = self-hosted Fraunces (Latin) + Noto Serif SC/KR subsets (CJK) + Noto Serif (Cyrillic);
     body = system sans (native, readable, zero bytes). Order matters per glyph: Latin -> CJK -> Cyrillic. */
  --font-display: "Fraunces", "Noto Serif SC Site", "Noto Serif KR Site", "Noto Serif Site", "Songti SC", "Hiragino Mincho ProN", "Yu Mincho", "Apple SD Gothic Neo", "Nanum Myeongjo", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1180px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1b1613;
    --paper-2: #221c18;
    --card: #262019;
    --ink: #f3ebdf;
    --ink-2: #d9cdbf;
    --muted: #a99a8b;
    --line: #3a312a;
    --accent: #ff8a4c;
    --shadow-1: 0 2px 6px rgba(0,0,0,.3), 0 12px 32px rgba(0,0,0,.35);
    --shadow-2: 0 10px 24px rgba(0,0,0,.4), 0 30px 70px rgba(0,0,0,.5);
    --shadow-phone: 0 40px 90px rgba(0,0,0,.55), 0 12px 30px rgba(0,0,0,.4);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
body {
  margin: 0; font: 17px/1.65 var(--font-body); color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; line-height: 1.12; font-weight: 700; }

/* ---- Display faces (headings, wordmark, zodiac labels) ---- */
.hero-title-main, .hero-title-zh, .hero-sub, .section-title, .feature h3, .spirit-cap h3, .lb-head h3,
.brand, .footer-brand, .ring-tile .tile-name {
  font-family: var(--font-display); font-optical-sizing: auto; font-weight: 600; letter-spacing: -.01em;
}
p { margin: 0; }
button { font: inherit; color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
html[dir="rtl"] .nav-links, html[dir="rtl"] .footer-links { direction: rtl; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s;
  will-change: transform;
}
.btn .apple { width: 20px; height: 20px; fill: currentColor; margin-top: -3px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 24px rgba(194, 65, 12, .28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(194, 65, 12, .34); }
.btn-primary:active { transform: translateY(0) scale(.98); }
.btn-ghost { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--ink) 10%, transparent); }
.btn-lg { padding: 15px 26px; font-size: 17px; }
.btn-small { padding: 8px 16px; font-size: 15px; }
.link { color: var(--accent); text-decoration: none; font-weight: 600; border-bottom: 1px solid transparent; }
.link:hover { border-bottom-color: currentColor; }
.chips { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 13px; font-weight: 600; padding: 4px 11px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 7%, transparent); border: 1px solid var(--line); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); background: color-mix(in srgb, var(--paper) 72%, transparent); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(42,33,27,.06); }
.nav-inner { max-width: var(--wrap); margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -.02em; font-size: 21px; font-variation-settings: "SOFT" 100, "WONK" 1; }
.brand-icon { border-radius: 9px; box-shadow: 0 2px 8px rgba(42,33,27,.18); }
.brand-zh { font-weight: 600; color: var(--muted); font-size: 15px; letter-spacing: .1em; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 15.5px; position: relative; padding: 6px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-tools { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; margin-left: auto; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: transparent; cursor: pointer; position: relative; flex: none; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease); }
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { bottom: 15px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }
/* mobile: links become a dropdown panel behind a toggle button (the CTA stays in the hero) */
@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .nav-cta { display: none; }
  .nav-links { display: flex; flex-direction: column; gap: 2px; position: absolute; left: 12px; right: 12px; top: calc(100% + 6px); margin: 0; padding: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 40px rgba(42,33,27,.14); opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .2s, transform .2s var(--ease); }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { display: block; padding: 12px 14px; border-radius: 10px; font-size: 17px; }
  .nav-links a::after { display: none; }
  .nav-links a:hover, .nav-links a:focus-visible { background: color-mix(in srgb, var(--accent) 14%, transparent); }
}
.lang { position: relative; display: inline-flex; align-items: center; }
.lang-icon { position: absolute; left: 11px; width: 17px; height: 17px; fill: var(--muted); pointer-events: none; }
.lang select { appearance: none; -webkit-appearance: none; background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px 8px 34px; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; max-width: 150px; }
@media (max-width: 520px) { .brand-zh { display: none; } .nav-inner { gap: 12px; padding-left: 14px; padding-right: 14px; } .lang select { max-width: 118px; padding-right: 10px; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 40px; min-height: min(92vh, 860px); display: flex; align-items: center; }
.hero-inner { position: relative; z-index: 2; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; width: 100%; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.hero-copy { max-width: 560px; }
.badge { display: inline-block; font-size: 13.5px; font-weight: 600; color: var(--dragon-dark); background: color-mix(in srgb, var(--dragon) 14%, transparent); border: 1px solid color-mix(in srgb, var(--dragon) 32%, transparent); padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; }
@media (prefers-color-scheme: dark) { .badge { color: #9fe3bd; } }
.hero-title { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.hero-title-main { font-size: clamp(56px, 8.4vw, 104px); font-weight: 640; letter-spacing: -.025em; line-height: .95; font-variation-settings: "SOFT" 100, "WONK" 1; background: linear-gradient(120deg, var(--ink) 30%, var(--accent) 75%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-title-zh { font-size: clamp(26px, 3.4vw, 40px); font-weight: 600; color: var(--muted); letter-spacing: .1em; }
.hero-sub { font-size: clamp(23px, 2.7vw, 32px); font-weight: 500; line-height: 1.22; letter-spacing: -.01em; margin-bottom: 12px; font-variation-settings: "SOFT" 80, "WONK" 0; }
.hero-lede { font-size: 18px; color: var(--muted); max-width: 520px; margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.hero-meta { font-size: 14.5px; color: var(--muted); }

/* background */
.bg-orbs { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.bg-orbs span { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.bg-orbs span:nth-child(1) { width: 620px; height: 620px; right: -120px; top: -160px; background: radial-gradient(circle, color-mix(in srgb, var(--dragon) 55%, transparent), transparent 70%); }
.bg-orbs span:nth-child(2) { width: 520px; height: 520px; left: -160px; bottom: -120px; background: radial-gradient(circle, color-mix(in srgb, var(--gold) 50%, transparent), transparent 70%); opacity: .45; }
.bg-orbs span:nth-child(3) { width: 380px; height: 380px; left: 42%; top: 30%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%); opacity: .5; }
@media (prefers-color-scheme: dark) { .bg-orbs span { opacity: .35; } }
.dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; opacity: .7; }

/* 3D stage: zodiac ring + phone */
.hero-stage { position: relative; height: 640px; perspective: 1400px; transform-style: preserve-3d; }
.ring-stage { position: absolute; inset: 0; display: grid; place-items: center; perspective: 1200px; pointer-events: none; }
.ring { --n: 12; --r: 290px; --ry: 0deg; position: relative; width: calc(var(--r) * 2); height: calc(var(--r) * 2); transform-style: preserve-3d; transform: rotateX(-14deg) rotateY(var(--ry)); pointer-events: auto; cursor: grab; touch-action: none; }
.ring:active { cursor: grabbing; }
.ring-tile { position: absolute; left: 50%; top: 50%; width: 104px; height: 104px; margin: -52px; border-radius: 30px; border: 1px solid rgba(255,255,255,.5); display: grid; place-items: center; gap: 2px; cursor: pointer; transform: rotateY(calc(var(--i) * 30deg)) translateZ(var(--r)); backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 14px 30px rgba(42,33,27,.16), inset 0 1px 0 rgba(255,255,255,.6); transition: transform .35s var(--ease), box-shadow .35s; text-decoration: none; color: #2a211b; }
.ring-tile:hover { transform: rotateY(calc(var(--i) * 30deg)) translateZ(calc(var(--r) + 14px)) scale(1.06); box-shadow: 0 22px 44px rgba(42,33,27,.22); }
.ring-tile .tile-emoji { font-size: 40px; line-height: 1; filter: drop-shadow(0 4px 6px rgba(0,0,0,.18)); }
.ring-tile .tile-name { font-size: 13.5px; font-weight: 700; letter-spacing: .04em; color: #2a211b; line-height: 1.1; }
.ring-tile .tile-sub { font-size: 9.5px; font-weight: 500; color: #2a211b; opacity: .65; line-height: 1.1; max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ring-floor { position: absolute; left: 50%; top: 50%; width: 720px; height: 720px; margin: -360px; border-radius: 50%; background: radial-gradient(ellipse at center, color-mix(in srgb, var(--dragon) 18%, transparent), transparent 65%); transform: rotateX(78deg) translateZ(-120px); filter: blur(10px); pointer-events: none; }
.ring-hint { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); font-size: 13px; color: var(--muted); white-space: nowrap; opacity: .85; }

.phone { position: absolute; left: 50%; top: 50%; width: 300px; height: 640px; margin-left: -150px; margin-top: -320px; transform-style: preserve-3d; transform: rotateY(-16deg) rotateX(4deg); animation: float 7s ease-in-out infinite; will-change: transform; z-index: 3; }
@keyframes float { 0%,100% { translate: 0 0; } 50% { translate: 0 -14px; } }
.phone-frame { position: absolute; inset: 0; border-radius: 50px; background: linear-gradient(160deg, #e9e2d6, #b9ae9f 60%, #d9d0c3); padding: 11px; box-shadow: var(--shadow-phone), inset 0 0 0 2px rgba(0,0,0,.35); }
.phone-island { position: absolute; left: 50%; top: 22px; width: 100px; height: 28px; margin-left: -50px; border-radius: 20px; background: #0a0a0a; z-index: 2; }
.phone-screen { width: 100%; height: 100%; border-radius: 40px; object-fit: cover; background: #eaf3ea; }
.phone-shadow { position: absolute; left: 10%; right: 10%; bottom: -34px; height: 50px; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(30,106,67,.35), transparent 70%); filter: blur(14px); transform: rotateX(80deg) translateZ(-40px); }

@media (max-width: 1024px) {
  .hero { min-height: 0; padding: 36px 0 24px; }
  .hero-inner { grid-template-columns: 1fr; gap: 8px; }
  .hero-copy { max-width: none; text-align: center; margin: 0 auto; }
  .hero-lede { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stage { height: 620px; margin-top: 10px; }
  .ring { --r: 240px; }
  .ring-tile { width: 92px; height: 92px; margin: -46px; border-radius: 26px; }
  .ring-tile .tile-emoji { font-size: 34px; }
}
@media (max-width: 560px) {
  .hero-stage { height: 560px; }
  .ring { --r: 190px; }
  .ring-tile { width: 78px; height: 78px; margin: -39px; border-radius: 22px; }
  .ring-tile .tile-emoji { font-size: 28px; }
  .ring-tile .tile-name { font-size: 11px; }
  .phone { width: 250px; height: 534px; margin-left: -125px; margin-top: -267px; transform: rotateY(-10deg) rotateX(3deg); }
  .phone-frame { border-radius: 42px; padding: 9px; }
  .phone-screen { border-radius: 34px; }
  .phone-island { width: 84px; height: 24px; margin-left: -42px; top: 18px; }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; position: relative; }
.section-tint { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--dragon) 7%, transparent) 30%, color-mix(in srgb, var(--dragon) 7%, transparent) 70%, transparent); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-title { font-size: clamp(32px, 4.2vw, 48px); margin-bottom: 12px; font-variation-settings: "SOFT" 50, "WONK" 0; }
.section-sub { color: var(--muted); font-size: 18px; }

/* Features: 3D tilt cards */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; perspective: 1200px; }
.feature { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 128px; min-height: 260px; overflow: hidden; transform-style: preserve-3d; transition: box-shadow .35s var(--ease), border-color .35s; box-shadow: var(--shadow-1); will-change: transform; }
.feature:hover { box-shadow: var(--shadow-2); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.feature .sheen { position: absolute; inset: -1px; background: radial-gradient(600px circle at var(--sx, 50%) var(--sy, 50%), rgba(255,255,255,.55), transparent 45%); opacity: 0; transition: opacity .35s; pointer-events: none; }
@media (prefers-color-scheme: dark) { .feature .sheen { background: radial-gradient(600px circle at var(--sx, 50%) var(--sy, 50%), rgba(255,255,255,.08), transparent 45%); } }
.feature:hover .sheen { opacity: 1; }
.feature-emoji { font-size: 34px; line-height: 1; margin-bottom: 16px; display: block; transform: translateZ(30px); filter: drop-shadow(0 6px 10px rgba(0,0,0,.15)); }
.feature h3 { font-size: 21px; margin-bottom: 8px; transform: translateZ(24px); font-variation-settings: "SOFT" 40, "WONK" 0; }
.feature p { color: var(--muted); font-size: 15.5px; transform: translateZ(16px); }
.feature .shot { position: absolute; right: 18px; bottom: -64px; width: 132px; border-radius: 22px 22px 0 0; box-shadow: 0 16px 40px rgba(42,33,27,.22); transform: rotate(10deg) translateZ(40px); transition: transform .5s var(--ease); border: 4px solid #fff; }
.feature:hover .shot { transform: rotate(6deg) translateY(-10px) translateZ(50px); }
@media (prefers-color-scheme: dark) { .feature .shot { border-color: #1b1613; } }
.feature.no-shot { padding-bottom: 24px; }
@media (max-width: 980px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } .feature { min-height: 0; } .feature .shot { width: 112px; bottom: -54px; } }

/* Spirits grid */
.spirits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; perspective: 1400px; }
.spirit { position: relative; border-radius: 26px; overflow: hidden; background: var(--card); border: 1px solid var(--line); aspect-ratio: 9 / 17; box-shadow: var(--shadow-1); cursor: pointer; padding: 0; text-align: left; transform-style: preserve-3d; transition: transform .45s var(--ease), box-shadow .45s var(--ease); will-change: transform; }
.spirit img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .7s var(--ease); }
.spirit:hover { transform: translateY(-10px) rotateX(3deg) scale(1.02); box-shadow: var(--shadow-2); }
.spirit:hover img { transform: scale(1.04); }
.spirit::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(20,14,10,.78)); pointer-events: none; }
.spirit .shot-skel { inset: 0; border-radius: 0; z-index: 0; }
.spirit img { z-index: 1; }
.spirit-cap { position: absolute; left: 14px; right: 14px; bottom: 12px; color: #fff; z-index: 1; transform: translateZ(24px); }
.spirit-cap .s-emoji { font-size: 26px; margin-right: 6px; vertical-align: -4px; }
.spirit-cap h3 { display: inline; font-size: 19px; letter-spacing: .04em; }
.spirit-cap .s-local { font-size: 12px; opacity: .8; margin-left: 6px; }
.spirit-cap .s-local::before { content: "· "; }
.spirit-cap p { font-size: 12.5px; line-height: 1.4; opacity: .92; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.spirit[data-active="true"] { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (max-width: 1024px) { .spirits { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .spirits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

/* Gallery: mouse-steered marquee — centre card sharp and lifted, edges blurred and faded */
.marquee { display: flex; gap: 28px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: none; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 26px 24px 30px; margin: 0; cursor: ew-resize; position: relative;
  mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%); }
.marquee::-webkit-scrollbar { display: none; }
.video-card, .screen-card { flex: 0 0 auto; position: relative; border: 0; background: none; padding: 0; margin: 0; cursor: pointer; color: inherit; text-align: center; --fd: 0;
  transform: scale(calc(1 - var(--fd) * .13)); opacity: calc(1 - var(--fd) * .55); filter: blur(calc(var(--fd) * 2.4px)); will-change: transform, opacity, filter; }
.video-card .phone { display: block; position: relative; left: auto; top: auto; margin: 0 auto; width: 250px; height: 534px; animation: none; transform: none; transition: transform .4s var(--ease); }
.video-card:hover .phone { transform: translateY(-6px); }
.video-card .phone-screen { pointer-events: none; }
.video-card .play { position: absolute; left: 50%; top: 50%; width: 62px; height: 62px; margin: -31px; border-radius: 50%; background: rgba(255,255,255,.86); color: #2a211b; display: grid; place-items: center; z-index: 4; box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform .25s var(--ease); backdrop-filter: blur(6px); pointer-events: none; }
.video-card:hover .play { transform: scale(1.08); }
.video-card .play svg { width: 26px; height: 26px; fill: currentColor; margin-left: 3px; }
.video-card .tag { position: absolute; left: 14px; top: 60px; z-index: 4; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: rgba(20,14,10,.45); color: #fff; backdrop-filter: blur(6px); }
.screen-card { width: 220px; border-radius: 28px; }
.screen-card img { width: 100%; height: auto; aspect-ratio: 220 / 478; border-radius: 26px; border: 5px solid #fff; box-shadow: var(--shadow-2); background: var(--paper-2); display: block; }
@media (prefers-color-scheme: dark) { .screen-card img { border-color: #262019; } }
.screen-card:hover img { box-shadow: 0 20px 50px rgba(42,33,27,.22), 0 40px 90px rgba(42,33,27,.18); }
.shot-skel { position: absolute; inset: 0 0 24px; border-radius: 26px; background: linear-gradient(100deg, var(--paper-2) 30%, var(--line) 50%, var(--paper-2) 70%); background-size: 200% 100%; animation: skel 1.4s linear infinite; pointer-events: none; }
@keyframes skel { to { background-position: -200% 0; } }
.card-caption { display: block; font-size: 14px; color: var(--muted); margin-top: 14px; text-align: center; font-family: var(--font-body); }
.marquee-hint { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); margin-top: -8px; }
.marquee-hint svg { width: 16px; height: 16px; fill: currentColor; opacity: .8; }
@media (max-width: 640px) { .screen-card { width: 170px; } .video-card .phone { width: 210px; height: 448px; } .marquee { gap: 20px; padding: 20px 16px 24px; mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%); } }

/* Video lightbox: own player window */
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 32px; line-height: 1; cursor: pointer; z-index: 5; transition: background .2s, transform .2s; }
.lb-nav:hover { background: rgba(255,255,255,.3); transform: translateY(-50%) scale(1.06); }
.lb-prev { left: 22px; } .lb-next { right: 22px; }
.vl-stage { display: grid; justify-items: center; gap: 18px; }
.vl-phone { position: relative; width: 340px; height: 726px; animation: none; transform: none; }
.vl-phone .phone-screen { pointer-events: auto; background: #000; }
.vl-caption { color: #fff; font-size: 15px; opacity: .9; display: flex; gap: 12px; align-items: center; }
.vl-count { font-size: 12.5px; opacity: .6; letter-spacing: .08em; }
@media (max-width: 560px) { .vl-phone { width: 262px; height: 560px; } .lb-nav { width: 42px; height: 42px; font-size: 24px; } .lb-prev { left: 8px; } .lb-next { right: 8px; } }

/* Screenshot lightbox: full-resolution image */
.il-figure { margin: 0; display: grid; justify-items: center; gap: 14px; }
.il-figure img { max-height: 84vh; width: auto; max-width: min(92vw, 720px); border-radius: 28px; border: 6px solid #fff; box-shadow: 0 40px 100px rgba(0,0,0,.55); background: rgba(255,255,255,.08); transition: opacity .3s; }
.il-figure.loading img { opacity: .25; }
.il-figure figcaption { color: #fff; font-size: 15px; opacity: .85; }

/* About */
.about { display: grid; grid-template-columns: 96px 1fr; gap: 24px; align-items: start; }
.about-icon { border-radius: 24px; box-shadow: var(--shadow-1); }
.about-desc { color: var(--ink-2); white-space: pre-line; font-size: 16px; margin-top: 8px; }
@media (max-width: 560px) { .about { grid-template-columns: 1fr; } }

/* Privacy */
.privacy-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.privacy-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px; }
.privacy-item .p-emoji { font-size: 28px; display: block; margin-bottom: 10px; }
.privacy-item p { color: var(--ink-2); font-size: 15px; }
.privacy-more { margin-top: 22px; }
@media (max-width: 900px) { .privacy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .privacy-grid { grid-template-columns: 1fr; } }

/* Final CTA */
.cta-final { text-align: center; }
.cta-icon { border-radius: 24px; margin: 0 auto 18px; box-shadow: var(--shadow-1); animation: float 6s ease-in-out infinite; }
.cta-final .section-sub { margin-bottom: 26px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 14.5px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; color: var(--ink); font-variation-settings: "SOFT" 100, "WONK" 1; }
.footer-brand img { border-radius: 7px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; }
.footer-links a { text-decoration: none; color: var(--muted); }
.footer-links a:hover { color: var(--ink); }
.footer-note { width: 100%; font-size: 13.5px; }
@media (max-width: 640px) { .footer-links { margin-left: 0; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: rgba(20,14,10,.72); backdrop-filter: blur(10px); }
.lightbox[hidden] { display: none; }
.lightbox-card { margin: 0; display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 28px; align-items: center; background: var(--card); border-radius: 30px; padding: 20px; max-width: 860px; width: 100%; max-height: 92vh; box-shadow: 0 40px 100px rgba(0,0,0,.5); animation: pop .35s var(--ease); }
@keyframes pop { from { transform: translateY(16px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.lightbox-card img { border-radius: 22px; max-height: 80vh; width: 100%; object-fit: cover; object-position: top; }
.lb-head { display: flex; align-items: center; gap: 10px; }
.lb-emoji { font-size: 36px; }
.lb-head h3 { font-size: 34px; letter-spacing: .04em; font-weight: 700; }
.lb-local { font-size: 18px; color: var(--muted); margin-left: 6px; }
.lb-tagline { color: var(--ink-2); font-size: 17px; margin-top: 10px; }
.lb-traits-label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 18px; }
.lightbox-close { position: absolute; right: 22px; top: 18px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.lightbox-close:hover { background: rgba(255,255,255,.3); }
@media (max-width: 720px) { .lightbox-card { grid-template-columns: 1fr; overflow: auto; } .lightbox-card img { max-height: 50vh; } }

.noscript { padding: 16px 24px; text-align: center; background: var(--card); }

/* Reveal on scroll (JS-built content only; guarded by html.js so nothing is ever hidden without JS) */
/* uses the `translate` property so :hover / 3D transforms keep working after reveal */
.js .reveal { opacity: 0; translate: 0 26px; transition: opacity .8s var(--ease), translate .8s var(--ease); }
.js .reveal.in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
