/* ==========================================================================
   Corolla · 花冠 — Noa的花园印象
   Soft, powdery greenhouse light; one charcoal accent; hairline thorns.
   ========================================================================== */

:root {
  /* the active model's raw color; everything visible is derived & desaturated */
  --c: #e8892b;
  --base: #d9d3cf;
  --paper: #ece6df;          /* oat / bone */
  --card: #f4efe9;           /* lightest surface — never pure white */
  --ink: #3b3437;            /* the single charcoal */
  --ink-2: rgba(59, 52, 55, 0.64);
  --ink-3: rgba(59, 52, 55, 0.16);
  --hair: rgba(59, 52, 55, 0.42);
  --accent: color-mix(in oklab, var(--c) 60%, #b7aeaa);
  --block: color-mix(in oklab, var(--c) 40%, var(--base));
  --dusk: #2a2430;           /* lightbox night */

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --cn: "Noto Serif SC", "Songti SC", serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --soft: cubic-bezier(0.25, 0.8, 0.3, 1);
  --pad: clamp(18px, 3vw, 48px);
  --hdr: 76px;
  --arch: 50% 50% 16px 16px / 40% 40% 16px 16px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--serif), var(--cn);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.is-loading,
body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure { margin: 0; }
em, i { font-style: italic; }
svg { display: block; }
kbd { font-family: var(--mono); }
::selection { background: color-mix(in oklab, var(--c) 30%, var(--paper)); }

.mono {
  font-family: var(--mono);
  font-weight: 300;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow { color: var(--ink-2); }

:focus { outline: none; }
:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 5px;
  border-radius: 8px;
}

.skip {
  position: fixed;
  left: var(--pad);
  top: 12px;
  z-index: 400;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--card);
  font-family: var(--mono);
  font-size: 12px;
  transform: translateY(-160%);
  transition: transform 0.6s var(--soft);
}
.skip:focus-visible { transform: none; }

