/* ==========================================================================
   Salon You — All About You
   Design system + page styles. Mobile-first.
   Brand source: Salon You Logo and Mockups.pdf (Clever Snout Creative Studio)
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Bodoni Moda";
  src: url("../assets/fonts/bodoni-moda.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("../assets/fonts/bodoni-moda-italic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("../assets/fonts/lato-light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("../assets/fonts/lato-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("../assets/fonts/lato-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Brand palette (from style guide) */
  --ink: #212323;          /* primary — charcoal */
  --porcelain: #f2f2f3;    /* primary — cool white */
  --rose: #d9aba7;         /* secondary — muted rose (the logo's full stop) */
  --sage: #c3c8b2;         /* secondary — soft sage */

  /* Digital extensions (derived, not new brand colours) */
  --paper: #fafaf9;        /* lightest surface */
  --ink-soft: #2b2e2e;     /* raised surface on ink */
  --ink-mute: #5a5f5f;     /* secondary text on light — 6.0:1 on porcelain */
  --rose-deep: #8a4f49;    /* rose for text/links on light — 5.6:1 on porcelain */
  --rose-tint: #f3e6e4;    /* rose wash */
  --sage-wash: #e7eadf;    /* sage wash surface */
  --sage-deep: #5c634d;    /* sage for text on light */
  --line: rgba(33, 35, 35, 0.16);
  --line-light: rgba(242, 242, 243, 0.28);

  /* Type */
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", "Playfair Display", Georgia, serif;
  --sans: "Lato", "Helvetica Neue", Arial, sans-serif;

  --step--1: clamp(0.78rem, 0.76rem + 0.1vw, 0.84rem);
  --step-0: clamp(1rem, 0.97rem + 0.16vw, 1.0938rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.4vw, 1.45rem);
  --step-2: clamp(1.6rem, 1.38rem + 1.1vw, 2.3rem);
  --step-3: clamp(2.2rem, 1.7rem + 2.5vw, 3.9rem);
  --step-4: clamp(2.7rem, 1.8rem + 4.6vw, 5.8rem);

  /* Space */
  --gutter: clamp(1.25rem, 0.6rem + 3.2vw, 4rem);
  --section: clamp(3.5rem, 2.6rem + 4.5vw, 7rem);
  --max: 1440px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.21, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 700ms;

  --nav-h: 4.5rem;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 0.5rem);
}
body {
  margin: 0;
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, picture, video, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
address { font-style: normal; }
::selection { background: var(--rose); color: var(--ink); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 2px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 0.75rem; left: 0.75rem; z-index: 200;
  padding: 0.75rem 1.1rem; background: var(--ink); color: var(--porcelain);
  font-size: var(--step--1); letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* Bodoni at a mid optical size everywhere: keeps hairlines legible at display scale */
.hero__all, .quote blockquote, .service__title, .services__note h3, .work__line, .menu__list a, .prose h2, .footer__tag, .label__no, .caption__no, .service__no {
  font-optical-sizing: none; font-variation-settings: "opsz" 34;
}

/* Numerals are set upright: Bodoni's italic 4 reads too much like a 1 */
.label__no, .service__no, .menu__list a span { font-style: normal !important; letter-spacing: 0.04em; }

/* ---------- Layout primitives ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section--paper { background: var(--paper); }
.section--sage { background: var(--sage-wash); }
.section--ink { background: var(--ink); color: var(--porcelain); }

/* ---------- Type ---------- */
.label {
  display: flex; align-items: center; gap: 0.9rem;
  font-size: var(--step--1); font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase;
  line-height: 1.4;
}
.label__no {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 1.05rem; letter-spacing: 0.02em; text-transform: none; color: var(--rose-deep);
}
.section--ink .label__no, .visit .label__no { color: var(--rose); }
.label__rule { flex: 0 0 2.75rem; height: 1px; background: currentColor; opacity: 0.5; transform-origin: left; }

.display {
  font-family: var(--serif); font-weight: 400; font-optical-sizing: none; font-variation-settings: "opsz" 34;
  font-size: var(--step-4); line-height: 1.02; letter-spacing: -0.022em;
  text-wrap: balance;
}
.display em { font-style: italic; letter-spacing: -0.03em; }
.display--md { font-size: var(--step-3); line-height: 1.06; }
.line { display: block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.line > span { display: block; }

.lede { font-size: var(--step-1); font-weight: 300; line-height: 1.55; max-width: 34em; }
.copy { max-width: 31em; color: var(--ink-mute); }
.section--ink .copy { color: rgba(242, 242, 243, 0.78); }
.copy + .copy { margin-top: 1.1em; }

/* Link with drawn underline */
.link {
  position: relative; display: inline-block; text-decoration: none; padding-bottom: 0.35em;
  font-size: var(--step--1); font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
}
.link::before, .link::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor;
}
.link::before { opacity: 0.3; }
.link::after { transform: scaleX(0); transform-origin: right; }
.link:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.link--inline { font: inherit; letter-spacing: 0; text-transform: none; padding-bottom: 0.1em; }
.link--inline::before { opacity: 0.45; }

/* Buttons */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--porcelain); --btn-fill: var(--rose); --btn-fill-fg: var(--ink);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.9rem;
  min-height: 3.5rem; padding: 1rem 1.9rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bg);
  font-size: var(--step--1); font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; line-height: 1.2;
  text-decoration: none; text-align: center;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--btn-fill);
  transform: translateY(101%);
}
.btn:focus-visible { color: var(--btn-fill-fg); border-color: var(--btn-fill); }
.btn:focus-visible::before { transform: none; }
.btn:active { transform: scale(0.97); }
.btn--light { --btn-bg: var(--porcelain); --btn-fg: var(--ink); }
.btn--ghost { --btn-bg: transparent; --btn-fg: currentColor; border-color: currentColor; --btn-fill: var(--porcelain); }
.btn--ghost-dark { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--ink); --btn-fill: var(--ink); --btn-fill-fg: var(--porcelain); }
.btn__arrow { width: 1.4rem; height: 0.6rem; flex: none; }
.btn:focus-visible .btn__arrow { transform: translateX(4px); }
.btn__sub { display: block; margin-top: 0.3rem; font-weight: 400; letter-spacing: 0.08em; text-transform: none; opacity: 0.8; font-size: 0.95em; }
.btn--pill {
  border-radius: 999px; font-size: 0.95rem; font-weight: 400; letter-spacing: 0.02em; text-transform: none;
  --btn-bg: var(--rose); --btn-fg: var(--ink); border-color: var(--rose); --btn-fill: var(--ink); --btn-fill-fg: var(--porcelain);
}
.btn--stack { flex-direction: column; gap: 0; padding-block: 1.1rem; }

