:root {
  --gold: #F4B900;
  --amber: #C87916;
  --cream: #FFF7E6;
  --ivory: #FFFDF7;
  --cocoa: #3B2A16;
  --olive: #687044;
  --tape: #17120C; /* the black of the honeycomb tape on every lid */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --text: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 3vw, 40px);
  --gap: clamp(88px, 11vw, 168px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --hexagon: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); /* flat-top, as the label */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cocoa); color: var(--cocoa); font: 400 18px/1.55 var(--text); overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, dl, dd, blockquote { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.hero :focus-visible, .bar :focus-visible, .hive :focus-visible, .foot :focus-visible { outline-color: var(--gold); }
.defs { position: absolute; }
.skip { position: fixed; left: var(--gutter); top: 10px; z-index: 20; background: var(--gold); padding: 10px 16px; transform: translateY(-300%); }
.skip:focus { transform: none; }

h1, h2, .foot-name, dt {
  font-family: var(--display); font-weight: 900; font-variation-settings: "SOFT" 100, "opsz" 144;
  letter-spacing: -.02em; line-height: .92;
}
h2 { font-size: clamp(48px, 8.4vw, 132px); text-wrap: balance; }
h3 { font: 900 clamp(28px, 3vw, 40px)/1 var(--display); font-variation-settings: "SOFT" 100, "opsz" 144; letter-spacing: -.01em; }
.lead { font-size: clamp(22px, 2.3vw, 30px); line-height: 1.3; }

.pill {
  display: inline-block; padding: 16px 26px; border-radius: 1000px; font-weight: 600; font-size: 16px; line-height: 1.2;
  text-decoration: none; transition: transform .25s var(--ease), background-color .2s;
}
.pill:hover { transform: translateY(-2px); }
.pill:active { transform: scale(.97); }
.pill.gold { background: var(--gold); color: var(--cocoa); }
.pill.gold:hover { background: #FFCB1F; }
.pill.dark { background: var(--cocoa); color: var(--cream); }
.pill.dark:hover { background: #553E22; }
.pill.ghost { color: var(--cream); background: #553E22; }
.pill.ghost:hover { background: #6A4F2E; }
.pill.big { padding: 20px 32px; font-size: 18px; }

/* Bar */
.bar {
  position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center;
  padding: 10px var(--gutter); background: var(--cocoa); color: var(--cream);
}
.brand { display: block; border-radius: 50%; }
.bar nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); }
.bar nav a:not(.pill) { position: relative; font-size: 16px; text-decoration: none; padding: 8px 0; }
.bar nav a:not(.pill)::after { content: ""; position: absolute; inset: auto 0 2px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.bar nav a:not(.pill):hover::after { transform: scaleX(1); }
.burger { display: none; padding: 12px 18px; background: #553E22; border-radius: 1000px; font-weight: 600; font-size: 16px; }

/* Hero: the gold label-hexagon rises behind the real jar */
.hero { background: var(--cocoa); color: var(--cream); padding: clamp(16px, 2vw, 32px) var(--gutter) 0; overflow: hidden; }
.hero h1 { font-size: clamp(44px, 8.7vw, 142px); text-align: center; }
.hero h1 span { display: block; color: var(--gold); }
.hero-stage {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 40vw) minmax(0, 1fr); align-items: center; gap: var(--gutter);
  margin-top: clamp(20px, 2.5vw, 40px);
}
.hero-text p { max-width: 24em; font-size: clamp(18px, 1.6vw, 22px); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-jar { position: relative; height: clamp(430px, 60vh, 700px); }
.hex-sun { position: absolute; inset: auto 0 0; aspect-ratio: 1 / .87; max-height: 86%; background: var(--gold); clip-path: var(--hexagon); }
.hero-jar img {
  position: absolute; left: 50%; bottom: 0; height: 100%; width: auto; max-width: none;
  translate: -50% calc(var(--drift, 0) * 1px);
}
.hero-sign { justify-self: end; max-width: 13em; font: 900 clamp(22px, 2.3vw, 32px)/1.1 var(--display); font-variation-settings: "SOFT" 100, "opsz" 144; }
.hero-sign svg { width: 44px; height: 33px; margin-bottom: 12px; color: var(--gold); }

/* The tape that crosses every lid becomes the band between sections */
.tape { position: relative; height: 64px; background: var(--tape); color: var(--gold); overflow: hidden; }
.tape-comb { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .4; }
.tape-run {
  position: absolute; top: 0; display: flex; align-items: center; height: 100%; white-space: nowrap; width: max-content;
  font: 900 26px/1 var(--display); font-variation-settings: "SOFT" 100, "opsz" 144;
  animation: run 46s linear infinite;
}
.tape-run span { padding: 6px 28px; background: var(--tape); }
@keyframes run { to { transform: translateX(-50%); } }

/* Intro */
.intro { background: var(--cream); padding: var(--gap) var(--gutter); display: grid; grid-template-columns: 7fr 5fr; gap: 48px clamp(32px, 5vw, 80px); align-items: start; }
.intro h2 { grid-column: 1 / -1; font-size: clamp(33px, 8.6vw, 136px); }
.intro h2 span { display: block; }

/* Honey shelf */
.honey { background: var(--ivory); padding: var(--gap) var(--gutter); }
.honey-head { display: grid; grid-template-columns: 7fr 5fr; gap: var(--gutter) clamp(32px, 5vw, 80px); align-items: end; }
.shelf { display: grid; grid-template-columns: 1fr 1.25fr 1.25fr 1.4fr; gap: clamp(12px, 2.4vw, 40px); align-items: end; margin-top: 64px; }
.pick { display: block; width: 100%; text-align: left; border-radius: 4px; }
.jar { display: block; }
.jar::after { content: ""; display: block; height: 14px; margin-top: -4px; background: var(--gold); } /* the shelf each jar stands on */
.pick img { width: 100%; object-fit: contain; object-position: bottom; transition: transform .45s var(--ease); }
.shelf .pick:hover img { transform: translateY(-10px) rotate(-1deg); }
.shelf .pick:active img { transform: translateY(-4px) scale(.98); }
.shelf small { display: block; margin-top: 18px; font-size: 15px; line-height: 1.2; }
.shelf strong { display: block; margin-top: 2px; font: 900 clamp(30px, 3vw, 44px)/1 var(--display); font-variation-settings: "SOFT" 100, "opsz" 144; letter-spacing: -.02em; }
.state { display: inline-block; margin-top: 8px; padding: 10px 16px; border-radius: 1000px; font-weight: 600; font-size: 15px; line-height: 1.2; background: var(--cream); transition: background-color .2s, color .2s, transform .2s var(--ease); }
.pick:hover .state { background: #FFE9B0; }
.pick[aria-pressed="true"] .state, .pick[aria-pressed="true"]:hover .state { background: var(--cocoa); color: var(--cream); }
.see { margin-top: 56px; }

/* Hive */
.hive { background: var(--cocoa); color: var(--cream); padding: var(--gap) var(--gutter); }
.hive h2 { color: var(--gold); }
.hive-sub { margin-top: 20px; max-width: 34em; font-size: clamp(20px, 2vw, 26px); line-height: 1.35; }
.cells { display: grid; grid-template-columns: repeat(4, 1fr); gap: 56px clamp(16px, 2.4vw, 36px); margin-top: 64px; }
.cell:nth-child(even) { margin-top: 72px; } /* offset as a comb is offset */
.hex { position: relative; aspect-ratio: 1 / .87; background: var(--cream); clip-path: var(--hexagon); display: grid; place-items: center; }
.hex img { position: absolute; inset: 7% 0; margin: auto; height: 86%; width: auto; transition: transform .45s var(--ease); }
.cell:hover .hex img { transform: scale(1.05); }
.hex svg { width: 76%; height: 76%; }
.hex img.wide { height: auto; width: 66%; inset: 0; }
.cell h3 { margin-top: 22px; }
.cell p { margin-top: 8px; }
.cell .state { background: #553E22; color: var(--cream); margin-top: 14px; }
.cell .pick:hover .state { background: #6A4F2E; }
.cell .pick[aria-pressed="true"] .state { background: var(--gold); color: var(--cocoa); }
.mini { width: auto; }

/* Why */
.why { background: var(--gold); padding: var(--gap) var(--gutter); }
.why dl { margin-top: 56px; }
.why dl div { display: grid; grid-template-columns: 7fr 5fr; gap: 8px clamp(32px, 5vw, 80px); align-items: end; padding: 22px 0; }
dt { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 24px); font-size: clamp(38px, 6vw, 96px); }
dt::before { content: ""; flex: none; width: .5em; aspect-ratio: 1 / .87; background: var(--cocoa); clip-path: var(--hexagon); } /* the label's hexagon as the bullet */
dd { font-size: 20px; line-height: 1.4; max-width: 26em; }

/* Story */
.story { background: var(--cream); padding: var(--gap) var(--gutter); display: grid; grid-template-columns: 6fr 6fr; gap: var(--gutter) clamp(32px, 5vw, 80px); align-items: center; }
.story-pic { clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); overflow: hidden; aspect-ratio: .87 / 1; }
.story-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 75%; transform: scale(calc(1 + var(--zoom, 0) * .06)); }
.story-text h2 { font-size: clamp(44px, 6vw, 92px); }
.story-text > * + * { margin-top: 22px; }

/* Quote */
.quote { background: var(--amber) url("assets/ambar.webp") center / cover; padding: clamp(96px, 16vw, 240px) var(--gutter); }
.quote h2 { font-size: clamp(34px, 7.4vw, 118px); max-width: 15em; margin-inline: auto; text-align: center; }

/* Crystallization */
.crystal { background: var(--olive); color: var(--ivory); padding: var(--gap) var(--gutter); display: grid; grid-template-columns: 7fr 5fr; gap: var(--gutter) clamp(32px, 5vw, 80px); align-items: center; }
.crystal h2 { grid-column: 1 / -1; font-size: clamp(34px, 5.7vw, 88px); }
.crystal-copy p { max-width: 36em; margin-top: 22px; }
#crystal polygon { transition: fill .5s linear; }

/* Contact */
.contact { background: var(--gold); padding: var(--gap) var(--gutter); }
.contact-grid { display: grid; grid-template-columns: 6fr 6fr; gap: 40px clamp(32px, 5vw, 80px); margin-top: 48px; align-items: start; }
.phone { margin-top: 24px; font: 900 clamp(32px, 4vw, 60px)/1 var(--display); font-variation-settings: "SOFT" 100, "opsz" 144; white-space: nowrap; }
.phone a { text-decoration-thickness: 3px; text-underline-offset: 6px; }
.note { background: var(--cream); padding: clamp(24px, 3vw, 40px); }
#wa-text { margin: 12px 0 24px; font-size: 20px; line-height: 1.4; white-space: pre-line; }

/* Footer */
.foot { background: var(--tape); color: var(--cream); padding: 64px var(--gutter) 24px; overflow: hidden; }
.foot-top { display: grid; grid-template-columns: auto 1fr auto; gap: 24px 40px; align-items: center; }
.foot-top > p { font: 900 clamp(22px, 2.4vw, 32px)/1.1 var(--display); font-variation-settings: "SOFT" 100, "opsz" 144; color: var(--gold); }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: flex-end; max-width: 30em; }
.foot nav a { text-decoration: none; padding: 6px 0; }
.foot nav a:hover { color: var(--gold); }
.foot-name { font-size: 15.4vw; line-height: .9; margin: 40px 0 16px; color: var(--gold); white-space: nowrap; text-align: center; letter-spacing: -.03em; }
.copy { font-size: 16px; }
.legal-page .lead + p { font-size: 18px; }

/* Privacy */
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; margin-bottom: 24px; font-size: 16px; line-height: 1.45; cursor: pointer; }
.check input { width: 24px; height: 24px; margin: 0; accent-color: var(--cocoa); }
.check strong { display: block; }
.legal { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-bottom: 12px; }
.legal a, .legal button { padding: 6px 0; font-size: 16px; text-decoration: none; }
.legal a:hover, .legal button:hover { color: var(--gold); }

.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: 1fr auto; gap: 16px 40px; align-items: center;
  padding: 20px var(--gutter); background: var(--tape); color: var(--cream);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { max-width: 62em; font-size: 16px; line-height: 1.45; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: clamp(24px, 4vw, 40px); border: 0; background: var(--cream); color: var(--cocoa); }
.cookie-dialog::backdrop { background: rgb(23 18 12 / .7); }
.cookie-dialog h2 { font-size: clamp(30px, 4vw, 40px); margin-bottom: 24px; }
.cookie-dialog .check:has(:disabled) { cursor: default; }

.legal-page { background: var(--cream); padding: clamp(48px, 7vw, 96px) var(--gutter) var(--gap); }
.legal-page > * { max-width: 760px; margin-inline: auto; }
.legal-page h1 { font-size: clamp(44px, 7vw, 92px); }
.legal-page h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.05; margin-top: 56px; margin-bottom: 14px; }
.legal-page p + p, .legal-page ul + p, .legal-page .table-wrap + p { margin-top: 16px; }
.legal-page .lead { margin-top: 20px; margin-bottom: 20px; }
.legal-page ul { list-style: disc; padding-left: 1.2em; margin-top: 12px; }
.legal-page li + li { margin-top: 6px; }
.updated { margin-top: 16px; font-size: 16px; }
.table-wrap { overflow-x: auto; margin-top: 16px; }
.legal-page table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.4; }
.legal-page th, .legal-page td { padding: 12px 14px; text-align: left; vertical-align: top; }
.legal-page th { background: var(--cocoa); color: var(--cream); }
.legal-page tbody tr:nth-child(odd) { background: #FFEFC7; }
mark { background: var(--gold); color: var(--cocoa); padding: 0 4px; font-weight: 600; }

/* Entrances: hidden only once JS has armed them */
.js .up { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js .up.in { opacity: 1; transform: none; }

@media (max-width: 1040px) {
  .burger { display: block; }
  .bar nav {
    position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 16px var(--gutter) 28px; background: var(--cocoa);
  }
  .bar nav.open { display: flex; }
  .bar nav a:not(.pill) { font: 900 34px/1.2 var(--display); font-variation-settings: "SOFT" 100, "opsz" 144; }
  .bar nav .pill { margin-top: 14px; }
  .cells { grid-template-columns: repeat(2, 1fr); }
  .cell:nth-child(even) { margin-top: 40px; }
}

@media (max-width: 1040px) {
  .hero-sign { display: none; }
  .hero-stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero-jar { height: clamp(380px, 56vw, 560px); }
}

@media (max-width: 760px) {
  body { font-size: 17px; }
  .hero h1 { text-align: left; font-size: clamp(42px, 13.4vw, 96px); }
  .hero-stage { grid-template-columns: minmax(0, 1fr); margin-top: 18px; }
  .hero-jar { height: 112vw; max-height: 620px; }
  .hex-sun { max-height: none; }
  .intro, .honey-head, .why dl div, .story, .crystal, .contact-grid { grid-template-columns: 1fr; }
  .shelf { grid-template-columns: 1fr 1fr; gap: 36px 16px; margin-top: 44px; }
  .shelf li { display: flex; align-items: flex-end; }
  .state { font-size: 15px; padding: 11px 14px; }
  .crystal-art { max-width: 300px; }
  .foot-top { grid-template-columns: 1fr; }
  .foot nav { justify-content: flex-start; }
  .phone { font-size: clamp(30px, 9.4vw, 44px); }
  .pill.big { display: block; width: 100%; text-align: center; padding: 18px 16px; font-size: 17px; }
  .cookie-banner { grid-template-columns: 1fr; gap: 12px; padding-block: 14px; }
  .cookie-banner p { font-size: 14px; line-height: 1.4; }
  .cookie-actions { gap: 8px; }
  .cookie-actions .pill { flex: 1 1 100%; padding-block: 11px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .up { opacity: 1; transform: none; }
}
