/* The flower is the interface. Every petal holds one value. */
body:has(.values-page) { overflow-x: clip; }
.values-page { font-family: var(--serif); }
.flower-story { position: relative; }
.flower-stage { position: relative; height: calc(100svh - var(--bar-h)); min-height: 38rem; margin-top: var(--bar-h); overflow: hidden; background: var(--ink); }
.flower-world { display: block; width: 100%; height: 100%; }
.flower-camera { will-change: transform; }
.flower-orbit { stroke: var(--amber); stroke-opacity: 0.2; stroke-dasharray: 1 7; }
.flower-guide { display: none; }
.flower-petal { color: var(--amber); outline: none; }
.flower-petal ellipse { fill: var(--amber); fill-opacity: 0.025; stroke: var(--amber); stroke-opacity: 0.6; stroke-width: 0.7; }
.petal-icon { color: var(--bone); }
.flower-petal:hover ellipse, .flower-petal:focus-visible ellipse { fill-opacity: 0.16; stroke-opacity: 1; stroke-width: 1.3; }
.flower-petal:hover .petal-icon, .flower-petal:focus-visible .petal-icon { color: var(--amber); }
.flower-core { fill: var(--ink); stroke: var(--amber); stroke-width: 0.7; }
.flower-intro { padding: 4rem var(--pad); }
.flower-intro h1 { font-size: clamp(4rem, 10vw, 10rem); font-weight: 460; line-height: 0.85; letter-spacing: -0.06em; }
.flower-intro h1 em { color: var(--amber); font-weight: 400; }
.flower-intro-copy > p { font-size: clamp(1.15rem, 1.8vw, 1.5rem); line-height: 1.5; margin-top: 2rem; }
.flower-enter { display: inline-flex; gap: 1.5rem; align-items: center; color: var(--bone); border-bottom: 1px solid var(--line); padding: 0.7rem 0; margin-top: 1.5rem; font: 0.75rem var(--mono); text-decoration: none; }
.flower-enter span { color: var(--amber); }
.flower-intro-copy .flower-instruction { font: 0.7rem var(--mono); color: var(--bone-dim); margin-top: 0.8rem; }
.flower-return, .petal-index, .petal-pagination, .flower-progress { display: none; }
.value-chapters { list-style: none; }
.value-chapter { padding: 4rem var(--pad); border-top: 1px solid var(--line); }
.chapter-copy { max-width: 40rem; }
.chapter-number { display: none; }
.detail-icon { width: 2.5rem; height: 2.5rem; margin: 0 auto 1.5rem; color: var(--amber); }
.chapter-copy h2 { font-size: clamp(1.8rem, 3vw, 3.3rem); font-weight: 460; letter-spacing: -0.035em; line-height: 1.08; text-wrap: balance; overflow-wrap: anywhere; }
.chapter-copy p { font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.65; margin-top: 1.5rem; color: var(--bone-dim); }
.values-live .flower-stage { position: sticky; top: calc(var(--bar-h) + var(--status-banner-h) + var(--banner-h)); margin-top: 0; }
.values-live .flower-steps { position: relative; margin-top: calc(-1 * max(38rem, 100svh - var(--bar-h))); pointer-events: none; }
.values-live .flower-steps a { pointer-events: auto; }
.values-live .flower-intro { min-height: max(38rem, 100svh - var(--bar-h)); display: flex; align-items: center; position: relative; }
.values-live .flower-intro-copy { width: 40%; }
.values-live .value-chapter { position: relative; min-height: max(38rem, 100svh - var(--bar-h)); display: flex; justify-content: center; align-items: center; padding: 6rem 2rem; border: 0; }
.values-live .chapter-copy { width: min(38vw, 32rem); text-align: center; pointer-events: auto; }
.values-live .chapter-copy h2:focus { outline: none; }
.values-live .flower-return { position: absolute; top: 1.5rem; left: var(--pad); z-index: 3; color: var(--bone-dim); font: 0.75rem var(--mono); text-decoration: none; }
.values-live.petal-open .flower-return { display: block; }
.petal-open .flower-petal:not(.is-active), .petal-open .flower-core, .petal-open .flower-camera > image, .petal-open .flower-orbit, .petal-open .petal-icon { opacity: 0; pointer-events: none; }
.petal-open .flower-petal { pointer-events: none; }
.petal-open .flower-petal.is-active ellipse { fill-opacity: 0.045; stroke-opacity: 0.65; stroke-width: 0.3; }
.values-live .petal-index { display: flex; position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); gap: 0.25rem; z-index: 3; }
.petal-index a { display: grid; place-items: center; width: 2.5rem; height: 2.6rem; color: var(--bone-dim); font: 0.65rem var(--mono); text-decoration: none; border-bottom: 1px solid var(--line); }
.petal-index a:hover, .petal-index a[aria-current] { color: var(--amber); border-color: var(--amber); }
.values-live .petal-pagination:not([hidden]) { display: flex; position: absolute; inset: 50% 2rem auto; justify-content: space-between; z-index: 3; pointer-events: none; }
.petal-pagination button { width: 3rem; height: 3rem; background: var(--ink); color: var(--amber); border: 1px solid var(--line); border-radius: 50%; font: 1.3rem var(--serif); cursor: pointer; pointer-events: auto; }
.petal-pagination button:hover { border-color: var(--amber); }
.values-signature { padding: 6rem var(--pad); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2rem; border-top: 1px solid var(--line); }
.values-signature p { font-size: clamp(1.7rem, 4vw, 3.5rem); line-height: 1.2; }
.values-signature em { color: var(--amber); }
.values-signature > a { color: var(--bone-dim); font: 0.75rem var(--mono); text-underline-offset: 6px; }
.values-page [hidden] { display: none !important; }
@media (max-width: 700px) {
  .flower-stage { min-height: 40rem; }
  .values-live .flower-steps { margin-top: calc(-1 * max(40rem, 100svh - var(--bar-h))); }
  .values-live .flower-intro, .values-live .value-chapter { min-height: max(40rem, 100svh - var(--bar-h)); }
  .values-live .flower-intro { align-items: flex-start; padding-top: 2.5rem; }
  .values-live .flower-intro-copy { width: 100%; }
  .flower-intro h1 { font-size: clamp(3.5rem, 17vw, 6rem); }
  .values-live .flower-intro-copy > p:first-of-type { position: absolute; bottom: 7rem; font-size: 1rem; }
  .values-live .flower-enter { position: absolute; bottom: 4.3rem; margin: 0; }
  .flower-instruction { display: none; }
  .values-live .chapter-copy { width: min(74vw, 26rem); }
  .chapter-copy h2 { font-size: clamp(1.5rem, 6.5vw, 2.7rem); }
  .chapter-copy p { font-size: 1.05rem; }
  .values-live .petal-pagination:not([hidden]) { inset: auto 1.5rem 5.5rem; }
  .petal-index a { width: 1.8rem; }
}
@media print {
  .values-live .flower-stage { display: none; }
  .values-live .flower-steps { position: static; margin-top: 0; }
  .values-live .flower-intro, .values-live .value-chapter, .values-page .value-chapter[hidden] { display: block !important; position: static; padding: 2rem; break-inside: avoid; }
  .values-live .chapter-copy, .values-live .flower-intro-copy { width: 100%; text-align: left; }
  .values-page .flower-intro[hidden] { display: block !important; }
}