/* Picture frames */
.frame { position: relative; overflow: hidden; background: #d8d8d6; }
.section--ink .frame { background: #343737; }
.frame picture, .frame img { width: 100%; height: 100%; }
.frame img { object-fit: cover; object-position: var(--pos, 50% 50%); }
.frame--arch { border-radius: 999px 999px 0 0; }
.ratio-3x2 { aspect-ratio: 3 / 2; }
.ratio-4x5 { aspect-ratio: 4 / 5; }
.ratio-3x4 { aspect-ratio: 3 / 4; }
.ratio-1x1 { aspect-ratio: 1 / 1; }
.ratio-16x9 { aspect-ratio: 16 / 9; }

figcaption, .caption {
  margin-top: 0.9rem; font-size: var(--step--1); letter-spacing: 0.06em; color: var(--ink-mute);
  display: flex; gap: 0.75rem; align-items: baseline;
}
.section--ink figcaption { color: rgba(242, 242, 243, 0.7); }
.caption__no { font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--rose-deep); flex: none; }
.section--ink .caption__no { color: var(--rose); }


/* ---------- Reveal system ----------
   Start states only apply under .motion, which the page adds when JavaScript is
   running and the visitor has not asked for reduced motion. All transitions live
   in the "Motion" block at the end of this file. */
.motion [data-reveal] { opacity: 0; transform: translate3d(0, 24px, 0); }
.motion [data-reveal="fade"] { transform: none; }
.motion [data-reveal="left"] { transform: translate3d(-24px, 0, 0); }
.motion [data-reveal="right"] { transform: translate3d(24px, 0, 0); }
.motion [data-reveal].is-in { opacity: 1; transform: none; }

.motion [data-lines] .line > span { transform: translate3d(0, 108%, 0); }
.motion [data-lines].is-in .line > span { transform: none; }

.motion [data-mask] { clip-path: inset(100% 0 0 0); }
.motion [data-mask="left"] { clip-path: inset(0 100% 0 0); }
.motion [data-mask] img { transform: scale(1.08); }
.motion [data-mask].is-in { clip-path: inset(0 0 0 0); }
.motion [data-mask].is-in img { transform: scale(1); }

.motion [data-draw] { transform: scaleX(0); }
.motion [data-draw].is-in, .motion .is-in > [data-draw], .motion .is-in [data-draw="child"] { transform: scaleX(1); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  color: var(--porcelain);
}
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav.is-solid { background: rgba(242, 242, 243, 0.94); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
@supports (backdrop-filter: blur(8px)) {
  .nav.is-solid { background: rgba(242, 242, 243, 0.93); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
}
.nav__logo { display: block; width: 3.6rem; flex: none; line-height: 0; margin-top: 0.55rem; }
.nav__logo svg { width: 100%; height: auto; overflow: visible; }
.logo .logo-ink { fill: currentColor; }
.logo .logo-dot { fill: var(--rose); }

.nav__links { display: none; }
.nav__actions { display: flex; align-items: center; gap: 0.5rem; }
.nav__phone {
  min-height: 2.75rem; padding: 0.6rem 0.95rem; border-radius: 999px; white-space: nowrap; font-variant-numeric: tabular-nums;
  font-size: 0.8rem; font-weight: 400; letter-spacing: 0.02em; text-transform: none;
  --btn-bg: transparent; --btn-fg: currentColor; border-color: currentColor; --btn-fill: var(--rose); --btn-fill-fg: var(--ink);
}
.nav__email { gap: 0.28em; --btn-bg: var(--rose); --btn-fg: var(--ink); border-color: var(--rose); --btn-fill: var(--ink); --btn-fill-fg: var(--porcelain); }
.nav__us { display: none; }
.nav__round { width: 2.75rem; min-height: 2.75rem; height: 2.75rem; padding: 0; flex: none; }
.nav__round svg { width: 1.2rem; height: 1.2rem; }
.nav__call svg { display: none; }
@media (max-width: 699px) {
  .nav__call { width: 2.75rem; height: 2.75rem; padding: 0; flex: none; }
  .nav__call svg { display: block; width: 1.35rem; height: 1.35rem; }
  .nav__num { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  /* Text links become outlined pills: a full-size tap target on phones */
  .link--btn {
    display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: 0.6rem 1.3rem;
    border: 1px solid currentColor; border-radius: 999px;
    font-size: 0.9rem; font-weight: 400; letter-spacing: 0.02em; text-transform: none;
  }
  .link--btn::before, .link--btn::after { display: none; }
  .link--btn:active { transform: scale(0.97); }
  .profile__lede { font-size: var(--step-1); line-height: 1.45; }
}
@media (max-width: 359px) {
  .nav__actions { gap: 0.35rem; }
  .nav__logo { width: 3rem; }
  .nav__round, .nav__call { width: 2.5rem; min-height: 2.5rem; height: 2.5rem; }
  .nav__email { padding-inline: 0.7rem; }
  .nav__toggle { width: 2.25rem; }
}
.nav__toggle { position: relative; width: 2.75rem; height: 2.75rem; }
.nav__toggle span { position: absolute; left: 50%; top: 50%; width: 1.6rem; height: 1px; margin-left: -0.8rem; background: currentColor; }
.nav__toggle span:first-child { transform: translateY(-4px); }
.nav__toggle span:last-child { transform: translateY(4px); }
.nav__toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }
.menu-open .nav { color: var(--porcelain); background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 90; background: var(--ink); color: var(--porcelain);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + 2rem) var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  overflow-y: auto;
  visibility: hidden; opacity: 0;
}
.menu-open .menu { visibility: visible; opacity: 1; }
.menu__list a {
  display: flex; align-items: baseline; gap: 1rem; padding: 0.5rem 0; text-decoration: none;
  font-family: var(--serif); font-size: clamp(2.1rem, 10vw, 3.2rem); line-height: 1.15; letter-spacing: -0.02em;
  opacity: 0; transform: translateY(12px);
}
.menu__list a span { font-size: 0.9rem; font-style: italic; color: var(--rose); letter-spacing: 0; min-width: 1.6rem; }
.menu-open .menu__list a { opacity: 1; transform: none; }
.menu__foot { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line-light); display: grid; gap: 0.35rem; font-size: 0.95rem; }
.menu__foot a { text-decoration: none; }
.menu__foot .btn { margin-top: 1rem; }

/* ---------- 01 Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end;
  background: var(--ink); color: var(--porcelain); overflow: hidden; isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media picture, .hero__media img, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__video { opacity: 0; }
.hero__video.is-playing { opacity: 1; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(33, 35, 35, 0.62) 0%, rgba(33, 35, 35, 0.3) 22%, rgba(33, 35, 35, 0.42) 55%, rgba(33, 35, 35, 0.88) 100%),
    linear-gradient(90deg, rgba(33, 35, 35, 0.5) 0%, rgba(33, 35, 35, 0.3) 60%, rgba(33, 35, 35, 0.2) 100%);
}

/* Hero frame — one rose line with rounded corners, after the appointment cards */
.hero__frame {
  --f: clamp(0.7rem, 2vw, 1.5rem); position: absolute; inset: calc(var(--nav-h) + 0.25rem) var(--f) var(--f) var(--f);
  pointer-events: none; border: 1.5px solid var(--rose); border-radius: clamp(1.1rem, 2.6vw, 2rem);
}
.hero__content { width: 100%; padding-top: calc(var(--nav-h) + 3rem); padding-bottom: clamp(5.5rem, 12vh, 7.5rem); position: relative; }
.hero__title { padding-left: clamp(0.75rem, 2vw, 1.5rem); }
.hero__eyebrow { font-size: var(--step--1); font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; align-items: center; }
.hero__eyebrow i { width: 5px; height: 5px; background: var(--rose); transform: rotate(45deg); flex: none; }
@media (max-width: 699px) { .hero__shade { background: linear-gradient(180deg, rgba(33, 35, 35, 0.66) 0%, rgba(33, 35, 35, 0.5) 30%, rgba(33, 35, 35, 0.6) 60%, rgba(33, 35, 35, 0.9) 100%); } }
@media (max-width: 460px) { .hero__eyebrow { flex-direction: column; align-items: flex-start; } .hero__eyebrow i { display: none; } }
.hero__title { margin-top: clamp(1rem, 3vh, 1.75rem); }
.hero__all {
  display: block; overflow: hidden; padding: 0 0.1em 0.18em 0; margin-bottom: -0.1em;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.9rem, 8vw, 4rem); line-height: 1; letter-spacing: -0.03em;
}
.hero__all > span { display: block; }
.hero { --you-w: max(9rem, min(56vw, 26rem, (100svh - 25rem) * 1.56)); }
.hero__you { display: block; width: var(--you-w); margin-top: clamp(0.4rem, 1.4vw, 1rem); overflow: hidden; }
.hero__you svg { width: 100%; height: auto; }
.hero__you .logo-ink { fill: var(--porcelain); }
.hero__actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem 2rem; }
.hero__aside { display: none; }
.hero__pause {
  position: absolute; right: calc(var(--gutter) + 0.25rem); bottom: clamp(1.6rem, 4vh, 2.6rem); z-index: 2;
  display: none; align-items: center; gap: 0.6rem; min-height: 2.75rem;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.8;
}
.hero__pause.is-ready { display: inline-flex; }
.hero__pause svg { width: 0.7rem; height: 0.7rem; fill: currentColor; }
.hero__pause .ico-play, .hero__pause.is-paused .ico-pause { display: none; }
.hero__pause.is-paused .ico-play { display: block; }

