/* CINDER & STONE — urban bathhouse
   Marcellus (display) · Inter (body) · IBM Plex Mono (labels) */
:root {
  --char: #171310;
  --char2: #1f1a15;
  --bone: #ece5da;
  --clay: #c0704a;
  --clay-d: #8a4a2e;
  --sand: #cfc4b4;
  --line: rgba(236, 229, 218, 0.14);
  --serif: "Marcellus", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --mono: "IBM Plex Mono", monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gut: clamp(20px, 5vw, 84px);
  --fx-bg: #171310; --fx-ink: #ece5da; --fx-accent: #c0704a;
  --fx-display: "Marcellus", Georgia, serif; --fx-mono: "IBM Plex Mono", monospace;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html.lenis, html.lenis body { height: auto; }
body { background: var(--char); color: var(--bone); font-family: var(--sans); font-weight: 300; line-height: 1.65; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
::selection { background: var(--clay); color: var(--char); }

#gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; }
.nav__brand em, .footer__base em { font-style: normal; color: var(--clay); }

/* nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 22px var(--gut); color: var(--bone); transform: translateY(-120%); transition: transform 0.9s var(--ease), color 0.4s; }
.nav.is-in { transform: none; }
.nav.is-light { color: var(--char); }
.nav__brand { font-family: var(--serif); letter-spacing: 0.22em; font-size: 14px; }
.nav__links { display: flex; gap: 30px; }
.nav__links a, .nav__cta { opacity: 0.72; transition: opacity 0.3s; }
.nav__links a:hover, .nav__cta:hover { opacity: 1; }
.nav__cta { display: inline-block; border: 1px solid currentColor; padding: 10px 16px; border-radius: 999px; }
@media (max-width: 760px) { .nav__links { display: none; } }

/* buttons */
.btn { display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; padding: 16px 26px; border-radius: 999px; transition: background 0.35s, color 0.35s; }
.btn--clay { background: var(--clay); color: var(--char); }
.btn--clay:hover { background: var(--bone); }

/* hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 120px var(--gut) 110px; overflow: hidden;
  background: radial-gradient(55% 60% at 68% 72%, rgba(192,112,74,0.28), transparent 70%), radial-gradient(40% 50% at 20% 10%, rgba(159,192,216,0.07), transparent 70%), var(--char); }
.hero__copy { position: relative; z-index: 6; max-width: 600px; }
.hero__eyebrow { color: var(--sand); margin-bottom: 26px; }
.hero__title { font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 7.6vw, 6.8rem); line-height: 1.02; }
.hero__title .line { display: block; }
.hero__title em { font-style: normal; color: var(--clay); }
.hero__sub { max-width: 430px; margin-top: 26px; color: rgba(236,229,218,0.66); }
.hero__ctas { display: flex; align-items: center; gap: 26px; margin-top: 34px; flex-wrap: wrap; }
.hero__link { color: rgba(236,229,218,0.7); border-bottom: 1px solid rgba(236,229,218,0.25); padding-bottom: 4px; transition: color 0.3s, border-color 0.3s; }
.hero__link:hover { color: var(--clay); border-color: var(--clay); }
.hero__temps { position: absolute; right: var(--gut); bottom: 40px; z-index: 6; display: flex; gap: 26px; color: rgba(236,229,218,0.5); }
.hero__temps b { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; color: var(--bone); margin-right: 6px; letter-spacing: 0; }
.hero__scroll { position: absolute; bottom: 30px; left: 50%; translate: -50% 0; z-index: 6; display: flex; flex-direction: column; align-items: center; gap: 10px; color: rgba(236,229,218,0.5); }
.hero__scroll i { width: 1px; height: 46px; background: linear-gradient(var(--clay), transparent); transform-origin: top; animation: drip 2.4s var(--ease) infinite; }
@keyframes drip { 0%{transform:scaleY(0)} 60%{transform:scaleY(1);opacity:1} 100%{transform:scaleY(1);opacity:0} }
[data-hero], [data-reveal] { opacity: 0; transform: translateY(24px); }
@media (max-width: 760px) {
  .hero { align-items: flex-start; padding-top: 110px; }
  .hero__sub, .hero__temps { display: none; }
}

/* intro line */
.intro { position: relative; z-index: 6; padding: clamp(110px, 18vh, 200px) var(--gut); display: grid; place-items: center; }
.intro__line { font-family: var(--serif); font-size: clamp(1.6rem, 3.6vw, 2.8rem); line-height: 1.4; max-width: 800px; text-align: center; }
.intro__line .w { opacity: 0.12; filter: blur(4px); transition: opacity 0.5s, filter 0.5s; }
.intro__line .w.is-on { opacity: 1; filter: blur(0); }

/* ritual (pinned) */
.ritual { background: var(--char2); }
.ritual__pin { height: 100vh; display: grid; grid-template-columns: minmax(260px, 0.8fr) 1.4fr; gap: clamp(24px, 5vw, 80px); align-items: center; padding: 100px var(--gut) 60px; }
.ritual__label { color: var(--clay); margin-bottom: 30px; }
#stepList { list-style: none; display: flex; flex-direction: column; }
.step { position: relative; display: grid; grid-template-columns: 34px 1fr auto; align-items: baseline; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); opacity: 0.28; transition: opacity 0.5s; cursor: pointer; }
.step.is-on { opacity: 1; }
.step__num { color: var(--clay); }
.step__name { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1; }
.step__temp { color: rgba(236,229,218,0.5); font-size: 10px; }
.step__bar { position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--clay); transform: scaleX(0); transform-origin: 0 50%; }
.ritual__stage { position: relative; }
.rimg { position: relative; border-radius: 4px; overflow: hidden; aspect-ratio: 4 / 3; max-height: 64vh; width: 100%; clip-path: inset(0 0 100% 0); transition: clip-path 1.1s cubic-bezier(0.7, 0, 0.2, 1); }
.rimg:not(:first-child) { position: absolute; inset: 0; }
.rimg.is-on { clip-path: inset(0 0 0% 0); z-index: 2; }
.rimg.was-on { clip-path: inset(0 0 0% 0); z-index: 1; }
.rimg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transition: transform 1.6s var(--ease); }
.rimg.is-on img { transform: scale(1); }
.ritual__temp { position: absolute; right: -10px; top: -46px; z-index: 5; font-family: var(--serif); font-size: clamp(4rem, 9vw, 8rem); line-height: 1; color: var(--bone); text-shadow: 0 10px 40px rgba(0,0,0,0.5); font-variant-numeric: tabular-nums; }
.ritual__temp sup { font-size: 0.3em; color: var(--clay); vertical-align: top; margin-left: 4px; }
.ritual__caption { position: relative; margin-top: 18px; min-height: 3.2em; }
.rcap { position: absolute; inset: 0; color: rgba(236,229,218,0.62); opacity: 0; transform: translateY(10px); transition: opacity 0.5s, transform 0.6s var(--ease); font-size: 15px; }
.rcap.is-on { opacity: 1; transform: none; }
@media (max-width: 860px) {
  .ritual__pin { grid-template-columns: 1fr; gap: 20px; align-content: center; padding-top: 90px; }
  .step { padding: 9px 0; }
  .ritual__temp { top: auto; bottom: 10px; right: 10px; font-size: 3.4rem; }
}

