@import url('https://fonts.googleapis.com/css2?family=Anuphan:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --cream: #f3efe6;
  --cream-deep: #e7e0d2;
  --ink: #243028;
  --muted: #6d766f;
  --sage: #6b8f71;
  --sage-deep: #54785a;
  --white: #fbf9f4;
  --line: rgba(36, 48, 40, 0.12);
  --hero-veil: linear-gradient(180deg, rgba(36,48,40,.25) 0%, rgba(36,48,40,.45) 50%, rgba(36,48,40,.78) 100%);
  --font: 'Anuphan', sans-serif;
  --mono: 'IBM Plex Mono', 'Anuphan', monospace;
  --max: 1100px;
  --nav-h: 74px;
  --demo-h: 48px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse 70% 40% at 10% 0%, rgba(107, 143, 113, 0.16), transparent 55%),
    var(--cream);
  line-height: 1.65;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.mono { font-family: var(--mono); }

.demo-bar {
  position: sticky; top: 0; z-index: 60;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 0.55rem 1.25rem; background: var(--ink); color: #fff; font-size: 0.82rem;
}
.demo-bar strong {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: #b7d0bb; font-weight: 500;
}
.demo-bar__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.demo-bar a {
  padding: 0.35rem 0.75rem; border: 1px solid rgba(255,255,255,.25); font-size: 0.78rem; font-weight: 500;
}
.demo-bar a.is-primary { background: var(--sage); border-color: var(--sage); }

.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 40; height: var(--nav-h);
}
.site-header.is-solid {
  position: fixed; top: var(--demo-h);
  background: rgba(243, 239, 230, 0.94); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header.is-solid .brand,
.site-header.is-solid .nav a { color: var(--ink); }
.site-header.is-solid .nav-cta { background: var(--sage); color: #fff !important; }
.site-header.is-solid .menu-toggle { color: var(--ink); border-color: var(--line); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; height: var(--nav-h);
}
.brand {
  font-weight: 700; font-size: 1.3rem; letter-spacing: -.03em; color: #fff;
  display: flex; align-items: baseline; gap: .4rem;
}
.brand em { font-style: normal; font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; opacity: .7; font-weight: 500; }
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a { color: rgba(255,255,255,.9); font-weight: 600; font-size: .92rem; }
.nav-cta {
  padding: .45rem .95rem; border: 1px solid rgba(255,255,255,.45); font-weight: 700 !important;
}
.menu-toggle {
  display: none; border: 1px solid rgba(255,255,255,.45); background: transparent;
  color: #fff; padding: .4rem .75rem; font-weight: 700; cursor: pointer;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .9rem 1.35rem; font-weight: 700; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--sage { background: var(--sage); color: #fff; }
.btn--sage:hover { background: var(--sage-deep); }
.btn--ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.1); }
.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; }

.hero {
  position: relative; min-height: min(100svh, 820px);
  display: grid; align-items: end; color: #fff; overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  animation: ken 22s ease-in-out infinite alternate;
}
@keyframes ken {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}
.hero__veil { position: absolute; inset: 0; background: var(--hero-veil); }
.hero__content {
  position: relative; z-index: 1; padding: calc(var(--nav-h) + 2rem) 0 4rem; max-width: 36rem;
}
.hero__brand {
  font-size: clamp(3.2rem, 10vw, 5.5rem); font-weight: 700; letter-spacing: -.04em;
  line-height: .95; margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(1.35rem, 2.8vw, 1.85rem); font-weight: 600; letter-spacing: -.025em;
  line-height: 1.4; margin-bottom: .85rem; max-width: 18ch;
}
.hero__lead { color: rgba(255,255,255,.78); margin-bottom: 1.6rem; max-width: 36ch; font-weight: 400; }

.section { padding: 5rem 0; }
.section__head { margin-bottom: 2.25rem; max-width: 34rem; }
.label {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--sage-deep); font-weight: 500; margin-bottom: .65rem;
}
.section__head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; letter-spacing: -.03em;
  line-height: 1.25; margin-bottom: .6rem;
}
.section__head p { color: var(--muted); }

.rhythm {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .85rem;
}
.rhythm article {
  background: var(--white); border: 1px solid var(--line); padding: 1.4rem 1.2rem;
  transition: transform .25s var(--ease), border-color .25s;
}
.rhythm article:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--sage) 45%, transparent); }
.rhythm article.is-focus { background: var(--sage); color: #fff; border-color: var(--sage); }
.rhythm article.is-focus .mono, .rhythm article.is-focus p { color: rgba(255,255,255,.75); }
.rhythm .mono { font-size: .72rem; color: var(--sage); display: block; margin-bottom: .65rem; }
.rhythm h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: .35rem; }
.rhythm p { color: var(--muted); font-size: .9rem; }

