/* ============================================================
   Stella Xu — Transition Coaching
   Design language: soft futurism.
   Editorial hierarchy + generous negative space, kept warm,
   organic and alive. Deep ink-green, warm earth, light gold.
   ============================================================ */

:root {
  /* Surfaces */
  --bg: #f5f2ea;          /* warm bone */
  --bg-alt: #ece7db;      /* deeper sand for alternating sections */
  --card: #fbf9f3;

  /* Ink (near-black warm green, never pure black) */
  --ink: #20281f;
  --ink-soft: #5b6154;
  --ink-faint: #8a8b7d;

  /* Brand — accents authored from Stella's painting (ochre ground, gold light) */
  --green: #2f4433;       /* deep forest — primary */
  --green-deep: #223327;
  --brown: #7c5a40;       /* warm earth */
  --gold: #bb8b34;        /* ochre-gold, drawn from the painting's ground */
  --gold-soft: #d9c087;
  --gold-ink: #8a6512;    /* darker ochre — AA-safe for small text/labels */

  --line: #ded6c5;
  --line-soft: #e7e0d1;

  /* Engineered mono for meta/labels — the quiet "precision" layer */
  --mono: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, "Cascadia Mono", monospace;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(32,40,31,.03), 0 14px 40px -12px rgba(32,40,31,.12);
  --shadow-lift: 0 2px 4px rgba(32,40,31,.04), 0 26px 60px -18px rgba(32,40,31,.20);
  --max: 1120px;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
  letter-spacing: .003em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Natural grain overlay — barely-there texture for "alive" feel */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .05;
  /* No blend mode + own compositor layer: texture stays, but the browser
     never re-composites the viewport on scroll (fixes the scroll jank). */
  transform: translateZ(0);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { width: min(var(--max), 90%); margin-inline: auto; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.015em;
  color: var(--ink);
  font-optical-sizing: auto;
}

a { color: inherit; text-decoration-color: color-mix(in srgb, var(--gold) 60%, transparent); text-underline-offset: 3px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--green); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--line-soft);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  width: min(var(--max), 90%); margin-inline: auto; height: 74px;
}
.brand {
  font-family: var(--serif); font-size: 1.35rem; font-weight: 500;
  text-decoration: none; letter-spacing: -.02em; color: var(--ink);
}
.nav-menu { list-style: none; display: flex; gap: 2rem; align-items: center; margin: 0; padding: 0; }
.nav-menu a {
  text-decoration: none; font-size: .92rem; font-weight: 450; color: var(--ink-soft);
  transition: color .25s var(--ease); position: relative;
}
.nav-menu a:hover { color: var(--green); }
.nav-cta {
  background: var(--green); color: #fdfcf8 !important; padding: .58rem 1.15rem;
  border-radius: 999px; font-weight: 500; transition: background .25s var(--ease), transform .2s var(--ease);
}
.nav-cta:hover { background: var(--green-deep); transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: var(--ink); margin: 6px 0; transition: .3s var(--ease); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(4rem, 11vw, 8.5rem) 0 clamp(3.5rem, 7vw, 6rem);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(45% 55% at 82% 8%, color-mix(in srgb, var(--gold-soft) 42%, transparent), transparent 70%),
    radial-gradient(50% 60% at 2% 92%, color-mix(in srgb, var(--green) 16%, transparent), transparent 68%);
}
.hero-inner { position: relative; z-index: 1; max-width: 820px; }
.eyebrow {
  font-family: var(--mono);
  text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; font-weight: 500;
  color: var(--brown); margin: 0 0 1.4rem;
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.3rem); margin: 0 0 1.6rem; letter-spacing: -.025em; }
.lead {
  font-size: clamp(1.08rem, 1.7vw, 1.3rem); color: var(--ink-soft); max-width: 58ch;
  margin: 0 0 2rem; line-height: 1.6;
}

/* Breakthrough · Flow · Clarity triad */
.triad {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem;
  margin: 0 0 2.4rem; padding: 0; list-style: none;
}
.triad li {
  font-family: var(--serif); font-size: 1.05rem; font-style: italic; color: var(--green);
  letter-spacing: .01em;
}
.triad li:not(:last-child)::after {
  content: ""; display: inline-block; width: 5px; height: 5px; margin-left: 1.1rem;
  border-radius: 50%; background: var(--gold); vertical-align: middle;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 3rem; }

