@font-face {
  font-family: Gelasio;
  src: url("assets/fonts/Gelasio-Regular.ttf") format("truetype");
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Gelasio;
  src: url("assets/fonts/Gelasio-Italic.ttf") format("truetype");
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("assets/fonts/Inter-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("assets/fonts/Inter-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --espresso: #1a100d;
  --paper: #faebd7;
  --soft-paper: #e3ceb5;
  --brass: #e4ab70;
  --brass-ink: #28170f;
  --line: rgb(228 171 112 / 24%);
  --gutter: clamp(24px, 5.2vw, 96px);
  --serif: Gelasio, Georgia, serif;
  --sans: Inter, system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--espresso);
  color: var(--paper);
  font: 400 16px/1.5 var(--sans);
}
body:has(dialog[open]) { overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { font: inherit; }
button:focus-visible, a:focus-visible, [tabindex="-1"]:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 5px;
}
button:focus:not(:focus-visible), [tabindex="-1"]:focus:not(:focus-visible) { outline: none; }
.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: var(--gutter);
  padding: 10px 14px;
  color: var(--brass-ink);
  background: var(--paper);
  transform: translateY(-170%);
}
.skip-link:focus { transform: translateY(0); }
.site-header {
  position: fixed;
  z-index: 3;
  inset: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: max(17px, env(safe-area-inset-top)) var(--gutter) 17px;
  background: linear-gradient(to bottom, rgb(15 9 7 / 84%), rgb(15 9 7 / 0%));
}
.site-header.has-left-story {
  background: rgb(26 16 13 / 94%);
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  font: 400 clamp(17px, 1.8vw, 25px)/1.12 var(--serif);
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark { display: none; object-fit: contain; }
.brand-mark[src] { display: block; }
.wordmark small {
  display: block;
  margin-block-start: 4px;
  color: var(--brass);
  font: 600 9px/1 var(--sans);
  letter-spacing: .24em;
  text-transform: uppercase;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3.1vw, 42px);
}
.header-menu, .play-button {
  font-size: 13px;
  font-weight: 600;
}
.header-menu {
  color: var(--paper);
  text-decoration: none;
}
.header-menu:hover { color: var(--brass); }
.play-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--paper);
  background: rgb(26 16 13 / 70%);
  cursor: pointer;
}
.play-button:hover { border-color: var(--brass); }
.play-icon {
  width: 0;
  height: 0;
  border-block: 5px solid transparent;
  border-inline-start: 8px solid var(--brass);
}
.story {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
}
.story.is-animated {
  height: 610vh;
  height: 610svh;
}
.stage {
  position: sticky;
  top: 0;
  isolation: isolate;
  height: 100vh;
  height: 100svh;
  min-height: 480px;
  overflow: clip;
}
.stage-visual, .stage-poster, .stage-poster img, #sequence-canvas, .stage-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.stage-visual {
  z-index: -1;
  background: radial-gradient(ellipse at 70% 38%, #553426, var(--espresso) 74%);
}
.stage-poster img, #sequence-canvas {
  display: block;
  object-fit: cover;
}
#sequence-canvas:not(.is-ready) { visibility: hidden; }
.stage-shade {
  background:
    linear-gradient(90deg, rgb(16 9 7 / 91%) 0%, rgb(16 9 7 / 62%) 24%, rgb(16 9 7 / 31%) 43%, transparent 64%),
    linear-gradient(0deg, rgb(16 9 7 / 88%), transparent 26%);
}
.stage-content {
  display: flex;
  align-items: center;
  min-height: 100%;
  padding: 84px var(--gutter) 114px;
}
.scene-copy {
  width: min(43vw, 650px);
  color: var(--paper);
  text-shadow: 0 2px 18px rgb(18 9 6 / 52%);
}
.scene-label, .gallery-label {
  margin: 0 0 17px;
  color: var(--brass);
  font-weight: 600;
  font-size: clamp(10px, .95vw, 13px);
  letter-spacing: .15em;
  text-transform: uppercase;
}
.scene-title {
  margin: 0;
  font: 400 clamp(56px, 7.9vw, 122px)/.93 var(--serif);
  letter-spacing: -.066em;
  text-wrap: balance;
}
.scene-title span, .scene-title em { display: block; }
.scene-title em { color: var(--brass); }
.scene-copy[data-kind="product"] .scene-title {
  font-size: clamp(42px, 5vw, 79px);
  letter-spacing: -.052em;
  line-height: 1;
}
.scene-copy[data-kind="outro"] .scene-title {
  font-size: clamp(48px, 5.6vw, 90px);
  letter-spacing: -.052em;
}
.scene-description {
  max-width: 27em;
  margin: 25px 0 0;
  color: var(--soft-paper);
  font-size: clamp(14px, 1.22vw, 18px);
  text-wrap: pretty;
}
.scene-description:empty { display: none; }
.scene-action {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  width: fit-content;
  min-height: 46px;
  margin-top: 24px;
  padding: 10px 15px;
  border: 1px solid var(--brass);
  border-radius: 2px;
  background: var(--brass);
  color: var(--brass-ink);
  font-size: 13px;
  font-weight: 600;
  text-shadow: none;
  text-decoration: none;
}
.scene-action:hover { background: var(--paper); border-color: var(--paper); }
.down-arrow { font-size: 18px; line-height: 1; }
.stage-controls {
  position: absolute;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  bottom: max(22px, env(safe-area-inset-bottom));
  left: var(--gutter);
  right: var(--gutter);
}
.scene-progress {
  width: min(36vw, 390px);
  padding-bottom: 6px;
}
.progress-track {
  height: 2px;
  background: rgb(244 215 185 / 28%);
  margin-bottom: 9px;
}
.progress-fill {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--brass);
  transform-origin: left;
  transform: scaleX(0);
}
.scene-indicator {
  display: block;
  color: var(--soft-paper);
  font-size: 11px;
  letter-spacing: .07em;
}
.scene-navigation { position: relative; }
.chapter-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 42px;
  padding: 6px 12px;
  color: var(--paper);
  background: rgb(26 16 13 / 89%);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.chapter-toggle:hover { border-color: var(--brass); }
