/* ==========================================================================
   Home, below the cover (Dec 2026, from the V2 prototype in
   deliverables/website-v2/hi-fi/v2-record.css).
   Four sections: two call-outs (#first-steps: the case tool, which lives on
   clients.html with css/case-help.css, and the magazine), Latest news,
   Upcoming trainings and Work with us (js/home.js).
   The cover keeps its own rules in styles.css (.home-cover). Left out of the
   prototype on purpose: the "On this page" contents, the sticky section bar
   and folio, and the V2 footer (Home keeps the site footer and its
   newsletter sign-up). Site tokens only; the rgba values are the photo
   veils the site's heroes already use.
   ========================================================================== */

/* ---------- Numbered sections ---------- */
.home-rec { padding: 4.5rem 1.5rem; background: var(--bg-white); scroll-margin-top: 7rem; }
.home-rec--tint { background: var(--bg-light); }
.home-rec-head { display: flex; align-items: flex-end; gap: 1.25rem; margin-bottom: 2.25rem; }
.home-rec-head .section-title { margin: 0; }
/* The overline over each Home heading, as on the live Home. */
.home-rec-head .label { margin: 0 0 0.625rem; }
.home-rec-head .home-more { margin-left: auto; padding-bottom: 0.4rem; }
.home-rec .home-more:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }


/* 03 · nothing scheduled */
.home-cal-empty { padding: 1.25rem 0; border-top: 2px solid var(--text-dark); color: var(--text-light); }

/* 04 · careers band: the photograph at full strength, unveiled, with the
   words on a white card beside the person taking the oath. Below 1024px
   the photo sits on top and the card overlaps its lower edge. */
.home-band { position: relative; isolation: isolate; overflow: hidden; padding: 5.5rem 1.5rem; background: var(--bg-light); scroll-margin-top: 7rem; }
.home-band-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
/* Wider than the band and pinned right, so the oath stays clear of the card;
   taller than the band so the parallax never shows an edge. */
/* Framed on David Tatem (Dec 3): head, shoulders and the raised hand, clear of the card. */
.home-band-bg img { position: absolute; right: -3%; top: -15%; width: 145%; height: 130%; max-width: none; object-fit: cover; object-position: 100% 40%; }
.home-band-card { width: min(100%, 31rem); padding: 3rem; background: var(--bg-white); border-radius: 16px; box-shadow: var(--shadow-lg); }
.home-band h2 { font-size: clamp(2rem, 3.2vw, 2.625rem); font-weight: 500; line-height: 1.12; letter-spacing: -0.02em; color: var(--text-dark); margin: 0.75rem 0 2.25rem; }
.home-figures { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem 2rem; margin: 0 0 2.5rem; }
.home-figures dt { font-family: 'Ubuntu', sans-serif; font-size: 2.5rem; font-weight: 500; line-height: 1; letter-spacing: -0.01em; color: var(--primary-text); }
.home-figures dd { margin: 0.5rem 0 0; font-size: var(--t-fine); color: var(--text-medium); line-height: 1.45; text-wrap: balance; }
.home-band-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
/* Who is in the photo: the card's last line, under a hairline. */
.home-band-note { margin: 2rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--border-light); font-size: var(--t-fine); line-height: 1.5; color: var(--text-medium); }

/* Narrower screens bring the card toward the gutter, so the crop tightens
   onto the oath in two steps. */
@media (max-width: 1439px) {
    .home-band-bg img { right: -8%; width: 165%; object-position: 100% 40%; }
}
@media (max-width: 1199px) {
    .home-band-bg img { right: -15%; width: 181%; object-position: 100% 36%; }
    .home-band-card { width: min(100%, 27.5rem); padding: 2.25rem; }
    .home-band-actions .btn { padding: 0 1.125rem; }
}
@media (max-width: 1023px) {
    .home-band { padding: 0 1.5rem 3.5rem; }
    .home-band-bg { position: relative; inset: auto; z-index: 0; margin: 0 -1.5rem; height: min(62.5vw, 30rem); }
    .home-band-bg img { right: 0; width: 185%; object-position: 100% 34%; }
    .home-band-card { position: relative; width: auto; max-width: 34rem; margin: -4rem auto 0; padding: 2.5rem; }
    .home-band-actions .btn { padding: 0 1.375rem; }
}

