/* Charles Millet — Apps. One stylesheet for every page. */

:root {
  --ink: #0b0b0e;
  --paper: #f6f5f2;
  --white: #ffffff;
  --grey-1: #e9e7e2;
  --grey-2: #b9b6ae;
  --grey-3: #6e6b65;
  --night: #0b0b0e;
  --night-2: #16161b;
  --night-3: #23232a;
  --accent: #2f7cff;
  --accent-2: #ffa53a;
  --radius-xl: 36px;
  --radius-l: 24px;
  --radius-m: 16px;
  --nav-h: 52px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) * 2); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* ---------- themes ---------- */
.theme-dark { background: var(--night); color: #f4f4f6; color-scheme: dark; }
.theme-dark .muted { color: #a3a3ad; }
.theme-light { background: var(--paper); color: var(--ink); }
.muted { color: var(--grey-3); }

/* ---------- type ---------- */
.kicker { font-size: 15px; font-weight: 600; letter-spacing: .02em; color: var(--accent); margin: 0 0 12px; }
.display {
  font-size: clamp(48px, 9vw, 112px);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 700;
  margin: 0;
}
.h2 { font-size: clamp(34px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -.035em; font-weight: 700; margin: 0 0 16px; }
.h3 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.15; letter-spacing: -.02em; font-weight: 650; margin: 0 0 8px; }
.lead { font-size: clamp(19px, 2vw, 24px); line-height: 1.4; letter-spacing: -.01em; margin: 0; max-width: 36em; }

/* ---------- buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 11px 22px;
  border-radius: 999px; border: 0;
  background: var(--accent); color: #fff;
  font-size: 17px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), filter .25s var(--ease);
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn.ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn.small { min-height: 30px; padding: 5px 14px; font-size: 13px; }
.btn.disabled { background: var(--grey-1); color: var(--grey-3); cursor: default; pointer-events: none; }
.theme-dark .btn.disabled { background: var(--night-3); color: #a3a3ad; }
.link { color: var(--accent); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; }
.link::after { content: "›"; font-size: 1.25em; line-height: 1; transition: transform .25s var(--ease); }
.link:hover::after { transform: translateX(3px); }
.link.no-arrow::after { content: none; }

/* ---------- global nav ---------- */
.gnav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(246, 245, 242, .72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}
.gnav.dark { background: rgba(11, 11, 14, .72); color: #f4f4f6; border-bottom-color: rgba(255, 255, 255, .08); }
.gnav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -.02em; font-size: 17px; min-height: 44px; }
.brand-mark { width: 22px; height: 22px; border-radius: 7px; background: conic-gradient(from 200deg, #2f7cff, #4fd6ff, #f5b24a, #f0894a, #e8516f, #6b5cff, #2f7cff); }
.gnav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.gnav ul a { font-size: 13px; text-decoration: none; opacity: .82; transition: opacity .2s; display: inline-flex; align-items: center; min-height: 44px; }
.gnav ul a:hover, .gnav ul a[aria-current="page"] { opacity: 1; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; margin-right: -10px; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease); }
.menu-btn span:first-child { top: 18px; }
.menu-btn span:last-child { top: 25px; }
.menu-open .menu-btn span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .menu-btn span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .gnav ul {
    position: fixed; inset: var(--nav-h) 0 auto 0; height: calc(100dvh - var(--nav-h));
    flex-direction: column; gap: 0; padding: 12px var(--gutter) 40px;
    background: inherit; backdrop-filter: inherit; -webkit-backdrop-filter: inherit;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s .35s;
  }
  .gnav { background: rgba(246, 245, 242, .94); }
  .gnav.dark { background: rgba(11, 11, 14, .94); }
  .menu-open .gnav ul { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .gnav ul a { font-size: 28px; font-weight: 650; letter-spacing: -.02em; opacity: 1; padding: 6px 0; }
  .menu-open .gnav ul li { animation: menuIn .5s var(--ease) both; }
  .menu-open .gnav ul li:nth-child(2) { animation-delay: .03s; }
  .menu-open .gnav ul li:nth-child(3) { animation-delay: .06s; }
  .menu-open .gnav ul li:nth-child(4) { animation-delay: .09s; }
  .menu-open .gnav ul li:nth-child(5) { animation-delay: .12s; }
  .menu-open .gnav ul li:nth-child(6) { animation-delay: .15s; }
  .menu-open .gnav ul li:nth-child(7) { animation-delay: .18s; }
  body.menu-open { overflow: hidden; }
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-10px); } }

/* ---------- local (app) nav ---------- */
.lnav {
  position: sticky; top: var(--nav-h); z-index: 40;
  height: 52px;
  background: rgba(246, 245, 242, .72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.theme-dark .lnav { background: rgba(11, 11, 14, .72); border-bottom-color: rgba(255, 255, 255, .1); }
.lnav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lnav-title { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 19px; letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
.lnav-title img { width: 26px; height: 26px; border-radius: 7px; }
.lnav-right { display: flex; align-items: center; gap: 24px; }
.lnav-links { display: flex; gap: 22px; }
.lnav-links a { font-size: 12px; text-decoration: none; opacity: .7; transition: opacity .2s; }
.lnav-links a:hover, .lnav-links a.active { opacity: 1; }
@media (max-width: 720px) { .lnav-links { display: none; } .lnav-title { font-size: 17px; } }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.reveal.scale { transform: scale(.94); }
.reveal.scale.in { transform: none; }

/* ---------- home hero ---------- */
.home-hero { padding: clamp(56px, 8vw, 96px) 0 0; text-align: center; overflow: hidden; }
.home-hero .display { font-size: clamp(56px, 11vw, 136px); }
.home-hero .lead { margin: 24px auto 0; color: var(--grey-3); }
.grad-word {
  background: linear-gradient(90deg, #2f7cff, #4fd6ff 25%, #f5b24a 50%, #f0894a 65%, #e8516f 80%, #6b5cff);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradShift 9s ease-in-out infinite alternate;
}
@keyframes gradShift { to { background-position: 100% 0; } }

.hero-line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-line > span { display: inline-block; animation: lineUp 1.1s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes lineUp { from { transform: translateY(105%); opacity: 0; } }
.fade-up { animation: fadeUp 1.1s var(--ease) both; animation-delay: var(--d, .35s); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } }

/* icon constellation: stacked at the start, spreads out as you scroll */
.constellation { position: relative; height: clamp(260px, 42vw, 520px); margin-top: clamp(16px, 3vw, 40px); --p: 0; }
.constellation a {
  --size: clamp(76px, 12vw, 150px);
  position: absolute; left: 50%; top: 50%;
  width: var(--size); height: var(--size);
  margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2);
  border-radius: 23%;
  transform:
    translate(calc(var(--x) * (.08 + .92 * var(--p)) * var(--spread, 1) * 1%), calc(var(--y) * (.08 + .92 * var(--p)) * var(--spread, 1) * 1%))
    rotate(calc(var(--r) * (1 - var(--p)) * 1deg))
    scale(calc(.82 + .18 * var(--p)));
  transition: transform .12s linear;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .35);
  z-index: var(--z, 1);
}
.constellation a img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.constellation a:hover { z-index: 10; }
.constellation a:hover img { transform: scale(1.06); }
.constellation a img { transition: transform .4s var(--ease); }
@media (max-width: 640px) { .constellation { --spread: .68; } }
.constellation-hint { font-size: 13px; color: var(--grey-3); margin-top: 8px; }

/* ---------- section scaffolding ---------- */
.section { padding: clamp(80px, 12vw, 160px) 0; }
.section.tight { padding: clamp(56px, 8vw, 100px) 0; }
.section-head { text-align: center; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .lead { margin: 0 auto; }

/* ---------- platform filter chips ---------- */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 clamp(32px, 5vw, 48px); }
.chip {
  border: 0; cursor: pointer;
  min-height: 40px; padding: 8px 16px; border-radius: 999px;
  background: var(--grey-1); color: var(--ink);
  font-size: 15px; font-weight: 550;
  transition: background .25s var(--ease), color .25s var(--ease), transform .2s var(--ease);
}
.chip:hover { transform: translateY(-1px); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.chip-count { opacity: .55; margin-left: 4px; font-variant-numeric: tabular-nums; }

/* ---------- app tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tile {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-xl);
  min-height: 560px;
  padding: clamp(36px, 5vw, 56px) clamp(24px, 4vw, 48px) 0;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  text-decoration: none;
  transition: opacity .45s var(--ease), transform .45s var(--ease), filter .45s var(--ease);
}
.tile.wide { grid-column: 1 / -1; min-height: 640px; }
.tile.theme-light { background: var(--white); }
.tile.theme-dark { background: var(--night-2); }
.tile .glow {
  position: absolute; inset: auto -20% -30% -20%; height: 70%; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 55%, transparent), transparent 70%);
  opacity: .5; filter: blur(30px);
  transition: opacity .6s var(--ease), transform .8s var(--ease);
}
.tile:hover .glow { opacity: .85; transform: translateY(-6%); }
.tile-icon { width: 72px; height: 72px; border-radius: 17px; margin-bottom: 18px; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .4); }
.tile .h2 { font-size: clamp(32px, 4.2vw, 52px); margin-bottom: 6px; }
.tile .lead { font-size: clamp(17px, 1.6vw, 21px); }
.tile .btns { justify-content: center; margin-top: 18px; }
.tile .platforms { margin-top: 14px; font-size: 13px; }
.tile-media {
  margin-top: auto; padding-top: 32px; width: 100%;
  display: flex; justify-content: center; align-items: flex-end;
  min-height: 0;
}
.tile-media img, .tile-media video {
  width: 100%; max-width: 760px; max-height: 300px; object-fit: cover;
  border-radius: var(--radius-l) var(--radius-l) 0 0;
  transform: translateY(12px); transition: transform .8s var(--ease);
}
.tile.wide .tile-media img, .tile.wide .tile-media video { max-height: 360px; }
.tile:hover .tile-media img, .tile:hover .tile-media video { transform: translateY(0) scale(1.015); }
.tile-media.layers-mini { height: 280px; position: relative; perspective: 900px; }
.tile-media.layers-mini .layers { width: 280px; height: 280px; }
.tile.is-hidden { display: none; }
.tile.is-leaving { opacity: 0; transform: scale(.96); }

.badge { display: inline-block; font-size: 12px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }

@media (max-width: 860px) {
  .tiles { grid-template-columns: 1fr; }
  .tile, .tile.wide { min-height: 520px; border-radius: var(--radius-l); }
}

/* projects row */
.project {
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
  padding: 28px clamp(20px, 3vw, 36px); border-radius: var(--radius-l);
  background: var(--white); text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.project:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .25); }
.project img { width: 64px; height: 64px; border-radius: 15px; }
.project .h3 { margin: 0; }
.project p { margin: 2px 0 0; }
@media (max-width: 640px) { .project { grid-template-columns: auto 1fr; } .project .btns { grid-column: 1 / -1; } }

/* ---------- app page hero ---------- */
.app-hero { padding: clamp(56px, 9vw, 110px) 0 0; text-align: center; overflow: clip; }
.app-hero .app-icon {
  width: clamp(96px, 12vw, 132px); height: clamp(96px, 12vw, 132px);
  border-radius: 23%; margin: 0 auto 28px;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .45);
  transform: perspective(600px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .2s ease-out;
  animation: iconIn 1.2s var(--ease) both;
}
@keyframes iconIn { from { opacity: 0; transform: scale(.7) translateY(20px); } }
.app-hero .lead { margin: 28px auto 0; }
.app-hero .btns { justify-content: center; margin-top: 32px; }
.platform-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin: 20px 0 0; padding: 0; list-style: none; font-size: 14px; }

/* the media card that grows to full bleed as you scroll */
.expand { --p: 0; margin-top: clamp(48px, 7vw, 88px); }
.expand-inner {
  width: calc(100% - (1 - var(--p)) * 2 * max(var(--gutter), (100vw - var(--max)) / 2 + 60px));
  margin-inline: auto;
  border-radius: calc((1 - var(--p)) * var(--radius-xl));
  overflow: hidden; position: relative;
  aspect-ratio: 16 / 9; max-height: 92vh;
  background: #000;
  transform: translateZ(0);
}
.expand-inner video, .expand-inner > img { width: 100%; height: 100%; object-fit: cover; }
.theme-light .expand-inner { background: var(--white); }
.expand-inner.contain video, .expand-inner.contain > img { object-fit: contain; }
@media (max-width: 720px) { .expand-inner { aspect-ratio: 4 / 3; } }
.media-toggle {
  position: absolute; right: 16px; bottom: 16px;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(30, 30, 34, .55); color: #fff;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: grid; place-items: center;
}
.media-toggle svg { width: 16px; height: 16px; }

/* layered parallax (visionOS-style icon layers) */
.layers-stage { display: grid; place-items: center; width: 100%; height: 100%; background: #000; perspective: 1100px; }
.layers { position: relative; width: min(56vh, 70vw); aspect-ratio: 1; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out; }
.layers img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.layers img:nth-child(1) { transform: translateZ(0) scale(1); mix-blend-mode: lighten; }
.layers img:nth-child(2) { transform: translateZ(calc(40px + 30px * var(--p, 0))) scale(.96); }
.layers img:nth-child(3) { transform: translateZ(calc(80px + 70px * var(--p, 0))) scale(.92); filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .55)); }

/* ---------- word-by-word statement ---------- */
.statement { font-size: clamp(30px, 4.6vw, 56px); line-height: 1.12; letter-spacing: -.03em; font-weight: 700; margin: 0; max-width: 20em; }
.statement .w { opacity: .18; transition: opacity .3s linear; }
.statement .w.on { opacity: 1; }

/* ---------- feature cards ---------- */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.feature {
  padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-l);
  background: var(--white); position: relative; overflow: hidden;
  min-height: 260px; display: flex; flex-direction: column; justify-content: flex-end;
}
.theme-dark .feature { background: var(--night-2); }
.feature .num { position: absolute; top: clamp(24px, 3vw, 36px); left: clamp(28px, 4vw, 44px); font-size: 14px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.feature::before {
  content: ""; position: absolute; width: 260px; height: 260px; right: -90px; top: -90px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 35%, transparent), transparent);
  opacity: 0; transition: opacity .6s var(--ease), transform .8s var(--ease);
}
.feature:hover::before { opacity: 1; transform: translate(-20px, 20px); }
.feature p { margin: 0; font-size: 17px; }
@media (max-width: 720px) { .features { grid-template-columns: 1fr; } .feature { min-height: 0; padding-top: 72px; } }

