/* Homie's Coffee PH, v2.
   Job of the site: get a curious Filipina who drinks (or wants to drink) black coffee to open the Discovery Set.
   Layout: one big interactive object up top (the starter-kit box), then plain report-back sections, each shaped by its content.
   Single light theme on purpose: the logo is black line art and the 2022 guidelines forbid recoloring it.
   Colors and type come from the Homie's Coffee design system. */
:root {
  color-scheme: light;
  --surface: #F7F9F8;          /* Pearl */
  --surface-raised: #FFFFFF;
  --surface-warm: #F6EBDD;     /* Talisman tint */
  --ink: #241E19;
  --ink-muted: #5E5650;
  --line: #E8DCCD;
  --border-control: #8F8378;
  --rufous: #C15200;           /* Orange Rufous */
  --on-rufous: #FFFFFF;
  --rufous-text: #A84800;
  --jade: #678761;             /* Jade Green */
  --jade-text: #55704F;
  --leaves: #B7906C;           /* Windswept Leaves, the box kraft */
  --leaves-dark: #9C7756;
  --leaves-deep: #7E5F43;
  --talisman: #E8C69B;         /* Golden Talisman */
  --on-talisman: #241E19;
  --focus: #A84800;
  --bean-robusta: #D82424;  --on-bean-robusta: #FFFFFF;
  --bean-arabica: #003C78;  --on-bean-arabica: #FFFFFF;
  --bean-excelsa: #FCC024;  --on-bean-excelsa: #241E19;
  --bean-liberica: #0B7A3D; --on-bean-liberica: #FFFFFF;
  --bean-buklod: #7824B4;   --on-bean-buklod: #FFFFFF;

  /* Bricolage Grotesque: chunky, slightly irregular grotesque that echoes the heavy block letters on the bottle labels.
     Figtree: round, friendly sans that stays easy over long Kape 101 notes.
     DM Mono: numbers only (mL, %, dates, roast steps). */
  --display: "Bricolage Grotesque", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "DM Mono", ui-monospace, Menlo, monospace;
  --max: 1140px;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--surface); }
body { background: var(--surface); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; margin: 0; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--surface); }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 760px; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

h1, h2, h3 { font-family: var(--display); line-height: 1.06; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(40px, 6.4vw, 72px); font-weight: 700; }
h2 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 700; }
h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
.lead { font-size: clamp(18px, 2vw, 20px); color: var(--ink-muted); max-width: 56ch; }
.muted { color: var(--ink-muted); }
.small { font-size: 15px; }
.kicker { font-weight: 700; color: var(--jade-text); font-size: 15.5px; }
.stack { display: grid; gap: 16px; }
.stack-lg { display: grid; gap: 26px; }

/* header: a plain bar, not a floating pill */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.logo img { height: 44px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 15.5px; }
.nav-links a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--rufous); text-decoration-thickness: 2px; text-underline-offset: 7px; }
.menu-toggle { display: none; font: 600 15px var(--body); background: none; color: var(--ink); border: 1.5px solid var(--border-control); border-radius: 999px; padding: 7px 16px; cursor: pointer; }
@media (max-width: 900px) {
  .menu-toggle { display: inline-block; }
  .nav { flex-wrap: wrap; }
  .nav-links { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 14px; padding: 6px 0 14px; }
  .nav-links.open { display: flex; }
}