/* ---------- Phone ---------- */
@media (max-width: 640px) {
    .home-rec { padding: 3.25rem 1rem; }
    .home-rec-head { flex-wrap: wrap; gap: 0.875rem; margin-bottom: 1.75rem; }
    .home-rec-head .home-more { margin-left: 0; width: 100%; padding: 0; }
    .home-band { padding: 0 1rem 2.5rem; }
    .home-band-bg { margin: 0 -1rem; height: 75vw; }
    .home-band-bg img { width: 190%; object-position: 100% 36%; }
    .home-band-note { margin-top: 1.5rem; }
    .home-band-card { margin-top: -3rem; padding: 1.75rem 1.5rem 1.5rem; }
    .home-band h2 { margin-bottom: 1.75rem; }
    .home-figures { gap: 1.5rem 1.25rem; margin-bottom: 2rem; }
    .home-figures dt { font-size: 2.25rem; }
    .home-band-actions { flex-direction: column; }
    .home-band-actions .btn { min-height: 48px; }
}

/* One button system for V2 (Nov 5). The shared .btn keeps its shape; here it
   is flat: no gradient, no shadow, no lift. Every button is 44px tall, 14px/700.
   Page buttons are spacing adapters of it, not separate systems. */
/* The county search (js/fypd-search.js) sizes its own button: a 44px round arrow on phones. */
.home-sec .btn:not(.fs-go) { min-height: 44px; padding: 0 1.375rem; font-size: 0.875rem; font-weight: 700; transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out), border-color 0.3s var(--ease-out); }
.home-sec .btn:hover, .home-sec .btn:active { transform: none; }
.home-sec .btn-primary { background: var(--primary); box-shadow: none; }
.home-sec .btn-primary::before { display: none; }
.home-sec .btn-primary:hover { background: var(--primary-text); box-shadow: none; }
.home-sec .btn-outline { box-shadow: none; }
.home-sec .btn-outline:hover { box-shadow: none; }
.home-sec .btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }



/* ---------- No ruled dividers (owner, Nov 3) ----------
   The calendar and section edges lose their rules. Spacing does the work. */
.home-cal-empty { border-top: 0; }


/* 01 · Call-outs (Dec 3, direction B): built as Upcoming trainings is, a line
   and a feature. The case tool (now on Clients & Families) is the line; the
   magazine is the feature, one copy that opens to its pages. Until the
   launch (js/home.js) the date stands where the button will be. */
.home-callout-lede { margin: 1rem 0 2rem; max-width: 30rem; font-size: 1.0625rem; line-height: 1.6; color: var(--text-medium); }
.home-callout-act { margin: 0; }
.home-callout-act[hidden] { display: none; }
.home-callout-soon { display: flex; align-items: center; min-height: var(--tap); }
@media (min-width: 641px) { #first-steps.home-rec { padding-top: 2rem; } }
.home-co { display: grid; gap: 1rem; }
/* The line, as the later trainings are set: one row on --bg-light. */
.home-co-case { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 2.5rem; padding: 1.75rem 1.75rem 1.75rem clamp(2rem, 4vw, 3.25rem); background: var(--bg-light); border-radius: 20px; }
.home-co-title { margin: 0; font: 500 clamp(1.5rem, 2.4vw, 1.875rem)/1.2 'Ubuntu', sans-serif; letter-spacing: -0.01em; color: var(--text-dark); white-space: nowrap; }
.home-co-lede { margin: 0; max-width: 30rem; font-size: var(--t-sm); line-height: 1.55; color: var(--text-medium); }
.home-co-case .btn svg, .home-co-mag .btn svg { width: 16px; height: 16px; margin-left: 0.5rem; }
/* The feature, as the next training is set: words left, the picture right. */
.home-co-mag { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); background: var(--bg-light); border-radius: 20px; }
.home-co-mag-b { display: flex; flex-direction: column; align-items: flex-start; align-self: center; padding: clamp(2rem, 4vw, 3.25rem); }
.home-co-mag-title { margin: 0.75rem 0 0; font: 500 clamp(2.25rem, 4vw, 3.25rem)/1.08 'Ubuntu', sans-serif; letter-spacing: -0.02em; color: var(--text-dark); text-wrap: balance; }
.home-co-mag .home-callout-lede { margin: 1.25rem 0 1.75rem; }
.home-co-mag .home-callout-soon { font: 500 1.5rem/1.1 'Ubuntu', sans-serif; letter-spacing: -0.01em; color: var(--primary-text); }
/* One copy of the magazine, drawn as the object it is. The book is two pages
   wide and lies tipped back a little, as on a table; closed, it sits half a
   page left so the cover is centered. Each leaf
   turns on the spine (its left edge) and carries a page on each side; js/home.js
   releases them one after another (--t is each leaf's time in the air). The
   paper's thickness is a stack of hard-edged page lines under each half; the
   shadows are the site's own, cast by the copy onto the panel; the gutter's
   shade is a shadow from a strip hidden in the spine. */
