@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #15120f;
  --ink-soft: #221e19;
  --paper: #e8e8e5;
  --paper-text: #191714;
  --paper-mute: #57534c;
  --ink-text: #ece9e3;
  --ink-mute: #9a948a;
  --sage: #4a5e45;
  --sage-light: #a9b9a3;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --pad: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.65, 0, .25, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--paper-text);
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--paper); color: var(--paper-text);
  padding: 12px 16px; font: 500 16px/1 var(--sans);
}
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.label, .tag {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  line-height: 1.2;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  color: var(--ink-text);
  background: var(--ink);
  isolation: isolate;
  overflow: hidden;
}
.hero-media, .hero-media picture { position: absolute; inset: 0; z-index: -1; }
.hero-poster, .hero-film {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-film { opacity: 0; transition: opacity 1.2s ease; }
.hero-film.is-playing { opacity: 1; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 50%, rgba(21,18,15,.62), rgba(21,18,15,.25) 70%),
    linear-gradient(to bottom, rgba(21,18,15,.55), rgba(21,18,15,0) 22%, rgba(21,18,15,0) 70%, rgba(21,18,15,.7));
}
.topbar {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px var(--pad) 0;
}
.tag { color: var(--ink-text); opacity: .86; white-space: nowrap; }
.tag .short { display: none; }
.tag.link {
  display: inline-flex; align-items: center; gap: .5em;
  min-height: 44px; text-decoration: none;
}
.tag.link:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }

.hero-mark {
  align-self: center; justify-self: center;
  display: grid; justify-items: center; gap: clamp(18px, 2.4vw, 30px);
  padding: 0 var(--pad);
  text-align: center;
}
.hero-mark h1 { margin: 0; line-height: 0; }
.wordmark {
  width: clamp(240px, 72vw, 724px);   /* never wider than the asset's native 724px */
  height: auto;
}
.hero-line {
  font-family: var(--sans);
  font-size: 16px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-text);
  opacity: .9;
  text-wrap: balance;
}

.motion-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; min-width: 44px;
  padding: 0 16px 0 14px;
  border: 1px solid rgba(236,233,227,.45);
  border-radius: 999px;
  background: rgba(21,18,15,.35);
  color: var(--ink-text);
  font: 500 16px/1 var(--sans);
  letter-spacing: .04em;
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.motion-toggle:hover { border-color: var(--ink-text); }
.hero .motion-toggle { justify-self: end; margin: 0 var(--pad) clamp(18px, 3vw, 32px); }
.mt-icon { width: 12px; height: 14px; position: relative; flex: none; }
.mt-icon::before, .mt-icon::after {
  content: ""; position: absolute; top: 0; width: 4px; height: 14px; background: currentColor; border-radius: 1px;
}
.mt-icon::before { left: 0; }
.mt-icon::after { right: 0; }
.motion-toggle[aria-pressed="true"] .mt-icon::before {
  width: 0; height: 0; background: none; border-radius: 0;
  border-left: 12px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent;
}
.motion-toggle[aria-pressed="true"] .mt-icon::after { display: none; }

/* ---------- Beat ---------- */
.beat {
  padding: clamp(88px, 13vw, 200px) var(--pad) clamp(80px, 11vw, 168px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: clamp(22px, 3vw, 40px);
}
.beat > * { grid-column: 2 / -2; }
.beat .label { color: var(--paper-mute); }
.statement {
  font-size: clamp(34px, 5.6vw, 86px);
  line-height: 1.06;
  letter-spacing: -.012em;
  max-width: 15.5ch;
  text-wrap: balance;
}
.accent { color: var(--sage); }
.sub {
  grid-column: 7 / -2;
  max-width: 30ch;
  font-size: clamp(18px, 1.5vw, 22px);
  color: var(--paper-mute);
  line-height: 1.45;
}

/* ---------- Stage: /Roast, Pause, Visit/ ---------- */
.stage {
  position: relative;
  background: var(--ink);
  color: var(--ink-text);
  padding: clamp(64px, 9vw, 128px) var(--pad) clamp(64px, 9vw, 120px);
}
.scene-line {
  display: flex; flex-wrap: nowrap; align-items: baseline; justify-content: center;
  font-size: clamp(30px, 8.2vw, 120px);
  line-height: 1;
  letter-spacing: -.01em;
  white-space: nowrap;
  margin: 0 auto clamp(40px, 6vw, 88px);
}
.punct { color: var(--ink-mute); opacity: .7; }
.scene-line .punct:not(:first-child):not(:last-child) { margin-right: .32em; }
.scene-tab {
  appearance: none; border: 0; background: none; padding: .08em .02em .14em; margin: 0;
  font: inherit; letter-spacing: inherit; color: var(--ink-mute);
  min-height: 44px; cursor: pointer;
  transition: color .5s ease;
  position: relative;
}
.scene-tab:hover { color: #c9c4bb; }
.scene-tab[aria-selected="true"] { color: var(--ink-text); }
.scene-tab::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--sage-light);
  transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease);
}
.scene-tab[aria-selected="true"]::after { transform: scaleX(1); }

.scenes { display: grid; max-width: 1240px; margin: 0 auto; }
.scene {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  column-gap: clamp(32px, 6vw, 96px);
  align-items: end;
  visibility: hidden;
  transition: visibility 0s linear .8s;
}
.scene.is-active { visibility: visible; transition: none; z-index: 2; }
.scene:focus-visible { outline-offset: 8px; }

