/* The public site (apps/web/site). Plain CSS on the shared design tokens (tokens.css, light and
   dark). Logical properties throughout, so Arabic mirrors without extra rules. The look follows the
   film: a night sky, Fraunces with one emphasised word, peach for the accent on dark.
   Motion lives here and in site.js; everything is readable with neither (see "No motion" at the end). */
:root {
  --film: #131116;
  --film-2: #1d1924;
  --peach: #F2B99F;
  --on-film: #F8F4EC;
  --on-film-muted: #CFC8BD;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ring: var(--focus, var(--accent));
  --gutter: 20px;
}
:root:lang(hi) {
  --font-display: "Noto Serif Devanagari Variable", "Noto Serif Devanagari", "Fraunces Variable", "Fraunces", Georgia, serif;
  --font-sans: "Hind", "Atkinson Hyperlegible Next", "Segoe UI", system-ui, sans-serif;
}
:root:lang(ar) {
  --font-display: "Noto Naskh Arabic Variable", "Noto Naskh Arabic", "Fraunces Variable", "Fraunces", Georgia, serif;
  --font-sans: "IBM Plex Sans Arabic", "Atkinson Hyperlegible Next", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--font-sans); overflow-x: clip; }
:root:is(:lang(hi), :lang(ar)) body { line-height: 1.75; }
img, video, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
:is(a, button, summary, video):focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(1160px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: fixed; inset-inline-start: 16px; top: -80px; background: var(--on-film); color: var(--film); padding: 12px 18px; border-radius: 12px; z-index: 60; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* The night: the film's sky. Sections with this class are dark in both themes. */
.night {
  background: var(--film); color: var(--on-film);
  --ink: var(--on-film); --ink-muted: var(--on-film-muted); --ink-subtle: #A9A2AD; --line: rgba(248, 244, 236, .14); --line-strong: rgba(248, 244, 236, .4);
  --accent: var(--peach); --surface: var(--film-2); --ring: var(--peach);
}
.stars { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.stars i { position: absolute; top: 0; left: 0; width: 2px; height: 2px; border-radius: 50%; animation: twinkle 5s ease-in-out infinite alternate; }
.stars i + i { animation-duration: 7s; animation-delay: -3s; }
@keyframes twinkle { from { opacity: .25; } to { opacity: 1; } }

/* Type */
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: -0.015em; text-wrap: balance; }
:root:is(:lang(hi), :lang(ar)) :is(h1, h2, h3) { line-height: 1.45; letter-spacing: normal; font-weight: 500; }
h1 { font-size: clamp(34px, 9.6vw, 44px); }
@media (min-width: 561px) { h1 { font-size: clamp(44px, 6vw, 78px); } }
h2 { font-size: clamp(30px, 4.2vw, 54px); }
h3 { font-size: 22px; line-height: 1.25; margin-block-end: 8px; font-weight: 500; }
:root:is(:lang(hi), :lang(ar)) h1 { font-size: clamp(30px, 8.4vw, 68px); }
@media (min-width: 561px) { :root:is(:lang(hi), :lang(ar)) h1 { font-size: clamp(38px, 5.4vw, 68px); } }
:root:is(:lang(hi), :lang(ar)) h2 { font-size: clamp(27px, 3.6vw, 46px); }
em { font-style: italic; color: var(--accent); }
/* Devanagari and Arabic have no italics: emphasis is the accent colour alone. */
:root:is(:lang(hi), :lang(ar)) em { font-style: normal; }
p { margin: 0; text-wrap: pretty; }
.eyebrow { font-weight: 700; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 16px; }
:root:is(:lang(hi), :lang(ar)) .eyebrow { letter-spacing: normal; text-transform: none; font-size: 15px; }
.lede { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-muted); max-width: 34em; }
.note { color: var(--ink-subtle); font-size: 15px; }
.link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; text-decoration: none; }
.link:hover { text-decoration: underline; }
.i-arrow { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease); }
[dir="rtl"] .i-arrow { transform: scaleX(-1); }
:is(.btn, .link):hover .i-arrow { transform: translateX(4px); }
[dir="rtl"] :is(.btn, .link):hover .i-arrow { transform: scaleX(-1) translateX(4px); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px; border-radius: 999px; font: 700 17px/1.2 var(--font-sans); text-decoration: none; border: 1.5px solid transparent; white-space: nowrap; cursor: pointer; transition: transform .2s var(--ease), background-color .2s, box-shadow .2s; }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 10px 30px -12px rgba(27, 27, 31, .5); }
.btn--primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.night .btn--primary { background: var(--on-film); color: var(--film); box-shadow: 0 14px 40px -14px rgba(242, 185, 159, .55); }
.night .btn--primary:hover { background: #fff; }
.btn--glass { color: var(--on-film); border-color: rgba(248, 244, 236, .35); background: rgba(248, 244, 236, .08); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn--glass:hover { background: rgba(248, 244, 236, .18); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn--film { color: var(--on-film); padding-inline: 8px 24px; gap: 14px; text-align: start; }
.btn--film small { display: block; font-weight: 400; font-size: 13px; color: var(--on-film-muted); margin-top: 2px; }
.btn__disc { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(248, 244, 236, .5); flex: none; }
.btn__disc svg { width: 18px; height: 18px; }
.btn__disc::after { content: ""; position: absolute; inset: -1.5px; border-radius: 50%; border: 1.5px solid var(--peach); animation: ping 2.6s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(1.7); opacity: 0; } }

/* Header: clear over the hero, dark glass once the page moves */
.top { position: fixed; inset: 0 0 auto; z-index: 40; color: var(--on-film); transition: background-color .3s, box-shadow .3s; padding-top: env(safe-area-inset-top); }
.top--solid { background: rgba(19, 17, 22, .82); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 1px 0 rgba(248, 244, 236, .1); }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; flex: none; min-height: 44px; }
.brand img { width: 200px; height: auto; }
.top nav { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.top__link { color: var(--on-film); opacity: .86; text-decoration: none; font-weight: 600; font-size: 15px; padding: 12px 14px; border-radius: 999px; }
.top__link:hover { opacity: 1; background: rgba(248, 244, 236, .1); }
.lang { position: relative; margin-inline: 6px 4px; }
.lang summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; font-weight: 600; font-size: 15px; cursor: pointer; border: 1.5px solid transparent; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { background: rgba(248, 244, 236, .1); }
.lang summary svg { width: 18px; height: 18px; }
.lang__short { display: none; }
.lang ul { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); margin: 0; padding: 8px; list-style: none; min-width: 180px; background: var(--film-2); border: 1px solid rgba(248, 244, 236, .16); border-radius: 18px; box-shadow: 0 24px 60px -20px #000; animation: pop .18s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } }
.lang a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 14px; border-radius: 12px; color: var(--on-film); text-decoration: none; font-size: 17px; }
.lang a:hover { background: rgba(248, 244, 236, .1); }
.lang a[aria-current]::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--peach); }
@media (max-width: 900px) { .top__link { display: none; } }
@media (max-width: 560px) {
  .brand img { width: 148px; }
  .top .wrap { min-height: 60px; gap: 8px; }
  .lang { margin-inline: 0 2px; }
  .lang__name { display: none; }
  .lang__short { display: inline; }
  .lang summary { padding: 0 12px; }
}

