/* redo that — home (brand v4 "Lights On", 2026-10-20)
   The stage is dark until your room lights up; every style brings its own
   light. One constant (midnight, tangerine, the aperture), one variable
   (--glow, the light of whatever style is on screen).

   Motion runs only under html.anim (JS present, reduced motion off). Without
   it the page is complete and still: the hero rests on a finished room, the
   marquee is a static row, compares sit at 50%. */

@font-face {
  font-family: 'Gabarito';
  src: url('/fonts/gabarito.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('/fonts/instrument-sans.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('/fonts/instrument-sans-italic.woff2') format('woff2');
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

/* Registered so the light can *transition* between styles, not jump. */
@property --glow {
  syntax: '<color>';
  inherits: true;
  initial-value: #8a8378;
}

:root {
  --night: #10131c;
  --night-2: #161a26;
  --night-3: #1e2333;
  --cream: #f6f1e8;
  --cream-2: rgba(246, 241, 232, 0.74);
  --cream-3: rgba(246, 241, 232, 0.5);
  --line: rgba(246, 241, 232, 0.1);
  --tang: #ff6b3d;
  --tang-deep: #e5522a;
  --lilac: #c7a9f2;
  --glow: #8a8378;

  --gutter: clamp(1rem, 4.4vw, 2rem);
  --max: 1320px;
  --radius: 22px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.7, 0, 0.2, 1);
  --display: 'Gabarito', 'Instrument Sans', system-ui, sans-serif;
  --text: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--night);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font: 400 1.0625rem/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--tang);
  outline-offset: 3px;
  border-radius: 6px;
}

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  z-index: 200;
  background: var(--cream);
  color: var(--night);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-weight: 700;
}

.skip:focus {
  left: 0.5rem;
}

/* ---- Atmosphere ----------------------------------------------------------- */

/* The light of the current style, washing the whole page. Fixed and cheap:
   two radial gradients on one layer, colour transitioned via @property. */
.ambient {
  position: fixed;
  inset: -15vh -25vw;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(38% 30% at 72% 26%, color-mix(in oklab, var(--glow) 30%, transparent), transparent 72%),
    radial-gradient(32% 28% at 18% 84%, color-mix(in oklab, var(--glow) 15%, transparent), transparent 72%);
  transition: --glow 1100ms ease;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0.045;
  background: url('/img/brand/grain.png') 0 0 / 160px;
}

main,
.ftr {
  position: relative;
  z-index: 1;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---- Type ------------------------------------------------------------------ */

.kicker {
  margin: 0;
  font: 700 0.76rem/1 var(--text);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tang);
}

.h2 {
  margin: 0.7rem 0 0;
  font: 800 clamp(2.5rem, 10vw, 5.6rem) / 0.94 var(--display);
  letter-spacing: -0.038em;
  text-wrap: balance;
}

.lede {
  margin: 1.1rem 0 0;
  max-width: 34rem;
  color: var(--cream-2);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.5;
  text-wrap: pretty;
}

/* ---- Buttons --------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  height: 3.3rem;
  padding: 0 1.45rem;
  border-radius: 999px;
  border: 0;
  font: 700 1.02rem/1 var(--display);
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 260ms var(--ease-out),
    box-shadow 260ms var(--ease-out),
    background 260ms;
}

.btn:active {
  transform: scale(0.97);
}

.btn-tang {
  background: var(--tang);
  color: var(--night);
  box-shadow: 0 12px 32px -12px rgba(255, 107, 61, 0.75);
}

@media (hover: hover) {
  .btn-tang:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px -12px rgba(255, 107, 61, 0.85);
  }
}

.btn-glass {
  color: var(--cream);
  background: rgba(246, 241, 232, 0.1);
  border: 1px solid rgba(246, 241, 232, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Lucide icons, drawn like the app draws them: currentColor, round, 2.25. */
svg.arr {
  display: inline-block;
  flex: none;
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.2em;
}

.btn .arr {
  transition: transform 260ms var(--ease-out);
}

.btn:hover .arr {
  transform: translateX(3px);
}

/* ---- Header ---------------------------------------------------------------- */

.hdr {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: calc(env(safe-area-inset-top) + 0.75rem) var(--gutter) 0.75rem;
  transition:
    background 300ms,
    border-color 300ms,
    backdrop-filter 300ms;
  border-bottom: 1px solid transparent;
}

.hdr.solid {
  background: rgba(16, 19, 28, 0.7);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom-color: var(--line);
}

