/*
 * Basheret landing page.
 * Layout concept: the page is one day. A single continuous sky runs from nightfall through dawn, morning,
 * afternoon, dusk and candlelight back to night; content hangs in it on alternating sides and the sun
 * crosses the viewport as you scroll. Colors and type are the app's Daylight tokens (src/theme/tokens.ts,
 * src/theme/skyDay.ts). Etrog appears only on friend-touched surfaces and the bright star, as in the app.
 */

@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("fonts/plus-jakarta-sans.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("fonts/caveat-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Patrick Hand"; src: url("fonts/patrick-hand.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Rubik"; src: url("fonts/rubik-hebrew-600.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0590-05FF, U+FB1D-FB4F; }

:root {
  /* Daylight */
  --midnight: #0E1430;
  --tekhelet: #2546D6;
  --tekhelet-deep: #1A33A6;
  --tekhelet-tint: #E9EDFF;
  --tekhelet-soft: #C9D3FF;
  --sky-action: #B7C4FF;
  --mist: #F3F5FA;
  --white: #FFFFFF;
  --slate: #454C68;
  --caption: #5E6680;
  --hairline: #E6E9F1;
  --etrog: #EEE35B;
  --etrog-ink: #5C5408;
  --etrog-tint: #FBF8DC;
  --etrog-line: #EFE9A6;
  --leaf: #1F8A63;
  /* Night */
  --night-top: #0E1430;
  --night-mid: #1A2A6C;
  --night-lift: #3C4C9A;
  --night-soft: #D9E1FF;
  --night-caption: #C9D3FF;
  /* Candlelight */
  --candle-page: #17130F;
  --candle-end: #2A2018;
  --candle-text: #F1E8D8;
  --candle-muted: #BBAF9C;
  --candle-gold: #E7B65C;
  --letter-card: #FFFEFA;
  --letter-cover: #F7F4EC;
  --letter-ink: #17130F;

  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-voice: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --font-telegram: "Patrick Hand", "Comic Sans MS", cursive;
  --font-he: "Rubik", "Arial Hebrew", "Noto Sans Hebrew", sans-serif;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --shadow-card: 0 1px 2px rgba(14, 20, 48, 0.05), 0 4px 14px -4px rgba(14, 20, 48, 0.08);
  --shadow-lift: 0 2px 6px rgba(14, 20, 48, 0.06), 0 18px 40px -12px rgba(14, 20, 48, 0.22);
  --shadow-like: 0 6px 18px -4px rgba(37, 70, 214, 0.55), 0 0 0 3px rgba(255, 255, 255, 0.9);
  --shadow-button: 0 10px 24px -10px rgba(37, 70, 214, 0.7);

  --gutter: max(20px, min(5vw, 72px));
  --ink: var(--midnight);
  --ink-soft: rgba(14, 20, 48, 0.74);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--night-top);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, dl, dd, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
