:root {
  --ash: #0a0907;
  --flour: #f0e4ce;
  --tomato: #c9432e;
  --ember: #e68732;
  --basil: #506448;
  --ink: #1c1914;
  --mono: "DM Mono", monospace;
  --serif: "Fraunces", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ash);
  color: var(--flour);
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--ash);
  font-family: var(--mono);
  overflow-x: hidden;
}

body.is-loading {
  height: 100vh;
  overflow: hidden;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(24px, 4vw, 64px);
  background: var(--ash);
  color: var(--flour);
  transition: opacity 0.8s cubic-bezier(0.77, 0, 0.18, 1), visibility 0.8s;
}

.preloader.is-complete {
  opacity: 0;
  visibility: hidden;
}

.preloader__mark {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  font-family: var(--serif);
  font-size: clamp(9rem, 24vw, 24rem);
  font-weight: 500;
  line-height: 0.8;
  color: rgba(240, 228, 206, 0.035);
}

.preloader__readout {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 10px;
  letter-spacing: 0.2em;
}

.preloader__track {
  height: 1px;
  background: rgba(240, 228, 206, 0.16);
}

.preloader__track i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--ember);
  transition: width 0.2s ease;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px 28px;
  color: var(--flour);
  mix-blend-mode: difference;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 0.25s;
}

.site-header.on-light {
  mix-blend-mode: normal;
  color: var(--ash);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand__seal {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}

.header-link {
  justify-self: end;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}

.chapter-readout {
  display: grid;
  grid-template-columns: 24px 120px;
  align-items: center;
  column-gap: 10px;
}

.chapter-readout > i {
  grid-column: 1 / -1;
  height: 1px;
  margin-top: 7px;
  background: rgba(240, 228, 206, 0.25);
}

.chapter-readout b {
  display: block;
  width: 0;
  height: 100%;
  background: currentColor;
}

.film-chapter {
  position: relative;
  height: 300vh;
  background: var(--ash);
}

.film-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--ash);
}

.film-stage canvas,
.mobile-film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.film-stage canvas {
  display: block;
}

.mobile-film {
  display: none;
  object-fit: cover;
}

.film-grade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 9, 7, 0.42), transparent 42%, rgba(10, 9, 7, 0.08)),
    radial-gradient(ellipse at center, transparent 45%, rgba(10, 9, 7, 0.32) 100%);
  pointer-events: none;
}

.film-grade::after {
  content: "";
  position: absolute;
  inset: -40%;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  animation: grain 0.3s steps(2) infinite;
}

@keyframes grain {
  0% { transform: translate3d(-2%, 1%, 0); }
  25% { transform: translate3d(2%, -2%, 0); }
  50% { transform: translate3d(1%, 2%, 0); }
  75% { transform: translate3d(-1%, -1%, 0); }
  100% { transform: translate3d(2%, 1%, 0); }
}

.eyebrow,
.chapter-kicker {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 64px);
  text-align: center;
  pointer-events: none;
}

.hero-copy .eyebrow {
  margin: 0 0 3vh;
}

.hero-word {
  display: flex;
  justify-content: center;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(4.8rem, 15.2vw, 17rem);
  font-variation-settings: "SOFT" 20, "WONK" 1;
  font-weight: 450;
  line-height: 0.74;
  letter-spacing: -0.075em;
}

.hero-word span {
  display: block;
  will-change: opacity, transform;
}

.hero-line {
  align-self: center;
  margin: 4.5vh 0 0;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.3vw, 2.6rem);
  font-style: italic;
  font-variation-settings: "SOFT" 80;
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  translate: -50% 0;
  font-size: 9px;
  letter-spacing: 0.2em;
}

.scroll-cue i {
  position: relative;
  width: 1px;
  height: 42px;
  overflow: hidden;
  background: rgba(240, 228, 206, 0.25);
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ember);
  animation: cue 1.8s cubic-bezier(0.77, 0, 0.18, 1) infinite;
}

@keyframes cue {
  from { transform: translateY(-100%); }
  to { transform: translateY(100%); }
}

.chapter-kicker {
  position: absolute;
  right: 28px;
  bottom: 28px;
}

.temp-gauge {
  position: absolute;
  top: 17vh;
  right: 25px;
  bottom: 16vh;
  display: grid;
  grid-template-columns: auto 1px;
  grid-template-rows: auto 1fr auto;
  gap: 8px 14px;
  align-items: end;
  font-size: 8px;
  letter-spacing: 0.15em;
}

.temp-value {
  grid-column: 1;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 4.6rem);
  font-variant-numeric: tabular-nums;
  line-height: 0.8;
}

.temp-track {
  position: relative;
  grid-column: 2;
  grid-row: 1 / 4;
  width: 1px;
  height: 100%;
  background: rgba(240, 228, 206, 0.26);
}

.temp-track i {
  position: absolute;
  inset: auto 0 0;
  height: 0;
  background: var(--ember);
}

