/* ==========================================================================
   Bluebell — main stylesheet
   Mobile-first. Breakpoints: 640px (large phone), 1024px (desktop), 1280px (wide)
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --green: #164f41;
  --green-ink: #06241d;
  --green-hover: #0f3a30;
  --peach: #f6c5a1;
  --cream: #fff9f4;
  --white: #ffffff;
  --card: #fafafa;
  --band: rgba(243, 243, 243, 0.9);
  --muted: #767676;           /* design used #aaa; darkened to pass WCAG AA on cream */
  --line: #aaaaaa;

  --font-display: "Gilda Display", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Glegoo", "Roboto Slab", Rockwell, Georgia, serif;

  /* Fluid type scale (min at 360px, max at 1440px) */
  --fs-display: clamp(2.375rem, 0.6rem + 5.16vw, 5.25rem);   /* 38 → 84 */
  --fs-h2: clamp(2rem, 1.63rem + 1.67vw, 3rem);               /* 32 → 48 */
  --fs-h3: clamp(1.375rem, 1.15rem + 1vw, 2rem);              /* 22 → 32 */
  --fs-body: 1rem;
  --fs-small: 0.875rem;

  --container: 1240px;
  --gutter: clamp(1.25rem, 0.5rem + 3.33vw, 3rem);
  --section-y: clamp(4rem, 2.6rem + 6.2vw, 7.5rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --header-h: 72px;
}

@media (min-width: 1024px) {
  :root { --header-h: 82px; }
}

/* ---------- 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;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 2;
  color: var(--muted);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, p, figure, blockquote, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg, video, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.review :focus-visible, .film :focus-visible { outline-color: var(--peach); }

.visually-hidden {
  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-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  padding: 0.75rem 1.25rem; background: var(--green); color: var(--white);
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section--cream { background: var(--cream); }

/* ---------- Shared type ---------- */
.section-title,
.hero__title,
.collection-card__name,
.review__title,
.discover__label,
.brand__name {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  color: var(--green);
}
.section-title {
  font-size: var(--fs-h2);
  line-height: 1.17;
  text-align: center;
  text-wrap: balance;
}
.section-title--left { text-align: left; }

.section-head { max-width: 900px; margin-inline: auto; text-align: center; }
.section-lede {
  margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
  max-width: 52rem;
  margin-inline: auto;
  text-wrap: pretty;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  transition: transform 0.5s var(--ease-out), box-shadow 0.4s ease;
}
/* Blur lives on a pseudo-element so the fixed mobile nav isn't trapped by backdrop-filter */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
}
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(22, 79, 65, 0.08), 0 10px 30px -18px rgba(6, 36, 29, 0.25); }
.site-header.is-hidden { transform: translateY(-100%); }

.site-header__inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}

.brand { position: relative; z-index: 45; display: inline-flex; align-items: center; gap: 0.9rem; flex-shrink: 0; }
.brand__mark { width: 22px; height: auto; transition: transform 0.6s var(--ease-out); }
.brand__name { font-size: 1.3rem; line-height: 1; letter-spacing: 0.02em; }
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.04); }

@media (min-width: 1024px) {
  .brand__mark { width: 27px; }
  .brand__name { font-size: 1.5rem; }
}

/* Primary nav — mobile panel first */
.site-nav {
  position: fixed; inset: 0 0 0 auto; z-index: 40;
  width: min(86vw, 380px);
  padding: calc(var(--header-h) + 2rem) 2rem 2rem;
  background: var(--cream);
  display: flex; flex-direction: column; gap: 2.5rem;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.6s var(--ease-out), visibility 0s linear 0.6s;
}
.site-nav.is-open {
  transform: none; visibility: visible;
  transition: transform 0.6s var(--ease-out), visibility 0s;
}
.site-nav__list, .site-nav__extras { display: flex; flex-direction: column; gap: 1.25rem; }
.site-nav__list .site-nav__link {
  font-family: var(--font-display); font-size: 2rem; line-height: 1.2;
  text-transform: uppercase; color: var(--green);
}
.site-nav__extras { padding-top: 2rem; border-top: 1px solid rgba(22, 79, 65, 0.15); }
.site-nav__extras .site-nav__link { font-size: 1rem; color: var(--green-ink); }

.nav-scrim {
  position: fixed; inset: 0; z-index: 30;
  background: rgba(6, 36, 29, 0.35);
  opacity: 0; pointer-events: none;
  transition: opacity 0.5s ease;
}
.nav-scrim.is-visible { opacity: 1; pointer-events: auto; }

