/* ---- Brand font (local, weight 400 only) ----------------------- */
@font-face {
  font-family: "Monument Grotesk";
  src: url("assets/fonts/ABCMonumentGrotesk-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---- Design Tokens -------------------------------------------- */
:root {
  /* Colors */
  --cream:             #FAF7F0;
  --cream-deep:        #F1EBDD;
  --matcha:            #6B8E4E;
  --matcha-deep:       #5A7A40;
  --matcha-bright:     #84A862;
  --forest:            #2F3A2C;
  --forest-700:        #3C4A37;
  --stone:             #C9BBA8;
  --stone-light:       #DED4C4;
  --stone-dark:        #A8997F;
  --charcoal:          #1A1A17;
  --surface-card:      #FFFFFF;
  --text-body:         #43483F;
  --text-muted:        #A8997F;
  --border:            #DED4C4;

  /* Typography */
  --font-display: "Hanken Grotesk", system-ui, sans-serif;
  --font-sans:    "Hanken Grotesk", system-ui, sans-serif;
  --font-mono:    "Spline Sans Mono", ui-monospace, monospace;

  /* Spacing */
  --space-1: 4px;   --space-2: 8px;   --space-3: 12px;
  --space-4: 16px;  --space-5: 24px;  --space-6: 32px;
  --space-7: 48px;  --space-8: 64px;  --space-9: 96px;

  /* Radii */
  --radius-xs: 2px;  --radius-sm: 4px;  --radius-md: 8px;
  --radius-lg: 14px; --radius-xl: 24px; --radius-pill: 999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(47,58,44,0.06);
  --shadow-sm: 0 2px 8px rgba(47,58,44,0.07);
  --shadow-md: 0 8px 24px rgba(47,58,44,0.09);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-standard: cubic-bezier(0.32, 0.08, 0.24, 1);
  --dur-fast: 140ms;
  --dur-base: 240ms;
  --dur-slow: 420ms;
}

/* ---- Reset ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
[hidden] { display: none !important; }
/* kill the double-tap-zoom delay on taps (qty steppers, nav, buttons) */
a, button, summary { touch-action: manipulation; }

/* ---- Base ----------------------------------------------------- */
body {
  background: var(--cream);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

/* ---- Container ------------------------------------------------ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Shared image placeholder --------------------------------- */
.img-placeholder {
  background: var(--stone-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone-dark);
  position: relative;
  overflow: hidden;
}
.img-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 8px,
    rgba(168,153,127,0.08) 8px,
    rgba(168,153,127,0.08) 9px
  );
}

/* ---- Button --------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border: none;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--matcha);
  color: var(--cream);
}
.btn-primary:hover { background: var(--matcha-deep); }

.btn-lg { font-size: 13px; padding: 0 28px; height: 56px; border-radius: var(--radius-sm); }
.btn-md { font-size: 12px; padding: 0 22px; height: 46px; border-radius: var(--radius-sm); }
.btn-full { width: 100%; }

/* ---- Add-to-Cart effect (vanilla port of GetStartedButton) ---- */
.cart-btn-fx { position: relative; overflow: hidden; }
.cart-btn-label {
  margin-right: 28px;
  transition: opacity 0.5s var(--ease-out);
}
/* hover-only: on touch, :hover sticks after a tap and the label vanishes */
@media (hover: hover) {
  .cart-btn-fx:hover .cart-btn-label { opacity: 0; }
  .cart-btn-fx:hover .cart-btn-icon { width: calc(100% - 8px); }
}
.cart-btn-icon {
  position: absolute;
  top: 4px;
  right: 4px;
  bottom: 4px;
  width: 25%;
  display: grid;
  place-items: center;
  border-radius: var(--radius-xs);
  background: rgba(250, 247, 240, 0.15);   /* primary-foreground/15 */
  font-style: normal;
  font-size: 16px;
  line-height: 1;
  transition: width 0.5s var(--ease-out), transform 0.2s var(--ease-out);
}
.cart-btn-fx:active .cart-btn-icon { transform: scale(0.95); }

/* ---- Tag ------------------------------------------------------ */
.tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.tag-matcha {
  background: rgba(107,142,78,0.12);
  color: var(--matcha-deep);
  border: 1px solid rgba(107,142,78,0.25);
}

/* ---- Input ---------------------------------------------------- */
.input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  background: rgba(250,247,240,0.08);
  border: 1px solid rgba(222,212,196,0.35);
  border-radius: var(--radius-sm);
  color: var(--cream);
  outline: none;
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}
.input::placeholder { color: rgba(250,247,240,0.4); }
.input:focus {
  border-color: var(--matcha-bright);
  box-shadow: 0 0 0 2px rgba(107,142,78,0.25);
}

