/* ==========================================================================
   The Tent Project — v2 redesign
   Editorial, warm, calm. Fraunces for statements, DM Sans for reading.
   ========================================================================== */

@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 300 600; font-display: swap; src: url("../fonts/fraunces-latin.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 300 500; font-display: swap; src: url("../fonts/fraunces-italic-latin.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 300 600; font-display: swap; src: url("../fonts/dm-sans-latin.woff2") format("woff2"); }

:root {
  /* palette (brief), refined for contrast */
  --forest: #25463B;
  --forest-900: #1A332B;
  --forest-700: #2F5649;
  --terracotta: #C56F50;        /* decorative accents only */
  --terracotta-ink: #A9533A;    /* text/links on ivory: 4.9:1 */
  --ivory: #F5F0E7;
  --ivory-2: #EFE8DB;
  --sand: #D9BA82;
  --sand-soft: #EADBBF;
  --charcoal: #27312D;
  --ink-2: #4F5A55;             /* secondary text on ivory: 6.8:1 */
  --line: #DED4C2;
  --white: #FFFDF9;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius-sm: 12px;
  --radius: 22px;
  --radius-lg: 36px;
  --shadow: 0 30px 60px -36px rgba(26, 51, 43, .45);
  --shadow-sm: 0 2px 10px rgba(26, 51, 43, .06);
  --container: 1240px;
  --header-h: 84px;
  --ease: cubic-bezier(.22, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); font-weight: 400; font-size: 1.0625rem; line-height: 1.7;
  color: var(--charcoal); background: var(--ivory); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-family: var(--serif); font-weight: 350; line-height: 1.08; letter-spacing: -.02em; font-optical-sizing: auto; }
em { font-style: italic; }
strong { font-weight: 500; }
:focus-visible { outline: 3px solid var(--terracotta-ink); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
[hidden] { display: none !important; }
::selection { background: var(--sand); color: var(--forest-900); }

.skip-link { position: absolute; left: 16px; top: -80px; z-index: 400; padding: 12px 18px; border-radius: 999px; background: var(--forest); color: var(--ivory); }
.skip-link:focus { top: 14px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 4vw, 40px); }
.narrow { max-width: 760px; }
.section { padding-block: clamp(84px, 11vw, 160px); }
.section--sand { background: var(--ivory-2); }
.section--forest { background: var(--forest); color: var(--ivory); }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }

/* ---------- Type scale ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 22px;
  font-family: var(--sans); font-size: .8rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--terracotta-ink);
}
.kicker::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.section--forest .kicker, .on-dark .kicker { color: var(--sand); }
.display { font-size: clamp(3rem, 8.2vw, 7.2rem); font-weight: 300; line-height: .98; letter-spacing: -.035em; }
.h1 { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 300; letter-spacing: -.03em; }
.h2 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); font-weight: 300; }
.h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.display em, .h1 em, .h2 em { font-style: italic; color: var(--terracotta-ink); font-weight: 300; }
.section--forest .h2 em, .on-dark em { color: var(--sand); }
.lead { font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.6; color: var(--ink-2); }
.section--forest .lead, .on-dark .lead { color: #D9E0DA; }
.muted { color: var(--ink-2); }
.small { font-size: .92rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px;
  padding: 14px 28px; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-size: 1rem; font-weight: 500; line-height: 1.2; cursor: pointer; text-align: center;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--forest); color: var(--ivory); }
.btn--primary:hover { background: var(--forest-900); transform: translateY(-1px); }
.btn--warm { background: var(--terracotta-ink); color: var(--white); }
.btn--warm:hover { background: #8F4530; transform: translateY(-1px); }
.btn--ghost { border-color: rgba(39, 49, 45, .35); color: var(--charcoal); }
.btn--ghost:hover { border-color: var(--charcoal); background: rgba(39, 49, 45, .05); }
.btn--light { background: var(--ivory); color: var(--forest-900); }
.btn--light:hover { background: var(--white); transform: translateY(-1px); }
.btn--outline-light { border-color: rgba(245, 240, 231, .55); color: var(--ivory); }
.btn--outline-light:hover { border-color: var(--ivory); background: rgba(245, 240, 231, .08); }
.btn--sm { min-height: 44px; padding: 10px 20px; font-size: .95rem; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--terracotta-ink); font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.text-link svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.text-link:hover svg { transform: translateX(3px); }
.section--forest .text-link { color: var(--sand); }

/* ---------- Logo ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--forest); }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__name { display: flex; flex-direction: column; line-height: 1; }
.brand__name span:first-child { font-family: var(--sans); font-size: .62rem; letter-spacing: .32em; text-transform: uppercase; color: var(--terracotta-ink); margin-bottom: 4px; }
.brand__name span:last-child { white-space: nowrap; font-family: var(--serif); font-size: 1.42rem; font-weight: 400; letter-spacing: -.01em; }
.on-dark .brand, .site-footer .brand { color: var(--ivory); }
.site-footer .brand__name span:first-child { color: var(--sand); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200; background: rgba(245, 240, 231, .82);
  -webkit-backdrop-filter: saturate(150%) blur(14px); backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(245, 240, 231, .94); }
/* Fixed height: the header is sticky (in the page flow), so shrinking it on scroll would change the
   page height, move the scroll position back across the threshold and make the page shake. */
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.nav { display: flex; align-items: center; gap: 2px; }
.nav__link { position: relative; padding: 10px 13px; white-space: nowrap; font-size: .97rem; color: var(--ink-2); transition: color .2s; }
.nav__link::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 1px; background: var(--terracotta); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav__link:hover { color: var(--charcoal); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--charcoal); }
.nav__actions { display: flex; align-items: center; gap: 10px; margin-left: 14px; }
.nav-toggle {
  display: none; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid rgba(39, 49, 45, .25); background: transparent; color: var(--charcoal); font: inherit; font-weight: 500; cursor: pointer;
}
.nav-toggle__icon { position: relative; width: 18px; height: 10px; }
.nav-toggle__icon::before, .nav-toggle__icon::after { content: ""; position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.nav-toggle__icon::before { top: 0; }
.nav-toggle__icon::after { top: 8.5px; }
.nav-open .nav-toggle__icon::before { top: 4.25px; transform: rotate(45deg); }
.nav-open .nav-toggle__icon::after { top: 4.25px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: min(92vh, 900px); display: flex; align-items: flex-end; color: var(--ivory); background: var(--forest-900); }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 115%; object-fit: cover; object-position: 30% 50%; transform: scale(1.04); animation: hero-settle 2.4s var(--ease) both; will-change: transform; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(26, 51, 43, .2) 0%, rgba(26, 51, 43, .35) 40%, rgba(26, 51, 43, .9) 100%),
    linear-gradient(90deg, rgba(26, 51, 43, .55) 0%, rgba(26, 51, 43, 0) 65%);
}
.hero__content { padding-block: clamp(140px, 18vh, 220px) clamp(64px, 9vh, 104px); width: 100%; }
.hero__content > * { max-width: 920px; }
.hero .display { color: var(--ivory); margin-bottom: 30px; }
.hero .display em { color: var(--sand); }
.hero .lead { color: #E6EAE3; max-width: 640px; margin-bottom: 38px; }
.hero__caption { position: absolute; right: clamp(20px, 4vw, 40px); bottom: 22px; font-size: .78rem; letter-spacing: .06em; color: rgba(245, 240, 231, .7); }
@keyframes hero-settle { from { transform: scale(1.12); opacity: .6; } to { transform: scale(1.04); opacity: 1; } }

/* subpage hero */
.page-hero { position: relative; padding-block: clamp(84px, 10vw, 140px) clamp(48px, 6vw, 80px); overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -6%; bottom: -1px; width: min(520px, 60vw); aspect-ratio: 2 / 1.1; background: url("../images/tent-motif.svg") no-repeat right bottom / contain; opacity: .5; pointer-events: none; }
.page-hero .lead { max-width: 680px; }
.breadcrumb { display: flex; gap: 10px; margin-bottom: 26px; font-size: .9rem; color: var(--ink-2); }
.breadcrumb a { border-bottom: 1px solid transparent; }
.breadcrumb a:hover { border-bottom-color: currentColor; }

/* ---------- Editorial split ---------- */
.editorial { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(48px, 7vw, 120px); align-items: center; }
.editorial--flip .editorial__media { order: 2; }
.editorial__media { position: relative; }
.editorial__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 140px; }
.editorial__media--wide img { aspect-ratio: 5 / 4; border-radius: 140px var(--radius-lg) var(--radius-lg) var(--radius-lg); }
.editorial__body p { color: var(--ink-2); }
.editorial__body .lead { color: var(--charcoal); }
.photo-note { margin-top: 12px; font-size: .78rem; letter-spacing: .04em; color: var(--ink-2); }
.pull { margin: 34px 0 0; padding-left: 22px; border-left: 2px solid var(--terracotta); font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.55rem); font-style: italic; font-weight: 300; line-height: 1.4; color: var(--forest); }

