/* =========================================================================
   Wayfarer Strategic Counseling — PREMIUM CONCEPT
   A standalone cinematic overhaul. Does NOT touch the production site.
   Theme: deep cinematic nautical · aerial longship · brass + sea-glass
   Hand-authored, no build step.
   ========================================================================= */

/* ----------------------------------------------------------------------- *
   1. Tokens
 * ----------------------------------------------------------------------- */
:root {
  --abyss:    #070d15;
  --navy-950: #0a121d;
  --navy-900: #0d1828;
  --navy-850: #101f31;
  --navy-800: #142a40;
  --navy-700: #1d3a55;
  --steel-500:#5f7e9a;
  --steel-400:#86a0b8;
  --mist:     #b9c8d6;

  --teal-600: #1f5c5f;
  --teal-500: #2c8184;
  --teal-400: #46a7a3;
  --teal-300: #6fc7c0;

  --brass-700:#8a6736;
  --brass-600:#a07c45;
  --brass-500:#b08d57;
  --brass-400:#c9a973;
  --brass-300:#e2c590;
  --brass-200:#f0dcae;

  --cream:    #f7f2e7;
  --ivory:    #fcfaf4;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --maxw: 1200px;
  --maxw-prose: 760px;
  --radius: 20px;
  --radius-sm: 13px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 88px;

  --glass: rgba(247, 242, 231, 0.045);
  --glass-2: rgba(247, 242, 231, 0.02);
  --hair: rgba(201, 169, 115, 0.20);
  --hair-soft: rgba(247, 242, 231, 0.10);

  --shadow-lg: 0 40px 90px -40px rgba(0,0,0,.85);
  --shadow-md: 0 24px 50px -28px rgba(0,0,0,.7);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.78;
  color: var(--mist);
  background: var(--navy-950);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* page-load + page-transition fade */
body.is-leaving { opacity: 0; transition: opacity .4s var(--ease); }

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.018em;
  color: var(--ivory);
  font-optical-sizing: auto;
}
h1 { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); font-weight: 500; }
h4 { font-size: 1.05rem; font-weight: 500; }

p { color: var(--steel-400); }
p + p { margin-top: 1.05rem; }
strong { color: var(--cream); font-weight: 600; }
em { color: var(--mist); }

::selection { background: var(--brass-500); color: var(--abyss); }

:focus-visible { outline: 2px solid var(--brass-300); outline-offset: 4px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 50%; top: -100px; transform: translateX(-50%);
  background: var(--brass-400); color: var(--abyss); padding: .6rem 1.2rem; border-radius: 0 0 10px 10px;
  font-weight: 600; z-index: 200; transition: top .25s var(--ease);
}
.skip-link:focus { top: 0; color: var(--abyss); }

/* film-grain + vignette overlays (premium texture) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: .035; mix-blend-mode: overlay;
}

/* ----------------------------------------------------------------------- *
   3. Layout helpers
 * ----------------------------------------------------------------------- */
.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
main { position: relative; z-index: 2; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-body); font-weight: 600;
  font-size: .73rem; letter-spacing: .26em; text-transform: uppercase; color: var(--brass-400);
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brass-400));
}
.eyebrow.center { justify-content: center; }
.eyebrow.no-rule::before { display: none; }

