:root {
  --ink: #07120f;
  --ink-soft: #0c1915;
  --paper: #e9eee9;
  --muted: #91a098;
  --line: rgba(201, 220, 207, 0.16);
  --sage: #8eb8a0;
  --water: #718f94;
  --earth: #b29d7f;
  --page: min(100%, 46rem);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  color: var(--paper);
  font-family: "SF Pro Display", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  scroll-behavior: smooth;
}

body {
  min-width: 20rem;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 12%, rgba(86, 122, 102, 0.12), transparent 28rem),
    linear-gradient(180deg, #07120f 0%, #091410 55%, #06100d 100%);
}

button,
a {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.ambient {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.5;
  filter: blur(44px);
}

.ambient i {
  position: absolute;
  display: block;
  width: 18rem;
  aspect-ratio: 1;
  border-radius: 44% 56% 58% 42%;
  mix-blend-mode: screen;
}

.ambient__sage {
  top: 6%;
  left: 24%;
  background: rgba(66, 118, 90, 0.16);
  animation: drift-sage 18s ease-in-out infinite alternate;
}

.ambient__water {
  top: 44%;
  right: -8rem;
  background: rgba(62, 102, 111, 0.13);
  animation: drift-water 22s ease-in-out infinite alternate;
}

.ambient__earth {
  bottom: -8rem;
  left: -5rem;
  background: rgba(135, 108, 72, 0.1);
  animation: drift-earth 24s ease-in-out infinite alternate;
}

main,
.state {
  position: relative;
  z-index: 1;
  width: var(--page);
  margin: 0 auto;
}

.state {
  display: grid;
  min-height: 100svh;
  padding: 2rem;
  place-content: center;
  text-align: center;
}

.state__mark {
  display: grid;
  width: 8rem;
  aspect-ratio: 1;
  margin: 0 auto 2rem;
  border: 1px solid rgba(142, 184, 160, 0.3);
  border-radius: 46% 54% 51% 49%;
  place-items: center;
  animation: breathe 4s ease-in-out infinite;
}

.state__mark span,
.brand__orb {
  display: block;
  width: 0.45rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 1.8rem rgba(142, 184, 160, 0.65);
}

.state__mark--quiet {
  animation: none;
  opacity: 0.65;
}

.state h1 {
  max-width: 20rem;
  margin: 0.9rem auto;
  font-size: clamp(1.8rem, 7vw, 2.6rem);
  font-weight: 350;
  letter-spacing: -0.04em;
}

.state > p:last-child {
  max-width: 22rem;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.eyebrow {
  margin: 0;
  color: var(--sage);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.24em;
}

.masthead {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: max(1.4rem, env(safe-area-inset-top)) 1.35rem 0;
}

.brand {
  display: inline-flex;
  gap: 0.65rem;
  align-items: center;
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.expiry {
  color: var(--muted);
  font-size: 0.65rem;
}

.opening {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 4rem;
  text-align: center;
}

.badge {
  width: min(76vw, 20rem);
  margin: 1.8rem auto 1.4rem;
  filter: drop-shadow(0 1.2rem 3.5rem rgba(54, 109, 84, 0.18));
}

.badge svg {
  display: block;
  width: 100%;
  overflow: visible;
}

.badge .badge-contour {
  transform-origin: center;
  animation: badge-arrive 1.8s cubic-bezier(0.21, 0.85, 0.35, 1) both;
}

.badge .badge-signal {
  stroke-dasharray: 280;
  stroke-dashoffset: 280;
  animation: draw-line 2.4s 0.8s ease forwards;
}

.opening__date {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.opening h1 {
  max-width: 22rem;
  margin: 0;
  font-size: clamp(2.25rem, 10vw, 4rem);
  font-weight: 280;
  letter-spacing: -0.065em;
  line-height: 1.13;
}

.opening__summary {
  max-width: 23rem;
  margin: 1.3rem 0 0;
  color: #afbab4;
  font-family: "Songti SC", "Noto Serif CJK SC", serif;
  font-size: 0.95rem;
  line-height: 1.9;
}

.scroll-cue {
  position: absolute;
  bottom: max(1.5rem, env(safe-area-inset-bottom));
  display: grid;
  width: 1.8rem;
  height: 2.8rem;
  border: 1px solid rgba(201, 220, 207, 0.2);
  border-radius: 1rem;
  place-items: start center;
}

.scroll-cue span {
  width: 0.22rem;
  height: 0.45rem;
  margin-top: 0.55rem;
  border-radius: 1rem;
  background: var(--sage);
  animation: scroll-cue 1.8s ease-in-out infinite;
}

.section {
  padding: 6.5rem 1.5rem;
  border-top: 1px solid var(--line);
}

.section__intro h2,
.closing h2 {
  max-width: 21rem;
  margin: 0.8rem 0 0;
  font-size: clamp(1.8rem, 7vw, 2.65rem);
  font-weight: 320;
  letter-spacing: -0.055em;
  line-height: 1.25;
}

.section__intro > p:last-child {
  max-width: 25rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.8;
}

.quality {
  margin-top: 3rem;
}

.quality__row {
  display: grid;
  grid-template-columns: 4.4rem 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}

.quality__gauge {
  width: 4.4rem;
}

.quality__gauge svg {
  display: block;
  width: 100%;
}

.quality__name {
  margin: 0 0 0.3rem;
  font-size: 0.92rem;
}

.quality__detail,
.quality__state {
  color: var(--muted);
  font-size: 0.68rem;
}

.quality__state {
  text-align: right;
}

.quality__state--good {
  color: var(--sage);
}

.charts {
  display: grid;
  gap: 4.5rem;
  margin-top: 3rem;
}

.chart__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.chart__header h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 450;
}

.chart__header span {
  color: var(--muted);
  font-size: 0.68rem;
}

.chart svg {
  display: block;
  width: 100%;
}

.chart .chart-line {
  stroke-dasharray: 620;
  stroke-dashoffset: 620;
}

.chart.is-visible .chart-line {
  animation: draw-line 2s 0.2s ease forwards;
}

.chart__note {
  margin: 1rem 0 0;
  color: #a8b4ad;
  font-size: 0.75rem;
  line-height: 1.7;
}

.journey {
  margin: 3rem 0 0;
  padding: 0;
  counter-reset: stage;
  list-style: none;
}

.journey li {
  position: relative;
  display: grid;
  min-height: 8rem;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding-bottom: 2.2rem;
  counter-increment: stage;
}

.journey li::before {
  content: "0" counter(stage);
  color: var(--sage);
  font-family: Georgia, serif;
  font-size: 0.75rem;
}

.journey li:not(:last-child)::after {
  position: absolute;
  top: 1.5rem;
  bottom: 0.4rem;
  left: 0.6rem;
  width: 1px;
  background: linear-gradient(var(--line), transparent);
  content: "";
}

.journey h3 {
  margin: -0.25rem 0 0.6rem;
  font-size: 1.15rem;
  font-weight: 420;
}

.journey p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.75;
}

.reflection {
  padding-top: 8rem;
  padding-bottom: 8rem;
  text-align: center;
}

.reflection blockquote {
  max-width: 26rem;
  margin: 1.5rem auto 0;
  font-family: "Songti SC", "Noto Serif CJK SC", serif;
  font-size: clamp(1.55rem, 7vw, 2.4rem);
  font-weight: 350;
  letter-spacing: -0.03em;
  line-height: 1.65;
}

.recommendations {
  margin: 2.8rem 0 0;
  padding: 0;
  list-style: none;
}

.recommendations li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.75rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  color: #bdc7c1;
  font-size: 0.85rem;
  line-height: 1.75;
}

.recommendations li::before {
  color: var(--sage);
  content: "↳";
}

.closing {
  display: flex;
  min-height: 90svh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.closing__ring {
  width: 4.5rem;
  aspect-ratio: 1;
  margin-bottom: 2rem;
  border: 1px solid rgba(142, 184, 160, 0.35);
  border-radius: 46% 54% 51% 49%;
  box-shadow: inset 0 0 2.5rem rgba(95, 144, 117, 0.1);
}

.closing > p:first-of-type {
  margin: 0;
  color: var(--sage);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
}

.closing h2 {
  margin-right: auto;
  margin-left: auto;
}

.closing button {
  width: min(100%, 22rem);
  min-height: 3.5rem;
  margin-top: 2.5rem;
  border: 1px solid rgba(173, 204, 185, 0.35);
  border-radius: 2rem;
  color: #dce7df;
  background: rgba(131, 173, 148, 0.12);
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.closing button:active {
  transform: scale(0.985);
}

.privacy-note {
  max-width: 24rem;
  margin: 1.2rem 0 0;
  color: #718078;
  font-size: 0.65rem;
  line-height: 1.7;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 1.4rem 1.5rem max(1.5rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: #65746c;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 900ms ease, transform 900ms cubic-bezier(0.21, 0.85, 0.35, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes breathe {
  0% { border-radius: 46% 54% 51% 49%; transform: scale(0.96); }
  50% { border-radius: 53% 47% 45% 55%; transform: scale(1.03); }
  100% { border-radius: 46% 54% 51% 49%; transform: scale(0.96); }
}

@keyframes badge-arrive {
  from { opacity: 0; transform: scale(0.86) rotate(-5deg); }
  to { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes draw-line {
  to { stroke-dashoffset: 0; }
}

@keyframes scroll-cue {
  0%, 100% { opacity: 0.2; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(0.95rem); }
}

@keyframes drift-sage {
  to { border-radius: 57% 43% 39% 61%; transform: translate(1rem, 4rem) scale(1.2); }
}

@keyframes drift-water {
  to { border-radius: 39% 61% 55% 45%; transform: translate(-4rem, 3rem) scale(0.9); }
}

@keyframes drift-earth {
  to { border-radius: 60% 40% 46% 54%; transform: translate(4rem, -2rem) scale(1.25); }
}

@media (min-width: 42rem) {
  .masthead,
  .section,
  .opening,
  .closing,
  footer {
    padding-right: 3rem;
    padding-left: 3rem;
  }

  .quality__row {
    grid-template-columns: 5rem 1fr auto;
  }
}

@media (hover: hover) {
  .closing button:hover {
    border-color: rgba(173, 204, 185, 0.6);
    background: rgba(131, 173, 148, 0.2);
  }
}

@media print {
  :root {
    --ink: #fff;
    --paper: #15201b;
    --muted: #5f6d65;
    --line: rgba(16, 35, 26, 0.16);
    --sage: #3f7559;
  }

  body {
    background: #fff;
  }

  .ambient,
  .scroll-cue,
  .closing button {
    display: none;
  }

  .opening,
  .closing {
    min-height: auto;
  }

  .section,
  .closing {
    break-inside: avoid;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

