:root {
  color-scheme: dark;
  --ink: #0b0d0a;
  --surface: #121510;
  --surface-cool: #111719;
  --paper: #e5e7e1;
  --paper-ink: #171a16;
  --text: #f1eee4;
  --muted: #b8b2a4;
  --line: #34382f;
  --accent: #d7ef70;
  --accent-deep: #718331;
  --warm: #d4b273;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", sans-serif;
  background: var(--ink);
  color: var(--text);
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
}

body,
button,
a {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 11px 15px;
  border-radius: 4px;
  background: var(--accent);
  color: #11140d;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(calc(100% - 48px), 1240px);
  margin: 0 auto;
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  height: 2px;
  background: transparent;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 70;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 32px;
  min-height: 84px;
  padding: max(16px, env(safe-area-inset-top)) max(24px, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid transparent;
  transition: min-height 220ms ease, background-color 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled,
.site-header.is-menu-open {
  min-height: 68px;
  border-color: rgba(210, 214, 202, 0.13);
  background: rgba(11, 13, 10, 0.94);
  backdrop-filter: blur(18px);
}

.site-brand,
.footer-brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.site-brand img,
.footer-brand img {
  border: 1px solid rgba(215, 239, 112, 0.42);
  border-radius: 8px;
}

.site-brand span,
.footer-brand span {
  display: grid;
  gap: 2px;
}

.site-brand strong,
.footer-brand strong {
  font-family: "Songti TC", "Noto Serif TC", serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}

.site-brand small,
.footer-brand small {
  color: #b9b5aa;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.4;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 30px;
}

.site-nav a {
  color: #ddd9ce;
  font-size: 14px;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--accent);
}

.site-nav .nav-action {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 18px;
  border: 1px solid rgba(215, 239, 112, 0.6);
  border-radius: 6px;
  color: var(--accent);
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  display: flex;
  min-height: calc(100dvh - 56px);
  align-items: flex-end;
  isolation: isolate;
  overflow: hidden;
  background: #090b09;
}

.hero-image,
.hero-veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  z-index: -2;
  object-fit: cover;
  object-position: center 54%;
  transform: scale(1.02);
}

.hero-veil {
  z-index: -1;
  background: rgba(3, 5, 3, 0.48);
  box-shadow: inset 0 -260px 180px -100px rgba(4, 5, 4, 0.92);
}

.hero-content {
  padding-top: 150px;
  padding-bottom: 64px;
}

.eyebrow,
.section-index,
.mode-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.hero h1,
.opening-statement h2,
.ritual-section h2,
.modes-section h2,
.inside-section h2,
.principles-section h2,
.download-section h2 {
  margin: 0;
  font-family: "Songti TC", "Noto Serif TC", serif;
  font-weight: 550;
}

.hero h1 {
  margin-top: 14px;
  font-size: 88px;
  line-height: 1.02;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.7);
}

.hero-lede {
  max-width: 31em;
  margin: 24px 0 0;
  color: #e2ded3;
  font-size: 20px;
  line-height: 1.75;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.8);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 32px;
}

.pressable {
  position: relative;
  overflow: hidden;
  transition: transform 140ms cubic-bezier(0.22, 1, 0.36, 1), background-color 180ms ease, color 180ms ease;
}

.pressable::after,
.mode-tab::after {
  position: absolute;
  inset: -90%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: scale(0.12);
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), opacity 180ms ease;
}

.pressable:active,
.mode-tab:active {
  transform: scale(0.985);
}

.pressable:active::after,
.mode-tab:active::after {
  opacity: 0.68;
  transform: scale(1);
}

.primary-link {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  gap: 28px;
  justify-content: space-between;
  padding: 0 22px;
  border-radius: 6px;
  background: var(--accent);
  color: #11140d;
  font-weight: 750;
  text-decoration: none;
}

.launch-note {
  color: #c0bbaf;
  font-size: 14px;
}

.hero-promises {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 26px;
  margin: 34px 0 0;
  padding: 0;
  color: #c9c4b8;
  font-size: 13px;
  list-style: none;
}

.hero-promises li {
  position: relative;
  padding-left: 14px;
}

.hero-promises li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.js .hero-enter {
  opacity: 0;
  transform: translateY(18px);
}

