/* =========================================================================
   Marina — Educational architect
   Visual system locked from the Brand Foundation:
   Fraunces + Mulish, paper-cream canvas, blush frame, hand-cut paper collage,
   the method drawn as a continuous ring. Warm, calm, grounded, never clinical.
   ========================================================================= */

/* ---- Tokens ------------------------------------------------------------ */
:root {
  /* New brand palette: Perola/White/Bege Rose backgrounds; Terracota primary accent; Verde Claro + Azul Golfinho secondary */
  --cream:       #F0EDE4;
  --cream-deep:  #E3D6C5;
  --surface:     #FFFFFF;
  --ink:         #3A2A1E;
  --ink-soft:    #6A5849;
  --blush:       #B4734A;
  --blush-deep:  #974315;
  --sage:        #8D957E;
  --sage-deep:   #5F6852;
  --ochre:       #974315;
  --mist:        #788990;

  --line:        rgba(58, 42, 30, 0.12);
  --line-soft:   rgba(58, 42, 30, 0.07);

  /* Type */
  --display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --body:    "Mulish", "Work Sans", system-ui, -apple-system, sans-serif;

  /* Spacing scale: 8 16 24 40 64, lean large */
  --s1: 0.5rem;  --s2: 1rem;   --s3: 1.5rem;
  --s4: 2.5rem;  --s5: 4rem;   --s6: 6rem;   --s7: 9rem;

  --maxw: 1180px;
  --readw: 64ch;
  --radius: 18px;
  --radius-lg: 28px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 1px 2px rgba(58, 42, 30,.04), 0 6px 18px rgba(58, 42, 30,.05);
  --shadow-md: 0 2px 6px rgba(58, 42, 30,.06), 0 18px 44px rgba(58, 42, 30,.09);
}

/* ---- Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--body);
  font-size: 1.0625rem;          /* 17px */
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }

/* Accessible focus, never removed */
:focus-visible {
  outline: 2.5px solid var(--blush-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 50%; top: -120%;
  transform: translateX(-50%);
  background: var(--ink); color: var(--cream);
  padding: var(--s1) var(--s3); border-radius: 0 0 12px 12px;
  z-index: 200; transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

/* ---- The recurring blush frame ----------------------------------------- */
.page-frame {
  position: fixed; inset: 14px;
  border: 1.5px solid rgba(151, 67, 21, 0.55);
  border-radius: 22px;
  pointer-events: none;
  z-index: 101;
}
@media (max-width: 640px) { .page-frame { inset: 8px; border-radius: 16px; } }

/* ---- Typography -------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.12; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1.08; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.65rem); line-height: 1.16; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p  { max-width: var(--readw); }

.eyebrow {
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blush-deep);
  display: inline-flex; align-items: center; gap: 0.6em;
  margin-bottom: var(--s3);
}
.eyebrow::before {
  content: ""; width: 26px; height: 1.5px; background: currentColor; opacity: .6;
}
.eyebrow.is-centered { justify-content: center; }

.lede { font-size: 1.125rem; line-height: 1.6; color: var(--ink-soft); }
.serif-accent { font-family: var(--display); font-style: italic; color: var(--blush-deep); }

/* ---- Layout ------------------------------------------------------------ */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--s4); }
@media (max-width: 640px) { .wrap { padding-inline: var(--s3); } }

.section { padding-block: var(--s7); position: relative; }
.section--tight { padding-block: var(--s7); }
@media (max-width: 720px) { .section { padding-block: var(--s6); } .section--tight { padding-block: var(--s6); } }

.section-head { max-width: 42rem; margin-bottom: var(--s5); }
.section-head.is-centered { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: var(--s3); }
.section-head p { margin-top: var(--s3); }
.section-head.is-centered p { margin-inline: auto; }

.bg-surface { background: var(--surface); }
.bg-cream-deep { background: var(--cream-deep); }
.bg-ink { background: var(--ink); color: var(--cream); }
.bg-ink h1, .bg-ink h2, .bg-ink h3 { color: var(--cream); }
.bg-ink p { color: rgba(240, 237, 228,.82); }

