/* A Vida Não Para — O Filme
   Every scene fills the screen: the family photo, blurred and darkened, becomes the room; the sharp photo sits in front of it.
   Color is the story: warm in act I, drained in act II, back in act III. Gold only on numerals, the date and the one button.
   Motion lives in main.js (GSAP ScrollTrigger + Lenis). Without JavaScript the page is a plain, readable story. */

:root {
  --bg: #000;
  --fg: #fff;
  --dim: rgba(255, 255, 255, 0.6);
  --line: rgba(255, 255, 255, 0.22);
  --gold: #ece4b4;
  --display: "Instrument Serif", "Times New Roman", Times, serif;
  --text: "EB Garamond", Georgia, "Times New Roman", serif;
  --pad: clamp(1.25rem, 5vw, 4.5rem);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

html {
  background: var(--bg);
  color: var(--fg);
  -webkit-text-size-adjust: 100%;
}

html.lenis {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  font: 400 1.1875rem/1.5 var(--text);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

::selection {
  background: var(--gold);
  color: #000;
}

:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Type ---------- */
.line {
  font: 400 clamp(2.3rem, 6.6vw, 5.4rem) / 1.02 var(--display);
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.line.sm {
  font-size: clamp(1.85rem, 4.4vw, 3.5rem);
  line-height: 1.08;
}

.eyebrow {
  font: 400 clamp(0.78rem, 1.05vw, 0.92rem) / 1.35 var(--text);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--dim);
}

.note {
  font-size: 1rem;
  color: var(--dim);
}

.lede {
  max-width: 26rem;
  font-size: 1.32rem;
  line-height: 1.4;
}

.date {
  font: 400 clamp(3rem, 10.5vw, 9.5rem) / 0.92 var(--display);
  letter-spacing: -0.03em;
  color: var(--gold);
}

/* ---------- Film grain, cursor, loader ---------- */
.grain {
  position: fixed;
  inset: -100%;
  z-index: 50;
  background: url("media/noise.png") repeat;
  opacity: 0.085;
  mix-blend-mode: overlay;
  pointer-events: none;
  animation: grain 0.9s steps(5) infinite;
}

@keyframes grain {
  0% {
    transform: translate3d(0, 0, 0);
  }
  20% {
    transform: translate3d(-4%, 3%, 0);
  }
  40% {
    transform: translate3d(3%, -5%, 0);
  }
  60% {
    transform: translate3d(-6%, -2%, 0);
  }
  80% {
    transform: translate3d(5%, 6%, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

.cur {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  html.cursor,
  html.cursor a,
  html.cursor button {
    cursor: none;
  }

  html.cursor .cur {
    display: block;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 60;
    pointer-events: none;
  }

  .cur-dot,
  .cur-ring {
    position: absolute;
    left: 0;
    top: 0;
    display: block;
    border-radius: 50%;
    transform: translate(-50%, -50%);
  }

  .cur-dot {
    width: 6px;
    height: 6px;
    background: var(--fg);
  }

  .cur-ring {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    transition: width 0.25s var(--ease), height 0.25s var(--ease), border-color 0.25s;
  }

  html.cursor.hover .cur-ring {
    width: 64px;
    height: 64px;
    border-color: var(--gold);
  }
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-content: center;
  gap: 1.4rem;
  background: var(--bg);
}

.loader-t {
  font: 400 clamp(2.6rem, 9vw, 6.5rem) / 0.95 var(--display);
  text-transform: uppercase;
  letter-spacing: -0.03em;
  text-align: center;
}

.loader-t span {
  display: block;
  overflow: hidden;
  padding: 0.1em 0.1em 0;
}

.loader-line {
  display: block;
  justify-self: center;
  width: min(60vw, 18rem);
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ---------- Fixed chrome ---------- */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 41;
  height: 1px;
}

.progress span {
  display: block;
  height: 1px;
  background: var(--gold);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

.bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem var(--pad) 1.6rem;
  font: 400 0.76rem/1 var(--text);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: linear-gradient(rgba(0, 0, 0, 0.75) 45%, rgba(0, 0, 0, 0));
  pointer-events: none;
}

.bar > * {
  pointer-events: auto;
}

.bar a,
.bar button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--fg);
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.bar nav {
  display: flex;
  gap: clamp(0.9rem, 2.5vw, 2rem);
}

.bar .gold {
  color: var(--gold);
}

.eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.eq i {
  display: block;
  width: 2px;
  height: 3px;
  background: currentColor;
  transform-origin: 50% 100%;
}

[aria-pressed="true"] .eq i {
  animation: eq 0.9s ease-in-out infinite alternate;
}

[aria-pressed="true"] .eq i:nth-child(2) {
  animation-delay: -0.3s;
}

[aria-pressed="true"] .eq i:nth-child(3) {
  animation-delay: -0.6s;
}

[aria-pressed="true"] .eq i:nth-child(4) {
  animation-delay: -0.15s;
}

@keyframes eq {
  from {
    transform: scaleY(1);
  }
  to {
    transform: scaleY(4);
  }
}

@media (max-width: 640px) {
  .bar {
    font-size: 0.66rem;
    letter-spacing: 0.1em;
  }

  .bar #read .long {
    display: none;
  }
}

/* act navigation on the right */
.acts {
  position: fixed;
  right: clamp(0.9rem, 2.5vw, 2.2rem);
  top: 50%;
  z-index: 40;
  display: grid;
  gap: 0.9rem;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.acts.on {
  opacity: 1;
  pointer-events: auto;
}

.acts a {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem;
  min-height: 32px;
  text-decoration: none;
  font: 400 0.72rem/1 var(--text);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.acts b {
  order: 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font: 400 0.9rem/1 var(--display);
  color: var(--fg);
  transition: border-color 0.3s, background-color 0.3s, color 0.3s;
}

.acts span {
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.25s, transform 0.25s var(--ease);
}

.acts a:hover span,
.acts a:focus-visible span {
  opacity: 1;
  transform: none;
}

.acts a.on b {
  background: var(--gold);
  border-color: var(--gold);
  color: #000;
}

@media (max-width: 760px) {
  .acts {
    inset: auto 0 0 0;
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    padding: 1.2rem 1rem calc(0.4rem + env(safe-area-inset-bottom));
    transform: none;
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.85) 45%);
  }

  .acts a {
    justify-content: center;
    min-width: 48px;
    min-height: 44px;
  }

  .acts span {
    display: none;
  }

  .acts b {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }

  .inner {
    padding-bottom: 5.5rem;
  }

  .hint {
    bottom: 5rem;
  }

  .invite {
    padding-bottom: 5rem;
  }

  footer {
    padding-bottom: calc(6rem + env(safe-area-inset-bottom));
  }
}

/* short phones: smaller photo so the sentence still fits under it */
@media (max-height: 700px) {
  .ph img,
  .ph video,
  .strip figure img {
    max-height: 38svh;
  }
}

/* touch screens: the grain is a plain, lighter layer (blending a full-screen layer is the one costly effect) */
@media (pointer: coarse) {
  .grain {
    inset: -40%;
    opacity: 0.06;
    mix-blend-mode: normal;
    animation-duration: 1.2s;
  }
}

/* ---------- Scenes ---------- */
.scene {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--bg);
}

.bg {
  position: absolute;
  inset: -4%;
  z-index: 0;
}

.bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 45%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.78) 100%), linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.6));
}

