/* ==========================================================================
   Rays Beauty Salon
   Palette "Main Street", taken from the shopfront at 247 Division St:
   deep teal (sign panels) for buttons and dark sections, brick for accents,
   on a warm cream page. The hero and lookbook stay near-black (--black).
   Type: Cormorant Garamond + Jost.
   ========================================================================== */

:root {
  --ivory: #fbf7f1;
  --cream: #f1e7da;
  --sand: #e4d5c3;
  --black: #151515; /* hero + lookbook only */
  --teal: #0f4c55; /* deep teal from the sign panels */
  --onyx: var(--teal); /* buttons, active tabs, dark sections */
  --ink: #1a2426;
  --mute: #5b6466;
  --mute-light: #9fc3c8;
  --champagne: #eeab8c; /* light coral: accent on dark backgrounds */
  --champagne-deep: #a8432b; /* brick: accent on light backgrounds */
  --line: rgba(26, 36, 38, 0.14);
  --line-light: rgba(251, 247, 241, 0.2);
  --nav-bg: rgba(251, 247, 241, 0.94);
  --services-bg: #f5eee4;
  --wave-0: rgba(26, 36, 38, 0.14);
  --wave-1: #eeab8c;
  --wave-2: #a8432b;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 10vw, 8.5rem);
  --nav-h: 76px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
em { font-style: italic; color: var(--champagne-deep); }

::selection { background: var(--champagne); color: var(--onyx); }

:focus-visible { outline: 2px solid var(--champagne); outline-offset: 3px; }

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--onyx);
  color: var(--ivory);
}
.skip:focus { top: 1rem; }

/* ---------- Type ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.25rem;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--champagne-deep);
}
.eyebrow--light { color: var(--champagne); }

.h2 {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 4.6vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

.statement {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.6vw, 3rem);
  line-height: 1.22;
  font-weight: 400;
  max-width: 28em;
  margin: 0;
}
.statement--center { margin-inline: auto; text-align: center; max-width: 20em; }

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 2rem;
  border: 1px solid var(--onyx);
  background: var(--onyx);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn:hover { background: transparent; color: var(--onyx); }

.btn--light { background: var(--ivory); color: var(--onyx); border-color: var(--ivory); }
.btn--light:hover { background: transparent; color: var(--ivory); }

/* teal button, for dark areas that keep their own near-black (the hero) */
.btn--teal { background: var(--teal); color: var(--ivory); border-color: var(--teal); }
.btn--teal:hover { background: transparent; color: var(--ivory); border-color: var(--ivory); }
.btn--ghost { background: transparent; color: var(--ivory); border-color: var(--line-light); }
.btn--ghost:hover { border-color: var(--ivory); color: var(--ivory); }

.btn--small { min-height: 42px; padding: 0 1.4rem; font-size: 0.75rem; }

.link {
  position: relative;
  display: inline-block;
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 0.3rem;
}
.link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.link:hover::after { transform: scaleX(0.35); }
.link--light { color: var(--ivory); }

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  color: var(--ivory);
  transition: background 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav.is-solid {
  background: var(--nav-bg, rgba(247, 242, 236, 0.94));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}