/* ---- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  font-family: var(--body); font-weight: 600; font-size: 1rem;
  padding: 0.9rem 1.6rem; border-radius: 999px;
  transition: transform .25s var(--ease), background-color .25s var(--ease),
              color .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--primary { background: var(--blush-deep); color: var(--cream); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: #7C3712; box-shadow: var(--shadow-md); }

.btn--secondary { border: 1.5px solid var(--blush); color: var(--blush-deep); background: rgba(151, 67, 21,.05); }
.btn--secondary:hover { background: var(--blush); color: #fff; border-color: var(--blush); }

.btn--ochre { background: var(--ochre); color: #FFFFFF; box-shadow: 0 6px 20px rgba(151, 67, 21,.3); }
.btn--ochre:hover { background: #7C3712; }

.btn--ghost-light { border: 1.5px solid rgba(240, 237, 228,.4); color: var(--cream); }
.btn--ghost-light:hover { background: rgba(240, 237, 228,.1); border-color: var(--cream); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s2); }
.btn-row.is-centered { justify-content: center; }

.textlink {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-weight: 700; color: var(--ink);
  border-bottom: 1.5px solid var(--blush);
  padding-bottom: 2px;
  transition: color .25s var(--ease), gap .25s var(--ease), border-color .25s var(--ease);
}
.textlink:hover { color: var(--blush-deep); gap: 0.8em; border-color: var(--blush-deep); }
.textlink .arrow { transition: transform .3s var(--ease); }
.textlink:hover .arrow { transform: translateX(3px); }

/* ---- Header / nav ------------------------------------------------------ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: var(--s3) 0;
  transition: padding .35s var(--ease);
}
/* Frosted veil behind the pill: hides page copy that scrolls into the header
   gaps (above and beside the pill) without a hard colour band. Translucent +
   blurred so it adapts to whatever section colour sits behind it (cream, white,
   cream-deep). Relies on .site-header forming a stacking context (position:fixed
   + z-index:100) so this z-index:-1 layer paints above page content but below
   the opaque .site-header__inner pill. Masked to fade out below the pill so the
   bottom edge is soft, not a hard rectangle. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(240, 237, 228, 0.62);
  backdrop-filter: blur(12px) saturate(1.05);
  -webkit-backdrop-filter: blur(12px) saturate(1.05);
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
  pointer-events: none;
  z-index: -1;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--ink);
  border: 1px solid rgba(240, 237, 228,0.07);
  box-shadow: var(--shadow-md);
  border-radius: 999px;
  /* constant interior spacing: logo sits in from the left, nav+CTA in from the right */
  padding: 0.4rem 1.1rem 0.4rem 2.2rem;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease),
              border-color .35s var(--ease);
}
/* Bar keeps one constant width at all times (no resize on scroll) */
.site-header .wrap { max-width: 1320px; }
.site-header.is-scrolled { padding: var(--s3) 0 0.7rem; }
.site-header.is-scrolled .site-header__inner {
  background: var(--ink);
  border-color: rgba(240, 237, 228,0.08);
  box-shadow: 0 12px 34px rgba(58, 42, 30,.26);
}
@media (max-width: 640px) {
  .site-header__inner { padding: 0.4rem 0.6rem 0.4rem 1.4rem; }
}

.brand { display: inline-flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--display); font-size: 1.5rem; letter-spacing: 0.04em; color: var(--ink); }
.brand__role { font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: var(--s1); }
.nav__links { display: flex; align-items: center; gap: 0.3rem; }
.nav__links a {
  position: relative; padding: 0.55rem 0.9rem; border-radius: 999px;
  font-size: 0.95rem; font-weight: 500; color: var(--ink-soft);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav__links a:hover { color: var(--ink); background: rgba(58, 42, 30,.05); }
.nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0.3rem;
  height: 1.5px; background: var(--blush);
}

.nav__cta { margin-left: 0.4rem; padding: 0.7rem 1.25rem; }

