/* A sequence of viewport-sized compositions; no wheel or touch interception. */
html { scroll-snap-type: y mandatory; scroll-padding-top: 0; }
body { --scene-height: 100svh; --scene-header: 76px; --scene-bottom: 64px; }
.site-header { position: fixed; z-index: 10; inset: 0 0 auto; height: var(--scene-header); padding-block: 16px; }
.site-header::before { content: ''; position: fixed; inset: 0 0 auto; height: var(--scene-header); background: #f6f1e8f2; backdrop-filter: blur(16px); border-bottom: 1px solid #8f7e6426; z-index: -1; }
.scene { min-height: var(--scene-height, 100svh); margin-block: 0; scroll-snap-align: start; scroll-snap-stop: always; display: flex; flex-direction: column; justify-content: center; padding-block: calc(var(--scene-header) + 28px) var(--scene-bottom); }
.scene > .wrap { margin-block: 0; }
.scene h1 { font-size: clamp(36px, 4vw, 58px); }
.scene h2 { font-size: clamp(30px, 3vw, 43px); }
.scene .description { font-size: 16px; margin-top: 20px; line-height: 1.85; }
.scene .eyebrow { margin-bottom: 18px; }
.hero.scene { display: grid; grid-template-columns: .82fr 1.18fr; gap: 56px; min-height: var(--scene-height, 100svh); }
.hero .garden-window { width: 100%; max-width: min(630px, calc((var(--scene-height, 100svh) - 208px) * 1.08)); justify-self: end; }
.hero .micro { margin-top: 20px; }
.hero .button { margin-top: 24px; }
.scene .split { gap: 56px; }
#record .record-window { max-width: 530px; justify-self: end; padding: 22px; }
#record .benefits { margin-top: 32px; padding-top: 22px; gap: 28px; }
.growth-scene { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.growth-collection { background: #f1ebdf; }
.scene-result { display: flex; align-items: center; justify-content: center; min-width: 0; }
.scene-result img { width: auto; height: auto; max-width: 100%; max-height: calc(var(--scene-height, 100svh) - 180px); border: 1px solid #8f7e6455; border-radius: 12px; box-shadow: 0 18px 50px #3c352a14; }
.result-caption { margin-top: 40px; padding-top: 22px; border-top: 1px solid #8f7e6444; }
.result-caption h3 { font-size: 21px; margin-bottom: 12px; }
.result-caption .latin { font-size: 23px; color: var(--muted); margin-bottom: 10px; }
.scene.sharing .split { grid-template-columns: 1.2fr .85fr; }
.editor-zoom { display: flex; flex-direction: column; align-items: flex-start; }
.editor-zoom picture { display: block; width: 100%; }
.editor-zoom img { object-fit: contain; width: 100%; height: auto; max-height: calc(var(--scene-height, 100svh) - 210px); border: 0; border-radius: 3.4% / 4.4%; box-shadow: 0 18px 50px #3c352a12; }
.editor-detail { border-radius: 3.4% / 4.4%; }
.sharing-note { margin-top: 22px; }
.pro .section-intro { margin-bottom: 26px; gap: 56px; }
.pro-story { gap: 56px; align-items: center; }
.pro-story figure { text-align: left; }
.pro-story figure > img { width: auto; height: auto; max-width: 100%; max-height: calc(var(--scene-height, 100svh) - 440px); }
.pro-story figcaption { font-size: 16px; padding-top: 14px; }
.pro-story figcaption span { font-size: 18px; }
.pro-benefit { padding: 16px 0; gap: 16px; }
.pro-benefit h3 { font-size: 17px; }
.pro-benefit p { font-size: 13px; margin-top: 6px; line-height: 1.75; }
.plan-line { padding-top: 16px; }
.pro-facts > .text-action { margin-top: 20px; }
.theme-spectrum { margin-top: 48px; gap: 24px; }
.swatch { height: clamp(70px, 15svh, 150px); }
.theme-caption { margin-top: 32px; }
.guide-grid { margin-top: 28px; }
.guide-grid img { height: min(25svh, 240px); }
.guide-grid h3 { margin-top: 16px; }
.guide-grid span { margin-top: 14px; }
.scene.start { position: relative; }
.start > .wrap { padding-top: 0; border-top: 0; }
.start footer.wrap { margin-top: 52px; padding-block: 24px 0; }
.start h2 { font-size: clamp(36px, 4vw, 56px); }
.scene-next { position: fixed; z-index: 8; bottom: 18px; left: 50%; transform: translateX(-50%); background: #f6f1e8dc; border: 1px solid #8f7e6444; border-radius: 24px; color: var(--muted); padding: 7px 16px; display: flex; align-items: center; gap: 18px; font-size: 11px; backdrop-filter: blur(10px); }
.scene-next > span:last-child { font-size: 18px; line-height: 1; }
.scene-next[hidden] { display: none; }
html:has(dialog[open]) { overflow: hidden; }
html:has(dialog[open]) .scene-next { visibility: hidden; }
@media (min-width: 701px) and (max-width: 1050px) {
  .scene .wrap, .hero.wrap { width: calc(100% - 72px); }
  .hero.scene, .scene .split, .growth-scene { gap: 32px; }
  .hero.scene { grid-template-columns: 1fr 1fr; }
  .hero .garden-window { max-width: 100%; }
  .scene h1 { font-size: 39px; }
  .scene h2 { font-size: 32px; }
  .scene .description { font-size: 14px; }
  .scene .split { grid-template-columns: 1fr 1fr; }
  #record .record-window { padding: 18px; }
  .record-window .latin { font-size: 27px; }
  .record-window .latin span { font-size: 22px; }
  .pro .section-intro, .pro-story { gap: 32px; }
  .pro-benefit h3 { font-size: 15px; }
  .pro-benefit p { font-size: 12px; }
}
@media (max-width: 700px) {
  body { --scene-header: 62px; --scene-bottom: 54px; }
  .site-header { padding-block: 10px; }
  .site-header nav { display: none; }
  .scene { padding-top: calc(var(--scene-header) + 20px); }
  .scene .wrap, .hero.wrap { width: calc(100% - 40px); }
  .scene h1 { font-size: clamp(31px, 8.6vw, 39px); line-height: 1.4; }
  .scene h2 { font-size: clamp(27px, 7.3vw, 34px); line-height: 1.42; }
  .scene .eyebrow { font-size: 10px; margin-bottom: 12px; }
  .scene .description { font-size: 14px; line-height: 1.8; margin-top: 14px; }
  .hero.scene { display: flex; align-items: stretch; gap: 24px; }
  .hero .description br:nth-child(2) { display: none; }
  .hero .button { min-height: 44px; margin-top: 18px; padding-block: 10px; font-size: 13px; }
  .hero .micro { display: none; }
  .hero .garden-window { width: min(100%, calc((var(--scene-height, 100svh) - 380px) * 1.1)); align-self: center; }
  .hero .plant-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .hero .app-header { padding: 10px 12px; }
  .hero .app-content { padding: 12px; }
  .hero .plant-card figcaption { padding: 5px 6px; font-size: 9px; }
  .hero .plant-card small { display: none; }
  .hero .app-section { margin-bottom: 10px; }
  .hero .app-section > span:first-child { font-size: 14px; }
  .hero .app-nav { margin-top: 10px; padding: 9px 4px; font-size: 8px; }
  .scene .split, .growth-scene { display: flex; flex-direction: column; gap: 22px; align-items: stretch; }
  #record .record-window { width: 100%; max-width: 380px; align-self: center; padding: 16px; }
  #record .record-window .latin { font-size: 24px; }
  #record .record-window .latin span { display: inline; font-size: 18px; }
  #record .record-pair { margin-top: 12px; padding-top: 12px; gap: 12px; }
  #record .record-window > .micro { font-size: 10px; margin-top: 8px; }
  #record .record-pair figcaption { font-size: 10px; padding-top: 6px; }
  #record .benefits { grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; padding-top: 16px; }
  #record .benefits h3 { font-size: 12px; line-height: 1.6; }
  #record .benefits p { font-size: 11px; line-height: 1.7; margin-top: 6px; }
  #record .benefits p br { display: none; }
  .growth-scene { gap: 22px; }
  .result-caption { margin-top: 16px; padding-top: 12px; }
  .result-caption h3 { font-size: 16px; margin-bottom: 4px; }
  .result-caption .latin { font-size: 18px; margin-bottom: 3px; }
  .result-caption .latin br { display: none; }
  .result-caption .micro { font-size: 10px; }
  .scene-result img { max-height: calc(var(--scene-height, 100svh) - 410px); max-width: 100%; border-radius: 9px; }
  .growth-collection .scene-result img { max-height: calc(var(--scene-height, 100svh) - 440px); }
  .scene.sharing .split { flex-direction: column-reverse; gap: 20px; }
  .sharing .scene-copy { width: 100%; }
  .sharing-note { font-size: 12px; line-height: 1.7; margin: 12px 0 0; }
  .sharing-note br { display: none; }
  .sharing .split > div:last-child > .micro { display: none; }
  .editor-zoom { align-items: center; }
  .editor-zoom picture { width: auto; max-width: 100%; }
  .editor-zoom img { width: auto; max-width: 100%; max-height: calc(var(--scene-height, 100svh) - 450px); border-radius: 7.8% / 4.4%; }
  .editor-detail { border-radius: 7.8% / 4.4%; }
  .editor-zoom span { font-size: 10px; margin-top: 8px; }
  .pro .section-intro { display: block; margin-bottom: 16px; }
  .pro .section-intro .description { margin-top: 12px; font-size: 13px; }
  .pro .section-intro .description br { display: none; }
  .pro-story { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
  .pro-story figure { display: flex; align-items: center; gap: 16px; }
  .pro-story figure > img { width: 35%; max-height: 150px; }
  .pro-story figcaption { flex: 1; padding-top: 0; font-size: 13px; }
  .pro-story figcaption span { display: block; font-size: 15px; margin-top: 8px; }
  .pro-benefit { padding: 9px 0; gap: 12px; }
  .pro-benefit h3 { font-size: 14px; }
  .pro-benefit p { font-size: 12px; line-height: 1.7; margin-top: 4px; }
  .plan-line { padding-top: 12px; gap: 14px; }
  .plan-line p { font-size: 10px; margin-top: 6px; }
  .pro-facts > .text-action { margin-top: 14px; font-size: 12px; }
  #themes .section-intro { display: block; margin-bottom: 28px; }
  .theme-spectrum { grid-template-columns: 1fr 1fr; margin-top: 24px; gap: 24px 16px; }
  .swatch { height: clamp(50px, 9svh, 90px); }
  .theme-caption { margin-top: 24px; font-size: 12px; }
  .guide-grid { display: flex; flex-direction: column; gap: 22px; margin-top: 24px; }
  .guide-grid > button { display: grid; grid-template-columns: 110px 1fr; column-gap: 18px; align-content: center; }
  .guide-grid img { grid-row: 1 / 4; width: 110px; height: 110px; }
  .guide-grid h3 { font-size: 15px; margin-top: 0; }
  .guide-grid p { font-size: 12px; margin-top: 6px; }
  .guide-grid p br { display: none; }
  .guide-grid span { font-size: 11px; margin-top: 8px; }
  .scene.start { padding-bottom: 28px; }
  .start h2 { font-size: 31px; }
  .start footer.wrap { margin-top: 48px; padding-top: 22px; gap: 20px; }
  .footer-links { font-size: 11px; gap: 18px; }
  .scene-next { bottom: 12px; padding: 6px 14px; font-size: 10px; }
}
/* At browser zoom / very short landscape sizes, preserve all content and scrolling. */
@media (max-width: 700px) and (max-height: 760px) {
  .hero .garden-window { width: min(100%, calc((var(--scene-height, 100svh) - 500px) * 1.1)); }
  #record .benefits p { display: none; }
  #record .record-pair img { width: auto; max-height: 120px; margin-inline: auto; }
  .scene-result img { max-height: calc(var(--scene-height, 100svh) - 435px); }
  .pro-benefit p { display: none; }
  .pro-benefit { padding-block: 8px; }
  .guide-grid { gap: 20px; }
}
@media (min-width: 701px) and (max-height: 850px) {
  .scene h2 { font-size: 34px; }
  .pro .section-intro .description { font-size: 14px; }
  .pro-benefit { padding-block: 12px; }
  .pro-benefit h3 { font-size: 16px; }
  .pro-benefit p { font-size: 12px; }
}
@media (min-width: 701px) and (max-height: 650px) {
  .scene { min-height: var(--scene-height, 100svh); }
  .hero .garden-window { max-width: 400px; }
  .scene-result img { max-height: 360px; }
  .editor-zoom img { max-height: 360px; }
  .pro-story figure > img { max-height: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; scroll-snap-type: y proximity; }
}

/* Follow the visible viewport as mobile browser chrome opens and closes. */
@supports (height:100dvh){body{--scene-height:100dvh}}
