/* =========================================================
   魷啵啵 SQUIBO — shared styles
   Colours come from the SQUIBO logo.
   ========================================================= */
:root {
  --coral: #F07068;      /* SQUIBO body, main brand colour */
  --bubble: #F8B8A0;     /* logo bubbles, soft highlight */
  --pop: #E84050;        /* buttons, use sparingly */
  --cream: #FFF8F3;      /* page background */
  --blush: #FDEDE7;      /* light section background */
  --ink: #000000;        /* outlines */
  --text: #1a1a1a;
  --text-soft: #3a3a3a;
  --label: #B8303C;      /* small section labels */
  --grey-1: #E8E6E2;     /* story: grey world */
  --grey-2: #DCD9D3;
  --grey-3: #CFCCC6;
  --chef-orange: #EC7425;/* 魷師傅 orange */
  --font-display: 'Huninn', 'Noto Sans TC', sans-serif;
  --font-body: 'Noto Sans TC', sans-serif;
  --line: 3px solid var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.8;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; margin: 0; line-height: 1.3; }
p { margin: 0; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 880px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.center { text-align: center; }
.bordered { border-top: var(--line); border-bottom: var(--line); }
.bg-white { background: #fff; }
.bg-blush { background: var(--blush); }
.bg-coral { background: var(--coral); }
.bg-grey-1 { background: var(--grey-1); }
.bg-grey-2 { background: var(--grey-2); }

.label { font-size: 15px; font-weight: 700; letter-spacing: 0.2em; color: var(--label); margin-bottom: 12px; }
.section-title { font-size: clamp(32px, 4.5vw, 48px); }
.section-head { text-align: center; margin-bottom: 48px; }
.mark { background: var(--bubble); border-radius: 10px; padding: 0 10px; }

/* ---------- Buttons & pills ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  background: #fff; border: var(--line); border-radius: 999px;
  font-weight: 700; font-size: 17px;
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-2px) rotate(-1deg); }
.btn-pop { background: var(--pop); color: #fff; }
.btn-soft { background: var(--bubble); }
.btn-big { min-height: 64px; padding: 0 34px; font-size: 20px; }
.tilt-l { transform: rotate(-2deg); }
.pill {
  display: inline-block; border: 2px solid var(--ink); border-radius: 999px;
  padding: 2px 14px; font-size: 15px; font-weight: 700; background: var(--bubble);
}
.icon { width: 22px; height: 22px; flex: none; }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: var(--line); position: sticky; top: 0; z-index: 10; }
.site-header .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.site-header .logo img { height: 60px; width: auto; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; font-family: var(--font-display); font-size: 18px; }
.site-nav a.current { border-bottom: 3px solid var(--pop); }
.site-nav .btn { min-height: 46px; padding: 0 20px; font-family: var(--font-body); font-size: 15px; background: var(--bubble); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-stage { position: relative; z-index: 2; pointer-events: none; }
.hero-stage a { pointer-events: auto; }
.hero-layer { padding: 72px 0 88px; }
.hero .container { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.hero-text { flex: 1 1 460px; min-width: 0; }
.hero-chip { display: inline-block; background: #fff; border: var(--line); border-radius: 999px; padding: 4px 18px; font-family: var(--font-display); font-size: 18px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(52px, 7vw, 84px); line-height: 1.15; letter-spacing: 0.02em; }
.hero h1 .mark { border-radius: 16px; padding: 0 12px; }
.hero-sub { margin: 28px 0 36px; font-size: 20px; color: var(--text-soft); max-width: 30em; }
.hero-art { flex: 1 1 360px; min-width: 0; display: flex; justify-content: center; }
.bubble-circle {
  width: 440px; max-width: 100%; aspect-ratio: 1; border-radius: 50%;
  background: var(--bubble); border: var(--line);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.bubble-circle img { width: 62%; animation: bob 3.5s ease-in-out infinite; }
.dot { position: absolute; border-radius: 50%; border: var(--line); background: #fff; }
.dot-1 { top: 6%; right: -2%; width: 54px; height: 54px; }
.dot-2 { bottom: 10%; left: -4%; width: 34px; height: 34px; background: var(--coral); }
.dot-3 { top: 22%; left: 2%; width: 20px; height: 20px; }
.pop-tag { position: absolute; bottom: -4%; right: 8%; background: #fff; border: var(--line); border-radius: 999px; padding: 6px 18px; font-family: var(--font-display); font-size: 22px; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(-3deg); } }

/* ---------- Hero bubbles (tap to pop!) ---------- */
.hero-bubbles { position: absolute; inset: 0; pointer-events: none; }
.hero-bubbles.back { z-index: 1; }
.hero-bubbles.front { z-index: 3; }
.bubble {
  position: absolute; bottom: -80px; border: 3px solid var(--ink); border-radius: 50%;
  cursor: pointer; pointer-events: auto; animation: rise linear forwards;
}
.bubble::after { content: ""; position: absolute; top: 18%; left: 22%; width: 22%; height: 22%; border-radius: 50%; background: rgba(255, 255, 255, .85); }
@keyframes rise { to { transform: translateY(calc(-1 * var(--rise, 700px))); } }
.bubble-pop {
  position: absolute; z-index: 5; pointer-events: none;
  font-family: var(--font-display); font-size: 24px; line-height: 1.5; background: #fff;
  border: 3px solid var(--ink); border-radius: 999px; padding: 0 12px;
  transform: translate(-50%, -50%) scale(.3); animation: bubblePop .8s ease-out forwards;
}
@keyframes bubblePop {
  30% { transform: translate(-50%, -50%) scale(1.15) rotate(-6deg); opacity: 1; }
  100% { transform: translate(-50%, -95%) scale(1) rotate(4deg); opacity: 0; }
}
.pop-ray {
  position: absolute; z-index: 5; width: 5px; height: 16px; margin: -8px 0 0 -2.5px;
  background: var(--ink); border-radius: 3px; pointer-events: none;
  animation: popRay .5s ease-out forwards;
}
@keyframes popRay {
  from { opacity: 1; transform: rotate(var(--a)) translateY(calc(-1 * var(--d1))); }
  to { opacity: 0; transform: rotate(var(--a)) translateY(calc(-1 * var(--d2))); }
}

/* ---------- Belief ---------- */
.belief h2 { font-size: clamp(32px, 4.5vw, 48px); margin-bottom: 36px; line-height: 1.35; }
.belief-body { font-size: 20px; line-height: 2.1; color: #2a2a2a; display: flex; flex-direction: column; gap: 28px; }
.belief-body strong { background: var(--bubble); padding: 2px 8px; border-radius: 8px; }

/* ---------- Placeholders (swap for real images) ---------- */
.ph {
  border: 3px dashed #C0453E; border-radius: 24px; background: var(--blush);
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: #8E2A24; font-size: 15px; font-weight: 700; padding: 16px;
}
.ph-grey { border-color: #6b6b6b; background: var(--grey-3); color: #3f3f3f; }

/* ---------- Story teaser (home) ---------- */
.teaser { border: var(--line); border-radius: 40px; background: #fff; overflow: hidden; display: flex; flex-wrap: wrap; }
.teaser-grid { flex: 1 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 3px; background: var(--ink); }
.teaser-grid > * { min-height: 150px; border: 0; border-radius: 0; object-fit: cover; width: 100%; height: 100%; }
.teaser-grid .t-grey { background: var(--grey-1); color: #555; }
.teaser-grid .t-orange { background: #F4E3D6; color: #8A4A12; }
.teaser-text { flex: 1 1 380px; min-width: 0; padding: 48px 44px; display: flex; flex-direction: column; justify-content: center; gap: 18px; border-left: var(--line); }
.teaser-text h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.35; }
.teaser-text p { font-size: 18px; color: var(--text-soft); }
.teaser-text .btn { align-self: flex-start; }

/* ---------- Product ---------- */
.product-row { display: flex; flex-wrap: wrap; gap: 28px; align-items: stretch; }
.product-card { flex: 999 1 640px; min-width: 0; background: #fff; border: var(--line); border-radius: 32px; padding: 36px; display: flex; flex-wrap: wrap; gap: 36px; align-items: center; }
.product-photo { flex: 1 1 240px; max-width: 300px; aspect-ratio: 3 / 4; }
.product-info { flex: 1 1 300px; min-width: 0; }
.badge { display: inline-block; background: var(--pop); color: #fff; border: var(--line); border-radius: 999px; padding: 2px 16px; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.product-info h3 { font-size: 40px; margin-bottom: 16px; }
.product-info p { font-size: 18px; margin-bottom: 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.next-card { flex: 1 1 280px; min-width: 0; border: 3px dashed var(--ink); border-radius: 32px; background: var(--cream); padding: 36px 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 16px; }
.qmark { width: 120px; height: 120px; border-radius: 50%; background: #fff; border: var(--line); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 64px; line-height: 1; animation: wiggle 2.4s ease-in-out infinite; }
.next-card h3 { font-size: 28px; }
.next-card p { color: var(--text-soft); }
@keyframes wiggle { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }

/* ---------- Closing CTA ---------- */
.cta { padding: 96px 0; text-align: center; border-bottom: var(--line); }
.cta-kicker { font-family: var(--font-display); font-size: 22px; margin-bottom: 16px; }
.cta h2 { font-size: clamp(32px, 5vw, 52px); line-height: 1.35; margin-bottom: 36px; color: #000; }

/* ---------- Footer ---------- */
.site-footer { background: #000; color: #e8e8e8; font-size: 15px; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 24px; padding-bottom: 24px; }
.site-footer a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }

/* ---------- Story page ---------- */
.story-intro { padding: 96px 0 72px; text-align: center; border-bottom: var(--line); }
.story-intro h1 { font-size: clamp(48px, 6vw, 72px); margin-bottom: 20px; }
.story-intro p { font-size: 20px; color: var(--text-soft); }
.story-intro .label { color: #4a4a4a; }

.scene { padding: 64px 0; }
.scene .container { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.scene.reverse .container { flex-direction: row-reverse; }
.scene-art { flex: 3 1 520px; min-width: 0; aspect-ratio: 3 / 2; border: 4px solid var(--ink); border-radius: 28px; }
.scene-art.ph { border-style: solid; }
.scene-text { flex: 2 1 320px; min-width: 0; }
.scene-num { font-family: var(--font-display); font-size: 22px; color: #5a5a5a; margin-bottom: 8px; }
.scene-line { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.5; }
.speech { display: inline-block; background: #fff; border: var(--line); border-radius: 28px 28px 28px 6px; padding: 18px 28px; }
.speech.chef { border-color: var(--chef-orange); border-radius: 28px 28px 6px 28px; }
.speaker { margin-top: 14px; font-size: 16px; color: #4a4a4a; }
.sfx { display: inline-block; margin-top: 16px; background: var(--chef-orange); border: var(--line); border-radius: 999px; padding: 4px 20px; font-family: var(--font-display); font-size: 26px; }
.orange-num { color: #8A4A12; }
.coral-num { color: var(--label); }

.routine { flex: 3 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.routine .ph { aspect-ratio: 1; border-radius: 16px; border-style: solid; font-size: 14px; padding: 6px; }

.chef-art { flex-wrap: wrap; gap: 20px; }
.chef-art img { width: 38%; background: #fff; border: var(--line); border-radius: 50%; }
.chef-art span { flex: 1 1 200px; }

.first-bite { padding: 112px 0; text-align: center; border-top: var(--line); border-bottom: var(--line); }
.first-bite .container { display: flex; flex-direction: column; align-items: center; gap: 40px; }
.first-bite .scene-num { color: #000; }
.bite-art { width: 100%; max-width: 900px; aspect-ratio: 3 / 2; border: 4px solid var(--ink); border-radius: 32px; background: var(--cream); position: relative; }
.bite-art.ph { border-style: solid; }
.boom { position: absolute; top: -34px; right: 6%; background: #FFD36E; border: 4px solid var(--ink); border-radius: 999px; padding: 4px 30px; font-family: var(--font-display); font-size: 56px; line-height: 1.3; transform: rotate(6deg); }
.first-bite h2 { font-size: clamp(30px, 4vw, 44px); color: #000; }

.final-art { flex-wrap: wrap; gap: 24px; background: var(--bubble); color: #5E1C17; }
.final-art img { width: 30%; }
.final-art span { flex: 1 1 200px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .bubble-circle img, .qmark { animation: none; }
  .btn:hover { transform: none; }
}

/* ---------- Phones ---------- */
@media (max-width: 720px) {
  .section, .cta { padding: 64px 0; }
  .hero { padding: 40px 0 56px; }
  .site-header .logo img { height: 48px; }
  .site-nav { gap: 14px; font-size: 16px; }
  .teaser-text { border-left: 0; border-top: var(--line); padding: 32px 24px; }
  .product-card { padding: 24px; }
  .scene .container, .scene.reverse .container { flex-direction: column; gap: 28px; }
  .scene-art, .routine { flex-basis: auto; width: 100%; }
  .boom { font-size: 40px; top: -26px; }
}

/* ---------- Real images ---------- */
img.scene-art { width: 100%; height: auto; object-fit: cover; background: #fff; }
img.scene-art.scene-square { aspect-ratio: 1; }
.bite-wrap { position: relative; width: 100%; max-width: 900px; }
img.bite-art { width: 100%; height: auto; object-fit: cover; }
img.product-photo { width: 100%; height: auto; object-fit: cover; border: var(--line); border-radius: 24px; }
.flavour { display: inline-block; margin: -8px 0 14px !important; font-family: var(--font-display); font-size: 22px; color: var(--label); }
.taste { margin: 0 0 20px; display: grid; gap: 6px; font-size: 16px; }
.taste div { display: flex; gap: 12px; align-items: baseline; }
.taste dt { flex: none; font-weight: 700; background: var(--blush); border-radius: 6px; padding: 0 8px; }
.taste dd { margin: 0; }
.chili { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; margin-right: 3px; vertical-align: -1px; }
.chili.on { background: var(--pop); }
.scene-narration { font-size: 18px; color: #3a3a3a; margin-bottom: 16px; }
.first-bite .scene-line { color: #000; }

/* ---------- Banner: snack brand showcase ---------- */
.hero-sub strong { background: var(--bubble); padding: 0 6px; border-radius: 6px; }
.hero-points { list-style: none; padding: 0; margin: -16px 0 32px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-points li { background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 2px 14px; font-size: 15px; font-weight: 700; }
.hero-points li::before { content: "● "; color: var(--coral); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { position: relative; }
.hero-pack {
  position: absolute; left: 0; bottom: -10px; width: 170px; z-index: 3;
  background: #fff; border: var(--line); border-radius: 20px; padding: 10px 10px 8px;
  transform: rotate(-8deg); transition: transform .2s ease; pointer-events: auto;
}
.hero-pack:hover { transform: rotate(-4deg) scale(1.04); }
.hero-pack img { border-radius: 12px; }
.hero-pack-label { display: block; margin-top: 6px; text-align: center; font-weight: 700; font-size: 14px; line-height: 1.4; }
.hero-pack-label small { display: block; font-weight: 400; font-size: 12px; color: var(--label); }
.new-sticker {
  position: absolute; top: -16px; right: -14px; background: var(--pop); color: #fff;
  border: var(--line); border-radius: 999px; padding: 2px 12px; font-weight: 700; font-size: 14px; transform: rotate(10deg);
}
@media (max-width: 720px) {
  .hero-pack { width: 120px; left: -6px; bottom: -20px; }
  .hero-points { margin-top: -16px; }
}
@media (prefers-reduced-motion: reduce) { .hero-pack:hover { transform: rotate(-8deg); } }
@media (max-width: 720px) {
  .site-header .container { flex-wrap: nowrap; }
  .site-nav { flex-wrap: nowrap; gap: 12px; font-size: 15px; }
  .site-nav .btn { font-size: 0; gap: 0; min-height: 44px; width: 44px; padding: 0; }
}
@media (max-width: 720px) {
  .hero { padding: 0; }
  .hero-layer { padding: 32px 0 64px; }
}
/* New SQUIBO-with-snack artwork: bigger in the circle, product card tucked lower-left */
.bubble-circle img.hero-squibo { width: 82%; margin-top: 4%; }
.hero-pack { width: 140px; left: -24px; bottom: -48px; }
@media (max-width: 720px) { .hero-pack { width: 104px; left: -8px; bottom: -36px; } }