.feature.has-img { padding-right: clamp(150px, 16vw, 200px); }
.feature.has-img img { position: absolute; right: clamp(12px, 2vw, 28px); bottom: 50%; transform: translateY(50%); width: clamp(120px, 13vw, 160px); height: auto; }
@media (max-width: 720px) { .feature.has-img { padding-right: 130px; } .feature.has-img img { width: 110px; } }

/* ---------- sticky story ---------- */
.story { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 96px); }
.story-steps { padding: 20vh 0 30vh; }
.story-step { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; opacity: .25; transition: opacity .5s var(--ease); }
.story-step.active { opacity: 1; }
.story-media { position: sticky; top: calc(var(--nav-h) * 2 + 4vh); height: calc(100vh - var(--nav-h) * 2 - 8vh); display: grid; place-items: center; }
.story-media img {
  grid-area: 1 / 1; width: 100%; max-height: 100%; object-fit: contain;
  opacity: 0; transform: scale(.96) translateY(20px);
  transition: opacity .7s var(--ease), transform .9s var(--ease);
}
.story-media img.active { opacity: 1; transform: none; }
.story-step .story-inline { display: none; }
@media (max-width: 860px) {
  .story { grid-template-columns: 1fr; }
  .story-media { display: none; }
  .story-steps { padding: 0; }
  .story-step { min-height: 0; opacity: 1; margin-bottom: 64px; }
  .story-step .story-inline { display: block; margin-top: 24px; border-radius: var(--radius-m); }
}

