/* Glow with Martha — brand system.
   Palette, type and motifs are locked by the brand identity (docs/handoff §1).
   Didot LP / Helvetica Now / Abellaice are paid; the web substitutes are
   Playfair Display / Archivo / Great Vibes. */

:root {
  --sage: #a3b18a;
  --sage-wash: #edf0e3;
  --sage-ink: #7e8c68;
  /* Button fill. #7e8c68 with white type is only 3.6:1 — below AA — so the
     interactive sage is a step deeper at 5.7:1. */
  --sage-deep: #5e6b4a;
  --terra: #b17a63;
  --terra-deep: #96604b;
  /* No black anywhere. Body type is a deep sage-charcoal (12.1:1 on bone) and
     dark sections are deeper again (13.8:1), so the darkest thing on the page
     still belongs to the sage family. */
  --ink: #2c3325;
  --deep: #232a1b;
  --ink-soft: #5c6153;
  --bone: #f6f7f2;
  --hairline: #dde1d2;
  --white: #fff;

  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --body: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --script: "Great Vibes", "Snell Roundhand", cursive;

  --shell: min(1180px, 100% - 2.5rem);
  --arch: 50% 50% 0 0 / 28% 28% 0 0;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font: 400 clamp(15px, 0.6vw + 13.5px, 17px)/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 1.5vw, 1.4rem); }

p { margin: 0 0 1.1em; text-wrap: pretty; }
a { color: inherit; }

.sr-only, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip:focus {
  position: fixed; inset-inline-start: 1rem; inset-block-start: 1rem; z-index: 200;
  background: var(--deep); color: var(--bone); padding: .7rem 1.1rem; border-radius: 2px;
}
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }

/* ------------------------------------------------------------ primitives */

.shell { width: var(--shell); margin-inline: auto; }
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section-tight { padding-block: clamp(2.75rem, 5vw, 4rem); }
.wash { background: var(--sage-wash); }
.dark { background: var(--deep); color: var(--bone); }
.dark h1, .dark h2, .dark h3 { color: var(--bone); }

.kicker {
  font: 500 .7rem/1 var(--body);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sage-ink);
  margin: 0 0 1.1rem;
}
.dark .kicker { color: var(--sage); }

.script { font-family: var(--script); font-size: 1.6rem; color: var(--terra); line-height: 1.2; }
.lede { font-size: clamp(1.02rem, 1.2vw, 1.2rem); color: var(--ink-soft); max-width: 56ch; }
.dark .lede { color: #c9cdbf; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.6rem;
  background: var(--sage-deep); color: var(--white);
  font: 500 .8rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; border: 1px solid var(--sage-deep); border-radius: 2px;
  cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease);
}
.btn:hover { background: transparent; color: var(--sage-deep); }
.btn-sm { padding: .6rem 1.1rem; font-size: .7rem; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bone); }
.btn-sage { background: var(--terra-deep); border-color: var(--terra-deep); color: var(--white); }
.btn-sage:hover { background: transparent; color: var(--terra-deep); }
.dark .btn { background: var(--bone); color: var(--deep); border-color: var(--bone); }
.dark .btn:hover { background: transparent; color: var(--bone); }

/* Viewfinder corner brackets — the brand's focus-frame motif. */
.vf { position: absolute; inset: 0; pointer-events: none; }
.vf i {
  position: absolute; width: 24px; height: 24px;
  border: 1px solid rgb(255 255 255 / .75);
}
.vf i:nth-child(1) { top: 14px; left: 14px; border-width: 1px 0 0 1px; }
.vf i:nth-child(2) { top: 14px; right: 14px; border-width: 1px 1px 0 0; }
.vf i:nth-child(3) { bottom: 14px; left: 14px; border-width: 0 0 1px 1px; }
.vf i:nth-child(4) { bottom: 14px; right: 14px; border-width: 0 1px 1px 0; }

.arch { border-radius: var(--arch); overflow: hidden; }

/* --------------------------------------------------------------- header */