.home-co-mag-art { display: grid; justify-items: center; align-content: center; gap: 1.25rem; padding: clamp(2rem, 4vw, 3.25rem) clamp(2rem, 4vw, 3.25rem) clamp(2rem, 4vw, 3.25rem) 0; }
.home-mag { width: 100%; max-width: 44rem; perspective: 4000px; }
.home-mag-book { position: relative; display: block; aspect-ratio: 1800 / 1165; transform-style: preserve-3d; transform: translateX(-25%) rotateX(8deg); transition: transform 0.45s var(--ease-out); }
.home-co-mag:not([data-at="0"]) .home-mag-book { transform: translateX(0) rotateX(8deg); }
.home-mag-book:focus-visible { outline: 2px solid var(--primary); outline-offset: 8px; border-radius: 4px; }
.home-mag-under { position: absolute; top: 0; bottom: 0; width: 50%; background: var(--bg-white); }
.home-mag-under--r { left: 50%; border-radius: 0 3px 3px 0;
    box-shadow: 1px 1px 0 var(--border-light), 2px 2px 0 var(--bg-white), 3px 3px 0 var(--border-light), 4px 4px 0 var(--bg-white), 5px 5px 0 var(--border-light), 6px 6px 0 var(--bg-white), 7px 7px 0 var(--border-light), 8px 8px 0 var(--bg-white), 9px 9px 0 var(--border-light), var(--shadow-lg), var(--shadow-md); }
.home-mag-under--l { left: 0; border-radius: 3px 0 0 3px; opacity: 0; transition: opacity 0.15s linear 0.1s;
    box-shadow: -1px 1px 0 var(--border-light), -2px 2px 0 var(--bg-white), -3px 3px 0 var(--border-light), var(--shadow-lg), var(--shadow-md); }
.home-co-mag:not([data-at="0"]) .home-mag-under--l { opacity: 1; transition: opacity 0.2s linear 0.4s; }
.home-mag-leaf { position: absolute; top: 0; bottom: 0; left: 50%; width: 50%; transform-origin: 0 50%; transform-style: preserve-3d;
    transform: translateZ(calc((var(--n) - var(--i)) * 1px)) rotateY(0deg); transition: transform var(--t, 0.6s) var(--ease-in-out); }
/* A leaf lying under another is put away once the one above has landed, so no
   edge of it shows around the page on top. It comes back the moment that one lifts. */
