/* ==========================================================
   Noosa Food & Coffee Co
   Black and white structure, like the packaging. Warm sand for
   coffee, honey yellow only where honey is, leaf green as a
   rare accent. Motion lives in js/motion.js.
   ========================================================== */

:root {
  --ink: #151515;
  --ink-2: #1f1d1b;
  --paper: #F7F5F0;
  --paper-2: #EFEBE3;
  --sand: #C8B49A;
  --sand-2: #D8C9B4;
  --honey: #F2C230;
  --leaf: #9BC53D;
  --text: #2b2926;
  --muted: #5d5850;        /* 6.4:1 on paper */
  --muted-sand: #3a342c;   /* 7.6:1 on sand */
  --muted-dark: #b9b3a8;   /* 8.6:1 on ink */
  --line: rgba(21, 21, 21, .16);
  --line-dark: rgba(247, 245, 240, .18);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1320px;
  --header-h: 72px;
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
}
@media (min-width: 960px) { :root { --header-h: 84px; } }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.62;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
::selection { background: var(--honey); color: var(--ink); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 340;
  color: var(--ink);
  letter-spacing: -.022em;
  line-height: 1.02;
  font-variation-settings: "SOFT" 40;
}
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--paper); }

.h1 { font-size: clamp(2.6rem, 1.1rem + 5.4vw, 5.6rem); font-weight: 320; letter-spacing: -.03em; line-height: .98; }
.h2 { font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem); }
.h2--xl { font-size: clamp(2.4rem, 1.1rem + 4.2vw, 5rem); font-weight: 320; letter-spacing: -.028em; line-height: .98; }
.h3 { font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2.1rem); line-height: 1.12; }

/* Heading lines (animated by motion.js) */
.ln { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.ln__in { display: block; will-change: transform; }

.lede { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.55; color: var(--muted); max-width: 34em; }
.on-dark .lede, .on-dark p { color: var(--muted-dark); }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--paper); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 400;
  background: var(--paper); color: var(--ink); padding: 12px 16px; text-decoration: none;
}
.skip:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.on-dark { background: var(--ink); color: var(--paper); }

/* ---------- Intro, loader, page curtain ---------- */
/* While the intro plays, first-screen content waits. If the script never
   arrives, these failsafes show everything after 2.6s. */
html.pre-intro [data-intro] { opacity: 0; animation: nfc-show .01s linear 2.6s forwards; }
@keyframes nfc-show { to { opacity: 1; } }

.loader {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center;
  background: var(--ink) var(--pattern) 50% 50% / cover;
  visibility: hidden;
}
html.has-loader .loader { visibility: visible; animation: nfc-hide .01s linear 3.9s forwards; }
@keyframes nfc-hide { to { visibility: hidden; opacity: 0; } }
.loader__mark { width: clamp(120px, 14vw, 180px); overflow: hidden; }
.loader__mark img { width: 100%; }

.curtain {
  position: fixed; inset: 0; z-index: 290; background: var(--ink);
  transform: translateY(100%); pointer-events: none;
}
html.is-entering .curtain { transform: none; animation: nfc-curtain .01s linear 2.6s forwards; }
@keyframes nfc-curtain { to { transform: translateY(-100%); } }

/* ---------- Image frames & veils ---------- */
.frame { position: relative; overflow: hidden; display: block; }
.frame > img { display: block; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 50%; }
.frame > img.parallax-img { position: absolute; left: 0; top: -9%; height: 118%; }
.veil { position: absolute; inset: -1px; z-index: 2; pointer-events: none; will-change: transform; }

