/* =========================================================================
   Triple Moon Tattoo  ·  Clean Lines. Dark Magic.
   Dark gothic fine-line tattoo brand. Palette + type taken from the brand guide.
   Single stylesheet, design-token driven. No build step.
   ========================================================================= */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Brand palette (from the style guide) */
  --ink:        #0d0d0d;
  --charcoal:   #151515;
  --graphite:   #2a2a2a;
  --bone:       #f4f1ea;
  --moon:       #c9c6be;
  --mauve:      #a37c88;
  --rose:       #c79ba5;
  --plum:       #2b1724;

  /* Semantic roles */
  --bg:         var(--ink);
  --surface:    #141414;
  --surface-2:  #1b1b1b;
  --text:       var(--bone);
  --text-muted: #b9b6ae;          /* lighter than moon for AA on dark surfaces */
  --accent:     var(--rose);
  --accent-2:   var(--mauve);
  --line:       rgba(244, 241, 234, 0.12);
  --line-soft:  rgba(244, 241, 234, 0.07);

  /* Type */
  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-heading: "Cinzel", "Cormorant Garamond", Georgia, serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Fluid type scale */
  --fs-hero:  clamp(3rem, 1.8rem + 6vw, 5.5rem);
  --fs-h1:    clamp(2.4rem, 1.6rem + 3.6vw, 4rem);
  --fs-h2:    clamp(1.9rem, 1.4rem + 2.4vw, 3rem);
  --fs-h3:    clamp(1.3rem, 1.1rem + 1vw, 1.7rem);
  --fs-lead:  clamp(1.08rem, 1rem + 0.5vw, 1.3rem);
  --fs-body:  1rem;
  --fs-small: 0.875rem;
  --fs-label: 0.78rem;

  /* Spacing + rhythm */
  --space-section: clamp(4.5rem, 3rem + 8vw, 9rem);
  --container:   1200px;
  --container-narrow: 760px;
  --radius:      10px;
  --radius-lg:   14px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur:      0.6s;

  /* Z-index scale */
  --z-header: 100;
  --z-menu:   200;
  --z-lightbox: 300;
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip; /* clip horizontal bleed without creating a scroll container */
  /* atmospheric depth: faint plum glow + vignette over ink */
  background-image:
    radial-gradient(1200px 700px at 50% -10%, rgba(43, 23, 36, 0.55), transparent 60%),
    radial-gradient(900px 600px at 100% 100%, rgba(163, 124, 136, 0.06), transparent 55%);
  background-attachment: fixed;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--accent); text-decoration: none; transition: color 0.25s ease; }
a:hover { color: var(--bone); }

button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; padding: 0; }

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

::selection { background: var(--mauve); color: var(--ink); }

/* skip link */
.skip-link {
  position: absolute; left: 50%; top: -60px; transform: translateX(-50%);
  background: var(--bone); color: var(--ink); padding: 0.6rem 1.2rem;
  border-radius: 0 0 var(--radius) var(--radius); z-index: 500; font-weight: 600;
  transition: top 0.25s ease;
}
.skip-link:focus { top: 0; color: var(--ink); }

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; color: var(--bone); }
.display { font-size: var(--fs-hero); letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); text-wrap: balance; }
h2 { font-size: var(--fs-h2); text-wrap: balance; }
h3 { font-size: var(--fs-h3); }
p { text-wrap: pretty; }

.script {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--rose);
}

.kicker {
  font-family: var(--font-heading);
  font-size: var(--fs-label);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--mauve);
  display: inline-block;
}

.lead { font-size: var(--fs-lead); color: var(--moon); line-height: 1.65; }
.muted { color: var(--text-muted); }
.measure { max-width: 62ch; }

