/* ==========================================================================
   Mara & Co. — Hair, Considered. Pontcanna, Cardiff
   Editorial single-page template — bone / ink / blush / gold
   ========================================================================== */

:root {
  --bone: #F4F1EC;
  --ink: #16151A;
  --blush: #D9A6A0;
  --gold: #B08D57;
  --ink-08: rgba(22, 21, 26, 0.08);
  --ink-14: rgba(22, 21, 26, 0.14);
  --ink-55: rgba(22, 21, 26, 0.55);
  --bone-14: rgba(244, 241, 236, 0.14);
  --bone-55: rgba(244, 241, 236, 0.55);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(1.25rem, 5vw, 5rem);
  --nav-h: 4.25rem;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }

::selection { background: var(--gold); color: var(--bone); }

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.6rem 1.1rem;
  background: var(--ink);
  color: var(--bone);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: translateY(-300%);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- typography ---------- */
h1, h2, h3 { font-weight: 500; }

h1, h2 {
  font-family: var(--serif);
  line-height: 0.98;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(2.6rem, 6.5vw, 5.5rem); }
h2 em { color: var(--gold); }

.micro {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--ink-55);
}

.label { display: inline-block; margin-bottom: clamp(1.25rem, 3vh, 2.5rem); }
.label--bone { color: var(--bone-55); }

.lede { max-width: 34em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 1rem 2.2rem;
  border: 1px solid currentColor;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}
.btn:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); }

.btn--solid {
  background: var(--bone);
  color: var(--ink);
  border-color: var(--bone);
}
.btn--solid:hover { background: transparent; color: var(--bone); border-color: var(--bone); }

.btn--bone { color: var(--bone); }
.btn--bone:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }

.btn--nav { padding: 0.65rem 1.5rem; }

/* ---------- fixed nav ---------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--nav-h);
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  background: rgba(244, 241, 236, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ink-08);
  will-change: transform;
}

.site-nav__brand {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.site-nav__brand span { color: var(--gold); }

.site-nav__links { display: flex; gap: clamp(1.25rem, 3vw, 2.75rem); }
.site-nav__links a {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-55);
  transition: color 0.3s ease;
}
.site-nav__links a:hover { color: var(--ink); }

@media (max-width: 720px) {
  .site-nav__links { display: none; }
}

/* ---------- panels ---------- */
.panel {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
}

/* ==========================================================================
   01 · HERO
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--ink);
  color: var(--bone);
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(108deg, rgba(22, 21, 26, 0.52) 0%, rgba(22, 21, 26, 0.18) 45%, rgba(22, 21, 26, 0) 70%);
  pointer-events: none;
}

/* if the film fails to load: bone canvas, ink type */
.hero--noimg { color: var(--ink); }
.hero--noimg .hero__veil { display: none; }
.hero--noimg .hero__kicker,
.hero--noimg .hero__place,
.hero--noimg .hero__scrollhint { color: var(--ink-55); }
.hero--noimg .hero__badge { color: var(--gold); }
.hero--noimg .hero__book { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.hero--noimg .hero__book:hover { background: transparent; color: var(--ink); }

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.hero__overlay a { pointer-events: auto; }

.hero__kicker {
  position: absolute;
  top: calc(var(--nav-h) + clamp(1.5rem, 4vh, 3rem));
  left: var(--pad);
  color: var(--bone-55);
}

.hero__title {
  position: absolute;
  top: 34%;
  left: var(--pad);
  font-size: clamp(3.4rem, 10.5vw, 9.5rem);
  font-weight: 500;
  max-width: 9em;
}
.hero__title em { color: var(--blush); }

.hero__line2 {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  margin-top: -0.6em;
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 5.5vw, 4.4rem);
  line-height: 1;
  opacity: 0;
}
.hero__line2 em { color: var(--blush); }

.hero__final {
  position: absolute;
  left: var(--pad);
  bottom: clamp(5.5rem, 16vh, 9rem);
}
.hero__place { color: var(--bone-55); margin-bottom: 1.1rem; }

.hero__badge {
  position: absolute;
  right: clamp(1.25rem, 5vw, 4.5rem);
  bottom: clamp(4.5rem, 12vh, 7rem);
  width: clamp(105px, 15vw, 180px);
  height: clamp(105px, 15vw, 180px);
  color: var(--bone);
}
.hero__badge svg { width: 100%; height: 100%; overflow: visible; will-change: transform; }
.hero__badge-text {
  fill: currentColor;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 4px;
}