/* ---------- How we help: chapters ---------- */
.chapters { display: grid; gap: clamp(64px, 9vw, 120px); margin-top: clamp(56px, 7vw, 96px); }
.chapter { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.chapter:nth-child(even) .chapter__media { order: 2; }
.chapter__media { position: relative; overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 16 / 11; background: var(--sand-soft); }
.story-motif { display: grid; place-items: center; align-self: stretch; padding: clamp(28px, 5vw, 64px); border-radius: var(--radius-lg); background: var(--ivory); border: 1px solid var(--line); }
.story-motif img { width: 100%; max-width: 440px; }
.chapter__media .photo-note { position: absolute; left: 14px; bottom: 12px; margin: 0; padding: 4px 11px; border-radius: 999px; background: rgba(26, 51, 43, .62); color: var(--ivory); }
.chapter__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.chapter:hover .chapter__media img { transform: scale(1.03); }
.chapter__num { display: block; margin-bottom: 14px; font-family: var(--serif); font-size: 1rem; font-style: italic; color: var(--terracotta-ink); }
.chapter p { color: var(--ink-2); max-width: 520px; }
/* a designed panel (not a photograph) where no honest photo exists */
.panel-illustration { display: grid; place-items: center; width: 100%; height: 100%; background: radial-gradient(120% 90% at 20% 10%, #F1E3C6 0%, var(--sand) 55%, #C9A46A 100%); color: var(--forest-900); }
.panel-illustration svg { width: min(44%, 220px); height: auto; }
.panel-illustration figcaption { position: absolute; left: 22px; bottom: 18px; font-size: .78rem; letter-spacing: .06em; color: rgba(26, 51, 43, .7); }

/* ---------- Ways to help ---------- */
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(48px, 6vw, 80px); }
.way {
  position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 300px; padding: 34px 30px 30px;
  border-radius: var(--radius); background: var(--white); border: 1px solid var(--line);
  transition: transform .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease), background-color .45s var(--ease);
}
.way:hover, .way:focus-within { transform: translateY(-6px); border-color: transparent; box-shadow: var(--shadow); }
.way__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--ivory-2); color: var(--forest); transition: background-color .45s var(--ease), color .45s var(--ease); }
.way:hover .way__icon { background: var(--forest); color: var(--ivory); }
.way__icon svg { width: 24px; height: 24px; }
.way h3 { font-size: 1.55rem; margin: 6px 0 0; }
.way p { margin: 0; color: var(--ink-2); font-size: 1rem; }
.way .text-link { margin-top: auto; align-self: flex-start; }
.way .text-link::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }   /* whole card clickable */
.way--feature { background: var(--forest); color: var(--ivory); border-color: var(--forest); }
.way--feature p { color: #D3DCD5; }
.way--feature .way__icon { background: rgba(245, 240, 231, .1); color: var(--sand); }
.way--feature:hover .way__icon { background: var(--sand); color: var(--forest-900); }
.way--feature .text-link { color: var(--sand); }

/* ---------- How it works ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: clamp(48px, 6vw, 80px); counter-reset: step; }
.steps::before { content: ""; position: absolute; left: 30px; right: 30px; top: 30px; height: 1px; background: repeating-linear-gradient(90deg, rgba(245, 240, 231, .35) 0 6px, transparent 6px 14px); }
.step { position: relative; }
.step__num { position: relative; display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 26px; border-radius: 50%; background: var(--forest); border: 1px solid rgba(217, 186, 130, .55); font-family: var(--serif); font-size: 1.4rem; font-style: italic; color: var(--sand); }
.step h3 { font-size: 1.45rem; color: var(--ivory); }
.step p { color: #CAD4CD; font-size: 1rem; margin: 0; }
.honest-note { display: flex; gap: 16px; align-items: flex-start; max-width: 860px; margin-top: 56px; padding: 22px 26px; border-radius: var(--radius); background: rgba(245, 240, 231, .06); border: 1px solid rgba(245, 240, 231, .14); color: #D9E0DA; font-size: .98rem; }
.honest-note svg { flex: none; width: 22px; height: 22px; margin-top: 3px; color: var(--sand); }

/* ---------- Where we work ---------- */
.where { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.region-map { position: relative; padding: clamp(18px, 3vw, 34px); border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); }
.region-map svg { width: 100%; height: auto; }
.region-map .map-note { margin: 10px 4px 0; font-size: .8rem; color: var(--ink-2); }
.places { display: grid; gap: 14px; margin-top: 30px; }
.place { display: flex; align-items: center; gap: 18px; padding: 16px 18px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.place__thumb { width: 74px; height: 74px; flex: none; border-radius: 16px; overflow: hidden; background: var(--ivory-2); }
.place__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.place h3 { font-size: 1.3rem; margin: 0; }
.place p { margin: 2px 0 0; font-size: .95rem; color: var(--ink-2); }
.place--planned { background: transparent; border-style: dashed; }
.place--planned .place__thumb { display: grid; place-items: center; color: var(--terracotta-ink); background: var(--ivory-2); }
.place--planned .place__thumb svg { width: 30px; height: 30px; }
.chip { display: inline-block; margin-left: 8px; padding: 3px 10px; border-radius: 999px; background: var(--sand-soft); color: var(--forest-900); font-family: var(--sans); font-size: .72rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; vertical-align: middle; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.value { padding: 26px; border-top: 1px solid var(--line); }
.value h3 { font-size: 1.35rem; }
.value p { margin: 0; color: var(--ink-2); font-size: 1rem; }

/* ---------- Final CTA ---------- */
.closing { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(110px, 14vw, 200px); background: var(--forest-900); color: var(--ivory); text-align: center; }
.closing::before { content: ""; position: absolute; inset: auto -10% -2px; height: 70%; z-index: -1; background: url("../images/tent-motif-light.svg") no-repeat center bottom / min(1100px, 120%) auto; opacity: .16; }
.closing::after { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(60% 60% at 50% 0%, rgba(197, 111, 80, .22), transparent 70%); }
.closing .h1 { max-width: 1000px; margin-inline: auto; color: var(--ivory); }
.closing .h1 em { color: var(--sand); }
.closing .lead { max-width: 640px; margin: 0 auto 40px; color: #D9E0DA; }
.closing .actions { justify-content: center; }

/* ---------- Forms ---------- */
.form-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.form-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.form-note { display: flex; gap: 12px; margin: 26px 0 0; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--ivory); font-size: .9rem; color: var(--ink-2); }
.form-note svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--forest); }
.email-card { padding: clamp(28px, 4vw, 52px); border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); }
.email-card__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--ivory); color: var(--forest); }
.email-card__icon svg { width: 24px; height: 24px; }
.email-card__label { margin: 22px 0 6px; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--terracotta-ink); }
.email-card__address { display: inline-block; font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 350; color: var(--forest-900); border-bottom: 1px solid var(--line); overflow-wrap: anywhere; transition: border-color .2s; }
.email-card__address:hover { border-bottom-color: var(--forest); }
.email-card__lead { margin: 28px 0 0; color: var(--ink-2); }
.email-card .check-list { margin: 14px 0 30px; }
.email-card__note { margin: 16px 0 0; }