/* ---- Header on dark: a distinct floating ink bar ----------------------- */
.site-header .brand__name { color: var(--cream); }
.site-header .brand__role { color: rgba(240, 237, 228,0.66); }
.nav__links a { color: rgba(240, 237, 228,0.82); }
.nav__links a:hover { color: var(--cream); background: rgba(240, 237, 228,0.10); }
.nav__links a[aria-current="page"] { color: var(--cream); }
/* CTA pops in warm ochre against the ink bar */
.nav__cta { background: var(--ochre); color: #FFFFFF; box-shadow: 0 6px 18px rgba(151, 67, 21,0.35); }
.nav__cta:hover { background: #7C3712; color: #FFFFFF; }
/* Mobile hamburger reads on dark */
.nav__toggle { border-color: rgba(240, 237, 228,0.3); }
.nav__toggle svg { stroke: var(--cream); }

/* ---- Desktop mega-menu ------------------------------------------------- */
.nav__item { position: relative; display: inline-flex; }
.nav__top { display: inline-flex; align-items: center; gap: 0.35em; }
.nav__chev { width: 13px; height: 13px; stroke: currentColor; transition: transform .25s var(--ease); }
.has-mega:hover .nav__chev,
.has-mega:focus-within .nav__chev { transform: rotate(180deg); }

.mega {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(6px);
  padding-top: 14px;                 /* transparent hover bridge, no vertical gap */
  width: max-content; max-width: 92vw;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  z-index: 130;
}
.has-mega:hover .mega,
.has-mega:focus-within .mega {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.mega__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--s2);
  display: grid; gap: 2px;
  min-width: 330px;
}
.mega .mega__link {
  display: grid; grid-template-columns: auto 1fr; gap: 0.8rem; align-items: center;
  padding: 0.6rem 0.7rem; border-radius: 14px;
  color: var(--ink); font-weight: 500;
  transition: background-color .2s var(--ease);
}
.mega .mega__link:hover { background: var(--cream-deep); color: var(--ink); }
.mega .mega__link::after { content: none; }   /* cancel the active-link underline bar */
.mega__lead { margin-bottom: 4px; padding-bottom: var(--s2); border-bottom: 1px solid var(--line-soft); }
.mega__ic {
  width: 38px; height: 38px; border-radius: 12px; flex: none;
  display: flex; align-items: center; justify-content: center;
}
.mega__ic svg { width: 20px; height: 20px; }
.mega__tx { display: flex; flex-direction: column; line-height: 1.3; }
.mega__t { font-weight: 600; font-size: 0.96rem; color: var(--ink); }
.mega__d { font-size: 0.82rem; font-weight: 400; color: var(--ink-soft); }
.mega__lead .mega__t { font-family: var(--display); font-weight: 400; font-size: 1.1rem; }

/* Resources dropdown: lead link + flat list of tools (no categories) */
.mega__card--resources { min-width: 300px; }
.mega__link.mega__sub { padding: 0.4rem 0.7rem; font-size: 0.9rem; font-weight: 500; }

/* Mobile-only surfaces: hidden on desktop by default */
.nav__panel { display: none; }
.nav-scrim { display: none; }

.nav__toggle {
  display: none; width: 46px; height: 46px; border-radius: 50%;
  align-items: center; justify-content: center;
  border: 1px solid var(--line);
}
.nav__toggle svg { width: 22px; height: 22px; stroke: var(--ink); }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-open { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 900px) {
  .nav__toggle { display: inline-flex; }
  .nav__links, .nav > .nav__cta { display: none; }
  .nav-scrim { display: block; }
  .nav__panel {
    display: flex;
    position: fixed; inset: 0 0 0 auto; width: min(86vw, 360px);
    background: var(--surface);
    box-shadow: -20px 0 60px rgba(58, 42, 30,.16);
    padding: calc(var(--s6)) var(--s4) var(--s4);
    display: flex; flex-direction: column; gap: var(--s1);
    transform: translateX(100%);
    transition: transform .4s var(--ease);
    z-index: 120; visibility: hidden;
  }
  .nav__panel.is-open { transform: translateX(0); visibility: visible; }
  .nav__panel a {
    font-size: 1.15rem; padding: 0.7rem 0; color: var(--ink);
    border-bottom: 1px solid var(--line-soft);
  }
  .nav__panel a[aria-current="page"] { color: var(--blush-deep); }
  .nav__panel .btn { margin-top: var(--s3); }
  .nav-scrim {
    position: fixed; inset: 0; background: rgba(58, 42, 30,.35);
    opacity: 0; visibility: hidden; transition: opacity .3s var(--ease); z-index: 110;
    backdrop-filter: blur(2px);
  }
  .nav-scrim.is-open { opacity: 1; visibility: visible; }
}

/* ---- Hero -------------------------------------------------------------- */
.hero { position: relative; padding-top: calc(var(--s7) + 3rem); padding-bottom: var(--s6); overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--s5);
  align-items: stretch;
}
.hero__copy { max-width: 36rem; align-self: center; }
.hero h1 { margin-bottom: var(--s3); }
.hero .lede { margin-bottom: 0; }
.hero .btn-row { margin-top: var(--s4); }
.hero__art { position: relative; display: flex; align-self: center; }
.hero__art > [data-parallax] { width: 100%; display: flex; }
.hero__art > [data-parallax] > .photo-mount, .hero__art > .photo-mount { width: 100%; }
/* Contained hero image: a calm fixed height rather than the full column */
.hero .photo-mount > .photo { height: 460px; min-height: 0; aspect-ratio: auto; }
.hero__scene { width: 100%; height: auto; filter: drop-shadow(0 30px 50px rgba(58, 42, 30,.12)); }