/* ---------- atmosphere ---------- */
.wash {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--paper);
  pointer-events: none;
}
.wash i { position: absolute; inset: 0; will-change: opacity; }
.wash::after {
  /* greenhouse light from above + soft vignette */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 55% at 50% -8%, rgba(248, 244, 238, 0.7), transparent 70%),
    radial-gradient(140% 110% at 50% 45%, transparent 55%, rgba(59, 52, 55, 0.1) 100%);
}
.grain {
  position: fixed;
  inset: 0;
  z-index: 250;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .23 0 0 0 0 .2 0 0 0 0 .21 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.drift {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.drift svg {
  position: absolute;
  left: 0;
  top: 0;
  overflow: visible;
  will-change: transform;
}

/* thin botanical line drawings (paths injected by JS, drawn on with dashoffset) */
.botan {
  position: absolute;
  display: block;
  pointer-events: none;
  color: var(--ink);
}
.botan svg { width: 100%; height: 100%; overflow: visible; }
.botan path,
.botan circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 0.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.botan .bud { fill: color-mix(in oklab, var(--c) 30%, var(--paper)); fill-opacity: 0.55; transition: fill 1.2s var(--soft); }

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: 999px;
  transition: background-color 0.9s var(--soft), color 0.9s var(--soft), border-color 0.9s var(--soft);
}
.btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.btn--open {
  padding: 16px 20px 16px 24px;
  background: var(--ink);
  color: var(--card);
}
.btn--open:hover { background: color-mix(in oklab, var(--c) 45%, var(--ink)); }
.btn--round {
  width: 50px;
  height: 50px;
  justify-content: center;
  border: 1px solid var(--hair);
  background: color-mix(in srgb, var(--card) 40%, transparent);
  backdrop-filter: blur(8px);
}
.btn--round:hover { background: var(--ink); color: var(--card); border-color: var(--ink); }
.btn--close {
  padding: 12px 14px 12px 16px;
  background: color-mix(in srgb, var(--card) 55%, transparent);
  border: 1px solid var(--hair);
  backdrop-filter: blur(8px);
}
.btn--close kbd {
  font-size: 9.5px;
  padding: 3px 6px;
  border-radius: 6px;
  border: 1px solid var(--ink-3);
  opacity: 0.7;
}
.btn--close:hover { background: var(--ink); color: var(--card); }

/* ---------- preloader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 28px;
  background: var(--paper);
}
.loader__bloom { width: 132px; height: 132px; overflow: visible; }
.loader__bloom ellipse {
  stroke: var(--ink);
  stroke-width: 0.5;
  fill-opacity: 0;
}
.loader__bloom circle { fill: var(--ink); }
.loader__name { text-align: center; }
.loader__name .cn {
  display: block;
  font-family: var(--cn);
  font-weight: 300;
  font-size: 24px;
  letter-spacing: 0.12em;
}
.loader__name .cn i,
.hdr__cn i,
.hero__cn i,
.ftr__name .cn i { font-family: var(--serif); font-weight: 300; letter-spacing: 0; padding-right: 0.06em; }
.loader__name .en {
  display: block;
  margin-top: 6px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-2);
}
.loader__count {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--ink-3);
  padding-top: 14px;
}
.loader__num {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(56px, 8vw, 112px);
  line-height: 0.8;
  font-variant-numeric: lining-nums tabular-nums;
}
.loader__label { font-family: var(--mono); font-weight: 300; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }

/* ---------- header ---------- */
.hdr {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--hdr);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--pad);
  pointer-events: none;
}
.hdr > * { pointer-events: auto; }
.hdr__brand { display: inline-flex; flex-direction: column; justify-self: start; line-height: 1.2; }
.hdr__cn { font-family: var(--cn); font-weight: 400; font-size: 16px; letter-spacing: 0.08em; }
.hdr__cn i { font-size: 1.12em; }
.hdr__en { font-family: var(--serif); font-style: italic; font-size: 13px; color: var(--ink-2); }
.hdr__nav {
  display: flex;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--card) 45%, transparent);
  border: 1px solid var(--ink-3);
  backdrop-filter: blur(12px);
}
.hdr__nav a {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  font-family: var(--cn);
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: background-color 0.9s var(--soft), color 0.9s var(--soft);
}
.hdr__nav a em { font-family: var(--serif); font-size: 15px; }
.hdr__nav a .mono { font-size: 9.5px; color: var(--ink-2); transition: color 0.9s; }
.hdr__nav a:hover { background: var(--ink); color: var(--card); }
.hdr__nav a:hover .mono { color: rgba(244, 239, 233, 0.6); }
.hdr__count { justify-self: end; display: inline-flex; align-items: center; gap: 6px; }
.hdr__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--c) 18%, transparent);
  transition: background-color 1.2s var(--soft), box-shadow 1.2s var(--soft);
}
.hdr__no { font-weight: 400; }

/* ---------- corolla / wheel ---------- */
.corolla { position: relative; }
.corolla__pin {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  touch-action: pan-y;
}

