/* Sunday's Supper — /welcome · v4 "Bright & Cozy"
   Structure copied from Lando Norris (name intro, marquee, statement acts,
   stats, gallery) + Polarsteps (pinned phone walkthrough as the core) —
   painted entirely in the warm brand: cream canvas, forest display type,
   terracotta accent, navy script. No dark acts. Engine: welcome.js. */

@font-face {
  font-family: "Vintage Goods";
  src: url("VintageGoods.otf") format("opentype"),
       url("VintageGoods.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

:root {
  --cream: #F5F1DF;
  --cream-2: #EEE7CC;
  --cream-3: #FBF8EA;
  --peach: #F2D8B5;
  --forest: #2D3F1F;
  --forest-2: #1F2D14;
  --forest-soft: #3F5A2B;
  --terra: #C4623A;
  --terra-deep: #9C4A24;
  --terra-soft: #D88A66;
  --cocoa: #3A2A1E;
  --cocoa-soft: #6B5A4C;
  --sage: #A8B58A;
  --navy: #142844;
  --rule: rgba(58, 42, 30, 0.18);
  --rule-2: rgba(58, 42, 30, 0.10);
  --paper-glass: rgba(251, 248, 234, 0.82);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-script: "Vintage Goods", "Snell Roundhand", cursive;

  --ease-primary: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-cinema: cubic-bezier(0.65, 0, 0.35, 1);

  --maxw: 1240px;
  --nav-h: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--cream); }
html.js { scroll-behavior: auto; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--cocoa);
  line-height: 1.6;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  background-image:
    radial-gradient(circle at 12% 22%, rgba(45,63,31,0.025) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 60%, rgba(58,42,30,0.03) 0 1px, transparent 2px),
    radial-gradient(circle at 40% 85%, rgba(196,98,58,0.025) 0 1px, transparent 2px);
  background-size: 220px 220px, 280px 280px, 320px 320px;
}

::selection { background: var(--terra); color: var(--cream-3); }

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; padding: 0; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--forest);
  font-weight: 900;
  text-transform: none;
  letter-spacing: -0.02em;
  line-height: 1.0;
  margin: 0;
  font-variation-settings: "SOFT" 0, "opsz" 144;
}
h2 { font-size: clamp(38px, 5.4vw, 82px); }
h3 { font-size: clamp(23px, 2vw, 30px); letter-spacing: -0.01em; }

.script {
  font-family: var(--font-script);
  color: var(--terra);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1;
}
h1 .script, h2 .script { font-size: 0.78em; vertical-align: 0.05em; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terra-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: 0.7; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
section { padding: 110px 0; position: relative; }
.section-head { max-width: 880px; margin-bottom: 64px; }
.section-head .eyebrow { margin-bottom: 20px; }

/* ---------- masked line reveals (descender-safe) ---------- */
.masked { margin-top: 0; }
.line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.line-script { padding-bottom: 0.36em; margin-bottom: -0.3em; }
.line-inner { display: inline-block; will-change: transform; }
html.js .line-inner { transform: translateY(115%); }
html.js.reduce .line-inner { transform: none; }

html.js [data-reveal] { opacity: 0; transform: translateY(28px); }
html.js.reduce [data-reveal] { opacity: 1; transform: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease-primary), background 0.2s ease, color 0.2s ease,
              box-shadow 0.25s var(--ease-primary), border-color 0.2s ease;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}
.btn:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }
.btn-primary {
  background: var(--terra);
  color: var(--cream-3);
  box-shadow: 0 10px 30px -12px rgba(196, 98, 58, 0.7);
}
.btn-primary:hover { background: #B25532; transform: translateY(-3px); box-shadow: 0 16px 38px -14px rgba(196, 98, 58, 0.8); }
.btn-primary:active { transform: translateY(0) scale(0.97); }
.btn-ghost { background: transparent; color: var(--forest); border-color: var(--rule); }
.btn-ghost:hover { background: rgba(45,63,31,0.06); border-color: rgba(45,63,31,0.4); transform: translateY(-2px); }
.btn-ghost:active { transform: translateY(0) scale(0.97); }
.btn-sm { padding: 10px 17px; font-size: 14px; }
.btn-lg { padding: 17px 28px; font-size: 16px; }
.btn.is-disabled { opacity: 0.55; cursor: default; }
.btn.is-disabled:hover { transform: none; background: transparent; }
.mag { display: inline-block; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--cream-3);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 9px 15px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cocoa);
  box-shadow: 0 12px 26px -14px rgba(58,42,30,0.5);
}
.cdot { width: 7px; height: 7px; border-radius: 50%; background: var(--terra); display: inline-block; }

.from-tag { font-family: var(--font-script); color: var(--navy); font-size: 18px; line-height: 1; }
.from-tag small {
  font-family: var(--font-sans); font-size: 10px; color: var(--cocoa-soft);
  letter-spacing: 0.1em; text-transform: uppercase; margin-right: 4px; font-weight: 500;
}