@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--s4); align-items: stretch; }
  .hero__art { order: -1; max-width: 460px; margin-inline: auto; display: block; }
  .hero .photo-mount > .photo { height: 300px; }
}

/* Floating collage layers (gentle, organic) */
.float { transform-box: fill-box; transform-origin: center; }
.float-a { animation: floatA 9s var(--ease) infinite; }
.float-b { animation: floatB 11s var(--ease) infinite; }
.float-c { animation: floatC 7.5s var(--ease) infinite; }
@keyframes floatA { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
@keyframes floatB { 0%,100%{transform:translateY(0) rotate(0deg)} 50%{transform:translateY(8px) rotate(1.2deg)} }
@keyframes floatC { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }

.birds { animation: drift 16s linear infinite; }
@keyframes drift { 0%{transform:translateX(0)} 50%{transform:translateX(14px)} 100%{transform:translateX(0)} }

/* ---- Belief / statement band ------------------------------------------ */
.statement { text-align: center; max-width: 52rem; margin-inline: auto; }
.statement h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.18; }
.statement p { margin: var(--s3) auto 0; }
.statement .eyebrow { margin-bottom: var(--s3); }

/* ---- Cards ------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: var(--s4);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line); }
.card__num { font-family: var(--display); font-size: 1.1rem; color: var(--blush-deep); }
.card__num + h3, .card__num + h4 { margin-top: var(--s1); }
.card h3 { margin-bottom: var(--s1); }
.card p { color: var(--ink-soft); font-size: 1rem; }
.card .textlink { margin-top: var(--s3); }

.card__icon {
  width: 54px; height: 54px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--s3);
}
.card__icon svg { width: 28px; height: 28px; }
.tint-blush { background: rgba(151, 67, 21,.18); color: var(--blush-deep); }
.tint-sage  { background: rgba(141, 149, 126,.22); color: var(--sage-deep); }
.tint-ochre { background: rgba(151, 67, 21,.18);  color: #974315; }
.tint-mist  { background: rgba(120, 137, 144,.3);  color: #4F5E66; }

/* Guide anatomy — step cards */
.card--step { border-top: none; border-left: 5px solid var(--blush); background: rgba(180,115,74,.04); }
.card--step:nth-child(3n+2) { border-left-color: var(--sage); background: rgba(141,149,126,.06); }
.card--step:nth-child(3n)   { border-left-color: var(--ochre); background: rgba(151,67,21,.04); }
.card--step:hover { transform: translateY(-4px); }
.card--step:nth-child(3n+1):hover { box-shadow: 0 12px 36px rgba(180,115,74,.18), var(--shadow-md); }
.card--step:nth-child(3n+2):hover { box-shadow: 0 12px 36px rgba(141,149,126,.22), var(--shadow-md); }
.card--step:nth-child(3n):hover   { box-shadow: 0 12px 36px rgba(151,67,21,.14), var(--shadow-md); }
.card--step .step-num {
  position: absolute; top: -0.05em; right: var(--s2);
  font-family: var(--display); font-size: clamp(4rem, 6.5vw, 6.5rem); line-height: 1;
  color: var(--blush); opacity: 0.13;
  pointer-events: none; user-select: none;
}
.card--step:nth-child(3n+2) .step-num { color: var(--sage); }
.card--step:nth-child(3n)   .step-num { color: var(--ochre); }
.card--step .card__icon { width: 52px; height: 52px; border-radius: 14px; margin-bottom: var(--s3); flex-shrink: 0; }
.card--step .card__icon svg { width: 24px; height: 24px; }
.card--step .card__num { font-size: 1.25rem; display: block; }
.card--step p { margin-top: var(--s1); }

.grid { display: grid; gap: var(--s3); padding: 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Service path card (numbered, larger) */
.path {
  display: grid; grid-template-columns: auto 1fr; gap: var(--s3);
  align-items: start;
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); padding: var(--s4);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.path:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line); }
.path__index {
  font-family: var(--display); font-size: 2.2rem; line-height: 1;
  color: var(--blush); width: 3rem;
}
.path h3 { margin-bottom: var(--s1); }
.path p { color: var(--ink-soft); font-size: 1rem; }
.path .textlink { margin-top: var(--s2); }
@media (max-width: 600px) { .path { grid-template-columns: 1fr; } .path__index { font-size: 1.8rem; } }

/* ---- The method ring --------------------------------------------------- */
.method__layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--s5); align-items: center; }
@media (max-width: 920px) { .method__layout { grid-template-columns: 1fr; } }

