/* ============================================================
   Empowered Mind — Dr. Adrian Tubero, Psy.D.
   Shared stylesheet
   ============================================================ */

:root {
  /* ── Atlantic coastal palette
        Warm ivory neutrals + slate-teal ocean tones. Hue shifted slightly
        blue-grey (away from Caribbean teal) for a more grounded, psychologically
        sophisticated coastal feel. No pink; sky tones are warm ivory haze. ── */
  --bg:           #F0EBE4;     /* warm ivory linen */
  --bg-soft:      #D8DCDB;     /* coastal stone — neutral warm grey */
  --bg-warm:      #EAE3DC;     /* warm ivory */

  --sand:         #B5BBBA;     /* muted fog stone */
  --sand-soft:    #CBD5D4;     /* pale coastal mist */
  --sand-deep:    #668182;     /* slate grey-teal */
  --sand-shadow:  #435D5F;     /* deep slate */

  --turq-pale:    #C7D5D7;     /* Atlantic coastal mist — quieter */
  --turq-light:   #7AA3A5;     /* muted Atlantic slate */
  --turq:         #4C7C7E;     /* primary Atlantic teal — grounded */
  --turq-deep:    #245658;     /* deep harbor */
  --turq-dark:    #163C3C;     /* dark Atlantic depth */

  /* Aliases so shared rules (.bg-teal, .bg-sage, .mauve usage) still pick up
     palette colors instead of reverting to old pinks/blues. */
  --teal-light:   var(--turq-light);
  --teal:         var(--turq);
  --teal-deep:    var(--turq-deep);
  --teal-dark:    var(--turq-dark);
  --sage:         var(--turq);
  --sage-soft:    var(--turq-pale);
  --sage-deep:    var(--turq-deep);
  --foam:         var(--sand-soft);
  --sky-pink:     var(--bg-warm);   /* warm ivory haze — no pink, no seafoam */
  --sky-blue:     var(--turq-light);
  --slate:        var(--turq-deep);
  --slate-deep:   var(--turq-dark);
  --mauve:        var(--sand-deep);
  --mauve-soft:   var(--sand-soft);

  --deep:         #0F2B32;     /* deep ocean ink — cool navy */
  --light-text:   #475859;     /* body text */
  --muted:        #758485;     /* subtle/secondary */
  --white:        #FFFFFF;
  --border:       #BBC8C7;     /* coastal stone border */

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;

  --container: 1140px;
  --gutter: 1.75rem;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--deep);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--teal-deep); }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.005em;
  color: var(--deep);
}

h1 { font-size: clamp(2.5rem, 5.5vw, 4rem); font-weight: 300; letter-spacing: -0.005em; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.45rem); font-weight: 400; }
h4 { font-size: 1.1rem; font-weight: 500; }

p { color: var(--light-text); }
p + p { margin-top: 1rem; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--light-text);
  max-width: 38em;
}

.italic {
  font-family: var(--serif);
  font-style: italic;
  color: var(--light-text);
}

/* ---------- Layout helpers ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.narrow { max-width: 760px; }

section {
  position: relative;
  padding: 7rem 0;
  overflow: hidden;
}
section.compact { padding: 5rem 0; }

.section-eyebrow { display: inline-block; }

.divider-line {
  width: 36px; height: 1px; margin: 0.85rem 0 1.75rem;
  background: var(--sand-deep);
  opacity: 0.45;
  border-radius: 1px;
}

.center { text-align: center; }
.center .divider-line, .center .lead { margin-left: auto; margin-right: auto; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 2rem; }
  .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Section variants (backgrounds) ---------- */

.bg-linen { background: var(--bg); }
.bg-soft  { background: var(--bg-soft); }