.btn {
  display: inline-block; text-decoration: none; font-weight: 500; font-size: .98rem;
  padding: .85rem 1.7rem; border-radius: 999px; letter-spacing: .01em;
  transition: transform .2s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.btn-primary { background: var(--green); color: #fdfcf8; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--green-deep); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

.cred-strip {
  list-style: none; display: flex; flex-wrap: wrap; gap: 1.4rem 2.6rem;
  padding: 1.6rem 0 0; margin: clamp(2.5rem, 5vw, 4rem) 0 0; border-top: 1px solid var(--line);
}
.cred-strip li { font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.cred-strip span {
  display: block; font-family: var(--serif); font-size: 1.05rem; text-transform: none;
  letter-spacing: -.01em; color: var(--ink); font-weight: 500; margin-top: .2rem;
}

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-alt { background: var(--bg-alt); }
.kicker {
  font-family: var(--mono);
  text-transform: uppercase; letter-spacing: .15em; font-size: .7rem; font-weight: 500;
  color: var(--brown); margin: 0 0 .9rem;
}
.section-head h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); margin: 0 0 .7rem; }
.section-sub { color: var(--ink-soft); font-size: 1.1rem; max-width: 56ch; margin: .4rem 0 0; }
.section-head.center { text-align: center; margin-inline: auto; max-width: 660px; margin-bottom: 3.4rem; }
.section-head.center .section-sub { margin-inline: auto; }

.grid-2 { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }

.prose p { margin: 0 0 1.3rem; color: var(--ink-soft); font-size: 1.08rem; }
.prose p:last-child { margin-bottom: 0; }
.prose em { color: var(--green); font-style: italic; }

/* ---------- About photo ---------- */
.about-photo { margin: 0; position: relative; }
.about-photo img {
  width: 100%; height: 100%; min-height: 340px; max-height: 580px; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line-soft);
}

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.4rem; }
.card {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 2rem 1.9rem; box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card-num { font-family: var(--mono); font-size: .8rem; color: var(--gold-ink); font-weight: 600; margin-bottom: .9rem; letter-spacing: .1em; }
.card h3 { font-size: 1.28rem; margin: 0 0 .6rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: .99rem; }

/* ---------- Check list ---------- */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.check-list li { padding-left: 2.3rem; position: relative; color: var(--ink-soft); font-size: 1.06rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 1.35rem; height: 1.35rem;
  border-radius: 50%; background: var(--green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23f5f2ea' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.check-list strong { color: var(--ink); font-weight: 600; }

/* ---------- Timeline ---------- */
.timeline { max-width: 780px; margin: 0 auto; }
.tl-item { display: grid; grid-template-columns: 110px 1fr; gap: 1.6rem; padding: 1.6rem 0; border-top: 1px solid var(--line); }
.tl-item:first-child { border-top: 0; }
.tl-year { font-family: var(--serif); font-weight: 500; color: var(--brown); font-size: .98rem; padding-top: .2rem; }
.tl-body h3 { font-size: 1.18rem; margin: 0 0 .25rem; }
.tl-org { margin: 0 0 .4rem; color: var(--green); font-size: .9rem; font-weight: 500; }
.tl-body p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.langs { text-align: center; margin: 2.8rem 0 0; color: var(--ink-soft); }
.about-link { color: var(--green); font-weight: 500; text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); white-space: nowrap; }
.about-link:hover { color: var(--gold-ink); }

/* Simple back link for secondary pages */
.backlink { display: inline-block; font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brown); text-decoration: none; margin-bottom: 1.6rem; }
.backlink:hover { color: var(--green); }

/* ---------- Services / pricing ---------- */
.start-block {
  display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 3rem); box-shadow: var(--shadow);
}
.start-price { text-align: left; }
.tier, .price .per { font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; font-size: .68rem; color: var(--brown); }
.tier { margin: 0 0 .3rem; }
.price { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.2rem); color: var(--green); font-weight: 500; margin: .2rem 0 .3rem; letter-spacing: -.01em; }
.price .per { display: inline; color: var(--ink-faint); margin-left: .2rem; letter-spacing: .06em; }
.price-note { font-size: .84rem; color: var(--ink-faint); margin: 0 0 1.1rem; }
.card .price { font-size: 1.7rem; margin-top: .2rem; }
.card-cta { display: inline-block; margin-top: 1.2rem; font-weight: 500; color: var(--green); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); }
.card-cta:hover { color: var(--gold-ink); }
.card.featured { border-color: color-mix(in srgb, var(--green) 45%, var(--line-soft)); box-shadow: var(--shadow-lift); position: relative; }
.card.featured::after {
  content: "Most chosen"; position: absolute; top: -11px; left: 1.9rem;
  font-family: var(--mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase;
  background: var(--green); color: #fdfcf8; padding: .25rem .6rem; border-radius: 999px;
}

@media (max-width: 760px) {
  .start-block { grid-template-columns: 1fr; }
}

/* ---------- Painting interstitial ---------- */
.interstitial { background: var(--bg-alt); padding: clamp(3.5rem, 8vw, 6rem) 0; border-bottom: 1px solid var(--line-soft); }

/* ---------- Kintsugi seam: a fine gold join between sections ---------- */
/* Fragments rejoined with gold — the site's quiet signature, echoing the painting. */
.section-alt, .interstitial, .book { position: relative; }
.section-alt::before, .interstitial::before, .book::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(var(--max), 90%); height: 1.5px; pointer-events: none; z-index: 2;
  background: linear-gradient(90deg,
    transparent 0%, var(--gold) 24%, var(--gold-soft) 50%, var(--gold) 76%, transparent 100%);
  opacity: .75;
}
.book::before { opacity: .55; }
.interstitial-inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.art { margin: 0; }
.art img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lift); border: 1px solid var(--line-soft); display: block; }
.art figcaption { margin-top: .9rem; font-size: .82rem; color: var(--ink-faint); font-style: italic; text-align: center; letter-spacing: .02em; }
.interstitial-quote {
  font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2.15rem); line-height: 1.32;
  color: var(--ink); margin: .8rem 0 0; font-weight: 400; letter-spacing: -.01em;
}
.interstitial-quote .accent { color: var(--green); font-style: italic; }
.art-statement { margin-top: 1.8rem; padding-top: 1.5rem; border-top: 1px solid var(--line); max-width: 52ch; }
.art-statement-label { font-family: var(--mono); text-transform: uppercase; letter-spacing: .13em; font-size: .66rem; font-weight: 500; color: var(--brown); margin: 0 0 .6rem; }
.art-statement p:last-child { margin: 0; color: var(--ink-soft); font-size: .98rem; line-height: 1.6; }