.ring-wrap { position: relative; max-width: 460px; margin-inline: auto; width: 100%; }
.ring-svg { width: 100%; height: auto; overflow: visible; }
.ring-track { fill: none; stroke: var(--line); stroke-width: 1.5; }
.ring-progress {
  fill: none; stroke: var(--blush); stroke-width: 3; stroke-linecap: round;
}
.ring-dash {
  fill: none; stroke: var(--sage); stroke-width: 1.5;
  stroke-dasharray: 2 9; opacity: .55;
  transform-origin: center; animation: orbit-spin 50s linear infinite;
}
@keyframes orbit-spin {
  from { transform: rotate(0deg) translate(0px, -14px); }
  to   { transform: rotate(360deg) translate(0px, -14px); }
}
.ring-node circle { fill: var(--surface); stroke: var(--blush); stroke-width: 2; }
.ring-node.is-on circle { fill: var(--blush); }
.ring-node text { font-family: var(--body); font-weight: 700; font-size: 11px; fill: var(--ink); }
.ring-center { font-family: var(--display); font-style: normal; fill: var(--ink-soft); }

.method__steps { display: flex; flex-direction: column; gap: var(--s1); }
.mstep {
  display: grid; grid-template-columns: auto 1fr; gap: var(--s3); align-items: baseline;
  padding: var(--s2) 0; border-bottom: 1px solid var(--line-soft);
}
.mstep:last-child { border-bottom: 0; }
.mstep__k { font-family: var(--display); color: var(--blush-deep); font-size: 1.05rem; }
.mstep h4 { font-family: var(--body); font-weight: 700; font-size: 1.05rem; margin-bottom: 2px; }
.mstep p { color: var(--ink-soft); font-size: 0.98rem; }

/* ---- Feature list (what makes it different / shaped me) ---------------- */
.taglist { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: var(--s3); }
.tag {
  font-size: 0.9rem; font-weight: 600; color: var(--ink-soft);
  background: var(--cream-deep); border: 1px solid var(--line-soft);
  padding: 0.45rem 0.9rem; border-radius: 999px;
}

.checklist { list-style: none; padding-left: 0; margin-left: 0; display: grid; gap: var(--s2); margin-top: var(--s3); }
.checklist li { display: grid; grid-template-columns: auto 1fr; gap: 0.8rem; align-items: start; }
.checklist .dot {
  width: 22px; height: 22px; margin-top: 3px; border-radius: 50%;
  background: rgba(141, 149, 126,.25); display: flex; align-items: center; justify-content: center; flex: none;
}
.checklist .dot svg { width: 13px; height: 13px; stroke: var(--sage-deep); }

/* ---- Split feature (image + text) ------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); align-items: stretch; }
.split > :not(.split__art) { align-self: center; }
.split.is-reverse .split__art { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: var(--s4); align-items: stretch; } .split.is-reverse .split__art { order: -1; } }
.split__art { position: relative; display: flex; }
.split__art > .photo-mount { width: 100%; height: 100%; }
.split h2 { margin: 0 0 var(--s3); }

/* ---- Numbered shift list (free guide) --------------------------------- */
.shifts { display: grid; gap: var(--s2); counter-reset: shift; }
.shift {
  display: grid; grid-template-columns: auto 1fr; gap: var(--s3); align-items: start;
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: var(--s3) var(--s4);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.shift:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); }
.shift__n {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  background: var(--cream-deep); color: var(--blush-deep);
  font-family: var(--display); font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
}
.shift h4 { font-family: var(--body); font-weight: 700; font-size: 1.05rem; margin-bottom: 2px; }
.shift p { color: var(--ink-soft); font-size: 0.98rem; }

/* ---- Email capture ----------------------------------------------------- */
.capture {
  display: flex; gap: var(--s1); flex-wrap: wrap; max-width: 32rem;
}
.capture .field { flex: 1 1 220px; }
/* Canonical form field — styles any .field label + control, in capture or card forms */
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--ink-soft); }
.field input[type="email"], .field input[type="text"], .field textarea, .field select {
  width: 100%; padding: 0.95rem 1.15rem; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--surface);
  font: inherit; font-size: 1rem; color: var(--ink); line-height: 1.4;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 7.5rem; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-soft); opacity: 0.65; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blush); box-shadow: 0 0 0 3px rgba(151, 67, 21,.25); }
.capture .btn { align-self: end; }
/* Stacked (vertical) capture form: fields size to content, even vertical rhythm */
.capture--stack { flex-direction: column; align-items: stretch; gap: var(--s3); flex-wrap: nowrap; }
.capture--stack .field { flex: 0 0 auto; }
.capture--stack .btn { align-self: stretch; width: 100%; }
.microcopy { font-size: 0.86rem; color: var(--ink-soft); margin-top: var(--s2); }
.form-note { margin-top: var(--s2); font-weight: 600; color: var(--sage-deep); }