/* actions */
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--rufous); color: var(--on-rufous); font: 700 16px var(--body); text-decoration: none; padding: 13px 22px; border-radius: 999px; border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 -2px rgba(193, 82, 0, .35); }
.btn.small { padding: 9px 16px; font-size: 15px; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--border-control); }
.btn.ghost:hover { box-shadow: none; border-color: var(--ink); }
.btn .num { font-size: 15px; opacity: .92; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.text-link { font-weight: 700; color: var(--rufous-text); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }

section { padding-block: clamp(56px, 8vw, 96px); }
.band-warm { background: var(--surface-warm); }
.band-ink { background: var(--ink); color: var(--surface); }
.band-ink .muted, .band-ink .lead { color: #D6CEC6; }
.band-ink .kicker { color: var(--talisman); }
.band-ink .text-link { color: var(--talisman); }

/* ---------- unboxing hero ---------- */
.hero { padding-block: clamp(36px, 5vw, 64px) clamp(40px, 5vw, 64px); overflow-x: clip; }
.hero-grid h1 { font-size: clamp(38px, 5vw, 62px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 32px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.hero-grid > * { min-width: 0; }
.hero h1 em { font-style: normal; color: var(--rufous); }

.unbox { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 18px; width: 100%; min-width: 0; }
.stage { position: relative; width: 520px; height: 470px; max-width: 100%; }
.stage-inner { position: absolute; left: 50%; top: 0; width: 520px; height: 470px; transform-origin: top center; transform: translateX(-50%) scale(var(--fit, 1)); }
@media (max-width: 560px) { .stage { height: 320px; } .stage-inner { --fit: .68; } }
@media (max-width: 400px) { .stage { height: 284px; } .stage-inner { --fit: .6; } }
.scene { position: absolute; left: 50%; bottom: 96px; width: 300px; height: 210px; margin-left: -150px; perspective: 1700px; perspective-origin: 50% -30%; transition: bottom .8s cubic-bezier(.2,.8,.2,1); }
.unbox:not(.open) .scene { bottom: 150px; }
.box { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(-18deg) rotateY(-30deg); transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.unbox.open .box { transform: rotateX(-14deg) rotateY(-14deg) translateY(16px); }
.face { position: absolute; left: 0; top: 0; backface-visibility: hidden; }
/* W 300, H 210, D 180 */
.f-front { width: 300px; height: 210px; background: var(--leaves); transform: translateZ(90px); display: grid; place-items: center; }
.f-back { width: 300px; height: 210px; background: var(--leaves-deep); transform: rotateY(180deg) translateZ(90px); backface-visibility: visible; }
.f-right { width: 180px; height: 210px; left: 60px; background: var(--leaves-dark); transform: rotateY(90deg) translateZ(150px); }
.f-left { width: 180px; height: 210px; left: 60px; background: var(--leaves-deep); transform: rotateY(-90deg) translateZ(150px); backface-visibility: visible; }
.f-inside { width: 300px; height: 180px; top: 15px; background: var(--leaves-deep); transform: rotateX(90deg) translateZ(-105px); backface-visibility: visible; }
.flap { position: absolute; background: var(--leaves); backface-visibility: visible; transition: transform .7s cubic-bezier(.3,.7,.2,1); }
.flap-f { width: 300px; height: 90px; left: 0; top: 0; transform-origin: 50% 0; transform: translateZ(90px) rotateX(-90deg); background: #C49F7C; }
.flap-b { width: 300px; height: 90px; left: 0; top: 0; transform-origin: 50% 0; transform: translateZ(-90px) rotateX(90deg); background: #C49F7C; }
.flap-l { width: 180px; height: 150px; left: 60px; top: 3px; transform-origin: 50% 0; transform: rotateY(-90deg) translateZ(150px) rotateX(-90deg); background: #BC9673; }
.flap-r { width: 180px; height: 150px; left: 60px; top: 3px; transform-origin: 50% 0; transform: rotateY(90deg) translateZ(150px) rotateX(-90deg); background: #BC9673; }
.unbox.open .flap-f { transform: translateZ(90px) rotateX(-215deg); transition-delay: .05s; }
.unbox.open .flap-b { transform: translateZ(-90px) rotateX(215deg); transition-delay: .12s; }
.unbox.open .flap-l { transform: rotateY(-90deg) translateZ(150px) rotateX(-205deg); }
.unbox.open .flap-r { transform: rotateY(90deg) translateZ(150px) rotateX(-205deg); }
.tape { position: absolute; left: 50%; width: 46px; margin-left: -23px; top: 0; height: 100%; background: rgba(193, 82, 0, .88); transition: opacity .3s; }
.flap-f .tape, .flap-b .tape { height: 100%; }
.unbox.open .tape { opacity: .35; }
.sticker { background: var(--talisman); color: var(--on-talisman); border-radius: 14px; padding: 14px 18px; display: grid; gap: 4px; text-align: center; transform: rotate(-2.5deg); width: 210px; }
.sticker img { width: 54px; height: 54px; margin: 0 auto 2px; }
.sticker strong { font-family: var(--display); font-size: 21px; line-height: 1.05; letter-spacing: -0.01em; }
.sticker span { font-family: var(--mono); font-size: 12px; }

.bottles { position: absolute; inset: 0; pointer-events: none; }
.bottle { position: absolute; left: 50%; bottom: 196px; width: 86px; margin-left: -43px; padding: 0; border: 0; background: none; cursor: pointer; pointer-events: none; opacity: 0; transform: translate(0, 60px) scale(.82); transition: transform .8s cubic-bezier(.2,.9,.25,1.15), opacity .3s; border-radius: 12px; }
.bottle img { width: 100%; height: auto; filter: drop-shadow(0 10px 10px rgba(36, 30, 25, .22)); }
.bottle span { display: block; font: 600 13px var(--body); color: var(--ink); text-align: center; margin-top: 4px; opacity: 0; transition: opacity .3s .5s; }
.unbox.open .bottle { opacity: 1; pointer-events: auto; }
.unbox.open .bottle span { opacity: 1; }
.unbox.open .bottle[data-bean="robusta"]  { transform: translate(-196px, -38px) rotate(-7deg); transition-delay: .35s; }
.unbox.open .bottle[data-bean="arabica"]  { transform: translate(-98px, -78px) rotate(-3deg); transition-delay: .45s; }
.unbox.open .bottle[data-bean="buklod"]   { transform: translate(0, -104px) scale(1.12); transition-delay: .55s; z-index: 2; }
.unbox.open .bottle[data-bean="excelsa"]  { transform: translate(98px, -78px) rotate(3deg); transition-delay: .5s; }
.unbox.open .bottle[data-bean="liberica"] { transform: translate(196px, -38px) rotate(7deg); transition-delay: .4s; }
.bottle[aria-pressed="true"] img { filter: drop-shadow(0 0 0 transparent) drop-shadow(0 12px 12px rgba(193, 82, 0, .35)); }
.bottle[aria-pressed="true"] span { color: var(--rufous-text); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

.open-box { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 3; }
.unbox.open .open-box { display: none; }
.box-hit { position: absolute; left: 50%; bottom: 130px; width: 360px; height: 280px; margin-left: -170px; z-index: 2; background: transparent; border: 0; cursor: pointer; border-radius: 20px; }
.unbox.open .box-hit { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .unbox:not(.open) .box { animation: nudge 3.2s ease-in-out 1.2s 2; }
  @keyframes nudge { 0%, 70%, 100% { transform: rotateX(-18deg) rotateY(-30deg); } 78% { transform: rotateX(-18deg) rotateY(-30deg) rotateZ(-2deg); } 86% { transform: rotateX(-18deg) rotateY(-30deg) rotateZ(2deg); } }
}

.bean-card { width: 100%; max-width: 520px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; display: grid; gap: 8px; min-height: 132px; }
.bean-card[hidden] { display: none !important; }
.bean-card .top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font: 600 13px var(--body); padding: 4px 12px; border-radius: 999px; }
.tag.robusta { background: var(--bean-robusta); color: var(--on-bean-robusta); }
.tag.arabica { background: var(--bean-arabica); color: var(--on-bean-arabica); }
.tag.excelsa { background: var(--bean-excelsa); color: var(--on-bean-excelsa); }
.tag.liberica { background: var(--bean-liberica); color: var(--on-bean-liberica); }
.tag.buklod { background: var(--bean-buklod); color: var(--on-bean-buklod); }
.tag.plain { background: transparent; color: var(--ink-muted); border: 1px solid var(--border-control); font-weight: 500; }
.repack { background: none; border: 0; font: 600 14px var(--body); color: var(--ink-muted); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; padding: 4px; justify-self: start; }

/* ---------- roast scale ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.panel { background: var(--surface-raised); border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 3vw, 32px); }
.roast { display: grid; gap: 12px; }
.roast-bar { position: relative; height: 26px; border-radius: 999px; background: linear-gradient(90deg, #D9B98A 0%, #C08A55 28%, #9A6036 52%, #5E3A22 76%, #2A1A10 100%); }
.roast-zone { position: absolute; top: -9px; bottom: -9px; left: 21%; width: 36%; border: 3px solid var(--jade); border-radius: 999px; }
.roast-no { position: absolute; top: 0; bottom: 0; left: 78%; right: 0; border-radius: 0 999px 999px 0; background: repeating-linear-gradient(-45deg, transparent 0 6px, rgba(247, 249, 248, .55) 6px 8px); }
.roast-labels { display: grid; grid-template-columns: repeat(5, 1fr); font-family: var(--mono); font-size: 12.5px; color: var(--ink-muted); }
.roast-labels span:nth-child(2), .roast-labels span:nth-child(3) { color: var(--jade-text); font-weight: 500; }
.roast-labels span:last-child { text-align: right; }
.roast-key { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; color: var(--ink-muted); }
.roast-key i { display: inline-block; width: 22px; height: 12px; border-radius: 6px; margin-right: 8px; vertical-align: -1px; }

/* ---------- delivery month ---------- */
.month-wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
@media (max-width: 860px) { .month-wrap { grid-template-columns: 1fr; } }
.month { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; font-family: var(--mono); font-size: 13px; }
.month span { aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; color: var(--ink-muted); background: var(--surface-raised); border: 1px solid var(--line); min-width: 0; }
.month span.drop { background: var(--rufous); color: var(--on-rufous); border-color: var(--rufous); font-weight: 500; }
.month-key { font-size: 15px; color: var(--ink-muted); margin-top: 12px; }
.price { font-family: var(--display); font-size: clamp(56px, 8vw, 84px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.facts li { display: flex; gap: 12px; align-items: baseline; }
.facts .num { min-width: 92px; color: var(--ink); font-size: 15px; }

/* ---------- Buklod ratio ---------- */
.ratio { display: flex; height: 52px; border-radius: 12px; overflow: hidden; }
.ratio div { display: flex; align-items: center; padding-left: 12px; font-family: var(--mono); font-size: 13.5px; font-weight: 500; min-width: 0; white-space: nowrap; overflow: hidden; }
.ratio-legend { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; margin-top: 12px; }
.ratio-legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 8px; background: var(--c); vertical-align: -1px; }

/* ---------- bean lineup (coffee page) ---------- */
.lineup { display: grid; gap: 18px; }
.bean-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; align-items: center; background: var(--surface-raised); border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px 18px 18px; }
.bean-row img { width: 100%; height: auto; }
.bean-row dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 6px 0 0; font-size: 15.5px; }
.bean-row dt { color: var(--ink-muted); font-weight: 600; }
.bean-row dd { margin: 0; }
.bean-row.feature { grid-template-columns: 170px minmax(0, 1fr); border: 2px solid var(--bean-buklod); }
@media (max-width: 560px) { .bean-row, .bean-row.feature { grid-template-columns: 84px minmax(0, 1fr); gap: 16px; } }
.placeholder { border: 1.5px dashed var(--border-control); border-radius: 12px; padding: 10px 14px; color: var(--ink-muted); font-size: 14.5px; background: var(--surface-raised); }

/* shelf of real bottles (Discovery Set page) */
.shelf { display: flex; justify-content: center; align-items: flex-end; gap: clamp(4px, 1.5vw, 14px); padding: 24px 12px 0; border-bottom: 14px solid var(--leaves); }
.shelf img { width: clamp(52px, 13vw, 96px); height: auto; }
.shelf img.mid { width: clamp(60px, 15vw, 110px); }

/* steps: a real sequence */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 16px; }
.steps li::before { content: counter(s); grid-row: span 2; font-family: var(--display); font-weight: 800; font-size: 20px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--talisman); color: var(--on-talisman); }

/* notes (Kape 101) */
.notes { columns: 2 320px; column-gap: 18px; }
.note { break-inside: avoid; background: var(--surface-raised); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; display: grid; gap: 8px; margin-bottom: 18px; }
.status { justify-self: start; font: 600 12.5px var(--body); padding: 3px 10px; border-radius: 999px; background: #E4ECE1; color: var(--jade-text); }
.status.open { background: var(--surface-warm); color: var(--rufous-text); }

/* values (story) */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px 40px; }
.values div { display: grid; gap: 6px; border-top: 2px solid var(--talisman); padding-top: 14px; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface-raised); border: 1px solid var(--line); border-radius: 14px; padding: 2px 20px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--rufous-text); font-size: 22px; line-height: 1; font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 18px; color: var(--ink-muted); }
.faq-group { font-family: var(--display); font-size: 20px; font-weight: 600; margin: 36px 0 12px; }

.pull { font-family: var(--display); font-size: clamp(26px, 3.4vw, 38px); font-weight: 600; line-height: 1.18; letter-spacing: -0.02em; max-width: 24ch; }

/* footer: only links that exist */
.site-footer { background: var(--ink); color: var(--surface); padding-block: 44px 36px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; align-items: flex-start; }
.foot .logo-patch { background: var(--surface); border-radius: 14px; padding: 10px 14px; display: inline-block; }
.foot .logo-patch img { height: 40px; width: auto; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.foot a { color: #E2DAD2; text-decoration: none; font-weight: 600; }
.foot a:hover { color: var(--surface); text-decoration: underline; }
.foot-note { margin-top: 26px; font-size: 14px; color: #B5ABA2; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
[hidden] { display: none !important; }

/* ================= v3 additions ================= */
/* Baybayin: drawn as a stroke, then filled (site.js). Static and filled when motion is reduced or JS is off. */
.baybayin { margin: 0; display: grid; gap: 2px; }
.baybayin svg { width: 100%; height: auto; overflow: visible; }
.bb-text { font-family: "Noto Sans Tagalog", serif; font-size: 96px; fill: var(--rufous); stroke: var(--rufous); stroke-width: 1.2; paint-order: stroke; }
.baybayin figcaption { font-size: 13.5px; color: var(--ink-muted); }
.baybayin figcaption b { color: var(--ink); font-weight: 700; }
.bb-hero { width: 150px; }
.bb-small { width: 160px; }
.bb-small .bb-text { font-size: 84px; fill: var(--bean-buklod); stroke: var(--bean-buklod); }
.bb-ds { width: min(100%, 420px); justify-self: end; }
.bb-ds .bb-text { font-size: 104px; }

/* unbox toggle: when open, the box itself packs it up again */
.unbox.open .box-hit { display: block; bottom: 70px; height: 170px; z-index: 1; }
.unbox .bottles { z-index: 3; }
.bean-info { width: 100%; max-width: 520px; display: grid; justify-items: center; gap: 10px; }
.hover-hint { font-size: 14.5px; color: var(--ink-muted); }
.unbox.open .box-prompt { display: inline-flex !important; }

/* interactive ship-day calendar */
.cal { background: var(--surface-raised); border: 1px solid var(--line); border-radius: 22px; padding: 20px; display: grid; gap: 10px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cal-title { font-family: var(--display); font-size: 22px; font-weight: 600; }
.cal-nav { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--border-control); background: var(--surface); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.cal-nav:hover { border-color: var(--ink); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-week b { text-align: center; font: 600 12.5px var(--body); color: var(--ink-muted); }
.cal-days > * { aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; font-family: var(--mono); font-size: 13px; color: var(--ink-muted); background: var(--surface); min-width: 0; transition: transform .2s ease; }
.cal-days > .pad { background: transparent; }
.cal-days > .drop { background: var(--rufous); color: var(--on-rufous); font-weight: 500; }
.cal-days > .today { box-shadow: inset 0 0 0 2px var(--jade); color: var(--ink); }
.cal-days > .drop.today { box-shadow: inset 0 0 0 3px var(--ink); }
.cal-days > .next { transform: scale(1.12); }
.cal-next { font-weight: 700; }
.cal-next .num { font-weight: 500; color: var(--rufous-text); }
.cal-key { font-size: 13.5px; color: var(--ink-muted); display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; }
.cal-key i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; }
.k-drop { background: var(--rufous); } .k-today { box-shadow: inset 0 0 0 2px var(--jade); margin-left: 8px; }

/* Discovery Set hero */
.ds-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 32px; align-items: end; }
@media (max-width: 860px) { .ds-head { grid-template-columns: minmax(0, 1fr); } .bb-ds { justify-self: start; } }
.ds-shelf { margin-top: 40px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(6px, 2vw, 28px); align-items: end; padding: 0 clamp(4px, 3vw, 40px); border-bottom: 16px solid var(--leaves); }
.ds-bottle { margin: 0; display: grid; justify-items: center; gap: 10px; padding-bottom: 14px; }
.ds-bottle img { width: 100%; max-width: 150px; height: auto; transform-origin: 50% 100%; will-change: transform; }
.ds-bottle.mid img { max-width: 172px; }
.ds-bottle figcaption { display: grid; justify-items: center; gap: 6px; font-size: 15px; text-align: center; }
@media (max-width: 560px) { .ds-bottle figcaption .tags { display: none; } .ds-bottle figcaption { font-size: 12.5px; } }

/* how-to-drink cards: icon appears on hover or focus */
.drink-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.drink { position: relative; background: var(--surface-raised); border: 1px solid var(--line); border-radius: 18px; padding: 72px 22px 22px; display: grid; gap: 8px; align-content: start; transition: border-color .25s ease; }
.drink:hover, .drink:focus-visible { border-color: var(--leaves); }
.drink-icon { position: absolute; top: 18px; left: 20px; width: 44px; height: 44px; color: var(--ink); opacity: 0; transform: translateY(8px) rotate(-8deg); transition: opacity .3s ease, transform .35s cubic-bezier(.2,.8,.2,1.2); }
.drink-icon svg { width: 100%; height: 100%; }
.drink:hover .drink-icon, .drink:focus-visible .drink-icon { opacity: 1; transform: none; }
@media (hover: none) { .drink-icon { opacity: 1; transform: none; } }

/* placeholders for assets still to come */
.video-ph, .photo-ph { border: 1.5px dashed var(--border-control); border-radius: 18px; background: var(--surface-raised); display: grid; place-items: center; text-align: center; padding: 20px; color: var(--ink-muted); font-size: 15px; }
.video-ph { aspect-ratio: 16 / 9; }
.photo-ph { aspect-ratio: 4 / 5; }
.photo-ph.wide { aspect-ratio: 16 / 9; }
.story-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 40px; align-items: center; }
@media (max-width: 860px) { .story-head { grid-template-columns: minmax(0, 1fr); } }

/* lead magnet */
.lead-magnet { display: grid; grid-template-columns: minmax(0, 0.6fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.lead-magnet img { width: 100%; max-width: 320px; height: auto; border-radius: 6px; box-shadow: 0 1px 0 var(--line), 0 18px 40px -18px rgba(36, 30, 25, .35); transform: rotate(-2deg); justify-self: center; }
@media (max-width: 760px) { .lead-magnet { grid-template-columns: minmax(0, 1fr); } .lead-magnet img { max-width: 220px; } }

/* story scrapbook: real photos in white print frames, old packaging and all */
.snap { margin: 0; background: #FFFFFF; padding: 10px 10px 14px; border-radius: 6px; box-shadow: 0 1px 0 var(--line), 0 14px 30px -18px rgba(36, 30, 25, .45); display: grid; gap: 10px; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.snap img { width: 100%; height: auto; border-radius: 3px; }
.snap figcaption { font-size: 14px; line-height: 1.45; color: var(--ink-muted); padding: 0 4px; }
.snap-lead { transform: rotate(2deg); max-width: 420px; justify-self: center; }
.scrapbook { columns: 3 260px; column-gap: 22px; }
.scrapbook .snap { break-inside: avoid; margin-bottom: 22px; }
.scrapbook .snap:nth-child(odd) { transform: rotate(-1.4deg); }
.scrapbook .snap:nth-child(even) { transform: rotate(1.2deg); }
@media (hover: hover) { .scrapbook .snap:hover, .snap-lead:hover { transform: rotate(0) scale(1.02); } }

/* ================= v4 ================= */
/* calendar order windows */
.cal-days > button { border: 0; font: inherit; font-family: var(--mono); cursor: pointer; }
.cal-days > .w15 { background: #F3E4CF; color: var(--ink); }
.cal-days > .w30 { background: #E2EADF; color: var(--ink); }
.cal-days > .sel { outline: 2px solid var(--ink); outline-offset: 1px; }
.cal-days > button:hover { transform: scale(1.08); }
.cal-pick { font-size: 15px; color: var(--ink-muted); min-height: 1.6em; }
.cal-pick b { color: var(--ink); }
.cal-key { gap: 6px 16px; }
.cal-key span { display: inline-flex; align-items: center; gap: 6px; }
.k-w15 { background: #F3E4CF; box-shadow: inset 0 0 0 1px #D9C3A4; } .k-w30 { background: #E2EADF; box-shadow: inset 0 0 0 1px #B9C9B3; }
.k-today { margin-left: 0; }

/* the ₱999 equation */
.set-math { display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); gap: 0; background: var(--surface-raised); border: 1px solid var(--line); border-radius: 26px; overflow: hidden; }
@media (max-width: 960px) { .set-math { grid-template-columns: minmax(0, 1fr); } }
.sm-price { background: var(--ink); color: var(--surface); padding: clamp(24px, 3vw, 36px); display: grid; gap: 10px; align-content: center; justify-items: start; }
.sm-price .kicker { color: var(--talisman); }
.sm-price .price { color: var(--surface); }
.sm-price .muted { color: #D6CEC6; margin-bottom: 10px; }
.sm-eq { display: grid; grid-template-columns: repeat(7, auto); justify-content: center; align-content: center; align-items: end; column-gap: clamp(16px, 2.4vw, 34px); row-gap: 10px; padding: clamp(26px, 3.4vw, 44px); }
@media (max-width: 760px) { .sm-eq { grid-template-columns: auto auto auto; row-gap: 26px; } .sm-eq > .sm-op:nth-of-type(2) { display: none; } }
.sm-term { display: grid; gap: 4px; justify-items: center; text-align: center; min-width: 0; }
.sm-vis { height: 76px; width: max-content; display: flex; align-items: flex-end; justify-content: center; gap: 3px; margin-bottom: 8px; }
.sm-vis.minis img { flex: none; max-width: none; width: clamp(18px, 2vw, 26px); height: auto; filter: drop-shadow(0 4px 4px rgba(36,30,25,.18)); }
.sm-vis.litre { width: 40px; height: 76px; border: 2px solid var(--ink); border-top: 0; border-radius: 0 0 10px 10px; position: relative; overflow: hidden; }
.sm-vis.litre .fill { position: absolute; left: 0; right: 0; bottom: 0; height: 82%; background: #3B2416; }
.sm-vis.glasses { width: max-content; display: grid; grid-template-columns: repeat(5, 16px); gap: 4px 5px; align-content: end; color: #3B2416; }
.sm-vis.glasses svg, .sm-vis.one svg { width: 16px; height: 22px; }
.sm-vis.one { color: var(--rufous); }
.sm-vis.one svg { width: 30px; height: 42px; }
.sm-big { white-space: nowrap; font-family: var(--display); font-weight: 700; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.02em; line-height: 1; }
.sm-term.hl .sm-big { color: var(--rufous); }
.sm-small { font-size: 14.5px; color: var(--ink-muted); }
.sm-op { align-self: start; margin-top: 20px; font-family: var(--display); font-size: 24px; line-height: 1; color: var(--leaves-deep); width: 36px; height: 36px; border-radius: 50%; background: var(--surface-warm); display: grid; place-items: center; }

/* Buklod bottle inside the ratio ring */
.buklod-vis { display: grid; gap: 22px; justify-items: center; }
.buklod-vis .ring { width: min(280px, 72vw); height: min(280px, 72vw); border-radius: 50%; position: relative; margin-top: 40px;
  background: conic-gradient(var(--bean-robusta) 0 35%, var(--bean-arabica) 0 70%, var(--bean-excelsa) 0 90%, var(--bean-liberica) 0 100%); }
.buklod-vis .ring::before { content: ""; position: absolute; inset: 16px; border-radius: 50%; background: radial-gradient(circle at 50% 45%, #9A55D0 0%, var(--bean-buklod) 70%); }
.buklod-vis .ring img { position: absolute; left: 50%; bottom: 10%; height: 100%; width: auto; max-width: none; translate: -50% 0; transform: rotate(-6deg); filter: drop-shadow(0 18px 14px rgba(36,30,25,.35)); }
.buklod-vis > .ratio, .buklod-vis > .ratio-legend { width: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .buklod-vis .ring::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 92%, rgba(255,255,255,.35) 96%, transparent 100%); animation: ringspin 14s linear infinite; pointer-events: none; }
  .buklod-vis .ring img { animation: bob 5s ease-in-out infinite; }
  @keyframes bob { 50% { transform: rotate(-3deg) translateY(-8px); } }
  @keyframes ringspin { to { rotate: 360deg; } }
}

/* guide cover: lift, straighten and catch the light on hover */
.lead-magnet img { transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s ease; }
.lead-magnet .cover { position: relative; justify-self: center; width: 100%; max-width: 320px; border-radius: 6px; overflow: hidden; transform: rotate(-2deg); transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s ease; box-shadow: 0 1px 0 var(--line), 0 18px 40px -18px rgba(36,30,25,.35); }
.lead-magnet .cover img { transform: none; box-shadow: none; max-width: 100%; border-radius: 0; }
.lead-magnet .cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%); transform: translateX(-120%); transition: transform .9s ease; pointer-events: none; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .lead-magnet .cover:hover { transform: rotate(0) translateY(-8px) scale(1.03); box-shadow: 0 1px 0 var(--line), 0 30px 50px -22px rgba(36,30,25,.45); }
  .lead-magnet .cover:hover::after { transform: translateX(120%); }
}

/* Excelsa note */
.excelsa-note { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 36px; align-items: center; max-width: 900px; }
.excelsa-bean { width: 100%; height: auto; transform: rotate(-8deg); filter: drop-shadow(0 12px 10px rgba(36,30,25,.2)); }
@media (prefers-reduced-motion: no-preference) { .excelsa-bean { animation: beanbob 6s ease-in-out infinite; } @keyframes beanbob { 50% { transform: rotate(4deg) translateY(-6px); } } }
@media (max-width: 640px) { .excelsa-note { grid-template-columns: minmax(0, 1fr); } .excelsa-bean { width: 96px; } }

/* Discovery Set shelf: bottles stand on the shelf with a shadow */
.ds-bottle { position: relative; }
.ds-bottle img { filter: drop-shadow(0 16px 14px rgba(36,30,25,.28)) drop-shadow(0 2px 2px rgba(36,30,25,.25)); position: relative; z-index: 1; }
.ds-bottle::before { content: ""; position: absolute; left: 14%; right: 14%; bottom: 58px; height: 16px; border-radius: 50%; background: radial-gradient(closest-side, rgba(36,30,25,.35), transparent); filter: blur(2px); }
@media (max-width: 560px) { .ds-bottle::before { bottom: 30px; } }

/* story */
.paw { width: 20px; height: 20px; fill: var(--rufous); vertical-align: -3px; margin-left: 4px; }
.snap.now .now-row { display: flex; justify-content: center; align-items: flex-end; gap: 4%; background: var(--surface); border-radius: 3px; padding: 14px 8px 8px; }
.snap.now .now-row img { width: 17%; filter: drop-shadow(0 8px 6px rgba(36,30,25,.25)); }

/* slow coffee waves at each section edge */
main > section { position: relative; }
.wave-edge { position: absolute; left: 0; right: 0; top: -22px; height: 24px; overflow: hidden; pointer-events: none; z-index: 2; }
.wave-edge svg { position: absolute; left: 0; bottom: 0; width: 200%; height: 100%; }
.wave-edge .w1 { opacity: .55; }
@media (prefers-reduced-motion: no-preference) {
  .wave-edge .w1 { animation: wavemove 26s linear infinite; }
  .wave-edge .w2 { animation: wavemove 38s linear infinite reverse; }
  @keyframes wavemove { to { transform: translateX(-50%); } }
}

/* Shader A, "the pour", behind the dark story band. An ink veil keeps the text at full contrast. */
.has-pour { position: relative; overflow: hidden; isolation: isolate; }
.has-pour .pour { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; }
.has-pour::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(36,30,25,.78) 0%, rgba(36,30,25,.55) 55%, rgba(36,30,25,.72) 100%); }
.has-pour .wave-edge { z-index: 3; }

/* export section: coffee sack */
.export-col { display: grid; gap: 26px; justify-items: start; }
.sack { width: min(260px, 70%); height: auto; filter: drop-shadow(0 16px 14px rgba(36,30,25,.18)); }
@media (prefers-reduced-motion: no-preference) {
  .sack .spill { animation: spill 7s ease-in-out infinite; transform-origin: 130px 210px; }
  @keyframes spill { 50% { transform: translateY(-3px) rotate(-1.5deg); } }
}

/* Shader D inside the Buklod ring */
.buklod-vis .ring .blend { position: absolute; inset: 16px; width: calc(100% - 32px); height: calc(100% - 32px); border-radius: 50%; z-index: 0; display: block; }
.buklod-vis .ring::before { z-index: 0; }
.buklod-vis .ring img { z-index: 2; }

/* real product photos */
.bean-row .bean-photo { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.bean-row { grid-template-columns: 170px minmax(0, 1fr); }
.bean-row.feature { grid-template-columns: 220px minmax(0, 1fr); }
@media (max-width: 560px) { .bean-row, .bean-row.feature { grid-template-columns: minmax(0, 1fr); } .bean-row .bean-photo { max-width: 280px; } }
.closeups { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 860px) { .closeups { grid-template-columns: repeat(2, minmax(0, 1fr)); } .closeups .closeup:last-child { grid-column: span 2; max-width: 50%; justify-self: center; width: 100%; } }
.closeup { display: grid; gap: 10px; text-decoration: none; color: var(--ink); }
.closeup img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 14px; transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s ease; }
.closeup span { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 15px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .closeup:hover img { transform: translateY(-4px) scale(1.02); box-shadow: 0 16px 28px -16px rgba(36,30,25,.45); } }
.closeup:focus-visible img { outline: 2px solid var(--focus); outline-offset: 3px; }

/* v5: paid ebook block, mirrors the free-guide layout */
.lead-magnet.ebook { grid-template-columns: minmax(0, 1fr) minmax(0, 0.6fr); }
.lead-magnet.ebook .cover { transform: rotate(2deg); }
@media (max-width: 760px) { .lead-magnet.ebook { grid-template-columns: minmax(0, 1fr); } .lead-magnet.ebook .cover { order: -1; max-width: 220px; } }

/* v6: GSAP drives the unbox bottles; hover peeks the flaps */
.unbox.js-motion .bottle { transition: none; }
.unbox.js-motion.open .bottle { transform: none; }
.unbox.peek:not(.open) .flap-f { transform: translateZ(90px) rotateX(-112deg); transition-duration: .35s; }
.unbox.peek:not(.open) .flap-b { transform: translateZ(-90px) rotateX(108deg); transition-duration: .35s; }
.unbox.peek:not(.open) .flap-l { transform: rotateY(-90deg) translateZ(150px) rotateX(-104deg); transition-duration: .35s; }
.unbox.peek:not(.open) .flap-r { transform: rotateY(90deg) translateZ(150px) rotateX(-104deg); transition-duration: .35s; }
.unbox:not(.open) .flap { transition-delay: 0s; }

/* BIR Registration Seal Badge (RMC 38-2026): shown unaltered, large enough to scan */
.bir-seal { display: block; margin-top: 22px; width: min(100%, 360px); }
.bir-seal img { display: block; width: 100%; height: auto; border-radius: 10px; }

/* Enstack ordering demo: phone-shaped screen recording */
.order-demo { margin: 0; width: min(100%, 300px); display: grid; gap: 8px; }
.order-demo video { width: 100%; height: auto; border-radius: 22px; border: 6px solid var(--ink); background: var(--ink); display: block; }

/* Order section: store mockup beside the steps, no dead space */
.order-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.store-mock { margin: 0; }
.store-mock img { width: 100%; height: auto; display: block; }
.order-grid .steps { margin: 0; }
@media (max-width: 860px) { .order-grid { grid-template-columns: minmax(0, 1fr); } .store-mock { max-width: 520px; justify-self: center; } }
