/* ==========================================================================
   Altura Arabica · Homepage
   Built from the OpenPencil design (Desktop 1440 / Mobile 390 / Style Guide)
   ========================================================================== */

:root {
  /* Brand palette */
  --espresso: #3B2A20;
  --roasted-bean: #6F4E37;
  --mocha: #A67B5B;
  --olive-leaf: #6B7A3A;
  --sage-olive: #A3A97B;
  --parchment: #F4EDE1;
  --crema: #E8D9C0;

  /* AA support tokens */
  --espresso-deep: #1E140E;
  --body-text: #4A3628;
  --olive-deep: #55622C;

  /* Interaction states (hover = 10% darker) */
  --mocha-hover: #956E52;
  --olive-hover: #606E34;
  --espresso-hover: #35261D;

  --surface: #FBF7EF;

  /* Type */
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Motion (from the Motion & Interaction Spec) */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --reveal-dur: 600ms;
  --stagger: 100ms;
  --lift: -4px;

  --container: 1200px;
  --gutter: clamp(16px, 5vw, 120px);
  --radius: 20px;
  --shadow-sm: 0 4px 14px rgba(30, 20, 14, 0.08);
  --shadow-md: 0 16px 36px rgba(30, 20, 14, 0.16);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--parchment);
  color: var(--body-text);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, blockquote { margin: 0; }

h1, h2, h3 {
  font-family: var(--font-serif);
  color: var(--espresso);
  font-weight: 700;
  line-height: 1.08;
}
h1 { font-size: clamp(44px, 6vw, 72px); letter-spacing: -0.02em; }
h2 { font-size: clamp(34px, 4vw, 48px); letter-spacing: -0.015em; }
h3 { font-size: 28px; letter-spacing: -0.01em; line-height: 1.2; }

:focus-visible {
  outline: 3px solid var(--olive-deep);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--espresso);
  color: var(--parchment);
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

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

.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.icon { width: 16px; height: 16px; flex: none; }

/* ---------- Labels ---------- */
.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--roasted-bean);
  margin-bottom: 14px;
}
.eyebrow--dark { color: var(--espresso); }
.eyebrow--rule { display: flex; align-items: center; gap: 14px; }
.eyebrow--rule::before { content: ""; width: 40px; height: 1.5px; background: currentColor; }

.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--olive-deep);
}
.tag--muted { color: var(--roasted-bean); }

.lead { font-size: 18px; color: var(--body-text); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--mocha);
  --fg: var(--espresso-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font: 600 16px/1 var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out),
              background-color 220ms var(--ease-out), color 220ms var(--ease-out);
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(var(--lift)); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn--mocha:hover { --bg: var(--mocha-hover); --fg: #FFFFFF; }

.btn--outline { --bg: transparent; --fg: var(--espresso); border-color: var(--espresso); box-shadow: none; }
.btn--outline:hover { --bg: var(--espresso); --fg: var(--parchment); }

.btn--olive { --bg: var(--olive-leaf); --fg: #FFFFFF; }
.btn--olive:hover { --bg: var(--olive-hover); }

.btn--espresso { --bg: var(--espresso); --fg: var(--parchment); }
.btn--espresso:hover { --bg: var(--espresso-hover); }

.btn--sm { min-height: 44px; padding: 0 20px; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.btn--xs { min-height: 38px; padding: 0 16px; font-size: 14px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
  color: var(--espresso);
  text-decoration: none;
}
.text-link .icon { transition: transform 220ms var(--ease-out); }
.text-link:hover .icon { transform: translateX(4px); }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ==========================================================================
   01 · Sticky nav
   ========================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background-color 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  width: min(var(--container), 100% - 2 * var(--gutter));
  height: 88px;
  margin-inline: auto;
  transition: height 300ms var(--ease-out);
}
.nav.is-solid {
  background: var(--parchment);
  box-shadow: 0 6px 24px rgba(30, 20, 14, 0.12);
}
.nav.is-solid .nav__inner { height: 72px; }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--espresso); }
.logo__mark { width: 30px; height: 30px; }
.logo__text { display: flex; flex-direction: column; }
.logo__name { font-family: var(--font-serif); font-weight: 700; font-size: 26px; line-height: 1; }
.logo__sub { font-size: 10px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--roasted-bean); margin-top: 4px; }