/* Paused motion keeps every value in ordinary document flow. */
.values-live.values-still .flower-stage { position: relative; height: 65svh; min-height: 24rem; }
.values-live.values-still .flower-steps { margin-top: 0; }
.values-live.values-still .flower-intro, .values-live.values-still .value-chapter { min-height: 0; padding: 4rem var(--pad); }
.values-live.values-still .flower-intro-copy, .values-live.values-still .chapter-copy { width: 100%; }
.values-live.values-still .flower-intro-copy > p, .values-live.values-still .flower-enter { position: static; }
.values-live.values-still .flower-return, .values-live.values-still .petal-index, .values-live.values-still .petal-pagination { display: none; }

/* Text and icon are physically inside the selected SVG petal. */
.petal-content { opacity: 0; overflow: visible; pointer-events: none; }
.petal-content .chapter-copy { width: 50px; height: 50px; max-width: none; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.petal-content .detail-icon { width: 6px; height: 6px; margin: 0 0 2.2px; flex-shrink: 0; }
.petal-content h2 { font-size: 4.5px; font-weight: 460; line-height: 1.13; letter-spacing: -0.12px; width: 100%; overflow-wrap: normal; }
.petal-content p { font-size: 2.6px; line-height: 1.5; margin-top: 2px; color: var(--bone-dim); width: 46px; }
.petal-open .flower-petal:not(.is-active), .petal-open .flower-core, .petal-open .flower-camera > image, .petal-open .flower-orbit { opacity: 0; }
.petal-open .flower-petal.is-active ellipse { fill-opacity: 0.025; stroke-opacity: 0.55; stroke-width: 0.15; }
.values-live .petal-pagination { display: none !important; }