.scene-media {
  grid-column: 2; grid-row: 1;
  position: relative;
  aspect-ratio: 4 / 5;
  width: min(100%, 520px);
  justify-self: end;
  overflow: hidden;
  background: var(--ink-soft);
  /* the slash wipe: a "/" edge, taken from the wordmark's own strokes */
  --from: polygon(122% 0, 122% 0, 100% 100%, 100% 100%);
  clip-path: var(--from);
  transition: clip-path .85s var(--ease);
}
.scene.from-left .scene-media { --from: polygon(0 0, 0 0, -22% 100%, -22% 100%); }
.scene.is-active .scene-media { clip-path: polygon(-22% 0, 122% 0, 100% 100%, -44% 100%); }
.scene.leaving .scene-media { clip-path: polygon(-22% 0, 122% 0, 100% 100%, -44% 100%); transition: none; }
.scene.leaving .scene-media img { transform: scale(1); transition: none; }
.scene.no-anim .scene-media, .scene.no-anim .scene-text, .scene.no-anim .scene-media img { transition: none !important; }

.scene-media img, .scene-media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.scene-media img { transform: scale(1.06); transition: transform 1.4s var(--ease); }
.scene.is-active .scene-media img { transform: scale(1); }
.scene-media video { opacity: 0; transition: opacity .6s ease; }
.scene-media video.is-playing { opacity: 1; }

.scene-text {
  grid-column: 1; grid-row: 1;
  display: grid; gap: 20px; align-content: end;
  padding-bottom: 8px;
  opacity: 0; transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
.scene.is-active .scene-text { opacity: 1; transform: none; transition: opacity .7s ease .25s, transform .7s var(--ease) .25s; }
.scene-text .label { color: var(--sage-light); }
.scene-copy { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.22; max-width: 18ch; text-wrap: pretty; }
.branches { display: grid; gap: 2px; font-size: 20px; color: var(--ink-text); }
.branches li { padding: 6px 0; border-top: 1px solid rgba(236,233,227,.16); }
.branches li:last-child { border-bottom: 1px solid rgba(236,233,227,.16); }

.text-link {
  display: inline-flex; align-items: center; gap: .45em; min-height: 44px;
  font-family: var(--sans); font-size: 16px; letter-spacing: .03em;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px;
  justify-self: start;
}
.text-link:hover { text-decoration-thickness: 2px; }

.motion-toggle--stage { position: absolute; right: var(--pad); top: clamp(16px, 2.4vw, 28px); }

/* ---------- Take home ---------- */
.home {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px; row-gap: 32px;
  align-items: end;
  padding: clamp(80px, 11vw, 168px) var(--pad) clamp(72px, 9vw, 128px);
}
.home-photo { grid-column: 2 / span 6; margin: 0; }
.home-photo img { width: 100%; max-width: 622px; height: auto; }
.home-text { grid-column: 9 / -1; display: grid; gap: 14px; }
.home-text h2 { margin: 0; font-weight: 500; font-size: clamp(30px, 3.2vw, 46px); line-height: 1.08; max-width: 12ch; }
.home-text p { color: var(--paper-mute); }
.links { display: grid; gap: 0; margin-top: 6px; }

/* ---------- Footer ---------- */
.foot {
  margin: 0 var(--pad);
  padding: 28px 0 36px;
  border-top: 1px solid rgba(25,23,20,.18);
  display: flex; align-items: center; gap: 24px 40px; flex-wrap: wrap;
}
.foot-mark { width: 150px; height: auto; flex: none; }
.foot p { font-family: var(--sans); font-size: 16px; line-height: 1.5; color: var(--paper-mute); max-width: 72ch; }

/* ---------- Smaller screens ---------- */
@media (max-width: 860px) {
  .beat > *, .sub { grid-column: 1 / -1; }
  .sub { margin-top: 8px; }
  .scene { grid-template-columns: 1fr; row-gap: 28px; align-items: start; }
  .scene-media { grid-column: 1; grid-row: 1; width: 100%; justify-self: stretch; }
  .scene-text { grid-column: 1; grid-row: 2; }
  .scene-copy { max-width: 22ch; }
  .motion-toggle--stage { position: static; margin-top: 28px; }
  .home-photo, .home-text { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .tag .long { display: none; }
  .tag .short { display: inline; }
  .tag { text-transform: none; letter-spacing: .06em; }
  .tag:first-child { text-transform: uppercase; letter-spacing: .16em; }
}
@media (max-width: 420px) {
  .scene-line { font-size: clamp(26px, 8.6vw, 40px); }
  .scene-line .punct:not(:first-child):not(:last-child) { margin-right: .24em; }
  .label, .tag { letter-spacing: .14em; }
  .hero-line { font-size: 16px; letter-spacing: .16em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; animation: none !important; }
}
/* Preview typography and responsive rhythm after font-license substitution. */
.statement{font-family:var(--serif);max-width:22ch;font-weight:500}
.sub,.home-text p{font-family:var(--sans);font-size:18px;line-height:1.55;max-width:36ch}
.scene{display:none}
.scene.is-active,.scene.leaving{display:grid}
.scene-copy{font-size:clamp(28px,2.6vw,38px);max-width:25ch}
.home-text h2{font-size:clamp(34px,3.2vw,46px);max-width:16ch}
@media(max-width:860px){.statement{max-width:22ch}.scene-copy{max-width:26ch}.beat{padding-top:72px;padding-bottom:72px}.stage{padding-top:56px;padding-bottom:40px}.scene-text{padding-bottom:0}.scene-line{margin-bottom:30px}.home{padding-top:72px;padding-bottom:56px}}
