/* Rejuvenating Aesthetics, version 4: the clinic's own feed, curated */
:root {
  --chalk: #eef0ee;
  --white: #ffffff;
  --graphite: #232427;
  --stone: #6f6d69;
  --line: #d9dcd9;
  --blue: #2357c6;      /* Jo's clinic scrubs */
  --blue-deep: #1a429a;
  --blush: #f2cfd3;
  --display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --rail: 300px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--chalk); color: var(--graphite); font: 400 16px/1.55 var(--text); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2 { font-family: var(--display); font-weight: 700; font-variation-settings: "wdth" 80; letter-spacing: -.02em; line-height: .95; margin: 0; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
p { margin: 0 0 1em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; z-index: 300; top: 8px; padding: 8px 12px; background: var(--graphite); color: #fff; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.link { color: var(--blue); font-weight: 600; text-underline-offset: 3px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 12px; border: 0; font-weight: 600; cursor: pointer; text-decoration: none; transition: background .2s, transform .15s var(--ease); }
.btn:active { transform: scale(.97); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-deep); }
.btn--dark { background: var(--graphite); color: #fff; }
.btn--light { background: #fff; color: var(--graphite); }
.btn--line { background: transparent; border: 1.5px solid var(--graphite); }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: .9rem; }
.round, .vbtn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 0; cursor: pointer; flex: none; }
.round { background: var(--white); }
.round svg, .vbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vbtn { background: rgba(255, 255, 255, .16); color: #fff; }
.vbtn--dark { background: var(--chalk); color: var(--graphite); }

/* Rail */
.rail { position: fixed; inset: 0 auto 0 0; width: var(--rail); padding: 32px 28px; background: var(--white); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; z-index: 40; overflow-y: auto; }
.rail__id { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.rail__id img { width: 48px; height: auto; border-radius: 50%; outline: 2px solid var(--blue); outline-offset: 3px; }
.rail__id strong { display: block; font-family: var(--display); font-size: 1.15rem; font-variation-settings: "wdth" 85; line-height: 1.1; }
.rail__id small { color: var(--stone); }
.rail__bio { color: var(--stone); font-size: .95rem; margin: 0; }
.rail__status { margin: 0; font-weight: 600; font-size: .92rem; display: flex; align-items: center; gap: 8px; }
.rail__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #b8b5ae; }
.rail__status.is-open::before { background: #2e9d5c; box-shadow: 0 0 0 4px rgba(46, 157, 92, .18); }
.rail__nav { display: grid; margin-top: 8px; }
.rail__nav a { padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--display); font-size: 1.35rem; font-weight: 600; font-variation-settings: "wdth" 85; transition: color .2s, padding .3s var(--ease); }
.rail__nav a:hover, .rail__nav a.is-active { color: var(--blue); padding-left: 6px; }
.rail .btn { margin-top: auto; }
.rail__small { font-size: .85rem; color: var(--stone); margin: 0; }
.rail__small a { color: var(--graphite); font-weight: 600; }
main { margin-left: var(--rail); }
.mtop { display: none; }
@media (max-width: 960px) {
  .rail { display: none; }
  main { margin-left: 0; }
  .mtop { position: sticky; top: 0; z-index: 40; display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .mtop__id { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 1.1rem; }
  .mtop__id img { width: 32px; height: auto; }
  body { display: flex; flex-direction: column; }
  .mtop { order: -1; }
}

section, .foot { padding: clamp(48px, 7vw, 96px) clamp(16px, 5vw, 64px); }

/* Stories deck */
.stories { padding-bottom: 40px; overflow: hidden; }
.stories__head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: 36px; }
.stories h1 { font-size: clamp(3.4rem, 9.5vw, 8.5rem); font-variation-settings: "wdth" 75; line-height: .86; }
.stories__head p { color: var(--stone); max-width: 42ch; margin: 0; }
.deck { position: relative; }
.deck__track { position: relative; height: clamp(420px, 62vh, 620px); perspective: 1400px; }
.story { position: absolute; left: 50%; top: 0; height: 100%; aspect-ratio: 9 / 16; border: 0; padding: 0; border-radius: 22px; overflow: hidden; background: #333; cursor: pointer; transform-origin: 50% 50%;
  transition: transform .7s var(--ease), opacity .7s var(--ease), filter .7s var(--ease); }
.story img, .story video { width: 100%; height: 100%; object-fit: cover; }
.story::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0, 0, 0, .65)); }
.story__label { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 18px; color: #fff; text-align: left; }
.story__label strong { display: block; font-family: var(--display); font-size: 1.9rem; font-variation-settings: "wdth" 80; line-height: 1; }
.story__label span { font-size: .85rem; opacity: .85; }
.story__ring { position: absolute; z-index: 1; top: 14px; left: 14px; right: 14px; display: flex; gap: 4px; }
.story__ring i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .45); }
.story.is-center { box-shadow: 0 30px 80px rgba(35, 36, 39, .35); }
.deck__ctrl { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 22px; }
.deck__ctrl p { margin: 0; min-width: 16ch; text-align: center; font-weight: 600; }
@media (max-width: 760px) { .stories__head { grid-template-columns: 1fr; } .deck__track { height: 66vh; } }