.wm {
  display: block;
  width: 7.9rem;
  color: var(--cream);
  text-decoration: none;
}

.wm svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

/* The o turns as the page scrolls — the mark is never quite still. */
.wm .ap,
.mark-ap {
  transform-box: fill-box;
  transform-origin: 50% 50%;
}

.hdr .btn {
  height: 2.55rem;
  padding: 0 1.05rem;
  font-size: 0.92rem;
}

/* ---- Hero: one room, every mood ------------------------------------------ */

.hero {
  position: relative;
}

.anim .hero {
  /* Scroll length: before + four restyles, each with a hold. */
  height: 560svh;
}

.hero-pin {
  position: relative;
  height: 100svh;
  min-height: 34rem;
  overflow: hidden;
}

.anim .hero-pin {
  position: sticky;
  top: 0;
}

.stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--night-3);
}

.stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 58%;
}

/* JS drives clip-path per frame; without JS the japandi room is the rest. */
.stage .layer {
  display: none;
}

.stage .layer[data-i='1'] {
  display: block;
}

.anim .stage .layer {
  display: block;
  clip-path: inset(0 0 0 100%);
  will-change: clip-path;
}

.bloom {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

html:not(.anim) .bloom {
  display: none;
}

.stage-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(16, 19, 28, 0.94) 0%, rgba(16, 19, 28, 0.62) 30%, rgba(16, 19, 28, 0) 58%),
    linear-gradient(to bottom, rgba(16, 19, 28, 0.62) 0%, rgba(16, 19, 28, 0) 20%);
}

.chip-vibe {
  position: absolute;
  z-index: 4;
  top: var(--stage-top, calc(env(safe-area-inset-top) + 4.5rem));
  left: var(--gutter);
  padding: 0.45rem 0.85rem 0.5rem;
  border-radius: 999px;
  background: var(--glow);
  color: var(--night);
  font: 750 0.86rem/1 var(--display);
  letter-spacing: -0.005em;
  transition: background 700ms;
}

.badge {
  position: absolute;
  z-index: 4;
  top: var(--stage-top, calc(env(safe-area-inset-top) + 4.1rem));
  right: var(--gutter);
  width: 3.1rem;
  height: 3.1rem;
  padding: 0.45rem;
  border-radius: 50%;
  background: rgba(16, 19, 28, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.badge svg {
  width: 100%;
  height: 100%;
}

.badge path,
.lens-ap path {
  transition: fill 700ms ease;
}

.pips {
  position: absolute;
  z-index: 4;
  right: calc(var(--gutter) + 1.2rem);
  top: 50%;
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
  transform: translateY(-50%);
}

.pips li {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(246, 241, 232, 0.32);
  transition:
    height 420ms var(--ease-out),
    background 420ms;
}

.pips li.on {
  height: 20px;
  background: var(--cream);
}

html:not(.anim) .pips {
  display: none;
}

.hero-copy {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 var(--gutter) calc(env(safe-area-inset-bottom) + 1.4rem);
}

.hero-h1 {
  margin: 0;
  font: 850 clamp(2.85rem, 13.4vw, 4.4rem) / 0.93 var(--display);
  letter-spacing: -0.04em;
}

.hero-h1 .l1 {
  display: block;
}

/* The slot: every phrase stacked, one visible, rolled by --ri. */
.roller {
  display: block;
  height: 1.06em;
  overflow: hidden;
}

.roller-list {
  display: block;
  transform: translateY(calc(var(--ri, 1) * -1.06em));
  transition: transform 720ms var(--ease-io);
}

.anim .roller-list {
  transform: translateY(calc(var(--ri, 0) * -1.06em));
}

.roller-list span {
  display: block;
  height: 1.06em;
  white-space: nowrap;
}

.hero-sub {
  margin: 0.95rem 0 1.2rem;
  max-width: 24rem;
  color: var(--cream-2);
  font-size: 1.04rem;
  line-height: 1.45;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.9rem;
}

.free {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font: 600 0.88rem/1 var(--text);
  color: var(--cream-2);
}

.free i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tang);
  box-shadow: 0 0 0 4px rgba(255, 107, 61, 0.18);
}

