/* =====================================================================
   03 · THE GATHERING
   The night organized by PEOPLE and their OFFERINGS.
   Not photos, not time, not media — WHO was here, and WHAT they left you.
   Every moment is a gift from someone. Attribution is foundational.
   Skin-and-paper tones. Faces and gestures, not frames.
   ===================================================================== */

:root {
  /* palette — warm, human, communal */
  --paper:        #F6EFE1;
  --paper-deep:   #EFE5D2;
  --paper-warm:   #F0E3CF;
  --terracotta:   #C77A5A;
  --terracotta-d: #B15E3F;
  --sage:         #9AA588;
  --sage-d:       #7C876B;
  --ink:          #33291F;
  --ink-soft:     #5A4B3C;
  --ink-faint:    rgba(51, 41, 31, 0.52);
  --skin:         #E7B79A;
  --skin-2:       #D89C7C;
  --skin-3:       #C98B6C;
  --seal:         #B15E3F;

  --edge:         rgba(51, 41, 31, 0.14);
  --edge-soft:    rgba(51, 41, 31, 0.08);

  --shadow-warm:  0 22px 60px -30px rgba(90, 60, 40, 0.55);
  --shadow-lift:  0 30px 80px -34px rgba(90, 55, 35, 0.6);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease-warm: cubic-bezier(0.22, 0.68, 0.24, 1);
  --ease-give: cubic-bezier(0.34, 1.42, 0.42, 1);

  --focus: 0 0 0 3px var(--paper), 0 0 0 5.5px var(--terracotta);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; height: 100svh; -webkit-tap-highlight-color: transparent; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(120% 90% at 50% -10%, #FBF6EC 0%, var(--paper) 42%, var(--paper-deep) 100%);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---- ambient hearth glow, breathing softly like a warm room ---- */
.hearth {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 30% 20%, rgba(199,122,90,0.14), transparent 60%),
    radial-gradient(50% 50% at 78% 78%, rgba(154,165,136,0.13), transparent 62%);
  animation: hearth 14s var(--ease-warm) infinite alternate;
}
@keyframes hearth {
  0%   { opacity: 0.75; transform: scale(1); }
  100% { opacity: 1;    transform: scale(1.06); }
}

/* ---- paper grain, gives the surface a hand-made tooth ---- */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.5;
  mix-blend-mode: multiply;
  background-image:
    radial-gradient(circle at 12% 22%, rgba(120,90,60,0.06) 0 1px, transparent 1px),
    radial-gradient(circle at 62% 68%, rgba(120,90,60,0.05) 0 1px, transparent 1px),
    radial-gradient(circle at 84% 34%, rgba(120,90,60,0.06) 0 1px, transparent 1px);
  background-size: 7px 7px, 9px 9px, 6px 6px;
}

/* ============================ STAGE / SCENES ======================= */
#stage { position: relative; z-index: 2; height: 100%; height: 100svh; }

.scene {
  position: absolute; inset: 0;
  display: none;
  padding: clamp(1.4rem, 4vw, 4rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.scene.is-active { display: flex; }

.scene__inner {
  margin: auto;
  width: 100%;
  animation: sceneIn 0.9s var(--ease-warm) both;
}
.center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.narrow { max-width: 44rem; }
.wide   { max-width: 74rem; }

@keyframes sceneIn {
  from { opacity: 0; transform: translateY(14px) scale(0.992); }
  to   { opacity: 1; transform: none; }
}

/* leaving scene falls back gently */
.scene.is-leaving .scene__inner {
  animation: sceneOut 0.5s var(--ease-warm) both;
}
@keyframes sceneOut {
  to { opacity: 0; transform: translateY(-10px) scale(0.99); }
}

/* ============================ TYPE ================================= */
.title {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.06;
  letter-spacing: -0.01em;
  font-size: clamp(2rem, 5.4vw, 3.6rem);
  font-optical-sizing: auto;
}
.title--hero { font-size: clamp(2.6rem, 8vw, 5.4rem); font-weight: 400; }
.title--soft { color: var(--ink-soft); font-weight: 400; }

.whisper, .eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--terracotta-d);
}
.whisper { margin-bottom: 1.1rem; }
.eyebrow { margin-bottom: 1.4rem; }
.eyebrow--dawn { color: var(--sage-d); }

.voice {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 3.6vw, 2.3rem);
  line-height: 1.24;
  color: var(--ink);
}
.voice--count { font-style: normal; font-weight: 500; }

