/* ==========================================================
   Beauty in a Studio — Advanced Skin & Aesthetics
   ========================================================== */

:root {
  --page: #f3efec;
  --page-alt: #e7ded7;
  --white: #ffffff;
  --text: #3b2a20;
  --text-2: #6e5545;
  --neutral: #b8a89d;
  --gold: #b69573;        /* from the logo's face line */
  --dark: #2e2018;
  --brown: #7a5640;
  --brown-deep: #5e402e;
  --copper: #a9491c;        /* from her outfit; 5:1 on cream */
  --copper-light: #d9774a;  /* same hue for dark backgrounds */

  --serif: "Gilda Display", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --max: 1280px;
  --header-h: 84px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
  overflow-x: hidden;
}
/* Serif (Gilda Display) text keeps its natural spacing */
.h2-section, .h3-serif, .hero-description, .mobile-menu nav a:not(.btn),
.pillar h3, .t-name, .t-meta strong, .t-for, .step-num, .steps h3,
.stats strong, .quote-inner blockquote p { letter-spacing: 0; }
::selection { background: var(--copper); color: var(--white); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
figure { margin: 0; }
h1, h2, h3, h4, p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .container { padding: 0 40px; } }
@media (min-width: 1280px) { .container { padding: 0 64px; } }

.section { padding: 72px 0; border-top: 1px solid rgb(184 168 157 / .2); }
@media (min-width: 768px) { .section { padding: 96px 0; } }
@media (min-width: 1280px) { .section { padding: 120px 0; } }

.bg-page { background: var(--page); }
.bg-alt { background: var(--page-alt); }
.bg-white { background: var(--white); }
.bg-dark { background: var(--dark); color: var(--page); }

/* ---------- Type ---------- */
.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 20px;
}
.eyebrow-light { color: var(--copper-light); }

.h2-section {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.08;
  margin-bottom: 24px;
}
@media (min-width: 768px) { .h2-section { font-size: 36px; } }
@media (min-width: 1280px) { .h2-section { font-size: 42px; } }

.h3-serif {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  margin: 12px 0 16px;
}

.body-text {
  font-size: 16px;
  line-height: 1.64;
  color: var(--text-2);
  max-width: 560px;
}
.body-text + .body-text { margin-top: 18px; }
.body-text strong { font-weight: 500; color: inherit; }
.bg-dark .body-text { color: rgb(243 239 236 / .75); }
.bg-dark .body-text strong { color: var(--page); }
@media (min-width: 1280px) { .body-text { font-size: 17px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  padding: 20px 40px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  transition: background .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
}
@media (max-width: 639px) {
  .btn { width: 100%; max-width: 360px; min-width: 0; padding: 18px 20px; letter-spacing: .16em; }
}
.btn-outline-light { color: var(--page); border-color: rgb(243 239 236 / .35); }
.btn-outline-light:hover { background: var(--page); color: var(--text); border-color: var(--page); }
.btn-light { background: var(--page); color: var(--text); }
.btn-light:hover { background: var(--copper); color: var(--white); }

.link-underline {
  display: inline-block;
  color: var(--copper);
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding-bottom: 6px;
  border-bottom: 1px solid rgb(169 73 28 / .35);
  transition: color .3s, border-color .3s;
}
.link-underline:hover { border-color: var(--copper); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-top-h);
  border-bottom: 1px solid transparent;
  transition: background .35s, border-color .35s, height .45s var(--ease);
}
:root { --header-top-h: 88px; }
@media (min-width: 1200px) { :root { --header-h: 104px; --header-top-h: 120px; } }
.header-inner { height: 100%; display: flex; align-items: center; }

/* Header logo is collapsed while the hero logo is on screen, so the menu
   sits on the left; on scroll it opens up and pushes the menu over. */
.logo {
  position: relative; top: 5px; display: block; flex-shrink: 0;
  height: 58px; max-width: 0; margin-right: 0;
  overflow: hidden;
  opacity: 0; pointer-events: none;
  transition: opacity .45s var(--ease), max-width .55s var(--ease), margin-right .55s var(--ease);
}
.logo img { height: 100%; width: auto; max-width: none; transition: opacity .35s; }
.logo .logo-dark { position: absolute; inset: 0; opacity: 0; }
@media (min-width: 1200px) { .logo { height: 60px; } }
.site-header.scrolled .logo,
body.menu-open .logo { max-width: 180px; margin-right: 56px; opacity: 1; pointer-events: auto; }

