/* ==========================================================================
   Hearth — Coffee House
   Design tokens measured from the reference layout (1440px viewport):
   cream #e9ebdf · forest #284010 · lime #78bf30
   Londrina Solid (display) · Gochi Hand (script) · Inter 500/700 (body)
   Container 1328px with 64px gutters (1200px content) · sections 160/200px.
   ========================================================================== */

:root {
  --cream: #e9ebdf;
  --forest: #284010;
  --lime: #78bf30;
  --forest-10: rgba(40, 64, 16, .1);
  --forest-15: rgba(40, 64, 16, .15);
  --forest-60: rgba(40, 64, 16, .6);
  --cream-20: rgba(233, 235, 223, .2);
  --cream-60: rgba(233, 235, 223, .6);

  --display: "Londrina Solid", "Arial Narrow", sans-serif;
  --script: "Gochi Hand", "Comic Sans MS", cursive;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1328px;
  --gutter: 64px;
  --radius: 24px;
  --radius-sm: 16px;
  --border: 3px;
  --slant: 50px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--body);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.44;
  letter-spacing: -.01em;
  color: var(--forest);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--lime); color: var(--forest); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--forest); color: var(--cream); padding: 10px 16px; border-radius: 12px;
}
.skip-link:focus { top: 16px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; }
.top-padd { padding-top: 160px; }
.both-padd { padding: 160px 0; }
.both-padd.large { padding: 200px 0; }
.dark { background: var(--forest); color: var(--cream); }
.slant-bottom { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slant)), 0 100%); }
.slant-top { clip-path: polygon(0 0, 100% var(--slant), 100% 100%, 0 100%); }
.slant-both { clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 calc(100% - var(--slant))); }

/* ---------- Type scale ---------- */
.h1, .h2, .block-title, .h3-small, .display-s, .logo {
  font-family: var(--display); font-weight: 400; line-height: 1;
}
.h1, .h2, .block-title, .quote__text { text-wrap: balance; }
.h1 { font-size: 104px; letter-spacing: -.01em; max-width: 720px; }
.h2 { font-size: 80px; letter-spacing: -.01em; max-width: 480px; }
.block-title { font-size: 40px; letter-spacing: -.01em; max-width: 400px; }
.h3-small { font-size: 28px; letter-spacing: -.01em; }
.display-s { font-size: 24px; letter-spacing: -.01em; }
.body-l { font-size: 18px; }
.body-m { font-size: 14px; }
.script { font-family: var(--script); font-weight: 400; letter-spacing: 0; line-height: 1.2; }
.align-center { text-align: center; margin-left: auto; margin-right: auto; }
.accent { color: var(--lime); }

.label {
  display: flex; width: fit-content; align-items: center; gap: 12px;
  font-family: var(--script); font-size: 20px; line-height: 22px; letter-spacing: 0;
  margin-bottom: 16px;
}
.label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); flex: none; }