.lede {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(1.02rem, 1.7vw, 1.22rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 40rem;
}
.lede em { font-family: var(--serif); font-style: italic; color: var(--terracotta-d); font-size: 1.05em; }
.lede--soft { color: var(--ink-faint); }

.footnote {
  font-size: 0.82rem;
  color: var(--ink-faint);
  letter-spacing: 0.01em;
}

/* rhythm inside centered scenes */
.center > * + * { margin-top: clamp(1.1rem, 2.6vw, 1.7rem); }

/* ============================ REVEALS ============================= */
.reveal { opacity: 0; transform: translateY(16px); }
.scene.is-active .reveal {
  animation: reveal 0.85s var(--ease-warm) both;
  animation-delay: calc(var(--r, 1) * 0.13s + 0.12s);
}
@keyframes reveal {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* ============================ OFFER BUTTON ========================= */
/* a gesture of offering — a small hand-warmth rises on hover        */
.offer-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
  background: var(--paper-warm);
  border: 1px solid var(--edge);
  border-radius: 999px;
  padding: 0.95rem 1.7rem;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.4s var(--ease-give),
              box-shadow 0.4s var(--ease-warm),
              background 0.4s var(--ease-warm),
              color 0.4s var(--ease-warm),
              border-color 0.4s var(--ease-warm);
  box-shadow: 0 10px 26px -18px rgba(90,60,40,0.5);
}
.offer-btn__label { position: relative; z-index: 2; }
/* the "hand" — a warm disc that offers itself forward */
.offer-btn__hand {
  position: relative; z-index: 2;
  width: 0; height: 0.55rem;
  border-radius: 999px;
  background: currentColor;
  opacity: 0;
  transition: width 0.45s var(--ease-give), opacity 0.4s var(--ease-warm);
}
.offer-btn::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(120% 120% at 0% 50%, rgba(199,122,90,0.25), transparent 60%);
  opacity: 0; transition: opacity 0.45s var(--ease-warm);
}
.offer-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -22px rgba(150,80,50,0.55);
  border-color: rgba(199,122,90,0.5);
}
.offer-btn:hover::before { opacity: 1; }
.offer-btn:hover .offer-btn__hand { width: 0.55rem; opacity: 0.9; }
.offer-btn:active { transform: translateY(-1px) scale(0.985); }
.offer-btn:focus-visible { outline: none; box-shadow: var(--focus), 0 20px 40px -24px rgba(150,80,50,0.5); }

.offer-btn--warm {
  background: linear-gradient(180deg, var(--terracotta) 0%, var(--terracotta-d) 100%);
  color: #FBF3EA;
  border-color: transparent;
}
.offer-btn--warm:hover { box-shadow: 0 24px 48px -22px rgba(177,94,63,0.75); }
.offer-btn--warm .offer-btn__hand { background: #FBF3EA; }

.offer-btn--ghost {
  background: transparent;
  border-color: var(--edge);
  color: var(--ink-soft);
  box-shadow: none;
}
.offer-btn--ghost:hover { color: var(--ink); background: rgba(255,255,255,0.35); }

/* ==================== BEAT 1 · arrival crowd ====================== */
.arrival-crowd { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.face-dot {
  position: absolute;
  left: var(--x); top: var(--y);
  width: clamp(34px, 5vw, 58px); height: clamp(34px, 5vw, 58px);
  border-radius: 50% 50% 48% 52% / 55% 55% 45% 45%;
  background:
    radial-gradient(60% 55% at 50% 38%, var(--skin) 0%, var(--skin-2) 60%, var(--skin-3) 100%);
  filter: blur(1px);
  opacity: 0;
  animation: faceBreath 6s var(--ease-warm) infinite alternate;
  animation-delay: var(--d);
}
@keyframes faceBreath {
  0%   { opacity: 0.12; transform: translateY(6px) scale(0.94); }
  100% { opacity: 0.34; transform: translateY(-4px) scale(1); }
}

/* ==================== BEAT 2 · name field ======================== */
.namefield {
  display: block; width: min(30rem, 100%); text-align: left;
  cursor: text;
}
.namefield__caption {
  display: block;
  font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--terracotta-d); margin-bottom: 0.5rem;
}
.namefield__input {
  width: 100%;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 400;
  color: var(--ink);
  background: transparent;
  border: none;
  padding: 0.6rem 0 0.8rem;
}
.namefield__input:focus { outline: none; }
.namefield__rule {
  display: block; height: 2px; border-radius: 2px;
  background: var(--edge);
  transform-origin: left;
  transition: background 0.4s var(--ease-warm);
  position: relative; overflow: hidden;
}
.namefield__rule::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--terracotta), var(--sage));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.55s var(--ease-warm);
}
.namefield__input:focus ~ .namefield__rule::after { transform: scaleX(1); }

