/* Eterna Wellness — single-page studio site */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-italic-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("fonts/jost-var.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Palette: logo taupe + the blush/cream ground used on the studio's socials */
  --cream: #fbf7f2;
  --paper: #fffdfa;
  --blush: #f4e7e0;
  --blush-deep: #ecd9cf;
  --sand: #e9dacd;
  --sage: #e2e6d8;
  --taupe: #846c59;        /* exact logo color */
  --taupe-ink: #6b5646;    /* text-safe brand tone */
  --ink: #3b3029;
  --muted: #6e6157;
  --line: rgb(132 108 89 / 0.22);

  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Futura", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --gutter: clamp(1rem, 5vw, 3rem);
  --max: 1240px;
  --radius: 1.5rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-soft: cubic-bezier(0.45, 0, 0.2, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.05; letter-spacing: -0.01em; color: var(--ink); }
h2 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); font-weight: 300; }
h2 em, h1 em { font-style: italic; color: var(--taupe); font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
address { font-style: normal; }
button { font: inherit; color: inherit; }

.sr-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 1rem; top: -4rem; z-index: 100;
  padding: .75rem 1.25rem; background: var(--ink); color: var(--cream);
  border-radius: 999px; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 2px solid var(--taupe-ink); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--taupe-ink);
  margin-bottom: 1.25rem;
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  min-height: 52px; padding: .9rem 1.7rem;
  border-radius: 999px; border: 1px solid transparent;
  font-family: var(--sans); font-size: .8rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; white-space: nowrap;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.btn-small { min-height: 44px; padding: .6rem 1.25rem; font-size: .74rem; }