.nav__inner {
  height: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  text-decoration: none;
}
.brand__mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2rem;
  line-height: 1;
  font-weight: 500;
}
.brand__sub {
  font-size: 0.6875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* phone/tablet: brand left, menu button right (the layout below 900px).
   The stars and address only show in the desktop "Shopfront" layout. */
.nav__mid { display: flex; align-items: center; gap: 1.1rem; margin-right: auto; }
.nav__star { display: none; flex: none; width: 9px; height: 9px; fill: var(--champagne); transition: fill 0.4s var(--ease); }
.nav__end { display: flex; align-items: center; gap: 1.75rem; }
.nav__addr { display: none; font-size: 0.6875rem; letter-spacing: 0.2em; text-transform: uppercase; white-space: nowrap; }

.nav__links { display: flex; gap: 2.25rem; }
.nav__links a {
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.3s;
  position: relative;
  padding-block: 6px;
  white-space: nowrap;
}
.nav__links a:hover,
.nav__links a:focus-visible { opacity: 1; }
/* Champagne bloom: a champagne line grows out from the centre, with a small
   dot settling just beneath it. Deeper champagne on the light (scrolled) nav. */
.nav__links a::after,
.nav__links a::before {
  content: "";
  position: absolute;
  background: var(--champagne);
}
.nav__links a::after {
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  transform: scaleX(0);
  transition: transform 0.45s var(--ease);
}
.nav__links a::before {
  left: 50%;
  bottom: -5px;
  width: 3px;
  height: 3px;
  margin-left: -1.5px;
  border-radius: 50%;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s, transform 0.45s var(--ease);
}
.nav__links a:hover::after,
.nav__links a:focus-visible::after,
.nav__links a[aria-current]::after { transform: scaleX(1); }
.nav__links a:hover::before,
.nav__links a:focus-visible::before { opacity: 1; transform: none; }
.nav__links a[aria-current] { opacity: 1; }
.nav.is-solid .nav__links a::after,
.nav.is-solid .nav__links a::before { background: var(--champagne-deep); }

.nav .btn--small { background: transparent; color: inherit; border-color: currentColor; }
.nav .btn--small:hover { background: var(--champagne); border-color: var(--champagne); color: var(--onyx); }

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  position: relative;
}
.nav__toggle span {
  position: absolute;
  left: 10px; right: 10px;
  height: 1px;
  background: currentColor;
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.nav__toggle span:first-child { top: 18px; }
.nav__toggle span:last-child { top: 26px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

/* Mobile menu, "Ivory bloom": an ivory sheet opens as a circle out of the menu
   button (site.js sets --mx/--my to the button's centre), and centred italic
   links fade up out of a soft blur, one after another. Closing runs it back.
   Without JS the menu keeps its hidden attribute and never shows. */
.menu {
  --mx: calc(100% - 2.5rem);
  --my: calc(var(--nav-h) / 2);
  position: fixed;
  inset: 0;
  z-index: 40;
  padding: calc(var(--nav-h) + 3rem) var(--gutter) 2rem;
  background: var(--ivory);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  visibility: hidden;
  clip-path: circle(0px at var(--mx) var(--my));
  transition: clip-path 0.7s cubic-bezier(0.77, 0, 0.18, 1) 0.1s, visibility 0s linear 0.8s;
}
.menu[hidden] { display: none; }
.menu.is-open {
  visibility: visible;
  clip-path: circle(160% at var(--mx) var(--my));
  transition: clip-path 0.9s cubic-bezier(0.77, 0, 0.18, 1), visibility 0s;
}
.menu nav { display: flex; flex-direction: column; gap: 0.35rem; margin-top: auto; }
.menu nav a {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2.5rem, 11vw, 3.25rem);
  line-height: 1.15;
  text-decoration: none;
  opacity: 0;
  filter: blur(6px);
  transform: translateY(14px);
  transition: opacity 0.25s, filter 0.25s, transform 0.25s, color 0.3s;
}
.menu nav a:hover, .menu nav a:focus-visible { color: var(--champagne-deep); }
.menu.is-open nav a {
  opacity: 1;
  filter: none;
  transform: none;
  --d: calc(0.35s + var(--i, 0) * 0.08s);
  transition: opacity 0.7s var(--ease) var(--d), filter 0.7s var(--ease) var(--d), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) var(--d), color 0.3s;
}
.menu__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--champagne);
  margin: 1.75rem auto 0;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.3s, transform 0.3s;
}
.menu.is-open .menu__dot { opacity: 1; transform: none; transition: opacity 0.4s 0.75s, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.75s; }
.menu__foot { margin-top: auto; width: 100%; max-width: 26rem; opacity: 0; transition: opacity 0.25s; }
.menu.is-open .menu__foot { opacity: 1; transition: opacity 0.6s 0.8s; }
.menu__foot .btn { width: 100%; }
.menu__addr { margin: 1rem 0 0; color: var(--mute); font-size: 0.6875rem; letter-spacing: 0.26em; text-transform: uppercase; }
/* the nav floats over the sheet with ink text; its colour waits for the ivory
   to reach it when opening (and to pull back past it when closing, see site.js) */
body.menu-open .nav { background: transparent; color: var(--ink); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; transition: color 0.35s var(--ease) 0.3s, background 0.2s linear 0.3s, box-shadow 0.2s linear 0.3s; }
body.menu-closing .nav { transition: color 0.35s var(--ease) 0.45s, background 0.3s var(--ease) 0.6s, box-shadow 0.3s var(--ease) 0.6s; }
/* the button sits where the circle starts and ends, so it's ink for the whole time the ivory covers it */
body.menu-open .nav__toggle,
body.menu-closing .nav__toggle { color: var(--ink); }
body.menu-open { overflow: hidden; }

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
}

/* Desktop, "Shopfront": links left, the wordmark centred like the sign over
   the door with a star either side, address + Book right. Tall over the hero;
   past it the bar turns ivory, shortens, and the wordmark shrinks. */
@media (min-width: 901px) {
  :root { --nav-h: 66px; --nav-top: 96px; }
  .nav { height: var(--nav-top); transition: height 0.5s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease); }
  .nav.is-solid { height: var(--nav-h); }
  .nav__inner { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.5rem; }
  .nav__mid { margin-right: 0; }
  .nav__star { display: block; }
  .nav.is-solid .nav__star { fill: var(--champagne-deep); }
  .nav__end { justify-self: end; }
  .brand { flex-direction: column; align-items: center; gap: 0.3rem; }
  .brand__mark { font-size: 2.75rem; transition: font-size 0.5s var(--ease); }
  .brand__sub { max-height: 1.2em; overflow: hidden; transition: opacity 0.3s, max-height 0.45s var(--ease); }
  .nav.is-solid .brand__mark { font-size: 1.9rem; }
  .nav.is-solid .brand__sub { opacity: 0; max-height: 0; }
}
/* narrow desktops: tighten the links so the bar keeps one line */
@media (min-width: 901px) and (max-width: 1100px) {
  .nav__links { gap: 1.4rem; }
  .nav__links a { letter-spacing: 0.1em; }
}
@media (min-width: 1180px) { .nav__addr { display: inline; } }

/* ---------- Hero ---------- */

.hero {
  --onyx: var(--black);
  position: relative;
  /* exactly one screen: svh avoids mobile browser-bar jumps, vh is the fallback */
  height: 100vh;
  height: 100svh;
  min-height: 540px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--onyx);
  color: var(--ivory);
  overflow: hidden;
}

.hero__text {
  align-self: center;
  padding: var(--nav-h) var(--gutter) clamp(2rem, 6svh, 5rem) max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  position: relative;
  z-index: 2;
}

