/* ==========================================================
   Ana Navarro Therapy — site styles
   Light sage palette over the original leaves background, editorial type
   ========================================================== */

@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Silently"; src: url("../fonts/Silently.ttf") format("truetype"); font-display: swap; }

:root {
  --ink: #1f2b28;
  --ink-2: #22302c;
  --paper: #f3f6f2;
  --paper-2: #e6eee8;
  --white: #fcfdfb;
  --text: #1f2b28;
  --muted: #4a5853;
  --line: rgb(var(--ink-rgb) / .13);
  /* "cream" = foreground on the hero/contact areas (dark text over the light background) */
  --cream: #1f2b28;
  --cream-muted: #4a5853;
  --cream-line: rgb(var(--ink-rgb) / .18);
  --accent: #4f7a6e;
  --accent-2: #3d6358;
  --bg-image: url("../img/background.webp");
  --error: #a33a2a;
  /* translucent layers over the background illustration (R G B for rgb(var(--x) / alpha)) */
  --paper-rgb: 243 246 242;
  --tint-rgb: 230 238 232;
  --ink-rgb: 31 43 40;
  --peach: #cfe4d8;
  --sea: #8fbcae;
  --sand: #e3ecd9;
  --lilac: #b4c8d6;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* Original background (leaves), fixed behind the whole page — works on iOS too */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background: var(--paper) var(--bg-image) center / cover no-repeat;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; line-height: 1.08; letter-spacing: -.02em; margin: 0; font-variation-settings: "SOFT" 50; overflow-wrap: break-word; hyphens: auto; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
::selection { background: var(--peach); color: var(--ink); }
html { accent-color: var(--accent); caret-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--white); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 780px; }

.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--text); }
.meta { font-size: .85rem; color: var(--muted); letter-spacing: .02em; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .95em 1.5em;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: 500 .95rem/1 var(--sans);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .3s var(--ease), transform .3s var(--ease), color .3s, border-color .3s;
}
.btn:hover { background: var(--accent-2); transform: translateY(-1px); }
.btn span { transition: transform .3s var(--ease); }
.btn:hover span { transform: translateX(3px); }
.btn--small { padding: .7em 1.15em; font-size: .85rem; }
.btn--ghost { background: rgb(255 255 255 / .35); color: var(--cream); border-color: rgb(var(--ink-rgb) / .35); }
.btn--ghost:hover { background: rgba(255, 255, 255, .6); border-color: var(--cream-muted); }
.btn--ghost-dark { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost-dark:hover { background: var(--white); }
.btn[disabled] { opacity: .6; pointer-events: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .92rem; font-weight: 500; text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.link-arrow::after { content: "→"; transition: transform .3s var(--ease); }
a:hover .link-arrow::after, .link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: var(--cream);
  transition: background .4s var(--ease), color .4s, box-shadow .4s, transform .4s var(--ease);
}
.nav.is-scrolled {
  background: rgba(246, 241, 234, .82);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  color: var(--text);
  box-shadow: 0 1px 0 var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 18px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav__brand { font-family: "Silently", var(--serif); font-size: 1.7rem; text-decoration: none; line-height: 1; white-space: nowrap; }
.nav__brand span { font-family: var(--sans); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; opacity: .7; margin-left: .3em; vertical-align: middle; }
.nav__links { display: flex; gap: 30px; }
.nav__links > a { font-size: .9rem; text-decoration: none; opacity: .82; transition: opacity .2s; position: relative; }
.nav__links > a:hover, .nav__links > a[aria-current] { opacity: 1; }
.nav__links > a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: currentColor; }
.nav__right { display: flex; align-items: center; gap: 14px; }
.nav__mobile-only { display: none !important; }

.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 500; letter-spacing: .08em; padding: 8px 10px; border-radius: 999px; border: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 25%, transparent); }
.lang summary::-webkit-details-marker { display: none; }
.lang__menu { position: absolute; right: 0; top: calc(100% + 8px); background: var(--white); color: var(--text); border-radius: 14px; padding: 6px; min-width: 150px; box-shadow: 0 20px 50px -20px rgba(22, 18, 15, .35); border: 1px solid var(--line); }
.lang__menu a { display: block; padding: 9px 12px; border-radius: 9px; text-decoration: none; font-size: .9rem; }
.lang__menu a:hover { background: var(--paper); }
.lang__menu a[aria-current] { font-weight: 600; }

