:root {
  --bg: #070605;
  --bg-2: #100e0c;
  --bg-3: #181410;
  --ink: #f4efe6;
  --ink-soft: #c9bfb0;
  --ink-faint: #8a7f72;
  --gold: #e8942a;
  --gold-2: #f0b24a;
  --gold-dim: rgba(232, 148, 42, 0.16);
  --rule: rgba(244, 239, 230, 0.12);
  --receta: #6b4c8a;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --font-mark: "Oswald", Impact, sans-serif;
  --wrap: 1180px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 18px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

html, body { min-height: 100%; min-height: 100dvh; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  background: var(--bg);
  color: var(--ink);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }

img { max-width: 100%; display: block; }
.tile img.cover { background: var(--bg-3); }
.cover-show { object-position: 55% 28%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }

::selection {
  background: var(--gold);
  color: #1a1208;
}

.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 80;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 8px;
  transform: translateY(-140%);
}
.skip:focus { transform: none; }

.wrap {
  width: min(100%, calc(var(--wrap) + 48px));
  margin-inline: auto;
  padding-inline: 24px;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 28px 0;
  background: linear-gradient(to bottom, rgba(7, 6, 5, 0.92), rgba(7, 6, 5, 0.55) 70%, transparent);
  transition: background 0.3s var(--ease);
}
.nav.is-scrolled {
  background: rgba(7, 6, 5, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-height: 44px;
}
.brand .mark {
  width: 36px;
  height: 36px;
  display: block;
}
.wordmark {
  font-family: var(--font-mark);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.15s, border-color 0.15s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--gold-2);
  border-bottom-color: var(--gold);
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  position: relative;
  border-radius: 10px;
  background: rgba(7, 6, 5, 0.4);
  border: 1px solid var(--rule);
}
.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s var(--ease), opacity 0.2s;
}
.menu-btn span { top: 50%; }
.menu-btn span::before { top: -7px; }
.menu-btn span::after { top: 7px; }
.nav.is-open .menu-btn span { background: transparent; }
.nav.is-open .menu-btn span::before { transform: translateY(7px) rotate(45deg); }
.nav.is-open .menu-btn span::after { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  margin-top: calc(var(--nav-h) * -1);
  padding: calc(var(--nav-h) + 2rem) 0 4.5rem;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media img.cover-show { object-position: 78% 28%; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(7, 6, 5, 0.92) 0%, rgba(7, 6, 5, 0.35) 42%, rgba(7, 6, 5, 0.25) 100%),
    radial-gradient(ellipse 70% 50% at 50% 40%, transparent, rgba(7, 6, 5, 0.45));
  z-index: 1;
}
.hero-copy {
  position: relative;
  z-index: 2;
  text-shadow: 0 12px 40px rgba(7, 6, 5, 0.55);
}

/* Show / Film: photo sits beside the type so the subject stays visible */
.hero-split {
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(18rem, 0.82fr) minmax(0, 1.18fr);
  align-items: stretch;
  padding: 0;
}
.hero-split::after { content: none; }
.hero-split .hero-media {
  position: relative;
  inset: auto;
  grid-column: 2;
  grid-row: 1;
  min-height: 100%;
}
.hero-split .hero-copy {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--nav-h) + 3rem) 2.2rem 3.4rem 0;
  background: var(--bg);
  text-shadow: none;
}
.hero-split .hero-media img {
  object-fit: cover;
  object-position: 78% 28%;
}
.hero-split.hero-film .hero-media img {
  object-position: 52% 42%;
}
.eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin: 0 0 1.1rem;
}
h1, h2, .display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin: 0;
}
h1 {
  font-size: clamp(3.1rem, 8vw, 6.4rem);
  max-width: 14ch;
}
h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-2);
}
.lede {
  margin: 1.4rem 0 0;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  color: var(--ink-soft);
  max-width: 36rem;
  line-height: 1.5;
}

.hero-page {
  min-height: 72svh;
  padding-bottom: 3.5rem;
}

/* Sections */
.section {
  padding: 5.5rem 0;
  scroll-margin-top: 5rem;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}
.kicker {
  color: var(--ink-faint);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Work grid */
.work {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  min-height: 82vh;
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 280px;
  text-decoration: none;
  color: var(--ink);
  isolation: isolate;
}
.tile-receta {
  grid-row: 1 / 3;
  min-height: 100%;
  display: block;
}
.tile img.cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.8s var(--ease);
}
.tile:hover img.cover { transform: scale(1.05); }
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(7, 6, 5, 0.92) 0%, rgba(7, 6, 5, 0.2) 55%, rgba(7, 6, 5, 0.08) 100%);
}
.tile-main {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  color: inherit;
}
.tile-body {
  position: relative;
  z-index: 2;
  padding: 1.6rem 1.5rem 1.4rem;
}
.tile-receta .tile-body { padding-bottom: 4.6rem; }
.tile-receta .tile-stores {
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.25rem;
  z-index: 3;
}
.tile h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 500;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.tile p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  max-width: 34ch;
}
.live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 0.55rem;
}
.live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5ad07a;
  box-shadow: 0 0 0 4px rgba(90, 208, 122, 0.18);
}

