/* =========================================================================
   ERIC BLOOMSTEIN — Coaching & Advocacy
   Design system: Warm, grounded, elegant. Olive + ivory + moss/clay, gold accents.
   Type: Newsreader (humanist serif) headings · Mulish (humanist sans) body.
   ========================================================================= */

:root {
  /* Brand palette */
  --olive:    #484C2A;
  --olive-deep: #3a3d22;
  --ivory:    #FBF7EF;   /* lightened: cleaner, more modern, still warm */
  --ivory-2:  #F3ECDD;   /* slightly deeper ivory for alternating bands */
  --sage:     #F2EEE4;   /* warm neutral oat (was a green tint) for calm sections */
  --moss:     #6F7A54;
  --moss-soft:#8a936f;
  --clay:     #A65F3F;
  --clay-soft:#bd7a5a;
  --gold:     #B8914A;
  --charcoal: #2D2A26;
  --charcoal-soft: #4a463f;

  --line: rgba(72,76,42,0.16);
  --line-soft: rgba(72,76,42,0.10);

  /* Type families (swappable via Tweaks) */
  --font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-body: 'Mulish', system-ui, -apple-system, sans-serif;

  /* Rhythm */
  --maxw: 1240px;
  --gut: clamp(20px, 5vw, 64px);
  --radius: 18px;
  --radius-lg: 28px;

  --shadow-soft: 0 1px 2px rgba(45,42,38,0.04), 0 18px 40px -28px rgba(45,42,38,0.30);
  --shadow-card: 0 1px 2px rgba(45,42,38,0.05), 0 30px 60px -40px rgba(45,42,38,0.40);
}

/* Tweak: heading font alternatives */
:root[data-display="spectral"]  { --font-display: 'Spectral', Georgia, serif; }
:root[data-display="marcellus"] { --font-display: 'Marcellus', Georgia, serif; }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: 0.005em;
  overflow-x: clip;
}

::selection { background: rgba(184,145,74,0.28); }

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--olive);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: 760px; }

/* ---------- Eyebrow / kicker ---------- */
.kicker {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  margin: 0 0 1.4rem;
}
.kicker::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--gold);
  display: inline-block;
}
.kicker.center { justify-content: center; }
.kicker.center::after {
  content: "";
  width: 26px; height: 1px;
  background: var(--gold);
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  padding: 0.95em 1.7em;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .35s cubic-bezier(.2,.7,.3,1), background .3s, color .3s, box-shadow .3s, border-color .3s;
  line-height: 1;
}
.btn .arrow { transition: transform .35s cubic-bezier(.2,.7,.3,1); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--olive);
  color: var(--ivory);
  box-shadow: 0 12px 30px -16px rgba(72,76,42,0.7);
}
.btn-primary:hover { background: var(--olive-deep); transform: translateY(-2px); box-shadow: 0 18px 36px -16px rgba(72,76,42,0.75); }

.btn-ghost {
  background: transparent;
  color: var(--olive);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--olive); transform: translateY(-2px); }

.btn-light {
  background: var(--ivory);
  color: var(--olive);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -16px rgba(0,0,0,0.4); }

/* Text link with underline draw */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 600;
  color: var(--olive);
  position: relative;
  padding-bottom: 3px;
}
.tlink::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  height: 1.5px; width: 100%;
  background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s cubic-bezier(.2,.7,.3,1);
}
.tlink:hover::after { transform: scaleX(1); }
.tlink .arrow { transition: transform .35s cubic-bezier(.2,.7,.3,1); }
.tlink:hover .arrow { transform: translateX(4px); }