.nav__toggle { display: none; width: 42px; height: 42px; border: 0; background: transparent; color: inherit; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), top .3s; }
.nav__toggle span:first-child { top: 16px; }
.nav__toggle span:last-child { top: 25px; }
.nav--open .nav__toggle span:first-child { top: 20px; transform: rotate(45deg); }
.nav--open .nav__toggle span:last-child { top: 20px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: min(100svh, 820px);
  background: transparent;
  color: var(--cream);
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
  padding-top: clamp(130px, 20vh, 200px);
}
/* soft light veil so the text stays readable over the leaves */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 22% 62%, rgb(var(--paper-rgb) / .82), rgb(var(--paper-rgb) / 0) 70%),
    linear-gradient(180deg, rgb(var(--paper-rgb) / 0) 60%, rgb(var(--paper-rgb) / .55) 100%);
}
.hero__inner {
  position: relative; z-index: 2;
  max-width: var(--wrap); width: 100%; margin: auto auto 0; padding: 4vh var(--gutter) 0;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: end;
}
.hero__inner--center { grid-template-columns: 1fr; text-align: center; justify-items: center; margin: auto; padding-bottom: 10vh; }
.hero__title { font-size: clamp(2.6rem, 5.4vw, 5rem); font-weight: 300; max-width: 13ch; }
.hero__title::first-line { font-style: normal; }
.hero__right p { color: var(--cream-muted); font-size: 1.05rem; max-width: 38ch; margin-bottom: 1.6rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__word {
  position: relative; z-index: 1;
  font-family: var(--serif); font-weight: 200;
  font-size: clamp(4rem, 16.2vw, 18rem);
  line-height: .78; letter-spacing: -.055em;
  margin: clamp(32px, 6vh, 64px) 0 -.06em; padding: 0 var(--gutter);
  white-space: nowrap; text-align: center;
  user-select: none;
}
.hero__word span {
  display: inline-block; padding: 0 .04em;
  background: linear-gradient(180deg, rgb(var(--ink-rgb) / .82) 15%, rgba(79, 122, 110, .45) 70%, rgba(79, 122, 110, .04) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__word span + span { font-style: italic; }
.hero__right p.hero__meta { margin: 1.6rem 0 0; font-size: .9rem; line-height: 1.6; color: var(--cream-muted); }

/* Inner page hero */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(180deg, rgb(var(--paper-rgb) / 0) 0%, rgb(var(--paper-rgb) / .35) 100%); color: var(--cream);
  padding: clamp(150px, 22vh, 220px) 0 clamp(70px, 10vh, 110px);
}
.page-hero--short { padding-bottom: 60px; }
.page-hero__inner { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2.4rem, 7vw, 6rem); font-weight: 250; max-width: 18ch; }
.page-hero .meta { color: var(--cream-muted); }
.page-hero__lead { margin: 1.4rem 0 0; max-width: 56ch; color: var(--cream-muted); font-size: 1.12rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 12vw, 150px) 0; background: rgb(var(--paper-rgb) / .86); }
.section--tint { background: rgb(var(--tint-rgb) / .9); }
.section__head { margin-bottom: clamp(40px, 6vw, 70px); max-width: 760px; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 34px 30px 30px; min-height: 340px;
  border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; background: transparent;
  transition: background .45s var(--ease), transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
}
.card:hover { background: var(--white); transform: translateY(-6px); box-shadow: 0 30px 60px -35px rgba(22, 18, 15, .35); border-color: transparent; }
.card h3 { font-size: clamp(1.6rem, 2.3vw, 2rem); margin-top: auto; padding-top: 48px; }
.card p { color: var(--muted); margin: 0; }
.card .link-arrow { margin-top: 10px; align-self: flex-start; }

.approach { background: rgb(var(--tint-rgb) / .9); }
.approach__grid { display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.approach__body { display: grid; gap: 26px; justify-items: start; }
.approach__portrait { margin: 0; }
.approach__portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: var(--paper-2); }
.approach__portrait figcaption { display: grid; margin-top: 14px; font-size: .9rem; color: var(--muted); }
.approach__portrait figcaption strong { color: var(--text); font-weight: 600; }
.approach__intro { margin: 0; max-width: 56ch; color: var(--muted); font-size: 1.05rem; }
.approach__title { font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-family: var(--sans); font-weight: 500; letter-spacing: 0; color: var(--accent-2); }
.approach__quote {
  margin: 0; font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1.25; letter-spacing: -.015em;
  max-width: 26ch;
}
.approach__quote::first-letter { color: var(--accent); }