.nav__links { display: flex; gap: 40px; margin-inline: auto; }
.nav__links a {
  position: relative;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--espresso);
  text-decoration: none;
  padding: 6px 0;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--mocha);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease-out);
}
.nav__links a:hover::after { transform: scaleX(1); }

.nav__toggle {
  display: none;
  width: 48px; height: 48px;
  margin-left: auto;
  border: 0;
  border-radius: 50%;
  background: var(--mocha);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav__toggle span { display: block; width: 18px; height: 2px; background: var(--espresso-deep); border-radius: 2px; transition: transform 220ms, opacity 220ms; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  display: flex;
  flex-direction: column;
  padding: 8px 20px 24px;
  background: var(--parchment);
  box-shadow: 0 12px 24px rgba(30, 20, 14, 0.12);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  padding: 14px 0;
  border-bottom: 1px solid var(--crema);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--espresso);
  text-decoration: none;
}

/* ==========================================================================
   02 · Parallax hero
   ========================================================================== */
.hero {
  position: relative;
  height: clamp(720px, 100vh, 1000px);
  overflow: hidden;
  background: var(--crema);
  isolation: isolate;
}
.hero__layer {
  position: absolute;
  inset: 0;
  will-change: transform;
  pointer-events: none;
}
.hero__back { z-index: 0; }
.hero__back img { width: 100%; height: 110%; object-fit: cover; object-position: center 40%; }
.hero__wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(244, 237, 225, 0.93) 0%, rgba(244, 237, 225, 0.82) 38%, rgba(244, 237, 225, 0) 70%);
}

.hero__mid { z-index: 1; }
.branch { position: absolute; }
.branch--top { width: 40.4%; right: -3%; top: 7.8%; }
.branch--bottom { width: 34%; left: -2%; bottom: 7%; }

.hero__front { z-index: 3; }
.foreground {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  aspect-ratio: 1441.5 / 322;
}
.foreground > img { width: 100%; height: 100%; }

.steam {
  position: absolute;
  left: 74.4%;
  top: -66.5%;
  width: 7.4%;
  height: auto;
  overflow: visible;
}
.wisp { animation: steam 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
.wisp--2 { animation-delay: -1.1s; }
.wisp--3 { animation-delay: -2.2s; }
@keyframes steam {
  0%   { opacity: 0;   translate: 0 12px;  scale: 0.96 1; }
  35%  { opacity: 1; }
  70%  { opacity: 0.8; }
  100% { opacity: 0;   translate: 3px -26px; scale: 1.06 1.08; }
}

.hero__copy {
  position: relative;
  z-index: 2;
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
  padding-top: clamp(150px, 22vh, 232px);
  will-change: transform, opacity;
  transform-origin: left center;
}
.hero__copy h1 { margin-bottom: 26px; }
.hero__sub { max-width: 34ch; font-size: 18px; color: var(--body-text); margin-bottom: 36px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 16px; }

/* Hero entrance (page load) */
.js .hero__copy > * { opacity: 0; transform: translateY(40px); }
.js.is-loaded .hero__copy > * {
  opacity: 1;
  transform: none;
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
}
.js.is-loaded .hero__copy > *:nth-child(2) { transition-delay: 100ms; }
.js.is-loaded .hero__copy > *:nth-child(3) { transition-delay: 200ms; }
.js.is-loaded .hero__copy > *:nth-child(4) { transition-delay: 300ms; }

.scroll-cue {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 22px;
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--parchment);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  animation: bob 1.6s ease-in-out infinite;
}
.scroll-cue svg { width: 16px; height: 16px; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ==========================================================================
   Shared section scaffolding
   ========================================================================== */
.section { position: relative; padding: clamp(80px, 10vw, 140px) 0; overflow: hidden; }
.section-head { max-width: 640px; margin: 0 auto 64px; text-align: center; }
.section-head h2 { margin-bottom: 18px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* Floating beans & leaves (drift on scroll + gentle sway) */
.float {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}
.float--bean { width: 40px; height: 40px; }
.float--leaf { width: 58px; height: 58px; }
.float > use { animation: sway 7s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes sway { 0%, 100% { rotate: -8deg; } 50% { rotate: 8deg; } }

/* ==========================================================================
   03 · The Arabica Difference
   ========================================================================== */
.difference { background: var(--parchment); }
.difference .container { position: relative; z-index: 1; }
.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px 24px 36px;
  background: var(--surface);
  border: 1px solid var(--crema);
  border-radius: var(--radius);
  text-align: center;
  transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}
.feature:hover { transform: translateY(var(--lift)); box-shadow: var(--shadow-md); }
.feature img {
  width: 100%;
  height: auto;
  aspect-ratio: 7 / 4;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 8px;
}
.feature p { font-size: 17px; }
.feature .tag { margin-top: auto; padding-top: 4px; }

/* ==========================================================================
   04 / 07 · Parallax bands
   ========================================================================== */
.band { position: relative; overflow: hidden; isolation: isolate; }
.band__bg { position: absolute; inset: -18% 0; z-index: -2; will-change: transform; }
.band__bg img { width: 100%; height: 100%; object-fit: cover; }
.band__overlay { position: absolute; inset: 0; z-index: -1; }
.band__overlay--light { background: rgba(59, 42, 32, 0.35); }
.band__overlay--dark { background: rgba(30, 20, 14, 0.72); }

.origins { min-height: 820px; display: flex; align-items: center; padding: 96px 0; }
.origins__inner { display: flex; justify-content: flex-end; align-items: flex-end; min-height: 628px; position: relative; }

.photo-credit {
  position: absolute;
  left: 0;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(30, 20, 14, 0.82);
  color: var(--parchment);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.photo-credit svg { width: 14px; height: 14px; }
.photo-credit a { text-decoration: underline; text-underline-offset: 2px; }

.origins-card {
  width: min(520px, 100%);
  padding: 48px 48px 40px;
  background: var(--parchment);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(30, 20, 14, 0.28);
  align-self: center;
}
.origins-card h2 { margin-bottom: 28px; }
.origin-list { border-top: 1px solid var(--crema); margin-bottom: 28px; }
.origin-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--crema);
}
.origin-list h3 { font-size: 22px; margin-bottom: 4px; }
.origin-list .tag { color: var(--roasted-bean); font-size: 12px; }
.origin-list p { font-size: 15px; text-align: right; max-width: 18ch; }

/* ==========================================================================
   05 · Featured Beans
   ========================================================================== */
.beans { background: var(--sage-olive); }
.beans .container { position: relative; z-index: 1; }
.beans__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
}
.beans__head h2 { margin-bottom: 10px; }
.beans__head p { color: var(--espresso-deep); }

