/* ==========================================================================
   Fields Psychology — site styles
   Colours and type from the Fields Psychology brand kit:
   parchment, pine teal, sea green, sunlit clay, dark coffee, Onest.
   ========================================================================== */

/* Brand font: Onest (SIL Open Font License), self-hosted — no third-party requests */
@font-face { font-family: "Onest"; src: url("../fonts/onest-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  /* Brand kit */
  --white: #ffffff;
  --parchment: #f4efea;
  --coffee: #2d2318;        /* dark coffee */
  --pine: #2b4a36;          /* pine teal */
  --sea: #5c8863;           /* sea green */
  --clay: #f3b266;          /* sunlit clay */

  /* Roles */
  --mist: var(--parchment);   /* page background */
  --paper: var(--white);      /* raised surfaces */
  --soil: var(--coffee);      /* text */
  --soil-soft: #5c4f42;       /* secondary text (6.9:1 on parchment) */
  --wheat: var(--clay);       /* decorative accent */
  --wheat-deep: var(--pine);  /* links and accent text on light */
  --wheat-pale: #fbe6c9;      /* clay tint */
  --gum: var(--sea);
  --gum-pale: #e2ebe0;        /* sea green tint */
  --line: #ddd4c9;

  --display: "Onest", "Segoe UI", system-ui, sans-serif;
  --body: "Onest", "Segoe UI", system-ui, sans-serif;

  --step--1: 0.889rem;
  --step-0: 1.125rem;
  --step-1: 1.333rem;
  --step-2: 1.777rem;
  --step-3: 2.369rem;
  --step-4: 3.157rem;
  --step-5: clamp(3.4rem, 9vw, 7.25rem);

  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 74rem;
  --measure: 36rem;
  --radius: 6px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--mist);
  color: var(--soil);
  font-family: var(--body);
  font-size: var(--step-0);
  font-weight: 300;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: var(--wheat-deep); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--soil); }
:focus-visible { outline: 3px solid var(--wheat); outline-offset: 3px; border-radius: 2px; }
p { margin: 0 0 1em; }
strong, b, dt, label, th { font-weight: 500; }
ul { padding-left: 1.2em; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 .5em;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--soil); color: var(--mist); padding: .6rem 1rem; border-radius: var(--radius);
}
.skip:focus { top: 1rem; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.measure { max-width: var(--measure); }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--soil); }
.muted { color: var(--soil-soft); }

/* Placeholder text still to be confirmed — easy to spot before launch */
.tbc {
  background: var(--wheat-pale);
  border-bottom: 2px dotted #a8660f;
  padding: 0 .2em;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 3rem; padding: .7rem 1.4rem;
  border-radius: 999px; border: 1.5px solid var(--soil);
  font: 500 1rem/1.2 var(--body); text-decoration: none;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn-solid { background: var(--pine); border-color: var(--pine); color: var(--white); }
.btn-solid:hover { background: var(--coffee); border-color: var(--coffee); color: var(--white); }
.btn-line { background: transparent; color: var(--soil); }
.btn-line:hover { background: var(--soil); color: var(--mist); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--mist) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: .35em; text-decoration: none; color: var(--soil); margin-right: auto; }
.brand-logo { height: 46px; width: auto; display: block; }
@media (max-width: 560px) { .brand-logo { height: 38px; } }
.footer-logo { height: 52px; width: auto; margin-bottom: .5rem; }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.nav a, .nav button.nav-sub-toggle {
  display: block; padding: .55rem .75rem; border-radius: var(--radius);
  color: var(--soil); text-decoration: none; font: 500 1rem/1.2 var(--body);
  background: none; border: 0; cursor: pointer;
}
.nav a:hover, .nav button.nav-sub-toggle:hover { background: var(--gum-pale); }
.nav a[aria-current="page"], .nav-sub-toggle[data-current="true"] { box-shadow: inset 0 -2px 0 var(--wheat); border-radius: 0; }
.has-sub { position: relative; }
.nav-sub-toggle svg { display: inline; width: .7em; margin-left: .3em; transition: transform .2s var(--ease); }
.nav-sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.sub {
  list-style: none; margin: 0; padding: .5rem;
  position: absolute; top: calc(100% + .4rem); left: 0; min-width: 15rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 18px 40px -20px rgba(42, 35, 29, .35);
  display: none;
}
.has-sub.open .sub { display: block; }
/* invisible bridge over the gap between button and menu */
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -.6rem; height: .6rem; }
.nav .header-cta { margin-left: .75rem; }
.nav .header-cta a { padding: 0; }
.nav .header-cta .btn { display: inline-flex; min-height: 2.6rem; padding: .5rem 1.2rem; border-radius: 999px; text-align: center; }
.nav .header-cta .btn-solid { background: var(--pine); border-color: var(--pine); color: var(--white); }
.nav .header-cta .btn-solid:hover { background: var(--coffee); border-color: var(--coffee); }