/* Hero entrance choreography */
.motion .hero__media img { transform: scale(1.08); opacity: 0; }
.motion .hero__frame { opacity: 0; }
.motion .hero__eyebrow, .motion .hero__actions, .motion .hero__aside, .motion .nav__inner > * { opacity: 0; }
.motion .hero__all > span { transform: translate3d(0, 110%, 0); }
.motion .hero__you svg { transform: translate3d(0, 104%, 0); }

.is-loaded .hero__media img { transform: scale(1); opacity: 1; }
.is-loaded .hero__frame { opacity: 1; }
.is-loaded .nav__inner > * { opacity: 1; }
.is-loaded .hero__eyebrow { opacity: 1; }
.is-loaded .hero__all > span { transform: none; }
.is-loaded .hero__you svg { transform: none; }
.is-loaded .hero__actions { opacity: 1; }
.is-loaded .hero__aside { opacity: 1; }

/* ---------- 02 Welcome ---------- */
.welcome__grid { display: grid; gap: 3.5rem; }
.welcome__text .display { margin-top: 1.6rem; }
.welcome__text .lede { margin-top: 2rem; }
.welcome__text .copy { margin-top: 1.4rem; }
.welcome__text .link { margin-top: 2.2rem; }
.welcome__media { position: relative; padding-bottom: 26%; padding-right: 12%; }
.welcome__arch { width: 100%; }
.welcome__inset { position: absolute; right: 0; bottom: 0; width: 62%; border: 0.6rem solid var(--porcelain); border-right: 0; border-bottom: 0; }
.welcome__tag {
  position: absolute; right: 2.5%; top: 2%; writing-mode: vertical-rl;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-mute);
}