.hero__title {
  font-family: var(--serif);
  /* scales with width and height, so short laptop screens still fit */
  /* --k enlarges the headline; line-height shrinks by the same ratio so the
     block keeps its height and nothing around it moves */
  --k: 1.2;
  --base: clamp(3rem, min(8vw, 12.5svh), 7.5rem);
  font-size: calc(var(--k) * var(--base));
  /* breathing room tied to the base size (not the enlarged size), so changing --k never moves neighbours */
  padding-block: calc(0.14 * var(--base));
  line-height: calc(0.95 / var(--k));
  letter-spacing: -0.02em;
  margin-bottom: clamp(1.25rem, 3.5svh, 2.25rem);
  /* flex column: the lines' mask padding and negative margins cancel exactly
     (no margin collapsing), so the block is always 3 × line-height tall */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero__title em {
  color: var(--champagne);
  /* inline padding keeps the italic overhang inside the painted text box */
  /* inline padding keeps italic overhang and descenders (f, y) inside the
     painted text area; vertical inline padding doesn't affect layout */
  padding: 0.2em 0.14em 0.35em 0.02em;
  margin: 0 -0.14em 0 -0.02em;
}
.hero__title .line {
  display: block;
  /* breathing room so ascenders, descenders and italic overhang sit inside the mask */
  padding: 0.2em 0.3em 0.35em 0;
  margin: -0.2em -0.3em -0.35em 0;
}

.hero__rule {
  display: block;
  width: 72px;
  height: 1px;
  margin-bottom: clamp(1rem, 2.8svh, 1.75rem);
  background: var(--champagne);
  transform-origin: left;
}

.hero__lede {
  max-width: 30ch;
  font-size: 1.125rem;
  color: var(--ivory);
  margin-bottom: clamp(1.5rem, 4.5svh, 2.75rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2.25rem;
}

/* Hero entrance: "light passing over hair".
   1. The photograph comes up out of darkness, like studio lights warming.
   2. Each line of type is uncovered by a feathered band of light travelling
      left to right; nothing is partially visible before its turn.
   3. Once settled, one gold glint runs along the italic word.
   Everything lives under no-preference, so reduced-motion visitors simply
   get the finished page. */
@media (prefers-reduced-motion: no-preference) {
  :root { --sweep: cubic-bezier(0.65, 0, 0.25, 1); --expo: cubic-bezier(0.16, 1, 0.3, 1); }

  .hero__title .line,
  .hero__lede {
    -webkit-mask-image: linear-gradient(90deg, #000 42%, transparent 58%);
    mask-image: linear-gradient(90deg, #000 42%, transparent 58%);
    -webkit-mask-size: 300% 100%;
    mask-size: 300% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    animation: sweep 1.7s var(--sweep) both;
  }
  .hero__title .line { animation-delay: calc(0.7s + var(--i) * 0.22s); }
  .hero__lede { animation-delay: 1.9s; animation-duration: 1.5s; }

  .hero__rule { animation: draw 1.3s var(--expo) both 1.75s; }
  .hero__actions { animation: appear 1.4s ease both 2.4s; }

  .hero__title em {
    background: linear-gradient(100deg, var(--champagne) 0 40%, #fff5e4 50%, var(--champagne) 60% 100%);
    background-size: 300% 100%;
    background-position: 0 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glint 2.2s cubic-bezier(0.45, 0, 0.2, 1) both 2.5s;
  }

  .hero__media img { animation: lights-up 3.6s var(--expo) both; }
}


.hero__media { position: relative; overflow: hidden; }
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(90deg, var(--onyx) 0%, rgba(21, 21, 21, 0) 30%);
}

.hero__address {
  position: absolute;
  right: var(--gutter);
  bottom: 2rem;
  z-index: 2;
  margin: 0;
  font-size: 0.6875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(247, 242, 236, 0.7);
}

@media (max-width: 900px) {
  /* phones/tablets: photo fills the screen, copy sits over its lower half */
  .hero { grid-template-columns: 1fr; min-height: 520px; }
  .hero__media { position: absolute; inset: 0; }
  .hero__media img { object-position: 50% 20%; }
  .hero__media::after { background: linear-gradient(0deg, var(--onyx) 0%, rgba(21, 21, 21, 0.9) 32%, rgba(21, 21, 21, 0.25) 62%, rgba(21, 21, 21, 0.45) 100%); }
  .hero__text { align-self: end; padding: 0 var(--gutter) clamp(1.75rem, 5svh, 3rem); }
  .hero__title { --base: clamp(2.75rem, min(14vw, 8.5svh), 5rem); }
  .hero__lede { font-size: 1rem; }
  .hero__address { display: none; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
@keyframes sweep {
  from { -webkit-mask-position: 100% 0; mask-position: 100% 0; filter: blur(5px); }
  to { -webkit-mask-position: 0 0; mask-position: 0 0; filter: blur(0); }
}
@keyframes draw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes appear {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes glint {
  from { background-position: 100% 0; }
  to { background-position: 0 0; }
}
@keyframes lights-up {
  from { opacity: 0; filter: brightness(0.35); transform: scale(1.08); }
  35% { opacity: 1; }
  to { opacity: 1; filter: brightness(1); transform: none; }
}

/* ---------- Intro ---------- */

.intro { padding-block: var(--section) calc(var(--section) * 0.6); }

/* ---------- Studio ---------- */

.studio { padding-bottom: var(--section); overflow-x: clip; /* the overlapping photo never adds sideways scroll */ }
.studio__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
}

/* Arch window: the photo in a tall arch traced by two champagne hairlines, a
   little star at the keystone, and the detail photo in a smaller arch
   overlapping the corner. */
.studio__arch { grid-column: 1 / 7; grid-row: 1; width: 100%; max-width: 440px; margin: 0 auto; }
.studio__window { position: relative; padding: 18px; }
.studio__window::before,
.studio__window::after {
  content: ""; position: absolute; pointer-events: none;
  border: 1px solid var(--champagne);
  border-radius: 999px 999px 4px 4px;
}
.studio__window::before { inset: 0; }
.studio__window::after { inset: 8px; opacity: 0.55; }
.studio__star { position: absolute; width: 14px; height: 14px; fill: var(--champagne-deep); }
.studio__star--key { top: -7px; left: 50%; translate: -50% 0; z-index: 2; padding: 0 3px; box-sizing: content-box; background: var(--ivory); }
.studio__star--1 { top: 14%; left: -6%; width: 9px; height: 9px; fill: var(--champagne); }
.studio__star--2 { top: 4%; right: 4%; width: 7px; height: 7px; fill: var(--champagne); }

/* main photo in the tall arch (studio-stylist.jpg, trimmed top and bottom
   from the original so the logo on the client's cape is cut out) */
.studio__main {
  aspect-ratio: 3 / 4;
  border-radius: 999px 999px 3px 3px;
  overflow: hidden;
  background: var(--sand);
}
.studio__main img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 0%; }
.studio__photo {
  position: absolute; z-index: 1;
  right: -26%; bottom: 8%; width: 44%;
  aspect-ratio: 3 / 4;
  border-radius: 999px 999px 3px 3px; overflow: hidden;
  border: 8px solid var(--ivory);
  outline: 1px solid var(--champagne); outline-offset: 3px;
}
.studio__photo img { width: 100%; height: 100%; object-fit: cover; }
.studio__caption {
  margin-top: 1.25rem; text-align: center;
  font-family: var(--serif); font-style: italic; font-size: 1.05rem;
  color: var(--champagne-deep); letter-spacing: 0.02em;
}
.studio__copy { grid-column: 8 / 13; grid-row: 1; }
.studio__copy > p { color: var(--mute); }

.pillars { list-style: none; padding: 0; margin: 2rem 0 0; }
.pillars li {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 0.75rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-size: 0.975rem;
}
.pillars strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
}
.pillars__n { font-family: var(--serif); font-style: italic; color: var(--champagne-deep); font-size: 1.1rem; }

@media (max-width: 900px) {
  .studio__arch, .studio__copy { grid-column: 1 / -1; grid-row: auto; }
  .studio__arch { max-width: min(360px, 84%); }
  .studio__photo { right: -8%; width: 38%; }
}

/* ---------- Services ----------
   The Menu on one screen, nothing sticky: a centred title with every category
   as a row of pills, then the chosen category's menu beside a cluster of
   circles (photos and short highlights). The cluster is sized from the window
   height so the whole section fits in view. Switching category re-arranges
   the cluster (site.js); its layouts live in src/_data/menuBubbles.json. */

.services {
  background: var(--services-bg, #f8f4ee);
  color: var(--ink);
  border-top: 1px solid var(--line);
}
.services__view {
  --head-h: 12.5rem; /* room taken by the head, used to size the cluster */
  min-height: calc(100svh - var(--nav-h));
  display: flex; flex-direction: column; justify-content: center;
  padding-block: clamp(2rem, 5vh, 3.5rem);
}

.services__head { text-align: center; margin-bottom: clamp(1rem, 2.5vh, 2rem); }
.services__head .eyebrow { margin-bottom: 0.75rem; }
.services__title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.5rem, 4.6vw, 4rem); line-height: 0.95; letter-spacing: -0.02em;
  margin: 0 0 clamp(1.25rem, 3vh, 2rem);
}

.services__tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem; }
.services__tab {
  padding: 0.6rem 1.35rem; border: 1px solid var(--line); border-radius: 99px;
  background: transparent; color: var(--mute);
  font-family: var(--sans); font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer; transition: color 0.35s var(--ease), background-color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.services__tab:hover { color: var(--ink); background: rgba(29, 29, 29, 0.05); }
.services__tab[aria-selected="true"] { background: var(--onyx); border-color: var(--onyx); color: var(--ivory); }

.services__body {
  display: grid;
  grid-template-columns: minmax(0, 4.5fr) minmax(0, 6.5fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
/* all panels share one cell, so the column is always as tall as the tallest
   one and switching never changes its height (which would nudge the cluster) */
.services__panels { display: grid; }
.services__panels > .menu-panel { grid-area: 1 / 1; }
.services__panels > .menu-panel[hidden] { display: block; visibility: hidden; }
.services__note { margin: 1.5rem 0 0; font-size: 0.8125rem; color: var(--mute); max-width: 44ch; }

.menu-panel.is-entering { animation: rise 0.6s var(--ease) both; }
.menu-panel__num { font-size: 0.75rem; letter-spacing: 0.24em; color: var(--champagne-deep); margin: 0 0 0.5rem; }
.menu-panel__title { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: 1.05; margin: 0 0 0.75rem; }
.menu-panel__intro { color: var(--mute); max-width: 42ch; margin-bottom: 1.5rem; }
.menu-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.menu-list li { display: flex; align-items: baseline; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.menu-list__name { font-family: var(--serif); font-size: 1.3rem; line-height: 1.2; }
.menu-list__note { margin-left: auto; font-size: 0.8125rem; color: var(--mute); text-align: right; }
.menu-list__price { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--champagne-deep); white-space: nowrap; }
.menu-panel__cta { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; }
.services .link { color: var(--ink); }

.services__stage {
  position: relative;
  aspect-ratio: 1;
  container-type: inline-size;
  /* as wide as the column allows, but never taller than what's left of the screen */
  width: min(100%, calc(100svh - var(--nav-h) - var(--head-h)));
  min-width: 300px;
  justify-self: center;
}

/* Every circle is the same 46%-wide box, moved and sized only with transform
   (translate to its centre, then scale to its diameter), so a move is handled
   by the GPU: no layout, no repainting of photos, no text re-wrapping mid-move.
   The outer box does the glide; the inner layer does the pop in and out, so
   each can have its own easing. Centre (--x, --y) and diameter (--d) are % of
   the square stage. */
.bubble {
  --x: 50; --y: 50; --d: 46;
  position: absolute; left: 0; top: 0;
  width: 46%; aspect-ratio: 1;
  transform-origin: 0 0;
  transform: translate(calc(var(--x) * 1cqi), calc(var(--y) * 1cqi)) scale(calc(var(--d) / 46)) translate(-50%, -50%);
  transition: transform 0.85s cubic-bezier(0.65, 0, 0.35, 1);
  transition-delay: var(--delay, 0s);
  will-change: transform;
}
/* while being moved to where it will appear: jump, don't glide */
.bubble.is-placing { transition: none; }

.bubble__in {
  width: 100%; height: 100%;
  border-radius: 50%; overflow: hidden;
  display: grid; place-items: center;
  transform: scale(1);
  transition: transform 0.7s cubic-bezier(0.34, 1.5, 0.64, 1);
  transition-delay: var(--pop-delay, 0s);
}
/* leaving: shrink to a point, quickly */
.bubble.is-hidden .bubble__in { transform: scale(0); transition: transform 0.38s cubic-bezier(0.5, 0, 0.75, 0); transition-delay: var(--pop-delay, 0s); }

.bubble img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.2s var(--ease); transition-delay: var(--pop-delay, 0s); }
/* photos settle from a slight zoom as they open (reset once fully hidden) */
.bubble.is-hidden img { transform: scale(1.25); transition: transform 0s 0.45s; }

.bubble span {
  padding: 10%;
  font-family: var(--serif); line-height: 1.1; text-align: center;
  /* sized for the full 46% box, so it lands at the right size once scaled */
  font-size: calc(max(0.8125rem, var(--d) * 0.14cqi) * 46 / var(--d));
}
.bubble--onyx { background: var(--onyx); color: var(--ivory); }
.bubble--sand { background: var(--sand); color: var(--ink); }
.bubble--champagne { background: var(--champagne); color: var(--onyx); }
.bubble--champagne span, .bubble--onyx span { font-style: italic; }
.bubble--dot { background: var(--champagne-deep); }

/* short laptop screens: tighten the menu so the section still fits in one view */
@media (min-width: 901px) and (max-height: 820px) {
  .services__view { --head-h: 11.5rem; }
  .services__title { font-size: clamp(2.25rem, 4vw, 3.25rem); }
  .menu-panel__title { font-size: 2rem; margin-bottom: 0.5rem; }
  .menu-panel__intro { margin-bottom: 1rem; line-height: 1.6; }
  .menu-list li { padding: 0.6rem 0; }
  .menu-list__name { font-size: 1.2rem; }
  .menu-panel__cta { margin-top: 1.25rem; }
  .services__note { margin-top: 0.9rem; }
}

@media (max-width: 900px) {
  /* flatten head + body so the order can be: title, bubbles, pills, menu */
  .services__view { min-height: 0; gap: 1.5rem; padding-block: var(--section); }
  .services__head, .services__body { display: contents; }
  .services__head .eyebrow { order: 1; justify-content: center; margin-bottom: -1rem; }
  .services__title { order: 2; margin: 0; text-align: center; }
  .services__stage { order: 3; width: min(100%, 520px); min-width: 0; margin-inline: auto; }
  .services__tabs { order: 4; }
  .services__menu { order: 5; margin-top: 0.5rem; }
  .services__tab { padding: 0.5rem 0.95rem; font-size: 0.6875rem; letter-spacing: 0.1em; }
}

/* ---------- Gallery: full-screen lookbook ----------
   One photo fills the screen; a small strip of thumbnails floats over it.
   Choosing a thumbnail grows its photo out of that thumbnail's exact spot
   until it fills the stage (driven by site.js). */

.lookbook {
  --onyx: var(--black);
  position: relative;
  /* one screen below the fixed nav, so jumping here from the menu shows all of it */
  height: calc(100vh - var(--nav-h));
  height: calc(100svh - var(--nav-h));
  min-height: 520px;
  max-height: 1100px;
  background: var(--onyx);
  color: var(--ivory);
  overflow: hidden;
  isolation: isolate;
}

.lookbook__stage { position: absolute; inset: 0; z-index: 0; isolation: isolate; }
.lookbook__slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  /* opacity, not visibility: visibility is inherited, and Chrome can leave a
     child that holds animation state stuck "hidden" (a black stage) */
  opacity: 0;
  pointer-events: none;
}
.lookbook__slide.is-active,
.lookbook__slide.is-leaving { opacity: 1; }
.lookbook__slide picture { display: contents; }
.lookbook__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos-l, 50% 50%);
  transform-origin: 50% 50%;
}

/* legibility scrims, top for the heading and bottom for the strip */
.lookbook::before,
.lookbook::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 50;
  pointer-events: none;
}
.lookbook::before { top: 0; height: 50%; background: linear-gradient(180deg, rgba(21, 21, 21, 0.78) 0%, rgba(21, 21, 21, 0.45) 45%, rgba(21, 21, 21, 0) 100%); }
.lookbook::after { bottom: 0; height: 42%; background: linear-gradient(0deg, rgba(21, 21, 21, 0.85) 0%, rgba(21, 21, 21, 0.4) 50%, rgba(21, 21, 21, 0) 100%); }