em { font-family: var(--font-voice); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
:focus-visible { outline: 3px solid var(--sky-action); outline-offset: 4px; border-radius: 6px; }
.sprite { position: absolute; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 18px; border-radius: 27px; background: var(--white); color: var(--midnight); font-weight: 700; text-decoration: none; }
.skip:focus { top: 16px; }

/* ---------- The sky ---------- */

.sky { padding-block: clamp(88px, 13vh, 160px); }
.wrap { position: relative; z-index: 1; width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }

/* Night, Shabbat and the finale are positioned so they paint over the fixed sun; the day sections are not, so the sun sits between their sky and their content. */
.sky--night { position: relative; background: linear-gradient(180deg, #0B1026 0%, var(--night-top) 28%, #142052 68%, var(--night-mid) 100%); color: var(--white); --ink: var(--white); --ink-soft: var(--night-soft); }
.sky--dawn { background: linear-gradient(180deg, var(--night-mid) 0%, #2C3A86 30%, var(--night-lift) 46%, #6B7CD6 64%, #8C9EEA 76%, #D9C4DA 90%, #F7DCC0 100%); color: var(--white); --ink: var(--white); }
.sky--morning { background: linear-gradient(180deg, #F7DCC0 0%, #F1DFDD 6%, #E3E6FB 15%, #DCE4FF 28%, #E4EAFF 70%, #E9EDFF 100%); }
.sky--noon { background: linear-gradient(180deg, #E9EDFF 0%, #DCE4FF 45%, #C9D3FF 100%); }
.sky--afternoon { background: linear-gradient(180deg, #C9D3FF 0%, #B4C2FF 50%, #9FB2FF 100%); }
.sky--dusk { background: linear-gradient(180deg, #9FB2FF 0%, #8C9EEA 20%, #B3ABE2 46%, #D9C4DA 68%, #F0D3C8 86%, #F7DCC0 100%); }
.sky--shabbat { position: relative; background: linear-gradient(180deg, #F7DCC0 0, #F3C79A 70px, #D9A98E 150px, #9A6E58 250px, #55392B 350px, var(--candle-end) 470px, var(--candle-page) 760px, var(--candle-page) 100%); color: var(--candle-text); --ink: var(--candle-text); --ink-soft: var(--candle-muted); padding-top: clamp(430px, 62vh, 560px); }
.sky--finale { position: relative; background: linear-gradient(180deg, var(--candle-page) 0, #11111F 220px, var(--night-top) 460px, #142052 78%, var(--night-mid) 100%); color: var(--white); --ink: var(--white); --ink-soft: var(--night-soft); padding-bottom: 0; }

/* The sun. Its position comes from the scroll (site.js); without script it is not drawn. */
.sun { position: fixed; left: 0; top: 0; z-index: 0; width: 0; height: 0; pointer-events: none; display: none; will-change: transform; transform: translate3d(var(--sx, -400px), var(--sy, -400px), 0); }
.js .sun { display: block; }
.sun i { position: absolute; left: 0; top: 0; border-radius: 50%; transform: translate(-50%, -50%); }
.sun__glow { width: 560px; height: 560px; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.28) 38%, rgba(255, 255, 255, 0) 100%); }
.sun__warm { width: 720px; height: 720px; background: radial-gradient(closest-side, rgba(255, 226, 190, 0.95), rgba(255, 214, 170, 0.4) 40%, rgba(255, 214, 170, 0) 100%); opacity: var(--warm, 0); }
.sun__ring { width: 128px; height: 128px; background: rgba(255, 255, 255, 0.42); }
.sun__disc { width: 96px; height: 96px; background: #FFFFFF; box-shadow: 0 0 40px 6px rgba(255, 255, 255, 0.6); }

/* Stars */
.stars { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.star { position: absolute; fill: #FFFFFF; opacity: var(--o, 0.8); animation: twinkle var(--d, 5s) ease-in-out var(--delay, 0s) infinite; }
.star--dot { border-radius: 50%; background: #FFFFFF; }
@keyframes twinkle { 0%, 100% { opacity: var(--o, 0.8); transform: scale(1); } 50% { opacity: calc(var(--o, 0.8) * 0.25); transform: scale(0.72); } }
.stars__layer { position: absolute; inset: -10% 0; will-change: transform; }
.shoot { position: absolute; left: 58%; top: 12%; width: 150px; height: 1.5px; border-radius: 1px; background: linear-gradient(90deg, rgba(255, 255, 255, 0), #FFFFFF); opacity: 0; transform: rotate(155deg) translateX(0); animation: shoot 11s ease-in 4s infinite; }
@keyframes shoot { 0% { opacity: 0; transform: rotate(155deg) translateX(0); } 1.5% { opacity: 0.9; } 7% { opacity: 0; transform: rotate(155deg) translateX(-420px); } 100% { opacity: 0; transform: rotate(155deg) translateX(-420px); } }

/* ---------- Type ---------- */

.eyebrow { display: flex; align-items: center; gap: 10px; font: 700 0.8125rem/1.2 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--tekhelet-deep); }
.eyebrow__star { width: 14px; height: 14px; fill: var(--tekhelet); flex: none; }
.eyebrow--night { color: var(--night-caption); }
.eyebrow--night .eyebrow__star { fill: var(--etrog); }
.eyebrow--candle { color: var(--candle-gold); }
.eyebrow--candle .eyebrow__star { fill: var(--candle-gold); }
.sky--dusk .eyebrow { color: var(--midnight); }
.sky--dusk .eyebrow__star { fill: var(--midnight); }

.h2 { margin-top: 20px; font: 600 clamp(2.4rem, 5.2vw, 4.4rem)/1.02 var(--font-display); letter-spacing: -0.035em; text-wrap: balance; color: var(--ink); }
.h2 em { font-size: 1.06em; letter-spacing: -0.02em; }
.h3 { font: 600 clamp(1.7rem, 3.2vw, 2.6rem)/1.08 var(--font-display); letter-spacing: -0.03em; text-wrap: balance; }
.lede { margin-top: 24px; max-width: 34em; font-size: clamp(1.0625rem, 1.25vw, 1.1875rem); line-height: 1.62; color: var(--ink-soft); text-wrap: pretty; }
.aside { margin-top: 20px; max-width: 30em; font-weight: 600; color: var(--ink); }

.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 3vw, 48px); row-gap: 56px; align-items: center; }
.split__text { grid-column: 1 / span 5; }
.split__art { grid-column: 7 / span 6; min-width: 0; }
.split--flip .split__text { grid-column: 8 / span 5; order: 2; }
.split--flip .split__art { grid-column: 1 / span 6; order: 1; }

/* ---------- Buttons and chips ---------- */

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border-radius: 27px; font: 700 0.9375rem/1 var(--font-body); white-space: nowrap; }
.btn--brand { background: var(--tekhelet); color: var(--white); box-shadow: var(--shadow-button); }
.btn--quiet { background: var(--white); color: var(--midnight); box-shadow: inset 0 0 0 1.5px var(--hairline); }
.chip { display: inline-flex; align-items: center; min-height: 30px; padding: 5px 12px; border-radius: 17px; font: 600 0.8125rem/1 var(--font-body); }
.chip--onphoto { position: absolute; left: 10px; bottom: 10px; background: rgba(255, 255, 255, 0.92); color: var(--midnight); }
.tag { margin-left: auto; padding: 5px 10px; border-radius: 12px; background: var(--tekhelet-tint); color: var(--tekhelet-deep); font: 700 0.75rem/1 var(--font-body); }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-grid; grid-template-columns: auto auto; align-content: center; align-items: center; justify-content: center; column-gap: 11px; row-gap: 3px; min-width: 188px; min-height: 60px; padding: 10px 26px 10px 22px; border-radius: 30px; text-decoration: none; transition: transform 0.3s var(--spring), box-shadow 0.3s var(--ease), background-color 0.2s var(--ease); }
.store__icon { grid-row: 1 / 3; width: 26px; height: 26px; fill: currentColor; }
.store__small, .store__big { grid-column: 2; }
.store__small { font: 600 0.6875rem/1 var(--font-body); letter-spacing: 0.04em; opacity: 0.78; }
.store__big { font: 600 1.25rem/1 var(--font-display); letter-spacing: -0.02em; }
.store--fill { background: var(--sky-action); color: var(--midnight); box-shadow: 0 14px 34px -14px rgba(183, 196, 255, 0.7); }
.store--glass { background: rgba(255, 255, 255, 0.1); color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(201, 211, 255, 0.3); }
.store:hover { transform: translateY(-3px); }
.store--fill:hover { background: #C9D3FF; box-shadow: 0 20px 40px -14px rgba(183, 196, 255, 0.85); }
.store--glass:hover { background: rgba(255, 255, 255, 0.16); }
.store:active { transform: translateY(0) scale(0.97); transition-duration: 0.11s; }

/* ---------- Nav ---------- */

.nav { position: fixed; z-index: 50; top: max(14px, env(safe-area-inset-top)); left: 50%; display: flex; align-items: center; gap: clamp(12px, 3vw, 36px); width: min(calc(100% - 28px), 760px); padding: 8px 8px 8px 20px; border-radius: 32px; background: rgba(14, 20, 48, 0.62); box-shadow: inset 0 0 0 1px rgba(201, 211, 255, 0.16), 0 18px 40px -18px rgba(8, 11, 26, 0.55); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); color: var(--white); transform: translateX(-50%); transition: transform 0.5s var(--ease), background-color 0.3s var(--ease); }
.nav.is-away { transform: translateX(-50%) translateY(-220%); }
.nav.is-solid { background: rgba(14, 20, 48, 0.86); }
.brand { display: inline-flex; align-items: flex-end; gap: 9px; text-decoration: none; color: inherit; }
.brand__word { font: 700 1.5rem/1 var(--font-display); letter-spacing: -0.02em; }
.nav .brand__word { padding-bottom: 3px; }
.mark { width: 26px; height: 35px; overflow: visible; flex: none; }
.mark__b { fill: none; stroke: currentColor; stroke-width: 11; stroke-linecap: round; stroke-linejoin: round; }
.mark__star { fill: currentColor; transform-box: fill-box; transform-origin: center; }
.mark__star--bright { fill: var(--etrog); }
.nav__links { display: flex; gap: clamp(14px, 2.4vw, 28px); margin-left: auto; }
.nav__links a { position: relative; padding: 8px 2px; font: 600 0.9375rem/1 var(--font-body); color: var(--night-soft); text-decoration: none; transition: color 0.2s var(--ease); }
.nav__links a::after { content: ""; position: absolute; left: 2px; right: 2px; bottom: 2px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.nav__links a:hover { color: var(--white); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 20px; border-radius: 24px; background: var(--sky-action); color: var(--midnight); font: 700 0.9375rem/1 var(--font-body); text-decoration: none; white-space: nowrap; transition: transform 0.3s var(--spring), background-color 0.2s var(--ease); }
.nav__cta:hover { background: var(--white); transform: scale(1.04); }
.nav__cta:active { transform: scale(0.96); transition-duration: 0.11s; }

/* ---------- Hero ---------- */

.hero { min-height: min(100svh, 1000px); padding-top: clamp(112px, 15vh, 170px); padding-bottom: 120px; display: flex; flex-direction: column; justify-content: center; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr); gap: clamp(24px, 4vw, 72px); align-items: center; }
.hero__title { margin-top: 26px; font: 600 clamp(3.4rem, 7.3vw, 6.75rem)/0.92 var(--font-display); letter-spacing: -0.045em; }
.hero__title em { font-size: 1.08em; letter-spacing: -0.03em; color: var(--sky-action); padding-right: 0.06em; }
.line { display: block; overflow: hidden; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.line > span { display: block; }
.hero__lede { margin-top: 30px; max-width: 30em; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.6; color: var(--night-soft); text-wrap: pretty; }
.hero .stores { margin-top: 34px; }
.hero__fine { margin-top: 18px; font-size: 0.875rem; color: var(--night-caption); opacity: 0.85; }

.hero__art { position: relative; justify-self: center; width: min(100%, 330px); perspective: 1400px; }
.bigstar { position: absolute; z-index: 2; fill: var(--white); filter: drop-shadow(0 0 18px rgba(201, 211, 255, 0.55)); }
.bigstar--bright { width: 92px; height: 92px; right: -52px; top: -58px; fill: var(--etrog); filter: drop-shadow(0 0 26px rgba(238, 227, 91, 0.55)); animation: breathe 5.5s ease-in-out infinite; }
.bigstar--near { width: 46px; height: 46px; left: -44px; top: 40px; fill: var(--white); animation: breathe 6.5s ease-in-out -2s infinite; }
.bigstar--far { width: 30px; height: 30px; right: -70px; top: 132px; fill: var(--tekhelet-soft); animation: breathe 4.8s ease-in-out -1s infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1) rotate(0deg); } 50% { transform: scale(0.86) rotate(8deg); } }

.phone { position: relative; aspect-ratio: 300 / 620; padding: 10px; border-radius: 52px; background: linear-gradient(160deg, #2A3358, #070A18 30%, #05070F 70%, #1B2347); box-shadow: inset 0 0 0 1.5px rgba(201, 211, 255, 0.22), 0 50px 90px -30px rgba(3, 5, 16, 0.9), 0 0 120px -20px rgba(60, 76, 154, 0.55); transform: rotateY(var(--ry, -9deg)) rotateX(var(--rx, 4deg)) rotateZ(1.5deg); transform-style: preserve-3d; transition: transform 0.6s var(--ease); animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.phone__screen { position: relative; height: 100%; overflow: hidden; border-radius: 42px; background: linear-gradient(180deg, var(--night-top), var(--night-mid)); color: var(--white); display: flex; flex-direction: column; padding: 0 22px 14px; container-type: inline-size; }
.phone__status { display: flex; justify-content: space-between; align-items: center; height: 44px; padding: 6px 6px 0; font: 600 12px/1 var(--font-body); }
.phone__status i { width: 54px; height: 16px; border-radius: 9px; background: #05070F; position: absolute; left: 50%; top: 12px; translate: -50% 0; }
.phone__star { position: absolute; aspect-ratio: 1; height: auto; fill: #FFFFFF; opacity: 0.85; animation: twinkle 5s ease-in-out infinite; }
.arrival { margin-top: 13cqw; }
.arrival__eyebrow { font: 700 3.6cqw/1.3 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--white); min-height: 1.3em; }
.arrival__title { margin-top: 4cqw; font: 600 13.6cqw/1.06 var(--font-display); letter-spacing: -0.03em; }
.arrival__body { margin-top: 4cqw; font: 400 5.2cqw/1.5 var(--font-body); }
.faces { position: relative; flex: 1; min-height: 0; margin-top: 4cqw; }
.face { position: absolute; border-radius: 50%; overflow: hidden; translate: -50% 0; }
.face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.face--1 { left: 50%; top: 4%; width: 44cqw; height: 44cqw; box-shadow: 0 0 0 2px #FFFFFF, 0 0 24px 6px rgba(201, 211, 255, 0.35); z-index: 2; }
.face--2 { left: 17%; top: 46%; width: 27cqw; height: 27cqw; box-shadow: 0 0 0 1.5px rgba(201, 211, 255, 0.6); }
.face--3 { left: 82%; top: 40%; width: 30cqw; height: 30cqw; box-shadow: 0 0 0 1.5px rgba(201, 211, 255, 0.6); }
.face--4 { left: 50%; top: 68%; width: 21cqw; height: 21cqw; background: #303D76; box-shadow: 0 0 0 1.5px rgba(201, 211, 255, 0.6); display: grid; place-items: center; }
.face--4 b { font: 600 5cqw/1 var(--font-body); }
.arrival__cta { display: grid; place-items: center; min-height: 19cqw; border-radius: 10cqw; background: var(--sky-action); color: var(--midnight); font: 700 5.6cqw/1 var(--font-body); }
.phone__home { display: block; width: 36%; height: 4px; margin: 12px auto 0; border-radius: 2px; background: rgba(255, 255, 255, 0.55); }

.hero__cue { position: absolute; z-index: 1; left: 50%; bottom: 34px; display: flex; align-items: center; gap: 14px; width: 100%; max-width: 1280px; padding-inline: var(--gutter); transform: translateX(-50%); font: 400 1.125rem/1.35 var(--font-voice); font-style: italic; color: var(--night-caption); text-decoration: none; }
.hero__cue svg { width: 20px; height: 20px; flex: none; animation: nudge 2.4s var(--ease) infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(4px); } }

/* ---------- Dawn ---------- */

.meaning { padding-top: clamp(90px, 16vh, 170px); padding-bottom: clamp(300px, 62vh, 620px); }
.meaning__wrap { text-align: center; }
.meaning__entry { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 8px 18px; color: var(--night-caption); }
.meaning__word { font: 600 1.375rem/1 var(--font-display); letter-spacing: -0.01em; color: var(--white); }
.meaning__he { font: 600 1.375rem/1 var(--font-he); color: var(--white); }
.meaning__pos { font: 600 0.8125rem/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; }
.meaning__def { margin: 28px auto 0; max-width: 17em; font: 400 clamp(2.3rem, 6vw, 5rem)/1.04 var(--font-voice); font-style: italic; letter-spacing: -0.015em; text-wrap: balance; color: var(--white); }

/* ---------- Morning: the day's set ---------- */

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 36px; max-width: 520px; }
.facts li { display: grid; gap: 4px; align-content: start; padding-top: 14px; border-top: 2px solid var(--midnight); }
.facts b { font: 600 1.25rem/1.1 var(--font-display); letter-spacing: -0.02em; }
.facts span { font-size: 0.875rem; line-height: 1.4; color: var(--ink-soft); }

.deck { --p: 1; position: relative; display: grid; place-items: center; min-height: 560px; }
.intro { grid-area: 1 / 1; width: min(74vw, 290px); padding: 12px 12px 16px; border-radius: 22px; background: var(--white); box-shadow: var(--shadow-lift); will-change: transform; transition: translate 0.45s var(--ease), box-shadow 0.45s var(--ease); }
.intro:hover { translate: 0 -10px; box-shadow: 0 2px 6px rgba(14, 20, 48, 0.06), 0 30px 54px -14px rgba(14, 20, 48, 0.3); }
.intro--c { position: relative; z-index: 2; }
.intro--l { transform: translateX(calc(var(--p) * -62%)) translateY(calc(var(--p) * 26px)) rotate(calc(var(--p) * -7deg)) scale(0.92); }
.intro--r { transform: translateX(calc(var(--p) * 62%)) translateY(calc(var(--p) * 44px)) rotate(calc(var(--p) * 6deg)) scale(0.92); }
.intro__photo { position: relative; aspect-ratio: 5 / 4; overflow: hidden; border-radius: 10px; background: #DFE4EE; }
.intro__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.intro__name { margin-top: 14px; padding-inline: 4px; font: 600 1.5rem/1.1 var(--font-display); letter-spacing: -0.025em; }
.intro__place { margin-top: 4px; padding-inline: 4px; font-size: 0.875rem; color: var(--caption); }
.prompt { position: relative; margin-top: 14px; padding: 14px 16px 16px; border-radius: 16px; background: var(--mist); }
.prompt--tint { background: var(--tekhelet-tint); margin-top: 0; }
.prompt__label { font: 600 0.8125rem/1.3 var(--font-body); color: var(--caption); }
.prompt__answer { margin-top: 6px; font: 600 1.1875rem/1.22 var(--font-display); letter-spacing: -0.02em; text-wrap: pretty; }
.likebtn { position: absolute; right: -8px; bottom: -14px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--tekhelet); color: var(--white); box-shadow: var(--shadow-like); animation: beat 3.2s var(--ease) infinite; }
.likebtn svg { width: 22px; height: 22px; }
@keyframes beat { 0%, 70%, 100% { transform: scale(1); } 78% { transform: scale(1.14); } 86% { transform: scale(0.96); } }
.meter { display: flex; align-items: center; gap: 4px; margin-top: 24px; padding-inline: 4px; }
.meter i { width: 15px; height: 4px; border-radius: 2px; background: var(--tekhelet-soft); }
.meter i.is-on { width: 24px; background: var(--tekhelet); }
.meter span { margin-left: auto; font: 600 0.75rem/1 var(--font-body); color: var(--caption); font-variant-numeric: tabular-nums; }

/* ---------- Afternoon: the note ---------- */

.notedemo { position: relative; display: grid; gap: 0; max-width: 520px; margin-inline: auto; }
.composer, .received, .filters { border-radius: 22px; background: var(--white); box-shadow: var(--shadow-lift); }
.composer { position: relative; z-index: 1; width: 86%; padding: 18px; }
.composer__label { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font: 700 0.8125rem/1 var(--font-body); color: var(--tekhelet); }
.composer__label svg { width: 16px; height: 16px; }
.composer__field { min-height: 5.4em; margin-top: 12px; padding: 14px 16px; border-radius: 16px; box-shadow: inset 0 0 0 1.5px var(--tekhelet); font-size: 1rem; line-height: 1.5; color: var(--midnight); }
.caret { display: inline-block; width: 2px; height: 1.15em; margin-left: 1px; vertical-align: text-bottom; background: var(--tekhelet); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.composer__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.composer__hint { font-size: 0.8125rem; color: var(--caption); }
[data-send] { transition: transform 0.11s var(--ease); }
[data-send].is-down { transform: scale(0.92); }
.received { position: relative; z-index: 2; justify-self: end; width: 86%; margin-top: -26px; padding: 18px; transition: box-shadow 0.4s var(--ease); }
.received.is-new { box-shadow: var(--shadow-lift), 0 0 0 3px rgba(37, 70, 214, 0.22); }
.received__head { display: flex; align-items: center; gap: 12px; font-size: 0.875rem; line-height: 1.35; color: var(--slate); }
.received__head b { color: var(--midnight); }
.avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.received__quote { margin-top: 14px; padding: 16px; border-radius: 16px; background: var(--mist); font: 600 1.375rem/1.25 var(--font-display); letter-spacing: -0.022em; text-wrap: pretty; transition: opacity 0.4s var(--ease), transform 0.5s var(--ease); }
.received.is-waiting .received__quote, .received.is-waiting .received__actions { opacity: 0.12; transform: translateY(6px); }
.received__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; transition: opacity 0.4s var(--ease) 0.1s, transform 0.5s var(--ease) 0.1s; }
.flyheart { position: absolute; z-index: 3; left: 0; top: 0; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--tekhelet); color: var(--white); box-shadow: var(--shadow-like); opacity: 0; pointer-events: none; }
.flyheart svg { width: 22px; height: 22px; }

/* ---------- Afternoon: where you stand ---------- */

.otherapps { display: flex; align-items: center; gap: 12px; margin-top: 30px; font: 600 0.8125rem/1 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: rgba(14, 20, 48, 0.62); }
.otherapps__chip { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.5); font: 600 0.875rem/1 var(--font-body); letter-spacing: 0; text-transform: none; color: rgba(14, 20, 48, 0.62); }
.otherapps__chip i { width: 16px; height: 16px; border-radius: 4px; box-shadow: inset 0 0 0 1.5px rgba(14, 20, 48, 0.4); }
.otherapps__chip::after { content: ""; position: absolute; left: 8px; right: 8px; top: 50%; height: 1.5px; background: rgba(14, 20, 48, 0.55); transform-origin: left; }

.filters { max-width: 540px; margin-inline: auto; padding: clamp(20px, 3vw, 32px); }
.filters__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; padding-bottom: 6px; }
.filters__head h3 { font: 600 1.375rem/1.15 var(--font-display); letter-spacing: -0.025em; }
.filters__head p { font-size: 0.8125rem; color: var(--caption); }
.rail { padding-top: 22px; margin-top: 18px; border-top: 1px solid var(--hairline); }
.rail__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 14px; }
.rail__title { font: 600 0.8125rem/1.2 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--caption); }
.rail__value { font: 600 1.0625rem/1.25 var(--font-display); letter-spacing: -0.015em; color: var(--tekhelet-deep); }
.rail__track { position: relative; height: 8px; margin: 22px 14px 0; border-radius: 4px; background: var(--tekhelet-tint); }
.rail__fill { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: var(--tekhelet-soft); }
.rail__tick { position: absolute; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: rgba(37, 70, 214, 0.35); }
.rail__input { position: absolute; left: -14px; top: 50%; width: calc(100% + 28px); height: 28px; margin: -14px 0 0; padding: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; outline: none; }
.rail__input::-webkit-slider-runnable-track { height: 28px; background: none; }
.rail__input::-moz-range-track { height: 28px; background: none; }
.rail__input::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 28px; height: 28px; border: 3px solid var(--white); border-radius: 50%; background: var(--tekhelet); box-shadow: 0 4px 12px -2px rgba(37, 70, 214, 0.6); cursor: grab; pointer-events: auto; transition: transform 0.2s var(--spring); }
.rail__input::-moz-range-thumb { width: 22px; height: 22px; border: 3px solid var(--white); border-radius: 50%; background: var(--tekhelet); box-shadow: 0 4px 12px -2px rgba(37, 70, 214, 0.6); cursor: grab; pointer-events: auto; }
.rail__input:active::-webkit-slider-thumb { transform: scale(1.18); cursor: grabbing; }
.rail__input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(37, 70, 214, 0.3); }
.rail__input:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(37, 70, 214, 0.3); }
.rail__ends { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: 0.75rem; color: var(--caption); }

/* ---------- Dusk: the Yenta ---------- */

.setup { --p: 1; position: relative; width: min(100%, 470px); min-height: 570px; margin-inline: auto; }
.setup__photo { position: absolute; top: 30px; width: 47%; padding: 0; border: 3px solid var(--white); border-radius: 12px; background: var(--white); box-shadow: var(--shadow-lift); will-change: transform; }
.setup__photo img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 30%; border-radius: 9px; }
.setup__photo figcaption { display: flex; align-items: center; justify-content: space-between; padding: 9px 8px 7px; font: 600 1.0625rem/1 var(--font-display); letter-spacing: -0.02em; }
.setup__photo figcaption svg { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--leaf); color: var(--white); opacity: clamp(0, calc((var(--p) - 0.82) * 9), 1); transform: scale(clamp(0.4, calc((var(--p) - 0.78) * 5 + 0.4), 1)); }
.setup__photo--a { left: 0; transform: translateX(calc((1 - var(--p)) * -34%)) rotate(calc(-12deg + var(--p) * 8deg)); }
.setup__photo--b { right: 0; top: 54px; transform: translateX(calc((1 - var(--p)) * 34%)) rotate(calc(12deg - var(--p) * 7deg)); }
.ribbon { position: absolute; z-index: 3; left: 50%; top: 262px; display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 4px 14px 4px 4px; border-radius: 17px; background: var(--etrog); color: var(--etrog-ink); font: 700 0.875rem/1 var(--font-body); white-space: nowrap; box-shadow: 0 4px 14px -4px rgba(80, 70, 0, 0.35); transform: translateX(-50%) rotate(-3deg) scale(clamp(0, calc((var(--p) - 0.55) * 3.4), 1)); }
.ribbon i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--etrog-ink); color: var(--etrog); font: 700 0.8125rem/1 var(--font-body); font-style: normal; }
.friendnote { position: absolute; z-index: 2; left: 4%; bottom: 58px; width: 62%; padding: 14px 16px; border-radius: 4px 16px 16px 16px; background: var(--etrog-tint); box-shadow: inset 0 0 0 1px var(--etrog-line), var(--shadow-card); color: var(--etrog-ink); font: 400 1.25rem/1.25 var(--font-voice); font-style: italic; transform: rotate(-2deg); }
.friendnote span { display: block; margin-top: 8px; font: 700 0.75rem/1 var(--font-body); font-style: normal; letter-spacing: 0.04em; }
.bothyes { position: absolute; z-index: 3; right: 0; bottom: 0; display: inline-flex; align-items: center; gap: 9px; padding: 12px 18px 12px 14px; border-radius: 27px; background: var(--tekhelet); color: var(--white); font: 700 0.9375rem/1.2 var(--font-body); box-shadow: var(--shadow-button); opacity: clamp(0, calc((var(--p) - 0.9) * 12), 1); transform: translateY(calc((1 - clamp(0, calc((var(--p) - 0.9) * 12), 1)) * 14px)); }
.bothyes svg { width: 18px; height: 18px; flex: none; }
.place { position: absolute; z-index: 0; padding: 8px 14px; border-radius: 17px; background: rgba(255, 255, 255, 0.55); font: 600 0.8125rem/1 var(--font-body); color: var(--midnight); white-space: nowrap; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.place--1 { left: -6%; top: -18px; transform: translateY(calc((1 - var(--p)) * 60px)) rotate(-5deg); }
.place--2 { right: -4%; top: 0; transform: translateY(calc((1 - var(--p)) * 110px)) rotate(4deg); }
.place--3 { left: 6%; bottom: 4px; transform: translateY(calc((1 - var(--p)) * 80px)) rotate(-3deg); }

/* ---------- Shabbat ---------- */

.friday { position: relative; display: flex; align-items: flex-end; justify-content: center; }
.friday__candles { flex: 0 0 auto; width: min(46%, 260px); margin-right: -52px; }
.friday__gram { position: relative; z-index: 1; display: flex; align-items: flex-start; height: 330px; }
.candles { width: 100%; overflow: visible; }
.flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flicker 2.6s ease-in-out infinite; }
.flame--b { animation-duration: 3.1s; animation-delay: -1.2s; }
@keyframes flicker { 0%, 100% { transform: scale(1, 1) skewX(0deg); } 20% { transform: scale(0.96, 1.05) skewX(2.5deg); } 45% { transform: scale(1.03, 0.95) skewX(-2deg); } 70% { transform: scale(0.98, 1.04) skewX(1.5deg); } }
.halo { transform-box: fill-box; transform-origin: center; animation: glow 3.4s ease-in-out infinite; }
.halo--b { animation-delay: -1.5s; }
@keyframes glow { 0%, 100% { opacity: 0.85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.07); } }
.goldline { margin-top: 26px; font: 400 clamp(1.6rem, 2.6vw, 2.1rem)/1.15 var(--font-voice); font-style: italic; color: var(--candle-gold); }

.gram { position: relative; display: block; width: 300px; max-width: 100%; height: 216px; margin: 20px 0 34px; padding: 0; border: 0; background: none; font: inherit; color: var(--letter-ink); text-align: left; cursor: pointer; transform: rotate(-2.5deg); transition: height 0.7s var(--ease) 0.2s, transform 0.5s var(--spring); -webkit-tap-highlight-color: transparent; }
.gram:hover { transform: rotate(-1deg) translateY(-4px); }
.gram.is-open { height: 268px; transform: rotate(0deg); }
.gram__card { position: absolute; inset: 0; display: block; overflow: hidden; padding: 14px 20px 18px; border: 1.5px solid var(--letter-ink); border-radius: 3px; background: var(--letter-card); box-shadow: 0 12px 26px -12px rgba(0, 0, 0, 0.6), inset 0 0 22px rgba(90, 80, 60, 0.1); }
.gram__heading, .gram__meta { display: block; font: 400 0.875rem/1.5 var(--font-telegram); letter-spacing: 0.06em; text-transform: uppercase; }
.gram__heading { font-size: 0.9375rem; }
.gram__meta { padding: 8px 0 0 14px; opacity: 0; transition: opacity 0.3s var(--ease); }
.gram__meta span { display: block; }
.gram__meta b { font: 500 1.375rem/1 var(--font-hand); letter-spacing: 0; text-transform: none; }
.gram__to { padding-left: 6px; }
.gram__writing { display: block; margin-top: 10px; }
.gram__line { display: block; font: 500 1.75rem/1 var(--font-hand); white-space: nowrap; opacity: 0; transition: opacity 0.36s linear; }
.gram.is-open .gram__meta { opacity: 1; transition-delay: 0.9s; }
.gram.is-open .gram__line { opacity: 1; transition-delay: calc(0.9s + var(--l) * 0.5s); }
.gram__cover { position: absolute; left: 0; right: 0; top: 0; height: 216px; display: block; overflow: hidden; border: 1.5px solid var(--letter-ink); border-radius: 3px; background: var(--letter-cover); box-shadow: 0 10px 22px -12px rgba(0, 0, 0, 0.55), inset 0 0 22px rgba(90, 80, 60, 0.14); transform-origin: 50% 0; transform: perspective(1100px) rotateX(0deg); transition: transform 1.1s cubic-bezier(0.45, 0, 0.2, 1), opacity 0.2s linear 0s, background-color 0.5s linear; }
.gram.is-open .gram__cover { transform: perspective(1100px) rotateX(90deg); opacity: 0; background: #F2EFE6; transition: transform 1.1s cubic-bezier(0.45, 0, 0.2, 1), opacity 0.2s linear 0.9s, background-color 0.5s linear; }
.gram__arch { position: absolute; left: -1.5px; top: 6px; width: 300px; height: 110px; overflow: visible; }
.gram__arch text { font: 400 29px var(--font-telegram); letter-spacing: 2.2px; fill: var(--letter-ink); }
.gram__bouquet { position: absolute; left: 50%; bottom: 8px; width: 92px; height: 120px; margin-left: -46px; object-fit: contain; }
.gram__corner { position: absolute; left: 0; bottom: 0; width: 34px; height: 34px; }
.gram__hint { position: absolute; left: 0; right: 0; top: calc(100% + 14px); text-align: center; font: 600 0.8125rem/1 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--candle-muted); }
.gram::after { content: ""; position: absolute; left: -6px; bottom: 6px; width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--candle-gold); background: rgba(231, 182, 92, 0.22); animation: ripple 2.4s var(--ease) infinite; pointer-events: none; }
.gram.is-open::after { display: none; }
@keyframes ripple { 0% { transform: scale(0.5); opacity: 0; } 30% { opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }

/* Without script the letter cannot be opened by hand, so it is shown open. */
html:not(.js) .gram { height: 268px; transform: none; cursor: default; }
html:not(.js) .gram__cover, html:not(.js) .gram__hint, html:not(.js) .gram::after { display: none; }
html:not(.js) .gram__meta, html:not(.js) .gram__line { opacity: 1; }

/* ---------- Night again ---------- */

.finale { display: grid; justify-items: center; text-align: center; padding-top: clamp(220px, 36vh, 360px); }
.mark--finale { width: clamp(84px, 11vw, 132px); height: auto; aspect-ratio: 68 / 92; color: var(--white); }
.finale__title { margin-top: 44px; font: 600 clamp(3rem, 8.4vw, 7.25rem)/0.96 var(--font-display); letter-spacing: -0.045em; text-wrap: balance; }
.finale__title em { font-size: 1.08em; letter-spacing: -0.03em; color: var(--sky-action); }
.finale__lede { margin-top: 26px; max-width: 30em; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); color: var(--night-soft); text-wrap: pretty; }
.stores--center { justify-content: center; margin-top: 36px; }
.stores--center .store { flex: 0 1 auto; }
.store__big { white-space: nowrap; }

.panel { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); width: 100%; margin-top: clamp(90px, 14vh, 150px); padding: clamp(24px, 4vw, 52px); border-radius: 28px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(201, 211, 255, 0.18); text-align: left; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.panel h3 { font: 600 1.5rem/1.1 var(--font-display); letter-spacing: -0.025em; }
.panel__list li, .plans > div { padding: 16px 0; border-top: 1px solid rgba(201, 211, 255, 0.14); font-size: 0.9375rem; line-height: 1.5; color: var(--night-soft); }
.panel__list, .plans { margin-top: 18px; }
.panel__list b { color: var(--white); font-weight: 700; }
.panel__list a { color: var(--sky-action); text-underline-offset: 3px; }
.plans > div { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 12px; }
.plans dt { font: 600 1.0625rem/1.4 var(--font-display); color: var(--white); }

.foot { position: relative; z-index: 1; margin-top: clamp(80px, 12vh, 140px); padding-block: 34px max(34px, env(safe-area-inset-bottom)); border-top: 1px solid rgba(201, 211, 255, 0.14); }
.foot__row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.foot__brand { display: flex; align-items: baseline; gap: 14px; }
.foot__he { font: 600 1.25rem/1 var(--font-he); color: var(--night-caption); }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-left: auto; }
.foot__links a { font-size: 0.875rem; color: var(--night-soft); text-decoration: none; text-underline-offset: 4px; }
.foot__links a:hover { color: var(--white); text-decoration: underline; }
.foot__fine { width: 100%; font-size: 0.8125rem; color: var(--night-caption); opacity: 0.75; }

/* ---------- Motion: entrances (only when script is running and motion is welcome) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease) calc(var(--i, 0) * 90ms), transform 0.9s var(--ease) calc(var(--i, 0) * 90ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }

  .js .line > span { transform: translateY(108%) rotate(3deg); transform-origin: 0 100%; }
  .js .hero__fade { opacity: 0; transform: translateY(18px); }
  .js .phone { opacity: 0; scale: 0.94; }
  .js .bigstar { opacity: 0; scale: 0; }
  .js .face { opacity: 0; scale: 0.8; }
  .js .arrival > *, .js .arrival__cta { opacity: 0; }

  .js.is-ready .line > span { transform: none; transition: transform 1.1s var(--ease) calc(var(--i) * 110ms + 150ms); }
  .js.is-ready .hero__fade { opacity: 1; transform: none; transition: opacity 0.8s var(--ease) calc(var(--i) * 90ms + 200ms), transform 0.9s var(--ease) calc(var(--i) * 90ms + 200ms); }
  .js.is-ready .phone { opacity: 1; scale: 1; transition: opacity 0.9s var(--ease) 0.45s, scale 1.2s var(--ease) 0.45s, transform 0.6s var(--ease); }
  .js.is-ready .bigstar { opacity: 1; scale: 1; transition: opacity 0.3s linear, scale 0.6s var(--spring); }
  .js.is-ready .bigstar--far { transition-delay: 1.1s; }
  .js.is-ready .bigstar--near { transition-delay: 1.3s; }
  .js.is-ready .bigstar--bright { transition-delay: 1.55s; }
  .js.is-ready .arrival > * { opacity: 1; transition: opacity 0.5s var(--ease) calc(1s + var(--n, 0) * 0.08s); }
  .js.is-ready .face { opacity: 1; scale: 1; transition: opacity 0.36s var(--ease), scale 0.5s var(--spring); }
  .js.is-ready .face--1 { transition-delay: 1.35s; }
  .js.is-ready .face--2 { transition-delay: 1.47s; }
  .js.is-ready .face--3 { transition-delay: 1.59s; }
  .js.is-ready .face--4 { transition-delay: 1.71s; }
  .js.is-ready .arrival__cta { opacity: 1; transition: opacity 0.5s var(--ease) 1.95s; }

  /* The mark draws itself: the b in 1.1 s, then the stars far, near, bright. */
  .js .mark--draw .mark__b, .js [data-draw] .mark__b { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js .mark--draw .mark__star, .js [data-draw] .mark__star { opacity: 0; transform: scale(0); }
  .js.is-ready .mark--draw .mark__b, .js [data-draw].is-in .mark__b { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s cubic-bezier(0.45, 0, 0.2, 1) 0.2s; }
  .js.is-ready .mark--draw .mark__star, .js [data-draw].is-in .mark__star { opacity: 1; transform: scale(1); transition: opacity 0.2s linear, transform 0.5s var(--spring); }
  .js.is-ready .mark--draw .mark__star--far, .js [data-draw].is-in .mark__star--far { transition-delay: 1.3s; }
  .js.is-ready .mark--draw .mark__star--near, .js [data-draw].is-in .mark__star--near { transition-delay: 1.45s; }
  .js.is-ready .mark--draw .mark__star--bright, .js [data-draw].is-in .mark__star--bright { transition-delay: 1.6s; }

  .js .otherapps__chip::after { transform: scaleX(0); transition: transform 0.6s var(--ease) 0.7s; }
  .js .otherapps.is-in .otherapps__chip::after { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .sun { display: none !important; }
  .gram::after { display: none; }
}

/* ---------- Smaller screens ---------- */

@media (max-width: 980px) {
  .split__text, .split--flip .split__text { grid-column: 1 / -1; order: 1; }
  .split__art, .split--flip .split__art { grid-column: 1 / -1; order: 2; }
  .hero { min-height: 0; padding-bottom: 150px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 64px; }
  .hero__title { font-size: clamp(3.1rem, 12vw, 6rem); }
  .hero__art { width: min(72%, 300px); margin-top: 26px; }
  .panel { grid-template-columns: minmax(0, 1fr); }
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
  .nav { width: min(calc(100% - 28px), 420px); }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .hero__title { font-size: clamp(3.1rem, 15.5vw, 4.6rem); }
  .stores { gap: 10px; }
  .store { flex: 1 1 0; min-width: 0; padding-inline: 14px 16px; column-gap: 9px; }
  .store__icon { width: 22px; height: 22px; }
  .store__big { font-size: 1.125rem; }
  .bigstar--bright { width: 64px; height: 64px; right: -34px; top: -44px; }
  .bigstar--near { width: 34px; height: 34px; left: -34px; }
  .bigstar--far { right: -44px; }
  .hero__cue { font-size: 1rem; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .facts li { grid-template-columns: 7em minmax(0, 1fr); align-items: baseline; padding-block: 12px; border-top-width: 1.5px; }
  .deck { min-height: 520px; }
  .intro { width: min(68vw, 270px); }
  .intro--l { transform: translateX(calc(var(--p) * -34%)) translateY(calc(var(--p) * 22px)) rotate(calc(var(--p) * -7deg)) scale(0.9); }
  .intro--r { transform: translateX(calc(var(--p) * 34%)) translateY(calc(var(--p) * 40px)) rotate(calc(var(--p) * 6deg)) scale(0.9); }
  .composer, .received { width: 94%; }
  .received__quote { font-size: 1.1875rem; }
  .setup { min-height: 505px; }
  .ribbon { top: 228px; }
  .friendnote { width: 70%; font-size: 1.125rem; bottom: 70px; }
  .bothyes { font-size: 0.875rem; }
  .place--3 { display: none; }
  .friday { flex-direction: column; align-items: center; }
  .friday__candles { width: 170px; margin: 0 0 -34px; }
  .place--1 { left: 0; }
  .place--2 { right: 0; }
  .plans > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .foot__links { margin-left: 0; }
}