.btn-primary { background: var(--taupe-ink); color: var(--cream); box-shadow: 0 10px 24px -14px rgb(59 48 41 / .55); }
.btn-primary:hover { background: var(--ink); transform: translateY(-2px); box-shadow: 0 16px 30px -16px rgb(59 48 41 / .6); }
.btn-ghost { border-color: rgb(107 86 70 / .45); color: var(--taupe-ink); background: transparent; }
.btn-ghost:hover { border-color: var(--taupe-ink); background: rgb(255 253 250 / .7); transform: translateY(-2px); }
.btn-light { background: var(--cream); color: var(--taupe-ink); }
.btn-light:hover { background: var(--paper); transform: translateY(-2px); }
.btn-icon { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.btn:hover .btn-icon { transform: translateX(4px); }
.btn:hover .btn-icon-lead { transform: none; }


/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; }
/* The frosted bar lives on a pseudo-element: a backdrop-filter on the header itself
   would become the containing block for the fixed mobile menu and trap it in the bar. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: rgb(251 247 242 / .88);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  box-shadow: 0 1px 0 var(--line);
  opacity: 0; transition: opacity .4s var(--ease);
}
.site-header.is-scrolled::before { opacity: 1; }
.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  height: var(--header-h);
  max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--taupe); text-decoration: none; margin-right: auto; min-height: 44px; }
.brand-emblem { width: 34px; height: 40px; fill: currentColor; }
.brand-wordmark { width: 118px; height: auto; aspect-ratio: 841 / 250; fill: currentColor; }

.site-nav { display: none; }
.site-nav ul { display: flex; gap: 2.25rem; }
.site-nav a {
  position: relative; display: inline-block; padding: .5rem 0;
  font-size: .78rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .2rem; height: 1px;
  background: var(--taupe); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.site-nav a:hover::after, .site-nav a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }
.header-book { display: none; }

.menu-toggle {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: transparent; border: 1px solid var(--line); cursor: pointer;
}
.menu-toggle-lines { display: grid; gap: 6px; width: 20px; }
.menu-toggle-lines span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .4s var(--ease); }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: -1;
  display: flex; flex-direction: column; justify-content: center; gap: 2rem;
  padding: calc(var(--header-h) + 1rem) var(--gutter) 2.5rem;
  background: var(--blush);
  overflow: hidden auto;
  clip-path: circle(0% at calc(100% - 2.5rem) 2.4rem);
  transition: clip-path .7s var(--ease-soft);
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 2.5rem) 2.4rem); }
.mobile-menu[hidden] { display: none; }
.mobile-menu nav a {
  display: block; padding: .35rem 0;
  font-family: var(--serif); font-size: clamp(2.4rem, 11vw, 3.4rem); font-weight: 300; line-height: 1.1;
  text-decoration: none; color: var(--ink);
}
.mobile-menu .btn { align-self: flex-start; }
.mobile-menu-meta { display: grid; justify-items: start; gap: .25rem; font-size: .95rem; }
.mobile-menu-meta a { color: var(--taupe-ink); padding-block: .5rem; }
.mobile-menu-branch { position: absolute; right: -18%; bottom: -8%; width: 80%; height: auto; fill: var(--taupe); opacity: .08; pointer-events: none; }
html.menu-open { overflow: hidden; }
.mobile-menu { overscroll-behavior: contain; }

/* ---------- Blobs & branch motif ---------- */
.blob {
  position: absolute; display: block; pointer-events: none;
  border-radius: 58% 42% 46% 54% / 52% 44% 56% 48%;
  animation: blob-morph 22s var(--ease-soft) infinite alternate;
  will-change: border-radius, transform;
}
@keyframes blob-morph {
  0%   { border-radius: 58% 42% 46% 54% / 52% 44% 56% 48%; }
  33%  { border-radius: 42% 58% 62% 38% / 44% 60% 40% 56%; }
  66%  { border-radius: 64% 36% 40% 60% / 58% 38% 62% 42%; }
  100% { border-radius: 46% 54% 56% 44% / 38% 56% 44% 62%; }
}
@keyframes blob-soft {
  0%   { border-radius: 50% 50% 46% 54% / 42% 46% 54% 58%; }
  50%  { border-radius: 45% 55% 52% 48% / 47% 41% 59% 53%; }
  100% { border-radius: 54% 46% 48% 52% / 40% 49% 51% 60%; }
}
.branch { position: absolute; fill: var(--taupe); pointer-events: none; transform-origin: 30% 96%; animation: branch-sway 14s var(--ease-soft) infinite alternate; }
@keyframes branch-sway {
  from { transform: rotate(-2.5deg); }
  to   { transform: rotate(2.5deg); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: min(100svh, 980px);
  padding: calc(var(--header-h) + 2rem) 0 4.5rem;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.blob-blush { width: min(78vw, 860px); aspect-ratio: 1; right: -18%; top: -14%; background: radial-gradient(circle at 40% 40%, var(--blush-deep), var(--blush) 70%); }
.blob-sage { width: min(40vw, 420px); aspect-ratio: 1; left: -12%; bottom: -8%; background: var(--sage); opacity: .75; animation-duration: 26s; animation-delay: -6s; }
.branch-hero { width: min(52vw, 560px); height: auto; left: -8%; top: 14%; opacity: .06; }

.hero-inner { display: grid; gap: 3rem; align-items: center; }
.hero-title { font-size: clamp(3.2rem, 8.4vw, 6.9rem); font-weight: 300; line-height: .96; letter-spacing: -0.02em; margin-bottom: 1.6rem; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .2em; margin-bottom: -.2em; }
.hero-title .line > span { display: inline-block; }
.hero-lede { max-width: 34rem; color: var(--muted); font-size: clamp(1.02rem, 1.3vw, 1.14rem); margin-bottom: 2.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; }

.hero-media { position: relative; width: min(100%, 520px); margin-inline: auto; }
.arch { position: relative; overflow: hidden; border-radius: 50% 50% var(--radius) var(--radius) / 40% 40% var(--radius) var(--radius); background: var(--sand); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.hero-frame {
  position: relative; overflow: hidden; aspect-ratio: 4 / 5;
  background: var(--sand);
  border-radius: 50% 50% 46% 54% / 42% 46% 54% 58%;
  animation: blob-soft 24s var(--ease-soft) infinite alternate;
  box-shadow: 0 40px 80px -50px rgb(59 48 41 / .55);
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); }
.hero-badge {
  position: absolute; top: 9%; right: -4%;
  width: clamp(76px, 18%, 108px); aspect-ratio: 1; border-radius: 50%;
  background: var(--cream); display: grid; place-items: center;
  box-shadow: 0 18px 40px -24px rgb(59 48 41 / .45);
}
.hero-badge svg { width: 46%; height: auto; fill: var(--taupe); transform-origin: 30% 96%; animation: branch-sway 7s var(--ease-soft) infinite alternate; }
.hero-orb {
  position: absolute; left: -3%; bottom: 6%;
  width: 38%; aspect-ratio: 1; overflow: hidden;
  border: 6px solid var(--cream);
  border-radius: 58% 42% 46% 54% / 52% 44% 56% 48%;
  animation: blob-morph 18s var(--ease-soft) infinite alternate;
  box-shadow: 0 24px 50px -30px rgb(59 48 41 / .5);
}
.hero-orb img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 1.25rem; translate: -50% 0;
  display: none; width: 44px; height: 44px; place-items: center; border-radius: 50%;
}
.scroll-cue span { width: 1px; height: 34px; background: linear-gradient(var(--taupe), transparent); position: relative; overflow: hidden; }
.scroll-cue span::after { content: ""; position: absolute; inset: 0; background: var(--cream); animation: cue 2.6s var(--ease-soft) infinite; }
@keyframes cue { from { transform: translateY(-100%); } to { transform: translateY(100%); } }

/* ---------- Ribbon ---------- */
.ribbon { overflow: hidden; border-block: 1px solid var(--line); background: var(--paper); padding: 1.1rem 0; }
.ribbon-track { display: flex; width: max-content; animation: ribbon 138s linear infinite; }
.ribbon:hover .ribbon-track { animation-play-state: paused; }
.ribbon-set { display: flex; align-items: center; gap: 2.25rem; padding-right: 2.25rem; }
.ribbon span { font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 2.6vw, 2.1rem); color: var(--taupe-ink); white-space: nowrap; }
.ribbon svg { width: 22px; height: 22px; fill: none; stroke: var(--taupe); stroke-width: 1.3; stroke-linecap: round; flex: none; }
@keyframes ribbon { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.classes, .studio, .community, .visit { padding-block: clamp(5rem, 11vw, 9.5rem); position: relative; }
.section-head { max-width: 42rem; margin-bottom: clamp(3rem, 6vw, 5rem); }
.section-head h2 { margin-bottom: 1.4rem; }
.section-lede { color: var(--muted); max-width: 36rem; }
.section-head-split { max-width: none; display: grid; gap: 1.5rem; align-items: end; }

/* ---------- Classes ---------- */
.classes-layout { display: grid; gap: 3rem; }
.class-stage { display: none; }
.class-list { counter-reset: none; }
.class-item { border-top: 1px solid var(--line); }
.class-item:last-child { border-bottom: 1px solid var(--line); }
.class-item article { display: grid; gap: 1.5rem; padding-block: 2.5rem; }
.class-photo { aspect-ratio: 4 / 5; width: min(100%, 420px); }
.class-num { font-family: var(--sans); font-size: .78rem; font-weight: 500; letter-spacing: .3em; color: var(--taupe); margin-bottom: .6rem; }
.class-body h3 { font-size: clamp(2.2rem, 4.2vw, 3.2rem); font-weight: 400; margin-bottom: .9rem; }
.h3-note { display: block; margin-top: .35rem; font-family: var(--sans); font-size: .82rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--taupe-ink); }
.class-body > p { color: var(--muted); max-width: 32rem; margin-bottom: 1.1rem; }
.class-tags { display: grid; gap: .35rem; margin-bottom: .75rem; }
.class-tags li { display: flex; align-items: center; gap: .7rem; font-size: .95rem; color: var(--ink); }
.class-body .btn { margin-top: .75rem; }
.class-tags li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--taupe); opacity: .65; flex: none; }