/* =========================================================================
   NAV
   ========================================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background .4s, box-shadow .4s, padding .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px var(--gut);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding .4s;
}
.nav.scrolled {
  background: rgba(246,239,227,0.86);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom-color: var(--line-soft);
}
.nav.scrolled .nav-inner { padding-top: 14px; padding-bottom: 14px; }

.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { height: 62px; width: auto; transition: height .4s; }
.nav.scrolled .nav-logo img { height: 50px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 38px);
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--charcoal-soft);
  position: relative;
  transition: color .3s;
}
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  height: 1.5px; width: 100%; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s cubic-bezier(.2,.7,.3,1);
}
.nav-links a:not(.btn):hover { color: var(--olive); }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }
.nav-links .btn { padding: 0.72em 1.4em; font-size: 0.92rem; }
.nav-links a.btn-primary { color: var(--ivory); }
.nav-links a.btn-primary::after { display: none; }
/* smoother, calmer nav button hover */
.nav-links .btn-primary {
  transition: background .5s ease, transform .55s cubic-bezier(.22,1,.36,1), box-shadow .55s ease;
  will-change: transform;
}
.nav-links .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -16px rgba(72,76,42,0.6);
}
.nav-links .btn-primary:active { transform: translateY(0); transition-duration: .12s; }

.nav-toggle { display: none; }

/* =========================================================================
   HERO  (3 variants toggled by data-hero on <body>)
   ========================================================================= */
.hero { position: relative; padding-top: 150px; overflow: hidden; }
.hero-variant { display: none; }
body[data-hero="arched"]   .hero-variant.v-arched   { display: block; }
body[data-hero="immersive"] .hero-variant.v-immersive { display: block; }
body[data-hero="editorial"] .hero-variant.v-editorial { display: block; }

/* shared display headline */
.hero h1 {
  font-size: clamp(2.7rem, 6.4vw, 5.1rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.022em;
}
.hero h1 em {
  font-style: italic;
  color: var(--clay);
  font-weight: 400;
}
.hero .sub {
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  color: var(--charcoal-soft);
  line-height: 1.6;
  max-width: 33ch;
}
.hero-cta { display: flex; align-items: center; gap: clamp(16px,2vw,28px); flex-wrap: wrap; margin-top: 2.2rem; }

/* --- Variant A: arched portrait right --- */
.v-arched .ha-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: center;
  padding-bottom: clamp(70px, 9vw, 130px);
}
.v-arched .ha-portrait {
  position: relative;
}
.ha-ring-bg {
  position: absolute;
  width: 90%;
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  clip-path: circle(50% at 50% 50%);
  animation: ring-spin 30s linear infinite;
  pointer-events: none;
  z-index: 0;
}
.v-arched .ha-illus {
  position: relative;
  z-index: 1;
}
@keyframes ring-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}
.v-arched .ha-illus {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 36px 50px rgba(45,42,38,0.18));
}

/* --- Variant B: immersive full-bleed --- */
.v-immersive .hi-stage {
  position: relative;
  min-height: 86vh;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  margin-bottom: clamp(40px,6vw,90px);
  box-shadow: var(--shadow-card);
}
.v-immersive .hi-bg { position: absolute; inset: -8% 0 0 0; }
.v-immersive .hi-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(45,42,38,0.10) 0%, rgba(45,42,38,0.20) 40%, rgba(45,42,38,0.74) 100%);
}
.v-immersive .hi-content { position: relative; padding: clamp(34px,5vw,72px); max-width: 880px; }
.v-immersive h1 { color: var(--ivory); }
.v-immersive h1 em { color: var(--gold); }
.v-immersive .sub { color: rgba(246,239,227,0.86); max-width: 46ch; }

/* --- Variant C: centered editorial --- */
.v-editorial .he-top { text-align: center; max-width: 1000px; margin: 0 auto; padding-bottom: clamp(34px,4vw,56px); }
.v-editorial .he-top .sub { margin: 1.6rem auto 0; max-width: 56ch; }
.v-editorial .hero-cta { justify-content: center; }
.v-editorial .he-banner {
  position: relative;
  display: flex;
  justify-content: center;
}
.v-editorial .he-illus {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 36px 50px rgba(45,42,38,0.18));
}

/* =========================================================================
   SECTIONS
   ========================================================================= */
section { position: relative; }
.band { padding: clamp(72px, 11vw, 150px) 0; }
.band-sage   { background: var(--sage); }
.band-ivory2 { background: var(--ivory-2); }

