:root {
  color-scheme: dark;
  --ink: #141911;
  --pine: #202a17;
  --cream: #f0ebd9;
  --paper: #f4eedf;
  --moss: #d3e18d;
  --serif: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --mono: "DM Mono", Consolas, monospace;
  --gutter: clamp(1.25rem, 5vw, 5.25rem);
  --bar-height: 4.875rem;
  --scene-cta-bg: #d3e18d;
  --scene-cta-color: #202910;
  --scene-cta-radius: .25rem;
  --scene-cta-shadow: 0 .25rem .9rem #12170738;
  --scene-cta-inset-shadow: inset 0 1px #ffffff65;
  --scene-cta-highlight: none;
  --scene-cta-surface-shadow: inset 0 -1px #6a76342e;
  --scene-cta-pressed-shadow: inset 0 2px 5px #3342133b;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; }
html { background: var(--ink); }
body { color: var(--cream); font: 400 1rem/1.75 var(--sans); }
[hidden] { display: none !important; }
h1, h2, h3, p, ol { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.28; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
button:not(:disabled) { cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid #8d9d4d; outline-offset: .28rem; }
::selection { background: var(--moss); color: var(--ink); }
.mobile-only { display: none; }
.skip-link { position: fixed; z-index: 30; inset: 1rem auto auto 1rem; padding: .5rem 1rem; background: var(--moss); color: var(--ink); transform: translateY(-200%); }
.skip-link:focus { transform: none; }

.scene-cta {
  display: inline-grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: .9rem;
  min-height: 3.3rem;
  max-width: 100%;
  padding: .75rem 1.15rem;
  border: 1px solid #aebd6a;
  border-radius: var(--scene-cta-radius);
  color: var(--scene-cta-color);
  background: var(--scene-cta-highlight) var(--scene-cta-bg);
  box-shadow: var(--scene-cta-inset-shadow), var(--scene-cta-shadow), var(--scene-cta-surface-shadow);
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  transition: background-color .2s, transform .2s;
}
.scene-cta:has([data-cta-trailing]) { grid-template-columns: minmax(0, 1fr) auto; }
.scene-cta:has([data-cta-leading]) { grid-template-columns: auto minmax(0, 1fr); }
.scene-cta:has([data-cta-leading]):has([data-cta-trailing]) { grid-template-columns: auto minmax(0, 1fr) auto; }
.scene-cta [data-cta-trailing], .scene-cta [data-cta-leading] { font-size: 1.12rem; line-height: 1; }
.scene-cta:hover { background-color: #e4edae; }
.scene-cta:active { transform: translateY(1px); box-shadow: var(--scene-cta-pressed-shadow); }
.scene-cta:disabled { opacity: .64; }
.eyebrow { color: #c9d787; font: 400 .71rem/1.45 var(--mono); letter-spacing: .17em; }

.site-header {
  position: absolute;
  z-index: 12;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: calc(var(--bar-height) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) var(--gutter) 0;
  border-bottom: 1px solid #e5e5c527;
}
.wordmark { display: inline-flex; align-items: center; gap: .65rem; flex: none; }
.wordmark > span { font: 600 1.22rem/1.2 var(--serif); letter-spacing: .1em; }
.wordmark small { display: block; margin-top: .23rem; font: 400 .57rem/1 var(--mono); letter-spacing: .2em; }
.site-header nav { display: flex; gap: clamp(1rem, 3vw, 2.5rem); align-items: center; font-size: .83rem; }
.site-header nav a { padding: .55rem 0; min-height: 44px; display: flex; align-items: center; gap: .5rem; }
.site-header nav a:last-child { color: var(--moss); }
.site-header nav a:hover, .site-footer > a:last-child:hover, .scroll-note:hover { text-decoration: underline; text-underline-offset: .35rem; }
.enhanced .site-header { position: fixed; background: linear-gradient(#141911f8, #141911ed); }

.stage { position: relative; isolation: isolate; }
.backdrop {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 100svh;
  overflow: clip;
  background: radial-gradient(ellipse at 50% 75%, #384a24, #171c13 65%);
  pointer-events: none;
}
.kinetic .backdrop { position: sticky; top: 0; margin-bottom: -100svh; }
.hero-plate {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, #1418118c, #151a1062 41%, #11150d00 66%, #131910b0),
    url("assets/hero.webp") center 63% / cover no-repeat;
  transform-origin: 50% 66%;
}
.backdrop canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.hero {
  position: relative;
  min-height: 100svh;
  padding: max(7.25rem, 17svh) var(--gutter) 7.5rem;
  text-align: center;
}
.kinetic .hero { min-height: 260svh; }
.hero-handoff { display: none; }
.kinetic .hero-handoff {
  position: absolute;
  inset: auto var(--gutter) 19svh;
  display: block;
  color: #f6f1d8;
  font: 500 clamp(2.7rem, 7vw, 6.5rem)/1.3 var(--serif);
  text-shadow: 0 .05em .4em #10150d;
}
.hero-entry { max-width: 68rem; margin-inline: auto; position: relative; container-type: inline-size; }
.hero-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  color: #e1eaae;
  font-size: clamp(.68rem, 2.8cqi, .78rem);
  letter-spacing: .16em;
}
.hero-kicker span { display: block; width: 1.55rem; height: 1px; background: #c6d3898c; }
.hero h1 {
  margin: .65rem auto 0;
  font-size: clamp(2.6rem, 8.5cqi, 6rem);
  letter-spacing: .01em;
  text-shadow: 0 .08em .5em #10160bb3;
  transform-origin: 50% 30%;
}
.hero h1 span { white-space: nowrap; }
.hero-copy { margin: .9rem auto 1.35rem; color: #f5efdc; font-size: clamp(.82rem, 2.9cqi, .98rem); letter-spacing: .05em; text-shadow: 0 1px 8px #12170f; }
.hero .scene-cta { min-width: min(14.25rem, 100%); }
.scroll-note, .hero-caption {
  position: absolute;
  top: max(24.5rem, calc(100svh - 4.25rem - env(safe-area-inset-bottom)));
  display: flex;
  align-items: center;
  gap: .75rem;
  color: #f2eccc;
  font-size: .73rem;
}
.scroll-note { left: var(--gutter); min-height: 44px; }
.scroll-note span:last-child { color: var(--moss); display: grid; width: 2rem; height: 2rem; border: 1px solid #e1e8b187; border-radius: 50%; place-items: center; }
.hero-caption { right: var(--gutter); padding-top: .83rem; font: 400 .64rem/1 var(--mono); letter-spacing: .17em; }
.hero-caption span { width: 1.2rem; height: 1px; background: var(--moss); }

.ritual { position: relative; isolation: isolate; }
.kinetic .ritual { min-height: 172svh; }
.ritual-frame {
  position: relative;
  min-height: max(37rem, 100svh);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .73fr);
  align-content: end;
  gap: 2rem;
  padding: 8rem var(--gutter) max(5.4rem, 12svh);
  isolation: isolate;
  overflow: clip;
}
.kinetic .ritual-frame { position: sticky; top: 0; }
.ritual-photo {
  position: absolute;
  z-index: -2;
  inset: 0;
  overflow: clip;
  background: #232b16;
}
.kinetic .ritual-photo { mask-image: linear-gradient(to bottom, transparent, #000 min(24svh, 13rem)); }
.ritual-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ritual-powder { object-position: center 57%; }
.ritual-foam { object-position: center 70%; opacity: 0; }
.ritual-frame::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(0deg, #10150cf7, #10150cd2 29%, #10150c00 73%);
}
.ritual-text h2 { margin: .6rem 0 1.1rem; font-size: clamp(2.5rem, 5.45vw, 5.2rem); }
.ritual-text > p:last-child { max-width: 29rem; color: #eeead9; font-size: clamp(.84rem, 1.6vw, 1rem); }
.ritual-steps { align-self: end; list-style: none; padding: 0; color: #f5f0dd; }
.ritual-steps li { display: grid; grid-template-columns: 2rem minmax(0, 1fr); align-items: baseline; gap: .5rem; border-top: 1px solid #eef0c250; padding: .78rem 0; }
.ritual-steps li:last-child { border-bottom: 1px solid #eef0c250; }
.ritual-steps span { color: var(--moss); font: 400 .74rem/1.5 var(--mono); }
.ritual-steps p { font-size: .88rem; }

.discovery {
  position: relative;
  padding: clamp(5.4rem, 10vw, 10rem) var(--gutter) clamp(5rem, 9vw, 8rem);
  background: radial-gradient(ellipse at 88% 38%, #303c21, #202a18 57%, #151d12);
}
.section-heading { max-width: 72rem; margin: 0 auto clamp(1.75rem, 4vw, 3rem); }
.section-heading h2 { margin-top: .45rem; font-size: clamp(1.9rem, 4.5vw, 4rem); letter-spacing: -.02em; }
.product-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.65rem, 2.5vw, 2rem); max-width: 72rem; margin-inline: auto; }
.product {
  position: relative;
  isolation: isolate;
  min-height: clamp(16rem, 40vw, 29rem);
  overflow: clip;
  border: 1px solid #e6e6c83d;
  background: #343d21;
}
.product img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 58%; transition: transform .65s cubic-bezier(.21,.72,.28,1); }
.product::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(0deg, #151a10e8, #151a104f 32%, #151a1000 62%); pointer-events: none; }
.product:hover img, .product:focus-within img { transform: scale(1.055); }
.product-text { position: absolute; inset: auto 0 0; display: flex; align-items: end; justify-content: space-between; gap: .4rem; padding: clamp(.75rem, 2.75vw, 1.75rem); }
.product-text h3 { font-size: clamp(1.55rem, 3vw, 2.55rem); }
.product-open {
  display: none;
  place-items: center;
  flex: 0 0 auto;
  width: clamp(2.75rem, 5vw, 3.5rem);
  aspect-ratio: 1;
  border: 1px solid var(--moss);
  border-radius: 50%;
  background: var(--moss);
  color: var(--ink);
  font-size: 1.35rem;
}
.has-dialogs .product-open { display: grid; }
.product-open::after { content: ""; position: absolute; inset: 0; }
.product-open:hover { background: #e8f1b7; }
.gallery-note { max-width: 72rem; margin: .8rem auto 0; font-size: .72rem; color: #dadcc1; text-align: right; }

.finale {
  position: relative;
  isolation: isolate;
  color-scheme: light;
  color: #293016;
  background-color: var(--paper);
  background-image: url("assets/paper.webp"), radial-gradient(ellipse at 94% 7%, #dfdcbb, transparent 60%);
  padding: clamp(5rem, 10vw, 9rem) var(--gutter) 0;
}
.shop { display: grid; grid-template-columns: 1fr .93fr; align-items: center; gap: clamp(1.75rem, 7vw, 6rem); max-width: 70rem; margin-inline: auto; }
.shop-intro .eyebrow, .dialog .eyebrow { color: #596630; }
.shop-intro h2 { margin: .55rem 0 1rem; font-size: clamp(2.7rem, 6vw, 5.8rem); }
.shop-intro h2 span { white-space: nowrap; }
.shop-intro > p:last-child { font-size: .95rem; }
.seal { position: relative; display: grid; width: clamp(5.5rem, 10vw, 7.5rem); aspect-ratio: 1; margin-bottom: 1.4rem; place-items: center; }
.seal svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: rotate-seal 29s linear infinite; animation-play-state: paused; }
.kinetic .finale.is-visible .seal svg { animation-play-state: running; }
.kinetic.page-hidden .finale .seal svg { animation-play-state: paused; }
.seal text { fill: #566225; font: 500 8.9px var(--mono); }
.seal img { width: 48%; height: auto; }
@keyframes rotate-seal { to { transform: rotate(1turn); } }
.order {
  align-self: end;
  padding: clamp(1.05rem, 3vw, 2.15rem);
  border: 1px solid #65703d61;
  background: #faf6e9a8;
}
.order fieldset { margin: 0; padding: 0; min-inline-size: 0; border: none; scroll-margin-top: calc(var(--bar-height) + env(safe-area-inset-top) + 1rem); }
.order legend { padding: 0; margin-bottom: 1rem; font: 600 1.6rem/1.35 var(--serif); }
.choice { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .85rem; align-items: center; min-height: 4.2rem; padding: .55rem .65rem; border: 1px solid #777d5480; cursor: pointer; }
.choice + .choice { margin-top: .5rem; }
.choice:has(input:checked) { border-color: #697b30; background: #e9edc9; }
.choice:focus-within { outline: 2px solid #758440; outline-offset: 2px; }
.choice input { width: 1.15rem; height: 1.15rem; margin: 0; accent-color: #556823; }
.choice strong, .choice small { display: block; }
.choice strong { font-size: .94rem; font-weight: 700; }
.choice small { color: #4f553b; font-size: .78rem; }
.order-cta { width: 100%; margin-top: 1.2rem; }
.demo-status { min-height: 3em; margin-top: .65rem; color: #444b31; font-size: .75rem; }
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: clamp(3.5rem, 8vw, 7rem) auto 0;
  max-width: 70rem;
  border-top: 1px solid #626d424f;
  padding: 1.3rem 0 calc(1.6rem + env(safe-area-inset-bottom));
}
.site-footer > a:last-child { font-size: .76rem; }
.site-footer > a:last-child span { margin-left: .35rem; }

.sticky-cta {
  position: fixed;
  z-index: 20;
  right: max(var(--gutter), env(safe-area-inset-right));
  bottom: max(1.15rem, calc(env(safe-area-inset-bottom) + .65rem));
  width: min(21rem, calc(100% - 2 * var(--gutter)));
  padding: .4rem;
  border: 1px solid #d3e18d60;
  border-radius: calc(var(--scene-cta-radius) + .25rem);
  background: #171e13f2;
  box-shadow: 0 .4rem 1.7rem #11150d4f;
}
.sticky-cta .scene-cta { width: 100%; }

.dialog {
  z-index: 40;
  width: min(31rem, calc(100% - 2rem - env(safe-area-inset-left) - env(safe-area-inset-right)));
  max-height: calc(100dvh - 2rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  margin: auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0;
  border: 1px solid #acac80;
  background: var(--paper);
  color: #293016;
  color-scheme: light;
}
.dialog::backdrop { background: #11160ed6; }
html.has-dialog { overflow-y: hidden; }
.dialog-body { position: relative; }
.dialog-close {
  position: absolute;
  z-index: 1;
  top: .65rem;
  right: .65rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid #888f5a;
  background: var(--paper);
  font-size: 1.5rem;
}
.detail-photo { width: 100%; height: min(36dvh, 18rem); object-fit: cover; object-position: center 62%; }
.detail-content, .exit-dialog .dialog-body { padding: clamp(1.3rem, 5vw, 2.3rem); }
.exit-dialog .dialog-body { padding-top: 3.2rem; }
.dialog h2 { margin: .4rem 0 .8rem; font-size: clamp(1.75rem, 5vw, 2.65rem); }
.dialog p:not(.eyebrow) { font-size: .9rem; }
.dialog .scene-cta { width: 100%; margin-top: 1.25rem; }
.leave-link { display: block; margin: .65rem auto 0; min-height: 44px; border: 0; background: none; text-decoration: underline; text-underline-offset: .25rem; font-size: .85rem; }

.site-opening {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: .65rem;
  background: radial-gradient(ellipse at center, #323e20, #151b11 55%);
}
.site-opening img { animation: opening-emblem 1.8s both; }
.opening-brand { font: 500 3rem/1.2 var(--serif); letter-spacing: .16em; animation: opening-brand 1.75s both; }
.opening-copy { display: grid; place-items: center; color: #e3ebaf; font-size: .8rem; letter-spacing: .2em; }
.opening-copy span { grid-area: 1 / 1; }
.opening-copy span:first-child { animation: opening-phase-one 1.75s both; }
.opening-copy span:last-child { animation: opening-brand 1.75s both; }
.opening-skip { position: absolute; bottom: max(1.75rem, calc(env(safe-area-inset-bottom) + .9rem)); right: var(--gutter); min-height: 44px; padding: .2rem .75rem; border: 1px solid #e4e9be55; background: #171e12; font-size: .75rem; }
.site-opening.curtain-out { opacity: 0; transition: opacity .3s; }
@keyframes opening-emblem { 0% { opacity: 0; scale: .88; } 30%, 58% { opacity: 1; scale: 1; } 100% { opacity: .67; } }
@keyframes opening-brand { 0%, 40% { opacity: 0; } 78%, 100% { opacity: 1; } }
@keyframes opening-phase-one { 0% { opacity: 0; } 18%, 35% { opacity: 1; } 57%, 100% { opacity: 0; } }

@media (max-width: 760px) {
  :root { --bar-height: 4rem; }
  .hero { padding-top: max(6.1rem, 16svh); }
  .hero h1 { font-size: clamp(2.45rem, 8.2cqi, 4.25rem); }
  .hero-copy { margin-block: .65rem 1rem; }
  .hero-plate {
    background-image: linear-gradient(180deg, #141811b5, #151a1059 42%, #11150d00 66%, #131910a6), url("assets/hero-mobile.webp");
    background-position: center, center 63%;
  }
  .ritual-frame { grid-template-columns: 1fr; gap: 1.15rem; padding: 9rem var(--gutter) max(4.6rem, 11svh); }
  .ritual-powder { object-position: center; }
  .ritual-frame::after { background: linear-gradient(0deg, #10150cfa, #10150cd9 37%, #10150c00 85%); }
  .ritual-steps li { padding-block: .43rem; }
  .shop { grid-template-columns: 1fr; }
  .shop-intro { position: relative; }
  .shop-intro h2 { font-size: clamp(2.15rem, 9.2vw, 4.1rem); }
  .seal { position: absolute; top: -.65rem; right: 0; width: clamp(4.25rem, 14vw, 6.25rem); margin: 0; }
  .site-footer { padding-bottom: calc(5.7rem + env(safe-area-inset-bottom)); }
  .sticky-cta { left: max(var(--gutter), env(safe-area-inset-left)); right: max(var(--gutter), env(safe-area-inset-right)); width: auto; }
}

@media (max-width: 560px) {
  .hero h1 { font-size: clamp(2.15rem, 11.2cqi, 3.8rem); }
  .hero h1 span { display: block; }
  .hero h1 wbr { display: none; }
}

@media (max-width: 420px) {
  .nav-ritual, .hero-caption { display: none !important; }
  .mobile-only { display: initial; }
  .product-text { padding-inline: .65rem; }
  .product-text .eyebrow { font-size: .62rem; }
}
@media (max-width: 360px) {
  .product-text h3 { font-size: 1.28rem; }
}

@media (max-height: 540px) and (orientation: landscape) {
  .hero { min-height: 33rem; }
  .kinetic .hero { min-height: max(165svh, 35rem); }
  .ritual-frame { min-height: 32rem; }
  .kinetic .ritual { min-height: max(178svh, 40rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition: none !important; }
}
