/* =====================================================================
   Kirsti Reese — Clinical Consultation
   Design system: Coastal + Soft Sage
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Coastal + sage palette */
  --sand-50:   #FBF8F2;
  --sand-100:  #F5EFE4;
  --sand-200:  #ECE3D2;
  --sage-100:  #DCE3D8;
  --sage-300:  #A7B5A0;
  --sage-500:  #7E9079;
  --sage-700:  #5C6E58;
  --coast-100: #DCE7EC;
  --coast-300: #9DBAC6;
  --coast-500: #6C93A3;
  --coast-700: #466878;
  --ink-700:   #3A4A50;
  --ink-900:   #26343A;
  --white:     #FFFFFF;

  /* Semantic */
  --bg:          var(--sand-50);
  --bg-alt:      var(--sand-100);
  --surface:     var(--white);
  --text:        var(--ink-900);
  --text-soft:   var(--ink-700);
  --muted:       #6E7B7E;
  --line:        rgba(60, 80, 86, 0.14);
  --accent:      var(--coast-500);
  --accent-deep: var(--coast-700);
  --leaf:        var(--sage-500);

  /* Typography */
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Spacing / rhythm */
  --container: 1180px;
  --container-narrow: 820px;
  --radius:   18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(38, 52, 58, 0.05);
  --shadow:    0 18px 40px -24px rgba(38, 52, 58, 0.30);
  --shadow-lg: 0 40px 80px -40px rgba(38, 52, 58, 0.40);

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

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