.bg-sage {
  background: linear-gradient(180deg, var(--sage-soft) 0%, var(--bg) 100%);
}
.bg-foam {
  background: linear-gradient(180deg, var(--foam) 0%, var(--bg) 100%);
}
.bg-sand {
  background: linear-gradient(180deg, #E4DBCF 0%, var(--bg) 100%);
}
.bg-tide {
  background:
    radial-gradient(ellipse at 50% 0%, var(--bg-warm) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 100%, var(--turq-pale) 0%, transparent 45%),
    var(--bg-soft);
}
.bg-mist {
  background:
    radial-gradient(ellipse at 50% 0%, var(--sand-soft) 0%, transparent 42%),
    var(--bg);
}

/* Ocean variant: very faint horizontal ripple band behind every neutral section */
section.bg-linen,
section.bg-soft,
section.bg-foam,
section.bg-sand,
section.bg-tide,
section.bg-mist {
  position: relative;
}
section.bg-linen::after,
section.bg-soft::after,
section.bg-foam::after,
section.bg-sand::after,
section.bg-tide::after,
section.bg-mist::after {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(
    180deg,
    transparent 0px,
    transparent 96px,
    rgba(42,120,117,0.025) 96px,
    rgba(42,120,117,0.025) 98px
  );
  z-index: 0;
}
section > * { position: relative; z-index: 1; }

/* SVG wave dividers — placed as <div class="wave-sep"> between sections */
.wave-sep {
  position: relative;
  height: 70px;
  margin-top: -1px; margin-bottom: -1px;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}
.wave-sep svg {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
}
.wave-sep.flip svg { transform: scaleY(-1); }

/* Tide-glyph: tiny three-wave accent under section headlines */
.tide-glyph {
  display: block;
  width: 64px; height: 12px;
  margin: 0.5rem auto 1.25rem;
  opacity: 0.20;
}
.tide-glyph svg { width: 100%; height: 100%; }
.tide-glyph svg path { stroke: var(--teal); fill: none; stroke-width: 2; stroke-linecap: round; }

.bg-teal {
  background: linear-gradient(160deg, #3A6768 0%, #1A4647 100%);
  color: var(--white);
}
.bg-teal h1, .bg-teal h2, .bg-teal h3, .bg-teal h4 { color: var(--white); }
.bg-teal p { color: rgba(255,255,255,0.90); }
.bg-teal .eyebrow { color: var(--sky-pink); }

.bg-dark {
  background: linear-gradient(180deg, #163C3C 0%, #0F2B2B 100%);
  color: var(--white);
}
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 { color: var(--white); }
.bg-dark p { color: rgba(255,255,255,0.82); }
.bg-dark .eyebrow { color: var(--sky-pink); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.95rem 1.85rem;
  font-family: var(--sans);
  font-size: 0.93rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 999px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
  min-height: 44px;
}
.btn svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--teal-dark);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--deep);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(27,95,92,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--deep);
  border: 1.5px solid var(--deep);
}
.btn-outline:hover {
  background: var(--deep);
  color: var(--white);
  transform: translateY(-2px);
}

.hero .btn-outline {
  color: var(--white);
  border-color: rgba(255,255,255,0.92);
  background: rgba(10,22,28,0.32);
}
.hero .btn-outline:hover {
  background: var(--white);
  color: var(--deep);
  border-color: var(--white);
}
.bg-teal .btn-outline,
.bg-dark .btn-outline {
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.bg-teal .btn-outline:hover,
.bg-dark .btn-outline:hover {
  background: var(--white);
  color: var(--deep);
  border-color: var(--white);
}

.btn-ghost {
  padding: 0.5rem 0;
  color: var(--teal-dark);
  font-weight: 500;
  font-size: 0.95rem;
}
.btn-ghost:hover { color: var(--deep); }
.btn-ghost svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.btn-ghost:hover svg { transform: translateX(4px); }

/* ---------- Nav ---------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: transparent;
  transition: background .35s var(--ease), backdrop-filter .35s var(--ease), padding .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(240,235,228,0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--deep);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}
.nav-logo .logo-mark {
  width: 36px; height: 36px; flex-shrink: 0;
  object-fit: contain;
}

/* Portrait frame — soft sand border + turquoise accent */
.portrait-frame {
  position: relative;
  display: inline-block;
  border-radius: 6px;
  width: 100%;
  max-width: 360px;
}
.portrait-frame img {
  display: block;
  width: 100%;
  border-radius: 6px;
  position: relative; z-index: 2;
  box-shadow: 0 20px 50px rgba(15,43,50,0.16);
  border: 3px solid var(--white);
}
.portrait-frame::before {
  content: '';
  position: absolute;
  top: -8px; left: -8px; right: 10px; bottom: 10px;
  background: var(--turq-pale);
  border-radius: 6px;
  z-index: 1;
  opacity: 0.42;
}
.portrait-frame::after {
  content: '';
  position: absolute;
  top: 10px; left: 10px; right: -8px; bottom: -8px;
  border: 1px solid var(--sand-deep);
  border-radius: 6px;
  z-index: 0;
  opacity: 0.25;
}

/* Blog index — card grid with thumbnails */
.blog-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 2rem;
}
@media (max-width: 760px) { .blog-list { grid-template-columns: 1fr; gap: 2rem; } }
.blog-list.featured-first .blog-entry:first-child {
  grid-column: 1 / -1;
}
.blog-list.featured-first .blog-entry:first-child .blog-thumb {
  aspect-ratio: 21 / 9;
}
.blog-list.featured-first .blog-entry:first-child h3 {
  font-size: clamp(1.7rem, 3.5vw, 2.2rem);
}