/* ---------- Buttons & links ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--paper); --btn-bd: var(--ink);
  --btn-fill: var(--sand); --btn-fg-h: var(--ink);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .65em;
  min-height: 52px; padding: 0 1.6em;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1.5px solid var(--btn-bd); border-radius: var(--radius);
  font-size: 1rem; font-weight: 500; line-height: 1.1; letter-spacing: .005em;
  text-decoration: none; cursor: pointer;
  transition: color .45s var(--ease), border-color .45s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; background: var(--btn-fill);
  transform: translateY(101%); transition: transform .6s var(--ease);
}
.btn:hover { color: var(--btn-fg-h); border-color: var(--btn-fill); }
.btn:hover::before { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; flex: none; transition: transform .45s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--line { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--ink); --btn-fill: var(--ink); --btn-fg-h: var(--paper); }
.btn--light { --btn-bg: var(--paper); --btn-fg: var(--ink); --btn-bd: var(--paper); --btn-fill: var(--sand); --btn-fg-h: var(--ink); }
.btn--light-line { --btn-bg: transparent; --btn-fg: var(--paper); --btn-bd: rgba(247,245,240,.5); --btn-fill: var(--paper); --btn-fg-h: var(--ink); }
.btn--honey { --btn-bg: var(--honey); --btn-fg: var(--ink); --btn-bd: var(--honey); --btn-fill: var(--paper); --btn-fg-h: var(--ink); }
.btn--lg { min-height: 60px; padding: 0 2em; font-size: 1.0625rem; }
.btn--sm { min-height: 44px; padding: 0 1.25em; font-size: .95rem; }

.link {
  display: inline-flex; align-items: center; gap: .55em; min-height: 44px;
  font-weight: 500; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 10px) / 100% 1px no-repeat;
  transition: background-size .5s var(--ease);
}
.link:hover { background-size: 0 1px; background-position: 100% calc(100% - 10px); }
.link svg { width: 16px; height: 16px; transition: transform .45s var(--ease); }
.link:hover svg { transform: translateX(4px); }
.link--honey { color: var(--honey); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .9375rem; font-weight: 500; color: var(--ink);
}
.on-dark .label { color: var(--paper); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: var(--ink); color: var(--paper);
  transition: transform .6s var(--ease);
}
.site-header.is-hidden { transform: translateY(calc(-100% - 44px)); }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }

.brand {
  position: relative; align-self: flex-start; flex: none;
  display: block; width: 76px; height: 82px;
  margin-left: -10px; padding: 10px 10px 8px;
  background: var(--ink);
  transition: height .45s var(--ease), width .45s var(--ease), padding .45s var(--ease);
}
.brand img { width: 100%; height: 100%; object-fit: contain; }
@media (min-width: 960px) {
  .brand { width: 104px; height: 112px; padding: 14px 14px 10px; margin-left: -14px; }
}
.is-scrolled .brand { height: var(--header-h); width: calc(var(--header-h) - 6px); padding: 9px 8px; }

.nav { margin-left: auto; display: none; align-items: center; gap: clamp(20px, 2.6vw, 40px); }
.nav a:not(.btn) {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  font-size: .975rem; text-decoration: none; color: var(--paper);
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current="page"]::before {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px;
  margin-left: -2.5px; border-radius: 50%; background: var(--leaf);
}

.menu-toggle {
  margin-left: auto; display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; min-width: 44px; padding: 0 4px 0 12px;
  background: none; border: 0; color: var(--paper); cursor: pointer; font-size: .95rem;
}
.menu-toggle__icon { position: relative; width: 22px; height: 12px; }
.menu-toggle__icon::before, .menu-toggle__icon::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.menu-toggle__icon::before { top: 0; }
.menu-toggle__icon::after { top: 10px; }
.menu-open .menu-toggle__icon::before { top: 5px; transform: rotate(45deg); }
.menu-open .menu-toggle__icon::after { top: 5px; transform: rotate(-45deg); }

@media (min-width: 960px) {
  .nav { display: flex; }
  .menu-toggle { display: none; }
}

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: linear-gradient(180deg, var(--ink) 42%, rgba(21,21,21,.5) 66%, rgba(21,21,21,.5) 78%, var(--ink) 94%), var(--ink) var(--pattern) 50% 100% / cover;
  color: var(--paper);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 40px var(--gutter) max(32px, env(safe-area-inset-bottom));
  overflow-y: auto;
  visibility: hidden; clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease-io), visibility 0s linear .7s;
}
.menu-open .mobile-menu { visibility: visible; clip-path: inset(0 0 0 0); transition-delay: 0s; }
.mobile-menu ul a {
  display: flex; align-items: center; min-height: 64px;
  font-family: var(--serif); font-size: 2.5rem; font-weight: 320; letter-spacing: -.02em; text-decoration: none;
  border-bottom: 1px solid var(--line-dark);
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s var(--ease), transform .8s var(--ease);
}
.menu-open .mobile-menu ul a { opacity: 1; transform: none; }
.menu-open .mobile-menu li:nth-child(2) a { transition-delay: .06s; }
.menu-open .mobile-menu li:nth-child(3) a { transition-delay: .12s; }
.menu-open .mobile-menu li:nth-child(4) a { transition-delay: .18s; }
.mobile-menu ul a[aria-current="page"] { color: var(--sand); }
.mobile-menu__foot { display: grid; gap: 20px; margin-top: 40px; }
.mobile-menu__foot p { color: var(--muted-dark); font-size: .95rem; }
@media (min-width: 960px) { .mobile-menu { display: none; } }
body.menu-open { overflow: hidden; }

/* ---------- Section rhythm ---------- */
.section { padding-block: clamp(80px, 10vw, 160px); }
.section-head { display: grid; gap: 22px; margin-bottom: clamp(40px, 5.5vw, 80px); max-width: 48rem; }