.hint {
  position: absolute;
  z-index: 4;
  left: 50%;
  /* Clear of the lens at the top of its idle breath (home.js startIdle). */
  top: calc(var(--lens-y, 42%) + var(--lens-r, 3.5rem) + 2.3rem);
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  white-space: nowrap;
  padding: 0.62rem 0.85rem 0.62rem 1.05rem;
  border: 1px solid rgba(246, 241, 232, 0.22);
  border-radius: 999px;
  background: rgba(16, 19, 28, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font: 650 0.76rem/1 var(--text);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  cursor: pointer;
  opacity: 0;
  transition:
    opacity 360ms ease,
    background 200ms,
    border-color 200ms;
}

.hint:hover,
.hint:focus-visible {
  background: rgba(246, 241, 232, 0.12);
  border-color: rgba(246, 241, 232, 0.4);
}

.hint .arr {
  color: var(--tang);
}

.anim .stage {
  cursor: pointer;
}

.anim .hint .arr {
  animation: bob 1.7s ease-in-out infinite;
}

@keyframes bob {
  50% {
    transform: translateY(4px);
  }
}

html:not(.anim) .hint {
  display: none;
}

/* Hero entrance: lines rise once the shutter has opened. */
.anim .hero-h1 .l1,
.anim .roller,
.anim .hero-sub,
.anim .hero-cta {
  opacity: 0;
  transform: translateY(18px);
}

.anim.ready .hero-h1 .l1,
.anim.ready .roller,
.anim.ready .hero-sub,
.anim.ready .hero-cta {
  opacity: 1;
  transform: none;
  transition:
    opacity 700ms var(--ease-out),
    transform 900ms var(--ease-out);
}

.anim.ready .roller {
  transition-delay: 80ms;
}
.anim.ready .hero-sub {
  transition-delay: 180ms;
}
.anim.ready .hero-cta {
  transition-delay: 260ms;
}

/* Desktop: text left, the room as a tall phone-shaped stage on the right. */
@media (min-width: 980px) {
  .hero-pin {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 5.5rem);
    padding: 5.5rem max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))) 2.4rem;
  }

  .stage {
    position: relative;
    inset: auto;
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    /* Fit the column first, the viewport height second — never overflow. */
    width: min(100%, calc(min(82svh, 900px) * 2 / 3));
    height: auto;
    aspect-ratio: 2 / 3;
    border-radius: 30px;
    box-shadow:
      0 50px 130px -40px color-mix(in oklab, var(--glow) 70%, transparent),
      0 0 0 1px var(--line);
    transition: box-shadow 1100ms ease;
    --stage-top: 1rem;
  }

  .stage-scrim {
    background: linear-gradient(to bottom, rgba(16, 19, 28, 0.45) 0%, rgba(16, 19, 28, 0) 18%);
  }

  .chip-vibe,
  .badge {
    --gutter: 1rem;
  }

  .pips {
    right: 1.1rem;
  }

  .hero-copy {
    position: relative;
    grid-column: 1;
    grid-row: 1;
    padding: 0;
  }

  .hero-h1 {
    font-size: clamp(3.8rem, 6.6vw, 7rem);
  }

  .hero-sub {
    font-size: 1.2rem;
    max-width: 28rem;
    margin: 1.5rem 0 1.8rem;
  }
}

/* ---- Sections --------------------------------------------------------------- */

.sec {
  position: relative;
  padding: clamp(5rem, 14vw, 9rem) 0;
}

[data-reveal] {
  --d: 0ms;
}

.anim [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 800ms var(--ease-out) var(--d),
    transform 1000ms var(--ease-out) var(--d);
}

.anim [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---- Moods: the catalog ------------------------------------------------------ */

.moods-head {
  display: grid;
  gap: 1rem;
}

.count {
  font-variant-numeric: tabular-nums;
  color: var(--glow);
  transition: color 900ms;
}

.marquee {
  margin-top: clamp(2.4rem, 6vw, 3.6rem);
  display: grid;
  gap: 0.9rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.mrow {
  overflow-x: auto;
  scrollbar-width: none;
}

.mrow::-webkit-scrollbar {
  display: none;
}

.anim .mrow {
  overflow: hidden;
}

.mtrack {
  display: flex;
  gap: 0.85rem;
  width: max-content;
  padding: 0.6rem var(--gutter) 1.4rem;
}

.anim .mtrack {
  animation: mq 95s linear infinite;
}

.anim .mrow.rev .mtrack {
  animation-direction: reverse;
  animation-duration: 78s;
}

.marquee:hover .mtrack,
.marquee.hold .mtrack {
  animation-play-state: paused;
}

@keyframes mq {
  to {
    transform: translateX(-50%);
  }
}

.mood {
  position: relative;
  flex: none;
  width: clamp(8.4rem, 14vw, 12rem);
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--night-3);
  transition:
    transform 450ms var(--ease-out),
    box-shadow 450ms var(--ease-out);
}

.mood img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.mood::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 12, 18, 0.78), rgba(10, 12, 18, 0) 58%);
}

