/* Estelar Clinic */
:root {
  --cream: #f4ece2;
  --sand: #e6d7c6;
  --clay: #b4887a;
  --clay-d: #8d6457;
  --brown: #2b2622;
  --ink: #2b2622;
  --mute: #7a6c63;
  --line: rgba(43,38,34,.14);
  --display: "Marcellus", Georgia, serif;
  --body: "Urbanist", "Segoe UI", system-ui, sans-serif;
  --pad: clamp(18px, 5vw, 80px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; font-family: var(--body); font-weight: 400; font-size: 1.08rem; line-height: 1.65; color: var(--ink); background: var(--cream); overflow-x: clip; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0; letter-spacing: .005em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }
.motion [data-split] { visibility: hidden; }
.ln { padding: .16em 0 .06em; margin-top: -.16em; }
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: #f1dfd4; margin-bottom: 1.4rem; }
.eyebrow--dark { color: var(--clay-d); }

.btn { display: inline-flex; align-items: center; gap: 12px; padding: 1.05em 1.8em; background: var(--cream); color: var(--brown); text-decoration: none; font-weight: 600; letter-spacing: .06em; border-radius: 999px; transition: background .3s, color .3s; }
.btn::after { content: ""; width: 26px; height: 1px; background: currentColor; transition: width .3s; }
.btn:hover::after { width: 40px; }
.btn--dark { background: var(--brown); color: var(--cream); }
.btn--dark:hover { background: var(--clay-d); }

/* header */
.header { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; gap: 36px; height: 84px; padding: 0 var(--pad); color: var(--cream); transition: transform .5s cubic-bezier(.2,.7,.2,1), background .4s, color .4s; }
.header.is-scrolled { background: rgba(244,236,226,.92); backdrop-filter: blur(12px); color: var(--brown); }
.header.is-scrolled .brand img { filter: brightness(0) saturate(100%) invert(13%) sepia(8%) saturate(900%) hue-rotate(340deg); }
.header.is-hidden { transform: translateY(-100%); }
.brand img { width: 150px; transition: filter .4s; }
.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a { text-decoration: none; font-size: .95rem; letter-spacing: .04em; opacity: .85; }
.nav a:hover { opacity: 1; }
.cta-link { text-decoration: none; font-weight: 600; letter-spacing: .06em; font-size: .92rem; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.menu-btn { display: none; }

/* hero */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; color: var(--cream); display: flex; align-items: flex-end; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(43,38,34,.35) 0%, rgba(43,38,34,.05) 35%, rgba(43,38,34,.72) 100%); }
.hero__copy { position: relative; padding: 0 var(--pad) clamp(40px, 8vh, 90px); width: 100%; }
.hero h1 { font-size: clamp(2.8rem, 6.6vw, 6.6rem); max-width: 14ch; }
.hero__row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 2.2rem; }
.hero__row p { margin: 0; font-size: .95rem; color: #eadfd5; }

/* statement */
.statement { padding: clamp(110px, 18vh, 200px) var(--pad); }
.statement__text { font-family: var(--display); font-size: clamp(2rem, 4.4vw, 4.2rem); line-height: 1.18; max-width: 22ch; margin: 0 auto; text-align: center; }
.statement__text .w { opacity: .14; transition: opacity .2s; }

/* treatments */
.treat { padding: 0 var(--pad) 120px; display: grid; gap: 120px; }
.treat__item { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 7vw, 120px); align-items: center; }
.treat__item:nth-child(even) figure { order: 2; }
.treat figure { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 240px 240px 0 0; }
.treat figure img { width: 100%; height: 100%; object-fit: cover; }
.num { font-family: var(--display); color: var(--clay); font-size: 1.1rem; letter-spacing: .2em; }
.treat h2 { font-size: clamp(2.6rem, 5vw, 4.6rem); margin-bottom: 1.4rem; }
.treat__item div > p:last-child { color: var(--mute); max-width: 44ch; font-size: 1.1rem; }

/* results */
.results { background: var(--sand); padding: 120px 0; }
.results__head { padding: 0 var(--pad); margin-bottom: 56px; max-width: 900px; }
.results h2 { font-size: clamp(2.2rem, 4.6vw, 4rem); }
.faces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 0 var(--pad); }
.face { position: relative; margin: 0; aspect-ratio: 520 / 676; overflow: hidden; border-radius: 6px; }
.face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.face .b { clip-path: inset(0 0 0 100%); }
.face figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; padding: 12px 14px; font-size: .74rem; letter-spacing: .24em; text-transform: uppercase; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.45)); }
.no-motion .face .b { clip-path: inset(0 0 0 50%); }
.note { padding: 0 var(--pad); margin: 32px 0 0; font-size: .85rem; color: var(--mute); }