.blog-entry {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform .35s var(--ease);
}
.blog-entry:hover { color: inherit; transform: translateY(-3px); }

.blog-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sand-soft);
  margin-bottom: 1.1rem;
  position: relative;
}
.blog-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .9s var(--ease), filter .35s var(--ease);
  filter: saturate(0.92);
}
.blog-entry:hover .blog-thumb img {
  transform: scale(1.04);
  filter: saturate(1);
}
.blog-thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(22,58,64,0.10) 100%);
  pointer-events: none;
}

.blog-entry .blog-meta {
  font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--turq-deep); margin-bottom: 0.45rem; font-weight: 500;
}
.blog-entry h3 {
  font-family: var(--serif); font-size: 1.55rem; font-weight: 400;
  margin: 0.65rem 0 0.5rem; color: var(--deep);
  line-height: 1.25;
}
.blog-entry .blog-excerpt { color: var(--light-text); font-size: 0.96rem; line-height: 1.58; }
.blog-entry .blog-cta {
  display: inline-flex; align-items: center; gap: 0.45rem;
  margin-top: 0.85rem;
  font-size: 0.82rem; font-weight: 400; letter-spacing: 0.06em;
  color: var(--turq-deep); opacity: 0.80;
}
.blog-entry .blog-cta svg { width: 12px; height: 12px; transition: transform .25s var(--ease); }
.blog-entry:hover .blog-cta { opacity: 1; }
.blog-entry:hover .blog-cta svg { transform: translateX(4px); }

/* Article hero image (top of post pages) */
.article-hero {
  width: 100%;
  aspect-ratio: 21 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 0 auto 2.5rem;
  max-width: 980px;
  background: var(--sand-soft);
  box-shadow: 0 30px 60px rgba(22,58,64,0.10);
}
.article-hero img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 760px) {
  .article-hero { aspect-ratio: 4 / 3; border-radius: var(--radius); }
}

/* Photo credit (Pexels) — small footer-style attribution */
.photo-credit {
  font-size: 0.78rem;
  color: var(--muted);
  margin: -1.5rem auto 2rem;
  text-align: center;
  max-width: 700px;
}
.photo-credit a { color: var(--muted); border-bottom: 1px solid currentColor; }
.photo-credit a:hover { color: var(--turq-deep); }

/* Article body — long-form readable */
.article {
  max-width: 700px; margin: 0 auto;
  font-size: 1.06rem; line-height: 1.8;
  color: var(--light-text);
}
.article h1 {
  font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400; color: var(--deep);
  line-height: 1.2; margin-bottom: 1rem;
}
.article .article-meta {
  display: flex; gap: 0.8rem; align-items: center; flex-wrap: wrap;
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--turq-deep); margin-bottom: 1.5rem;
}
.article .article-meta .dot { width: 4px; height: 4px; background: var(--sand-deep); border-radius: 50%; }
.article p { margin-bottom: 1.1rem; color: var(--light-text); }
.article p strong { color: var(--deep); }
.article h2, .article h3, .article h4 {
  font-family: var(--serif); color: var(--deep); font-weight: 500;
  margin-top: 2.5rem; margin-bottom: 0.85rem; line-height: 1.3;
}
.article h2 { font-size: 1.55rem; }
.article h3 { font-size: 1.3rem; }
.article h4 { font-size: 1.1rem; font-family: var(--sans); font-weight: 600; }
.article ul, .article ol { margin: 1rem 0 1.5rem 1.5rem; color: var(--light-text); }
.article li { margin-bottom: 0.4rem; }
.article hr {
  border: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 2.5rem auto; max-width: 200px;
}
.article a { color: var(--turq-deep); border-bottom: 1px solid currentColor; }
.article a:hover { color: var(--turq-dark); }
.article-back {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin: 0 0 2rem;
  color: var(--turq-deep); font-size: 0.92rem; font-weight: 500;
}
.article-back svg { width: 14px; height: 14px; transform: rotate(180deg); }

