:root {
  --paper: #fefff4;
  --ink: #2b271b;
  --muted: #605d51;
  --peach: #f9c5b4;
  --rose: #e9c5d2;
  --gold: #665011;
  --line: rgba(43, 39, 27, .23);
  --max: 980px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Montserrat, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
h1, h2, h3 { font-family: "EB Garamond", Georgia, serif; font-weight: 400; line-height: .93; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 86px;
  pointer-events: none;
}
.brand {
  pointer-events: auto;
  position: absolute;
  top: 10px;
  left: max(24px, calc(50% - 490px));
  width: 142px;
  height: 61px;
  transform-origin: top left;
  transition: transform 420ms ease, opacity 420ms ease;
}
.brand img { width: 142px; height: 61px; object-fit: cover; }
.site-header.is-scrolled .brand { opacity: .86; transform: scale(.88) translate3d(0, -4px, 0); }
.site-nav {
  pointer-events: auto;
  position: absolute;
  top: 30px;
  right: max(24px, calc(50% - 490px));
  display: flex;
  gap: clamp(22px, 3vw, 48px);
  color: var(--paper);
  font-size: 16px;
  font-weight: 300;
  text-shadow: 0 1px 12px rgba(0,0,0,.35);
}
.site-nav a { position: relative; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 260ms ease; }
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); }
.site-header.is-scrolled .site-nav { color: var(--ink); text-shadow: none; }

.hero {
  position: relative;
  min-height: 681px;
  margin-top: -86px;
  padding-top: 86px;
  overflow: hidden;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.slides, .slide { position: absolute; inset: 0; }
.slide { margin: 0; opacity: 0; transition: opacity 900ms cubic-bezier(.445,.05,.55,.95); }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(43,39,27,.22); z-index: 1; }
.hero-copy { position: relative; z-index: 2; width: min(960px, calc(100% - 36px)); text-align: center; color: var(--ink); text-shadow: 0 2px 24px rgba(254,255,244,.25); }
.hero h1 { margin: 0 0 16px; font-size: clamp(56px, 8vw, 102px); letter-spacing: -.035em; }
.hero p { margin: 0; font-size: clamp(25px, 3vw, 40px); color: var(--paper); text-shadow: 0 2px 22px rgba(0,0,0,.35); }
.slide-btn { position: absolute; z-index: 3; top: 52%; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(254,255,244,.88); color: var(--ink); font-size: 34px; line-height: 1; display: grid; place-items: center; cursor: pointer; transition: transform 220ms ease, background 220ms ease; }
.slide-btn:hover { transform: scale(1.06); background: var(--paper); }
.slide-prev { left: 28px; }
.slide-next { right: 28px; }
.slide-dots { position: absolute; z-index: 3; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; gap: 10px; }
.slide-dots button { width: 10px; height: 10px; padding: 0; border: 1px solid var(--paper); border-radius: 50%; background: transparent; cursor: pointer; }
.slide-dots button.is-active { background: var(--paper); }

.about { background: var(--paper); padding: 86px 0 96px; text-align: center; }
.about-inner { max-width: 760px; }
.about h2, .section-title { margin: 0 0 38px; font-size: clamp(46px, 5.2vw, 70px); letter-spacing: -.03em; }
.about p { margin: 0 auto 26px; font-size: clamp(19px, 2vw, 25px); font-weight: 300; }
.about strong { font-weight: 600; letter-spacing: .02em; }

.products { background: var(--paper); }
.section-title { text-align: center; padding-top: 70px; }
.category-hero { position: relative; min-height: 620px; overflow: hidden; display: grid; place-items: center; isolation: isolate; }
.category-hair { min-height: 700px; }
.category-bg { position: absolute; inset: -6% 0; background-size: cover; background-position: center; transform: translate3d(0, var(--parallax-y, 0px), 0); will-change: transform; z-index: -2; }
.category-bg.tiled { background-size: auto; background-repeat: repeat; }
.category-hero::after { content: ""; position: absolute; inset: 0; background: rgba(43,39,27,.18); z-index: -1; }
.category-copy { width: min(820px, calc(100% - 40px)); text-align: center; color: var(--paper); text-shadow: 0 2px 22px rgba(0,0,0,.25); }
.rule { width: 100%; height: 1px; background: rgba(254,255,244,.92); margin: 0 auto 32px; }
.category-copy h3 { margin: 0; font-size: clamp(68px, 8vw, 102px); letter-spacing: -.02em; color: var(--paper); }
.category-copy p { margin: 4px 0 0; font-size: clamp(20px, 2.2vw, 28px); color: var(--ink); font-weight: 300; text-shadow: none; }