.js .is-ready .hero-enter {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 600ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js .is-ready .hero-enter:nth-child(2) { transition-delay: 80ms; }
.js .is-ready .hero-enter:nth-child(3) { transition-delay: 150ms; }
.js .is-ready .hero-enter:nth-child(4) { transition-delay: 220ms; }
.js .is-ready .hero-enter:nth-child(5) { transition-delay: 290ms; }

.opening-statement {
  background: var(--paper);
  color: var(--paper-ink);
  padding: 112px 0;
}

.statement-grid {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 72px;
}

.opening-statement .section-index,
.inside-section .section-index {
  color: #62675d;
}

.opening-statement h2 {
  max-width: 13ch;
  font-size: 58px;
  line-height: 1.2;
}

.opening-statement p:last-child {
  max-width: 42em;
  margin: 28px 0 0;
  color: #4f544b;
  font-size: 18px;
  line-height: 1.85;
}

.ritual-section,
.modes-section,
.inside-section,
.principles-section,
.download-section {
  scroll-margin-top: 74px;
}

.ritual-section {
  padding: 126px 0;
  background: var(--ink);
}

.ritual-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  align-items: center;
  gap: 86px;
}

.ritual-section h2,
.modes-section h2,
.inside-section h2,
.principles-section h2,
.download-section h2 {
  margin-top: 17px;
  font-size: 50px;
  line-height: 1.22;
}

.ritual-steps {
  margin: 44px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.ritual-steps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}

.ritual-steps > li > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #66723a;
  border-radius: 50%;
  color: var(--accent);
  font-weight: 750;
}

.ritual-steps strong {
  font-size: 18px;
  font-weight: 700;
}

.ritual-steps p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.parcel-figure {
  margin: 0;
}

.parcel-figure img {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid #3d4238;
  border-radius: 8px;
  object-fit: cover;
}

.parcel-figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 15px;
  color: #aaa598;
  font-size: 13px;
  line-height: 1.5;
}

.parcel-figure figcaption span {
  color: var(--warm);
  font-weight: 700;
}

.modes-section {
  padding: 126px 0;
  border-top: 1px solid #273034;
  border-bottom: 1px solid #273034;
  background: var(--surface-cool);
}

.modes-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(400px, 1.1fr);
  gap: 96px;
}

.section-copy {
  max-width: 37em;
  margin: 24px 0 0;
  color: #b9c0bc;
  font-size: 17px;
  line-height: 1.8;
}

.mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 36px;
  border: 1px solid #465054;
  border-radius: 7px;
  padding: 4px;
}

.mode-tab {
  position: relative;
  min-height: 48px;
  overflow: hidden;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #bbc2be;
  cursor: pointer;
}

.mode-tab[aria-selected="true"] {
  background: var(--accent);
  color: #11140d;
  font-weight: 750;
}

.mode-stage {
  display: grid;
  min-height: 430px;
  align-content: center;
  border-top: 1px solid #485155;
  border-bottom: 1px solid #485155;
  padding: 48px 0;
}