.quote { margin-top: var(--section); text-align: center; }
.quote blockquote {
  margin: 2.2rem auto 0; max-width: 17em;
  font-family: var(--serif); font-size: var(--step-3); line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance;
}
.quote blockquote em { font-style: italic; color: var(--rose-deep); }
.quote--marks blockquote { margin-top: 0; }
.quote__mark { display: inline-block; font-size: 2.4em; line-height: 0; vertical-align: -0.38em; color: var(--rose-deep); margin-inline: 0.04em; }
.quote cite { display: block; margin-top: 1.8rem; font-style: normal; font-size: var(--step--1); font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-mute); }

/* ---------- 03 The salon ---------- */
.salon__head { display: grid; gap: 2rem; }
.salon__head .display { margin-top: 1.6rem; }
.carousel { margin-top: clamp(3rem, 7vw, 6rem); position: relative; }
.carousel__view { aspect-ratio: 3 / 2; }
.carousel__track { display: flex; height: 100%; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline-offset: -4px; }
.carousel__slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.carousel__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; }
.rail__btn[hidden] { display: none; }
.carousel__bar .rail__btns { margin-left: auto; }
.carousel__toggle { position: absolute; right: calc(var(--gutter) + 0.9rem); bottom: 0.9rem; width: 2.75rem; height: 2.75rem; background: rgba(33, 35, 35, 0.55); color: var(--porcelain); }
.carousel__toggle svg { width: 0.7rem; height: 0.7rem; fill: currentColor; }
.carousel__toggle .i-play, .carousel__toggle[aria-pressed="true"] .i-pause { display: none; }
.carousel__toggle[aria-pressed="true"] .i-play { display: block; }
.carousel__count { font-family: var(--serif); font-size: 1.15rem; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; opacity: 0.8; }
.rail__btns { display: flex; gap: 0.5rem; }
.rail__btn { width: 3rem; height: 3rem; border: 1px solid var(--line-light); border-radius: 50%; display: grid; place-items: center; }
.rail__btn:disabled { opacity: 0.3; cursor: default; }
.rail__btn svg { width: 1.1rem; height: 0.6rem; }