/* ---------- Type scale ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.1; color: var(--ink-900); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 1.6rem + 4.4vw, 4.6rem); }
h2 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.1rem); }
h3 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.7rem); }
h4 { font-size: 1.15rem; font-weight: 500; }
p  { color: var(--text-soft); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--accent);
  display: inline-block;
}
.serif-accent { font-family: var(--serif); font-style: italic; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 3rem); }
.narrow { max-width: var(--container-narrow); }
.section { padding-block: clamp(4.5rem, 3rem + 7vw, 8.5rem); position: relative; }
.section--tight { padding-block: clamp(3.5rem, 2.5rem + 4vw, 5.5rem); }
.bg-alt { background: var(--bg-alt); }
.bg-sage { background: linear-gradient(160deg, var(--sage-100), var(--coast-100)); }
.bg-ink  { background: linear-gradient(155deg, #2B3A40, #24454F); color: var(--sand-100); }
.bg-ink h1, .bg-ink h2, .bg-ink h3 { color: var(--sand-50); }
.bg-ink p { color: rgba(245, 239, 228, 0.82); }

.section-head { max-width: 660px; margin-bottom: clamp(2.5rem, 4vw, 4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 1.1rem; }
.section-head p { margin-top: 1.1rem; font-size: 1.1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.95rem 1.75rem;
  border-radius: 100px;
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform .4s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease), color .35s var(--ease);
  will-change: transform;
}
.btn svg { transition: transform .4s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--accent-deep); color: var(--sand-50); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--ink-900); box-shadow: var(--shadow); }
.btn--ghost { border-color: var(--line); color: var(--ink-900); background: transparent; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-deep); background: rgba(108,147,163,0.06); }
.btn--light { background: var(--sand-50); color: var(--ink-900); }
.btn--light:hover { background: var(--white); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding-block: 1.1rem;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease), backdrop-filter .4s var(--ease);
}
.site-header.scrolled {
  background: rgba(251, 248, 242, 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
  padding-block: 0.7rem;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; line-height: 1; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-text { font-family: var(--serif); font-size: 1.32rem; letter-spacing: 0.01em; color: var(--ink-900); }
.brand-text small { display: block; font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-size: 0.94rem; color: var(--text-soft); position: relative; padding-block: 4px;
  transition: color .3s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0;
  background: var(--accent); transition: width .35s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--ink-900); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 1.25rem; }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; position: relative; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 1.8px; background: var(--ink-900); transition: transform .35s var(--ease), opacity .25s var(--ease); }
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(8rem, 7rem + 6vw, 11rem); padding-bottom: clamp(4rem, 3rem + 5vw, 7rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero h1 { margin-bottom: 1.5rem; }
.hero h1 em { font-style: italic; color: var(--coast-700); }
.hero-lead { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem); max-width: 30ch; margin-bottom: 2.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.hero-meta { margin-top: 2.75rem; display: flex; gap: 2.5rem; flex-wrap: wrap; }
.hero-meta .stat strong { font-family: var(--serif); font-size: 2rem; color: var(--coast-700); display: block; line-height: 1; }
.hero-meta .stat span { font-size: 0.85rem; color: var(--muted); letter-spacing: 0.04em; }

/* Hero portrait */
.hero-portrait { position: relative; }
.portrait-frame {
  position: relative; border-radius: 220px 220px 24px 24px; overflow: hidden;
  aspect-ratio: 4 / 5; box-shadow: var(--shadow-lg);
  background: linear-gradient(160deg, var(--sage-100), var(--coast-100));
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; }
.portrait-frame .placeholder-figure {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--sage-700);
  font-family: var(--serif); gap: 0.5rem; padding: 2rem;
}
.portrait-badge {
  position: absolute; bottom: 22px; left: -26px;
  background: var(--surface); border-radius: 16px; padding: 0.9rem 1.2rem;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 0.75rem;
}
.portrait-badge .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 4px rgba(126,144,121,0.18); }
.portrait-badge small { display: block; font-size: 0.72rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.portrait-badge strong { font-size: 0.95rem; color: var(--ink-900); font-weight: 500; }

/* floating orbs */
.orb { position: absolute; border-radius: 50%; filter: blur(8px); opacity: 0.5; z-index: 0; }
.orb-1 { width: 280px; height: 280px; background: radial-gradient(circle at 30% 30%, var(--sage-300), transparent 70%); top: -60px; right: -40px; }
.orb-2 { width: 220px; height: 220px; background: radial-gradient(circle at 30% 30%, var(--coast-300), transparent 70%); bottom: -40px; left: -60px; }

/* ---------- Wave divider ---------- */
.wave { display: block; width: 100%; height: auto; line-height: 0; }
.wave svg { width: 100%; height: clamp(48px, 7vw, 110px); display: block; }

/* ---------- Cards / services ---------- */
.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 2.5vw, 2.5rem); position: relative; overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 80% at 50% -10%, rgba(108,147,163,0.10), transparent 60%);
  opacity: 0; transition: opacity .5s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::after { opacity: 1; }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--sage-100), var(--coast-100)); color: var(--coast-700);
  margin-bottom: 1.4rem;
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 0.65rem; }
.card p { font-size: 0.98rem; }
.card .card-tag { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

.card-link { margin-top: 1.3rem; display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.9rem; font-weight: 500; color: var(--accent-deep); }
.card-link svg { transition: transform .35s var(--ease); }
.card:hover .card-link svg { transform: translateX(4px); }

/* numbered list / process */
.steps { counter-reset: step; display: grid; gap: 1.5rem; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: start; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step-num {
  counter-increment: step; width: 52px; height: 52px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-family: var(--serif); font-size: 1.3rem; color: var(--coast-700);
  border: 1px solid var(--coast-300); background: var(--sand-50);
}
.step-num::before { content: counter(step, decimal-leading-zero); }
.step h4 { margin-bottom: 0.35rem; font-size: 1.2rem; }

/* feature split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split--reverse .split-media { order: 2; }
.media-frame {
  border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 5/4;
  background: linear-gradient(160deg, var(--sage-100), var(--coast-100)); box-shadow: var(--shadow);
  position: relative; display: grid; place-items: center; color: var(--sage-700); font-family: var(--serif);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }

.check-list { display: grid; gap: 0.9rem; margin-top: 1.75rem; }
.check-list li { display: grid; grid-template-columns: auto 1fr; gap: 0.8rem; align-items: start; color: var(--text-soft); }
.check-list svg { width: 22px; height: 22px; color: var(--leaf); margin-top: 3px; flex: none; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.5vw, 1.75rem); align-items: stretch; }
.price-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 2.5vw, 2.4rem); display: flex; flex-direction: column;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.price-card.featured { background: linear-gradient(160deg, #2B3A40, #24454F); color: var(--sand-100); border-color: transparent; box-shadow: var(--shadow-lg); transform: translateY(-8px); }
.price-card.featured h3, .price-card.featured .price { color: var(--sand-50); }
.price-card.featured p { color: rgba(245,239,228,0.8); }
.price-card.featured .check-list li { color: rgba(245,239,228,0.9); }
.price-card .ribbon { align-self: flex-start; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; background: var(--coast-500); color: #fff; padding: 0.3rem 0.7rem; border-radius: 100px; margin-bottom: 1rem; }
.price-card h3 { margin-bottom: 0.4rem; }
.price-card .price { font-family: var(--serif); font-size: 2.6rem; color: var(--ink-900); line-height: 1; margin: 0.8rem 0 0.3rem; }
.price-card .price span { font-family: var(--sans); font-size: 0.9rem; color: var(--muted); }
.price-card .check-list { flex: 1; }
.price-card .btn { margin-top: 1.75rem; justify-content: center; }

/* ---------- Testimonial ---------- */
.quote-block { max-width: 880px; margin-inline: auto; text-align: center; }
.quote-block .mark { font-family: var(--serif); font-size: 5rem; line-height: 0.6; color: var(--coast-300); }
.quote-block blockquote { font-family: var(--serif); font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2.3rem); font-style: italic; line-height: 1.3; color: var(--ink-900); margin: 1rem 0 1.75rem; }
.bg-ink .quote-block blockquote { color: var(--sand-50); }
.quote-author { font-size: 0.95rem; letter-spacing: 0.04em; color: var(--muted); }
.bg-ink .quote-author { color: rgba(245,239,228,0.7); }

.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
.testi p { font-style: italic; color: var(--text); font-family: var(--serif); font-size: 1.1rem; line-height: 1.45; }
.testi .by { margin-top: 1.1rem; font-family: var(--sans); font-style: normal; font-size: 0.85rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; position: relative; overflow: hidden; }
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { max-width: 16ch; margin-inline: auto; }
.cta-band p { max-width: 48ch; margin: 1.2rem auto 2.2rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: grid; gap: 0.5rem; }
.field label { font-size: 0.85rem; font-weight: 500; color: var(--text); letter-spacing: 0.02em; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 0.98rem; padding: 0.9rem 1.05rem; border: 1px solid var(--line);
  border-radius: 12px; background: var(--surface); color: var(--text); transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--coast-300); box-shadow: 0 0 0 4px rgba(108,147,163,0.14); }