.home-mag-leaf.is-turned:has(+ .home-mag-leaf.is-turned), .home-mag-leaf:not(.is-turned) + .home-mag-leaf:not(.is-turned) { visibility: hidden; transition: transform var(--t, 0.6s) var(--ease-in-out), visibility 0s linear var(--t, 0.6s); }
.home-mag-leaf.is-turned { transform: translateZ(calc((var(--i) + 1) * 1px)) rotateY(-180deg); }
.home-co-mag.is-turning .home-mag-leaf, .home-co-mag.is-turning .home-mag-book { will-change: transform; }
.home-mag-face { position: absolute; inset: 0; overflow: hidden; border-radius: 0 3px 3px 0; background: var(--bg-white); outline: 1px solid transparent; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.home-mag-face--b { border-radius: 3px 0 0 3px; transform: rotateY(180deg); }
.home-mag-face img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-mag-face::after { content: ""; position: absolute; top: -15%; bottom: -15%; left: -16px; width: 16px; box-shadow: var(--shadow-lg), var(--shadow-lg), var(--shadow-md); }
.home-mag-face--b::after { left: auto; right: -16px; }
/* Turning by hand (from the launch): two round buttons and where the copy is open. */
.home-mag-turn { display: flex; align-items: center; gap: 0.5rem; }
.home-mag-turn[hidden] { display: none; }
.home-mag-btn { display: grid; place-items: center; width: var(--tap); height: var(--tap); padding: 0; border: 1px solid var(--border-light); border-radius: 50%; background: var(--bg-white); color: var(--text-dark); cursor: pointer; transition: border-color 0.2s var(--ease-out), color 0.2s var(--ease-out); }
.home-mag-btn svg { width: 18px; height: 18px; }
.home-mag-btn:disabled { color: var(--text-light); opacity: 0.45; cursor: default; }
.home-mag-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.home-mag-at { min-width: 7.5rem; text-align: center; font-size: var(--t-fine); font-weight: 600; color: var(--text-medium); font-variant-numeric: tabular-nums; }
@media (hover: hover) { .home-mag-btn:not(:disabled):hover { border-color: var(--primary); color: var(--primary-text); } }
@media (prefers-reduced-motion: reduce) { .home-mag-book, .home-mag-leaf, .home-mag-under--l, .home-mag-btn { transition: none; } }

@media (max-width: 1023px) {
    .home-co-case { grid-template-columns: minmax(0, 1fr) auto; row-gap: 0.5rem; column-gap: 1.5rem; padding: 1.75rem 2rem; }
    .home-co-title { white-space: normal; }
    .home-co-lede { grid-column: 1; }
    .home-co-case .btn { grid-column: 2; grid-row: 1 / span 2; }
    .home-co-mag { grid-template-columns: minmax(0, 1fr); }
    .home-co-mag-art { order: -1; padding: 3.5rem clamp(2rem, 4vw, 3.25rem) 1.5rem; }
    .home-co-mag-b { padding-top: 0.5rem; }
}
@media (max-width: 640px) {
    .home-co-case { grid-template-columns: minmax(0, 1fr); row-gap: 0; padding: 1.75rem 1.5rem 1.5rem; border-radius: 16px; }
    .home-co-lede { margin: 0.75rem 0 1.5rem; }
    .home-co-case .btn { grid-column: 1; grid-row: auto; width: 100%; min-height: 48px; }
    .home-co-mag { border-radius: 16px; }
    .home-co-mag-art { gap: 1rem; padding: 2.25rem 1rem 1.25rem; }
    /* On a phone the copy is held closer: a page is seven-tenths of the panel
       wide, the left page is whole and the right one runs off the panel's edge.
       Closed, the cover sits in the middle. (Without overflow: clip the whole
       spread stays inside the panel, as on a tablet.) */
    @supports (overflow-x: clip) {
        .home-co-mag { overflow-x: clip; }
        .home-co-mag-art { justify-items: start; }
        .home-mag { width: 140%; max-width: none; }
        .home-mag-book { transform: translateX(-39.25%) rotateX(8deg); }
        .home-mag-turn { justify-self: center; }
    }
    .home-co-mag-b { padding: 0 1.5rem 1.5rem; }
    .home-co-mag .home-callout-lede { margin: 0.75rem 0 1.5rem; }
    .home-co-mag .home-callout-soon { font-size: 1.25rem; }
}
@media (max-width: 640px) {
    .home-callout-lede { font-size: var(--t-sm); }
    .home-callout-act, .home-callout-act .btn { width: 100%; }
    .home-callout-act .btn { justify-content: center; min-height: 48px; }
}


/* 02 · News and 03 · Upcoming trainings on Home (Dec 3, direction A, "Front
   page"). News: the newest story told large, then the next four, all by
   publish date. Trainings: the next one as a feature with its
   photo, later ones as short lines. On a phone (≤640px) the stories become
   rows with a thumbnail, every training gets a date block, and each section's
   link moves below its list as a full-width button (.home-fp-foot). */
#homeFront a, .home-fp-t a, .home-fp-later-t a { text-decoration: none; color: inherit; }
#homeFront a:focus-visible, #homeEventsTimeline .home-fp-t a:focus-visible, #homeEventsTimeline .home-fp-later-t a:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 8px; }
.home-fp-ph { display: block; overflow: hidden; background: var(--border-light); }
.home-fp-ph img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform 0.8s var(--ease-out); }
.home-fp-k { display: block; margin: 0; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; line-height: 1.4; color: var(--primary-text); }
.home-fp-k-d { color: var(--text-light); letter-spacing: 0.04em; text-transform: none; font-size: var(--t-meta); font-weight: 500; }
.home-fp-h { display: block; font-family: 'Ubuntu', sans-serif; font-weight: 500; color: var(--text-dark); text-wrap: pretty; transition: color 0.3s var(--ease-out); }
.home-fp-d { display: flex; flex-wrap: wrap; align-items: center; column-gap: 1rem; font-size: var(--t-meta); line-height: 1.5; color: var(--text-light); }
.home-fp-t { margin: 0; font-family: 'Ubuntu', sans-serif; font-weight: 500; line-height: 1.2; color: var(--text-dark); text-wrap: pretty; }
.home-fp-t a, .home-fp-later-t a { display: inline-block; padding: 0.625rem 0; margin: -0.625rem 0; transition: color 0.3s var(--ease-out); }
.home-fp-m { margin: 0.5rem 0 0; font-size: var(--t-fine); font-weight: 500; line-height: 1.45; color: var(--text-light); }
.home-fp-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
@media (hover: hover) {
    #homeFront a:hover .home-fp-ph img { transform: scale(1.04); }
    #homeFront a:hover .home-fp-h, #homeFront a:hover .home-fp-lead-h, .home-fp-t a:hover, .home-fp-later-t a:hover { color: var(--primary-text); }
}
@media (prefers-reduced-motion: reduce) { .home-fp-ph img, .home-fp-h, .home-fp-t a { transition: none; } }

