/* ============================================================
   Sonic Kindness — core stylesheet (v2, layout-faithful rebuild)
   Palette: monochrome white / near-black / soft gray with warm
   amber accent (matching the reference site's restraint).
   ============================================================ */

:root {
  --bg: #FFFFFF;
  --bg-soft: #F6F4F0;
  --bg-band: #F2EFE8;
  --ink: #161412;
  --ink-soft: #2A2724;
  --muted: #6E6862;
  --rule: rgba(22, 20, 18, 0.12);
  --rule-strong: rgba(22, 20, 18, 0.28);
  --amber: #C97A3B;
  --amber-deep: #A35E25;
  --star: #E2A437;
  --dark: #14110E;

  --maxw: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  --font-serif: "Cormorant Garamond", "Cormorant", "EB Garamond", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --slow: 1100ms;
  --med: 500ms;
  --fast: 220ms;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { max-width: 100%; height: auto; display: block; }

a {
  color: var(--ink);
  text-decoration: none;
  transition: color var(--fast) var(--ease), opacity var(--fast) var(--ease);
}
a:hover { color: var(--amber); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.005em;
  line-height: 1.12;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); font-weight: 300; }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 300; }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 400; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.18rem);
  color: var(--muted);
}

/* small horizontal mark beneath section headings (—) */
.mark {
  display: inline-block;
  width: 56px;
  height: 1px;
  background: var(--ink);
  margin: 1.2rem 0 1.6rem;
  vertical-align: middle;
}
.mark.amber { background: var(--amber); }
.center .mark { margin-left: auto; margin-right: auto; display: block; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.container-wide {
  max-width: 1480px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

section { padding: clamp(4.5rem, 9vw, 8.5rem) 0; position: relative; }
.section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }

.bg-soft { background: var(--bg-soft); }
.bg-band { background: var(--bg-band); }
.bg-dark { background: var(--dark); color: #EFE9DD; }
.bg-dark h1, .bg-dark h2, .bg-dark h3 { color: #FFFFFF; }

/* ============================================================
   LOADING SCREEN
   ============================================================ */
#loading-screen {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.8rem;
  transition: opacity 900ms var(--ease-out), visibility 0s 900ms;
}
#loading-screen.hidden { opacity: 0; visibility: hidden; }

#loading-screen .loader-brand {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--ink);
  letter-spacing: 0.01em;
  opacity: 0;
  animation: loader-fade-in 700ms 200ms var(--ease-out) forwards;
}
#loading-screen .loader-frame {
  width: clamp(160px, 22vw, 220px);
  height: clamp(160px, 22vw, 220px);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: loader-fade-in 800ms 400ms var(--ease-out) forwards;
}
#loading-screen .loader-frame video {
  width: 100%; height: 100%;
  object-fit: contain;
  opacity: 0;
  position: absolute;
  inset: 0;
  transition: opacity 600ms var(--ease);
  mix-blend-mode: multiply;
}
#loading-screen .loader-frame video.is-active { opacity: 1; }
#loading-screen .loader-bar {
  width: clamp(180px, 22vw, 220px);
  height: 1px;
  background: var(--rule);
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: loader-fade-in 700ms 700ms var(--ease-out) forwards;
}
#loading-screen .loader-bar::after {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 30%;
  background: var(--ink);
  animation: loader-slide 1.6s var(--ease) infinite;
}
#loading-screen .loader-caption {
  font-size: 0.74rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  animation: loader-fade-in 800ms 900ms var(--ease-out) forwards;
}
@keyframes loader-slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(400%); }
}
@keyframes loader-fade-in {
  to { opacity: 1; }
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 1.2rem 0;
  background: transparent;
  transition: background var(--med) var(--ease), padding var(--med) var(--ease), box-shadow var(--med) var(--ease), color var(--med) var(--ease);
}
.site-header.over-dark { color: #FFFFFF; }
.site-header.over-dark .brand-mark,
.site-header.over-dark .nav-primary a { color: #FFFFFF; }
.site-header.over-dark .nav-toggle span,
.site-header.over-dark .nav-toggle span::before,
.site-header.over-dark .nav-toggle span::after { background: #FFFFFF; }
/* Logo is transparent black line-art — invert to white while over the dark hero. */
.site-header.over-dark .brand img { filter: brightness(0) invert(1); }

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.65rem 0;
  box-shadow: 0 1px 0 var(--rule);
  color: var(--ink);
}
.site-header.is-scrolled .brand-mark,
.site-header.is-scrolled .nav-primary a { color: var(--ink); }
.site-header.is-scrolled .nav-toggle span,
.site-header.is-scrolled .nav-toggle span::before,
.site-header.is-scrolled .nav-toggle span::after { background: var(--ink); }

.site-header .container-wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: inherit;
}
.brand img {
  height: 46px; width: auto; max-width: 72px; object-fit: contain;
  transition: filter var(--med) var(--ease);
}
.brand-mark {
  line-height: 1;
  color: var(--ink);
  transition: color var(--med) var(--ease);
}
.brand-mark small {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 5px;
  font-weight: 400;
}

.nav-primary {
  display: flex;
  gap: 1.8rem;
  align-items: center;
}
.nav-primary a {
  font-family: var(--font-sans);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  position: relative;
  padding: 0.3rem 0;
  color: var(--ink);
  transition: color var(--med) var(--ease), opacity var(--fast) var(--ease);
}
.nav-primary a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--med) var(--ease);
}
.nav-primary a:hover::after,
.nav-primary a.is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 38px; height: 38px;
  padding: 0;
  cursor: pointer;
  position: relative;
  z-index: 60;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 6px; right: 6px;
  height: 1.5px;
  background: var(--ink);
  transition: transform var(--med) var(--ease), top var(--med) var(--ease), background var(--med) var(--ease);
}
.nav-toggle span { top: 50%; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }
.nav-toggle.is-open span { background: transparent !important; }
.nav-toggle.is-open span::before { top: 0; transform: rotate(45deg); background: var(--ink) !important; }
.nav-toggle.is-open span::after { top: 0; transform: rotate(-45deg); background: var(--ink) !important; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-primary {
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    gap: 1.6rem;
    transform: translateY(-100%);
    transition: transform 500ms var(--ease);
    z-index: 50;
  }
  .nav-primary.is-open { transform: translateY(0); }
  .nav-primary a { font-size: 1.4rem; font-family: var(--font-serif); color: var(--ink) !important; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #FFFFFF;
  cursor: pointer;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease), transform var(--fast) var(--ease), border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
  text-decoration: none;
}
.btn:hover {
  background: var(--amber-deep);
  border-color: var(--amber-deep);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px rgba(20, 17, 14, 0.4);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: #FFFFFF; }
.btn-on-dark {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: #FFFFFF;
}
.btn-on-dark:hover { background: #FFFFFF; color: var(--ink); border-color: #FFFFFF; }
.btn-amber {
  background: var(--amber);
  border-color: var(--amber);
}
.btn-amber:hover { background: var(--amber-deep); border-color: var(--amber-deep); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.link-arrow .arrow { transition: transform var(--med) var(--ease); display: inline-block; }
.link-arrow:hover { color: var(--amber); }
.link-arrow:hover .arrow { transform: translateX(5px); }

/* ============================================================
   HERO — full-bleed dark image with overlaid text
   ============================================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #FFFFFF;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center;
  z-index: -2;
  transform: scale(1.08);
  animation: hero-zoom 16s var(--ease-out) forwards;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.55) 60%, rgba(0,0,0,0.7) 100%);
  z-index: -1;
}
@keyframes hero-zoom {
  to { transform: scale(1.0); }
}
.hero .container {
  padding-top: 6rem;
  position: relative;
  z-index: 4;
}
.hero h1 {
  color: #FFFFFF;
  font-style: normal;
  font-weight: 300;
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  line-height: 1.05;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: hero-text-in 1.2s 600ms var(--ease-out) forwards;
}
.hero h1 em {
  font-style: italic;
  color: #F1D9B6;
  font-weight: 300;
}
.hero .hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  max-width: 50ch;
  margin: 0 auto 2rem;
  color: rgba(255,255,255,0.86);
  opacity: 0;
  transform: translateY(20px);
  animation: hero-text-in 1.2s 900ms var(--ease-out) forwards;
}
.hero .hero-cta {
  display: inline-flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  animation: hero-text-in 1.2s 1200ms var(--ease-out) forwards;
}
@keyframes hero-text-in {
  to { opacity: 1; transform: translateY(0); }
}
.hero .scroll-cue {
  position: absolute;
  bottom: 6.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  color: rgba(255,255,255,0.7);
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  animation: cue-bob 2.6s var(--ease) infinite;
}
.hero .scroll-cue::after {
  content: "";
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.5);
}
@keyframes cue-bob {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.7; }
  50% { transform: translate(-50%, 8px); opacity: 1; }
}

/* ============================================================
   PRACTITIONER BLOCK
   ============================================================ */
.intro-block {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.intro-block.reverse { grid-template-columns: 0.9fr 1.1fr; }
.intro-block .intro-portrait {
  aspect-ratio: 4/5;
  background: var(--bg-soft);
  overflow: hidden;
  position: relative;
}
.intro-block .intro-portrait img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.intro-block .intro-portrait:hover img { transform: scale(1.04); }

@media (max-width: 900px) {
  .intro-block, .intro-block.reverse { grid-template-columns: 1fr; }
  .intro-block .intro-portrait { max-width: 480px; margin: 0 auto; }
}

.label-small {
  font-size: 0.74rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
  display: inline-block;
}

/* ============================================================
   THREE-COLUMN SERVICE GRID (icon-led, no big images)
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: 3rem;
}
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
}
.service {
  text-align: center;
  padding: 0 0.5rem;
}
.service .service-icon {
  width: clamp(120px, 14vw, 170px);
  height: clamp(120px, 14vw, 170px);
  margin: 0 auto 1.5rem;
  position: relative;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform var(--med) var(--ease), box-shadow var(--med) var(--ease);
}
.service .service-icon img,
.service .service-icon video {
  width: 100%; height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 1.6s var(--ease);
}
.service:hover .service-icon { transform: translateY(-6px); }
.service:hover .service-icon img,
.service:hover .service-icon video { transform: scale(1.06) rotate(-2deg); }

.service h3 { margin-bottom: 0.6rem; }
.service p { color: var(--muted); font-size: 0.98rem; max-width: 32ch; margin: 0 auto; }
.service .btn { margin-top: 1.4rem; }

/* Two-offering layout: center a pair of cards rather than stretch to 3 columns. */
.services-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 760px) {
  .services-grid-2 { grid-template-columns: 1fr; }
}

/* ============================================================
   TESTIMONIAL — centered with stars and button
   ============================================================ */
.review {
  text-align: center;
  max-width: 56ch;
  margin: 0 auto;
}
.review h3 { margin-bottom: 0.8rem; font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-style: italic; font-weight: 300; }
.review p {
  font-style: italic;
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}
.review .stars {
  color: var(--star);
  letter-spacing: 0.18em;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.review cite {
  font-style: normal;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 1.8rem;
}

/* ============================================================
   FEATURE BAND — image left, text right (and reverse)
   ============================================================ */
.feature-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.feature-band.reverse { direction: rtl; }
.feature-band.reverse > * { direction: ltr; }

.feature-band .feature-media {
  aspect-ratio: 4/5;
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
}
.feature-band .feature-media img,
.feature-band .feature-media video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.6s var(--ease);
}
.feature-band .feature-media:hover img,
.feature-band .feature-media:hover video { transform: scale(1.05); }

.feature-band .feature-text { padding: 1rem 0; }
.feature-band .feature-text p { color: var(--muted); max-width: 44ch; }

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.play-overlay .play-circle {
  width: 78px; height: 78px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 36px -12px rgba(0,0,0,0.35);
  transition: transform var(--med) var(--ease), background var(--med) var(--ease);
}
.play-overlay .play-circle::before {
  content: "";
  width: 0; height: 0;
  border-left: 14px solid var(--ink);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 4px;
}
.feature-band .feature-media:hover .play-circle { transform: scale(1.08); background: #FFFFFF; }

@media (max-width: 900px) {
  .feature-band, .feature-band.reverse { grid-template-columns: 1fr; direction: ltr; }
  .feature-band .feature-media { aspect-ratio: 4/3; max-width: 560px; margin: 0 auto; }
}

/* ============================================================
   INSTAGRAM-STYLE GRID
   ============================================================ */
.ig-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-top: 2rem;
}
.ig-grid a {
  aspect-ratio: 1;
  display: block;
  overflow: hidden;
  background: var(--bg-soft);
  position: relative;
}
.ig-grid a::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0,0,0,0);
  transition: background var(--med) var(--ease);
}
.ig-grid img, .ig-grid video {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease), filter 1s var(--ease);
}
.ig-grid a:hover img,
.ig-grid a:hover video { transform: scale(1.06); }
.ig-grid a:hover::after { background: rgba(0,0,0,0.18); }
@media (max-width: 760px) {
  .ig-grid { grid-template-columns: repeat(2, 1fr); }
}

