/* sections.css ==========================================================
   Grounds, wavy edges, brand devices and section patterns.
   ====================================================================== */
.section { position: relative; padding-block: var(--sec); overflow-x: clip; }
.section--lg { padding-block: var(--sec-lg); }
.section--sm { padding-block: calc(var(--sec) * .62); }

/* Grounds. Each sets --bg so its wavy top edge matches it. */
.g-cream { --bg: var(--cream); background: var(--bg); }
.g-white { --bg: #ffffff; background: var(--bg); }
.g-maize { --bg: var(--maize); background: var(--bg); }
.g-mint  { --bg: var(--mint); background: var(--bg); }
.g-coral { --bg: var(--coral-soft); background: var(--bg); }
.g-green { --bg: var(--msu-green); background: var(--bg); color: var(--on-dark-soft); isolation: isolate; }
.g-honey { --bg: var(--honey-deep); background: var(--bg); color: var(--on-dark-soft); isolation: isolate; }

/* The wavy edge that lets one section pour into the next. */
.wave { position: absolute; left: 0; right: 0; top: -38px; height: 40px; background: var(--bg); pointer-events: none;
  -webkit-mask: url("../img/brand/wave.svg") center / 100% 100% no-repeat; mask: url("../img/brand/wave.svg") center / 100% 100% no-repeat; z-index: 1; }
.wave--flip { transform: scaleX(-1); }

/* Ghee Swirls (Device III) — ghee and the brand's yellow grounds; the
   pattern sits at 60% over the solid colour. */
.swirl { isolation: isolate; }
.swirl::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/tex/ghee-swirls.webp") center / 900px auto repeat; opacity: .6; pointer-events: none; }

/* Palm & Leaf Radiance (Device I) — behind content on green, bottom-right. */
.radiance::after { content: ""; position: absolute; right: -4%; bottom: -8%; width: min(760px, 72vw); aspect-ratio: 1.45; z-index: -1;
  background: url("../img/brand/radiance.svg") right bottom / contain no-repeat; opacity: .95; pointer-events: none; }

/* Honeycomb Grid (Device II) — honey only, at 10% on dark grounds. */
.honeycomb::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/brand/honeycomb.svg") center / 46px auto repeat; opacity: .1; pointer-events: none; }

.sec-head { max-width: 780px; margin-bottom: var(--space-6); }
.sec-head > :last-child { margin-bottom: 0; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center .lede { margin-inline: auto; }
.sec-head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 48px; }
.sec-head--row > div { max-width: 700px; }

/* ------------------------------------------------------------ split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.split > * { min-width: 0; }
.split--57 { grid-template-columns: 5fr 7fr; }
.split--75 { grid-template-columns: 7fr 5fr; }
.split--top { align-items: start; }

/* ------------------------------------------------------------ hero */
.hero { padding-block: clamp(40px, 6vw, 96px) clamp(72px, 8vw, 128px); }
.hero h1 { max-width: 11ch; }
.hero h1.wide { max-width: 15ch; }
.hero h1.mega { font-size: var(--type-mega); }
.hero .lede { margin-bottom: 0; }
.tagline { margin-top: var(--space-4); font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; }
.hero-meta { margin-top: var(--space-4); }

/* ------------------------------------------------------------ sticker stats */
.stickers { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 32px); }
.stickers--four { grid-template-columns: repeat(4, 1fr); }
.sticker-stat {
  position: relative; padding: var(--space-5) var(--space-4);
  border: var(--stroke) solid var(--ink); border-radius: var(--rad); box-shadow: var(--pop);
  background: var(--maize); color: var(--ink); text-align: left; min-width: 0;
  transition: transform var(--dur-slow) var(--spring);
}
.sticker-stat:nth-child(4n+1) { transform: rotate(-2deg); }
.sticker-stat:nth-child(4n+2) { background: var(--coral-soft); transform: rotate(1.5deg); }
.sticker-stat:nth-child(4n+3) { background: var(--mint); transform: rotate(-1deg); }
.sticker-stat:nth-child(4n+4) { background: #fff; transform: rotate(2deg); }
.sticker-stat:hover { transform: rotate(0) scale(1.03); }
.sticker-stat b { display: block; font-family: var(--font-display); font-size: var(--type-display); font-weight: 800; line-height: 1; letter-spacing: -.02em; margin-bottom: 10px; color: var(--ink); }
.stickers--four .sticker-stat b { font-size: clamp(2.2rem, 1.6rem + 2vw, 3.4rem); }
.sticker-stat span { display: block; font-size: var(--type-small); line-height: 1.5; color: var(--ink); max-width: 26ch; }
.on-dark .sticker-stat { border-color: var(--ink); box-shadow: 6px 6px 0 var(--cream); }
.on-dark .sticker-stat b, .on-dark .sticker-stat span { color: var(--ink); }
@media (max-width: 860px) { .stickers, .stickers--four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .stickers:not(.stickers--four) { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ grids */
.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.grid > * { min-width: 0; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* Product cards with a jar that steps out of the card. */
.product {
  position: relative; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 18px;
  min-height: 380px; padding: var(--space-5); padding-top: 96px;
  border: var(--stroke) solid var(--ink); border-radius: var(--rad-lg); box-shadow: var(--pop-lg);
  isolation: isolate; overflow: hidden;
  transition: transform var(--dur-slow) var(--spring);
}
.product--ghee { background: var(--maize); }
.product--ghee::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/tex/ghee-swirls.webp") center / 700px auto; opacity: .55; }
.product--honey { background: var(--amber); }
.product--honey::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/brand/honeycomb.svg") center / 40px auto; opacity: .18; filter: brightness(.35); }
.product .p-copy { position: relative; z-index: 2; max-width: 30ch; }
.product h3 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); font-weight: 800; margin-bottom: .25em; }
.product p { color: var(--ink); }
.product .p-jar { position: relative; z-index: 2; width: clamp(130px, 15vw, 210px); margin: 0 -6px -10px 0; transition: transform var(--dur-slow) var(--spring); filter: drop-shadow(6px 8px 0 rgba(18, 71, 52, .85)); }
.product:hover { transform: rotate(-1deg) translateY(-6px); }
.product:hover .p-jar { transform: rotate(-8deg) translateY(-14px) scale(1.05); }
.product .stretch { text-decoration: none; }
.product .stretch::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.product:has(.stretch:focus-visible) { outline: 3px solid var(--coral); outline-offset: 5px; }
.product .caption { position: absolute; top: 28px; left: 32px; z-index: 2; }
@media (max-width: 520px) { .product { grid-template-columns: 1fr; padding-top: 84px; } .product .p-jar { justify-self: end; margin: -10px 0 -10px; width: 140px; } }

/* ------------------------------------------------------------ timeline */
.timeline { position: relative; list-style: none; margin: 0; padding: 0; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 0; border-left: 3px dashed rgba(255, 240, 220, .35); }
.timeline li { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(48px, 7vw, 112px); margin: 0; padding-block: var(--space-5); }
.timeline .yr {
  display: inline-block; margin-bottom: 14px; padding: 6px 18px; border-radius: var(--pill);
  border: var(--stroke) solid var(--ink); background: var(--maize); color: var(--ink); box-shadow: 4px 4px 0 var(--cream);
  font-family: var(--font-display); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); font-weight: 800; line-height: 1;
}
.timeline li:nth-child(3n+2) .yr { background: var(--coral-soft); }
.timeline li:nth-child(3n) .yr { background: var(--mint); }
.timeline .t-text { grid-column: 2; }
.timeline .t-media { grid-column: 1; grid-row: 1; justify-self: end; }
.timeline li:nth-child(even) .t-text { grid-column: 1; text-align: right; }
.timeline li:nth-child(even) .t-text p { margin-left: auto; }
.timeline li:nth-child(even) .t-media { grid-column: 2; justify-self: start; }
.timeline h3 { margin-bottom: .35em; }
.timeline p { max-width: 44ch; }
.timeline .circle { width: 140px; border: 3px solid var(--maize); }
@media (max-width: 820px) {
  .timeline::before { left: 10px; }
  .timeline li { grid-template-columns: 1fr; padding-left: 40px; }
  .timeline .t-text, .timeline li:nth-child(even) .t-text { grid-column: 1; text-align: left; }
  .timeline li:nth-child(even) .t-text p { margin-left: 0; }
  .timeline .t-media, .timeline li:nth-child(even) .t-media { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 12px; }
  .timeline .circle { width: 100px; }
}

/* ------------------------------------------------------------ ledger */
.ledger-wrap { border: var(--stroke) solid var(--ink); border-radius: var(--rad); background: #fff; padding: 8px 24px; box-shadow: var(--pop); }
.ledger { width: 100%; border-collapse: collapse; }
.ledger caption { text-align: left; padding: 16px 0 6px; font-family: var(--font-display); font-weight: 800; }
.ledger th, .ledger td { text-align: left; vertical-align: top; padding: 18px 20px 18px 0; border-bottom: 1px solid var(--line-soft); }
.ledger tr:last-child th, .ledger tr:last-child td { border-bottom: 0; }
.ledger thead th { font-family: var(--font-display); font-size: var(--type-caption); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); border-bottom: var(--stroke) solid var(--ink); }
.ledger tbody th { font-family: var(--font-display); font-size: 1.1rem; font-weight: 800; }
.ledger time { display: inline-block; padding: 3px 12px; border-radius: var(--pill); background: var(--maize); font-family: var(--font-display); font-weight: 800; white-space: nowrap; }
.on-dark .ledger-wrap { background: rgba(255, 240, 220, .06); border-color: rgba(255, 240, 220, .4); box-shadow: none; }
.on-dark .ledger th, .on-dark .ledger td { border-bottom-color: rgba(255, 240, 220, .18); }
.on-dark .ledger thead th { color: var(--maize); border-bottom-color: rgba(255, 240, 220, .5); }
.on-dark .ledger tbody th { color: var(--cream); }
@media (max-width: 720px) {
  .ledger-wrap { padding: 4px 18px; }
  .ledger thead { display: none; }
  .ledger tr { display: block; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
  .on-dark .ledger tr { border-bottom-color: rgba(255, 240, 220, .18); }
  .ledger tr:last-child { border-bottom: 0; }
  .ledger th, .ledger td { display: block; padding: 3px 0; border: 0; }
  .ledger td[data-label]::before { content: attr(data-label) " — "; font-family: var(--font-display); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
}

/* ------------------------------------------------------------ markets */
.markets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; list-style: none; margin: 0; padding: 0; }
.markets li { margin: 0; padding: 22px; border-radius: 22px; border: var(--stroke) solid rgba(255, 240, 220, .5); min-width: 0; transition: transform var(--dur) var(--spring), background-color var(--dur); }
.markets li:hover { transform: rotate(-2deg) scale(1.03); background: rgba(255, 240, 220, .08); }
.markets li:nth-child(4n+1) b { color: var(--maize); }
.markets li:nth-child(4n+2) b { color: var(--coral-soft); }
.markets li:nth-child(4n+3) b { color: var(--mint); }
.markets li:nth-child(4n+4) b { color: var(--gold); }
.markets b { display: block; font-family: var(--font-display); font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.6rem); font-weight: 800; line-height: 1.05; margin-bottom: 8px; }
.markets span { display: block; font-size: var(--type-small); }
@media (max-width: 900px) { .markets { grid-template-columns: 1fr 1fr; } }

/* ------------------------------------------------------------ gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 24px); }
.gallery figure { margin: 0; min-width: 0; }
.gallery figure:nth-child(odd) { transform: rotate(-1.5deg); }
.gallery figure:nth-child(even) { transform: rotate(1.5deg) translateY(10px); }
.gallery button { all: unset; display: block; width: 100%; cursor: zoom-in; border-radius: 20px; }
.gallery button:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }
.gallery .tile { display: block; border-color: var(--cream); box-shadow: 6px 6px 0 var(--maize); transition: transform var(--dur) var(--spring); }
.gallery button:hover .tile { transform: scale(1.04) rotate(-1deg); }
.gallery .tile img { aspect-ratio: 4 / 3; }
.gallery .figcap { margin-top: 14px; }
@media (max-width: 1024px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr 1fr; } }

.lightbox { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 24px; background: rgba(18, 71, 52, .95); border: 0; max-width: none; max-height: none; width: 100%; height: 100%; margin: 0; }
.lightbox:not([open]) { display: none; }
.lightbox img { max-height: 80vh; width: auto; max-width: 100%; border-radius: 20px; border: 3px solid var(--cream); }
.lightbox p { color: var(--cream); text-align: center; margin: 14px 0 0; font-family: var(--font-display); font-weight: 800; }
.lightbox .close { position: absolute; top: 16px; right: 16px; width: 52px; height: 52px; border-radius: 50%; border: var(--stroke) solid var(--ink); background: var(--maize); color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer; }
.lightbox::backdrop { background: rgba(18, 71, 52, .95); }

/* ------------------------------------------------------------ films */
.films { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 28px); }
.films figure { margin: 0; min-width: 0; }
.films figcaption { padding-top: 14px; font-family: var(--font-display); font-weight: 800; }
.films figcaption span { display: block; font-family: var(--font-body); font-weight: 300; font-size: 13px; color: var(--ink-soft); }
@media (max-width: 860px) { .films { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .films { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ H.E.A.R.T */
.heart { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(14px, 2vw, 24px); }
.heart > div { min-width: 0; padding: var(--space-4); border: var(--stroke) solid var(--ink); border-radius: var(--rad); background: #fff; box-shadow: var(--pop); transition: transform var(--dur-slow) var(--spring); }
.heart > div:hover { transform: translateY(-6px) rotate(-1.5deg); }
.heart .letter { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 16px; border-radius: 50%; border: var(--stroke) solid var(--ink); font-family: var(--font-display); font-size: 2rem; font-weight: 800; line-height: 1; color: var(--ink); }
.heart > div:nth-child(1) .letter { background: var(--maize); }
.heart > div:nth-child(2) .letter { background: var(--mint); }
.heart > div:nth-child(3) .letter { background: var(--coral-soft); }
.heart > div:nth-child(4) .letter { background: var(--gold); }
.heart > div:nth-child(5) .letter { background: var(--msu-green); color: var(--maize); }
.heart h3 { font-size: 1.2rem; margin-bottom: .3em; }
.heart p { font-size: var(--type-small); margin: 0; }
@media (max-width: 1080px) { .heart { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .heart { grid-template-columns: 1fr 1fr; } }
@media (max-width: 400px) { .heart { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ mission / vision */
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 3vw, 36px); }
.mv > div { padding: var(--space-6) var(--space-5); border: var(--stroke) solid var(--ink); border-radius: var(--rad-lg); box-shadow: var(--pop-lg); min-width: 0; }
.mv > div:first-child { background: #fff; transform: rotate(-1deg); }
.mv > div:last-child { background: var(--coral-soft); transform: rotate(1deg); }
.mv h2 { display: inline-block; font-size: var(--type-caption); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 6px 14px; border-radius: var(--pill); background: var(--ink); color: var(--maize); }
.mv .subhead { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 800; margin-bottom: .6em; }
@media (max-width: 760px) { .mv { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ packs */
.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.packs li { margin: 0; padding: 18px 12px 14px; text-align: center; border: var(--stroke) solid var(--ink); border-radius: 22px; background: #fff; transition: transform var(--dur) var(--spring), box-shadow var(--dur); }
.packs li:nth-child(3n+1) { background: var(--cream); }
.packs li:nth-child(3n+2) { background: var(--mint); }
.packs li:nth-child(3n) { background: var(--coral-soft); }
.packs li:hover { transform: translateY(-6px) rotate(-2deg); box-shadow: var(--pop); }
.packs .img { height: 132px; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 12px; }
.packs img { max-height: 100%; width: auto; transition: transform var(--dur) var(--spring); }
.packs li:hover img { transform: scale(1.08) rotate(4deg); }
.packs b { display: block; font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; }
.packs span { font-size: 13px; }
@media (max-width: 460px) { .packs { grid-template-columns: 1fr 1fr; } .packs .img { height: 110px; } }

/* ------------------------------------------------------------ bands */
.band { text-align: center; }
.band .wrap > * { margin-inline: auto; }
.band h2 { max-width: 18ch; }
.band .lede { max-width: 54ch; }
.band .actions { justify-content: center; }
.band-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.band-row h2 { margin: 0; max-width: 22ch; }
.band-row .actions { margin-top: 0; }
.heritage-line { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; padding: var(--space-5); border: var(--stroke) solid var(--ink); border-radius: var(--rad-lg); background: var(--mint); box-shadow: var(--pop); }
.heritage-line .since { font-family: var(--font-display); font-size: var(--type-h2); font-weight: 800; line-height: 1; }
.heritage-line p { margin: 0; flex: 1 1 320px; }
.heritage-line .caption { margin: 0; }

/* ------------------------------------------------------------ offices */
.office { padding: var(--space-5); border: var(--stroke) solid var(--ink); border-radius: var(--rad); background: #fff; box-shadow: var(--pop); }
.office:nth-child(2) { background: var(--mint); }
.office:nth-child(3) { background: var(--coral-soft); }
.office h3 { font-weight: 800; }
.offices { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: clamp(18px, 2.4vw, 28px); }
.office address { font-style: normal; }
.on-dark .office { background: rgba(255, 240, 220, .06); border-color: rgba(255, 240, 220, .4); box-shadow: none; }

/* ------------------------------------------------------------ outlet finder */
.finder-panel { padding: clamp(24px, 4vw, 48px); border: var(--stroke) solid var(--ink); border-radius: var(--rad-lg); background: #fff; box-shadow: var(--pop-lg); }
.search { display: grid; grid-template-columns: 1fr 280px auto; gap: 16px 24px; align-items: end; }
.search label { display: block; margin-bottom: 8px; font-family: var(--font-display); font-size: .9rem; font-weight: 800; }
.search input, .search select { width: 100%; min-height: 60px; padding: 8px 18px; border: var(--stroke) solid var(--ink); border-radius: var(--pill); background: var(--cream); font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--ink); -webkit-appearance: none; appearance: none; }
.search select { padding-right: 46px; background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23124734' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 18px center no-repeat; }
.search input:focus, .search select:focus { outline: none; box-shadow: 4px 4px 0 var(--ink); }
.search input::placeholder { color: #7a6a52; }
.results { margin-top: var(--space-5); }
.results-head { font-family: var(--font-display); font-weight: 800; margin-bottom: var(--space-3); }
.result { display: grid; grid-template-columns: 1.2fr 2fr 1.4fr; gap: 8px 24px; padding: 20px; border-radius: 20px; background: var(--maize); border: var(--stroke) solid var(--ink); margin-bottom: 12px; }
.result h3 { margin: 0; font-size: 1.15rem; }
.result p { margin: 0; }
@media (max-width: 760px) { .search { grid-template-columns: 1fr; } .search .btn { width: 100%; } .result { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ press */
.press-feature { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.press-feature figure { margin: 0; min-width: 0; }
.press-feature figcaption { padding-top: 12px; font-family: var(--font-display); font-weight: 800; }
.press-feature figcaption span { display: block; font-family: var(--font-body); font-weight: 300; font-size: 13px; color: var(--ink-soft); }
@media (max-width: 860px) { .press-feature { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ map */
.map-strip { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.map-strip .circle { width: clamp(180px, 22vw, 280px); box-shadow: var(--pop-lg); }
@media (max-width: 640px) { .map-strip { grid-template-columns: 1fr; } }

@media (max-width: 900px) {
  .split, .split--57, .split--75 { grid-template-columns: 1fr; }
  .split .flip { order: -1; }
  .hero h1, .hero h1.wide { max-width: 16ch; }
  .compose { max-width: 520px; margin-inline: auto; }
}