.product {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--crema);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}
.product:hover { transform: translateY(var(--lift)); box-shadow: 0 20px 40px rgba(30, 20, 14, 0.22); }
.product img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; transition: transform 600ms var(--ease-out); }
.product:hover img { transform: scale(1.04); }
.product__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; }
.product h3 { font-size: 26px; }
.roast { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--espresso); }
.dots {
  --n: 3;
  width: 58px;
  height: 8px;
  background:
    radial-gradient(circle 4px at 4px 50%, var(--espresso) 98%, transparent) 0 0 / 12.5px 8px repeat-x;
  -webkit-mask: linear-gradient(90deg, #000 calc(var(--n) * 12.5px - 1px), rgba(0,0,0,0.3) 0);
          mask: linear-gradient(90deg, #000 calc(var(--n) * 12.5px - 1px), rgba(0,0,0,0.3) 0);
}
.notes { font-size: 15px; min-height: 48px; }
.product__foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; }
.price { font-family: var(--font-serif); font-weight: 700; font-size: 24px; color: var(--espresso); }

/* ==========================================================================
   06 · From Cherry to Cup
   ========================================================================== */
.journey { background: var(--parchment); }
.journey .container { position: relative; z-index: 1; }
.timeline {
  --line: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  counter-reset: step;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--mocha);
  transform: scaleX(var(--line));
  transform-origin: left;
}
.step { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.step__icon {
  display: grid;
  place-items: center;
  width: 80px; height: 80px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--crema);
  border: 2px solid var(--mocha);
  transition: transform 300ms var(--ease-out), background-color 300ms;
}
.step__icon svg { width: 34px; height: 34px; }
.step:hover .step__icon { transform: translateY(var(--lift)); background: #EFE3CF; }
.step h3 { font-size: 28px; }
.step p { font-size: 16px; max-width: 22ch; }

/* ==========================================================================
   07 · Testimonial
   ========================================================================== */
.testimonial { padding: clamp(110px, 14vw, 180px) 0; }
.quote { width: min(860px, 100% - 2 * var(--gutter)); margin-inline: auto; text-align: center; color: var(--parchment); }
.quote__mark { display: block; font-family: var(--font-serif); font-size: 96px; line-height: 0.6; color: var(--mocha); margin-bottom: 18px; }
.quote blockquote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1.4;
  color: var(--parchment);
  margin-bottom: 32px;
}
.quote figcaption {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--crema);
}
.quote figcaption span { width: 40px; height: 1px; background: var(--mocha); }