.hero {
  position: absolute;
  inset: calc(var(--hdr) + 5vh) var(--pad) auto;
  text-align: center;
  z-index: 3;
  pointer-events: none;
}
.hero__kicker {
  display: flex;
  justify-content: center;
  gap: 26px;
  color: var(--ink-2);
  margin-bottom: 3.4vh;
}
.hero__kicker span + span::before { content: "❦"; margin-right: 26px; font-size: 13px; color: var(--accent); letter-spacing: 0; }
.hero__title { font-weight: inherit; }
.hero__cn {
  display: block;
  font-family: var(--cn);
  font-weight: 300;
  font-size: clamp(50px, 8.6vw, 148px);
  line-height: 1.08;
  letter-spacing: 0.04em;
}
.hero__cn i { font-size: 1.16em; letter-spacing: -0.01em; }
.hero__en {
  display: block;
  margin-top: 1.2vh;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(22px, 2.5vw, 40px);
  letter-spacing: 0.01em;
  color: var(--ink-2);
}
.hero__intro {
  margin-top: 3vh;
  font-family: var(--cn);
  font-weight: 300;
  font-size: clamp(14px, 1.1vw, 17px);
  letter-spacing: 0.1em;
}
.hero__intro span { font-family: var(--serif); font-style: italic; font-size: 1.15em; letter-spacing: 0.01em; color: var(--ink-2); }
.hero__note {
  margin-top: 0.8vh;
  font-family: var(--mono);
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.hero__cue {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 3.4vh;
  color: var(--ink-2);
}
.hero__cue-line {
  width: 40px;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  animation: cue 3.6s ease-in-out infinite;
}
@keyframes cue {
  0% { transform: scaleX(0); opacity: 0; }
  40% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}
.botan--hero-l { left: 2vw; top: 2vh; width: clamp(90px, 9vw, 150px); height: clamp(380px, 64vh, 620px); }
.botan--hero-r { right: 1vw; top: -3vh; width: clamp(140px, 15vw, 240px); height: clamp(200px, 32vh, 320px); }

.stage {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.stage.is-off { visibility: hidden; }
.stage button { pointer-events: auto; }
.stage__meta {
  position: absolute;
  top: calc(var(--hdr) + 1vh);
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.stage__no { font-family: var(--serif); font-size: 17px; letter-spacing: 0; text-transform: none; }
.stage__of { color: var(--ink-2); }
.stage__sep { width: 44px; height: 1px; background: var(--ink); opacity: 0.5; }
.stage__flower {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--hdr) + 3.2vh);
  height: 1.08em;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(84px, 13.5vw, 232px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-align: center;
  white-space: nowrap;
}
.stage__flower .fl {
  position: absolute;
  inset: 0 0 auto 0;
  display: block;
}
.stage__flower .fl > * { will-change: transform, opacity, filter; }
.stage__left,
.stage__right {
  position: absolute;
  top: 46vh;
  max-width: 30vw;
}
.stage__left { left: var(--pad); }
.stage__right {
  right: var(--pad);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}
.stage__title {
  font-family: var(--cn);
  font-weight: 300;
  font-size: clamp(26px, 2.6vw, 42px);
  line-height: 1.3;
  letter-spacing: 0.1em;
}
.stage__sub {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  max-width: 34ch;
  line-height: 1.5;
}
.stage__sub::before {
  content: "";
  flex: none;
  width: 28px;
  height: 1px;
  background: var(--ink);
}

.stage__hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3.2vh;
  text-align: center;
  color: var(--ink-2);
}

.ring {
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: grab;
}
.ring.is-dragging { cursor: grabbing; }
.ring__guide {
  position: absolute;
  left: 0;
  top: 0;
  overflow: visible;
  pointer-events: none;
  will-change: transform;
}
.ring__guide circle { fill: none; stroke: var(--ink); }
.ring__guide .thorn { fill: none; stroke: var(--ink); stroke-width: 0.9; stroke-linejoin: round; opacity: 0.55; }
.ring__guide text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0.18em;
  fill: var(--ink);
  opacity: 0.5;
}
.ring__petals { position: absolute; left: 0; top: 0; }