/* shared */
.chapter__num { color: var(--clay); margin-bottom: 20px; }
h2[data-split] { font-family: var(--serif); font-weight: 400; font-size: clamp(2.1rem, 5vw, 3.8rem); line-height: 1.08; }
h2 em { font-style: normal; color: var(--clay); }
h2 .line { display: block; }

/* materials */
.materials { padding: clamp(90px, 14vh, 170px) var(--gut); }
.materials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 50px; }
.mat { border-radius: 4px; overflow: hidden; background: var(--char2); position: relative; }
.mat img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; transition: transform 1s var(--ease), filter 0.6s; filter: grayscale(0.4) brightness(0.8); }
.mat:hover img { transform: scale(1.06); filter: none; }
.mat figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 20px 22px; background: linear-gradient(transparent, rgba(23,19,16,0.9)); }
.mat .mono { color: var(--clay); }
.mat p { color: rgba(236,229,218,0.75); font-size: 14.5px; margin-top: 6px; }
@media (max-width: 780px) { .materials__grid { grid-template-columns: 1fr; } }

/* menu */
.menu { position: relative; padding: clamp(90px, 14vh, 170px) var(--gut); background: var(--bone); color: var(--char); }
.menu .chapter__num, .menu h2 em { color: var(--clay-d); }
.menu__list { list-style: none; margin-top: 46px; max-width: 900px; }
.mitem { position: relative; display: grid; grid-template-columns: 48px 1fr auto; align-items: baseline; gap: 20px; padding: 30px 0; border-bottom: 1px solid rgba(23,19,16,0.15); overflow: hidden; }
.mitem::before { content: ""; position: absolute; inset: 0; background: var(--char); transform: scaleY(0); transform-origin: 50% 100%; transition: transform 0.55s var(--ease); z-index: 0; }
.mitem > * { position: relative; z-index: 1; transition: color 0.4s, transform 0.55s var(--ease); }
.mitem:hover::before { transform: scaleY(1); }
.mitem:hover > * { color: var(--bone); }
.mitem:hover > div { transform: translateX(14px); }
.mitem__n { color: var(--clay-d); }
.mitem h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.mitem p { color: rgba(23,19,16,0.62); font-size: 14.5px; margin-top: 4px; max-width: 480px; }
.mitem:hover p { color: rgba(236,229,218,0.7); }
.mitem__price { font-size: 15px; color: var(--clay-d); white-space: nowrap; padding-right: 8px; }
.menu__note { margin-top: 40px; color: rgba(23,19,16,0.5); }
.preview { position: fixed; left: 0; top: 0; z-index: 40; width: 260px; height: 320px; margin: -160px 0 0 -130px; border-radius: 6px; overflow: hidden; pointer-events: none; opacity: 0; scale: 0.6; transition: opacity 0.35s, scale 0.5s var(--ease); box-shadow: 0 30px 60px rgba(0,0,0,0.35); }
.preview.is-on { opacity: 1; scale: 1; }
.preview img { width: 100%; height: 100%; object-fit: cover; }
@media (pointer: coarse) { .preview { display: none; } }