.ig-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.6rem;
}
.ig-head .ig-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
}
.ig-head .ig-avatar img { width: 100%; height: 100%; object-fit: contain; }
.ig-head .ig-meta strong { font-weight: 600; }
.ig-head .ig-meta small { display: block; color: var(--muted); font-size: 0.84rem; }

/* ============================================================
   CLOSING DARK BAND (full-bleed photo + quote + social row)
   ============================================================ */
.closing-band {
  position: relative;
  min-height: clamp(20rem, 44vh, 30rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(3.5rem, 7vw, 5.5rem) var(--gutter);
  text-align: center;
  color: #FFFFFF;
  overflow: hidden;
  isolation: isolate;
}
.closing-band::before {
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background-image: var(--closing-img);
  background-size: cover;
  background-position: center;
  filter: brightness(0.7);
}
.closing-band::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,0.2), rgba(0,0,0,0.55));
}
.closing-band blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.2;
  margin: 0 auto 2.5rem;
  max-width: 22ch;
  color: #FFFFFF;
}
.closing-band .social-row {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: 1rem;
  justify-content: center;
}
.closing-band .social-row a {
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
  color: rgba(255,255,255,0.92);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  transition: color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.closing-band .social-row a:hover { color: #FFFFFF; transform: translateY(-3px); }
.closing-band .social-row .social-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.6);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.closing-band .social-row a:hover .social-icon {
  background: rgba(255,255,255,0.12);
  border-color: #FFFFFF;
}
.closing-band .social-row svg { width: 22px; height: 22px; fill: currentColor; }

/* ============================================================
   FOOTER STRIP (small copyright bar at very bottom)
   ============================================================ */
.site-footer {
  background: #0F0D0B;
  color: rgba(255,255,255,0.55);
  padding: 1.4rem 0;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}
.site-footer .container-wide {
  display: flex;
  justify-content: center;
  text-align: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.site-footer a { color: rgba(255,255,255,0.7); }
.site-footer a:hover { color: #FFFFFF; }

/* ============================================================
   FLOATING CONTACT BUBBLE
   ============================================================ */
.float-contact {
  position: fixed;
  right: 1.4rem; bottom: 1.4rem;
  z-index: 80;
  display: flex; align-items: center; gap: 0.6rem;
  background: var(--ink);
  color: #FFFFFF;
  padding: 0.85rem 1.3rem 0.85rem 1.1rem;
  border-radius: 999px;
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  box-shadow: 0 14px 30px -10px rgba(0,0,0,0.4);
  transition: transform var(--med) var(--ease), background var(--med) var(--ease);
  text-decoration: none;
}
.float-contact:hover { background: var(--amber-deep); color: #FFFFFF; transform: translateY(-3px); }
.float-contact .float-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
}
.float-contact svg { width: 16px; height: 16px; fill: #FFFFFF; }

.float-up {
  position: fixed;
  right: 1.4rem; bottom: 5.2rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--rule-strong);
  background: rgba(255,255,255,0.9);
  display: flex; align-items: center; justify-content: center;
  z-index: 70;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity var(--med) var(--ease), transform var(--med) var(--ease), background var(--fast) var(--ease);
  color: var(--ink);
  text-decoration: none;
}
.float-up.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.float-up:hover { background: var(--ink); color: #FFFFFF; }
.float-up::before {
  content: "";
  width: 8px; height: 8px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(-45deg);
  margin-top: 4px;
}

/* ============================================================
   PAGE HEADER (interior pages)
   ============================================================ */
.page-header {
  position: relative;
  padding: clamp(9rem, 16vw, 13rem) 0 clamp(4rem, 8vw, 7rem);
  text-align: center;
  color: #FFFFFF;
  overflow: hidden;
  isolation: isolate;
}
.page-header::before {
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background-image: var(--header-img);
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  animation: hero-zoom 14s var(--ease-out) forwards;
}
.page-header::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.65));
}
.page-header h1 {
  color: #FFFFFF;
  font-weight: 300;
}
.page-header p {
  max-width: 56ch;
  margin: 0 auto;
  color: rgba(255,255,255,0.86);
  font-size: 1.05rem;
}
.page-header .breadcrumb {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.74rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.4rem;
}

/* ============================================================
   PROSE
   ============================================================ */
.prose { max-width: 66ch; margin: 0 auto; }
.prose p { font-size: 1.06rem; color: var(--ink-soft); }
.prose h2, .prose h3 { margin-top: 2.5em; }
.prose ul { padding-left: 1.4rem; }
.prose ul li { margin-bottom: 0.5rem; }
.prose blockquote {
  border-left: 2px solid var(--amber);
  padding-left: 1.4rem;
  font-style: italic;
  color: var(--muted);
  margin: 2rem 0;
}

/* ============================================================
   FORM
   ============================================================ */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}