.site-nav__link { position: relative; display: inline-block; }
.site-nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: center;
  transition: transform 0.45s var(--ease-out);
}
.site-nav__link:hover::after, .site-nav__link:focus-visible::after { transform: scaleX(1); }

/* Header shortcuts */
.header-actions { display: flex; align-items: center; gap: 0.25rem; position: relative; z-index: 45; }
.header-actions__desktop { display: none; }
.icon-btn {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  color: var(--green);
  transition: background-color 0.3s ease, transform 0.3s var(--ease-out);
}
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover { background: rgba(22, 79, 65, 0.07); transform: translateY(-1px); }

/* Hamburger */
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
  display: block; width: 20px; height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform 0.45s var(--ease-out), opacity 0.3s ease;
}
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { transform: translateY(-6px); }
.menu-toggle__bars::after { transform: translateY(6px); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: rotate(45deg); background: var(--green); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: rotate(-45deg); background: var(--green); }

body.nav-open { overflow: hidden; }

@media (min-width: 1024px) {
  .site-nav {
    position: absolute; inset: 0; z-index: 1; width: auto;
    padding: 0; background: none;
    flex-direction: row; align-items: center; justify-content: center;
    transform: none; visibility: visible; transition: none;
    pointer-events: none;
  }
  .site-nav__list { flex-direction: row; gap: 2.6rem; pointer-events: auto; }
  .site-nav__list .site-nav__link {
    font-family: var(--font-body); font-size: var(--fs-small); line-height: 1.5;
    color: var(--green); letter-spacing: 0.02em;
  }
  .site-nav__extras { display: none; }
  .site-header__inner { position: relative; }
  .brand, .header-actions { position: relative; z-index: 2; }
  .header-actions { gap: 0.4rem; margin-right: -0.5rem; }
  .header-actions__desktop { display: block; }
  .header-actions__menu { display: none; }
  .nav-scrim { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  display: flex; flex-direction: column-reverse;
  overflow: hidden;
  background: var(--white);
}
/* Small screens: zoom into the lower half of the photo, where the jewelry sits */
.hero__media { position: relative; aspect-ratio: 5 / 4; overflow: hidden; }
.hero__media img {
  position: absolute; right: -22%; bottom: -6%;
  width: 175%; max-width: none; height: auto;
}
.hero__content {
  position: relative; z-index: 1;
  padding-top: clamp(2.5rem, 1.5rem + 5vw, 5rem);
  padding-bottom: 2.5rem;
  display: flex; flex-direction: column; align-items: center;
}
.hero__title {
  font-size: var(--fs-display);
  line-height: 1.18;
  text-align: center;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero__title .line__inner { display: inline-block; }
.hero__clover { width: clamp(44px, 3rem + 1.5vw, 66px); height: auto; margin-top: clamp(0.75rem, 0.4rem + 1vw, 1.1rem); }

.hero__intro { align-self: stretch; margin-top: 2rem; }
.hero__lede { max-width: 26rem; }

.discover {
  display: inline-flex; align-items: center; gap: 1rem;
  margin-top: 1.5rem;
}
.discover__label {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  line-height: 1;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  padding-bottom: 4px;
  transition: background-size 0.6s var(--ease-out);
}
.discover__circle {
  position: relative;
  display: grid; place-items: center;
  width: clamp(64px, 3rem + 3.6vw, 100px); aspect-ratio: 1;
  border: 1px solid var(--green); border-radius: 50%;
  color: var(--green);
  overflow: hidden; isolation: isolate;
  transition: color 0.5s var(--ease-out);
}
.discover__circle::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--green); border-radius: 50%;
  transform: scale(0); transition: transform 0.6s var(--ease-out);
}
.discover__circle svg {
  width: 56%; fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.6s var(--ease-out);
}
.discover:hover .discover__label, .discover:focus-visible .discover__label { background-size: 100% 1px; }
.discover:hover .discover__circle, .discover:focus-visible .discover__circle { color: var(--white); }
.discover:hover .discover__circle::before, .discover:focus-visible .discover__circle::before { transform: scale(1); }
.discover:hover .discover__circle svg, .discover:focus-visible .discover__circle svg { transform: rotate(45deg); }