/* Feed */
.feed { background: var(--white); }
.feed__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px 28px; margin-bottom: 26px; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tabs button { min-height: 40px; padding: 0 14px; border-radius: 10px; border: 0; background: transparent; cursor: pointer; font-weight: 500; color: var(--stone); }
.tabs button sup { font-size: .7em; margin-left: 2px; }
.tabs button:hover { color: var(--graphite); background: var(--chalk); }
.tabs button[aria-selected="true"] { background: var(--graphite); color: #fff; }
.feed__note { font-size: .88rem; color: var(--stone); padding: 12px 14px; background: var(--chalk); border-radius: 10px; }
.grid { columns: 4 220px; column-gap: 12px; }
.tile { position: relative; display: block; width: 100%; margin: 0 0 12px; padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: pointer; break-inside: avoid; background: var(--chalk); }
.tile img, .tile video { width: 100%; height: auto; }
.tile video { position: absolute; inset: 0; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.tile.is-playing video { opacity: 1; }
.tile__badge { position: absolute; top: 10px; right: 10px; z-index: 1; display: flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 8px; background: rgba(0, 0, 0, .5); color: #fff; font-size: .75rem; font-weight: 600; }
.tile__badge svg { width: 12px; height: 12px; fill: currentColor; }
.tile__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 12px 12px; color: #fff; font-size: .85rem; text-align: left; line-height: 1.35; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s var(--ease); }
.tile:hover .tile__cap, .tile:focus-visible .tile__cap { opacity: 1; transform: none; }
.feed > .btn { display: flex; margin: 18px auto 0; }

/* Treatments */
.treat__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: 24px; }
.treat__head p { color: var(--stone); margin: 0; max-width: 46ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); cursor: pointer; font-weight: 500; font-size: .92rem; }
.chip:hover { border-color: var(--graphite); }
.chip[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.menu { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.menu li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-top: 1px solid var(--line); }
.menu h3 { margin: 0 0 4px; font-family: var(--display); font-size: 1.45rem; font-variation-settings: "wdth" 85; font-weight: 600; line-height: 1.05; }
.menu p { margin: 0; color: var(--stone); font-size: .92rem; }
.menu .price { display: block; margin-top: 6px; font-weight: 600; font-size: .88rem; color: var(--graphite); }
.menu button { margin-left: auto; flex: none; }
.menu li.is-dim { opacity: .28; }
@media (max-width: 760px) { .treat__head, .menu { grid-template-columns: 1fr; } }

/* Gift + bridal */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel { border-radius: 24px; padding: clamp(22px, 3vw, 36px); background: var(--white); }
.panel h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 14px; }
.panel--gift { background: var(--blue); color: #fff; }
.gc { position: relative; aspect-ratio: 1.6; max-width: 360px; margin: 6px 0 22px; border-radius: 16px; padding: 18px; background: var(--white); color: var(--graphite); display: flex; flex-direction: column; box-shadow: 0 24px 50px rgba(0, 0, 0, .25); transform: rotate(-3deg); }
.gc img { width: 30px; height: auto; filter: invert(1); }
.gc__amt { margin-top: auto; font-family: var(--display); font-size: 3rem; font-weight: 700; line-height: 1; font-variation-settings: "wdth" 75; }
.gc__to { font-weight: 600; }
.gift fieldset, .book fieldset { border: 0; padding: 0; margin: 0 0 14px; }
.gift legend, .book legend { font-weight: 600; font-size: .9rem; margin-bottom: 8px; }
.panel--gift .chip { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; }
.panel--gift .chip[aria-pressed="true"] { background: #fff; color: var(--blue); border-color: #fff; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: block; margin-bottom: 12px; }
.field span { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea, .inline input { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--white); color: var(--graphite); }
.panel--gift .field input { border-color: transparent; }
.is-bad { border-color: #c2412c !important; }
.err { color: #c2412c; font-weight: 600; font-size: .9rem; }
.panel--gift .err { color: var(--blush); }
.panel--bride .panel__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; margin-bottom: 20px; }
.panel--bride > p { color: var(--stone); }
.inline { display: flex; gap: 10px; flex-wrap: wrap; }
.inline input { flex: 1 1 170px; width: auto; }
.countdown { list-style: none; margin: 22px 0 0; padding: 0; counter-reset: s; }
.countdown li { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .92rem; animation: in .4s var(--ease) both; }
.countdown time { font-weight: 600; color: var(--blue); }
.countdown li.is-past time { color: var(--stone); }
.countdown li.is-day { font-weight: 700; }
.countdown .days { display: block; padding: 0 0 8px; border: 0; font-family: var(--display); font-size: 2.6rem; font-weight: 700; font-variation-settings: "wdth" 75; line-height: 1; grid-template-columns: none; }
@keyframes in { from { opacity: 0; transform: translateY(6px); } }
@media (max-width: 900px) { .duo { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .two { grid-template-columns: 1fr; } }

/* Reviews */
.voices { background: var(--graphite); color: #fff; }
.voices h2 { margin-bottom: 28px; }
.voices h2 a { color: var(--blush); }
.voices__row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.voice { scroll-snap-align: start; margin: 0; padding: 22px; border-radius: 18px; background: rgba(255, 255, 255, .07); }
.voice blockquote { margin: 0 0 14px; font-size: 1.02rem; }
.voice figcaption { font-weight: 600; color: var(--blush); }

/* Visit */
.visit { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; }
.visit h2 { margin-bottom: 18px; }
.visit__addr { font-size: 1.2rem; font-weight: 500; }
.hours { width: 100%; max-width: 380px; border-collapse: collapse; margin-top: 18px; font-size: .95rem; }
.hours td { padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.hours td + td { text-align: right; }
.hours .is-today td { font-weight: 700; color: var(--blue); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 30px 16px 0; position: relative; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px; border-right: 2px solid; border-bottom: 2px solid; transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq p { color: var(--stone); padding-bottom: 14px; margin: 0; }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } }
.foot { padding-top: 0; font-size: .85rem; color: var(--stone); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.foot a { margin-left: 14px; }

/* Dialogs */
dialog { border: 0; padding: 0; }
dialog::backdrop { background: rgba(20, 21, 23, .7); }
body.is-locked { overflow: hidden; }

/* Story viewer */
.viewer { width: 100%; height: 100%; max-width: 100%; max-height: 100%; margin: 0; background: #141517; }
.viewer[open] { display: grid; place-items: center; }
.viewer__stage { position: relative; height: min(100%, 100svh); aspect-ratio: 9 / 16; max-width: 100%; background: #000; overflow: hidden; }
@media (min-width: 700px) { .viewer__stage { height: 94vh; border-radius: 18px; } }
.viewer__bars { position: absolute; z-index: 3; top: 10px; left: 10px; right: 10px; display: flex; gap: 4px; }
.viewer__bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.viewer__bars i b { display: block; height: 100%; width: 0; background: #fff; }
.viewer__bars i.is-done b { width: 100%; }
.viewer__top { position: absolute; z-index: 3; top: 22px; left: 12px; right: 12px; display: flex; align-items: center; gap: 10px; color: #fff; }
.viewer__top img { width: 30px; height: auto; border-radius: 50%; }
.viewer__top p { margin: 0 auto 0 0; font-size: .9rem; }
.viewer__top span { opacity: .7; margin-left: 6px; }
.viewer__media { position: absolute; inset: 0; display: grid; place-items: center; }
.viewer__media img, .viewer__media video { width: 100%; height: 100%; object-fit: contain; animation: vin .35s var(--ease); }
@keyframes vin { from { opacity: 0; transform: scale(1.02); } }
.viewer__tap { position: absolute; z-index: 2; top: 80px; bottom: 120px; width: 35%; border: 0; background: transparent; cursor: pointer; }
.viewer__tap--prev { left: 0; } .viewer__tap--next { right: 0; width: 65%; }
.viewer__cap { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: 60px 16px 18px; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); }
.viewer__cap p { font-size: .9rem; margin-bottom: 12px; max-height: 6.2em; overflow: hidden; }

/* Post */
.post { width: min(1040px, 94vw); max-height: 92vh; border-radius: 20px; overflow: hidden; }
.post[open] { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, 1fr); }
.post__media { background: #000; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; max-height: 92vh; }
.post__media img, .post__media video { flex: none; width: 100%; max-height: 92vh; object-fit: contain; scroll-snap-align: start; }
.post__side { position: relative; padding: 22px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; background: var(--white); }
.post__close { position: absolute; top: 14px; right: 14px; }
.post__who { display: flex; align-items: center; gap: 10px; margin: 0; padding-right: 50px; }
.post__who img { width: 28px; height: auto; }
.post__cap { white-space: pre-line; margin: 0; }
.post__meta { color: var(--stone); font-size: .85rem; margin: 0; }
.post__side .btn { margin-top: auto; }
@media (max-width: 760px) { .post[open] { grid-template-columns: 1fr; overflow-y: auto; } .post__media { max-height: 60vh; } .post__media img { max-height: 60vh; } }

/* Booking drawer */
.drawer { width: min(520px, 100%); height: 100%; max-height: 100%; margin: 0 0 0 auto; background: var(--white); }
.drawer[open] { animation: slide .35s var(--ease); }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.book, .sent { padding: 24px; }
.book__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 22px; }
.book__top h2 { font-size: 2.2rem; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; margin: 6px 0 12px; }
.check input { width: 20px; height: 20px; accent-color: var(--blue); flex: none; }
.book__foot { position: sticky; bottom: 0; background: var(--white); padding: 14px 0 6px; border-top: 1px solid var(--line); }
.book__foot p { font-size: .85rem; color: var(--stone); }
.book__foot .btn { width: 100%; }
.sent { text-align: center; padding-top: 80px; outline: none; }
.sent__tick { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; }
.sent__tick svg { width: 34px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.sent h2 { margin-bottom: 12px; }
.sent p { color: var(--stone); }

.toast { position: fixed; z-index: 400; left: 50%; bottom: 24px; transform: translate(-50%, 16px); padding: 12px 18px; border-radius: 12px; background: var(--graphite); color: #fff; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
