/* ==========================================================================
   Brasa Basque — main stylesheet
   Mobile-first. Desktop reference: 1440px artboard.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --c-bg: #04090f;
  --c-bg-raised: #070d14;
  --c-panel: #0a1119;
  --c-gold: #cfa072;
  --c-gold-light: #e2bb90;
  --c-gold-deep: #a77a4f;
  --c-text: #f3f1ee;
  --c-text-soft: #c9ccd1;
  --c-text-muted: #aab0b7;
  --c-rule: rgba(255, 255, 255, 0.09);

  --f-display: "Italiana", "Didot", "Bodoni 72", "Times New Roman", serif;
  --f-script: "Italianno", "Snell Roundhand", "Apple Chancery", cursive;
  --f-body: "Quicksand", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  /* Fluid type scale (mobile → 1440 desktop) */
  --fs-h1: clamp(2.5rem, 1.7rem + 3vw, 4rem);
  --fs-h2: clamp(2.25rem, 1.55rem + 2.4vw, 3.4rem);
  --fs-lead: clamp(1.1875rem, 1rem + 0.6vw, 1.5rem);
  --fs-body: clamp(0.9375rem, 0.9rem + 0.12vw, 1rem);
  --fs-small: 0.875rem;

  --pad-x: clamp(1.25rem, 6.667vw, 6rem);
  --max-w: 90rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.9s;

  --header-h: 5.5rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text-soft);
  font-family: var(--f-body);
  font-weight: 300;
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, p, figure, blockquote, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
address { font-style: normal; }

:focus-visible {
  outline: 1px solid var(--c-gold);
  outline-offset: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 0.75rem; left: 0.75rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--c-gold);
  color: var(--c-bg);
  transform: translateY(-200%);
  transition: transform 0.3s var(--ease-out);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* ---------- Type ---------- */
.h2,
.hero__title {
  font-family: var(--f-display);
  font-weight: 400;
  color: var(--c-text);
  line-height: 1.02;
  letter-spacing: -0.005em;
}
.h2 { font-size: var(--fs-h2); }

.script {
  font-family: var(--f-script);
  font-style: normal; /* Italianno is already cursive */
  font-weight: 400;
  font-size: 1.24em;
  line-height: 0.8;
  letter-spacing: 0;
  padding-inline: 0.04em 0.08em;
  background: linear-gradient(95deg, #6d6a68 0%, #b89573 38%, var(--c-gold-light) 70%, #d9a979 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Links ---------- */
.link-line {
  position: relative;
  padding-block: 0.3rem;
}
.link-line::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--c-gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out);
}
.link-line:hover::after,
.link-line:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.link-line:hover { color: var(--c-text); }

.link-under {
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(255, 255, 255, 0.45);
  transition: color 0.3s, text-decoration-color 0.3s;
}
.link-under:hover { color: var(--c-gold-light); text-decoration-color: var(--c-gold); }

/* ---------- Button ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.125rem;
  padding: 0.85rem 2.4rem;
  overflow: hidden;
  isolation: isolate;
  background: var(--c-gold);
  color: var(--c-bg);
  font-family: var(--f-display);
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: transform 0.4s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, var(--c-gold-light), #f0d2ae 55%, var(--c-gold-light));
  transform: translateX(-101%);
  transition: transform 0.6s var(--ease-out);
}
.btn::after { /* soft sheen */
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -40%;
  width: 30%;
  z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  opacity: 0;
}
.btn:hover,
.btn:focus-visible {
  box-shadow: 0 14px 34px -14px rgba(207, 160, 114, 0.6);
}
.btn:hover::before,
.btn:focus-visible::before { transform: translateX(0); }
.btn:hover::after { animation: sheen 0.9s var(--ease-out) 0.1s; }
.btn:active { transform: scale(0.98); }