/* ==========================================================
   HOME
   ========================================================== */

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: calc(100svh - var(--header-h));
  display: flex; flex-direction: column;
  padding-block: clamp(48px, 7vw, 104px) clamp(96px, 9vw, 128px);
}
.hero__inner { position: relative; flex: 1; display: grid; gap: 56px; }
.hero__text { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: space-between; gap: 36px; }
.h1--hero { font-size: clamp(2.35rem, .2rem + 6.9vw, 7rem); }
.hero__foot { display: grid; gap: 28px; }
.hero__foot .lede { max-width: 30em; }

.hero__art { position: relative; padding-bottom: 18%; }
.hero__card figcaption { margin-top: 12px; font-size: .8125rem; line-height: 1.45; color: var(--muted-dark); }
.hero__card .frame { translate: calc(var(--mx, 0) * 1px) calc(var(--my, 0) * 1px); }
.hero__card--coffee { width: 80%; margin-left: auto; }
.hero__card--coffee .frame { aspect-ratio: 683 / 738; background: var(--sand); }
.hero__card--coffee figcaption { text-align: right; }
.hero__card--honey { position: absolute; left: 0; bottom: 0; width: 44%; z-index: 2; }
.hero__card--honey .frame { aspect-ratio: 4 / 5; background: #2a2a2a; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.hero__card--honey .frame > img { object-position: 50% 65%; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: none; flex-direction: column; align-items: center; gap: 10px;
  font-size: .75rem; letter-spacing: .02em; color: var(--muted-dark); text-decoration: none;
}
.scroll-cue i { position: relative; width: 1px; height: 44px; background: rgba(247,245,240,.18); overflow: hidden; }
.scroll-cue i::after {
  content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 16px; background: var(--paper);
  animation: cue 2.2s var(--ease-io) infinite;
}
@keyframes cue { 0% { transform: translateY(-16px); } 100% { transform: translateY(44px); } }

@media (min-width: 1024px) {
  .hero__inner { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(40px, 4vw, 72px); align-items: stretch; }
  .hero__text { padding-top: 12px; }
  .hero__art { padding-bottom: 0; align-self: center; }
  .hero__card--coffee { width: 86%; }
  .hero__card--honey { width: 46%; left: -16%; bottom: -10%; }
  .scroll-cue { display: flex; }
}

/* ---------- Chapters (coffee, honey) ---------- */
.chapter { position: relative; padding-block: clamp(96px, 11vw, 176px); }
.chapter__grid { display: grid; gap: clamp(56px, 7vw, 120px); align-items: center; }
.chapter__body { display: grid; gap: 22px; max-width: 32rem; }
.chapter__body p { font-size: 1.125rem; }
.chapter__media { position: relative; }

.chapter--coffee { background: var(--sand); }
.chapter--coffee .chapter__body p { color: var(--muted-sand); }
.chapter--coffee .frame--tall { aspect-ratio: 4 / 4.6; }
.chapter__badge {
  position: absolute; z-index: 3; width: clamp(104px, 12vw, 168px); height: auto;
  right: clamp(-16px, -2vw, -8px); top: clamp(-52px, -4vw, -28px);
  filter: drop-shadow(0 10px 24px rgba(21,21,21,.22));
}