.practice { background: var(--cream-deep); }
.practice__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.5rem; align-items: center;
}
.practice__copy h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.35rem); font-weight: 700; letter-spacing: -.03em;
  margin: .35rem 0 .75rem;
}
.practice__copy > p { color: var(--muted); margin-bottom: 1.75rem; max-width: 40ch; }
.practice__copy ol { list-style: none; display: grid; gap: 1.1rem; }
.practice__copy li { display: grid; gap: .2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.practice__copy strong { font-size: 1.05rem; font-weight: 700; letter-spacing: -.02em; }
.practice__copy span { color: var(--muted); font-size: .95rem; }
.practice__visual { overflow: hidden; aspect-ratio: 4 / 5; background: var(--ink); }
.practice__visual img { width: 100%; height: 100%; object-fit: cover; }

.gallery { padding-bottom: 3.5rem; }
.gallery-row {
  width: min(100% - 1.5rem, var(--max)); margin-inline: auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem;
}
.gallery-row figure { margin: 0; overflow: hidden; position: relative; aspect-ratio: 4 / 5; background: var(--cream-deep); }
.gallery-row img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery-row figure:hover img { transform: scale(1.05); }
.gallery-row figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem;
  background: linear-gradient(transparent, rgba(36,48,40,.75)); color: #fff;
  font-weight: 600; font-size: .92rem; letter-spacing: -.015em;
}

.passes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.passes article {
  background: var(--white); border: 1px solid var(--line); padding: 1.75rem 1.4rem;
}
.passes article.is-featured {
  background: var(--ink); color: #fff; border-color: var(--ink);
}
.passes article.is-featured p { color: rgba(255,255,255,.7); }
.passes h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: .5rem; }
.price { font-size: 2rem; font-weight: 700; letter-spacing: -.03em; margin-bottom: .5rem; color: var(--sage-deep); }
.passes article.is-featured .price { color: #c5dfc9; }
.passes article > p:last-child { color: var(--muted); font-size: .95rem; }

.join { background: var(--ink); color: #fff; padding: 5rem 0; }
.join .label { color: #b7d0bb; }
.join h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.35rem); font-weight: 700; letter-spacing: -.03em;
  margin: .4rem 0 .75rem; max-width: 14ch;
}
.join__grid > div > p { color: rgba(255,255,255,.65); margin-bottom: 1.5rem; max-width: 36ch; }
.join__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.info { list-style: none; display: grid; gap: .9rem; }
.info span {
  display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .08em;
  text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: .15rem;
}
.join-form {
  background: var(--cream); color: var(--ink); padding: 1.5rem; display: grid; gap: .85rem;
}
.join-form label { display: grid; gap: .3rem; font-size: .85rem; font-weight: 600; }
.join-form input, .join-form select, .join-form textarea {
  padding: .7rem .8rem; border: 1px solid var(--line); background: var(--white);
}
.join-form input:focus, .join-form select:focus, .join-form textarea:focus {
  outline: none; border-color: var(--sage);
}

.site-footer { background: #1a221c; color: rgba(255,255,255,.65); padding: 2rem 0; }
.footer__inner {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.site-footer .brand { color: #fff; }
.site-footer nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.site-footer a:hover { color: #fff; }
.site-footer .mono { font-size: .68rem; color: rgba(255,255,255,.4); }

.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hero__media img { animation: none; }
}

@media (max-width: 900px) {
  .rhythm { grid-template-columns: 1fr 1fr; }
  .practice__grid, .join__grid, .passes, .gallery-row { grid-template-columns: 1fr; }
  .practice__visual { aspect-ratio: 16 / 10; }
  .gallery-row { grid-template-columns: 1fr 1fr; }
  .gallery-row figure:last-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
}
@media (max-width: 720px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; background: #1a221c; padding: .5rem 1.25rem 1rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .75rem 0; border-bottom: 1px solid rgba(255,255,255,.12); color: #fff; }
  .site-header.is-solid .nav { background: var(--cream); }
  .site-header.is-solid .nav a { color: var(--ink); border-color: var(--line); }
  .rhythm { grid-template-columns: 1fr; }
  .demo-bar { flex-direction: column; align-items: flex-start; }
}