.lookbook__head {
  position: absolute;
  top: clamp(1.5rem, 6svh, 3.5rem);
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.lookbook__head .eyebrow { margin-bottom: 0.75rem; }
.lookbook__title {
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.35);
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
}
.lookbook__title em { color: var(--champagne); }

.lookbook__ui {
  position: absolute;
  left: 50%;
  bottom: clamp(1.75rem, 7svh, 4.5rem);
  z-index: 60;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  max-width: calc(100% - 2 * var(--gutter));
}

.lookbook__label {
  margin: 0;
  display: flex;
  gap: 1rem;
  font-size: 0.6875rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  white-space: nowrap;
}
.lookbook__count { color: var(--champagne); }
.lookbook__name { color: var(--ivory); transition: opacity 0.35s ease, transform 0.35s ease; }
.lookbook__name.is-swapping { opacity: 0; transform: translateY(4px); }

.lookbook__strip {
  display: flex;
  gap: 4px;
  padding: 4px;
  /* solid tint, no backdrop-filter: blur over clip-path animations causes
     ghosting and black flashes in Chrome */
  background: rgba(21, 21, 21, 0.55);
}
.lookbook__thumb {
  position: relative;
  width: 76px;
  height: 50px;
  padding: 0;
  border: 0;
  background: var(--onyx);
  cursor: pointer;
  overflow: hidden;
}
.lookbook__thumb picture { display: contents; }
.lookbook__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  filter: grayscale(0.5);
  transition: opacity 0.4s ease, filter 0.4s ease, transform 0.6s var(--ease);
}
.lookbook__thumb:hover img,
.lookbook__thumb:focus-visible img { opacity: 0.9; filter: none; transform: scale(1.08); }
.lookbook__thumb[aria-pressed="true"] img { opacity: 1; filter: none; }
.lookbook__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px var(--ivory);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.lookbook__thumb[aria-pressed="true"]::after { opacity: 1; }
.lookbook__thumb:focus-visible { outline: 1px solid var(--champagne); outline-offset: 2px; }