/* ---------- grain + progress + cursor ---------- */
.grain { position: fixed; inset: -60%; z-index: 80; pointer-events: none; opacity: 0.05; }
.grain::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.23 0 0 0 0 0.16 0 0 0 0 0.12 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 7s steps(6) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); } 16% { transform: translate(-4%, 3%); }
  33% { transform: translate(3%, -5%); } 50% { transform: translate(-5%, -2%); }
  66% { transform: translate(4%, 4%); } 83% { transform: translate(-2%, 5%); }
  100% { transform: translate(0, 0); }
}

.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 90; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: var(--terra); transform-origin: 0 50%; transform: scaleX(0); }

/* (custom cursor removed — the native pointer is the only pointer) */

/* ---------- preloader ---------- */
.preloader { position: fixed; inset: 0; z-index: 200; background: var(--cream); display: grid; place-items: center; }
html:not(.js) .preloader, html.reduce .preloader, html.revisit .preloader { display: none; }
.preloader-inner { text-align: center; }
.preloader-pot { position: relative; width: 88px; margin: 0 auto 6px; }
.preloader-word {
  font-family: var(--font-script);
  font-size: clamp(38px, 6vw, 56px);
  color: var(--navy);
  line-height: 1.1;
  overflow: hidden;
  padding-bottom: 0.32em;
  margin-bottom: -0.12em;
}
.preloader-word span { display: inline-block; transform: translateY(115%); }
.preloader-line { width: 180px; height: 2px; background: var(--rule-2); margin: 18px auto 12px; border-radius: 2px; overflow: hidden; }
.preloader-line i { display: block; height: 100%; background: var(--terra); transform-origin: 0 50%; transform: scaleX(0); }
.preloader-note { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cocoa-soft); }
.preloader.is-done { pointer-events: none; }

.steam {
  position: absolute; bottom: 78%; left: 50%;
  width: 8px; height: 34px;
  border-radius: 8px;
  background: linear-gradient(to top, rgba(58,42,30,0.18), rgba(58,42,30,0));
  filter: blur(3px);
  transform-origin: 50% 100%;
  animation: steam-rise 3.2s ease-in-out infinite;
  opacity: 0;
}
.steam-1 { margin-left: -16px; animation-delay: 0s; }
.steam-2 { margin-left: -3px; height: 44px; animation-delay: 1.1s; }
.steam-3 { margin-left: 11px; animation-delay: 2s; }
@keyframes steam-rise {
  0% { opacity: 0; transform: translateY(6px) scaleY(0.6) rotate(0deg); }
  30% { opacity: 0.8; }
  100% { opacity: 0; transform: translateY(-26px) scaleY(1.25) rotate(6deg); }
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  transition: transform 0.5s var(--ease-primary), background 0.3s ease, box-shadow 0.3s ease;
  background: transparent;
}
.nav.is-scrolled {
  background: var(--paper-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--rule-2);
}
.nav.is-hidden { transform: translateY(-110%); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-pot { width: 40px; height: 40px; object-fit: contain; }
.brand-word {
  font-family: var(--font-script);
  font-size: 27px;
  color: var(--navy);
  line-height: 1;
  transform: translateY(2px);
}
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cocoa); opacity: 0.8; position: relative;
  transition: color 0.15s, opacity 0.15s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px;
  background: var(--terra); transition: right 0.35s var(--ease-primary);
}
.nav-links a:hover { color: var(--forest); opacity: 1; }
.nav-links a:hover::after { right: 0; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
@media (max-width: 880px) { .nav-links { display: none; } }

/* ---------- ACT I · intro (the name, bright) ---------- */
.intro {
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(var(--nav-h) + 30px) 0 80px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
/* full-bleed hero photo behind the name: warm table scene, washed with
   cream from the top so the giant forest type stays readable, opening up
   toward the bottom where the table itself shows through. */
.intro-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.intro-bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 72%;
  will-change: transform;
}
.intro-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      rgba(245,241,223,0.97) 0%,
      rgba(245,241,223,0.92) 26%,
      rgba(245,241,223,0.78) 46%,
      rgba(245,241,223,0.42) 68%,
      rgba(245,241,223,0.05) 100%),
    radial-gradient(120% 60% at 50% 30%, rgba(245,241,223,0.55) 0%, transparent 70%);
}
.intro-inner { position: relative; z-index: 2; max-width: 1100px; padding: 0 24px; }
/* soft cream backing behind the hero copy so CTAs + trust bar stay readable
   over the photo, while the table shows clean at the edges */