@media (min-width: 640px) {
  .hero__media { aspect-ratio: 16 / 9; }
  .hero__media img { right: -4%; bottom: -8%; width: 130%; }
  .hero__intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; }
  .discover { margin-top: 0; flex-shrink: 0; }
}

/* Desktop: the photo shows as a band behind the copy, cropped as in the design (1440 × 987 frame) */
@media (min-width: 1024px) {
  .hero { display: block; container-type: inline-size; }
  .hero__media {
    position: absolute; left: 0; right: 0;
    top: 26.95cqw; height: 34.72cqw;
    aspect-ratio: auto;
  }
  .hero__media img {
    position: absolute; left: 0; top: -29.8cqw;
    width: 106.67%; height: auto; max-width: none;
    object-fit: initial;
  }
  .hero__content {
    min-height: calc(74.2cqw - var(--header-h));
    padding-top: clamp(4rem, 6.9cqw, 6.5rem); padding-bottom: 0;
  }
  .hero__intro { display: block; align-self: flex-start; margin-top: clamp(3rem, 4.5cqw, 4.5rem); }
  .hero__lede { max-width: 22.5rem; }
  .discover { margin-top: 1rem; }
}

/* Hero load sequence */
.js .hero__title .line__inner { transform: translateY(105%); }
.js .hero__clover { opacity: 0; transform: scale(0.6) rotate(-45deg); }
.js .hero__lede, .js .discover { opacity: 0; transform: translateY(18px); }
.js .hero__media img { transform: scale(1.08); opacity: 0; }

.is-loaded .hero__title .line__inner { transform: none; transition: transform 1.2s var(--ease-out); }
.is-loaded .hero__title .line:nth-child(2) .line__inner { transition-delay: 0.12s; }
.is-loaded .hero__clover { opacity: 1; transform: none; transition: opacity 0.8s ease 0.55s, transform 1.2s var(--ease-out) 0.55s; }
.is-loaded .hero__lede { opacity: 1; transform: none; transition: opacity 0.9s ease 0.75s, transform 0.9s var(--ease-out) 0.75s; }
.is-loaded .discover { opacity: 1; transform: none; transition: opacity 0.9s ease 0.9s, transform 0.9s var(--ease-out) 0.9s; }
.is-loaded .hero__media img { transform: none; opacity: 1; transition: transform 2.4s var(--ease-out) 0.1s, opacity 1.4s ease 0.1s; }

/* ==========================================================================
   About
   ========================================================================== */
.about { padding-block: var(--section-y) calc(var(--section-y) * 0.85); }

