/* chasen — a fictional skincare brand by Hayanezu.
   One idea runs through the whole stylesheet, as it runs through the packs:
   glossy, candy-like surfaces (jelly buttons, the melting band, the footer
   wordmark) sit on matte ones (rice-milk paper, a fine
   grain, soft-touch cards). The palette stays cool: no cream, no beige. */

@font-face { font-family: 'Instrument Sans'; src: url('fonts/instrument-sans-var.woff2') format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; }
/* Subset to Latin (EN/FR/DE) plus the label words 抹茶の泡薔薇もち米雫若葉筅ちゃせん. */
@font-face { font-family: 'Zen Maru Gothic'; src: url('fonts/zen-maru-gothic-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Zen Maru Gothic'; src: url('fonts/zen-maru-gothic-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Zen Maru Gothic'; src: url('fonts/zen-maru-gothic-900.woff2') format('woff2'); font-weight: 900; font-display: swap; }

:root {
  --paper: #f5f6fb;
  --paper-2: #e3f1d6;
  --card: #ffffff;
  --ink: #1d2a22;
  --ink-soft: #536259;
  --line: rgb(29 42 34 / .12);
  --shade: 29 42 34;
  --seal: #e0556f;
  --candy-ink: #5a1730;
  --tone: var(--paper);
  --deep: #c23b66;
  --scene-top: #f7f8fd;
  --scene-bottom: #fde6ee;
  --display: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', ui-rounded, system-ui, sans-serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --jp: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', 'Hiragino Sans', sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --soft: cubic-bezier(.22, 1, .36, 1);
  --radius: clamp(22px, 2.6vw, 34px);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .33 0 0 0 0 .38 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --fibres: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .035' numOctaves='3' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .44 0 0 0 0 .5 0 0 0 .9 -.42'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
}

[data-tone="paper"] { --tone: #f5f6fb; --deep: #c23b66; --scene-top: #f7f8fd; --scene-bottom: #fde6ee; --icon-fill: #ffc4d5; }
[data-tone="matcha"] { --tone: #dcefc6; --deep: #3f6a26; --scene-top: #dcefc6; --scene-bottom: #dcefc6; --icon-fill: #c6e79c; }
[data-tone="rose"] { --tone: #fde0ea; --deep: #a63a5d; --scene-top: #fde0ea; --scene-bottom: #fde0ea; --icon-fill: #ffbcd1; }
[data-tone="strawberry"] { --tone: #ffe0e6; --deep: #b23a5f; --scene-top: #ffe0e6; --scene-bottom: #ffe0e6; --icon-fill: #ffb3c4; }
[data-tone="rice"] { --tone: #e7e4fa; --deep: #574f8a; --scene-top: #e7e4fa; --scene-bottom: #e7e4fa; --icon-fill: #d6d0fb; }
[data-tone="leaf"] { --tone: #d3f0d4; --deep: #2f6b34; --scene-top: #d3f0d4; --scene-bottom: #d3f0d4; --icon-fill: #a8e2a4; }
.stage--line { --scene-top: #eef0fa; --scene-bottom: #eef0fa; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; overflow-x: clip;
  background: var(--paper); color: var(--ink);
  font: 400 clamp(1rem, .95rem + .25vw, 1.125rem)/1.6 var(--sans);
  font-kerning: normal; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
/* Grain: fine noise and long fibres over everything, the WebGL canvas
   included, so the rendered products sit in the same matte surface as the type. */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background-image: var(--noise), var(--fibres); background-size: 240px, 600px;
  opacity: .1; mix-blend-mode: multiply;
}
body.page-product { background: color-mix(in srgb, var(--tone) 38%, var(--paper)); }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
h1, h2, h3 { font-weight: 700; text-wrap: balance; }
p { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: #f8c9d6; color: var(--candy-ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 6px; }
.jp { font-family: var(--jp); font-weight: 500; letter-spacing: .04em; }
.wrap { width: min(100%, 1280px); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: 16px; top: -80px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--paper); }
.skip:focus { top: 12px; }

/* ------------------------------------------------------------ type */

.display {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(3.1rem, 1.9rem + 6vw, 8rem); line-height: .98; letter-spacing: -.045em;
}
/* The second line of a headline is the glossy half: a candy fill with a hard
   specular band, like the lids. */
.display em {
  font-style: normal; font-weight: 900; color: var(--deep);
  background: linear-gradient(180deg, #ffb3c8 0%, #f2729b 46%, #d9416f 54%, #ee7ea2 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.display--m { font-size: clamp(2.2rem, 1.4rem + 3.2vw, 4.3rem); line-height: 1.02; letter-spacing: -.04em; }
.display--s { font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.2rem); line-height: 1.1; letter-spacing: -.03em; }
.display--product { font-size: clamp(2.5rem, 1.5rem + 3.9vw, 5.2rem); }
.lede { max-width: 32em; font-size: clamp(1.1rem, 1rem + .45vw, 1.35rem); line-height: 1.5; color: var(--ink-soft); }
.eyebrow {
  display: inline-flex; flex-wrap: wrap; gap: .5em; align-items: center; margin-bottom: 1.2rem; padding: .4em 1em;
  border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--deep);
  background: rgb(255 255 255 / .72); box-shadow: inset 0 0 0 1px var(--line);
}
.eyebrow .jp { font-size: 1rem; letter-spacing: .08em; }
.eyebrow a { text-decoration: none; border-bottom: 1px solid currentColor; }
.label-title { margin: 2.2rem 0 .9rem; font: 700 1.05rem/1.2 var(--display); color: var(--ink-soft); }
.link { font-weight: 600; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; transition: background-size .4s var(--soft); }
.link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ------------------------------------------------------------ gloss + matte UI */

.jelly {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: .85em 1.7em; border: 0; border-radius: 999px; cursor: pointer;
  font: 600 1rem/1.1 var(--sans); letter-spacing: .01em; color: var(--candy-ink); text-decoration: none;
  background: radial-gradient(120% 150% at 50% 0%, #ffd6e1 0%, #f7a2bb 48%, #ee86a6 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .95), inset 0 -10px 18px rgb(200 60 105 / .28), inset 0 0 0 1px rgb(255 255 255 / .35),
              0 12px 26px -12px rgb(190 60 100 / .65), 0 2px 5px rgb(190 60 100 / .18);
  translate: var(--tx, 0px) var(--ty, 0px);
  transition: transform .45s var(--spring), box-shadow .3s ease, translate .6s var(--spring);
}
.jelly::before { content: ''; position: absolute; z-index: -1; left: 10%; right: 10%; top: 3px; height: 48%; border-radius: 999px; background: linear-gradient(rgb(255 255 255 / .9), rgb(255 255 255 / 0)); }
.jelly::after { content: ''; position: absolute; left: 15%; top: 20%; width: 9px; height: 5px; border-radius: 50%; background: #fff; transform: rotate(-18deg); }
.jelly:hover { transform: translateY(-2px) scale(1.03); box-shadow: inset 0 1px 0 rgb(255 255 255 / .95), inset 0 -10px 18px rgb(200 60 105 / .28), inset 0 0 0 1px rgb(255 255 255 / .35), 0 18px 30px -12px rgb(190 60 100 / .7), 0 2px 5px rgb(190 60 100 / .2); }
.jelly:active { transform: scale(1.04, .9); transition-duration: .12s; }
.jelly--soft { color: #24401a; background: radial-gradient(120% 150% at 50% 0%, #effadf 0%, #c3e59c 48%, #a5d47d 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .95), inset 0 -10px 18px rgb(80 140 50 / .25), inset 0 0 0 1px rgb(255 255 255 / .35), 0 12px 26px -12px rgb(80 140 50 / .6), 0 2px 5px rgb(80 140 50 / .16); }
.jelly--soft:hover { box-shadow: inset 0 1px 0 rgb(255 255 255 / .95), inset 0 -10px 18px rgb(80 140 50 / .25), 0 18px 30px -12px rgb(80 140 50 / .65); }

.chip {
  display: inline-block; margin-top: 1.6rem; padding: .5em 1.1em; border-radius: 999px;
  font-size: .85rem; font-weight: 600; color: var(--deep);
  background: linear-gradient(#fff, color-mix(in srgb, var(--tone) 70%, #fff));
  box-shadow: inset 0 1px 0 #fff, inset 0 -3px 8px rgb(0 0 0 / .04), 0 0 0 1px var(--line), 0 8px 18px -12px rgb(0 0 0 / .3);
}

/* ------------------------------------------------------------ ribbon + header */

.ribbon { position: relative; z-index: 45; padding: 8px var(--gutter); background: #1f3326; color: #eef4ea; font-size: .8rem; line-height: 1.4; text-align: center; }
.ribbon a { white-space: nowrap; font-weight: 600; }

.header {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 24px; min-height: 68px; padding: 10px var(--gutter);
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; }
.brand .logo { width: 46px; height: 46px; color: var(--seal); transition: transform .8s var(--spring); }
.brand:hover .logo { animation: stamp .6s var(--spring); }
.nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); }
.nav__list { display: flex; gap: clamp(14px, 2.4vw, 32px); }
.nav__list a { padding: 8px 0; font-weight: 500; text-decoration: none; }
.nav__list a:hover, .nav__list a[aria-current] { text-decoration: underline wavy var(--seal) 1.5px; text-underline-offset: .35em; }
.langs { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgb(255 255 255 / .55); box-shadow: inset 0 0 0 1px var(--line); }
.langs a { display: grid; place-items: center; min-width: 34px; min-height: 30px; padding: 0 8px; border-radius: 999px; font-size: .82rem; font-weight: 600; text-decoration: none; color: var(--ink-soft); }
.langs a[aria-current] { color: var(--candy-ink); background: radial-gradient(120% 150% at 50% 0%, #ffe0e8, #f7b3c6); box-shadow: inset 0 1px 0 #fff, 0 3px 8px -4px rgb(190 60 100 / .6); }
.menu { display: none; }

@media (max-width: 759px) {
  .menu {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; cursor: pointer;
    font-weight: 600; background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
  }
  .menu__close, [aria-expanded="true"] > .menu__open { display: none; }
  [aria-expanded="true"] > .menu__close { display: inline; }
  .nav { flex-basis: 100%; flex-direction: column; align-items: flex-start; gap: 18px; padding: 12px 0 20px; }
  .header { flex-wrap: wrap; }
  .nav__list { flex-direction: column; gap: 4px; }
  .nav__list a { font: 700 2rem/1.2 var(--display); }
  .js .nav { display: none; }
  .js .header[data-open] .nav { display: flex; animation: drop .5s var(--soft); }
}

/* ------------------------------------------------------------ icons */

/* One sprite of flat icons, inlined per page so it works from disk: one
   solid colour per product, simple shapes, no shading. */
.sprite { position: absolute; }
.icon { display: inline-block; width: 1em; height: 1em; flex: none; overflow: visible; vertical-align: -.14em; }
.sticker { width: 48px; height: 48px; }
.arrow { display: inline-block; width: .95em; height: .95em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.12em; transition: transform .35s var(--spring); }
a:hover > .arrow { transform: translateX(3px); }
a:hover > .arrow--out { transform: translate(2px, -2px); }
/* Stickers slapped onto product pictures. */
.card__media, .row__media, .step__media { position: relative; }
.card__media .sticker, .row__media .sticker, .step__media .sticker, .stage--product .sticker {
  position: absolute; z-index: 2; top: 16px; left: 16px; transition: transform .6s var(--spring);
}
.row__media .sticker, .stage--product .sticker { width: 60px; height: 60px; top: 24px; left: 24px; }

/* ------------------------------------------------------------ stages (WebGL + stills) */

/* The still is the page without JavaScript, WebGL or motion; the canvas
   fades in over it once its first frame is drawn, so nothing ever flashes. */
.stage { position: relative; overflow: hidden; background: linear-gradient(var(--scene-top), var(--scene-bottom)); }
.stage__still, .stage__scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage__img { width: 100%; height: 100%; object-fit: cover; }
.stage__scene { opacity: 0; transition: opacity 1s ease; outline-offset: -6px; }
.stage.is-live .stage__scene { opacity: 1; }
.stage--line .stage__img, .stage--product .stage__img { object-fit: contain; }

/* ------------------------------------------------------------ hero */

.hero { position: relative; display: flex; align-items: center; min-height: clamp(620px, calc(100svh - 104px), 980px); }
.stage--hero { position: absolute; inset: 0; }
.hero__glow {
  position: absolute; inset: 0; pointer-events: none; opacity: calc(var(--glow, 0) * .55); mix-blend-mode: soft-light;
  background: radial-gradient(42% 52% at 70% 60%, rgb(255 226 236 / .9), rgb(226 214 255 / .5) 50%, transparent 76%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero__copy { max-width: 36rem; padding-block: 48px; }
.hero .display { font-size: clamp(3.6rem, 2rem + 7vw, 9.4rem); }
.hero .lede { margin-top: 1.4rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.hint { margin-top: 1rem; min-height: 1.6em; font-size: .9rem; color: var(--ink-soft); }
/* The circle gesture needs a mouse or pen. */
@media (hover: none) { .hint { display: none; } }

@media (max-aspect-ratio: 1/1), (max-width: 759px) {
  .hero { align-items: flex-start; min-height: max(760px, calc(100svh - 104px)); }
  .hero__copy { padding-block: 32px 0; }
  .hero__glow { background: radial-gradient(66% 38% at 50% 72%, rgb(255 226 236 / .9), rgb(226 214 255 / .5) 50%, transparent 76%); }
}

/* ------------------------------------------------------------ the melting band */

.marquee {
  position: relative; z-index: 3; overflow-x: clip; overflow-y: visible; padding: 16px 0 14px;
  color: var(--candy-ink);
  background: linear-gradient(180deg, #ffd9e3 0%, #f7aec3 42%, #f095b0 100%);
  box-shadow: inset 0 2px 0 rgb(255 255 255 / .8), inset 0 -8px 14px rgb(190 60 100 / .18);
}
.marquee::before { content: ''; position: absolute; inset: 3px 0 auto; height: 40%; background: linear-gradient(rgb(255 255 255 / .55), transparent); pointer-events: none; }
/* Drips hang off the band's lower edge onto the paper below. */
.marquee::after {
  content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 46px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='46' viewBox='0 0 420 46'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23f095b0'/%3E%3Cstop offset='1' stop-color='%23f4a6bd'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23g)' d='M0 0h420v4c-14 0-20 3-22 10s-1 12-7 12-6-6-7-12-6-10-20-10H286c-10 0-14 4-15 14s-1 22-10 22-9-11-10-21-5-15-16-15H118c-9 0-13 3-14 9s0 9-6 9-6-4-6-9-5-9-14-9H0z'/%3E%3Cg fill='%23fff' opacity='.75'%3E%3Cellipse cx='258' cy='33' rx='2.2' ry='4.5'/%3E%3Cellipse cx='387' cy='19' rx='1.6' ry='3'/%3E%3Cellipse cx='95' cy='13' rx='1.4' ry='2.4'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 420px 46px repeat-x;
  filter: drop-shadow(0 6px 6px rgb(190 60 100 / .16));
}
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee span { display: inline-flex; align-items: center; font: 900 clamp(1.4rem, 1.05rem + 1.4vw, 2.1rem)/1 var(--display); letter-spacing: -.02em; white-space: nowrap; }
.marquee span::after { content: ''; width: 9px; height: 9px; margin: 0 clamp(22px, 3vw, 44px); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--seal) 60%); }

/* ------------------------------------------------------------ sections */

.section { padding-block: clamp(72px, 10vw, 150px); }
.section__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); gap: 16px 40px; align-items: end; margin-bottom: clamp(28px, 4vw, 52px); }
.section__head p { color: var(--ink-soft); }
.intro { padding-block: clamp(56px, 9vw, 130px) clamp(32px, 5vw, 64px); }
.intro .lede { margin-top: 1.4rem; }

/* cards: matte tone panels holding glossy products */
.cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.card__link {
  display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: var(--radius);
  background: var(--tone); text-decoration: none;
  box-shadow: inset 0 0 0 1px rgb(var(--shade) / .05), 0 22px 40px -34px rgb(var(--shade) / .55);
  transition: transform .6s var(--spring), box-shadow .4s ease;
}
.card__link:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: inset 0 0 0 1px rgb(var(--shade) / .05), 0 30px 50px -30px rgb(var(--shade) / .6); }
.card__media { display: block; aspect-ratio: 6 / 7; overflow: hidden; }
.card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--soft); }
.card__link:hover .card__img { transform: scale(1.05); }
.card__body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 4px 20px 22px; }
.card__name { font: 700 clamp(1.25rem, 1rem + .6vw, 1.55rem)/1.05 var(--display); letter-spacing: -.01em; }
.card__jp { grid-row: span 2; writing-mode: vertical-rl; font-size: 1.05rem; color: var(--deep); }
.card__text { font-size: .9rem; line-height: 1.45; color: var(--ink-soft); }

@media (max-width: 1099px) {
  .cards { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(250px, 40%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; scrollbar-width: thin; }
  .card { scroll-snap-align: start; }
}
@media (max-width: 639px) {
  .cards { grid-auto-columns: 78%; }
  .section__head { grid-template-columns: minmax(0, 1fr); }
}

/* ritual teaser */
.ritual-teaser { text-align: center; }
.mini-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); margin: clamp(32px, 5vw, 64px) 0 2.6rem; text-align: left; counter-reset: step; }
.mini-steps li { position: relative; padding: 26px 26px 30px; border-radius: var(--radius); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.mini-steps h3 { margin: 14px 0 6px; font: 900 1.9rem/1 var(--display); letter-spacing: -.03em; }
.mini-steps p { color: var(--ink-soft); }
.mini-steps .sticker { width: 52px; height: 52px; }
.mini-step__n { position: absolute; top: 26px; right: 28px; font: 900 1.1rem/1 var(--display); color: var(--ink-soft); }

/* story teaser */
.story-teaser__inner { display: grid; grid-template-columns: auto minmax(0, 40rem); gap: clamp(28px, 6vw, 96px); align-items: center; justify-content: center; }
.story-teaser .story-teaser__jp { writing-mode: vertical-rl; font-size: clamp(5rem, 3rem + 8vw, 11rem); line-height: 1; color: var(--seal); letter-spacing: .08em; }
.story-teaser p { margin-top: 1.2rem; color: var(--ink-soft); }

@media (max-width: 759px) {
  .mini-steps { grid-template-columns: minmax(0, 1fr); }
  .story-teaser__inner { grid-template-columns: auto minmax(0, 1fr); gap: 20px; }
  .story-teaser .story-teaser__jp { font-size: 4.4rem; }
}

/* ------------------------------------------------------------ line page */

.stage--line { aspect-ratio: 2400 / 1150; max-height: 78svh; width: 100%; }
@media (max-width: 759px) { .stage--line { aspect-ratio: 5 / 4; } }
.rows { display: grid; gap: clamp(56px, 8vw, 120px); padding-block: clamp(64px, 9vw, 140px); }
.row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.row:nth-child(even) .row__media { order: 2; }
.row__media { display: block; overflow: hidden; border-radius: var(--radius); background: var(--tone); }
.row__img { width: 100%; aspect-ratio: 6 / 7; object-fit: cover; transition: transform 1s var(--soft); }
.row__media:hover .row__img { transform: scale(1.04); }
.row__body > * + * { margin-top: 1rem; }
.row__n { font-size: .9rem; font-weight: 600; color: var(--deep); }
.row__name { font: 700 clamp(2.2rem, 1.4rem + 3vw, 4rem)/.95 var(--display); letter-spacing: -.02em; }
.row__name a { text-decoration: none; }
.row__name a:hover { text-decoration: underline wavy var(--seal) 2px; text-underline-offset: .18em; }
.row__jp { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.row__jp .jp { font-size: 1.6rem; color: var(--deep); }
.reading { font-size: .92rem; color: var(--ink-soft); }
.reading i { font-style: italic; }
@media (max-width: 759px) {
  .row { grid-template-columns: minmax(0, 1fr); }
  .row:nth-child(even) .row__media { order: 0; }
}

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; border-top: 1px solid var(--line); }
.facts > div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { margin-bottom: 2px; font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.facts dd { font-size: .98rem; line-height: 1.45; }
.facts--short { max-width: 34rem; }

/* ------------------------------------------------------------ product page */

.product__hero { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 10fr); gap: clamp(28px, 5vw, 80px); align-items: start; padding-block: clamp(24px, 4vw, 56px) clamp(56px, 8vw, 110px); }
.stage--product {
  position: sticky; top: 96px; aspect-ratio: 6 / 7; max-height: calc(100svh - 120px); width: 100%;
  border-radius: var(--radius); box-shadow: inset 0 0 0 1px rgb(var(--shade) / .05);
}
.stage--product .stage__scene { cursor: grab; touch-action: pan-y; }
.stage--product .stage__scene:active { cursor: grabbing; }
.stage__hint {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 2; margin: 0;
  padding: 6px 14px; border-radius: 999px; font-size: .78rem; font-weight: 600; color: var(--deep); white-space: nowrap;
  background: rgb(255 255 255 / .6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .8s ease .6s; pointer-events: none;
}
.stage.is-live .stage__hint { opacity: 1; }
.stage.is-turned .stage__hint { opacity: 0; transition-delay: 0s; }
.product__info { padding-top: clamp(8px, 3vw, 48px); }
.product__jp { display: flex; align-items: flex-start; gap: 16px; margin: 1.6rem 0 1.4rem; }
.jp--vertical { writing-mode: vertical-rl; font-size: clamp(2.4rem, 1.8rem + 2vw, 3.4rem); line-height: 1; color: var(--deep); }
.product__jp .reading { padding-top: .4em; line-height: 1.5; }
.pager { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: stretch; padding-block: clamp(48px, 7vw, 96px); }
.pager__link { display: grid; gap: 4px; padding: 20px 24px; border-radius: var(--radius); background: var(--tone); text-decoration: none; transition: transform .5s var(--spring); }
.pager__link:hover { transform: translateY(-4px); }
.pager__link span { font-size: .85rem; font-weight: 600; color: var(--deep); }
.pager__link strong { font: 700 1.5rem/1.1 var(--display); }
.pager__link--next { text-align: right; }
.pager__all { align-self: center; padding: 10px 18px; font-weight: 600; }
@media (max-width: 859px) {
  .product__hero { grid-template-columns: minmax(0, 1fr); }
  .stage--product { position: relative; top: 0; aspect-ratio: 1; max-height: 72svh; }
}
@media (max-width: 559px) {
  .pager { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pager__all { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
}

/* ------------------------------------------------------------ ritual */

.steps { display: grid; gap: 18px; padding-bottom: clamp(72px, 9vw, 130px); }
.step {
  display: grid; grid-template-columns: auto minmax(0, 1fr) clamp(120px, 18vw, 220px); gap: clamp(18px, 4vw, 56px); align-items: center;
  padding: clamp(20px, 3vw, 36px); border-radius: var(--radius); background: var(--tone);
}
.step__n { position: relative; display: grid; place-items: center; }
.step__n b { position: absolute; right: -6px; bottom: -4px; font: 900 1.2rem/1 var(--display); color: var(--deep); }
.step .sticker { width: clamp(56px, 5.5vw, 76px); height: auto; aspect-ratio: 1; }
.step__body p { margin-top: .7rem; }
.step__media { overflow: hidden; border-radius: calc(var(--radius) - 8px); }
.step__img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.note { max-width: 44rem; padding-block: 8px clamp(72px, 9vw, 130px); font: 500 clamp(1.1rem, 1rem + .5vw, 1.4rem)/1.6 var(--display); color: var(--ink-soft); }
@media (max-width: 639px) {
  .step { grid-template-columns: auto minmax(0, 1fr); }
  .step__media { display: none; }
}

/* ------------------------------------------------------------ story */

.story { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); padding-block: 0 clamp(64px, 8vw, 120px); }
.story__part { padding-top: 22px; border-top: 1px solid var(--line); }
.story__part p { margin-top: 1rem; color: var(--ink-soft); }
.glossary { background: var(--paper-2); padding-block: clamp(56px, 8vw, 110px); }
.glossary .label-title { margin-top: 0; }
.glossary__list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.glossary__list > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; min-height: 190px; padding: 20px 18px; border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.glossary__list dt { writing-mode: vertical-rl; font-size: 2rem; line-height: 1; color: var(--deep); }
.glossary__list dd { font-size: .9rem; color: var(--ink-soft); align-self: flex-end; text-align: right; }
.about__inner { max-width: 46rem; }
.about__inner p { margin-top: 1.2rem; }
.about__inner p:last-child { margin-top: 2rem; }
@media (max-width: 959px) { .glossary__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 759px) { .story { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 479px) { .glossary__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ------------------------------------------------------------ visit */

.visit__photo { overflow: hidden; border-radius: var(--radius); box-shadow: 0 40px 70px -50px rgb(var(--shade) / .55); }
.visit__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.visit__lines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px clamp(24px, 4vw, 56px); margin-top: clamp(28px, 4vw, 48px); padding-top: 24px; border-top: 1px solid var(--line); }
.visit__lines dt { margin-bottom: 6px; font-size: .85rem; font-weight: 600; color: var(--deep); }
.visit__lines dd { font: 500 1.2rem/1.45 var(--display); }
.hook { padding-block: clamp(28px, 4vw, 48px) clamp(72px, 9vw, 130px); font-size: 1.1rem; }
@media (max-width: 759px) {
  .visit__lines { grid-template-columns: minmax(0, 1fr); }
  .visit__photo img { aspect-ratio: 4 / 5; }
}

.missing .intro { min-height: 60svh; }
.missing .jelly { margin-top: 2rem; }
.missing__others { margin-top: 1.2rem; font-size: .9rem; color: var(--ink-soft); }

/* ------------------------------------------------------------ footer */

.footer {
  --ink: #eef4ea; --ink-soft: #a9bba9; --line: rgb(255 255 255 / .14); --deep: #ffb3c8;
  position: relative; overflow: hidden; padding-block: clamp(56px, 8vw, 100px) 36px; color: var(--ink);
  background: #1f3326; border-radius: clamp(40px, 8vw, 120px) clamp(40px, 8vw, 120px) 0 0;
}
.footer__inner { display: grid; gap: 20px; }
/* The wordmark as a sweet: candy gradient with a hard specular band. */
.footer__word {
  font: 900 clamp(5rem, 1rem + 18vw, 18rem)/.9 var(--display); letter-spacing: -.06em; margin-left: -.04em;
  --candy: linear-gradient(180deg, #ffe6ed 0%, #f9b6c9 30%, #f08fae 49%, #e07397 51%, #f2a3bb 78%, #f8c4d3 100%);
  background: var(--candy);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 18px 24px rgb(0 0 0 / .3));
}
.footer__tag { font: 700 clamp(1.4rem, 1rem + 1.4vw, 2.2rem)/1.1 var(--display); color: var(--deep); }
.footer__nav ul { display: flex; flex-wrap: wrap; gap: 6px 26px; margin-top: 10px; }
.footer__nav a { font-weight: 600; text-decoration: none; }
.footer__nav a:hover { text-decoration: underline wavy var(--deep) 1.5px; }
.footer__note { max-width: 44rem; font-size: .9rem; color: var(--ink-soft); }
.footer__credit { display: flex; flex-wrap: wrap; gap: 6px 20px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--ink-soft); }
.footer__credit a { color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------------ scroll */

/* Reading progress: a thin pink line along the bottom of the header. */
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none;
  transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, #f7a2bb, var(--seal)); }

/* Headlines rise in word by word (chasen.js wraps the words). */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .12em .02em .22em; margin: -.12em -.02em -.22em; }
.split .w > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--soft); transition-delay: calc(var(--i, 0) * 70ms); }
.is-in .split .w > span, .split.is-in .w > span { transform: none; }
.js [data-reveal].split { opacity: 1; transform: none; }

/* Hero: the copy drifts up and fades as you leave, the jar comes closer. */
.hero__copy { translate: 0 calc(var(--out, 0) * -90px); opacity: calc(1 - var(--out, 0) * 1.25); }
.stage--hero { scale: calc(1 + var(--out, 0) * .08); }

/* Foam from whisking. */
.foam {
  position: absolute; z-index: 3; left: var(--x); top: var(--y); width: var(--s); height: var(--s);
  margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 34% 30%, rgb(255 255 255 / .95) 0 16%, rgb(255 255 255 / .3) 42%, rgb(255 196 214 / .3) 72%, rgb(255 255 255 / .7) 100%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .75), 0 2px 6px rgb(190 60 100 / .15);
  animation: foam 1.4s cubic-bezier(.2, .7, .3, 1) forwards;
}

/* The line, pinned: cards slide sideways while the section is stuck. */
.line-scroll.is-pinned { overflow-x: clip; }
.line-scroll.is-pinned > .wrap { position: sticky; }
.line-scroll.is-pinned .cards { display: flex; width: max-content; gap: 24px; will-change: transform; }
.line-scroll.is-pinned .card { flex: 0 0 clamp(280px, 24vw, 360px); }

/* The pink band is driven by the script when motion is allowed. */
.marquee.is-driven .marquee__track { animation: none; will-change: transform; }

/* The ritual, stacked. */
.steps.is-stacked .step {
  position: sticky; top: calc(var(--stick, 88px) + var(--i, 0) * 14px);
  scale: calc(1 - var(--cover, 0) * .05); transform-origin: 50% 0;
  box-shadow: 0 -14px 34px -26px rgb(var(--shade) / .4);
}

/* Parallax inside picture frames, and the big 茶筅. */
.row__media .row__img { scale: 1.12; translate: 0 calc(var(--par, 0) * 6%); }
.step__media .step__img { scale: 1.1; translate: 0 calc(var(--par, 0) * 5%); }
.story-teaser .story-teaser__jp { translate: 0 calc(var(--par, 0) * 80px); }

/* ------------------------------------------------------------ touch */

/* Tilt with a highlight that follows the pointer. */
.card__link.tilt, .pager__link.tilt { position: relative; }
.card__link.tilt, .pager__link.tilt, .row__media.tilt {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s var(--soft), box-shadow .4s ease;
}
.card__link.tilt:hover, .pager__link.tilt:hover, .row__media.tilt:hover {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px);
  transition: transform .15s linear, box-shadow .4s ease;
}
.tilt::after {
  content: ''; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s ease;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgb(255 255 255 / .42), rgb(255 255 255 / 0) 48%);
}
.tilt:hover::after { opacity: 1; }

/* Each icon has its own little move when its card is touched. */
.icon--rose, .icon--mochi, .icon--leaf, .icon--drop { transform-origin: 50% 100%; }
.icon--whisk { transform-origin: 50% 8%; }
:is(.card__link, .row__media, .step, .mini-steps li, .stage--product):hover .icon--bubbles { animation: ic-rise .9s var(--soft); }
:is(.card__link, .row__media, .step, .mini-steps li, .stage--product):hover .icon--rose { animation: ic-turn .9s var(--spring); }
:is(.card__link, .row__media, .step, .mini-steps li, .stage--product):hover .icon--mochi { animation: ic-squish .8s var(--soft); }
:is(.card__link, .row__media, .step, .mini-steps li, .stage--product):hover .icon--drop { animation: ic-drop .8s var(--soft); }
:is(.card__link, .row__media, .step, .mini-steps li, .stage--product):hover .icon--leaf { animation: ic-sway 1.1s ease-in-out; }
:is(.card__link, .row__media, .step, .mini-steps li, .stage--product):hover .icon--whisk { animation: ic-whisk .7s ease-in-out 2; }
:is(.card__link, .row__media, .step, .mini-steps li, .stage--product):hover .icon--sparkle { animation: ic-twinkle .9s var(--spring); }

/* The footer wordmark, letter by letter, wobbles like jelly. */
.footer__word.is-split { background: none; }
.footer__word.is-split span { display: inline-block; transform-origin: 50% 100%; background: var(--candy); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer__word span.wobble { animation: jelly .75s var(--soft); }

/* ------------------------------------------------------------ motion */

.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform 1.2s var(--soft); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
@keyframes foam { 0% { transform: scale(.3); opacity: 0; } 15% { opacity: 1; } 80% { opacity: .9; } 100% { transform: translate(var(--drift), -96px) scale(1.15); opacity: 0; } }
@keyframes stamp { 0% { transform: none; } 35% { transform: scale(.84) rotate(-7deg); } 65% { transform: scale(1.07) rotate(2deg); } 100% { transform: none; } }
@keyframes jelly { 0% { transform: none; } 22% { transform: scale(1.16, .84); } 42% { transform: scale(.9, 1.12) translateY(-8%); } 62% { transform: scale(1.05, .96); } 82% { transform: scale(.99, 1.02); } 100% { transform: none; } }
@keyframes ic-rise { 0%, 100% { transform: none; } 45% { transform: translateY(-7px) scale(1.06); } 75% { transform: translateY(1px); } }
@keyframes ic-turn { 0%, 100% { transform: none; } 40% { transform: rotate(-14deg); } 70% { transform: rotate(6deg); } }
@keyframes ic-squish { 0%, 100% { transform: none; } 30% { transform: scale(1.16, .82); } 60% { transform: scale(.94, 1.08); } 80% { transform: scale(1.02, .98); } }
@keyframes ic-drop { 0%, 100% { transform: none; } 35% { transform: translateY(-9px); } 62% { transform: translateY(0) scale(1.12, .86); } 80% { transform: scale(.97, 1.04); } }
@keyframes ic-sway { 0%, 100% { transform: none; } 30% { transform: rotate(10deg); } 65% { transform: rotate(-7deg); } }
@keyframes ic-whisk { 0%, 100% { transform: none; } 25% { transform: rotate(13deg); } 75% { transform: rotate(-13deg); } }
@keyframes ic-twinkle { 0%, 100% { transform: none; } 45% { transform: rotate(45deg) scale(1.2); } 70% { transform: rotate(80deg) scale(.95); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}
@media (forced-colors: active) {
  .footer__word, .footer__word span, .display em { color: CanvasText; -webkit-text-fill-color: CanvasText; background: none; }
  .jelly, .chip { border: 1px solid ButtonText; }
}
@media print {
  body::after, .stage__scene, .marquee, .ribbon { display: none; }
}
