/* MirrorSage landing: six colours, two faces, and the page's own classes.
   Engine selectors (.sc-stage, .sc-copy, [data-sc-*]) are not restyled. */
:root {
  --sc-canvas:     #000000;
  --sc-surface:    #0a0a0c;
  --sc-ink:        #f6efe2;
  --sc-ink-soft:   #a99f8f;
  --sc-accent:     #e8c98a;
  --sc-accent-ink: #1d1810;
  --sc-font-display: "Cormorant Garamond", Georgia, serif;
  --sc-font-text:    "Jost", system-ui, sans-serif;
  --sc-track-tight: -0.012em;
  --sc-leading-none: 1.0;
  --sc-shadow-color: 36 30% 2%;
  --ms-glow: rgba(255, 236, 200, 0.35);
}
html { background: #000; }
/* one page-wide particle field behind every section */
.field { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.field canvas { position: absolute; inset: 0; display: block; }
main, .bar { position: relative; z-index: 1; }
.bar { position: fixed; }
body { font-weight: 300; }
.sc-display { font-weight: 300; }
.sc-display em { font-style: italic; color: var(--sc-accent); }
.sc-body { font-size: var(--sc-t-lg); line-height: 1.5; }

/* chrome */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: var(--sc-z-chrome);
  height: 72px; display: flex; align-items: center; justify-content: space-between;
  padding-inline: var(--sc-gutter);
}
.bar__mark, .foot__mark {
  font-family: var(--sc-font-display); font-weight: 400; font-size: 1.55rem; letter-spacing: 0.14em;
  color: var(--sc-ink); text-decoration: none;
}
.pill {
  display: inline-flex; align-items: center; height: 3.25rem; padding-inline: 1.75rem;
  border-radius: var(--sc-r-pill); background: var(--sc-ink); color: var(--sc-accent-ink);
  font-family: var(--sc-font-text); font-weight: 500; font-size: 1rem; letter-spacing: 0.01em;
  text-decoration: none; white-space: nowrap;
  box-shadow: var(--sc-e2); transition: transform var(--sc-d-fast) var(--sc-ease-out), box-shadow var(--sc-d-fast) var(--sc-ease-out);
}
.pill:hover { box-shadow: var(--sc-e3); }
.pill:active { transform: translateY(1px) scale(0.98); }
.pill--ghost {
  height: 2.6rem; padding-inline: 1.25rem; font-size: 0.9rem; font-weight: 400;
  background: color-mix(in oklab, var(--sc-canvas) 55%, transparent); color: var(--sc-ink);
  border: 1px solid color-mix(in oklab, var(--sc-ink) 30%, transparent); box-shadow: none;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.pill--still { cursor: default; }

/* ---------- 1 · hero ---------- */
.hero { background: transparent; }        /* the field shows through; the clip's black is the page's black */
/* The clip box IS the clip: sized to the clip's own aspect ratio (16:9 desktop, 3:4 phone) with air above
   and below, centred, so its painted edges are exactly the box edges. Every edge then fades to the page's
   black with a plain gradient overlay (no mask-image: a mask over a video costs every browser a full-frame
   re-composite, and the page is pure black anyway, so black-to-transparent paints the same picture). The
   clip's own dark field, its stars and the glow spill all dissolve into the motes field instead of ending
   in a rectangle. */
.hero__film { position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: min(100%, calc(82svh * 16 / 9)); aspect-ratio: 16 / 9; height: auto; }
.hero__film video, .hero__film .sc-stage__poster { object-fit: cover; object-position: 50% 50%; }
.hero__film::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(90deg,  #000 0%, rgba(0,0,0,0) 16%, rgba(0,0,0,0) 84%, #000 100%),
    linear-gradient(180deg, #000 0%, rgba(0,0,0,0) 14%, rgba(0,0,0,0) 86%, #000 100%); }
.hero__scrim { display: block; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.86) 0%, rgba(0,0,0,.72) 22%, rgba(0,0,0,.35) 36%, rgba(0,0,0,0) 48%); }
.hero__copy { max-width: min(32vw, 30rem); bottom: auto; top: 50%; translate: 0 -50%; z-index: 3; }
.hero__copy h1 { font-size: clamp(2.6rem, 5.2vw, 5.2rem); line-height: 1.02; letter-spacing: -0.012em; }
.hero__l1, .hero__l2 { display: block; }
.hero__sub { margin-top: var(--sc-5); max-width: 42ch; }
.hero__act { margin: var(--sc-7) 0 0; display: flex; align-items: center; gap: var(--sc-5); }
.hero__store { color: var(--sc-ink-soft); font-size: var(--sc-t-sm); letter-spacing: 0.02em; }
.hero__poster-open, .hero__poster-m { display: none; }

/* ---------- 2 · mirror ---------- */
.mirror {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: var(--sc-8);
  padding-inline: var(--sc-gutter); background: transparent;
}
.sc-stage { background: transparent; }
.mirror__panel {
  --seam: calc(92% - var(--sc-p, 0.5) * 84%);
  position: relative; justify-self: end; width: min(100%, 34rem); height: min(78vh, 48rem);
  border-radius: var(--sc-r-lg); overflow: hidden; touch-action: none; cursor: ew-resize;
  box-shadow: var(--sc-e3), var(--sc-edge);
}
.mirror__panel.is-held { --seam: var(--seam-held); }
.mirror__panel img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%;
  max-width: none; display: block; pointer-events: none; user-select: none; -webkit-user-drag: none;
  transform: scale(1.14); transform-origin: 50% 28%;
}
.mirror__light { clip-path: inset(0 0 0 var(--seam)); }
.mirror__seam {
  position: absolute; top: 0; bottom: 0; left: var(--seam); width: 2px; transform: translateX(-1px);
  background: linear-gradient(180deg, transparent, var(--sc-ink) 12%, var(--sc-ink) 88%, transparent);
  box-shadow: 0 0 30px 6px rgba(255, 240, 210, 0.55);
}
.mirror__knob {
  position: absolute; top: 50%; left: var(--seam); width: 3.5rem; height: 3.5rem; translate: -50% -50%;
  border: 0; border-radius: 50%; background: var(--sc-ink); color: var(--sc-accent-ink);
  display: grid; place-items: center; cursor: ew-resize; box-shadow: var(--sc-e3);
  transition: transform var(--sc-d-fast) var(--sc-ease-out);
}
.mirror__knob:active, .mirror__panel.is-held .mirror__knob { transform: scale(0.94); }
.mirror__knob:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 3px; }
.mirror__tag {
  position: absolute; bottom: var(--sc-5); font-size: var(--sc-t-xs); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--sc-ink); text-shadow: 0 1px 10px rgba(0,0,0,.8);
}
.mirror__tag--l { left: var(--sc-5); } .mirror__tag--r { right: var(--sc-5); }
.mirror__copy { max-width: 36rem; }
.mirror__copy h2 { font-size: clamp(2.6rem, 5.2vw, 5.2rem); line-height: 1.02; }
.mirror__l1, .mirror__l2 { display: block; }
.mirror__sub { margin-top: var(--sc-5); }