.mood figcaption {
  position: absolute;
  z-index: 1;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.6rem;
  font: 800 0.98rem/1.05 var(--display);
  letter-spacing: -0.01em;
}

.mood figcaption small {
  display: block;
  margin-bottom: 0.3rem;
  font: 600 0.62rem/1 var(--text);
  letter-spacing: 0.14em;
  color: var(--c);
}

.mood:hover,
.mood.lit {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: 0 22px 44px -18px var(--c);
}

/* ---- How: three taps ----------------------------------------------------------- */

.steps {
  display: grid;
  gap: clamp(1.4rem, 3vw, 2rem);
  margin: clamp(2.4rem, 6vw, 3.6rem) 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 860px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step h3 {
  margin: 1.1rem 0 0.35rem;
  font: 800 1.7rem/1 var(--display);
  letter-spacing: -0.03em;
}

.step p {
  margin: 0;
  color: var(--cream-2);
  max-width: 22rem;
}

.step .num {
  display: inline-block;
  margin-top: 1.2rem;
  font: 700 0.74rem/1 var(--text);
  letter-spacing: 0.16em;
  color: var(--tang);
}

.vig {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--night-3);
  box-shadow: 0 0 0 1px var(--line);
}

.vig > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 01 Snap — the viewfinder closes in, the shutter flashes. */
.vf {
  position: absolute;
  z-index: 2;
  width: 22%;
  aspect-ratio: 1;
  border: 3px solid var(--cream);
}

.vf.tl {
  top: 12%;
  left: 12%;
  border-right: 0;
  border-bottom: 0;
  border-top-left-radius: 12px;
}
.vf.tr {
  top: 12%;
  right: 12%;
  border-left: 0;
  border-bottom: 0;
  border-top-right-radius: 12px;
}
.vf.bl {
  bottom: 12%;
  left: 12%;
  border-right: 0;
  border-top: 0;
  border-bottom-left-radius: 12px;
}
.vf.br {
  bottom: 12%;
  right: 12%;
  border-left: 0;
  border-top: 0;
  border-bottom-right-radius: 12px;
}

.flash {
  position: absolute;
  z-index: 3;
  inset: 0;
  background: #fff;
  opacity: 0;
}

.shutter-btn {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 6%;
  width: 3.4rem;
  height: 3.4rem;
  margin-left: -1.7rem;
  border-radius: 50%;
  border: 3px solid var(--cream);
  background: radial-gradient(circle, var(--cream) 0 58%, transparent 60%);
}

.anim .vig.play .vf {
  animation: vf 4.2s var(--ease-io) infinite;
}
.anim .vig.play .flash {
  animation: flash 4.2s ease-out infinite;
}
.anim .vig.play .shutter-btn {
  animation: press 4.2s var(--ease-io) infinite;
}

@keyframes vf {
  0%,
  8% {
    transform: scale(1.35);
    opacity: 0;
  }
  30%,
  74% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}
@keyframes flash {
  0%,
  50% {
    opacity: 0;
  }
  52% {
    opacity: 0.9;
  }
  70%,
  100% {
    opacity: 0;
  }
}
@keyframes press {
  0%,
  44% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.86);
  }
  58%,
  100% {
    transform: scale(1);
  }
}

/* 02 Pick — a deck of moods fans out; one is chosen. */
.vig-pick {
  display: grid;
  place-items: center;
  background: radial-gradient(70% 60% at 50% 40%, rgba(255, 107, 61, 0.14), transparent 70%), var(--night-2);
}