.menu-toggle {
  display: none; align-items: center; gap: .5rem;
  background: none; border: 1.5px solid var(--soil); border-radius: 999px;
  padding: .45rem 1rem; font: 500 1rem var(--body); color: var(--soil); cursor: pointer;
}

@media (max-width: 1100px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    /* header has backdrop-filter, so it is the containing block: anchor below it */
    position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - 4.5rem); height: calc(100dvh - 4.5rem);
    background: var(--mist); border-top: 1px solid var(--line);
    padding: 1.5rem var(--gutter) 3rem; overflow-y: auto;
    display: none; flex-direction: column; align-items: stretch;
  }
  .nav.open { display: flex; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav > ul > li { border-bottom: 1px solid var(--line); }
  .nav a, .nav button.nav-sub-toggle { font-size: 1.25rem; padding: 1rem 0; width: 100%; text-align: left; }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--pine); font-weight: 700; }
  .sub { position: static; box-shadow: none; border: 0; background: transparent; padding: 0 0 .75rem 1rem; }
  .sub::before { display: none; }
  .sub a { font-size: 1.1rem; padding: .6rem 0; }
  .nav .header-cta { margin: 1.5rem 0 0; border: 0 !important; }
  .nav .header-cta .btn { width: 100%; min-height: 3.25rem; font-size: 1.1rem; }
  body.menu-open { overflow: hidden; }
}

/* ---------- furrow motif ---------- */
.furrows { width: 100%; height: auto; color: var(--wheat); }
.furrows path { fill: none; stroke: currentColor; stroke-width: 1.4; vector-effect: non-scaling-stroke; }

/* ---------- hero (home) ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: min(88vh, 54rem);
  display: grid; align-items: end;
  color: #fff; overflow: hidden;
  background: #6f6a4a;
}
.hero-media, .hero-media video, .hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(30, 24, 18, .05) 0%, rgba(30, 24, 18, .15) 45%, rgba(30, 24, 18, .62) 100%);
}
.hero-inner { padding-block: 6rem 3.5rem; }
.wordmark {
  font-family: var(--display); font-weight: 700;
  font-size: var(--step-5); line-height: .9; letter-spacing: -0.05em;
  margin: 0 0 1.5rem; color: #fff;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .25);
}
.wordmark span { display: block; }
.wordmark .wm-2 { font-weight: 300; letter-spacing: -0.04em; color: var(--clay); }
.hero .lede { color: #fff; max-width: 30rem; font-size: clamp(1.15rem, 2vw, 1.4rem); text-shadow: 0 1px 12px rgba(0,0,0,.3); }
.hero .btn-solid { background: var(--clay); color: var(--coffee); border-color: var(--clay); }
.hero .btn-solid:hover { background: var(--white); border-color: var(--white); color: var(--coffee); }
.hero .btn-line { color: #fff; border-color: rgba(255,255,255,.8); }
.hero .btn-line:hover { background: #fff; color: var(--soil); }
.hero-note { margin-top: 1.5rem; font-size: var(--step--1); color: rgba(255,255,255,.88); }
.hero-note .tbc { color: var(--soil); }
.video-toggle {
  position: absolute; right: var(--gutter); bottom: 1.25rem; z-index: 2;
  background: rgba(30,24,18,.45); color: #fff; border: 1px solid rgba(255,255,255,.4);
  border-radius: 999px; padding: .4rem .9rem; font: 500 .85rem var(--body); cursor: pointer;
}
.video-toggle[hidden] { display: none; }

/* one orchestrated moment: the wordmark settles in on load */
@media (prefers-reduced-motion: no-preference) {
  .wordmark .wm-1, .wordmark .wm-2, .hero .lede, .hero .btn-row {
    opacity: 0; transform: translateY(14px);
    animation: settle 1.1s var(--ease) forwards;
  }
  .wordmark .wm-2 { animation-delay: .15s; }
  .hero .lede { animation-delay: .35s; }
  .hero .btn-row { animation-delay: .5s; }
  @keyframes settle { to { opacity: 1; transform: none; } }
}