.lead { color: var(--mist); font-size: clamp(1.08rem, 1.8vw, 1.3rem); line-height: 1.6; }
.text-grad {
  background: linear-gradient(96deg, var(--ivory) 0%, var(--brass-200) 48%, var(--teal-300) 105%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2.25rem; }
.text-center { text-align: center; }

/* ----------------------------------------------------------------------- *
   4. Scroll progress (thin brass bar)
 * ----------------------------------------------------------------------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%; z-index: 100;
  background: linear-gradient(90deg, var(--teal-400), var(--brass-300));
  box-shadow: 0 0 12px rgba(226,197,144,.6);
}

/* ----------------------------------------------------------------------- *
   5. Buttons
 * ----------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 600; font-size: .96rem; letter-spacing: .01em;
  padding: .95rem 1.8rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease-out), box-shadow .35s var(--ease), background .3s, color .3s, border-color .3s;
  will-change: transform;
}
.btn .arrow { transition: transform .35s var(--ease-out); }
.btn:hover .arrow { transform: translateX(5px); }

.btn--brass {
  color: var(--abyss);
  background: linear-gradient(118deg, var(--brass-200), var(--brass-500) 70%);
  box-shadow: 0 14px 34px -14px rgba(176,141,87,.75), inset 0 1px 0 rgba(255,255,255,.45);
}
.btn--brass:hover { color: var(--abyss); box-shadow: 0 22px 46px -16px rgba(201,169,115,.9), inset 0 1px 0 rgba(255,255,255,.55); }

.btn--ghost {
  color: var(--cream); border-color: var(--hair);
  background: var(--glass); backdrop-filter: blur(8px);
}
.btn--ghost:hover { color: var(--ivory); border-color: var(--brass-300); background: rgba(247,242,231,.07); }

.btn--lg { padding: 1.05rem 2.1rem; font-size: 1.02rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }

.link-arrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--brass-300); }
.link-arrow .arrow { transition: transform .35s var(--ease-out); }
.link-arrow:hover { color: var(--brass-200); }
.link-arrow:hover .arrow { transform: translateX(5px); }

/* ----------------------------------------------------------------------- *
   6. Header
 * ----------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--header-h);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background .45s var(--ease), backdrop-filter .45s, border-color .45s, height .45s;
}
.site-header.is-scrolled {
  background: rgba(8, 15, 24, .76); backdrop-filter: blur(16px) saturate(1.3);
  border-bottom-color: var(--hair);
}
.nav { display: flex; align-items: center; justify-content: space-between; width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.brand { display: flex; align-items: center; gap: .9rem; color: var(--ivory); }
.brand__mark {
  width: 78px; height: 78px; flex: none; object-fit: contain;
  /* soft luminous halo — no hard "coin" edge — lifts the dark logo off the dark header */
  background:
    radial-gradient(circle at 50% 48%,
      rgba(250,245,234,.66) 0%,
      rgba(250,245,234,.40) 32%,
      rgba(250,245,234,.14) 52%,
      rgba(250,245,234,0) 70%);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.5)) drop-shadow(0 0 16px rgba(226,197,144,.22));
  transition: transform .45s var(--ease-out), filter .45s var(--ease);
}
.brand:hover .brand__mark {
  transform: scale(1.06) rotate(-1deg);
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.55)) drop-shadow(0 0 18px rgba(226,197,144,.32));
}
.brand__text { display: flex; flex-direction: column; justify-content: center; line-height: 1.18; }
.brand__name {
  font-family: var(--font-display); font-weight: 500; font-size: 1.16rem; color: var(--ivory);
  letter-spacing: .005em; white-space: nowrap;
}
.brand__sub {
  font-size: .64rem; letter-spacing: .24em; text-transform: uppercase; color: var(--brass-400);
  margin-top: 3px; white-space: nowrap;
}

.nav__menu { display: flex; align-items: center; gap: 2.4rem; }
.nav__links { display: flex; gap: 1.9rem; list-style: none; padding: 0; }
.nav__links a {
  position: relative; color: var(--steel-400); font-weight: 500; font-size: .95rem; padding: .35rem 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1.5px; width: 0;
  background: linear-gradient(90deg, var(--brass-300), var(--teal-400)); transition: width .35s var(--ease-out);
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ivory); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { width: 100%; }

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; z-index: 61; }
.nav__toggle span { width: 24px; height: 2px; background: var(--ivory); border-radius: 2px; transition: transform .3s, opacity .3s; }