.main-nav { display: none; gap: 32px; color: var(--page); }
.main-nav a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: opacity .2s;
}
.main-nav a:hover { opacity: .6; }
.site-header.scrolled .main-nav a { transition: color .2s; }
.site-header.scrolled .main-nav a:hover { opacity: 1; color: var(--copper); }
@media (min-width: 1200px) { .main-nav { display: flex; } }

.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.btn-header {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 22px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--page);
  border: 1px solid rgb(243 239 236 / .35);
  transition: all .3s;
}
.btn-header:hover { background: var(--page); color: var(--text); transform: translateY(-1px); }

.menu-toggle {
  width: 38px; height: 38px;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px;
  border: 1px solid rgb(243 239 236 / .35);
}
.menu-toggle span { display: block; width: 16px; height: 1px; background: var(--page); transition: transform .3s, background .3s; }
@media (min-width: 1200px) { .menu-toggle { display: none; } }

/* Scrolled state */
.site-header.scrolled { height: var(--header-h); background: rgb(243 239 236 / .96); border-color: rgb(59 42 32 / .08); backdrop-filter: blur(8px); }
.site-header.scrolled .logo-light { opacity: 0; }
.site-header.scrolled .logo-dark { opacity: 1; }
.site-header.scrolled .main-nav { color: var(--text); }
.site-header.scrolled .btn-header { background: var(--brown); color: var(--page); border-color: var(--brown); }
.site-header.scrolled .btn-header:hover { background: var(--brown-deep); border-color: var(--brown-deep); color: var(--page); }
.site-header.scrolled .menu-toggle { border-color: rgb(59 42 32 / .2); }
.site-header.scrolled .menu-toggle span { background: var(--text); }

/* Menu open */
body.menu-open { overflow: hidden; }
/* the header goes clear so the full-screen menu below it is the only background; nothing slides or wipes in */
body.menu-open .site-header { height: var(--header-h); background: transparent; border-color: transparent; backdrop-filter: none; transition: none; }
body.menu-open .logo, body.menu-open .logo img { transition: none; }
body.menu-open .site-header .logo-light { opacity: 1; }
body.menu-open .site-header .logo-dark { opacity: 0; }
body.menu-open .btn-header { color: var(--page); border-color: rgb(243 239 236 / .35); }
body.menu-open .site-header .menu-toggle { border-color: rgb(243 239 236 / .35); }
body.menu-open .site-header .menu-toggle span { background: var(--page); }
body.menu-open .menu-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
body.menu-open .menu-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--dark);
  color: var(--page);
  padding: calc(var(--header-h) + 40px) 24px 40px;
  overflow-y: auto;
  animation: menuFade .3s ease both;
}
@keyframes menuFade { from { opacity: 0; } to { opacity: 1; } }
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu nav a:not(.btn) {
  font-family: var(--serif);
  font-size: 30px;
  padding: 14px 0;
  border-bottom: 1px solid rgb(243 239 236 / .1);
}
.mobile-menu .btn { margin-top: 32px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 620px;
  display: flex;
  align-items: center;
  color: var(--page);
  overflow: hidden;
  background: var(--dark);
}
.hero { min-height: 100vh; }
@supports (height: 100svh) { .hero { min-height: 100svh; } }
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 35% 50%;
  transform: scale(-1.12, 1.12); /* mirrored so the subject sits opposite the text */
  animation: heroZoom 14s var(--ease) both;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, rgb(40 26 18 / .55) 0%, rgb(40 26 18 / .7) 70%),
    linear-gradient(to top, rgb(40 26 18 / .5), transparent 40%);
}
.hero-content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding-top: calc(var(--header-top-h) + 24px);
  padding-bottom: 64px;
}
/* --hero-p (0 → 1) is set from script.js as the page scrolls */
.hero-logo {
  width: 190px;
  margin-bottom: 48px;
  opacity: calc(1 - var(--hero-p, 0));
  transform: translateY(calc(var(--hero-p, 0) * -48px)) scale(calc(1 - var(--hero-p, 0) * .18));
}
.hero-logo img { width: 100%; height: auto; animation: heroLogoIn 1.6s var(--ease) both; }

