/* SKIDS — cinematic landing. Scroll-snap scenes, dark→light arc, focus-layer reveal.
   Fraunces (emotional display) × Inter (UI). */
:root {
  --ink: #0a0e18;
  --ink-2: #111827;
  --cream: #faf6ee;
  --paper: #fffdf8;
  --teal: #0f766e;
  --teal-soft: #d9f0ec;
  --sun: #f59e0b;
  --rose: #f5c9b8;
  --muted: #8b96a8;
  --muted-dark: #5b6b7b;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-snap-type: y proximity; scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: #fff;
  font-family: "Inter", system-ui, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
.display, h1, h2, .bignum { font-family: "Fraunces", "Georgia", serif; }
h1, h2 { font-weight: 500; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
.scene { position: relative; min-height: 100vh; scroll-snap-align: start; display: flex; align-items: center; padding: 16vh 8vw 10vh; overflow: hidden; }
.scene-inner { position: relative; z-index: 5; max-width: 1080px; width: 100%; }
.scene-inner.center { margin: 0 auto; text-align: center; }
.kicker { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.42em; text-transform: uppercase; margin-bottom: 22px; color: var(--teal); }
.lede { font-size: clamp(1rem, 1.6vw, 1.22rem); line-height: 1.75; color: var(--muted); max-width: 640px; margin-top: 26px; }
.light .lede, .warm .lede, .dawn .lede { color: var(--muted-dark); }
em { font-style: italic; color: var(--teal); }
.dark .em, .mid em, .dawn em { color: #7dd3c7; }

/* --- scene palettes --- */
.dark { background: radial-gradient(1200px 700px at 80% -10%, #16223a, var(--ink) 60%); }
.mid { background: linear-gradient(180deg, #0d1322, #1a1420); }
.dawn { background: linear-gradient(160deg, #1a1420 0%, #3a2430 45%, #c98a5f 130%); }
.warm { background: var(--cream); color: var(--ink); }
.light { background: var(--paper); color: var(--ink); }
.cta-scene { background: radial-gradient(900px 500px at 50% 0%, #ffe6b8, var(--cream) 70%); color: var(--ink); }

/* --- splash --- */
#splash { position: fixed; inset: 0; z-index: 1000; background: #05070c; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; transition: opacity .9s ease, visibility .9s; }
#splash.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-eye { position: relative; width: 160px; height: 80px; }
.splash-eye .lid { position: absolute; inset: 0; border-radius: 50%; background: #05070c; animation: blink 2.4s ease-in-out infinite; }
.splash-eye .pupil { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #22d3ee, #0f766e 60%, #05070c); box-shadow: 0 0 40px rgba(34,211,238,0.5); }
@keyframes blink { 0%, 86% { clip-path: inset(0 0 0 0); } 94%, 100% { clip-path: inset(44% 0 44% 0); } }
.splash-word { font-family: "Fraunces", serif; font-weight: 600; font-size: clamp(2.6rem, 7vw, 4rem); letter-spacing: 0.22em; color: #fff; opacity: 0; transform: translateY(16px); animation: rise .9s .5s ease forwards; }
.splash-tag { font-size: 0.74rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--muted); opacity: 0; animation: rise .9s .8s ease forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* --- nav / progress / dots --- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 400; display: flex; align-items: center; justify-content: space-between; padding: 20px 4vw; mix-blend-mode: difference; color: #fff; }
.brand { font-family: "Fraunces", serif; font-weight: 600; font-size: 1.3rem; letter-spacing: 0.04em; }
.brand span { color: #22d3ee; }
.nav-wa { font-size: 0.86rem; font-weight: 600; background: #25d366; color: #03221f; padding: 10px 18px; border-radius: 999px; transition: transform .25s; }
.nav-wa:hover { transform: translateY(-2px); }
.progress-bar { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--teal), #22d3ee, var(--sun)); width: 0; z-index: 500; transition: width .1s linear; }
.dots { position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 400; display: flex; flex-direction: column; gap: 12px; }
.dots a { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.28); transition: background .3s, transform .3s; }
.dots a.on { background: var(--sun); transform: scale(1.5); }

/* --- focus layer: the world coming into focus --- */
.focus-layer { position: fixed; inset: 0; z-index: 1; display: grid; place-items: center; pointer-events: none; opacity: 0.14; filter: blur(24px); will-change: filter, opacity; }
.chart { text-align: center; font-family: "Fraunces", serif; color: #0f766e; line-height: 1.05; letter-spacing: 0.18em; }
.chart-line { font-size: clamp(2rem, 4.5vw, 3.6rem); }
.c-big { font-size: clamp(6rem, 16vw, 14rem); font-weight: 700; }

/* --- typography / display --- */
.display { font-size: clamp(2.1rem, 6vw, 4.6rem); line-height: 1.06; }
.display .l { display: block; overflow: hidden; }
.display .l { transform: translateY(120%); animation: line-up 1.1s cubic-bezier(0.16,1,0.3,1) forwards; }
.display .l:nth-child(2) { animation-delay: 0.12s; }
.display .l:nth-child(3) { animation-delay: 0.24s; }
.display .dim { color: var(--muted); font-style: italic; }
@keyframes line-up { to { transform: none; } }
.bignum { display: flex; align-items: baseline; justify-content: center; gap: 18px; font-size: clamp(6rem, 20vw, 16rem); font-weight: 600; line-height: 1; margin: 10px 0 20px; }
.bignum small { font-size: clamp(1.4rem, 3vw, 2rem); color: var(--muted); font-family: "Inter", sans-serif; }
.bignum span { background: linear-gradient(120deg, var(--sun), #f97316); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* --- buttons --- */
.btn { display: inline-block; padding: 15px 28px; border-radius: 999px; font-weight: 600; font-size: 0.95rem; font-family: inherit; border: none; cursor: pointer; transition: transform .25s, box-shadow .25s, background .25s; }
.btn-cta { background: var(--teal); color: #fff; box-shadow: 0 12px 30px -10px rgba(15,118,110,0.6); }
.btn-cta:hover { transform: translateY(-2px); background: #0d5d57; }
.btn-ghost { border: 1px solid rgba(255,255,255,0.35); color: #fff; background: transparent; }
.btn-ghost:hover { border-color: #22d3ee; transform: translateY(-2px); }
.actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }

/* --- signs (scene 2) --- */
.signs { margin-top: 40px; display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.sign { display: flex; align-items: baseline; gap: 20px; font-size: clamp(1rem, 2vw, 1.3rem); padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.sign span { font-family: "Fraunces", serif; color: var(--sun); font-size: 1rem; letter-spacing: 0.1em; }
.sign p { color: #dbe3ee; }

/* --- steps (scene 4) --- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.step { background: var(--paper); border-radius: 24px; padding: 30px 26px; box-shadow: 0 18px 50px -22px rgba(15,118,110,0.25); }
.step b { font-family: "Fraunces", serif; font-size: 2.2rem; color: var(--sun); }
.step h3 { font-size: 1.2rem; margin: 12px 0 10px; }
.step p { font-size: 0.95rem; color: var(--muted-dark); line-height: 1.6; }

/* --- joy / child (scene 5) --- */
.joy { position: relative; display: inline-block; margin: 40px 0 8px; }
.child { position: relative; width: 150px; height: 210px; }
.head { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 110px; height: 118px; background: #ffe3c4; border-radius: 48% 48% 44% 44%; }
.hair { position: absolute; top: -4px; left: 50%; transform: translateX(-50%); width: 116px; height: 46px; background: #4a3226; border-radius: 50% 50% 0 0; }
.eyes { position: absolute; top: 56px; left: 50%; transform: translateX(-50%); display: flex; gap: 28px; }
.eyes span { width: 9px; height: 9px; border-radius: 50%; background: #2b2220; }
.smile { position: absolute; top: 84px; left: 50%; transform: translateX(-50%); width: 20px; height: 10px; border-bottom: 2.5px solid #b46a4a; border-radius: 0 0 20px 20px; }
.glasses { position: absolute; top: 46px; left: 50%; transform: translateX(-50%); width: 92px; height: 30px; animation: floaty 4s ease-in-out infinite; }
.g-l, .g-r { position: absolute; top: 0; width: 38px; height: 26px; border-radius: 46% 46% 40% 40%; border: 3px solid var(--teal); background: rgba(15,118,110,0.1); }
.g-l { left: 0; } .g-r { right: 0; }
.g-b { position: absolute; left: 50%; top: 9px; transform: translateX(-50%); width: 16px; height: 8px; border-top: 3px solid var(--teal); }
.body { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 90px; height: 96px; background: #ffd3b8; border-radius: 34px 34px 20px 20px; }
.spark { position: absolute; font-size: 26px; color: var(--sun); animation: twinkle 2s ease-in-out infinite; }
.s1 { top: -8px; right: -30px; } .s2 { top: 40px; left: -34px; animation-delay: 0.7s; } .s3 { bottom: 0; right: -26px; animation-delay: 1.3s; }
@keyframes twinkle { 0%,100% { opacity: 0.4; transform: scale(0.9); } 50% { opacity: 1; transform: scale(1.2); } }
@keyframes floaty { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-5px); } }

/* --- CTA --- */
.cta-form { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.cta-form input { padding: 15px 20px; border-radius: 999px; border: 1px solid rgba(34,49,63,0.14); background: var(--paper); color: var(--ink); font-family: inherit; font-size: 0.95rem; min-width: 220px; }
.cta-form input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(15,118,110,0.12); }
.fine { margin-top: 26px; font-size: 0.82rem; color: var(--muted-dark); }
.footer-marks { margin-top: 40px; font-size: 0.74rem; letter-spacing: 0.1em; color: var(--muted-dark); }
.scroll-line { position: absolute; bottom: 26px; left: 8vw; font-size: 0.72rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted); animation: fade-in-out 3s ease-in-out infinite; }
@keyframes fade-in-out { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

/* --- reveal --- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s cubic-bezier(0.16,1,0.3,1), transform 1s cubic-bezier(0.16,1,0.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* --- responsive --- */
@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; }
  .scene { padding: 18vh 7vw 12vh; }
  .dots { display: none; }
}

/* --- reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; scroll-snap-type: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .display .l { transform: none; }
  .focus-layer { filter: none; }
}

/* ===== SCENE 3 — science of myopia ===== */
.science { background: linear-gradient(160deg, #07131a 0%, #0c2230 55%, #12323c 100%); }
.science .kicker { color: #7dd3c7; }
.science .lede { color: #b9c8d2; }
.science .lede b { color: #7dd3c7; }
.anatomy { display: flex; align-items: center; gap: 18px; margin: 40px 0 30px; flex-wrap: wrap; }
.eye-panel { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 22px; padding: 22px; width: min(320px, 100%); }
.eye-panel svg { width: 100%; height: auto; display: block; }
.eye-panel figcaption { margin-top: 14px; font-size: 0.9rem; color: #cfe0ea; line-height: 1.5; }
.eye-panel figcaption b { color: #fff; }
.eye-panel figcaption em { color: #f59e0b; font-style: normal; }
.vs { font-family: "Fraunces", serif; font-size: 2rem; color: #7dd3c7; }
.science-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 10px; }
.science-points .sp { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 18px; padding: 20px; }
.science-points .sp b { color: #7dd3c7; font-family: "Fraunces", serif; font-size: 1.05rem; display: block; margin-bottom: 8px; }
.science-points .sp p { color: #b9c8d2; font-size: 0.92rem; line-height: 1.6; }
@media (max-width: 900px) { .science-points { grid-template-columns: 1fr; } }

/* ===== SCENE 6 — glasses ===== */
.glasses-scene { background: linear-gradient(160deg, var(--cream), #eef6f3); color: var(--ink); }
.glasses-scene .kicker { color: var(--teal); }
.glasses-row { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center; margin-top: 40px; }
.product { background: var(--paper); border-radius: 26px; padding: 30px; box-shadow: 0 20px 50px -20px rgba(15,118,110,0.25); }
.product svg { width: 100%; height: auto; }
.glasses-facts { display: flex; flex-direction: column; gap: 14px; }
.fact { background: var(--paper); border: 1px solid rgba(34,49,63,0.08); border-radius: 20px; padding: 20px 22px; }
.fact b { font-family: "Fraunces", serif; font-size: 1.08rem; color: var(--teal-deep); display: block; margin-bottom: 8px; }
.fact p { color: var(--muted-dark); font-size: 0.95rem; line-height: 1.6; }
@media (max-width: 900px) { .glasses-row { grid-template-columns: 1fr; } }

/* ===== SCENE 7 — retail ===== */
.retail { background: linear-gradient(160deg, #1a1420 0%, #2a1c2a 60%, #3a2430 100%); }
.retail .kicker { color: #f0a3a3; }
.retail .display em { color: #f0a3a3; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 42px; }
.col { border-radius: 24px; padding: 30px; }
.col.bad { background: rgba(249,115,22,0.08); border: 1px solid rgba(249,115,22,0.3); }
.col.good { background: rgba(13,148,136,0.14); border: 1px solid rgba(45,212,191,0.35); }
.col h3 { font-family: "Fraunces", serif; font-size: 1.35rem; margin-bottom: 18px; }
.col.bad h3 { color: #fbbf8a; }
.col.good h3 { color: #5eead4; }
.col ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.col li { padding-left: 26px; position: relative; font-size: 0.98rem; line-height: 1.6; color: #e3e9f0; }
.col.bad li::before { content: "✕"; position: absolute; left: 0; color: #fb923c; font-weight: 700; }
.col.good li::before { content: "✓"; position: absolute; left: 0; color: #2dd4bf; font-weight: 700; }
@media (max-width: 800px) { .compare { grid-template-columns: 1fr; } }