.collage {
  position: relative;
  margin-top: clamp(2.5rem, 1.5rem + 3vw, 5rem);
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem;
}
.collage__item { overflow: hidden; background: #efe7df; }
.collage__item picture, .collage__item img { width: 100%; height: 100%; }
.collage__item img { object-fit: cover; }
.collage__item--left, .collage__item--right { aspect-ratio: 1; }
.collage__item--right { margin-top: 2.5rem; }
.collage__item--center { grid-column: 1 / -1; aspect-ratio: 850 / 451; }
.collage__item--center img { object-position: 50% 50%; }
.collage__mark { display: none; }

@media (min-width: 768px) {
  /* Absolute composition from the design: 1240 × 753 frame */
  .collage { display: block; aspect-ratio: 1240 / 753; }
  .collage__item { position: absolute; margin: 0 !important; }
  .collage__item--left   { left: 0;       top: 0;      width: 42.34%; height: auto; }
  .collage__item--right  { right: 0;      top: 13.68%; width: 42.34%; height: auto; }
  .collage__item--center { left: 15.73%;  top: 40.1%;  width: 68.55%; height: 59.9%; aspect-ratio: auto; }
  .collage__item--left img { object-position: 50% 30%; }
  .collage__mark {
    display: block; position: absolute;
    left: 46.95%; top: 14.7%; width: 6.05%; height: auto;
  }
}

.collage__item img { transition: transform 1.4s var(--ease-out); }
.collage__item:hover img { transform: scale(1.04); }

/* ==========================================================================
   Collection
   ========================================================================== */
.collection { padding-block: var(--section-y) calc(var(--section-y) * 1.2); overflow: hidden; }

.collection__inner {
  display: grid; gap: 2.5rem;
  padding-left: var(--gutter);
}
.collection__intro { padding-right: var(--gutter); }
.collection__text { margin-top: 1.75rem; max-width: 27rem; }

.carousel { min-width: 0; }
.carousel__track {
  display: flex; gap: 1.25rem;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 0;
  padding-right: var(--gutter);
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline-offset: -2px; }

.collection-card {
  flex: 0 0 clamp(260px, 78vw, 420px);
  scroll-snap-align: start;
}
.collection-card__link {
  position: relative; display: block;
  aspect-ratio: 1; overflow: hidden;
  background: var(--card);
}
.collection-card picture, .collection-card img { width: 100%; height: 100%; }
.collection-card img { object-fit: contain; transition: transform 1.1s var(--ease-out); }
.collection-card__name {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 35.7%;
  display: grid; place-items: center;
  padding: 0 1.5rem;
  font-size: var(--fs-h3); line-height: 1.2; text-align: center;
  background: var(--band);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  /* Hidden by default: slid down and faded out */
  opacity: 0;
  transform: translateY(40%);
  transition: opacity 0.5s ease, transform 0.6s var(--ease-out);
}
.collection-card__link:hover img,
.collection-card__link:focus-visible img { transform: scale(1.06) translateY(-2%); }

/* Label slides up on hover or keyboard focus */
.collection-card__link:hover .collection-card__name,
.collection-card__link:focus-visible .collection-card__name {
  opacity: 1;
  transform: none;
}

/* Phones and tablets have no hover, so keep the label visible there */
@media (hover: none) {
  .collection-card__name { opacity: 1; transform: none; }
}

.carousel__controls { display: flex; gap: 1.25rem; margin-top: 2rem; }
.arrow-btn {
  display: grid; place-items: center;
  width: 50px; height: 50px; border-radius: 50%;
  border: 1px solid var(--green); color: var(--green);
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, transform 0.35s var(--ease-out);
}
.arrow-btn svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.arrow-btn:not(:disabled):hover { background: var(--green); color: var(--white); }
.arrow-btn[data-carousel-prev]:not(:disabled):hover svg { transform: translateX(-2px); }
.arrow-btn[data-carousel-next]:not(:disabled):hover svg { transform: translateX(2px); }
.arrow-btn svg { transition: transform 0.35s var(--ease-out); }
.arrow-btn:disabled { border-color: #c8c8c8; color: #b5b5b5; cursor: default; }

@media (min-width: 1024px) {
  .collection__inner {
    grid-template-columns: minmax(0, 510fr) minmax(0, 730fr);
    column-gap: clamp(3rem, 7vw, 6.25rem);
    padding-left: max(var(--gutter), (100vw - var(--container)) / 2);
  }
  .collection__intro { padding-right: 0; }
  .collection__text { margin-top: clamp(2.5rem, 4vw, 3.5rem); margin-left: 5.3rem; }
  .collection-card { flex-basis: clamp(320px, 29.2vw, 420px); }
  .carousel__track { padding-right: 0; }
}

/* ==========================================================================
   Best sellers
   ========================================================================== */
.best { padding-block: var(--section-y); }

.product-grid {
  margin-top: clamp(2.5rem, 1.5rem + 3vw, 5rem);
  display: grid; grid-template-columns: 1fr; gap: 2.5rem;
}
@media (min-width: 480px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.25rem; } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: 2.5rem; } }

.product-card__link { display: block; }
.product-card__media {
  aspect-ratio: 1; overflow: hidden; background: var(--white);
  transition: box-shadow 0.6s var(--ease-out);
}
.product-card__media picture, .product-card__media img { width: 100%; height: 100%; }
.product-card__media img { object-fit: contain; transition: transform 1s var(--ease-out); }
.product-card__name {
  margin-top: 1.4rem;
  font-family: var(--font-body); font-weight: 400;
  font-size: 1.125rem; line-height: 1.5; color: var(--green-ink);
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  display: inline-block; padding-bottom: 2px;
  transition: background-size 0.5s var(--ease-out), color 0.3s ease;
}
.product-card__price {
  margin-top: 1rem;
  font-weight: 700; font-size: 1.125rem; line-height: 1.5; color: var(--green);
}
.product-card__link:hover .product-card__media,
.product-card__link:focus-visible .product-card__media { box-shadow: 0 24px 40px -28px rgba(6, 36, 29, 0.35); }
.product-card__link:hover img, .product-card__link:focus-visible img { transform: scale(1.07); }
.product-card__link:hover .product-card__name,
.product-card__link:focus-visible .product-card__name { background-size: 100% 1px; color: var(--green); }

