/* =========================================================================
   Kira Jacob, ET - Educational Therapy
   Design system: warm sage palette, Young Serif display, Hanken body.
   Custom scroll rail, animated page transitions, scroll-reveal motion.
   ========================================================================= */

/* Self-hosted fonts (latin subsets from Google Fonts, served same-origin so the
   CSP needs no third-party hosts and first paint skips two cross-origin hops).
   Hanken Grotesk is a variable font: one file covers weights 400-700. */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/hanken-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Young Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/young-serif-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* palette */
  --ink: #2b322d;          /* deep green-gray text */
  --ink-soft: #5b645d;     /* muted body */
  --paper: #f7f5ee;        /* warm off-white */
  --paper-2: #efeee4;      /* slightly deeper paper */
  --mint: #daf0ee;         /* light mint */
  --sage: #94d1be;         /* signature sage */
  --sage-deep: #3b7563;    /* accent / interactive. WCAG AA: 4.9:1 on paper, 4.5:1 on mint (was #4f9c84 at 3:1, failing for small text) */
  --forest: #2e3a33;       /* dark sections */
  --forest-2: #243029;
  --cream-line: rgba(43, 50, 45, 0.12);

  /* type */
  --display: "Young Serif", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  /* rhythm */
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 80px);
  --radius: 18px;
  --radius-lg: 30px;

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; touch-action: none; }

/* native scrollbar hidden in favor of the custom rail (page still scrolls
   natively: wheel, trackpad, keyboard, touch, and find-in-page all work) */
::-webkit-scrollbar { width: 0; height: 0; background: transparent; }
html { scrollbar-width: none; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(59, 117, 99, 0.75);
  outline-offset: 4px;
}
#view:focus { outline: none; }

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

::selection { background: var(--sage); color: var(--forest); }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.04; letter-spacing: -0.01em; }

.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 999;
  background: var(--forest); color: #fff; padding: 12px 18px; border-radius: 999px;
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 16px; }

/* =========================================================================
   BACKGROUND FIELD (organic floating blobs + grain)
   ========================================================================= */
.bg-field { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.bg-field::after {
  /* subtle grain */
  content: ""; position: absolute; inset: 0; opacity: 0.035;
  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.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.blob {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.5;
  will-change: transform;
}
.blob--1 { width: 46vw; height: 46vw; left: -12vw; top: -8vw; background: var(--mint); animation: float1 22s var(--ease-soft) infinite; }
.blob--2 { width: 38vw; height: 38vw; right: -10vw; top: 30vh; background: var(--sage); opacity: 0.35; animation: float2 26s var(--ease-soft) infinite; }
.blob--3 { width: 30vw; height: 30vw; left: 20vw; bottom: -10vw; background: var(--mint); opacity: 0.4; animation: float3 30s var(--ease-soft) infinite; }
@keyframes float1 { 50% { transform: translate(8vw, 6vh) scale(1.1); } }
@keyframes float2 { 50% { transform: translate(-6vw, -8vh) scale(1.12); } }
@keyframes float3 { 50% { transform: translate(5vw, -5vh) scale(0.92); } }

/* =========================================================================
   SCROLL WRAPPER (native flow)
   ========================================================================= */
.scroll { position: relative; width: 100%; }

/* =========================================================================
   CUSTOM SCROLL RAIL (the "unique scrollbar")
   ========================================================================= */
.railwrap {
  position: fixed; top: 0; right: clamp(8px, 1.4vw, 22px); height: 100vh; z-index: 60;
  display: flex; align-items: center; pointer-events: none;
}
.rail {
  position: relative; width: 8px; height: min(58vh, 460px);
  pointer-events: auto;
}
.rail__track {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 2px; height: 100%; background: var(--cream-line); border-radius: 2px;
}
.rail__fill {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 2px; height: 0; background: var(--sage-deep); border-radius: 2px;
  transition: height 0.1s linear;
}
.rail__thumb {
  position: absolute; left: 50%; top: 0;
  transform: translate(-50%, 0);
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--sage-deep); cursor: grab;
  box-shadow: 0 4px 12px rgba(43, 50, 45, 0.2);
  transition: transform 0.12s var(--ease), background 0.2s, box-shadow 0.2s;
}
.rail__thumb:active { cursor: grabbing; }
.rail:hover .rail__thumb { background: var(--sage-deep); box-shadow: 0 6px 16px rgba(43, 50, 45, 0.28); }
.rail__marks { position: absolute; left: 50%; top: 0; height: 100%; transform: translateX(-50%); }
.rail__mark {
  position: absolute; left: 50%; transform: translate(-50%, -50%);
  width: 5px; height: 5px; border-radius: 50%; background: var(--cream-line);
  transition: background 0.3s, transform 0.3s;
}
.rail__mark.is-active { background: var(--sage-deep); transform: translate(-50%, -50%) scale(1.6); }
.rail__mark::after {
  content: attr(data-label);
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-family: var(--sans); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft); white-space: nowrap; opacity: 0; transition: opacity 0.25s;
}
.rail:hover .rail__mark::after { opacity: 0.7; }