/* ---- Quote / belief pull ----------------------------------------------- */
.pull {
  font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.3; color: var(--ink); max-width: 40rem;
}
.pull--on-ink { color: var(--cream); }

/* ---- CTA band ---------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); }
.cta-band__inner { position: relative; z-index: 2; padding: var(--s6) var(--s5); text-align: center; }
.cta-band__inner h2 { color: var(--cream); max-width: 38rem; margin: 0 auto 0; }
.cta-band__inner p { color: rgba(240, 237, 228,.8); margin: var(--s2) auto var(--s4); }
.cta-band__inner .eyebrow { margin-top: 0; margin-bottom: var(--s3); }
.cta-band__art { position: absolute; inset: 0; z-index: 1; opacity: .9; }
@media (max-width: 600px) { .cta-band__inner { padding: var(--s5) var(--s3); } }

/* ---- Footer ------------------------------------------------------------ */
.site-footer { background: var(--ink); padding-block: var(--s6) var(--s4); color: var(--cream); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s4); padding-bottom: var(--s5); }
@media (max-width: 760px) { .footer__top { grid-template-columns: 1fr; gap: var(--s3); } }
.footer__brand .brand__name { font-size: 1.8rem; color: var(--cream); }
.footer__brand p { color: rgba(240,237,228,.65); margin-top: var(--s2); font-size: 0.98rem; max-width: 28ch; }
.footer__col h4 { font-family: var(--body); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(240,237,228,.45); margin-bottom: var(--s2); }
.footer__col a { display: block; padding: 0.3rem 0; color: rgba(240,237,228,.8); transition: color .2s var(--ease); }
.footer__col a:hover { color: var(--blush); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: var(--s2); flex-wrap: wrap; padding-top: var(--s3); border-top: 1px solid rgba(240,237,228,.1); font-size: 0.86rem; color: rgba(240,237,228,.45); }

/* ---- Page hero (interior pages) --------------------------------------- */
.page-hero { padding-top: calc(var(--s7) + 2rem); padding-bottom: var(--s7); position: relative; overflow: hidden; }
.page-hero__inner { max-width: 44rem; }

.page-hero h1 { margin: 0 0 var(--s3); }
.page-hero .lede { max-width: 38rem; }
.page-hero .btn-row { margin-top: var(--s4); }
/* Free-guide hero: signup card (photo on top) sits in the right column */
.page-hero .signup-card { align-self: center; width: 100%; max-width: 460px; margin-inline: auto; }
.page-hero .signup-card .eyebrow { margin-bottom: var(--s2); }
.page-hero .signup-card .microcopy { margin-top: var(--s2); }
.page-hero__motif { position: absolute; right: -40px; top: 10%; width: 320px; opacity: .9; pointer-events: none; }
@media (max-width: 920px) { .page-hero__motif { display: none; } }

/* ---- Wave section separators ------------------------------------------- */
/* USAGE RULE (homepage = confirmed reference, the densest at 4 waves):
   1. Bookends — REQUIRED on every page: one wave at hero -> first section,
      and one wave at last section -> footer.
   2. Interior waves — HOMEPAGE ONLY (it is the showcase). Sub-pages stay
      clean with the two bookends only.
   3. Ordinary section-to-section steps use the flat background-rhythm
      colour change, never a wave.
   => Result: homepage = 4 waves; every sub-page = exactly 2.
   Markup: div.wave-sep background = colour of section ABOVE; the <path>
   fill = colour of section BELOW. */
.wave-sep {
  display: block;
  overflow: hidden;
  line-height: 0;
  height: 64px;
  pointer-events: none;
  margin-top: -1px;
  margin-bottom: -1px;
}
.wave-sep svg { display: block; width: 100%; height: 100%; }
@media (max-width: 720px) { .wave-sep { height: 40px; } }

/* ---- Reveal animation -------------------------------------------------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none; }
  .float-a, .float-b, .float-c, .birds, .ring-dash { animation: none !important; }
  .btn, .card, .path, .shift { transition: none; }
}

/* ---- Misc -------------------------------------------------------------- */
.divider-leaf { display: flex; justify-content: center; padding: var(--s4) 0; }
.divider-leaf svg { width: 60px; opacity: .8; }
.text-center { text-align: center; }
.mt-3 { margin-top: var(--s3); }
.mt-4 { margin-top: var(--s4); }
.measure { max-width: var(--readw); }
.eyebrow-group > * + * { margin-top: var(--s2); }