/* ---------- 4. Layout primitives ---------- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2.5rem, var(--container-narrow)); margin-inline: auto; }
.section { padding-block: var(--space-section); position: relative; }
.section--tight { padding-block: clamp(3rem, 2rem + 4vw, 5rem); }
.center { text-align: center; }
.stack > * + * { margin-top: 1.1rem; }

/* ornamental star divider (echoes the logo's four-point sparkles) */
.divider { display: flex; align-items: center; gap: 1.25rem; color: var(--mauve); opacity: 0.8; }
.divider::before, .divider::after {
  content: ""; height: 1px; flex: 1;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.divider svg { width: 18px; height: 18px; flex: none; }

.star { fill: currentColor; }

/* logo art is white-on-black; screen blend drops the black so it sits on any dark bg */
.hero__logo, .brand img, .footer-brand img, .contact-deco img { mix-blend-mode: screen; }

/* ---------- 5. Buttons ---------- */
.btn {
  --btn-bd: var(--bone);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 0.82rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500;
  padding: 0.95rem 1.9rem;
  border: 1px solid var(--btn-bd);
  color: var(--bone);
  background: transparent;
  border-radius: 2px;
  position: relative; overflow: hidden;
  transition: color 0.4s var(--ease-out), border-color 0.4s ease;
}
.btn::after {
  content: ""; position: absolute; inset: 0; background: var(--bone);
  transform: scaleX(0); transform-origin: left; z-index: -1;
  transition: transform 0.5s var(--ease-out);
}
.btn:hover, .btn:focus-visible { color: var(--ink); }
.btn:hover::after, .btn:focus-visible::after { transform: scaleX(1); }
.btn--solid { background: var(--bone); color: var(--ink); --btn-bd: var(--bone); }
.btn--solid::after { background: var(--rose); }
.btn--solid:hover, .btn--solid:focus-visible { color: var(--ink); border-color: var(--rose); }
.btn--ghost { --btn-bd: var(--line); color: var(--moon); }
.btn--ghost::after { background: var(--mauve); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--ink); border-color: var(--mauve); }
.btn--sm { padding: 0.7rem 1.3rem; font-size: 0.74rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- 6. Header / nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem clamp(1.25rem, 5vw, 3rem);
  transition: background-color 0.4s ease, border-color 0.4s ease, padding 0.4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
  padding-block: 0.7rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--bone); }
.brand:hover { color: var(--bone); }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand-name {
  font-family: var(--font-heading); font-weight: 600;
  font-size: 1.02rem; letter-spacing: 0.22em; text-transform: uppercase;
  line-height: 1;
}
.brand-name small {
  display: block; font-family: var(--font-display); font-style: italic;
  font-size: 0.66rem; letter-spacing: 0.04em; text-transform: none;
  color: var(--mauve); margin-top: 0.25rem; font-weight: 500;
}
/* keep the longer wordmark on one line, clear of the menu button, on phones */
@media (max-width: 560px) {
  .brand-name { font-size: 0.82rem; letter-spacing: 0.11em; }
  .brand-name small { font-size: 0.58rem; letter-spacing: 0.02em; }
  .brand img { width: 32px; height: 32px; }
}

.nav { display: flex; align-items: center; gap: clamp(1.2rem, 2.5vw, 2.4rem); }
.nav a {
  font-family: var(--font-heading); font-size: 0.76rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--moon); position: relative; padding-block: 0.3rem;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--rose); transition: width 0.35s var(--ease-out);
}
.nav a:hover, .nav a:focus-visible, .nav a[aria-current="page"] { color: var(--bone); }
.nav a:hover::after, .nav a:focus-visible::after, .nav a[aria-current="page"]::after { width: 100%; }
.nav .btn { color: var(--bone); }
.nav .btn:hover { color: var(--ink); }

.nav-toggle { display: none; }

/* mobile menu */
.menu-backdrop {
  position: fixed; inset: 0; z-index: var(--z-menu);
  background: rgba(8, 8, 8, 0.97);
  backdrop-filter: blur(6px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.6rem;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s; /* stay focusable: flip visible instantly on open */
}
.menu-backdrop.open { opacity: 1; visibility: visible; transition: opacity 0.4s ease, visibility 0s; }
.menu-backdrop a {
  font-family: var(--font-heading); font-size: 1.4rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--moon);
}
.menu-backdrop a:hover, .menu-backdrop a[aria-current="page"] { color: var(--rose); }
.menu-close {
  position: absolute; top: 1.4rem; right: 1.6rem; width: 44px; height: 44px;
  color: var(--bone); font-size: 1.8rem; line-height: 1;
  display: grid; place-items: center;
}
.menu-deco { color: var(--mauve); margin-top: 0.5rem; }
.menu-deco svg { width: 22px; height: 22px; }