@media (max-width: 760px) { .railwrap { display: none; } }

/* =========================================================================
   HEADER
   ========================================================================= */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter); transition: padding 0.4s var(--ease), background 0.4s var(--ease);
}
.site-header.scrolled {
  padding: 12px var(--gutter);
  background: rgba(247, 245, 238, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--cream-line);
}
.brand { display: flex; align-items: baseline; gap: 8px; }
.brand__name { font-family: var(--display); font-size: 23px; letter-spacing: -0.02em; }
.brand__tag {
  font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0.18em;
  color: var(--sage-deep); border: 1.5px solid var(--sage); border-radius: 999px; padding: 2px 8px;
}
.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 34px); }
.nav a {
  font-size: 15px; font-weight: 500; color: var(--ink); position: relative; padding: 4px 0;
}
.nav a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--sage-deep); transition: width 0.3s var(--ease);
}
.nav a:not(.nav__cta):hover::after, .nav a.active:not(.nav__cta)::after { width: 100%; }
.nav a.active:not(.nav__cta) { color: var(--sage-deep); }
.nav__cta {
  background: var(--forest); color: var(--paper) !important; padding: 9px 20px; border-radius: 999px;
  transition: transform 0.3s var(--ease), background 0.3s;
}
.nav__cta:hover { background: var(--sage-deep); transform: translateY(-2px); }

.menu-btn { display: none; width: 40px; height: 40px; position: relative; }
.menu-btn span {
  position: absolute; left: 9px; width: 22px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.menu-btn span:nth-child(1) { top: 16px; }
.menu-btn span:nth-child(2) { top: 23px; }
.menu-btn.open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.menu-btn.open span:nth-child(2) { top: 19px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .nav { display: none; }
  .menu-btn { display: block; }
}

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: var(--forest); color: var(--paper);
  display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: var(--gutter);
  clip-path: circle(0% at calc(100% - 40px) 40px);
  transition: clip-path 0.6s var(--ease); pointer-events: none;
}
.mobile-menu.open { clip-path: circle(150% at calc(100% - 40px) 40px); pointer-events: auto; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu a {
  font-family: var(--display); font-size: clamp(32px, 9vw, 54px); color: var(--paper);
  opacity: 0; transform: translateY(20px); transition: opacity 0.4s, transform 0.4s, color 0.3s;
}
.mobile-menu.open a { opacity: 1; transform: none; }
.mobile-menu.open a:nth-child(1) { transition-delay: 0.15s; }
.mobile-menu.open a:nth-child(2) { transition-delay: 0.21s; }
.mobile-menu.open a:nth-child(3) { transition-delay: 0.27s; }
.mobile-menu.open a:nth-child(4) { transition-delay: 0.33s; }
.mobile-menu.open a:nth-child(5) { transition-delay: 0.39s; }
.mobile-menu.open a:nth-child(6) { transition-delay: 0.45s; }
.mobile-menu a:hover { color: var(--sage); }
/* the contact link reads as a filled pill, matching the desktop nav CTA */
.mobile-menu nav a[href="#/contact"] {
  font-family: var(--sans); font-size: clamp(20px, 5.5vw, 26px); font-weight: 600;
  background: var(--sage); color: var(--forest);
  border-radius: 999px; padding: 12px 30px; width: fit-content; margin-top: 18px;
}
.mobile-menu nav a[href="#/contact"]:hover { color: var(--forest); }
.mobile-menu__addr { margin-top: 30px; color: var(--sage); font-size: 14px; letter-spacing: 0.04em; }
.mobile-menu__addr a {
  font-family: var(--sans); font-size: 14px; color: var(--sage);
  text-decoration: underline; text-underline-offset: 3px;
}

/* =========================================================================
   LAYOUT PRIMITIVES
   ========================================================================= */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(80px, 12vh, 160px); position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--sage-deep);
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--sage-deep); display: inline-block; }