@media (min-width: 1280px) { .hero-logo { width: 190px; margin-bottom: 64px; } }
.hero-description {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 19px;
  line-height: 1.22;
  max-width: 700px;
  margin-bottom: 56px;
}
@media (min-width: 768px) { .hero-description { font-size: 23px; } }
@media (min-width: 1280px) { .hero-description { font-size: 26px; margin-bottom: 64px; } }
.hero-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; max-width: 360px; }
@media (min-width: 640px) { .hero-actions { flex-direction: row; justify-content: center; max-width: none; gap: 20px; } }
@keyframes heroLogoIn { from { opacity: 0; filter: blur(6px); } to { filter: none; } }
@keyframes heroZoom { from { transform: scale(-1.2, 1.2); } to { transform: scale(-1.12, 1.12); } }

/* ---------- Split layout ---------- */
.split { display: flex; flex-direction: column; gap: 48px; }
.split-media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: rgb(184 168 157 / .1); }
.split-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.split-media:hover img { transform: scale(1.04); }
.studio-photo { object-position: 50% 62%; }
.split-text .link-underline { margin-top: 36px; }
@media (min-width: 900px) {
  .split { flex-direction: row; align-items: center; justify-content: space-between; gap: 80px; }
  .split-text { width: 46%; }
  .split-media { width: 44%; aspect-ratio: 3 / 4; }
  .split-reverse .split-media { order: 0; }
}

.role {
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-2);
  margin: -8px 0 28px;
}
/* one title per line; the block-level separator forces the break */
.role { line-height: 1.8; }
.role span { display: block; height: 0; overflow: hidden; }
.about-actions { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 36px; }
.about-actions .link-underline { margin-top: 0; }

/* ---------- Bio modal ---------- */
.bio-modal {
  width: 100%; height: 100%;
  max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: transparent;
  overflow: clip;
}
.bio-modal[open] { display: flex; align-items: center; justify-content: center; }
.bio-modal::backdrop {
  background: rgb(46 32 24 / .55);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .45s var(--ease);
}
.bio-modal.is-open::backdrop { opacity: 1; }

.bio-panel {
  position: relative;
  display: grid;
  width: 100%; height: 100%;
  background: var(--page);
  color: var(--text);
  overflow-y: auto;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .45s var(--ease), transform .6s var(--ease);
}
.bio-modal.is-open .bio-panel { opacity: 1; transform: none; }

.bio-media { overflow: hidden; height: 42vh; }
.bio-media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 20%;
  transform: scale(1.06);
  transition: transform 1.4s var(--ease);
}
.bio-modal.is-open .bio-media img { transform: none; }

.bio-content { padding: 40px 24px 56px; outline: none; }
.bio-modal:focus { outline: none; }
.bio-close:focus-visible { outline: 1px solid var(--copper); outline-offset: 2px; }
.bio-content .h3-serif { margin-top: 36px; }
.bio-content .body-text + .body-text { margin-top: 16px; }
.bio-content .link-underline { margin-top: 40px; }

.bio-close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 44px; height: 44px;
  background: rgb(243 239 236 / .9);
  transition: transform .4s var(--ease);
}
.bio-close span {
  position: absolute; top: 50%; left: 50%;
  width: 18px; height: 1px;
  background: var(--text);
  transition: background .3s;
}
.bio-close span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.bio-close span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }
/* phones: the panel itself scrolls, so keep the close button on screen */
@media (max-width: 899px) { .bio-modal .bio-close { position: fixed; } }
.bio-close:hover { transform: rotate(90deg); }
.bio-close:hover span { background: var(--copper); }

@media (min-width: 900px) {
  .bio-panel {
    grid-template-columns: 2fr 3fr;
    width: min(1080px, calc(100% - 80px));
    height: min(720px, calc(100% - 80px));
    overflow: hidden;
    box-shadow: 0 40px 80px -30px rgb(46 32 24 / .5);
  }
  .bio-media { height: 100%; }
  /* the photo is cropped by height here, so zooming is what trims the wall above her head */
  .bio-media img { transform: scale(1.26); transform-origin: 40% 54%; }
  .bio-modal.is-open .bio-media img { transform: scale(1.2); }
  .bio-content { overflow-y: auto; padding: 72px 64px; }
  .bio-close { background: transparent; }
}