/* Group therapy "circle" decoration — concentric rings + dots */
.group-circle {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 320px;
}
.group-circle .ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid var(--turq-light);
  animation: gcSpin 60s linear infinite;
}
.group-circle .ring-1 { width: 280px; height: 280px; border-color: var(--turq); opacity: 0.35; animation-duration: 90s; }
.group-circle .ring-2 { width: 210px; height: 210px; border-color: var(--turq-light); opacity: 0.55; animation-duration: 70s; animation-direction: reverse; }
.group-circle .ring-3 { width: 140px; height: 140px; border-color: var(--sand-deep); opacity: 0.35; animation-duration: 50s; }
.group-circle .ring-dot {
  position: absolute;
  width: 14px; height: 14px;
  background: var(--turq-deep);
  border-radius: 50%;
}
.group-circle .ring-dot:nth-of-type(1) { transform: translate(135px, 0); }
.group-circle .ring-dot:nth-of-type(2) { transform: translate(-135px, 0); background: var(--sand-deep); }
.group-circle .ring-dot:nth-of-type(3) { transform: translate(0, -135px); background: var(--turq); }
.group-circle .ring-dot:nth-of-type(4) { transform: translate(0, 135px); background: var(--turq-light); }
.group-circle .ring-dot:nth-of-type(5) { transform: translate(95px, 95px); background: var(--sand); }
.group-circle .ring-dot:nth-of-type(6) { transform: translate(-95px, -95px); background: var(--turq-deep); }
@keyframes gcSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.92rem;
  color: var(--deep);
  font-weight: 400;
  letter-spacing: 0.01em;
  position: relative;
}
.nav-links a:not(.btn)::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1.5px; background: var(--teal);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-links a:not(.btn):hover::after,
.nav-links a.active:not(.btn)::after { transform: scaleX(1); }

.nav-links .btn-primary {
  background: var(--turq);
  color: var(--deep);
}
.nav-links .btn-primary:hover {
  background: var(--turq-light);
  color: var(--deep);
  box-shadow: 0 8px 20px rgba(91,184,181,0.30);
}

.mobile-menu-btn {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
}
.mobile-menu-btn span {
  display: block; width: 22px; height: 1.5px;
  background: var(--deep); margin: 4px 0;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
  border-radius: 2px;
}
.mobile-menu-btn.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 0;
    background: rgba(240,235,228,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px);
    opacity: 0; pointer-events: none;
    transition: transform .3s var(--ease), opacity .3s var(--ease);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links li { width: 100%; }
  .nav-links a:not(.btn) {
    display: block;
    padding: 0.85rem var(--gutter);
    font-size: 1rem;
  }
  .nav-links .btn {
    margin: 0.5rem var(--gutter) 0.25rem;
    justify-content: center;
  }
  .mobile-menu-btn { display: inline-flex; }
}

/* ---------- Blob shapes (decorative SVGs) ---------- */

.blob {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  filter: blur(2px);
  animation: blobBreathe 14s ease-in-out infinite;
  transform-origin: center;
}
.blob svg { width: 100%; height: 100%; display: block; }
.blob-sage  svg path { fill: var(--sage); }
.blob-teal  svg path { fill: var(--teal); }
.blob-mauve svg path { fill: var(--mauve); }
.blob-slate svg path { fill: var(--slate); }