.best__cta { margin-top: clamp(3rem, 1.5rem + 5vw, 6rem); text-align: center; }
.btn {
  position: relative; display: inline-block;
  padding: 0.8rem 1.4rem;
  font-size: var(--fs-small); line-height: 1.4; letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--peach); background: var(--green);
  overflow: hidden; isolation: isolate;
  transition: color 0.4s ease;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--green-ink);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.55s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left; }
.btn:hover, .btn:focus-visible { color: var(--white); }

/* ==========================================================================
   Film
   ========================================================================== */
.film {
  position: relative;
  margin-top: clamp(1.5rem, 3.3vw, 3rem);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  display: grid; place-items: center;
}
.film__media { position: absolute; inset: 0; }
.film__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.film::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.22); pointer-events: none; }

@media (min-width: 640px) { .film { aspect-ratio: 16 / 10; } }
@media (min-width: 1024px) { .film { aspect-ratio: 1440 / 806; } }

.play-btn {
  position: relative; z-index: 1;
  width: clamp(104px, 4rem + 7vw, 164px); aspect-ratio: 1;
  display: grid; place-items: center;
  color: var(--white);
}
.play-btn__ring {
  position: absolute; inset: 0; width: 100%; height: 100%;
  fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 300 58; transform: rotate(-65deg);
  transition: transform 1.2s var(--ease-out), stroke-dasharray 1.2s var(--ease-out);
}
.play-btn__core {
  width: 62%; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white); color: var(--green);
  transition: transform 0.5s var(--ease-out), background-color 0.4s ease, color 0.4s ease;
}
.play-btn__core svg {
  width: 44%;
  fill: currentColor;
  stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round;
}
.play-btn:hover .play-btn__ring, .play-btn:focus-visible .play-btn__ring { transform: rotate(295deg); stroke-dasharray: 358 0; }
.play-btn:hover .play-btn__core, .play-btn:focus-visible .play-btn__core { transform: scale(1.08); background: var(--green); color: var(--white); }

/* ==========================================================================
   Review
   ========================================================================== */
.review {
  --review-pt: clamp(3rem, 1rem + 8vw, 8.75rem);
  margin-top: clamp(4rem, 2rem + 7vw, 9.25rem);
  display: grid;
  background: var(--green);
}
.review__visual {
  position: relative;
  min-height: 320px;
  display: grid; place-items: center;
  overflow: hidden;
}
.review__visual picture { position: absolute; inset: 0; }
.review__visual img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 78%; }
.review__visual::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.32); }
.review__title {
  position: relative; z-index: 1;
  font-size: var(--fs-h2); line-height: 1.17; text-align: center; color: var(--white);
  padding: 2rem;
}

.review__body {
  position: relative;
  padding: var(--review-pt) var(--gutter) clamp(3rem, 2rem + 4vw, 5rem);
  padding-left: calc(var(--gutter) + 3.25rem);
  color: var(--white);
}
.review__quote-mark {
  position: absolute; left: var(--gutter); top: calc(var(--review-pt) + 0.35rem);
  width: 34px; fill: var(--white);
}
.review__quote p { text-wrap: pretty; }
.review__author {
  display: flex; align-items: center; gap: 1rem;
  margin-top: 1.25rem;
  font-weight: 700; color: var(--peach); line-height: 1.5;
}
.review__author::before { content: ""; width: 40px; height: 1px; background: var(--peach); }

@media (min-width: 1024px) {
  .review { grid-template-columns: 58fr 42fr; min-height: 500px; }
  .review__visual { min-height: 0; }
  .review__body { padding-left: calc(3.125rem + 3.6rem); padding-right: clamp(2rem, 7vw, 6.25rem); }
  .review__quote-mark { left: 3.125rem; }
  .review__quote p { text-align: justify; hyphens: auto; }
}

/* ==========================================================================
   Newsletter
   ========================================================================== */
.newsletter { padding-block: calc(var(--section-y) * 1.2) calc(var(--section-y) * 1.1); }