.intro-inner::before {
  content: ""; position: absolute; inset: -8% -14%; z-index: -1;
  background: radial-gradient(58% 60% at 50% 58%, rgba(245,241,223,0.9) 0%, rgba(245,241,223,0.55) 55%, transparent 78%);
  pointer-events: none;
}
.intro .btn-ghost { background: rgba(251,248,234,0.72); border-color: rgba(58,42,30,0.28); }
.intro .trust-bar { color: var(--cocoa); }
.intro-name {
  font-size: clamp(72px, 13.5vw, 205px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin-top: 26px;
}
.intro-dot { font-style: normal; color: var(--terra); }
.intro-script {
  font-size: clamp(26px, 3.4vw, 44px);
  color: var(--navy);
  margin: 26px 0 0;
  padding-bottom: 0.3em;
  line-height: 1.2;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; justify-content: center; }
.trust-bar { margin-top: 28px; display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; font-size: 13.5px; color: var(--cocoa-soft); }
.trust-bar span { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 4px; height: 4px; border-radius: 50%; background: var(--rule); }

/* floating keepsakes around the name (cozy) */
.float { position: absolute; z-index: 0; will-change: transform; width: max-content; }
.float-lasagna { top: 14%; left: max(-40px, 2vw); }
.float-page47 { bottom: 12%; right: max(-30px, 3vw); }
.float-pot { bottom: 10%; left: 6vw; }
@media (max-width: 880px) { .float-lasagna, .float-page47, .float-pot { display: none; } }
.pot-wrap { position: relative; }
.pot-wrap img { filter: drop-shadow(0 14px 20px rgba(58,42,30,0.25)); }
.recipe-card-bg {
  width: 220px; height: 278px;
  background: var(--cream-3);
  border: 1px solid var(--rule);
  border-radius: 6px;
  rotate: -7deg;
  padding: 18px 16px;
  box-shadow: 0 20px 40px -22px rgba(58,42,30,0.45);
}
.recipe-card-bg .stamp { font-family: var(--font-script); color: var(--navy); font-size: 26px; margin-bottom: 10px; line-height: 1.1; padding-bottom: 6px; }
.recipe-card-bg .lines { display: grid; gap: 8px; }
.recipe-card-bg .lines span { height: 1px; background: var(--rule); }
.recipe-card-bg .lines span:nth-child(2) { width: 88%; }
.recipe-card-bg .lines span:nth-child(3) { width: 76%; }
.recipe-card-bg .lines span:nth-child(4) { width: 92%; }
.recipe-card-bg .lines span:nth-child(5) { width: 70%; }
.recipe-card-bg-2 {
  width: 186px; height: 128px;
  background: var(--cream-2);
  border: 1px solid var(--rule);
  border-radius: 6px;
  rotate: 8deg;
  box-shadow: 0 20px 40px -22px rgba(58,42,30,0.45);
  display: grid; place-items: center;
  color: var(--navy);
  font-family: var(--font-script);
  font-size: 30px;
  line-height: 1;
  text-align: center;
}
.recipe-card-bg-2 small {
  display: block; font-family: var(--font-sans); font-size: 11px; letter-spacing: 0.15em;
  color: var(--cocoa-soft); text-transform: uppercase; margin-top: 6px;
}

/* PiP frames — little windows into the kitchen */
.pip {
  margin: 0;
  background: var(--cream-3);
  border: 1px solid var(--rule-2);
  padding: 10px 10px 30px;
  border-radius: 4px;
  box-shadow: 0 22px 44px -22px rgba(58,42,30,0.5);
  width: 250px;
}
.pip video, .pip img { border-radius: 2px; width: 100%; height: auto; display: block; }
.pip figcaption {
  font-family: var(--font-script); color: var(--cocoa); font-size: 20px;
  text-align: center; margin-top: 8px; line-height: 1;
}
.float-video { top: 16%; right: 3vw; rotate: 3deg; }
.pip-table {
  position: absolute; left: 4vw; top: 16%;
  rotate: -4deg; z-index: 1; width: 280px;
}
@media (max-width: 1100px) { .pip-table { display: none; } }

.hero-scrollcue {
  position: absolute; left: 50%; bottom: 22px; translate: -50% 0;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--cocoa-soft);
  z-index: 2;
}
.hero-scrollcue span { width: 1px; height: 34px; background: var(--rule); position: relative; overflow: hidden; }
.hero-scrollcue span::after {
  content: ""; position: absolute; left: 0; top: -50%; width: 100%; height: 50%;
  background: var(--terra); animation: cue-drop 2.2s var(--ease-cinema) infinite;
}
@keyframes cue-drop { 0% { top: -50%; } 60%, 100% { top: 110%; } }

