/* Stillwater — spa. Gilda Display + Outfit. Warm linen, bark, clay, moss. */
:root {
  --bg: #f2ebe3;
  --sand: #e4d8ca;
  --ink: #3b2e27;
  --muted: #7d6c62;
  --line: rgba(59, 46, 39, 0.16);
  --accent: #b06f56;
  --moss: #6f7a63;
  --display: 'Gilda Display', Georgia, serif;
  --sans: 'Outfit', system-ui, sans-serif;
  --ease: cubic-bezier(0.3, 0.9, 0.3, 1);
  --pad: clamp(20px, 5vw, 80px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-weight: 300; font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--bg); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }
.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding-inline: var(--pad); }

.eyebrow { font-size: 12px; font-weight: 400; letter-spacing: 0.32em; text-transform: uppercase; color: var(--accent); margin-bottom: 26px; }
.h2 { font-family: var(--display); font-weight: 400; font-size: clamp(36px, 4.8vw, 72px); line-height: 1.06; letter-spacing: -0.01em; }
em { font-style: normal; color: var(--accent); }

/* Motion primitives: slower and softer than the other sites */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 1.6s var(--ease) var(--d, 0ms), transform 1.8s var(--ease) var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="clip"] { opacity: 1; transform: none; }
.js [data-reveal="clip"] > img { clip-path: inset(8% 8% 8% 8% round 400px 400px 0 0); opacity: 0; transition: clip-path 2s var(--ease) var(--d, 0ms), opacity 1.4s var(--ease) var(--d, 0ms) !important; }
.js [data-reveal="clip"].is-in > img { clip-path: inset(0 round 400px 400px 0 0); opacity: 1; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.16em; margin-bottom: -0.16em; }
.w-i { display: inline-block; transform: translateY(112%); opacity: 0; transition: transform 1.6s var(--ease), opacity 1.6s var(--ease); }
.is-in .w-i { transform: none; opacity: 1; }
[hidden] { display: none !important; }