/* ---------- Quotes ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; }
.quote { margin: 0; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 2rem 1.9rem; box-shadow: var(--shadow); position: relative; }
.quote::before { content: "\201C"; font-family: var(--serif); font-size: 3.6rem; color: var(--gold); opacity: .35; position: absolute; top: .5rem; left: 1.1rem; line-height: 1; }
.quote blockquote { margin: 1.1rem 0 1.3rem; font-size: 1.03rem; color: var(--ink); font-style: italic; line-height: 1.55; }
.quote figcaption { font-size: .9rem; color: var(--ink-soft); }
.q-name { font-weight: 600; color: var(--green); }
.sample-note { font-size: .8rem; font-style: italic; opacity: .7; }

/* What you can expect — first-person promises */
.pledges {
  list-style: none; padding: 0; margin: 0 auto; max-width: 940px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1.6rem 3.2rem;
}
.pledges li {
  position: relative; padding-left: 1.6rem; color: var(--ink-soft);
  font-size: 1.05rem; line-height: 1.6;
}
.pledges li::before {
  content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px;
  border-radius: 50%; background: var(--gold);
}
.pledges strong { color: var(--ink); font-weight: 600; }

/* Empty testimonial slots (placeholders, not fake quotes) */
.quote-empty { background: transparent; border: 1.5px dashed var(--line); box-shadow: none; }
.quote-empty::before { display: none; }
.slot-cat { margin: 0 0 .5rem; font-family: var(--serif); font-size: 1.1rem; color: var(--green); font-weight: 500; }
.slot-persona { margin: 0 0 1.1rem; font-size: .86rem; color: var(--ink-soft); line-height: 1.5; }
.slot-holder { margin: 0 0 1.2rem; font-style: italic; color: var(--ink-faint); font-size: 1rem; border-left: 2px solid var(--line); padding-left: .9rem; }
.quote-empty figcaption { color: var(--ink-faint); }
.quote-empty .q-name { color: var(--ink-faint); font-weight: 500; }

/* ---------- Book ---------- */
.book { background: var(--green); color: var(--bg); position: relative; overflow: hidden; }
.book::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(40% 60% at 85% 15%, color-mix(in srgb, var(--gold) 22%, transparent), transparent 70%);
}
.book .wrap { position: relative; z-index: 1; }
.book .kicker.light { color: var(--gold-soft); }
.book h2 { color: #fdfcf8; }
.book .section-sub { color: color-mix(in srgb, var(--bg) 82%, transparent); }
.cal-embed { max-width: 840px; margin: 2.2rem auto 0; min-height: 480px; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lift); }
.book-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin: 2.4rem 0 1.4rem; }
.book .btn-primary { background: var(--gold); color: var(--green-deep); }
.book .btn-primary:hover { background: var(--gold-soft); }
.book .btn-ghost { border-color: color-mix(in srgb, var(--bg) 35%, transparent); color: #fdfcf8; }
.book .btn-ghost:hover { border-color: var(--bg); color: #fff; }
.book-fine { text-align: center; color: color-mix(in srgb, var(--bg) 68%, transparent); font-size: .9rem; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 3rem 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.footer-brand { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; margin: 0; }
.footer-tag { margin: .25rem 0 0; color: var(--ink-soft); font-size: .9rem; }
.footer-note { margin: 0; color: var(--ink-soft); font-size: .85rem; max-width: 40ch; }

/* ---------- Scroll reveal (subtle movement) ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 780px) {
  .grid-2 { grid-template-columns: 1fr; }
  .interstitial-inner { grid-template-columns: 1fr; }
  .about-photo { order: -1; }
  .about-photo img { max-height: 440px; }
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: .5rem 0;
    max-height: 0; overflow: hidden; transition: max-height .35s var(--ease);
  }
  .nav-menu.open { max-height: 460px; }
  .nav-menu li { width: 100%; text-align: center; }
  .nav-menu a { display: block; padding: .85rem; }
  .nav-cta { margin: .5rem auto; display: inline-block !important; }
}

/* ---------- Motion preference (important for this audience) ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