/* ---------- name marquee ---------- */
.marquee { overflow: hidden; padding: 42px 0; border-top: 1px solid var(--rule-2); border-bottom: 1px solid var(--rule-2); background: var(--cream-2); }
.marquee-track { display: flex; width: max-content; animation: marquee-slide 34s linear infinite; }
.marquee-row { display: flex; align-items: center; flex-shrink: 0; }
.marquee-row span { display: inline-flex; align-items: center; }
.marquee-row b {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(54px, 6.8vw, 100px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(45, 63, 31, 0.55);
  padding: 0 26px;
  white-space: nowrap;
}
@supports not (-webkit-text-stroke: 1px black) {
  .marquee-row b { color: rgba(45, 63, 31, 0.55); }
}
.marquee-row em {
  font-style: normal; font-family: var(--font-script);
  font-size: clamp(36px, 4.6vw, 62px);
  color: var(--terra); white-space: nowrap; line-height: 1.3;
  padding: 0 26px 0.1em;
}
.marquee-row i { color: var(--terra); font-style: normal; font-size: 22px; }
@keyframes marquee-slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
html.page-hidden .marquee-track, html.reduce .marquee-track { animation-play-state: paused; }

/* ---------- ACT II · the walkthrough (Polarsteps) ---------- */
.story { padding-bottom: 0; background: var(--cream); color: var(--cocoa); }
.story-head { margin-bottom: 24px; }
.story-track { position: relative; }
.story-pin {
  height: 100vh; height: 100dvh;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.story-stage { position: relative; z-index: 1; will-change: transform; }
.story-phone { width: min(300px, 78vw); }

.phone {
  position: relative;
  width: min(320px, 82vw);
  aspect-ratio: 320 / 640;
  background: var(--cocoa);
  border-radius: 44px;
  padding: 10px;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.2),
    0 30px 60px -30px rgba(58,42,30,0.55),
    0 8px 14px -6px rgba(58,42,30,0.3);
  z-index: 2;
  will-change: transform;
}
.tilt { transform-style: preserve-3d; }
.phone-screen {
  width: 100%; height: 100%;
  background: var(--cream);
  border-radius: 34px;
  overflow: hidden;
  position: relative;
  display: flex; flex-direction: column;
  container-type: inline-size;
  color: var(--cocoa);
  font-size: 17px;
  line-height: 1.55;
}
.notch { position: absolute; top: 18px; left: 50%; translate: -50% 0; width: 100px; height: 24px; border-radius: 14px; background: var(--cocoa); z-index: 3; }
.app-eyebrow { font-size: 10px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--terra); margin-bottom: 6px; }
.greet { font-family: var(--font-script); font-size: 15cqw; color: var(--navy); line-height: 1.15; margin-bottom: 4px; padding-bottom: 0.15em; }
.week { display: flex; gap: 6px; margin: 12px 0 14px; }
.day { flex: 1; text-align: center; padding: 8px 0; border-radius: 10px; font-size: 11px; color: var(--cocoa-soft); }
.day b { display: block; font-family: var(--font-serif); font-size: 14px; color: var(--cocoa); font-weight: 500; }
.day.today { background: var(--forest); color: var(--cream-3); }
.day.today b { color: var(--cream-3); }
.recipe-tile {
  background: var(--cream-3);
  border: 1px solid var(--rule-2);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 10px;
}
.recipe-tile .thumb {
  width: 46px; height: 46px; border-radius: 10px;
  background: linear-gradient(135deg, var(--terra) 0%, var(--terra-soft) 100%);
  display: grid; place-items: center;
  color: var(--cream-3); flex-shrink: 0;
}
.recipe-tile .thumb.sage { background: linear-gradient(135deg, var(--forest-soft) 0%, var(--sage) 100%); }
.recipe-tile .meta { flex: 1; min-width: 0; }
.recipe-tile .title { font-family: var(--font-serif); font-weight: 600; color: var(--forest); font-size: 14px; line-height: 1.15; margin-bottom: 3px; }
.mins { font-size: 10px; color: var(--cocoa-soft); font-weight: 500; }