.h-xl { font-size: clamp(44px, 8vw, 104px); }
.h-lg { font-size: clamp(34px, 5.4vw, 68px); }
.h-md { font-size: clamp(26px, 3.6vw, 44px); }
.lead { font-size: clamp(18px, 2.1vw, 24px); color: var(--ink-soft); line-height: 1.55; }
.muted { color: var(--ink-soft); }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-size: 16px; font-weight: 600;
  padding: 16px 30px; border-radius: 999px; background: var(--forest); color: var(--paper);
  transition: transform 0.35s var(--ease), background 0.35s; position: relative; overflow: hidden;
}
.btn svg { transition: transform 0.35s var(--ease); }
.btn:hover { background: var(--sage-deep); transform: translateY(-3px); }
.btn:hover svg { transform: translateX(5px); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* =========================================================================
   REVEAL ANIMATION (IntersectionObserver toggles .in)
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }
.reveal[data-d="4"] { transition-delay: 0.32s; }
.reveal[data-d="5"] { transition-delay: 0.4s; }

/* word-by-word display reveal */
.reveal-words .word { display: inline-block; overflow: hidden; vertical-align: top; }
.reveal-words .word > span {
  display: inline-block; transform: translateY(110%); transition: transform 0.8s var(--ease);
}
.reveal-words.in .word > span { transform: none; }

/* =========================================================================
   HERO (home)
   ========================================================================= */
.hero { min-height: 100svh; display: flex; align-items: center; padding-top: 120px; position: relative; }
.hero__grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(30px, 5vw, 80px); align-items: center; width: 100%;
}
.hero__eyebrow { margin-bottom: 26px; }
.hero__title { margin-bottom: 28px; }
.hero__name { display: block; }
.hero__tag { max-width: 30ch; margin-bottom: 38px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__visual { position: relative; }
.hero__portrait {
  position: relative; aspect-ratio: 4/5; border-radius: 240px 240px var(--radius-lg) var(--radius-lg);
  overflow: hidden; background: var(--sage); box-shadow: 0 40px 90px -30px rgba(43, 50, 45, 0.4);
}
.hero__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero__chip {
  position: absolute; background: var(--paper); border-radius: 16px; padding: 14px 18px;
  box-shadow: 0 18px 40px -16px rgba(43, 50, 45, 0.35); display: flex; align-items: center; gap: 12px;
}
.hero__chip strong { font-family: var(--display); font-size: 22px; color: var(--sage-deep); }
.hero__chip span { font-size: 12px; line-height: 1.3; color: var(--ink-soft); max-width: 12ch; }
.hero__chip--1 { left: -22px; top: 18%; animation: bob 6s var(--ease-soft) infinite; }
.hero__chip--2 { right: -18px; bottom: 14%; animation: bob 7s var(--ease-soft) infinite reverse; }
@keyframes bob { 50% { transform: translateY(-12px); } }

.hero__scroll {
  position: absolute; left: var(--gutter); bottom: 34px; display: flex; align-items: center; gap: 12px;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft);
}
.hero__scroll span.line { width: 50px; height: 1px; background: var(--ink-soft); position: relative; overflow: hidden; }
.hero__scroll span.line::after { content: ""; position: absolute; inset: 0; background: var(--sage-deep); animation: sweep 2.2s var(--ease) infinite; }
@keyframes sweep { 0% { transform: translateX(-100%); } 60%,100% { transform: translateX(100%); } }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 50px; }
  .hero__visual { max-width: 380px; }
  .hero__scroll { display: none; }
}

/* =========================================================================
   DARK BAND (forest) + MINT BAND
   ========================================================================= */
.band { position: relative; }
.band--forest { background: var(--forest); color: var(--paper); }
.band--forest .eyebrow { color: var(--sage); }
.band--forest .eyebrow::before { background: var(--sage); }
.band--forest .muted { color: rgba(247,245,238,0.7); }
.band--mint { background: var(--mint); }
.band--sage { background: var(--sage); }