@keyframes sheen {
  0% { left: -40%; opacity: 0; }
  30% { opacity: 1; }
  100% { left: 120%; opacity: 0; }
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: transform 0.5s var(--ease-out);
}
/* The frosted bar lives on a pseudo-element: a backdrop-filter on the header
   itself would trap the fixed mobile menu inside the header's box. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(4, 9, 15, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--c-rule);
  opacity: 0;
  transition: opacity 0.5s;
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-hidden { transform: translateY(-100%); }

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.site-nav,
.site-header__contact { display: none; }

.site-header__logo {
  display: block;
  width: 7rem;
  transition: opacity 0.3s;
}
.site-header__logo:hover { opacity: 0.8; }

.site-nav__list,
.site-header__contact {
  gap: 1.25rem;
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--c-text-soft);
  font-weight: 400;
}

/* Mobile menu toggle */
.menu-toggle {
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  z-index: 2;
}
.menu-toggle__bar {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26px;
  height: 1px;
  margin-left: -13px;
  background: var(--c-text);
  transition: transform 0.5s var(--ease-out), width 0.4s var(--ease-out);
}
/* bars are the 2nd and 3rd children (the 1st is the hidden label) */
.menu-toggle__bar:nth-child(2) { transform: translateY(-4px); }
.menu-toggle__bar:nth-child(3) { width: 18px; transform: translate(8px, 4px); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) { width: 26px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 3rem;
  padding: calc(var(--header-h) + 2rem) var(--pad-x) 3rem;
  background: rgba(4, 9, 15, 0.97);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease-out), visibility 0.5s;
}
.mobile-menu[hidden] { display: flex; }
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu__list { display: grid; gap: 0.5rem; }
.mobile-menu__list a {
  display: inline-block;
  font-family: var(--f-display);
  font-size: clamp(2.25rem, 9vw, 3rem);
  color: var(--c-text);
  transform: translateY(1.2rem);
  opacity: 0;
  transition: transform 0.7s var(--ease-out), opacity 0.7s var(--ease-out), color 0.3s;
}
.mobile-menu.is-open .mobile-menu__list a { transform: none; opacity: 1; }
.mobile-menu.is-open li:nth-child(2) a { transition-delay: 0.06s; }
.mobile-menu.is-open li:nth-child(3) a { transition-delay: 0.12s; }
.mobile-menu__list a:hover { color: var(--c-gold); }
.mobile-menu__contact { display: grid; gap: 0.5rem; color: var(--c-text-muted); }
.mobile-menu__contact a:hover { color: var(--c-gold); }

body.menu-open { overflow: hidden; }

@media (min-width: 64em) {
  :root { --header-h: 4.8rem; }
  .site-nav,
  .site-header__contact { display: flex; }
  .site-nav__list { display: flex; }
  .site-header__logo {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 4.5rem;
    transform: translate(-50%, -50%);
  }
  .menu-toggle,
  .mobile-menu { display: none !important; }
}

/* ==========================================================================
   Hero — background, pedestal, shadow and cake are separate layers
   ========================================================================== */
.hero {
  --u: 1vw; /* design unit; 1u = 14.4px at 1440 */
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__bg { background: var(--c-bg); }
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 30%;
  opacity: 0.9;
  -webkit-mask-image: linear-gradient(to bottom, #000 12%, rgba(0, 0, 0, 0.42) 68%, transparent 96%);
  mask-image: linear-gradient(to bottom, #000 12%, rgba(0, 0, 0, 0.42) 68%, transparent 96%);
}
.hero__bg::after { /* cool navy tint over the neutral grey photo */
  content: "";
  position: absolute;
  inset: 0;
  background: #0d1b2c;
  mix-blend-mode: color;
  opacity: 0.55;
}
.hero::after { /* fade into next section */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 30%;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(4, 9, 15, 0), var(--c-bg));
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 3;
  padding-top: calc(var(--header-h) + clamp(2rem, 8vw, 3.5rem));
}

.hero__title { font-size: var(--fs-h1); line-height: 1.05; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero__title .line__in { display: block; }

.hero__text {
  max-width: 38.5rem;
  margin-top: clamp(1.25rem, 3vw, 2.4rem);
  color: var(--c-text-soft);
  font-size: var(--fs-body);
}
.hero .btn { margin-top: clamp(1.75rem, 3.5vw, 2.5rem); }

/* Stage: sized from the pedestal box in the artboard (898 × 774 at 1440) */
.hero__stage {
  position: relative;
  z-index: 1;
  width: 120vw;
  aspect-ratio: 898 / 723;
  margin: 3.5rem 0 0 6vw;
  pointer-events: none;
}
.hero__pedestal,
.hero__shadow,
.hero__cake { position: absolute; }
.hero__pedestal { left: 0; top: 29.16%; width: 100%; }
.hero__shadow   { left: 2.52%; top: 37.47%; width: 56.1%; transform-origin: 50% 50%; }
.hero__cake     { left: 11.6%; top: 0; width: 43.41%; will-change: transform; }
.hero__cake picture { animation: float 7s var(--ease-in-out) infinite; }
.hero__shadow img { animation: shadow-breathe 7s var(--ease-in-out) infinite; }

@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(0, -2.4%, 0) rotate(-0.8deg); }
}
@keyframes shadow-breathe {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.94); opacity: 0.8; }
}