/* ---------- Pillars ---------- */
.pillars { padding: 56px 0; border-top: 1px solid rgb(184 168 157 / .2); }
.pillars-grid { display: grid; gap: 40px; }
.pillar h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin: 0 0 10px; }
.pillar h3::before { content: ""; display: block; width: 32px; height: 1px; margin-bottom: 18px; background: var(--copper); }
.pillar p { font-size: 15px; line-height: 1.59; color: var(--text-2); }
@media (min-width: 768px) { .pillars { padding: 80px 0; } .pillars-grid { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .pillar { padding: 0 40px; }
  .pillar + .pillar { border-left: 1px solid rgb(59 42 32 / .12); }
  .pillar:first-child { padding-left: 0; }
  .pillar:last-child { padding-right: 0; }
}

/* ---------- Section head ---------- */
.section-head { text-align: center; display: flex; flex-direction: column; align-items: center; margin-bottom: 56px; }
.section-head .body-text { text-wrap: balance; }
@media (min-width: 768px) { .section-head { margin-bottom: 72px; } }
#treatments .section-head { margin-bottom: 36px; }
@media (min-width: 768px) { #treatments .section-head { margin-bottom: 44px; } }
/* slightly wider than the other sections (1296px of content vs 1152px) */
#treatments .container { max-width: 1376px; }
@media (min-width: 1280px) { #treatments .container { padding: 0 40px; } }

/* ---------- Treatments ---------- */
/* One dark gradient panel per category. Each treatment is a <details> holding its
   full copy; script.js opens that copy in a centered modal instead of expanding it. */
.cat-grid { display: grid; gap: 20px; }
@media (min-width: 1000px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-desc { min-height: 4.8em; } /* room for 3 lines, so the three lists start level */
}

.cat-panel { padding: 44px 32px 24px; }
.cat-panel:nth-child(2)::before { transform: scaleX(-1); }
.cat-panel:nth-child(3)::before { transform: scale(-1, -1); }
.cat-title { font-family: var(--serif); font-weight: 400; font-size: 34px; letter-spacing: 0; margin-bottom: 12px; }
.cat-desc { font-size: 15px; line-height: 1.6; color: rgb(243 239 236 / .7); margin-bottom: 36px; max-width: 340px; }

.cat-panel summary {
  list-style: none;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 16px 0;
  border-top: 1px solid rgb(243 239 236 / .15);
  transition: padding .3s var(--ease);
}
.cat-panel summary::-webkit-details-marker { display: none; }
.cat-panel summary:hover { padding-left: 8px; }
.cat-panel summary:focus-visible { outline: 1px solid var(--copper-light); outline-offset: 2px; }

.t-head { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.t-name { font-family: var(--serif); font-size: 18px; font-weight: 400; line-height: 1.25; letter-spacing: 0; transition: color .3s; }
.cat-panel summary:hover .t-name { color: var(--copper-light); }
.cat-panel .t-sub, .cat-panel .t-meta span, .cat-panel .t-body { display: none; }
.t-sub { font-size: 13px; letter-spacing: .03em; color: rgb(59 42 32 / .6); line-height: 1.38; }
.tag {
  display: inline-block; vertical-align: middle;
  margin: 6px 0 0; padding: 3px 8px;
  font-family: var(--sans); font-style: normal; font-size: 10px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--copper-light);
  border: 1px solid rgb(217 119 74 / .45);
  white-space: nowrap;
}
.t-meta { flex-shrink: 0; text-align: right; }
.t-meta strong { font-family: var(--sans); font-size: 14px; font-weight: 400; white-space: nowrap; color: var(--copper-light); }

/* Treatment copy (shown inside the modal) */
.t-body p { font-size: 15px; line-height: 1.63; color: var(--text-2); }
.t-body p + p { margin-top: 12px; }
.t-for { font-family: var(--serif); font-size: 19px !important; color: var(--text) !important; line-height: 1.4 !important; letter-spacing: 0; margin-bottom: 20px; }
.t-note { font-size: 14px !important; color: rgb(59 42 32 / .6) !important; padding-left: 14px; border-left: 1px solid var(--copper); margin-top: 20px !important; }
.t-details { margin: 24px 0 0; }
.t-details dt { font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--copper); margin-top: 18px; }
.t-details dd { margin: 6px 0 0; font-size: 14px; line-height: 1.58; color: var(--text-2); }

/* Centered modal */
/* clip, not hidden: a hidden box can still be scrolled by focus, which would
   jump the panel out of place and cancel the opening transition */
.t-modal {
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: transparent; overflow: clip;
}
.t-modal[open] { display: flex; align-items: center; justify-content: center; }
.t-modal:focus { outline: none; }
.t-modal::backdrop { background: rgb(46 32 24 / .55); opacity: 0; transition: opacity .45s ease; }
.t-modal.is-open::backdrop { opacity: 1; }
.t-modal-panel {
  position: relative;
  display: flex;
  width: 100%; height: 100%;
  background: var(--page); color: var(--text);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .4s ease, transform .5s cubic-bezier(.32, .72, 0, 1);
  will-change: transform, opacity;
}
.t-modal.is-open .t-modal-panel { opacity: 1; transform: none; }
.t-modal-content { width: 100%; overflow-y: auto; padding: 72px 24px 56px; outline: none; }
.t-modal-content .h2-section { font-size: 34px; margin-bottom: 8px; }
.t-modal-content > .t-sub { font-size: 14px; margin-bottom: 28px; }
.t-modal-meta { display: flex; gap: 48px; padding: 20px 0; margin-bottom: 28px; border-top: 1px solid rgb(59 42 32 / .1); border-bottom: 1px solid rgb(59 42 32 / .1); }
.t-modal-meta small { display: block; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: rgb(59 42 32 / .55); margin-bottom: 4px; }
.t-modal-meta strong { font-family: var(--serif); font-weight: 400; font-size: 24px; letter-spacing: 0; }
.t-modal-content .btn { margin-top: 40px; background: var(--brown); color: var(--page); }
.t-modal-content .btn:hover { background: var(--brown-deep); }
@media (min-width: 720px) {
  .t-modal-panel {
    width: min(680px, calc(100% - 80px));
    height: auto; max-height: calc(100% - 80px);
    box-shadow: 0 40px 80px -30px rgb(46 32 24 / .5);
  }
  .t-modal-content { padding: 64px 64px 56px; }
}

/* ---------- Gradient dark sections ---------- */
/* Blurred mesh of the brand's copper, gold and brown over espresso, plus fine grain */
.textured { position: relative; isolation: isolate; overflow: hidden; }
.textured::before {
  content: "";
  position: absolute; inset: -15%; z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(38% 48% at 16% 22%, rgb(169 73 28 / .75), transparent 70%),
    radial-gradient(32% 42% at 82% 18%, rgb(182 149 115 / .45), transparent 70%),
    radial-gradient(44% 54% at 62% 82%, rgb(122 86 64 / .8), transparent 70%),
    radial-gradient(28% 38% at 8% 92%, rgb(217 119 74 / .45), transparent 70%),
    radial-gradient(40% 50% at 96% 96%, rgb(169 73 28 / .55), transparent 70%),
    radial-gradient(30% 40% at 46% 40%, rgb(28 18 12 / .7), transparent 70%);
  filter: blur(50px);
  animation: meshDrift 28s ease-in-out infinite alternate;
}
.textured::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .92 0 0 0 0 .84 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .14;
}
/* the second gradient section is mirrored so the two don't look identical */
.book.textured::before { transform: scaleX(-1); animation-direction: alternate-reverse; }
/* These two sections show the gradient as a fixed backdrop: the content scrolls over
   a still background. clip-path keeps it inside the section (overflow can't clip fixed
   children, and this also works on iOS, unlike background-attachment: fixed). */
#book { clip-path: inset(0); }
#book::before { position: fixed; animation: none; will-change: transform; }
/* the blurred gradients are costly to repaint: hold them still under an open dialog */
html.sheet-open .textured::before { animation-play-state: paused; }
@keyframes meshDrift {
  from { translate: -3% -2%; }
  to   { translate: 3% 2%; }
}

/* ---------- Acne Boot Camp ---------- */
.steps { list-style: none; margin: 24px 0 0; padding: 0; }
.steps li { display: flex; gap: 20px; padding: 20px 0; border-top: 1px solid rgb(59 42 32 / .1); }
.steps li:last-child { border-bottom: 1px solid rgb(59 42 32 / .1); }
.step-num { font-family: var(--serif); font-size: 15px; color: var(--copper); padding-top: 3px; }
.steps h3 { font-family: var(--serif); font-weight: 400; font-size: 20px; margin-bottom: 6px; }
.t-body strong { font-weight: 500; color: var(--text); }

/* ---------- Stats ---------- */
.stats {
  list-style: none;
  margin: 72px 0 0;
  padding: 0;
  display: grid;
  border-top: 1px solid rgb(59 42 32 / .12);
}
.stats li { padding: 28px 0; border-bottom: 1px solid rgb(59 42 32 / .08); display: flex; align-items: baseline; gap: 20px; }
.stats strong { font-family: var(--serif); font-weight: 300; font-size: 44px; line-height: 1; color: var(--copper); min-width: 132px; }
.stats span { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); line-height: 1.48; }
@media (min-width: 900px) {
  .stats { grid-template-columns: repeat(3, 1fr); margin-top: 96px; }
  .stats li { flex-direction: column; gap: 14px; padding: 36px 32px 0 0; border-bottom: 0; }
  .stats li + li { padding-left: 32px; border-left: 1px solid rgb(59 42 32 / .08); }
  .stats strong { font-size: 56px; }
}