@media (max-width: 700px) {
  .lookbook { height: calc(88svh - var(--nav-h)); min-height: 500px; }
  .lookbook__head .link { display: none; }
  .lookbook__thumb { width: 42px; height: 56px; }
  .lookbook__strip { gap: 3px; padding: 3px; }
}

/* ---------- Quote ---------- */

.quote {
  background: var(--cream);
  padding-block: var(--section);
  text-align: center;
}
.quote .eyebrow { margin: 2rem 0 0; }

/* ---------- Book (Vagaro widget) ---------- */

.book { padding-block: var(--section); background: var(--ivory); }
.book__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.book__lede { color: var(--mute); max-width: 36ch; }
.book__steps { list-style: none; padding: 0; margin: 2rem 0 2.25rem; }
.book__steps li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 1.3rem;
}
.book__steps li:last-child { border-bottom: 1px solid var(--line); }
.book__steps span { font-style: italic; font-size: 1rem; color: var(--champagne-deep); width: 2rem; }
.book__alt { color: var(--mute); font-size: 0.9375rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: baseline; }

.book__frame {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(21, 21, 21, 0.25);
  min-height: 560px;
  display: flex;
}
.book__widget { width: 100%; min-height: 560px; }
.book__widget iframe { width: 100%; min-height: 560px; border: 0; display: block; }