/* Hero: the film's people behind the promise */
.hero { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: end; min-height: 100vh; min-height: 100svh; }
.hero__media { position: absolute; inset: 0; z-index: -2; background: var(--film); }
.hero__media :is(img, video) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
/* On wide screens the people sit to the side of the words, not behind them. */
@media (min-width: 901px) {
  .hero__media :is(img, video) { transform: scale(1.3) translateX(11%); }
  [dir="rtl"] .hero__media :is(img, video) { transform: scale(1.3) translateX(-11%); }
}
.hero__media video { opacity: 0; transition: opacity 1.2s ease; }
.hero__media video.on { opacity: 1; }
.hero__media::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(to top, var(--film) 0%, rgba(19, 17, 22, .82) 26%, rgba(19, 17, 22, .28) 58%, rgba(19, 17, 22, .5) 100%),
  linear-gradient(to right, rgba(19, 17, 22, .72) 0%, rgba(19, 17, 22, 0) 62%); }
[dir="rtl"] .hero__media::after { background:
  linear-gradient(to top, var(--film) 0%, rgba(19, 17, 22, .82) 26%, rgba(19, 17, 22, .28) 58%, rgba(19, 17, 22, .5) 100%),
  linear-gradient(to left, rgba(19, 17, 22, .72) 0%, rgba(19, 17, 22, 0) 62%); }
.hero .stars { z-index: -1; opacity: .45; }
.hero__body { display: grid; grid-template-columns: minmax(0, 620px) minmax(0, 1fr); gap: 40px; align-items: end; padding-block: 132px 64px; }
.hero h1 { margin-block-end: 22px; }
.hero h1 .line { display: block; overflow: hidden; padding-block: .08em .14em; margin-block: -.08em -.14em; }
:root:is(:lang(hi), :lang(ar)) .hero h1 .line { padding-block: .2em; margin-block: -.2em; }
.hero h1 .line > span { display: block; }
.hero .lede { color: var(--on-film); opacity: .92; margin-block-end: 30px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.hero .note { margin-top: 22px; color: var(--on-film-muted); max-width: 36em; }
/* A sample future message: who it is for, the moment, the date it opens. */
.hero__msg { position: relative; justify-self: end; display: grid; gap: 2px; width: min(320px, 100%); padding: 20px 22px; border-radius: 22px; background: rgba(29, 25, 36, .62); border: 1px solid rgba(248, 244, 236, .16); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 30px 70px -30px #000; }
.hero__msg-for { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--peach); }
:root:is(:lang(hi), :lang(ar)) .hero__msg-for { letter-spacing: normal; text-transform: none; font-size: 14px; }
.hero__msg strong { font: 500 26px/1.25 var(--font-display); }
:root:is(:lang(hi), :lang(ar)) .hero__msg strong { line-height: 1.5; }
.hero__msg-opens { font-size: 15px; color: var(--on-film-muted); }
.hero__msg .wave { margin-top: 14px; height: 30px; color: var(--peach); opacity: .9; }
.hero__seal { position: absolute; inset-inline-end: 18px; top: 18px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--seal-hi), var(--seal-mid) 55%, var(--seal-lo)); color: #fff7ef; }
.hero__seal svg { width: 16px; height: 16px; }
@media (max-width: 900px) {
  .hero__body { grid-template-columns: 1fr; padding-block: 108px 36px; }
  .hero__msg { display: none; }
}
@media (max-width: 560px) {
  .hero__media::after, [dir="rtl"] .hero__media::after { background: linear-gradient(to top, var(--film) 0%, var(--film) 24%, rgba(19, 17, 22, .86) 44%, rgba(19, 17, 22, .12) 72%, rgba(19, 17, 22, .5) 100%); }
  /* On a phone the people fill the top of the screen and the words sit below their faces. */
  .hero__media :is(img, video) { height: 76%; object-position: 50% 20%; }
  .hero .btn--primary { flex: 1 1 100%; }
  .hero .lede { margin-block-end: 22px; font-size: 16px; }
  .hero .note { font-size: 14px; margin-top: 16px; }
}