/* ---------- Quote ---------- */
.quote-band { padding: 88px 0; }
.quote-inner { text-align: center; max-width: 980px; }
.quote-inner blockquote { margin: 0; }
.quote-inner blockquote p {
  font-family: var(--serif);
 
  font-weight: 300;
  font-size: 23px;
  line-height: 1.35;
}
.quote-author { margin-top: 28px; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: rgb(243 239 236 / .7); }
@media (min-width: 768px) { .quote-band { padding: 128px 0; } .quote-inner blockquote p { font-size: 30px; } }


/* ---------- Reviews ---------- */
.rating { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.stars { color: var(--copper); letter-spacing: .2em; margin-right: 6px; }

#reviews { padding-bottom: 56px; }
@media (min-width: 768px) { #reviews { padding-bottom: 72px; } }
@media (min-width: 1280px) { #reviews { padding-bottom: 88px; } }

/* Masonry wall. The wrapper (not the column box, which would spill into extra
   columns) is clipped to a fixed height; "Load More" in script.js opens it up. */
.wall-wrap {
  position: relative;
  max-height: 1400px;
  overflow: hidden;
  transition: max-height .8s var(--ease);
}
.reviews-wall { columns: 1; column-gap: 20px; }
@media (min-width: 700px) { .reviews-wall { columns: 2; } .wall-wrap { max-height: 1180px; } }
@media (min-width: 1000px) { .reviews-wall { columns: 3; } .wall-wrap { max-height: 1060px; } }
@media (min-width: 1240px) { .reviews-wall { columns: 4; } .wall-wrap { max-height: 960px; } }
.wall-fade {
  position: absolute; inset: auto 0 0 0;
  height: 260px;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 8px;
  background: linear-gradient(to bottom, rgb(255 255 255 / 0), var(--white) 75%);
  transition: opacity .4s;
}
.wall-wrap.is-expanded .wall-fade { opacity: 0; pointer-events: none; }

.btn-outline-dark { color: var(--text); border-color: rgb(59 42 32 / .25); background: var(--white); }
.btn-outline-dark:hover { background: var(--text); color: var(--page); border-color: var(--text); }

.review {
  break-inside: avoid;
  margin: 0 0 20px;
  padding: 28px 26px 30px;
  background: var(--page);
  border: 1px solid rgb(59 42 32 / .08);
}
.review figcaption {
  display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center;
  margin-bottom: 18px;
}
.review-avatar {
  grid-row: span 2;
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  overflow: hidden;
  background: var(--copper); color: var(--white);
  font-family: var(--serif); font-size: 17px; letter-spacing: 0;
}
.review-avatar img { width: 100%; height: 100%; object-fit: cover; }
.review-name { font-size: 14px; font-weight: 500; color: var(--text); }
.review-meta { font-size: 11px; letter-spacing: .06em; color: var(--copper); }
.review blockquote { margin: 0; }
.review blockquote p { font-size: 15px; line-height: 1.6; color: var(--text-2); }
@media (min-width: 768px) { #reviews .section-head, #products .section-head { margin-bottom: 44px; } }
.reviews-more { margin-top: 40px; text-align: center; }
/* the Google link only appears once every review on the wall is showing */
.wall-wrap:not(.is-expanded) ~ .reviews-more { display: none; }

/* ---------- Products ---------- */
.brands { display: grid; gap: 48px; }
.brand figure { overflow: hidden; aspect-ratio: 4 / 3; background: rgb(184 168 157 / .1); margin-bottom: 28px; }
.brand img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.brand:hover img { transform: scale(1.04); }
.brand h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; letter-spacing: .02em; text-transform: uppercase; margin-bottom: 10px; }
.brand p { font-size: 15px; line-height: 1.59; color: var(--text-2); max-width: 440px; }
@media (min-width: 768px) { .brands { grid-template-columns: 1fr 1fr; gap: 40px; } }

/* ---------- Book ---------- */
.book { padding: 96px 0; text-align: center; }
.book-inner { display: flex; flex-direction: column; align-items: center; }
.book .h2-section { max-width: 26ch; text-wrap: balance; }
.book .body-text { max-width: 600px; margin-bottom: 44px; text-wrap: balance; }


/* Text links on dark backgrounds use the lighter copper for contrast */
/* Hours table (footer) */
.hours { display: grid; grid-template-columns: auto auto; justify-content: start; column-gap: 20px; row-gap: 4px; margin: 0; }
.hours dt { text-align: left; }
.hours dd { margin: 0; text-align: right; white-space: nowrap; }

.bg-dark .link-underline { color: var(--copper-light); border-color: rgb(217 119 74 / .4); }
.bg-dark .link-underline:hover { border-color: var(--copper-light); }
@media (min-width: 768px) { .book { padding: 140px 0; } }

/* ---------- Footer ---------- */
.site-footer { background: #231811; color: rgb(243 239 236 / .7); padding: 72px 0 32px; font-size: 14px; }
.footer-grid { display: grid; gap: 40px; padding-bottom: 56px; }
.footer-col li { white-space: nowrap; }
.site-footer h4 { font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--copper-light); margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { padding-bottom: 2px; border-bottom: 1px solid rgb(217 119 74 / .35); transition: color .3s, border-color .3s; }
.site-footer a:hover { color: var(--copper-light); border-color: var(--copper-light); }
.footer-bottom {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding-top: 28px;
  border-top: 1px solid rgb(243 239 236 / .1);
  font-size: 12px; letter-spacing: .08em; color: rgb(243 239 236 / .45);
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, max-content); justify-content: space-between; row-gap: 48px; }
}
@media (min-width: 1100px) {
  .footer-grid { grid-template-columns: repeat(4, max-content); }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: baseline; }
}

/* Open mobile menu: logo and close button share the same 24px edge margins */
@media (max-width: 1199px) {
  body.menu-open { --header-h: 106px; }
  body.menu-open .header-inner { align-items: flex-start; padding-top: 24px; }
  body.menu-open .logo { top: 0; }
}

/* ---------- Phones ---------- */
/* --m is the side margin. Section edges: twice --m next to text, exactly --m next
   to a photo or panel. Gaps between blocks: --m. */
@media (max-width: 767px) {
  :root { --m: 24px; --header-h: 96px; }
  body.menu-open { --header-h: 116px; }
  .logo { height: 68px; }
  .btn-header { display: none; }

  .section, .pillars, .quote-band, .book, .site-footer { padding: calc(var(--m) * 2) 0; }
  #studio { padding-bottom: var(--m); }
  #treatments { padding-bottom: var(--m); }
  #about { padding-top: var(--m); }
  .footer-bottom { align-items: center; text-align: center; }

  /* Hero: logo, text and buttons sit at the bottom, below her face */
  .hero-content { align-self: stretch; justify-content: flex-end; padding-bottom: 32px; }
  /* the logo shrinks on short screens so the whole hero fits the first screen */
  .hero-logo { width: min(220px, 27vh); width: min(220px, 27svh); margin-bottom: 32px; }
  .hero-description { margin-bottom: 28px; font-size: 22px; }
  .hero-actions .js-book { display: none; }
  .hero-actions { gap: 12px; }

  .split, .pillars-grid, .cat-grid, .brands, .footer-grid { gap: var(--m); }
  .section-head { margin-bottom: 32px; }
  /* descriptions sit a little closer to their headlines */
  .h2-section { margin-bottom: 16px; }
  .role { margin: -4px 0 18px; }
  .split-text .link-underline, .reviews-more, .quote-author { margin-top: var(--m); }
  .about-actions { gap: var(--m); margin-top: var(--m); }
  .about-actions .link-underline { margin-top: 0; }
  .stats { margin-top: calc(var(--m) * 2); }
  .review { margin-bottom: var(--m); }
  .brands { gap: calc(var(--m) * 2); }
  .brand figure { margin-bottom: var(--m); }
  .book .body-text { margin-bottom: var(--m); }
}

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

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