/* ================================================================
   HEADER
================================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(250,247,240,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 18px 24px;
}
.header-logo {
  display: flex;
  align-items: center;
  flex: none;
  text-decoration: none;
}
.header-logo img { height: 48px; width: auto; }

.nav {
  display: flex;
  gap: 30px;
  flex: 1;
}
.nav a {
  position: relative;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest);
  text-decoration: none;
  white-space: nowrap;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -4px;
  height: 1.5px;
  background: var(--matcha);
  transition: right 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav a:hover::after { right: 0; }

.cart-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  white-space: nowrap;
  text-decoration: none;
  flex: none;
}
.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--matcha);
  color: var(--cream);
  font-size: 11px;
  font-weight: 500;
  transition: transform var(--dur-fast) var(--ease-out);
}
.cart-badge.bump {
  animation: badge-bump 0.3s var(--ease-out);
}
@keyframes badge-bump {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* ---- Mobile nav toggle (hamburger) ----------------------------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin: -10px -10px -10px 0;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  flex: none;
}
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 1px;
  background: var(--forest);
  transition: transform var(--dur-base) var(--ease-out),
              opacity var(--dur-fast) var(--ease-out);
}
.header.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.header.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================================================
   PROMO BAR
================================================================ */
.promo-bar {
  background: var(--forest);
  color: var(--cream);
  text-align: center;
  padding: 11px 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ================================================================
   HERO
================================================================ */
.hero {
  position: relative;
  width: 100%;
  height: clamp(540px, 74vh, 760px);
  overflow: hidden;
  background: var(--forest);
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 100% 50%;
}
.hero-img-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    95deg,
    rgba(26,26,23,0.62) 0%,
    rgba(26,26,23,0.28) 44%,
    rgba(26,26,23,0) 72%
  );
  pointer-events: none;
}
.hero-content {
  position: relative;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 64px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero-h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--cream);
  max-width: 14ch;
}
/* ---- Rotating headline word (vanilla port of animated-hero) ---- */
.hero-static { display: block; }
.hero-rotate {
  position: relative;
  display: block;
  height: 1.05em;
  overflow: hidden;
}
.hero-word {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  color: var(--matcha-bright);
  transform: translateY(115%);   /* default: waiting below */
  opacity: 0;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.5s ease;
  will-change: transform, opacity;
}
.hero-word.is-active {            /* current word: in place */
  transform: translateY(0);
  opacity: 1;
}
.hero-word.is-prev {             /* already shown: slid up and out */
  transform: translateY(-115%);
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  .hero-word { transition: opacity 0.3s ease; }
  .hero-word, .hero-word.is-prev { transform: none; }
  .hero-word:not(.is-active) { opacity: 0; }
}
.hero-cta { margin-top: 20px; }