@media (max-width: 680px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; }
.field label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  margin-bottom: 0.45rem;
  color: var(--muted);
}
.field input, .field select, .field textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.85rem 1rem;
  transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--bg-soft);
}
.field textarea { min-height: 160px; resize: vertical; }

/* ============================================================
   EVENTS LIST (used on events page)
   ============================================================ */
.event-row {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: center;
}
.event-row .event-date {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: var(--ink);
}
.event-row .event-date small {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}
.event-row h4 { margin: 0 0 0.3rem; font-size: 1.15rem; }
.event-row p { margin: 0; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 680px) {
  .event-row { grid-template-columns: 1fr; gap: 0.4rem; }
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--slow) var(--ease-out), transform var(--slow) var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--slow) var(--ease-out), transform var(--slow) var(--ease-out);
}
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 140ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 280ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 420ms; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 560ms; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 700ms; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 840ms; }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: 980ms; }

.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity var(--slow) var(--ease-out), transform var(--slow) var(--ease-out); }
.reveal-left.is-visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity var(--slow) var(--ease-out), transform var(--slow) var(--ease-out); }
.reveal-right.is-visible { opacity: 1; transform: translateX(0); }

/* ============================================================
   UTIL
   ============================================================ */
.text-center { text-align: center; }
.section-head { max-width: 56ch; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.btn-row { display: inline-flex; gap: 0.8rem; flex-wrap: wrap; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 200; background: var(--ink); color: #FFFFFF; padding: 0.6rem 1rem; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal, .reveal-stagger > *, .reveal-left, .reveal-right { opacity: 1; transform: none; }
}

/* ============================================================
   WAVE DIVIDERS — organic curved separators between dark
   photo bands and the white body, mirroring the reference's
   flowing edge.
   ============================================================ */
.wave-divider {
  position: absolute;
  left: 0; right: 0;
  width: 100%;
  height: 110px;
  pointer-events: none;
  z-index: 5;
  display: block;
  overflow: hidden;
}
.wave-divider svg {
  width: 100%; height: 100%; display: block;
}
.wave-divider.wave-bottom { bottom: -1px; }
.wave-divider.wave-top { top: -1px; transform: scaleY(-1); }
@media (max-width: 760px) {
  .wave-divider { height: 70px; }
}

/* Hero needs room above the wave + the scroll cue so text/button never collide with them */
.hero { padding-bottom: 9.5rem; }
.page-header { padding-bottom: clamp(6rem, 11vw, 9rem); }
.closing-band { padding-top: clamp(5rem, 9vw, 7rem); }

/* ============================================================
   PARTICLES — soft golden dots floating up over dark image
   bands. CSS-only, varied via inline custom properties on each
   .particle child (--x, --size, --dur, --delay, --sway).
   ============================================================ */
.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}
.particle {
  position: absolute;
  bottom: -12px;
  left: var(--x, 50%);
  width: var(--size, 6px);
  height: var(--size, 6px);
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(241, 217, 182, 0.95) 0%,
    rgba(241, 217, 182, 0.45) 45%,
    rgba(241, 217, 182, 0) 80%);
  filter: blur(0.5px);
  opacity: 0;
  animation: particle-rise var(--dur, 12s) ease-in-out var(--delay, 0s) infinite;
  will-change: transform, opacity;
}
@keyframes particle-rise {
  0% {
    transform: translate3d(0, 0, 0) scale(0.4);
    opacity: 0;
  }
  8% { opacity: 0.65; }
  35% {
    transform: translate3d(calc(var(--sway, 18px) * 0.6), -38vh, 0) scale(0.9);
    opacity: 0.9;
  }
  65% {
    transform: translate3d(calc(var(--sway, 18px) * -0.4), -68vh, 0) scale(1);
    opacity: 0.7;
  }
  90% { opacity: 0.25; }
  100% {
    transform: translate3d(calc(var(--sway, 18px) * 0.2), -110vh, 0) scale(0.55);
    opacity: 0;
  }
}