.petal {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--pw, 230px);
  padding: 7px 7px 0;
  border-radius: calc(var(--pw, 230px) / 2) calc(var(--pw, 230px) / 2) 20px 20px;
  background: var(--card);
  box-shadow: 0 1px 0 rgba(59, 52, 55, 0.04), 0 34px 60px -34px rgba(59, 52, 55, 0.4);
  transform-origin: 50% 50%;
  will-change: transform;
  text-align: left;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.petal::after {
  /* the crisp hairline around the soft card — visible on the active petal */
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid var(--ink);
  border-radius: calc(var(--pw, 230px) / 2 + 7px) calc(var(--pw, 230px) / 2 + 7px) 26px 26px;
  opacity: 0;
  transition: opacity 1.2s var(--soft);
  pointer-events: none;
}
.petal[aria-current]::after { opacity: 0.55; }
.petal__img {
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: var(--arch);
  overflow: hidden;
  background: var(--card);
}
.petal__img img,
.card__plate img,
.detail__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  pointer-events: none;
  -webkit-user-drag: none;
}
.petal__cap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 38px;
  padding: 0 8px;
}
.petal__cap b { font-family: var(--serif); font-weight: 400; font-size: 14px; }
.petal__cap em { font-family: var(--serif); font-size: 17px; }
.petal__cap i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--pc) 60%, #b7aeaa);
}
.petal:focus-visible { outline: none; }
.petal:focus-visible::after { opacity: 1; }

/* ---------- all petals ---------- */
.all { padding: 18vh var(--pad) 16vh; }
.all__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 32px);
  row-gap: clamp(36px, 5vw, 80px);
}
.all__head {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 4px 2vw 0 0;
}
.all__title { font-weight: 300; line-height: 1; }
.all__title span {
  display: block;
  font-family: var(--cn);
  font-weight: 300;
  font-size: clamp(34px, 3.4vw, 56px);
  letter-spacing: 0.1em;
}
.all__title em {
  display: block;
  margin-top: 8px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 4.4vw, 74px);
  letter-spacing: -0.01em;
}
.all__lede { font-size: 17px; color: var(--ink-2); max-width: 30ch; font-family: var(--serif), var(--cn); line-height: 1.65; }
.botan--all { position: relative; width: 130px; height: 170px; margin-top: auto; }
.all__tile { display: none; }