/* News: one story told large, then four more */
.home-fp-lead { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.home-fp-lead .home-fp-ph { aspect-ratio: 4 / 3; border-radius: 16px; box-shadow: var(--shadow-md); }
.home-fp-lead-b { display: block; }
.home-fp-lead-h { display: block; margin-top: 1rem; font: 500 clamp(2rem, 3.6vw, 3.125rem)/1.08 'Ubuntu', sans-serif; letter-spacing: -0.02em; color: var(--text-dark); text-wrap: balance; transition: color 0.3s var(--ease-out); }
.home-fp-x { display: block; margin-top: 1.25rem; max-width: 30rem; font-size: 1.0625rem; line-height: 1.6; color: var(--text-medium); }
.home-fp-go { display: inline-flex; align-items: center; gap: 0.5rem; height: var(--tap); margin-top: 1.75rem; padding: 0 1.375rem; border-radius: 50px;
    background: var(--primary); color: var(--bg-white); box-shadow: var(--shadow-btn); font-size: var(--t-fine); font-weight: 700; transition: background-color 0.2s var(--ease-out); }
.home-fp-go svg { width: 16px; height: 16px; }
.home-fp-lead:hover .home-fp-go { background: var(--primary-dark); }
.home-fp-more { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; margin-top: 4rem; }
.home-fp-card { display: block; }
.home-fp-card .home-fp-ph { aspect-ratio: 3 / 2; border-radius: 12px; box-shadow: var(--shadow-sm); }
.home-fp-card .home-fp-k { margin-top: 1rem; }
.home-fp-card .home-fp-h { margin-top: 0.375rem; font-size: 1.125rem; line-height: 1.3; }
.home-fp-card .home-fp-d { margin-top: 0.5rem; }

/* Trainings: the next one as a feature, later ones as lines */
.home-fp-next { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr); background: var(--bg-light); border-radius: 20px; }
.home-fp-next--plain { grid-template-columns: minmax(0, 1fr); }
.home-fp-next-b { padding: clamp(2rem, 4vw, 3.25rem); align-self: center; }
.home-fp-next .home-fp-ph { min-height: 23rem; border-radius: 0 20px 20px 0; }
.home-fp-date { margin: 0; font: 500 clamp(2.75rem, 5vw, 4rem)/1 'Ubuntu', sans-serif; letter-spacing: -0.02em; color: var(--primary-text); white-space: nowrap; }
.home-fp-date-s { margin: 0.5rem 0 0; font-size: var(--t-fine); font-weight: 600; color: var(--text-medium); }
.home-fp-next .home-fp-t { margin-top: 1.75rem; font-size: clamp(1.5rem, 2.4vw, 1.875rem); }
.home-fp-desc { margin: 0.875rem 0 0; max-width: 32rem; font-size: var(--t-sm); line-height: 1.6; color: var(--text-medium); }
.home-fp-next .home-fp-acts { margin-top: 1.75rem; }
.home-fp-later { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 1rem; }
.home-fp-later > li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) auto; align-items: center; column-gap: 1.5rem; padding: 1.25rem 1.75rem 1.25rem clamp(2rem, 4vw, 3.25rem); background: var(--bg-light); border-radius: 16px; }
.home-fp-later-d { font: 500 1.5rem/1.1 'Ubuntu', sans-serif; letter-spacing: -0.01em; color: var(--primary-text); white-space: nowrap; }
.home-fp-later-t { margin: 0; font: 500 1.1875rem/1.3 'Ubuntu', sans-serif; color: var(--text-dark); }
.home-fp-later .home-fp-m { margin-top: 0.25rem; }
.home-fp-later .home-ag-cal ul { left: auto; right: 0; }
/* Phone-only parts (drawn below 641px): the date block and each section's closing button. */
.home-fp-blk, .home-fp-foot { display: none; }
.home-fp-foot { margin: 1.5rem 0 0; }