/* ---------- 7. Hero ---------- */
.hero {
  min-height: 100svh; display: grid; place-items: center; text-align: center;
  padding: clamp(10rem, 28vh, 18rem) 1.25rem clamp(3.5rem, 7vh, 6rem);
  position: relative; overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 38%, rgba(43, 23, 36, 0.7), transparent 70%),
    radial-gradient(120% 80% at 50% 120%, rgba(0,0,0,0.85), transparent 60%);
}
.hero__stars { position: absolute; inset: 0; z-index: 0; opacity: 0.5; }
/* AI atmospheric background image + readability scrim */
.hero__img {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 38% 34%;
}
/* On phones/tablets the portrait crop puts the moon behind the text; shift the
   crop so the title sits over dark sky (the logo still carries the crescent). */
@media (max-width: 900px) { .hero__img { object-position: 72% 50%; } }
.hero__scrim {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(62% 44% at 50% 63%, rgba(8,8,8,0.78) 0%, rgba(8,8,8,0.56) 50%, rgba(8,8,8,0.14) 82%, rgba(8,8,8,0) 100%),
    linear-gradient(180deg, rgba(8,8,8,0.28) 0%, rgba(8,8,8,0.12) 32%, rgba(8,8,8,0.42) 52%, rgba(8,8,8,0.48) 74%, rgba(8,8,8,0.78) 100%);
}
.hero__inner { position: relative; z-index: 2; max-width: 880px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.9rem;
  font-family: var(--font-heading); font-size: 0.72rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--moon); margin-bottom: 1.4rem;
}
.hero__eyebrow svg { width: 14px; height: 14px; color: var(--mauve); }
.hero__mark {
  display: block; height: clamp(58px, 7vw, 86px); width: auto; margin: 0 auto 1rem;
  filter: drop-shadow(0 0 22px rgba(199, 155, 165, 0.28));
}
.hero__title, .hero__tagline, .hero__sub { text-shadow: 0 2px 34px rgba(0,0,0,0.6); }
.hero__logo {
  width: clamp(150px, 26vw, 260px); margin: 0 auto 1.8rem;
  filter: drop-shadow(0 0 40px rgba(199, 155, 165, 0.18));
}
.hero__title {
  font-family: var(--font-heading); font-weight: 600;
  font-size: clamp(2.3rem, 1.4rem + 3.6vw, 3.4rem);
  letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.04;
  color: var(--bone);
}
.hero__tagline {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(1.3rem, 1rem + 1.6vw, 2.1rem);
  color: var(--rose); margin-top: 1.1rem; letter-spacing: 0.02em;
}
.hero__sub { color: var(--moon); margin: 1.6rem auto 2.4rem; max-width: 44ch; }
.hero__cta { justify-content: center; }
.scroll-hint {
  position: absolute; bottom: 1.8rem; left: 50%; transform: translateX(-50%);
  font-family: var(--font-heading); font-size: 0.66rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--text-muted); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
}
.scroll-hint span { width: 1px; height: 38px; background: linear-gradient(var(--mauve), transparent); animation: scrollpulse 2.2s var(--ease-out) infinite; }
@media (max-height: 760px), (max-width: 600px) { .scroll-hint { display: none; } }
@keyframes scrollpulse { 0% { transform: scaleY(0.2); transform-origin: top; opacity: 0; } 40% { opacity: 1; } 100% { transform: scaleY(1); transform-origin: top; opacity: 0; } }

