/* =============================================================
   EXPLANT COSTA RICA - Redesign Design System
   Editorial · warm-neutral · coral signature accent
   Fonts: Fraunces (display serif) + Hanken Grotesk (grotesque)
   ============================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, picture, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }

/* ---------- Design Tokens ---------- */
:root {
  /* Warm neutrals */
  --paper:      #F6F0E7;   /* base canvas, warm oat */
  --paper-2:    #FBF7F0;   /* raised surfaces / cards */
  --cream:      #EDE3D2;   /* oat cream block (guide S5) */
  --sand:       #E0D2BC;   /* warm sand section */
  --oat-deep:   #D8C6AA;

  --ink:        #241B13;   /* primary text / headings (per table spec) */
  --ink-2:      #5C4F41;   /* body / secondary text (per table spec) */
  --ink-3:      #9A8A78;   /* muted / captions */
  --hairline:   rgba(43,33,25,.14);
  --hairline-2: rgba(43,33,25,.08);

  /* Editorial dark */
  --espresso:   #241811;   /* deep warm near-black */
  --espresso-2: #2F2118;
  --on-dark:    #EFE6D6;   /* cream text on dark */
  --on-dark-2:  #B7A692;

  /* Brand tones (sampled from guide) */
  --gold:       #C4A768;   /* P1 primary gold/tan */
  --gold-soft:  #D8C29A;
  --caramel:    #8D6234;   /* P2 */
  --clay:       #C98B62;   /* P3 warm clay */
  --terracotta: #B85C34;   /* P4 burnt orange, deepened */
  --olive:      #897D61;   /* P5 */
  --coffee:     #82634D;   /* S1 */
  --taupe-rose: #C09479;   /* S3 */
  --sage:       #7D976F;   /* S6 green */
  --sage-deep:  #5F7A57;
  --pine:       #556F6E;   /* S9 deep teal-green */
  --eucalyptus: #A0BAB4;   /* S10 */

  /* Signature action colour, from the logo */
  --coral:      #F07E86;
  --coral-deep: #E0687A;
  --coral-soft: #F9D8D8;

  /* Type */
  --serif: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --sans:  "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  /* Type scale - canonical, site-wide (confirmed 2026-07-05).
     FLAT/FIXED sizes, no fluid scaling. EVERY heading = 34px; body = 17px. */
  --fs-h1:      2.125rem;   /* 34px */
  --fs-h2:      2.125rem;   /* 34px */
  --fs-h3:      2.125rem;   /* 34px */
  --fs-h4:      2.125rem;   /* 34px */
  --fs-lead:    1.0625rem;  /* 17px - same as body */
  --fs-body:    1.0625rem;  /* 17px */
  --fs-sm:      0.9375rem;
  --fs-label:   0.72rem;

  /* Spacing scale (8pt) */
  --s-1: 0.5rem; --s-2: 1rem; --s-3: 1.5rem; --s-4: 2rem;
  --s-5: 3rem; --s-6: 4rem; --s-7: 6rem; --s-8: 8rem; --s-9: 11rem;

  /* Structure */
  --maxw: 100%;         /* full-bleed: layout spans the viewport (minus gutter) */
  --maxw-wide: 100%;    /* full-bleed */
  --maxw-text: 720px;   /* readable text column - kept so copy never runs edge-to-edge */
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --header-h: 84px;

  /* Radii */
  --r-sm: 4px; --r: 12px; --r-lg: 22px; --r-xl: 32px; --r-pill: 999px;

  /* Shadow */
  --shadow-sm: 0 2px 14px rgba(43,33,25,.06);
  --shadow:    0 18px 50px -24px rgba(43,33,25,.28);
  --shadow-lg: 0 40px 90px -40px rgba(43,33,25,.42);

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

/* ---------- Base ---------- */
body {
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "ss01","cv11";
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 40;
  color: var(--ink);
  overflow-wrap: break-word;
}
h1 { font-size: var(--fs-h1); line-height: 1.04; }
h2 { font-size: var(--fs-h2); line-height: 1.04; }
h3 { font-size: var(--fs-h3); line-height: 1.04; }
h4 { font-size: var(--fs-h4); line-height: 1.04; }
p { color: var(--ink-2); }
strong { color: var(--ink); font-weight: 600; }
em { font-style: italic; }
.lead { line-height: 1.55; }
/* Full-bleed layout, but running text keeps a comfortable reading measure.
   Lower specificity than .lead/.section-head/.cta-band etc., so those keep
   their own widths; this only reins in otherwise-uncapped body copy. */
main p, main li { max-width: 40rem; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--wide { max-width: var(--maxw-wide); }
.wrap--text { max-width: var(--maxw-text); }
.section { padding-block: clamp(4rem, 8vw, 8.5rem); }
.section--sm { padding-block: clamp(3rem, 5vw, 5rem); }
.section--tight { padding-block: clamp(2.5rem, 4vw, 4rem); }
.bg-cream { background: var(--cream); }
.bg-sand { background: var(--sand); }
.bg-paper2 { background: var(--paper-2); }
.bg-espresso { background: var(--espresso); color: var(--on-dark); }
.bg-espresso h1, .bg-espresso h2, .bg-espresso h3, .bg-espresso h4 { color: var(--on-dark); }
.bg-espresso p { color: var(--on-dark-2); }
.bg-sage { background: var(--sage); color: #fff; }
.bg-sage h2, .bg-sage h3 { color: #fff; }

.grid { display: grid; gap: var(--s-4); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: currentColor; opacity: .5;
}
.eyebrow--center::after { content:""; width:26px; height:1px; background:currentColor; opacity:.5; }
.eyebrow--plain::before { display: none; }
.bg-espresso .eyebrow { color: var(--gold); }
.bg-sage .eyebrow { color: #fff; }

.section-head { max-width: 760px; }
.section-head.center { margin-inline: auto; }
.section-head .eyebrow { margin-bottom: 1.25rem; }
.section-head p { margin-top: 1.25rem; font-size: var(--fs-lead); }

/* ---------- Buttons ----------
   Moved to assets/css/buttons.css (the single, universal button
   shared by every page: .btn / .btn--ghost). One size, no
   variants. Do not re-add button rules here - edit buttons.css. */

/* Text link with animated underline */
.link {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 600; font-size: .95rem; color: var(--ink);
  position: relative; padding-bottom: 2px;
}
.link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 100%;
  background: var(--coral); transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease-out);
}
.link:hover::after { transform: scaleX(1); }
.link .ar { transition: transform .35s var(--ease-out); }
.link:hover .ar { transform: translateX(4px); }
.bg-espresso .link { color: var(--on-dark); }

/* ---------- Header / Navigation ----------
   Moved to assets/css/header.css (the single, universal header
   component shared by every page). Do not re-add header rules
   here - edit header.css instead. */

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: calc(var(--header-h) + clamp(2rem,6vw,5rem)); padding-bottom: clamp(3rem,6vw,6rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero .lead { font-size: var(--fs-lead); color: var(--ink-2); max-width: 46ch; margin-top: 1.6rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; align-items: center; }

/* ---------- Image frames / duotone placeholders ---------- */
.frame { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--cream); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--tall { aspect-ratio: 4/5; }
.frame--portrait { aspect-ratio: 3/4; }
.frame--wide { aspect-ratio: 16/10; }
.frame--square { aspect-ratio: 1/1; }

/* Editorial placeholder, used where real photography will be dropped in */
.ph {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  display: grid; place-items: center; text-align: center; color: rgba(255,255,255,.92);
  background:
    radial-gradient(130% 100% at 15% 8%, rgba(255,255,255,.22), transparent 52%),
    radial-gradient(120% 120% at 90% 100%, rgba(0,0,0,.22), transparent 55%),
    linear-gradient(150deg, var(--c1, var(--clay)), var(--c2, var(--caramel)));
  isolation: isolate;
}
/* flowing line-art motif, makes empty slots feel art-directed */
.ph::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='500' fill='none' stroke='white' stroke-width='1' opacity='0.35'%3E%3Cpath d='M-40 380 C120 300 180 460 400 300' /%3E%3Cpath d='M-40 430 C120 350 180 510 400 350' /%3E%3Cpath d='M-40 330 C120 250 180 410 400 250' /%3E%3Ccircle cx='300' cy='120' r='70'/%3E%3Ccircle cx='300' cy='120' r='110'/%3E%3C/svg%3E");
  background-size: cover; background-position: center; mix-blend-mode: soft-light;
}
.ph::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: .10; mix-blend-mode: overlay;
}
.ph-label {
  position: relative; z-index: 3;
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600;
  padding: .55em 1.1em; border: 1px solid rgba(255,255,255,.55); border-radius: var(--r-pill);
  background: rgba(0,0,0,.10); backdrop-filter: blur(3px);
}
.ph-icon { position: relative; z-index: 3; opacity: .9; margin-bottom: .8rem; }
.ph--sage { --c1: var(--sage); --c2: var(--pine); }
.ph--gold { --c1: var(--gold); --c2: var(--caramel); }
.ph--clay { --c1: var(--clay); --c2: var(--terracotta); }
.ph--taupe { --c1: var(--taupe-rose); --c2: var(--coffee); }
.ph--eucalyptus { --c1: var(--eucalyptus); --c2: var(--pine); }
.ph--tall { aspect-ratio: 3/4; }
.ph--wide { aspect-ratio: 16/10; }
.ph--square { aspect-ratio: 1/1; }
.ph--portrait { aspect-ratio: 4/5; }

.img-caption { margin-top: .85rem; font-size: .82rem; color: var(--ink-3); letter-spacing: .01em; }

/* ---------- Cards ---------- */
.card {
  background: var(--paper-2); border: 1px solid var(--hairline-2);
  border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.2rem);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .4s;
  position: relative;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card h3, .card h4 { margin-bottom: .6rem; }
.card p { font-size: var(--fs-sm); }
.card .card-index { font-family: var(--serif); font-size: 1.1rem; color: var(--gold); }

.proc-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.proc-card .proc-media { aspect-ratio: 5/4; }
.proc-card .proc-body { padding: clamp(1.4rem,2.5vw,1.9rem); display:flex; flex-direction:column; gap:.75rem; flex:1; }
.proc-card .proc-body .link { margin-top: auto; }

/* icon chip */
.chip {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--cream); color: var(--terracotta); margin-bottom: 1.3rem;
}
.bg-espresso .chip { background: rgba(239,230,214,.08); color: var(--gold); }

/* ---------- Feature list / stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: clamp(1.5rem,3vw,3rem); }
.stat .num { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; color: var(--ink); letter-spacing: -0.02em; }
.stat .num .sfx { color: var(--terracotta); }
.stat .lbl { margin-top: .7rem; font-size: .92rem; color: var(--ink-2); max-width: 22ch; }
.bg-espresso .stat .num { color: var(--on-dark); }
.bg-espresso .stat .num .sfx { color: var(--gold); }
.bg-espresso .stat .lbl { color: var(--on-dark-2); }

/* pill tags */
.tag { display:inline-flex; align-items:center; gap:.5em; font-size:.78rem; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--ink-2); background:var(--cream); padding:.5em 1em; border-radius:var(--r-pill); }
.taglist { display: flex; flex-wrap: wrap; gap: .6rem; }