.book__placeholder {
  margin: auto;
  padding: clamp(2rem, 5vw, 3.5rem);
  max-width: 30rem;
  text-align: center;
}
.book__ph-title { font-family: var(--serif); font-size: 1.75rem; margin: 2rem 0 0.5rem; color: var(--ink); }
.book__ph-text { color: var(--mute); margin-bottom: 1.75rem; }

/* a quiet, abstract calendar sketch standing in for the widget */
.book__cal { width: min(100%, 300px); margin-inline: auto; }
.book__cal-head { display: flex; justify-content: space-between; margin-bottom: 1rem; }
.book__cal-head span { height: 8px; border-radius: 4px; background: var(--sand); }
.book__cal-head span:first-child { width: 40%; }
.book__cal-head span:last-child { width: 18%; }
.book__cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.book__cal-grid i { aspect-ratio: 1; border-radius: 50%; background: var(--cream); }
.book__cal-grid i.on { background: var(--champagne); opacity: 0.55; }
.book__cal-times { display: flex; gap: 6px; margin-top: 1.1rem; }
.book__cal-times b { flex: 1; height: 26px; border: 1px solid var(--sand); }

@media (max-width: 900px) {
  .book__grid { grid-template-columns: 1fr; }
  .book__frame, .book__widget, .book__widget iframe { min-height: 480px; }
}

/* ---------- Visit ---------- */

/* Deep teal that brightens toward the right, lit by two soft corner glows:
   warm brick-coral at the top right, cool sea teal (the cornice) at the
   bottom right. The left side stays darkest, behind the text. */
.visit {
  background:
    radial-gradient(ellipse 85% 95% at 100% 0%, rgba(226, 158, 116, 0.78), rgba(196, 128, 98, 0.32) 38%, rgba(196, 128, 98, 0) 72%),
    radial-gradient(ellipse 70% 80% at 100% 100%, rgba(90, 170, 188, 0.7), rgba(90, 170, 188, 0) 72%),
    linear-gradient(110deg, #062a30 0%, #0a3a42 40%, #13545d 100%);
  background-color: var(--onyx);
  color: var(--ivory);
  padding-block: var(--section);
}
@media (max-width: 900px) {
  /* text runs full width here, so the warm glow stays softer behind it */
  .visit {
    background:
      radial-gradient(ellipse 90% 40% at 100% 0%, rgba(226, 158, 116, 0.42), rgba(226, 158, 116, 0) 75%),
      radial-gradient(ellipse 90% 45% at 100% 100%, rgba(90, 170, 188, 0.6), rgba(90, 170, 188, 0) 75%),
      linear-gradient(160deg, #062a30 0%, #0a3a42 50%, #13545d 100%);
  }
}
.visit__grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: stretch;
}
.visit address {
  font-style: normal;
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1.4;
  margin-bottom: 2.5rem;
}
.hours { border-top: 1px solid var(--line-light); padding-top: 1.5rem; margin-bottom: 2rem; color: var(--mute-light); }
.hours__h { font-size: 0.75rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--champagne); margin-bottom: 0.75rem; }
.hours dl { margin: 0; }
.hours dl div { display: flex; justify-content: space-between; padding: 0.4rem 0; }
.hours dd { margin: 0; color: var(--ivory); }