/* ---------- 7b. Sparkles (injected over heroes + page headers) ---------- */
.sparkles { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; will-change: transform; }
.sparkle {
  position: absolute; width: var(--s, 10px); height: var(--s, 10px);
  color: var(--bone); opacity: 0; transform: scale(0.4);
  filter: drop-shadow(0 0 5px rgba(244, 241, 234, 0.45));
  animation: twinkle var(--dur, 4s) var(--ease-out) var(--delay, 0s) infinite;
}
.sparkle svg { display: block; width: 100%; height: 100%; fill: currentColor; }
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.35) rotate(0deg); }
  45% { opacity: var(--peak, 0.85); transform: scale(1) rotate(35deg); }
  70% { opacity: calc(var(--peak, 0.85) * 0.35); transform: scale(0.8) rotate(55deg); }
}
/* slow ambient drift on the home hero image so it breathes */
@media (prefers-reduced-motion: no-preference) {
  .hero__img { animation: kenburns 26s ease-in-out infinite alternate; transform-origin: 42% 38%; }
}
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.09); } }

/* ---------- 7c. Cool features: scroll progress, cursor glow, tile shine ---------- */
.scroll-progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 150; pointer-events: none;
  background: rgba(244, 241, 234, 0.05);
}
.scroll-progress__bar {
  height: 100%; transform: scaleX(0); transform-origin: left; will-change: transform;
  background: linear-gradient(90deg, var(--mauve), var(--rose));
  box-shadow: 0 0 12px rgba(199, 155, 165, 0.6);
}
.cursor-glow {
  position: absolute; top: 0; left: 0; width: 460px; height: 460px;
  margin: -230px 0 0 -230px; border-radius: 50%; z-index: 1; pointer-events: none;
  background: radial-gradient(circle, rgba(199, 155, 165, 0.22), rgba(163, 124, 136, 0.07) 45%, transparent 70%);
  mix-blend-mode: screen; opacity: 0; transition: opacity 0.5s ease; will-change: transform;
}
/* leading specialism card gets a subtle mauve ring */
.cat--feature { box-shadow: inset 0 0 0 1.5px rgba(163, 124, 136, 0.5); }
/* light sweep across image tiles on hover */
.gallery-grid .tile::after, .preview-grid .tile::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(244, 241, 234, 0.16) 50%, transparent 65%);
  transform: translateX(-130%); transition: transform 0.8s var(--ease-out);
}
.gallery-grid .tile:hover::after, .preview-grid .tile:hover::after { transform: translateX(130%); }

/* ---------- 7d. Ambient animated backdrop (behind all content) ---------- */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.ambient__layer { position: absolute; inset: 0; will-change: transform; }
.ambient__orb { position: absolute; border-radius: 50%; filter: blur(72px); mix-blend-mode: screen; will-change: transform; }
.ambient__orb--1 { width: 62vw; height: 62vw; left: -16vw; top: -10vh;
  background: radial-gradient(circle, rgba(43, 23, 36, 0.9), transparent 60%); animation: orb1 44s ease-in-out infinite alternate; }
.ambient__orb--2 { width: 46vw; height: 46vw; right: -16vw; top: 26vh;
  background: radial-gradient(circle, rgba(163, 124, 136, 0.3), transparent 62%); animation: orb2 58s ease-in-out infinite alternate; }
.ambient__orb--3 { width: 54vw; height: 54vw; left: 12vw; bottom: -22vh;
  background: radial-gradient(circle, rgba(199, 155, 165, 0.22), transparent 64%); animation: orb3 50s ease-in-out infinite alternate; }
@keyframes orb1 { from { transform: translate(0, 0) scale(1); } to { transform: translate(9vw, 9vh) scale(1.18); } }
@keyframes orb2 { from { transform: translate(0, 0) scale(1.05); } to { transform: translate(-11vw, 7vh) scale(0.92); } }
@keyframes orb3 { from { transform: translate(0, 0) scale(1); } to { transform: translate(8vw, -12vh) scale(1.16); } }
.ambient__dust { position: absolute; inset: 0; will-change: transform; }
.ambient__dust span {
  position: absolute; width: var(--s, 2.5px); height: var(--s, 2.5px); border-radius: 50%;
  background: currentColor; color: var(--moon); opacity: 0; box-shadow: 0 0 6px currentColor;
  animation: dustfloat var(--dur, 14s) linear var(--delay, 0s) infinite;
}
@keyframes dustfloat {
  0% { opacity: 0; transform: translateY(34px); }
  14% { opacity: var(--peak, 0.6); }
  86% { opacity: var(--peak, 0.6); }
  100% { opacity: 0; transform: translateY(-64px); }
}