/* ----------------------------------------------------------------------- *
   7. HOME HERO — cinematic aerial ocean + sailing longship (canvas)
 * ----------------------------------------------------------------------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #06101b 0%, #0a1a28 45%, #103038 100%);
}
/* photographic hero (royalty-free, dark navy-graded) */
.hero__photo {
  position: absolute; inset: 0; z-index: -2;
  /* Navy-graded overlay gradients over Robert's self-hosted hero photo */
  background-image:
    linear-gradient(92deg, rgba(7,14,23,.95) 0%, rgba(7,14,23,.72) 38%, rgba(7,14,23,.34) 72%, rgba(11,30,40,.42) 100%),
    linear-gradient(180deg, rgba(7,14,23,.45) 0%, rgba(7,14,23,.2) 38%, rgba(7,14,23,.72) 100%),
    url("../img/hero-home.jpg");
  background-size: cover;
  background-position: center, center, 50% 54%;
  background-repeat: no-repeat;
  filter: saturate(0.8) contrast(1.02);
}
/* fallback gradient sea if canvas/JS unavailable */
.hero__fallback {
  position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(60% 50% at 70% 18%, rgba(226,197,144,.18), transparent 60%),
    radial-gradient(90% 70% at 30% 90%, rgba(70,167,163,.22), transparent 60%),
    linear-gradient(180deg, #06101b, #0c2230 60%, #114048);
}
.hero__vignette {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6,16,27,.55) 0%, transparent 30%, transparent 55%, rgba(6,16,27,.65) 100%),
    radial-gradient(120% 100% at 50% 40%, transparent 55%, rgba(4,9,15,.7) 100%);
}

.hero__inner { position: relative; z-index: 3; max-width: 720px; padding: calc(var(--header-h) + 4rem) 0 8rem; }
.hero h1 { margin-top: 1.1rem; }
.hero h1 .line { display: block; }
.hero__lead { margin-top: 1.7rem; font-size: clamp(1.08rem, 1.8vw, 1.35rem); color: var(--mist); max-width: 40ch; }
.hero__cta { margin-top: 2.3rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__meta { margin-top: 2.8rem; display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; }
.hero__meta span { display: inline-flex; align-items: center; gap: .55rem; font-size: .88rem; color: var(--steel-400); }
.hero__meta svg { width: 19px; height: 19px; color: var(--brass-400); flex: none; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 1.6rem; z-index: 4; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  color: var(--steel-500); font-size: .68rem; letter-spacing: .24em; text-transform: uppercase;
}
.scroll-cue .mouse { width: 22px; height: 36px; border: 1.5px solid var(--steel-500); border-radius: 12px; position: relative; }
.scroll-cue .mouse::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; background: var(--brass-300); border-radius: 2px; transform: translateX(-50%); animation: wheel 1.7s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translate(-50%,0);} 30% { opacity: 1;} 100% { opacity: 0; transform: translate(-50%,12px);} }

/* ---- Narrative hero scene (lighthouse · longship · channel · compass) ---- */
.scene { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.scene svg { width: 100%; height: 100%; display: block; }
.scene * { transform-box: view-box; }

.scene .stars { animation: starGlow 6s ease-in-out infinite alternate; }
@keyframes starGlow { from { opacity: .55; } to { opacity: 1; } }

.scene .moon-glow { animation: moonPulse 7s ease-in-out infinite alternate; }
@keyframes moonPulse { from { opacity: .8; } to { opacity: 1; } }

/* lighthouse beam sweeping across the water */
.scene .beam { transform-origin: 1330px 178px; mix-blend-mode: screen; animation: sweep 11s ease-in-out infinite alternate; }
@keyframes sweep { from { transform: rotate(-16deg); } to { transform: rotate(10deg); } }
.scene .lamp-glow { transform-origin: 1330px 178px; animation: lampPulse 4.5s ease-in-out infinite; }
@keyframes lampPulse { 0%,100% { opacity: .7; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.08); } }

/* water shimmer */
.scene .shimmer { animation: shimmer 5s ease-in-out infinite alternate; }
@keyframes shimmer { from { opacity: .35; } to { opacity: .7; } }
.scene .swell { animation: swell 9s ease-in-out infinite alternate; }
@keyframes swell { from { transform: translateX(-10px); } to { transform: translateX(10px); } }

/* the longship sailing out of the channel into open water */
.scene .voyage { animation: voyage 46s linear infinite; }
@keyframes voyage {
  0%   { transform: translateX(0);     opacity: 0; }
  6%   { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateX(-760px); opacity: 0; }
}
.scene .bob { transform-box: fill-box; transform-origin: center; animation: bob 6.5s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-1.2deg); } 50% { transform: translateY(-7px) rotate(1.2deg); } }