/* contact list */
.contact-list { display: grid; gap: 4px; margin-top: 30px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-top: 1px solid var(--line); }
.contact-item svg { flex: none; width: 22px; height: 22px; margin-top: 3px; color: var(--terracotta-ink); }
.contact-item small { display: block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.contact-item a { border-bottom: 1px solid transparent; }
.contact-item a:hover { border-bottom-color: currentColor; }
.emergency { margin-top: 26px; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--sand-soft); font-size: .93rem; color: var(--forest-900); }

/* ---------- Detail lists (subpages) ---------- */
.detail { padding: 30px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.detail h3 { font-size: 1.45rem; }
.detail p { margin: 0; color: var(--ink-2); }
.check-list { display: grid; gap: 12px; margin: 24px 0; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list svg { flex: none; width: 22px; height: 22px; margin-top: 3px; color: var(--terracotta-ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-900); color: #C6D0C9; padding-top: clamp(72px, 9vw, 112px); font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 64px; }
.footer-brand p { max-width: 340px; margin-top: 20px; }
.footer-title { margin-bottom: 18px; font-family: var(--sans); font-size: .78rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--sand); }
.footer-list { display: grid; gap: 10px; }
.muted-footer { color: #9FB0A6; font-style: italic; }
.site-footer a:hover { color: var(--ivory); }
.footer-attribution { margin-top: 18px; font-family: var(--serif); font-style: italic; color: var(--ivory); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 26px; border-top: 1px solid rgba(245, 240, 231, .12); font-size: .88rem; }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-img { clip-path: inset(8% 0 0 0 round var(--radius-lg)); opacity: 0; transition: clip-path 1.3s var(--ease), opacity 1s var(--ease); }
.js .reveal-img.is-visible { clip-path: inset(0 0 0 0 round var(--radius-lg)); opacity: 1; }
.d1 { transition-delay: .1s !important; } .d2 { transition-delay: .2s !important; } .d3 { transition-delay: .3s !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .reveal-img { opacity: 1; transform: none; clip-path: none; }
  .hero__media img { transform: none; height: 100%; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1320px) {
  .nav__link { padding: 10px 9px; font-size: .93rem; }
}

/* Six links + two actions need ~1180px; below that the nav becomes a drawer */
@media (max-width: 1180px) {
  :root { --header-h: 72px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    /* absolute, not fixed: the header's backdrop-filter makes it the containing block either way */
    position: absolute; top: 100%; left: 0; right: 0; height: calc(100dvh - 100%); flex-direction: column; align-items: stretch; gap: 0;
    padding: 18px clamp(20px, 4vw, 40px) 40px; background: var(--ivory); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s; }
  .nav__link { padding: 16px 0; font-family: var(--serif); font-size: 1.9rem; font-weight: 300; color: var(--charcoal); border-bottom: 1px solid var(--line); }
  .nav__link::after { display: none; }
  .nav__link[aria-current="page"] { color: var(--terracotta-ink); }
  .nav__actions { flex-direction: column; align-items: stretch; gap: 12px; margin: 28px 0 0; }
  .nav__actions .btn { width: 100%; }
  .nav-open { overflow: hidden; }
}

@media (max-width: 1100px) {
  .ways { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 980px) {

  .editorial, .chapter, .where, .form-layout { grid-template-columns: 1fr; }
  .editorial--flip .editorial__media, .chapter:nth-child(even) .chapter__media { order: 0; }
  .editorial__media img { aspect-ratio: 4 / 3; }
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 28px; }
  .steps::before { display: none; }
  .values { grid-template-columns: 1fr; }
  .form-aside { position: static; }
}

@media (max-width: 640px) {
  .ways, .steps, .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 88vh; }
  .actions .btn { width: 100%; }
  .hero__caption { left: 20px; right: auto; }
  .way { min-height: 0; }
  .footer-bottom { flex-direction: column; }
  .page-hero::after { opacity: .3; }
}