/* ---------- 8. Intro / generic content ---------- */
.intro-grid {
  display: grid; gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: 1fr; align-items: center;
}
@media (min-width: 880px) { .intro-grid { grid-template-columns: 1.05fr 0.95fr; } }
.section-head { max-width: 60ch; }
.section-head.center { margin-inline: auto; }
.section-head .kicker { margin-bottom: 1rem; }
.section-head h2 + p { margin-top: 1.1rem; }

/* framed image w/ ornamental corners feel */
.framed { position: relative; border: 1px solid var(--line); padding: 0.7rem; background: var(--surface); }
.framed img { width: 100%; }
.framed::before {
  content: ""; position: absolute; inset: 0.7rem; border: 1px solid var(--line-soft); pointer-events: none;
}

/* ---------- 9. Category cards ---------- */
.cats { display: grid; gap: 1px; background: var(--line-soft);
  grid-template-columns: repeat(6, 1fr); /* even rows for 6 cards (no bare cells) */
  border: 1px solid var(--line-soft); }
@media (max-width: 1000px) { .cats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .cats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px)  { .cats { grid-template-columns: 1fr; } }
.cat {
  position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--charcoal);
  display: flex; align-items: flex-end; isolation: isolate;
}
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.15) brightness(0.7); transition: transform 0.8s var(--ease-out), filter 0.6s ease; z-index: -1; }
.cat::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(transparent 40%, rgba(8,8,8,0.92)); }
.cat:hover img, .cat:focus-within img { transform: scale(1.07); filter: grayscale(0) brightness(0.85); }
.cat__label { padding: 1.3rem; width: 100%; }
.cat__label h3 { font-family: var(--font-heading); font-size: 0.95rem; letter-spacing: 0.14em; text-transform: uppercase; }
.cat__label p { color: var(--text-muted); font-size: var(--fs-small); margin-top: 0.3rem; }
.cat__label .go { color: var(--rose); font-size: 0.78rem; letter-spacing: 0.1em; margin-top: 0.6rem; display: inline-flex; gap: 0.4rem; opacity: 0; transform: translateX(-6px); transition: 0.4s var(--ease-out); }
.cat:hover .go, .cat:focus-within .go { opacity: 1; transform: none; }
.cat__link { position: absolute; inset: 0; z-index: 1; text-indent: -9999px; }
.cat__badge {
  position: absolute; top: 0.9rem; left: 0.9rem; z-index: 2; pointer-events: none;
  font-family: var(--font-heading); font-size: 0.6rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--bone);
  background: rgba(13, 13, 13, 0.6); border: 1px solid var(--mauve);
  padding: 0.35rem 0.7rem; border-radius: 2px;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}

/* ---------- 10. Gallery preview / strips ---------- */
.preview-grid {
  display: grid; gap: 0.8rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr));
}
.preview-grid .tile { aspect-ratio: 4 / 5; }

/* shared tile look */
.tile {
  position: relative; overflow: hidden; background: var(--charcoal);
  border: 1px solid var(--line-soft); border-radius: 4px;
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out), filter 0.5s ease; }
.tile:hover img { transform: scale(1.06); }

/* ---------- 11. Instagram strip ---------- */
.ig { background: var(--surface); border-block: 1px solid var(--line-soft); }
.ig__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; }
.ig__handle { font-family: var(--font-heading); letter-spacing: 0.1em; }
.ig__rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(150px, 38vw, 230px);
  gap: 0.8rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 1rem; scrollbar-width: thin; scrollbar-color: var(--graphite) transparent;
}
.ig__rail .tile { scroll-snap-align: start; aspect-ratio: 1 / 1; }
.ig__rail .tile::after {
  content: ""; position: absolute; inset: 0; background: rgba(13,13,13,0.15);
  opacity: 0; transition: opacity 0.4s ease;
  background-image: radial-gradient(circle at center, rgba(199,155,165,0.25), transparent 70%);
}
.ig__rail .tile:hover::after { opacity: 1; }
.ig__rail::-webkit-scrollbar { height: 6px; }
.ig__rail::-webkit-scrollbar-thumb { background: var(--graphite); border-radius: 4px; }