/* ---------- 04 Services ---------- */
.services__head { display: grid; gap: 2rem; margin-bottom: clamp(3.5rem, 8vw, 7rem); }
.services__head .display { margin-top: 1.6rem; }
.service { display: grid; gap: 1.75rem; }
.service + .service, .services__pair { margin-top: clamp(4rem, 9vw, 8rem); }
.service__no { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--rose-deep); }
.service__title { font-family: var(--serif); font-weight: 400; font-size: var(--step-3); line-height: 1; letter-spacing: -0.02em; margin-top: 0.4rem; }
.service__rule { display: block; height: 1px; background: var(--line); margin: 1.5rem 0; transform-origin: left; }
.service__body .copy { max-width: 26em; }
.service__body .link { margin-top: 1.6rem; color: var(--ink); }
.services__pair { display: grid; gap: clamp(4rem, 9vw, 8rem); }
.service--after-pair { margin-top: clamp(4rem, 9vw, 8rem); }
.brands { margin-top: clamp(4rem, 9vw, 8rem); padding-top: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid var(--line); text-align: center; }
.brands__title { font-size: var(--step--1); font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--rose-deep); }
.brands__list { margin-top: 1.6rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem clamp(1.5rem, 5vw, 4rem); font-family: var(--serif); font-variation-settings: "opsz" 34; font-size: var(--step-2); line-height: 1.15; letter-spacing: -0.015em; }
.brands__note { margin: 1.4rem auto 0; max-width: 30em; color: var(--ink-mute); }
.services__note {
  margin-top: clamp(2rem, 4vw, 3rem); padding: clamp(1.4rem, 3vw, 2.2rem) clamp(1.5rem, 4vw, 2.75rem);
  border: 1px solid var(--rose); border-radius: 1.5rem;
  display: grid; gap: 1.75rem; position: relative;
}
.services__note h3 { font-family: var(--serif); font-weight: 400; font-size: var(--step-2); line-height: 1.1; letter-spacing: -0.015em; }
.services__note h3 em { font-style: italic; }
.services__note p { color: var(--ink-mute); max-width: 32em; }
.services__note .btn { justify-self: start; }

/* ---------- 05 The work ---------- */

/* ---------- 06 People ---------- */