/* trust bar / marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--hairline); padding-block: 1.4rem; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 3.5rem; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: .7rem; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; font-weight: 500; }
.marquee-item svg { color: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Accordion (FAQ) ---------- */
.accordion { border-top: 1px solid var(--hairline); }
.acc-item { border-bottom: 1px solid var(--hairline); }
.acc-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; text-align: left; padding: 1.5rem 0; font-family: var(--serif); font-size: clamp(1.15rem,2vw,1.4rem); color: var(--ink); }
.acc-q .pm { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--hairline); display: grid; place-items: center; transition: all .35s var(--ease); position: relative; }
.acc-q .pm::before, .acc-q .pm::after { content:""; position:absolute; background: var(--ink); transition: all .35s var(--ease); }
.acc-q .pm::before { width: 12px; height: 1.5px; }
.acc-q .pm::after { width: 1.5px; height: 12px; }
.acc-item.open .acc-q .pm { background: var(--coral); border-color: var(--coral); }
.acc-item.open .acc-q .pm::before, .acc-item.open .acc-q .pm::after { background: #fff; }
.acc-item.open .acc-q .pm::after { transform: scaleY(0); }
.acc-a { overflow: hidden; max-height: 0; transition: max-height .5s var(--ease); }
.acc-a-inner { padding: 0 0 1.6rem; max-width: 60ch; color: var(--ink-2); }

/* ---------- Testimonials ---------- */
.quote-card { background: var(--paper-2); border-radius: var(--r-lg); padding: clamp(1.8rem,3vw,2.6rem); border: 1px solid var(--hairline-2); display: flex; flex-direction: column; gap: 1.4rem; break-inside: avoid; }
.quote-card .stars { display: flex; gap: 3px; color: var(--gold); }
.quote-card blockquote { font-family: var(--serif); font-size: clamp(1.15rem,1.6vw,1.4rem); line-height: 1.4; color: var(--ink); font-weight: 400; }
.quote-card .who { display: flex; align-items: center; gap: .85rem; margin-top: auto; }
.quote-card .who .av { width: 44px; height: 44px; border-radius: 50%; background: var(--cream); display: grid; place-items: center; font-family: var(--serif); color: var(--terracotta); font-size: 1.1rem; flex-shrink: 0; }
.quote-card .who .nm { font-weight: 600; font-size: .95rem; color: var(--ink); }
.quote-card .who .src { font-size: .8rem; color: var(--ink-3); }

/* ---------- Steps / process ---------- */
.steps { display: grid; gap: 0; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 2rem; padding: 2rem 0; border-top: 1px solid var(--hairline); align-items: start; }
.step:last-child { border-bottom: 1px solid var(--hairline); }
.step .step-n { font-family: var(--serif); font-size: clamp(2rem,3vw,2.8rem); color: var(--gold); line-height: 1; min-width: 2.5ch; }
.step h3 { margin-bottom: .6rem; }
.step p { max-width: 60ch; }

/* ---------- Split / feature rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,5rem); align-items: center; }
.split--reverse .split-media { order: 2; }
.feature-list { display: grid; gap: 1.1rem; margin-top: 1.8rem; }
.feature-list li { display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: start; color: var(--ink-2); font-size: var(--fs-sm); }
.feature-list .ck { width: 24px; height: 24px; border-radius: 50%; background: var(--sage); color: #fff; display: grid; place-items: center; flex-shrink: 0; margin-top: 1px; }

/* ---------- Forms ---------- */
.form-card { background: var(--paper-2); border: 1px solid var(--hairline-2); border-radius: var(--r-xl); padding: clamp(1.8rem, 4vw, 3rem); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); margin-bottom: .5rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .95em 1.1em; background: var(--paper); border: 1px solid var(--hairline);
  border-radius: var(--r); font-size: 1rem; color: var(--ink); transition: border-color .25s, box-shadow .25s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 4px var(--coral-soft); }