/* faint rotating compass — the tools gained in therapy */
.scene .compass-rose { transform-origin: 318px 624px; animation: spin 120s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  .scene .voyage { transform: translateX(-360px); opacity: 1; }
}
@media (max-width: 860px) {
  /* stronger scrim so the headline stays crisp over the scene */
  .hero__vignette {
    background:
      linear-gradient(180deg, rgba(6,16,27,.5) 0%, rgba(6,16,27,.42) 22%, rgba(6,16,27,.58) 50%, rgba(6,16,27,.8) 100%),
      radial-gradient(150% 80% at 78% 18%, transparent 34%, rgba(4,9,15,.55) 100%);
  }
  /* on narrow screens the ship travels less so it stays beside the lighthouse */
  .scene .voyage { animation-name: voyageShort; }
  @keyframes voyageShort {
    0% { transform: translateX(40px); opacity: 0; }
    8% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateX(-300px); opacity: 0; }
  }
}

/* ----------------------------------------------------------------------- *
   8. INTERIOR PAGE HERO — shorter cinematic banner with drifting water
 * ----------------------------------------------------------------------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: calc(var(--header-h) + 5rem) 0 4.5rem;
  background: linear-gradient(180deg, #06101b 0%, #0b1f2c 70%, #0d2630 100%);
}
.page-hero__waves { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.page-hero__waves .pw {
  position: absolute; left: 0; right: 0; height: 150px;
  background-repeat: repeat-x; background-position: 0 bottom; background-size: 1200px 150px;
}
.page-hero__waves .pw1 {
  bottom: 0; opacity: .45;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='150' viewBox='0 0 1200 150'%3E%3Cpath fill='%231f5c5f' d='M0 70c150 40 300-30 450 0s300 50 450 10 250-20 300-10v80H0z'/%3E%3C/svg%3E");
  animation: tide 28s linear infinite;
}
.page-hero__waves .pw2 {
  bottom: -8px; opacity: .7;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='150' viewBox='0 0 1200 150'%3E%3Cpath fill='%230e2b33' d='M0 90c150 40 300-30 450 0s300 50 450 10 250-20 300-10v70H0z'/%3E%3C/svg%3E");
  animation: tide 18s linear infinite reverse;
}
.page-hero__vignette { position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 120% at 50% 0%, transparent 50%, rgba(4,9,15,.6)); pointer-events: none; }
@keyframes tide { from { background-position-x: 0; } to { background-position-x: -1200px; } }
@keyframes drift { from { transform: translateX(0);} to { transform: translateX(-50%);} }

.breadcrumb { font-size: .82rem; letter-spacing: .08em; color: var(--steel-500); }
.breadcrumb a { color: var(--steel-400); }
.breadcrumb a:hover { color: var(--brass-300); }
.page-hero h1 { margin-top: .9rem; font-size: clamp(2.3rem, 5vw, 3.7rem); }
.page-hero > .container > p { margin-top: 1.1rem; max-width: 60ch; color: var(--mist); font-size: 1.1rem; }

/* small longship ornament line */
.ornament { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 0 auto; color: var(--brass-500); }
.ornament::before, .ornament::after { content: ""; height: 1px; width: min(120px, 18vw); background: linear-gradient(90deg, transparent, var(--brass-600)); }
.ornament::after { background: linear-gradient(90deg, var(--brass-600), transparent); }
.ornament svg { width: 30px; height: 30px; }

/* ----------------------------------------------------------------------- *
   9. Sections
 * ----------------------------------------------------------------------- */