/* A voice, drawn as bars */
.wave { display: flex; align-items: center; gap: 3px; height: 36px; }
.wave i { flex: 1; max-width: 4px; min-width: 2px; height: calc(var(--h) * 1%); background: currentColor; border-radius: 2px; transform: scaleY(.6); animation: wave 1.3s ease-in-out infinite; animation-delay: calc(var(--d) * -110ms); }
@keyframes wave { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }

/* Moments: the days a message can open on */
.moments { padding-block: 84px 72px; overflow: hidden; }
.moments h2 { text-align: center; margin-block-end: 36px; }
.marquee { display: flex; -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); }
.marquee ul { flex: none; display: flex; align-items: center; margin: 0; padding: 0; list-style: none; animation: slide 46s linear infinite; }
.marquee:hover ul { animation-play-state: paused; }
.marquee li { display: flex; align-items: center; white-space: nowrap; font: 400 clamp(26px, 4.2vw, 52px)/1.3 var(--font-display); color: var(--ink); padding-block: 8px; }
.marquee li:nth-child(even) { font-style: italic; color: var(--accent); }
:root:is(:lang(hi), :lang(ar)) .marquee li { font-style: normal; line-height: 1.7; }
.marquee li::after { content: ""; width: .32em; height: .32em; margin-inline: .7em; background: var(--brass); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); flex: none; }
@keyframes slide { to { transform: translateX(-100%); } }
[dir="rtl"] .marquee ul { animation-name: slide-rtl; }
@keyframes slide-rtl { to { transform: translateX(100%); } }

/* Journey: one message crossing nine years. Without JavaScript (or with reduced motion) it is a
   still picture of the opened message beside the three steps; with it, the stage is pinned and
   site.js sets --a (sealing), --b (years), --flap, --seal, --rise and --glow from the scroll. */