/* ==========================================================================
   08 · Newsletter
   ========================================================================== */
.newsletter { background: var(--crema); }
.newsletter .container { position: relative; z-index: 1; }
.news-card {
  width: min(760px, 100%);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 64px);
  background: var(--parchment);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.news-card__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--crema); margin-bottom: 16px; }
.news-card__icon svg { width: 24px; height: 24px; }
.news-card h2 { margin-bottom: 16px; }
.news-card .lead { max-width: 52ch; margin: 0 auto 32px; }
.news-form { display: flex; gap: 12px; max-width: 560px; margin: 0 auto 16px; }
.news-form__field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  min-height: 52px;
  background: #FFFFFF;
  border: 1.5px solid var(--roasted-bean);
  border-radius: 999px;
  color: var(--roasted-bean);
}
.news-form__field:focus-within { outline: 3px solid var(--olive-deep); outline-offset: 2px; }
.news-form__field svg { width: 18px; height: 18px; flex: none; }
.news-form__field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: 400 16px var(--font-sans);
  color: var(--espresso);
}
.news-form__field input::placeholder { color: #7A5E4B; }
.fine { font-size: 14px; color: var(--roasted-bean); }
.fine.is-success { color: var(--olive-deep); font-weight: 600; }
.fine.is-error { color: #8E2220; font-weight: 600; }

/* ==========================================================================
   09 · Footer
   ========================================================================== */
.footer { background: var(--espresso); color: var(--crema); padding: 88px 0 40px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(232, 217, 192, 0.18); }
.logo--light { color: var(--parchment); }
.logo--light .logo__sub { color: var(--sage-olive); }
.footer__brand p { font-size: 15px; margin: 20px 0 24px; max-width: 32ch; }
.socials { display: flex; gap: 12px; }
.socials a {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid rgba(232, 217, 192, 0.4);
  border-radius: 50%;
  color: var(--parchment);
  transition: background-color 220ms, color 220ms, transform 220ms var(--ease-out);
}
.socials a:hover { background: var(--parchment); color: var(--espresso); transform: translateY(var(--lift)); }
.socials svg { width: 20px; height: 20px; }
.footer h2 {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-olive);
  margin-bottom: 18px;
}
.footer nav li + li { margin-top: 10px; }
.footer nav a, .footer__bottom a { font-size: 15px; text-decoration: none; color: var(--parchment); }
.footer nav a:hover, .footer__bottom a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer address, .footer__visit p { font-style: normal; font-size: 15px; color: var(--parchment); margin-bottom: 14px; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 28px; font-size: 14px; }
.footer__bottom ul { display: flex; gap: 24px; }
.credits { margin-top: 20px; font-size: 12px; color: rgba(232, 217, 192, 0.75); }
.credits a { color: inherit; }

/* ==========================================================================
   Scroll reveal: fade + up 40px at 20% in view, 600ms ease-out, 100ms stagger.
   Exit (scrolled past the top): fade + shift up.
   Only hidden when JS is running, so the page never ships blank.
   ========================================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--reveal-dur) var(--ease-out), transform var(--reveal-dur) var(--ease-out);
  transition-delay: calc(var(--i, 0) * var(--stagger));
}
.js .reveal--slow { --reveal-dur: 800ms; }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal.is-out { opacity: 0; transform: translateY(-24px); transition-delay: 0ms; }

/* Hover lift must win over the reveal transform once revealed */
.js .reveal.is-in.feature:hover,
.js .reveal.is-in.product:hover { transform: translateY(var(--lift)); }

/* Timeline: line draws over 1200ms, steps appear in sequence */
.js .timeline::before { transition: transform 1200ms var(--ease-out); }
.js .step { opacity: 0; transform: translateY(40px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); transition-delay: calc(var(--i, 0) * 300ms); }
.js .timeline.is-in { --line: 1; }
.js .timeline.is-in .step { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive · tablet
   ========================================================================== */
@media (max-width: 1100px) {
  .nav__links { gap: 24px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand, .footer__visit { grid-column: span 3; }
  .footer__visit { grid-column: span 3; }
}

/* ==========================================================================
   Responsive · mobile (390 frame): static layers, fades instead of parallax
   ========================================================================== */
@media (max-width: 760px) {
  body { font-size: 16px; }
  h3 { font-size: 24px; }

  .nav__inner { height: 64px; gap: 12px; }
  .nav.is-solid .nav__inner { height: 64px; }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .logo__name { font-size: 22px; }
  .logo__sub { display: none; }

  .hero { height: auto; min-height: 844px; }
  .hero__back img { height: 100%; }
  .hero__wash { background: linear-gradient(180deg, rgba(244, 237, 225, 0.92) 0%, rgba(244, 237, 225, 0.85) 55%, rgba(244, 237, 225, 0.2) 100%); }
  .hero__copy { padding-top: 104px; padding-bottom: 360px; }
  .hero__copy h1 { font-size: 40px; max-width: none; }
  .hero__sub { font-size: 16px; }
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; }
  .branch--top { width: 62%; right: -20%; top: auto; bottom: 26%; }
  .branch--bottom { display: none; }
  .foreground { width: 290%; left: -173%; right: auto; }
  .scroll-cue { display: none; }

  .section-head { margin-bottom: 40px; text-align: left; }
  .grid-3 { grid-template-columns: 1fr; gap: 16px; }
  .feature { flex-direction: row; align-items: flex-start; text-align: left; padding: 20px; gap: 16px; flex-wrap: wrap; }
  .feature img { width: 72px; height: 72px; aspect-ratio: 1; margin: 0; flex: none; }
  .feature h3 { flex: 1; align-self: center; }
  .feature p, .feature .tag { flex-basis: 100%; }

  .origins { min-height: 0; padding: 0; flex-direction: column; align-items: stretch; }
  .origins .band__bg { position: relative; inset: auto; height: 240px; }
  .origins .band__overlay { display: none; }
  .origins__inner { min-height: 0; display: block; padding: 0; width: 100%; }
  .photo-credit { position: absolute; left: 12px; right: 12px; top: -48px; bottom: auto; width: max-content; max-width: calc(100% - 24px); font-size: 9px; letter-spacing: 0.06em; white-space: nowrap; }
  .origins-card { width: 100%; border-radius: 0; box-shadow: none; padding: 40px 20px; }
  .origin-list li { flex-direction: column; align-items: flex-start; gap: 4px; }
  .origin-list p { text-align: left; max-width: none; }

  .beans__head { flex-direction: column; align-items: flex-start; }
  .grid-4 {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .grid-4::-webkit-scrollbar { display: none; }
  .product { scroll-snap-align: start; }
  .product img { aspect-ratio: 4 / 3; }

  .timeline { grid-template-columns: 1fr; gap: 28px; padding-left: 0; }
  .timeline::before { top: 40px; bottom: 40px; left: 39px; right: auto; width: 2px; height: auto; transform: scaleY(var(--line)); transform-origin: top; }
  .step { display: grid; grid-template-columns: 80px 1fr; column-gap: 20px; text-align: left; align-items: start; }
  .step__icon { grid-row: span 3; margin: 0; }
  .step p { max-width: none; }

  .news-form { flex-direction: column; }
  .news-form .btn { width: 100%; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand, .footer__visit { grid-column: span 2; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }

  /* Mobile: no scroll-linked motion, gentle fades only */
  .js .reveal, .js .step { transform: none; }
  .js .reveal.is-out { transform: none; }
  .float { display: none; }
}

/* ==========================================================================
   Reduced motion: no parallax, no loops, reveals become simple fades
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  .hero__layer, .band__bg, .float, .hero__copy { transform: none !important; }
  .js .reveal, .js .step, .js .hero__copy > * { transform: none !important; transition: opacity 300ms linear !important; transition-delay: 0ms !important; }
  .js .timeline::before { transition: none; }
  .btn:hover, .feature:hover, .product:hover, .socials a:hover, .step:hover .step__icon { transform: none !important; }
  .product:hover img { transform: none; }
}