.bg .bw,
.bg .color {
  opacity: 0;
}

.inner {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  height: 100%;
  padding: 5.5rem var(--pad) 4.5rem;
  row-gap: 1.6rem;
}

/* ---------- Hero ---------- */
.hero .inner {
  justify-items: center;
  text-align: center;
  row-gap: 1.2rem;
}

.hero-t {
  display: grid;
  font: 400 clamp(4.2rem, 17vw, 17rem) / 0.86 var(--display);
  letter-spacing: -0.035em;
  text-transform: uppercase;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.5);
}

.hero-t .t {
  display: block;
  overflow: hidden;
  padding: 0.12em 0.08em 0;
}

.hero-sub {
  font: 400 clamp(0.78rem, 1.05vw, 0.95rem) / 1.3 var(--text);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-lines {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  padding: 0 var(--pad);
  pointer-events: none;
}

.hero-lines .line {
  grid-area: 1 / 1;
  max-width: 16ch;
  font-size: clamp(2.6rem, 7.6vw, 6.6rem);
  opacity: 0;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.6);
}

.hero-lines small {
  display: block;
  margin-top: 1rem;
  font: 400 1.05rem/1.4 var(--text);
  color: var(--dim);
}

.hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.8rem;
  display: grid;
  justify-items: center;
  gap: 1.1rem;
}

.hint-s {
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  font: 400 0.74rem/1 var(--text);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}

.hint-s i {
  display: block;
  width: 1px;
  height: 2.4rem;
  background: var(--fg);
  transform-origin: 50% 0;
  animation: drop 2.2s var(--ease) infinite;
}

@keyframes drop {
  0% {
    transform: scaleY(0);
  }
  55% {
    transform: scaleY(1);
    opacity: 1;
  }
  100% {
    transform: scaleY(1);
    opacity: 0;
  }
}

.pill {
  min-height: 44px;
  padding: 0.6rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--fg);
  font: 400 0.8rem/1 var(--text);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: border-color 0.2s, color 0.2s;
}