.journey { position: relative; }
.journey__stage { position: relative; overflow: hidden; padding-block: 88px; --a: 1; --b: 1; --flap: 1; --seal: 0; --rise: 1; --glow: 1;
  background: radial-gradient(120% 80% at 50% 0%, #241c2b 0%, var(--film) 60%); }
.journey__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.journey__visual { display: grid; justify-items: center; gap: 22px; }
.journey__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 44px; }
.journey__steps h2 { font-size: clamp(30px, 3.8vw, 52px); margin-block-end: 14px; }
.journey__steps p:not(.eyebrow) { color: var(--on-film-muted); font-size: clamp(17px, 1.5vw, 20px); max-width: 26em; }
.journey__steps blockquote { margin: 26px 0 0; padding-inline-start: 18px; border-inline-start: 2px solid var(--peach); font: italic 400 clamp(20px, 2vw, 26px)/1.4 var(--font-display); max-width: 20em; }
:root:is(:lang(hi), :lang(ar)) .journey__steps blockquote { font-style: normal; line-height: 1.7; }
.journey__steps cite { display: block; margin-top: 10px; font: 400 14px/1.5 var(--font-sans); color: var(--ink-subtle); font-style: normal; }
.journey__dots { display: none; }
.journey__state { display: grid; font-size: 14px; font-weight: 700; color: var(--on-film); }
.journey__state span { grid-area: 1 / 1; display: none; align-items: center; gap: 8px; min-height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(248, 244, 236, .18); background: rgba(248, 244, 236, .06); }
.journey__state span:last-child { display: inline-flex; }
.journey__state svg { width: 14px; height: 14px; color: var(--peach); }

.dial { position: relative; width: min(500px, 100%, 62vh); aspect-ratio: 1; }
.dial svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dial__track { fill: none; stroke: rgba(248, 244, 236, .14); stroke-width: 1.5; stroke-linecap: round; }
.dial__arc { fill: none; stroke: var(--peach); stroke-width: 3; stroke-linecap: round; stroke-dasharray: calc(var(--b) * 300) 360; filter: drop-shadow(0 0 6px rgba(242, 185, 159, .6)); }
.dial__tick { stroke: rgba(248, 244, 236, .4); stroke-width: 1.5; stroke-linecap: round; }
.dial__dot { transform-box: view-box; transform-origin: 200px 200px; transform: rotate(calc(-150deg + var(--b) * 300deg)); fill: #fff3ea; }
.dial__halo { fill: rgba(242, 185, 159, .28); }
.dial :is(.dial__from, .dial__to) { position: absolute; top: 90%; font-size: 12px; letter-spacing: .1em; color: var(--ink-subtle); translate: -50% 0; }
.dial__from { left: 20%; }
.dial__to { left: 80%; }
.dial__year { position: absolute; left: 50%; top: 80%; translate: -50% 0; font: 400 clamp(34px, 9vmin, 60px)/1 var(--font-display); font-variant-numeric: tabular-nums lining-nums; letter-spacing: -.01em; }
.rec, .env { position: absolute; left: 50%; top: 45%; }
.rec { display: grid; gap: 4px; width: 58%; padding: 16px 18px 18px; border-radius: 20px; background: rgba(29, 25, 36, .9); border: 1px solid rgba(248, 244, 236, .16); box-shadow: 0 30px 60px -30px #000; opacity: calc(1 - var(--a) * 1.8); transform: translate(-50%, -50%) scale(calc(1 - var(--a) * .35)); }
.rec__status { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--on-film-muted); }
.rec__status i { width: 9px; height: 9px; border-radius: 50%; background: var(--record-on-night, #E8805C); animation: blink 1.4s ease-in-out infinite; }
.rec__status b { margin-inline-start: auto; font-variant-numeric: tabular-nums; color: var(--on-film); }
@keyframes blink { 50% { opacity: .25; } }
.rec .wave { height: 44px; margin-block: 8px; color: var(--peach); }
.rec__for { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--peach); }
:root:is(:lang(hi), :lang(ar)) .rec__for { letter-spacing: normal; text-transform: none; font-size: 13px; }
.rec strong { font: 500 clamp(17px, 2.2vmin, 22px)/1.3 var(--font-display); }
.env { width: 54%; aspect-ratio: 22 / 15; perspective: 900px; opacity: calc(var(--a) * 3 - 1); transform: translate(-50%, -50%) scale(calc(.82 + var(--a) * .18)); }
.env > * { position: absolute; }
.env__glow { inset: -70%; background: radial-gradient(closest-side, rgba(242, 185, 159, .42), rgba(217, 178, 122, .12) 55%, transparent); opacity: var(--glow); transform: scale(calc(.6 + var(--glow) * .4)); }
.env__back { inset: 0; border-radius: 10px; background: var(--envelope-flap); }
.env__letter { inset: 8% 7% 8%; z-index: 1; display: grid; align-content: start; gap: 10%; padding: 8% 9%; border-radius: 8px; background: #fffdf8; color: #1B1B1F; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .5); transform: translateY(calc(var(--rise) * -78%)); }
.env__from { display: flex; align-items: center; gap: 8px; font: 700 clamp(10px, 1.5vmin, 13px)/1.2 var(--font-sans); color: #A8431F; }
.env__from i { width: 1.6em; height: 1.6em; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--seal-hi), var(--seal-mid) 60%, var(--seal-lo)); flex: none; }
.env__letter .wave { height: 32%; min-height: 18px; color: #C5542F; }
.wave--play i { animation-play-state: paused; }
.journey[data-phase="2"] .wave--play i, .journey:not([data-live]) .wave--play i { animation-play-state: running; }
.env__front { inset: 0; z-index: 2; border-radius: 10px; background: linear-gradient(180deg, var(--envelope-paper), #ecd9ad); clip-path: polygon(0 0, 50% 56%, 100% 0, 100% 100%, 0 100%); }
.env__flap { inset: 0 0 auto; height: 60%; z-index: 3; background: linear-gradient(180deg, #e2c98f, var(--envelope-flap)); clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: 50% 0; transform: rotateX(calc(var(--flap) * 180deg)); }
.journey[data-open] .env__flap, .journey:not([data-live]) .env__flap { z-index: 0; }
.env__seal { left: 50%; top: 58%; z-index: 4; display: grid; place-items: center; width: 22%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--seal-hi), var(--seal-mid) 55%, var(--seal-lo)); color: #fff3ea; box-shadow: 0 6px 14px -4px rgba(0, 0, 0, .5); opacity: var(--seal); transform: translate(-50%, -50%) scale(calc(1.5 - var(--seal) * .5)); }
.env__seal svg { width: 46%; height: 46%; }

/* The pinned version */
.js .journey[data-live] { height: 380vh; height: 380svh; }
.js .journey[data-live] .journey__stage { position: sticky; top: 0; height: 100vh; height: 100svh; padding-block: 76px 24px; display: grid; align-items: center; }
.js .journey[data-live] .journey__steps { gap: 0; }
.js .journey[data-live] .journey__steps li { grid-area: 1 / 1; align-self: center; opacity: 0; transform: translateY(26px); transition: opacity .5s ease, transform .7s var(--ease); pointer-events: none; }
.js .journey[data-live] .journey__steps li.on { opacity: 1; transform: none; pointer-events: auto; transition-delay: .12s; }
.js .journey[data-live] .journey__state span { display: inline-flex; justify-self: center; opacity: 0; transition: opacity .4s; }
.js .journey[data-live][data-phase="0"] .journey__state span:nth-child(1),
.js .journey[data-live][data-phase="1"] .journey__state span:nth-child(2),
.js .journey[data-live][data-phase="2"] .journey__state span:nth-child(3) { opacity: 1; }
.js .journey[data-live] .journey__dots { position: absolute; inset-inline-end: 22px; top: 50%; translate: 0 -50%; display: grid; gap: 10px; }
.journey__dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(248, 244, 236, .3); transition: height .4s var(--ease), background-color .4s; }
.journey[data-phase="0"] .journey__dots i:nth-child(1), .journey[data-phase="1"] .journey__dots i:nth-child(2), .journey[data-phase="2"] .journey__dots i:nth-child(3) { height: 26px; background: var(--peach); }
@media (max-width: 860px) {
  .journey__grid { grid-template-columns: 1fr; gap: 28px; }
  .journey__steps { text-align: center; justify-items: center; }
  .journey__steps blockquote { text-align: start; margin-top: 18px; }
  .dial { width: min(340px, 74vw, 34vh); }
  .js .journey[data-live] .journey__stage { align-items: start; padding-block: 76px 88px; }
  .js .journey[data-live] .journey__grid { gap: 14px; }
  .js .journey[data-live] .journey__steps li { align-self: start; }
  .js .journey[data-live] .journey__dots { inset-inline-end: 8px; }
  .journey__steps h2 { margin-block-end: 10px; }
  .journey__visual { gap: 12px; }
}
@media (max-width: 860px) and (max-height: 700px) { .dial { width: min(260px, 66vw, 32vh); } .journey__steps blockquote { display: none; } }

/* The film */
.film { position: relative; padding-block: 104px 96px; background: radial-gradient(90% 60% at 50% 100%, #2a1f2b 0%, var(--film) 70%); }
.film__head { text-align: center; display: grid; justify-items: center; margin-block-end: 44px; }
.film__head h2 { margin-block-end: 16px; }
.film__stage { display: grid; justify-items: center; gap: 18px; }
.player { position: relative; width: 100%; max-width: 1040px; aspect-ratio: 16 / 9; border-radius: clamp(16px, 2.4vw, 30px); background: #000; box-shadow: 0 0 0 1px rgba(248, 244, 236, .12), 0 50px 120px -40px rgba(242, 185, 159, .35), 0 40px 80px -40px #000; transition: aspect-ratio .4s var(--ease), max-width .4s var(--ease); }
.player[data-shape="tall"] { aspect-ratio: 9 / 16; max-width: min(380px, 100%); }
.player video { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; background: #000; }
.player__play { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; border: 0; border-radius: inherit; background: linear-gradient(to top, rgba(19, 17, 22, .6), rgba(19, 17, 22, .1) 60%); color: var(--on-film); font: 700 16px/1.2 var(--font-sans); cursor: pointer; }
.player.playing .player__play { display: none; }
.player__disc { position: relative; display: grid; place-items: center; width: clamp(72px, 9vw, 104px); aspect-ratio: 1; border-radius: 50%; background: var(--on-film); color: var(--film); transition: transform .3s var(--ease); }
.player__disc svg { width: 38%; height: 38%; margin-inline-start: 6%; }
.player__disc::before, .player__disc::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--on-film); animation: ping 2.8s var(--ease) infinite; }
.player__disc::after { animation-delay: 1.4s; }
.player__play:hover .player__disc { transform: scale(1.06); }
.cuts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 6px; }
.chip { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(248, 244, 236, .28); background: transparent; color: var(--on-film); font: 600 15px/1 var(--font-sans); cursor: pointer; transition: background-color .2s, color .2s; }
.chip:hover { background: rgba(248, 244, 236, .1); }
.chip[aria-pressed="true"] { background: var(--on-film); color: var(--film); border-color: var(--on-film); }
@media (max-width: 560px) {
  .film { padding-block: 72px 64px; }
  .cuts { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; width: calc(100% + 2 * var(--gutter)); margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
  .cuts::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
}

/* Sections on the page's own background */
section.block { padding-block: clamp(72px, 9vw, 120px); }
section.block--alt { background: var(--surface); border-block: 1px solid var(--line); }
section.block > .wrap > h2, .how__text h2, .faq__grid h2 { margin-block-end: 36px; }

/* How it works */
.how__grid { display: grid; grid-template-columns: minmax(240px, 330px) minmax(0, 1fr); gap: clamp(40px, 7vw, 96px); align-items: start; }
.how__phone { position: sticky; top: 96px; display: grid; gap: 20px; }
.phone { padding: 10px; border-radius: 46px; background: #0d0c10; box-shadow: 0 0 0 1.5px #3a3640, 0 40px 80px -30px rgba(27, 27, 31, .55); }
.phone video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 36px; background: #000; }
.guide__step { color: var(--accent); font-weight: 700; font-size: 15px; }
.guide__cap { font-size: 18px; min-height: 4.8em; margin-block: 6px 8px; }
.steps { list-style: none; padding: 0; margin: 0 0 36px; counter-reset: step; }
.steps li { position: relative; padding-inline-start: 76px; padding-block-end: 36px; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; inset-inline-start: 0; top: -4px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font: 500 22px/1 var(--font-display); }
.steps li::after { content: ""; position: absolute; inset-inline-start: 23px; top: 52px; bottom: 4px; width: 2px; border-radius: 1px; background: linear-gradient(var(--accent-tint), var(--line)); transform-origin: top; }
.steps li:last-child::after { display: none; }
.steps li:last-child { padding-block-end: 0; }
.steps p, .bento p { color: var(--ink-muted); }
.steps p { max-width: 30em; }
@media (max-width: 820px) {
  .how__grid { grid-template-columns: 1fr; }
  .how__text { order: -1; }
  .how__phone { position: static; justify-items: center; text-align: center; }
  .phone { width: min(270px, 78vw); }
  .guide__cap { min-height: 5.6em; }
  .how__text .btn { width: 100%; }
}

/* What you can do: six cards, each with a small moving drawing */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.bento article { grid-column: span 2; display: flex; flex-direction: column; border-radius: 26px; padding: 22px 24px 26px; background: var(--bg); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.bento article:nth-child(-n + 2) { grid-column: span 3; }
@media (min-width: 981px) {
  .bento article:nth-child(6) { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 32px; }
  .bento article:nth-child(6) .art { flex: 0 0 340px; }
  .bento article:nth-child(6) h3 { margin-top: 0; }
}
.bento article:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.bento h3 { margin-top: 20px; }
.art { position: relative; height: 150px; border-radius: 18px; overflow: hidden; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--accent); }
.art--voice { grid-template-columns: 1fr; padding: 22px 26px; gap: 14px; align-content: center; }
.art--voice .wave { height: 46px; width: 100%; justify-content: center; }
.lines { display: grid; gap: 7px; width: 100%; }
.lines i { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--ink-subtle) 50%, var(--line) 50%) 100% 0 / 200% 100%; opacity: .7; animation: read 6s linear infinite; }
[dir="rtl"] .lines i { background-image: linear-gradient(to left, var(--ink-subtle) 50%, var(--line) 50%); background-position: 0 0; animation-name: read-rtl; }
.lines i:nth-child(2) { width: 82%; animation-delay: 1.4s; }
.lines i:nth-child(3) { width: 56%; animation-delay: 2.8s; }
@keyframes read { 0% { background-position: 100% 0; } 30%, 100% { background-position: 0 0; } }
@keyframes read-rtl { 0% { background-position: 0 0; } 30%, 100% { background-position: 100% 0; } }
.art--day { grid-auto-flow: column; gap: 18px; }
.tile { display: grid; justify-items: center; width: 84px; padding-block-end: 8px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow-1); color: var(--ink); }
.tile b { width: 100%; text-align: center; padding: 4px 0; font-size: 12px; font-weight: 700; background: var(--seal-lo); color: #fff; }
.tile strong { font: 500 32px/1.2 var(--font-display); }
.tile i { font-style: normal; font-size: 12px; color: var(--ink-subtle); }
.tile--to { animation: arrive 5s var(--ease) infinite; }
@keyframes arrive { 0%, 35% { transform: scale(.94); opacity: .45; } 50%, 100% { transform: none; opacity: 1; } }
.art__lock { width: 28px; height: 28px; }
.art__lock .shackle { transform-origin: 16px 10.5px; animation: unlock 5s var(--ease) infinite; }
@keyframes unlock { 0%, 40% { transform: none; } 52%, 100% { transform: translateY(-2.5px) rotate(28deg); } }
.art--capsule .core { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--seal-hi), var(--seal-mid) 55%, var(--seal-lo)); color: #fff3ea; z-index: 1; }
.art--capsule .core svg { width: 20px; height: 20px; }
.orbit { position: absolute; width: 118px; height: 118px; border: 1px dashed var(--line-strong); border-radius: 50%; animation: turn 26s linear infinite; }
.orbit i { position: absolute; width: 26px; height: 26px; margin: -13px; border-radius: 50%; border: 2px solid var(--surface); animation: turn 26s linear infinite reverse; }
.orbit i:nth-child(1) { left: 50%; top: 0; background: #D9B27A; }
.orbit i:nth-child(2) { left: 100%; top: 50%; background: #C5542F; }
.orbit i:nth-child(3) { left: 50%; top: 100%; background: #8fb6a6; }
.orbit i:nth-child(4) { left: 0; top: 50%; background: #9a86b8; }
.orbit i:nth-child(5) { left: 85.4%; top: 14.6%; background: #e3a48a; width: 18px; height: 18px; margin: -9px; }
@keyframes turn { to { transform: rotate(360deg); } }
.art--queue { gap: 10px; align-content: center; padding-inline: 26px; grid-template-columns: 1fr; }
.art--queue span { display: flex; align-items: center; gap: 12px; width: 100%; }
.art--queue i { width: 24px; height: 24px; border-radius: 50%; background: var(--accent-tint); flex: none; }
.art--queue span:nth-child(2) i { background: var(--honey-bg); }
.art--queue span:nth-child(3) i { background: var(--success-bg); }
.art--queue b { position: relative; flex: 1; height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.art--queue b::after { content: ""; position: absolute; inset: 0; background: var(--accent-fill); border-radius: 4px; transform: scaleX(0); transform-origin: 0 50%; animation: fill 9s linear infinite; }
[dir="rtl"] .art--queue b::after { transform-origin: 100% 50%; }
.art--queue span:nth-child(2) b::after { animation-delay: 3s; }
.art--queue span:nth-child(3) b::after { animation-delay: 6s; }
@keyframes fill { 0% { transform: scaleX(0); } 33% { transform: scaleX(1); } 33.1%, 100% { transform: scaleX(1); opacity: .35; } }
.art--chapters img { position: absolute; width: 92px; height: 116px; object-fit: cover; border-radius: 10px; border: 3px solid var(--bg); box-shadow: var(--shadow-2); transition: transform .5s var(--ease); }
.art--chapters img:nth-child(1) { transform: translateX(-64px) rotate(-9deg); }
.art--chapters img:nth-child(2) { transform: translateX(64px) rotate(9deg); }
.art--chapters img:nth-child(3) { transform: translateY(-2px); }
.bento article:hover .art--chapters img:nth-child(1) { transform: translateX(-86px) rotate(-13deg); }
.bento article:hover .art--chapters img:nth-child(2) { transform: translateX(86px) rotate(13deg); }
.art--langs { grid-auto-flow: column; gap: 14px; }
.art--langs span { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 20px; background: var(--bg); border: 1px solid var(--line); color: var(--ink); font: 500 30px/1 var(--font-display); animation: glow 6s ease-in-out infinite; }
.art--langs span:lang(hi) { font-family: "Noto Serif Devanagari", "Nirmala UI", serif; animation-delay: 2s; }
.art--langs span:lang(ar) { font-family: "Noto Naskh Arabic", "Segoe UI", serif; animation-delay: 4s; }
@keyframes glow { 0%, 28%, 100% { border-color: var(--line); color: var(--ink); transform: none; } 8%, 20% { border-color: var(--accent); color: var(--accent); transform: translateY(-5px); } }
@media (max-width: 980px) { .bento { grid-template-columns: repeat(2, 1fr); } .bento article, .bento article:nth-child(-n + 2) { grid-column: auto; } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; gap: 14px; } .art { height: 132px; } .bento article { padding: 16px 18px 22px; } }

/* Privacy */
.privacy__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.privacy__grid h2 { margin-block: 20px 16px; }
.privacy__badge { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 20px; background: var(--success-bg); color: var(--success-ink); }
.privacy__badge svg { width: 28px; height: 28px; }
.privacy ul { list-style: none; padding: 0; margin: 0; display: grid; }
.privacy li { display: flex; gap: 16px; padding-block: 20px; border-bottom: 1px solid var(--line); font-size: 18px; }
.privacy li:first-child { padding-top: 0; }
.privacy li svg { width: 26px; height: 26px; flex: none; margin-top: 2px; padding: 4px; border-radius: 50%; background: var(--success-bg); color: var(--success-ink); }
.js .privacy li svg path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .6s var(--ease) .3s; }
.js .privacy li.in svg path { stroke-dashoffset: 0; }
@media (max-width: 820px) { .privacy__grid { grid-template-columns: 1fr; } .privacy li { font-size: 17px; } }

/* Questions */
.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 6vw, 88px); align-items: start; }
.faq__grid h2 { position: sticky; top: 104px; }
.faq details { border-bottom: 1px solid var(--line); interpolate-size: allow-keywords; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; padding-block: 14px; cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--line-strong); transition: transform .3s var(--ease), background-color .2s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px -6px; border-radius: 1px; background: currentColor; }
.faq summary i::after { transform: rotate(90deg); transition: transform .3s var(--ease); }
.faq details[open] summary i { background: var(--accent-soft); }
.faq details[open] summary i::after { transform: none; }
.faq details p { color: var(--ink-muted); padding-block: 0 22px; max-width: 46em; }
.faq details::details-content { height: 0; overflow: hidden; transition: height .35s var(--ease), content-visibility .35s allow-discrete; }
.faq details[open]::details-content { height: auto; }
@media (max-width: 820px) { .faq__grid { grid-template-columns: 1fr; } .faq__grid h2 { position: static; margin-block-end: 20px; } .faq summary { font-size: 17px; } }

/* The closing section: the film's end card, at night */
.cta { position: relative; isolation: isolate; overflow: hidden; text-align: center; padding-block: clamp(96px, 14vw, 168px); background: radial-gradient(70% 70% at 50% 50%, #2b2030 0%, var(--film) 70%); }
.cta .stars { z-index: -1; }
.cta .wrap { display: grid; justify-items: center; }
.cta__mark { width: 122px; height: auto; margin-block-end: 28px; filter: drop-shadow(0 12px 30px rgba(242, 185, 159, .35)); }
.cta h2 { font-size: clamp(36px, 6vw, 76px); margin-block-end: 16px; }
:root:is(:lang(hi), :lang(ar)) .cta h2 { font-size: clamp(30px, 5vw, 60px); }
.cta p { color: var(--on-film-muted); font-size: clamp(17px, 1.6vw, 21px); margin-block-end: 34px; max-width: 28em; }
.cta__rings { position: absolute; inset: 0; z-index: -1; }
.cta__rings i { position: absolute; left: 50%; top: 50%; width: min(980px, 150vw); aspect-ratio: 2.6; margin: 0; border: 1px solid rgba(217, 178, 122, .2); border-radius: 50%; translate: -50% -50%; animation: turn 90s linear infinite; }
.cta__rings i:nth-child(2) { rotate: 60deg; animation-duration: 120s; animation-direction: reverse; }
.cta__rings i:nth-child(3) { rotate: 120deg; animation-duration: 150s; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-block: 56px calc(40px + env(safe-area-inset-bottom)); font-size: 15px; color: var(--on-film-muted); }
.foot .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 32px 48px; align-items: start; }
.foot__brand { display: grid; gap: 12px; max-width: 30em; }
.foot__brand img { width: 180px; height: auto; }
.foot__made { color: var(--ink-subtle); }
.foot nav { display: grid; }
.foot a { display: inline-flex; align-items: center; gap: .35em; min-height: 44px; color: var(--on-film); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot a span { white-space: nowrap; }
.foot a[aria-current] { color: var(--peach); }
.foot__legal { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-subtle); }
@media (max-width: 760px) {
  .foot .wrap { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 28px 20px; }
  .foot__brand { grid-column: 1 / -1; }
}

/* The phone's sticky button */
.dock { display: none; }
@media (max-width: 760px) {
  .dock { display: block; position: fixed; inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30; transform: translateY(160%); transition: transform .4s var(--ease); }
  .dock.on { transform: none; }
  .dock .btn { width: 100%; background: var(--on-film); color: var(--film); box-shadow: 0 0 0 1px rgba(19, 17, 22, .12), 0 18px 40px -10px rgba(19, 17, 22, .55); }
  body:not(.plain) .foot { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
}

/* Long-form pages (privacy, not found) */
.plain { background: var(--bg); }
.doc { max-width: 46em; padding-block: 132px 96px; }
.doc h1 { font-size: clamp(36px, 5vw, 60px); margin-bottom: 12px; }
.doc__date { color: var(--ink-subtle); margin-block-end: 28px; }
.doc section { padding-block: 26px; border-top: 1px solid var(--line); }
.doc h2 { font-size: 26px; margin-block-end: 10px; }
.doc p { color: var(--ink-muted); }
.doc__contact { margin-top: 12px; }
.doc--center { text-align: center; min-height: 72vh; display: grid; align-content: center; justify-items: center; gap: 18px; }

/* Entrances: only when site.js is running (html.js) and motion is welcome */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
  .js [data-reveal].in { opacity: 1; transform: none; }
  .js .bento article[data-reveal].in { transition: opacity .8s ease calc(var(--i, 0) * 90ms), transform .3s var(--ease), box-shadow .3s; }
  .js .hero h1 .line > span { transform: translateY(110%); animation: rise 1s var(--ease) forwards; animation-delay: calc(var(--i) * 140ms + 200ms); }
  .js .hero [data-rise] { opacity: 0; animation: fade-up .9s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 120ms + 250ms); }
  .js .steps li::after { transform: scaleY(0); transition: transform .9s var(--ease) .35s; }
  .js .steps li.in::after { transform: none; }
  @keyframes rise { to { transform: none; } }
  @keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}

/* No motion: everything is in place and nothing moves */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .wave i { transform: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee ul { flex-wrap: wrap; justify-content: center; flex: 1; padding-inline: var(--gutter); }
  .marquee ul[aria-hidden] { display: none; }
  .marquee li { white-space: normal; font-size: clamp(20px, 3vw, 30px); }
  .tile--to { opacity: 1; }
}

/* "Dev" on the test build (dev.pre-sent.ai): never shown on pre-sent.ai. */
.stage-badge { position: fixed; z-index: 9999; inset-block-start: 0; left: 50%; transform: translateX(-50%); padding: 0 10px; border-radius: 0 0 8px 8px; background: #c2410c; color: #fff; font: 700 11px/1.6 system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; pointer-events: none; }