/* ---------- 3 · close ---------- */
.close { padding: 0; }
.close__stage { position: relative; min-height: 100svh; overflow: clip; display: grid; grid-template-rows: 1fr auto; }
.close__copy { position: relative; z-index: 2; text-align: center; align-self: center; padding-block: calc(var(--sc-9) + 72px) var(--sc-9); }
.close__copy h2 { font-size: clamp(2.4rem, 4.6vw, 4.4rem); max-width: 18ch; margin-inline: auto; }
.close__pill { margin-top: var(--sc-7); }
.close__bye { margin-top: var(--sc-6); font-family: var(--sc-font-display); font-style: italic; font-size: var(--sc-t-xl); color: var(--sc-accent); }
.close__seam {
  position: absolute; left: 50%; bottom: -8%; translate: -50% 0; width: auto; height: 64svh; max-width: none;
  opacity: 0.85; pointer-events: none; z-index: 0;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 34%, #000 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 34%, #000 100%);
}
.foot {
  position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between;
  padding: var(--sc-6) var(--sc-gutter); font-size: var(--sc-t-sm); color: var(--sc-ink-soft);
}
.foot__mark { font-size: 1.3rem; }
.foot__legal a { color: var(--sc-ink-soft); text-decoration: none; margin-left: var(--sc-5); }
.foot__legal a:hover { color: var(--sc-ink); }

/* ---------- phone ---------- */
@media (max-width: 860px) {
  .bar { height: 64px; }
  /* phone clip is 3:4; it hangs from 5% down and ends above the copy band, edges fading like the desktop one */
  .hero__film { top: 5%; translate: -50% 0; width: min(100%, calc(59svh * 3 / 4)); aspect-ratio: 3 / 4; }
  .hero__film video, .hero__film .sc-stage__poster { object-fit: cover; object-position: 50% 50%; }
  .hero__film::after { background:
    linear-gradient(90deg,  #000 0%, rgba(0,0,0,0) 18%, rgba(0,0,0,0) 82%, #000 100%),
    linear-gradient(180deg, #000 0%, rgba(0,0,0,0) 12%, rgba(0,0,0,0) 78%, #000 100%); }
  .hero__poster-m { display: block; z-index: 1; }
  .hero__scrim { background: linear-gradient(180deg, rgba(0,0,0,0) 46%, rgba(0,0,0,.55) 58%, rgba(0,0,0,.9) 68%, #000 76%); }
  .hero__scrim { display: block; }
  .hero__copy { top: auto; translate: none; bottom: clamp(2rem, 8vh, 5rem); max-width: none; }
  .hero__copy h1 { font-size: var(--sc-t-2xl); }
  .hero__sub { font-size: var(--sc-t-base); }
  .hero__act { margin-top: var(--sc-5); flex-wrap: wrap; gap: var(--sc-4); }
  .mirror { grid-template-columns: 1fr; align-items: start; gap: var(--sc-5); padding-top: 72px; }
  .mirror__panel { justify-self: center; width: 100%; height: min(54svh, 30rem); }
  .mirror__copy h2 { font-size: var(--sc-t-2xl); }
  .mirror__sub { margin-top: var(--sc-4); font-size: var(--sc-t-base); }
  .close__copy h2 { font-size: var(--sc-t-2xl); }
  .close__seam { height: 46svh; }
  .foot { flex-direction: column; gap: var(--sc-4); align-items: flex-start; }
}
/* Reduced motion: the engine never fetches the clip, so the poster is the hero. Show the open door. */
@media (prefers-reduced-motion: reduce) {
  .hero__poster-open { display: block; z-index: 1; }
  .mirror__panel { --seam: 50%; }
  .mirror__panel.is-held { --seam: var(--seam-held); }
}