.gallery { background: var(--paper); padding: 78px 0 72px; overflow: hidden; }
.gallery-grid { width: min(980px, calc(100% - 40px)); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: #f6f1e7; transition: opacity 900ms cubic-bezier(.445,.05,.55,.95) var(--delay,0ms), transform 1100ms cubic-bezier(.645,.045,.355,1) var(--delay,0ms), filter 320ms ease; }
.gallery-grid img:nth-child(4) { object-fit: contain; padding: 16px; }
.gallery-grid img.is-visible:hover { filter: brightness(1.06) saturate(1.04); transform: translate3d(0,0,0) scale(1.04); }

.testimonial { min-height: 520px; display: grid; place-items: center; padding: 74px 20px 88px; background: var(--paper); text-align: center; }
.testimonial blockquote { margin: 0 auto; max-width: 820px; color: var(--paper); }
.quote-mark { display: block; color: var(--gold); font-family: "EB Garamond", Georgia, serif; font-size: 120px; line-height: .5; margin-bottom: 30px; }
.testimonial p { margin: 0 0 18px; font-family: "EB Garamond", Georgia, serif; font-size: clamp(30px, 3.2vw, 38px); line-height: 1.18; color: var(--paper); background: var(--rose); padding: 36px 42px; }
.testimonial cite { font-style: normal; font-size: 18px; color: var(--muted); }

.contact { background: var(--paper); padding: 84px 0 98px; border-top: 1px solid var(--line); }
.contact-inner { max-width: 760px; text-align: center; }
.contact h2 { margin: 0 0 16px; font-size: clamp(46px, 5.2vw, 70px); letter-spacing: -.03em; }
.contact-inner > p { margin: 0 0 42px; font-size: 18px; color: var(--muted); }
.form-note { margin-top: -24px !important; margin-bottom: 34px !important; font-size: 14px !important; }
.contact-form { display: grid; gap: 16px; text-align: left; }
.contact-form label { display: grid; gap: 7px; font-size: 14px; color: var(--ink); }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid #bdb7a9; background: transparent; color: var(--ink); min-height: 42px; padding: 10px 12px; font: inherit; opacity: 1; }
.contact-form button { justify-self: center; min-width: 126px; min-height: 42px; margin-top: 8px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font: inherit; opacity: .75; }

.site-footer { background: #2b271b; color: var(--paper); padding: 78px 0 64px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: start; }
.site-footer h2 { margin: 0 0 28px; font-size: clamp(44px, 5vw, 70px); letter-spacing: -.03em; }
.footer-label, .copyright, address { font-style: normal; font-size: 16px; color: rgba(254,255,244,.78); }
address p, .copyright { margin: 0 0 12px; }

.motion-reveal { --reveal-x: 0px; --reveal-y: 28px; --delay: 0ms; opacity: 0; transform: translate3d(var(--reveal-x), var(--reveal-y), 0); transition: opacity 900ms cubic-bezier(.445,.05,.55,.95) var(--delay), transform 1100ms cubic-bezier(.645,.045,.355,1) var(--delay), clip-path 1100ms cubic-bezier(.645,.045,.355,1) var(--delay); will-change: opacity, transform, clip-path; }
.motion-fade { --reveal-y: 0px; }
.motion-reveal-mask { clip-path: inset(100% 0 0 0); }
.motion-reveal.is-visible { opacity: 1; transform: translate3d(0,0,0); clip-path: inset(0 0 0 0); }

@media (max-width: 900px) {
  .site-header { height: 96px; }
  .brand { left: 18px; width: 118px; height: 50px; }
  .brand img { width: 118px; height: 50px; }
  .site-nav { top: 58px; left: 18px; right: 18px; justify-content: center; gap: 28px; color: var(--ink); text-shadow: none; font-size: 14px; }
  .hero { min-height: 520px; margin-top: -96px; padding-top: 96px; background: var(--paper); }
  .slides, .slide-btn, .slide-dots { display: none; }
  .hero::after { display: none; }
  .hero-copy { color: var(--ink); text-shadow: none; padding: 0 18px; }
  .hero p { color: var(--ink); text-shadow: none; }
  .about { padding: 70px 0; }
  .category-hero, .category-hair { min-height: 520px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 560px) {
  .wrap { width: min(100% - 28px, var(--max)); }
  .site-nav { gap: 18px; font-size: 12px; }
  .hero { min-height: 480px; }
  .hero h1 { font-size: 50px; }
  .hero p { font-size: 22px; }
  .category-copy h3 { font-size: 64px; }
  .gallery-grid { grid-template-columns: 1fr; width: min(360px, calc(100% - 28px)); }
  .testimonial p { padding: 28px 20px; }
}

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