.blob-tr { top: -120px; right: -120px; width: 480px; height: 480px; opacity: 0.18; }
.blob-bl { bottom: -160px; left: -120px; width: 520px; height: 520px; opacity: 0.15; }
.blob-r  { top: 20%; right: -180px; width: 420px; height: 420px; opacity: 0.16; }
.blob-l  { top: 30%; left: -160px; width: 400px; height: 400px; opacity: 0.18; }
.blob-c  { top: 50%; left: 50%; width: 600px; height: 600px; opacity: 0.10; transform: translate(-50%, -50%); }
.blob-c.blob.animated  { animation: blobBreatheCenter 18s ease-in-out infinite; }

@keyframes blobBreathe {
  0%, 100% { transform: scale(1) rotate(0deg); }
  33%      { transform: scale(1.06) rotate(8deg); }
  66%      { transform: scale(0.97) rotate(-6deg); }
}
@keyframes blobBreatheCenter {
  0%, 100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
  50%      { transform: translate(-50%, -50%) scale(1.08) rotate(12deg); }
}

/* Float a softer mauve blob behind hero text */
.blob-hero {
  width: 760px; height: 760px;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  opacity: 0.18;
  animation: blobBreatheCenter 22s ease-in-out infinite;
}

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

.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 8rem 0 5rem;
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--deep) 0%, var(--turq-dark) 55%, var(--turq-deep) 100%);
}
/* Looping ocean video behind hero — fades in once decoded */
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
  opacity: 0; transition: opacity 1.4s var(--ease);
  filter: sepia(0.06) saturate(0.80) brightness(1.12);
}
.hero-video.loaded { opacity: 1; }
/* Atmospheric tint over the video for legibility */
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(18,12,6,0.04) 0%, rgba(18,12,6,0.00) 28%, rgba(10,20,24,0.50) 100%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 3; max-width: 760px; color: var(--white); }
.hero-content h1, .hero-content .eyebrow, .hero-content .hero-sub { color: var(--white); }
.hero-content .eyebrow { color: var(--sky-pink); }
.hero-content .hero-sub { color: rgba(255,255,255,0.88); }

.hero h1 {
  font-size: clamp(2.7rem, 6vw, 4.6rem);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 24px rgba(15,35,48,0.35);
}
.hero h1 .line {
  display: block;
  opacity: 0;
  transform: translateY(18px);
  animation: lineRise 0.85s var(--ease) forwards;
}
.hero h1 .line:nth-child(1) { animation-delay: 0.15s; }
.hero h1 .line:nth-child(2) { animation-delay: 0.40s; color: rgba(255,255,255,0.80); font-style: italic; }
.hero h1 .line:nth-child(3) { animation-delay: 0.65s; }
@keyframes lineRise {
  to { opacity: 1; transform: none; }
}
.hero-sub {
  max-width: 36em;
  font-size: 1.12rem;
  margin-bottom: 1.1rem;
  opacity: 0;
  animation: lineRise 0.9s var(--ease) 0.95s forwards;
  text-shadow: 0 2px 18px rgba(15,35,48,0.25);
}
.hero-sub-follow {
  animation-delay: 1.1s;
  color: rgba(255,255,255,0.78) !important;
  font-size: 1.03rem;
}
.hero-sub-close {
  animation-delay: 1.25s;
  margin-bottom: 2rem;
  color: rgba(255,255,255,0.92) !important;
  font-size: 1.05rem;
}
.hero-ctas {
  display: flex; gap: 1rem; flex-wrap: wrap;
  opacity: 0;
  animation: lineRise 0.9s var(--ease) 1.15s forwards;
}

.hero-sub-page {
  min-height: 60vh;
  padding: 7rem 0 4rem;
}
.hero-sub-page h1 { font-size: clamp(2.3rem, 4.5vw, 3.4rem); margin-bottom: 0.85rem; }
.hero-sub-page .hero-sub { font-size: 1.05rem; }
.hero-sub-page .hero-video { filter: saturate(0.65) brightness(0.98); }

/* ---------- Animated waves ---------- */
.waves {
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 140px; z-index: 2; pointer-events: none;
  overflow: hidden;
}
.waves svg {
  position: absolute; bottom: 0; left: 0;
  width: 200%; height: 100%; min-width: 1200px;
}
.waves .wave-layer {
  animation: waveSlide linear infinite;
}
.waves .wave-1 { animation-duration: 18s; opacity: 0.25; }
.waves .wave-2 { animation-duration: 25s; animation-direction: reverse; opacity: 0.18; }
.waves .wave-3 { animation-duration: 32s; opacity: 0.32; }
@keyframes waveSlide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Section-divider waves (between sections) */
.wave-divider {
  position: relative; height: 60px; margin-top: -60px;
  z-index: 3; pointer-events: none;
  overflow: hidden;
}
.wave-divider svg { width: 100%; height: 100%; display: block; }