/* ==================== BEAT 4 · gifts to leave ==================== */
.gifts {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(0.9rem, 2vw, 1.4rem);
  width: 100%;
  max-width: 56rem;
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
}
.gift {
  position: relative;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 0.55rem;
  padding: clamp(1.5rem, 3vw, 2.2rem) 1.2rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.2));
  border: 1px solid var(--edge);
  border-radius: 22px;
  cursor: pointer;
  transition: transform 0.5s var(--ease-give), box-shadow 0.5s var(--ease-warm), border-color 0.4s var(--ease-warm);
  box-shadow: 0 12px 30px -24px rgba(90,60,40,0.5);
}
.gift:hover {
  transform: translateY(-6px);
  border-color: rgba(199,122,90,0.5);
  box-shadow: var(--shadow-warm);
}
.gift:active { transform: translateY(-2px) scale(0.99); }
.gift:focus-visible { outline: none; box-shadow: var(--focus), var(--shadow-warm); }

.gift__icon {
  width: 3.4rem; height: 3.4rem; border-radius: 50%;
  display: grid; place-items: center;
  margin-bottom: 0.3rem;
  background: radial-gradient(70% 70% at 50% 40%, var(--paper) 0%, var(--paper-deep) 100%);
  border: 1px solid var(--edge-soft);
  position: relative;
  transition: transform 0.5s var(--ease-give);
}
.gift:hover .gift__icon { transform: scale(1.08) rotate(-2deg); }
.gift__icon::before, .gift__icon::after { content: ""; position: absolute; }
/* photo — a small window on the world you saw */
.gift__icon--photo::before {
  width: 1.5rem; height: 1.2rem; border-radius: 5px;
  border: 2px solid var(--terracotta-d);
}
.gift__icon--photo::after {
  width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: var(--sage-d); top: 55%; left: 42%;
}
/* moment — a soft play, something happening */
.gift__icon--moment::before {
  width: 0; height: 0;
  border-left: 0.95rem solid var(--terracotta-d);
  border-top: 0.6rem solid transparent;
  border-bottom: 0.6rem solid transparent;
  margin-left: 0.25rem;
}
/* words — a spoken line */
.gift__icon--words::before {
  width: 1.5rem; height: 1.15rem; border-radius: 8px 8px 8px 2px;
  border: 2px solid var(--terracotta-d);
}
.gift__icon--words::after {
  width: 0.7rem; height: 2px; border-radius: 2px;
  background: var(--sage-d); top: 44%; left: 36%;
  box-shadow: 0 4px 0 var(--sage-d);
}
.gift__kind { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; color: var(--ink); }
.gift__sub  { font-size: 0.92rem; color: var(--ink-faint); line-height: 1.4; }
.gift__badge {
  margin-top: 0.5rem;
  font-family: var(--serif); font-style: italic;
  font-size: 0.86rem; color: var(--terracotta-d);
  padding: 0.2rem 0.7rem;
  border: 1px solid rgba(199,122,90,0.3);
  border-radius: 999px;
}

/* ==================== BEAT 5 · the giving ======================== */
.giving-stage {
  position: relative;
  width: min(24rem, 90%);
  height: 15rem;
  margin: 0 auto clamp(1rem, 2vw, 1.6rem);
}
.giving-card {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 12.5rem;
  background: #FBF6EC;
  border-radius: 14px;
  padding: 0.6rem 0.6rem 0.85rem;
  box-shadow: var(--shadow-lift);
  border: 1px solid var(--edge-soft);
  animation: cardOffer 3.4s var(--ease-warm) infinite;
}
.giving-card__frame {
  border-radius: 9px; overflow: hidden; aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--skin) 0%, var(--terracotta) 55%, var(--sage) 100%);
  position: relative;
}
.giving-card__scene {
  position: absolute; inset: 0;
  background:
    radial-gradient(35% 40% at 30% 40%, rgba(255,240,220,0.55), transparent 60%),
    radial-gradient(30% 34% at 70% 60%, rgba(255,240,220,0.4), transparent 60%);
  mix-blend-mode: screen;
}
.giving-card__caption {
  margin-top: 0.5rem; font-size: 0.8rem; color: var(--ink-faint);
  text-align: center; font-style: italic; font-family: var(--serif);
}
@keyframes cardOffer {
  0%, 100% { transform: translate(-50%, -46%) rotate(-1.5deg); }
  50%      { transform: translate(-50%, -54%) rotate(1.5deg); }
}
/* two warmth-hands, giving and receiving */
.giving-hands { position: absolute; inset: 0; }
.giving-hand {
  position: absolute; bottom: 0.5rem;
  width: 3.4rem; height: 3.4rem; border-radius: 50% 50% 46% 54% / 60% 60% 40% 40%;
  background: radial-gradient(60% 55% at 50% 40%, var(--skin) 0%, var(--skin-3) 100%);
  filter: blur(0.4px);
  opacity: 0.85;
}
.giving-hand--give { left: 8%; animation: handGive 3.4s var(--ease-warm) infinite; }
.giving-hand--take { right: 8%; animation: handTake 3.4s var(--ease-warm) infinite; }
@keyframes handGive {
  0%,100% { transform: translateX(0) translateY(4px); opacity: 0.7; }
  50%     { transform: translateX(1.2rem) translateY(-2px); opacity: 0.95; }
}
@keyframes handTake {
  0%,100% { transform: translateX(0) translateY(4px); opacity: 0.7; }
  50%     { transform: translateX(-1.2rem) translateY(-2px); opacity: 0.95; }
}
/* the receiving warmth ring */
.warmth-ring { position: relative; height: 2rem; width: 100%; }
.warmth-ring span {
  position: absolute; left: 50%; top: 50%;
  width: 1.4rem; height: 1.4rem; margin: -0.7rem 0 0 -0.7rem;
  border: 1.5px solid var(--terracotta);
  border-radius: 50%;
  opacity: 0;
  animation: warmthOut 3s var(--ease-warm) infinite;
}
.warmth-ring span:nth-child(2) { animation-delay: 1s; }
.warmth-ring span:nth-child(3) { animation-delay: 2s; }
@keyframes warmthOut {
  0%   { opacity: 0.7; transform: scale(0.4); }
  100% { opacity: 0;   transform: scale(2.8); }
}

