/* Home v3, three screens (06 §6j "Home v3", DJ 2026-11-17). Tokens only (dist/tokens.css).
   Two grounds on one page whatever the reader's setting: .lq is lacquer (the gifter's velvet),
   .gt is gilt (the hinter's porcelain). home.js adds html.js and the motion; every element's
   static state is its final state, and reduced motion keeps it. */

/* ---------- Grounds ---------- */
.lq {
  --text: var(--lq-text);
  --muted: var(--lq-muted);
  --accent: var(--lq-eyebrow);
  --hairline: var(--lq-hairline);
  --hairline-strong: var(--lq-hairline-strong);
  --card-1: var(--lq-card-1);
  color: var(--text);
  background:
    radial-gradient(120% 60% at 50% 0%, var(--lq-light), transparent 60%),
    linear-gradient(180deg, var(--lq-0), var(--lq-1) 45%, var(--lq-2));
}

.gt {
  --text: var(--gt-text);
  --muted: var(--gt-muted);
  --accent: var(--gt-eyebrow);
  --hairline: var(--gt-hairline);
  --hairline-strong: var(--gt-hairline-strong);
  --card-1: var(--gt-card-1);
  color: var(--text);
  background:
    radial-gradient(120% 60% at 50% 0%, var(--gt-light), transparent 60%),
    linear-gradient(180deg, var(--gt-0), var(--gt-1) 45%, var(--gt-2));
}

html:has(body.home) {
  scroll-padding-block-start: var(--header);
}

body.home {
  background: var(--lq-2);
  color: var(--lq-text);
  overflow-x: clip;
}

.home main > section {
  position: relative;
  overflow: hidden;
  padding-block: var(--section-gap-sm);
}

.wrap {
  inline-size: min(100% - var(--gutter) * 2, calc(var(--content) + var(--gutter) * 2));
  margin-inline: auto;
}

.sr {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.title {
  font-size: var(--section-title-sm);
  margin-block-start: calc(var(--gutter) / 3);
}

.title-xl {
  font-size: var(--hero-display-sm);
  max-inline-size: 13ch;
}

.signature {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--voice);
  color: var(--accent);
}

@container page (inline-size > 720px) {
  .title {
    font-size: var(--section-title);
  }

  .title-xl {
    font-size: var(--hero-display);
  }
}

/* Gold leaf text: a metal, lit from the top, with a slow travelling band */
.leaf {
  background: var(--leaf-midnight);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

@media (prefers-reduced-motion: no-preference) {
  .leaf {
    animation: leaf-travel 7s ease-in-out infinite alternate;
  }
}

@keyframes leaf-travel {
  to {
    background-position: 100% 50%;
  }
}

/* ---------- Header on home ---------- */
.home .site-header {
  position: fixed;
  inset-inline: 0;
  inset-block-start: 0;
  z-index: 50;
  min-block-size: var(--header);
  padding-block: calc(var(--gutter) / 2);
  color: var(--lq-text);
  border-block-end: 1px solid transparent;
  transition:
    background-color 0.4s ease,
    border-color 0.4s ease;
}

.home .site-header.scrolled {
  background: color-mix(in srgb, var(--lq-2) 84%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-block-end-color: var(--lq-hairline);
}

.home .site-header nav {
  align-items: center;
}

.home .site-header nav a:not(.nav-cta) {
  display: none;
}

.nav-cta {
  padding: calc(var(--gutter) / 3) calc(var(--gutter) * 0.66);
  border: 1px solid var(--lq-hairline-strong);
  border-radius: var(--radius);
  color: var(--lq-eyebrow);
}

/* The header sits outside main's page container, so these are media queries. */
@media (min-width: 760px) {
  .home .site-header nav a:not(.nav-cta) {
    display: inline;
  }
}

.home .site-footer {
  background: var(--lq-2);
  color: var(--lq-muted);
  border-block-start-color: var(--lq-hairline);
}

/* ---------- Buttons and the waitlist ---------- */
.cta {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--gutter) / 3);
  min-block-size: 52px;
  padding-inline: calc(var(--gutter) * 1.1);
  border: 0;
  border-radius: var(--radius);
  background: var(--gold-metal);
  color: var(--leaf-ink);
  font: inherit;
  font-size: var(--eyebrow);
  letter-spacing: var(--track-button);
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: var(--lq-cta-glow);
  cursor: pointer;
  white-space: nowrap;
}

.cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--glint);
  transform: translateX(-120%);
}

@media (prefers-reduced-motion: no-preference) {
  .cta::after {
    animation: glint 5.5s ease-in-out infinite 1.2s;
  }

  .cta:active {
    transform: scale(var(--press-scale));
  }
}

@keyframes glint {
  0%,
  70% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(120%);
  }
}

.ghost {
  min-block-size: 44px;
  padding-inline: var(--gutter);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: var(--eyebrow);
  letter-spacing: var(--track-button);
  text-transform: uppercase;
  cursor: pointer;
}

.waitlist {
  display: grid;
  gap: calc(var(--gutter) / 2);
  inline-size: min(100%, 500px);
}

.wl-row {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--gutter) / 3);
  padding: 6px;
  border: 1px solid var(--hairline-strong);
  border-radius: calc(var(--radius) * 2);
  background: color-mix(in srgb, var(--card-1) 70%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.wl-row input {
  flex: 1 1 14ch;
  min-block-size: 52px;
  padding-inline: calc(var(--gutter) * 0.66);
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: var(--body);
}

.wl-row input::placeholder {
  color: var(--muted);
}

.wl-row input:focus-visible {
  outline: none;
}

.wl-row:focus-within {
  border-color: var(--accent);
}

.wl-row .cta {
  flex: 1 0 auto;
}

.wl-note,
.wl-status {
  font-size: var(--small);
  color: var(--muted);
}

.wl-status:empty {
  display: none;
}

.waitlist.is-done .wl-row,
.waitlist.is-done .wl-note {
  display: none;
}

.wl-done {
  display: grid;
  gap: calc(var(--gutter) / 2);
  justify-items: start;
}

.wl-done[hidden] {
  display: none;
}

.wl-done-title {
  font-family: var(--serif);
  font-size: var(--section-title-sm);
  color: var(--accent);
}

/* ---------- Devices (real app screens) ---------- */
.device {
  position: relative;
  inline-size: var(--phone-width);
  aspect-ratio: 390 / 844;
  padding: var(--phone-bezel);
  border-radius: var(--phone-radius);
  background: var(--phone-edge);
  box-shadow:
    0 0 0 1px var(--lq-hairline-strong),
    var(--lq-lift);
}

.device img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  border-radius: var(--phone-screen-radius);
}

/* ---------- Screen 1: the hero ---------- */
.home .hero {
  min-block-size: 100svh;
  display: grid;
  align-items: center;
  padding-block: calc(var(--header) + var(--gutter)) var(--gutter);
}

.dust {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  pointer-events: none;
}

.candle {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    40vmax 40vmax at var(--mx, 72%) var(--my, 40%),
    color-mix(in srgb, var(--lq-glow) 60%, transparent),
    transparent 70%
  );
}

.hero-inner {
  position: relative;
  display: grid;
  gap: calc(var(--gutter) * 2);
  align-items: center;
  inline-size: min(100% - var(--gutter) * 2, calc(var(--content) + var(--gutter) * 2));
  margin-inline: auto;
}

.hero-copy {
  display: grid;
  gap: var(--gutter);
  justify-items: start;
}

.hero-title {
  font-size: var(--mega-display-sm);
  line-height: 1.02;
  letter-spacing: -0.01em;
  max-inline-size: 12ch;
}

.hero-title .w {
  display: inline-block;
}

.hero-title em {
  font-style: italic;
  padding-inline-end: 0.06em;
}

/* The second side of the promise: smaller, quieter, on its own line */
.hero-title .either {
  display: block;
  margin-block-start: 0.3em;
  font-size: 0.48em;
  font-style: italic;
  color: var(--muted);
}

.home .hero .lede {
  max-inline-size: 66ch;
}

.hero-stage {
  position: relative;
}

@container page (inline-size > 960px) {
  .hero-title {
    font-size: var(--kinetic);
    max-inline-size: 9em;
  }
}

@container page (inline-size <= 560px) {
  .home .hero .lede {
    font-size: var(--body);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero .rise,
  .hero-title .w {
    animation: rise 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .hero-title .w:nth-child(1) {
    animation-delay: 0.2s;
  }

  .hero-title .w:nth-child(2) {
    animation-delay: 0.5s;
  }

  .hero-title .w:nth-child(3) {
    animation-delay: 0.75s;
  }

  .hero-title .w:nth-child(4) {
    animation-delay: 1.05s;
  }

  .hero .lede.rise {
    animation-delay: 1.25s;
  }

  .hero div.rise {
    animation-delay: 1.4s;
  }

  .hero-stage {
    animation: stage-in 1.5s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s both;
  }
}

/* The giving side is dark on a dark page: a gold rim keeps every phone's edge */
.fan-phone {
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--gold-base) 40%, transparent),
    var(--lq-lift),
    0 0 90px color-mix(in srgb, var(--gold-glow) 30%, transparent);
}