@media (min-width: 48em) {
  .hero__stage { width: 100vw; margin: -1rem 0 0 22vw; }
}

@media (min-width: 64em) {
  .hero {
    --u: min(1vw, 1.6svh);
    height: 100svh;
    min-height: 40rem;
    max-height: 70rem;
    justify-content: center;
  }
  .hero__inner { padding-top: 0; margin-top: calc(var(--u) * -4.5); }
  .hero__copy { max-width: 45rem; }
  .hero__text { max-width: 43rem; }
  .hero__stage {
    position: absolute;
    top: calc(var(--u) * 13.28);
    right: calc(var(--u) * -13.75);
    width: calc(var(--u) * 62.39);
    margin: 0;
  }
}

/* Hero intro sequence */
.js .hero__title .line__in { transform: translateY(105%); }
.js [data-hero-fade] { opacity: 0; transform: translateY(18px); }
.js .hero__stage { opacity: 0; }
.js .hero__cake { transform: translate3d(0, -14%, 0) rotate(-4deg); }
.js .hero__bg img { transform: scale(1.08); }

.is-loaded .hero__title .line__in {
  transform: none;
  transition: transform 1.3s var(--ease-out);
}
.is-loaded .hero__title .line:nth-child(2) .line__in { transition-delay: 0.12s; }
.is-loaded [data-hero-fade] {
  opacity: 1;
  transform: none;
  transition: opacity 1s var(--ease-out) 0.55s, transform 1s var(--ease-out) 0.55s;
}
.is-loaded .hero .btn[data-hero-fade] { transition-delay: 0.7s, 0.7s; }
.is-loaded .hero__stage { opacity: 1; transition: opacity 1.4s var(--ease-out) 0.2s; }
.is-loaded .hero__cake { transform: none; transition: transform 1.8s var(--ease-out) 0.25s; }
.is-loaded .hero__bg img { transform: none; transition: transform 2.4s var(--ease-out); }
.is-settled .hero__cake { transition: none; }

/* ==========================================================================
   Story
   ========================================================================== */
.story {
  padding: clamp(4rem, 9vw, 3rem) var(--pad-x) clamp(4.5rem, 8vw, 7rem);
}
.story__grid {
  display: grid;
  gap: 2rem;
  max-width: var(--max-w);
  margin-inline: auto;
}
.story__lead {
  font-size: var(--fs-lead);
  font-weight: 300;
  line-height: 1.42;
  color: var(--c-text);
}
.story__body { display: grid; gap: 1.1rem; font-size: var(--fs-body); color: var(--c-text-muted); max-width: 34rem; }

.story__img { overflow: hidden; }
.story__img picture { width: 100%; height: 100%; }
.story__img img { width: 100%; height: 100%; object-fit: cover; }
.story__img--board { aspect-ratio: 4 / 5; }
.story__img--board img { object-position: 42% 50%; }
.story__img--fork { aspect-ratio: 360 / 350; width: 100%; }
.story__img--fork img { object-position: 50% 40%; }

.story__quote {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.45;
  color: var(--c-text);
}
.quote-mark { flex: none; width: 2.2rem; margin-top: 0.3rem; fill: var(--c-gold); }

@media (min-width: 40em) {
  .story__grid { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; }
  .story__title, .story__lead, .story__body, .story__quote { grid-column: 1 / -1; }
  .story__img--board { grid-column: 2; grid-row: span 2; }
  .story__img--fork { grid-column: 1; width: 100%; align-self: end; }
}

