/* Holistic Leaders Consulting — design system, rebuilt from Pamela's own
   actual material (her "Leadership Reading Resources" guide, the real
   source of truth — not an AI demo site): dusty sage, near-black, warm
   cream, a black-and-cream ampersand roundel, a row of real moon phases,
   and the real structural signature — color blocks that don't end in a
   straight line. They end in a big, smooth, organic curve that overlaps
   into the next block, with real shadow and depth. That's the difference
   between a designed page and a stack of rectangles, no matter how nice
   the gradient inside each rectangle is. */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Fraunces:ital,opsz,wght@1,9..144,400;1,9..144,500&family=Work+Sans:wght@400;500;600&display=swap');

:root {
  --void: #15170f;
  --void-2: #1d2016;
  --sage: #5c6d67;
  --sage-dim: #4a5852;
  --cream: #f4efe4;
  --cream-dim: #cfc9ba;
  --ink: #1a1c14;
  --accent: #5c6d67;
  --accent-bright: #7d8a85;

  --display: 'Fraunces', Georgia, serif;
  --body: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --gap: clamp(1.5rem, 4vw, 3rem);
  --section-pad: clamp(6rem, 11vw, 9rem);
  --measure: 62ch;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--void);
  color: var(--cream);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
  width: 100%;
}

/* Fine grain over every dark ground — the thing that separates a $500
   template flat-fill from a designed surface. */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%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)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---- type scale ---- */
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(3rem, 8vw, 6.8rem); line-height: 0.98; font-weight: 400; letter-spacing: -0.02em; }
h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.05; }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.25; }

/* Gradient ink on the one word that should hit hardest per hero — warm gold
   to cream, her own material's palette, not an imported color. */
.ink-glow {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-bright) 45%, var(--cream) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.eyebrow {
  font-family: var(--body); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-bright);
}
p { margin: 0 0 1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }
.lede { font-size: 1.2rem; color: var(--cream-dim); }

/* ---- layout ---- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(1.5rem, 5vw, 3rem); }
.section { padding: var(--section-pad) 0; position: relative; z-index: 1; }
.nav, .footer { position: relative; z-index: 1; }
.section--sage { background: var(--sage); color: var(--ink); }
.section--sage h1, .section--sage h2, .section--sage h3 { color: var(--ink); }
.section--sage p { color: var(--ink); opacity: 0.82; }
.section--cream { background: var(--sage); color: var(--ink); }
.section--cream h1, .section--cream h2, .section--cream h3 { color: var(--ink); }
.section--cream p { color: var(--ink); opacity: 0.75; }

/* ---- section dividers — Pamela's real structural signature. Her own
   material never ends a color block on a straight line; it ends in a big,
   confident, organic curve that overlaps into the next block. This is a
   real SVG shape with real depth (drop-shadow), not a gradient smear
   pretending to be one — that was tried, and it still read as a seam. ---- */
.divider {
  position: absolute; left: 0; right: 0; width: 100%;
  height: clamp(60px, 9vw, 120px);
  line-height: 0;
  z-index: 2;
}
.divider--top { top: -1px; }
.divider--bottom { bottom: -1px; }
.divider svg { display: block; width: 100%; height: 100%; }
.divider--to-sage svg path { fill: var(--sage); }
.divider--to-cream svg path { fill: var(--sage); }
.divider--to-void svg path { fill: var(--void); }
.divider--shadow svg path { filter: drop-shadow(0 -14px 26px rgba(0,0,0,0.28)); }