/* ---- Metal button (vanilla port of MetalButton, "default" variant) -- */
.metal-btn {
  position: relative;
  display: inline-flex;
  border-radius: 8px;
  padding: 1.25px;
  background: linear-gradient(to bottom, #000, #A0A0A0);   /* outer bezel */
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  transform: translateY(0) scale(1);
  transform-origin: center center;
  transition: all 250ms cubic-bezier(0.1, 0.4, 0.2, 1);
  will-change: transform;
}
.metal-btn:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
.metal-btn:active {
  transform: translateY(2.5px) scale(0.99);
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.metal-btn__inner {
  position: absolute;
  inset: 1px;
  border-radius: 7px;
  background: linear-gradient(to bottom, #FAFAFA, #3E3E3E, #E5E5E5); /* inner plate */
  transition: all 250ms cubic-bezier(0.1, 0.4, 0.2, 1);
  pointer-events: none;
}
.metal-btn:hover .metal-btn__inner { filter: brightness(1.05); }
.metal-btn__btn {
  position: relative;
  z-index: 10;
  margin: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 8px 28px;
  border: none;
  border-radius: 6px;
  background: linear-gradient(to bottom, #B9B9B9, #969696);  /* button face */
  color: #fff;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 -1px 0 rgb(80 80 80);
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  outline: none;
  transform: scale(1);
  transform-origin: center center;
  transition: all 250ms cubic-bezier(0.1, 0.4, 0.2, 1);
}
.metal-btn:hover .metal-btn__btn { filter: brightness(1.02); }
.metal-btn:active .metal-btn__btn { transform: scale(0.97); }
.metal-btn__label { position: relative; z-index: 1; }
/* hover sheen */
.metal-btn__btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: linear-gradient(to top, transparent, rgba(255,255,255,0.06));
  opacity: 0;
  transition: opacity 250ms;
  pointer-events: none;
}
.metal-btn:hover .metal-btn__btn::after { opacity: 1; }
/* press shine */
.metal-btn__btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: linear-gradient(to right, transparent, rgba(245,245,245,0.9), transparent);
  opacity: 0;
  transition: opacity 300ms;
  pointer-events: none;
}
.metal-btn:active .metal-btn__btn::before { opacity: 0.2; }

/* ---- Magnetize button (vanilla port of MagnetizeButton) ------- */
/* Dark-green button + particle dots that spring to center on hover */
.magnetize-btn {
  position: relative;
  overflow: visible;
  background: var(--forest);          /* dark green */
  color: var(--cream);
}
.magnetize-btn:hover { background: var(--forest-700); }
.magnetize-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.magnetize-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--matcha-deep);     /* dark green dots */
  opacity: 0.4;
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.3s ease;
  will-change: transform;
}
.magnetize-btn.is-attracting .magnetize-dot { opacity: 1; }
.magnetize-label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.magnetize-icon {
  transition: transform 0.3s var(--ease-out);
}
.magnetize-btn.is-attracting .magnetize-icon { transform: scale(1.1); }

/* ================================================================
   PROVENANCE STRIP
================================================================ */
.provenance {
  background: var(--cream-deep);
  border-bottom: 1px solid var(--border);
}
.provenance-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--forest);
}

/* ================================================================
   PREMIUM BLEND
================================================================ */
.blend {
  position: relative;
  width: 100%;
  height: clamp(440px, 58vh, 580px);
  overflow: hidden;
  background: var(--forest);
}
.blend-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blend-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    75deg,
    rgba(47,58,44,0.7) 0%,
    rgba(47,58,44,0.3) 50%,
    rgba(47,58,44,0.05) 80%
  );
  pointer-events: none;
}
.blend-content {
  position: relative;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.blend-h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--cream);
}
.blend-body {
  color: var(--cream);
  opacity: 0.9;
  font-size: 17px;
  line-height: 1.55;
  max-width: 42ch;
  margin: 20px 0 28px;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid rgba(222,212,196,0.28);
  padding-top: 28px;
  margin-top: 36px;
  max-width: 560px;
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-value {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--cream);
}
.stat-value span {
  font-size: 0.55em;
  letter-spacing: -0.01em;
  opacity: 0.85;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(250,247,240,0.6);
}