/* Deep-link targets clear the fixed header when jumped to from the mega-menu */
.path[id],
#calmer-emotions, #safe-environments, #project-based, #independence { scroll-margin-top: 6rem; }

/* ---- Photography ------------------------------------------------------- */
/* Candid documentary photos, harmonised to the warm palette and framed
   with the recurring blush motif. */
.photo {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--cream-deep);
}
.photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(0.96) contrast(1.02);
  transition: transform 1s var(--ease);
}
.photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(175deg, rgba(240, 237, 228,0.06) 0%, rgba(240, 237, 228,0) 35%, rgba(58, 42, 30,0.05) 100%);
  mix-blend-mode: multiply;
}
.photo.is-zoom:hover img,
.is-zoom:hover .photo img { transform: scale(1.045); }
.photo--ar43 { aspect-ratio: 4 / 3; }
.photo--ar34 { aspect-ratio: 3 / 4; }
.photo--ar11 { aspect-ratio: 1 / 1; }
.photo--ar32 { aspect-ratio: 3 / 2; }
.photo--tall { aspect-ratio: 4 / 5; }
/* Fill: the photo matches the height of its (stretched) column instead of a fixed ratio */
.photo--fill { aspect-ratio: auto; height: 100%; min-height: 360px; }
@media (max-width: 920px) { .photo--fill { height: auto; aspect-ratio: 4 / 3; min-height: 0; } }

/* The paper-frame treatment: a soft mount echoing the blush border */
.photo-mount {
  position: relative;
  box-shadow: var(--shadow-md); border-radius: var(--radius-lg);
}
/* When a mount holds a fill photo, let it flex so the photo fills the column height */
.photo-mount:has(> .photo--fill) { display: flex; }
.photo-mount > .photo--fill { flex: 1 1 auto; }
.photo-mount .photo { border-radius: var(--radius-lg); }

figcaption.photo-cap {
  margin-top: var(--s2); font-family: var(--display); font-style: italic;
  font-size: 0.95rem; color: var(--ink-soft);
}

/* Card with a photo header */
.card.has-media { padding: 0; }
.card.has-media .card__media { aspect-ratio: 4 / 3; border-radius: 0; }
.card.has-media .card__body { padding: var(--s4); }
.card.has-media .card__body h3,
.card.has-media .card__body h4 { margin-bottom: var(--s1); }

/* Tool card: square media on a warm surface */
.tool-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tool-card .photo { border-radius: 0; }
.tool-card__body { padding: var(--s3) var(--s4) var(--s4); }
.tool-card__body h4 { margin-bottom: 4px; }
.tool-card__body p { font-size: 0.96rem; color: var(--ink-soft); }

/* ---- Resource rail (horizontal card slider) ------------------------- */
.rail { position: relative; }
.rail__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * var(--s3)) / 3);
  gap: var(--s3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: var(--s2);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.rail__track::-webkit-scrollbar { display: none; }
.rail__track > .rail__item { scroll-snap-align: start; }
@media (max-width: 900px) { .rail__track { grid-auto-columns: calc((100% - var(--s3)) / 2); } }
@media (max-width: 600px) { .rail__track { grid-auto-columns: 86%; } }

.rail__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  flex-wrap: wrap;
  margin-top: var(--s4);
}
.rail__btns { display: flex; gap: var(--s2); }
.rail__arrow {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-soft);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), opacity .2s var(--ease);
}
.rail__arrow svg { width: 22px; height: 22px; }
.rail__arrow:hover { background: var(--blush-deep); color: #fff; border-color: var(--blush-deep); }
.rail__arrow:disabled { opacity: .32; cursor: default; }
.rail__arrow:disabled:hover { background: var(--surface); color: var(--ink); border-color: var(--line-soft); }

/* Focused slider (replaces .gallery) */
.slider {
  position: relative;
  padding-block: var(--s2);
  overflow: hidden;
}
.slider__track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  overflow: visible;
  padding-block: var(--s3);
}

/* Base slide — "far" state */
.slider__slide {
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  cursor: pointer;
  width: 65px;
  height: 260px;
  border-radius: 40px;
  opacity: 0.4;
  transition:
    width  0.55s var(--ease),
    height 0.55s var(--ease),
    border-radius 0.55s var(--ease),
    opacity 0.45s var(--ease);
}

/* Adjacent pills */
.slider__slide.is-prev,
.slider__slide.is-next {
  width: 88px;
  height: 320px;
  border-radius: 44px;
  opacity: 0.82;
}