.section { position: relative; padding: clamp(4.5rem, 10vw, 8rem) 0; }
.section--tight { padding: clamp(3rem, 7vw, 5rem) 0; }
.bg-deep { background: linear-gradient(180deg, #0a121d, #0c1b29); }
.bg-mid  { background: linear-gradient(180deg, #0c1b29, #0a1622); }
.bg-abyss{ background: var(--abyss); }
.section-head { max-width: 660px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: .9rem; }

/* split */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--reverse .split__media { order: -1; }
.split p { margin-top: 1.1rem; }

/* grids */
.grid { display: grid; gap: 1.4rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.mt-grid { margin-top: 3rem; }

/* glass cards */
.glass {
  position: relative; padding: 1.9rem 1.7rem; border-radius: var(--radius);
  background: linear-gradient(162deg, var(--glass), var(--glass-2));
  border: 1px solid var(--hair-soft); backdrop-filter: blur(8px); overflow: hidden;
  transition: transform .5s var(--ease-out), border-color .4s, box-shadow .5s;
}
.glass::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(140% 90% at var(--mx,50%) var(--my,0%), rgba(226,197,144,.16), transparent 55%);
  opacity: 0; transition: opacity .4s;
}
.glass::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--hair), transparent);
}
.glass:hover { transform: translateY(-7px); border-color: var(--hair); box-shadow: var(--shadow-md); }
.glass:hover::before { opacity: 1; }
.glass h3 { margin-bottom: .55rem; }
.glass p { color: var(--steel-400); font-size: .98rem; }
.glass__icon {
  width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 1.15rem;
  background: linear-gradient(140deg, rgba(70,167,163,.2), rgba(176,141,87,.18)); border: 1px solid var(--hair);
}
.glass__icon svg { width: 25px; height: 25px; color: var(--brass-300); }
.glass .num { font-family: var(--font-display); font-size: 2.5rem; color: rgba(226,197,144,.42); line-height: 1; display: block; }

/* media frame */
.media {
  position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--hair);
  background: linear-gradient(160deg, #11243a, #0a1622); box-shadow: var(--shadow-lg);
}
.media--portrait { aspect-ratio: 3/4; }
.media--landscape { aspect-ratio: 4/3; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media__fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--steel-500); }
.media__badge { position: absolute; left: 1rem; bottom: 1rem; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-300); background: rgba(8,15,24,.6); border: 1px solid var(--hair); padding: .35rem .7rem; border-radius: 8px; backdrop-filter: blur(6px); }

.compass { position: absolute; inset: 0; margin: auto; width: 62%; animation: spin 64s linear infinite; }
.compass--needle { animation: needle 7s ease-in-out infinite; transform-origin: 50% 50%; }
@keyframes spin { to { transform: rotate(360deg);} }
@keyframes needle { 0%,100% { transform: rotate(-8deg);} 50% { transform: rotate(12deg);} }

/* quote band */
.quote-band {
  position: relative; padding: clamp(4.5rem, 10vw, 7.5rem) 0; text-align: center; overflow: hidden;
  background: radial-gradient(80% 130% at 50% 0%, rgba(70,167,163,.13), transparent 60%), linear-gradient(180deg, #070f19, #0a121d);
}
.quote-band .mark { font-family: var(--font-display); font-size: 8rem; line-height: 0; color: rgba(226,197,144,.18); display: block; height: 2.6rem; }
.quote-band blockquote { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: clamp(1.5rem,3.4vw,2.5rem); line-height: 1.32; color: var(--ivory); max-width: 20ch; margin: 0 auto; letter-spacing: -.01em; }
.quote-band cite { display: block; margin-top: 1.4rem; font-style: normal; color: var(--brass-400); letter-spacing: .14em; text-transform: uppercase; font-size: .76rem; }

/* checklist */
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 2.1rem; margin-top: .9rem; color: var(--mist); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .42rem; width: 21px; height: 21px;
  background: linear-gradient(140deg, var(--teal-500), var(--brass-500)); border-radius: 6px;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'><path d='M20 6 9 17l-5-5' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/13px no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'><path d='M20 6 9 17l-5-5' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/13px no-repeat;
}

/* stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.stat { text-align: center; padding: 1.7rem 1rem; border-radius: var(--radius); border: 1px solid var(--hair-soft); background: var(--glass); }
.stat .n { font-family: var(--font-display); font-size: clamp(2.2rem,4vw,3rem); color: var(--brass-300); line-height: 1; }
.stat .l { margin-top: .5rem; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--steel-400); }

/* pricing */
.price { display: flex; align-items: baseline; gap: .45rem; margin: .8rem 0; }
.price .amt { font-family: var(--font-display); font-size: 3.2rem; color: var(--ivory); line-height: 1; }
.price .per { color: var(--steel-400); }
.price--word .amt { font-size: 1.7rem; line-height: 1.15; }