.pill:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ---------- Act cards ---------- */
.actcard .inner {
  row-gap: 0.6rem;
}

.actcard .num {
  overflow: hidden;
  padding-bottom: 0.06em;
}

.actcard .num span {
  display: block;
  font: 400 clamp(12rem, 46vw, 32rem) / 0.82 var(--display);
  letter-spacing: -0.04em;
  color: var(--gold);
}

.actcard .line {
  max-width: 12ch;
}

.actcard .rule {
  display: block;
  width: min(60vw, 22rem);
  height: 1px;
  background: var(--gold);
  transform-origin: 0 50%;
}

/* ---------- Beats ---------- */
.beat .inner {
  row-gap: 1.75rem;
}

.ph {
  position: relative;
  justify-self: start;
  margin: 0;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.flip .ph {
  justify-self: end;
}

.ph img,
.ph video {
  width: auto;
  max-width: min(100%, var(--w, 100%));
  max-height: 46vh;
  max-height: 46svh;
}

.ph.duo {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  box-shadow: none;
}

.ph.duo > * {
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.ph.duo img {
  max-width: min(42vw, 17rem);
}

.crop {
  position: relative;
  flex: none;
  aspect-ratio: 4 / 3;
  width: min(42vw, 17rem);
  overflow: hidden;
}

.ph .crop video {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 130%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: 50% 100%;
}

.tx {
  display: grid;
  gap: 0.9rem;
  max-width: 34rem;
}

.tx.center {
  justify-self: center;
  text-align: center;
}

.bw .ph img {
  filter: grayscale(1) contrast(1.05);
}

/* the six hours */
.dial {
  box-shadow: none;
  width: min(52vw, 15rem);
}

.dial svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.dial circle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 1;
}

.dial .pin {
  fill: var(--gold);
  stroke: none;
}

.dial .ticks line {
  stroke: rgba(255, 255, 255, 0.45);
  stroke-width: 1;
}

.dial .hand {
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
  transform-origin: 100px 100px;
}

/* the light that stays */
.glow {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 0;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 228, 180, 0.55), rgba(236, 228, 180, 0) 60%);
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
}

/* ---------- The years: horizontal ---------- */
.strip .track {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: clamp(2.5rem, 9vw, 10rem);
  width: max-content;
  height: 100%;
  padding-inline: var(--pad) 40vw;
}

.strip figure {
  display: grid;
  gap: 1.3rem;
  width: min(76vw, 31rem);
  margin: 0;
}