.beyond {
  position: relative; overflow: hidden;
  display: grid; gap: 1.5rem; align-items: center;
  margin-top: clamp(3.5rem, 7vw, 6rem);
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: calc(var(--radius) * 1.4);
  background: var(--blush);
}
.beyond h3 { font-size: clamp(1.9rem, 3vw, 2.5rem); margin-bottom: .6rem; }
.beyond p { color: var(--muted); max-width: 38rem; }
.beyond .btn { justify-self: start; position: relative; z-index: 1; }
.beyond-leaf { position: absolute; right: -2rem; top: -3rem; width: 220px; height: auto; fill: var(--taupe); opacity: .09; pointer-events: none; }

/* ---------- Studio ---------- */
.studio { background: linear-gradient(180deg, var(--paper), var(--blush) 140%); }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.g-item { position: relative; }
.g-main, .g-arches { grid-column: 1 / -1; }
.g-open {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  overflow: hidden; background: var(--sand); border-radius: var(--radius);
}
.g-open img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.g-open:hover img, .g-open:focus-visible img { transform: scale(1.045); }
.g-main .g-open { aspect-ratio: 1200 / 874; border-radius: 50% 50% var(--radius) var(--radius) / 34% 34% var(--radius) var(--radius); }
.g-arches .g-open { aspect-ratio: 900 / 564; }
.g-brick .g-open { aspect-ratio: 4 / 5; border-radius: 50% 50% var(--radius) var(--radius) / 40% 40% var(--radius) var(--radius); }
.g-candles .g-open { aspect-ratio: 4 / 5; border-radius: 58% 42% 46% 54% / 52% 44% 56% 48%; animation: blob-morph 20s var(--ease-soft) infinite alternate; }
.g-zoom {
  position: absolute; right: 1rem; bottom: 1rem;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgb(251 247 242 / .9); color: var(--taupe-ink);
  transition: transform .4s var(--ease), opacity .4s var(--ease);
}
.g-zoom svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.g-candles .g-zoom { right: 22%; bottom: 10%; }
.g-item figcaption {
  margin-top: .9rem;
  font-size: .74rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--taupe-ink);
}