.site-head {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 1.5rem;
  width: 100%; padding: .85rem max(1.25rem, calc((100% - var(--shell)) / 2));
  background: rgb(246 247 242 / .86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-head[data-stuck] { border-bottom-color: var(--hairline); }

/* While the header still floats over the film it stays inverted, whether or
   not the page has scrolled — the film runs for several screens. */
.site-head[data-over-hero] {
  background: linear-gradient(to bottom, rgb(35 42 27 /  .45), transparent);
  backdrop-filter: none; color: var(--bone); border-bottom-color: transparent;
}
.site-head[data-over-hero] .btn {
  background: transparent; color: var(--bone); border-color: rgb(246 247 242 / .55);
}
.site-head[data-over-hero] .btn:hover { background: var(--bone); color: var(--ink); }

.wordmark {
  display: inline-flex; align-items: center; gap: .55rem;
  text-decoration: none; color: inherit; margin-inline-end: auto;
}
.wordmark-lotus { color: var(--sage-ink); display: flex; }
.site-head[data-over-hero] .wordmark-lotus { color: var(--sage); }
.wordmark-text { font-family: var(--display); font-size: 1.16rem; letter-spacing: .01em; }

.site-nav { display: flex; gap: 1.75rem; }
.site-nav a {
  position: relative; text-decoration: none;
  font-size: .82rem; letter-spacing: .09em; text-transform: uppercase;
  padding-block: .35rem;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: currentColor; transition: width .3s var(--ease);
}
.site-nav a:hover::after, .site-nav a[aria-current]::after { width: 100%; }

.head-actions { display: flex; align-items: center; gap: 1rem; }
.head-account {
  font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px;
}

.nav-toggle {
  display: none; width: 42px; height: 42px; padding: 0;
  background: none; border: 1px solid var(--hairline); border-radius: 2px;
  color: inherit; cursor: pointer;
}
.nav-bars, .nav-bars::before, .nav-bars::after {
  display: block; width: 17px; height: 1px; background: currentColor;
  margin-inline: auto; transition: transform .3s var(--ease), opacity .2s;
}
.nav-bars { position: relative; }
.nav-bars::before, .nav-bars::after { content: ""; position: absolute; left: 0; }
.nav-bars::before { top: -5px; }
.nav-bars::after { top: 5px; }
[aria-expanded="true"] .nav-bars { background: transparent; }
[aria-expanded="true"] .nav-bars::before { transform: translateY(5px) rotate(45deg); }
[aria-expanded="true"] .nav-bars::after { transform: translateY(-5px) rotate(-45deg); }

/* An author-level display value beats the UA's [hidden] rule, so the hidden
   state has to be restated here or the panel renders open. */
.mobile-nav[hidden] { display: none; }
.mobile-nav {
  position: fixed; inset: 62px 0 auto; z-index: 99;
  display: grid; gap: .25rem;
  padding: 1.25rem max(1.25rem, calc((100% - var(--shell)) / 2)) 1.75rem;
  background: var(--bone); border-bottom: 1px solid var(--hairline);
}
.mobile-nav a {
  padding: .7rem 0; text-decoration: none; border-bottom: 1px solid var(--hairline);
  font-size: .95rem; letter-spacing: .06em; text-transform: uppercase;
}
.mobile-nav .btn { margin-top: .9rem; border-bottom: 0; justify-content: center; }

@media (max-width: 900px) {
  .site-nav, .head-actions { display: none; }
  .nav-toggle { display: grid; place-items: center; }
}
@media (min-width: 901px) {
  /* The panel is for the burger only; never let it appear beside the nav. */
  .mobile-nav { display: none; }
}

/* ----------------------------------------------------------- hero (scrub) */

.hero { position: relative; }
/* The pinned track: its height is the scroll distance the film is scrubbed over. */
.hero-track { height: 320vh; }
.hero-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  overflow: hidden; background: var(--deep);
}
.hero-stage video, .hero-stage .hero-poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.hero-stage video { opacity: 0; transition: opacity .6s var(--ease); }
.hero-stage[data-ready] video { opacity: 1; }
.hero-stage::after {
  content: ""; position: absolute; inset: 0;
  /* The film runs from a bright storefront to a dim treatment room, so the
     scrim has to hold legibility across both extremes, not just the average. */
  background:
    linear-gradient(to bottom, rgb(35 42 27 /  .55) 0%, rgb(35 42 27 /  .14) 26%, rgb(35 42 27 /  .38) 56%, rgb(35 42 27 /  .86) 100%);
}

.hero-copy {
  position: absolute; inset: auto 0 0; z-index: 2;
  width: var(--shell); margin-inline: auto;
  padding-bottom: clamp(3.5rem, 9vh, 7rem);
  color: var(--bone);
}
/* Type sits over live video, so it carries its own shadow rather than
   relying on the scrim alone — the brightest frames wash out sage entirely. */
.hero-copy h1 { color: var(--bone); max-width: 15ch; text-shadow: 0 2px 24px rgb(35 42 27 /  .45); }
.hero-copy .script { color: #e4ead8; text-shadow: 0 1px 14px rgb(35 42 27 /  .6); }
.hero-sub { text-shadow: 0 1px 12px rgb(35 42 27 /  .5); }
.hero-sub { max-width: 46ch; color: #dfe3d6; margin-top: 1.1rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

/* Chapter captions, cross-faded as the film scrubs. */
.hero-chapters { position: absolute; inset: auto 0 0; z-index: 2; }
.hero-chapter {
  position: absolute; bottom: 0; left: 0; right: 0;
  opacity: 0; transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.hero-chapter[data-active] { opacity: 1; transform: none; }

.hero-scroll {
  position: absolute; z-index: 2; bottom: 1.75rem; right: max(1.25rem, calc((100% - var(--shell)) / 2));
  display: flex; align-items: center; gap: .6rem;
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: #cfd4c4;
}
.hero-scroll span { display: block; width: 44px; height: 1px; background: currentColor; position: relative; overflow: hidden; }
.hero-scroll span::after {
  content: ""; position: absolute; inset: 0; background: var(--bone);
  animation: sweep 2.4s var(--ease) infinite;
}
@keyframes sweep { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

.hero-progress {
  position: absolute; z-index: 3; left: 0; bottom: 0; height: 2px;
  background: var(--sage); width: 0;
}

/* Phones do not scrub: a 26s film is too heavy and seeks badly on touch.
   They get the poster with a slow ken-burns drift instead. */
@media (max-width: 820px), (prefers-reduced-motion: reduce) {
  .hero-track { height: auto; }
  .hero-stage { position: relative; height: 88svh; }
  .hero-stage video { display: none; }
  .hero-scroll { display: none; }
}

/* --------------------------------------------------------------- content */

.split {
  display: grid; gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  align-items: center;
}
.split-media { position: relative; }
.split-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
/* Page headers pair a short heading with the image; a 4:5 portrait there
   leaves the text stranded in the middle of a very tall row. */
.split-media.compact img { aspect-ratio: 5 / 4; max-height: 26rem; }

.stats { display: flex; flex-wrap: wrap; gap: 2.5rem; margin-top: 2.25rem; }
.stat { border-top: 1px solid var(--hairline); padding-top: .85rem; min-width: 8rem; }
.stat b { display: block; font-family: var(--display); font-size: 1.5rem; font-weight: 400; }
.stat span { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }

.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }

.card {
  background: var(--white); border: 1px solid var(--hairline); border-radius: 3px;
  padding: 1.75rem;
}
.card h3 { margin-bottom: .5rem; }
.card p:last-child { margin-bottom: 0; }
.card-num {
  font-family: var(--display); font-size: 2.1rem; color: var(--sage);
  line-height: 1; display: block; margin-bottom: .6rem;
}

/* Category card with arched image — the business-card arch motif. */
.cat-card {
  display: flex; flex-direction: column; text-decoration: none;
  background: var(--white); border: 1px solid var(--hairline); border-radius: 3px;
  overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgb(35 42 27 /  .35); }
.cat-media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; }
.cat-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.cat-card:hover .cat-media img { transform: scale(1.05); }
.cat-body { padding: 1.4rem 1.5rem 1.6rem; }
.cat-body h3 { margin-bottom: .4rem; }
.cat-body p { font-size: .93rem; color: var(--ink-soft); margin-bottom: .9rem; }
.cat-more { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--terra); }
.cat-lead {
  position: absolute; top: .9rem; left: .9rem; z-index: 2;
  background: var(--bone); color: var(--ink);
  font-size: .62rem; letter-spacing: .14em; text-transform: uppercase;
  padding: .35rem .6rem; border-radius: 2px;
}

/* --------------------------------------------------- service price rows */

.svc-list { border-top: 1px solid var(--hairline); }
.svc-row {
  display: grid; gap: .35rem 1.5rem; align-items: baseline;
  grid-template-columns: 1fr auto auto;
  padding: 1.35rem 0; border-bottom: 1px solid var(--hairline);
}
.svc-name { font-family: var(--display); font-size: 1.16rem; }
.svc-desc { grid-column: 1 / -1; font-size: .92rem; color: var(--ink-soft); margin: 0; max-width: 62ch; }
.svc-meta { font-size: .8rem; color: var(--ink-soft); letter-spacing: .06em; white-space: nowrap; }
.svc-price { font-family: var(--display); font-size: 1.16rem; white-space: nowrap; }
.svc-book { grid-column: 1 / -1; justify-self: start; margin-top: .35rem; }

@media (min-width: 760px) {
  .svc-row { grid-template-columns: 1fr auto auto auto; align-items: center; }
  .svc-desc { grid-column: 1; grid-row: 2; margin-top: -.2rem; }
  .svc-book { grid-column: 4; grid-row: 1 / span 2; justify-self: end; margin-top: 0; }
}

/* ------------------------------------------------------- full menu page */

.menu-jump {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-top: 2.25rem;
}
.menu-jump a {
  padding: .5rem 1rem;
  border: 1px solid var(--hairline); border-radius: 2px;
  background: var(--white);
  font-size: .76rem; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.menu-jump a:hover { background: var(--sage-deep); border-color: var(--sage-deep); color: var(--white); }

.menu-block { padding-block: clamp(2.5rem, 5vw, 4rem); }
.menu-block + .menu-block { border-top: 1px solid var(--hairline); }
/* The sticky header would otherwise land on top of the heading when the jump
   links scroll to a category. */
.menu-block { scroll-margin-top: 5.5rem; }

.menu-head {
  display: grid; gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center; margin-bottom: 1.5rem;
}
.menu-media { position: relative; }
.menu-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 3px; }

@media (min-width: 860px) {
  .menu-head { grid-template-columns: 1fr minmax(16rem, 22rem); }
}
@media (max-width: 859px) {
  /* Four decorative images stacked above four price lists is a lot of
     scrolling before the first price. Drop them on small screens. */
  .menu-media { display: none; }
}

/* -------------------------------------------------------------- gallery */

.gallery { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.gallery figure { margin: 0; position: relative; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery figure:hover img { transform: scale(1.06); }

/* --------------------------------------------------------------- forms */

.form { display: grid; gap: 1.1rem; max-width: 34rem; }
.form-wide { max-width: none; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .9rem;
  font: inherit; font-size: .96rem; color: var(--ink);
  background: var(--white); border: 1px solid var(--hairline); border-radius: 2px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--sage-ink); box-shadow: 0 0 0 3px var(--sage-wash);
}
.field textarea { min-height: 6.5rem; resize: vertical; }
.field-hint { font-size: .82rem; color: var(--ink-soft); }
.field-row { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.check { display: flex; gap: .65rem; align-items: flex-start; font-size: .93rem; }
.check input { width: auto; margin-top: .2rem; }

.notice { padding: 1rem 1.15rem; border-radius: 2px; border: 1px solid; font-size: .95rem; }
.notice p:last-child { margin-bottom: 0; }
.notice-error { background: #fdf1ed; border-color: #e6c3b6; color: var(--terra-deep); }
.notice-ok { background: var(--sage-wash); border-color: var(--sage); color: var(--sage-ink); }
.notice-info { background: var(--white); border-color: var(--hairline); color: var(--ink-soft); }

/* --------------------------------------------------------------- footer */

.site-foot { background: var(--deep); color: #c9cdbf; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.foot-grid {
  width: var(--shell); margin-inline: auto;
  display: grid; gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}
.foot-grid h2 {
  font-family: var(--body); font-size: .72rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--sage);
  margin-bottom: 1rem;
}
.foot-grid a { display: block; color: #c9cdbf; text-decoration: none; padding-block: .3rem; font-size: .93rem; }
.foot-grid a:hover { color: var(--bone); }
.foot-mark { font-family: var(--display); font-size: 1.35rem; color: var(--bone); margin-bottom: .3rem; }
.foot-note { font-size: .88rem; line-height: 1.6; margin-top: .7rem; }
.foot-base {
  width: var(--shell); margin: 2.75rem auto 0; padding-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / .12);
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between;
  font-size: .82rem;
}
.foot-base p { margin: 0; }
.foot-base a { color: #c9cdbf; }

/* --------------------------------------------------------------- reveal */

.js [data-reveal] { opacity: 0; transform: translateY(18px); }
[data-reveal][data-shown] {
  opacity: 1; transform: none;
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ------------------------------------------------------- meet martha */
/* The panel is painted the exact backdrop colour of the portrait, so there
   is no visible edge to the image — she simply stands in the colour while
   the camera pushes in. --p is scroll progress through the pinned track,
   set by site.js; every motion below is driven from it. */

.portrait { --p: 0; --sage-set: #9dab7e; }
.portrait-track { height: 260vh; }
.portrait-stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  background: var(--sage-set);
  display: grid; align-items: center;
  grid-template-columns: 1fr minmax(20rem, 34vw) 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: 0 max(1.25rem, calc((100% - var(--shell)) / 2));
  overflow: hidden;
}

.portrait-frame {
  margin: 0; position: relative; justify-self: center;
  /* Pushes in from slightly wide to slightly past full — the zoom is the
     whole point, so it runs the entire length of the pin. */
  transform: scale(calc(0.92 + (var(--p) * 0.16)));
  transform-origin: 50% 34%;
  will-change: transform;
}
.portrait-frame img, .portrait-frame video {
  width: 100%; height: auto; max-height: 60svh;
  object-fit: contain; display: block;
}

/* Brackets close in as the camera settles, like a lens finding focus. */
.vf-wide i {
  border-color: rgb(35 42 27 /  .35);
  width: 34px; height: 34px;
  transition: none;
}
.vf-wide { inset: calc(-6% + (var(--p) * 4%)); }

.portrait-copy { align-self: center; }
.portrait-copy .kicker { color: #46512f; }
.portrait-copy h2 { color: var(--ink); }
.portrait-copy .script { color: #f3f5ec; margin-top: .75rem; }
.portrait-copy p { color: #2c3322; }
.portrait-left  { text-align: right; }
.portrait-left .kicker { color: #46512f; }
.portrait-right { max-width: 23rem; }
.portrait-copy p { font-size: .95rem; line-height: 1.6; }
.portrait-copy h2 { font-size: clamp(1.8rem, 2.9vw, 2.6rem); }
.portrait-creds {
  list-style: none; margin: 1.5rem 0 0; padding: 0;
  display: grid; gap: .5rem;
}
.portrait-creds li {
  padding-top: .5rem; border-top: 1px solid rgb(35 42 27 /  .22);
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: #3d4530;
}
.portrait-right .stat { border-top-color: rgb(35 42 27 /  .22); }
.portrait-right .stat span { color: #3d4530; }

/* The two columns settle inward as the pin takes hold. */
.portrait-left  { transform: translateX(calc((1 - var(--p)) * -2.5rem)); opacity: calc(.25 + var(--p) * 1.6); }
.portrait-right { transform: translateX(calc((1 - var(--p)) *  2.5rem)); opacity: calc(.25 + var(--p) * 1.6); }

.btn-ink-ghost {
  background: transparent; color: var(--ink); border-color: rgb(35 42 27 /  .45);
}
.btn-ink-ghost:hover { background: var(--deep); color: var(--bone); border-color: var(--deep); }

/* Phones get the same panel without the pin: she sits between the two blocks
   of copy at a fixed size. Pinning a 260vh track on a small screen costs a
   lot of scrolling for a zoom nobody asked for. */
@media (max-width: 900px), (prefers-reduced-motion: reduce) {
  .portrait-track { height: auto; }
  .portrait-stage {
    position: relative; height: auto;
    grid-template-columns: 1fr;
    padding-block: clamp(3.5rem, 9vw, 5rem);
    text-align: center;
  }
  .portrait-frame { transform: none; max-width: 22rem; }
  .portrait-left, .portrait-right {
    transform: none; opacity: 1; text-align: center;
    max-width: 34rem; margin-inline: auto;
  }
  .portrait-left { order: -1; }
  .portrait-right .stats { justify-content: center; }
  .vf-wide { display: none; }
}

/* --------------------------------------------------- category tiles */
/* The way into a 31-item menu. Text pills were too quiet for the job. */

.cat-tiles {
  display: grid; gap: .9rem; margin-top: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}
.cat-tile {
  display: flex; flex-direction: column;
  text-decoration: none; overflow: hidden;
  background: var(--white); border: 1px solid var(--hairline); border-radius: 3px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.cat-tile:hover {
  transform: translateY(-3px); border-color: var(--sage);
  box-shadow: 0 16px 34px -22px rgb(35 42 27 /  .4);
}
.cat-tile-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.cat-tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.cat-tile:hover .cat-tile-media img { transform: scale(1.06); }
.cat-tile-body { display: block; padding: .9rem 1rem 1.05rem; }
.cat-tile-name {
  display: block; font-family: var(--display); font-size: 1.22rem; color: var(--ink);
}
.cat-tile-meta {
  display: block; margin-top: .2rem;
  font-size: .76rem; letter-spacing: .06em; color: var(--ink-soft);
}

/* Book Now is the point of the menu — give it full weight, not a quiet
   secondary button. */
.svc-book { background: var(--sage-deep); border-color: var(--sage-deep); color: var(--white); }
.svc-book:hover { background: var(--terra-deep); border-color: var(--terra-deep); color: var(--white); }

/* ---------------------------------------------------------- visit / map */

.visit-grid {
  display: grid; gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) {
  .visit-grid { grid-template-columns: minmax(20rem, 26rem) minmax(0, 1fr); }
}

.visit-panel {
  background: var(--white); border: 1px solid var(--hairline); border-radius: 3px;
  padding: clamp(1.5rem, 3vw, 2rem);
}

.status-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .8rem; border-radius: 100px;
  background: #f1f1ec; color: var(--ink-soft);
  font-size: .74rem; letter-spacing: .08em; text-transform: uppercase;
}
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-pill.is-open { background: var(--sage-wash); color: var(--sage-ink); }
/* A quiet pulse only while she is actually open — decoration that carries
   information, not decoration for its own sake. */
.status-pill.is-open i { animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgb(126 140 104 / .55); }
  60% { box-shadow: 0 0 0 7px rgb(126 140 104 / 0); }
}

.visit-addr {
  font-size: clamp(1.2rem, 1.7vw, 1.45rem); line-height: 1.35;
  margin: 1.25rem 0 .75rem;
}
.visit-note { font-size: .9rem; color: var(--ink-soft); margin-bottom: 1.5rem; }

.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th, .hours-table td {
  padding: .55rem 0; border-bottom: 1px solid var(--hairline);
  font-weight: 400; text-align: left; font-size: .93rem;
}
.hours-table th { color: var(--ink); }
.hours-table td { text-align: right; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.hours-table td.shut { color: #9aa08d; }
.hours-table tr.is-today th, .hours-table tr.is-today td { color: var(--ink); font-weight: 500; }
.today-tag {
  display: inline-block; margin-left: .5rem; padding: .1rem .45rem;
  background: var(--sage-wash); color: var(--sage-ink); border-radius: 2px;
  font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; vertical-align: 2px;
}

.visit-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.75rem; }

.visit-map {
  position: relative; min-height: 22rem; border-radius: 3px; overflow: hidden;
  border: 1px solid var(--hairline); background: var(--sage-wash);
}
.visit-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* -------------------------------------------------------------- chapters */
/* A short film held under copy and scrubbed by scroll. --c is progress
   through the pinned track, published by site.js. */

.chapter { --c: 0; }
.chapter-track { height: 200vh; }
.chapter-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  overflow: hidden; background: var(--deep);
}
.chapter-stage > img, .chapter-stage > video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.chapter-stage > video { opacity: 0; transition: opacity .7s var(--ease); }
.chapter-stage[data-ready] > video { opacity: 1; }
.chapter-stage[data-ready] > .chapter-poster { opacity: 0; transition: opacity .7s var(--ease); }

.chapter-veil {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgb(35 42 27 /  .82) 0%, rgb(35 42 27 /  .5) 38%, rgb(35 42 27 /  .12) 70%);
}
.chapter-right .chapter-veil {
  background: linear-gradient(to left, rgb(35 42 27 /  .82) 0%, rgb(35 42 27 /  .5) 38%, rgb(35 42 27 /  .12) 70%);
}

.chapter-copy {
  position: absolute; inset: 0; z-index: 2;
  display: grid; align-content: center;
  width: var(--shell); margin-inline: auto;
  max-width: none; color: var(--bone);
}
.chapter-copy > * { max-width: 30rem; }
.chapter-right .chapter-copy { justify-items: end; text-align: right; }
.chapter-right .chapter-copy > * { justify-self: end; }

.chapter-num {
  font: 500 .72rem/1 var(--body); letter-spacing: .22em; text-transform: uppercase;
  color: var(--sage); margin: 0 0 1.25rem;
}
.chapter-num span {
  font-family: var(--display); font-size: 1.5rem; letter-spacing: 0;
  vertical-align: -.25em; margin-right: .35rem;
}
.chapter-copy h2 { color: var(--bone); font-size: clamp(2rem, 4vw, 3.2rem); }
.chapter-body { margin-top: 1.25rem; color: #d5dac9; font-size: clamp(1rem, 1.15vw, 1.12rem); }

/* A hairline that draws itself across as the chapter plays — the scrub made
   visible, so the scroll feels like it is doing something. */
.chapter-rule {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px; z-index: 3;
  background: rgb(246 247 242 / .18);
}
.chapter-rule i {
  display: block; height: 100%; width: calc(var(--c) * 100%);
  background: var(--sage);
}

.num { font-family: var(--display); font-size: 1.15rem; letter-spacing: 0; vertical-align: -.1em; }

@media (max-width: 820px), (prefers-reduced-motion: reduce) {
  /* No scrub on phones: the poster carries it, copy sits below the image. */
  .chapter-track { height: auto; }
  .chapter-stage { position: relative; height: auto; min-height: 34rem; }
  .chapter-stage > video { display: none; }
  .chapter-veil { background: linear-gradient(to top, rgb(35 42 27 /  .9) 12%, rgb(35 42 27 /  .25) 70%); }
  .chapter-copy { position: relative; align-content: end; padding-block: 3rem; }
  .chapter-copy > *, .chapter-right .chapter-copy > * { max-width: none; justify-self: start; }
  .chapter-right .chapter-copy { justify-items: start; text-align: left; }
}

/* --------------------------------------------------------------- marquee */

.marquee {
  overflow: hidden; background: var(--deep); color: var(--bone);
  padding-block: 1.05rem; border-block: 1px solid rgb(246 247 242 / .12);
}
.marquee-run {
  display: flex; align-items: center; gap: 1.5rem; width: max-content;
  animation: run 58s linear infinite;
}
.marquee-run span {
  font-family: var(--display); font-style: italic;
  font-size: clamp(1rem, 1.5vw, 1.3rem); white-space: nowrap; opacity: .9;
}
.marquee-run b { color: var(--sage); font-weight: 400; }
@keyframes run { to { transform: translateX(-33.333%); } }
.marquee:hover .marquee-run { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .marquee-run { animation: none; } }

.hero-eyebrow {
  font: 500 .72rem/1 var(--body); letter-spacing: .22em; text-transform: uppercase;
  color: var(--sage); margin: 0 0 1.5rem;
  text-shadow: 0 1px 10px rgb(35 42 27 /  .6);
}

/* ----------------------------------------------------------------- legal */

.legal section + section { margin-top: 2.5rem; }
.legal h2 {
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  padding-bottom: .6rem; margin-bottom: 1rem;
  border-bottom: 1px solid var(--hairline);
}
.legal p { color: var(--ink-soft); font-size: .96rem; }
.legal p strong { color: var(--ink); font-weight: 500; }
.legal a { color: var(--terra); }
.legal code {
  font-size: .88em; background: var(--sage-wash); padding: .1rem .35rem; border-radius: 2px;
}

/* ------------------------------------------------- service row thumbnails */

.svc-thumb { display: none; }
@media (min-width: 620px) {
  .svc-row { grid-template-columns: auto 1fr auto auto; }
  .svc-thumb {
    display: block; grid-row: 1 / span 2; align-self: center;
    width: 5rem; border-radius: 3px; overflow: hidden; background: var(--sage-wash);
  }
  .svc-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
  .svc-desc { grid-column: 2; }
}
@media (min-width: 760px) {
  .svc-row { grid-template-columns: auto 1fr auto auto auto; }
  .svc-book { grid-column: 5; }
}

/* ---------------------------------------------------------------- gallery */

.gallery-grid {
  display: grid; gap: .75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
}
/* The first frame runs double width — a contact sheet with one plate pulled
   forward, rather than a uniform grid. */
@media (min-width: 720px) {
  /* Two columns by two rows is still square, so the lead frame is simply the
     same picture held larger. */
  .gallery-grid figure:first-child { grid-column: span 2; grid-row: span 2; }
}
.gallery-grid figure {
  margin: 0; position: relative; overflow: hidden; border-radius: 3px;
  background: var(--sage-wash);
  /* Square on the figure, not just the image: grid rows stretch by default,
     and without this every tile grew to match the double-height lead frame. */
  aspect-ratio: 1;
}
/* Square, because the source frames are square — cropping them taller only
   zoomed in and threw the context away. */
.gallery-grid img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.gallery-grid figure:hover img { transform: scale(1.06); }
.gallery-grid .vf { opacity: 0; transition: opacity .4s var(--ease); }
.gallery-grid figure:hover .vf { opacity: 1; }

/* ----------------------------------------------------------- ledger cards */
/* The philosophy pillars, core values, timeline and journey were all plain
   boxes. This turns them into a ruled ledger: a hairline that draws itself in
   as the card arrives, the number set in the display face, no box at all. */

.section .card {
  background: transparent; border: 0; border-radius: 0;
  padding: 1.5rem 0 0; position: relative;
}
.section .card::before {
  content: ""; position: absolute; top: 0; left: 0; height: 1px;
  width: 0; background: var(--ink);
  transition: width 1s var(--ease) .1s;
}
.section .card::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--hairline);
}
.section .card[data-shown]::before { width: 100%; }
html:not(.js) .section .card::before { width: 100%; transition: none; }
.section .card > * { position: relative; z-index: 1; }

.card-num {
  font-family: var(--display); font-size: 1.6rem; color: var(--sage-ink);
  line-height: 1; display: block; margin-bottom: .75rem;
  font-variant-numeric: lining-nums;
}
.section .card h3 { margin-bottom: .5rem; }
.section .card p { color: var(--ink-soft); font-size: .94rem; }

/* The visit panel and the admin cards are real containers, not ledger rows. */
.visit-panel.card, .card.notice, aside .card, #admin .card { background: var(--white); }
aside .card, .visit-panel {
  border: 1px solid var(--hairline); border-radius: 3px; padding: 1.75rem;
}
aside .card::before, aside .card::after,
.visit-panel::before, .visit-panel::after { display: none; }

/* Admin keeps its boxes — it is a tool, and rows would make it harder to scan. */
.section .card:has(form[action^="/admin"]),
.section .card:has(form[action^="/portal"]) {
  background: var(--white); border: 1px solid var(--hairline);
  border-radius: 3px; padding: 1.75rem;
}
.section .card:has(form[action^="/admin"])::before,
.section .card:has(form[action^="/admin"])::after,
.section .card:has(form[action^="/portal"])::before,
.section .card:has(form[action^="/portal"])::after { display: none; }


/* ---------------------------------------------------------- preview bar */
/* Shown only when PREVIEW_NOTICE is set, i.e. on the MadVisions showcase.
   Bookings here are real database writes but reach nobody, so a visitor who
   found this by accident must not believe they have an appointment. */

.preview-bar {
  position: relative; z-index: 150;
  background: var(--terra-deep); color: #fff;
  padding: .7rem max(1.25rem, calc((100% - var(--shell)) / 2));
  font-size: .85rem; line-height: 1.5; text-align: center;
}
.preview-bar a { color: #fff; text-underline-offset: 3px; }
.preview-bar strong { letter-spacing: .04em; }