.form .btn { justify-self: start; margin-top: 0.5rem; }
.form-note { font-size: 0.85rem; color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact-detail { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.contact-detail:last-child { border-bottom: 0; }
.contact-detail .icon { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--sage-100); color: var(--coast-700); }
.contact-detail .icon svg { width: 20px; height: 20px; }
.contact-detail h4 { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.2rem; font-weight: 600; }
.contact-detail p, .contact-detail a { font-size: 1.02rem; color: var(--ink-900); }
.contact-detail a:hover { color: var(--accent-deep); }

/* ---------- Page hero (interior) ---------- */
.page-hero { padding-top: clamp(8.5rem, 7rem + 6vw, 12rem); padding-bottom: clamp(3rem, 2rem + 4vw, 5rem); position: relative; overflow: hidden; }
.page-hero .eyebrow { margin-bottom: 1.2rem; }
.page-hero h1 { max-width: 16ch; }
.page-hero p { margin-top: 1.3rem; max-width: 54ch; font-size: 1.15rem; }
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.5rem; letter-spacing: 0.03em; }
.breadcrumb a:hover { color: var(--accent-deep); }

/* ---------- About bio ---------- */
.bio-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.bio-portrait { position: sticky; top: 110px; }
.bio-portrait .portrait-frame { border-radius: 24px; aspect-ratio: 4/5; }
.cred-list { display: grid; gap: 0.75rem; margin-top: 1.5rem; }
.cred-list li { display: flex; gap: 0.7rem; align-items: center; font-size: 0.95rem; color: var(--text-soft); padding: 0.7rem 1rem; background: var(--bg-alt); border-radius: 12px; }
.cred-list li svg { width: 18px; height: 18px; color: var(--coast-500); flex: none; }
.prose p { margin-bottom: 1.2rem; }
.prose p:first-of-type::first-letter { font-family: var(--serif); font-size: 3.4rem; float: left; line-height: 0.8; padding: 0.35rem 0.7rem 0 0; color: var(--coast-700); }