/* ==================== BEAT 6 · kept / seal ======================= */
.seal { position: relative; width: 5rem; height: 5rem; margin: 0 auto; }
.seal__glow {
  position: absolute; inset: -30%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(177,94,63,0.35), transparent 65%);
  animation: sealGlow 3.6s var(--ease-warm) infinite alternate;
}
@keyframes sealGlow { from { opacity: 0.5; transform: scale(0.9);} to { opacity: 1; transform: scale(1.05);} }
.seal__mark {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(70% 70% at 42% 36%, var(--terracotta) 0%, var(--seal) 70%, var(--terracotta-d) 100%);
  box-shadow: inset 0 3px 8px rgba(255,220,200,0.4), 0 8px 20px -8px rgba(150,70,40,0.6);
  display: grid; place-items: center;
  animation: sealSet 0.9s var(--ease-give) both;
}
.seal__mark::after {
  content: ""; width: 1.5rem; height: 1.5rem;
  border-radius: 50% 50% 48% 52% / 55% 55% 45% 45%;
  border: 2px solid rgba(255,240,225,0.85);
  border-bottom-color: transparent;
  transform: rotate(-20deg);
}
@keyframes sealSet {
  0% { transform: scale(0) rotate(-30deg); }
  70%{ transform: scale(1.12) rotate(4deg); }
  100%{ transform: scale(1) rotate(0); }
}

/* dawn bridge — the soft link into the morning */
.dawn-bridge {
  position: absolute; left: 50%; bottom: calc(clamp(1.2rem, 4vh, 2.6rem) + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  background: none; border: none; cursor: pointer;
  color: var(--ink-faint);
  font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 0.8rem;
}
.dawn-bridge__line {
  width: 1px; height: 2.4rem;
  background: linear-gradient(var(--terracotta), transparent);
  animation: bridgePulse 2.6s var(--ease-warm) infinite;
}
@keyframes bridgePulse { 0%,100% { opacity: 0.4; transform: scaleY(0.8);} 50% { opacity: 1; transform: scaleY(1);} }
.dawn-bridge:hover { color: var(--terracotta-d); }
.dawn-bridge:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }

/* the morning scene warms the whole page tone */
.scene--morning { background: radial-gradient(90% 80% at 50% 8%, rgba(247,235,210,0.9), transparent 70%); }

/* ==================== BEAT 8 · the gathering ==================== */
.gathering-head { text-align: center; margin-bottom: clamp(1.6rem, 3vw, 2.4rem); }
.gathering-head .lede { margin: 0.6rem auto 0; }

.turns { margin-bottom: clamp(2rem, 4vw, 3rem); }
.turns__intro {
  text-align: center; max-width: 46rem; margin: 0 auto clamp(1.2rem, 2.5vw, 1.8rem);
  color: var(--ink-soft); font-size: 1.02rem; line-height: 1.55;
}
.turns__row {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.8rem, 1.8vw, 1.3rem);
}
/* a "turn toward you" — a face that turns to meet your gaze on hover */
.turn {
  position: relative;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 0.5rem;
  padding: 1.3rem 0.8rem 1.1rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.5), rgba(255,255,255,0.14));
  border: 1px solid var(--edge);
  border-radius: 20px;
  cursor: pointer;
  transition: transform 0.5s var(--ease-give), box-shadow 0.5s var(--ease-warm), border-color 0.4s;
}
.turn:hover { transform: translateY(-6px); box-shadow: var(--shadow-warm); border-color: rgba(199,122,90,0.45); }
.turn:active { transform: translateY(-2px) scale(0.99); }
.turn:focus-visible { outline: none; box-shadow: var(--focus), var(--shadow-warm); }