.screen {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 52px 20px 24px;
  opacity: 0;
}
.screen-home { justify-content: flex-start; }
.screen .app-eyebrow { margin-top: -14px; }
.import-row { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }
.import-row span {
  font-size: 10.5px; font-weight: 600; color: var(--cocoa-soft);
  background: var(--cream-2); border: 1px dashed var(--rule);
  border-radius: 999px; padding: 6px 11px;
}
.scan-head { font-family: var(--font-serif); font-size: 15px; color: var(--forest); font-weight: 600; margin-bottom: 14px; text-align: center; }
.scan-card {
  background: var(--cream-3);
  border: 1px dashed var(--rule);
  border-radius: 10px;
  padding: 16px 14px;
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
}
.scan-card .stamp { font-family: var(--font-script); font-size: 30px; color: var(--navy); margin-bottom: 12px; line-height: 1.05; padding-bottom: 0.12em; }
.scan-card .lines { display: grid; gap: 10px; }
.scan-card .lines span { height: 1px; background: var(--rule); display: block; }
.scan-beam {
  position: absolute; left: 6px; right: 6px; top: 8px; height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--terra) 30%, var(--terra) 70%, transparent);
  box-shadow: 0 0 18px 2px rgba(196,98,58,0.55);
  opacity: 0;
}
.pill {
  align-self: center;
  background: var(--forest); color: var(--cream-3);
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  padding: 7px 14px; border-radius: 999px;
  margin-bottom: 12px;
}
.parsed { display: grid; gap: 8px; }
.parsed-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--cream-3); border: 1px solid var(--rule-2);
  border-radius: 10px; padding: 10px 12px;
  font-size: 12.5px; font-weight: 600; color: var(--cocoa);
}
.parsed-row i { font-style: normal; color: var(--forest-soft); font-weight: 700; }
.plan-week { display: flex; gap: 5px; margin-bottom: 16px; }
.pday { flex: 1; text-align: center; padding: 10px 0 8px; border-radius: 10px; position: relative; color: var(--cocoa-soft); font-size: 11px; }
.pday b { display: block; font-family: var(--font-serif); font-size: 14px; color: var(--cocoa); font-weight: 500; margin-bottom: 5px; }
.pday .pdot { width: 6px; height: 6px; border-radius: 50%; background: var(--rule); display: inline-block; }
.pday.tap b { color: var(--forest); }
.tap-ring {
  position: absolute; left: 50%; top: 42%;
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--terra);
  translate: -50% -50%;
  opacity: 0;
  pointer-events: none;
}
.plan-drop { margin-bottom: 14px; }
.plan-drop .recipe-tile { margin-bottom: 0; box-shadow: 0 14px 26px -18px rgba(58,42,30,0.5); }
.plan-fills { display: grid; gap: 8px; }
.plan-fill {
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px; color: var(--cocoa);
  background: var(--cream-3); border: 1px solid var(--rule-2);
  border-radius: 10px; padding: 9px 12px;
}
.plan-fill span { font-family: var(--font-serif); font-weight: 600; color: var(--terra); font-size: 12px; width: 34px; flex-shrink: 0; }
.grocery { display: grid; gap: 9px; margin-bottom: 14px; }
.g {
  display: flex; align-items: center; gap: 10px;
  background: var(--cream-3); border: 1px solid var(--rule-2);
  border-radius: 10px; padding: 10px 12px; font-size: 12.5px;
}
.g .check { width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--rule); flex-shrink: 0; display: grid; place-items: center; color: var(--cream-3); }
.g.have .check { background: var(--forest-soft); border-color: var(--forest-soft); }
.g .name { flex: 1; color: var(--cocoa); font-weight: 500; }
.g .name small { color: var(--cocoa-soft); font-weight: 400; }
.g .price { font-family: var(--font-serif); font-weight: 600; color: var(--forest); font-size: 13px; }
.strike { position: relative; display: inline-block; }
.strike::after {
  content: ""; position: absolute; left: 0; right: 0; top: 52%; height: 1.5px;
  background: var(--cocoa-soft);
  transform: scaleX(0); transform-origin: 0 50%;
}
html.reduce .strike::after, html:not(.js) .strike::after { transform: scaleX(1); }
.total {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--rule); padding-top: 12px;
  font-family: var(--font-serif); font-weight: 600; color: var(--forest); font-size: 16px;
}
.receipt {
  margin-top: auto; margin-bottom: 16px;
  background: var(--cream-3); border: 1px solid var(--rule);
  border-radius: 12px; padding: 12px 14px;
  box-shadow: 0 16px 28px -20px rgba(58,42,30,0.5);
}
.receipt-row {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 6px 0; border-bottom: 1px dashed var(--rule-2);
  font-size: 11.5px; color: var(--cocoa);
}
.receipt-row:last-child { border-bottom: none; }
.receipt-row span { font-weight: 600; }
.receipt-row i { font-style: normal; color: var(--cocoa-soft); }
html.js:not(.reduce) [data-receipt] { opacity: 0; transform: translateY(18px); }

/* real app captures scrolling inside the phone */
.screen-shot { padding: 0; justify-content: flex-start; }
.screen-shot [data-scrollpage] { width: 100%; display: block; will-change: transform; }
.shot-thumb {
  position: absolute; right: 5px; top: 6%;
  width: 3px; height: 56px; border-radius: 3px;
  background: rgba(58, 42, 30, 0.35);
}
.screen-shot .receipt { position: absolute; left: 14px; right: 14px; bottom: 14px; margin: 0; }

.story-copy { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.story-beat {
  position: absolute;
  top: 50%; translate: 0 -50%;
  left: max(28px, calc(50% - 600px));
  width: min(380px, 34vw);
  opacity: 0;
}
.story-beat.right { left: auto; right: max(28px, calc(50% - 600px)); }
.story-beat .eyebrow { margin-bottom: 16px; }
.story-beat h3 { font-size: clamp(34px, 3.4vw, 54px); margin-bottom: 16px; }
.story-beat p { margin: 0; font-size: 16px; color: var(--cocoa); }
.beat-chip { position: absolute; opacity: 0; z-index: 3; width: max-content; }
[data-beatchip="0"] { top: 13%; left: 103%; }
[data-beatchip="1"] { top: 17%; right: 103%; }
[data-beatchip="2"] { bottom: 19%; left: 103%; }
[data-beatchip="3"] { bottom: 14%; right: 103%; }
.skip-chip {
  position: absolute; bottom: 84px; left: 50%; translate: -50% 0;
  z-index: 4;
  font-size: 12.5px; font-weight: 600; color: var(--cocoa-soft);
  background: var(--paper-glass);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 9px 16px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: color 0.2s, border-color 0.2s, transform 0.25s var(--ease-primary);
}
.skip-chip:hover { color: var(--forest); border-color: rgba(45,63,31,0.4); transform: translate(0, -2px); }
.skip-chip:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }

@media (max-width: 860px) {
  .story-beat, .story-beat.right {
    left: 50%; right: auto;
    translate: -50% 0;
    top: max(12px, env(safe-area-inset-top));
    width: min(520px, calc(100vw - 48px));
    text-align: center;
  }
  .story-beat h3 { font-size: 30px; margin-bottom: 8px; }
  .story-beat p { font-size: 13.5px; line-height: 1.45; }
  .story-beat .eyebrow { margin-bottom: 8px; }
  .story-stage { margin-top: 96px; }
  .story-phone { width: min(250px, 66vw); }
  .beat-chip { display: none; }
}

/* finale: warm peach glow (bright, no dark) */
.story-track.is-dark .story-beat h3 { color: var(--forest-2); }
.story-track.is-dark .story-beat p { color: var(--cocoa); }
.story-track.is-dark .story-beat .eyebrow { color: var(--terra-deep); }
.story-track.is-dark .skip-chip { background: rgba(242,216,181,0.75); }
.story-beat, .story-beat h3, .story-beat p, .story-beat .eyebrow { transition: color 0.5s ease; }

html.reduce .story-pin, html:not(.js) .story-pin { height: auto; display: block; padding: 24px 0 64px; }
html.reduce .story-copy, html:not(.js) .story-copy { position: static; pointer-events: auto; }
html.reduce .story-beat, html:not(.js) .story-beat {
  position: static; translate: none; width: auto; max-width: 640px;
  opacity: 1; margin: 0 auto 40px; text-align: left;
}
html.reduce .story-stage, html:not(.js) .story-stage { display: none; }
html.reduce .skip-chip, html:not(.js) .skip-chip { display: none; }
html.reduce .beat-chip, html:not(.js) .beat-chip { display: none; }

/* ---------- ACT III · stats ---------- */
.stats { background: var(--cream-2); border-top: 1px solid var(--rule-2); border-bottom: 1px solid var(--rule-2); padding: 130px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px 40px; }
@media (max-width: 1024px) { .stats-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .stats-grid { grid-template-columns: 1fr; gap: 40px; } }
.stat { border-top: 1px solid var(--rule); padding-top: 22px; }
.stat-n {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(56px, 5.6vw, 92px);
  line-height: 0.95;
  color: var(--terra);
  letter-spacing: -0.02em;
}
.stat-n em { font-style: normal; font-size: 0.45em; color: var(--cocoa-soft); margin-left: 6px; }
.stat-l { margin-top: 14px; font-size: 14.5px; color: var(--cocoa); max-width: 240px; }

/* ---------- ACT IV · the family (bright statement) ---------- */
.family {
  padding: 150px 0;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(900px 600px at 50% 20%, rgba(224,162,78,0.18), transparent 65%),
    var(--cream);
}
.family-inner { position: relative; z-index: 2; }
.family-h2 { font-size: clamp(40px, 5.8vw, 94px); margin-top: 22px; }
.family-lead { max-width: 560px; margin: 26px auto 0; font-size: 17.5px; color: var(--cocoa); }
.family .invite-card { margin: 34px auto 0; text-align: left; }
.family-promise { margin: 34px auto 0; font-size: 15px; color: var(--cocoa); max-width: 480px; }
.family-promise .promise { display: block; margin-top: 10px; }

.invite-card {
  background: var(--cream-3);
  color: var(--cocoa);
  border-radius: 18px;
  padding: 22px;
  max-width: 380px;
  border: 1px solid var(--rule-2);
  box-shadow: 0 22px 48px -22px rgba(58,42,30,0.4);
  position: relative;
}
html.js:not(.reduce) [data-invite-msg] { opacity: 0; transform: translateY(14px) scale(0.96); }
.invite-card .imsg-head {
  font-size: 11px; color: var(--cocoa-soft); letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 14px;
  display: flex; justify-content: space-between;
}
.invite-card .preview { display: flex; gap: 14px; padding: 12px; background: var(--cream); border-radius: 12px; border: 1px solid var(--rule-2); }
.invite-card .preview .thumb {
  width: 56px; height: 56px; border-radius: 12px; background: var(--cream-2);
  border: 1px solid var(--rule-2);
  display: grid; place-items: center; flex-shrink: 0; padding: 6px; overflow: hidden;
}
.invite-card .preview .title { font-family: var(--font-serif); font-weight: 600; color: var(--forest); font-size: 16px; line-height: 1.2; }
.invite-card .preview .sub { font-size: 12.5px; color: var(--cocoa-soft); margin-top: 4px; }
.invite-card .preview .url { font-size: 11px; color: var(--cocoa-soft); margin-top: 6px; letter-spacing: 0.05em; }
.tapback {
  position: absolute; top: 34px; right: 12px;
  background: var(--cream); border: 1px solid var(--rule);
  border-radius: 999px; padding: 4px 8px; font-size: 13px;
  box-shadow: 0 6px 14px -8px rgba(58,42,30,0.4);
}
html.js:not(.reduce) [data-invite-heart] { opacity: 0; transform: scale(0.3); }

.promise {
  color: var(--forest);
  font-size: 26px; display: inline-block; padding: 0 6px 0.12em;
  background-image: linear-gradient(120deg, rgba(216,138,102,0.4), rgba(216,138,102,0.4));
  background-repeat: no-repeat;
  background-size: 0% 58%;
  background-position: 0 84%;
}