/* visit */
.visit { padding: clamp(90px, 14vh, 170px) var(--gut); }
.visit__grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(30px, 6vw, 90px); align-items: start; max-width: 1000px; }
.visit p { max-width: 440px; margin-top: 22px; color: rgba(236,229,218,0.66); }
.visit .btn { margin-top: 30px; }
.visit__info { display: flex; flex-direction: column; gap: 22px; color: rgba(236,229,218,0.6); line-height: 2; padding-top: 12px; }
@media (max-width: 780px) { .visit__grid { grid-template-columns: 1fr; } }

/* footer — quiet hours and a cold-to-hot line */
.footer { padding: clamp(90px, 14vh, 160px) var(--gut) 30px; border-top: 1px solid var(--line); text-align: center; }
.footer__breath { font-family: var(--serif); font-size: clamp(2.2rem, 5.6vw, 4.6rem); line-height: 1.1; max-width: 900px; margin: 0 auto; }
.footer__breath em { font-style: normal; color: var(--clay); }
.footer__hours { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 820px; margin: clamp(46px, 8vh, 80px) auto 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.footer__hours div { display: flex; flex-direction: column; gap: 8px; padding: 26px 12px; }
.footer__hours div + div { border-left: 1px solid var(--line); }
.footer__hours .mono { color: var(--clay); }
.footer__hours b { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; }
.footer__thermo { display: flex; align-items: center; gap: 18px; max-width: 820px; margin: 46px auto 0; color: rgba(236,229,218,0.5); }
.footer__thermo i { position: relative; flex: 1; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #9fc0d8, var(--clay)); transform-origin: 50% 50%; }
.footer__thermo b { position: absolute; top: 50%; left: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #ffb07a; box-shadow: 0 0 16px 4px rgba(224,112,63,0.6); }
.footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: clamp(60px, 10vh, 100px); padding-top: 20px; border-top: 1px solid var(--line); color: rgba(236,229,218,0.45); }
.footer__base a { color: var(--clay); }
@media (max-width: 700px) { .footer__hours { grid-template-columns: 1fr; } .footer__hours div + div { border-left: 0; border-top: 1px solid var(--line); } }

/* loader — a slow breath while the stones heat */
.loader { position: fixed; inset: 0; z-index: 200; background: var(--char); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 34px; }
.lc-ring { position: relative; width: clamp(170px, 22vw, 230px); aspect-ratio: 1; display: grid; place-items: center; animation: lcBreathe 5s ease-in-out infinite; }
.lc-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.lc-track { fill: none; stroke: rgba(236,229,218,0.08); stroke-width: 1; }
.lc-arc { fill: none; stroke: url(#lcHeat); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 6px rgba(224,112,63,0.5)); }
.lc-temp { font-family: var(--serif); font-size: clamp(3rem, 6vw, 4.2rem); line-height: 1; font-variant-numeric: tabular-nums; }
.lc-temp sup { font-size: 0.32em; color: var(--clay); vertical-align: top; margin-left: 3px; }
.lc-breath { position: relative; height: 1.4em; width: 14em; text-align: center; color: rgba(236,229,218,0.55); }
.lc-breath span { position: absolute; inset: 0; animation: lcWords 5s ease-in-out infinite; }
.lc-breath span + span { animation-delay: -2.5s; }
@keyframes lcBreathe { 0%, 100% { transform: scale(0.96); } 50% { transform: scale(1.04); } }
@keyframes lcWords { 0%, 45% { opacity: 1; filter: blur(0); } 55%, 95% { opacity: 0; filter: blur(4px); } 100% { opacity: 1; } }

/* cursor — an ember with a fading trail */
.cur--ember { width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: radial-gradient(circle, #ffe2c4 0%, #ff8a3d 55%, rgba(224,112,63,0) 100%); box-shadow: 0 0 18px 6px rgba(224,112,63,0.45); transition: width 0.5s var(--ease), height 0.5s var(--ease), margin 0.5s var(--ease), background 0.4s, box-shadow 0.4s; mix-blend-mode: screen; }
.cur--ember span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone); }
.cur--ember.is-hover { width: 54px; height: 54px; margin: -27px 0 0 -27px; background: radial-gradient(circle, rgba(224,112,63,0.28), rgba(224,112,63,0.05) 70%); box-shadow: inset 0 0 0 1px rgba(224,112,63,0.7), 0 0 30px 6px rgba(224,112,63,0.25); mix-blend-mode: normal; }
.cur--ember.has-label { width: 86px; height: 86px; margin: -43px 0 0 -43px; background: rgba(192,112,74,0.92); }
.cur-trail { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: #ff8a3d; filter: blur(1.5px); z-index: 299; }
html.on-light .cur--ember:not(.is-hover) { mix-blend-mode: normal; background: radial-gradient(circle, #ffb07a 0%, #c0704a 60%, rgba(192,112,74,0) 100%); }
html.on-light .cur-trail { background: var(--clay-d); }

/* progress — cold to hot along the bottom edge */
.prog--line-h { left: 0; right: 0; bottom: 0; height: 2px; }
.prog--line-h i { display: block; height: 100%; background: linear-gradient(90deg, #9fc0d8, var(--clay) 70%, #ffb07a); transform: scaleX(0); transform-origin: 0 50%; box-shadow: 0 0 10px rgba(224,112,63,0.6); }

.toast { position: fixed; left: 50%; bottom: 30px; translate: -50% 20px; background: var(--clay); color: var(--char); padding: 13px 22px; border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity 0.4s, translate 0.5s var(--ease); z-index: 70; }
.toast.is-on { opacity: 1; translate: -50% 0; }

@media (prefers-reduced-motion: reduce) {
  [data-hero], [data-reveal] { opacity: 1; transform: none; }
  .intro__line .w { opacity: 1; filter: none; }
  .rimg { transition: none; }
}