.chapter--honey { padding-top: clamp(150px, 15vw, 230px); }
.chapter__media--honey { max-width: 520px; width: 100%; justify-self: center; }
.honey-badge--chapter { position: absolute; z-index: 3; width: 34%; left: -4%; top: -8%; }
@media (min-width: 900px) { .honey-badge--chapter { left: -13%; } }
.frame--honey { position: relative; z-index: 1; aspect-ratio: 4 / 5; background: #2a2a2a; }
.frame--honey > img { object-position: 50% 70%; }
.chapter__media--honey .inset {
  position: absolute; z-index: 2; width: 38%; right: -9%; bottom: -11%;
  border: 6px solid var(--ink);
}
.chapter__media--honey .inset .frame { aspect-ratio: 1; }
.nothing { display: grid; gap: 10px; margin: 6px 0 4px; }
.nothing li { display: flex; align-items: center; gap: 12px; font-size: 1rem; color: var(--paper); }
.nothing svg { width: 18px; height: 18px; color: var(--honey); flex: none; }

@media (min-width: 900px) {
  .chapter--coffee .chapter__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .chapter--honey .chapter__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .chapter__media--honey { justify-self: end; margin-right: 7%; }
}

/* ---------- Honey drips ---------- */
.drips { position: absolute; left: 0; right: 0; top: 0; height: 0; z-index: 3; pointer-events: none; }
.drips__band { position: absolute; left: 0; right: 0; top: 0; height: 14px; background: var(--honey); transform-origin: 0 50%; }
.drip {
  position: absolute; top: 0; width: var(--w); height: var(--h);
  margin-left: calc(var(--w) / -2);
  background: var(--honey); border-radius: 0 0 999px 999px;
}
.drip::before {
  /* soft shoulder where the drip leaves the band */
  content: ""; position: absolute; top: 0; left: 50%; width: calc(var(--w) * 2.2); height: calc(var(--w) * .9);
  transform: translateX(-50%); border-radius: 0 0 50% 50%; background: var(--honey);
}
.drip__drop {
  position: absolute; left: 50%; bottom: calc(var(--w) * -1.15);
  width: calc(var(--w) * .72); aspect-ratio: 1; border-radius: 50%;
  background: var(--honey); transform: translateX(-50%);
}

/* ---------- Pantry ---------- */
.pantry__head { display: grid; gap: 22px 64px; margin-bottom: clamp(40px, 5.5vw, 80px); }
.pantry__head > div { display: grid; gap: 22px; }
.pantry__head .lede { align-self: end; }
@media (min-width: 900px) { .pantry__head { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }

.pantry__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 16px; }
.tile { min-width: 0; }
.tile--1, .tile--2 { grid-column: span 2; }
.tile__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink); }
.tile__media { background: #fff; aspect-ratio: 1; }
.tile--1 .tile__media { aspect-ratio: 4 / 3; }
.tile--2 .tile__media { aspect-ratio: 16 / 10; }
.tile__media > img { position: absolute; inset: 0; transition: scale 1.4s var(--ease); }
.tile__media--contain > img { object-fit: contain; padding: 7%; }
.tile--1 .tile__media > img { object-position: 50% 62%; }
.tile__link:hover .tile__media > img { scale: 1.04; }
.tile__foot {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px;
  padding: 16px 0 6px; border-bottom: 1px solid var(--line);
}
.tile__name { font-family: var(--serif); font-size: clamp(1.3rem, 1.05rem + .8vw, 1.75rem); font-weight: 360; letter-spacing: -.015em; line-height: 1.15; }
.tile__cta { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: .9375rem; font-weight: 500; }
.tile__cta svg { width: 15px; height: 15px; transition: transform .45s var(--ease); }
.tile__link:hover .tile__cta svg { transform: translateX(4px); }
@media (min-width: 900px) {
  .pantry__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: repeat(2, clamp(320px, 28vw, 420px));
    gap: 28px 24px;
  }
  .tile--1 { grid-column: 1; grid-row: 1 / span 2; }
  .tile--2 { grid-column: 2 / span 2; grid-row: 1; }
  .tile__media, .tile--1 .tile__media, .tile--2 .tile__media { flex: 1; min-height: 0; aspect-ratio: auto; }
}

/* ---------- Noosa band ---------- */
.place { position: relative; }
.place__frame { height: clamp(360px, 54vw, 760px); overflow: hidden; }
.place__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 78%; transform-origin: 50% 60%; }
.place__note {
  position: absolute; left: var(--gutter); bottom: clamp(20px, 3vw, 44px);
  background: var(--paper); padding: 20px 24px; max-width: min(25rem, calc(100% - var(--gutter) * 2));
  font-size: .95rem; line-height: 1.5;
}
.place__note strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.3rem; color: var(--ink); margin-bottom: 2px; }

/* ---------- Sizes ---------- */
.sizes { --s: .64; }
@media (min-width: 560px) { .sizes { --s: .82; } }
@media (min-width: 1100px) { .sizes { --s: 1; } }
.sizes__groups { display: grid; gap: 56px 64px; }
.sizes__group h3 {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px;
  font-family: var(--sans); font-size: .9375rem; font-weight: 500; letter-spacing: 0; line-height: 1.3; color: var(--ink);
}
.sizes__group h3 img { width: 28px; height: 28px; }
.sizes__group h3 small { font-weight: 400; color: var(--muted); font-size: inherit; }
.sizes__row { display: flex; align-items: stretch; margin-top: 28px; }
.size { display: flex; flex-direction: column; }
.size__fig {
  position: relative; overflow: hidden;
  flex: 1; display: flex; align-items: flex-end; justify-content: center;
  padding: 6px clamp(10px, 1.8vw, 24px) 0;
}
.size__fig::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink);
  transform: scaleX(var(--shelf, 1)); transform-origin: 0 50%;
}
.size:first-child .size__fig { padding-left: 4px; }
.size__fig svg { height: calc(var(--h) * var(--s)); width: auto; }
.size__w { margin-top: 14px; text-align: center; font-family: var(--serif); font-size: clamp(1.2rem, 1rem + .7vw, 1.55rem); font-weight: 380; line-height: 1; color: var(--ink); }
.size:first-child .size__w, .size:first-child .size__t { padding-left: 4px; }
.size__t { margin-top: 6px; text-align: center; font-size: .8125rem; color: var(--muted); min-height: 1.3em; }
@media (min-width: 1100px) {
  .size__fig { min-height: 156px; }
  .sizes__groups { grid-template-columns: auto auto auto; justify-content: space-between; align-items: start; }
}