/* ================================================================
   PRODUCTS
================================================================ */
.products-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 24px 96px;
}
.section-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 640px;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--matcha-deep);
}
.section-h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--forest);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
/* ---- Interactive product card (vanilla port of Card hover) ---- */
.product-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateY(0) scale(1);
  /* spring-like settle (cubic approximating stiffness 95 / damping 19) */
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.product-card:hover,
.product-card:focus-within {
  transform: translateY(-5px) scale(1.006);
  border-color: rgba(47, 58, 44, 0.18);
  box-shadow: 0 20px 42px -30px rgba(15, 23, 42, 0.22),
              0 0 0 1px rgba(15, 23, 42, 0.06),
              var(--shadow-md);
}
.product-media {
  position: relative;
  width: 100%;
  /* Product photos are 3:2 (800x533); matching the box keeps them uncropped */
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-xs);
  overflow: hidden;
}
.product-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Image swap on hover (vanilla port of ProductCard): cover shown by
   default, main product photo cross-fades in on hover/focus. */
.product-img-main {
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
}
.product-img-cover {
  opacity: 1;
  transition: opacity 0.45s var(--ease-out);
}
.product-card:hover .product-img-main,
.product-card:focus-within .product-img-main,
.product-card.is-hovering .product-img-main { opacity: 1; }
.product-card:hover .product-img-cover,
.product-card:focus-within .product-img-cover,
.product-card.is-hovering .product-img-cover { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .product-card { transition: box-shadow 0.3s ease, border-color 0.3s ease; }
  .product-card:hover, .product-card:focus-within { transform: none; }
  .product-img-main, .product-img-cover { transition: opacity 0.2s ease; }
}
.product-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.product-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--forest);
}
.product-desc {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}
.product-price {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
  color: var(--forest);
  margin-top: 6px;
}

/* ================================================================
   VIDEO TUTORIAL
================================================================ */
.video-section {
  background: var(--cream-deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.video-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}
.video-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 640px;
  margin-bottom: 36px;
}
.video-frame {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--forest);
}
.video-frame video {
  display: block;
  width: 100%;
  height: auto;
}

/* ================================================================
   PLANET BAND (dark variant)
================================================================ */
.planet-band {
  background: var(--forest);
  color: var(--cream);
}
.planet-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.planet-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.planet-whisk { height: 40px; width: auto; opacity: 0.9; align-self: flex-start; }
.planet-h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--cream);
}
.planet-body {
  color: var(--cream);
  opacity: 0.85;
  font-size: 15px;
  line-height: 1.45;
  max-width: 46ch;
}
.planet-cta { margin-top: 4px; }
.planet-img {
  width: 100%;
  height: 200px;
  border-radius: 6px;
  object-fit: cover;
}

/* ================================================================
   INSTAGRAM
================================================================ */
.instagram-section {
  background: var(--cream-deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.instagram-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}
.instagram-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.instagram-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.instagram-h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--forest);
}
.instagram-link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--matcha-deep);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.instagram-cell {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: opacity var(--dur-base) var(--ease-out);
}
.instagram-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.instagram-cell:hover { opacity: 0.85; }