.fire-callouts {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.callout {
  position: absolute;
  display: flex;
  flex-direction: column;
  margin: 0;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.18s linear, transform 0.3s ease-out;
}

.callout::before {
  content: "";
  position: absolute;
  top: 10px;
  right: calc(100% + 14px);
  width: clamp(34px, 8vw, 120px);
  height: 1px;
  background: var(--ember);
  transform-origin: right;
}

.callout b {
  color: var(--ember);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
}

.callout span {
  margin-top: 7px;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
}

.callout:nth-child(1) { top: 24%; left: 18%; }
.callout:nth-child(2) { top: 38%; left: 62%; }
.callout:nth-child(3) { top: 62%; left: 20%; }
.callout:nth-child(4) { top: 72%; left: 67%; }

.return-line {
  position: absolute;
  left: clamp(28px, 8vw, 130px);
  margin: 0;
  font-family: var(--serif);
  opacity: 0;
  transform: translateY(20px);
  will-change: opacity, transform;
}

.return-line--opening {
  top: 22%;
  font-size: clamp(2rem, 4vw, 5rem);
  font-style: italic;
  line-height: 1;
}

.return-line--final {
  bottom: 15%;
  font-family: var(--mono);
  font-size: clamp(0.72rem, 1.1vw, 1rem);
  letter-spacing: 0.2em;
  line-height: 2;
}

.film-handoff {
  position: absolute;
  inset: auto 0 0;
  height: 24vh;
  opacity: 0;
  background: linear-gradient(to bottom, transparent, #16120d);
}

.method,
.pies {
  position: relative;
  z-index: 5;
  color: var(--ink);
  background: var(--flour);
}

.method {
  padding: clamp(540px, 52vw, 680px) clamp(24px, 5vw, 76px) clamp(100px, 13vw, 190px);
  background: linear-gradient(to bottom, #16120d 0, var(--flour) clamp(420px, 42vw, 580px));
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  padding-bottom: clamp(60px, 10vw, 150px);
}

.section-head > p:last-child {
  max-width: 390px;
  justify-self: end;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 3rem);
  font-style: italic;
  line-height: 1.08;
}

.eyebrow--dark {
  color: var(--tomato);
}

.method-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.method article {
  min-height: 300px;
  padding: 22px clamp(16px, 2.6vw, 40px) 0 0;
  border-top: 1px solid rgba(28, 25, 20, 0.32);
}

.method article + article {
  padding-left: clamp(16px, 2.6vw, 40px);
  border-left: 1px solid rgba(28, 25, 20, 0.2);
}

.method article > span {
  font-size: 10px;
}

.method h2 {
  margin: 85px 0 10px;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 6vw, 7rem);
  font-weight: 400;
  letter-spacing: -0.06em;
}

.method article p {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
}

.pies {
  display: grid;
  grid-template-columns: minmax(290px, 0.8fr) 1.4fr;
  gap: clamp(60px, 12vw, 180px);
  padding: clamp(90px, 10vw, 160px) clamp(24px, 5vw, 76px) clamp(120px, 14vw, 230px);
}

.pies__intro h2 {
  margin: 38px 0 30px;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 6vw, 7rem);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.88;
}

.pies__intro > p:last-child {
  max-width: 390px;
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.5;
}

.menu-list {
  align-self: end;
}

.menu-list article {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 20px;
  align-items: start;
  padding: 28px 0;
  border-top: 1px solid rgba(28, 25, 20, 0.3);
}

.menu-list article:last-child {
  border-bottom: 1px solid rgba(28, 25, 20, 0.3);
}

.menu-list span,
.menu-list b {
  padding-top: 8px;
  font-size: 9px;
  font-weight: 400;
}

.menu-list h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 3.8vw, 4.8rem);
  font-weight: 420;
  letter-spacing: -0.05em;
  line-height: 1;
}

.menu-list p {
  margin: 9px 0 0;
  color: rgba(28, 25, 20, 0.68);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.table {
  position: relative;
  min-height: 100vh;
  padding: clamp(100px, 12vw, 190px) clamp(24px, 5vw, 76px) 28px;
  overflow: hidden;
  background: var(--tomato);
  color: var(--flour);
}

.table__flame {
  position: absolute;
  top: -0.25em;
  right: -0.08em;
  color: rgba(10, 9, 7, 0.08);
  font-family: var(--serif);
  font-size: clamp(14rem, 38vw, 42rem);
  font-weight: 500;
  letter-spacing: -0.1em;
  line-height: 0.9;
}

.table > h2 {
  position: relative;
  max-width: 1150px;
  margin: 7vh 0 10vh;
  font-family: var(--serif);
  font-size: clamp(5rem, 12vw, 15rem);
  font-weight: 400;
  letter-spacing: -0.075em;
  line-height: 0.77;
}

.reservation {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: end;
  max-width: 930px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(240, 228, 206, 0.7);
}

.reservation label {
  padding-bottom: 4px;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.reservation input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--flour);
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.5vw, 2.8rem);
}