.band--forest .check li::marker { color: var(--sage); }
.checklist { list-style: none; display: grid; gap: 18px; margin-top: 30px; }
.checklist li { display: flex; gap: 16px; align-items: flex-start; font-size: 17px; line-height: 1.5; }
.checklist .dot {
  flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--sage); color: var(--forest);
  display: grid; place-items: center; margin-top: 2px;
}
.band--forest .checklist .dot { background: var(--sage); }

.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 40px; } }

/* =========================================================================
   HOME - INSIDE A SESSION (photo cluster)
   ========================================================================= */
.practice { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.practice__media { position: relative; }
.practice__img { overflow: hidden; border-radius: var(--radius-lg); background: var(--sage); }
.practice__img img { width: 100%; height: 100%; object-fit: cover; }
.practice__img--lg { aspect-ratio: 4/5; box-shadow: 0 40px 90px -34px rgba(43, 50, 45, 0.4); }
.practice__img--sm {
  position: absolute; right: -26px; bottom: -34px; width: 48%; aspect-ratio: 3/4;
  border-radius: var(--radius); border: 7px solid var(--paper);
  box-shadow: 0 24px 50px -22px rgba(43, 50, 45, 0.4);
}
@media (max-width: 860px) {
  .practice { grid-template-columns: 1fr; gap: 28px; }
  .practice__img--sm { position: static; width: 58%; margin: -56px 0 0 auto; border-width: 6px; }
}

/* =========================================================================
   HOME - HOW IT WORKS (process)
   ========================================================================= */
.process__head { max-width: 640px; }
.process {
  list-style: none; counter-reset: step; margin-top: 56px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.step {
  position: relative; padding: 32px 28px; border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.55); border: 1px solid var(--cream-line);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), background 0.5s var(--ease);
}
.step::before {
  content: ""; position: absolute; left: 28px; right: 28px; top: 0; height: 3px;
  background: var(--sage); border-radius: 0 0 3px 3px; transform: scaleX(0); transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.step:hover { transform: translateY(-6px); background: #fff; box-shadow: 0 30px 60px -30px rgba(43, 50, 45, 0.3); }
.step:hover::before { transform: scaleX(1); }
.step__n {
  font-family: var(--display); font-size: 17px; color: var(--sage-deep);
  letter-spacing: 0.05em; margin-bottom: 18px;
}
.step__title { font-size: 22px; margin-bottom: 10px; }
.step__body { color: var(--ink-soft); font-size: 15px; line-height: 1.55; }
@media (max-width: 980px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .process { grid-template-columns: 1fr; gap: 14px; } }

/* =========================================================================
   FAQ (accordion on Services)
   ========================================================================= */
.faq-grid {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 6vw, 84px); align-items: start;
}
@media (max-width: 880px) { .faq-grid { grid-template-columns: 1fr; gap: 38px; } }
.faq-intro { position: sticky; top: 120px; }
@media (max-width: 880px) { .faq-intro { position: relative; top: auto; } }
.faq-list { display: grid; gap: 14px; }
.faq {
  border: 1px solid var(--cream-line); border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.6); overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.faq[open] { background: #fff; box-shadow: 0 22px 48px -30px rgba(43, 50, 45, 0.32); border-color: rgba(59, 117, 99, 0.4); }
.faq__q {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 20px;
  justify-content: space-between; padding: 24px clamp(22px, 3vw, 30px);
  font-family: var(--display); font-size: clamp(18px, 1.7vw, 21px); color: var(--forest); line-height: 1.3;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--sage-deep); }
.faq__icon { position: relative; flex: none; width: 18px; height: 18px; }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; background: var(--sage-deep);
  transition: transform 0.35s var(--ease);
}
.faq__icon::before { width: 16px; height: 2px; transform: translate(-50%, -50%); }
.faq__icon::after { width: 2px; height: 16px; transform: translate(-50%, -50%); }
.faq[open] .faq__icon::after { transform: translate(-50%, -50%) scaleY(0); }
.faq__a { padding: 0 clamp(22px, 3vw, 30px) 26px; }
.faq[open] .faq__a { animation: faqReveal 0.4s var(--ease) both; }
@keyframes faqReveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.faq__a p { color: var(--ink-soft); font-size: 16px; line-height: 1.65; max-width: 60ch; }
.band--mint .faq { background: rgba(255, 255, 255, 0.72); }
.band--mint .faq[open] { background: #fff; }

/* =========================================================================
   SERVICES
   ========================================================================= */
.svc-banner {
  margin-top: 60px; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 7;
  box-shadow: 0 30px 70px -34px rgba(43, 50, 45, 0.4);
}
.svc-banner img { width: 100%; height: 100%; object-fit: cover; object-position: center 32%; }
@media (max-width: 760px) { .svc-banner { aspect-ratio: 4 / 3; margin-top: 40px; } }
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 60px; }
@media (max-width: 760px) { .svc-grid { grid-template-columns: 1fr; } }
.svc {
  position: relative; padding: 40px; border-radius: var(--radius); background: rgba(255,255,255,0.55);
  border: 1px solid var(--cream-line); overflow: hidden; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.svc::before {
  content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 4px; background: var(--sage);
  transform: scaleY(0); transform-origin: top; transition: transform 0.5s var(--ease);
}
.svc:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -28px rgba(43,50,45,0.35); background: #fff; }
.svc:hover::before { transform: scaleY(1); }
.svc__n { font-family: var(--display); font-size: 16px; color: var(--sage-deep); letter-spacing: 0.05em; }
.svc__title { font-size: 27px; margin: 14px 0 14px; }
.svc__body { color: var(--ink-soft); font-size: 16px; }
.svc__arrow { margin-top: 22px; color: var(--sage-deep); opacity: 0; transform: translateX(-8px); transition: opacity 0.4s, transform 0.4s; }
.svc:hover .svc__arrow { opacity: 1; transform: none; }

.note-card {
  margin-top: 60px; padding: clamp(30px, 5vw, 56px); border-radius: var(--radius-lg);
  background: var(--forest); color: var(--paper); display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 40px; align-items: center;
}
@media (max-width: 760px) { .note-card { grid-template-columns: 1fr; gap: 22px; } }
.note-card h2 { font-size: 34px; }
.note-card ul { list-style: none; display: grid; gap: 12px; }
.note-card li { display: flex; gap: 12px; align-items: baseline; color: rgba(247,245,238,0.85); }
.note-card li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sage); flex: none; }