.strip figure img {
  max-height: 46vh;
  max-height: 46svh;
  width: auto;
  max-width: min(100%, var(--w, 100%));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.strip figcaption {
  font: 400 clamp(1.8rem, 3.9vw, 3.2rem) / 1.06 var(--display);
  text-wrap: balance;
}

/* ---------- Title ---------- */
.title .inner {
  justify-items: center;
  text-align: center;
  row-gap: 1.6rem;
}

.title .box {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  height: 50%;
  background: var(--bg);
}

.title .box.top {
  top: 0;
  transform-origin: 50% 0;
}

.title .box.bottom {
  bottom: 0;
  transform-origin: 50% 100%;
}

.title-t {
  display: grid;
  font: 400 clamp(3.6rem, 18.5vw, 17rem) / 0.88 var(--display);
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.title-t span {
  display: block;
  overflow: hidden;
  padding: 0.14em 0.08em 0;
}

/* ---------- Plain sections ---------- */
.flow {
  position: relative;
  padding: clamp(5rem, 14vh, 10rem) var(--pad);
}

.flow .lead {
  max-width: 21ch;
  margin-bottom: clamp(2.5rem, 7vh, 5rem);
}

.lives {
  list-style: none;
  padding: 0;
  border-bottom: 1px solid var(--line);
}

.lives li {
  display: grid;
  gap: 0.2rem;
  padding: 1.15rem 0 1.25rem;
  border-top: 1px solid var(--line);
}

.lives .k {
  font: 400 clamp(2.1rem, 6vw, 4.6rem) / 1 var(--display);
  letter-spacing: -0.015em;
}

.lives .v {
  color: var(--dim);
}

.lives li:last-child .k {
  color: var(--gold);
}

/* ---------- City ---------- */
.city .bg.full img {
  object-position: 50% 60%;
}

.city .inner {
  align-content: end;
  padding-bottom: 12vh;
}

.city .tx {
  max-width: 38rem;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.7);
}

/* ---------- Invitation ---------- */
.invite {
  display: grid;
  gap: clamp(2rem, 5vh, 3.25rem);
  min-height: 100vh;
  min-height: 100svh;
  align-content: center;
  overflow: hidden;
  padding-top: clamp(7rem, 18vh, 12rem);
  padding-bottom: 4rem;
}

.marq {
  position: absolute;
  left: 0;
  right: 0;
  top: clamp(1rem, 4vh, 2.5rem);
  display: flex;
  width: max-content;
  font: 400 clamp(1.6rem, 4vw, 3rem) / 1 var(--display);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: rgba(236, 228, 180, 0.28);
  white-space: nowrap;
  animation: marq 38s linear infinite;
  pointer-events: none;
}

@keyframes marq {
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.invite .line {
  max-width: 15ch;
}

.invite .body {
  display: grid;
  gap: 1rem;
  max-width: 36rem;
  font-size: 1.25rem;
  line-height: 1.45;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 58px;
  padding: 0.95rem 1.6rem;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  font: 400 1.19rem/1.2 var(--text);
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: color 0.25s;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform 0.35s var(--ease);
}

.btn span {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.btn:hover {
  color: #000;
}

.btn:hover::before {
  transform: scaleY(1);
}

.link {
  min-height: 44px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  color: var(--fg);
  font: 400 1.05rem/1.2 var(--text);
  cursor: pointer;
}

.status {
  min-height: 1.5em;
  font-size: 0.95rem;
  color: var(--dim);
}

.billing {
  max-width: 44rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font: 400 0.76rem/1.9 var(--text);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}

.billing b {
  font-weight: 400;
  color: var(--fg);
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 2rem;
  padding: 0 var(--pad) 3.5rem;
  font-size: 0.86rem;
  color: var(--dim);
}

.credit {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  transition: color 0.2s;
}

.credit b {
  font-weight: 400;
  color: var(--fg);
  border-bottom: 1px solid var(--line);
  margin-left: 0.3em;
  transition: color 0.2s, border-color 0.2s;
}

.credit:hover b {
  color: var(--gold);
  border-color: var(--gold);
}

/* ---------- Reader ---------- */
.reader {
  width: min(100%, 44rem);
  max-height: 100vh;
  max-height: 100svh;
  margin: auto;
  padding: 0;
  border: 0;
  background: #0a0a0a;
  color: var(--fg);
}

.reader::backdrop {
  background: rgba(0, 0, 0, 0.8);
}

.reader-in {
  display: grid;
  gap: 1.3rem;
  padding: clamp(2rem, 6vw, 3.5rem);
  font-size: 1.15rem;
  line-height: 1.55;
}

.reader-in b {
  font-weight: 400;
  color: var(--gold);
}

.reader-x {
  position: absolute;
  right: 0.75rem;
  top: 0.5rem;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  color: var(--fg);
  font-size: 1.8rem;
  cursor: pointer;
}

/* ---------- Wider screens ---------- */
@media (min-width: 860px) {
  .beat .inner {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: clamp(1rem, 2.4vw, 2.5rem);
    align-items: center;
  }

  .beat .ph {
    grid-column: 2 / span 5;
    justify-self: end;
  }

  .beat .tx {
    grid-column: 7 / span 5;
  }

  .beat.flip .ph {
    grid-column: 7 / span 5;
    grid-row: 1;
    justify-self: start;
  }

  .beat.flip .tx {
    grid-column: 2 / span 5;
    grid-row: 1;
  }

  .beat .tx.center {
    grid-column: 3 / span 8;
    justify-self: center;
  }

  .ph img,
  .ph video {
    max-height: 72vh;
  }

  .ph.duo img,
  .crop {
    max-width: min(18vw, 15.5rem);
    width: min(18vw, 15.5rem);
  }

  .actcard .inner {
    grid-template-columns: auto 1fr;
    align-items: end;
    column-gap: clamp(2rem, 6vw, 6rem);
    padding-bottom: 12vh;
  }

  .actcard .line {
    padding-bottom: 0.35em;
  }

  .actcard .rule {
    grid-column: 1 / -1;
  }

  .strip figure img {
    max-height: 50vh;
  }

  .lives li {
    grid-template-columns: 1fr auto;
    align-items: baseline;
    column-gap: 2rem;
  }

  .invite {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: clamp(1rem, 2.4vw, 2.5rem);
  }

  .invite > *:not(.marq) {
    grid-column: 2 / span 9;
  }

  .tilt .ph {
    transform-style: preserve-3d;
  }

  .tilt .inner {
    perspective: 1200px;
  }
}

/* ---------- Reduced motion: no autonomous motion; scroll-driven scenes stay, they only move when the reader does ---------- */
@media (prefers-reduced-motion: reduce) {
  .grain,
  .hint-s i,
  .marq,
  [aria-pressed="true"] .eq i {
    animation: none;
  }

  .hint-s i {
    transform: none;
  }
}