@media (max-width: 540px) {
  .hero__badge { display: none; }
}

.hero__scrollhint {
  position: absolute;
  left: var(--pad);
  bottom: 1.4rem;
  color: var(--bone-55);
}

.hero-loader {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  height: 2px;
  background: var(--bone-14);
}
.hero-loader__bar {
  display: block;
  height: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
}

/* ==========================================================================
   02 · PHILOSOPHY
   ========================================================================== */
.philosophy {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  padding: calc(var(--nav-h) + 3rem) var(--pad) clamp(3rem, 8vh, 6rem);
}

.philosophy__media { align-self: end; }

.arch {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4.2;
  border-radius: 50vw 50vw 0 0;
  background: var(--blush);
}
.arch img {
  position: absolute;
  top: -12%;
  left: 0;
  width: 100%;
  height: 124%;
  object-fit: cover;
  will-change: transform;
}

.philosophy__caption { display: block; margin-top: 1.1rem; }

.manifesto {
  font-size: clamp(2.5rem, 5.2vw, 5rem);
  max-width: 11em;
  margin-bottom: clamp(1.75rem, 4vh, 3rem);
}

.philosophy__sig {
  margin-top: clamp(1.5rem, 3vh, 2.5rem);
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--gold);
}

@media (max-width: 880px) {
  .philosophy { grid-template-columns: 1fr; }
  .philosophy__media { order: 2; max-width: 26rem; }
}

/* ==========================================================================
   03 · SERVICES & PRICES
   ========================================================================== */
.services {
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: clamp(2.5rem, 6vw, 7rem);
  align-content: center;
  padding: clamp(5rem, 14vh, 9rem) var(--pad);
}

.services__intro { max-width: 22em; margin-top: 1.5rem; color: var(--ink-55); }

.price-list { margin-top: 0.5rem; }

.price-row {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.4rem, 3vh, 2.2rem) 0;
}
.price-row--end { padding: 0; }

.price-row__rule {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--ink-14);
  transform-origin: left center;
}

.price-row__name h3 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  font-weight: 500;
}
.price-row__name p {
  margin-top: 0.3rem;
  font-size: 0.95rem;
  color: var(--ink-55);
  max-width: 30em;
}

.price-row__price {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
  color: var(--gold);
  white-space: nowrap;
}

.services__note {
  margin-top: 1.4rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink-55);
}
.services__note + .services__note { margin-top: 0.4rem; }

@media (max-width: 880px) {
  .services { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ==========================================================================
   04 · THE RITUAL — pinned crossfade
   ========================================================================== */
.ritual {
  background: var(--ink);
  color: var(--bone);
  overflow: hidden;
}

.ritual__inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 1rem) var(--pad) 4rem;
}

.ritual__stage { position: relative; flex: 0 0 auto; }

.ritual__step { max-width: 38rem; padding-top: clamp(2rem, 6vh, 4rem); }

/* JS-driven layout: steps stack and crossfade */
.js .ritual__stage { min-height: clamp(20rem, 52vh, 30rem); }
.js .ritual__step {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.ritual__num {
  display: block;
  position: absolute;
  top: -0.05em;
  right: -0.1em;
  z-index: 0;
  font-family: var(--serif);
  font-size: clamp(9rem, 24vw, 19rem);
  line-height: 0.8;
  color: rgba(217, 166, 160, 0.16);
  pointer-events: none;
  will-change: transform;
}

.ritual__step h3 {
  position: relative;
  z-index: 1;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 500;
  margin-bottom: 1.2rem;
}

.ritual__step p {
  position: relative;
  z-index: 1;
  max-width: 30em;
  color: var(--bone-55);
}

.ritual__progress {
  margin-top: clamp(2.5rem, 7vh, 4.5rem);
  height: 1px;
  background: var(--bone-14);
}
.ritual__bar {
  display: block;
  height: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
}

/* static fallback (no JS, or reduced motion) */
.reduced .ritual__step { position: static; width: auto; opacity: 1 !important; visibility: visible !important; }
.reduced .ritual__stage { min-height: 0; }
.reduced .ritual__num { font-size: clamp(4rem, 10vw, 8rem); position: static; display: inline-block; }

/* ==========================================================================
   05 · STYLISTS
   ========================================================================== */
.stylists {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(5rem, 14vh, 9rem) var(--pad);
}

.stylists__head { margin-bottom: clamp(2.5rem, 7vh, 5rem); }

.stylists__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

/* editorial asymmetry */
.stylist:nth-child(2) { margin-top: clamp(2rem, 8vh, 6rem); }
.stylist:nth-child(3) { margin-top: clamp(1rem, 4vh, 3rem); }

.duotone {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--blush);
  margin-bottom: 1.4rem;
}
.duotone img {
  position: absolute;
  top: -6%;
  left: 0;
  width: 100%;
  height: 112%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(1.12);
  mix-blend-mode: multiply;
  will-change: transform;
}
.duotone--a img { object-position: 18% 30%; }
.duotone--b img { object-position: 52% 62%; }
.duotone--c img { object-position: 84% 42%; }