.newsletter__form {
  position: relative;
  max-width: 800px; margin: clamp(2rem, 1.5rem + 2vw, 3rem) auto 0;
  display: flex; flex-direction: column; gap: 1rem;
}
.newsletter__input {
  flex: 1; min-width: 0; height: 64px;
  padding: 0 1.25rem;
  background: transparent;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  color: var(--green-ink);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.newsletter__input::placeholder { color: #8e8e8e; }
.newsletter__input:focus { outline: none; border-bottom-color: var(--green); background: rgba(22, 79, 65, 0.035); }
.newsletter__input:focus-visible { outline: none; box-shadow: inset 0 -1px 0 var(--green); }
.newsletter__input[aria-invalid="true"] { border-bottom-color: #a33a2a; }

.newsletter__submit {
  height: 64px; padding: 0 3rem;
  text-transform: uppercase; letter-spacing: 0.03em;
  color: var(--peach); background: var(--green);
  transition: background-color 0.4s ease, color 0.4s ease;
}
.newsletter__submit:hover, .newsletter__submit:focus-visible { background: var(--green-ink); color: var(--white); }
.newsletter__submit:disabled { cursor: default; background: var(--green); color: var(--peach); opacity: 0.8; }

.newsletter__status { min-height: 2em; font-size: var(--fs-small); text-align: left; color: var(--green); }
.newsletter__status.is-error { color: #a33a2a; }

@media (min-width: 640px) {
  .newsletter__form { flex-direction: row; flex-wrap: wrap; gap: 0; }
  .newsletter__submit { flex: 0 0 auto; width: 193px; padding: 0; }
  .newsletter__status { flex-basis: 100%; margin-top: 0.75rem; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { padding-block: clamp(2.5rem, 4vw, 3.5rem) 2rem; background: var(--white); }
.site-footer__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.brand--footer .brand__mark { width: 25px; }
.brand--footer .brand__name { font-size: 1.5rem; }

.socials { display: flex; gap: 1.9rem; margin-top: 1.75rem; }
.social {
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--green); color: var(--green);
  transition: background-color 0.35s ease, color 0.35s ease, transform 0.35s var(--ease-out);
}
.social svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.social svg .fill { fill: currentColor; stroke: none; }
.social:hover, .social:focus-visible { background: var(--green); color: var(--white); transform: translateY(-3px); }

.site-footer__legal { margin-top: 1.75rem; font-size: var(--fs-small); line-height: 1.6; }
.site-footer__sep { margin-inline: 0.4rem; }

/* ==========================================================================
   Video modal
   ========================================================================== */
.video-modal {
  width: min(92vw, 1100px); max-width: none; max-height: none;
  padding: 0; border: 0; background: transparent; overflow: visible;
}
.video-modal::backdrop { background: rgba(6, 36, 29, 0.86); backdrop-filter: blur(4px); }
.video-modal[open] { animation: modal-in 0.6s var(--ease-out); }
.video-modal[open]::backdrop { animation: fade-in 0.4s ease; }
.video-modal__frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video-modal__frame video, .video-modal__frame iframe { width: 100%; height: 100%; border: 0; }
.video-modal__fallback {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 2rem;
  color: var(--white); text-align: center;
}
.video-modal__close {
  position: absolute; right: 0; top: -3.25rem;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  color: var(--white); border: 1px solid rgba(255, 255, 255, 0.5);
  transition: background-color 0.3s ease, transform 0.4s var(--ease-out);
}
.video-modal__close svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.video-modal__close:hover, .video-modal__close:focus-visible { background: rgba(255, 255, 255, 0.15); transform: rotate(90deg); }

@keyframes modal-in { from { opacity: 0; transform: translateY(24px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ==========================================================================
   Scroll reveals (only when JS is available)
   ========================================================================== */
.js [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity 1s ease var(--delay, 0ms), transform 1.1s var(--ease-out) var(--delay, 0ms);
}
.js [data-reveal="curtain"] {
  opacity: 1; transform: none;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.4s var(--ease-in-out) var(--delay, 0ms);
}
.js [data-reveal="curtain"] img { transform: scale(1.15); transition: transform 1.8s var(--ease-out) var(--delay, 0ms); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-reveal="curtain"].is-visible { clip-path: inset(0 0 0 0); }
.js [data-reveal="curtain"].is-visible img { transform: none; }
.js [data-reveal="curtain"].is-visible:hover img { transform: scale(1.04); transition-delay: 0ms; }

/* ==========================================================================
   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 [data-reveal="curtain"], .js [data-reveal="curtain"] img,
  .js .hero__title .line__inner, .js .hero__clover, .js .hero__lede, .js .discover, .js .hero__media img {
    opacity: 1; transform: none; clip-path: none;
  }
}