/* ---- the ampersand mark — her recurring brand device ---- */
.amp {
  /* UPRIGHT, not italic — Fraunces' italic ampersand swashes into something
     that reads as a script "E" at large sizes, unlike Pamela's actual
     signature, which uses a plain "&". The roman weight's glyph is the
     traditional et-form and is unambiguous at any size. */
  position: absolute;
  font-family: var(--display);
  font-weight: 500;
  font-style: normal;
  color: var(--accent);
  opacity: 0.9;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.amp--corner { font-size: clamp(3rem, 7vw, 6rem); top: clamp(1.5rem, 4vw, 3rem); left: clamp(1.5rem, 4vw, 3rem); z-index: 3; }
.amp--watermark {
  font-size: clamp(20rem, 44vw, 46rem);
  right: clamp(-8rem, -6vw, -4rem);
  top: 50%; transform: translateY(-50%);
  opacity: 0.1; z-index: 0;
  filter: blur(0.5px) drop-shadow(0 0 60px rgba(217,167,104,0.2));
  will-change: transform;
  animation: ampBreathe 14s ease-in-out infinite;
  transform-origin: center;
}
/* translateY(-50%) has to be re-stated in every step — an animation's
   keyframes own the transform property outright while running, so a
   separate static transform on the same element gets discarded. */
@keyframes ampBreathe {
  0%, 100% { transform: translateY(-50%) scale(1); opacity: 0.1; }
  50% { transform: translateY(-50%) scale(1.03); opacity: 0.14; }
}
@media (prefers-reduced-motion: reduce) { .amp--watermark { animation: none; } }

/* ---- moon phases — the literal recurring device from her own material, a
   row of real lunar phases across the top of nearly every page. Built as
   SVG (a light disc + a dark disc offset to cut a crescent), not a stock
   photo strip, so it's crisp at any size and themeable to her palette. ---- */
.moon-row { display: flex; align-items: center; gap: clamp(0.6rem, 2vw, 1.1rem); }
.moon-row svg { display: block; }
.moon-row--rule { margin: 2.5rem 0; }
/* legacy simple dot-rule, kept for pages not yet migrated to the SVG strip */
.moon-rule { display: flex; align-items: center; gap: 0.5rem; margin: 2.5rem 0; }
.moon-rule span { width: 9px; height: 9px; border-radius: 50%; background: var(--accent-bright); opacity: 0.25; }
.moon-rule span:nth-child(4) { opacity: 1; box-shadow: 0 0 14px var(--accent-bright); }

/* ---- nav ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem clamp(1.5rem, 5vw, 3rem);
  background: linear-gradient(to bottom, rgba(21,23,15,0.92), rgba(21,23,15,0));
  transition: background 300ms var(--ease);
}
.nav.is-scrolled { background: rgba(21,23,15,0.94); backdrop-filter: blur(10px); }
.brand { font-family: var(--display); font-size: 1.15rem; letter-spacing: 0.01em; }
.brand em { font-style: italic; color: var(--accent-bright); }
.nav-links { display: flex; gap: clamp(1.2rem, 3vw, 2.2rem); font-size: 0.92rem; }
.nav-links a { text-decoration: none; opacity: 0.85; transition: opacity 200ms; }
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; color: var(--accent-bright); }
.nav-cta {
  padding: 0.6rem 1.3rem; border: 1px solid var(--accent); border-radius: 999px;
  font-size: 0.88rem; text-decoration: none; white-space: nowrap;
  transition: background 200ms, color 200ms;
}
.nav-cta:hover { background: var(--accent); color: var(--void); }
.nav-toggle {
  display: none; background: none; border: none; padding: 0.4rem;
  width: 34px; height: 26px; position: relative; cursor: pointer; z-index: 60;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; left: 0.4rem; right: 0.4rem; height: 2px;
  background: var(--cream); transition: transform 260ms var(--ease), opacity 200ms;
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span::after { transform: translateY(-8px) rotate(-45deg); }

/* ---- buttons — the ONE repeated action. Understated, in her own palette:
   a solid warm fill, a confident lift on hover, real weight from shadow —
   not a rainbow ring or a gradient border. Restraint reads as expensive;
   a spinning conic-gradient reads as a component-library demo. ---- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.95rem 1.9rem; border-radius: 999px;
  font-family: var(--body); font-size: 0.95rem; font-weight: 600;
  text-decoration: none; border: 1px solid transparent;
  transition: transform 220ms var(--ease), background 220ms, box-shadow 220ms, border-color 220ms;
}
.btn--primary { background: var(--accent); color: var(--void); }
.btn--primary:hover { background: var(--accent-bright); transform: translateY(-2px); box-shadow: 0 14px 32px -14px rgba(192,138,78,0.55); }
.btn--ghost {
  color: inherit; border-color: rgba(244,239,228,0.35);
  background: rgba(244,239,228,0.04);
}
.btn--ghost:hover { border-color: var(--accent-bright); background: rgba(217,167,104,0.08); transform: translateY(-2px); }
.btn--on-sage { background: var(--ink); color: var(--cream); }
.btn--on-sage:hover { background: #000; transform: translateY(-2px); }

/* ---- glass card — used sparingly for the three-way offer grid. A bright
   top edge and a cursor highlight give it real dimension without needing
   motion of its own to feel alive. ---- */
.glass {
  position: relative;
  background: linear-gradient(160deg, rgba(244,239,228,0.10), rgba(244,239,228,0.03));
  border: 1px solid transparent;
  background-clip: padding-box;
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-radius: 24px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.14) inset,
    0 0 0 1px rgba(244,239,228,0.12),
    0 30px 70px -30px rgba(0,0,0,0.65);
  transition: transform 380ms var(--ease), box-shadow 380ms var(--ease);
  overflow: hidden;
}
.glass::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(115deg, rgba(255,255,255,0.16) 0%, transparent 28%);
  pointer-events: none;
}
.glass::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 0%),
              rgba(217,167,104,0.16), transparent 60%);
  opacity: 0; transition: opacity 300ms;
}
.glass:hover::after { opacity: 1; }
.glass:hover {
  transform: translateY(-6px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.2) inset,
    0 0 0 1px rgba(217,167,104,0.3),
    0 40px 90px -30px rgba(0,0,0,0.75);
}