/* ---------- ACT V · gallery rail ---------- */
.rail { padding-bottom: 90px; background: var(--cream); }
.rail-head { margin-bottom: 44px; }
.rail-clip { overflow: hidden; }
.rail-row { display: flex; gap: 30px; padding: 20px 6vw 34px; width: max-content; }
.index-card {
  width: 264px; flex-shrink: 0;
  background: var(--cream-3);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 20px 18px 16px;
  margin: 0;
  box-shadow: 0 18px 36px -22px rgba(58,42,30,0.45);
  background-image: repeating-linear-gradient(to bottom, transparent 0 27px, var(--rule-2) 27px 28px);
}
.index-card:nth-child(odd) { rotate: -2.5deg; }
.index-card:nth-child(even) { rotate: 2.5deg; }
.index-card .stamp { font-family: var(--font-script); color: var(--navy); font-size: 27px; line-height: 1.1; margin-bottom: 14px; padding-bottom: 0.14em; }
.index-card .lines { display: grid; gap: 8px; margin-bottom: 40px; }
.index-card .lines span { height: 1px; background: var(--rule); }
.index-card .lines span:nth-child(1) { width: 90%; }
.index-card .lines span:nth-child(2) { width: 72%; }
.index-card .lines span:nth-child(3) { width: 86%; }
.index-card .lines span:nth-child(4) { width: 60%; }
.card-foot { display: flex; justify-content: space-between; align-items: baseline; }
.card-foot .mins { font-size: 11px; color: var(--cocoa-soft); }
.rail-track { width: 220px; height: 2px; background: var(--rule-2); margin: 4px auto 0; border-radius: 2px; position: relative; }
.rail-thumb { position: absolute; left: 0; top: 0; width: 52px; height: 100%; background: var(--terra); border-radius: 2px; }
@media (max-width: 880px) {
  .rail-clip { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .rail-clip::-webkit-scrollbar { display: none; }
  .rail-row { padding: 12px 28px 24px; }
  .rail-track { display: none; }
}

/* ---------- ACT VI · closer (warm, bright) ---------- */
.closer {
  color: var(--forest);
  text-align: center;
  padding: 160px 0 140px;
  overflow: hidden;
  background:
    radial-gradient(1000px 640px at 50% 80%, rgba(224,162,78,0.25), transparent 65%),
    var(--cream-2);
  border-top: 1px solid var(--rule-2);
}
.closer-inner { position: relative; z-index: 2; }
.closer h2 { font-size: clamp(50px, 8vw, 128px); margin-top: 20px; }
.closer .sub { color: var(--cocoa); font-size: 17.5px; max-width: 560px; margin: 26px auto 0; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 38px; }
.micro { margin-top: 22px; font-size: 13px; color: var(--cocoa-soft); }
.signoff {
  margin-top: 72px;
  font-family: var(--font-script);
  font-size: clamp(32px, 3.8vw, 48px);
  color: var(--navy);
  line-height: 1.3;
  padding-bottom: 0.2em;
}
.signoff small { display: block; font-size: 0.6em; color: var(--terra); margin-top: 8px; }
html.js:not(.reduce) [data-signoff] { opacity: 0; transform: translateY(20px); }

/* ---------- footer (one line) ---------- */
.footer { padding: 44px 0 96px; background: var(--cream); border-top: 1px solid var(--rule-2); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer .brand-pot { width: 32px; height: 32px; }
.footer-brand-word { font-size: 22px; }
.footer-links { display: flex; align-items: center; gap: 26px; }
.footer-links a, .totop {
  font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--cocoa-soft); transition: color 0.15s;
}
.footer-links a:hover, .totop:hover { color: var(--forest); }
.totop:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }
.footer-note { font-size: 12.5px; color: var(--cocoa-soft); }

