/* ============================================================
   CREMA — section & component styles
   ============================================================ */

/* ---------------- Navigation ---------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease),
    backdrop-filter 0.5s var(--ease);
}
.nav__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav.is-scrolled {
  background: rgba(250, 247, 241, 0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -22px rgba(52, 32, 24, 0.5);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5ch;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.42rem;
  letter-spacing: 0.02em;
  color: var(--espresso);
  line-height: 1;
}
.brand__dot {
  color: var(--caramel);
}
.brand__sub {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--espresso-faint);
  transform: translateY(-1px);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 40px);
}
.nav__link {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--espresso);
  padding-block: 6px;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--caramel);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav__link:hover::after {
  transform: scaleX(1);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cart-btn {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: background 0.35s var(--ease);
}
.cart-btn:hover {
  background: rgba(52, 32, 24, 0.06);
}
.cart-btn svg {
  width: 21px;
  height: 21px;
}
.cart-btn__count {
  position: absolute;
  top: 2px;
  right: 1px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 10px;
  background: var(--caramel);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  transform: scale(0);
  transition: transform 0.4s var(--ease);
}
.cart-btn__count.is-active {
  transform: scale(1);
}

.nav__cta {
  display: inline-flex;
}
.nav__burger {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
}
.nav__burger span {
  position: relative;
  width: 20px;
  height: 1.6px;
  background: var(--espresso);
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.nav__burger span::before,
.nav__burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 1.6px;
  background: var(--espresso);
  transition: transform 0.4s var(--ease);
}
.nav__burger span::before {
  top: -6px;
}
.nav__burger span::after {
  top: 6px;
}
.nav.is-open .nav__burger span {
  background: transparent;
}
.nav.is-open .nav__burger span::before {
  transform: translateY(6px) rotate(45deg);
}
.nav.is-open .nav__burger span::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile menu */
.nav__mobile {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--offwhite);
  padding: calc(var(--nav-h) + 40px) var(--gutter) 48px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.6s var(--ease), opacity 0.5s var(--ease);
}
.nav__mobile.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.nav__mobile a {
  font-family: var(--font-display);
  font-size: 2.2rem;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}
.nav__mobile .btn {
  margin-top: 24px;
  align-self: flex-start;
}

/* ---------------- Cinematic hero (pinned) ---------------- */
.cinematic {
  position: relative;
  background: linear-gradient(180deg, var(--cream) 0%, var(--offwhite) 62%);
}
.cinematic__stage {
  position: relative;
  height: 100vh;
  height: 100svh;
  width: 100%;
  overflow: hidden;
}
.cinematic__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cinematic__poster,
.cinematic__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
/* poster mirrors the canvas fit: full frame, 90% (never cropped from top) */
.cinematic__poster {
  object-fit: contain;
  transform: scale(0.9);
  transition: opacity 0.8s var(--ease);
  z-index: 1;
}
.cinematic__poster.is-hidden {
  opacity: 0;
}
.cinematic__canvas {
  z-index: 0;
}

/* Left editorial copy — sits in the cream space beside the product */
.cinematic__copy {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  padding: var(--nav-h) var(--gutter) 6vh;
  pointer-events: none;
}
.hero-left {
  max-width: 30ch;
  text-align: left;
  pointer-events: auto;
  will-change: transform, opacity;
}
.hero-left .eyebrow {
  color: var(--roasted);
  margin-bottom: 20px;
}
.hero-left__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 4.2vw, 4.3rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--espresso);
}
.hero-left__title em {
  font-style: italic;
  color: var(--roasted);
}
.hero-left__text {
  margin-top: 22px;
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.5;
  color: var(--espresso-soft);
  max-width: 32ch;
}

/* soft edge wash so side copy stays legible without dimming the centre */
.cinematic__wash {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
      90deg,
      rgba(250, 247, 241, 0.72) 0%,
      rgba(250, 247, 241, 0) 26%,
      rgba(250, 247, 241, 0) 74%,
      rgba(250, 247, 241, 0.72) 100%
    ),
    linear-gradient(
      180deg,
      rgba(250, 247, 241, 0.5) 0%,
      rgba(250, 247, 241, 0) 22%,
      rgba(250, 247, 241, 0) 72%,
      rgba(243, 231, 214, 0.55) 100%
    );
}

.cinematic__layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 2vh) var(--gutter) 6vh;
}