.field textarea { resize: vertical; min-height: 130px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.stage-chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.stage-chips input { position: absolute; opacity: 0; pointer-events: none; }
.stage-chips label { display: inline-flex; text-transform: none; letter-spacing: 0; margin: 0; padding: .6em 1.1em; border: 1px solid var(--hairline); border-radius: var(--r-pill); font-size: .9rem; font-weight: 500; cursor: pointer; transition: all .25s; color: var(--ink-2); }
.stage-chips input:checked + label { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.file-drop { border: 1.5px dashed var(--hairline); border-radius: var(--r); padding: 1.5rem; text-align: center; color: var(--ink-3); font-size: .9rem; transition: border-color .25s, background .25s; }
.file-drop:hover { border-color: var(--coral); background: var(--coral-soft); color: var(--coral-deep); }

/* ---------- Contact rail ---------- */
.contact-rail { display: grid; gap: 1.5rem; }
.contact-row { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start; padding-bottom: 1.5rem; border-bottom: 1px solid var(--hairline); }
.contact-row .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--cream); color: var(--terracotta); display: grid; place-items: center; flex-shrink: 0; }
.contact-row .k { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); margin-bottom: .25rem; }
.contact-row .v { font-size: 1.05rem; color: var(--ink); font-weight: 500; }
.bg-espresso .contact-row { border-color: rgba(239,230,214,.14); }
.bg-espresso .contact-row .ic { background: rgba(239,230,214,.08); color: var(--gold); }
.bg-espresso .contact-row .v { color: var(--on-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--espresso); color: var(--on-dark-2); padding-top: clamp(3.5rem, 6vw, 6rem); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3.5rem; border-bottom: 1px solid rgba(239,230,214,.12); }
.footer-brand img { height: 44px; width: auto; margin-bottom: 1.4rem; }
.footer-brand p { color: var(--on-dark-2); font-size: var(--fs-sm); max-width: 34ch; }
.footer-col h5 { font-family: var(--sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--gold); margin-bottom: 1.2rem; font-weight: 600; }
.footer-col a { display: block; padding: .38rem 0; color: var(--on-dark-2); font-size: .95rem; transition: color .25s, transform .25s; }
.footer-col a:hover { color: var(--on-dark); transform: translateX(3px); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 2rem; }
.footer-bottom p { font-size: .85rem; color: var(--on-dark-2); }
.footer-social { display: flex; gap: .75rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(239,230,214,.2); display: grid; place-items: center; color: var(--on-dark-2); transition: all .3s var(--ease); }
.footer-social a:hover { background: var(--gold); color: var(--espresso); border-color: var(--gold); transform: translateY(-3px); }