.help__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.topics { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.topics li { display: flex; align-items: center; gap: 10px; font-size: 1rem; color: var(--text); }
.topics li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---------- Blog cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-grid--2 { grid-template-columns: repeat(2, 1fr); }
.post-card a { display: flex; flex-direction: column; height: 100%; text-decoration: none; border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.post-card a:hover { transform: translateY(-5px); box-shadow: 0 30px 60px -35px rgba(22, 18, 15, .35); }
.post-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); position: relative; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post-card a:hover img { transform: scale(1.04); }
.post-card__media--empty { background: #e3ece6; }
.post-card__media--empty::before {
  content: ""; position: absolute; inset: -20%;
  background:
    radial-gradient(40% 60% at 35% 40%, color-mix(in srgb, var(--peach) 80%, transparent), transparent 70%),
    radial-gradient(35% 55% at 65% 60%, color-mix(in srgb, var(--sea) 75%, transparent), transparent 70%),
    radial-gradient(30% 40% at 50% 20%, color-mix(in srgb, var(--lilac) 60%, transparent), transparent 70%);
  filter: blur(26px);
}
.post-card:nth-child(3n+2) .post-card__media--empty::before { transform: rotate(120deg); }
.post-card:nth-child(3n+3) .post-card__media--empty::before { transform: rotate(240deg) scale(1.1); }
.post-card__body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card__body .meta { margin: 0; }
.post-card__title { font-size: 1.42rem; line-height: 1.18; }
.post-card__body p:not(.meta) { color: var(--muted); font-size: .95rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card .link-arrow { margin-top: auto; padding-top: 6px; align-self: flex-start; }
.post-card--lg { grid-column: span 2; }
.post-card--lg a { flex-direction: row; }
.post-card--lg .post-card__media { aspect-ratio: auto; flex: 1.1; min-height: 320px; }
.post-card--lg .post-card__body { flex: 1; padding: 36px; justify-content: center; }
.post-card--lg .post-card__title { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }

.pager { display: flex; align-items: center; justify-content: space-between; margin-top: 56px; }
.pager__n { color: var(--muted); font-size: .9rem; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.about__photo { margin: 0; border-radius: var(--radius); overflow: hidden; position: sticky; top: 110px; background: var(--paper-2); }
.about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about__text .lead { font-family: var(--serif); font-weight: 300; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.35; margin-bottom: 2rem; }
.about__text .btn { margin-top: 1.5rem; }
.issues { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.issues li { padding: 20px 8px 20px 0; border-bottom: 1px solid var(--line); font-size: 1.02rem; }

/* ---------- Services ---------- */
.service {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(20px, 5vw, 80px);
  padding: 56px 0; border-top: 1px solid var(--line);
}
.service:last-of-type { border-bottom: 1px solid var(--line); }
.service h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin-bottom: 1rem; }
.service .lead { color: var(--muted); font-size: 1.05rem; }
.format { list-style: none; padding: 0; margin: 56px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.format li { padding: .7em 1.2em; border-radius: 999px; background: var(--white); border: 1px solid var(--line); }

/* ---------- Prose (rich text) ---------- */
.prose { font-size: 1.05rem; max-width: 68ch; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: 1.9rem; margin: 2.2rem 0 1rem; }
.prose h3 { font-size: 1.4rem; margin: 1.8rem 0 .8rem; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin: .35em 0; text-wrap: pretty; }
.prose blockquote { margin: 2rem 0; padding-left: 1.4rem; border-left: 2px solid var(--accent); font-family: var(--serif); font-size: 1.35rem; line-height: 1.4; }
.prose img { border-radius: 16px; margin: 2rem 0; }
.prose a { color: var(--accent-2); }

/* ---------- Article ---------- */
.article__head h1 { font-size: clamp(2.2rem, 5vw, 4rem); margin: 1.4rem 0 1.2rem; }
.back { color: var(--cream-muted); text-decoration: none; font-size: .9rem; }
.back:hover { color: var(--cream); }
.draft-badge { display: inline-block; margin: 1rem 0 0; padding: .3em .8em; border-radius: 999px; background: var(--sand); color: var(--ink); font-size: .8rem; }
.article__cover { margin-top: -50px; position: relative; z-index: 3; }
.article__cover img { border-radius: var(--radius); width: 100%; max-height: 560px; object-fit: cover; }
.article__lead { font-family: var(--serif); font-weight: 300; font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.4; margin: 64px 0 2rem; }
.prose--article { font-size: 1.12rem; line-height: 1.8; padding-bottom: 40px; }
.article-cta {
  margin: 0 0 100px; padding: clamp(26px, 4vw, 40px); border-radius: var(--radius);
  background: rgb(252 253 251 / .8); border: 1px solid var(--line);
  box-shadow: 0 30px 70px -45px rgb(var(--ink-rgb) / .35);
}
.article-cta h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: .6rem; }
.article-cta p { color: var(--muted); margin-bottom: 1.4rem; }

/* ---------- Contact ---------- */
.contact {
  position: relative; isolation: isolate; overflow: hidden;
  background: rgb(var(--paper-rgb) / .55); color: var(--cream);
  padding: clamp(90px, 13vw, 160px) 0;
}
.contact .lead { color: var(--cream-muted); }
.contact__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); }
.contact h2 { margin-bottom: 1.4rem; }
.contact__meta { margin: 2.6rem 0 0; display: grid; gap: 22px; }
.contact__meta dt { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cream-muted); margin-bottom: 4px; }
.contact__meta dd { margin: 0; display: grid; }
.contact__meta a { text-decoration: none; border-bottom: 1px solid var(--cream-line); }

.form {
  display: grid; gap: 20px; align-content: start;
  padding: clamp(26px, 4vw, 40px);
  border-radius: var(--radius);
  background: rgba(252, 253, 251, .72);
  border: 1px solid var(--cream-line);
  box-shadow: 0 30px 70px -45px rgb(var(--ink-rgb) / .35);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.field { display: grid; gap: 6px; }
.field > label { font-size: .95rem; font-weight: 500; color: var(--text); }
.field__help { margin: 2px 0 0; font-size: .85rem; color: var(--muted); }
.field__error { margin: 2px 0 0; font-size: .85rem; font-weight: 500; color: var(--error); }
.field__error:empty { display: none; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--cream);
  background: transparent; border: 0; border-bottom: 1px solid rgb(var(--ink-rgb) / .55);
  padding: 10px 0; border-radius: 0; resize: vertical;
  transition: border-color .3s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 2px 0 0 var(--accent); }
.field [aria-invalid="true"] { border-color: var(--error); box-shadow: 0 2px 0 0 var(--error); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--muted); cursor: pointer; }
.check input[aria-invalid="true"] { outline: 2px solid var(--error); outline-offset: 2px; }
.check input { margin-top: 4px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.check a { color: var(--accent-2); text-underline-offset: 3px; }
.form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 4px; }
.form__reassure { margin: 0; font-size: .85rem; color: var(--muted); }
.form__status { margin: 0; min-height: 1.5em; font-size: .95rem; }
.form__status.is-ok { color: #2a6b55; font-weight: 500; }
.form__status.is-err { color: var(--error); font-weight: 500; }
.form__status a { color: inherit; }
.form__status:empty { display: none; }

/* How to start (sequence matters, so the steps are numbered) */
.steps { margin: 2.4rem 0 0; }
.steps__title { font-family: var(--sans); font-size: .95rem; font-weight: 600; letter-spacing: 0; margin-bottom: 1rem; }
.steps ol { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 16px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 32px 1fr; column-gap: 14px; }
.steps li::before {
  content: counter(step); grid-row: span 2;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-size: .85rem; font-weight: 600;
}
.steps li strong { font-weight: 600; }
.steps li span { color: var(--muted); font-size: .95rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.footer {
  --cream: #eef2ee; --cream-muted: rgba(238, 242, 238, .66); --cream-line: rgba(238, 242, 238, .16);
  background: var(--ink-2); color: var(--cream-muted); padding: 80px 0 28px; overflow: hidden; }
.footer a { text-decoration: none; transition: color .2s; }
.footer a:hover { color: var(--cream); }
.footer__inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer__word { font-family: "Silently", var(--serif); font-size: clamp(3rem, 7vw, 5.5rem); line-height: 1; color: var(--cream); margin: 0 0 .6rem; }
.footer__cols { display: flex; gap: clamp(40px, 8vw, 120px); }
.footer__cols div { display: grid; gap: 10px; align-content: start; font-size: .95rem; }
.footer__bottom { max-width: var(--wrap); margin: 60px auto 0; padding: 22px var(--gutter) 0; border-top: 1px solid var(--cream-line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; }
.footer__bottom span { display: flex; gap: 22px; }

/* ==========================================================
   Motion
   One authored moment: on the first visit to the home page the
   leaves come into focus like a slow breath and the name rises
   out of the bottom edge. Everything else is feedback.
   ========================================================== */
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); }

/* Focal moment (html.intro is set once per session on the home page) */
.intro body::before { animation: settle 2.2s var(--ease-out) both; }
@keyframes settle {
  from { filter: blur(14px) saturate(.75); transform: scale(1.07); }
  to   { filter: blur(0) saturate(1); transform: scale(1); }
}
.intro .hero__word span { animation: word-in 1.3s var(--ease-out) .35s both; }
.intro .hero__word span + span { animation-delay: .5s; }
@keyframes word-in {
  from { clip-path: inset(100% -10% -20% -10%); transform: translateY(22%); }
  to   { clip-path: inset(-20% -10% -20% -10%); transform: none; }
}
.intro .hero__left  { animation: fade-up .9s var(--ease-out) .75s both; }
.intro .hero__right { animation: fade-up .9s var(--ease-out) .9s both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Lists arrive as lists (cards, articles, topics); single blocks stay put */
.js :is(.cards, .post-grid, .issues) > .reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js :is(.cards, .post-grid, .issues) > .reveal.is-in { opacity: 1; transform: none; }
.post-grid > .reveal:nth-child(2) { --d: .08s; }
.post-grid > .reveal:nth-child(3) { --d: .16s; }

/* Language menu opens from its button */
.lang[open] .lang__menu { transform-origin: top right; animation: pop .18s var(--ease-out) both; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.97); } to { opacity: 1; transform: none; } }