/* ---------- chapter tabs ---------- */
.chapters {
  position: fixed; bottom: 18px; left: 50%; translate: -50% 0;
  z-index: 70;
  display: flex; gap: 4px;
  background: rgba(58, 42, 30, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  padding: 5px;
  opacity: 0; pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s var(--ease-primary);
  max-width: calc(100vw - 24px);
}
.chapters.is-shown { opacity: 1; pointer-events: auto; transform: translateY(0); }
.chapter {
  font-size: 12.5px; font-weight: 600;
  color: rgba(245, 241, 223, 0.7);
  border-radius: 999px;
  padding: 8px 14px;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.chapter:hover { color: var(--cream-3); }
.chapter.on { background: var(--terra); color: var(--cream-3); }
.chapter:focus-visible { outline: 2px solid var(--terra-soft); outline-offset: 2px; }
@media (max-width: 640px) {
  .chapters { bottom: max(10px, env(safe-area-inset-bottom)); }
  .chapter { font-size: 11px; padding: 7px 10px; }
}
html.reduce .chapters { display: none; }

/* NOTE: no content-visibility — placeholder sizing drifts every scroll
   measurement below it (see docs/WELCOME-SPLASH.md). */

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .steam, .hero-scrollcue span::after, .grain::before, .marquee-track { animation: none !important; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}

/* ---------- eye candy: layered acts + living type ---------- */
/* each act slides over the previous like stacked paper sheets */
.marquee { position: relative; z-index: 1; border-radius: 40px 40px 0 0; margin-top: -40px; border-top: 0; }
.story { z-index: 2; border-radius: 44px 44px 0 0; margin-top: -40px; box-shadow: 0 -22px 44px -30px rgba(58,42,30,0.35); }
.stats { z-index: 3; border-radius: 44px 44px 0 0; margin-top: -44px; box-shadow: 0 -22px 44px -30px rgba(58,42,30,0.35); border-top: 0; }
.family { z-index: 4; border-radius: 44px 44px 0 0; margin-top: -44px; box-shadow: 0 -22px 44px -30px rgba(58,42,30,0.35); }
.rail { z-index: 5; border-radius: 44px 44px 0 0; margin-top: -44px; box-shadow: 0 -22px 44px -30px rgba(58,42,30,0.35); }
.closer { z-index: 6; border-radius: 44px 44px 0 0; margin-top: -44px; box-shadow: 0 -22px 44px -30px rgba(58,42,30,0.35); border-top: 0; }
/* the name sits BETWEEN layers: card behind the type, pot + kitchen cam in front */
.intro-inner { z-index: 2; }
.float-lasagna { z-index: 1; top: 12%; left: max(-30px, 3vw); }
.float-page47 { z-index: 1; bottom: 14%; right: max(-20px, 3.5vw); }
.float-pot { z-index: 3; bottom: 13%; left: 13vw; }
.float-video { z-index: 3; top: 20%; right: 6vw; rotate: 3deg; }
/* living type: per-letter spans */
.intro-name .ch { display: inline-block; will-change: transform; }
.marquee-row, .rail-row { will-change: transform; }

/* ---------- full-send eye candy ---------- */
/* periodic shine sweep across primary CTAs */
.btn-primary { overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; top: -40%; bottom: -40%; width: 34%; left: -60%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.38), transparent);
  transform: skewX(-18deg);
  animation: shine 5.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes shine { 0%, 72% { left: -60%; } 88%, 100% { left: 130%; } }
html.page-hidden .btn-primary::after, html.reduce .btn-primary::after { animation: none; }
/* the pinned phone breathes warm light */
html.js:not(.reduce) .story-phone {
  animation: phone-breathe 5s ease-in-out infinite;
}
@keyframes phone-breathe {
  0%, 100% { box-shadow: 0 0 0 1px rgba(0,0,0,0.2), 0 30px 60px -30px rgba(58,42,30,0.55), 0 8px 14px -6px rgba(58,42,30,0.3), 0 0 40px -18px rgba(196,98,58,0.0); }
  50% { box-shadow: 0 0 0 1px rgba(0,0,0,0.2), 0 30px 60px -30px rgba(58,42,30,0.55), 0 8px 14px -6px rgba(58,42,30,0.3), 0 0 64px -12px rgba(196,98,58,0.5); }
}
html.page-hidden .story-phone { animation-play-state: paused; }
/* hover feedback: a plain lift + shadow (replaces the old pointer-tracking tilt) */
@media (hover: hover) and (pointer: fine) {
  .index-card, .invite-card, .pip {
    transition: translate 0.25s var(--ease-primary), box-shadow 0.25s var(--ease-primary);
  }
  .index-card:hover, .invite-card:hover, .pip:hover {
    translate: 0 -6px;
    box-shadow: 0 24px 40px -24px rgba(58,42,30,0.45);
  }
}
/* finale paper confetti */
.confetti-bit {
  position: absolute; top: 46%; left: 50%;
  width: 9px; height: 13px; border-radius: 2px;
  pointer-events: none; opacity: 0; will-change: transform;
  z-index: 0;
}

/* ---------- bespoke photo world ---------- */
.pip-hands { position: absolute; right: 4vw; bottom: 12%; rotate: 3deg; z-index: 1; width: 260px; }
.pip-knead { position: absolute; left: -64px; top: -100px; rotate: -3.5deg; z-index: 1; width: 220px; }
.pip-bag { position: absolute; right: -52px; bottom: 0; rotate: 2.5deg; z-index: 1; width: 170px; }
@media (max-width: 1100px) { .pip-hands, .pip-knead, .pip-bag { display: none; } }
.pip-rail { width: 300px; flex-shrink: 0; align-self: center; rotate: 2deg; }
.closer-bg { position: absolute; inset: 0; z-index: 0; }
.closer-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.closer-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(80% 70% at 50% 45%, rgba(238,231,204,0.75) 0%, rgba(238,231,204,0.94) 100%),
    linear-gradient(180deg, var(--cream) 0%, transparent 20%, transparent 80%, var(--cream) 100%);
}

/* 3D pot stage */
.pot3d-wrap { width: 300px; height: 300px; display: grid; place-items: center; }
.pot3d-wrap img { width: 110px; height: 110px; }
.pot3d-canvas { position: absolute; inset: 0; }
.float-pot { bottom: 6%; left: 8vw; }
.pot3d-wrap .steam { bottom: 62%; z-index: 2; }