/* time */
.time { padding: 140px var(--pad); display: grid; grid-template-columns: 1fr 1fr; gap: 56px clamp(32px, 7vw, 120px); }
.time h2 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
.time__copy p:last-child { color: var(--mute); max-width: 44ch; margin-top: 1.4rem; }
.time__line { list-style: none; margin: 0; padding: 0 0 0 28px; border-left: 1px solid var(--line); align-self: center; }
.time__line li { position: relative; padding: 14px 0 14px 14px; color: var(--mute); }
.time__line li::before { content: ""; position: absolute; left: -34px; top: 22px; width: 11px; height: 11px; border-radius: 50%; background: var(--cream); border: 1px solid var(--clay); transition: background .4s; }
.time__line li.is-on::before { background: var(--clay); }
.time__line b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.6rem; color: var(--ink); }
.time__imgs { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.time__imgs figure { margin: 0; position: relative; }
.time__imgs img { width: 100%; aspect-ratio: 800 / 741; object-fit: cover; }
.time__imgs figcaption { margin-top: 10px; font-family: var(--display); font-size: 1.3rem; color: var(--clay-d); }

/* experience */
.exp { background: var(--brown); color: var(--cream); padding: 140px var(--pad); display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px clamp(32px, 7vw, 120px); align-items: center; }
.exp__media { aspect-ratio: 9 / 16; max-height: 78svh; overflow: hidden; border-radius: 200px 200px 6px 6px; }
.exp__media video { width: 100%; height: 100%; object-fit: cover; }
.exp h2 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
.exp__copy p:last-child { color: #d8c9bd; max-width: 46ch; margin-top: 1.4rem; font-size: 1.12rem; }
.exp__gallery { grid-column: 1 / -1; display: grid; grid-template-columns: 1.3fr 1fr .7fr; gap: 18px; align-items: start; margin-top: 40px; }
.exp__gallery img { width: 100%; object-fit: cover; border-radius: 6px; }
.exp__gallery img:nth-child(1) { aspect-ratio: 4 / 3; }
.exp__gallery img:nth-child(2) { aspect-ratio: 4 / 3; margin-top: 90px; }
.exp__gallery img:nth-child(3) { aspect-ratio: 9 / 16; }

/* voices */
.voices { padding: 130px var(--pad); display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.voices blockquote { margin: 0; }
.voices p { font-family: var(--display); font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.3; }
.voices cite { font-style: normal; font-size: .82rem; letter-spacing: .2em; text-transform: uppercase; color: var(--clay-d); }

/* contact */
.contact { padding: 130px var(--pad); background: var(--sand); text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact__logo { width: min(320px, 70vw); margin-bottom: 48px; }
.contact h2 { font-size: clamp(2.2rem, 4.6vw, 4rem); max-width: 16ch; margin-bottom: 2.2rem; }
.contact dl { margin: 64px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: left; max-width: 1000px; width: 100%; }
.contact dt { font-size: .76rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--clay-d); margin-bottom: 8px; }
.contact dd { margin: 0; }

.footer { padding: 26px var(--pad); background: var(--brown); color: #bfb0a4; font-size: .85rem; }
.footer p { margin: 0; }

@media (max-width: 900px) {
  .menu-btn { display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; color: inherit; }
  .menu-btn span { height: 1.5px; background: currentColor; transition: transform .25s; }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .cta-link { display: none; }
  .nav { position: fixed; inset: 84px 0 auto 0; display: none; flex-direction: column; gap: 0; padding: 8px var(--pad) 24px; background: var(--cream); color: var(--brown); }
  .nav.is-open { display: flex; }
  .nav a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .treat__item, .time, .exp, .voices { grid-template-columns: 1fr; }
  .treat__item:nth-child(even) figure { order: 0; }
  .treat { gap: 80px; padding-bottom: 80px; }
  .treat figure { max-width: 420px; }
  .faces { grid-template-columns: 1fr 1fr; gap: 10px; }
  .exp__media { max-width: 340px; }
  .exp__gallery { grid-template-columns: 1fr 1fr; }
  .exp__gallery img:nth-child(2) { margin-top: 0; }
  .exp__gallery img:nth-child(3) { display: none; }
  .results, .time, .exp, .voices, .contact { padding-top: 90px; padding-bottom: 90px; }
  .contact dl { grid-template-columns: 1fr; text-align: center; gap: 24px; }
}
@media (max-width: 520px) {
  body { font-size: 1rem; }
  .hero h1 { font-size: 2.6rem; }
  .hero__row .btn { width: 100%; justify-content: center; }
  .statement__text { font-size: 1.9rem; }
  .time__imgs { grid-template-columns: 1fr 1fr; gap: 10px; }
}