@media (min-width: 64em) {
  .story { padding: clamp(2rem, 3.3vw, 3rem) 0 clamp(4rem, 5.5vw, 5.5rem); }
  .story__grid {
    /* columns mirror the 1440 artboard: 40 | 360 | 78 | 432 | 78 | 362 | 90 */
    grid-template-columns: 2.78% 25% 5.42% 30% 5.42% 25.14% 1fr;
    grid-template-rows: auto auto auto auto;
    column-gap: 0;
    row-gap: 0;
  }
  .story__title { grid-column: 2 / 5; grid-row: 1; padding-left: 3.9vw; margin-top: 3.3vw; }
  .story__img--board { grid-column: 6; grid-row: 1 / 4; aspect-ratio: 362 / 580; max-height: none; align-self: start; margin-top: 0; }
  .story__lead { grid-column: 4; grid-row: 2; margin-top: 7vw; }
  .story__img--fork { grid-column: 2; grid-row: 3 / 5; margin-top: 2vw; width: 100%; align-self: start; }
  .story__body { grid-column: 4; grid-row: 3; margin-top: 3.8vw; max-width: none; }
  .story__quote {
    grid-column: 4 / 7;
    grid-row: 4;
    justify-self: end;
    width: 27.6vw;
    margin-top: 6vw;
    margin-bottom: 2vw;
  }
}

/* ==========================================================================
   Why
   ========================================================================== */
.why { padding-block: clamp(3.5rem, 5.2vw, 5rem) clamp(4.5rem, 9vw, 9rem); }
.why__title { text-align: center; }
.why__grid {
  display: grid;
  gap: 3rem;
  max-width: 66.3rem;
  margin: clamp(2.75rem, 7.3vw, 6.5rem) auto 0;
}
.why__heading {
  padding: 0 0 1.3rem 0.9rem;
  border-bottom: 1px solid var(--c-rule);
  font-family: var(--f-body);
  font-weight: 300;
  font-size: clamp(1.25rem, 1.1rem + 0.45vw, 1.5rem);
  color: var(--c-text);
  position: relative;
}
.why__heading::after { /* gold rule draws in on reveal */
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--c-gold), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.4s var(--ease-out) 0.35s;
}
.why__item.is-in .why__heading::after { transform: scaleX(1); }
.why__item p { margin-top: 1.9rem; color: var(--c-text-muted); max-width: 27rem; }

@media (max-width: 39.99em) {
  .why__title br { display: none; }
}

@media (min-width: 48em) {
  .why__grid { grid-template-columns: 1fr 1fr; column-gap: 18%; }
}

/* ==========================================================================
   Storefront
   ========================================================================== */
.storefront {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.storefront img {
  position: absolute;
  left: 0;
  top: -10%;
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: 50% 45%;
  will-change: transform;
}
@media (min-width: 48em) { .storefront { aspect-ratio: 1440 / 755; } }

/* ==========================================================================
   Pattern background
   ========================================================================== */
.pattern-bg { position: relative; isolation: isolate; }
.pattern-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../images/pattern-2.svg") 0 210px / 560px 400px repeat;
  opacity: 0.022;
  pointer-events: none;
}

/* ==========================================================================
   Collection
   ========================================================================== */
.collection { padding-block: clamp(4rem, 10.2vw, 9.2rem) clamp(4.5rem, 12.2vw, 11rem); }
.collection__intro { max-width: 34rem; margin-top: clamp(1.25rem, 2.5vw, 2rem); color: var(--c-text-muted); }

.collection__grid {
  display: grid;
  gap: 1.25rem;
  margin-top: clamp(2.5rem, 6.6vw, 5.9rem);
}