/* callout */
.callout {
  position: relative; padding: 1.8rem 1.9rem 1.8rem 2.2rem; border-radius: var(--radius);
  background: linear-gradient(162deg, var(--glass), var(--glass-2)); border: 1px solid var(--hair-soft);
  border-left: 3px solid var(--brass-500);
}
.callout--teal { border-left-color: var(--teal-400); }
.callout--crisis { border-left-color: #d4574e; background: linear-gradient(162deg, rgba(212,87,78,.08), var(--glass-2)); }
.callout h3 { margin-bottom: .5rem; }
.callout ul { margin-top: .8rem; padding-left: 1.2rem; color: var(--mist); }
.callout li + li { margin-top: .4rem; }

/* FAQ */
.faq { max-width: 860px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--hair-soft); }
.faq__q {
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.5rem 0; font-family: var(--font-display); font-size: clamp(1.1rem,1.8vw,1.3rem); color: var(--ivory);
  transition: color .25s;
}
.faq__q:hover { color: var(--brass-300); }
.faq__icon { position: relative; flex: none; width: 22px; height: 22px; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; background: var(--brass-400); border-radius: 2px; transition: transform .35s var(--ease); }
.faq__icon::before { top: 10px; left: 0; width: 22px; height: 2px; }
.faq__icon::after { top: 0; left: 10px; width: 2px; height: 22px; }
.faq__item.is-open .faq__icon::after { transform: scaleY(0); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.faq__a-inner { padding: 0 0 1.5rem; color: var(--steel-400); max-width: 70ch; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem,5vw,4rem); align-items: start; }
.info-list { list-style: none; padding: 0; }
.info-list li { display: flex; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--hair-soft); }
.info-list .ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--glass); border: 1px solid var(--hair); }
.info-list .ico svg { width: 22px; height: 22px; color: var(--brass-300); }
.info-list .lbl { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-400); }
.info-list .val { color: var(--mist); }

.form-card { padding: 2rem; border-radius: var(--radius); background: linear-gradient(162deg, var(--glass), var(--glass-2)); border: 1px solid var(--hair); box-shadow: var(--shadow-md); }
.field { margin-top: 1rem; }
.field label { display: block; font-size: .82rem; letter-spacing: .06em; color: var(--steel-400); margin-bottom: .4rem; }
.field input, .field textarea {
  width: 100%; padding: .85rem 1rem; border-radius: 12px; font: inherit; color: var(--ivory);
  background: rgba(7,13,21,.55); border: 1px solid var(--hair-soft); transition: border-color .25s, box-shadow .25s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brass-400); box-shadow: 0 0 0 3px rgba(176,141,87,.18); }