/* ================================================================
   REVIEWS
================================================================ */
.reviews-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5px 24px;
}
.reviews-header {
  max-width: 640px;
  margin-bottom: 20px;
}
/* ---- Testimonials marquee (vanilla port of Marquee component) -- */
.reviews-marquee {
  width: 100%;
  overflow: hidden;
}
.reviews-marquee-inner {
  position: relative;
  display: flex;
  overflow: hidden;
  padding: 8px 0;
}
.reviews-track {
  display: flex;
  width: max-content;
  gap: 24px;
  animation: reviews-marquee var(--duration, 30s) linear infinite;
}
.reviews-marquee:hover .reviews-track {
  animation-play-state: paused;   /* pauseOnHover */
}
@keyframes reviews-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 12px)); } /* -50% + half the 24px gap */
}
@media (prefers-reduced-motion: reduce) {
  .reviews-track { animation: none; }
}
.review-card {
  flex: 0 0 auto;
  width: 340px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.review-stars {
  color: var(--matcha);
  letter-spacing: 2px;
  font-size: 14px;
}
.review-quote {
  font-size: 15px;
  line-height: 1.45;
  color: var(--forest);
  flex: 1;
}
.review-attribution {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: auto;
}

/* ================================================================
   FOOTER
================================================================ */
.footer {
  background: var(--forest);
  color: var(--cream);
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 24px 40px;
  display: grid;
  grid-template-columns: 1.4fr 1.4fr;
  gap: 48px;
}
.footer-brand { display: flex; flex-direction: column; gap: 18px; }
.footer-wordmark { height: 26px; width: auto; align-self: flex-start; }
.footer-tagline {
  color: var(--cream);
  opacity: 0.8;
  font-size: 14px;
  line-height: 1.6;
  max-width: 30ch;
}
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col-header {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--matcha-bright);
  margin-bottom: 4px;
}
.footer-col a {
  color: var(--cream);
  opacity: 0.85;
  text-decoration: none;
  font-size: 14px;
  transition: opacity var(--dur-fast) var(--ease-out);
}
.footer-col a:hover { opacity: 1; }
.footer-newsletter { display: flex; flex-direction: column; gap: 16px; }
.footer-newsletter-header {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--matcha-bright);
}
.footer-sub {
  border-top: 1px solid rgba(222,212,196,0.18);
}
.footer-sub-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.7;
}

/* ================================================================
   SCROLL REVEAL (optional calm fade+rise)
================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 900px) {
  .header-inner { gap: 20px; }
  /* nav collapses into a dropdown panel under the sticky header */
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 6px 0 10px;
  }
  .header.nav-open .nav { display: flex; }
  .nav a { padding: 13px 24px; }
  .nav a::after { content: none; }
  .nav-toggle { display: inline-flex; }
  .cart-btn { margin-left: auto; }
  .products-grid   { grid-template-columns: 1fr 1fr; }
  .reviews-grid    { grid-template-columns: 1fr 1fr; }
  .planet-inner    { grid-template-columns: 1fr; gap: 40px; }
  .planet-img      { height: 280px; }
  .footer-grid     { grid-template-columns: 1fr 1fr; }
  .instagram-grid  { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  /* contain leaves a large empty band on narrow screens; crop instead,
     keeping the right-of-center subject in frame */
  .hero-img { object-fit: cover; object-position: 70% 50%; }
}
@media (max-width: 600px) {
  .products-grid   { grid-template-columns: 1fr; }
  .reviews-grid    { grid-template-columns: 1fr; }
  .footer-grid     { grid-template-columns: 1fr; }
  .instagram-grid  { grid-template-columns: repeat(2, 1fr); }
  .hero-h1         { font-size: clamp(2rem, 10vw, 2.6rem); }
  /* let the blend section grow with its text instead of overflowing */
  .blend { height: auto; min-height: clamp(440px, 58vh, 580px); }
  .blend-content { padding: 48px 24px; }
}

/* iOS Safari zooms into any focused input with a font under 16px */
@media (pointer: coarse) {
  .input, .field-input { font-size: 16px; }
  /* bigger touch targets */
  .cart-qty-btn { width: 40px; height: 40px; }
  .cart-line-remove { padding: 10px 0; }
}

/* ================================================================
   CART + CHECKOUT
================================================================ */
.cart-page,
.checkout-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}
.cart-page .section-header,
.checkout-page .section-header { margin-bottom: 44px; }

/* ---- Two-column layouts --------------------------------------- */
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 56px;
  align-items: start;
}
.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 56px;
  align-items: start;
}