/* Active card */
.slider__slide.is-active {
  width: 380px;
  height: 380px;
  border-radius: var(--radius-lg);
  opacity: 1;
  cursor: default;
}

/* Image fills the card */
.slider__img-wrap {
  position: absolute;
  inset: 0;
}
.slider__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(0.96) contrast(1.02);
  transition: transform 0.65s var(--ease);
}
.slider__slide.is-active:hover .slider__img-wrap img { transform: scale(1.04); }

/* Caption overlay — active only */
.slider__caption {
  position: absolute;
  bottom: var(--s3);
  left: var(--s3);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(58, 42, 30, 0.70);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 12px 16px;
  max-width: calc(100% - 2rem);
  color: var(--cream);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    opacity 0.35s var(--ease) 0.1s,
    transform 0.35s var(--ease) 0.1s;
}
.slider__slide.is-active .slider__caption {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.slider__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blush);
  color: var(--cream);
  margin-top: 1px;
}
.slider__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.slider__category {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--cream);
}
.slider__subtitle {
  font-family: var(--body);
  font-size: 0.78rem;
  color: rgba(240, 237, 228, 0.78);
  line-height: 1.3;
}

/* Pip icon badge — shown on prev/next pills */
.slider__pip-icon {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(58, 42, 30, 0.58);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.slider__slide.is-prev .slider__pip-icon,
.slider__slide.is-next .slider__pip-icon { opacity: 1; }

/* Arrow buttons */
.slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.slider__arrow:hover {
  background: var(--blush);
  border-color: var(--blush);
  color: var(--cream);
}
.slider__arrow--prev { left: 0; }
.slider__arrow--next { right: 0; }
.slider__arrow:focus-visible { outline: 2px solid var(--blush); outline-offset: 3px; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .slider__slide,
  .slider__caption,
  .slider__img-wrap img { transition: none !important; }
}

/* Mobile */
@media (max-width: 640px) {
  .slider__track { gap: 10px; }
  .slider__slide { width: 38px; height: 210px; border-radius: 24px; }
  .slider__slide.is-prev,
  .slider__slide.is-next { width: 52px; height: 252px; border-radius: 30px; }
  .slider__slide.is-active { width: calc(100vw - 140px); height: 340px; }
  .slider__slide.is-far-prev,
  .slider__slide.is-far-next { width: 0; opacity: 0; }
}

/* CTA band over a photograph */
.cta-band--photo .cta-band__art img { width: 100%; height: 100%; object-fit: cover; }
.cta-band--photo .cta-band__art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(165deg, rgba(58, 42, 30,0.78), rgba(58, 42, 30,0.68) 60%, rgba(151, 67, 21,0.62));
}

/* Photo used as the art side of a split section */
.split__art .photo-mount { max-width: 520px; margin-inline: auto; }

/* Service path with a photo */
.path--photo { grid-template-columns: 44% 56%; align-items: stretch; padding: 0; overflow: hidden; gap: 0; height: 480px; border: none; box-shadow: 0 2px 16px rgba(58, 42, 30,.07); background: transparent; }
.path--photo:hover { transform: none; box-shadow: 0 8px 32px rgba(58, 42, 30,.13); border-color: transparent; }
.path--photo .path__photo { height: 100%; min-height: 0; border-radius: var(--radius-lg) 0 0 var(--radius-lg); overflow: hidden; transform: translateZ(0); }
.path--photo .path__photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.path--photo:hover .path__photo img { transform: scale(1.05); }
.path--photo .path__content { padding: var(--s5); display: flex; flex-direction: column; justify-content: center; background: var(--surface); position: relative; overflow: hidden; }
.path--photo .path__content .textlink { align-self: flex-start; }
.path--photo .path__index { position: absolute; bottom: -0.05em; right: var(--s3); font-size: clamp(4.5rem, 9vw, 7.5rem); line-height: 1; color: var(--blush); opacity: 0.1; pointer-events: none; user-select: none; width: auto; margin: 0; }
.path--photo h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin-bottom: var(--s2); }
.path--photo:nth-child(even) .path__photo { order: 2; border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.path--photo:nth-child(even) .path__content { order: 1; }
@media (max-width: 760px) {
  .path--photo { grid-template-columns: 1fr; min-height: 0; }
  .path--photo .path__photo, .path--photo:nth-child(even) .path__photo { aspect-ratio: 4 / 3; height: auto; overflow: hidden; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .path--photo .path__content { padding: var(--s4); }
  .path--photo:nth-child(even) .path__photo { order: 0; }
  .path--photo:nth-child(even) .path__content { order: 0; }
}