/* Hero copy (progress 0-20%) */
.hero {
  position: relative;
  z-index: 4;
  text-align: center;
  max-width: 860px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  will-change: transform, opacity;
}
/* soft cream spotlight so the copy stays legible over the opaque bag */
.hero::before {
  content: "";
  position: absolute;
  inset: -14% -10%;
  z-index: -1;
  background: radial-gradient(
    58% 56% at 50% 48%,
    rgba(250, 247, 241, 0.9) 0%,
    rgba(250, 247, 241, 0.72) 42%,
    rgba(250, 247, 241, 0) 76%
  );
  filter: blur(6px);
  pointer-events: none;
}
.hero__eyebrow {
  margin-bottom: 2px;
}
.hero__title {
  font-size: clamp(2.7rem, 7.4vw, 6.6rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-shadow: 0 1px 26px rgba(250, 247, 241, 0.92),
    0 0 2px rgba(250, 247, 241, 0.7);
}
.hero__title em {
  font-style: italic;
  color: var(--roasted);
  font-variation-settings: "opsz" 144, "SOFT" 90, "WONK" 1;
}
.hero__copy {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--espresso-soft);
  max-width: 40ch;
  text-shadow: 0 1px 16px rgba(250, 247, 241, 0.9);
}
.hero__eyebrow {
  color: var(--roasted);
  text-shadow: 0 1px 14px rgba(250, 247, 241, 0.95);
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 6px;
}

/* Side overlay copy (progress 40-80%) */
.scene-aside {
  position: absolute;
  z-index: 4;
  top: 50%;
  max-width: 300px;
  will-change: transform, opacity;
}
.scene-aside--left {
  left: var(--gutter);
  transform: translateY(-50%);
  text-align: left;
}
.scene-aside--right {
  right: var(--gutter);
  transform: translateY(-50%);
  text-align: right;
}
.scene-aside__title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.6vw, 2.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.scene-aside__text {
  margin-top: 14px;
  font-size: 0.98rem;
  color: var(--espresso-soft);
  line-height: 1.55;
}
.scene-aside__num {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--caramel);
  text-transform: uppercase;
  display: block;
  margin-bottom: 14px;
}

/* Centre CTA that appears as the scene settles */
.scene-cta {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 12vh;
  transform: translateX(-50%);
  will-change: transform, opacity;
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--espresso-faint);
  will-change: opacity;
}
.scroll-cue__line {
  width: 1px;
  height: 44px;
  background: linear-gradient(var(--caramel), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-cue__line::after {
  content: "";
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--espresso);
  animation: cueSlide 2.2s var(--ease) infinite;
}
@keyframes cueSlide {
  0% {
    transform: translateY(-100%);
  }
  60%,
  100% {
    transform: translateY(300%);
  }
}

/* Reduced-motion / no-JS fallback hero */
.cinematic--static .cinematic__stage {
  height: auto;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.cinematic--static .cinematic__poster {
  position: absolute;
  opacity: 1;
}
.cinematic--static .scene-aside,
.cinematic--static .scene-cta,
.cinematic--static .scroll-cue {
  display: none;
}

/* ---------------- Featured collection ---------------- */
.collection__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: clamp(40px, 6vw, 72px);
}
/* 3-column stage: 2 cards | coffee glass | 2 cards */
.collection__stage {
  display: grid;
  grid-template-columns: 1fr minmax(230px, 300px) 1fr;
  align-items: center;
  gap: clamp(18px, 2.4vw, 44px);
  margin-top: clamp(30px, 5vw, 60px);
}
.collection__side {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 1.6vw, 24px);
}
.collection__glass {
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform, opacity;
}
.collection__glass img {
  width: 100%;
  max-width: 300px;
  height: auto;
  filter: drop-shadow(0 42px 46px rgba(52, 32, 24, 0.2));
}
/* compact horizontal cards so two stacked balance the centre glass */
.collection__side .product-card,
.hero-collection__col .product-card {
  flex-direction: row;
  align-items: stretch;
}
.collection__side .product-card__media,
.hero-collection__col .product-card__media {
  width: 42%;
  flex-shrink: 0;
  aspect-ratio: auto;
}
.collection__side .product-card__body,
.hero-collection__col .product-card__body {
  padding: 16px 18px 18px;
  justify-content: center;
  gap: 8px;
}
.collection__side .product-card__name,
.hero-collection__col .product-card__name {
  font-size: 1.15rem;
}
.collection__side .product-card__notes,
.hero-collection__col .product-card__notes {
  font-size: 0.82rem;
}
.collection__side .product-card__footer,
.hero-collection__col .product-card__footer {
  margin-top: 6px;
}