/* ---- Cart line items ------------------------------------------ */
.cart-items { display: flex; flex-direction: column; }
.cart-line {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto auto;
  gap: 22px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.cart-line:first-child { padding-top: 0; }
.cart-line-media {
  width: 84px;
  height: 84px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--cream-deep);
  flex: none;
}
.cart-line-media img { width: 100%; height: 100%; object-fit: cover; }
.cart-line-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cart-line-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--forest);
}
.cart-line-unit {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.cart-line-total {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--forest);
  text-align: right;
  min-width: 92px;
}
.cart-line-remove {
  grid-column: 2 / -1;
  justify-self: start;
  margin-top: -6px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--dur-fast) var(--ease-out);
}
.cart-line-remove:hover { color: var(--matcha-deep); }

/* ---- Quantity stepper ----------------------------------------- */
.cart-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface-card);
}
.cart-qty-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--forest);
  border-radius: var(--radius-pill);
  transition: background var(--dur-fast) var(--ease-out);
}
.cart-qty-btn:hover { background: var(--cream-deep); }
.cart-qty-value {
  min-width: 30px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--forest);
}

/* ---- Order summary card --------------------------------------- */
.cart-summary,
.checkout-summary {
  position: sticky;
  top: 96px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 28px;
}
.cart-summary-title {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--matcha-deep);
  margin-bottom: 20px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-body);
}
.summary-row span:last-child { color: var(--forest); }
.summary-total {
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 16px;
  font-weight: 500;
}
.summary-total span { color: var(--forest) !important; }
.cart-summary-note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 16px 0 20px;
  line-height: 1.5;
}
.cart-summary .btn-full,
.checkout-summary .btn-full { margin-top: 4px; }
.cart-continue {
  display: block;
  text-align: center;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.cart-continue:hover { color: var(--matcha-deep); }

/* ---- Empty state ---------------------------------------------- */
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 72px 24px 96px;
}
.cart-empty-mark { font-size: 56px; line-height: 1; }
.cart-empty-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  color: var(--forest);
}
.cart-empty-body {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 360px;
}
.cart-empty .btn { margin-top: 8px; }

/* ---- Checkout form -------------------------------------------- */
.checkout-form { display: flex; flex-direction: column; gap: 36px; }
.checkout-fieldset { border: none; padding: 0; margin: 0; }
.checkout-legend {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--matcha-deep);
  margin-bottom: 18px;
  padding: 0;
}
.field-grid { display: flex; flex-direction: column; gap: 16px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-body);
}
.field-input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--forest);
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}
.field-input::placeholder { color: var(--text-muted); }
.field-input:focus {
  border-color: var(--matcha-bright);
  box-shadow: 0 0 0 2px rgba(107, 142, 78, 0.18);
}
.checkout-note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  line-height: 1.6;
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkout-error {
  font-size: 14px;
  line-height: 1.5;
  color: #b3261e;
  background: #fdeceb;
  border: 1px solid #f4c7c3;
  border-radius: 8px;
  padding: 12px 14px;
}

/* ---- Promo code ----------------------------------------------- */
.promo {
  padding: 6px 0 18px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.promo .field-label { display: block; margin-bottom: 8px; }
.promo-row { display: flex; gap: 8px; }
.promo-input {
  flex: 1 1 auto;
  min-width: 0;                 /* let the input shrink beside the button */
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.promo-input::placeholder { text-transform: none; letter-spacing: normal; }
.promo-input:disabled { opacity: 0.65; cursor: default; }
.promo-apply {
  flex: 0 0 auto;
  height: 48px;                 /* match .field-input height */
  background: var(--forest);
  color: var(--cream);
}
.promo-apply:hover { background: var(--matcha-deep); }
.promo-msg {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.5;
}
.promo-msg--ok  { color: var(--matcha-deep); }
.promo-msg--err { color: #b3261e; }
.summary-row.summary-discount span:last-child { color: var(--matcha-deep); }

/* ---- Checkout summary line items ------------------------------ */
.checkout-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.checkout-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}
.checkout-item-media {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--cream-deep);
}
.checkout-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm); /* radius on the img so the qty badge isn't clipped */
}
.checkout-item-qty {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  background: var(--forest);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 11px;
}
.checkout-item-name {
  font-size: 14px;
  color: var(--forest);
  line-height: 1.35;
  min-width: 0;
}
.checkout-item-price {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--forest);
}