/* ---------- page heads (inner pages) ---------- */
.page-head { padding-block: clamp(3rem, 8vw, 6rem) 2rem; }
.page-head h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); max-width: 16ch; }
.page-head .lede { max-width: 34rem; color: var(--soil-soft); }
.page-head .furrows { margin-top: 2.5rem; max-height: 70px; }
.crumbs { font-size: var(--step--1); margin-bottom: 1.25rem; color: var(--soil-soft); }
.crumbs a { color: var(--soil-soft); }

/* ---------- sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section + .section { padding-top: 0; }
.section-dark { background: var(--pine); color: var(--parchment); }
.section-dark + .section, .section + .section-dark { padding-top: clamp(3.5rem, 8vw, 6.5rem); }
.section-dark a { color: var(--clay); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .btn-solid { background: var(--clay); border-color: var(--clay); color: var(--coffee); }
.section-dark .btn-solid:hover { background: var(--white); border-color: var(--white); color: var(--coffee); }
.section-dark .btn-line { color: var(--mist); border-color: var(--mist); }
.section-dark .btn-line:hover { background: var(--parchment); color: var(--pine); }
.section-dark .muted { color: #d9e4d6; }
.section-paper { background: var(--paper); }
.section-paper + .section, .section + .section-paper { padding-top: clamp(3.5rem, 8vw, 6.5rem); }

.split { display: grid; gap: 2rem 4rem; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
.split > :first-child h2 { margin-bottom: 0; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.prose { max-width: var(--measure); }
.prose h2 { margin-top: 2.5rem; font-size: var(--step-2); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--step-1); font-family: var(--body); font-weight: 700; margin-top: 2rem; }
.prose li { margin-bottom: .4em; }

/* ---------- service rows (home + services) ---------- */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--soil); }
.rows > li { border-bottom: 1px solid var(--line); }
.row-link {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) auto; gap: 1rem 3rem; align-items: baseline;
  padding: 2rem 0; text-decoration: none; color: var(--soil);
}
.row-link h3 { margin: 0; font-size: clamp(1.8rem, 3.6vw, 2.6rem); transition: color .2s var(--ease); }
.row-link p { margin: 0; color: var(--soil-soft); max-width: 32rem; }
.row-link .row-go {
  width: 2.75rem; height: 2.75rem; border: 1.5px solid var(--soil); border-radius: 50%;
  display: grid; place-items: center; transition: background-color .2s var(--ease), color .2s var(--ease);
}
.row-link .row-go svg { width: 1rem; }
.row-link:hover h3 { color: var(--wheat-deep); }
.row-link:hover .row-go { background: var(--soil); color: var(--mist); }
@media (max-width: 720px) {
  .row-link { grid-template-columns: 1fr auto; padding: 1.5rem 0; }
  .row-link p { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- steps (genuinely a sequence) ---------- */
.steps { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 2rem; grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: step; }
.steps li { counter-increment: step; padding-top: 1.25rem; border-top: 1px solid currentColor; }
.steps li::before {
  content: counter(step); display: block;
  font-family: var(--display); font-weight: 300; font-size: 3.25rem; line-height: 1; letter-spacing: -0.04em; color: var(--sea);
  margin-bottom: .75rem;
}
.steps h3 { font-family: var(--body); font-weight: 700; font-size: var(--step-1); margin-bottom: .4rem; }
.steps p { margin: 0; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---------- facts list (fees snapshot etc) ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 2rem 3rem; margin: 2.5rem 0 0; }
.facts div { border-left: 2px solid var(--wheat); padding-left: 1.1rem; }
.facts dt { font-weight: 700; margin-bottom: .3rem; }
.facts dd { margin: 0; }

/* ---------- fees table ---------- */
.fee-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0 1rem; font-size: 1.05rem; }
.fee-table th, .fee-table td { text-align: left; padding: .9rem .5rem .9rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.fee-table thead th { font-size: var(--step--1); color: var(--soil-soft); font-weight: 600; border-bottom-color: var(--soil); }
.fee-table td:last-child, .fee-table th:last-child { text-align: right; padding-right: 0; white-space: nowrap; }

/* ---------- presentations (two-column tag-free list) ---------- */
.columns-list { columns: 2 14rem; column-gap: 3rem; padding: 0; list-style: none; margin: 1.25rem 0 0; }
.columns-list li { break-inside: avoid; padding: .6rem 0; border-bottom: 1px solid var(--line); }

/* ---------- people ---------- */
.people { display: grid; gap: 3rem; margin-top: 2.5rem; }
.person { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.person-photo {
  aspect-ratio: 4 / 5; border-radius: 120px 120px var(--radius) var(--radius);
  background: var(--gum-pale); display: grid; place-items: center; color: var(--gum); overflow: hidden;
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { margin-bottom: .2rem; }
.person .role { color: var(--soil-soft); margin-bottom: 1rem; }
@media (max-width: 640px) { .person { grid-template-columns: 1fr; } .person-photo { max-width: 13rem; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--soil); max-width: 48rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.3rem 2.5rem 1.3rem 0; position: relative;
  font-family: var(--display); font-weight: 500; font-size: var(--step-1); line-height: 1.3; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .25rem; top: 50%; width: .8rem; height: .8rem;
  border-right: 1.5px solid var(--soil); border-bottom: 1.5px solid var(--soil);
  transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq .answer { padding: 0 0 1.5rem; max-width: var(--measure); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: 3rem 5rem; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 1.25rem; }
.field label { display: block; font-weight: 700; margin-bottom: .35rem; }
.field .hint { display: block; font-weight: 400; font-size: var(--step--1); color: var(--soil-soft); margin-top: .15rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--soil);
  background: var(--paper); border: 1.5px solid #b9bdae; border-radius: var(--radius);
  padding: .8rem .9rem; min-height: 3rem;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--clay); outline-offset: 1px; border-color: var(--soil); }
.field-pair { display: grid; gap: 1.25rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .field-pair { grid-template-columns: 1fr; } }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: var(--step--1); color: var(--soil-soft); }
.form-error { background: #f6e1d9; border-left: 3px solid #9c3b1d; padding: .9rem 1rem; border-radius: var(--radius); }
.details-card { background: var(--paper); border-radius: 10px; padding: 2rem; border: 1px solid var(--line); }
.details-card dl { margin: 0; display: grid; gap: 1.25rem; }
.details-card dt { font-weight: 700; }
.details-card dd { margin: 0; }
.map-frame { margin-top: 1.5rem; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--gum-pale); }
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- callout ---------- */
.callout { border-left: 3px solid var(--sea); background: var(--gum-pale); padding: 1.25rem 1.5rem; border-radius: 0 var(--radius) var(--radius) 0; max-width: var(--measure); }
.callout p:last-child { margin: 0; }

/* ---------- closing CTA ---------- */
.closing { text-align: left; }
.closing h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 18ch; }
.closing .phone-big { font-family: var(--display); font-weight: 300; letter-spacing: -0.02em; font-size: var(--step-2); text-decoration: none; color: inherit; }

/* ---------- footer ---------- */
.site-footer { background: var(--coffee); color: #e2d9cd; padding-block: 0 2rem; font-size: 1rem; }
.site-footer a { color: #fff; }
.site-footer .furrows { color: #4e3f2e; max-height: 64px; margin-bottom: 3rem; }
.help-now {
  background: #3b2f22; border-radius: 10px; padding: 1.5rem 1.75rem; margin-bottom: 3rem;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1rem 2rem;
}
.help-now h2 { font-size: var(--step-2); color: #fff; margin: 0; }
.help-now p { margin: 0 0 .5rem; }
.help-now ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .5rem 1.5rem; }
.help-now li a { font-weight: 700; text-decoration: none; }
.help-now li span { display: block; font-size: var(--step--1); color: #c9c1b4; }
@media (max-width: 720px) { .help-now { grid-template-columns: 1fr; } }
.footer-grid { display: grid; gap: 2rem 3rem; grid-template-columns: 2fr 1fr 1fr 1fr; }
.footer-grid h2 { font-family: var(--body); font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: .75rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
.acknowledgement { border-top: 1px solid #4c4238; margin-top: 3rem; padding-top: 2rem; display: grid; grid-template-columns: 1fr; gap: 1rem 3rem; font-size: var(--step--1); color: #bfb7a9; }
.acknowledgement p { margin: 0; }
.acknowledgement .legal { text-align: right; }
@media (max-width: 720px) { .acknowledgement { grid-template-columns: 1fr; } .acknowledgement .legal { text-align: left; } }
.site-footer .tbc { color: var(--soil); }

/* ---------- mobile book bar ---------- */
.book-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: none; gap: .5rem; padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--mist) 94%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .3s var(--ease);
}
.book-bar .btn { flex: 1; min-height: 2.9rem; }
.book-bar.show { transform: none; }
@media (max-width: 1100px) { .book-bar { display: flex; } body { padding-bottom: 4.5rem; } }

@media print {
  .site-header, .book-bar, .hero-media, .video-toggle, .help-now ~ .footer-grid { display: none !important; }
  .hero { min-height: 0; color: var(--soil); background: none; }
  .hero::after { display: none; }
  .wordmark, .hero .lede { color: var(--soil); text-shadow: none; }
}

/* ---------- additions: grouped rows, blog, DVA ---------- */
.rows-subhead { font-size: var(--step-1); margin: 3rem 0 1rem; color: var(--soil-soft); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; }
.section-head a { font-weight: 500; }
.source-note { margin-top: 1.5rem; font-size: var(--step--1); }
.person-lead { grid-template-columns: 17rem minmax(0, 1fr); }
.person-lead h2 { margin-bottom: .25rem; }
@media (max-width: 640px) { .person-lead { grid-template-columns: 1fr; } }

.post-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--soil); }
.post-list > li { border-bottom: 1px solid var(--line); }
.post-link { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: .25rem 2.5rem; padding: 1.75rem 0; text-decoration: none; color: var(--soil); }
.post-link time { color: var(--soil-soft); font-size: var(--step--1); padding-top: .35rem; font-variant-numeric: tabular-nums; }
.post-link h3 { margin: 0 0 .35rem; font-size: var(--step-2); transition: color .2s var(--ease); }
.post-link p { grid-column: 2; margin: 0; color: var(--soil-soft); max-width: var(--measure); }
.post-link:hover h3 { color: var(--pine); }
@media (max-width: 640px) { .post-link { grid-template-columns: 1fr; } .post-link p { grid-column: 1; } }

.post-head h1 { max-width: 22ch; font-size: clamp(2.2rem, 5vw, 3.6rem); }
.post-meta { color: var(--soil-soft); }
.post-body-wrap { padding-top: 0; }
.post-figure { margin: 0 0 2.5rem; }
.post-figure img { width: 100%; max-height: 32rem; object-fit: cover; border-radius: 10px; }
.post-body { max-width: 40rem; font-size: 1.15rem; }
.post-body h2 { font-size: var(--step-2); margin-top: 2.5rem; }
.post-body h3 { font-size: var(--step-1); margin-top: 2rem; }
.post-body blockquote { margin: 2rem 0; padding: .25rem 0 .25rem 1.5rem; border-left: 3px solid var(--clay); font-size: var(--step-1); }
.post-body img { border-radius: 8px; margin: 1.5rem 0; }
.post-note { max-width: 40rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: var(--step--1); color: var(--soil-soft); }

/* in-page jump links (David's page) */
.jump { list-style: none; padding: 0; margin: 1.75rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.jump a { display: inline-block; padding: .45rem 1rem; border: 1.5px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--soil); font-weight: 500; font-size: .95rem; background: var(--paper); }
.jump a:hover { border-color: var(--pine); color: var(--pine); }
[id] { scroll-margin-top: 5.5rem; }

/* hero video fades in only once it is really playing */
.hero-media video { opacity: 0; transition: opacity .8s ease; }
.hero-media video.is-playing { opacity: 1; }
.hero-media video::-webkit-media-controls,
.hero-media video::-webkit-media-controls-start-playback-button,
.hero-media video::-webkit-media-controls-overlay-play-button { display: none !important; -webkit-appearance: none; }

/* ---------- footer layout, balanced ---------- */
.help-now { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 1rem 3rem; padding: 2rem 2.25rem; }
.help-now h2 { margin-bottom: .75rem; }
.help-now p { margin: 0; }
.help-now ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 2rem; }
@media (max-width: 720px) { .help-now { grid-template-columns: 1fr; padding: 1.5rem; } .help-now ul { grid-template-columns: 1fr; } }
.footer-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
.footer-legal { border-top: 1px solid #4e3f2e; margin-top: 3rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem 2rem; font-size: var(--step--1); color: #bfb7a9; }
.footer-legal p { margin: 0; }
.footer-legal ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
/* line the footer columns up with the columns of the help box above */
.footer-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr) minmax(0, 1.5fr); padding-inline: 2.25rem; }
.footer-legal { margin-inline: 2.25rem; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; padding-inline: 0; } .footer-legal { margin-inline: 0; } }