.cake-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1.05;
  background: var(--c-panel);
  outline-offset: 3px;
  cursor: default;
}
.cake-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 96%;
  transition: transform 1.4s var(--ease-out), filter 1s var(--ease-out);
}
.cake-card__caption {
  position: absolute;
  inset: auto 0 0;
  padding: 3rem clamp(1.25rem, 2.7vw, 2.45rem) clamp(1.25rem, 3vw, 2.9rem);
  color: var(--c-text-soft);
  background: linear-gradient(to top, rgba(4, 9, 15, 0.82) 0%, rgba(4, 9, 15, 0.55) 55%, rgba(4, 9, 15, 0) 100%);
}
.cake-card__caption::before { /* frosted band */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  -webkit-mask-image: linear-gradient(to top, #000 45%, transparent);
  mask-image: linear-gradient(to top, #000 45%, transparent);
}
.cake-card__caption { isolation: isolate; }
.cake-card__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.375rem, 1.2rem + 0.5vw, 1.625rem);
  letter-spacing: 0.06em;
  color: var(--c-text);
}
.cake-card__caption p {
  margin-top: 0.9rem;
  max-width: 31rem;
  font-size: var(--fs-body);
  line-height: 1.5;
}

/* Hover-capable devices: caption reveals on hover / focus */
@media (hover: hover) and (min-width: 64em) {
  .cake-card { cursor: pointer; }
  .cake-card__caption {
    opacity: 0;
    transition: opacity 0.7s var(--ease-out);
  }
  .cake-card__title,
  .cake-card__caption p {
    transform: translateY(14px);
    transition: transform 0.8s var(--ease-out);
  }
  .cake-card__caption p { transition-delay: 0.05s; }
  .cake-card:hover .cake-card__caption,
  .cake-card:focus-visible .cake-card__caption,
  .cake-card:focus-within .cake-card__caption { opacity: 1; }
  .cake-card:hover .cake-card__title,
  .cake-card:hover .cake-card__caption p,
  .cake-card:focus-visible .cake-card__title,
  .cake-card:focus-visible .cake-card__caption p { transform: none; }
  .cake-card:hover img,
  .cake-card:focus-visible img { transform: scale(1.05); }
}

@media (min-width: 48em) {
  .cake-card { aspect-ratio: 589 / 418; }
  .cake-card__caption { padding-top: 4.5rem; }
  .collection__grid { grid-template-columns: 1fr 1fr; column-gap: 1.2rem; row-gap: 2.4rem; }
}

/* ==========================================================================
   Luxury — one photo, frosted panel over its left side, static side image
   ========================================================================== */
.luxury {
  display: grid;
  background: var(--c-bg);
}
.luxury__feature {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-top: 70vw; /* mobile: sharp photo shows above the panel */
}
.luxury__photo {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.luxury__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 0%;
}
.luxury__panel {
  padding: clamp(4rem, 12vw, 6rem) var(--pad-x);
  background: rgba(12, 9, 7, 0.80);
  -webkit-backdrop-filter: blur(8px) saturate(0.85);
  backdrop-filter: blur(8px) saturate(0.85);
}
.luxury__copy { max-width: 31rem; }
.luxury__copy p { margin-top: clamp(1.25rem, 2.8vw, 2.55rem); color: var(--c-text-soft); }
.luxury__copy .btn { margin-top: clamp(1.75rem, 3.5vw, 3.1rem); }

.luxury__side { overflow: hidden; aspect-ratio: 4 / 3; }
.luxury__side picture { width: 100%; height: 100%; }
.luxury__side img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }

@media (min-width: 64em) {
  /* 1440 artboard: photo 0–1110, panel 0–723, gap 18, side image 1128–1440 */
  .luxury {
    grid-template-columns: 77.08% 1fr;
    column-gap: 1.125rem;
    height: min(47.8vw, 46rem);
  }
  .luxury__feature { padding-top: 0; }
  .luxury__photo img {
    object-position: 0% 60%;
    transform: scale(1.32);
    transform-origin: 0% 62%;
  }
  .luxury__panel {
    display: flex;
    align-items: center;
    width: 65.14%;  /* 723 / 1110 */
    height: 100%;
    padding: 0 var(--pad-x);
  }
  .luxury__copy { max-width: 33.3vw; margin-top: -1.8vw; }
  .luxury__side { aspect-ratio: auto; height: 100%; }
  .luxury__side img { object-position: 0% 50%; }
}

/* ==========================================================================
   Patrons / testimonials
   ========================================================================== */