.turn__face {
  width: 3.6rem; height: 3.6rem; border-radius: 50% 50% 48% 52% / 56% 56% 44% 44%;
  position: relative; overflow: hidden;
  transform: rotate(-8deg);
  transition: transform 0.6s var(--ease-give), box-shadow 0.5s var(--ease-warm);
  box-shadow: inset 0 -6px 12px rgba(120,70,45,0.2);
}
.turn:hover .turn__face { transform: rotate(0deg) scale(1.06); box-shadow: inset 0 -6px 12px rgba(120,70,45,0.25), 0 10px 20px -12px rgba(150,80,50,0.5); }
.turn__giver { font-family: var(--serif); font-size: 1.1rem; font-weight: 500; color: var(--ink); }
.turn__gift  { font-size: 0.86rem; color: var(--ink-faint); }

/* distinct warm face palettes per giver */
.turn__face--father  { background: radial-gradient(60% 55% at 45% 38%, var(--skin) 0%, var(--terracotta) 100%); }
.turn__face--toast   { background: radial-gradient(60% 55% at 55% 40%, #EEC9A5 0%, var(--terracotta-d) 100%); }
.turn__face--grandma { background: radial-gradient(60% 55% at 50% 42%, #F0D8C4 0%, var(--sage) 120%); }
.turn__face--room    { background: radial-gradient(70% 60% at 50% 40%, #F2E2CB 0%, var(--sage-d) 130%); }

/* the wandering gathering — a warm cluster, NOT a grid */
.wander { margin-top: 1rem; }
.wander__label { text-align: center; color: var(--ink-faint); font-style: italic; font-family: var(--serif); font-size: 1.05rem; margin-bottom: 1rem; }
.people {
  position: relative;
  height: 34rem;
  width: 100%;
}
.person {
  position: absolute;
  left: var(--px); top: var(--py);
  transform: translate(-50%, -50%) scale(var(--s, 1));
  display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
  background: none; border: none; cursor: pointer;
  padding: 0.6rem;
  transition: transform 0.55s var(--ease-give);
  animation: floatPerson 9s var(--ease-warm) infinite alternate;
  animation-delay: calc(var(--s) * -1.7s);
}
@keyframes floatPerson {
  from { margin-top: -6px; } to { margin-top: 6px; }
}
.person:hover { transform: translate(-50%, -50%) scale(calc(var(--s, 1) * 1.1)); z-index: 5; }
.person:focus-visible { outline: none; }
.person:focus-visible .person__portrait { box-shadow: var(--focus), var(--shadow-warm); }

.person__portrait {
  width: clamp(3.4rem, 7vw, 5rem);
  height: clamp(3.4rem, 7vw, 5rem);
  border-radius: 50% 50% 47% 53% / 57% 57% 43% 43%;
  position: relative; overflow: hidden;
  box-shadow: inset 0 -8px 16px rgba(120,70,45,0.22), var(--shadow-warm);
  transition: box-shadow 0.5s var(--ease-warm), transform 0.5s var(--ease-give);
}
.person:hover .person__portrait { box-shadow: inset 0 -8px 16px rgba(120,70,45,0.25), 0 22px 42px -20px rgba(150,80,50,0.65); }
/* a soft turn toward you */
.person__portrait::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(40% 30% at 50% 34%, rgba(255,240,225,0.5), transparent 60%);
  opacity: 0; transition: opacity 0.5s var(--ease-warm);
}
.person:hover .person__portrait::after { opacity: 1; }

.person__portrait--father  { background: radial-gradient(60% 55% at 44% 38%, var(--skin) 0%, var(--terracotta) 100%); }
.person__portrait--andrei  { background: radial-gradient(60% 55% at 52% 40%, #EFCBA8 0%, var(--terracotta-d) 110%); }
.person__portrait--grandma { background: radial-gradient(60% 55% at 50% 42%, #F1DAC6 0%, var(--sage) 120%); }
.person__portrait--table6  { background: radial-gradient(60% 55% at 55% 38%, #EEC9A5 0%, var(--terracotta) 120%); }
.person__portrait--ioana   { background: radial-gradient(60% 55% at 46% 40%, var(--skin) 0%, var(--sage-d) 130%); }
.person__portrait--room    { background: radial-gradient(70% 60% at 50% 40%, #F2E2CB 0%, var(--sage-d) 130%); }
.person__portrait--anon    { background: radial-gradient(60% 55% at 50% 40%, #E8DCC9 0%, #C9BBA4 120%); filter: saturate(0.7); }

.person__name {
  font-family: var(--serif); font-weight: 500; font-size: 1rem; color: var(--ink);
  /* the name gently SURFACES on touch — attribution foregrounded */
  opacity: 1; transform: none;
  transition: opacity 0.5s var(--ease-warm), transform 0.5s var(--ease-give);
}
.person:hover .person__name, .person:focus-visible .person__name { opacity: 1; transform: translateY(0); }
.person__offering {
  font-size: 0.78rem; color: var(--ink-faint);
  max-height: 2rem; opacity: 1; overflow: hidden;
  transition: max-height 0.5s var(--ease-warm), opacity 0.5s var(--ease-warm);
}
.person:hover .person__offering, .person:focus-visible .person__offering { max-height: 2rem; opacity: 1; }
.person--quiet .person__name { font-style: italic; color: var(--ink-faint); }

/* ==================== BEAT 9 · reliving ========================= */
.scene--relive { background: radial-gradient(80% 70% at 50% 40%, rgba(40,30,22,0.06), transparent 70%); }
.relive {
  margin: auto; width: 100%; max-width: 46rem;
  display: flex; flex-direction: column; align-items: center; gap: 1.6rem;
}
.relive__frame {
  position: relative; width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 26px; overflow: hidden;
  background: linear-gradient(160deg, #2B2118 0%, #3A2A1E 55%, #4A3324 100%);
  box-shadow: var(--shadow-lift);
  border: 1px solid rgba(0,0,0,0.2);
  display: grid; place-items: center;
}
.relive__scene { position: absolute; inset: 0; }
.relive__glow {
  position: absolute; left: 32%; top: 40%; width: 40%; height: 55%;
  background: radial-gradient(circle, rgba(255,206,150,0.5), transparent 65%);
  filter: blur(6px);
  animation: candle 4s var(--ease-warm) infinite alternate;
}
@keyframes candle { from { opacity: 0.55; transform: scale(0.95);} to { opacity: 0.85; transform: scale(1.05);} }
.relive__silhouette { position: absolute; bottom: -6%; border-radius: 44% 44% 0 0; filter: blur(0.6px); }
.relive__silhouette--speaker {
  left: 26%; width: 20%; height: 62%;
  background: linear-gradient(180deg, rgba(60,42,30,0.9), rgba(30,22,16,0.95));
}
.relive__silhouette--you {
  right: 20%; width: 16%; height: 46%; opacity: 0.6;
  background: linear-gradient(180deg, rgba(70,50,36,0.7), rgba(30,22,16,0.85));
}

/* sound bloom — plays alive when reliving */
.relive__sound {
  position: absolute; bottom: 8%; left: 50%; transform: translateX(-50%);
  display: flex; align-items: flex-end; gap: 4px; height: 2.4rem;
  opacity: 0; transition: opacity 0.6s var(--ease-warm);
}
.relive.is-playing .relive__sound { opacity: 0.85; }
.relive__sound span {
  width: 4px; border-radius: 3px;
  background: linear-gradient(var(--skin), var(--terracotta));
  height: 20%;
}
.relive.is-playing .relive__sound span { animation: soundBar 1.1s var(--ease-warm) infinite; }
.relive__sound span:nth-child(1){ animation-delay: 0s; }
.relive__sound span:nth-child(2){ animation-delay: .12s; }
.relive__sound span:nth-child(3){ animation-delay: .24s; }
.relive__sound span:nth-child(4){ animation-delay: .1s; }
.relive__sound span:nth-child(5){ animation-delay: .3s; }
.relive__sound span:nth-child(6){ animation-delay: .18s; }
.relive__sound span:nth-child(7){ animation-delay: .06s; }
@keyframes soundBar { 0%,100% { height: 18%; } 50% { height: 90%; } }

.relive__play {
  position: relative; z-index: 3;
  display: inline-flex; flex-direction: column; align-items: center; gap: 0.6rem;
  background: none; border: none; cursor: pointer;
  transition: transform 0.5s var(--ease-give), opacity 0.5s var(--ease-warm);
}
.relive.is-playing .relive__play { opacity: 0; pointer-events: none; transform: scale(0.9); }
.relive__play-ico {
  width: 4.6rem; height: 4.6rem; border-radius: 50%;
  background: rgba(246,239,225,0.92);
  display: grid; place-items: center;
  box-shadow: 0 14px 40px -12px rgba(0,0,0,0.5);
  transition: transform 0.5s var(--ease-give), box-shadow 0.4s;
}
.relive__play-ico::after {
  content: ""; width: 0; height: 0;
  border-left: 1.3rem solid var(--terracotta-d);
  border-top: 0.85rem solid transparent;
  border-bottom: 0.85rem solid transparent;
  margin-left: 0.35rem;
}
.relive__play:hover .relive__play-ico { transform: scale(1.08); box-shadow: 0 18px 46px -12px rgba(0,0,0,0.55); }
.relive__play:focus-visible { outline: none; }
.relive__play:focus-visible .relive__play-ico { box-shadow: var(--focus), 0 14px 40px -12px rgba(0,0,0,0.5); }
.relive__play-label {
  font-size: 0.76rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(246,239,225,0.85);
}

.relive__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.2rem clamp(1.2rem, 3vw, 2rem) 1.3rem;
  background: linear-gradient(180deg, transparent, rgba(20,14,10,0.82));
  text-align: left;
  transform: translateY(12px); opacity: 0;
  transition: transform 0.7s var(--ease-warm), opacity 0.7s var(--ease-warm);
}
.relive.is-playing .relive__caption { transform: translateY(0); opacity: 1; }
.relive__voice {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.05rem, 2.2vw, 1.4rem); line-height: 1.4;
  color: #F6EFE1; max-width: 34rem;
}
.relive__giver {
  margin-top: 0.7rem;
  font-size: 0.82rem; letter-spacing: 0.06em;
  color: var(--skin);
}
.relive__giver::before { content: "— "; opacity: 0.7; }

.relive__actions { display: flex; }
.relive__back {
  background: none; border: none; cursor: pointer;
  color: var(--ink-faint); font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 1rem 1rem; border-radius: 8px;
}
.relive__back:hover { color: var(--terracotta-d); }
.relive__back:focus-visible { outline: none; box-shadow: var(--focus); }

/* ==================== BEAT 10 · keep, three levels =============== */
.keeps {
  display: grid; grid-template-columns: 1fr;
  gap: clamp(0.8rem, 2vw, 1.3rem);
  width: 100%; max-width: 54rem;
  margin-top: clamp(1.6rem, 3vw, 2.2rem);
}
.keep {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  padding: clamp(1.5rem, 3vw, 2.1rem) 1rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.5), rgba(255,255,255,0.16));
  border: 1px solid var(--edge);
  border-radius: 20px;
  cursor: pointer; text-align: center;
  transition: transform 0.5s var(--ease-give), box-shadow 0.5s var(--ease-warm), border-color 0.4s;
}
.keep:hover { transform: translateY(-5px); box-shadow: var(--shadow-warm); border-color: rgba(199,122,90,0.45); }
.keep:active { transform: translateY(-1px) scale(0.99); }
.keep:focus-visible { outline: none; box-shadow: var(--focus), var(--shadow-warm); }
.keep__name { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; color: var(--ink); }
.keep__hint { font-size: 0.86rem; color: var(--ink-faint); }
.keep--mid { background: linear-gradient(180deg, rgba(199,122,90,0.14), rgba(199,122,90,0.05)); border-color: rgba(199,122,90,0.3); }
.keep__do {
  margin-top: 0.6rem;
  font-size: 0.9rem; font-weight: 500; color: #FBF3EA;
  background: linear-gradient(180deg, var(--terracotta), var(--terracotta-d));
  padding: 0.5rem 1.1rem; border-radius: 999px;
}

/* ==================== BEAT 11 · three years on =================== */
.scene--later { background: radial-gradient(90% 80% at 50% 20%, rgba(154,165,136,0.12), transparent 70%); }
.constellation { position: relative; width: min(30rem, 90%); height: 8rem; margin: 0.5rem auto; }
.c-thread {
  position: absolute; left: 6%; right: 6%; top: 44%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--terracotta), var(--sage), transparent);
  opacity: 0.5;
}
.c-node {
  position: absolute; left: var(--cx); top: var(--cy);
  width: 0.9rem; height: 0.9rem; border-radius: 50%;
  background: radial-gradient(circle, var(--terracotta), var(--terracotta-d));
  box-shadow: 0 0 0 6px rgba(199,122,90,0.12);
  transform: translate(-50%, -50%);
  animation: nodeGlow 4s var(--ease-warm) infinite alternate;
}
.c-node:nth-child(3){ background: radial-gradient(circle, var(--sage), var(--sage-d)); box-shadow: 0 0 0 6px rgba(154,165,136,0.14); animation-delay: .8s; }
.c-node:nth-child(5){ animation-delay: 1.6s; }
.c-node:nth-child(6){ background: radial-gradient(circle, var(--sage), var(--sage-d)); animation-delay: 1.2s; }
@keyframes nodeGlow { from { transform: translate(-50%,-50%) scale(0.85); } to { transform: translate(-50%,-50%) scale(1.1); } }

/* ==================== SIGNATURE · gather-everyone veil ========== */
.gather-veil {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.6rem;
  background: radial-gradient(80% 80% at 50% 45%, #FBF6EC 0%, var(--paper-deep) 100%);
  opacity: 0; pointer-events: none;
  transition: opacity 0.5s var(--ease-warm);
}
.gather-veil.is-on { opacity: 1; pointer-events: all; }
.gather-veil__word {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.3rem, 3vw, 1.9rem); color: var(--ink-soft);
}
.gather-veil__dots { display: flex; gap: 0.7rem; }
/* people arriving into the gathering, one by one */
.gather-veil__dots span {
  width: 1rem; height: 1rem; border-radius: 50% 50% 46% 54% / 58% 58% 42% 42%;
  background: radial-gradient(60% 55% at 50% 40%, var(--skin), var(--terracotta));
  opacity: 0;
  animation: arrive 1.4s var(--ease-give) infinite;
  animation-delay: var(--gd);
}
@keyframes arrive {
  0%   { opacity: 0; transform: translateY(14px) scale(0.4); }
  40%  { opacity: 1; transform: translateY(0) scale(1); }
  80%  { opacity: 1; }
  100% { opacity: 0.15; transform: scale(0.9); }
}

/* ==================== kept toast ================================ */
.kept-toast {
  position: fixed; left: 50%; bottom: calc(2rem + env(safe-area-inset-bottom)); transform: translate(-50%, 20px);
  z-index: 50;
  display: inline-flex; align-items: center; gap: 0.7rem;
  background: var(--ink); color: var(--paper);
  padding: 0.85rem 1.4rem; border-radius: 999px;
  box-shadow: 0 20px 46px -18px rgba(30,20,14,0.7);
  opacity: 0; pointer-events: none;
  transition: opacity 0.5s var(--ease-warm), transform 0.5s var(--ease-give);
  font-size: 0.94rem;
}
.kept-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.kept-toast__mark {
  width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: var(--terracotta); position: relative; flex: none;
}
.kept-toast__mark::after {
  content: ""; position: absolute; left: 34%; top: 22%;
  width: 0.32rem; height: 0.62rem;
  border: 2px solid #FBF3EA; border-top: none; border-left: none;
  transform: rotate(40deg);
}

/* ==================== handheld-first: desktop is an enhancement ===== */
/* The base rules above are authored for the phone (Handheld First).
   Wider, mouse-driven screens layer their multi-column enhancement on top. */
@media (min-width: 721px) {
  .gifts      { grid-template-columns: repeat(3, 1fr); }
  .turns__row { grid-template-columns: repeat(4, 1fr); }
  .keeps      { grid-template-columns: repeat(3, 1fr); }
  .people     { height: clamp(19rem, 42vw, 27rem); }
}

/* Attribution is FOUNDATIONAL: on touch (no hover) name + offering are present
   by default; on a hover-capable pointer they keep the gentle reveal-on-approach.
   Same meaning — only the trigger differs. */
@media (hover: hover) and (pointer: fine) {
  .person__name     { opacity: 0.55; transform: translateY(-3px); }
  .person__offering { max-height: 0; opacity: 0; }
}

/* Touch: the gathering already meets your gaze (no hover to wait for), and the
   crowd breathes more gently so each person is a steady one-thumb target. */
@media (hover: none) {
  .turn__face { transform: rotate(0deg) scale(1.03); }
  .person     { animation-name: floatPersonSoft; }
}
@keyframes floatPersonSoft { from { margin-top: -2px; } to { margin-top: 2px; } }

/* keyboard parity for the turn's gaze */
.turn:focus-visible .turn__face {
  transform: rotate(0deg) scale(1.06);
  box-shadow: inset 0 -6px 12px rgba(120,70,45,0.25), 0 10px 20px -12px rgba(150,80,50,0.5);
}

/* the 'kept' scene reserves room so its footnote never sits under the pinned dawn-bridge */
.scene--kept { padding-bottom: calc(5rem + env(safe-area-inset-bottom)); }

/* ==================== reduced motion ============================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.12s !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hearth, .face-dot, .giving-card, .giving-hand, .warmth-ring span,
  .relive__glow, .c-node, .person, .bridgePulse, .dawn-bridge__line { animation: none !important; }
  .face-dot { opacity: 0.22; }
  .relive.is-playing .relive__sound span { animation: none; height: 55%; }
  .person__name { opacity: 1; transform: none; }
  .person__offering { max-height: 2rem; opacity: 1; }
}