/* ---------- 12. Testimonial ---------- */
.quote { text-align: center; max-width: 760px; margin-inline: auto; }
.quote blockquote {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(1.5rem, 1.1rem + 2vw, 2.4rem); line-height: 1.4; color: var(--bone);
}
.quote cite { display: block; margin-top: 1.4rem; font-family: var(--font-heading);
  font-style: normal; font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mauve); }
.quote .marks { color: var(--mauve); font-size: 3rem; line-height: 0.5; font-family: var(--font-display); }

/* ---------- 13. CTA band ---------- */
.cta-band { text-align: center; position: relative; overflow: hidden; }
.cta-band__inner { position: relative; z-index: 1; max-width: 720px; margin-inline: auto; }
.cta-band .display { margin-bottom: 1.4rem; }

/* ---------- 14. Gallery page ---------- */
/* atmospheric image header, shared by every interior page */
.page-hero {
  position: relative; overflow: hidden; text-align: center; isolation: isolate;
  padding: clamp(9rem, 7rem + 9vh, 12.5rem) 0 clamp(2.5rem, 5vh, 3.75rem);
  background-image:
    radial-gradient(75% 70% at 50% 44%, rgba(8,8,8,0.72), rgba(8,8,8,0.5) 52%, rgba(8,8,8,0.15) 82%, rgba(8,8,8,0) 100%),
    linear-gradient(180deg, rgba(10,10,10,0.5), rgba(10,10,10,0.4) 42%, rgba(13,13,13,0.97)),
    url(../assets/hero/hero-bg.jpg);
  background-size: cover; background-position: center 20%; background-repeat: no-repeat;
  border-bottom: 1px solid var(--line-soft);
}
.page-hero > .container { position: relative; z-index: 2; }
.page-hero h1, .page-hero .lead, .page-hero .kicker { text-shadow: 0 2px 24px rgba(0, 0, 0, 0.7); }
.page-hero .kicker { margin-bottom: 1rem; }
.page-hero p { margin: 1.1rem auto 0; }

.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin: 2.5rem 0 2.8rem; }
.filter {
  font-family: var(--font-heading); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--moon); padding: 0.55rem 1.1rem; border: 1px solid var(--line); border-radius: 2px;
  transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}
.filter:hover { color: var(--bone); border-color: var(--mauve); }
.filter[aria-pressed="true"] { background: var(--bone); color: var(--ink); border-color: var(--bone); }

.gallery-grid {
  display: grid; gap: 0.9rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
}
.gallery-grid .tile { aspect-ratio: 4 / 5; }
.gallery-grid .tile button { position: absolute; inset: 0; width: 100%; height: 100%; cursor: zoom-in; }
.gallery-grid .tile figcaption {
  position: absolute; inset: auto 0 0 0; padding: 1.4rem 0.9rem 0.8rem; pointer-events: none;
  font-size: var(--fs-small); color: var(--bone);
  background: linear-gradient(transparent, rgba(8,8,8,0.9));
  opacity: 0; transform: translateY(8px); transition: 0.4s var(--ease-out);
}
.gallery-grid .tile:hover figcaption, .gallery-grid .tile:focus-within figcaption { opacity: 1; transform: none; }
.tile.is-hidden { display: none; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: var(--z-lightbox);
  background: rgba(6,6,6,0.96); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: clamp(1rem, 4vw, 3rem);
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}
.lightbox.open { opacity: 1; visibility: visible; transition: opacity 0.35s ease, visibility 0s; }
.lightbox__fig { max-width: min(92vw, 720px); text-align: center; }
.lightbox__fig img { max-height: 78vh; width: auto; margin-inline: auto; border: 1px solid var(--line); }
.lightbox__cap { margin-top: 1rem; color: var(--moon); font-size: var(--fs-small); font-style: italic; font-family: var(--font-display); font-size: 1.05rem; }
.lightbox__btn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 54px;
  display: grid; place-items: center; color: var(--bone); font-size: 1.6rem;
  border: 1px solid var(--line); border-radius: 50%; background: rgba(20,20,20,0.6);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.lightbox__btn:hover { background: var(--graphite); border-color: var(--mauve); }