.pill-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.pill { font-size: 0.85rem; padding: 0.45rem 1rem; border-radius: 100px; background: var(--sage-100); color: var(--sage-700); border: 1px solid rgba(92,110,88,0.18); }

/* ---------- Logos / affiliation ---------- */
.affil { display: flex; align-items: center; justify-content: center; gap: clamp(1.5rem,4vw,3.5rem); flex-wrap: wrap; opacity: 0.85; }
.affil span { font-family: var(--serif); font-size: 1.1rem; color: var(--muted); letter-spacing: 0.02em; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 1.4rem 0; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; font-family: var(--serif); font-size: 1.2rem; color: var(--ink-900); }
.faq-q .plus { width: 24px; height: 24px; flex: none; position: relative; }
.faq-q .plus::before, .faq-q .plus::after { content: ""; position: absolute; background: var(--coast-500); transition: transform .35s var(--ease); }
.faq-q .plus::before { top: 11px; left: 2px; right: 2px; height: 2px; }
.faq-q .plus::after { left: 11px; top: 2px; bottom: 2px; width: 2px; }
.faq-item.open .plus::after { transform: scaleY(0); }
.faq-a { overflow: hidden; height: 0; transition: height .4s var(--ease); }
.faq-a-inner { padding-bottom: 1.5rem; color: var(--text-soft); }

/* ---------- Footer ---------- */
.site-footer { background: linear-gradient(160deg, #243339, #1E343C); color: rgba(245,239,228,0.78); padding-top: clamp(3.5rem, 5vw, 5.5rem); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(245,239,228,0.12); }
.site-footer .brand-text { color: var(--sand-50); }
.site-footer .brand-text small { color: rgba(245,239,228,0.55); }
.footer-blurb { margin-top: 1.2rem; max-width: 36ch; font-size: 0.95rem; color: rgba(245,239,228,0.7); }
.footer-col h4 { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(245,239,228,0.55); margin-bottom: 1.1rem; font-weight: 600; }
.footer-col a { display: block; padding: 0.35rem 0; color: rgba(245,239,228,0.78); font-size: 0.95rem; transition: color .3s var(--ease), transform .3s var(--ease); }
.footer-col a:hover { color: var(--sand-50); transform: translateX(3px); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-block: 1.75rem; font-size: 0.85rem; color: rgba(245,239,228,0.55); }

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }
[data-reveal-delay="5"] { transition-delay: .40s; }

/* placeholder marker */
.ph { background: rgba(108,147,163,0.10); border-bottom: 1px dashed var(--coast-300); border-radius: 3px; padding: 0 2px; }

/* ---------- Editorial statement ---------- */
.statement { max-width: 760px; margin-inline: auto; text-align: center; }
.statement .big { font-family: var(--serif); font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2.3rem); line-height: 1.34; color: var(--ink-900); }
.statement .big em { font-style: italic; color: var(--coast-700); }
.statement .lines { display: grid; gap: 0; margin: 2.25rem auto; max-width: 580px; text-align: left; }
.statement .lines span { font-size: 1.12rem; color: var(--text-soft); padding: 0.9rem 0; border-bottom: 1px solid var(--line); display: flex; gap: 0.9rem; align-items: baseline; }
.statement .lines span::before { content: "—"; color: var(--coast-300); }
.statement .lines span:last-child { border-bottom: 0; color: var(--ink-900); font-weight: 500; }
.statement .lines span:last-child::before { content: "→"; color: var(--leaf); }
.statement .close { margin-top: 1.5rem; font-size: 1.12rem; }