/* ---------- Community ---------- */
.community { overflow: hidden; }
.branch-community { width: min(46vw, 480px); height: auto; right: -6%; top: 6%; opacity: .06; }
.community-inner { display: grid; gap: 3.5rem; align-items: center; position: relative; }
.community-copy h2 { margin-bottom: 1.4rem; }
.community-copy > p { color: var(--muted); max-width: 30rem; margin-bottom: 2.5rem; }
.social-row { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.social-label { font-size: .74rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--taupe-ink); }
.socials { display: flex; gap: .75rem; }
.socials a {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--paper); box-shadow: 0 0 0 1px var(--line), 0 12px 26px -20px rgb(59 48 41 / .55);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.socials a:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgb(132 108 89 / .35), 0 16px 30px -18px rgb(59 48 41 / .55); }
.socials svg { width: 24px; height: 24px; }

.community-media { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.c-group { grid-column: 1 / -1; }
.blob-frame { overflow: hidden; border-radius: 58% 42% 46% 54% / 52% 44% 56% 48%; animation: blob-morph 24s var(--ease-soft) infinite alternate; background: var(--sand); }
.blob-frame-alt { animation-duration: 19s; animation-delay: -8s; }
.blob-frame img, .c-photo img { width: 100%; height: 100%; object-fit: cover; }
.c-group { aspect-ratio: 1000 / 690; }
.c-flex { aspect-ratio: 4 / 5; margin-top: -2.5rem; border: 6px solid var(--cream); }
.c-duo { aspect-ratio: 4 / 5; margin-top: 1.5rem; }

/* ---------- Book band ---------- */
.book {
  position: relative; overflow: hidden; isolation: isolate;
  padding-block: clamp(4.5rem, 10vw, 8rem);
  background: linear-gradient(140deg, #7a6352, var(--taupe-ink) 55%, #5d4a3c);
  color: var(--cream);
}
.blob-book-a { width: 520px; aspect-ratio: 1; left: -160px; top: -200px; background: rgb(255 255 255 / .06); }
.blob-book-b { width: 380px; aspect-ratio: 1; right: -120px; bottom: -180px; background: rgb(255 255 255 / .05); animation-duration: 28s; }
.book-inner { display: grid; gap: 2.5rem; align-items: center; justify-items: center; text-align: center; }
.book-logo { width: min(64vw, 280px); height: auto; fill: var(--cream); }
.book h2 { color: var(--cream); margin-bottom: 1rem; }
.book h2 em { color: #ead8c9; }
.book p { color: rgb(251 247 242 / .86); max-width: 30rem; margin: 0 auto 2rem; }

/* ---------- Visit ---------- */
.visit-inner { display: grid; gap: 2.5rem; }
.visit-branch { display: none; }
.visit-list { display: grid; gap: 0; margin: 0; }
.visit-list > div { display: grid; gap: .5rem; padding-block: 1.6rem; border-top: 1px solid var(--line); }
.visit-list > div:last-child { border-bottom: 1px solid var(--line); }
.visit-list dt { font-size: .74rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--taupe-ink); }
.visit-list dd { margin: 0; color: var(--muted); }
.visit-list address, .visit-phone { font-size: 1.125rem; line-height: 1.6; color: var(--ink); }
.visit-phone { text-decoration: none; display: inline-flex; min-height: 44px; }
.visit-phone:hover { color: var(--taupe-ink); }
.visit-list dd > .btn { display: flex; width: fit-content; margin-top: 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blush); padding-top: clamp(3.5rem, 7vw, 5.5rem); }
.footer-inner { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
.footer-logo { display: inline-block; width: 168px; }
.footer-logo img { width: 100%; height: auto; }
.footer-nav ul { display: grid; gap: .25rem; }
.footer-nav a { display: inline-block; padding: .55rem 0; text-decoration: none; font-size: .8rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.footer-nav a:hover { color: var(--taupe-ink); }
.footer-contact { display: grid; gap: .5rem; color: var(--muted); align-content: start; }
.footer-contact a { color: var(--taupe-ink); display: inline-block; padding-block: .6rem; text-decoration: none; }
.footer-contact a:hover { color: var(--ink); }
.contact-line, a.contact-line { display: inline-flex; align-items: flex-start; gap: .65rem; text-decoration: none; }
a.contact-line:hover { color: var(--ink); }
.line-icon { width: 18px; height: 18px; flex: none; margin-top: .3em; fill: none; stroke: var(--taupe); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.socials-footer { margin-top: 1rem; gap: .25rem; margin-left: -.75rem; }
.socials-footer a { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; background: none; box-shadow: none; }
.socials-footer a:hover { box-shadow: none; }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem;
  position: relative; padding-block: 1.4rem 2rem;
  font-size: .88rem; color: var(--muted);
}
.footer-base::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line); }
.footer-base a { color: var(--taupe-ink); text-underline-offset: 3px; display: inline-block; padding-block: .6rem; }
.footer-base p { display: flex; align-items: center; }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-content: center; justify-items: center; gap: 1.75rem; text-align: center; padding-block: 4rem; }
.notfound img { width: 180px; }
.notfound h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); font-weight: 300; }
.notfound p { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

/* ---------- Mobile book bar ---------- */
.mobile-book {
  position: fixed; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 40;
  translate: -50% 0;
  display: inline-flex; align-items: center; gap: .6rem;
  min-height: 52px; padding: .8rem 1.6rem .8rem 1.2rem;
  border-radius: 999px; background: var(--taupe-ink); color: var(--cream);
  font-size: .8rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  box-shadow: 0 18px 40px -16px rgb(59 48 41 / .6);
  transform: translateY(160%); opacity: 0; visibility: hidden;
  transition: transform .6s var(--ease), opacity .6s var(--ease), visibility .6s;
}
.mobile-book svg { width: 18px; height: 22px; fill: currentColor; }
.mobile-book.is-visible { transform: none; opacity: 1; visibility: visible; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: min(92vw, 1200px); max-width: none; max-height: 92vh; padding: 0; border: 0;
  background: transparent; color: var(--cream); overflow: visible;
}
.lightbox::backdrop { background: rgb(43 34 28 / .82); backdrop-filter: blur(6px); }
.lightbox[open] { animation: lb-in .45s var(--ease); }
@keyframes lb-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.lightbox figure { display: grid; gap: .9rem; justify-items: center; }
.lightbox img { max-width: 100%; max-height: 78vh; width: auto; height: auto; border-radius: var(--radius); }
.lightbox figcaption { font-size: .95rem; text-align: center; color: rgb(251 247 242 / .9); max-width: 40rem; padding-inline: 1rem; }
.lightbox-controls { display: flex; justify-content: center; gap: .75rem; margin-top: 1rem; }
.lb-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgb(251 247 242 / .4);
  background: rgb(251 247 242 / .08); color: var(--cream); cursor: pointer; display: grid; place-items: center;
  transition: background-color .3s;
}
.lb-btn:hover { background: rgb(251 247 242 / .2); }
.lb-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lightbox :focus-visible { outline-color: var(--cream); }