/* collection composed inside the pinned hero, around the canvas glass */
.hero-collection {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
.hero-collection__heading {
  position: absolute;
  top: calc(var(--nav-h) + 2.5vh);
  left: 0;
  right: 0;
  padding-inline: var(--gutter);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--espresso);
  will-change: transform, opacity;
}
.hero-collection__side {
  position: absolute;
  /* sit in the lower half so the cards clear the heading at the top */
  top: 20%;
  bottom: 2%;
  width: clamp(240px, 27vw, 360px);
  display: flex;
  align-items: center;
}
.hero-collection__side--left {
  left: var(--gutter);
}
.hero-collection__side--right {
  right: var(--gutter);
}
.hero-collection__col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  pointer-events: auto;
  will-change: transform, opacity;
}
.hero-collection__col .product-card {
  box-shadow: 0 22px 48px -30px rgba(52, 32, 24, 0.5);
}
/* the single glass the canvas hands off to, then glides down to centre */
.hero-glass {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.hero-glass__inner {
  width: min(24vw, 300px);
  opacity: 0;
  will-change: transform, opacity;
}
.hero-glass__inner img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 40px 46px rgba(52, 32, 24, 0.22));
}

/* the stacked mobile collection is hidden on desktop (hero composes it) */
.collection--mobile {
  display: none;
}

/* legacy grid (kept for safety, no longer rendered) */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 1.6vw, 26px);
}
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease),
    border-color 0.6s var(--ease);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -34px rgba(52, 32, 24, 0.55);
  border-color: var(--line-strong);
}
.product-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--cream);
}
.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.product-card:hover .product-card__media img {
  transform: scale(1.05);
}
.product-card__roast {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 12px;
  border-radius: 100px;
  background: rgba(250, 247, 241, 0.9);
  backdrop-filter: blur(6px);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--roasted);
}
.product-card__body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.product-card__name {
  font-family: var(--font-display);
  font-size: 1.42rem;
  line-height: 1.05;
}
.product-card__notes {
  font-size: 0.9rem;
  color: var(--espresso-soft);
  flex: 1;
}
.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}
.product-card__price {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}
.product-card__btn {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--espresso);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  transition: background 0.4s var(--ease), color 0.4s var(--ease),
    border-color 0.4s var(--ease);
}
.product-card__btn:hover {
  background: var(--espresso);
  color: var(--offwhite);
  border-color: var(--espresso);
}

/* ---------------- Origin story (split) ---------------- */
.origin {
  background: var(--espresso);
  color: var(--cream);
  overflow: hidden;
}
.origin h2,
.origin h3 {
  color: var(--cream);
}
.origin__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
}
.origin__media {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 50px 80px -50px rgba(0, 0, 0, 0.8);
}
.origin__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.origin__eyebrow {
  color: var(--beige);
}
.origin__title {
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  margin-block: 22px 26px;
}
.origin__text {
  color: rgba(243, 231, 214, 0.78);
  font-size: 1.05rem;
  max-width: 48ch;
}
.origin__stats {
  display: flex;
  gap: clamp(24px, 4vw, 56px);
  margin-top: 40px;
  flex-wrap: wrap;
}
.origin__stat b {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 3.6vw, 3rem);
  display: block;
  line-height: 1;
  color: var(--caramel);
}
.origin__stat span {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: rgba(243, 231, 214, 0.66);
  margin-top: 8px;
  display: block;
}

/* ---------------- Ritual ---------------- */
.ritual__head {
  text-align: center;
  align-items: center;
  margin-inline: auto;
  margin-bottom: clamp(44px, 6vw, 80px);
}
.ritual__head .eyebrow {
  align-self: center;
}
.ritual-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2vw, 30px);
  counter-reset: ritual;
}
.ritual-step {
  position: relative;
  padding: 34px 26px 30px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.ritual-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 50px -34px rgba(52, 32, 24, 0.5);
}
.ritual-step__num {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--caramel);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.ritual-step__num::before {
  counter-increment: ritual;
  content: "0" counter(ritual);
}
.ritual-step__icon {
  width: 46px;
  height: 46px;
  color: var(--roasted);
  margin-bottom: 18px;
}
.ritual-step__icon svg {
  width: 100%;
  height: 100%;
}
.ritual-step__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.ritual-step__text {
  font-size: 0.94rem;
  color: var(--espresso-soft);
}