/* Centered (hero D, DJ 2026-11-18, after lovelee-app.com): the promise up top, the app fanned below. */

.home .hero {
  align-items: start;
  padding-block: calc(var(--header) + var(--gutter) * 0.75) 0;
}

/* "Never get a bad gift" on one line, "ever again." on the next */
.hero-title .tail {
  display: inline;
}

.hero-title .t2 {
  display: block;
}

.hero .hero-inner {
  grid-template-columns: 1fr;
  gap: calc(var(--gutter) * 1.5);
}

.hero .hero-copy {
  justify-self: center;
  justify-items: center;
  text-align: center;
}

.hero .hero-title {
  max-inline-size: none;
}

.hero .lede {
  display: block;
  max-inline-size: 66ch;
}

.hero .perks {
  display: flex;
}

.perks {
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin: 0;
  padding: 8px 18px;
  list-style: none;
  border: 1px solid var(--lq-edge);
  border-radius: 999px;
  font-size: var(--small);
  color: var(--muted);
}

.perks li {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.perks svg {
  inline-size: 14px;
  color: var(--accent);
}

.stage-d {
  display: block;
  min-block-size: 0;
  inline-size: 100%;
  perspective: none;
}

.fan {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(8px, 1.6vw, 26px);
  block-size: clamp(340px, calc(34vw + 60px), 540px);
  margin-inline: -160px;
  margin-block-start: -36px;
  padding: 60px 160px 0;
  overflow: clip;
  mask-image: linear-gradient(to bottom, var(--bg) 80%, transparent);
}

.fan-phone {
  flex: none;
  inline-size: clamp(118px, 15vw, 226px);
}

.fan-phone.f3 {
  inline-size: clamp(136px, 17.5vw, 262px);
}

.f1 {
  transform: translateY(44px) rotate(-5deg);
}

.f2 {
  transform: translateY(16px) rotate(-2.5deg);
}

.f4 {
  transform: translateY(16px) rotate(2.5deg);
}

.f5 {
  transform: translateY(44px) rotate(5deg);
}

@container page (inline-size <= 760px) {
  /* Phones keep the couple: her home, the tote he opens, his home (DJ 2026-11-18) */
  .fan-phone.f2,
  .fan-phone.f3 {
    display: none;
  }

  .fan-phone {
    inline-size: 30vw;
  }

  .fan-phone.f4 {
    inline-size: 38vw;
    transform: none;
  }

  .fan {
    block-size: 96vw;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .fan-phone {
    animation: fan-rise 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.9s both;
  }

  .f2,
  .f4 {
    animation-delay: 1.05s;
  }

  .f1,
  .f5 {
    animation-delay: 1.2s;
  }

  .hero .lede.rise {
    animation-delay: 1.25s;
  }

  .hero .perks.rise {
    animation-delay: 1.5s;
  }
}

@keyframes fan-rise {
  from {
    opacity: 0;
    translate: 0 90px;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.6em);
    filter: blur(6px);
  }
}

@keyframes stage-in {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
  }
}

/* ---------- Screen 2: the film, then the problems it solves ---------- */
.home .how {
  padding-block: calc(var(--gutter) * 1.5);
}

.how-head {
  text-align: center;
  display: grid;
  justify-items: center;
}

/* The film sits in the page, not in a player: no frame, and its edges fade into the lacquer,
   which is the film's own ground. The key moments stand beside it. */
.film-row {
  display: grid;
  gap: calc(var(--gutter) * 0.75);
  margin-block-start: calc(var(--gutter) * 0.5);
}

.film {
  position: relative;
}

.film-video {
  display: block;
  inline-size: 100%;
  aspect-ratio: 16 / 9;
  /* Never crop: the captions sit near the frame's edges */
  object-fit: contain;
  -webkit-mask-image:
    linear-gradient(90deg, transparent, black 3%, black 97%, transparent),
    linear-gradient(180deg, transparent, black 4%, black 96%, transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent, black 3%, black 97%, transparent),
    linear-gradient(180deg, transparent, black 4%, black 96%, transparent);
  mask-composite: intersect;
}