.patrons {
  position: relative;
  display: grid;
  isolation: isolate;
  background: var(--c-bg);
}
.patrons__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3.4;
}
.patrons__bg img {
  position: absolute;
  width: 132.8%;
  max-width: none;
  left: -16.7%;
  top: -34%;
}
.patrons__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(4, 9, 15, 0) 45%, rgba(4, 9, 15, 0.65) 75%, var(--c-bg) 100%),
    linear-gradient(to bottom, rgba(4, 9, 15, 0.25), rgba(4, 9, 15, 0) 30%);
}
.patrons__drizzle {
  position: absolute;
  z-index: 2;
  left: 0;
  top: -1.5rem;
  width: min(62vw, 30rem);
  pointer-events: none;
}
.patrons__ornament { display: none; }

.patrons__panel {
  position: relative;
  z-index: 3;
  padding: 2.5rem var(--pad-x) 0;
}
.patrons__title { margin-bottom: 2rem; }

.slider__viewport { position: relative; min-height: 11rem; }
.slide blockquote p {
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--c-text-muted);
  max-width: 22.5rem;
}
.slide figcaption {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.9rem;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--c-text);
}
.slide__place { color: var(--c-text-muted); font-weight: 300; }
.slide__rule { display: block; width: 2.4rem; height: 1px; background: var(--c-gold); }