/* =========================================================================
   ABOUT
   ========================================================================= */
.about-hero { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
@media (max-width: 860px) { .about-hero { grid-template-columns: 1fr; } }
.about-portrait { position: sticky; top: 110px; }
.about-portrait__img {
  aspect-ratio: 3/4; border-radius: var(--radius-lg); overflow: hidden; background: var(--sage);
  box-shadow: 0 40px 90px -34px rgba(43,50,45,0.45);
}
.about-portrait__img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.about-facts { margin-top: 22px; display: grid; gap: 10px; }
.about-facts li { display: flex; gap: 12px; align-items: center; font-size: 14px; color: var(--ink-soft); }
.about-facts .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage-deep); flex: none; }

.about-body p { font-size: clamp(17px, 1.4vw, 19px); color: var(--ink); margin-top: 24px; line-height: 1.7; }
.about-body p.lead { font-family: var(--display); font-size: clamp(24px, 3vw, 34px); color: var(--forest); line-height: 1.25; margin-top: 0; }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 70px; }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } }
.principle { padding: 32px; border-radius: var(--radius); background: rgba(255,255,255,0.5); border: 1px solid var(--cream-line); }
.principle__n { font-family: var(--display); font-size: 40px; color: var(--sage); line-height: 1; }
.principle h3 { font-size: 24px; margin: 12px 0 8px; }
.principle p { color: var(--ink-soft); font-size: 15px; }

/* =========================================================================
   TEAM
   ========================================================================= */
.team-grid { display: grid; gap: 24px; margin-top: 60px; }
.member {
  display: grid; grid-template-columns: 220px 1fr; gap: clamp(24px, 4vw, 60px); align-items: center;
  padding: clamp(26px, 4vw, 46px); border-radius: var(--radius-lg); background: rgba(255,255,255,0.5);
  border: 1px solid var(--cream-line); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.member:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(43,50,45,0.3); }