.media { position: relative; overflow: hidden; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 2.4s var(--ease); }
.media img[data-parallax] { position: absolute; left: 0; top: -8%; height: 116%; will-change: transform; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 30px; border-radius: 999px; border: 1px solid currentColor; background: none; cursor: pointer; font-size: 12px; font-weight: 400; letter-spacing: 0.26em; text-transform: uppercase; transition: background 0.7s var(--ease), color 0.7s var(--ease), border-color 0.7s var(--ease); }
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn--light { color: #fff; }
.btn--light:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn--solid { background: var(--ink); border-color: var(--ink); color: var(--bg); padding: 19px 30px; }
.btn--solid:hover { background: var(--accent); border-color: var(--accent); }
.link { display: inline-block; font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase; padding-bottom: 8px; border-bottom: 1px solid currentColor; transition: color 0.5s var(--ease), letter-spacing 0.7s var(--ease); }
.link:hover { letter-spacing: 0.32em; }

/* Header */
.header { position: fixed; inset: 0 0 auto 0; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 24px var(--pad); color: #fff; transition: padding 0.7s var(--ease), background 0.7s var(--ease), color 0.7s var(--ease); }
.header.is-scrolled { padding-block: 12px; background: rgba(242, 235, 227, 0.9); color: var(--ink); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.brand { display: grid; justify-items: center; gap: 6px; font-family: var(--display); font-size: 24px; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1; }
.brand svg { width: 38px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; }
.nav { display: flex; gap: clamp(18px, 2.8vw, 40px); }
.nav a, .header__right > a:first-child { font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; position: relative; padding: 6px 0; }
.nav a::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0; transform: translate(-50%, 6px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.nav a:hover::after { opacity: 1; transform: translate(-50%, 4px); }
.header__right { display: flex; align-items: center; justify-content: flex-end; gap: 26px; }
.header__right .btn { padding: 10px 22px; }
.burger { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; justify-self: end; color: inherit; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1px; background: currentColor; transition: transform 0.6s var(--ease), top 0.6s var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 26px; }
.nav-open .burger span:first-child { top: 22px; transform: rotate(45deg); }
.nav-open .burger span:last-child { top: 22px; transform: rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 118%; object-fit: cover; will-change: transform; animation: heroIn 3.2s var(--ease) both; }
.hero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(40, 30, 25, 0.5), rgba(40, 30, 25, 0.28) 45%, rgba(40, 30, 25, 0.6)); }
@keyframes heroIn { from { opacity: 0; scale: 1.1; } to { opacity: 1; scale: 1; } }
.hero__inner { position: relative; padding: 140px var(--pad) 80px; }
.hero .eyebrow { color: #f0d9cc; }
.hero__title { font-family: var(--display); font-weight: 400; font-size: clamp(56px, 10vw, 168px); line-height: 0.98; letter-spacing: -0.01em; }
.hero__title em { color: #f0d9cc; }
.hero__lede { margin: 26px auto 36px; max-width: 38ch; font-size: 19px; opacity: 0.9; }
.hero__note { position: absolute; left: var(--pad); bottom: 32px; text-align: left; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; line-height: 1.9; opacity: 0.85; }

/* Intro */
.intro { text-align: center; padding-block: clamp(96px, 13vw, 190px); }
.statement { font-family: var(--display); font-weight: 400; font-size: clamp(27px, 3.4vw, 50px); line-height: 1.22; max-width: 27ch; margin-inline: auto; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 5vw, 80px); margin-top: clamp(64px, 9vw, 130px); }
.pillars svg { width: 46px; height: 46px; fill: none; stroke: var(--accent); stroke-width: 1.1; stroke-linecap: round; margin: 0 auto; display: block; animation: drift 6s ease-in-out infinite; }
.pillars article:nth-child(2) svg { animation-delay: -2s; }
.pillars article:nth-child(3) svg { animation-delay: -4s; }
@keyframes drift { 50% { translate: 0 -6px; } }
.pillars h3 { font-family: var(--display); font-weight: 400; font-size: 32px; margin: 22px 0 8px; }
.pillars p { color: var(--muted); max-width: 30ch; margin-inline: auto; }

/* Treatments */
.treatments { background: var(--sand); padding-block: clamp(96px, 12vw, 180px); }
.treatments__inner { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 8vw, 130px); align-items: center; }
.treatments__media { aspect-ratio: 3 / 4.3; }
.tabs { display: flex; gap: 34px; margin: 40px 0 12px; border-bottom: 1px solid var(--line); }
.tabs button { position: relative; background: none; border: 0; padding: 0 0 16px; cursor: pointer; font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); transition: color 0.5s var(--ease); }
.tabs button::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 100%; height: 1px; background: var(--ink); transform: scaleX(0); transition: transform 0.8s var(--ease); }
.tabs button.is-active { color: var(--ink); }
.tabs button.is-active::after { transform: scaleX(1); }
.panel { min-height: 420px; }
.panel.is-shown .list li { animation: rise 1.1s var(--ease) both; }
.list li:nth-child(2) { animation-delay: 90ms; } .list li:nth-child(3) { animation-delay: 180ms; } .list li:nth-child(4) { animation-delay: 270ms; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.list li { display: grid; grid-template-columns: 1fr 90px 60px; align-items: baseline; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.list h3 { font-family: var(--display); font-weight: 400; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; transition: color 0.5s var(--ease); }
.list li:hover h3 { color: var(--accent); }
.list p { font-size: 15px; color: var(--muted); }
.list span { font-size: 13px; letter-spacing: 0.1em; color: var(--muted); text-align: right; }
.list b { font-family: var(--display); font-weight: 400; font-size: 26px; text-align: right; }

/* Circuit */
.section-head { margin-bottom: clamp(44px, 6vw, 80px); }
.section-head--center { text-align: center; }
.circuit { padding-block: clamp(96px, 12vw, 180px); }
.stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 48px); }
.stages li:nth-child(2) { margin-top: clamp(0px, 6vw, 90px); }
.stages .media { aspect-ratio: 3 / 4; border-radius: 400px 400px 0 0; margin-bottom: 24px; }
.stages li:hover img { transform: scale(1.05); }
.stages span { font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); }
.stages h3 { font-family: var(--display); font-weight: 400; font-size: 40px; line-height: 1.1; margin: 6px 0 8px; }
.stages p { color: var(--muted); max-width: 32ch; }

