:root {
  color-scheme: light;
  --bg: #f5f1e8;
  --ink: #1e2b2a;
  --muted: #687673;
  --line: rgba(30, 43, 42, 0.14);
  --surface: rgba(255, 253, 247, 0.72);
  --surface-strong: #fffdf7;
  --sage: #6f9d8f;
  --moss: #245f57;
  --clay: #bf735b;
  --lavender: #8986bf;
  --shadow: 0 24px 80px rgba(31, 45, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 10% 4%, rgba(111, 157, 143, 0.28), transparent 34rem),
    radial-gradient(ellipse at 90% 8%, rgba(137, 134, 191, 0.22), transparent 32rem),
    linear-gradient(180deg, #faf7ef 0%, var(--bg) 72%);
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.72;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(30, 43, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 43, 42, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 86%);
}

a {
  color: inherit;
  text-decoration: none;
}

#calm-field {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

.site-nav,
main,
footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 780;
}

.mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.58);
  color: var(--moss);
  box-shadow: 0 10px 30px rgba(36, 95, 87, 0.12);
}

nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

nav a:hover {
  color: var(--moss);
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.94fr);
  align-items: center;
  gap: 54px;
  padding: 44px 0 86px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--clay);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(46px, 7vw, 86px);
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4.6vw, 56px);
  line-height: 1.16;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.28;
  letter-spacing: 0;
}

.lead {
  max-width: 650px;
  color: var(--muted);
  font-size: 19px;
}

.breath-panel {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 253, 247, 0.76), rgba(255, 253, 247, 0.38)),
    radial-gradient(circle at center, rgba(111, 157, 143, 0.18), transparent 56%);
  box-shadow: var(--shadow);
}

.breath-orbit {
  position: absolute;
  inset: 46px 46px 128px;
  display: grid;
  place-items: center;
}

.breath-orbit span {
  position: absolute;
  width: 62%;
  aspect-ratio: 1;
  border: 1px solid rgba(36, 95, 87, 0.22);
  border-radius: 46% 54% 50% 50%;
  animation: breathe 7s ease-in-out infinite;
}

.breath-orbit span:nth-child(2) {
  width: 76%;
  border-color: rgba(137, 134, 191, 0.22);
  animation-delay: -1.6s;
}

.breath-orbit span:nth-child(3) {
  width: 48%;
  border-color: rgba(191, 115, 91, 0.24);
  animation-delay: -3.2s;
}

.breath-core {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.breath-core strong {
  display: block;
  color: var(--moss);
  font-size: 58px;
  line-height: 1;
}

.breath-core span {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.panel-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 24px;
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.68);
  color: var(--muted);
}

.panel-caption p {
  margin-bottom: 0;
}

.section {
  padding: 86px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 30px;
}

.theme-grid,
.note-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.theme-card,
.note {
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 60px rgba(31, 45, 42, 0.09);
  transition: transform 360ms ease, background 360ms ease, border-color 360ms ease;
}

.theme-card:hover,
.note:hover {
  transform: translateY(-8px);
  border-color: rgba(36, 95, 87, 0.28);
  background: var(--surface-strong);
}

.theme-card span {
  display: block;
  margin-bottom: 76px;
  color: var(--sage);
  font-weight: 860;
}

.theme-card p,
.note p,
.room-copy p {
  color: var(--muted);
}

.room-section {
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  align-items: center;
  gap: 48px;
}

.room-visual {
  position: relative;
  min-height: 430px;
}

.wave-card {
  position: absolute;
  width: 72%;
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(111, 157, 143, 0.22), rgba(137, 134, 191, 0.16));
  box-shadow: var(--shadow);
  animation: float-card 8s ease-in-out infinite;
}

.wave-card.one {
  top: 10px;
  left: 0;
}

.wave-card.two {
  top: 84px;
  right: 0;
  background: linear-gradient(135deg, rgba(191, 115, 91, 0.18), rgba(255, 253, 247, 0.55));
  animation-delay: -2s;
}

.wave-card.three {
  bottom: 0;
  left: 12%;
  background:
    repeating-linear-gradient(90deg, rgba(36, 95, 87, 0.16) 0 1px, transparent 1px 20px),
    rgba(255, 253, 247, 0.58);
  animation-delay: -4s;
}

.note-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.note {
  min-height: 190px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 760ms ease, transform 760ms ease;
  transition-delay: var(--delay, 0ms);
}

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

@keyframes breathe {
  0%,
  100% {
    transform: scale(0.82) rotate(0deg);
    opacity: 0.58;
  }
  50% {
    transform: scale(1.08) rotate(18deg);
    opacity: 1;
  }
}

@keyframes float-card {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-1.2deg);
  }
  50% {
    transform: translate3d(0, -18px, 0) rotate(1deg);
  }
}

@media (max-width: 940px) {
  .hero,
  .room-section {
    grid-template-columns: 1fr;
  }

  .theme-grid,
  .note-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-nav,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    flex-wrap: wrap;
  }

  h1 {
    font-size: 43px;
  }

  .theme-grid,
  .note-list {
    grid-template-columns: 1fr;
  }

  .breath-panel {
    min-height: 470px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
