@font-face {
  font-family: "Defonarts";
  src: url(assets/fonts/defonarts-bold.woff2) format("woff2");
  font-weight: 700;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;

  --color-red: #E11B22;
  --color-red-deep: #B3121A;
  --color-yellow: #FFC425;
  --color-choc: #4A2412;   /* strip zip-lock */
  --color-ink: #2E160A;
  --color-label: #FFFFFF;  /* panel label kemasan */
  --color-butter: #FFDB7A;
  --color-line: #E7D8C6;
  --color-muted: #6B4A3A;
  --color-pink: #F7A8C0;
  --color-pink-2: #FBC9D7;

  --font-display: "Defonarts", "Archivo", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;

  --radius-card: 16px;
  --radius-pill: 999px;
  --shadow: 0 12px 28px rgb(20 8 2 / .32);
  --dur: 250ms;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);

  --gutter: 16px;
  --section: 64px;
  --tooth: 14px;
}
@media (min-width: 768px) { :root { --gutter: 24px; --section: 88px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; --section: 112px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
html.menu-open { overflow: hidden; }
body {
  margin: 0;
  font: 400 1rem/1.6 var(--font-body);
  font-variation-settings: "wdth" 100;
  color: var(--color-ink);
  background: var(--color-label);
  caret-color: var(--color-red);
}
@media (min-width: 1024px) { body { font-size: 1.0625rem; } }
::selection { background: var(--color-yellow); color: var(--color-ink); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.05; font-synthesis: none; text-wrap: balance; }
p, ul, ol, figure, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; }
time, .year { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--focus, var(--color-ink)); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 8px; top: -64px; z-index: 100;
  padding: 12px 16px; border-radius: var(--radius-pill);
  background: var(--color-ink); color: #fff; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 8px; }
.top-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 32px; pointer-events: none; }

.wrap { width: 100%; max-width: 1264px; margin-inline: auto; padding-inline: var(--gutter); }

/* Bahasa kemasan: gerigi sobekan (tepi bawah pouch) dan pita rasa */
.teeth::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; z-index: 4;
  height: var(--tooth); background: var(--teeth, var(--color-choc));
  mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--tooth) * 2) 100%;
}
.ribbon {
  display: inline-block; padding: 10px 30px;
  background: var(--rib-bg, var(--color-choc)); color: var(--rib-ink, #fff);
  font: 800 1.0625rem/1.15 var(--font-body); font-variation-settings: "wdth" 72;
  text-transform: uppercase; letter-spacing: .02em;
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 50%, 100% 100%, 0 100%, 14px 50%);
}
.burst {
  display: grid; place-items: center; aspect-ratio: 1;
  background: var(--color-red); color: #fff;
  font-family: var(--font-display); line-height: 1; text-align: center;
  mask: url(assets/burst.svg) center / contain no-repeat;
}
.sec-title { font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem); }
/* huruf gaya logo kemasan: isi, outline tebal, bayangan jatuh */
.lettering {
  color: var(--l-fill, var(--color-red));
  -webkit-text-stroke: .14em var(--l-stroke, #fff); paint-order: stroke fill;
  text-shadow: 0 .08em 0 var(--l-drop, var(--color-choc));
  padding-bottom: .08em;
}
/* gerigi sobekan di tepi atas section berwarna */
.edge-top { position: relative; }
.edge-top::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: var(--tooth);
  background: inherit;
  mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--tooth) * 2) 100%;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 30px;
  border: 0; border-radius: var(--radius-pill);
  font: 800 1.0625rem/1.2 var(--font-body); font-variation-settings: "wdth" 88;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: var(--shadow);
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn-red { background: var(--color-red); color: #fff; }
.btn-red:hover { background: var(--color-red-deep); }
.btn-ink { background: var(--ink); color: var(--field); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--color-label);
  transition: box-shadow var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.site-header.is-scrolled { box-shadow: var(--shadow); transform: translateY(-12px); }
.seal { height: 6px; background: repeating-linear-gradient(90deg, var(--color-red-deep) 0 3px, var(--color-red) 3px 6px); }
.header-bar { display: flex; align-items: center; gap: 16px; height: 68px; }
.is-scrolled .header-bar { transform: translateY(6px); }
.logo { flex: none; display: block; border-radius: 8px; }
.logo img { height: 50px; width: auto; transform-origin: left center; transition: transform var(--dur) var(--ease-out); }
.is-scrolled .logo img { transform: scale(.78); }

.menu-btn {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border: 0; border-radius: var(--radius-pill);
  background: var(--color-ink); color: #fff; font-weight: 800; cursor: pointer;
}
.menu-btn i { font-size: 1.25rem; }
.menu-btn .i-close, .menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: inline; }