/* Drifting foam particles — hidden; too whimsical for the editorial tone */
.foam-particles {
  display: none;
  position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden;
}
.foam {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(239,226,200,0.75);
  bottom: -10px;
  animation: foamRise linear infinite;
}
@keyframes foamRise {
  0%   { transform: translateY(0) scale(0.6); opacity: 0; }
  10%  { opacity: 0.7; }
  90%  { opacity: 0.7; }
  100% { transform: translateY(-110vh) scale(1); opacity: 0; }
}

/* ---------- Recognition (familiar list) ---------- */

.familiar-list {
  margin: 2rem 0 2.25rem;
  max-width: 640px;
  margin-inline: auto;
  list-style: none;
}
.familiar-list li {
  position: relative;
  padding: 0.85rem 0 0.85rem 1.75rem;
  font-size: 1.04rem;
  color: var(--light-text);
  border-bottom: 1px solid var(--border);
}
.familiar-list li:last-child { border-bottom: 0; }
.familiar-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 1.45rem;
  width: 18px; height: 5px;
  /* small wave dash */
  background: var(--teal);
  border-radius: 3px;
  opacity: 0.7;
}
.familiar-closer {
  text-align: center;
  font-family: var(--serif);
  font-size: 1.45rem;
  color: var(--deep);
  margin-top: 1.5rem;
  font-weight: 500;
}
.familiar-subline {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  color: var(--light-text);
  margin-top: 0.25rem;
  font-size: 1.1rem;
}

/* ---------- About preview / decorative blob column ---------- */

.about-preview-art {
  position: relative;
  min-height: 360px;
}
.about-preview-art svg { width: 100%; height: auto; }
.about-preview-art .floating-blob {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.about-preview-art .floating-blob svg { width: 90%; max-width: 420px; }

/* ---------- Cards (approach / features / what we work with) ---------- */

.card-grid { gap: 1.5rem; }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2.25rem 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(15,43,50,0.05);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--teal);
  opacity: 0.75;
}
.card.accent-teal::before  { background: var(--teal-deep); }
.card.accent-mauve::before { background: var(--mauve); }
.card.accent-slate::before { background: var(--slate); }
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(15,43,50,0.08);
  border-color: rgba(108,136,136,0.28);
}
.card h3 { margin-bottom: 0.65rem; }
.card p  { font-size: 0.97rem; line-height: 1.7; color: var(--light-text); }

/* Soft chip-card variant for "what we can work through" grid */
.chip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}
@media (min-width: 760px) { .chip-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 540px) { .chip-grid { grid-template-columns: 1fr; } }

.chip-card {
  display: flex; align-items: center; gap: 0.85rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  font-size: 0.97rem;
  color: var(--deep);
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.chip-card:hover {
  transform: translateY(-2px);
  border-color: var(--sage);
  box-shadow: 0 10px 28px rgba(143,175,155,0.12);
}
.chip-dot {
  flex-shrink: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--sage);
}
.chip-card:nth-child(3n+2) .chip-dot { background: var(--teal-deep); }
.chip-card:nth-child(3n+3) .chip-dot { background: var(--mauve); }
.chip-dot {
  /* shell-like droplet */
  border-radius: 50% 50% 60% 60%;
  width: 12px; height: 14px;
}

/* ---------- Two-column "what I do / don't do" ---------- */

.list-section { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
@media (max-width: 860px) { .list-section { grid-template-columns: 1fr; gap: 2.25rem; } }

.col h3 { margin-bottom: 1rem; }
.col h4 { margin-top: 2rem; margin-bottom: 0.75rem; color: var(--deep); font-weight: 400; font-size: clamp(1.1rem, 1.8vw, 1.3rem); }
.col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.col ul li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.5rem;
  color: var(--light-text);
  font-size: 1rem;
  line-height: 1.6;
}
.col ul li::before {
  content: '';
  position: absolute; left: 0; top: 1.05rem;
  width: 14px; height: 4px;
  background: var(--teal);
  border-radius: 3px;
  opacity: 0.85;
}
.col.col-no ul li::before { background: var(--mauve); }
.col-note {
  margin-top: 1.5rem;
  padding: 1.1rem 1.25rem;
  background: var(--bg-soft);
  border-left: 3px solid var(--mauve);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--light-text);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ---------- Pricing ---------- */