/* ---- Order confirmation --------------------------------------- */
.order-confirmation {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  max-width: 560px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.order-check {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  background: var(--matcha);
  color: var(--cream);
  font-size: 30px;
  margin-bottom: 8px;
}
.order-confirmation-body {
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.65;
}
.order-confirmation .btn { margin-top: 12px; }

/* ---- Auth: status message (shared) ---------------------------- */
.auth-msg {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.5;
}
.auth-msg--ok  { color: var(--matcha-deep); }
.auth-msg--err { color: #b3261e; }

/* ---- Confirmation: "save my info" opt-in --------------------- */
.save-account {
  max-width: 460px;
  margin: 8px auto 0;
  padding: 28px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: left;
}
.save-account-title {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  color: var(--forest);
  margin: 0 0 8px;
}
.save-account-body {
  color: var(--text-body);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 20px;
}
.save-account-form { display: flex; flex-direction: column; gap: 16px; }
.save-account-actions { display: flex; flex-direction: column; gap: 4px; }
.save-account-skip { margin-top: 8px; cursor: pointer; }
.save-account-saved {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--matcha-deep);
}

/* ---- Account page -------------------------------------------- */
.account-card {
  max-width: 460px;
  margin: 0 auto;
  padding: 28px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.account-intro {
  color: var(--text-body);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 20px;
}
.account-form { display: flex; flex-direction: column; gap: 16px; }
.account-signout {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
}

/* ---- Account: order history ---------------------------------- */
.account-orders {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.account-orders-title {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--forest);
  margin: 0 0 16px;
}
.order-history-empty {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}
.order-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.order-card + .order-card { margin-top: 10px; }
.order-card-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.order-card-no {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--forest);
}
.order-card-date {
  font-size: 12px;
  color: var(--text-muted);
}
.order-card-total {
  margin-left: auto;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--forest);
}
.order-card-items {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-body);
}

/* ---- Add-to-cart toast ---------------------------------------- */
.cart-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  max-width: 320px;
  background: var(--forest);
  color: var(--cream);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-size: 13px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}
.cart-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.cart-toast a {
  color: var(--matcha-bright);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.cart-toast a:hover { text-decoration: underline; }

@media (max-width: 860px) {
  /* minmax(0,1fr): a nowrap button in the summary card must not be able
     to widen the column past the viewport on narrow phones */
  .cart-layout,
  .checkout-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .cart-summary,
  .checkout-summary { position: static; }
  .checkout-grid { display: flex; flex-direction: column-reverse; }
}
@media (max-width: 560px) {
  /* image + name on row 1, stepper + total on row 2, remove on row 3 —
     keeps the stepper from squeezing past the viewport on narrow phones */
  .cart-line {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 14px 16px;
  }
  .cart-line-media { width: 64px; height: 64px; grid-row: 1; }
  .cart-line-info { grid-column: 2 / -1; grid-row: 1; }
  .cart-qty { grid-column: 1 / 3; grid-row: 2; justify-self: start; align-self: center; }
  .cart-line-total { grid-column: 3; grid-row: 2; justify-self: end; align-self: center; min-width: 0; }
  .cart-line-remove { grid-column: 1 / -1; grid-row: 3; margin-top: -2px; }
  .field-row { grid-template-columns: 1fr; }
  .cart-toast { left: 16px; right: 16px; max-width: none; }
  /* keep long nowrap labels (“Proceed to checkout”) inside 320px screens */
  .btn-lg { font-size: 12px; padding: 0 18px; }
}