/* ---------- The Work: tribal patterned background ---------- */
.work-pattern {
  position: relative;
  background: #3a3f1d url("assets/pattern-work.webp") center / cover no-repeat;
}
.work-pattern::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(40,44,20,0.55) 0%, rgba(40,44,20,0.42) 45%, rgba(40,44,20,0.58) 100%);
  z-index: 0;
}
.work-pattern > .wrap { position: relative; z-index: 1; }
.work-pattern .section-head h2 { color: var(--ivory); }
.work-pattern .section-head h2 em { color: var(--gold); }
.work-pattern .kicker { color: var(--gold); }
.work-pattern .kicker::before, .work-pattern .kicker::after { background: var(--gold); }
.band-olive  { background: var(--olive); color: var(--ivory); }
.band-olive h1, .band-olive h2, .band-olive h3 { color: var(--ivory); }
.band-olive .kicker { color: var(--gold); }
.band-olive .kicker::before, .band-olive .kicker::after { background: var(--gold); }

.section-head { margin-bottom: clamp(40px, 5vw, 68px); }
.section-head h2 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-weight: 400; }
.section-head.center { text-align: center; max-width: 820px; margin-left: auto; margin-right: auto; }
.section-head .lead { font-size: 1.15rem; color: var(--charcoal-soft); margin-top: 1.2rem; }

h2 em, h3 em { font-style: italic; color: var(--clay); }
.band-olive h2 em { color: var(--gold); }

/* ---------- Tribal decorative full-width band behind card sections ---------- */
.band-pattern { position: relative; overflow: hidden; }
.band-pattern::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 50%; transform: translateY(-50%);   /* centered vertically behind the cards */
  height: 0;
  padding-bottom: 14.5%;                    /* preserve the band's aspect ratio at full width */
  background-image: url(assets/tribal-border.webp);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% auto;                /* one band, stretched full width */
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.band-pattern > .wrap { position: relative; z-index: 1; }

/* prose blocks */
.prose p { font-size: 1.12rem; color: var(--charcoal-soft); }
.prose p strong, .prose .accent { color: var(--olive); font-weight: 600; }
.prose .pull {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-style: italic;
  color: var(--olive);
  line-height: 1.4;
  font-weight: 400;
}

/* ---------- Philosophy split ---------- */
.phil-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
}
.phil-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phil-emblem {
  width: 100%;
  max-width: 520px;
  height: auto;
}
@media (prefers-reduced-motion: no-preference) {
  body[data-motion="on"] .phil-emblem { animation: emblem-float 9s ease-in-out infinite; }
}
@keyframes emblem-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.island {
  position: relative;
  background: var(--ivory);
  border-radius: var(--radius-lg);
  padding: clamp(30px,4vw,52px);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line-soft);
}
.island .badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 1rem;
}