.mode-visual {
  display: flex;
  height: 110px;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.mode-visual span {
  width: 5px;
  height: 4px;
  border-radius: 4px;
  background: var(--accent);
  opacity: 0.82;
  transition: height 340ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease;
}

.mode-stage[data-mode-stage="ambient"] .mode-visual span:nth-child(1),
.mode-stage[data-mode-stage="ambient"] .mode-visual span:nth-child(7) { height: 18px; opacity: 0.45; }
.mode-stage[data-mode-stage="ambient"] .mode-visual span:nth-child(2),
.mode-stage[data-mode-stage="ambient"] .mode-visual span:nth-child(6) { height: 38px; opacity: 0.58; }
.mode-stage[data-mode-stage="ambient"] .mode-visual span:nth-child(3),
.mode-stage[data-mode-stage="ambient"] .mode-visual span:nth-child(5) { height: 58px; opacity: 0.72; }
.mode-stage[data-mode-stage="ambient"] .mode-visual span:nth-child(4) { height: 74px; }
.mode-stage[data-mode-stage="asmr"] .mode-visual span:nth-child(1) { height: 25px; }
.mode-stage[data-mode-stage="asmr"] .mode-visual span:nth-child(2) { height: 66px; }
.mode-stage[data-mode-stage="asmr"] .mode-visual span:nth-child(3) { height: 39px; }
.mode-stage[data-mode-stage="asmr"] .mode-visual span:nth-child(4) { height: 96px; }
.mode-stage[data-mode-stage="asmr"] .mode-visual span:nth-child(5) { height: 48px; }
.mode-stage[data-mode-stage="asmr"] .mode-visual span:nth-child(6) { height: 74px; }
.mode-stage[data-mode-stage="asmr"] .mode-visual span:nth-child(7) { height: 30px; }

.mode-panel {
  animation: panel-enter 280ms ease both;
}

.mode-panel h3 {
  max-width: 17ch;
  margin: 9px 0 0;
  font-family: "Songti TC", "Noto Serif TC", serif;
  font-size: 32px;
  font-weight: 550;
  line-height: 1.35;
}

.mode-panel > p:last-child {
  max-width: 39em;
  margin: 18px 0 0;
  color: #b9c0bc;
  font-size: 16px;
  line-height: 1.8;
}

.mode-kicker {
  color: var(--accent);
}

.inside-section {
  padding: 122px 0 132px;
  background: var(--paper);
  color: var(--paper-ink);
}

.section-heading {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  column-gap: 72px;
}

.section-heading h2 {
  max-width: 18ch;
  margin-top: 0;
}

.section-heading > p:last-child {
  grid-column: 2;
  max-width: 43em;
  margin: 20px 0 0;
  color: #565b52;
  font-size: 16px;
  line-height: 1.75;
}

.screen-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin-top: 68px;
}

.screen-gallery figure {
  margin: 0;
}

.screen-gallery figure:nth-child(2) {
  margin-top: 58px;
}

.screen-gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 660 / 1434;
  border: 1px solid #b8bcb4;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 28px 60px rgba(27, 32, 27, 0.18);
}

.screen-gallery figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: #5b6057;
  font-size: 13px;
  line-height: 1.5;
}

.screen-gallery figcaption span {
  color: #242820;
  font-weight: 750;
}

.principles-section {
  padding: 124px 0;
  background: var(--surface);
}

.principles-section h2 {
  max-width: 17ch;
}

.principle-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 58px;
  border-top: 1px solid var(--line);
}

.principle-list article {
  min-height: 250px;
  padding: 28px 34px 28px 0;
  border-bottom: 1px solid var(--line);
}

.principle-list article + article {
  padding-left: 34px;
  border-left: 1px solid var(--line);
}

.principle-list span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 750;
}

.principle-list h3 {
  margin: 64px 0 0;
  font-size: 23px;
  font-weight: 650;
}

.principle-list p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.boundary-note {
  max-width: 54em;
  margin: 36px 0 0;
  color: #c6c2b7;
  font-size: 14px;
  line-height: 1.8;
}

.download-section {
  padding: 100px 0;
  background: var(--accent);
  color: #11140d;
}

.download-section .section-index {
  color: #4d581e;
}

.download-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(390px, 0.9fr);
  gap: 90px;
  align-items: end;
}

.download-section h2 {
  max-width: 15ch;
}

.download-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.store-link {
  display: grid;
  min-height: 72px;
  align-content: center;
  padding: 0 18px;
  border: 1px solid #20251a;
  border-radius: 7px;
  background: #11140d;
  color: #f1eee4;
  text-decoration: none;
}

.store-link small {
  font-size: 9px;
  line-height: 1.3;
}

.store-link strong {
  margin-top: 2px;
  font-size: 18px;
  line-height: 1.2;
}

.store-link.is-pending {
  border-color: rgba(17, 20, 13, 0.45);
  background: transparent;
  color: #283015;
}

.download-actions > p {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  color: #394215;
  font-size: 12px;
  line-height: 1.65;
}

.site-footer {
  padding: 48px 0 max(50px, env(safe-area-inset-bottom));
  background: #090b09;
}

.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 34px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 24px;
}

.site-footer nav a {
  color: #c6c1b5;
  font-size: 13px;
  text-underline-offset: 4px;
}

