html, body { overflow-x: clip; }
/* STORY CHAPTERS: every image and clip is Haven's own (Instagram @haven.bvp).
   Motion is scroll-driven (GSAP + ScrollTrigger + Lenis); every chapter reads fine without it. */

/* "By people": Haven's own reel lines, set huge, with real photos at depth */
.people { position: relative; background: #a7593c url(/assets/tex/limewash-terracotta.webp) repeat; background-size: 1400px 1400px; }
.people-stage { position: relative; padding: clamp(4rem, 9vw, 8rem) var(--gutter); }
.people-lines { display: grid; gap: 1.2rem; }
.pl {
  margin: 0; max-width: 14ch; color: #f4e7cc;
  font-weight: 500; font-variation-settings: "wdth" 106; letter-spacing: -0.03em; line-height: .98;
  font-size: clamp(2.6rem, 1rem + 6.4vw, 7.6rem);
}
.pl em { font-style: normal; color: #ffcf8a; }
.pl-sign { max-width: none; }
.people-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; margin-top: 2.5rem; }
.pc { margin: 0; overflow: hidden; border-radius: 18px; }
.pc-lamps, .pc-share, .pc-pizza { border-radius: 999px 999px 18px 18px; }
.pc img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pc-hero { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.pc-notes { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.pl .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.pl .w > span { display: inline-block; }

/* pinned stage on desktop: lines bottom-left, photos float around them */
.js-story .people-stage.is-pinned { height: 100vh; padding: 0; overflow: hidden; }
.js-story .is-pinned .people-cards { position: absolute; inset: 0; display: block; margin: 0; }
.js-story .is-pinned .pc { position: absolute; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .55); }
.js-story .is-pinned .pc-lamps { right: 7%;  top: 12%; width: 25vw; aspect-ratio: 6 / 5; }
.js-story .is-pinned .pc-sign  { right: 50%; top: 6%;  width: 10vw; aspect-ratio: 4 / 5; }
.js-story .is-pinned .pc-share { right: 33%; top: 9%;  width: 14vw; aspect-ratio: 3 / 4; }
.js-story .is-pinned .pc-notes { right: 6%;  top: 13%; width: 21vw; aspect-ratio: 3 / 4; }
.js-story .is-pinned .pc-pizza { right: 68%; top: 6%;  width: 13vw; aspect-ratio: 3 / 4; }
.js-story .is-pinned .pc-cups  { right: 29%; top: 47%; width: 11vw; aspect-ratio: 4 / 5; }
.js-story .is-pinned .pc-latte { right: 4%;  top: 63%; width: 15vw; aspect-ratio: 4 / 3; }
.js-story .is-pinned .pc-hero  { right: 30%; top: 40%; width: 18vw; aspect-ratio: 16 / 9; z-index: 2; }
.js-story .is-pinned .people-lines { position: absolute; left: var(--gutter); bottom: 11vh; z-index: 3; display: grid; gap: 0; }
.js-story .is-pinned .pl { grid-area: 1 / 1; align-self: end; max-width: 12ch; font-size: clamp(2.6rem, 1rem + 4.6vw, 6.2rem); }
.js-story .is-pinned .pl-sign { max-width: 9ch; }

/* 9 AM */
.morning { position: relative; padding: clamp(4rem, 9vw, 8rem) 0; overflow: hidden; }
.morning .wrap { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1rem, 3vw, 3rem); align-items: end; }
.morning-photo { grid-column: 1 / span 7; margin: 0; overflow: hidden; border-radius: 26px; aspect-ratio: 6 / 5; }
.morning-photo img { width: 100%; height: 118%; object-fit: cover; }
.morning-copy { grid-column: 9 / span 4; padding-bottom: 1rem; }
.clock {
  margin: 0 0 1rem; color: var(--fire-ink); line-height: .8; font-weight: 250;
  font-variation-settings: "wdth" 112; letter-spacing: -0.04em; font-size: clamp(3.6rem, 1.6rem + 5.2vw, 7.2rem);
  font-variant-numeric: tabular-nums;
}
.morning-copy h2 { margin-bottom: 1.2rem; }
@media (max-width: 900px) { .morning-photo, .morning-copy { grid-column: 1 / -1; } }

/* coffee ritual: the clip in an arch at the centre, the step's name set huge and light behind it */
.ritual { position: relative; padding: clamp(4rem, 8vw, 7rem) 0 clamp(2rem, 4vw, 3rem); }
.ritual-stage { position: relative; display: grid; justify-items: center; gap: 1.6rem; padding: 0 var(--gutter); text-align: center; }
.ritual-title { font-weight: 500; font-variation-settings: "wdth" 104; letter-spacing: -0.02em; font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.6rem); }
.ritual-title em { font-style: italic; font-weight: 400; }
.ritual-words { display: none; }
.ritual-media { position: relative; width: min(82vw, 440px); aspect-ratio: 4 / 5; overflow: hidden; border-radius: 999px 999px 28px 28px; background: var(--soot); box-shadow: 0 50px 90px -40px rgba(40, 20, 5, .55); }
.ritual-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s var(--ease-out); }
.ritual-media video.on { opacity: 1; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; max-width: 34rem; }
.step strong { display: block; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; font-size: .82rem; color: var(--fire-ink); margin-bottom: .2rem; }
.step p { margin: 0 auto; font-weight: 300; font-size: clamp(1.1rem, 1rem + .45vw, 1.4rem); line-height: 1.5; color: var(--ink); font-style: italic; }
.ritual-ticks { display: none; }
.ritual-after { display: flex; flex-direction: column; align-items: center; gap: 1.4rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.ritual-after .lines { width: min(100%, 560px); margin: 0; }

/* pinned (desktop): one step on screen at a time */
.js-story .ritual-stage.is-pinned { height: 100vh; display: block; padding: 0; overflow: hidden; }
/* the step word: ink on the wall, cream where it crosses the video (same word, same place, clipped by the arch) */
.is-pinned .ritual-words { display: block; position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; z-index: 1; }
.is-pinned .ritual-words span {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%);
  font-weight: 300; font-variation-settings: "wdth" 125; text-transform: uppercase; letter-spacing: .04em; line-height: 1;
  font-size: clamp(6rem, 1rem + 15vw, 19rem); color: var(--ink); opacity: 0; white-space: nowrap;
}
.ritual-words--in { display: none; }
.is-pinned .ritual-media .ritual-words--in { display: block; left: 50%; top: 50%; z-index: 3; }
.is-pinned .ritual-words--in span { color: #f6ead2; text-shadow: 0 2px 22px rgba(30, 15, 5, .55); }
.is-pinned .ritual-title { position: absolute; left: var(--gutter); top: 104px; text-align: left; z-index: 3; margin: 0; }
.is-pinned .ritual-media { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(28vw, 46vh); z-index: 2; }
.is-pinned .steps { position: absolute; left: 50%; bottom: 3.5vh; transform: translateX(-50%); width: min(90vw, 34rem); display: grid; z-index: 3; }
.is-pinned .step { grid-area: 1 / 1; opacity: 0; transition: opacity .5s var(--ease-out); }
.is-pinned .step.on { opacity: 1; }
.is-pinned .step p { background: rgba(213, 185, 131, .0); }
.is-pinned .ritual-ticks { display: flex; gap: .5rem; position: absolute; right: var(--gutter); top: 112px; z-index: 3; }
.ritual-ticks i { width: 14px; height: 14px; border-radius: 4px; box-shadow: inset 0 0 0 1.5px var(--ink); transition: background .4s; }
.ritual-ticks i.on { background: var(--glaze); box-shadow: 0 0 0 1.5px var(--grout); }

/* 48 hours */
.dough { position: relative; padding: clamp(5rem, 10vw, 9rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; }
.dough .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1rem, 3vw, 2.5rem); align-items: center; }
.dough-a { grid-column: 1 / span 4; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 999px 999px 22px 22px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
.dough-a video { width: 100%; height: 100%; object-fit: cover; }
.dough-copy { grid-column: 5 / span 4; padding: 2rem 0; }
.dough-copy h2 { margin-bottom: 1.2rem; }
.dough-tiles { width: min(200px, 46%); margin-bottom: 1.4rem; }
.dough-b { grid-column: 9 / span 4; margin: 6rem 0 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 22px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
.dough-b img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .dough-a { grid-column: 1 / span 6; } .dough-b { grid-column: 7 / span 6; margin-top: 3rem; }
  .dough-copy { grid-column: 1 / -1; order: 3; }
}

/* the fire */
.fire { position: relative; z-index: 2; }
.fire-stage { position: relative; height: 100vh; overflow: hidden; background: var(--soot); }
.fire-tiles { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fire-mouth { position: absolute; left: 50%; top: 50%; width: min(42vw, 62vh, 540px); aspect-ratio: 4 / 5; transform: translate(-50%, -50%); border-radius: 999px 999px 4px 4px; overflow: hidden; background: var(--soot); box-shadow: 0 0 0 10px var(--tile), 0 0 0 12px var(--grout); }
.fire-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.fire-tiles { transform-origin: 50% 96%; }
.js-story .fire-mouth { opacity: 0; }
.fire-copy { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(2rem, 6vh, 4rem); z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem 2rem; flex-wrap: wrap; }
.count { margin: 0; color: var(--tile); font-weight: 250; font-variation-settings: "wdth" 112; letter-spacing: -0.05em; line-height: .8; font-size: clamp(6rem, 3rem + 11vw, 14rem); font-variant-numeric: tabular-nums; text-shadow: 0 10px 40px rgba(0, 0, 0, .55); }
.count small { font-size: .15em; letter-spacing: 0; margin-left: .3em; font-weight: 700; font-variation-settings: "wdth" 112; }
.fire-copy h2 { color: var(--tile); max-width: 9ch; margin-left: auto; text-align: right; font-size: clamp(2rem, 1.3rem + 2.4vw, 3.6rem); text-shadow: 0 6px 30px rgba(0, 0, 0, .6); }
@media (max-width: 760px) { .fire-copy h2 { text-align: left; margin-left: 0; max-width: none; } }
.no-pin .fire-stage { height: auto; background: var(--soot); padding-bottom: 3rem; }
.no-pin .fire-tiles { position: relative; height: auto; max-height: 70vh; }
.no-pin .fire-mouth { position: relative; left: auto; top: auto; transform: none; margin: -12vh auto 0; }
.no-pin .fire-copy { position: relative; left: auto; right: auto; bottom: auto; margin-top: 2rem; padding: 0 var(--gutter); }

/* on the table: a sideways track */
.table { padding: clamp(4rem, 8vw, 7rem) 0; overflow: hidden; }
.table-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.table-head p { margin: 0; }
.track-nav { display: flex; gap: .5rem; }
.track-nav[hidden] { display: none; }
.track-nav .tilebtn { min-width: 52px; font-size: 1.2rem; }
.track { --edge: calc(max(0px, (100% - var(--max)) / 2) + var(--gutter)); display: flex; gap: clamp(.8rem, 1.6vw, 1.5rem); padding: 0 var(--edge); width: max-content; }
.dish { margin: 0; width: clamp(250px, 27vw, 410px); flex: none; }
.dish img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 22px; }
.dish:nth-child(odd) img { border-radius: 999px 999px 22px 22px; }
.dish figcaption { display: flex; justify-content: space-between; gap: 1rem; padding-top: .8rem; font-weight: 500; font-variation-settings: "wdth" 108; }
.dish figcaption span:last-child { color: var(--text-soft); font-weight: 500; white-space: nowrap; }
.no-pin .table-scroller, .no-pin-track .table-scroller { scroll-padding-inline: calc(max(0px, (100% - var(--max)) / 2) + var(--gutter)); scroll-behavior: smooth; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.no-pin .table-scroller::-webkit-scrollbar, .no-pin-track .table-scroller::-webkit-scrollbar { display: none; }
.no-pin .dish, .no-pin .playlist, .no-pin-track .dish, .no-pin-track .playlist { scroll-snap-align: start; }

@media (max-width: 760px) { .fire-copy { bottom: calc(76px + env(safe-area-inset-bottom)); } .fire-mouth { width: min(70vw, 46vh); top: 40%; } .no-pin .fire-mouth { margin-top: -6vh; } }

/* the rainy-day playlist: Haven's own idea, set as a working player */
.playlist {
  flex: none; width: clamp(250px, 27vw, 410px); aspect-ratio: 4 / 5; border-radius: 22px; padding: clamp(1.2rem, 2vw, 1.8rem);
  background: var(--soot); display: flex; flex-direction: column; justify-content: space-between; gap: 1rem;
  box-shadow: inset 0 0 0 2px var(--rule);
}
.pl-title { font-weight: 450; font-variation-settings: "wdth" 115; font-size: clamp(1.4rem, 1rem + 1vw, 1.9rem); line-height: 1.05; margin: 0; color: var(--tile); max-width: 12ch; }
.pl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.pl-list a {
  display: flex; align-items: baseline; gap: .8rem; padding: .8rem 0; border-bottom: 1px solid var(--rule);
  text-decoration: none; color: var(--tile); font-weight: 450; font-variation-settings: "wdth" 106; line-height: 1.25;
}
.pl-list a:hover { color: var(--fire); }
.pl-list .p { margin-left: auto; font-weight: 700; color: var(--tile); }
.pl-now { margin: 0; font-size: .9rem; color: var(--text-soft); }

[data-drift] { will-change: transform; }

.no-pin .count, .no-pin .fire-copy h2 { text-shadow: none; }
.track-nav svg { width: 20px; height: 20px; }

/* "Step inside": the real arched entrance opens into the dining room */
.inside { position: relative; }
.inside-stage { position: relative; display: grid; gap: 1.2rem; padding: clamp(3rem, 7vw, 6rem) var(--gutter); }
.inside-room, .inside-door { width: 100%; object-fit: cover; }
.inside-door { border-radius: 999px 999px 26px 26px; aspect-ratio: 2 / 3; max-width: 520px; justify-self: center; order: -1; }
.inside-room { border-radius: 26px; aspect-ratio: 3 / 2; }
.inside-shade { display: none; }
.inside-copy h2 { margin-bottom: 1rem; }
.inside-words { list-style: none; margin: 0 0 1rem; padding: 0; }
.inside-words li { font-weight: 400; font-variation-settings: "wdth" 106; letter-spacing: -0.03em; line-height: 1; font-size: clamp(2.6rem, 1rem + 5.4vw, 6.4rem); color: var(--ink); }
.inside-note { max-width: 34ch; color: var(--ink-soft); }
.inside-c { margin: 0; overflow: hidden; border-radius: 999px 999px 22px 22px; }
.inside-c img { width: 100%; height: 100%; object-fit: cover; display: block; }
.inside-stage { grid-template-columns: 1fr 1fr; }
.inside-door, .inside-room, .inside-copy { grid-column: 1 / -1; }
.inside-c { aspect-ratio: 3 / 4; }

.js-story .inside-stage.is-pinned { display: block; height: 100vh; padding: 0; overflow: hidden; }
.is-pinned .inside-room { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; aspect-ratio: auto; border-radius: 0; opacity: 0; }
.is-pinned .inside-door { position: absolute; left: 63%; top: 54%; width: min(30vw, 50vh); height: auto; aspect-ratio: 2 / 3; max-width: none; transform: translate(-50%, -50%); z-index: 2; box-shadow: 0 40px 80px -30px rgba(40, 20, 5, .55); }
.is-pinned .inside-shade { display: block; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 12, 5, .62), rgba(20, 12, 5, .1) 60%); opacity: 0; }
.is-pinned .inside-copy { position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%); z-index: 3; }
.is-pinned .inside-copy h2, .is-pinned .inside-words li, .is-pinned .inside-note { color: #f3e6cc; }
.is-pinned .inside-c { position: absolute; z-index: 3; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .6); }
.is-pinned .inside-c1 { right: 20vw; top: 14vh; width: 16vw; }
.is-pinned .inside-c2 { right: 3vw; top: 30vh; width: 15vw; }
@media (max-width: 760px) { .inside-door { max-width: 78vw; } }