/* ---------- Page hero (interior) ---------- */
.page-hero { padding-top: calc(var(--header-h) + clamp(2.5rem,6vw,5rem)); padding-bottom: clamp(2.5rem,5vw,4.5rem); }
.page-hero .eyebrow { margin-bottom: 1.4rem; }
.page-hero h1 { max-width: 16ch; }
.page-hero .lead { max-width: 58ch; margin-top: 1.5rem; font-size: var(--fs-lead); }
.breadcrumb { display: flex; gap: .5rem; align-items: center; font-size: .82rem; color: var(--ink-3); margin-bottom: 1.4rem; }
.breadcrumb a:hover { color: var(--terracotta); }

/* prose */
.prose { max-width: var(--maxw-text); }
.prose h2 { margin: 2.5rem 0 1rem; }
.prose h3 { margin: 2rem 0 .8rem; }
.prose p { margin-bottom: 1.2rem; }
.prose p + p { margin-top: -.2rem; }
.prose ul { margin: 0 0 1.4rem; display: grid; gap: .7rem; }
.prose ul li { display: grid; grid-template-columns: auto 1fr; gap: .8rem; color: var(--ink-2); }
.prose ul li::before { content: ""; width: 7px; height: 7px; margin-top: .65em; border-radius: 50%; background: var(--coral); }
.prose .callout { background: var(--cream); border-left: 3px solid var(--gold); border-radius: var(--r); padding: 1.4rem 1.6rem; margin: 1.8rem 0; }
.prose .callout p { margin: 0; color: var(--ink); font-size: var(--fs-sm); }

/* CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--espresso); color: var(--on-dark); padding: clamp(2.5rem, 6vw, 5rem); text-align: center; }
.cta-band h2 { color: var(--on-dark); max-width: 20ch; margin-inline: auto; }
.cta-band p { color: var(--on-dark-2); max-width: 52ch; margin: 1.2rem auto 2rem; font-size: var(--fs-lead); }
.cta-band .glow { position: absolute; width: 500px; height: 500px; border-radius: 50%; filter: blur(90px); opacity: .4; pointer-events: none; }
.cta-band .glow.g1 { background: var(--terracotta); top: -30%; left: -10%; }
.cta-band .glow.g2 { background: var(--pine); bottom: -40%; right: -5%; opacity: .35; }

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
[data-reveal].is-visible { 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; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* grain overlay for whole page */
.grain { position: fixed; inset: 0; z-index: 200; pointer-events: none; opacity: .025; mix-blend-mode: multiply;
  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='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* utility */
.mt-1{margin-top:var(--s-2)} .mt-2{margin-top:var(--s-3)} .mt-3{margin-top:var(--s-4)} .mt-4{margin-top:var(--s-5)} .mt-5{margin-top:var(--s-6)}
.mb-2{margin-bottom:var(--s-3)} .mb-3{margin-bottom:var(--s-4)} .mb-4{margin-bottom:var(--s-5)}
.maxw-text{max-width:var(--maxw-text)}
.divider { height: 1px; background: var(--hairline); border: 0; }
.pill-note { display:inline-flex; align-items:center; gap:.6em; font-size:.85rem; color:var(--ink-2); background:var(--paper-2); border:1px solid var(--hairline); padding:.5em 1em; border-radius:var(--r-pill); }
.pill-note .dot { width:7px; height:7px; border-radius:50%; background:var(--sage); }

/* ---------- Contact-specific ---------- */
.contact-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.contact-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 1.5rem; }
.rail-card { background: var(--paper-2); border: 1px solid var(--hairline-2); border-radius: var(--r-xl); padding: clamp(1.6rem, 3vw, 2.2rem); }
.reassure { background: var(--espresso); color: var(--on-dark); border-radius: var(--r-lg); padding: 1.6rem 1.8rem; display: grid; gap: .9rem; }
.reassure-row { display: flex; align-items: center; gap: .8rem; font-size: .95rem; color: var(--on-dark); }
.reassure .rdot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-aside { position: static; }
}