.slide.is-entering { animation: slide-in 0.8s var(--ease-out) both; }
.slide.is-entering.from-prev { animation-name: slide-in-prev; }
@keyframes slide-in { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes slide-in-prev { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }

.slider__controls {
  display: flex;
  margin-top: 2.5rem;
  margin-inline: calc(var(--pad-x) * -1);
  background: var(--c-bg-raised);
}
.slider__btn {
  display: grid;
  place-items: center;
  width: 4.8rem;
  height: 4.8rem;
  color: var(--c-text);
  background: rgba(255, 255, 255, 0.015);
  transition: background-color 0.4s, color 0.4s;
}
.slider__btn--next { background: rgba(255, 255, 255, 0.07); }
.slider__btn svg {
  width: 1.3rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.4s var(--ease-out);
}
.slider__btn:hover { background: var(--c-gold); color: var(--c-bg); }
.slider__btn--prev:hover svg { transform: translateX(-3px); }
.slider__btn--next:hover svg { transform: translateX(3px); }
.slider__btn[aria-disabled="true"] { color: rgba(255, 255, 255, 0.3); }

@media (max-width: 47.99em) {
  /* Mobile: bigger drizzle, plate sits nearer the centre. It stays on the
     left edge because the hand enters from there. The kitchen photo is
     scaled by the same amount so both images stay lined up. */
  .patrons__media { aspect-ratio: auto; height: 112vw; }
  .patrons__bg img { width: 181.4vw; left: -22.8vw; top: -45vw; }
  .patrons__drizzle { top: -6.2vw; width: 92vw; }
    /* Hearts sit top-right of the drizzle; circle hidden on mobile */
  .patrons__ornament {
    display: block;
    position: absolute;
    z-index: 3;
    left: 24vw;
    top: 3vw;
    width: 96vw;
    fill: none;
    stroke: var(--c-gold);
    pointer-events: none;
  }
  .orn-circle { display: none; }
  .orn-heart { stroke-width: 1.2; vector-effect: non-scaling-stroke; }
}

@media (min-width: 48em) {
  .patrons__media { aspect-ratio: 16 / 10; }
  .patrons__drizzle { width: 42vw; }
}

@media (min-width: 64em) {
  /* 1440 artboard: section 705 tall, image panel 851 wide */
  .patrons {
    grid-template-columns: 59.1% 40.9%;
    height: min(48.96vw, 44rem);
    min-height: 38rem;
  }
  .patrons__media { grid-column: 1; grid-row: 1; aspect-ratio: auto; height: 100%; }
  .patrons__bg img { top: -44.4%; }
  .patrons__media::after {
    background:
      linear-gradient(to right, rgba(4, 9, 15, 0) 62%, rgba(4, 9, 15, 0.9) 100%),
      linear-gradient(to bottom, rgba(4, 9, 15, 0.25), rgba(4, 9, 15, 0) 30%);
  }
  .patrons__drizzle {
    width: 39.8vw;
    max-width: 38rem;
    top: -5vw;
  }
  .patrons__ornament {
    display: block;
    position: absolute;
    z-index: 2;
    left: 30.97%;
    top: 16.3%;
    width: 32.6vw;
    max-width: 30rem;
    fill: none;
    stroke: var(--c-gold);
    pointer-events: none;
  }
  .orn-circle { stroke: rgba(255, 255, 255, 0.22); stroke-width: 1; }
  .orn-heart { stroke-width: 1.2; vector-effect: non-scaling-stroke; }

  .patrons__panel {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
  }
  .patrons__title {
    margin: 18.4% 0 0 -4.1vw;
    position: relative;
    z-index: 3;
  }
  .slider { margin: 3.5vw 0 0 6.7vw; flex: 1; }
  .slider__controls { margin: 0; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding: clamp(3.5rem, 4.5vw, 4rem) 0 calc(clamp(3rem, 5.5vw, 5rem) + env(safe-area-inset-bottom, 0px));
  color: var(--c-text);
  font-weight: 400;
}
.site-footer__grid { display: grid; gap: 2.25rem; }
.site-footer__heading {
  font-family: var(--f-body);
  font-weight: 400;
  font-size: clamp(1.125rem, 1rem + 0.3vw, 1.25rem);
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-bottom: 0.9rem;
}
.site-footer__list { display: grid; gap: 0.35rem; }
.site-footer__list li { display: flex; align-items: center; gap: 0.6rem; }
.site-footer .icon { width: 1.1rem; fill: var(--c-gold); flex: none; }
.site-footer a { transition: color 0.3s; }
.site-footer a:hover { color: var(--c-gold-light); }
.site-footer address,
.site-footer__col p { font-size: var(--fs-body); line-height: 1.55; }
.site-footer__list { font-size: var(--fs-body); }

.site-footer__base {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-top: clamp(3.5rem, 6.5vw, 6rem);
}
.site-footer__logo { width: clamp(7rem, 9.7vw, 8.75rem); transition: opacity 0.3s; }
.site-footer__logo:hover { opacity: 0.8; }
.site-footer__copy {
  color: var(--c-text-muted);
  font-weight: 300;
  line-height: 1.9;
  text-align: right;
  margin-bottom: 1rem;
}

@media (min-width: 48em) {
  .site-footer__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 36px, 0);
  transition:
    opacity 1.1s var(--ease-out) var(--d, 0ms),
    transform 1.1s var(--ease-out) var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Images unveil with a curtain + settle */
.js .media-reveal[data-reveal] {
  opacity: 1;
  transform: none;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.5s var(--ease-out) var(--d, 0ms);
}
.js .media-reveal[data-reveal] img { transform: scale(1.18); transition: transform 2s var(--ease-out) var(--d, 0ms); }
.js .media-reveal[data-reveal].is-in { clip-path: inset(0 0 0 0); }
.js .media-reveal[data-reveal].is-in img { transform: none; }

/* Cards: reveal image-first */
.js .cake-card[data-reveal] { transform: translate3d(0, 48px, 0); }

/* Testimonial ornament draws itself */
.js .patrons__ornament .orn-circle,
.js .patrons__ornament .orn-heart {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.patrons.is-in .orn-circle { stroke-dashoffset: 0; transition: stroke-dashoffset 2.4s var(--ease-in-out); }
.patrons.is-in .orn-heart { stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s var(--ease-out) 0.9s; }
.patrons.is-in .orn-heart + .orn-heart { transition-delay: 1.2s; }

.js .patrons__drizzle { opacity: 0; transform: translate3d(-24px, -24px, 0); }
.patrons.is-in .patrons__drizzle {
  opacity: 1;
  transform: none;
  transition: opacity 1.4s var(--ease-out), transform 1.8s var(--ease-out);
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .js [data-reveal],
  .js .media-reveal[data-reveal],
  .js .hero__title .line__in,
  .js [data-hero-fade],
  .js .hero__stage,
  .js .hero__cake,
  .js .patrons__drizzle {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
  .js .patrons__ornament .orn-circle,
  .js .patrons__ornament .orn-heart { stroke-dashoffset: 0; }
}