/* ---------- 3-up approach cards ---------- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.4vw, 32px);
}
.card {
  background: var(--ivory);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 2.6vw, 40px);
  box-shadow: var(--shadow-soft);
  transition: transform .5s cubic-bezier(.2,.7,.3,1), box-shadow .5s, border-color .5s;
}
.band-sage .card { background: var(--ivory); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); border-color: var(--line); }
.card .num {
  font-family: var(--font-display);
  font-size: 0.95rem; color: var(--gold); font-weight: 600;
  letter-spacing: 0.05em;
  display: block; margin-bottom: 1.5rem;
}
.card .icon { margin-bottom: 1.3rem; }
.card h3 { font-size: 1.42rem; margin-bottom: 0.7rem; font-weight: 500; }
.card p { font-size: 1.02rem; color: var(--charcoal-soft); margin: 0; }

/* ---------- testimonials (3-up) ---------- */
#testimonials { position: relative; overflow: hidden; }
#testimonials > .wrap { position: relative; z-index: 1; }
.tdecor {
  position: absolute;
  top: 50%; left: 50%;
  width: clamp(560px, 64vw, 920px);
  height: auto;
  transform: translate(-50%, -50%);
  border-radius: 50%;            /* clip away the square corners */
  opacity: 0.16;
  mix-blend-mode: multiply;      /* drop the near-white field into the band */
  pointer-events: none;
  z-index: 0;
}
@media (prefers-reduced-motion: no-preference) {
  body[data-motion="on"] .tdecor { animation: tdecor-spin 120s linear infinite; }
}
@keyframes tdecor-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}
.tcards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.4vw, 32px);
}
.tcard {
  position: relative;
  margin: 0;
  background: var(--ivory);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(34px, 3vw, 46px) clamp(28px, 2.6vw, 40px) clamp(30px, 2.6vw, 40px);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform .5s cubic-bezier(.2,.7,.3,1), box-shadow .5s, border-color .5s;
}
.tcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); border-color: var(--line); }
.tcard .tquote {
  font-family: var(--font-display);
  font-size: 3.4rem; line-height: 0.6;
  color: var(--gold); opacity: 0.55;
  display: block; height: 1.4rem;
}
.tcard blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.18rem, 1.5vw, 1.4rem);
  line-height: 1.5;
  color: var(--charcoal);
  letter-spacing: -0.005em;
}
.tcard figcaption {
  margin-top: auto;
  padding-top: 1.6rem;
  font-family: var(--font-body);
  font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--moss);
}
.tcard figcaption::before {
  content: ""; display: inline-block;
  width: 22px; height: 1px; margin-right: 12px;
  background: var(--gold); vertical-align: middle;
}

/* ---------- services (2 big cards) ---------- */
.services-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 40px);
}
.svc {
  position: relative;
  background: var(--ivory);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
  transition: transform .5s cubic-bezier(.2,.7,.3,1), box-shadow .5s;
}
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.svc-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; }
.svc-illus { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.3,1); }
.svc:hover .svc-illus { transform: scale(1.045); }
.svc-body { padding: clamp(28px, 3vw, 44px); display: flex; flex-direction: column; flex: 1; }
.svc-tag {
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--clay); margin-bottom: 0.8rem;
}
.svc h3 { font-size: 1.9rem; margin-bottom: 1rem; font-weight: 500; }
.svc p { font-size: 1.04rem; color: var(--charcoal-soft); }
.svc ul {
  list-style: none; padding: 0; margin: 0.6rem 0 1.8rem;
  display: flex; flex-direction: column; gap: 0.7rem;
}
.svc ul .ttl { font-weight: 600; color: var(--olive); margin-bottom: 0.3rem; list-style: none; }
.svc li:not(.ttl) {
  position: relative; padding-left: 1.7rem;
  font-size: 1rem; color: var(--charcoal-soft);
}
.svc li:not(.ttl)::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
}
.svc .svc-cta { margin-top: auto; }

/* ---------- sympathetic adult ---------- */
.sym-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}
.sym-list { display: flex; flex-direction: column; gap: 1.1rem; margin: 1.6rem 0; }
.sym-list .row {
  display: flex; gap: 14px; align-items: flex-start;
  font-size: 1.12rem; color: var(--charcoal-soft);
}
.sym-list .row .mk { flex: none; margin-top: 4px; }
.sym-media {
  position: relative;
}
.sym-illus {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 30px 44px rgba(45,42,38,0.16));
}