@media (max-width: 900px) {
    .home-fp-lead { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
    .home-fp-more { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; margin-top: 3rem; }
    .home-fp-next { grid-template-columns: minmax(0, 1fr); }
    .home-fp-next .home-fp-ph { order: -1; min-height: 0; aspect-ratio: 16 / 9; border-radius: 20px 20px 0 0; }
    .home-fp-later > li { grid-template-columns: 8rem minmax(0, 1fr); row-gap: 1rem; }
    .home-fp-later .home-fp-acts { grid-column: 1 / -1; }
    .home-fp-later .home-ag-cal ul { left: 0; right: auto; }
}
@media (max-width: 640px) {
    /* Header: the title alone. Its link moves below the list as a full-width
       button (.home-fp-foot in the page), where the thumb is when the list ends. */
    #news .home-rec-head, #coming-up .home-rec-head { margin-bottom: 1.25rem; }
    #news .home-rec-head .home-more, #coming-up .home-rec-head .home-more { display: none; }
    .home-fp-foot { display: block; }
    .home-sec .home-fp-foot .btn { display: flex; justify-content: center; width: 100%; min-height: 48px; }

    /* News: the lead told in full, then four short rows. */
    .home-fp-lead { gap: 1rem; }
    .home-fp-lead .home-fp-ph { aspect-ratio: 3 / 2; border-radius: 12px; }
    .home-fp-lead-h { margin-top: 0.5rem; font-size: 1.625rem; line-height: 1.15; }
    .home-fp-x { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin-top: 0.625rem; font-size: var(--t-sm); line-height: 1.55; }
    .home-fp-go, .home-fp-lead:hover .home-fp-go { height: var(--tap); margin-top: 0.25rem; padding: 0; background: none; box-shadow: none; color: var(--primary-text); }
    .home-fp-more { display: block; margin-top: 0.75rem; }
    .home-fp-card { display: grid; grid-template-columns: minmax(0, 1fr) 7rem; grid-template-rows: auto auto 1fr; column-gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--border-light); }
    .home-fp-card .home-fp-ph { grid-column: 2; grid-row: 1 / span 3; align-self: start; aspect-ratio: 3 / 2; border-radius: 8px; box-shadow: none; }
    .home-fp-card .home-fp-k, .home-fp-card .home-fp-h, .home-fp-card .home-fp-d { grid-column: 1; }
    .home-fp-card .home-fp-k { margin-top: 0; font-size: 0.6875rem; letter-spacing: 0.1em; }
    .home-fp-card .home-fp-h { margin-top: 0.25rem; font-size: 1rem; }
    .home-fp-card .home-fp-d { margin-top: 0.375rem; }

    /* Trainings: a date block beside each title. The next one keeps its photo
       and full buttons; later ones are rows with two plain text actions. */
    .home-fp-blk { display: grid; justify-items: center; align-content: center; gap: 0.25rem; width: 4rem; padding: 0.625rem 0.25rem; border-radius: 10px; background: var(--bg-white); }
    .home-fp-blk span { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1; color: var(--text-medium); white-space: nowrap; }
    .home-fp-blk b { font: 500 1.5rem/1 'Ubuntu', sans-serif; letter-spacing: -0.02em; color: var(--primary-text); white-space: nowrap; }
    .home-fp-blk b.is-range { font-size: 1.125rem; line-height: 1.5rem; }
    .home-fp-date, .home-fp-later-d, .home-fp-desc { display: none; }
    .home-fp-next { border-radius: 16px; }
    .home-fp-next .home-fp-ph { aspect-ratio: 2 / 1; border-radius: 16px 16px 0 0; }
    .home-fp-next-b { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1rem; align-items: start; padding: 1.25rem 1rem; }
    .home-fp-next-b .home-fp-blk { grid-column: 1; grid-row: 1 / span 3; }
    .home-fp-next .home-fp-t { grid-column: 2; grid-row: 1; margin-top: 0; font-size: 1.375rem; }
    .home-fp-date-s { grid-column: 2; grid-row: 2; margin-top: 0.375rem; }
    .home-fp-next .home-fp-m { grid-column: 2; grid-row: 3; margin-top: 0.125rem; }
    .home-fp-next .home-fp-acts { grid-column: 1 / -1; grid-row: 4; flex-wrap: nowrap; margin-top: 1.25rem; }
    .home-fp-next .home-ag-reg { flex: 1 1 auto; }
    .home-fp-next .home-ag-reg, .home-fp-next .home-ag-cal summary { height: 48px; }
    .home-fp-acts .home-ag-cal ul { left: auto; right: 0; }
    .home-fp-later { margin-top: 0; gap: 0; }
    .home-fp-later > li { grid-template-columns: auto minmax(0, 1fr); align-items: start; column-gap: 1rem; row-gap: 0; padding: 1.25rem 1rem 0.5rem; background: none; border-radius: 0; }
    .home-fp-later > li + li { border-top: 1px solid var(--border-light); }
    .home-fp-later .home-fp-blk { grid-row: 1 / span 2; background: var(--bg-light); }
    .home-fp-later-t { font-size: 1.0625rem; }
    .home-fp-later-t a { padding: 0.75rem 0; margin: -0.75rem 0; }
    .home-fp-acts .home-ag-cal ul a { display: flex; align-items: center; }
    .home-fp-later .home-fp-acts { grid-column: 2; gap: 1.5rem; margin-top: 0.125rem; }
    .home-fp-later .home-ag-reg, .home-fp-later .home-ag-cal summary, .home-fp-later .home-ag-cal[open] summary { height: var(--tap); padding: 0; border: 0; border-radius: 4px; background: none; box-shadow: none; font-size: var(--t-fine); }
    .home-fp-later .home-ag-reg { flex: none; font-weight: 700; color: var(--primary-text); }
    .home-fp-later .home-ag-cal summary { color: var(--text-medium); }
    .home-fp-later .home-ag-cal[open] summary { color: var(--primary-text); }
}