.moments {
  display: grid;
  gap: 10px;
  align-content: center;
}

.moments ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.moment {
  position: relative;
  display: grid;
  gap: 3px;
  inline-size: 100%;
  min-block-size: 44px;
  padding: 9px 0 9px 18px;
  border: 0;
  background: none;
  font: inherit;
  text-align: start;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.3s ease;
}

.moment:hover,
.moment[aria-current='true'] {
  color: var(--text);
}

.moment-name {
  font-size: var(--eyebrow);
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
}

.moment[aria-current='true'] .moment-name {
  color: var(--accent);
}

.moment-line {
  font-family: var(--serif);
  font-size: var(--small);
  line-height: 1.3;
}

.moment-bar {
  position: absolute;
  inset-inline-start: 0;
  inset-block: 9px;
  inline-size: 2px;
  border-radius: 2px;
  background: var(--hairline-strong);
  overflow: hidden;
}

.moment-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold-metal);
  transform-origin: top center;
  transform: scaleY(0);
}

.moment[aria-current='true'] .moment-bar::after {
  transform: scaleY(var(--p, 0));
}

@container page (inline-size > 960px) {
  .film-row {
    grid-template-columns: minmax(0, 1fr) 250px;
    align-items: center;
  }
}

.film-toggle {
  position: absolute;
  inset-inline-end: 7%;
  inset-block-end: 10%;
  display: grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  border: 1px solid var(--lq-edge);
  border-radius: 50%;
  background: color-mix(in srgb, var(--lq-sheet) 80%, transparent);
  backdrop-filter: blur(8px);
  color: var(--lq-text);
  cursor: pointer;
}

.film-toggle svg {
  inline-size: 20px;
}

.film-toggle .i-play,
.film.paused .film-toggle .i-pause {
  display: none;
}

.film.paused .film-toggle .i-play {
  display: block;
}

/* Screen 3 opens with the three problems Hints solves, then the ways to hint */
.pains {
  list-style: none;
  margin: 0 0 calc(var(--gutter) * 1.25);
  padding: 0;
  display: grid;
  gap: var(--gutter);
  /* The full width of the ways to hint below, each column centred like its heading */
  inline-size: 100%;
}

.pain-card {
  display: grid;
  gap: 4px;
  align-content: start;
  justify-items: center;
  text-align: center;
}

.pain-card p:last-child {
  max-inline-size: 34ch;
}

.pain-card .pain {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--body);
  color: var(--accent);
}

.pain-card h3 {
  font-size: var(--card-title);
}

.pain-card p:last-child {
  color: var(--muted);
  font-size: var(--small);
}

/* Screen 3 opens with the ways to hint */
.close .ladder {
  margin-block: 0 var(--gutter);
  padding-block: 0 calc(var(--gutter) * 0.75);
  border-block-start: 0;
  border-block-end: 1px solid var(--hairline-strong);
}

.ladder {
  display: grid;
  gap: calc(var(--gutter) * 0.6);
  justify-items: center;
  margin-block-start: var(--gutter);
  padding-block-start: var(--gutter);
  border-block-start: 1px solid var(--hairline-strong);
  text-align: center;
}

.ladder-title {
  font-size: var(--voice);
}

.rungs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: calc(var(--gutter) / 2);
  inline-size: 100%;
}

.rung {
  color: var(--gt-text);
  display: grid;
  gap: 2px;
  align-content: start;
  padding: calc(var(--gutter) / 2) calc(var(--gutter) * 0.66);
  border: 1px solid var(--gt-edge);
  border-radius: var(--radius-card);
  background: linear-gradient(180deg, var(--gt-card-0), var(--gt-card-1));
  box-shadow: var(--gt-lift);
  text-align: start;
}

.rung-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--eyebrow);
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--gt-eyebrow);
}

.rung-dot {
  inline-size: 8px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--gold-metal);
  box-shadow: 0 0 10px var(--gold-glow);
}

.rung-ex {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--small);
}

.rung-ex svg {
  display: inline;
  inline-size: 16px;
  vertical-align: -3px;
  margin-inline-end: 4px;
  color: var(--gt-eyebrow);
}

.promise {
  display: flex;
  gap: calc(var(--gutter) / 2);
  align-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--body);
  color: var(--accent);
  text-align: start;
}

