/* ==========================================================================
   GM Studio
   Colours sampled from the brand's logo artwork: neutral grey card stock,
   soft window shadows, near-black ink.
   ========================================================================== */

:root {
  --paper: #cbcbcb;
  --paper-light: #d4d4d4;
  --paper-dark: #c2c2c2;
  --ink: #181818;
  --ink-soft: #3c3c3c;
  --ink-faint: #5c5c5c;
  --line: rgba(24, 24, 24, 0.18);

  --sans: "Montserrat", "Proxima Nova", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 56px);
  --max: 1160px;
  --section: clamp(72px, 10vw, 128px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper-light);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Fine card-stock grain over everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
figure, blockquote { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }

:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--paper-light); padding: 10px 16px;
}
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 680px; }
.center { text-align: center; }

/* ---------- Shared bits ---------- */

.title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.title-left { text-align: left; margin-bottom: 28px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 32px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--paper-light); }
.btn-small { min-height: 36px; padding: 0 20px; font-size: 10px; }

.text-link {
  font-size: 12px;
  letter-spacing: 0.16em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  transition: border-color .3s var(--ease);
}
.text-link:hover { border-color: var(--ink); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background-color .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  background: rgba(212, 212, 212, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 68px;
}

.nav { display: flex; gap: 32px; }
.nav a,
.mobile-menu a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color .3s var(--ease);
}
.nav a:hover { color: var(--ink); }

/* Small monogram fades in once the big hero logo has scrolled away */
.header-mark {
  grid-column: 2;
  display: block;
  width: 38px;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.site-header.is-solid .header-mark { opacity: 1; transform: none; pointer-events: auto; }

.header-right { grid-column: 3; justify-self: end; }

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: -8px;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--ink);
}
.bars,
.bars::before {
  display: block;
  width: 20px;
  height: 1px;
  background: currentColor;
  margin: 0 auto;
  transition: transform .3s var(--ease);
}
.bars { position: relative; transform: translateY(-3px); }
.bars::before { content: ""; position: absolute; top: 6px; }
.menu-toggle[aria-expanded="true"] .bars { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(-6px) rotate(-90deg); }

.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 28px 0 36px;
  background: var(--paper-light);
  border-bottom: 1px solid var(--line);
}
.mobile-menu[hidden] { display: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--paper-dark) url("../img/hero-paper.jpg?v=3") center / cover no-repeat;
}
/* fade the paper into the page colour so the hero has no hard edge */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 120px;
  background: linear-gradient(transparent, var(--paper-light));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 96px var(--gutter) 72px;
}

.hero-logo {
  width: clamp(200px, 27vw, 320px);
  filter: drop-shadow(1px 2px 2px rgba(0, 0, 0, 0.18));
  animation: rise 1.4s var(--ease) both;
}

.hero-sub {
  margin: clamp(36px, 5vw, 52px) 0 32px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-soft);
  animation: rise 1.4s .2s var(--ease) both;
}
.hero-inner .btn { animation: rise 1.4s .35s var(--ease) both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.hero-scroll {
  z-index: 1;
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 1px;
  height: 44px;
  background: linear-gradient(var(--ink-faint), transparent);
  transform: translateX(-50%);
}

/* ---------- Sections ---------- */

.section { padding: var(--section) 0; }
.section-tint { background: var(--paper); }

/* ---------- Treatments ---------- */

.treatments {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 40px);
}
.treatment { text-align: center; }

.arch {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 999px 999px 0 0;
  background: var(--paper);
  margin-bottom: 22px;
}
.arch img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.treatment:hover .arch img { transform: scale(1.03); }

.treatment h3 {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.treatment p { color: var(--ink-faint); font-size: 13px; }

/* ---------- Prices ---------- */

.tabs {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 4vw, 40px);
  margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
.tabs button {
  appearance: none;
  border: 0;
  background: none;
  padding: 0 0 14px;
  margin-bottom: -1px;
  border-bottom: 1px solid transparent;
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  cursor: pointer;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }

.panel { animation: fade .5s var(--ease); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.price-list small { display: block; max-width: 44ch; color: var(--ink-faint); font-size: 11px; letter-spacing: 0.06em; line-height: 1.6; margin-top: 2px; }
.price-list li > span:last-child { white-space: nowrap; }

.note {
  margin: 28px 0 36px;
  text-align: center;
  font-size: 12px;
  color: var(--ink-soft);
}

/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 36px;
}
.gallery figure { aspect-ratio: 1; overflow: hidden; background: var(--paper); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gallery figure:hover img { transform: scale(1.03); }

/* ---------- Reviews ---------- */

.stars { letter-spacing: 0.3em; font-size: 12px; margin-bottom: 8px; }
.rating {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 36px;
}

.quotes { display: grid; }
.quote {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity .8s var(--ease);
}
.quote.is-active { opacity: 1; }
.quote p {
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0.01em;
  margin-bottom: 14px;
}
.quote cite {
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- Visit ---------- */

.visit {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

address { font-style: normal; margin-bottom: 28px; }

.hours { list-style: none; margin: 0 0 14px; padding: 0; max-width: 300px; }
.hours li {
  display: block;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.hours li.is-today { color: var(--ink); font-weight: 500; }

.status { font-size: 12px; color: var(--ink-faint); margin-bottom: 32px; min-height: 1.7em; }
.status.is-open { color: var(--ink); font-weight: 500; }

.visit-links { display: flex; align-items: center; gap: 28px; }

.map {
  position: relative;
  aspect-ratio: 4 / 3.4;
  overflow: hidden;
  background: var(--paper);
}
.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) contrast(0.9) brightness(1.04);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.footer-mark { width: 52px; }
.footer-links { display: flex; gap: 28px; }
.footer-links a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.footer-links a:hover { color: var(--ink); }
.copy { font-size: 11px; color: var(--ink-faint); letter-spacing: 0.1em; }

/* ---------- Reveal ---------- */

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  .header-inner { grid-template-columns: 1fr auto 1fr; }
  .header-mark { width: 34px; }

  .treatments { grid-template-columns: 1fr 1fr; gap: 36px 16px; }
  .treatment h3 { font-size: 10px; letter-spacing: 0.16em; }
  .treatment p { font-size: 12px; }

  .gallery { grid-template-columns: 1fr 1fr; }

  .visit { grid-template-columns: 1fr; }
  .hours { max-width: none; }
}

@media (max-width: 560px) {
  .treatments { gap: 28px 12px; }
  .arch { margin-bottom: 14px; }
  .treatment h3 { font-size: 10px; letter-spacing: 0.16em; }
  .tabs button { font-size: 10px; letter-spacing: 0.16em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-logo, .hero-sub, .hero-inner .btn { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .quote { transition: none; }
}