.nav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.nav a[aria-current] { color: var(--color-red-deep); }

.search { position: relative; }
.search i { position: absolute; left: 16px; top: 50%; translate: 0 -50%; color: var(--color-muted); pointer-events: none; }
.search input {
  width: 100%; min-height: 44px; padding: 0 16px 0 42px;
  border: 2px solid var(--color-line); border-radius: var(--radius-pill);
  background: #fff; color: var(--color-ink); font: 500 1rem var(--font-body);
}
.search input::placeholder { color: var(--color-muted); }
.search input:hover { border-color: var(--color-muted); }

.lang { display: inline-flex; padding: 2px; border: 2px solid var(--color-line); border-radius: var(--radius-pill); background: #fff; }
.lang a {
  display: grid; place-items: center; min-width: 48px; min-height: 40px; border-radius: var(--radius-pill);
  font-weight: 800; font-size: .875rem; text-decoration: none; color: var(--color-muted);
}
.lang a:hover { color: var(--color-ink); }
.lang a[aria-current] { background: var(--color-red); color: #fff; }

/* Mobile: menu layar penuh berwarna kuning Oishi */
.panel { display: none; }
.panel.is-open {
  display: flex; flex-direction: column; gap: 24px;
  position: fixed; inset: 0; z-index: -1;
  padding: 104px var(--gutter) 32px;
  background: var(--color-yellow); overflow-y: auto;
}
.panel.is-open .nav a { font: 700 2rem/1.15 var(--font-display); min-height: 56px; }
.panel.is-open .lang { align-self: flex-start; }

@media (min-width: 1024px) {
  .menu-btn { display: none; }
  .panel { display: flex; align-items: center; gap: 16px; flex: 1; }
  .nav { margin-right: auto; }
  .nav ul { display: flex; gap: 2px; }
  .nav a { padding: 0 12px; font-weight: 700; font-size: 1rem; font-variation-settings: "wdth" 90; border-radius: var(--radius-pill); }
  .nav a:hover { background: #FFE7A3; }
  .search { width: 168px; }
}
@media (min-width: 1280px) {
  .nav a { padding: 0 16px; }
  .search { width: 220px; }
}

/* ---------- Hero: panel depan kemasan ---------- */
.hero { position: relative; overflow: clip; --teeth: var(--color-choc); }
.zip {
  position: relative; z-index: 3; height: 32px;
  display: flex; align-items: center; justify-content: flex-end; padding-right: var(--gutter);
  background: linear-gradient(90deg, rgb(255 253 249 / .6) 50%, #0000 0) 0 50% / 16px 2px repeat-x, var(--color-choc);
  color: var(--color-label); font-size: 1.125rem;
}
.zip i { background: var(--color-choc); padding-left: 8px; }

.slides { display: grid; }
.slide {
  grid-area: 1 / 1; position: relative; overflow: hidden;
  opacity: 0; visibility: hidden;
  transition: opacity 400ms var(--ease-out), visibility 0s 400ms;
}
.slide.is-active { opacity: 1; visibility: visible; transition: opacity 400ms var(--ease-out); }
/* kilau foil sekali lewat saat slide aktif */
.slide::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, #0000 38%, rgb(255 255 255 / .28) 47%, #0000 56%);
  transform: translateX(-100%);
}
.slide.is-active::after { animation: glint 1600ms 250ms var(--ease-out) both; }
@keyframes glint { to { transform: translateX(100%); } }

.slide--pillows {
  background: repeating-conic-gradient(var(--color-pink) 0 25%, var(--color-pink-2) 0 50%) 0 0 / 80px 80px;
  --t-fill: var(--color-red); --t-stroke: var(--color-label); --t-drop: var(--color-choc);
  --rib-bg: #5B2A86; --rib-ink: #fff;
}
.slide--panchos {
  background:
    conic-gradient(from 135deg at 50% 0, var(--color-red) 90deg, var(--color-yellow) 0) 0 0 / 28px 14px repeat-x,
    radial-gradient(55% 65% at 72% 55%, #6E1A0E 0%, #0000 70%),
    #1C1310;
  --t-fill: var(--color-yellow); --t-stroke: var(--color-red); --t-drop: #000;
  --rib-bg: var(--color-red); --rib-ink: #fff; --focus: #fff;
}
.slide--tater {
  background: radial-gradient(50% 60% at 72% 50%, #8C62C4 0%, #0000 70%), #5E3592;
  --t-fill: var(--color-label); --t-stroke: #2E1A47; --t-drop: #2E1A47;
  --rib-bg: #1F5132; --rib-ink: #fff; --focus: #fff;
}

.slide-inner {
  display: flex; flex-direction: column; gap: 12px;
  padding-block: 16px calc(var(--tooth) + 76px);
}
.slide-art { order: -1; position: relative; height: max(220px, 30svh); container-type: size; }
/* mobile: headline menimpa kaki pack, pack lebih besar tanpa menambah tinggi */
.slide-copy { position: relative; z-index: 2; margin-top: -8svh; }
.stack { position: absolute; inset: 0; margin: auto; height: min(100cqh, 140cqw); aspect-ratio: 5 / 7; }
.pack {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(var(--shadow));
  transform: rotate(-6deg);
}
.slide.is-active .pack { animation: drop 800ms var(--ease-out) both; }
@keyframes drop {
  0% { opacity: 0; transform: translateY(-56px) rotate(8deg); }
  55% { opacity: 1; transform: translateY(8px) rotate(-9deg); }
  100% { opacity: 1; transform: rotate(-6deg); }
}
.mascot { position: absolute; right: 82%; bottom: 40%; height: 34%; width: auto; transform: rotate(-8deg); }
.stack .burst { position: absolute; top: -6%; left: 78%; width: 30%; font-size: clamp(.9rem, 4cqh, 1.6rem); transform: rotate(12deg); }
.slide.is-active .burst { animation: pop 550ms 550ms var(--ease-pop) both; }
@keyframes pop { from { transform: scale(0) rotate(-40deg); } }

.slide-title {
  font-size: clamp(2.125rem, 1rem + 4.4vw, 5.25rem); line-height: 1;
  color: var(--t-fill);
  -webkit-text-stroke: .15em var(--t-stroke); paint-order: stroke fill;
  text-shadow: 0 .09em 0 var(--t-drop);
  max-width: 13ch; padding-bottom: .1em;
}
.slide-copy .ribbon { display: block; width: fit-content; margin: 8px 0 20px; font-size: 1rem; padding-inline: 24px; transform: rotate(-2deg); transform-origin: left; }

.hero-controls { position: absolute; inset: auto 0 calc(var(--tooth) + 16px); z-index: 3; }
.controls-row { display: flex; align-items: center; gap: 8px; }
.controls-row > :first-child { margin-left: -4px; }
.ctl, .tabs button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: var(--radius-pill);
  background: var(--color-label); color: var(--color-ink); cursor: pointer;
  font-weight: 800; font-variation-settings: "wdth" 80;
  box-shadow: var(--shadow);
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.ctl i { font-size: 1.125rem; }
.ctl:hover, .tabs button:hover { background: var(--color-yellow); }
.pause .i-play, .pause[aria-pressed="true"] .i-pause { display: none; }
.pause[aria-pressed="true"] .i-play { display: inline; }
.pause { margin-left: 8px; }
.tabs { display: flex; gap: 6px; }
.tabs button::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--chip); box-shadow: inset 0 0 0 2px rgb(255 255 255 / .6); }
.tabs button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tabs button[aria-current="true"] { background: var(--color-ink); color: #fff; }

@media (min-width: 768px) {
  .slide-inner {
    display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; gap: 24px;
    height: clamp(460px, calc(75svh - 32px), 700px);
    padding-block: 16px var(--tooth);
  }
  .slide-copy { padding-bottom: 72px; margin-top: 0; }
  .slide-copy .ribbon { font-size: 1.25rem; padding-inline: 30px; margin-bottom: 24px; }
  .slide-art { order: 0; height: 100%; }
  .stack { height: min(88cqh, 136cqw, 600px); }
  .mascot { right: 80%; bottom: 8%; height: 30%; }
  .ribbon { font-size: 1.25rem; }
  .hero-controls { bottom: calc(var(--tooth) + 28px); }
}
@media (min-width: 1024px) {
  .tabs button { padding: 0 16px 0 14px; }
  .tabs button span { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
}

.gang {
  position: relative; background: var(--color-choc); color: #FFF3DA; padding: 40px 0 48px;
  --focus: var(--color-yellow); --l-fill: var(--color-yellow); --l-stroke: #fff; --l-drop: #1A0B04;
}
.gang-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; }
.gang-head h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); -webkit-text-stroke-width: .08em; line-height: 1.15; }
@media (min-width: 1024px) { .gang-head h2 { -webkit-text-stroke-width: .12em; } }
.gang-list {
  display: flex; align-items: flex-end; gap: 8px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 56px var(--gutter) 8px; scroll-padding-inline: var(--gutter);
  scrollbar-width: thin; scrollbar-color: var(--color-yellow) #0000;
}
.gang-list li { flex: none; scroll-snap-align: start; }
.char {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px;
  min-width: 104px; padding: 4px 4px 8px;
  border: 0; border-radius: var(--radius-card); background: none; cursor: pointer;
}
/* skala bersama dari tinggi asli (--h): stik tetap tinggi, yang bulat tetap bulat */
.char { --k: .3; }
.char img { width: auto; height: calc(var(--h) * var(--k) * 1px); max-width: none; margin-inline: -6px; transition: transform 300ms var(--ease-pop); transform-origin: 50% 100%; }
.char-name {
  padding: 4px 10px; border-radius: var(--radius-pill);
  background: var(--c); color: #fff; box-shadow: inset 0 0 0 2px rgb(255 243 218 / .35);
  font: 800 .8125rem/1.15 var(--font-body); font-variation-settings: "wdth" 75;
  text-transform: uppercase; letter-spacing: .02em; white-space: nowrap;
}
.bubble {
  position: absolute; bottom: calc(100% - 4px); left: 50%; z-index: 2;
  padding: 8px 12px; border-radius: 14px 14px 14px 4px;
  background: var(--color-label); color: var(--color-ink);
  font: 800 .875rem/1.2 var(--font-body); font-variation-settings: "wdth" 85; white-space: nowrap;
  opacity: 0; transform: translate(-10%, 8px) scale(.85); transform-origin: 0 100%;
  transition: opacity 200ms var(--ease-out), transform 300ms var(--ease-pop);
  pointer-events: none;
}
.char:hover img, .char:focus-visible img, .char.is-talking img, .char[aria-pressed="true"] img { transform: translateY(-10px) rotate(-4deg) scale(1.06); }
.char:hover .bubble, .char:focus-visible .bubble, .char.is-talking .bubble, .char[aria-pressed="true"] .bubble { opacity: 1; transform: translate(-10%, 0) scale(1); }
.char[aria-pressed="true"] .char-name { background: var(--color-yellow); color: var(--color-ink); }
@media (min-width: 1024px) {
  .gang-list { max-width: 1264px; margin-inline: auto; justify-content: space-between; overflow: visible; padding-top: 48px; }
  .char { min-width: 104px; --k: .4; }
  .char img { margin-inline: -10px; }
}

.about {
  padding-block: var(--section); background: var(--color-red); color: #fff;
  --focus: #fff; --l-fill: #fff; --l-stroke: var(--color-choc); --l-drop: #2A1208;
}
.about-grid { display: grid; gap: 48px; align-items: center; }
.about-copy { max-width: 56ch; }
.about-copy .sec-title { margin-bottom: 20px; }
.lead { font-size: 1.375rem; font-weight: 800; line-height: 1.35; font-variation-settings: "wdth" 90; margin-bottom: 12px; }
/* foto dalam jendela transparan kemasan */
.window { justify-self: center; width: min(100%, 400px); }
.window-frame { padding: 10px; background: #fff; border-radius: 999px 999px 40px 40px; box-shadow: var(--shadow); transform: rotate(2deg); }
.window img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px 30px 30px; }
.window figcaption { margin-top: 18px; text-align: center; font-weight: 700; font-size: .9375rem; }

/* label belakang kemasan: sudut tegas, segel ber-ridge dan tepi gerigi atas-bawah */
.label-panel {
  --t: 9px;
  margin-top: 56px; color: var(--color-ink); --focus: var(--color-ink);
  padding: calc(var(--t) + 34px) clamp(20px, 4vw, 48px) calc(var(--t) + 40px);
  background:
    repeating-linear-gradient(90deg, rgb(46 22 10 / .14) 0 2px, #0000 2px 5px) 0 0 / 100% 22px no-repeat,
    repeating-linear-gradient(90deg, rgb(46 22 10 / .14) 0 2px, #0000 2px 5px) 0 100% / 100% 22px no-repeat,
    #fff;
  mask:
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% 0 / calc(var(--t) * 2) var(--t) repeat-x,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% 100% / calc(var(--t) * 2) var(--t) repeat-x,
    linear-gradient(#000 0 0) 0 var(--t) / 100% calc(100% - var(--t) * 2) no-repeat;
}
.label-panel .btn { margin-top: 28px; }

/* tabel gaya "Informasi Nilai Gizi" */
.facts { border: 3px solid var(--color-ink); background: #fff; padding: 14px 20px 0; }
.facts-title {
  font: 900 clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem)/1 var(--font-body); font-variation-settings: "wdth" 70;
  padding-bottom: 10px; border-bottom: 10px solid var(--color-ink);
}
.facts-rows li { display: grid; gap: 6px; padding: 14px 0 16px; border-top: 1px solid var(--color-ink); }
.facts-rows li:first-child { border-top: 0; }
.facts-rows .year { font: 900 1.75rem/1 var(--font-body); font-variation-settings: "wdth" 70; }
.facts-rows p { max-width: 40ch; }
@media (min-width: 768px) {
  .facts-rows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts-rows li { grid-template-columns: 1fr; padding: 18px 24px 28px; border-top: 0; border-left: 1px solid var(--color-ink); }
  .facts-rows li:first-child { border-left: 0; padding-left: 0; }
  .facts-rows .year { font-size: clamp(2.5rem, 1.4rem + 2.4vw, 4.25rem); }
}
@media (min-width: 1024px) {
  .about-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; }
}

/* ---------- Produk: medan berganti sesuai kemasan lini ---------- */
.products {
  --field: var(--color-yellow); --ink: var(--color-ink); --pattern: none;
  --rib-bg: var(--color-choc); --rib-ink: #fff;
  position: relative;
  background: var(--pattern), var(--field); color: var(--ink); --focus: var(--ink);
  padding-bottom: var(--section);
  --l-fill: var(--color-red); --l-stroke: #fff; --l-drop: var(--color-choc);
  overflow: clip;
  transition: background-color 500ms var(--ease-out), color 300ms var(--ease-out);
}
/* segel panas bergerigi di atas pouch */
.products::before {
  content: ""; display: block; height: 20px;
  background: repeating-linear-gradient(90deg, rgb(0 0 0 / .3) 0 2px, rgb(255 255 255 / .28) 2px 4px), rgb(0 0 0 / .1);
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 12px 100%;
}
/* kilau foil saat rak berganti kemasan */
.products::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, #0000 38%, rgb(255 255 255 / .3) 47%, #0000 56%);
  transform: translateX(-100%);
}
.products.is-reskin::after { animation: glint 1100ms var(--ease-out) both; }
.products[data-line="Pillows"] { --field: var(--color-pink); --pattern: repeating-conic-gradient(var(--color-pink-2) 0 25%, #0000 0 50%) 0 20px / 80px 80px; }
.products[data-line="Panchos"] { --field: #1C1310; --ink: #FFF6E0; --rib-bg: var(--color-yellow); --rib-ink: var(--color-ink); --pattern: conic-gradient(from 135deg at 50% 0, var(--color-red) 90deg, var(--color-yellow) 0) 0 20px / 28px 14px repeat-x; }
.products[data-line="Popcorn"] { --field: #FFD43B; }
.products[data-line="Makado"] { --field: #1B2A6B; --ink: #fff; --rib-bg: var(--color-yellow); --rib-ink: var(--color-ink); }
.products[data-line="Kreker"] { --field: #C8261E; --ink: #fff; --rib-bg: var(--color-yellow); --rib-ink: var(--color-ink); }
.products[data-line="Sponge Crunch"] { --field: #4A2412; --ink: #fff; --rib-bg: var(--color-pink); --rib-ink: var(--color-ink); }
.products[data-line="Tater Thins"] { --field: #5E3592; --ink: #fff; --rib-bg: #1F5132; }
.products[data-line="Toss"] { --field: #1F1A17; --ink: #FFD15C; --rib-bg: var(--color-yellow); --rib-ink: var(--color-ink); }
.products[data-line="Suky Suky"] { --field: #0F6E72; --ink: #fff; --rib-bg: var(--color-yellow); --rib-ink: var(--color-ink); }
.products[data-line="Cimo Cimo"] { --field: #5B3317; --ink: #FFD15C; --rib-bg: var(--color-yellow); --rib-ink: var(--color-ink); }
.products[data-line="Poppy Pop"] { --field: #F59321; }
.products[data-line="Rinbee"] { --field: #FFCF33; }
.products[data-line="Opala"] { --field: #6E3B1E; --ink: #fff; --rib-bg: var(--color-yellow); --rib-ink: var(--color-ink); }
/* medan gelap: huruf putih outline merah seperti logo Oishi; pita pakai warna kontras medan */
.products:is([data-line="Makado"], [data-line="Kreker"], [data-line="Sponge Crunch"], [data-line="Tater Thins"], [data-line="Toss"], [data-line="Suky Suky"], [data-line="Cimo Cimo"], [data-line="Opala"]) { --l-fill: #fff; --l-stroke: var(--color-red); --l-drop: rgb(0 0 0 / .55); }
.products[data-line="Panchos"] { --l-fill: var(--color-yellow); --l-stroke: var(--color-red); --l-drop: #000; }

.products-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-top: calc(var(--section) - 16px); }
.products-title { font-size: clamp(2.5rem, 1.4rem + 4.6vw, 5rem); }
.products-sub { margin-top: 8px; font-weight: 600; }
.products-mascot { width: auto; height: clamp(88px, 11vw, 150px); margin-bottom: -8px; animation: hop 500ms var(--ease-pop) both; }
@keyframes hop { from { opacity: 0; transform: translateY(24px) rotate(-10deg); } }

.filters {
  display: flex; gap: 8px; margin: 28px calc(var(--gutter) * -1) 40px; padding: 4px var(--gutter);
  overflow-x: auto; scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .filters { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; } }
.pill {
  flex: none; min-height: 44px; padding: 8px 18px;
  border: 0; border-radius: var(--radius-pill);
  background: var(--color-label); color: var(--color-ink);
  font-weight: 700; font-size: .9375rem; font-variation-settings: "wdth" 88; cursor: pointer;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.pill:hover { transform: translateY(-2px); }
.pill[aria-pressed="true"] { background: var(--ink); color: var(--field); }

.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 12px; }
@media (min-width: 768px) { .product-grid { gap: 48px 24px; } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.product { animation: shelf-in 600ms var(--ease-out) both; animation-delay: calc(var(--i) * 60ms); }
@keyframes shelf-in { from { opacity: 0; transform: translateY(28px); } }
.product:nth-child(3n + 1) { --tilt: -4deg; }
.product:nth-child(3n + 2) { --tilt: 3deg; }
.product:nth-child(3n) { --tilt: -1deg; }
.product a { display: flex; flex-direction: column; align-items: center; text-align: center; height: 100%; text-decoration: none; border-radius: var(--radius-card); }
.product-media { position: relative; width: 100%; aspect-ratio: 1; }
.product-media img {
  position: absolute; inset: 0; margin: auto; width: 82%; height: 92%; object-fit: contain;
  filter: drop-shadow(var(--shadow)); transform: rotate(var(--tilt));
  transition: transform 400ms var(--ease-out);
}
.product a:hover .product-media img { transform: translateY(-10px) rotate(calc(var(--tilt) - 4deg)) scale(1.03); }
.product .burst { position: absolute; top: 0; left: 2%; width: clamp(56px, 22%, 84px); font-size: clamp(.8rem, 1.6vw, 1.05rem); transform: rotate(12deg); }
.product h3 { margin-top: 16px; font-size: clamp(1.375rem, 1.1rem + 1vw, 2rem); }
.product .ribbon { margin-top: 8px; padding: 6px 22px; font-size: .875rem; }
/* di medan terang, pita memakai warna pita kemasannya sendiri */
.product .ribbon { background: var(--rib-own, var(--rib-bg)); color: #fff; }
.products:is([data-line="Panchos"], [data-line="Makado"], [data-line="Kreker"], [data-line="Sponge Crunch"], [data-line="Tater Thins"], [data-line="Toss"], [data-line="Suky Suky"], [data-line="Cimo Cimo"], [data-line="Opala"]) .product .ribbon { background: var(--rib-bg); color: var(--rib-ink); }
.product .cta { margin-top: auto; padding-top: 12px; font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .25em; }
.product a:hover .cta { text-decoration-thickness: 4px; }
.more { margin-top: 56px; text-align: center; }

.stories {
  padding-block: var(--section); background: var(--color-choc); color: #FFF3DA;
  --focus: var(--color-yellow); --l-fill: #fff; --l-stroke: var(--color-red); --l-drop: #1A0B04;
}
.stories-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 40px; }
.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: var(--radius-pill); background: var(--color-label); }
.seg button {
  min-height: 44px; padding: 0 20px; border: 0; border-radius: var(--radius-pill);
  background: none; color: var(--color-ink); font-weight: 700; font-variation-settings: "wdth" 88; cursor: pointer;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.seg button:hover { color: var(--color-red-deep); }
.seg button[aria-pressed="true"] { background: var(--color-yellow); color: var(--color-ink); }

.story-grid { display: grid; gap: 28px; }
.story a { display: grid; gap: 14px; text-decoration: none; border-radius: var(--radius-card); }
.story-text { display: grid; gap: 10px; align-content: start; }
.story-media { aspect-ratio: 16 / 9; border-radius: var(--radius-card); overflow: hidden; background: #2A1208; }
.story-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.story a:hover .story-media img { transform: scale(1.04); }
.story-meta { display: flex; align-items: center; gap: 12px; font-size: .875rem; font-weight: 700; }
.tag {
  padding: 3px 12px; border-radius: var(--radius-pill);
  font: 800 .8125rem/1.3 var(--font-body); font-variation-settings: "wdth" 75; text-transform: uppercase; letter-spacing: .03em;
}
.tag-news { background: var(--color-yellow); color: var(--color-ink); }
.tag-event { background: var(--color-red); color: #fff; }
.story h3 { font: 800 1.125rem/1.3 var(--font-body); font-variation-settings: "wdth" 92; color: #fff; text-wrap: pretty; }
.story a:hover h3 { text-decoration: underline; }
.story--lead h3 { font: 700 clamp(1.625rem, 1.1rem + 1.8vw, 2.75rem)/1.1 var(--font-display); }
/* item pendukung: thumbnail di kiri, teks di kanan */
.story:not(.story--lead) a { grid-template-columns: 40% 1fr; align-items: start; gap: 12px 20px; }
@media (min-width: 768px) {
  .story-grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .story--lead { grid-column: 1 / -1; }
  .story--lead a { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 40px; }
  .story-grid[data-count="2"] .story:not(.story--lead) { grid-column: 1 / -1; max-width: calc(50% - 16px); }
}
.empty { padding: 24px 0; }
.link-more {
  display: inline-flex; align-items: center; min-height: 44px; margin-top: 32px;
  font-weight: 800; color: var(--color-yellow);
}

/* ---------- Sosial ---------- */
.social { background: var(--color-red); color: #fff; padding: 56px 0 104px; --focus: #fff; --l-fill: #fff; --l-stroke: var(--color-choc); --l-drop: #2A1208; }
.social-inner { display: grid; gap: 28px; }
.social h2 { font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4rem); }
.social p { margin-top: 8px; font-weight: 600; font-size: 1.125rem; }
.social-links { display: flex; flex-wrap: wrap; gap: 12px; }
.social-links a {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 8px 24px 8px 18px;
  border-radius: var(--radius-pill); background: var(--color-label); color: var(--color-ink);
  text-decoration: none; box-shadow: var(--shadow);
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.social-links i { font-size: 1.5rem; }
.social-links span { white-space: nowrap; }
.social-links b { margin-right: 4px; }
.social-links a:hover { background: var(--color-yellow); transform: translateY(-2px); }
@media (min-width: 1024px) {
  .social-inner { padding-right: 160px; }
}

/* ---------- Footer: panel belakang ---------- */
.footer { position: relative; background: var(--color-red-deep); color: #fff; padding: 72px 0 24px; --focus: #fff; }
.footer::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: var(--tooth);
  background: inherit;
  mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--tooth) * 2) 100%;
}
.footer-mascot { position: absolute; z-index: 1; bottom: calc(100% - 36px); right: max(var(--gutter), calc(50% - 600px)); width: 92px; }
.footer-grid { display: grid; gap: 32px; }
.footer h2 { font: 800 1rem/1.4 var(--font-body); font-variation-settings: "wdth" 85; color: var(--color-butter); margin-bottom: 12px; text-transform: uppercase; letter-spacing: .04em; }
.footer address { font-style: normal; }
.phones { margin-top: 4px; }
.footer a:hover { color: var(--color-butter); }
.footer-grid ul a, .intl a { display: inline-flex; min-height: 36px; align-items: center; text-decoration: none; }
.footer-grid ul a:hover, .intl a:hover { text-decoration: underline; }
.f-brand img { width: 150px; height: auto; }
.f-brand p { margin-top: 8px; font: 700 1.25rem var(--font-display); }
.intl { margin-top: 48px; padding-top: 32px; border-top: 1px solid rgb(255 255 255 / .3); }
.intl ul { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.intl li { display: flex; align-items: center; min-height: 40px; }
.intl a[aria-current] { font-weight: 800; text-decoration: underline; }
.legal { margin-top: 32px; font-size: .875rem; }
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-mascot { width: 108px; }
}
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.1fr 1.6fr 1fr 1fr; } }

/* ---------- Motion off ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0s !important; transition-delay: 0s !important; }
}