/* Trainings: Register and the Add to calendar menu (js/home.js draws both). */
.home-ag-reg {
    display: inline-flex; align-items: center; justify-content: center; height: var(--tap); padding: 0 1.375rem; border-radius: 50px;
    background: var(--primary); color: #fff; box-shadow: var(--shadow-btn); font-size: var(--t-sm); font-weight: 600; text-decoration: none; white-space: nowrap;
    transition: background-color 0.2s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.home-ag-reg:hover { background: var(--primary-dark); box-shadow: var(--shadow-btn-hover); }
.home-ag-reg:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .home-ag-reg { transition: none; } }
.home-ag-cal { position: relative; }
/* A secondary button beside Register: white, hairline, the site's soft shadow. */
.home-ag-cal summary {
    list-style: none; display: inline-flex; align-items: center; gap: 0.5rem; height: var(--tap); padding: 0 1.25rem; border-radius: 50px;
    background: var(--bg-white); border: 1px solid var(--border-light); box-shadow: var(--shadow-sm);
    cursor: pointer; font-size: var(--t-sm); font-weight: 600; color: var(--text-dark); white-space: nowrap;
    transition: border-color 0.2s var(--ease-out), color 0.2s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.home-ag-cal summary::-webkit-details-marker { display: none; }
.home-ag-cal summary::after {
    content: ''; width: 0.4rem; height: 0.4rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg); transition: transform 0.2s var(--ease-out);
}
.home-ag-cal[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.home-ag-cal summary:hover, .home-ag-cal[open] summary { border-color: var(--primary); color: var(--primary-text); box-shadow: var(--shadow-md); }
.home-ag-cal summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.home-ag-cal ul {
    position: absolute; left: 0; top: calc(100% + 0.25rem); z-index: 5; min-width: 13rem; list-style: none; margin: 0; padding: 0.4rem;
    background: var(--bg-white); border: 1px solid var(--border-light); border-radius: 12px; box-shadow: var(--shadow-md);
}
.home-ag-cal li { display: block; padding: 0; border: 0; }
.home-ag-cal ul a, .home-ag-cal ul button {
    display: block; width: 100%; padding: 0.6rem 0.75rem; border: 0; border-radius: 8px; background: none; text-align: left;
    font: 600 var(--t-fine) 'Manrope', sans-serif; color: var(--text-dark); text-decoration: none; cursor: pointer;
}
.home-ag-cal ul a:hover, .home-ag-cal ul button:hover { background: var(--bg-light); color: var(--primary-text); }
.home-ag-cal ul a:focus-visible, .home-ag-cal ul button:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
@media (max-width: 640px) { .home-ag-cal ul a, .home-ag-cal ul button { min-height: var(--tap); padding-top: 0.75rem; padding-bottom: 0.75rem; } }


/* ---------- Type floor (Nov 5 assessment) ----------
   Nothing on Home sets below 11px. Eyebrows go to 12px. */
.home-sec .label { font-size: 0.75rem; }

/* ---------- Depth (Nov 5) ----------
   The current site's depth, from its own shadow tokens: panels and photos
   sit slightly above the page, primary buttons carry their soft shadow.
   Nothing lifts on hover. */
.home-sec .btn-primary, .home-sec .btn-primary:hover { box-shadow: var(--shadow-btn); }

/* ---------- Motion (Nov 5) ----------
   Parallax: the cover and band photos drift inside their frames (home-record.js
   sets the translate property, which stacks with the cover's slow zoom).
   Reveal: section parts fade up once as they enter. Both are off for
   reduced motion, and nothing is hidden without the script. */
.home-band-bg img { will-change: translate; }
.home-motion .home-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
.home-motion .home-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .home-motion .home-reveal { opacity: 1; transform: none; transition: none; }
}



/* ---------- The section's "All stories" / "Full calendar" link ---------- */
.home-more {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font: 700 0.75rem 'Manrope', sans-serif; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--primary-text); text-decoration: none;
}
.home-more svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease-out); }
.home-more:hover svg { transform: translateX(3px); }