/* ---- reveal on scroll — settles fast, never strands content dim ---- */
.reveal {
  opacity: 0; transform: translateY(22px) scale(0.98);
  transition: opacity 420ms var(--ease), transform 420ms var(--ease);
  transition-delay: calc(var(--stagger, 0) * 70ms);
}
.reveal.is-in { opacity: 1; transform: translateY(0) scale(1); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

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

/* ---- bento grid — photographic storytelling as a mixed-size grid of
   cards (portrait / quote / detail / stat), not a stacked alternation. ---- */
.bento {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(140px, auto); gap: 1rem;
}
.bento > * { border-radius: 22px; overflow: hidden; position: relative; }
.bento-photo { grid-column: span 2; grid-row: span 2; aspect-ratio: 1/1; }
.bento-photo img, .bento-nature img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bento-quote { grid-column: span 2; padding: 1.9rem; display: flex; flex-direction: column; justify-content: center; }
.bento-nature { grid-column: span 1; grid-row: span 1; min-height: 160px; aspect-ratio: 4/3; }
.bento-stat {
  grid-column: span 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; padding: 1rem;
}
.bento-stat .stat-num { font-family: var(--display); font-size: clamp(1.9rem, 3.4vw, 2.6rem); color: var(--accent-bright); }
.bento-stat .stat-label { font-size: 0.8rem; opacity: 0.7; margin-top: 0.3rem; }
.bento-quote-mark { font-family: var(--display); font-size: 2.6rem; color: var(--accent-bright); line-height: 1; opacity: 0.8; }
@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .bento-photo { grid-column: span 2; grid-row: span 1; aspect-ratio: 4/3; }
  .bento-quote { grid-column: span 2; }
}

/* ---- testimonial slider — one large statement at a time, a visible way
   to move between them, not just dots ticking on a timer. ---- */
.t-slider {
  position: relative; max-width: 720px; margin: 0 auto;
  padding: clamp(2.4rem, 5vw, 3.6rem) clamp(1.8rem, 5vw, 3.2rem);
  background: rgba(26,28,20,0.04); border: 1px solid rgba(26,28,20,0.1);
  border-radius: 26px;
}
/* Clip boundary lives on its own wrapper, flush with the track's real edge —
   overflow:hidden on the padded .t-slider itself clips at the PADDING box,
   which sits outside where a slide's content actually starts. */
.t-viewport { overflow: hidden; }
.t-track { display: flex; transition: transform 500ms var(--ease); }
.t-slide { flex: 0 0 100%; }
.t-mark { font-family: var(--display); font-size: 3.4rem; color: var(--accent); opacity: 0.55; line-height: 1; display: block; margin-bottom: 0.8rem; height: 2.2rem; overflow: visible; }
.t-quote { font-family: var(--display); font-style: italic; font-size: clamp(1.3rem, 2.6vw, 1.9rem); line-height: 1.4; max-width: 46ch; }
.t-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 2.2rem; }
.t-dots { display: flex; gap: 0.5rem; }
.t-dots button {
  width: 8px; height: 8px; border-radius: 50%; border: none; padding: 0;
  background: var(--cream-dim); opacity: 0.35; cursor: pointer;
}
.t-dots button.is-active { opacity: 1; background: var(--accent-bright); }
.t-arrows { display: flex; gap: 0.6rem; }
.t-arrow {
  width: 38px; height: 38px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 1px solid rgba(26,28,20,0.25); background: transparent; color: inherit;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 1.1rem;
  transition: background 200ms, border-color 200ms;
}
.t-arrow:hover { background: var(--accent); border-color: var(--accent); color: var(--void); }

/* ---- closing section — the liquid-glass footage full-bleed, screen-wide,
   genuinely BEHIND the constellation (stars draw on top of the glass), with
   the text above both. Every other .section sets z-index:1, which creates
   its OWN stacking context - any child z-index inside it is trapped in
   that one slot, which is exactly why the video was painting over the
   stars instead of under them. This section opts out (z-index: auto, no
   context of its own) so its video (-1) and its text (2) compare directly
   against the page-level constellation (0) instead of being sandwiched
   together above it. ---- */
.section--closer { z-index: auto; overflow: hidden; }
.close-bg {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
}
.close-bg video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: 50% 45%;
}
.close-bg-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(21,23,15,0.35) 0%, rgba(21,23,15,0.2) 40%, rgba(21,23,15,0.75) 100%);
}