/* ---------- Home-specific ---------- */
.hero.bg-espresso { position: relative; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-bg::before, .hero-bg::after { content: ""; position: absolute; border-radius: 50%; filter: blur(120px); }
.hero-bg::before { width: 620px; height: 620px; background: var(--terracotta); opacity: .22; top: -20%; right: -8%; }
.hero-bg::after { width: 520px; height: 520px; background: var(--pine); opacity: .28; bottom: -30%; left: -12%; }
.hero-copy, .hero-media { position: relative; }
.hero-meta { display: flex; align-items: center; gap: 1.6rem; margin-top: 3rem; flex-wrap: wrap; }
.hero-meta .hm { display: flex; flex-direction: column; }
.hero-meta .hm strong { font-family: var(--serif); font-size: 2rem; color: var(--on-dark); line-height: 1; font-weight: 400; }
.hero-meta .hm span { font-size: .82rem; color: var(--on-dark-2); margin-top: .35rem; max-width: 16ch; }
.hero-meta .hm-div { width: 1px; height: 42px; background: rgba(239,230,214,.18); }
.hero-portrait { box-shadow: var(--shadow-lg); }
.hero-badge { position: absolute; left: -1.5rem; bottom: 2rem; background: var(--paper-2); color: var(--ink); border-radius: var(--r); padding: 1rem 1.2rem; box-shadow: var(--shadow); display: flex; align-items: center; gap: .9rem; max-width: 320px; }
.hero-badge .hb-mark { width: 40px; height: 40px; border-radius: 10px; background: var(--coral-soft); color: var(--coral-deep); display: grid; place-items: center; font-size: 1.1rem; flex-shrink: 0; }
.hero-badge strong { display: block; font-size: .92rem; }
.hero-badge span { font-size: .76rem; color: var(--ink-3); line-height: 1.35; }

.intro-split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.intro-body .link { margin-top: 1.5rem; }
.row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }

@media (max-width: 900px) {
  .hero-badge { left: 1rem; }
  .intro-split { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-meta .hm-div { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  :root { --header-h: 72px; }
  /* nav show/hide is owned solely by header.css (single universal header) */
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .split--reverse .split-media { order: 0; }
  .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: .5rem; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .hero .lead { max-width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