.chevron {
  width: 7px;
  height: 7px;
  border-top: 1px solid var(--brass);
  border-left: 1px solid var(--brass);
  transform: translateY(2px) rotate(45deg);
}
.chapter-toggle[aria-expanded="true"] .chevron { transform: translateY(-2px) rotate(225deg); }
.chapter-panel {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: calc(100% + 9px);
  width: min(285px, calc(100vw - var(--gutter) * 2));
  max-height: min(54svh, 430px);
  overflow-y: auto;
  padding: 7px;
  border: 1px solid var(--line);
  background: #20130f;
  box-shadow: 0 14px 50px rgb(9 5 4 / 48%);
}
.chapter-panel ol { margin: 0; padding: 0; list-style: none; }
.chapter-panel a {
  display: block;
  min-height: 35px;
  padding: 8px 11px;
  border-inline-start: 2px solid transparent;
  color: var(--soft-paper);
  font-size: 13px;
  text-decoration: none;
}
.chapter-panel a:is(:hover, [aria-current="location"]) {
  color: var(--paper);
  border-inline-start-color: var(--brass);
  background: rgb(228 171 112 / 12%);
}
.scene-anchors { position: absolute; inset: 0; pointer-events: none; }
.scene-anchor { position: absolute; inset-inline-start: 0; width: 1px; height: 1px; }
.menu-gallery {
  scroll-margin-top: 74px;
  width: 100%;
  min-height: 50vh;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 50% 0, #322018, transparent 50%),
    #1a100d;
  padding: clamp(55px, 8.3vw, 126px) var(--gutter) 32px;
}
.gallery-heading, .gallery-grid, .gallery-footer { max-width: 1480px; margin-inline: auto; }
.gallery-heading { margin-bottom: clamp(24px, 4.2vw, 54px); }
.gallery-label { margin-bottom: 12px; }
.gallery-heading h2 {
  margin: 0;
  font: 400 clamp(47px, 7.5vw, 112px)/.98 var(--serif);
  letter-spacing: -.058em;
}
.gallery-heading h2 em { color: var(--brass); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 28px); }
.gallery-card {
  min-width: 0;
  scroll-margin-top: 85px;
  border: 1px solid var(--line);
  background: #241610;
}
.gallery-photo {
  margin: 0;
  overflow: hidden;
  background: #352218;
  aspect-ratio: 4 / 4.7;
}
.gallery-photo img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.gallery-card h3 {
  margin: 0;
  padding: clamp(12px, 1.5vw, 22px);
  color: var(--paper);
  font: 400 clamp(16px, 2vw, 29px)/1.13 var(--serif);
  text-wrap: balance;
}
.gallery-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
  padding-top: 18px;
  margin-top: 40px;
  border-top: 1px solid var(--line);
}
.gallery-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px clamp(18px, 3vw, 35px);
}
.gallery-links a, .back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.gallery-links span, .back-to-top span { color: var(--brass); }
.gallery-links a:hover, .back-to-top:hover { color: var(--brass); }
.video-dialog {
  width: min(92vw, 495px);
  max-height: 94svh;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #21140f;
  color: var(--paper);
}
.video-dialog::backdrop { background: rgb(8 5 4 / 81%); backdrop-filter: blur(5px); }
.video-shell header { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px 8px 17px; }
.video-shell h2 { margin: 0; font: 400 22px/1.1 var(--serif); }
.close-video {
  border: 1px solid var(--line);
  border-radius: 2px;
  min-width: 35px;
  padding: 0;
  color: var(--paper);
  background: transparent;
  font-size: 25px;
  cursor: pointer;
}
.close-video:hover { border-color: var(--brass); }
#promo-video {
  display: block;
  width: 100%;
  max-height: 80svh;
  background: #0f0907;
}
@media (max-width: 700px), (max-aspect-ratio: 1/1) {
  :root { --gutter: clamp(17px, 5vw, 30px); }
  .site-header { padding-block-end: 12px; }
  .brand-mark { width: 28px; height: 28px; }
  .wordmark { gap: 6px; }
  .wordmark small { font-size: 8px; }
  .header-actions { gap: 11px; }
  .header-menu, .play-button { font-size: 11px; }
  .play-button { min-height: 37px; padding-inline: 7px; gap: 6px; }
  .play-icon { border-block-width: 4px; border-inline-start-width: 6px; }
  .story.is-animated { height: 660vh; height: 660svh; }
  .stage-poster img, #sequence-canvas { object-position: center 39%; }
  .stage-content { align-items: flex-end; padding-top: 72px; padding-bottom: 90px; }
  .scene-copy { width: min(100%, 420px); }
  .scene-label { margin-bottom: 9px; }
  .scene-title { font-size: clamp(49px, 12vw, 74px); }
  .scene-title span, .scene-title em { display: inline; }
  .scene-title em::before { content: " "; }
  .scene-copy[data-kind="product"] .scene-title { font-size: clamp(35px, 8.6vw, 55px); }
  .scene-copy[data-kind="outro"] .scene-title { font-size: clamp(39px, 9.3vw, 61px); }
  .scene-description { margin-top: 12px; font-size: 13px; line-height: 1.38; }
  .scene-action { margin-top: 13px; min-height: 40px; padding: 6px 11px; gap: 15px; font-size: 12px; }
  .stage-shade {
    background: linear-gradient(0deg, rgb(18 10 8 / 98%) 0%, rgb(18 10 8 / 95%) 14%, rgb(18 10 8 / 77%) 29%, transparent 54%);
  }
  .stage-controls { bottom: max(17px, env(safe-area-inset-bottom)); }
  .scene-progress { width: min(48vw, 225px); }
  .chapter-toggle { min-height: 37px; font-size: 12px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-heading h2 { font-size: clamp(41px, 10vw, 66px); }
}
@media (max-width: 350px) {
  .header-actions { gap: 8px; }
  .header-menu { font-size: 10px; }
  .wordmark { font-size: 15px; }
  .brand-mark { width: 24px; height: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .story.is-animated { height: auto; }
  .stage { position: relative; }
  #sequence-canvas, .stage-controls { display: none !important; }
}