.dot-sep { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; margin: 0 6px; vertical-align: middle; }
.price { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.volume {
  font-size: 10px; font-weight: 500; line-height: 14px; letter-spacing: 0;
  padding: 1px 4px; border-radius: 6px; background: var(--forest-10);
}
.volume--light { background: var(--cream-20); }

/* ---------- Buttons ---------- */
.button {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 21px 25px; border-radius: 20px;
  font-size: 18px; font-weight: 700; line-height: 18px; letter-spacing: -.01em;
  background: var(--lime); color: var(--forest); border: var(--border) solid var(--lime);
}
.button__bg {
  position: absolute; inset: 0; z-index: -1; border-radius: 18px; background: var(--cream);
  transform: translateY(50%) scale(0); transition: transform .3s cubic-bezier(.25, .46, .45, .94);
}
.button:hover .button__bg, .button:focus-visible .button__bg { transform: none; }
.button__label { position: relative; }
.button--outline { background: transparent; border-color: var(--forest); }
.button--outline .button__bg { background: var(--forest-10); }
.button--outline-light { background: transparent; color: var(--cream); border-color: var(--cream); }
.button--outline-light .button__bg { background: rgba(233, 235, 223, .1); }

.round-btn {
  width: 44px; height: 44px; border-radius: 50%; border: var(--border) solid var(--forest);
  display: grid; place-items: center; transition: background-color .3s, color .3s;
}
.round-btn svg { width: 20px; height: 20px; }
.round-btn:hover, .round-btn:focus-visible { background: var(--forest); color: var(--cream); }

.doodle { color: var(--lime); overflow: visible; }

/* ---------- AnnouncementBar ---------- */
.announce { background: var(--lime); height: 36px; overflow: hidden; display: flex; align-items: center; font-size: 14px; line-height: 20px; }
.announce__track { display: flex; width: 100%; justify-content: center; }
.announce__group { display: flex; align-items: center; gap: 12px; white-space: nowrap; flex: none; }
.announce__group + .announce__group { display: none; }
.announce__heart { width: 12px; height: 12px; color: var(--forest); flex: none; }

/* ---------- SiteHeader ---------- */
.header { position: absolute; top: 36px; left: 0; right: 0; z-index: 20; }
.header__inner { display: flex; flex-direction: column; align-items: center; padding-top: 32px; gap: 28px; }
.logo { font-size: 48px; line-height: 40px; letter-spacing: -.02em; display: inline-block; transition: transform .4s var(--ease); }
.logo:hover { transform: rotate(-3deg) scale(1.04); }
.nav { display: flex; }
.nav { gap: 6px; }
.nav a { font-size: 18px; font-weight: 700; line-height: 24px; position: relative; padding: 4px 10px; isolation: isolate; }
.nav a::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 12px; background: var(--lime);
  opacity: 0; transform: scale(0); transition: opacity .3s, transform .3s cubic-bezier(.25, .46, .45, .94);
}
.nav a:hover::before, .nav a:focus-visible::before { opacity: 1; transform: none; }