/* Particles get drawn beneath the wave but above the photo */
.hero .particles, .page-header .particles, .closing-band .particles { z-index: 2; }

/* Closing band rebalanced for wave at top */
.closing-band .social-row { margin-top: 1.5rem; }

/* ============================================================
   PASSWORD GATE (stealth-mode overlay)
   ============================================================ */
html.sk-gated, html.sk-gated body { overflow: hidden; }
html.sk-gated body > *:not(.sk-gate) { visibility: hidden !important; }

.sk-gate {
  position: fixed; inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  color: #FFFFFF;
  background: #0F0D0B;
  isolation: isolate;
  overflow: hidden;
  opacity: 1;
  transition: opacity 700ms var(--ease-out);
}
.sk-gate.is-unlocking { opacity: 0; pointer-events: none; }

.sk-gate-bg {
  position: absolute; inset: 0; z-index: -2;
  background-image: url("/assets/photos/zach-piano-bowls.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  animation: hero-zoom 18s var(--ease-out) forwards;
}
.sk-gate-veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.75) 80%),
    linear-gradient(180deg, rgba(0,0,0,0.4), rgba(0,0,0,0.8));
}
.sk-gate-particles {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.sk-gate-card {
  position: relative;
  z-index: 3;
  max-width: 480px;
  width: 100%;
  text-align: center;
}
.sk-gate.is-wrong .sk-gate-card {
  animation: sk-gate-shake 0.45s var(--ease);
}
@keyframes sk-gate-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-12px); }
  40% { transform: translateX(10px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(4px); }
}