.tile-stores {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1rem;
}

/* Store badges */
.store-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.store-badge {
  display: inline-flex;
  line-height: 0;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
}
.store-badge img {
  height: 40px;
  width: auto;
}
.store-badge:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

/* Split band */
.band {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  min-height: 70vh;
  background: var(--bg-2);
}
.band-media { min-height: 420px; }
.band-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.band-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 3.5rem;
}
.band-copy h2 {
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  margin-bottom: 1rem;
}
.band-copy p {
  color: var(--ink-soft);
  max-width: 38rem;
  margin: 0 0 1rem;
}
.band-copy p:last-child { margin-bottom: 0; }

/* Interior pages */
.prose {
  max-width: 40rem;
}
.prose p {
  color: var(--ink-soft);
  margin: 0 0 1.1rem;
}
.links a {
  color: var(--gold-2);
  text-decoration: none;
  border-bottom: 1px solid rgba(240, 178, 74, 0.35);
}
.links a:hover { border-bottom-color: var(--gold-2); }

.feature-list {
  display: grid;
  gap: 1.5rem;
  margin: 2.5rem 0 0;
}
.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: center;
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
}
.feature:last-child { border-bottom: 1px solid var(--rule); }
.feature h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin: 0 0 0.4rem;
}
.feature p { margin: 0; color: var(--ink-soft); }
.phone {
  justify-self: center;
  width: min(280px, 100%);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: #1a1220;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.phone img { width: 100%; }

.cta-panel {
  margin-top: 3.5rem;
  padding: 2.2rem;
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse at 0% 0%, rgba(107, 76, 138, 0.35), transparent 55%),
    var(--bg-3);
  border: 1px solid var(--rule);
}
.cta-panel h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 0.6rem;
}
.cta-panel p {
  color: var(--ink-soft);
  margin: 0 0 1.2rem;
}
.web-link {
  display: inline-block;
  margin-top: 0.9rem;
  color: var(--gold-2);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(240, 178, 74, 0.4);
}
.web-link:hover { border-bottom-color: var(--gold-2); }

.stills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 2.4rem 0 0;
}
.stills figure { margin: 0; }
.stills img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 14px;
  background: var(--bg-3);
}
.stills figcaption {
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin-top: 0.45rem;
  letter-spacing: 0.04em;
}

.credits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2rem;
  margin: 2rem 0 0;
}
.credit dt {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 0.2rem;
}
.credit dd { margin: 0; font-size: 1.05rem; }

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.4rem;
  margin-top: 1.4rem;
}
.socials a {
  color: var(--gold-2);
  text-decoration: none;
}

/* Legal */
.legal-wrap {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 2.5rem 0 5rem;
}
.legal-wrap h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  max-width: none;
  margin-bottom: 0.8rem;
}
.legal-wrap h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin: 2.2rem 0 0.6rem;
}
.legal-wrap h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  margin: 1.3rem 0 0.4rem;
}
.legal-wrap p, .legal-wrap li { color: var(--ink-soft); }
.legal-wrap a { color: var(--gold-2); }
.legal-wrap ul { padding-left: 1.2rem; }

/* Footer */
.site-footer {
  padding: 2.4rem 0 2.2rem;
  border-top: 1px solid var(--rule);
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.site-footer .row {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: flex-start;
}
.site-footer a {
  color: var(--gold-2);
  text-decoration: none;
}
.legal-links { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.meta {
  color: var(--ink-faint);
  font-size: 0.8rem;
  margin-top: 0.35rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile img.cover { transition: none; }
}

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(7, 6, 5, 0.97);
    flex-direction: column;
    justify-content: center;
    gap: 1.6rem;
    font-size: 1.4rem;
    font-family: var(--font-display);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
  }
  .nav.is-open .nav-links {
    opacity: 1;
    pointer-events: auto;
  }
  .work {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    min-height: 0;
  }
  .tile-receta { grid-row: auto; min-height: 520px; }
  .band { grid-template-columns: 1fr; }
  .band-copy { padding: 2.4rem 1.4rem 3rem; }
  .feature { grid-template-columns: 1fr; }
  .feature .phone { order: -1; }
  .credits { grid-template-columns: 1fr; }
  .stills { grid-template-columns: 1fr; }
  .stills img { height: 200px; }
  .nav { padding-inline: 16px; }
  .hero, .hero-page { padding-bottom: 3.25rem; }
  .hero-split {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero-split .hero-media {
    grid-column: 1;
    grid-row: 1;
    min-height: 56vh;
    margin-top: var(--nav-h);
  }
  .hero-split .hero-copy {
    grid-column: 1;
    grid-row: 2;
    padding: 1.8rem 0 2.6rem;
  }
  .wrap { padding-inline: 18px; }
  .lede { max-width: none; }
}

@media (max-width: 520px) {
  .tile { min-height: 340px; }
  .tile-receta { min-height: 440px; }
  h1 { font-size: clamp(2.6rem, 12vw, 3.4rem); }
}