/* ---------- HeroSection ---------- */
/* the 36px announcement bar sits inside the reference's 240px hero offset */
.hero { position: relative; height: calc(100vh - 36px); min-height: 724px; max-height: 1164px; padding-top: 204px; overflow: hidden; }
.hero__content { position: relative; display: flex; flex-direction: column; align-items: center; gap: 80px; }
.hero__text { display: flex; flex-direction: column; align-items: center; gap: 32px; text-align: center; position: relative; z-index: 2; }
.hero__title { margin: 0 auto; }
.hero__actions { display: flex; gap: 12px; }
.hero__media { position: relative; width: 100%; }
.hero__glass { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.hero__product {
  position: absolute; top: -40px; left: 0; display: flex; flex-direction: column; gap: 12px;
  padding-left: 16px; border-left: var(--border) solid var(--lime); text-align: left;
}
.hero__product-text { display: flex; flex-direction: column; gap: 2px; }
.hero__product .body-m { display: flex; align-items: center; }
.hero__product .price { font-size: 16px; }
.hero__arrow { position: absolute; width: 86px; height: 60px; top: -16px; left: 200px; color: var(--forest); transform: rotate(10deg); }
.hero__badge { position: absolute; top: -8px; right: 162px; display: flex; align-items: center; gap: 10px; transform: rotate(10deg); }
.hero__badge-icon { width: 40px; height: 40px; flex: none; }
.hero__badge .script { font-size: 21px; line-height: 1.2; text-align: left; }
.hero__doodle { position: absolute; z-index: 1; }
.hero__doodle--l { width: 144px; height: 144px; top: -96px; left: 40px; transform: rotate(-10deg); }
.hero__doodle--r { width: 168px; height: 168px; top: -32px; right: 40px; }

/* ---------- BrandTicker ---------- */
.ticker { background: var(--lime); padding: 24px 0; overflow: hidden; position: relative; z-index: 3; }
.ticker__track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker__line { display: flex; align-items: center; gap: 24px; padding-right: 24px; flex: none; }
.ticker__line .display-s { white-space: nowrap; }
.ticker__heart { width: 20px; height: 20px; color: var(--forest); flex: none; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Section heading (label + h2 | description) ---------- */
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.section-description { max-width: 288px; width: 288px; padding-right: 24px; flex: none; }
.dark .section-description { color: var(--cream); }

/* ---------- FeaturedProducts (bento) ---------- */
.featured {
  display: grid; margin-top: 80px; gap: 16px;
  grid-template-columns: 592fr 288fr 288fr; grid-template-rows: 330px 294px;
}
.featured__a { grid-row: 1 / 3; grid-column: 1; }
.featured__b { grid-row: 1; grid-column: 2 / 4; }
.featured__c { grid-row: 2; grid-column: 2; }
.featured__d { grid-row: 2; grid-column: 3; }

.block {
  position: relative; border-radius: var(--radius); border: var(--border) solid var(--forest);
  overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate;
}
.block--photo { color: var(--cream); }
.block__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .4s cubic-bezier(.25, .46, .45, .94); }
.block--photo::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(40, 64, 16, 0) 35%, rgba(40, 64, 16, .45) 62%, rgba(28, 44, 10, .86) 100%);
}
.block:hover .block__img { transform: scale(1.1) rotate(1deg); }
.block__body { padding: 0 28px 36px; display: flex; flex-direction: column; gap: 8px; }
.block__body .block-title { margin: 4px 0 4px; }
.block__body .price { margin-top: 18px; }
.featured__b .block__body .price { margin-top: 14px; }
.block__burst { position: absolute; width: 140px; height: 140px; left: -62px; top: -62px; color: var(--forest); z-index: 0; animation: spin 30s linear infinite; }
.block__burst--b { width: 120px; height: 120px; left: -54px; top: -54px; }
.badge {
  position: absolute; left: 28px; top: 28px; z-index: 1;
  background: var(--lime); color: var(--forest); font-family: var(--script); font-size: 16px; line-height: 20px;
  padding: 4px 12px; border-radius: 999px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.block--lime { background: var(--lime); color: var(--forest); }
.block--forest { background: var(--forest); color: var(--cream); }
.block--lime, .block--forest { justify-content: space-between; padding: 28px; }
.block__top { display: flex; justify-content: space-between; align-items: flex-start; }
.block__icon { width: 64px; height: 56px; transition: transform .6s var(--ease); }
.block--forest .block__icon { color: var(--cream); }
.block:hover .block__icon { transform: rotate(-10deg) scale(1.08); }
.block__aside { font-size: 16px; line-height: 1.05; text-align: left; transform: rotate(4deg); }
.block__body--plain { padding: 0; gap: 4px; }
.block__body--plain .h3-small { margin: 4px 0 8px; }
.block__body--plain .price { margin-top: 18px; }

/* ---------- MenuSection ---------- */
.menu__head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.menu__icon { width: 116px; height: 116px; margin-bottom: 20px; }
.menu {
  display: grid; grid-template-columns: repeat(2, minmax(0, 439px)); justify-content: center;
  column-gap: 120px; row-gap: 70px; margin-top: 120px;
}
.menu__group-head {
  display: grid; grid-template-columns: 1fr 76px 76px; align-items: end;
  padding-bottom: 16px; border-bottom: var(--border) solid var(--forest-15);
}
.menu__group-head .body-m { margin-top: 6px; }
.menu__size { font-size: 14px; text-align: right; color: var(--forest-60); line-height: 20px; }
.menu__list { margin-top: 14px; }
.menu__list li {
  display: grid; grid-template-columns: 1fr 76px 76px; align-items: baseline; padding: 4px 0; min-height: 34px;
  transition: transform .3s var(--ease), color .3s;
}
.menu__list li span:not(:first-child) { text-align: right; font-size: 14px; }
.menu__list li:hover { transform: translateX(6px); }

/* ---------- MoodMatcher ---------- */
.mood__head { display: flex; justify-content: space-between; align-items: flex-start; position: relative; }
.mood__doodle { width: 200px; height: 140px; margin-right: 180px; margin-top: -10px; }
.mood {
  display: grid; grid-template-columns: 40px 512px 1fr 360px; align-items: center; column-gap: 40px;
  margin-top: 80px;
}
.mood__hint { font-size: 14px; line-height: 1.4; writing-mode: vertical-rl; transform: rotate(180deg); justify-self: center; white-space: nowrap; }
.wheel {
  position: relative; width: 512px; height: 512px; border-radius: 50%; overflow: visible;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: var(--border);
  background: var(--forest);
}
.wheel__q {
  background: var(--cream); color: var(--forest); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  transition: background-color .45s var(--ease), color .3s;
}
.wheel__q .script { font-size: 16px; }
.wheel__q--tl { border-radius: 256px 0 0 0; padding: 40px 0 0 40px; }
.wheel__q--tr { border-radius: 0 256px 0 0; padding: 40px 40px 0 0; }
.wheel__q--bl { border-radius: 0 0 0 256px; padding: 0 0 40px 40px; }
.wheel__q--br { border-radius: 0 0 256px 0; padding: 0 40px 40px 0; }
.wheel__q:hover { background: #d9e8c4; }
.wheel__q.is-active { background: var(--lime); }
.wheel__hub {
  position: absolute; left: 50%; top: 50%; width: 80px; height: 80px; margin: -40px 0 0 -40px; border-radius: 50%;
  background: var(--lime); border: var(--border) solid var(--forest); display: grid; place-items: center; pointer-events: none;
}
.wheel__heart { width: 30px; height: 30px; color: var(--forest); }
.wheel__pointer {
  position: absolute; width: 60px; height: 60px; left: 50%; top: 50%; color: var(--forest);
  transform-origin: 0 0; transform: rotate(var(--rot, 0deg)) translate(-58px, -58px);
  transition: transform .7s var(--ease);
}
.wheel__doodle { position: absolute; width: 74px; height: 64px; right: -6px; bottom: -14px; transform: rotate(20deg); }
.mood__arrow { width: 140px; height: 40px; color: var(--cream); justify-self: center; }
.mood-card { background: var(--cream); color: var(--forest); border-radius: var(--radius); padding: 12px; width: 360px; }
.mood-card__media { border-radius: var(--radius-sm); overflow: hidden; height: 252px; }
.mood-card__media img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s, transform .6s var(--ease); }
.mood-card__body { padding: 26px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.mood-card__body .h3-small { margin: 2px 0 6px; }
.mood-card__body .price { margin-top: 18px; }
.mood-card.swap img { opacity: 0; transform: scale(1.06); }
.mood-card.swap .mood-card__body > * { opacity: 0; transform: translateY(8px); }
.mood-card__body > * { transition: opacity .35s, transform .45s var(--ease); }

/* ---------- CoffeeTimeline ---------- */
.timeline { margin-top: 80px; border: var(--border) solid var(--forest); border-radius: var(--radius); overflow: hidden; background: var(--forest); }
.timeline__stage { color: var(--cream); padding: 30px 28px 0; min-height: 380px; display: flex; flex-direction: column; }
.timeline__kicker { display: flex; align-items: center; gap: 12px; font-size: 20px; }
.timeline__num { font-family: var(--script); font-size: 16px; color: var(--cream-60); }
.timeline__main { display: flex; justify-content: space-between; align-items: flex-end; flex: 1; gap: 40px; }
.timeline__time {
  font-family: var(--display); font-size: 264px; line-height: .78; letter-spacing: -.02em; color: var(--lime);
  display: flex; margin-bottom: -2px;
  pointer-events: none;   /* decorative digits; their glyph overflow must never block the tabs */
}
.timeline__time i { font-style: normal; color: var(--cream); margin: 0 4px; }
.timeline__time span, .timeline__time i { display: inline-block; transition: transform .6s var(--ease), opacity .4s; }
.timeline.swap .timeline__time span { transform: translateY(40%); opacity: 0; }
.timeline__info { width: 398px; padding-bottom: 52px; display: flex; flex-direction: column; gap: 12px; }
.timeline__icon { width: 64px; height: 60px; color: var(--lime); margin-bottom: 30px; }
.timeline__info .block-title { color: var(--cream); }
.timeline__info .body-m { max-width: 260px; color: var(--cream); }
.timeline.swap .timeline__info > * { opacity: 0; transform: translateY(8px); }
.timeline__info > * { transition: opacity .35s, transform .45s var(--ease); }
.timeline__tabs { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--border); background: var(--forest); }
.timeline__tab {
  background: var(--cream); color: var(--forest); text-align: left; padding: 22px 24px 20px;
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; row-gap: 4px;
  transition: background-color .4s var(--ease);
}
.timeline__tab .script { font-size: 14px; grid-column: 1; }
.timeline__tab .h3-small { grid-column: 1; }
.timeline__tab svg { grid-column: 2; grid-row: 1 / 3; width: 28px; height: 28px; align-self: start; }
.timeline__tab:hover { background: #dbe5c9; }
.timeline__tab.is-active { background: var(--lime); }
.timeline__cta { display: flex; justify-content: flex-end; align-items: center; gap: 24px; margin-top: 40px; }
.timeline__cta-arrow { width: 84px; height: 66px; color: var(--forest); transform: rotate(-12deg); margin-top: -24px; }

/* ---------- BrandValues ---------- */
.values { display: grid; grid-template-columns: 1fr auto 360px; align-items: center; column-gap: 40px; }
.values .h2 { max-width: 480px; }
.values__p { max-width: 380px; margin-top: 32px; }
.values__actions { display: flex; gap: 12px; margin-top: 32px; }
.values__doodle { width: 130px; height: 120px; align-self: end; margin-bottom: 40px; }
.receipt {
  --tooth: 12px;
  background: var(--cream); color: var(--forest); width: 360px; padding: 36px 28px 40px; position: relative;
  -webkit-mask:
    radial-gradient(circle at 50% 0, transparent 6px, #000 6.5px) top / 24px var(--tooth) repeat-x,
    radial-gradient(circle at 50% 100%, transparent 6px, #000 6.5px) bottom / 24px var(--tooth) repeat-x,
    linear-gradient(#000, #000) center / 100% calc(100% - 2 * var(--tooth) + 1px) no-repeat;
          mask:
    radial-gradient(circle at 50% 0, transparent 6px, #000 6.5px) top / 24px var(--tooth) repeat-x,
    radial-gradient(circle at 50% 100%, transparent 6px, #000 6.5px) bottom / 24px var(--tooth) repeat-x,
    linear-gradient(#000, #000) center / 100% calc(100% - 2 * var(--tooth) + 1px) no-repeat;
}
.receipt__head { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 20px; border-bottom: var(--border) solid var(--forest-15); }
.receipt__brand { font-family: var(--display); font-size: 48px; line-height: 1; letter-spacing: -.02em; }
.receipt__sub { font-size: 16px; margin-top: 6px; }
.receipt__icon { width: 48px; height: 48px; color: var(--lime); }
.receipt__lines { padding: 16px 0; display: grid; gap: 8px; font-size: 14px; border-bottom: var(--border) solid var(--forest-15); }
.receipt__lines li { display: flex; justify-content: space-between; gap: 12px; }
.receipt__total { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0; border-bottom: var(--border) solid var(--forest-15); font-size: 14px; }
.receipt__total b { font-family: var(--display); font-weight: 400; font-size: 28px; }
.receipt__barcode {
  height: 48px; width: 200px; margin: 28px auto 10px;
  background: repeating-linear-gradient(90deg, var(--forest) 0 2px, transparent 2px 4px, var(--forest) 4px 5px, transparent 5px 8px, var(--forest) 8px 11px, transparent 11px 12px, var(--forest) 12px 13px, transparent 13px 16px);
}
.receipt__thanks { display: flex; justify-content: center; align-items: center; gap: 6px; font-size: 16px; }
.receipt__thanks svg { width: 12px; height: 12px; }

/* ---------- CafeGallery ---------- */
.gallery {
  margin-top: 80px; display: grid; grid-template-columns: 1fr 400px; height: 675px;
  border: var(--border) solid var(--forest); border-radius: var(--radius); overflow: hidden; background: var(--lime);
}
.gallery__media { position: relative; overflow: hidden; background: var(--forest); }
.gallery__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .7s ease, transform 1.2s var(--ease); }
.gallery__img.is-active { opacity: 1; transform: scale(1); }
.hotspot {
  position: absolute; left: var(--x); top: var(--y); z-index: 2; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%;
  background: var(--cream); color: var(--forest); font-size: 14px; font-weight: 700;
  box-shadow: 0 0 0 4px rgba(233, 235, 223, .35); transition: transform .35s var(--ease), background .3s;
}
.hotspot:hover { transform: scale(1.12); }
.hotspot.is-active { background: var(--lime); box-shadow: 0 0 0 4px var(--cream), 0 0 0 7px var(--forest); }
.hotspot.is-active::after {
  content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 2px solid var(--cream);
  animation: ping 2s var(--ease) infinite;
}
@keyframes ping { from { transform: scale(.7); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }
.gallery__panel { display: flex; flex-direction: column; border-left: var(--border) solid var(--forest); }
.gallery__detail { flex: 1; padding: 30px 28px 28px; display: flex; flex-direction: column; }
.gallery__count { font-size: 16px; }
.gallery__icon { width: 64px; height: 64px; margin-top: auto; margin-bottom: 30px; color: var(--forest); }
.gallery__detail .block-title { margin-bottom: 14px; }
.gallery__detail .body-m { max-width: 270px; }
.gallery__tags { display: flex; gap: 16px; margin-top: 14px; font-size: 16px; }
.gallery__detail.swap > *:not(.gallery__count) { opacity: 0; transform: translateY(8px); }
.gallery__detail > * { transition: opacity .35s, transform .45s var(--ease); }
.gallery__tab {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 0 28px; height: 67px; text-align: left;
  border-top: var(--border) solid rgba(40, 64, 16, .18); transition: background-color .35s var(--ease), color .3s;
}
.gallery__tab .script { font-size: 14px; }
.gallery__tab:hover { background: rgba(40, 64, 16, .1); }
.gallery__tab.is-active { background: var(--forest); color: var(--cream); border-top-color: var(--forest); }

/* ---------- Testimonials ---------- */
.testimonials { padding: 204px 0 48px; text-align: center; }
.testimonials__mark { width: 94px; height: 80px; color: var(--lime); margin: 0 auto; }
.testimonials__viewport { margin-top: 53px; overflow: hidden; touch-action: pan-y; }
.testimonials__track { display: flex; transition: transform .5s ease; will-change: transform; }
.testimonials__track.no-anim { transition: none; }
.quote { flex: 0 0 100%; min-height: 322px; display: flex; flex-direction: column; justify-content: center; padding: 0 var(--gutter); }
.quote__text { font-family: var(--display); font-size: 60px; line-height: .966; letter-spacing: -.01em; max-width: 740px; margin: 0 auto; }
.quote__by { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 64px; }
.quote__by svg { width: 20px; height: 20px; color: var(--lime); }
.quote__by .script { font-size: 18px; margin-left: -6px; }
.testimonials__nav { display: flex; justify-content: center; gap: 6px; margin-top: 149px; }

/* ---------- VisitSection ---------- */
.visit__head { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.visit__doodle-l { position: absolute; width: 56px; height: 56px; left: calc(50% - 250px); top: 46px; transform: rotate(-20deg); }
.visit__doodle-r { position: absolute; width: 84px; height: 66px; left: calc(50% + 200px); top: 150px; transform: rotate(-30deg); }
.bento { display: grid; grid-template-columns: 389fr 491fr 288fr; gap: 16px; margin-top: 80px; height: 600px; }
.bento__col { display: flex; flex-direction: column; gap: 16px; min-height: 0; }
.bento__row { display: grid; grid-template-columns: 1fr 82px; gap: 16px; height: 215px; flex: none; }
.photo-card { background: var(--cream); color: var(--forest); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; min-height: 0; }
.photo-card__img { flex: 1; border-radius: var(--radius-sm); overflow: hidden; min-height: 0; }
.photo-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s cubic-bezier(.25, .46, .45, .94); }
.photo-card:hover .photo-card__img img { transform: scale(1.1) rotate(1deg); }
.photo-card figcaption { font-size: 20px; padding: 18px 16px 10px; }
.bento__a { height: 100%; }
.bento__b { flex: 1; }
.bento__c { flex: 1; }
.info-card { border-radius: var(--radius); padding: 28px; position: relative; color: var(--forest); border: var(--border) solid transparent; transition: background-color .3s, color .3s; }
.info-card--lime { border-color: var(--lime); }
a.info-card:hover, a.info-card:focus-visible { background: var(--forest); color: var(--lime); }
.info-card--lime { background: var(--lime); }
.info-card--cream { background: var(--cream); }
.info-card__label { font-size: 14px; display: block; }
.bento__addr { display: flex; flex-direction: column; justify-content: space-between; }
.info-card__pin { position: absolute; right: 30px; top: 30px; width: 56px; height: 80px; }
.info-card__big { display: block; }
.bento__hello { display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 28px 0; }
.info-card__mail { width: 30px; height: 30px; flex: none; }
.bento__hello-text { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
.bento__hours { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; height: 133px; flex: none; }
.info-card__mid { display: block; margin-top: 8px; font-size: 26px; }
.info-card__clock { width: 44px; height: 44px; flex: none; }

/* ---------- SiteFooter ---------- */
.footer { padding: 80px 0; }
.footer__inner { display: flex; justify-content: space-between; gap: 40px; }
.footer__logo { display: flex; align-items: flex-start; gap: 4px; }
.logo--lg { font-size: 56px; line-height: 48px; margin-top: 20px; }
.footer__doodle { width: 44px; height: 44px; }
.footer__hours { font-size: 20px; margin-top: 10px; }
.footer__copy { margin-top: 50px; }
.footer__small { display: flex; gap: 20px; margin-top: 14px; font-weight: 700; }
.footer__small a, .footer__col a { transition: color .3s; }
.footer__small a:hover, .footer__col a:hover { color: rgba(40, 64, 16, .8); }
.footer__ico svg { transition: opacity .3s; }
.footer__ico:hover svg { opacity: .6; }
.footer__menu { display: grid; grid-template-columns: 152px 152px 288px; margin-top: 10px; }
.footer__label { font-size: 14px; margin-bottom: 24px; }
.footer__col a { display: block; font-family: var(--display); font-size: 24px; line-height: 36px; letter-spacing: -.01em; transition: color .3s; }
.footer__ico { display: flex !important; gap: 10px; line-height: 24px !important; margin-bottom: 12px; }
.footer__ico svg { width: 16px; height: 16px; margin-top: 3px; flex: none; }

/* ---------- Motion ----------
   GSAP sets every initial state; keep the page hidden until then so nothing flashes.
   (The inline head script removes .js after 3s if scripts fail, so content can never stay hidden.) */
html.js:not(.anim-ready) body { visibility: hidden; }
.split-word { display: inline-block; will-change: transform; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1280px) {
  .hero__doodle--l { left: 40px; }
  .hero__doodle--r { left: auto; right: 40px; }
  .mood { grid-template-columns: 40px minmax(0, 512px) 1fr 340px; column-gap: 24px; }
  .wheel { width: 100%; height: auto; aspect-ratio: 1; }
  .mood-card { width: 100%; }
  .mood__arrow { width: 100px; }
}

@media (max-width: 991px) {
  .h1 { font-size: 88px; }
  .h2 { font-size: 68px; max-width: 408px; }
  .quote__text { font-size: 48px; }

  .hero { height: calc(100vh - 36px); min-height: 844px; padding-top: 284px; }
  .hero__content { gap: 160px; }
  .hero__product { top: -64px; }
  .hero__arrow { top: -42px; left: 192px; }
  .hero__badge { top: -32px; right: 80px; }
  .hero__doodle--l { width: 80px; height: 80px; left: auto; }
  .hero__doodle--r { display: none; }

  .section-heading { flex-direction: column; align-items: flex-start; gap: 24px; }
  .section-description { width: auto; max-width: 420px; }

  .featured { grid-template-columns: 1fr 1fr; grid-template-rows: 460px 330px 300px; }
  .featured__a { grid-row: 1; grid-column: 1 / 3; }
  .featured__b { grid-row: 2; grid-column: 1 / 3; }
  .featured__c { grid-row: 3; grid-column: 1; }
  .featured__d { grid-row: 3; grid-column: 2; }

  .menu { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; margin-top: 80px; }

  .mood__doodle { margin-right: 0; width: 140px; }
  .mood { grid-template-columns: 1fr; justify-items: center; row-gap: 32px; }
  .mood__hint { writing-mode: horizontal-tb; transform: none; text-align: center; }
  .wheel { width: min(512px, 100%); }
  .mood__arrow { transform: rotate(90deg); width: 90px; }
  .mood-card { width: min(420px, 100%); }

  .timeline__time { font-size: 180px; }
  .timeline__info { width: 300px; }
  .timeline__tabs { grid-template-columns: repeat(2, 1fr); }

  .values { grid-template-columns: 1fr; row-gap: 48px; }
  .values__doodle { display: none; }
  .receipt { justify-self: start; }

  .gallery { grid-template-columns: 1fr; height: auto; }
  .gallery__media { height: 480px; order: 2; }
  .gallery__panel { order: 1; border-left: 0; border-bottom: var(--border) solid var(--forest); }
  .gallery__icon { margin-top: 40px; }

  /* flatten the desktop columns so every card sits on one grid */
  .bento { grid-template-columns: 1fr 1fr; height: auto; }
  .bento__col, .bento__row { display: contents; }
  .bento__a { grid-column: 1; grid-row: 1; height: 440px; }
  .bento__b { grid-column: 2; grid-row: 1; height: 440px; }
  .bento__addr { grid-column: 1; grid-row: 2; min-height: 200px; }
  .bento__hours { grid-column: 2; grid-row: 2; height: auto; }
  .bento__hello { grid-column: 1 / 3; grid-row: 3; flex-direction: row-reverse; justify-content: space-between; padding: 24px 28px; }
  .bento__hello-text { writing-mode: horizontal-tb; transform: none; }
  .bento__c { grid-column: 1 / 3; grid-row: 4; height: 380px; }

  .footer__inner { flex-direction: column-reverse; gap: 64px; }
}

@media (max-width: 767px) {
  :root { --gutter: 32px; --slant: 30px; }
  .top-padd { padding-top: 128px; }
  .both-padd { padding: 128px 0; }
  .both-padd.large { padding: 160px 0; }
  .h1 { font-size: 52px; }
  .h2 { font-size: 48px; max-width: 288px; }
  .block-title { font-size: 32px; }
  .h3-small { font-size: 24px; }
  .display-s { font-size: 21px; }
  .ticker { padding: 20px 0; }

  .announce__track { justify-content: flex-start; width: max-content; animation: ticker 26s linear infinite; }
  .announce__group { padding-right: 12px; }
  .announce__group + .announce__group { display: flex; }

  .header__inner { padding-top: 24px; gap: 20px; }
  .logo { font-size: 40px; line-height: 34px; }
  .nav { gap: 22px; }
  .nav a { font-size: 16px; }

  .hero { min-height: 764px; max-height: 844px; padding-top: 260px; }
  .hero__content { gap: 104px; }
  .hero__text { width: 100%; }
  .hero__doodle--l { width: 56px; height: 56px; top: -80px; }
  .hero__actions { flex-direction: column; width: 100%; gap: 12px; }
  .hero__actions .button { width: 100%; }
  .hero__product, .hero__arrow { display: none; }
  .hero__badge { top: -40px; right: 40px; }
  .hero__badge-icon { width: 34px; height: 34px; }
  .hero__badge .script { font-size: 18px; }

  .featured { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: auto; margin-top: 48px; }
  .featured__a, .featured__b, .featured__c, .featured__d { grid-column: 1; grid-row: auto; }
  .featured__a, .featured__b { min-height: 380px; }
  .featured__c, .featured__d { min-height: 290px; }

  .menu { grid-template-columns: 1fr; row-gap: 56px; margin-top: 56px; }
  .menu__icon { width: 84px; height: 84px; }
  .menu__group-head, .menu__list li { grid-template-columns: 1fr 64px 64px; }
  .menu__list li { font-size: 15px; }

  .mood__doodle { display: none; }
  .mood { margin-top: 48px; }

  .timeline__stage { min-height: 0; padding: 24px 20px 0; }
  .timeline__main { flex-direction: column-reverse; align-items: flex-start; gap: 20px; }
  .timeline__info { width: auto; padding: 32px 0 0; }
  .timeline__icon { margin-bottom: 12px; }
  .timeline__stage { padding-bottom: 14px; }
  .timeline__time { font-size: 104px; }
  .timeline__tabs { grid-template-columns: 1fr; }
  .timeline__tab { padding: 18px 20px; }
  .timeline__cta { flex-direction: column; align-items: stretch; gap: 8px; }
  .timeline__cta-arrow { align-self: center; transform: rotate(10deg); margin: 0; }

  .values { padding-top: 24px; }
  .values__actions { flex-direction: column; }
  .values__actions .button { width: 100%; }
  .receipt { width: 100%; max-width: 360px; justify-self: center; }

  .gallery { margin-top: 48px; }
  .gallery__media { height: 360px; }
  .gallery__detail { padding: 24px 20px; }
  .gallery__tab { padding: 0 20px; height: 60px; }
  .gallery__tab .h3-small { font-size: 22px; }

  .testimonials { padding: 96px 0 110px; }
  .quote__text { font-size: 36px; }
  .quote__by { margin-top: 36px; }
  .testimonials__nav { margin-top: 56px; }

  .visit__doodle-l, .visit__doodle-r { display: none; }
  .bento { grid-template-columns: 1fr; margin-top: 48px; }
  .bento__a, .bento__b, .bento__addr, .bento__hours, .bento__hello, .bento__c { grid-column: 1; grid-row: auto; }
  .bento__a { height: 460px; }
  .bento__b { height: 360px; }
  .bento__addr { min-height: 190px; }
  .bento__hours { min-height: 110px; }
  .bento__c { height: 420px; }

  .footer__menu { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .footer__col--wide { grid-column: 1 / 3; }
  .footer__label { margin-bottom: 14px; }
}

@media (max-width: 479px) {
  .timeline__time { font-size: 84px; }
  .menu__group-head, .menu__list li { grid-template-columns: 1fr 58px 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