.card {
  --pc: #999;
  display: block;
  width: 100%;
  text-align: left;
  perspective: 1000px;
}
.card__plate {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: var(--arch);
  overflow: hidden;
  isolation: isolate;
  background: var(--card);
  transform-style: preserve-3d;
  will-change: transform;
  box-shadow: 0 30px 60px -40px rgba(59, 52, 55, 0.45);
}
.card__wash {
  position: absolute;
  inset: 0;
  background: color-mix(in oklab, var(--pc) 34%, var(--base));
  opacity: 0;
  transition: opacity 1.2s var(--soft);
}
.card__plate img {
  position: relative;
  transform: scale(1.001);
  transition: transform 1.6s var(--soft);
}
.card__no {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 14px;
  translate: -50% 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--card) 80%, transparent);
  font-family: var(--serif);
  font-size: 14px;
  white-space: nowrap;
}
.card__no i { width: 6px; height: 6px; border-radius: 50%; background: color-mix(in oklab, var(--pc) 60%, #b7aeaa); }
.card__info,
.card__info > span { display: block; }
.card__info { padding: 18px 4px 0; text-align: center; }
.card__flower {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(32px, 2.7vw, 44px);
  line-height: 1;
}
.card__info > .card__title { margin-top: 10px; font-family: var(--cn); font-weight: 300; font-size: 17px; letter-spacing: 0.12em; }
.card__sub { margin-top: 8px; color: var(--ink-2); line-height: 1.6; }
.card__name { margin-top: 2px; font-family: var(--serif); font-size: 14px; color: var(--ink-2); }
.card:hover .card__wash,
.card:focus-visible .card__wash { opacity: 0.6; }
.card:hover .card__plate img { transform: scale(1.035); }
.card:focus-visible { outline: none; }
.card:focus-visible .card__plate { outline: 1px solid var(--ink); outline-offset: 6px; }

/* ---------- gallery ---------- */
.gallery { position: relative; }
.gallery__pin {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.gallery__viewport { position: absolute; inset: 0; }
.gallery__track {
  --rh: clamp(150px, 29vh, 330px);
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: max-content;
  display: flex;
  align-items: center;
  gap: 5vw;
  padding: var(--hdr) 8vw 10vh var(--pad);
  will-change: transform;
}
.gallery__intro {
  flex: none;
  width: min(34vw, 500px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.gallery__title { font-weight: inherit; }
.gallery__title .cn {
  display: block;
  font-family: var(--cn);
  font-weight: 300;
  font-size: clamp(44px, 5.2vw, 88px);
  line-height: 1.1;
  letter-spacing: 0.1em;
}
.gallery__title .en {
  display: block;
  margin-top: 6px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 4.8vw, 80px);
  line-height: 1;
}
.gallery__lede { color: var(--ink-2); max-width: 32ch; font-family: var(--serif), var(--cn); font-size: 17px; line-height: 1.65; }
.gallery__rows {
  position: relative;
  flex: none;
  display: grid;
  grid-template-rows: var(--rh) 76px var(--rh);
}
.gallery__row { display: flex; gap: 22px; align-items: stretch; }
.gallery__row--bottom { padding-left: calc(var(--rh) * 0.9); }
.gallery__rail { position: relative; }
.gallery__stem {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--ink);
  opacity: 0.4;
}
.mark {
  position: absolute;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-weight: 300;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.mark::before {
  /* a tiny thorn on the stem */
  content: "";
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border-left: 1px solid var(--ink);
  border-top: 1px solid var(--ink);
  transform: translateY(3px) rotate(45deg);
  background: transparent;
}
.mark b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: 0;
  line-height: 1;
}
.mark--year::before {
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  border: 0;
  border-radius: 50%;
  transform: none;
  background: var(--ink);
}
.mark span { color: var(--ink-2); }

.photo {
  position: relative;
  flex: none;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: color-mix(in oklab, var(--ink) 10%, var(--paper));
}
.photo__inner { position: absolute; inset: 0; }
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82);
  transform: scale(1.08);
  transition: transform 2s var(--soft), filter 1.2s var(--soft);
}
.photo.is-in img { transform: scale(1); }
.photo:hover img { transform: scale(1.03); filter: saturate(1); }
.photo__date {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--card) 82%, transparent);
  font-family: var(--mono);
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.9s var(--soft), transform 0.9s var(--soft);
}
.photo:hover .photo__date,
.photo:focus-visible .photo__date { opacity: 1; transform: none; }
.photo:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
.js-motion .photo__inner { clip-path: inset(100% 0 0 0 round 18px); opacity: 0; }
.js-motion .photo.is-in .photo__inner {
  clip-path: inset(0 0 0 0 round 18px);
  opacity: 1;
  transition: clip-path 1.6s var(--soft), opacity 1.2s var(--soft);
}

.gallery__end {
  flex: none;
  width: 28vw;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.gallery__end .mono { color: var(--ink-2); }
.gallery__end-cn { font-family: var(--cn); font-weight: 300; font-size: clamp(34px, 3.8vw, 62px); line-height: 1.2; letter-spacing: 0.12em; }
.gallery__end-en { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--ink-2); }

.gallery__hud {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: 4.5vh;
  display: flex;
  align-items: center;
  gap: 22px;
}
.gallery__when { min-width: 9ch; }
.gallery__bar { flex: 1; height: 1px; background: var(--ink-3); position: relative; overflow: hidden; }
.gallery__bar i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.gallery__count b { font-weight: 400; }