/* ---- footer ---- */
.footer {
  background: var(--void-2); padding: clamp(3rem, 8vw, 5rem) 0 2rem;
  border-top: 1px solid rgba(244,239,228,0.08);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--gap); }
.footer small { display: block; margin-top: 3rem; opacity: 0.45; font-size: 0.8rem; }
.footer a { text-decoration: none; opacity: 0.75; }
.footer a:hover { opacity: 1; color: var(--accent-bright); }
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 0.5rem; }

/* ---- custom cursor — desktop/mouse only ---- */
.cursor-ring, .cursor-dot {
  position: fixed; top: 0; left: 0; z-index: 999; pointer-events: none;
  border-radius: 50%; transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-ring {
  width: 34px; height: 34px; border: 1px solid var(--accent-bright);
  opacity: 0.7; transition: width 220ms var(--ease), height 220ms var(--ease), opacity 220ms;
}
.cursor-dot { width: 5px; height: 5px; background: var(--accent-bright); }
.cursor-ring.is-hover { width: 58px; height: 58px; opacity: 1; background: rgba(217,167,104,0.08); }
body.has-custom-cursor, body.has-custom-cursor a, body.has-custom-cursor button { cursor: none; }
@media (pointer: coarse) {
  .cursor-ring, .cursor-dot { display: none !important; }
}

/* ---- constellation — a live particle field, drawn every frame, connecting
   into lines when points drift close and answering the cursor. The literal
   form of "moon phases" her own material already leans on — stars, not a
   png of stars. One fixed, page-wide field; opaque sections occlude it,
   dark sections show it straight through. ---- */
.constellation {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  width: 100%; height: 100%;
}

/* ---- aurora — soft ambient glow used on the inner pages' headers (About,
   How We Work, Community, Next Steps, Privacy), sage and gold only, her own
   achromatic-plus-one-warm-accent palette. Reactive to scroll, not just a
   loop on a timer — JS writes --sy (0-1 progress through the header). ---- */
.aurora {
  position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none;
  --sy: 0;
}
.aurora-blob { position: absolute; inset: 0; }
.aurora-blob--a { transform: translateY(calc(var(--sy, 0) * 70px)); }
.aurora-blob--b { transform: translateY(calc(var(--sy, 0) * -50px)); }
.aurora-blob--a::before {
  content: ''; position: absolute; border-radius: 50%; filter: blur(80px);
  width: 52vw; height: 52vw; left: -12vw; top: -16vw;
  background: radial-gradient(circle, var(--sage) 0%, transparent 68%);
  opacity: 0.7;
  animation: drift1 22s ease-in-out infinite alternate;
}
.aurora-blob--b::before {
  content: ''; position: absolute; border-radius: 50%; filter: blur(80px);
  width: 44vw; height: 44vw; right: -10vw; top: 4vw;
  background: radial-gradient(circle, var(--accent) 0%, transparent 68%);
  opacity: 0.45;
  animation: drift2 27s ease-in-out infinite alternate;
}
@keyframes drift1 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(7vw, 9vw) scale(1.18); }
}
@keyframes drift2 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-6vw, 6vw) scale(1.14); }
}
@media (prefers-reduced-motion: reduce) {
  .aurora-blob--a::before, .aurora-blob--b::before { animation: none; }
  .aurora-blob--a, .aurora-blob--b { transform: none; }
}

/* ---- hero photo — a real photo behind the headline, dark-toned and
   gradient-washed, not a flat gradient standing in for one. ---- */
.hero-photo { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 28% 38%;
  filter: saturate(0.7) brightness(0.5) contrast(1.05);
  transform: scale(1.04);
}
.hero-photo::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(21,23,15,0.25) 0%, rgba(21,23,15,0.62) 62%, var(--void) 97%),
    linear-gradient(100deg, rgba(124,138,114,0.35) 0%, rgba(192,138,78,0.16) 55%, transparent 90%);
}

/* ---- mobile — 375px checked ---- */
@media (max-width: 860px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 340px);
    flex-direction: column; gap: 0; padding: 6.5rem 2rem 2rem;
    background: rgba(21,23,15,0.98); backdrop-filter: blur(20px);
    transform: translateX(100%); transition: transform 360ms var(--ease);
    z-index: 50;
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links a { padding: 0.9rem 0; font-size: 1.15rem; border-bottom: 1px solid rgba(244,239,228,0.08); }
  .nav-cta { padding: 0.5rem 0.9rem; font-size: 0.8rem; }
  .brand { font-size: 1rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .amp--corner { font-size: 2.4rem; }
  .amp--watermark { display: none; }
  .moon-row svg { width: 26px; height: 26px; }
}