.site-footer p {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding-top: 20px;
  border-top: 1px solid #2c2f29;
  color: #8f8b81;
  font-size: 12px;
  line-height: 1.7;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 600ms ease, transform 680ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes panel-enter {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .hero h1 { font-size: 70px; }
  .opening-statement h2 { font-size: 48px; }
  .ritual-grid,
  .modes-grid { grid-template-columns: 1fr; gap: 58px; }
  .parcel-figure { width: min(100%, 680px); }
  .mode-stage { min-height: 360px; }
  .download-grid { grid-template-columns: 1fr; gap: 46px; }
}

@media (max-width: 760px) {
  .shell { width: min(calc(100% - 32px), 1240px); }
  .site-header { min-height: 72px; padding-right: 16px; padding-left: 16px; }
  .site-brand small { display: none; }
  .site-brand strong { font-size: 18px; }
  .site-brand img { width: 44px; height: 44px; }
  .menu-toggle {
    position: relative;
    display: grid;
    justify-self: end;
    width: 48px;
    height: 48px;
    place-content: center;
    gap: 6px;
    border: 1px solid #4a4e44;
    border-radius: 7px;
    background: rgba(11, 13, 10, 0.74);
    color: var(--text);
  }
  .menu-toggle span:not(.sr-only) { display: block; width: 20px; height: 1px; background: currentColor; transition: transform 180ms ease; }
  .site-header.is-menu-open .menu-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .site-header.is-menu-open .menu-toggle span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    padding: 8px 16px 20px;
    border-bottom: 1px solid #34382f;
    background: rgba(11, 13, 10, 0.98);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 200ms ease;
  }
  .site-header.is-menu-open .site-nav { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .site-nav a { display: flex; min-height: 48px; align-items: center; border-bottom: 1px solid #292d27; }
  .site-nav .nav-action { margin-top: 10px; justify-content: center; }
  .hero { min-height: calc(100dvh - 42px); }
  .hero-image { object-position: 58% center; }
  .hero-veil { background: rgba(3, 5, 3, 0.6); box-shadow: inset 0 -220px 150px -80px rgba(4, 5, 4, 0.92); }
  .hero-content { padding-top: 118px; padding-bottom: 42px; }
  .hero h1 { font-size: 58px; }
  .hero-lede { max-width: 24em; margin-top: 18px; font-size: 17px; line-height: 1.7; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 14px; margin-top: 24px; }
  .hero-promises { gap: 7px 18px; margin-top: 24px; }
  .opening-statement,
  .ritual-section,
  .modes-section,
  .inside-section,
  .principles-section { padding: 82px 0; }
  .statement-grid,
  .section-heading { grid-template-columns: 1fr; gap: 20px; }
  .section-heading > p:last-child { grid-column: 1; }
  .opening-statement h2,
  .ritual-section h2,
  .modes-section h2,
  .inside-section h2,
  .principles-section h2,
  .download-section h2 { font-size: 39px; }
  .opening-statement p:last-child { margin-top: 20px; font-size: 16px; }
  .ritual-grid,
  .modes-grid { gap: 46px; }
  .mode-stage { min-height: 330px; padding: 38px 0; }
  .screen-gallery { display: flex; width: calc(100% + 16px); gap: 18px; margin-top: 44px; padding: 4px 16px 26px 0; overflow-x: auto; scroll-snap-type: x mandatory; }
  .screen-gallery figure { flex: 0 0 min(78vw, 310px); scroll-snap-align: start; }
  .screen-gallery figure:nth-child(2) { margin-top: 0; }
  .principle-list { grid-template-columns: 1fr; margin-top: 38px; }
  .principle-list article { min-height: 0; padding: 24px 0 28px; }
  .principle-list article + article { padding-left: 0; border-left: 0; }
  .principle-list h3 { margin-top: 34px; }
  .download-section { padding: 78px 0; }
  .download-grid { gap: 36px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .site-footer nav { justify-content: flex-start; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 50px; }
  .hero-content { padding-bottom: 32px; }
  .hero-promises { display: grid; }
  .opening-statement h2,
  .ritual-section h2,
  .modes-section h2,
  .inside-section h2,
  .principles-section h2,
  .download-section h2 { font-size: 35px; }
  .mode-tabs { grid-template-columns: 1fr; }
  .mode-tab { min-height: 44px; }
  .mode-panel h3 { font-size: 28px; }
  .download-actions { grid-template-columns: 1fr; }
  .download-actions > p { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { animation: none !important; transition: none !important; }
  .js .hero-enter,
  .js [data-reveal] { opacity: 1; transform: none; }
  .scroll-progress { display: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header.is-scrolled,
  .site-header.is-menu-open,
  .site-nav { background: #0b0d0a; backdrop-filter: none; }
}