/* ---------- nature full-width ---------- */
.nature {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.nature-bg { position: absolute; inset: -12% 0 0 0; width: 100%; height: 124%; object-fit: cover; object-position: center; }
.nature-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(30,30,20,0.82) 0%, rgba(30,30,20,0.55) 46%, rgba(30,30,20,0.20) 100%);
}
.nature-content { position: relative; max-width: 620px; }
.nature h2 { color: var(--ivory); font-size: clamp(2.1rem,4vw,3.3rem); font-weight: 400; }
.nature p { color: rgba(246,239,227,0.9); font-size: 1.15rem; }
.nature .kicker { color: var(--gold); }
.nature .kicker::before { background: var(--gold); }

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}
.about-portrait {
  position: sticky; top: 110px;
}
.about-illus {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 30px 44px rgba(45,42,38,0.16));
}
.about-stats {
  display: flex; gap: clamp(24px,4vw,52px);
  margin: 2rem 0;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about-stats .stat .n {
  font-family: var(--font-display);
  font-size: 2.4rem; color: var(--olive); font-weight: 500; line-height: 1;
}
.about-stats .stat .l { font-size: 0.92rem; color: var(--charcoal-soft); margin-top: 0.5rem; }

/* ---------- resources ---------- */
.res-3 {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: clamp(20px,2.4vw,30px);
}
.res {
  background: var(--ivory);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: clamp(28px,2.6vw,38px);
  display: flex; flex-direction: column;
  transition: transform .5s cubic-bezier(.2,.7,.3,1), box-shadow .5s, border-color .5s;
  box-shadow: var(--shadow-soft);
}
.res:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); border-color: var(--line); }
.res .icon { margin-bottom: 1.3rem; }
.res h3 { font-size: 1.3rem; margin-bottom: 0.6rem; font-weight: 500; }
.res p { font-size: 1rem; color: var(--charcoal-soft); margin: 0 0 1.4rem; }
.res .tlink { margin-top: auto; font-size: 0.95rem; }