/* ---------- Bulk ---------- */
.bulk { background: var(--paper-2); }
.bulk__grid { display: grid; gap: clamp(48px, 6vw, 96px); }
.bulk__intro { display: grid; gap: 24px; align-content: start; }
.frame--bulk { margin-top: 16px; aspect-ratio: 3 / 2; }
.spec { border-top: 1px solid var(--ink); }
.spec > div { display: grid; gap: 4px 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.spec dt { font-family: var(--serif); font-size: clamp(1.35rem, 1.1rem + .7vw, 1.75rem); font-weight: 360; letter-spacing: -.015em; color: var(--ink); line-height: 1.2; }
.spec dd { color: var(--muted); }
.spec dd strong { color: var(--ink); font-weight: 500; }
.bulk__side .actions { margin-top: 36px; }
@media (min-width: 640px) { .spec > div { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: baseline; } }
@media (min-width: 960px) {
  .bulk__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .bulk__side { padding-top: clamp(16px, 2vw, 40px); }
}

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; background: var(--sand); }
.cta__grid { position: relative; z-index: 1; display: grid; gap: 32px; align-items: end; }
.cta__text { margin-top: 22px; color: var(--muted-sand); max-width: 30em; font-size: 1.125rem; }
.cta__sprig {
  position: absolute; right: -40px; bottom: -30px; width: min(560px, 80vw); height: auto;
  color: var(--ink); opacity: .32; pointer-events: none;
}
.cta__sprig path { stroke-width: 1.2; vector-effect: non-scaling-stroke; }
@media (min-width: 900px) {
  .cta__grid { grid-template-columns: minmax(0, 1.4fr) auto; }
  .cta__sprig { right: 4%; bottom: -60px; width: 520px; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding-block: 0 28px;
}
.footer__grid { display: grid; gap: 40px; }
.footer__logo { width: 58%; }
.footer__col h2 { font-family: var(--sans); font-size: .875rem; font-weight: 500; color: var(--muted-dark); letter-spacing: 0; margin-bottom: 10px; }
.footer__col p { color: var(--paper); max-width: 22em; }
.footer__col ul a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer__col ul a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: clamp(48px, 6vw, 88px); padding-top: 20px; border-top: 1px solid var(--line-dark);
  font-size: .875rem; color: var(--muted-dark);
}
.footer__bottom a { color: var(--paper); text-underline-offset: 3px; display: inline-block; padding-block: 12px; margin-block: -12px; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.2fr 1fr 1fr 1fr; } }

/* ==========================================================
   COFFEE
   ========================================================== */
.page-hero--coffee { background: var(--sand); }
.page-hero__grid { display: grid; gap: 56px; padding-block: clamp(56px, 7vw, 112px); }
.page-hero__text { display: grid; gap: 26px; align-content: center; }
.page-hero__text .lede { color: var(--muted-sand); }
.page-hero__media { position: relative; }
.page-hero__media .frame { aspect-ratio: 683 / 738; translate: calc(var(--mx, 0) * 1px) calc(var(--my, 0) * 1px); }
.page-hero__badge {
  position: absolute; z-index: 3; width: clamp(96px, 11vw, 150px); height: auto; left: -18px; top: -30px;
  filter: drop-shadow(0 10px 24px rgba(21,21,21,.22));
}
@media (min-width: 900px) {
  .page-hero__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: clamp(48px, 6vw, 104px); }
  .page-hero__media { max-width: 560px; width: 100%; justify-self: end; }
}