.member__avatar {
  position: relative;
  width: 220px; height: 220px; border-radius: 50%; overflow: hidden; background: var(--mint);
  display: grid; place-items: center; font-family: var(--display); font-size: 64px; color: var(--sage-deep);
}
/* Absolute-fill so the image truly covers the 220px circle. With the image as
   a grid child its height:100% resolved to the intrinsic aspect height (330px)
   and object-position became a no-op; positioning it out of flow fixes the crop
   while the grid still centers the initials fallback. */
.member__avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.member__role { color: var(--sage-deep); font-weight: 600; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.member__name { font-size: clamp(30px, 4vw, 44px); margin: 8px 0 16px; }
.member__bio { color: var(--ink-soft); font-size: 16px; max-width: 60ch; }
.member__link { margin-top: 18px; display: inline-flex; gap: 8px; color: var(--sage-deep); font-weight: 600; }
@media (max-width: 680px) {
  .member { grid-template-columns: 1fr; text-align: center; }
  .member__avatar { width: 150px; height: 150px; margin: 0 auto; }
  .member__bio { margin: 0 auto; }
}

/* =========================================================================
   TESTIMONIALS
   ========================================================================= */
.quote-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 60px; }
@media (max-width: 820px) { .quote-grid { grid-template-columns: 1fr; } }
.quote {
  position: relative; padding: clamp(30px, 4vw, 48px); border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.6); border: 1px solid var(--cream-line); overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.quote:nth-child(odd) { background: var(--mint); }
.quote:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(43,50,45,0.3); }
.quote__mark { font-family: var(--display); font-size: 90px; line-height: 0.6; color: var(--sage); opacity: 0.6; height: 40px; }
.quote__tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--sage-deep); margin-bottom: 16px; background: rgba(59,117,99,0.12); padding: 5px 12px; border-radius: 999px;
}
.quote__text { font-size: clamp(15px, 1.4vw, 17px); line-height: 1.65; color: var(--ink); }
.quote__by { margin-top: 22px; font-family: var(--display); font-size: 18px; color: var(--forest); display: flex; align-items: center; gap: 10px; }
.quote__by::before { content: ""; width: 22px; height: 2px; background: var(--sage-deep); }

/* home social-proof section (pull quotes + AET badge) */
.proof-head { max-width: 640px; }
.quote-grid--home { margin-top: 48px; }
.proof-foot {
  margin-top: 40px; display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
}
.proof-badge { display: flex; align-items: center; gap: 14px; }
.proof-badge img { width: 56px; height: auto; flex: none; }
.proof-badge span { font-size: 13px; color: var(--ink-soft); max-width: 24ch; line-height: 1.4; }

/* =========================================================================
   CONTACT
   ========================================================================= */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-status {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px;
  background: var(--sage); color: var(--forest); font-size: 13px; font-weight: 600; margin-bottom: 26px;
}
.contact-status .pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--forest); position: relative; }
.contact-status .pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--forest); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(3); opacity: 0; } }
.contact-note { margin-top: 28px; padding: 24px; border-left: 3px solid var(--sage); background: rgba(255,255,255,0.5); border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink-soft); font-size: 15px; }
.contact-addr { margin-top: 30px; font-family: var(--display); font-size: 22px; color: var(--forest); line-height: 1.4; }
.contact-email { margin-top: 14px; font-size: 15px; color: var(--ink-soft); }
.contact-email a {
  color: var(--sage-deep); font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px;
}