.pricing {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.pricing::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--turq-deep);
}
.price {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 7vw, 5rem);
  font-weight: 300;
  color: var(--deep);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.price-sub {
  font-size: 0.95rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}
.price-note {
  max-width: 460px;
  margin: 0 auto 1.5rem;
  font-size: 0.93rem;
  color: var(--light-text);
}
.price-includes {
  list-style: none;
  text-align: left;
  max-width: 480px;
  margin: 1.5rem auto 0;
}
.price-includes li {
  padding: 0.55rem 0 0.55rem 1.85rem;
  position: relative;
  color: var(--light-text);
  font-size: 0.97rem;
  border-top: 1px solid var(--border);
}
.price-includes li:first-child { border-top: 0; }
.price-includes li::before {
  content: '✓';
  position: absolute; left: 0; top: 0.65rem;
  color: var(--teal);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---------- Pull quote (final CTA italic) ---------- */

.pull-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  line-height: 1.4;
  color: rgba(255,255,255,0.92);
  margin-bottom: 2rem;
  max-width: 720px;
  margin-inline: auto;
}

/* ---------- FAQ accordion ---------- */

.faq-list { max-width: 760px; margin: 2rem auto 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  padding: 1.35rem 0;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--deep);
  text-align: left;
  transition: color .25s var(--ease);
}
.faq-q:hover { color: var(--teal-deep); }
.faq-icon {
  width: 18px; height: 18px;
  flex-shrink: 0;
  position: relative;
  transition: transform .35s var(--ease);
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  background: var(--teal-deep);
  border-radius: 1px;
}
.faq-icon::before { top: 50%; left: 0; right: 0; height: 1.5px; transform: translateY(-50%); }
.faq-icon::after  { left: 50%; top: 0; bottom: 0; width: 1.5px; transform: translateX(-50%); transition: transform .35s var(--ease); }
.faq-item.open .faq-icon::after { transform: translateX(-50%) scaleY(0); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s var(--ease);
}
.faq-a-inner {
  padding: 0 0 1.4rem;
  color: var(--light-text);
  font-size: 0.98rem;
  line-height: 1.75;
}

/* ---------- Apply form ---------- */

.form-wrap {
  max-width: 720px; margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 24px 60px rgba(44,44,44,0.05);
}
@media (max-width: 600px) { .form-wrap { padding: 1.75rem 1.25rem; } }

.fg { margin-bottom: 1.4rem; }
.fg label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--deep);
  margin-bottom: 0.45rem;
}
.fg input[type=text],
.fg input[type=email],
.fg input[type=tel],
.fg select,
.fg textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--sans);
  font-size: 0.97rem;
  color: var(--deep);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  min-height: 44px;
}
.fg textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.fg input:focus,
.fg select:focus,
.fg textarea:focus {
  outline: none;
  border-color: var(--sage);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(143,175,155,0.18);
}

.fg select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16' fill='%235A5A5A'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.opt-group { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.opt-group label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--light-text);
  font-weight: 400;
  letter-spacing: 0;
  cursor: pointer;
  margin-bottom: 0;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
  min-height: 40px;
}
.opt-group label:has(input:checked) {
  background: var(--sage-soft);
  border-color: var(--sage);
  color: var(--deep);
}
.opt-group input { accent-color: var(--sage); margin: 0; }

.form-submit {
  width: 100%;
  margin-top: 0.75rem;
  justify-content: center;
}

.form-thanks {
  text-align: center;
  padding: 2.5rem 1rem;
  display: none;
}
.form-thanks.show { display: block; }