.lightbox__prev { left: clamp(0.5rem, 3vw, 2rem); }
.lightbox__next { right: clamp(0.5rem, 3vw, 2rem); }
.lightbox__close { position: absolute; top: 1.3rem; right: 1.5rem; width: 48px; height: 48px;
  display: grid; place-items: center; color: var(--bone); font-size: 1.8rem; border: 1px solid var(--line); border-radius: 50%; }
.lightbox__close:hover { border-color: var(--mauve); }
.lightbox__count { position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%);
  font-family: var(--font-heading); font-size: 0.72rem; letter-spacing: 0.2em; color: var(--text-muted); }

/* ---------- 15. Note card (shared: aftercare, etc.) ---------- */
.note-card {
  border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.4rem);
}

/* ---------- 16. About page ---------- */
.about-hero { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .about-hero { grid-template-columns: 0.85fr 1.15fr; } }
.values { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.value { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; flex: 1 1 220px; max-width: 300px; }
.value h3 { font-family: var(--font-heading); font-size: 0.92rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--rose); margin-bottom: 0.6rem; display: flex; align-items: center; gap: 0.6rem; }
.value h3 svg { width: 16px; height: 16px; color: var(--mauve); flex: none; }
.value p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- 17. Booking page ---------- */
.steps { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft);
  grid-template-columns: repeat(4, 1fr); counter-reset: step; } /* even rows for 4 steps */
@media (max-width: 820px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--surface); padding: 1.8rem; }
.step__n { font-family: var(--font-display); font-size: 2.4rem; color: var(--mauve); line-height: 1; }
.step h3 { font-family: var(--font-heading); font-size: 0.9rem; letter-spacing: 0.14em; text-transform: uppercase; margin: 0.7rem 0 0.5rem; }
.step p { color: var(--text-muted); font-size: 0.92rem; }

.booking-layout { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; }
@media (min-width: 940px) { .booking-layout { grid-template-columns: 1.2fr 0.8fr; align-items: start; } }