/* ---------- quotes carousel ---------- */
.quotes { text-align: center; position: relative; min-height: clamp(220px, 28vw, 320px); display: grid; place-items: center; }
.quote { grid-area: 1 / 1; margin: 0; opacity: 0; transform: translateY(24px) scale(.98); transition: opacity .7s var(--ease), transform .8s var(--ease); pointer-events: none; }
.quote.active { opacity: 1; transform: none; pointer-events: auto; }
.quote blockquote { margin: 0; font-size: clamp(36px, 6.5vw, 84px); line-height: 1.02; letter-spacing: -.04em; font-weight: 700; }
.quote figcaption { margin-top: 18px; color: var(--accent); font-weight: 600; }
.dots { display: flex; justify-content: center; gap: 4px; margin-top: 28px; }
.dots button { width: 32px; height: 32px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; padding: 0; }
.dots button::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: currentColor; opacity: .25; transition: width .4s var(--ease), opacity .3s; }
.dots button[aria-current="true"]::before { width: 24px; opacity: .9; }

/* ---------- gallery ---------- */
.gallery { position: relative; }
.gallery-track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 max(var(--gutter), calc((100vw - var(--max)) / 2)) 8px;
  scrollbar-width: none; scroll-behavior: smooth;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-item { flex: 0 0 min(84vw, 900px); scroll-snap-align: center; margin: 0; }