.stylist__role { display: block; margin-bottom: 0.6rem; }

.stylist h3 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: 500;
  margin-bottom: 0.7rem;
}

.stylist p:not(.micro) { font-size: 0.98rem; color: var(--ink-55); max-width: 26em; }

@media (max-width: 880px) {
  .stylists__grid { grid-template-columns: 1fr; gap: 3rem; }
  .stylist:nth-child(2), .stylist:nth-child(3) { margin-top: 0; }
  .duotone { max-width: 24rem; }
}

/* ==========================================================================
   06 · KIND WORDS — pinned quotes
   ========================================================================== */
.quotes {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 1rem) var(--pad) 4rem;
  overflow: hidden;
}

.quotes .label { align-self: flex-start; }

.quotes__stage { position: relative; }

.quote { max-width: 46rem; padding-top: clamp(1.5rem, 4vh, 3rem); }

.js .quotes__stage { min-height: clamp(18rem, 46vh, 26rem); }
.js .quote {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.7rem, 3.8vw, 3.4rem);
  font-weight: 400;
  line-height: 1.18;
}

.quote cite {
  display: block;
  margin-top: 1.6rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold);
}

.reduced .quote { position: static; width: auto; opacity: 1 !important; visibility: visible !important; }
.reduced .quotes__stage { min-height: 0; }

/* ==========================================================================
   07 · THE STUDIO — full-bleed parallax
   ========================================================================== */
.studio {
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
  color: var(--bone);
}

.studio__media {
  position: absolute;
  inset: 0;
}
.studio__media img {
  position: absolute;
  top: -12%;
  left: 0;
  width: 100%;
  height: 124%;
  object-fit: cover;
  will-change: transform;
}
.studio__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(8deg, rgba(22, 21, 26, 0.72) 0%, rgba(22, 21, 26, 0.25) 45%, rgba(22, 21, 26, 0.05) 75%);
}

.studio__caption {
  position: relative;
  z-index: 1;
  padding: var(--pad);
  max-width: 44rem;
}
.studio__caption p:not(.micro) { color: var(--bone-55); max-width: 34em; margin-top: 1.5rem; }

/* ==========================================================================
   08 · BOOK — CTA / contact / hours / areas
   ========================================================================== */
.book {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(2.5rem, 6vh, 4.5rem);
  background: var(--ink);
  color: var(--bone);
  padding: clamp(5rem, 14vh, 8rem) var(--pad) 2rem;
  border-top: 1px solid var(--bone-14);
}

.book__cta h2 { max-width: 13em; }
.book__cta h2 em { color: var(--blush); }

.book__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  margin-top: clamp(1.75rem, 4vh, 3rem);
}
.book__aside {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--bone-55);
}

.book__rule {
  display: block;
  height: 1px;
  background: var(--bone-14);
  transform-origin: left center;
}

.book__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
}

.book__col .label { margin-bottom: 1rem; }
.book__col p { color: var(--bone-55); font-size: 0.98rem; }
.book__soft { display: inline-block; margin-top: 0.8rem; font-style: italic; font-family: var(--serif); }

.book__legal {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--bone-14);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-55);
}

@media (max-width: 720px) {
  .book__grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- SplitText line masks ---------- */
.manifesto__line { will-change: transform; }

/* ---------- small screens ---------- */
@media (max-width: 420px) {
  :root { --pad: 1.1rem; }
  .hero__title { font-size: 3rem; }
  .price-row { flex-direction: column; gap: 0.4rem; }
}