.reservation input::placeholder {
  color: rgba(240, 228, 206, 0.46);
}

.reservation button {
  border: 0;
  padding: 12px 0;
  background: transparent;
  color: var(--flour);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.reservation button span {
  margin-left: 14px;
  font-size: 1.2rem;
}

.table footer {
  position: absolute;
  right: clamp(24px, 5vw, 76px);
  bottom: 28px;
  left: clamp(24px, 5vw, 76px);
  display: grid;
  grid-template-columns: repeat(4, auto) 1fr;
  gap: 26px;
  align-items: end;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.table footer a {
  position: relative;
}

.table footer small {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  color: rgba(240, 228, 206, 0.58);
  font-size: 6px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.table footer > span {
  justify-self: end;
}

noscript {
  position: fixed;
  inset: auto 20px 20px;
  z-index: 2000;
  padding: 12px;
  background: var(--flour);
  color: var(--ash);
}

@media (max-width: 767px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding: 18px;
  }

  .chapter-readout {
    display: none;
  }

  .film-chapter {
    height: 220vh;
  }

  .film-stage canvas {
    display: none;
  }

  .mobile-film {
    display: block;
  }

  .film-grade {
    background: linear-gradient(90deg, rgba(10, 9, 7, 0.4), transparent 70%);
  }

  .hero-copy {
    padding: 20px;
  }

  .hero-word {
    font-size: 20.3vw;
  }

  .hero-line {
    margin-top: 4vh;
    font-size: 1.35rem;
  }

  .chapter-kicker {
    right: 18px;
    bottom: 20px;
  }

  .temp-gauge {
    top: 20vh;
    right: 16px;
    bottom: 22vh;
  }

  .temp-value {
    font-size: 2rem;
  }

  .callout:nth-child(1) { top: 24%; left: 24%; }
  .callout:nth-child(2) { top: 42%; left: 46%; }
  .callout:nth-child(3) { top: 61%; left: 25%; }
  .callout:nth-child(4) { top: 76%; left: 46%; }
  .callout span { font-size: 0.9rem; }
  .callout::before { width: 26px; }

  .return-line {
    left: 20px;
  }

  .return-line--opening {
    top: 24%;
    font-size: 2.3rem;
  }

  .return-line--final {
    bottom: 18%;
    font-size: 0.65rem;
  }

  .section-head,
  .pies {
    grid-template-columns: 1fr;
  }

  .section-head > p:last-child {
    justify-self: start;
    margin-top: 50px;
  }

  .method-track {
    grid-template-columns: 1fr 1fr;
  }

  .method article {
    min-height: 230px;
  }

  .method article:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .method h2 {
    margin-top: 55px;
    font-size: 3.2rem;
  }

  .pies {
    gap: 70px;
  }

  .menu-list article {
    grid-template-columns: 28px 1fr auto;
    gap: 12px;
  }

  .menu-list h3 {
    font-size: 2.2rem;
  }

  .menu-list p {
    max-width: 230px;
    line-height: 1.5;
  }

  .table {
    min-height: 850px;
  }

  .table > h2 {
    margin: 10vh 0 12vh;
    font-size: 20vw;
  }

  .reservation {
    grid-template-columns: 1fr auto;
  }

  .reservation label {
    grid-column: 1 / -1;
  }

  .table footer {
    grid-template-columns: 1fr 1fr;
    row-gap: 26px;
  }

  .table footer > span {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .film-chapter {
    height: 100vh;
  }

  .film-stage canvas,
  .mobile-film {
    display: none;
  }

  .chapter--assembly .film-stage {
    background: url("./frames/assembly/frame_0075.jpg") center / cover no-repeat;
  }

  .chapter--fire .film-stage {
    background: url("./frames/fire/frame_0075.jpg") center / cover no-repeat;
  }

  .chapter--return .film-stage {
    background: url("./frames/return/frame_0100.jpg") center / cover no-repeat;
  }

  .film-grade::after,
  .scroll-cue i::after {
    animation: none;
  }

  .hero-word span,
  .callout,
  .return-line {
    opacity: 1 !important;
    transform: none !important;
  }
}

.reduced-motion .film-chapter {
  height: 100vh;
}

.reduced-motion .film-stage canvas,
.reduced-motion .mobile-film {
  display: none;
}

.reduced-motion .chapter--assembly .film-stage {
  background: url("./frames/assembly/frame_0075.jpg") center / cover no-repeat;
}

.reduced-motion .chapter--fire .film-stage {
  background: url("./frames/fire/frame_0075.jpg") center / cover no-repeat;
}

.reduced-motion .chapter--return .film-stage {
  background: url("./frames/return/frame_0100.jpg") center / cover no-repeat;
}

.reduced-motion .film-grade::after,
.reduced-motion .scroll-cue i::after {
  animation: none;
}

.reduced-motion .hero-word span,
.reduced-motion .callout,
.reduced-motion .return-line {
  opacity: 1 !important;
  transform: none !important;
}