.field input::placeholder, .field textarea::placeholder { color: var(--steel-500); }
.form-note { font-size: .85rem; color: var(--steel-500); margin-top: 1rem; }
.hp-field { position: absolute; left: -9999px; }
.form-status { margin-top: 1rem; padding: .85rem 1rem; border-radius: 12px; font-size: .92rem; line-height: 1.5; }
.form-status--ok { color: var(--ivory); background: linear-gradient(162deg, rgba(70,167,163,.16), rgba(70,167,163,.06)); border: 1px solid rgba(70,167,163,.4); }
.form-status--err { color: var(--ivory); background: linear-gradient(162deg, rgba(212,87,78,.14), rgba(212,87,78,.05)); border: 1px solid rgba(212,87,78,.4); }
.form-status--err a { color: var(--brass-300); }
/* PHI / not-secure notice on the contact form */
.form-privacy {
  display: flex; gap: .75rem; align-items: flex-start;
  margin-top: 1.1rem; padding: .9rem 1rem; border-radius: 14px;
  background: linear-gradient(162deg, rgba(212,87,78,.10), rgba(212,87,78,.04));
  border: 1px solid rgba(212,87,78,.32); border-left: 3px solid #d4574e;
}
.form-privacy__ico { flex: none; color: #e08a82; margin-top: .1rem; }
.form-privacy__ico svg { width: 22px; height: 22px; display: block; }
.form-privacy p { margin: 0; font-size: .86rem; line-height: 1.6; color: var(--steel-300, #b9c6d4); }
.form-privacy strong { color: var(--ivory); }

/* prose / legal */
.prose { max-width: var(--maxw-prose); margin-inline: auto; }
.prose.legal h2 { margin-top: 2.6rem; padding-top: 2rem; border-top: 1px solid var(--hair-soft); font-size: clamp(1.5rem,2.6vw,2rem); }
.prose.legal h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.prose.legal h3 { margin-top: 1.8rem; color: var(--cream); }
.prose.legal p, .prose.legal ul { margin-top: 1rem; }
.prose.legal ul { padding-left: 1.3rem; color: var(--mist); }
.prose.legal li + li { margin-top: .5rem; }
.prose .updated { color: var(--steel-500); font-size: .9rem; }

/* CTA band */
.cta-band {
  position: relative; text-align: center; overflow: hidden;
  background: radial-gradient(70% 130% at 50% 120%, rgba(176,141,87,.2), transparent 60%), linear-gradient(180deg, #0b1a27, #070f19);
}
.cta-band h2 { margin-top: .9rem; }
.cta-band p { color: var(--mist); max-width: 50ch; margin: 1rem auto 0; }
.cta-band .hero__cta { justify-content: center; margin-top: 2.2rem; }

/* ----------------------------------------------------------------------- *
   10. Reveal animations
 * ----------------------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
[data-reveal="left"] { transform: translateX(-34px); }
[data-reveal="right"] { transform: translateX(34px); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-group] > * { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
[data-reveal-group].is-visible > * { opacity: 1; transform: none; }
[data-reveal-group].is-visible > *:nth-child(2) { transition-delay: .08s; }
[data-reveal-group].is-visible > *:nth-child(3) { transition-delay: .16s; }
[data-reveal-group].is-visible > *:nth-child(4) { transition-delay: .24s; }
[data-reveal-group].is-visible > *:nth-child(5) { transition-delay: .32s; }
[data-reveal-group].is-visible > *:nth-child(6) { transition-delay: .40s; }

/* ----------------------------------------------------------------------- *
   11. Footer
 * ----------------------------------------------------------------------- */
.site-footer { position: relative; z-index: 2; background: var(--abyss); padding: 4.5rem 0 2rem; border-top: 1px solid var(--hair); }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer-grid h4 { color: var(--brass-400); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer-about p { margin-top: 1.1rem; color: var(--steel-400); max-width: 36ch; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-top: .55rem; }
.footer-links a { color: var(--steel-400); }
.footer-links a:hover { color: var(--ivory); }
.footer-license { color: var(--steel-400); font-size: .92rem; line-height: 1.85; }
.footer-notice, .footer-disclaimer { font-size: .8rem; color: #6f8094; margin-top: 2rem; line-height: 1.7; max-width: 90ch; }
.footer-notice strong { color: var(--brass-400); }
.footer-disclaimer strong { color: var(--brass-300); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.06); font-size: .82rem; color: #5f7186; }
.badge { display: inline-block; margin-top: 1.2rem; padding: .35rem .85rem; border-radius: 999px; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-300); border: 1px solid var(--hair); background: rgba(176,141,87,.08); }
/* Psychology Today verified seal (footer) */
.pt-seal { margin-top: 1.4rem; }
.pt-seal img { display: block; height: auto; max-width: 150px; border-radius: 6px; }

/* ----------------------------------------------------------------------- *
   12. Responsive
 * ----------------------------------------------------------------------- */
@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .split, .grid--2, .grid--3, .contact-grid { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .nav__menu {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 1.6rem; padding: 2.2rem 2rem 2.6rem;
    background: rgba(7,13,21,.97); backdrop-filter: blur(16px); border-bottom: 1px solid var(--hair);
    transform: translateY(-130%); transition: transform .5s var(--ease-out);
  }
  body.nav-open .nav__menu { transform: translateY(0); }
  .nav__links { flex-direction: column; gap: 1.1rem; }
  .nav__toggle { display: flex; }
  body.nav-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav__toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 620px) {
  .grid--4, .stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .hero__inner { padding-bottom: 6rem; }
}

/* ----------------------------------------------------------------------- *
   13. Reduced motion
 * ----------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  [data-reveal], [data-reveal-group] > * { opacity: 1 !important; transform: none !important; }
  .hero__canvas { display: none; }
}