.card {
  position: absolute;
  width: 46%;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 34px -14px rgba(0, 0, 0, 0.7);
  transform-origin: 50% 110%;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card span {
  position: absolute;
  left: 0.5rem;
  bottom: 0.45rem;
  font: 800 0.82rem/1 var(--display);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
}

.card:nth-child(1) {
  --r: -26deg;
  --x: -26%;
}
.card:nth-child(2) {
  --r: -9deg;
  --x: -9%;
}
.card:nth-child(3) {
  --r: 9deg;
  --x: 9%;
}
.card:nth-child(4) {
  --r: 26deg;
  --x: 26%;
}

.card {
  transform: rotate(var(--r)) translateX(var(--x));
}

.anim .card {
  transform: none;
}

.anim .vig.play .card {
  animation: fan 4.6s var(--ease-io) infinite;
}

.anim .vig.play .card.pick {
  animation-name: fan-pick;
}

@keyframes fan {
  0%,
  6% {
    transform: none;
  }
  32%,
  82% {
    transform: rotate(var(--r)) translateX(var(--x));
  }
  100% {
    transform: none;
  }
}

@keyframes fan-pick {
  0%,
  6% {
    transform: none;
    box-shadow: 0 16px 34px -14px rgba(0, 0, 0, 0.7);
  }
  32%,
  44% {
    transform: rotate(var(--r)) translateX(var(--x));
  }
  56%,
  82% {
    transform: rotate(0) translateX(0) translateY(-16%) scale(1.12);
    box-shadow:
      0 0 0 3px var(--tang),
      0 24px 50px -16px rgba(255, 107, 61, 0.6);
    z-index: 5;
  }
  100% {
    transform: none;
  }
}

/* 03 Reveal — the app's reveal in miniature: home.js draws the loader and the
   bloom; without motion the result simply shows. */
.vig-reveal img {
  transition: filter 500ms ease;
}

.vig-reveal img.dim {
  filter: brightness(0.5) saturate(0.7);
}

.anim .vig-reveal .after {
  opacity: 0;
  z-index: 1;
}

.vbloom {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

html:not(.anim) .vbloom {
  display: none;
}

/* ---- Proof: each room opens through the lens -------------------------------- */

.cmps {
  display: grid;
  gap: clamp(1.2rem, 3vw, 1.8rem);
  margin-top: clamp(2.4rem, 6vw, 3.6rem);
}

@media (min-width: 860px) {
  .cmps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cmp {
  position: relative;
  cursor: pointer;
  margin: 0;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--night-3);
  box-shadow: 0 0 0 1px var(--line);
}

.cmp img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.cmp .before {
  filter: saturate(0.82) brightness(0.94);
}

/* Without motion: a plain half-and-half. With it, home.js opens the lens. */
.cmp .after {
  clip-path: inset(0 0 0 50%);
}

.anim .cmp .after {
  clip-path: circle(0);
}

.cmp-ap {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

/* Before / after: a real toggle, the active side filled. */
.seg {
  position: absolute;
  z-index: 3;
  top: 0.8rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(16, 19, 28, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 0 0 1px rgba(246, 241, 232, 0.14);
}

.seg button {
  margin: 0;
  padding: 0.42rem 0.78rem 0.46rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(246, 241, 232, 0.78);
  font: 700 0.76rem/1 var(--display);
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 280ms ease,
    color 280ms ease;
}

.seg button:hover {
  color: var(--cream);
}

.seg .seg-b.on {
  background: var(--cream);
  color: var(--night);
}

.seg .seg-a.on {
  background: var(--c);
  color: var(--night);
}

.seg button:focus-visible {
  outline: 2px solid var(--tang);
  outline-offset: 2px;
}

.cmp figcaption {
  position: absolute;
  z-index: 2;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.85rem;
  font: 800 1.15rem/1.1 var(--display);
  letter-spacing: -0.02em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.cmp figcaption small {
  display: block;
  margin-top: 0.25rem;
  font: 500 0.8rem/1.3 var(--text);
  letter-spacing: 0;
  color: rgba(246, 241, 232, 0.86);
}

.honest {
  margin: 1.4rem 0 0;
  font-size: 0.86rem;
  color: var(--cream-3);
  max-width: 44rem;
}

/* ---- FAQ ---------------------------------------------------------------------- */

.faq {
  display: grid;
  gap: 2rem;
}

@media (min-width: 980px) {
  .faq {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
    align-items: start;
  }
}

.qa {
  border-top: 1px solid var(--line);
}

.qa details {
  border-bottom: 1px solid var(--line);
}

.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  font: 750 clamp(1.15rem, 2vw, 1.35rem) / 1.2 var(--display);
  letter-spacing: -0.02em;
  cursor: pointer;
  list-style: none;
}

.qa summary::-webkit-details-marker {
  display: none;
}

.qa summary::after {
  content: '';
  flex: none;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background:
    linear-gradient(var(--cream), var(--cream)) center / 11px 2px no-repeat,
    linear-gradient(var(--cream), var(--cream)) center / 2px 11px no-repeat,
    rgba(246, 241, 232, 0.08);
  transition:
    transform 400ms var(--ease-out),
    background-color 300ms;
}

.qa details[open] summary::after {
  transform: rotate(135deg);
  background-color: var(--tang);
}

.qa details p {
  margin: -0.4rem 0 1.35rem;
  max-width: 38rem;
  color: var(--cream-2);
}

.anim .qa details[open] p {
  animation: qa-in 500ms var(--ease-out);
}

@keyframes qa-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* ---- Get: the lens opens ------------------------------------------------------- */

.get {
  text-align: center;
  padding-bottom: clamp(6rem, 16vw, 10rem);
}

.lens {
  position: relative;
  width: min(74vw, 25rem);
  aspect-ratio: 1;
  margin: 0 auto clamp(2rem, 5vw, 3rem);
  border-radius: 50%;
  overflow: hidden;
  background: var(--night-3);
  box-shadow:
    0 0 0 1px var(--line),
    0 40px 120px -30px color-mix(in oklab, var(--glow) 70%, transparent);
  transition: box-shadow 1100ms;
}

.lens img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
}

.lens-ap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

html:not(.anim) .lens-ap {
  display: none;
}

.get .h2 {
  margin-inline: auto;
}

.get .lede {
  margin-inline: auto;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 2rem;
}

.store {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  height: 3.6rem;
  padding: 0 1.25rem;
  border-radius: 16px;
  text-decoration: none;
  background: rgba(246, 241, 232, 0.07);
  border: 1px solid rgba(246, 241, 232, 0.16);
  transition:
    background 260ms,
    transform 260ms var(--ease-out);
}

.store small {
  font: 600 0.66rem/1 var(--text);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-3);
}

.store b {
  margin-top: 0.3rem;
  font: 800 1.08rem/1 var(--display);
  letter-spacing: -0.01em;
}

@media (hover: hover) {
  .store:hover {
    background: rgba(246, 241, 232, 0.12);
    transform: translateY(-2px);
  }
}

.notify {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.4rem;
  font-weight: 600;
  color: var(--tang);
  text-decoration: none;
}

.notify:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---- Dock: the thumb's CTA on phones ------------------------------------------- */

.dock {
  position: fixed;
  z-index: 55;
  left: 0.75rem;
  right: 0.75rem;
  bottom: calc(env(safe-area-inset-bottom) + 0.75rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.55rem 0.55rem 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(22, 26, 38, 0.82);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  transform: translateY(160%);
  transition: transform 520ms var(--ease-out);
}

.dock.show {
  transform: none;
}

.dock p {
  margin: 0;
  font: 700 0.92rem/1.15 var(--display);
}

.dock p small {
  display: block;
  font: 500 0.76rem/1.2 var(--text);
  color: var(--cream-3);
}

.dock .btn {
  height: 2.9rem;
  padding: 0 1.1rem;
  font-size: 0.95rem;
}

@media (min-width: 980px) {
  .dock {
    display: none;
  }
}

/* ---- Footer --------------------------------------------------------------------- */

.ftr {
  border-top: 1px solid var(--line);
  padding: 2.6rem 0 calc(env(safe-area-inset-bottom) + 6.5rem);
}

@media (min-width: 980px) {
  .ftr {
    padding-bottom: 2.6rem;
  }
}

.ftr .wrap {
  display: grid;
  gap: 1.4rem;
}

@media (min-width: 860px) {
  .ftr .wrap {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2.5rem;
  }
}

.ftr .wm {
  width: 7rem;
}

.ftr nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: 0.92rem;
}

.ftr nav a {
  text-decoration: none;
  color: var(--cream-2);
}

.ftr nav a:hover {
  color: var(--cream);
}

.ftr .fine {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--cream-3);
}

/* ---- Shutter intro ---------------------------------------------------------------- */

.shutter {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  background: var(--night);
  transition:
    opacity 420ms ease,
    visibility 0s linear 420ms;
}

.shutter svg {
  width: min(58vw, 19rem);
  height: auto;
}

.shutter.done {
  opacity: 0;
  visibility: hidden;
}

/* Without motion the marquee is a plain scrollable row — the loop copy goes. */
html:not(.anim) .mood.dup {
  display: none;
}

/* Only the chosen card names itself — four overlapping labels read as noise. */
.card span {
  display: none;
}

.card.pick span {
  display: block;
}

/* Phones: square vignettes keep the three steps a thumb-length each. */
@media (max-width: 859px) {
  .vig {
    aspect-ratio: 1 / 1;
  }
}