/* Product cards */
.cards { display: grid; gap: clamp(56px, 5vw, 72px) clamp(24px, 3vw, 48px); }
@media (min-width: 760px) { .cards--2 { grid-template-columns: 1fr 1fr; } }
.card { display: grid; grid-template-rows: auto 1fr; gap: 26px; }
.card__media { background: var(--paper-2); aspect-ratio: 5 / 4; }
.card__media > img { transition: scale 1.4s var(--ease); }
.card:hover .card__media > img { scale: 1.03; }
.card__body { display: grid; gap: 14px; align-content: start; }
.card__brand { font-size: .875rem; font-weight: 500; color: var(--muted); }
.card__title { font-size: clamp(1.7rem, 1.3rem + 1.1vw, 2.3rem); font-weight: 340; line-height: 1.08; }
.card__desc { color: var(--muted); max-width: 30em; }
.card__options { margin-top: 8px; display: grid; gap: 10px; }
.card__options legend { font-size: .875rem; font-weight: 500; color: var(--ink); padding: 0; margin-bottom: 10px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pill span {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; min-width: 64px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: var(--radius);
  font-size: .9375rem; color: var(--ink);
  transition: border-color .3s, background-color .3s, color .3s;
}
.pill input:hover + span { border-color: var(--ink); }
.pill input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pill input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.card__actions {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px;
  margin-top: 14px; padding-top: 22px; border-top: 1px solid var(--line);
}
.card__note { font-size: .875rem; color: var(--muted); }
.cards--honey .pill input:checked + span { background: var(--honey); border-color: var(--honey); color: var(--ink); }
.cards--honey .card__media { background: var(--ink); aspect-ratio: 1; }
.card[data-product="single-origin"] .card__media > img { object-position: 50% 78%; }
.card[data-product="raw-honey"] .card__media > img { object-position: 50% 62%; }

/* Origins (green beans) */
.origin { display: grid; gap: clamp(32px, 4vw, 72px); }
.origin__media { aspect-ratio: 4 / 3; }
.origin__body { display: grid; gap: 18px; align-content: start; }
.origin__list { border-top: 1px solid var(--line-dark); }
.origin__list label {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 72px; padding: 10px 4px; border-bottom: 1px solid var(--line-dark); cursor: pointer;
}
.origin__list input { position: absolute; opacity: 0; pointer-events: none; }
.origin__name { font-family: var(--serif); font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.3rem); font-weight: 320; letter-spacing: -.02em; line-height: 1.1; color: var(--paper); transition: color .3s, transform .5s var(--ease); }
.origin__mark { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(247,245,240,.4); position: relative; transition: border-color .3s; }
.origin__mark::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--leaf); transform: scale(0); transition: transform .35s var(--ease); }
.origin__list label:hover .origin__name { transform: translateX(10px); }
.origin__list input:checked ~ .origin__mark { border-color: var(--leaf); }
.origin__list input:checked ~ .origin__mark::after { transform: scale(1); }
.origin__list input:focus-visible ~ .origin__name { outline: 2px solid var(--paper); outline-offset: 4px; }
.origin .card__actions { border-top: 0; padding-top: 10px; }
.origin .card__note { color: var(--muted-dark); }
@media (min-width: 900px) {
  .origin { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .origin__media { position: sticky; top: calc(var(--header-h) + 24px); }
}

.duo { display: grid; gap: 4px; background: var(--ink); }
.duo .frame { height: clamp(280px, 42vw, 600px); }
@media (min-width: 760px) { .duo { grid-template-columns: 1fr 2fr; } }

/* ==========================================================
   HONEY
   ========================================================== */
.honey-hero__grid { display: grid; }
.honey-hero__text { display: grid; gap: 26px; align-content: center; padding: 72px var(--gutter) 64px; }
.honey-hero__media { position: relative; background: #2a2a2a; min-height: 420px; }
.honey-hero__media .frame { position: absolute; inset: 0; }
@media (min-width: 900px) {
  .honey-hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); min-height: min(calc(100svh - var(--header-h)), 920px); }
  .honey-hero__text { padding: 80px clamp(40px, 6vw, 104px) 80px max(var(--gutter), calc((100vw - var(--max)) / 2)); }
}
@media (max-width: 899px) { .honey-hero__media { aspect-ratio: 4 / 4.6; min-height: 0; } }

.label-strip { position: relative; z-index: 3; background: var(--honey); color: var(--ink); }
.label-strip ul { display: grid; grid-template-columns: 1fr 1fr; }
.label-strip li {
  display: flex; align-items: center; gap: 12px; min-height: 80px; padding: 14px 0;
  font-family: var(--serif); font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); font-weight: 380; line-height: 1.15;
}
.label-strip li svg { width: 22px; height: 22px; flex: none; }
.label-strip .drips { top: 100%; }
@media (min-width: 900px) {
  .label-strip ul { grid-template-columns: repeat(4, auto); justify-content: space-between; }
  .label-strip li { min-height: 104px; }
}
.section--after-drips { padding-top: clamp(150px, 15vw, 220px); }

.honey-note { display: grid; gap: 28px; align-items: center; border-top: 1px solid var(--line); padding-top: clamp(40px, 5vw, 64px); margin-top: clamp(64px, 8vw, 112px); }
.honey-note p { color: var(--muted); max-width: 34em; margin-top: 14px; }
@media (min-width: 900px) { .honey-note { grid-template-columns: 1.2fr auto; } }

/* ==========================================================
   CONTACT
   ========================================================== */
.contact { padding-block: clamp(56px, 7vw, 120px); }
.contact__grid { display: grid; gap: clamp(48px, 6vw, 104px); }
.contact__aside { display: grid; gap: 26px; align-content: start; }
.contact__aside .lede { color: var(--muted); }
.contact__place { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 6px; display: grid; gap: 4px; }
.contact__place span { font-size: .875rem; color: var(--muted); }
.contact__place strong { font-family: var(--serif); font-weight: 380; font-size: 1.4rem; color: var(--ink); }
.frame--contact { margin-top: 12px; aspect-ratio: 4 / 3; }
@media (min-width: 960px) {
  .contact__grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  .contact__aside { position: sticky; top: calc(var(--header-h) + 40px); }
}