/* ---------- final CTA ---------- */
.final {
  text-align: center;
  position: relative;
  overflow: hidden;
  background: #3a3f1d url("assets/pattern-work.webp") center / cover no-repeat;
}
.final::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(40,44,20,0.62) 0%, rgba(40,44,20,0.5) 50%, rgba(40,44,20,0.66) 100%);
}
.final .compass-bg {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: min(560px, 70vw); opacity: 0.06; z-index: 0;
}
.final .wrap { position: relative; z-index: 1; }
.final h2 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 400; }
.final p { font-size: 1.18rem; max-width: 56ch; margin: 1.4rem auto 2.4rem; }
.final .btn-light { font-size: 1.05rem; padding: 1.1em 2em; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer {
  background: var(--olive-deep);
  color: rgba(246,239,227,0.72);
  padding: clamp(48px,6vw,76px) 0 36px;
}
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.footer img { height: 56px; }
.footer-nav { display: flex; gap: clamp(20px,3vw,46px); flex-wrap: wrap; }
.footer-nav a { color: rgba(246,239,227,0.78); font-size: 0.95rem; transition: color .3s; }
.footer-nav a:hover { color: var(--gold); }
.footer-bottom {
  margin-top: clamp(36px,5vw,60px); padding-top: 24px;
  border-top: 1px solid rgba(246,239,227,0.14);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.85rem; color: rgba(246,239,227,0.5);
}
.footer-credit {
  margin-top: 18px;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: rgba(246,239,227,0.42);
}
.footer-credit a {
  color: rgba(246,239,227,0.7);
  font-weight: 600;
  transition: color .3s;
}
.footer-credit a:hover { color: var(--gold); }

/* =========================================================================
   IMAGE PLACEHOLDERS
   ========================================================================= */
.ph {
  width: 100%; height: 100%;
  background-color: #d8d3c2;
  background-image:
    repeating-linear-gradient(135deg, rgba(72,76,42,0.07) 0 2px, transparent 2px 11px);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.ph.moss { background-color: #c4cbb0; }
.ph.clay { background-color: #d8c1b2; }
.ph.dark { background-color: #4f5238; background-image: repeating-linear-gradient(135deg, rgba(246,239,227,0.06) 0 2px, transparent 2px 11px); }
.ph .ph-label {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(45,42,38,0.5);
  text-transform: uppercase;
  text-align: center;
  padding: 10px 16px;
  border: 1px dashed rgba(45,42,38,0.28);
  border-radius: 8px;
  background: rgba(246,239,227,0.5);
  max-width: 78%;
  line-height: 1.5;
}
.ph.dark .ph-label { color: rgba(246,239,227,0.7); border-color: rgba(246,239,227,0.3); background: rgba(45,42,38,0.3); }

/* =========================================================================
   MOTION — scroll reveal + parallax
   ========================================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s cubic-bezier(.2,.7,.3,1), transform 1s cubic-bezier(.2,.7,.3,1);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
[data-reveal].in { opacity: 1; transform: none; }

/* directional + scale reveal variants (JS still just toggles .in) */
[data-reveal="left"]  { transform: translateX(-34px); }
[data-reveal="right"] { transform: translateX(34px); }
[data-reveal="scale"] { transform: scale(.94); }
[data-reveal="left"].in,
[data-reveal="right"].in,
[data-reveal="scale"].in { transform: none; }

/* kicker hairline draws itself in on reveal */
.kicker[data-reveal]::before,
.kicker[data-reveal]::after {
  transition: width .9s cubic-bezier(.2,.7,.3,1);
  transition-delay: calc(var(--d, 0s) + .15s);
}
.kicker[data-reveal]:not(.in)::before,
.kicker[data-reveal]:not(.in)::after { width: 0; }

/* richer reveals for the later sections (CSS-only, keyed off existing [data-reveal]) */
.cards-3 .card[data-reveal],
.res-3 .res[data-reveal],
.tcards .tcard[data-reveal] { transform: translateY(36px) scale(.965); }
.cards-3 .card[data-reveal].in,
.res-3 .res[data-reveal].in,
.tcards .tcard[data-reveal].in { transform: none; }

.services-2 > .svc:nth-of-type(1)[data-reveal] { transform: translateX(-40px); }
.services-2 > .svc:nth-of-type(2)[data-reveal] { transform: translateX(40px); }
.services-2 > .svc[data-reveal].in { transform: none; }

.sym-list .row[data-reveal] { transform: translateX(-24px); }
.sym-list .row[data-reveal].in { transform: none; }

.nature-content [data-reveal] { transform: translateY(30px) scale(.985); }
.nature-content [data-reveal].in { transform: none; }

.parallax { will-change: transform; }

/* drawn-in divider line */
.draw-line { overflow: visible; }
.draw-line path, .draw-line line {
  stroke-dasharray: var(--len, 300);
  stroke-dashoffset: var(--len, 300);
  transition: stroke-dashoffset 1.6s cubic-bezier(.3,.6,.2,1);
}
.draw-line.in path, .draw-line.in line { stroke-dashoffset: 0; }

body[data-motion="off"] [data-reveal] { opacity: 1 !important; transform: none !important; }
body[data-motion="off"] .draw-line path, body[data-motion="off"] .draw-line line { stroke-dashoffset: 0 !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none; }
  .draw-line path, .draw-line line { stroke-dashoffset: 0 !important; }
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 980px) {
  body { font-size: 17px; }
  .v-arched .ha-grid,
  .phil-grid, .sym-grid, .about-grid { grid-template-columns: 1fr; }
  .v-arched .ha-portrait { max-width: 480px; margin: 0 auto; overflow: hidden; }
  .ha-ring-bg { width: 96%; }
  .v-arched .ha-illus { clip-path: ellipse(46% 48% at 50% 46%); }
  .phil-visual { overflow: hidden; }
  .about-portrait { position: relative; top: 0; max-width: 460px; }
  .services-2, .cards-3, .res-3, .tcards { grid-template-columns: 1fr; }
  .cards-3 { gap: 18px; }
  .nature-scrim { background: linear-gradient(180deg, rgba(45,42,38,0.4) 0%, rgba(45,42,38,0.72) 100%); }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ivory);
    padding: 22px var(--gut) 30px;
    gap: 18px; align-items: flex-start;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
  }
  .nav-links.open a:not(.btn)::after { display: none; }
  .nav-links.open .btn { width: 100%; justify-content: center; margin-top: 6px; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px;
  }
  .nav-toggle span { width: 24px; height: 2px; background: var(--olive); border-radius: 2px; transition: transform .3s, opacity .3s; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 560px) {
  :root { --radius-lg: 20px; }
  .hero { padding-top: 120px; }
  .about-stats { flex-wrap: wrap; gap: 22px; }
  .hero-cta .btn, .final .btn-light { width: 100%; justify-content: center; }
}