/* ---------- Motion (JS-enhanced only) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .gallery [data-reveal]:nth-child(2) { transition-delay: .12s; }
.js .gallery [data-reveal]:nth-child(3) { transition-delay: .2s; }
.js .gallery [data-reveal]:nth-child(4) { transition-delay: .28s; }
.js .community-media [data-reveal]:nth-child(2) { transition-delay: .15s; }
.js .community-media [data-reveal]:nth-child(3) { transition-delay: .3s; }

.js [data-intro] { opacity: 0; transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.js .hero-title [data-intro] { opacity: 1; transform: translateY(130%); }
.js .eyebrow[data-intro], .js .hero-lede[data-intro], .js .hero-actions[data-intro] { transform: translateY(18px); }
.js [data-intro="media"] { transform: none; }
.js [data-intro="media"] .hero-frame { clip-path: circle(42% at 50% 55%); transition: clip-path 1.4s var(--ease-soft); }
.js [data-intro="media"] .hero-badge, .js [data-intro="media"] .hero-orb { opacity: 0; transform: scale(.7); transition: opacity .9s var(--ease) 1s, transform 1.1s var(--ease) 1s; }
.js .is-loaded [data-intro] { opacity: 1; transform: none; }
.js .is-loaded [data-intro="2"] { transition-delay: .15s; }
.js .is-loaded [data-intro="3"] { transition-delay: .28s; }
.js .is-loaded [data-intro="4"] { transition-delay: .35s; }
.js .is-loaded [data-intro="5"] { transition-delay: .45s; }
.js .is-loaded [data-intro="media"] .hero-frame { clip-path: circle(80% at 50% 55%); }
.js .is-loaded [data-intro="media"] .hero-badge, .js .is-loaded [data-intro="media"] .hero-orb { opacity: 1; transform: none; }
.js .brand-emblem { clip-path: circle(0% at 50% 60%); transition: clip-path 1.6s var(--ease-soft) .2s; }
.js .is-loaded .brand-emblem { clip-path: circle(75% at 50% 60%); }

.js .book-logo { clip-path: circle(0% at 50% 30%); transition: clip-path 1.8s var(--ease-soft) .1s; }
.js .is-in .book-logo { clip-path: circle(90% at 50% 30%); }

/* ---------- Breakpoints ---------- */
@media (min-width: 600px) {
  .class-item article { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); align-items: center; gap: 2.5rem; }
  .class-item:nth-child(even) .class-photo { order: 2; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .community-media { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .beyond { grid-template-columns: 1fr auto; }
  .visit-list > div { grid-template-columns: 10rem 1fr; gap: 1.5rem; }
}

@media (min-width: 960px) {
  :root { --header-h: 84px; }
  .site-nav { display: block; }
  .header-book { display: inline-flex; }
  .menu-toggle, .mobile-menu { display: none; }
  .brand-emblem { width: 38px; height: 46px; }
  .brand-wordmark { width: 132px; }

  .hero-inner { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(3rem, 6vw, 6rem); }
  .hero-media { width: 100%; max-width: 500px; margin-right: 0; }
  .scroll-cue { display: grid; }
  .hero-orb { left: -9%; }

  .section-head-split { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .section-head-split .section-lede { padding-bottom: .6rem; }

  /* Classes: sticky photo stage synced to the list */
  .classes-layout { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(3rem, 6vw, 6.5rem); align-items: start; }
  .class-stage { display: block; position: sticky; top: calc(var(--header-h) + 2rem); }
  .class-stage-frame { position: relative; aspect-ratio: 4 / 5; max-height: calc(100vh - var(--header-h) - 6rem); margin-inline: auto; overflow: hidden; border-radius: 50% 50% var(--radius) var(--radius) / 40% 40% var(--radius) var(--radius); background: var(--sand); z-index: 1; }
  .class-stage-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity .9s var(--ease), transform 1.4s var(--ease); }
  .class-stage-frame img.is-active { opacity: 1; transform: none; }
  .blob-stage { width: 74%; aspect-ratio: 1; right: -12%; bottom: -8%; background: var(--blush); z-index: 0; }
  .class-stage-count { position: relative; z-index: 2; margin-top: 1.25rem; text-align: center; font-family: var(--serif); font-size: 1.25rem; color: var(--taupe-ink); letter-spacing: .08em; }
  .class-stage-count span { font-size: 1.8rem; color: var(--ink); }
  .class-photo { display: none; }
  .class-item article { grid-template-columns: 1fr; padding-block: clamp(2.5rem, 5vw, 3.75rem); }
  .class-item:first-child { border-top: 0; }
  .class-num { display: flex; align-items: center; gap: .9rem; }
  .class-num::after { content: ""; height: 1px; width: 3rem; background: var(--taupe); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
  .class-body h3 { transition: transform .6s var(--ease), color .6s var(--ease); }
  .js .class-item.is-active .class-num::after { transform: scaleX(1); }
  .js .class-item.is-active .class-body h3 { transform: translateX(.4rem); color: var(--taupe-ink); }

  .beyond { grid-template-columns: 1fr auto; padding-inline: 3.5rem; }

  .gallery { grid-template-columns: repeat(12, 1fr); grid-template-rows: auto auto; gap: 1.5rem; align-items: start; }
  .g-main { grid-column: 1 / 8; grid-row: 1 / 3; }
  .g-arches { grid-column: 8 / 13; grid-row: 1; }
  .g-brick { grid-column: 8 / 10; grid-row: 2; }
  .g-candles { grid-column: 10 / 13; grid-row: 2; align-self: center; }
  .g-main .g-open { aspect-ratio: 4 / 4.1; }

  .community-inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(3rem, 7vw, 7rem); }
  .community-media { grid-template-columns: repeat(12, 1fr); grid-template-rows: auto; }
  .c-group { grid-column: 1 / 12; grid-row: 1; }
  .c-flex { grid-column: 1 / 5; grid-row: 2; margin-top: -4.5rem; margin-left: -1rem; z-index: 2; }
  .c-duo { grid-column: 8 / 12; grid-row: 2; margin-top: -7rem; z-index: 2; border: 6px solid var(--cream); }

  .book-inner { grid-template-columns: auto 1fr; justify-items: start; text-align: left; gap: clamp(3rem, 8vw, 7rem); }
  .book p { margin-inline: 0; }

  .visit-inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; align-items: start; }
  .visit-branch { display: block; width: 150px; height: auto; margin-top: 2.5rem; fill: var(--taupe); opacity: .22; transform-origin: 30% 96%; animation: branch-sway 9s var(--ease-soft) infinite alternate; }

  .footer-inner { grid-template-columns: 1.2fr 1fr 1.2fr; align-items: start; }
  .mobile-book { display: none; }
}

@media (min-width: 1400px) {
  .hero-title { font-size: 7.2rem; }
}

@media (max-width: 380px) {
  .brand-wordmark { width: 96px; }
  .btn { padding-inline: 1.25rem; letter-spacing: .14em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js [data-intro], .js .hero-title [data-intro] { opacity: 1; transform: none; }
  .js [data-intro="media"] .hero-frame, .js .brand-emblem, .js .book-logo { clip-path: none; }
  .js [data-intro="media"] .hero-badge, .js [data-intro="media"] .hero-orb { opacity: 1; transform: none; }
  .ribbon-track { width: auto; flex-wrap: wrap; justify-content: center; }
  .ribbon-set + .ribbon-set { display: none; }
  .ribbon-set { flex-wrap: wrap; justify-content: center; row-gap: .5rem; padding-inline: 1rem; }
}

@media (forced-colors: active) {
  .btn, .socials a, .lb-btn { border: 1px solid ButtonText; }
}