/* ---------------- Newsletter ---------------- */
.newsletter {
  position: relative;
  background: linear-gradient(160deg, var(--caramel) 0%, var(--roasted) 100%);
  color: var(--offwhite);
  border-radius: 28px;
  padding: clamp(44px, 6vw, 88px);
  overflow: hidden;
}
.newsletter::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    120% 140% at 85% 15%,
    rgba(255, 255, 255, 0.22),
    transparent 55%
  );
  pointer-events: none;
}
.newsletter h2 {
  color: #fff;
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  max-width: 16ch;
}
.newsletter__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.newsletter__lede {
  color: rgba(255, 255, 255, 0.86);
  margin-top: 18px;
  max-width: 40ch;
}
.newsletter__form {
  display: flex;
  gap: 10px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 100px;
  padding: 7px 7px 7px 22px;
  backdrop-filter: blur(6px);
  max-width: 460px;
  margin-left: auto;
  width: 100%;
}
.newsletter__form input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 0.98rem;
  outline: none;
}
.newsletter__form input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}
.newsletter__form button {
  flex-shrink: 0;
  background: var(--espresso);
  color: var(--offwhite);
  border-radius: 100px;
  padding: 0.85em 1.5em;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.4s var(--ease), transform 0.4s var(--ease);
}
.newsletter__form button:hover {
  background: #22140d;
  transform: translateY(-1px);
}
.newsletter__note {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 14px;
  text-align: right;
}
.newsletter__note--ok {
  color: #fff;
  font-weight: 600;
}

/* ---------------- Footer ---------------- */
.footer {
  padding-block: clamp(60px, 8vw, 110px) 40px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}
.footer__brand .brand {
  font-size: 1.8rem;
}
.footer__tag {
  margin-top: 18px;
  color: var(--espresso-soft);
  max-width: 30ch;
}
.footer__col h4 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--espresso-faint);
  margin-bottom: 20px;
}
.footer__col a,
.footer__col address {
  display: block;
  font-style: normal;
  color: var(--espresso-soft);
  padding-block: 6px;
  transition: color 0.3s var(--ease);
}
.footer__col a:hover {
  color: var(--espresso);
}
.footer__socials {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.footer__socials a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 0;
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
.footer__socials a:hover {
  background: var(--espresso);
  color: var(--offwhite);
  border-color: var(--espresso);
}
.footer__socials svg {
  width: 17px;
  height: 17px;
}
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 28px;
  font-size: 0.84rem;
  color: var(--espresso-faint);
}

/* ---------------- Toast ---------------- */
.toast {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 30px);
  background: var(--espresso);
  color: var(--offwhite);
  padding: 14px 22px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 20px 44px -18px rgba(52, 32, 24, 0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--caramel);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .collection__stage {
    grid-template-columns: 1fr minmax(190px, 230px) 1fr;
    gap: clamp(14px, 2vw, 24px);
  }
  .collection__glass img {
    max-width: 230px;
  }
  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .origin__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .origin__media {
    max-width: 460px;
  }
  .ritual-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .newsletter__inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .newsletter__form {
    margin-left: 0;
  }
  .newsletter__note {
    text-align: left;
  }
  /* tablet: pull the side copy in tighter */
  .scene-aside {
    max-width: 220px;
  }
}

@media (max-width: 760px) {
  :root {
    --nav-h: 64px;
  }
  .nav__links,
  .nav__cta {
    display: none;
  }
  .nav__burger {
    display: grid;
  }
  /* mobile: stack scene copy top/bottom, never over the cup */
  .scene-aside {
    top: auto;
    left: 50%;
    right: auto;
    max-width: min(88vw, 420px);
    text-align: center;
    transform: translateX(-50%);
  }
  .scene-aside--left {
    top: calc(var(--nav-h) + 3vh);
  }
  .scene-aside--right {
    bottom: 16vh;
  }
  .scene-aside__text {
    display: none;
  }
  .scene-cta {
    bottom: 8vh;
  }
  .hero__ctas {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }
  .hero__ctas .btn {
    width: 100%;
  }
  .product-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-inline: auto;
  }
  /* on mobile the composed hero overlay is hidden; use the stacked section */
  .hero-collection,
  .hero-glass {
    display: none;
  }
  .collection--mobile {
    display: block;
  }
  /* collection stacks: glass on top, four cards below */
  .collection__stage {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 440px;
    margin-inline: auto;
  }
  .collection__glass {
    order: -1;
    margin-bottom: 6px;
  }
  .collection__glass img {
    max-width: 200px;
  }
  .footer__top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  /* mobile: centre the copy at the top, above the product */
  .cinematic__copy {
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    padding-top: calc(var(--nav-h) + 2vh);
  }
  .hero-left {
    max-width: 92%;
    text-align: center;
  }
  .hero-left__title {
    font-size: clamp(1.9rem, 8vw, 2.6rem);
  }
  .hero-left__text {
    display: none;
  }
}

@media (max-width: 460px) {
  .ritual-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-inline: auto;
  }
}