/* ---------- footer ---------- */
.ftr { padding: 12vh var(--pad) var(--pad); }
.ftr__block {
  position: relative;
  min-height: 82vh;
  min-height: 82svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: clamp(26px, 3.8vw, 60px);
  border-radius: clamp(32px, 4vw, 64px);
  background: var(--block);
  color: var(--ink);
  overflow: hidden;
  isolation: isolate;
  transition: background-color 1.6s var(--soft);
}
.ftr__block::before {
  /* soft-focus glow */
  content: "";
  position: absolute;
  z-index: -1;
  width: 70%;
  aspect-ratio: 1;
  right: -14%;
  top: -30%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(244, 239, 233, 0.35), transparent);
}
.botan--ftr { right: 5%; bottom: -2%; width: clamp(110px, 11vw, 180px); height: 78%; z-index: -1; }
.ftr__top { display: flex; justify-content: space-between; }
.ftr__top a { border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.ftr__name .cn {
  display: block;
  font-family: var(--cn);
  font-weight: 300;
  font-size: clamp(50px, 10.4vw, 176px);
  line-height: 1.1;
  letter-spacing: 0.04em;
}
.ftr__name .cn i { font-size: 1.14em; }
.ftr__name .en {
  display: block;
  margin-top: 1vh;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(24px, 3vw, 50px);
}
.ftr__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid var(--hair);
  padding-top: 22px;
}
.ftr__credit { font-size: clamp(17px, 1.4vw, 21px); font-style: italic; max-width: 26ch; }
.ftr__last { opacity: 0.8; }
.ftr__flower { font-family: var(--serif); font-style: italic; font-size: 15px; letter-spacing: 0; text-transform: none; }
.btn--top { padding: 16px 22px; background: var(--ink); color: var(--card); }
.btn--top:hover { background: var(--card); color: var(--ink); }