/* ---------- 08 Visit / invitation ---------- */
.visit { position: relative; isolation: isolate; color: var(--porcelain); background: var(--ink); text-align: center; overflow: hidden; padding-block: clamp(6rem, 16vw, 12rem); }
.visit__bg { position: absolute; inset: -8% 0; z-index: -2; }
.visit__bg picture, .visit__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.visit__bg img { will-change: transform; }
.visit::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(33, 35, 35, 0.92), rgba(33, 35, 35, 0.86) 45%, rgba(33, 35, 35, 0.94)); }
.visit .label { justify-content: center; }
.fan { width: min(15rem, 52vw); margin: 0 auto 2rem; color: var(--rose); overflow: visible; }
.fan path, .fan line { fill: none; stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }
.motion .fan path, .motion .fan line { stroke-dashoffset: 1; }
.motion .fan.is-in path, .motion .fan.is-in line { stroke-dashoffset: 0; }
.visit .display { margin-top: 1.6rem; }
.visit .display em { color: var(--rose); }
.visit__copy { margin: 1.8rem auto 0; max-width: 28em; color: rgba(242, 242, 243, 0.82); }
.visit__actions { margin-top: 2.5rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.visit__actions .btn { width: 100%; max-width: 24rem; }
.hours { margin: clamp(3rem, 7vw, 4.5rem) auto 0; max-width: 22rem; text-align: left; }
.hours__title { text-align: center; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; color: var(--rose); margin-bottom: 1.1rem; }
.hours__row { display: flex; justify-content: space-between; gap: 1.5rem; padding: 0.7rem 0; border-top: 1px solid var(--line-light); font-variant-numeric: tabular-nums; }
.hours__row:last-child { border-bottom: 1px solid var(--line-light); }
.hours__row dd { color: var(--porcelain); }
.hours__row--closed { color: rgba(242, 242, 243, 0.68); }
.hours__row--closed dd { color: inherit; }
.visit__policy { margin: 2.2rem auto 0; max-width: 34em; font-size: var(--step--1); color: rgba(242, 242, 243, 0.68); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--porcelain); padding: clamp(2.5rem, 5vw, 3.75rem) 0 0; border-top: 1px solid var(--line-light); }
.footer__top { display: grid; gap: 2rem; }
.footer__logo { display: block; width: clamp(4.5rem, 14vw, 6rem); }
.footer .footer__tag { margin-top: 1rem; font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--rose); }
.footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem 1.5rem; }
.footer h3 { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; color: var(--rose); margin-bottom: 0.7rem; }
.footer li + li { margin-top: 0.35rem; }
.footer p, .footer li, .footer address { font-size: 0.92rem; line-height: 1.6; color: rgba(242, 242, 243, 0.85); }
.footer a { text-decoration: none; }
.footer__base {
  margin-top: 2rem; padding-block: 1.6rem calc(1.6rem + env(safe-area-inset-bottom));
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.75rem; justify-content: space-between; align-items: baseline;
  font-size: 0.8rem; letter-spacing: 0.06em; color: rgba(242, 242, 243, 0.62);
}
.footer__base ul { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; }
.footer__base li + li { margin-top: 0; }

/* ---------- Mobile booking bar ---------- */
.bookbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(242, 242, 243, 0.94); box-shadow: 0 -1px 0 var(--line);
  transform: translateY(110%);
}
@supports (backdrop-filter: blur(8px)) { .bookbar { background: rgba(242, 242, 243, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); } }
.bookbar.is-on { transform: none; }
.bookbar .btn {
  width: 100%; min-height: 3.1rem; border-radius: 999px; font-variant-numeric: tabular-nums;
  font-size: 0.95rem; font-weight: 400; letter-spacing: 0.02em; text-transform: none;
  --btn-bg: var(--rose); --btn-fg: var(--ink); border-color: var(--rose); --btn-fill: var(--ink); --btn-fill-fg: var(--porcelain);
}
.menu-open .bookbar { transform: translateY(110%); }
.has-bookbar .footer__base { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }

/* ---------- Profile page (daniel.html) ---------- */
.hero--page { min-height: min(100svh, 52rem); }
.hero--page .hero__media img { object-position: var(--pos, 60% 40%); }
.hero__name { margin-top: clamp(1rem, 3vh, 1.75rem); }
.hero__name .hero__all { font-size: clamp(3.2rem, 14vw, 9rem); line-height: 0.95; }
.hero__all--roman { font-style: normal; letter-spacing: -0.025em; }
.hero__actions--plain { margin-top: 2rem !important; margin-left: 0 !important; }
.daniel__head .display { margin-top: 1.6rem; }
.daniel__roles { margin-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.9rem; font-size: var(--step--1); font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; }
.daniel__roles i { width: 5px; height: 5px; background: var(--rose-deep); transform: rotate(45deg); flex: none; }
.daniel__head .profile__lede { margin-top: 2rem; }
.profile__lede { max-width: 30em; font-size: var(--step-2); line-height: 1.35; font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; font-optical-sizing: none; font-variation-settings: "opsz" 34; }
.chapter { display: grid; gap: 1.5rem; padding-top: clamp(3.5rem, 8vw, 7rem); }
.chapter__no { font-family: var(--serif); font-size: 1.05rem; letter-spacing: 0.04em; color: var(--rose-deep); margin-bottom: 0.8rem; font-optical-sizing: none; font-variation-settings: "opsz" 34; }
.chapter__body .copy { max-width: 34em; font-size: 1.0625rem; }
.profile__wide { margin-top: clamp(3.5rem, 8vw, 7rem); }
.profile__wide .frame { aspect-ratio: 3 / 2; }
.profile__quote { margin-top: clamp(4rem, 10vw, 8rem); }
.profile__split { display: grid; gap: 1rem; margin-top: clamp(1rem, 4vw, 3rem); }
.profile__portrait { max-width: 26rem; width: 100%; margin-top: clamp(3.5rem, 8vw, 7rem); }
@media (min-width: 700px) {
  .chapter { grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
  .profile__split { grid-template-columns: 4fr 8fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
  .profile__split .chapter { grid-template-columns: 1fr; }
}
@media (min-width: 1024px) {
  .hero__name .hero__all { font-size: min(clamp(5rem, 11vw, 11rem), 22svh); }
}

/* ---------- Simple page (privacy) ---------- */
.page { padding-block: calc(var(--nav-h) + 4rem) var(--section); }
.page .display { margin-top: 1.5rem; }
.prose { margin-top: 3rem; max-width: 40rem; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: var(--step-2); line-height: 1.15; margin: 2.5rem 0 0.8rem; }
.prose p + p { margin-top: 1em; }
.prose p, .prose li { color: var(--ink-mute); }
.prose ul { list-style: disc; padding-left: 1.2rem; margin-top: 0.8rem; }
.prose ul + p { margin-top: 1em; }
.prose li + li { margin-top: 0.3em; }

/* ==========================================================================
   Tablet ≥ 700px
   ========================================================================== */
@media (min-width: 700px) {
  .hero__actions { margin-top: 2.25rem; }
  .carousel__view { aspect-ratio: 16 / 9; }
    .welcome__tag { font-size: 0.56rem; letter-spacing: 0.24em; }
  .welcome__grid { grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2.5rem, 6vw, 6rem); }
  .welcome__media { order: -1; }
  .service { grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 6vw, 6rem); }
  .service--flip .service__media { order: 2; }
  .services__pair { grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
  .services__pair .service { grid-template-columns: 1fr; margin-top: 0; }
  .services__pair .service:last-child { margin-top: clamp(4rem, 10vw, 9rem); }
  .services__note { grid-template-columns: 1.4fr auto; align-items: center; }
  .visit__actions { flex-direction: row; justify-content: center; }
  .visit__actions .btn { width: auto; min-width: 17rem; }
  .footer__cols { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: auto; justify-content: space-between; }
}

/* ==========================================================================
   Desktop ≥ 1024px
   ========================================================================== */
@media (min-width: 1024px) {
  :root { --nav-h: 5.5rem; }
  .nav__logo { width: 4.4rem; margin-top: 0.7rem; }
  .nav__toggle, .menu { display: none; }
  .nav__links { display: flex; gap: clamp(1.4rem, 2.6vw, 2.75rem); }
  .nav__links a {
    position: relative; text-decoration: none; padding: 0.6rem 0;
    font-size: 0.74rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase;
  }
  .nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.25rem; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; }
  .nav__links a:focus-visible::after, .nav__links a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }
  .nav__actions { gap: 0.75rem; }
  .nav__phone { padding-inline: 1.5rem; font-size: 0.9rem; }
  .nav__round { padding: 0; width: 2.9rem; height: 2.9rem; }
  .nav__us { display: inline; }

  .hero { --you-w: max(12rem, min(34vw, 30rem, (100svh - 27rem) * 1.56)); }
  .hero__all { font-size: min(clamp(2.6rem, 4.6vw, 4.75rem), 10svh); }
  /* CTA sits in the notch beside the Y's descender */
  .hero__actions { margin-top: calc(var(--you-w) * -0.15); margin-left: calc(var(--you-w) * 0.2); }
  .hero__aside {
    display: block; position: absolute; right: var(--gutter); bottom: clamp(5.5rem, 12vh, 7.5rem); text-align: right;
    font-size: var(--step--1); letter-spacing: 0.08em; line-height: 1.8; max-width: 16rem;
  }
  .hero__aside strong { display: block; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--rose); margin-bottom: 0.4rem; }

  .welcome__grid { grid-template-columns: 5fr 6fr; }
  .welcome__tag { top: 14%; font-size: 0.68rem; letter-spacing: 0.3em; }
  .welcome__text { padding-left: 4%; }
  .salon__head { grid-template-columns: 7fr 4fr; align-items: end; gap: 4rem; }
  .carousel__view { aspect-ratio: 2 / 1; }
  .services__head { grid-template-columns: 7fr 4fr; align-items: end; gap: 4rem; }
  .service { grid-template-columns: 7fr 4fr; }
  .service--flip { grid-template-columns: 4fr 7fr; }
  .services__pair .service { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 4fr 8fr; }
  .bookbar { display: none; }
  .has-bookbar .footer__base { padding-bottom: 1.6rem; }
}