.sk-gate-brand {
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(2.4rem, 5.2vw, 3.6rem);
  color: #FFFFFF;
  line-height: 1.05;
  margin-bottom: 0.5rem;
}
.sk-gate-brand em { color: #F1D9B6; font-style: italic; }
.sk-gate-sub {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 2.6rem;
}
.sk-gate-prompt {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.6rem;
  max-width: 36ch;
  margin-left: auto;
  margin-right: auto;
}

.sk-gate-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  max-width: 360px;
  margin: 0 auto;
}
.sk-gate-form input {
  width: 100%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  padding: 0.95rem 1.4rem;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  color: #FFFFFF;
  text-align: center;
  letter-spacing: 0.06em;
  transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease);
}
.sk-gate-form input::placeholder {
  color: rgba(255,255,255,0.4);
  font-style: italic;
}
.sk-gate-form input:focus {
  outline: none;
  border-color: var(--amber);
  background: rgba(255,255,255,0.14);
}
.sk-gate-form button {
  align-self: center;
  margin-top: 0.4rem;
  padding: 0.85rem 2.4rem;
  background: var(--amber);
  border: 1px solid var(--amber);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--fast) var(--ease), transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.sk-gate-form button:hover {
  background: var(--amber-deep);
  border-color: var(--amber-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -12px rgba(0,0,0,0.55);
}

.sk-gate-error {
  min-height: 1.4em;
  margin-top: 1rem;
  font-size: 0.88rem;
  color: rgba(255,210,160,0.9);
  font-style: italic;
}

.sk-gate-footer {
  position: absolute;
  bottom: 1.4rem;
  left: 0; right: 0;
  text-align: center;
  z-index: 3;
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.sk-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   BOOKING MODAL (in-page Square Appointments overlay)
   ============================================================ */
.booking-modal {
  position: fixed; inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2.5rem);
}
.booking-modal.is-open { display: flex; }

.booking-backdrop {
  position: absolute; inset: 0;
  background: rgba(15, 13, 11, 0.66);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: booking-fade 240ms var(--ease-out);
}

.booking-dialog {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  height: min(86vh, 920px);
  background: var(--bg);
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: booking-rise 300ms var(--ease-out);
}
.booking-dialog.is-pending { height: auto; max-width: 470px; }

.booking-close {
  position: absolute; top: 0.5rem; right: 0.7rem;
  z-index: 2;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: none;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font-size: 1.7rem; line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  transition: background 160ms var(--ease-out), color 160ms var(--ease-out);
}
.booking-close:hover { background: var(--ink); color: #FFFFFF; }

.booking-frame-wrap { flex: 1; min-height: 0; }
.booking-iframe { width: 100%; height: 100%; border: 0; display: block; }

.booking-pending { padding: clamp(2.2rem, 5vw, 3.2rem); text-align: center; }
.booking-pending h3 { margin: 0.6rem 0 0.5rem; }
.booking-pending p { color: var(--muted); margin-bottom: 1.5rem; }

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

@media (max-width: 600px) {
  .booking-modal { padding: 0; }
  .booking-dialog { width: 100%; height: 100%; border-radius: 0; }
  .booking-dialog.is-pending { height: 100%; max-width: none; display: flex; flex-direction: column; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .booking-backdrop, .booking-dialog { animation: none; }
}

/* ============================================================
   HOME HERO — LOGO LANDING (light)
   ============================================================ */
.hero-logo {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg);
  padding: 7rem 0 5rem;
  overflow: hidden;
}
.hero-logo .container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-logo-mark {
  width: min(440px, 76vw);
  margin: 0 auto 1.4rem;
  opacity: 0;
  animation: hero-text-in 1.1s 200ms var(--ease-out) forwards;
}
.hero-logo-video,
.hero-logo-mark img {
  display: block;
  width: 100%;
  height: auto;
}
.hero-logo h1 {
  font-weight: 300;
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  line-height: 1.05;
  margin: 0 0 0.5rem;
  color: var(--ink);
  opacity: 0;
  animation: hero-text-in 1.1s 500ms var(--ease-out) forwards;
}
.hero-logo h1 em { font-style: italic; font-weight: 300; }
.hero-logo .hero-sub {
  font-family: var(--font-sans);
  font-size: clamp(0.8rem, 1.1vw, 0.95rem);
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0;
  opacity: 0;
  animation: hero-text-in 1.1s 800ms var(--ease-out) forwards;
}
.hero-logo .scroll-cue {
  position: absolute;
  bottom: 2.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  animation: cue-bob 2.6s var(--ease) infinite;
}
.hero-logo .scroll-cue::after {
  content: "";
  width: 1px;
  height: 36px;
  background: var(--rule-strong);
}

/* Contact page two-column layout (stacks on mobile) */
.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: flex-start;
}
@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* Re-center the mongoose mascot: its art sits right-of-centre & low in the
   well, so nudge the image slightly left and up (proportional to icon size). */
.service .service-icon img[src*="mongoose"] { transform: translate(-6%, -3%); }
.service:hover .service-icon img[src*="mongoose"] { transform: translate(-6%, -3%) scale(1.06) rotate(-2deg); }

/* Instagram - real @sonickindness posts as a hover-reveal thumbnail grid */
.ig-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.7rem;
  max-width: 1120px;
  margin: 0 auto;
}
.ig-card {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-band);
}
.ig-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.1s var(--ease);
}
.ig-card:hover img,
.ig-card:focus-visible img { transform: scale(1.05); }
.ig-card-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 1rem;
  background: rgba(15, 13, 11, 0.58);
  color: #FFFFFF;
  opacity: 0;
  transition: opacity var(--med) var(--ease);
}
.ig-card:hover .ig-card-overlay,
.ig-card:focus-visible .ig-card-overlay { opacity: 1; }
.ig-card-cap {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  line-height: 1.45;
  letter-spacing: 0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Default: just the first row of 5; "Load more" reveals the rest (≤10). */
.ig-cards .ig-card:nth-child(n+6) { display: none; }
.ig-cards.show-all .ig-card:nth-child(n+6) { display: block; }

.ig-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

@media (max-width: 760px) { .ig-cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 460px) { .ig-cards { grid-template-columns: repeat(2, 1fr); } }

/* Trim the empty space above the closing band on every page (its wave already
   provides the transition into the dark band). Keep a small NON-zero padding —
   padding-bottom:0 lets the last paragraph's margin collapse out and reveal the
   white page background as a seam. No background change here, so it never
   conflicts with the page-header wave at the top of single-section pages. */
main > section:has(+ .closing-band) { padding-bottom: clamp(2rem, 4vw, 3rem); }

/* Match the closing-band wave to the section directly above it so there's no
   colour seam. When that section is cream (bg-soft) the wave is cream; when it
   is white, the wave keeps its inline white fill. (CSS fill overrides the SVG
   presentation attribute.) */
.bg-soft + .closing-band .wave-divider path { fill: var(--bg-soft); }