.fire-tiles { object-position: 50% 30%; }

.is-pinned .inside-intro { position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%); z-index: 1; max-width: 9ch; font-weight: 450; font-variation-settings: "wdth" 106; letter-spacing: -0.035em; line-height: .95; font-size: clamp(2.6rem, 1rem + 4.6vw, 6rem); color: var(--ink); margin: 0; }
.inside-intro { margin: 0 0 1rem; font-weight: 450; font-variation-settings: "wdth" 106; font-size: clamp(2.2rem, 1rem + 4vw, 4rem); line-height: .95; letter-spacing: -0.03em; }

@media (max-width: 760px) { .people-lines { order: -1; } .people-stage { display: flex; flex-direction: column; } .people-cards { margin-top: 2rem; } }

@media (max-width: 760px) { .step { opacity: .45; transition: opacity .5s; } .step.on { opacity: 1; } }

/* the oven dive: whole oven first, then the camera goes through the mouth onto the pizza */
.fire-stage { background: #0b0805; }
.fire-stage .fire-tiles { position: absolute; inset: auto; left: 50%; top: 50%; width: auto; height: 100%; aspect-ratio: 3 / 4; max-width: none; object-fit: cover; transform-origin: 47.5% 73%; will-change: transform; }
.fire-stage .fire-tiles { -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
@media (max-width: 760px) { .fire-stage .fire-tiles { -webkit-mask-image: none; mask-image: none; } }
.fire-full { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; z-index: 2; }
.fire-intro { position: absolute; left: var(--gutter); top: 110px; z-index: 3; margin: 0; color: #f3e6cc; font-weight: 300; font-style: italic; letter-spacing: -0.01em; font-size: clamp(1.6rem, 1rem + 2vw, 3rem); }
.fire-copy { z-index: 3; }
.no-pin .fire-full { display: none; }
.no-pin .fire-stage .fire-tiles { position: relative; left: auto; top: auto; transform: none; height: auto; width: min(100%, 720px); margin: 0 auto; display: block; }
.no-pin .fire-intro { position: relative; left: auto; top: auto; padding: 2rem var(--gutter) 0; }

/* ===== phones: the same pinned story, laid out for a tall narrow screen ===== */
@media (max-width: 760px) {
  /* step inside */
  .is-pinned .inside-intro { top: 92px; transform: none; max-width: 12ch; font-size: clamp(2rem, 9vw, 2.6rem); }
  .is-pinned .inside-door { left: 50%; top: 60%; width: min(72vw, 46vh); }
  .is-pinned .inside-copy { top: auto; bottom: 86px; transform: none; right: var(--gutter); }
  .is-pinned .inside-words li { font-size: clamp(2.4rem, 11vw, 3.2rem); }
  .is-pinned .inside-note { font-size: .95rem; }
  .is-pinned .inside-c1 { right: auto; left: 52vw; top: 96px; width: 30vw; }
  .is-pinned .inside-c2 { right: var(--gutter); top: 30vh; width: 26vw; }
  /* by people */
  .js-story .is-pinned .people-lines { bottom: 84px; right: var(--gutter); }
  .js-story .is-pinned .pl { font-size: clamp(2.2rem, 10.5vw, 3rem); max-width: 11ch; }
  .js-story .is-pinned .pc-lamps { right: 8%;  top: 11%; width: 60vw; }
  .js-story .is-pinned .pc-sign  { right: 64%; top: 10%; width: 26vw; }
  .js-story .is-pinned .pc-share { right: 6%;  top: 10%; width: 36vw; }
  .js-story .is-pinned .pc-notes { right: 46%; top: 22%; width: 44vw; }
  .js-story .is-pinned .pc-pizza { right: 58%; top: 9%;  width: 30vw; }
  .js-story .is-pinned .pc-cups  { right: 8%;  top: 35%; width: 30vw; }
  .js-story .is-pinned .pc-latte { right: 52%; top: 40%; width: 36vw; }
  .js-story .is-pinned .pc-hero  { right: 12%; top: 26%; width: 50vw; }
  /* coffee */
  .is-pinned .ritual-title { top: 84px; font-size: 1.5rem; }
  .is-pinned .ritual-ticks { top: 92px; }
  .is-pinned .ritual-media { width: min(70vw, 44vh); top: 47%; }
  .is-pinned .ritual-words { top: 47%; }
  .is-pinned .ritual-words span { font-size: 21vw; letter-spacing: 0; }
  .is-pinned .steps { bottom: 82px; }
  .is-pinned .step p { font-size: 1.02rem; }
  /* dishes slide sideways while pinned */
  .dish, .playlist { width: 72vw; }
}

@media (max-width: 760px) { .fire-stage .fire-tiles { width: 100vw; height: auto; } }