/* Passes */
.passes { padding-bottom: clamp(96px, 12vw, 180px); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.8vw, 26px); }
.card { border: 1px solid var(--line); padding: clamp(28px, 3.4vw, 52px); text-align: center; display: flex; flex-direction: column; align-items: center; transition: transform 1s var(--ease), background 0.8s var(--ease); }
.card:hover { transform: translateY(-8px); }
.card--dark { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.card h3 { font-size: 12px; font-weight: 400; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent); }
.card--dark h3 { color: #e0b7a4; }
.card__price { font-family: var(--display); font-size: clamp(54px, 6vw, 90px); line-height: 1; margin: 30px 0 22px; }
.card__price small { display: block; font-family: var(--sans); font-size: 13px; letter-spacing: 0.1em; opacity: 0.7; margin-top: 10px; }
.card > p:not(.card__price) { max-width: 28ch; opacity: 0.78; margin-bottom: 34px; }
.card .link { margin-top: auto; }

/* Reserve */
.reserve { position: relative; overflow: hidden; background: var(--ink); color: var(--bg); padding-block: clamp(96px, 12vw, 180px); }
.reserve__media { position: absolute; inset: 0; }
.reserve__media img { width: 100%; height: 118%; object-fit: cover; opacity: 0.2; will-change: transform; }
.reserve__inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 140px); align-items: center; }
.reserve .eyebrow, .reserve em { color: #e0b7a4; }
.reserve__lede { margin-top: 28px; max-width: 42ch; opacity: 0.8; }
.reserve__addr { margin-top: 30px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; line-height: 2; opacity: 0.7; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 22px; }
.form__wide { grid-column: 1 / -1; }
.form label { display: block; font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; opacity: 0.9; }
.form input, .form select { display: block; width: 100%; margin-top: 8px; padding: 10px 0 13px; background: transparent; border: 0; border-bottom: 1px solid rgba(242, 235, 227, 0.35); border-radius: 0; font-family: var(--display); font-size: 21px; letter-spacing: 0; text-transform: none; color: var(--bg); transition: border-color 0.6s var(--ease); color-scheme: dark; }
.form select option { background: var(--ink); }
.form input::placeholder { color: rgba(242, 235, 227, 0.35); }
.form input:focus, .form select:focus { outline: none; border-color: #e0b7a4; }
.form .btn--solid { background: var(--bg); border-color: var(--bg); color: var(--ink); margin-top: 6px; }
.form .btn--solid:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.form__note { font-family: var(--display); font-size: 19px; color: #e0b7a4; min-height: 1.7em; opacity: 0; transition: opacity 0.8s var(--ease); }
.form__note.is-shown { opacity: 1; }

/* Footer */
.footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-block: 40px; font-size: 13px; color: var(--muted); }
.footer .brand { color: var(--ink); justify-items: start; font-size: 20px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 28px; letter-spacing: 0.2em; text-transform: uppercase; font-size: 12px; }
.footer nav a:hover { color: var(--ink); }

/* Responsive */
@media (max-width: 960px) {
  .header { grid-template-columns: 1fr auto; }
  .brand { grid-column: 1; grid-row: 1; justify-items: start; z-index: 2; }
  .burger { display: block; z-index: 2; }
  .header__right { display: none; }
  .nav { position: fixed; inset: 0; background: var(--bg); color: var(--ink); flex-direction: column; justify-content: center; align-items: center; gap: 10px; opacity: 0; visibility: hidden; transition: opacity 0.6s var(--ease), visibility 0.6s; }
  .nav a { font-family: var(--display); font-size: 40px; letter-spacing: 0; text-transform: none; }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav-open { overflow: hidden; }
  .nav-open .header { color: var(--ink); }
  .treatments__inner, .reserve__inner { grid-template-columns: 1fr; }
  .treatments__media { max-width: 420px; margin-inline: auto; width: 100%; }
  .pillars, .cards { grid-template-columns: 1fr; }
  .panel { min-height: 0; }
  .hero__note { display: none; }
}
@media (max-width: 640px) {
  .stages { grid-template-columns: 1fr; }
  .stages li:nth-child(2) { margin-top: 0; }
  .list li { grid-template-columns: 1fr auto; }
  .list span { grid-column: 1; grid-row: 2; text-align: left; }
  .list b { grid-column: 2; grid-row: 1; }
  .form { grid-template-columns: 1fr; }
  .tabs { gap: 22px; }
  .footer { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