/* Mobile menu: links arrive in reading order */
.nav--open .nav__links > a, .nav--open .nav__langs { animation: menu-in .45s var(--ease-out) both; }
.nav--open .nav__links > :nth-child(2) { animation-delay: .04s; }
.nav--open .nav__links > :nth-child(3) { animation-delay: .08s; }
.nav--open .nav__links > :nth-child(4) { animation-delay: .12s; }
.nav--open .nav__links > :nth-child(5) { animation-delay: .16s; }
.nav--open .nav__links > :nth-child(6) { animation-delay: .2s; }
@keyframes menu-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Form feedback */
.form__status.is-ok, .form__status.is-err, .field__error:not(:empty) { animation: status-in .25s var(--ease-out) both; }
@keyframes status-in { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
.field input, .field textarea { transition: border-color .2s, box-shadow .2s; }
.btn[aria-busy='true'] { cursor: progress; opacity: .85; }
.btn[aria-busy='true'] span { animation: nudge .7s ease-in-out infinite alternate; }
@keyframes nudge { to { transform: translateX(5px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* keep the calm fade, drop blur, zoom and travel */
  .intro body::before { animation: none; }
  .intro .hero__word span { animation: fade 1s ease-out .2s both; }
  .intro .hero__left, .intro .hero__right { animation: fade .6s ease-out both; }
  .js :is(.cards, .post-grid, .issues) > .reveal { transform: none; transition: opacity .3s ease-out; transition-delay: 0s; }
  .nav--open .nav__links > a, .nav--open .nav__langs,
  .lang[open] .lang__menu,
  .form__status.is-ok, .form__status.is-err, .field__error:not(:empty) { animation: fade .2s ease-out both; }
  .btn[aria-busy='true'] span { animation: none; }
  .card, .post-card a, .post-card__media img, .btn span, .mobile-cta { transition: none; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) { :root { --bg-image: url("../img/background-900.webp"); } }

@media (max-width: 980px) {
  .cards, .post-grid { grid-template-columns: 1fr 1fr; }
  .post-card--lg { grid-column: span 2; }
  .issues { grid-template-columns: 1fr 1fr; }
  .service { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 1080px) {
  .nav__links {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; gap: 6px;
    padding: 100px var(--gutter) 40px;
    background: var(--paper); color: var(--cream);
    opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
  }
  .nav__links > a { font-family: var(--serif); font-size: clamp(1.8rem, 9vw, 2.3rem); font-weight: 300; opacity: 1; }
  .nav__links > a[aria-current]::after { display: none; }
  .nav__mobile-only { display: flex !important; }
  .nav__langs { gap: 18px; margin-top: 28px; font-size: .9rem; letter-spacing: .1em; }
  .nav__langs a { text-decoration: none; opacity: .6; }
  .nav__langs a[aria-current] { opacity: 1; border-bottom: 1px solid; }
  .nav--open .nav__links { opacity: 1; visibility: visible; }
  /* blur/transform on the bar would trap the fixed full-screen menu inside it: drop them while open */
  .nav--open { color: var(--cream) !important; background: transparent !important; box-shadow: none !important;
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important; transform: none !important; }
  .nav__toggle { display: block; }
  .lang { display: none; }
  body.menu-open { overflow: hidden; }
}

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; gap: 28px; padding-top: 4vh; }
  .help__grid, .contact__grid, .about__grid { grid-template-columns: 1fr; }
  .about__photo { position: static; max-width: 420px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .nav__right .btn { display: none; }
  .cards, .post-grid, .post-grid--2 { grid-template-columns: 1fr; }
  .post-card--lg { grid-column: auto; }
  .post-card--lg a { flex-direction: column; }
  .post-card--lg .post-card__media { min-height: 0; aspect-ratio: 16 / 10; flex: none; }
  .post-card--lg .post-card__body { padding: 24px; }
  .card { min-height: 0; }
  .card h3 { padding-top: 18px; }
  .issues { grid-template-columns: 1fr; }
  .service { padding: 40px 0; }
  .hero__word { font-size: 16vw; }
  .footer__cols { flex-direction: column; gap: 24px; }
}

/* ---------- Mobile booking bar ---------- */
.mobile-cta { display: none; }
@media (max-width: 620px) {
  .mobile-cta {
    display: flex; justify-content: center; align-items: center; gap: .6em;
    position: fixed; z-index: 40; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom));
    padding: 1em 1.4em; border-radius: 999px;
    background: var(--accent); color: #fff; text-decoration: none; font-weight: 500;
    box-shadow: 0 18px 40px -18px rgb(var(--ink-rgb) / .6);
    transform: translateY(160%); transition: transform .45s var(--ease);
  }
  .mobile-cta.is-visible { transform: none; }
  .menu-open .mobile-cta { transform: translateY(160%); }
  .approach__grid { grid-template-columns: 1fr; }
  .approach__portrait { max-width: 240px; }
}


.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* ---------- Critique pass 2 ---------- */
/* Articles: same calm paper layer as every other section, so long reading never sits on the leaves */
.article__body {
  background: rgb(var(--paper-rgb) / .92);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 56px) clamp(20px, 5vw, 64px) 1px;
  margin-bottom: 90px;
}
.article__body .article__lead { margin-top: 0; }
.article__body .article-cta { margin-bottom: clamp(24px, 4vw, 48px); background: var(--white); }
.article__note { font-size: .9rem; color: var(--muted); margin: 0 0 1.4rem; padding: .7em 1em; border-radius: 12px; background: rgb(var(--tint-rgb) / .8); }

/* Services without a long description: one column, with a direct way to ask */
.service--short { grid-template-columns: 1fr; }
.service--short > div { max-width: 62ch; }
.service .btn { margin-top: 1.2rem; }

/* Home service cards that don't lead anywhere yet are plain blocks, not fake links */
.card--static:hover { background: transparent; transform: none; box-shadow: none; border-color: var(--line); }
.cards__more { margin: 28px 0 0; }

/* About: topics grouped under headings */
.issue-groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 40px); }
.issue-group h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; letter-spacing: 0; color: var(--accent-2); padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.issue-group ul { list-style: none; margin: 0; padding: 0; }
.issue-group li { padding: 10px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 980px) { .issue-groups { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .issue-groups { grid-template-columns: 1fr; } }

/* Sent: the form is replaced by a confirmation that takes focus */
.form.is-done > :not(.form-done) { display: none; }
.form-done { outline: none; display: grid; gap: .6rem; animation: status-in .4s var(--ease-out) both; }
.form-done h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.form-done p { margin: 0; color: var(--muted); }
.form-done:focus-visible { outline: 2px solid var(--accent); outline-offset: 8px; border-radius: 8px; }

.footer__brand p { text-wrap: balance; }

@media (max-width: 620px) {
  /* no empty band above the headline on phones */
  .hero { min-height: 0; padding-top: 104px; }
  .hero__inner { padding-top: 0; }
  /* room for the floating booking bar at the end of the page */
  .footer { padding-bottom: 96px; }
}.form.is-done { align-self: start; }
.form-done[hidden] { display: none; }
.card--static { min-height: 0; }
.card--static h3 { margin-top: 0; padding-top: 0; }
blockquote, .lead, .card p { text-wrap: pretty; }