.notice {
  padding: 1.1rem 1.25rem;
  border-left: 2px solid var(--champagne);
  background: rgba(247, 242, 236, 0.05);
  color: var(--mute-light);
  font-size: 0.9375rem;
  margin-bottom: 2.5rem;
}
.notice strong { color: var(--ivory); font-weight: 500; }

.visit__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }

.visit__map { min-height: 580px; position: relative; overflow: hidden; isolation: isolate; }
.visit__map-link { position: absolute; inset: 0; display: block; }
.visit__map .map { position: absolute; inset: 0; width: 100%; height: 100%; display: block; font-family: var(--sans); }
:where(.visit__map .map) :where(path, use) { fill: none; vector-effect: non-scaling-stroke; }
.visit__map-cta {
  position: absolute; z-index: 2;
  padding: 0.7rem 1.1rem; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none; transition: background 0.2s, color 0.2s;
}
.visit__map-credit { position: absolute; z-index: 2; margin: 0; font-size: 0.6875rem; opacity: 0.7; }
.visit__map-credit a { color: inherit; }

/* Engraved street map. SVG drawn from OpenStreetMap data: src/_includes/visit-map.svg */
.visit__map { padding: 14px; background: #f4ede3; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6); }
.visit__map-link { inset: 14px; outline: 1px solid rgba(29, 29, 29, 0.55); outline-offset: -1px; }
.map--b .m-bg { fill: #f4ede3; }
.map--b path.m-lake { fill: #ebe2d4; }
.map--b .m-ripples use { stroke: #4a4036; stroke-width: 0.8; }
.map--b use.m-shore { stroke: var(--ink); stroke-width: 1.8; }
.map--b .m-park path { fill: #e5ddcc; }
.map--b .m-park-hatch path { fill: url(#b-hatch); }
.map--b .m-hatch-line { stroke: rgba(29, 29, 29, 0.2); stroke-width: 1; }
.map--b .m-beach path { fill: #efe2c6; stroke: rgba(29, 29, 29, 0.35); stroke-width: 0.8; stroke-dasharray: 2 3; }
.map--b .m-pier path { stroke: var(--ink); stroke-width: 4; stroke-linecap: square; }

.map--b .m-rail-c path { stroke: var(--ink); stroke-width: 5; }
.map--b .m-rail path { stroke: #f4ede3; stroke-width: 3; stroke-dasharray: 9 9; }
.map--b .m-minor-c path { stroke: #2b2622; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.map--b .m-minor path { stroke: #fbf8f3; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.map--b .m-major-c path { stroke: #2b2622; stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; }
.map--b .m-major path { stroke: #fbf8f3; stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; }
.map--b .m-div path { stroke: #e6d0b0; stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; }

.map--b .m-labels text { font-family: var(--serif); font-style: italic; font-size: 16px; fill: var(--ink); paint-order: stroke; stroke: #fbf8f3; stroke-width: 4px; }
.map--b .m-labels .m-place { font-style: normal; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; fill: #4a4036; stroke: #f4ede3; }
.map--b .m-labels .m-water-lbl { font-size: 34px; letter-spacing: 0.28em; fill: #3b332b; stroke: #ebe2d4; stroke-width: 8px; }

.map--b .m-compass circle { fill: #f4ede3; stroke: var(--ink); stroke-width: 1; }
.map--b .m-compass .m-compass__in { stroke-dasharray: 1 3; }
.map--b .m-compass .m-compass__n { fill: var(--ink) !important; }
.map--b .m-compass .m-compass__s { fill: #f4ede3 !important; stroke: var(--ink); stroke-width: 1; }
.map--b .m-compass text { font-family: var(--serif); font-size: 18px; fill: var(--ink); }
.map--b .m-scale path { stroke: var(--ink); stroke-width: 1.5; }
.map--b .m-scale text { font-size: 12px; letter-spacing: 0.12em; fill: var(--ink); }
.map--b .m-cartouche rect { fill: #f4ede3; stroke: var(--ink); stroke-width: 1.5; }
.map--b .m-cartouche .m-cartouche__in { fill: none; stroke-width: 0.75; }
.map--b .m-cartouche__t { font-family: var(--serif); font-style: italic; font-size: 27px; fill: var(--ink); }
.map--b .m-cartouche__s { font-size: 9.5px; letter-spacing: 0.26em; fill: #4a4036; }

.map--b .m-pin__halo { fill: rgba(238, 171, 140, 0.32); }
.map--b .m-pin__disc { fill: var(--onyx); stroke: #f4ede3; stroke-width: 2; }
.map--b .m-pin__mono { font-family: var(--serif) !important; font-style: italic; font-size: 25px; fill: var(--champagne); }
.map--b .m-pin__name { font-family: var(--serif) !important; font-size: 30px; font-weight: 600; fill: var(--ink); paint-order: stroke; stroke: #f4ede3; stroke-width: 6px; }
.map--b .m-pin__addr { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; fill: var(--champagne-deep); paint-order: stroke; stroke: #f4ede3; stroke-width: 5px; }

.visit__map-cta { right: calc(14px + 1rem); bottom: calc(14px + 1rem); background: var(--onyx); color: var(--ivory); }
.visit__map-cta:hover { background: var(--champagne-deep); }
.visit__map-credit { left: calc(14px + 7.5rem); bottom: calc(14px + 0.55rem); color: var(--mute); }

@media (max-width: 900px) {
  .visit__grid { grid-template-columns: 1fr; }
  .visit__map { min-height: 420px; }
}

@media (max-width: 600px) {
  /* Square map so nothing is cropped; button and credit move below it. */
  .visit__map { min-height: 0; display: flex; flex-direction: column; gap: 0.9rem; }
  .visit__map-link { position: relative; inset: auto; aspect-ratio: 1; }
  .visit__map-cta { position: static; text-align: center; }
  .visit__map-credit { position: static; text-align: center; }
}

/* ---------- Footer ---------- */

.footer { background: var(--cream); color: var(--mute); padding-top: clamp(3.5rem, 7vw, 5.5rem); font-size: 0.9375rem; }
.footer a:not(.btn) { color: var(--ink); }
.footer__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer__line { font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.5rem); color: var(--ink); }

/* "Beauty Salon" is sized so its tracked caps match the width of "Rays" */
.footer__mark {
  --rays: min(30vw, 17rem);
  display: flex; flex-direction: column; align-items: center;
  margin: 0.25rem 0 2.5rem !important; color: var(--ink);
}
.footer__rays { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: var(--rays); line-height: 0.85; letter-spacing: -0.02em; padding-right: 0.06em; }
.footer__sub {
  font-family: var(--sans); text-transform: uppercase; font-weight: 400;
  font-size: calc(var(--rays) * 0.095); letter-spacing: 0.62em; margin-right: -0.62em;
  margin-top: calc(var(--rays) * 0.24); white-space: nowrap;
}
.footer__sub::before, .footer__sub::after { content: ""; display: inline-block; width: 1.6em; height: 1px; background: var(--champagne-deep); vertical-align: middle; margin-inline: 0.2em 1.1em; }
.footer__sub::before { margin-inline: 0 0.8em; }

.footer__row {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  width: 100%; margin-top: clamp(3rem, 6vw, 4.5rem) !important;
  border-top: 1px solid var(--line);
}
.footer__row li { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; padding: 1.75rem 1rem; color: var(--ink); }
.footer__row li + li { border-left: 1px solid var(--line); }
.footer__row .footer__h { margin-bottom: 0.25rem; }
.footer__row .link { font-size: 0.75rem; margin-top: 0.3rem; }

.footer__h { font-size: 0.75rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--champagne-deep); }
.footer__base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: 1.5rem;
  position: relative;
  font-size: 0.8125rem;
}
/* hairline inset to the content width so it lines up with the row above */
.footer__base::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--line); }
.footer__base p { margin: 0; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
.footer__nav a { text-decoration: none; }
.footer__nav a:hover { color: var(--champagne-deep); }

@media (max-width: 760px) {
  .footer__row { grid-template-columns: 1fr 1fr; }
  .footer__row li:nth-child(3) { border-left: 0; }
  .footer__row li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .footer__base { flex-direction: column-reverse; align-items: center; text-align: center; }
}

/* ---------- Fill wave (intro statement) ----------
   site.js splits the text into letters (each with its index as --i). A wave
   runs through them in reading order, driven by scroll: each letter goes from
   pale through light champagne and bronze to its own colour (--fw-final), so a
   short band of colour travels along the line as the text moves up the screen,
   and runs back if you scroll up. Each letter's animation is paused and seeked
   by its delay: site.js sets --fw-t (the wave's position, in seconds of the
   1s-per-letter timeline), and letter i starts at i × --fw-step. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.fill-wave { --fw-final: var(--ink); --fw-step: 0.07s; /* ≈ 14 letters in the band */ }
.fill-wave em { --fw-final: var(--champagne-deep); }
@media (prefers-reduced-motion: no-preference) {
  .js .fill-wave .fw-char {
    animation: fill-wave 1s linear both paused;
    animation-delay: calc(var(--i) * var(--fw-step) - var(--fw-t, 0) * 1s);
  }
}
@keyframes fill-wave {
  0% { color: var(--wave-0, rgba(29, 29, 29, 0.14)); }
  35% { color: var(--wave-1, #d8b88d); }
  65% { color: var(--wave-2, #a9753f); }
  100% { color: var(--fw-final); }
}

/* ---------- Reveal on scroll ---------- */

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}

/* lookbook: portrait photos on portrait screens (phones, upright tablets) */
@media (orientation: portrait) {
  .lookbook__slide img { object-position: var(--pos-p, 50% 50%); }
}

/* ---------- 404 ---------- */

.notfound {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--nav-h) + 2rem) var(--gutter) 4rem;
  background: var(--onyx);
  color: var(--ivory);
  text-align: center;
}
.notfound__inner { max-width: 34rem; }
.notfound__title {
  font-family: var(--serif);
  font-size: clamp(2.75rem, 7vw, 5rem);
  line-height: 1;
  margin-bottom: 1.5rem;
}
.notfound__title em { color: var(--champagne); }
.notfound__text { color: var(--mute-light); margin-bottom: 2.5rem; }
.notfound__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.25rem 2rem; }

/* shown in place of call links until site.phone is set */
.phone-pending { font-size: 0.875rem; font-style: italic; opacity: 0.7; }
.footer__social a { font-size: 0.8125rem; text-decoration: none; color: var(--mute); }
.footer__social a:hover { color: var(--ink); }
