:root {
  color-scheme: dark;
  --background: #111512;
  --ink: #f6f3e9;
  --muted: #cbcbc0;
  --line: #f6f3e92b;
  --gold: #e8d2aa;
  --hydra: #b3e1e3;
  --radiance: #ffd08e;
  --age: #ead5b9;
  --barrier: #cedab8;
  --header-height: 72px;
  --gutter: clamp(1.5rem, 5vw, 5.65rem);
  --display: Georgia, 'Times New Roman', serif;
  font-family: system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;
  background: var(--background);
  color: var(--ink);
  scroll-padding-top: var(--header-height);
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, figure, ul { margin: 0; }
a { color: inherit; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

.visually-hidden {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  z-index: 9;
  top: .65rem;
  left: var(--gutter);
  padding: .75rem 1rem;
  background: var(--ink);
  color: var(--background);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.masthead {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--background);
  box-shadow: inset 0 -1px var(--line);
}

.masthead-inner {
  max-width: 1630px;
  height: var(--header-height);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
}

.brand {
  position: relative;
  display: inline-flex;
  width: fit-content;
  min-height: 44px;
  gap: .64rem;
  align-items: center;
  white-space: nowrap;
  text-decoration: none;
}
.brand-name { font: 400 1.67rem/1 var(--display); letter-spacing: .105em; }
.brand-translation {
  padding-left: .6rem;
  border-left: 1px solid var(--line);
  color: var(--gold);
  font-size: .82rem;
  letter-spacing: .12em;
}

.flavor-nav { display: flex; align-self: stretch; gap: clamp(.6rem, 2.5vw, 2.7rem); }
.flavor-nav a {
  position: relative;
  display: flex;
  min-height: 44px;
  justify-content: center;
  align-items: center;
  padding-inline: .58rem;
  color: var(--muted);
  font-size: .947rem;
  font-weight: 650;
  white-space: nowrap;
  text-decoration: none;
}
.flavor-nav a::after { content: ''; position: absolute; inset: auto .58rem 0; height: 2px; background: transparent; }
.flavor-nav a:hover, .flavor-nav a[aria-current] { color: var(--ink); }
.flavor-nav a[aria-current]::after { background: var(--nav-tint); }
.flavor-nav a[href='#brand-story'] { --nav-tint: var(--gold); }
.flavor-nav a[href='#hydra-glow'] { --nav-tint: var(--hydra); }
.flavor-nav a[href='#radiance-c'] { --nav-tint: var(--radiance); }
.flavor-nav a[href='#age-reverse'] { --nav-tint: var(--age); }
.flavor-nav a[href='#barrier-rescue'] { --nav-tint: var(--barrier); }

.masthead-actions { display: flex; justify-content: flex-end; align-items: center; gap: clamp(.4rem, 1.1vw, 1.2rem); }
.masthead-actions button { min-height: 44px; white-space: nowrap; cursor: pointer; }
.motion-toggle {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding-inline: .45rem;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: .875rem;
}
.motion-toggle:hover { color: var(--ink); }
.motion-icon { width: .7rem; height: .66rem; border-inline: .14rem solid currentColor; }
.motion-toggle[data-paused] .motion-icon { border: .33rem solid transparent; border-inline-start: .52rem solid currentColor; border-inline-end: 0; }
.flavor-showcase[data-carousel] {
  --carousel-target: 2.75rem;
  --carousel-edge: clamp(.375rem, 1.25vw, 1.1rem);
  --carousel-gutter: calc(var(--carousel-target) + var(--carousel-edge) + .35rem);
  position: relative;
  isolation: isolate;
  min-block-size: calc(100vh - var(--header-height));
  min-block-size: calc(100svh - var(--header-height));
  overflow-anchor: none;
}

.carousel-controls {
  position: sticky;
  z-index: 3;
  inset-block-start: calc(50vh + var(--header-height) / 2);
  inset-block-start: calc(50svh + var(--header-height) / 2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  block-size: 0;
  max-inline-size: 1630px;
  margin-inline: auto;
  padding-inline: var(--carousel-edge);
  pointer-events: none;
}

.carousel-arrow {
  display: grid;
  place-items: center;
  flex: 0 0 var(--carousel-target);
  block-size: var(--carousel-target);
  padding: 0;
  border: 1px solid rgb(246 243 233 / .29);
  border-radius: 50%;
  background: rgb(10 15 12 / .42);
  color: var(--ink);
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
}

.carousel-arrow:is(:hover, :focus-visible) {
  border-color: rgb(246 243 233 / .62);
  background: rgb(10 15 12 / .7);
}

.carousel-arrow::before {
  content: '';
  inline-size: .62rem;
  block-size: .62rem;
  border: solid currentColor;
  border-width: 0 .125rem .125rem 0;
}

.carousel-arrow-prev::before { transform: translateX(.14rem) rotate(135deg); }
.carousel-arrow-next::before { transform: translateX(-.14rem) rotate(-45deg); }

@supports selector(:has(*)) {
  .flavor-showcase:not([data-carousel]):has(.flavor:target) > .flavor:not(:target),
  .flavor-showcase:not([data-carousel]):not(:has(.flavor:target)) > .flavor:not(:first-of-type) {
    display: none;
  }
}

.flavor-showcase[data-carousel] > .flavor { z-index: 1; }
.flavor-showcase[data-carousel] > .flavor[data-leaving] {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: clip;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .flavor-showcase[data-carousel] > .flavor[data-entering] {
    animation: flavor-appear var(--flavor-transition-duration) ease-in-out both;
  }

  .flavor-showcase[data-carousel] > .flavor[data-entering] :is(.flavor-intro, .flavor-visual) {
    animation: flavor-settle var(--flavor-transition-duration, 420ms) ease-out both;
  }

  .flavor-showcase[data-carousel] > .flavor[data-entering] .flavor-intro { --entry-offset: .38rem; }
  .flavor-showcase[data-carousel] > .flavor[data-entering] .flavor-visual { --entry-offset: .65rem; }

  .guide-visual[data-reveal] { --guide-entry-offset: 2.1rem; }
  .guide-copy[data-reveal] { --guide-entry-offset: 1.7rem; }

  .guide-visual[data-reveal='waiting'] > img,
  .guide-copy[data-reveal='waiting'] > :is(.guide-title, .guide-product-meta, .guide-lead, .guide-notes, .guide-buy) {
    opacity: 0;
    transform: translateY(var(--guide-entry-offset));
  }

  .guide-visual[data-reveal='visible'] > img {
    animation: guide-reveal 780ms cubic-bezier(.22, .61, .36, 1) backwards;
  }

  .guide-copy[data-reveal='visible'] > :is(.guide-title, .guide-product-meta, .guide-lead, .guide-notes, .guide-buy) {
    animation: guide-reveal 700ms cubic-bezier(.22, .61, .36, 1) var(--guide-entry-delay) backwards;
  }

  .guide-title { --guide-entry-delay: 70ms; }
  .guide-product-meta { --guide-entry-delay: 120ms; }
  .guide-lead { --guide-entry-delay: 170ms; }
  .guide-notes { --guide-entry-delay: 240ms; }
  .guide-buy { --guide-entry-delay: 300ms; }

  .guide-panel:focus-within .guide-copy[data-reveal] > :is(.guide-title, .guide-product-meta, .guide-lead, .guide-notes, .guide-buy) {
    opacity: 1 !important;
    transform: none !important;
  }
}

@keyframes flavor-appear {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes flavor-settle {
  from { transform: translateY(var(--entry-offset)); }
  to { transform: translateY(0); }
}

@keyframes guide-reveal {
  from { opacity: 0; transform: translateY(var(--guide-entry-offset)); }
  to { opacity: 1; transform: translateY(0); }
}

.flavor {
  --shade: #10191a;
  --light: #304b4d;
  --low-light: #1a292a;
  --accent: var(--hydra);
  position: relative;
  isolation: isolate;
  overflow: clip;
  background-color: var(--shade);
  background-image: radial-gradient(ellipse 58% 81% at 74% 46%, var(--light), var(--low-light) 54%, transparent 100%);
  box-shadow: inset 0 -1px var(--line);
}
.flavor:focus { outline: none; }
.flavor:focus-visible .flavor-english { text-decoration: underline; text-underline-offset: .33em; }
#radiance-c { --shade: #211711; --light: #5c3c23; --low-light: #322215; --accent: var(--radiance); }
#age-reverse { --shade: #1d1916; --light: #554235; --low-light: #302620; --accent: var(--age); }
#barrier-rescue { --shade: #151b14; --light: #3c4a32; --low-light: #242e20; --accent: var(--barrier); }

.flavor-drift { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.flavor-layout {
  position: relative;
  display: grid;
  grid-template: 'intro hero' auto 'details hero' auto 'next hero' auto / minmax(0, .66fr) minmax(0, 1fr);
  align-content: center;
  align-items: center;
  gap: 0 clamp(1rem, 2.8vw, 3rem);
  max-width: 1630px;
  min-height: 650px;
  min-height: max(610px, calc(100svh - var(--header-height)));
  padding: clamp(2.6rem, 6vh, 5rem) var(--gutter);
  margin-inline: auto;
}

.flavor-showcase[data-carousel] .flavor-layout {
  grid-template-areas: 'intro hero' 'details hero';
  grid-template-rows: auto auto;
  padding-inline: max(var(--gutter), var(--carousel-gutter));
}

.flavor-intro { grid-area: intro; align-self: end; }
.flavor-english { color: var(--accent); font: 400 clamp(1.15rem, 2.2vw, 1.9rem)/1.12 var(--display); letter-spacing: .025em; }
.flavor-intro h2 {
  max-width: 8em;
  margin: .75rem 0 1rem;
  font-size: clamp(2.85rem, 4.2vw, 4.75rem);
  line-height: 1.14;
  font-weight: 620;
  letter-spacing: -.045em;
  text-shadow: 0 2px 24px var(--shade);
  text-wrap: balance;
}
.flavor-description { max-width: 24em; color: var(--muted); font-size: clamp(1rem, 1.25vw, 1.1rem); line-height: 1.75; text-shadow: 0 1px 8px var(--shade); }

.flavor-visual {
  grid-area: hero;
  position: relative;
  align-self: center;
  isolation: isolate;
  inline-size: 100%;
  block-size: clamp(24rem, 70svh, 43rem);
  touch-action: pan-y pinch-zoom;
}
.flavor-visual::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 81% 13% 0%;
  background: radial-gradient(ellipse closest-side, #0a0e0caa, #0a0e0c50 62%, transparent 100%);
}
.flavor-product { inline-size: 100%; block-size: 100%; object-fit: contain; }

.flavor-details { grid-area: details; max-width: 25rem; margin-top: 1.85rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.flavor-details h3 { margin-bottom: .62rem; color: var(--accent); font-size: .875rem; letter-spacing: .09em; }
.flavor-ingredients { display: flex; flex-wrap: wrap; gap: .45rem .95rem; padding: 0; list-style: none; }
.flavor-ingredients li { white-space: nowrap; color: var(--ink); font-size: .94rem; text-shadow: 0 1px 8px var(--shade); }
.flavor-ingredients li::before { content: ''; display: inline-block; width: .21rem; height: .21rem; margin: 0 .38rem .25em 0; border-radius: 50%; background: var(--accent); }

.flavor-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem 1rem;
  margin-block-start: clamp(.9rem, 2.5vh, 1.35rem);
}

.flavor-more,
.guide-brand-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 44px;
  color: var(--gold);
  font-size: .875rem;
  font-weight: 680;
  text-decoration: none;
  text-underline-offset: .3em;
}

.flavor-more {
  padding-inline: 1rem;
  border: 1px solid color-mix(in srgb, var(--accent) 58%, transparent);
  border-radius: 2px;
  color: var(--accent);
  transition: background-color .2s ease, color .2s ease;
}

.flavor-more:hover { background-color: var(--accent); color: var(--shade); }
.guide-brand-link:hover { text-decoration: underline; }
.flavor-capacity { color: var(--muted); font-size: .875rem; white-space: nowrap; }

.flavor-buy, .guide-buy {
  min-block-size: 44px;
  padding-inline: 1.35rem;
  border: 1px solid transparent;
  border-radius: 2px;
  background: var(--accent, var(--guide-accent));
  color: #161813;
  font-size: .875rem;
  font-weight: 720;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease;
}
.flavor-buy:hover, .guide-buy:hover { background-color: var(--ink); }
.guide-buy { margin-block-start: 1.2rem; }

.flavor-next {
  grid-area: next;
  display: flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  gap: .65rem;
  margin-top: clamp(1.4rem, 5vh, 3.6rem);
  color: var(--accent);
  font-size: .86rem;
  font-weight: 650;
  text-decoration: none;
}
.flavor-next:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .25em; }
.flavor-next > span { display: grid; width: 2rem; height: 2rem; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
.flavor-next > span::before { content: ''; width: .48rem; height: .48rem; border: solid var(--accent); border-width: 0 1px 1px 0; transform: translateX(-.10rem) rotate(-45deg); }
.flavor-showcase[data-carousel] .flavor-next { display: none; }

.flavor-guide {
  border-block-start: 1px solid var(--line);
  background: #171b18;
}

.flavor-guide-inner,
.brand-story-inner {
  max-inline-size: 1380px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.flavor-guide-inner { padding-block: clamp(3.3rem, 8vw, 7.1rem) 0; }

.flavor-guide-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .35rem 1.5rem;
  margin-block-end: clamp(1rem, 2vw, 2rem);
}

.flavor-guide-heading h2 {
  font-size: clamp(2rem, 4.1vw, 3.5rem);
  font-weight: 640;
  line-height: 1.12;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.guide-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .25rem .75rem;
  margin-block-end: clamp(1rem, 3vw, 2rem);
}

.guide-nav a {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  padding-inline: .45rem;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 640;
  text-underline-offset: .3em;
}

.guide-nav a:hover { color: var(--ink); }

.guide-panel {
  --guide-accent: var(--hydra);
  --guide-glow: #314749;
  display: grid;
  grid-template-columns: minmax(0, 1.11fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 6.5vw, 6.65rem);
  padding-block: clamp(2.3rem, 6vw, 6rem);
  border-block-start: 1px solid var(--line);
  scroll-margin-block-start: 1rem;
}

.guide-panel[data-detail-flavor='radiance-c'] { --guide-accent: var(--radiance); --guide-glow: #513620; }
.guide-panel[data-detail-flavor='age-reverse'] { --guide-accent: var(--age); --guide-glow: #483b30; }
.guide-panel[data-detail-flavor='barrier-rescue'] { --guide-accent: var(--barrier); --guide-glow: #3e4a36; }

@media (min-width: 761px) {
  .guide-panel:is([data-detail-flavor='radiance-c'], [data-detail-flavor='barrier-rescue']) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.11fr);
  }
  .guide-panel:is([data-detail-flavor='radiance-c'], [data-detail-flavor='barrier-rescue']) .guide-visual { grid-area: 1 / 2; }
  .guide-panel:is([data-detail-flavor='radiance-c'], [data-detail-flavor='barrier-rescue']) .guide-copy { grid-area: 1 / 1; }
}

.guide-visual {
  position: relative;
  aspect-ratio: 1.29;
  overflow: clip;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: radial-gradient(ellipse at 48% 57%, var(--guide-glow), #131713 84%);
}

.guide-visual img { position: absolute; inset: 0; padding: clamp(.75rem, 2.25vw, 2rem); }

.guide-copy { min-inline-size: 0; }
.guide-title {
  color: var(--guide-accent);
  font-size: clamp(1.85rem, 3.15vw, 3.1rem);
  font-weight: 620;
  line-height: 1.17;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.guide-product-meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .2rem .9rem;
  margin-block-start: .48rem;
  color: var(--muted);
  font-size: .875rem;
}
.guide-product-meta [lang='en'] { color: var(--guide-accent); font: 400 1.2rem/1.25 var(--display); }

.guide-lead {
  max-inline-size: 35em;
  margin-block-start: .7rem;
  color: var(--ink);
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  line-height: 1.7;
}

.guide-notes { margin: 1.35rem 0 0; border-block-start: 1px solid var(--line); }
.guide-notes > div {
  display: grid;
  grid-template-columns: minmax(6.7rem, .58fr) minmax(0, 1fr);
  align-items: center;
  gap: .55rem 1rem;
  padding-block: .72rem;
  border-block-end: 1px solid var(--line);
}

.guide-notes dt { color: var(--guide-accent); font-weight: 680; }
.guide-notes dt small { display: block; margin-block-start: .2rem; color: var(--muted); font-size: .81rem; font-weight: 430; }
.guide-notes dd { margin: 0; color: var(--muted); line-height: 1.63; }

.brand-story {
  padding-block: clamp(3rem, 7.75vw, 6rem);
  border-block-start: 1px solid var(--line);
  background: var(--background);
}

.brand-story-inner {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 6vw, 5rem);
}

.brand-story h2 span { display: block; }
.brand-story h2 span[lang='en'] { font: 400 clamp(2rem, 5vw, 4.2rem)/1 var(--display); letter-spacing: .075em; }
.brand-story h2 span + span { margin-block-start: .72rem; color: var(--gold); font-size: 1rem; font-weight: 550; letter-spacing: .15em; }
.brand-story-copy { max-inline-size: 35rem; line-height: 1.8; }
.brand-disclaimer { margin-block-start: .9rem; color: var(--muted); font-size: .875rem; }

@media (max-width: 760px) {
  .guide-panel { grid-template-columns: minmax(0, 1fr); gap: 1.45rem; }
  .guide-visual { inline-size: min(100%, 38rem); margin-inline: auto; }
}

@media (max-width: 600px) {
  .brand-story-inner { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 880px) {
  :root { --gutter: clamp(1.1rem, 4vw, 2.25rem); }
  .masthead-inner { gap: .6rem; }
  .flavor-nav { gap: .3rem; }
  .flavor-nav a { padding-inline: .47rem; }
  .flavor-intro h2 { font-size: clamp(2.45rem, 5.2vw, 3.5rem); }
}

@media (max-width: 690px) {
  :root { --header-height: 100px; }
  .masthead-inner { grid-template: 'brand actions' 56px 'nav nav' 44px / 1fr auto; column-gap: .6rem; row-gap: 0; }
  .brand { grid-area: brand; }
  .brand-name { font-size: clamp(1.17rem, 4vw, 1.45rem); }
  .brand-translation { font-size: .74rem; letter-spacing: .05em; }
  .masthead-actions { grid-area: actions; }
  .flavor-nav { grid-area: nav; gap: 0; }
  .flavor-nav a { flex: 1; padding-inline: .23rem; border-top: 1px solid var(--line); font-size: .875rem; }
  .flavor-nav a::after { inset-inline: .15rem; }
  .flavor { background-image: radial-gradient(ellipse 83% 57% at 57% 52%, var(--light), var(--low-light) 56%, transparent 100%); }
  .flavor-layout {
    grid-template: 'intro' auto 'hero' auto 'details' auto 'next' auto / minmax(0, 1fr);
    min-height: max(575px, calc(100svh - var(--header-height)));
    padding-block: clamp(1.75rem, 4.2svh, 2.8rem) 1.35rem;
    max-width: 560px;
  }
  .carousel-controls {
    inset-block-start: min(calc(100svh - 2rem), max(calc(50svh + var(--header-height) / 2), calc(var(--header-height) + 15rem)));
    max-inline-size: 560px;
  }
  .flavor-showcase[data-carousel] .flavor-layout {
    grid-template-areas: 'intro' 'hero' 'details';
    grid-template-rows: auto auto auto;
    padding-inline: var(--gutter);
  }
  .flavor-intro h2 { margin: .5rem 0 .65rem; font-size: clamp(2rem, 9vw, 3.6rem); }
  .flavor-description { line-height: 1.6; }
  .flavor-visual { block-size: clamp(14rem, 37svh, 21rem); margin-block: .75rem .6rem; }
  .flavor-showcase[data-carousel] .flavor-visual { inline-size: calc(100% - 3rem); justify-self: center; }
  .flavor-details { margin-top: .3rem; padding-top: .72rem; }
  .flavor-details h3 { margin-bottom: .4rem; }
  .flavor-ingredients { gap: .34rem .76rem; }
  .flavor-ingredients li { font-size: .875rem; }
  .flavor-actions { column-gap: .65rem; }
  .flavor-buy, .flavor-more { padding-inline: .85rem; }
  .flavor-next { margin-top: .75rem; }
}

@media (max-width: 690px) and (max-height: 440px) {
  .carousel-controls { inset-block-start: calc(50svh + var(--header-height) / 2); }
  .flavor-showcase[data-carousel] .flavor-layout { min-height: calc(100svh - var(--header-height)); padding-block: 1.4rem; }
}

@media (max-width: 370px) {
  .flavor-nav a { padding-inline: .08rem; font-size: .78rem; }
}

@media (orientation: landscape) and (max-height: 550px) and (min-width: 691px) {
  :root { --header-height: 55px; }
  .flavor-layout { min-height: 405px; padding-block: 1.7rem; }
  .flavor-intro h2 { font-size: clamp(2.25rem, 5.1vw, 3.3rem); }
  .flavor-visual { block-size: clamp(17rem, 72svh, 24rem); }
  .flavor-details { margin-top: .9rem; padding-top: .68rem; }
  .flavor-next { margin-top: .55rem; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .flavor-showcase[data-carousel] > .flavor[data-leaving] { visibility: hidden; }
}