.gallery-item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-l); background: var(--grey-1); }
.theme-dark .gallery-item img { background: var(--night-2); }
.gallery-item figcaption { font-size: 14px; margin-top: 12px; }
.gallery-nav { display: flex; justify-content: flex-end; gap: 12px; margin-top: 20px; }
.round-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--grey-1); display: grid; place-items: center;
  transition: opacity .25s, transform .2s var(--ease);
}
.theme-dark .round-btn { background: var(--night-3); }
.round-btn:hover { transform: scale(1.06); }
.round-btn:disabled { opacity: .35; cursor: default; transform: none; }
.round-btn svg { width: 18px; height: 18px; }

/* ---------- film ---------- */
.film-card {
  position: relative; display: block; width: 100%; border: 0; padding: 0; cursor: pointer;
  border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 16 / 9; background: #000;
}
.film-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .6s; opacity: .85; }
.film-card:hover img { transform: scale(1.03); opacity: 1; }
.film-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 26px 14px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .88); color: #0b0b0e; font-weight: 650; white-space: nowrap; font-size: clamp(14px, 1.6vw, 17px);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: transform .35s var(--ease);
}
.film-card:hover .film-play { transform: translate(-50%, -50%) scale(1.05); }
.film-play svg { width: 32px; height: 32px; }
dialog.film-dialog { padding: 0; border: 0; background: transparent; width: min(100vw - 32px, 1280px); max-width: none; max-height: none; overflow: visible; }
dialog.film-dialog::backdrop { background: rgba(0, 0, 0, .9); backdrop-filter: blur(8px); }
dialog.film-dialog[open] { animation: dlgIn .45s var(--ease); }
@keyframes dlgIn { from { opacity: 0; transform: scale(.94); } }
dialog.film-dialog video { width: 100%; border-radius: var(--radius-m); background: #000; }
.dialog-close { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff; font-size: 24px; cursor: pointer; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid rgba(0, 0, 0, .12); }
.theme-dark .faq details { border-bottom-color: rgba(255, 255, 255, .14); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 40px 24px 0; position: relative;
  font-size: clamp(19px, 2vw, 22px); font-weight: 650; letter-spacing: -.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 28px; font-weight: 300; transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .answer { overflow: hidden; }
.faq .answer p { margin: 0 0 24px; max-width: 40em; }

/* ---------- final CTA ---------- */
.cta { text-align: center; }
.cta img { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 24px; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .4); }
.cta .btns { justify-content: center; margin-top: 28px; }

/* ---------- other apps strip ---------- */
.more-apps { display: flex; gap: 16px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.more-apps::-webkit-scrollbar { display: none; }
.more-app { flex: 0 0 auto; width: 150px; text-align: center; text-decoration: none; font-size: 14px; font-weight: 600; }
.more-app img { width: 88px; height: 88px; border-radius: 20px; margin: 0 auto 10px; transition: transform .35s var(--ease); }
.more-app:hover img { transform: translateY(-4px) scale(1.04); }

/* ---------- footer ---------- */
.footer { padding: 40px 0 56px; font-size: 13px; border-top: 1px solid rgba(0, 0, 0, .1); }
.theme-dark .footer, .footer.dark { border-top-color: rgba(255, 255, 255, .1); }
.footer .wrap { display: grid; gap: 20px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; }
.footer h4 { font-size: 13px; margin: 0 0 8px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li a { text-decoration: none; display: inline-block; padding: 4px 0; opacity: .75; }
.footer li a:hover { opacity: 1; text-decoration: underline; }
.footer .note { max-width: 60em; }

/* ---------- film first (Hello Duo) ---------- */
.top-film { padding: clamp(16px, 3vw, 32px) 0 0; }
.top-film-inner {
  position: relative; margin-inline: auto; aspect-ratio: 16 / 9;
  width: min(100% - 2 * var(--gutter), 980px, calc((100vh - var(--nav-h) * 2 - 140px) * 16 / 9));
  border-radius: var(--radius-l); overflow: hidden; background: #ebe6e1;
  box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .35);
}
.top-film video { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 720px) { .top-film-inner { width: calc(100% - 2 * var(--gutter)); border-radius: var(--radius-m); } }
.sound-btn {
  position: absolute; right: 20px; bottom: 20px;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(20, 20, 24, .62); color: #fff; font-weight: 600; font-size: 15px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.sound-btn:hover { transform: scale(1.04); background: rgba(20, 20, 24, .78); }
.sound-btn[aria-pressed="true"] { background: rgba(255, 255, 255, .85); color: var(--ink); }
@media (max-width: 720px) { .sound-btn { right: 12px; bottom: 12px; font-size: 14px; padding: 8px 14px; min-height: 40px; } }

/* ---------- the characters ---------- */
.cast { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cast-card {
  flex: 0 0 calc((100% - 6 * 12px) / 7); min-width: 150px;
  background: var(--white); border-radius: var(--radius-m); padding: 14px 12px 18px; text-align: center;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.cast-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .3); }
.cast-card img { width: 112px; height: 112px; object-fit: contain; margin: 0 auto 4px; }
.cast-card h3 { color: var(--c); font-size: 15px; line-height: 1.2; letter-spacing: -.01em; margin: 0 0 10px; }
.cast-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.cast-card li { font-size: 13px; line-height: 1.25; font-weight: 550; }
.cast-card li span { display: block; font-size: 10px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--grey-3); margin-bottom: 1px; }
@media (max-width: 1100px) { .cast-card { flex-basis: calc((100% - 4 * 12px) / 5); } }
@media (max-width: 860px) { .cast-card { flex-basis: calc((100% - 3 * 12px) / 4); } }
@media (max-width: 640px) { .cast { gap: 10px; } .cast-card { flex-basis: calc((100% - 10px) / 2); min-width: 0; } .cast-card img { width: 96px; height: 96px; } }

/* ---------- tighter pages (less empty space) ---------- */
.compact .app-hero { padding: clamp(36px, 5vw, 64px) 0 clamp(8px, 2vw, 24px); }
.compact .app-hero .lead { margin-top: 20px; }
.compact .app-hero .btns { margin-top: 24px; }
.compact .section { padding: clamp(48px, 7vw, 96px) 0; }
.compact .section.tight { padding: clamp(36px, 5vw, 64px) 0; }
.compact .section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.compact .statement { font-size: clamp(26px, 3.8vw, 46px); margin-inline: auto; text-align: center; }
.compact .feature { min-height: 200px; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .statement .w { opacity: 1; }
}