/* Short landscape phones: keep hero content inside the frame */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: 34rem; }
}

/* ==========================================================================
   Hover — pointer devices only, so a tap on a phone never leaves a hover state stuck
   ========================================================================== */
@media (hover: hover) and (pointer: fine) {
  .link:hover::after, .nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
  .btn:hover { color: var(--btn-fill-fg); border-color: var(--btn-fill); }
  .btn:hover::before { transform: none; }
  .btn:hover .btn__arrow { transform: translateX(4px); }
  .frame--zoom:hover img { transform: scale(1.035); }
  .motion [data-mask].is-in.frame--zoom:hover img { transform: scale(1.035); transition-delay: 0ms; transition-duration: 900ms; }
  .hero__pause:hover { opacity: 1; }
  .rail__btn:hover:not(:disabled) { background: var(--porcelain); color: var(--ink); border-color: var(--porcelain); }
}

/* ==========================================================================
   Motion — every transition on the site, applied only when the visitor has
   not asked for reduced motion.
   Controls: 100-300ms. Scroll and load storytelling: 500-1200ms.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* Controls */
  .link::after { transition: transform 250ms var(--ease-out); }
  .btn { transition: color 150ms ease, border-color 150ms ease, transform 100ms ease-out; }
  .btn::before, .btn__arrow { transition: transform 220ms var(--ease-out); }
  .nav { transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease; }
  .nav__links a::after { transition: transform 200ms var(--ease-out); }
  .nav__toggle span { transition: transform 200ms var(--ease-out); }
  .rail__btn { transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, opacity 150ms ease; }
  .bookbar { transition: transform 300ms var(--ease-out); }
  /* Keyboard focus shows its state at once; the animation is for the pointer */
  .btn:focus-visible, .btn:focus-visible::before, .btn:focus-visible .btn__arrow,
  .link:focus-visible::after, .nav__links a:focus-visible::after { transition-duration: 0s; }

  /* Mobile menu: opens in 250ms with a short stagger, closes in 200ms */
  .menu { transition: opacity 200ms ease, visibility 0s linear 200ms; }
  .menu-open .menu { transition: opacity 250ms ease, visibility 0s; }
  .menu__list a { transition: opacity 0s linear 200ms, transform 0s linear 200ms; }
  .menu-open .menu__list a { transition: opacity 300ms ease, transform 300ms var(--ease-out); transition-delay: calc(40ms + var(--i) * 30ms); }

  /* Images */
  .frame img { transition: transform 900ms var(--ease-out); }
  .hero__video { transition: opacity 1200ms ease; }

  /* Scroll reveals */
  .motion [data-reveal] { transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); transition-delay: min(var(--d, 0ms), 150ms); }
  .motion [data-lines] .line > span { transition: transform 900ms var(--ease-out); transition-delay: calc(min(var(--d, 0ms), 150ms) + var(--i, 0) * 80ms); }
  .motion [data-mask] { transition: clip-path 900ms var(--ease-out); transition-delay: min(var(--d, 0ms), 150ms); }
  .motion [data-mask] img { transition: transform 1200ms var(--ease-out); transition-delay: min(var(--d, 0ms), 150ms); }
  .motion [data-draw] { transition: transform 900ms var(--ease-out); transition-delay: min(var(--d, 0ms), 150ms); }
  .motion .fan path, .motion .fan line { transition: stroke-dashoffset 1200ms var(--ease-out); transition-delay: calc(var(--i, 0) * 35ms); }

  /* Hero entrance: booking button is fully visible by about 1.1s */
  .is-loaded .hero__media img { transition: transform 2600ms var(--ease-out), opacity 900ms ease; }
  .is-loaded .hero__frame { transition: opacity 900ms ease 300ms; }
  .is-loaded .nav__inner > * { transition: opacity 600ms ease calc(200ms + var(--i, 0) * 80ms); }
  .is-loaded .hero__eyebrow { transition: opacity 700ms ease 300ms; }
  .is-loaded .hero__all > span { transition: transform 1000ms var(--ease-out) 350ms; }
  .is-loaded .hero__you svg { transition: transform 1100ms var(--ease-out) 480ms; }
  .is-loaded .hero__actions { transition: opacity 500ms ease 600ms; }
  .is-loaded .hero__aside { transition: opacity 500ms ease 750ms; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  .nav, .bookbar, .menu, .hero__video, .hero__pause { display: none !important; }
}