.form { display: grid; gap: 24px; background: #fff; padding: clamp(24px, 4vw, 52px); border: 1px solid var(--line); }
.form__row { display: grid; gap: 24px; }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-size: .9375rem; font-weight: 500; color: var(--ink); }
.field label small { font-weight: 400; color: var(--muted); font-size: inherit; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 12px 14px;
  background: var(--paper); border: 1px solid rgba(21,21,21,.28); border-radius: var(--radius);
  font-size: 1rem; color: var(--ink);
  transition: border-color .25s, background-color .25s, box-shadow .25s;
}
.field textarea { min-height: 160px; resize: vertical; line-height: 1.5; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23151515' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field select:disabled { cursor: default; color: var(--muted); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background-color: #fff; box-shadow: 0 0 0 3px rgba(21,21,21,.12); }
.field input:user-invalid, .field textarea:user-invalid, .field select:user-invalid { border-color: #a23a1d; }
.field__error { font-size: .875rem; color: #a23a1d; display: none; }
.field input:user-invalid ~ .field__error, .field textarea:user-invalid ~ .field__error, .field select:user-invalid ~ .field__error { display: block; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 4px; }
.form__status { font-size: .9375rem; color: #a23a1d; }
.form .btn[disabled] { opacity: .6; cursor: progress; }

.success {
  display: grid; gap: 18px; align-content: start;
  background: linear-gradient(rgba(21,21,21,.84), rgba(21,21,21,.84)), var(--ink) var(--pattern) 50% 50% / cover; color: var(--paper);
  padding: clamp(32px, 5vw, 64px);
}
.success[hidden] { display: none; }
.success__tick { width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid var(--leaf); display: grid; place-items: center; color: var(--leaf); }
.success__tick svg { width: 24px; height: 24px; }
.success.is-shown .success__tick path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: tick .9s var(--ease) .25s forwards; }
@keyframes tick { to { stroke-dashoffset: 0; } }
.success h2 { color: var(--paper); }
.success p { color: var(--muted-dark); max-width: 30em; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .scroll-cue i::after { animation: none; }
  .loader, .curtain { display: none; }
}
@media (max-width: 1023px) { .hero__card figcaption { display: none; } }

/* ---------- Home hero: logo, buttons, coffee beans ---------- */
.hero--home { padding: 0; }
.hero--home::before { -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 55%); mask-image: linear-gradient(90deg, #000 0%, transparent 55%); }
.hero__split { position: relative; flex: 1; display: grid; }
.hero__brand {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(36px, 5vw, 64px);
  padding: clamp(56px, 9vw, 96px) var(--gutter) clamp(48px, 7vw, 80px);
}
.hero__logo { width: clamp(200px, 26vw, 380px); overflow: hidden; }
.hero__logo > img { height: auto; object-fit: contain; }
.hero__actions { justify-content: center; }
.hero__beans { position: relative; background: #1d1a17; }
.hero__beans .frame { aspect-ratio: 4 / 4.4; translate: calc(var(--mx, 0) * 1px) calc(var(--my, 0) * 1px); }
@media (min-width: 900px) {
  .hero__split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero__brand { padding-block: 64px 96px; }
  .hero__beans .frame { position: absolute; inset: 0; aspect-ratio: auto; translate: none; }
  .hero--home .scroll-cue { left: 25%; }
}

/* ---------- Coffee list under Our coffee ---------- */
.coffees {
  display: grid; gap: 0 clamp(24px, 3vw, 48px);
  margin-top: clamp(72px, 9vw, 128px); border-top: 1px solid var(--ink);
}
.coffees__item { display: grid; gap: 10px; align-content: start; padding: 26px 0 30px; border-bottom: 1px solid rgba(21,21,21,.22); }
.coffees__name { font-size: clamp(1.45rem, 1.15rem + .9vw, 1.9rem); font-weight: 340; letter-spacing: -.018em; line-height: 1.1; }
.coffees__notes { color: var(--muted-sand); font-size: 1rem; line-height: 1.55; max-width: 26em; }
@media (min-width: 700px) { .coffees { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) {
  .coffees { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .coffees__item { border-bottom: 0; padding-top: 30px; }
  .coffees__item + .coffees__item { border-left: 1px solid rgba(21,21,21,.22); padding-left: clamp(20px, 2vw, 32px); }
}

/* Coffee list stacked beside the photo (replaces the intro paragraphs) */
.coffees--stack { grid-template-columns: 1fr !important; margin-top: 6px; }
.coffees--stack .coffees__item { padding: 20px 0 22px !important; border-left: 0 !important; padding-left: 0 !important; border-bottom: 1px solid rgba(21,21,21,.22) !important; }
.chapter--coffee .chapter__body { max-width: 34rem; }
.chapter--coffee .chapter__body .coffees__notes { font-size: 1rem; }

/* ---------- Home hero v3: logo on the coffee beans ---------- */
.hero--home { justify-content: center; }
.hero--home::before { content: none; }
.hero__bg { position: absolute; inset: 0; z-index: 0; background: #1d1a17; }
.hero__shade {
  position: absolute; inset: 0; z-index: 1;
  background: rgba(21, 21, 21, .52);
}
.hero__bg .veil { z-index: 2; }
.hero__center {
  position: relative; z-index: 3; flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(40px, 5vw, 64px);
  padding: clamp(64px, 10vw, 120px) var(--gutter) clamp(88px, 10vw, 128px);
}
.hero__center .hero__logo { width: clamp(220px, 28vw, 400px); height: auto; filter: drop-shadow(0 8px 30px rgba(0,0,0,.35)); }
.hero__center .hero__actions { justify-content: center; }
.hero--home .scroll-cue { left: 50%; color: var(--paper); }

/* ---------- Our coffee: heading row + the four coffees ---------- */
.coffee-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px; }
.coffee-head__title { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 32px); }
.coffee-head__title > div { display: grid; gap: 14px; }
.coffee-head__badge { width: clamp(84px, 9vw, 128px); height: auto; flex: none; filter: drop-shadow(0 8px 20px rgba(21,21,21,.2)); }
.chapter--coffee .coffees { margin-top: clamp(48px, 6vw, 80px); }

/* ---------- Coffee cards without a photo (one per coffee) ---------- */
.card--plain {
  position: relative; grid-template-rows: auto;
  background: #fff; border: 1px solid var(--line); padding: clamp(24px, 3vw, 40px);
}
.card--plain .card__badge { position: absolute; top: clamp(20px, 2.6vw, 34px); right: clamp(20px, 2.6vw, 34px); width: 56px; height: auto; }
.card--plain .card__title { padding-right: 72px; }
.card--plain .card__actions { margin-top: 18px; }

/* ---------- Nicky's brand assets: leaf pattern, honey logo, fern ---------- */
:root { --pattern: url("../images/pattern-tall.webp"); }
@media (min-width: 700px) and (min-aspect-ratio: 1/1) { :root { --pattern: url("../images/pattern-wide.webp"); } }
@media (min-width: 1000px) { :root { --pattern: url("../images/pattern-wide.webp"); } }

/* Loader: the logo sits on a black disc so it never gets lost in the leaves */
.loader__disc {
  display: grid; place-items: center; border-radius: 50%; background: var(--ink);
  width: clamp(230px, 27vw, 340px); aspect-ratio: 1;
  box-shadow: 0 0 0 1px rgba(247,245,240,.14), 0 0 80px 30px rgba(21,21,21,.85);
}

/* Footer: a band of the pattern, logo on a black disc across its edge */
.site-footer { --disc: clamp(148px, 14vw, 196px); --fpad: clamp(44px, 5vw, 72px); }
.footer__band { height: clamp(170px, 19vw, 280px); background: var(--ink) var(--pattern) 50% 50% / cover; }
.footer__grid { padding-top: var(--fpad); }
.footer__brand {
  width: var(--disc); aspect-ratio: 1; border-radius: 50%; background: var(--ink);
  display: grid; place-items: center;
  margin-top: calc(var(--disc) / -2 - var(--fpad));
  box-shadow: 0 0 0 1px rgba(247,245,240,.14);
}
.footer__label { gap: 12px; }
.footer__label img { width: 36px; height: 36px; flex: none; border-radius: 50%; }

/* Noosa Tropical Farm honey logo: a black disc, ringed in honey */
.honey-badge { height: auto; border-radius: 50%; box-shadow: 0 0 0 2px var(--honey), 0 16px 34px rgba(0,0,0,.35); }
.honey-badge--hero { position: absolute; z-index: 3; width: clamp(104px, 12vw, 168px); left: 20px; top: 20px; }
@media (min-width: 900px) { .honey-badge--hero { left: calc(clamp(104px, 12vw, 168px) / -2); top: auto; bottom: clamp(48px, 7vw, 96px); } }

/* CTA fern (from the leaf pattern) */
.cta__sprig { width: 120px; right: 4%; bottom: -70px; opacity: .3; }
.cta__sprig path { stroke-width: .4; vector-effect: none; }
@media (min-width: 600px) { .cta__sprig { width: 200px; right: 6%; bottom: -60px; } }
@media (min-width: 900px) { .cta__sprig { width: 300px; right: auto; left: 52%; bottom: -70px; } }
