@font-face {
  font-family: "Barlow Condensed";
  src: url("../assets/fonts/barlow-condensed-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("../assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #1a120f;
  --cream: #f5e2c1;
  --red: #ef422a;
  --gold: #fbab59;
  --muted: #d6bca6;
  --display: "Barlow Condensed", Impact, sans-serif;
  --body: Inter, system-ui, sans-serif;
  --gutter: clamp(1.2rem, 6.1vw, 6rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--cream); font: 1rem/1.6 var(--body); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: .88; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 5px; }

.section-shell { width: min(100% - 2 * var(--gutter), 90rem); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus { position: fixed; top: .75rem; left: .75rem; z-index: 10; padding: .6rem; background: var(--cream); color: var(--ink); }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  min-height: 3rem;
  padding: .64rem 1.16rem;
  border: 1px solid transparent;
  border-radius: .25rem;
  font-size: .875rem;
  font-weight: 750;
  line-height: 1.25;
  text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s;
}
.button-red { background: var(--red); color: #200c07; }
.button-red:hover { background: var(--gold); }
.button-dark { background: var(--ink); color: var(--cream); }
.button-dark:hover { background: #381e14; }

.site-header { position: relative; z-index: 2; border-bottom: 1px solid #f5e2c126; background: #1a120f; }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; min-height: 5rem; }
.wordmark { display: inline-grid; justify-items: start; width: fit-content; gap: .33rem; font: 800 2.6rem/.75 var(--display); letter-spacing: -.035em; text-decoration: none; }
.wordmark span { font: 750 .59rem/1.25 var(--body); letter-spacing: .13em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 3rem); }
.site-nav a { text-decoration: none; font-size: .875rem; color: var(--muted); padding: .5rem 0; }
.site-nav a:hover { color: var(--cream); }
.header-cta { justify-self: end; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: radial-gradient(ellipse at 74% 52%, #3c2115 0%, #1a120f 67%);
}
.hero-shell { position: relative; display: flex; align-items: center; min-height: clamp(39rem, calc(100svh - 5rem), 56rem); padding-block: 4.5rem 7rem; }
.hero-copy { position: relative; z-index: 1; width: fit-content; }
.hero-location { display: block; margin-bottom: 1rem; color: var(--gold); font-size: .74rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 {
  font-size: clamp(6rem, 11vw, 12rem);
  letter-spacing: -.023em;
  text-shadow: 0 .035em .28em #130b08b0;
}
.hero-copy p { max-width: 25ch; margin: 1.7rem 0 1.35rem; font-size: clamp(1rem, 1.45vw, 1.18rem); line-height: 1.5; color: var(--muted); }
.hero-media {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(69%, 90rem);
  mask-image: radial-gradient(ellipse 76% 72% at 56% 54%, black 49%, transparent 100%),
    linear-gradient(to right, transparent, #000 13%);
  mask-composite: intersect;
  pointer-events: none;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 56%; }
.hero-bottom {
  position: absolute;
  inset: auto 0 1.35rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f5e2c13b;
  padding-top: 1rem;
  color: var(--cream);
  font-size: .875rem;
}
.scroll-link { display: inline-flex; align-items: center; gap: .66rem; text-decoration: none; }
.scroll-link:hover { text-decoration: underline; text-underline-offset: .25em; }
.scroll-icon { display: inline-grid; place-items: center; width: 1.02rem; height: 1.45rem; border: 1px solid var(--gold); border-radius: 1rem; }
.scroll-icon::after { content: ""; display: block; width: 2px; height: .36rem; border-radius: 1rem; background: var(--gold); }
.hero-caption { font-weight: 700; }

.anatomy { background: #201510; border-top: 1px solid #f5e2c11f; }
.anatomy-stage {
  min-height: min(53rem, 100svh);
  display: grid;
  grid-template-columns: minmax(16rem, .72fr) minmax(0, 1.28fr);
  align-items: center;
  column-gap: clamp(1rem, 4vw, 5rem);
  padding-block: 3rem;
}
.anatomy-copy { position: relative; z-index: 1; }
.anatomy h2 { font-size: clamp(3.35rem, 5.65vw, 6.4rem); letter-spacing: -.02em; }
.anatomy-copy > p { color: var(--muted); max-width: 32ch; margin-block: 1rem 1.65rem; }
.anatomy-motion-copy, .anatomy.is-3d .anatomy-static-copy { display: none; }
.anatomy.is-3d .anatomy-motion-copy { display: block; }
.animation-toggle { margin-bottom: 1rem; border-color: #f5e2c145; }
.ingredient-list { list-style: none; margin: 0; padding: 0; max-width: 25rem; }
.ingredient-list li { padding: .62rem 0; border-top: 1px solid #f5e2c12b; }
.ingredient-list span { display: block; font-weight: 750; }
.ingredient-list small { color: var(--muted); font-size: .85rem; }
.ingredient-list .is-highlighted span { color: var(--gold); }
.anatomy-media { align-self: center; height: min(68svh, 45rem); position: relative; isolation: isolate; min-height: 24rem; }
.anatomy-halo { position: absolute; inset: -2rem -2rem 0; background: radial-gradient(ellipse at 50% 50%, #a149256d, #56291348 42%, transparent 70%); z-index: -1; }
.anatomy-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mask-image: radial-gradient(ellipse 58% 60% at center, #000 54%, transparent 100%);
}
.anatomy canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; visibility: hidden; }
.anatomy.is-3d canvas { visibility: visible; }
.anatomy.is-3d .anatomy-fallback { visibility: hidden; }
.anatomy-caption {
  position: absolute;
  inset: auto 0 -1.1rem;
  display: none;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 650;
}
.anatomy.is-3d .anatomy-caption { display: flex; }
.scene-meter { display: block; width: min(7.5rem, 30%); height: 2px; background: #f5e2c145; }
.scene-meter > span { display: block; width: 100%; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }

@media (max-width: 900px) {
  .hero-media { width: 73%; }
  .hero-copy p { max-width: 22ch; }
  .anatomy-stage { grid-template-columns: minmax(15rem, .85fr) minmax(0, 1.15fr); column-gap: 1rem; }
}
@media (max-width: 680px) {
  :root { --gutter: 1.15rem; }
  .header-inner { grid-template-columns: auto 1fr; min-height: 4.2rem; gap: .5rem; }
  .wordmark { font-size: 2.25rem; }
  .wordmark span { font-size: .51rem; }
  .site-nav { justify-self: end; gap: .8rem; }
  .site-nav a { font-size: .81rem; white-space: nowrap; }
  .header-cta { display: none; }
  .hero-shell { align-items: flex-start; min-height: clamp(41rem, calc(100svh - 4.2rem), 53rem); padding-top: clamp(1.9rem, 5svh, 3rem); padding-bottom: 4rem; }
  .hero h1 { font-size: clamp(4rem, 15vw, 6.7rem); }
  .hero-copy p { margin-block: .85rem .85rem; }
  .hero-media { inset: 29% 0 2% 0; width: auto; mask-composite: add; mask-image: radial-gradient(ellipse 77% 65% at 52% 56%, #000 52%, transparent 100%); }
  .hero-media img { object-fit: cover; object-position: center 56%; }
  .hero-bottom { bottom: .8rem; gap: .65rem; padding-top: .65rem; font-size: .79rem; }
  .hero-caption { text-align: right; }
  .anatomy-stage { display: flex; flex-direction: column; align-items: stretch; gap: 1rem; min-height: auto; padding-block: 2.35rem; }
  .anatomy h2 { font-size: clamp(3rem, 10vw, 4.55rem); }
  .anatomy-copy > p { margin-block: .7rem 1rem; }
  .anatomy-media { align-self: stretch; height: clamp(17rem, 43svh, 29rem); min-height: 0; }
  .anatomy-halo { inset: 0; }
  .anatomy.is-3d .anatomy-stage { min-height: min(46rem, 100svh); justify-content: center; }
  .anatomy.is-3d .anatomy-caption { bottom: -1.3rem; }
  .anatomy.is-3d .ingredient-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: .65rem; }
  .anatomy.is-3d .ingredient-list li { padding: .3rem 0; }
  .anatomy.is-3d .ingredient-list span { font-size: .8rem; }
  .anatomy.is-3d .ingredient-list small { display: none; }
  .anatomy.is-3d .animation-toggle { margin-bottom: .5rem; }
}
@media (max-width: 410px) {
  .site-header .wordmark { font-size: 1.93rem; white-space: nowrap; }
  .site-header .wordmark span { font-size: .45rem; letter-spacing: .08em; }
  .site-nav { gap: .55rem; }
  .site-nav a { font-size: .75rem; }
}
@media (max-width: 350px) {
  .header-inner { grid-template-columns: 1fr; gap: .25rem; padding-top: .65rem; }
  .site-nav { justify-self: stretch; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