.form { display: grid; gap: 20px; }
.field { position: relative; }
.field label { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-soft); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 16px; color: var(--ink);
  padding: 15px 18px; border: 1.5px solid var(--cream-line); border-radius: 14px; background: rgba(255,255,255,0.7);
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sage-deep); box-shadow: 0 0 0 4px rgba(59,117,99,0.12); background: #fff; }
.field input.is-invalid, .field textarea.is-invalid {
  border-color: #b45f54;
  box-shadow: 0 0 0 4px rgba(180, 95, 84, 0.12);
}
.form__submit { justify-self: start; margin-top: 6px; }
.form__submit:disabled { opacity: 0.6; cursor: progress; }
/* honeypot: hidden from people and assistive tech, available to bots */
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form__error {
  margin-top: 4px; padding: 14px 18px; border-radius: 14px;
  background: rgba(180, 95, 84, 0.1); border: 1.5px solid rgba(180, 95, 84, 0.4);
  color: #8f463c; font-size: 15px;
}
.form__success {
  display: none; padding: 30px; border-radius: var(--radius-lg); background: var(--sage); color: var(--forest);
  text-align: center;
}
.form__success.show { display: block; animation: pop 0.5s var(--ease); }
.form__success h2 { font-size: 30px; margin-bottom: 10px; }
@keyframes pop { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer { background: var(--forest-2); color: var(--paper); padding-top: 80px; }
.footer__inner {
  max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter);
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 50px; padding-bottom: 60px;
}
@media (max-width: 760px) { .footer__inner { grid-template-columns: 1fr; gap: 36px; } }
.footer__logo { font-family: var(--display); font-size: 34px; margin-bottom: 16px; }
.footer__logo em { color: var(--sage); font-style: normal; }
.footer__line { color: rgba(247,245,238,0.7); margin-bottom: 18px; }
.footer__addr { color: rgba(247,245,238,0.55); font-size: 14px; line-height: 1.7; }
.footer__email {
  display: inline-block; margin-top: 10px; color: rgba(247,245,238,0.8); font-size: 14px;
  text-decoration: underline; text-underline-offset: 3px; transition: color 0.3s;
}
.footer__email:hover { color: var(--sage); }
.footer__nav { display: flex; flex-direction: column; gap: 14px; }
.footer__nav a { color: rgba(247,245,238,0.8); transition: color 0.3s, padding-left 0.3s; width: fit-content; }
.footer__nav a:hover { color: var(--sage); padding-left: 6px; }
.footer__badge { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.footer__badge img { width: 92px; height: auto; }
.footer__badge span { font-size: 13px; color: rgba(247,245,238,0.6); max-width: 22ch; }
.footer__base {
  border-top: 1px solid rgba(247,245,238,0.12); padding: 26px var(--gutter);
  max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between; gap: 16px;
  font-size: 13px; color: rgba(247,245,238,0.5); flex-wrap: wrap;
}

/* =========================================================================
   PAGE TRANSITION CURTAIN
   ========================================================================= */
.curtain {
  position: fixed; inset: 0; z-index: 80; background: var(--forest);
  transform: translateY(100%); pointer-events: none; display: grid; place-items: center;
}
.curtain.cover { animation: curtainIn 0.55s var(--ease) forwards; }
.curtain.reveal { animation: curtainOut 0.55s var(--ease) forwards; }
.curtain__mark { font-family: var(--display); font-size: 70px; color: var(--sage); opacity: 0; }
.curtain.cover .curtain__mark { animation: markIn 0.55s var(--ease) forwards; }
@keyframes curtainIn { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes curtainOut { from { transform: translateY(0); } to { transform: translateY(-100%); } }
@keyframes markIn { 0% { opacity: 0; transform: scale(0.8); } 60% { opacity: 1; } 100% { opacity: 0; transform: scale(1.05); } }

/* page enter */
.page { }
.page-enter { animation: pageIn 0.7s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* =========================================================================
   REDUCED MOTION
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .reveal-words .word > span { transform: none; }
}

/* =========================================================================
   MOBILE HARDENING
   ========================================================================= */
@media (max-width: 760px) {
  :root {
    --gutter: clamp(18px, 5.6vw, 26px);
    --radius: 14px;
    --radius-lg: 22px;
  }

  html { scrollbar-width: auto; }
  ::-webkit-scrollbar { width: initial; height: initial; }

  .site-header {
    padding: 14px var(--gutter);
    min-height: 68px;
    background: rgba(247, 245, 238, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(43, 50, 45, 0.08);
  }
  .site-header.scrolled { padding: 10px var(--gutter); }
  .brand__name { font-size: clamp(20px, 5.5vw, 23px); }
  .brand__tag { font-size: 10px; padding-inline: 7px; }
  .menu-btn {
    width: 46px;
    height: 46px;
    margin-right: -8px;
    border-radius: 50%;
  }

  .mobile-menu {
    z-index: 49;
    padding: 88px var(--gutter) 34px;
    justify-content: flex-start;
    overflow-y: auto;
    clip-path: circle(0% at calc(100% - 38px) 34px);
  }
  .mobile-menu.open { clip-path: circle(150% at calc(100% - 38px) 34px); }
  .mobile-menu nav { gap: 2px; }
  .mobile-menu a {
    font-size: clamp(34px, 11vw, 48px);
    line-height: 1.06;
    padding-block: 8px;
  }

  .section,
  .section[style*="padding-top"] {
    padding-top: clamp(96px, 18vw, 118px) !important;
    padding-bottom: clamp(64px, 14vw, 92px);
  }
  .band.section {
    padding-top: clamp(68px, 14vw, 90px) !important;
    padding-bottom: clamp(68px, 14vw, 90px);
  }

  .h-xl { font-size: clamp(48px, 15vw, 66px); line-height: 0.98; }
  .h-lg { font-size: clamp(34px, 10.5vw, 48px); line-height: 1.05; }
  .h-md { font-size: clamp(28px, 8vw, 38px); }
  .lead { font-size: clamp(18px, 5vw, 21px); line-height: 1.5; }
  .eyebrow {
    font-size: 11px;
    letter-spacing: 0.16em;
    line-height: 1.3;
  }
  .eyebrow::before { width: 20px; }

  .btn {
    width: 100%;
    min-height: 52px;
    justify-content: center;
    padding: 14px 20px;
    font-size: 15px;
  }

  .hero {
    min-height: auto;
    padding-top: 112px;
    padding-bottom: 72px;
  }
  .hero__grid { gap: 38px; }
  .hero__tag { max-width: none; margin-bottom: 28px; }
  .hero__actions { gap: 12px; }
  .hero__visual {
    width: min(100%, 330px);
    margin-inline: auto;
  }
  .hero__portrait {
    border-radius: 180px 180px 22px 22px;
    box-shadow: 0 30px 60px -34px rgba(43, 50, 45, 0.45);
  }
  .hero__chip {
    max-width: 150px;
    padding: 11px 13px;
    border-radius: 13px;
  }
  .hero__chip strong { font-size: 19px; }
  .hero__chip span { font-size: 11px; }
  .hero__chip--1 { left: -6px; top: 10%; }
  .hero__chip--2 { right: -6px; bottom: 8%; }

  .svc,
  .principle,
  .quote,
  .contact-note {
    background: rgba(255, 255, 255, 0.72);
  }
  .svc,
  .quote,
  .principle,
  .note-card,
  .member {
    padding: clamp(22px, 6vw, 28px);
  }
  .svc-grid,
  .team-grid,
  .quote-grid {
    margin-top: 38px;
    gap: 16px;
  }
  .svc__arrow {
    opacity: 1;
    transform: none;
  }
  .note-card { margin-top: 36px; }

  .about-portrait {
    position: relative;
    top: auto;
    max-width: 360px;
    margin-inline: auto;
  }
  .about-body p { line-height: 1.65; }
  .about-facts li { align-items: flex-start; }
  .principles { margin-top: 40px; gap: 16px; }

  .member {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .member__avatar {
    width: 132px;
    height: 132px;
    margin: 0;
    font-size: 44px;
  }
  .member__bio { margin: 0; max-width: none; }

  .quote__mark {
    font-size: 70px;
    height: 32px;
  }
  .quote__tag {
    max-width: 100%;
    white-space: normal;
    line-height: 1.35;
  }

  .contact-grid { gap: 34px; }
  /* the long contact headline pushed the entire form below the fold */
  .contact-title { font-size: clamp(27px, 7.6vw, 36px); line-height: 1.12; }
  .contact-status {
    width: 100%;
    border-radius: 16px;
    align-items: flex-start;
    line-height: 1.35;
  }
  .contact-status .pulse { margin-top: 4px; flex: none; }
  .contact-note { padding: 20px; }
  .field input,
  .field textarea {
    min-height: 50px;
    font-size: 16px;
  }
  .field textarea { min-height: 150px; }
  .form__submit { justify-self: stretch; }

  .site-footer { padding-top: 58px; }
  .footer__inner { padding-bottom: 44px; }
  .footer__base {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 380px) {
  .brand { gap: 6px; }
  .brand__name { font-size: 19px; }
  .brand__tag { display: none; }
  .mobile-menu a { font-size: clamp(31px, 10.5vw, 40px); }
  .hero__chip { position: static; margin-top: 10px; max-width: none; }
  .hero__chip--1,
  .hero__chip--2 { animation: none; }
}