/* ---------- detail ---------- */
.detail {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.detail[hidden] { display: none; }
.detail__bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: var(--paper);
}
.detail__wash { position: absolute; inset: 0; }
.detail__wash i { position: absolute; inset: 0; }
.detail__ghost {
  position: absolute;
  left: -0.02em;
  bottom: -0.16em;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 26vw;
  line-height: 1;
  color: color-mix(in oklab, var(--d-color, var(--c)) 40%, var(--base));
  opacity: 0.3;
  white-space: nowrap;
  pointer-events: none;
}
.detail__bar {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px var(--pad);
}
.detail__bar .btn--close { justify-self: start; }
.detail__count { font-size: 11px; }
.detail__count .detail__no { font-family: var(--serif); font-size: 17px; letter-spacing: 0; }
.detail__nav { justify-self: end; display: flex; gap: 10px; }
.detail__body {
  position: relative;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(250px, 24vw) minmax(0, 1fr);
  gap: 3.6vw;
  align-items: center;
  padding: 0 var(--pad) 4vh;
}
.detail__side { display: flex; flex-direction: column; gap: 24px; min-height: 0; }
.detail__portrait {
  width: min(100%, 42vh);
  aspect-ratio: 4 / 5;
  border-radius: var(--arch);
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 40px 70px -40px rgba(59, 52, 55, 0.5);
}
.detail__name { color: var(--ink-2); }
.detail__flower {
  margin-top: 4px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(48px, 5vw, 86px);
  line-height: 1;
}
.detail__title { margin-top: 14px; font-family: var(--cn); font-weight: 300; font-size: clamp(20px, 1.7vw, 27px); letter-spacing: 0.12em; }
.detail__sub { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.detail__sub::before { content: ""; width: 24px; height: 1px; background: var(--ink); flex: none; }
.detail__sheet { min-width: 0; }
.detail__sheet-frame {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  background: var(--card);
  padding: 10px;
  box-shadow: 0 50px 90px -50px rgba(59, 52, 55, 0.5);
  max-height: calc(100svh - 190px);
  aspect-ratio: 16 / 9;
  margin-inline: auto;
}
.detail__sheet-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 22px;
  mix-blend-mode: multiply;
}
.detail__sheet figcaption {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  padding: 0 8px;
  color: var(--ink-2);
}
.detail__full { border-bottom: 1px solid currentColor; }
.detail__full:hover { color: var(--ink); }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  color: #e8e1da;
}
.lightbox[hidden] { display: none; }
.lightbox__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 70% at 50% 40%, rgba(74, 62, 78, 0.5), transparent 70%),
    rgba(42, 36, 48, 0.96);
}
.lightbox__fig {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  touch-action: pan-y;
}
.lightbox__img {
  max-width: min(84vw, 1600px);
  max-height: 78vh;
  max-height: 78svh;
  width: auto;
  height: auto;
  border-radius: 18px;
  user-select: none;
  -webkit-user-drag: none;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.45);
}
.lightbox__cap { display: flex; gap: 28px; opacity: 0.75; }
.lightbox .btn--round {
  position: absolute;
  top: 50%;
  margin-top: -25px;
  border-color: rgba(232, 225, 218, 0.28);
  background: rgba(232, 225, 218, 0.05);
  color: #e8e1da;
}
.lightbox .btn--round:hover { background: #e8e1da; color: var(--dusk); }
.lightbox__prev { left: var(--pad); }
.lightbox__next { right: var(--pad); }
.lightbox__close {
  position: absolute;
  top: 18px;
  right: var(--pad);
  color: #e8e1da;
  background: rgba(232, 225, 218, 0.06);
  border-color: rgba(232, 225, 218, 0.28);
}
.lightbox__close kbd { border-color: rgba(232, 225, 218, 0.3); }
.lightbox__close:hover { background: #e8e1da; color: var(--dusk); }
.lightbox :focus-visible { outline-color: #e8e1da; }

/* ---------- cursor ---------- */
.cursor { display: none; }
.has-cursor .cursor {
  display: block;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 500;
  pointer-events: none;
}
.has-cursor,
.has-cursor a,
.has-cursor button,
.has-cursor .ring { cursor: none; }
.cursor__dot,
.cursor__ring {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 50%;
  will-change: transform;
}
.cursor__dot { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; background: var(--ink); }
.cursor__ring {
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--hair);
  background: color-mix(in srgb, var(--card) 0%, transparent);
  transform: scale(0.4);
}
.cursor__label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  opacity: 0;
}
.cursor.is-dark .cursor__dot { background: #e8e1da; }
.cursor.is-dark .cursor__ring { border-color: rgba(232, 225, 218, 0.5); color: #e8e1da; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .all__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .all__head { grid-column: span 3; }
  .botan--all { display: none; }
}

@media (max-width: 760px) {
  :root { --hdr: 62px; }
  body { font-size: 16px; }
  .hdr { grid-template-columns: 1fr auto; }
  .hdr__nav { display: none; }
  .hdr__cn { font-size: 14px; }
  /* content scrolls under the fixed header on narrow screens: soften it away */
  .hdr::before {
    content: "";
    position: absolute;
    inset: 0 0 -18px;
    z-index: -1;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    -webkit-mask-image: linear-gradient(#000 55%, transparent);
    mask-image: linear-gradient(#000 55%, transparent);
    pointer-events: none;
  }

  .hero { inset: calc(var(--hdr) + 5vh) 18px auto; }
  .hero__kicker { gap: 10px; margin-bottom: 3vh; }
  .hero__kicker span + span::before { margin-right: 10px; }
  .hero__cn { font-size: 11.6vw; letter-spacing: 0.02em; white-space: nowrap; }
  .hero__en { font-size: 6.4vw; }
  .hero__intro { font-size: 14px; }
  .hero__intro span { display: block; }
  .hero__note { margin-inline: auto; line-height: 1.8; }
  .hero__note span { display: block; }
  .hero__note i { display: none; }
  .botan--hero-l { left: -8px; top: 30vh; width: 70px; height: 300px; opacity: 0.7; }
  .botan--hero-r { right: -10px; top: -4vh; width: 110px; height: 150px; opacity: 0.7; }

  .stage__meta { top: calc(var(--hdr) + 1vh); }
  .stage__flower { top: calc(var(--hdr) + 2.4vh); font-size: 20vw; }
  .stage__left {
    top: calc(var(--hdr) + 2.4vh + 20vw * 1.08);
    left: 18px;
    right: 18px;
    max-width: none;
    text-align: center;
  }
  .stage__title { font-size: 22px; }
  .stage__sub { justify-content: center; margin: 8px auto 0; max-width: 34ch; }
  .stage__right {
    top: auto;
    bottom: 3.6vh;
    left: 18px;
    right: 18px;
    max-width: none;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .btn--open { padding: 14px 18px; font-size: 10px; }
  .btn--round { width: 46px; height: 46px; }
  .stage__hint { display: none; }

  .petal { padding: 6px 6px 0; }
  .petal__cap { height: 30px; padding: 0 6px; }
  .petal__cap em { font-size: 14px; }
  .petal__cap b { font-size: 12px; }

  .all { padding: 12vh 14px 10vh; }
  .all__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; column-gap: 14px; }
  .all__head { grid-column: span 2; padding: 0; }
  .all__tile {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    aspect-ratio: 4 / 5;
    border-radius: var(--arch);
    border: 1px solid var(--ink-3);
    text-align: center;
    color: var(--ink-2);
  }
  .all__tile svg { width: 76px; height: 76px; overflow: visible; }
  .card__flower { font-size: 28px; }
  .card__info > .card__title { font-size: 15px; letter-spacing: 0.06em; }
  .card__no { font-size: 12px; bottom: 10px; }

  .gallery__pin { height: auto; overflow: visible; padding: 8vh 0 4vh; }
  .gallery__viewport {
    position: relative;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .gallery__viewport::-webkit-scrollbar { display: none; }
  .gallery__track {
    --rh: 24vh;
    position: relative;
    height: auto;
    padding: 0 14px;
    gap: 36px;
  }
  .gallery__intro { width: 80vw; scroll-snap-align: start; }
  .gallery__rows { grid-template-rows: var(--rh) 64px var(--rh); }
  .photo { scroll-snap-align: center; border-radius: 14px; }
  .photo__date { opacity: 1; transform: none; }
  .gallery__end { width: 70vw; }
  .gallery__hud { position: relative; left: auto; right: auto; bottom: auto; margin: 22px 14px 0; }

  .ftr { padding: 8vh 10px 10px; }
  .ftr__block { min-height: 74svh; border-radius: 30px; }
  .ftr__name .cn { font-size: 11.6vw; white-space: nowrap; }
  .ftr__name .en { font-size: 7vw; }
  .ftr__bottom { flex-direction: column; align-items: flex-start; }
  .botan--ftr { height: 46%; right: 2%; opacity: 0.6; }

  .detail { overflow-y: auto; overscroll-behavior: contain; }
  .detail__bar { position: sticky; top: 0; z-index: 2; padding: 12px 14px; }
  .detail__bar .btn--close span,
  .detail__bar .btn--close kbd { display: none; }
  .detail__body {
    flex: none;
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 4px 14px 40px;
    align-items: start;
  }
  .detail__side { display: grid; grid-template-columns: 44% 1fr; gap: 16px; align-items: end; }
  .detail__portrait { width: 100%; }
  .detail__flower { font-size: 42px; }
  .detail__title { font-size: 18px; letter-spacing: 0.06em; }
  .detail__sheet-frame { padding: 6px; border-radius: 20px; max-height: none; }
  .detail__sheet-frame img { border-radius: 14px; }
  .detail__ghost { font-size: 52vw; bottom: auto; top: 50vh; }

  .lightbox__img { max-width: 100vw; border-radius: 0; }
  .lightbox .btn--round { top: auto; bottom: 6vh; margin: 0; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
.rm .hero {
  position: relative;
  inset: auto;
  padding: calc(var(--hdr) + 10vh) var(--pad) 6vh;
}
.rm .hero__cue { display: none; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hero__cue-line { animation: none; }
  .photo img { transform: none; }
  .drift { display: none; }
}