.promise svg {
  flex: none;
  inline-size: 20px;
}

@container page (inline-size > 760px) {
  .pains {
    grid-template-columns: repeat(3, 1fr);
  }

  .rungs {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Narrower than the side-by-side layout, the key moments become a row that swipes */
@container page (inline-size <= 960px) {
  .moments {
    justify-items: center;
  }

  .moments ol {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: 22px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-inline: var(--gutter);
    inline-size: calc(100% + var(--gutter) * 2);
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scrollbar-width: none;
  }

  .moments li {
    scroll-snap-align: start;
  }

  /* The film already shows each line, so the row is just the names: a compact chapter strip */
  .moment {
    padding: 0 0 12px;
  }

  .moment-line {
    display: none;
  }

  .moment-bar {
    inset-block: auto 0;
    inset-inline: 0;
    inline-size: auto;
    block-size: 2px;
  }

  .moment-bar::after {
    transform-origin: left center;
    transform: scaleX(0);
  }

  .moment[aria-current='true'] .moment-bar::after {
    transform: scaleX(var(--p, 0));
  }
}

/* On a phone the film is the tall cut and the three problems swipe */
@container page (inline-size <= 760px) {
  .film-video {
    aspect-ratio: 4 / 5;
  }

  .pains {
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scrollbar-width: none;
  }

  .pain-card {
    scroll-snap-align: center;
  }

  .rungs {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
      opacity 0.8s ease,
      transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .js .reveal:nth-child(2) {
    transition-delay: 0.12s;
  }

  .js .reveal:nth-child(3) {
    transition-delay: 0.24s;
  }

  .js .reveal.seen {
    opacity: 1;
    transform: none;
  }

  .rung:nth-child(1) .rung-dot {
    animation: dot 3.2s ease-in-out infinite;
  }

  .rung:nth-child(2) .rung-dot {
    animation: dot 3.2s ease-in-out infinite 0.4s;
  }

  .rung:nth-child(3) .rung-dot {
    animation: dot 3.2s ease-in-out infinite 0.8s;
  }

  .rung:nth-child(4) .rung-dot {
    animation: dot 3.2s ease-in-out infinite 1.2s;
  }
}

@keyframes dot {
  20% {
    transform: scale(1.8);
    box-shadow: 0 0 18px var(--gold-bright);
  }

  40% {
    transform: none;
  }
}

/* ---------- Screen 3: questions and the close ---------- */
.close-grid {
  position: relative;
  display: grid;
  gap: calc(var(--gutter) * 2);
  align-items: center;
}

.close-ask {
  display: grid;
  gap: var(--gutter);
  justify-items: start;
}

.close-ask .app-store {
  margin: 0;
  padding: 0;
  border: 0;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  font-size: var(--small);
}

.qa {
  margin-block-start: calc(var(--gutter) / 2);
  border-block-start: 1px solid var(--hairline-strong);
}

.qa details {
  border-block-end: 1px solid var(--hairline-strong);
}

.qa summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--gutter);
  min-block-size: 60px;
  font-family: var(--serif);
  font-size: var(--voice);
  cursor: pointer;
  list-style: none;
}

.qa summary::-webkit-details-marker {
  display: none;
}

.qa summary svg {
  flex: none;
  inline-size: 22px;
  color: var(--accent);
  transition: transform 0.4s ease;
}

.qa details[open] summary svg {
  transform: rotate(45deg);
}

.qa details p {
  padding-block-end: var(--gutter);
  color: var(--muted);
  max-inline-size: 56ch;
}

@media (prefers-reduced-motion: no-preference) {
  .qa details::details-content {
    block-size: 0;
    overflow: clip;
    transition:
      block-size 0.4s ease,
      content-visibility 0.4s allow-discrete;
  }

  .qa details[open]::details-content {
    block-size: auto;
  }
}

@container page (inline-size > 900px) {
  .close-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Ribbon H (the brand mark in three pieces), assembling as screen 3 comes into view */
.ribbon-h {
  display: grid;
  inline-size: min(28vw, 128px);
  aspect-ratio: 440 / 426;
  filter: drop-shadow(0 0 34px var(--gold-glow));
}

.ribbon-h img {
  grid-area: 1 / 1;
  inline-size: 100%;
  block-size: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  .js .close .ribbon-h img {
    transition:
      transform 1.3s cubic-bezier(0.2, 0.8, 0.2, 1.05),
      opacity 0.9s ease;
  }

  .js .close:not(.play) .rh-left {
    transform: translateX(-60%) rotate(-12deg);
    opacity: 0;
  }

  .js .close:not(.play) .rh-right {
    transform: translateX(60%) rotate(12deg);
    opacity: 0;
  }

  .js .close:not(.play) .rh-knot {
    transform: scale(0.2);
    opacity: 0;
  }

  .js .close.play .rh-knot {
    transition-delay: 0.7s;
  }
}

/* ---------- Sticky CTA on phones, once the hero's form has scrolled away ---------- */
.sticky-cta {
  position: fixed;
  z-index: 40;
  inset-inline: var(--gutter);
  inset-block-end: calc(var(--gutter) / 2 + env(safe-area-inset-bottom));
  display: none;
}

@media (max-width: 760px) {
  .sticky-cta {
    display: flex;
    transform: translateY(160%);
    transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .sticky-cta.on {
    transform: none;
  }
}

/* ---------- Before the film: Inside Hints, then three steps (DJ 2026-11-18) ---------- */
.inside-grid,
.start-steps {
  margin: calc(var(--gutter) * 1.5) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--gutter);
}

.inside-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: calc(var(--gutter) * 0.6);
}

.inside-card {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 12px 12px 18px;
  border: 1px solid var(--gt-edge);
  border-radius: var(--radius-card);
  background: linear-gradient(180deg, var(--gt-card-0), var(--gt-card-1));
  box-shadow: var(--gt-lift);
}

/* The top of a real screen, as if the phone sat below the card's edge */
/* A band of a real screen, already cropped by site/film/stills.mjs to what the card is about */
.shot {
  position: relative;
  aspect-ratio: 390 / 440;
  overflow: hidden;
  border-radius: calc(var(--radius-card) - 2px);
  background: var(--phone-edge);
  box-shadow: 0 0 0 1px var(--lq-hairline-strong);
}

.shot img {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: top;
}

/* Two Vaults, one each: two screens fanned on the same card */
.shot.two {
  background: linear-gradient(180deg, var(--gt-card-1), var(--gt-card-0));
}

.shot.two img {
  position: absolute;
  inset-block-start: 7%;
  inline-size: 60%;
  block-size: auto;
  border-radius: 14px;
  box-shadow: var(--lq-lift);
}

.shot.two img:first-child {
  inset-inline-start: 5%;
  rotate: -3deg;
}

.shot.two img:last-child {
  inset-inline-end: 5%;
  inset-block-start: 15%;
  rotate: 3deg;
}

.inside-card h3 {
  margin: 6px 4px 0;
  font-family: var(--serif);
  font-size: var(--card-title);
  line-height: 1.15;
}

.inside-card p {
  margin: 0 4px;
  font-size: var(--small);
  color: var(--muted);
}

.start-steps {
  position: relative;
}

.start-step {
  position: relative;
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
  padding-inline: var(--gutter);
}

.start-n {
  display: grid;
  place-items: center;
  inline-size: 64px;
  block-size: 64px;
  border: 1px solid var(--lq-edge);
  border-radius: 50%;
  background: var(--lq-sheet);
  font-family: var(--serif);
  font-size: var(--section-title-sm);
  color: var(--gold-bright);
}

.start-step h3 {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-size: var(--card-title);
}

.start-step p {
  margin: 0;
  max-inline-size: 30ch;
  font-size: var(--small);
  color: var(--muted);
}

@container page (inline-size > 760px) {
  .start-steps {
    grid-template-columns: repeat(3, 1fr);
  }

  /* A gold thread through the three numbers */
  .start-steps::before {
    content: '';
    position: absolute;
    inset-inline: 17%;
    inset-block-start: 32px;
    block-size: 1px;
    background: linear-gradient(
      90deg,
      transparent,
      var(--gold-base) 20%,
      var(--gold-base) 80%,
      transparent
    );
  }
}

@container page (inline-size > 960px) {
  .inside-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gutter);
  }

  .inside-card {
    padding: 16px 16px 22px;
  }
}

@container page (inline-size <= 560px) {
  .inside-card {
    padding: 8px 8px 14px;
  }

  .inside-card h3 {
    font-size: var(--body);
  }

  .inside-card p {
    font-size: var(--eyebrow);
    line-height: 1.45;
  }
}