/* Inline error / fallback notice under the submit button */
.form-error {
  display: none;
  margin: 0.85rem 0 0;
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-sm);
  background: var(--sand-soft);
  border-left: 3px solid var(--sand-deep);
  color: var(--deep);
  font-size: 0.9rem;
  line-height: 1.55;
}
.form-error.show { display: block; }
.form-error a {
  color: var(--turq-deep);
  border-bottom: 1px solid currentColor;
  margin-left: 0.35rem;
  font-weight: 500;
}
.form-error a:hover { color: var(--turq-dark); }
.btn[disabled] { opacity: 0.7; cursor: progress; transform: none !important; }
.form-thanks h3 {
  font-size: 1.65rem;
  margin-bottom: 0.85rem;
}
.form-thanks p {
  max-width: 460px;
  margin: 0 auto 1.5rem;
}

.form-wrap.submitted .form-fields { display: none; }

/* ---------- Contact strip ---------- */

.contact-strip {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center;
  gap: 1.5rem;
  padding: 1.75rem 2rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 2rem;
}
.contact-strip a {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-weight: 500;
  color: var(--deep);
  font-size: 0.97rem;
}
.contact-strip a:hover { color: var(--teal-deep); }
.contact-strip svg { width: 18px; height: 18px; color: var(--teal-deep); }
.contact-strip .sep { color: var(--border); user-select: none; }
@media (max-width: 600px) {
  .contact-strip { flex-direction: column; gap: 0.85rem; padding: 1.5rem; }
  .contact-strip .sep { display: none; }
}

/* Schedule list — used on group page format card */
.schedule-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.schedule-list li {
  display: flex; align-items: baseline; gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.97rem;
  color: var(--light-text);
}
.schedule-list li:last-child { border-bottom: 0; }
.sched-label {
  flex: 0 0 110px;
  font-size: 0.74rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--turq-deep);
  font-weight: 500;
}
@media (max-width: 540px) {
  .schedule-list li { flex-direction: column; gap: 0.2rem; padding: 0.65rem 0; }
  .sched-label { flex: 0; }
}

/* Subtle inline group mention — italic serif aside, never a strip */
.group-aside {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.04em;
  color: var(--light-text);
  margin: 1.25rem 0 0;
  line-height: 1.55;
}
.group-aside a {
  color: var(--turq-deep);
  border-bottom: 1px solid currentColor;
  font-style: normal;
  padding-bottom: 1px;
}
.group-aside a:hover { color: var(--turq-dark); }

/* ---------- Testimonial carousel ---------- */

.testimonials { padding: 5.5rem 0; }

.testimonial-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 2.5rem auto 0;
}

.testimonial-card {
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(0.98rem, 1.5vw, 1.08rem);
  font-weight: 300;
  line-height: 1.68;
  color: var(--deep);
  margin: 0;
  flex: 1;
}

.quote-attr {
  font-family: var(--sans);
  font-size: 0.70rem;
  font-weight: 400;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
  display: block;
}

@media (max-width: 900px) {
  .testimonial-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .testimonial-cards { grid-template-columns: 1fr; }
}

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

footer {
  background: #2A5452;
  color: rgba(255,255,255,0.80);
  padding: 4rem 0 2rem;
}
footer h4 {
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

.footer-brand .nav-logo { color: var(--white); margin-bottom: 0.85rem; font-size: 1.35rem; }
.footer-brand .nav-logo .logo-mark path { stroke: var(--white); }
.footer-tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  color: rgba(255,255,255,0.5);
  max-width: 18em;
  line-height: 1.5;
}
.footer-list { list-style: none; }
.footer-list li { padding: 0.3rem 0; }
.footer-list a {
  color: rgba(255,255,255,0.7);
  font-size: 0.93rem;
}
.footer-list a:hover { color: var(--white); }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.83rem;
  color: rgba(255,255,255,0.4);
}

/* ---------- Scroll fade-in ---------- */

.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.fade-up.visible { opacity: 1; transform: none; }

.fade-up.delay-1 { transition-delay: 0.08s; }
.fade-up.delay-2 { transition-delay: 0.16s; }
.fade-up.delay-3 { transition-delay: 0.24s; }
.fade-up.delay-4 { transition-delay: 0.32s; }
.fade-up.delay-5 { transition-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero h1 .line, .hero-sub, .hero-ctas { opacity: 1; transform: none; }
}

/* ---------- Misc ---------- */

.muted { color: var(--muted); }
.small { font-size: 0.87rem; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