.intersect-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem 2.5rem; max-width: 820px; margin: 2.5rem auto 0; text-align: left; }
.intersect-grid li { display: grid; grid-template-columns: auto 1fr; gap: 0.85rem; align-items: start; padding: 0.75rem 0; border-bottom: 1px solid var(--line); color: var(--text-soft); }
.intersect-grid li svg { width: 20px; height: 20px; color: var(--leaf); margin-top: 3px; flex: none; }
.intersect-grid li strong { color: var(--ink-900); font-weight: 500; }
@media (max-width: 640px) { .intersect-grid { grid-template-columns: 1fr; gap: 0; } }

/* neutral dash list (for stuck-points, "it comes after") */
.muted-list { display: grid; gap: 0.75rem; margin-top: 1.25rem; }
.muted-list li { position: relative; padding-left: 1.5rem; color: var(--text-soft); font-size: 1.05rem; }
.muted-list li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 15px; height: 1.5px; background: var(--coast-300); }

/* statement on dark background */
.bg-ink .statement .big { color: var(--sand-50); }
.bg-ink .statement .big em { color: var(--coast-300); }
.bg-ink .statement .lines span { color: rgba(245,239,228,0.82); border-color: rgba(245,239,228,0.15); }
.bg-ink .statement .lines span::before { color: rgba(157,186,198,0.7); }
.bg-ink .statement .lines span:last-child { color: var(--sand-50); }
.bg-ink .statement .lines span:last-child::before { color: var(--sage-300); }
.bg-ink .statement .close { color: rgba(245,239,228,0.9); }

/* compact format cards with rate */
.format-rate { margin-top: auto; padding-top: 1.1rem; font-family: var(--serif); font-size: 1.15rem; color: var(--coast-700); }
.format-rate span { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); display: block; }

/* ---------- Blog index ---------- */
.blog-cats { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: clamp(2.5rem, 4vw, 3.5rem); }
.blog-cat {
  font-size: 0.85rem; padding: 0.5rem 1.1rem; border-radius: 100px; border: 1px solid var(--line);
  color: var(--text-soft); background: var(--surface); transition: all .3s var(--ease); cursor: pointer;
}
.blog-cat:hover, .blog-cat.active { background: var(--accent-deep); color: var(--sand-50); border-color: transparent; }

/* featured post */
.post-feature {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  margin-bottom: clamp(2.5rem, 4vw, 4rem); transition: box-shadow .5s var(--ease);
}
.post-feature:hover { box-shadow: var(--shadow); }
.post-feature .post-thumb { aspect-ratio: 4/3; height: 100%; }
.post-feature .post-feature-body { padding: clamp(1.75rem, 3vw, 3rem); }
.post-feature h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); margin: 0.8rem 0; }
.post-feature p { font-size: 1.05rem; }

/* post thumb (shared) */
.post-thumb {
  position: relative; aspect-ratio: 16/10; overflow: hidden;
  background: linear-gradient(155deg, var(--sage-100), var(--coast-100));
  display: grid; place-items: center; color: var(--sage-700);
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-thumb .ph-label { font-family: var(--serif); font-size: 0.95rem; opacity: 0.7; }

/* post cards grid */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.25rem); }
.post-card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.post-card:hover .post-thumb img { transform: scale(1.05); }
.post-card .post-body { padding: 1.5rem 1.6rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
.post-chip { align-self: flex-start; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--coast-700); background: var(--sage-100); padding: 0.32rem 0.7rem; border-radius: 100px; margin-bottom: 0.9rem; }
.post-card h3 { font-size: 1.3rem; line-height: 1.22; margin-bottom: 0.6rem; transition: color .3s var(--ease); }
.post-card:hover h3 { color: var(--accent-deep); }
.post-card p { font-size: 0.95rem; flex: 1; }
.post-meta { display: flex; align-items: center; gap: 0.6rem; margin-top: 1.2rem; font-size: 0.82rem; color: var(--muted); }
.post-meta .dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }

/* ---------- Article (single post) ---------- */
.article-hero { padding-top: clamp(8.5rem, 7rem + 6vw, 11rem); padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.article-hero .container { max-width: 800px; }
.article-hero .post-chip { margin-bottom: 1.2rem; }
.article-hero h1 { font-size: clamp(2.1rem, 1.5rem + 2.8vw, 3.4rem); max-width: 20ch; }
.article-byline { display: flex; align-items: center; gap: 0.9rem; margin-top: 1.75rem; }
.article-byline .avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(150deg, var(--sage-300), var(--coast-300)); flex: none; display: grid; place-items: center; color: #fff; font-family: var(--serif); font-size: 1.1rem; }
.article-byline .byline-meta { font-size: 0.9rem; color: var(--muted); line-height: 1.4; }
.article-byline .byline-meta strong { color: var(--ink-900); font-weight: 500; display: block; }
.article-cover { max-width: 1000px; margin: 0 auto clamp(2rem,4vw,3.5rem); aspect-ratio: 16/8; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }

.article-body { max-width: 720px; margin-inline: auto; }
.article-body > * { margin-bottom: 1.4rem; }
.article-body p { font-size: 1.12rem; line-height: 1.75; color: var(--text-soft); }
.article-body h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin-top: 2.6rem; margin-bottom: 1rem; }
.article-body h3 { font-size: 1.35rem; margin-top: 2rem; margin-bottom: 0.7rem; }
.article-body ul, .article-body ol { padding-left: 1.3rem; display: grid; gap: 0.6rem; }
.article-body li { font-size: 1.08rem; line-height: 1.7; color: var(--text-soft); }
.article-body ul li { list-style: none; position: relative; padding-left: 1.4rem; }
.article-body ul li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); }
.article-body blockquote {
  border-left: 3px solid var(--coast-300); padding: 0.4rem 0 0.4rem 1.6rem; margin: 2rem 0;
  font-family: var(--serif); font-style: italic; font-size: 1.4rem; line-height: 1.4; color: var(--ink-900);
}
.article-body a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.article-body strong { color: var(--ink-900); font-weight: 600; }
.article-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; max-width: 720px; margin: 2.5rem auto 0; }
.article-tags .tag { font-size: 0.82rem; padding: 0.4rem 0.9rem; border-radius: 100px; background: var(--bg-alt); color: var(--text-soft); }

.author-box {
  max-width: 720px; margin: clamp(2.5rem,4vw,3.5rem) auto 0; display: grid; grid-template-columns: auto 1fr; gap: 1.5rem;
  align-items: center; padding: clamp(1.5rem, 3vw, 2rem); background: var(--bg-alt); border-radius: var(--radius-lg);
}
.author-box .avatar { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(150deg, var(--sage-300), var(--coast-300)); flex: none; display: grid; place-items: center; color:#fff; font-family: var(--serif); font-size: 1.8rem; }
.author-box h4 { font-family: var(--serif); font-size: 1.25rem; font-weight: 400; margin-bottom: 0.3rem; }
.author-box p { font-size: 0.95rem; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .grid-3, .price-grid, .testi-grid, .blog-grid { grid-template-columns: 1fr; }
  .post-feature { grid-template-columns: 1fr; }
  .post-feature .post-thumb { aspect-ratio: 16/9; }
  .price-card.featured { transform: none; }
  .hero-grid, .split, .bio-grid, .contact-grid { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
  .hero-portrait { width: 100%; max-width: 420px; margin-inline: auto; order: -1; }
  .bio-portrait { position: static; width: 100%; max-width: 420px; margin-inline: auto; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px);
    background: var(--sand-50); flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 1.5rem; padding: 2.5rem; transform: translateX(100%); transition: transform .5s var(--ease);
    box-shadow: var(--shadow-lg); z-index: 90;
  }
  .nav-links a { font-size: 1.4rem; font-family: var(--serif); }
  body.nav-open .nav-links { display: flex; transform: translateX(0); }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 560px) {
  .grid-2, .form-row { grid-template-columns: 1fr; }
  .author-box { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-meta { gap: 1.5rem; }
  .portrait-badge { left: 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .orb { display: none; }
}