.form { display: grid; gap: 1.2rem; }
.field { display: grid; gap: 0.45rem; }
.field-row { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font-family: var(--font-heading); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--moon); }
.field .req { color: var(--rose); }
.field input, .field select, .field textarea {
  width: 100%; background: var(--surface-2); border: 1px solid var(--line);
  color: var(--bone); padding: 0.85rem 1rem; border-radius: 4px; font-family: var(--font-body); font-size: 0.98rem;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: #8c8a84; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--mauve); background: #202020; outline: none; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23a37c88' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.6rem; }
.field .error-msg { color: #e3a6a6; font-size: 0.8rem; display: none; }
.field[data-invalid="true"] input, .field[data-invalid="true"] select, .field[data-invalid="true"] textarea { border-color: #b35a5a; }
.field[data-invalid="true"] .error-msg { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { color: var(--text-muted); font-size: var(--fs-small); }
.form-status { display: none; padding: 1rem 1.2rem; border-radius: var(--radius); font-size: 0.95rem; }
.form-status.show { display: block; }
.form-status.success { background: rgba(163,124,136,0.16); border: 1px solid var(--mauve); color: var(--bone); }
.form-status.error { background: rgba(179,90,90,0.14); border: 1px solid #b35a5a; color: #f0cccc; }

.aside-card { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem); }
.aside-card + .aside-card { margin-top: 1.2rem; }
.aside-card h3 { font-family: var(--font-heading); font-size: 0.9rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 1rem; color: var(--rose); }
.aside-card ul.checks li { position: relative; padding-left: 1.6rem; margin-bottom: 0.7rem; color: var(--text-muted); font-size: 0.94rem; }
.aside-card ul.checks li::before { content: "✦"; position: absolute; left: 0; color: var(--mauve); }

/* aftercare + FAQ accordion */
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none; cursor: pointer; padding: 1.3rem 0; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  font-family: var(--font-display); font-size: 1.25rem; color: var(--bone);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .plus { color: var(--mauve); font-size: 1.4rem; transition: transform 0.3s ease; flex: none; }
.accordion details[open] summary .plus { transform: rotate(45deg); }
.accordion .panel { padding: 0 0 1.4rem; color: var(--text-muted); max-width: 70ch; }
.accordion .panel a { color: var(--rose); }

/* ---------- 18. Contact page ---------- */
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); grid-template-columns: 1fr; }
@media (min-width: 820px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-item { padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.contact-item .kicker { display: block; margin-bottom: 0.5rem; }
.contact-item a, .contact-item p { font-family: var(--font-display); font-size: 1.4rem; color: var(--bone); }
.contact-item a:hover { color: var(--rose); }
.contact-deco { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); display: grid; place-items: center; padding: 2rem; min-height: 280px; }
.contact-deco img { width: clamp(140px, 40%, 220px); opacity: 0.9; }

/* ---------- 19. Footer ---------- */
.site-footer { background: #0a0a0a; border-top: 1px solid var(--line-soft); padding-block: clamp(3rem, 5vw, 5rem) 2rem; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand img { width: 64px; margin-bottom: 1rem; }
.footer-brand .brand-name { font-size: 1.1rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.92rem; margin-top: 1rem; max-width: 36ch; }
.footer-col h4 { font-family: var(--font-heading); font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mauve); margin-bottom: 1.1rem; }
.footer-col li { margin-bottom: 0.65rem; }
.footer-col a { color: var(--moon); font-size: 0.94rem; }
.footer-col a:hover { color: var(--bone); }
.footer-bottom { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  color: var(--text-muted); font-size: 0.8rem; }
.footer-bottom .placeholder-tag { color: var(--mauve); }

/* ---------- 20. Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); will-change: opacity, transform; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: 0.08s; }
.js .reveal[data-delay="2"] { transition-delay: 0.16s; }
.js .reveal[data-delay="3"] { transition-delay: 0.24s; }
.js .reveal[data-delay="4"] { transition-delay: 0.32s; }

/* hero entrance */
.js .hero__inner > * { opacity: 0; transform: translateY(20px); animation: heroIn 1s var(--ease-out) forwards; }
.js .hero__inner > *:nth-child(1) { animation-delay: 0.15s; }
.js .hero__inner > *:nth-child(2) { animation-delay: 0.35s; }
.js .hero__inner > *:nth-child(3) { animation-delay: 0.5s; }
.js .hero__inner > *:nth-child(4) { animation-delay: 0.65s; }
.js .hero__inner > *:nth-child(5) { animation-delay: 0.8s; }
.js .hero__inner > *:nth-child(6) { animation-delay: 0.92s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .hero__inner > * { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .scroll-hint span { animation: none; }
  .tile img, .cat img { transition: none; }
  .sparkle { animation: none; opacity: 0.45; transform: scale(0.8); }
  .hero__img { animation: none; }
  .cursor-glow { display: none; }
  .gallery-grid .tile::after, .preview-grid .tile::after { transition: none; }
  .ambient__orb { animation: none; }
  .ambient__dust { display: none; }
}

/* ---------- 21. Misc responsive ---------- */
@media (max-width: 860px) {
  .nav { display: none; }
  .nav-toggle { display: grid; place-items: center; width: 44px; height: 44px; color: var(--bone); }
  .nav-toggle svg { width: 26px; height: 26px; }
}
@media (min-width: 861px) { .menu-backdrop { display: none !important; } }

.hide { display: none !important; }
.noscript-banner { background: var(--plum); color: var(--bone); text-align: center; padding: 0.6rem; font-size: 0.85rem; }
