/* ============================================================
   TrueLedger Bookkeeping — Landing Page
   Brand palette: Forest Green #1B352B | Warm Charcoal #2B2A27
                  Oatmeal Sand #D7CCB9 | Sage Green #899C85
                  Off-White #F5F4EF
   ============================================================ */

:root {
    --forest-green: #1B352B;
    --forest-green-hover: #24473A;
    --warm-charcoal: #2B2A27;
    --oatmeal-sand: #D7CCB9;
    --sage-green: #899C85;
    --off-white: #F5F4EF;
    --surface: #FFFFFF;

    --text-muted: rgba(43, 42, 39, 0.72);
    --text-faint: rgba(43, 42, 39, 0.52);
    --hairline: rgba(43, 42, 39, 0.16);

    --radius: 14px;
    --radius-sm: 9px;

    /* Georgia first for cross-platform consistency, then nicer
       platform serifs for anyone who has them. */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI",
                 "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-serif: Georgia, "Iowan Old Style", "Palatino Linotype",
                  Palatino, "Times New Roman", serif;

    /* How far the form card crosses onto the photograph.
       Grid gap is 0, so this is the literal overlap in px. */
    --overlap: 56px;

    /* Shared easing so every motion on the page feels related */
    --ease: cubic-bezier(0.22, 0.7, 0.3, 1);

    /* Warm banded background for full-width sections — a deeper relative
       of --off-white, pulled toward the oatmeal sand for warmth. */
    --band: #EFECE3;

    /* Vertical breathing room for every interior section. They had drifted
       to 76/84/80px — a spread too small to name but large enough to read as
       "slightly off" while scrolling. One token removes the question, and
       makes the mobile value a single override instead of three. */
    --section-y: 88px;

    /* Paper grain: an SVG fractal-noise tile. ~400 bytes, resolution
       independent, no raster asset, and it can't band like a PNG would. */
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)'/%3E%3C/svg%3E");
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: var(--off-white);
    color: var(--warm-charcoal);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Skip link ---------- */

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    padding: 12px 18px;
    background-color: var(--forest-green);
    color: var(--off-white);
    border-radius: 0 0 var(--radius-sm) 0;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.skip-link:focus {
    left: 0;
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background-color: rgba(245, 244, 239, 0);
    border-bottom: 1px solid transparent;
    transition: background-color 0.35s ease,
                border-color 0.35s ease,
                box-shadow 0.35s ease;
}

/* gains a frosted backdrop once past the hero's top edge */
.site-header.is-scrolled {
    /* 0.88 -> 0.78: the page shows through more. Legibility is not the
       constraint here — the 12px blur under this does the work, and the nav
       text still measures 8.62:1 against the worst background it can pass
       over (the forest CTA panel) against a 4.5:1 AA requirement. There is
       room to go further: 0.70 is 7.30:1 and even 0.65 is 6.54:1. */
    background-color: rgba(245, 244, 239, 0.78);
    border-bottom-color: var(--hairline);
    box-shadow: 0 8px 26px -20px rgba(27, 53, 43, 0.55);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    backdrop-filter: blur(12px) saturate(140%);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 20px 24px;
}

/* ---------- Header nav ---------- */

/* The sticky header covers the top of whatever a nav link jumps to, so each
   target reserves the header's height plus a little slack. The height is
   MEASURED from the render (109px), not derived from the CSS: deriving it
   from logo-height + padding + border gives 101, and the real box is 109.
   Eight pixels is exactly enough to bury a section heading under the header. */
:root {
    --header-h: 109px;
}

section[id] {
    scroll-margin-top: calc(var(--header-h) + 24px);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.site-nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--charcoal);
    text-decoration: none;
    padding-bottom: 3px;
    /* the underline grows out from the centre — one moving thing */
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: 50% 100%;
    background-size: 0% 1px;
    transition: color 0.3s var(--ease), background-size 0.3s var(--ease);
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--forest-green);
    background-size: 100% 1px;
}

.logo {
    display: block;
    height: 60px;
    width: auto;
    transform-origin: left center;
    transition: transform 0.4s var(--ease);
}

/* Scaled, not resized: changing the logo's height would change the
   header's height, and a sticky header that grows/shrinks shifts the
   whole page under the reader. */
.site-header.is-scrolled .logo {
    transform: scale(0.76);
}

/* ---------- Buttons ---------- */

.btn {
    font-family: inherit;
    border: 0;
    cursor: pointer;
    border-radius: var(--radius-sm);
    line-height: 1.2;
    /* transform is COMPOSED from custom properties, never written directly.
       The magnetic pull (--mag-x/--mag-y, set by JS) and the :active press
       (--lift) both need to move the button. Setting transform inline would
       out-rank this stylesheet and silently kill whichever lost — the bug
       would look like "the magnet works but the press stopped". */
    --mag-x: 0px;
    --mag-y: 0px;
    --lift: 0px;
    transform: translate3d(var(--mag-x), calc(var(--mag-y) + var(--lift)), 0);
    transition: background-color 0.18s ease,
                color 0.18s ease,
                border-color 0.18s ease,
                transform 0.18s ease;
}

.btn-ghost {
    background-color: transparent;
    color: var(--forest-green);
    border: 1px solid rgba(27, 53, 43, 0.35);
    padding: 15px 30px;
    font-size: 15px;
    font-weight: 500;
}

.btn-ghost:hover {
    background-color: var(--forest-green);
    border-color: var(--forest-green);
    color: var(--off-white);
}

.btn-primary {
    display: block;
    width: 100%;
    background-color: var(--forest-green);
    color: var(--off-white);
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--forest-green-hover);
}

.btn-primary:active {
    --lift: 1px;
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    isolation: isolate;
    display: grid;
    /* gap is intentionally 0 — the card creates the overlap itself */
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    column-gap: 0;
    align-items: center;
    padding: 48px 0 64px;
}

/* Two soft washes so the hero has depth instead of sitting flat.
   Both are confined to the hero's own box (inset has no negative top) —
   the header is transparent at rest, so anything extending upward bleeds
   straight through the logo. */
.hero::before {
    content: "";
    position: absolute;
    inset: 0 -24px;
    z-index: -2;
    background:
        radial-gradient(58% 60% at 0% 54%,
            rgba(137, 156, 133, 0.16), transparent 66%),
        radial-gradient(54% 56% at 68% 102%,
            rgba(215, 204, 185, 0.32), transparent 72%);
    pointer-events: none;
}

/* Oversized monogram ghost behind the copy. Sits at ~4% so it reads
   as texture, not as a legible mark competing with the headline.
   Top is pinned to 0 for the same reason as the wash above. */
.hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: -76px;
    width: 400px;
    height: 400px;
    background: url("assets/monogram.png") no-repeat center / contain;
    opacity: 0.042;
    pointer-events: none;
}

.hero-copy {
    /* lifts the copy and the card above the photograph */
    position: relative;
    z-index: 2;
}

.eyebrow {
    margin: 0 0 18px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--sage-green);
}

.hero-copy h1 {
    margin: 0 0 18px;
    font-family: var(--font-serif);
    /* Georgia runs ~6% wider than a sans, so the upper bound
       is 33px: the widest line measures 389px inside a 418px
       column, leaving 29px of headroom. Above 35px it wraps. */
    font-size: clamp(27px, 2.6vw, 33px);
    line-height: 1.16;
    letter-spacing: -0.01em;
    font-weight: 700;
    color: var(--forest-green);
}

.hero-copy > p:not(.eyebrow) {
    margin: 0 0 32px;
    max-width: 38ch;
    font-size: 16px;
    line-height: 1.62;
    color: var(--text-muted);
}

/* ---------- Form card (crosses onto the photo) ---------- */

.form-card {
    position: relative;
    z-index: 2;
    /* deliberately wider than its own column so it lands on the photo */
    width: calc(100% + var(--overlap));
    background-color: var(--surface);
    border: 1px solid rgba(27, 53, 43, 0.055);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow:
        0 1px 1px rgba(27, 53, 43, 0.04),
        0 10px 20px -8px rgba(27, 53, 43, 0.12),
        0 32px 56px -22px rgba(27, 53, 43, 0.22);
}

.form-card h3 {
    margin: 0 0 16px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.012em;
    color: var(--forest-green);
}

.form-card form {
    display: grid;
    gap: 12px;
    margin: 0;
}

.field {
    width: 100%;
    padding: 13px 14px;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.4;
    color: var(--warm-charcoal);
    background-color: var(--surface);
    border: 1px solid rgba(43, 42, 39, 0.2);
    border-radius: var(--radius-sm);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field::placeholder {
    color: var(--text-faint);
}

.field:focus {
    outline: none;
    border-color: var(--sage-green);
    box-shadow: 0 0 0 3px rgba(137, 156, 133, 0.28);
}

.disclaimer {
    margin: 14px 0 0;
    font-size: 12.5px;
    line-height: 1.5;
    text-align: center;
    color: var(--text-faint);
}

/* ---------- Hero media ---------- */

.hero-media {
    position: relative;
    z-index: 1;
    /* lets the photo run to the container's right edge */
    margin-right: -24px;
    /* 4:3 matches the source photo (1.339) almost exactly,
       so the maker is framed without a hard crop */
    aspect-ratio: 4 / 3;
    /* No overflow:hidden or radius here — the offset frame below has to
       escape the box, so clipping and rounding live on the img instead. */
}

/* Offset outline sitting behind and below the photo, so the image reads
   as composed rather than dropped in. The photo itself is untouched. */
.hero-media::before {
    content: "";
    position: absolute;
    top: 18px;
    right: -18px;
    bottom: -18px;
    left: 18px;
    z-index: -1;
    border: 1.5px solid rgba(137, 156, 133, 0.5);
    border-radius: var(--radius);
    pointer-events: none;
}

.hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* keeps the maker centered as the crop tightens */
    object-position: 52% 45%;
    border-radius: var(--radius);
}

/* ---------- Section furniture ---------- */

.section-title {
    margin: 0 0 14px;
    font-family: var(--font-serif);
    font-size: clamp(25px, 2.5vw, 33px);
    line-height: 1.18;
    letter-spacing: -0.01em;
    font-weight: 700;
    color: var(--forest-green);
}

.section-lede {
    margin: 0 0 46px;
    max-width: 48ch;
    font-size: 16.5px;
    line-height: 1.62;
    color: var(--text-muted);
}

/* ---------- Services ---------- */

.services {
    position: relative;
    isolation: isolate;          /* keeps the layers below the content */
    overflow: hidden;
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
    background-color: var(--band);
    padding: var(--section-y) 0;
}

/* Paper grain. Kept very faint — it should register as texture,
   not as a visible pattern. */
.services::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: var(--grain);
    background-repeat: repeat;
    opacity: 0.045;
    pointer-events: none;
}

/* Soft sage wash from the top-left, so the band has depth instead of
   reading as a flat rectangle. */
.services::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(115% 85% at 8% 0%,
                rgba(137, 156, 133, 0.22), transparent 62%);
    pointer-events: none;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
    gap: 20px;
}

.service-card {
    position: relative;          /* holds the absolutely-placed hit area */
    background-color: var(--surface);
    border: 1px solid rgba(27, 53, 43, 0.075);
    border-radius: var(--radius);
    padding: 26px 24px 28px;
    /* The flip runs on .service-card__inner, NOT here: this element's
       transform already belongs to the magnetic pull and the hover lift.
       perspective sits on the parent so it governs that inner rotation. */
    perspective: 1000px;
    box-shadow:
        0 1px 2px rgba(27, 53, 43, 0.04),
        0 14px 30px -18px rgba(27, 53, 43, 0.2);
    /* see .btn — the magnet and the hover lift compose rather than compete */
    --mag-x: 0px;
    --mag-y: 0px;
    --lift: 0px;
    transform: translate3d(var(--mag-x), calc(var(--mag-y) + var(--lift)), 0);
    /* 0.5s rather than 0.28s: at 0.28s the hover lift reads as a leap off the
       page rather than a rise. This one transition drives both the lift (a
       discrete :hover change, so it feels the full duration) and the chase
       after the magnetic pull (a continuous per-frame change, so it feels
       only part of it) -- which is why slowing it mostly slows the lift. */
    transition: transform 0.5s var(--ease),
                box-shadow 0.5s var(--ease),
                border-color 0.5s var(--ease);
}

.service-card:hover {
    --lift: -4px;
    border-color: rgba(137, 156, 133, 0.45);
    box-shadow:
        0 2px 4px rgba(27, 53, 43, 0.05),
        0 24px 44px -20px rgba(27, 53, 43, 0.28);
}

/* ---------- Card flip ---------- */

/* Both faces live in the SAME grid cell. That is what holds the height
   steady while flipping: the cell is as tall as the taller face, so the
   card cannot reflow and jump as it turns. */
.service-card__inner {
    display: grid;
    transform-style: preserve-3d;
    transition: transform 0.75s var(--ease);
}

.service-card.is-flipped .service-card__inner {
    transform: rotateY(180deg);
}

.service-card__face {
    grid-area: 1 / 1;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* An explicit zero rotation on the front, so it too is a 3D-transformed
   element — some engines only honour backface-visibility once they are. */
.service-card__face--front {
    transform: rotateY(0deg);
}

.service-card__face--back {
    transform: rotateY(180deg);
}

.service-card__back-title {
    display: block;
    margin-bottom: 10px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--sage-green);
}

.service-card__face--back p {
    margin: 0;
    font-size: 14.2px;
    line-height: 1.62;
    color: var(--text-muted);
}

/* The affordance. A card that flips on click is otherwise undiscoverable,
   so a hairline plus that becomes a cross on the back. */
.service-card__hint {
    position: absolute;
    top: 22px;
    right: 22px;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 1px solid rgba(27, 53, 43, 0.16);
    border-radius: 50%;
    color: var(--sage-green);
    pointer-events: none;          /* the hit area below owns the clicks */
    transition: transform 0.75s var(--ease),
                border-color 0.5s var(--ease);
}

.service-card__hint::before,
.service-card__hint::after {
    content: "";
    position: absolute;
    background-color: currentColor;
    border-radius: 1px;
}

.service-card__hint::before {
    width: 9px;
    height: 1.5px;
}

.service-card__hint::after {
    width: 1.5px;
    height: 9px;
}

.service-card.is-flipped .service-card__hint {
    transform: rotate(135deg);
}

.service-card:hover .service-card__hint {
    border-color: rgba(137, 156, 133, 0.5);
}

/* A cover button rather than making the card itself a <button>: <button>
   only accepts phrasing content, so the <h3> would be invalid inside it.
   This way the headings stay real, and there is still one large hit area
   with keyboard focus and an accessible name. */
.service-card__toggle {
    position: absolute;
    inset: 0;
    z-index: 2;
    border: 0;
    padding: 0;
    background: transparent;
    border-radius: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.service-card__toggle:focus-visible {
    outline: 2px solid var(--forest-green);
    outline-offset: 3px;
}

.service-card__icon {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    border-radius: 12px;
    background-color: rgba(137, 156, 133, 0.17);
    color: var(--forest-green);
}

.service-card__icon svg {
    width: 22px;
    height: 22px;
}

/* Icons draw themselves when the card reveals.
   pathLength="1" on each shape in the HTML normalises every path to a
   length of 1, so one dasharray value works for all of them without
   measuring anything in JS. */
.js .service-card__icon svg > * {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
}

.js .service-card.is-visible .service-card__icon svg > * {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1.2s var(--ease);
}

/* Strokes land in sequence. Each card also waits out its turn in the
   reveal stagger before its icon starts drawing — --i is declared on the
   card and inherits down, so the icon arrives after the card has settled
   rather than drawing on a half-faded card. */
.js .service-card.is-visible .service-card__icon svg > *:nth-child(1) {
    transition-delay: calc(var(--i, 0) * 200ms + 0.28s);
}
.js .service-card.is-visible .service-card__icon svg > *:nth-child(2) {
    transition-delay: calc(var(--i, 0) * 200ms + 0.56s);
}
.js .service-card.is-visible .service-card__icon svg > *:nth-child(3) {
    transition-delay: calc(var(--i, 0) * 200ms + 0.84s);
}

.service-card h3 {
    margin: 0 0 8px;
    font-size: 16.5px;
    font-weight: 600;
    letter-spacing: -0.012em;
    color: var(--forest-green);
}

.service-card p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--text-muted);
}

/* ---------- How it works ---------- */

.process {
    position: relative;
    isolation: isolate;      /* hosts its own ambient layer (see below) */
    padding: var(--section-y) 0;
}

/* Wrapper exists so the marker can be a sibling of the <ol> — an <ol> may
   only contain <li>, so a decorative span cannot live inside it. */
.process-track {
    position: relative;
}

.step-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(236px, 1fr));
    /* Column gap is a PERCENTAGE on purpose. A fixed px gap would mean the
       columns scale while the gap doesn't, so the node positions would
       drift with viewport width and the marker's keyframe stops (34.39% /
       68.78%) would miss. Proportional gap = width-independent maths.

       34 / 1072 = 3.172% reproduces the original 34px at full width. */
    gap: 34px 3.172%;
}

/* Dashed connector running through all three steps, so the sequence is
   drawn rather than implied. Swept in with clip-path — a scaleX would
   stretch the dashes themselves as it animated. */
.process-track::before {
    content: "";
    position: absolute;
    top: 1px;
    left: 0;
    right: 0;
    height: 2px;
    background-image: linear-gradient(90deg,
        rgba(137, 156, 133, 0.55) 0 9px, transparent 9px 18px);
    background-size: 18px 2px;
    background-repeat: repeat-x;
}

.js .process-track::before {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1.6s var(--ease);
}

.js .process-track.is-visible::before {
    clip-path: inset(0 0 0 0);
    /* Dashes are held still: the traveling marker now carries the motion
       on this line, and two moving things in the same place compete.
       To bring the marching dashes back, uncomment the line below. */
    /* animation: dash-flow 2s linear infinite; */
}

/* Kept so the marching dashes stay a one-line switch. Travel is exactly
   one dash period (9px dash + 9px gap = 18px), so the loop has no seam. */
@keyframes dash-flow {
    from { background-position: 0 0; }
    to   { background-position: 18px 0; }
}

/* ---------- Traveling marker ---------- */

/* Node positions as a share of the track: nodes sit at the start of each
   grid column, so 3 columns at 1072px with a 34px gap put them at
   0%, 34.4% and 68.8%. */
.process-track__marker {
    position: absolute;
    top: -3.5px;
    left: 0;
    width: 11px;
    height: 11px;
    /* The node is a 10px circle anchored at left:0, so its CENTER sits 5px
       right of the column edge — which is where the keyframes point. The
       marker therefore needs -5.5px (half of its own 11px width, to center
       itself) + 5px (half the node, to reach the node's center) = -0.5px.
       Landing on the column edge instead left it halting 5px short. */
    margin-left: -0.5px;
    border-radius: 50%;
    background-color: var(--forest-green);
    box-shadow: 0 0 0 3px rgba(245, 244, 239, 0.92);  /* halo: reads over dashes */
    opacity: 0;
    pointer-events: none;
    z-index: 2;
}

/* Pauses are held as equal stops, and the easing decelerates the marker
   into each one — that deceleration is what makes the halt read as an
   arrival rather than a stutter. */
@keyframes marker-walk {
    0%    { left: 0%;      opacity: 0; }
    4%    { left: 0%;      opacity: 1; }
    16%   { left: 0%;      opacity: 1; }
    34%   { left: 34.39%;  opacity: 1; }
    46%   { left: 34.39%;  opacity: 1; }
    64%   { left: 68.78%;  opacity: 1; }
    76%   { left: 68.78%;  opacity: 1; }
    94%   { left: 100%;    opacity: 1; }
    98%   { left: 100%;    opacity: 0; }
    100%  { left: 0%;      opacity: 0; }    /* resets while invisible */
}

.js .process-track.is-visible .process-track__marker {
    animation: marker-walk 8s var(--ease) 1.8s infinite;
}

.step {
    position: relative;
    padding-top: 34px;
}

/* Hollow node sitting on the connector line. A real element rather than a
   pseudo-element, because it has to hold a checkmark. */
.step__node {
    position: absolute;
    /* -3px, not -4px. The connector sits at top:1px with height:2px, so its
       center is y=2 — and the marker centers there too. A 10px node needs
       top:-3px to put ITS center on y=2 as well; at -4px the node rode 1px
       high, which made the correctly-placed marker look 1px low. */
    top: -3px;
    left: 0;
    width: 10px;
    height: 10px;
    box-sizing: border-box;
    border: 2px solid var(--sage-green);
    border-radius: 50%;
    background-color: var(--off-white);
    color: var(--off-white);      /* the checkmark draws in this color */
}

/* Absolutely placed and pulled back by half its own size, rather than
   centered with grid. As a grid item 9px exceeds the node's 6px content box,
   and an overflowing track sits at the content box's top-left instead of
   centring — which pushed the check down and right by ~1.5px. top/left 50%
   resolve against the padding box (6px, since there is no padding), so this
   centers on the node's full 10px circle exactly.

   Sized in px, not %: a percentage would resolve against that same 6px
   content box and shrink the check to under 3px wide. */
.step__node svg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 9px;
    transform: translate(-50%, -50%);
    overflow: visible;
}

.step__node svg path {
    fill: none;
    stroke: currentColor;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;         /* hidden until its moment */
}

.js .step__node {
    transform: scale(0);
    transition: transform 0.6s var(--ease);
}

.js .process-track.is-visible .step__node {
    transform: scale(1);
}

/* nodes pop in behind the sweep of the line */
.js .process-track.is-visible .step:nth-child(1) .step__node { transition-delay: 0.26s; }
.js .process-track.is-visible .step:nth-child(2) .step__node { transition-delay: 0.66s; }
.js .process-track.is-visible .step:nth-child(3) .step__node { transition-delay: 1.06s; }

/* ---------- Step completion ---------- */

/* Each node fills, grows, throws a ring and draws a checkmark as the marker
   reaches it, then all three release together at the end of the cycle.

   WHY THREE SETS PER PROPERTY, rather than one set plus a per-node
   animation-delay: a delay shifts the ENTIRE cycle, so the nodes would
   reset at staggered times and a later step would still be filled when an
   earlier one started again. Matching period + matching delay with
   different stops keeps all three on a single shared timeline.

   Box-shadow carries the ring (it spreads while fading), transform carries
   the growth, stroke-dashoffset carries the checkmark — pathLength="1" in
   the markup normalises the path so one dasharray value fits any shape. */
@keyframes node-1 {
    0%, 4%  { background-color: var(--off-white);  box-shadow: 0 0 0 0 rgba(137, 156, 133, 0.55);  transform: scale(1); }
    10%     { background-color: var(--sage-green); box-shadow: 0 0 0 0 rgba(137, 156, 133, 0.55);  transform: scale(1.7); }
    21%     { background-color: var(--sage-green); box-shadow: 0 0 0 15px rgba(137, 156, 133, 0); transform: scale(1.7); }
    92%     { background-color: var(--sage-green); box-shadow: 0 0 0 15px rgba(137, 156, 133, 0); transform: scale(1.7); }
    100%    { background-color: var(--off-white);  box-shadow: 0 0 0 15px rgba(137, 156, 133, 0); transform: scale(1); }
}

@keyframes node-2 {
    0%, 34% { background-color: var(--off-white);  box-shadow: 0 0 0 0 rgba(137, 156, 133, 0.55);  transform: scale(1); }
    40%     { background-color: var(--sage-green); box-shadow: 0 0 0 0 rgba(137, 156, 133, 0.55);  transform: scale(1.7); }
    51%     { background-color: var(--sage-green); box-shadow: 0 0 0 15px rgba(137, 156, 133, 0); transform: scale(1.7); }
    92%     { background-color: var(--sage-green); box-shadow: 0 0 0 15px rgba(137, 156, 133, 0); transform: scale(1.7); }
    100%    { background-color: var(--off-white);  box-shadow: 0 0 0 15px rgba(137, 156, 133, 0); transform: scale(1); }
}

@keyframes node-3 {
    0%, 64% { background-color: var(--off-white);  box-shadow: 0 0 0 0 rgba(137, 156, 133, 0.55);  transform: scale(1); }
    70%     { background-color: var(--sage-green); box-shadow: 0 0 0 0 rgba(137, 156, 133, 0.55);  transform: scale(1.7); }
    81%     { background-color: var(--sage-green); box-shadow: 0 0 0 15px rgba(137, 156, 133, 0); transform: scale(1.7); }
    92%     { background-color: var(--sage-green); box-shadow: 0 0 0 15px rgba(137, 156, 133, 0); transform: scale(1.7); }
    100%    { background-color: var(--off-white);  box-shadow: 0 0 0 15px rgba(137, 156, 133, 0); transform: scale(1); }
}

/* The checkmark draws just after its node has filled. */
@keyframes check-1 {
    0%, 8%  { stroke-dashoffset: 1; }
    16%     { stroke-dashoffset: 0; }
    92%     { stroke-dashoffset: 0; }
    100%    { stroke-dashoffset: 1; }
}
@keyframes check-2 {
    0%, 38% { stroke-dashoffset: 1; }
    46%     { stroke-dashoffset: 0; }
    92%     { stroke-dashoffset: 0; }
    100%    { stroke-dashoffset: 1; }
}
@keyframes check-3 {
    0%, 68% { stroke-dashoffset: 1; }
    76%     { stroke-dashoffset: 0; }
    92%     { stroke-dashoffset: 0; }
    100%    { stroke-dashoffset: 1; }
}

/* One identical period (8s) and delay (1.8s) across ALL SEVEN animations --
   the marker, the three node fills and the three checkmark draws. Sharing a
   period and delay is the only thing that keeps them on one timeline; giving
   any of them its own delay would offset that element's whole cycle and let
   a later step still be filled when an earlier one began again.

   The 1.8s delay also clears the last node's entrance (1.06s + 0.6s =
   1.66s), so the completion animation never fights the entrance transition —
   both of which act on transform. */
.js .process-track.is-visible .step:nth-child(1) .step__node { animation: node-1 8s var(--ease) 1.8s infinite; }
.js .process-track.is-visible .step:nth-child(2) .step__node { animation: node-2 8s var(--ease) 1.8s infinite; }
.js .process-track.is-visible .step:nth-child(3) .step__node { animation: node-3 8s var(--ease) 1.8s infinite; }

.js .process-track.is-visible .step:nth-child(1) .step__node svg path { animation: check-1 8s var(--ease) 1.8s infinite; }
.js .process-track.is-visible .step:nth-child(2) .step__node svg path { animation: check-2 8s var(--ease) 1.8s infinite; }
.js .process-track.is-visible .step:nth-child(3) .step__node svg path { animation: check-3 8s var(--ease) 1.8s infinite; }

.step__num {
    display: block;
    margin-bottom: 10px;
    font-family: var(--font-serif);
    font-size: 30px;
    line-height: 1;
    font-weight: 700;
    color: var(--sage-green);
}

.step h3 {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.012em;
    color: var(--forest-green);
}

.step p {
    margin: 0;
    font-size: 14.8px;
    line-height: 1.62;
    color: var(--text-muted);
}

/* ---------- FAQ ---------- */

.faq {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-top: 1px solid var(--hairline);
    /* matched to the CTA: that section paints no background of its own, so it
       shows the body's --off-white. Same value here, so the two read as one
       surface and the faq-to-cta boundary — the least important on the page —
       carries no colour change at all. */
    background-color: var(--off-white);
    padding: var(--section-y) 0;
}


.faq-list {
    max-width: 720px;
    border-top: 1px solid var(--hairline);
}

.faq-item {
    border-bottom: 1px solid var(--hairline);
}

.faq-item summary {
    position: relative;
    padding: 20px 44px 20px 0;
    font-size: 16.5px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--forest-green);
    cursor: pointer;
    list-style: none;
    transition: color 0.18s ease;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:hover {
    color: var(--forest-green-hover);
}

/* chevron drawn from two borders — no icon font, no asset */
.faq-item summary::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 10px;
    width: 10px;
    height: 10px;
    margin-top: -6px;
    border-right: 1.6px solid var(--sage-green);
    border-bottom: 1.6px solid var(--sage-green);
    transform: rotate(45deg);
    transition: transform 0.26s var(--ease);
}

.faq-item[open] summary::after {
    transform: rotate(-135deg);
}

.faq-item p {
    margin: 0;
    padding: 0 44px 22px 0;
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-muted);
}

.faq-item[open] p {
    animation: faq-open 0.26s var(--ease);
}

@keyframes faq-open {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: none; }
}

/* ---------- Footer ---------- */

.site-footer {
    border-top: 1px solid var(--hairline);
    padding: 52px 0 32px;
}

.site-footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 48px;
    flex-wrap: wrap;
}

.site-footer__brand {
    max-width: 340px;
}

.site-footer .logo {
    height: 34px;
    margin-bottom: 16px;
}

.site-footer__tagline {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--text-muted);
}

.site-footer__contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.site-footer__label {
    margin: 0 0 2px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--sage-green);
}

.site-footer__contact a {
    color: var(--forest-green);
    text-decoration: none;
    font-size: 15.5px;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.18s ease;
}

.site-footer__contact a:hover {
    border-bottom-color: currentColor;
}

.site-footer__legal {
    margin-top: 44px;
}

.site-footer__legal p {
    margin: 0;
    font-size: 13px;
    color: var(--text-faint);
}

/* ---------- Consultation modal ---------- */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
}

.modal.is-open {
    display: grid;
    place-items: center;
    padding: 24px;
    animation: modal-fade 0.18s ease-out;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(27, 53, 43, 0.5);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.modal__dialog {
    position: relative;
    width: 100%;
    max-width: 440px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    background-color: var(--surface);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow:
        0 2px 4px rgba(27, 53, 43, 0.06),
        0 32px 72px -16px rgba(27, 53, 43, 0.45);
    animation: modal-rise 0.24s var(--ease);
}

.modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    background-color: transparent;
    border: 0;
    border-radius: 50%;
    color: var(--text-faint);
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.modal__close:hover {
    background-color: rgba(43, 42, 39, 0.07);
    color: var(--warm-charcoal);
}

.modal__title {
    margin: 0 0 8px;
    font-family: var(--font-serif);
    font-size: 24px;
    line-height: 1.22;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--forest-green);
}

.modal__lede {
    margin: 0 0 22px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
}

.modal__form {
    display: grid;
    gap: 12px;
    margin: 0;
}

.modal .disclaimer {
    margin-top: 14px;
}

/* hold the page still behind the dialog */
html.modal-open,
html.modal-open body {
    overflow: hidden;
}

@keyframes modal-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes modal-rise {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- About ---------- */

/* About carries the same band + grain as services and faq. Process and about
   were both plain, so they read as one long block and that boundary had no
   cue at all; giving about the band restores the alternation and makes the
   change away from the steps visible at a glance.

   Deliberately the EXISTING band rather than a third neutral. Measured in
   Lab, the page already steps ΔE 3.51 between off-white and band, and a new
   tint placed between those two converges on one of them: sage at 10% is
   ΔE 3.57 from off-white but only 1.86 from the band, so it reads as a
   mis-tinted band rather than a colour of its own. Reusing the band keeps
   the palette at three background values and matches the sections around it.

   The about-to-faq boundary is now band-to-band, which is marked by faq's own
   top hairline — the same device that separates every banded section.

   No `overflow: hidden` here, unlike services and faq: those need it to
   contain their ambient cursor layers and about has none, and omitting it
   keeps the portrait's box-shadow clear of a clipping context. */
.about {
    position: relative;
    isolation: isolate;
    border-top: 1px solid var(--hairline);
    background-color: var(--band);
    padding: var(--section-y) 0;
}

/* the same grain as the other two bands, so the page reads as one system */
.about::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: var(--grain);
    background-repeat: repeat;
    opacity: 0.045;
    pointer-events: none;
}

/* Media on the LEFT, mirroring the hero's copy-left/media-right so the two
   image-bearing sections don't rhyme too closely. */
.about__inner {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    column-gap: 56px;
    align-items: center;
}

/* PORTRAIT SLOT — no forced ratio. The image's own proportions set the
   height, so nothing is ever cropped: a photograph whose framing you
   already like renders exactly that. The `width`/`height` attributes on
   the <img> reserve the space up front, so this costs no layout shift.

   The column is ~437px wide, so rendered height = 437 / (w/h):
       4:3 -> 328px    3:2 -> 291px    16:9 -> 246px
       1:1 -> 437px    4:5 -> 546px
   Landscape sits best in this slot. Anything taller than ~1:1 starts to
   dominate the section, which is what the earlier 4:5 placement did. */
.about__portrait {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    background-color: var(--band);
    box-shadow: 0 18px 40px -24px rgba(27, 53, 43, 0.3);
}

/* Scoped to the bio wrapper, NOT .about__copy: .about__copy p would be
   (0,1,1) and would beat the (0,1,0) .eyebrow rule, silently stripping the
   eyebrow of its own type styling. */
.about__bio p {
    max-width: 52ch;
    font-size: 15.5px;
    line-height: 1.66;
    color: var(--text-muted);
}

.about__bio p + p {
    margin-top: 16px;
}

/* ---------- Closing call to action ---------- */

.cta {
    padding: var(--section-y) 0;
}

/* The page is light from top to bottom, so the ask gets the one dark moment
   — the brand's primary, with the same soft wash language the light bands
   use, inverted. */
.cta__panel {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 64px 56px;
    border-radius: var(--radius);
    background-color: var(--forest-green);
    color: var(--off-white);
    text-align: center;
}

.cta__panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(120% 130% at 50% 0%,
                rgba(137, 156, 133, 0.34), transparent 68%);
    pointer-events: none;
}

.cta__title {
    margin: 0 0 14px;
    font-family: var(--font-serif);
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.18;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.cta__lede {
    max-width: 46ch;
    margin: 0 auto 30px;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(245, 244, 239, 0.78);
}

/* Inverted button. Still a .btn, so it keeps the magnetic pull for free. */
.btn-cta {
    background-color: var(--off-white);
    color: var(--forest-green);
    padding: 16px 34px;
    font-size: 15.5px;
    font-weight: 600;
}

.btn-cta:hover {
    background-color: var(--oatmeal-sand);
}

/* ---------- Thank-you page ---------- */
/* Reached after a form submission (see the form's `redirect` field). Kept
   deliberately plain: its only job is to confirm and offer a way back. */
.thanks {
    padding: calc(var(--section-y) + 24px) 0 var(--section-y);
    min-height: 55vh;
}

.thanks__inner {
    max-width: 620px;
}

.thanks__lede {
    margin: 0 0 20px;
    font-size: 17px;
    line-height: 1.6;
    color: var(--warm-charcoal);
}

.thanks__body {
    margin: 0 0 16px;
    line-height: 1.7;
    color: var(--text-muted);
}

.thanks__cta {
    margin-top: 14px;
    display: inline-flex;
}

/* ---------- Back to top ---------- */

/* position: fixed, so it rides the viewport rather than the document. Forest
   green is the brand's action colour and reads against every light section —
   but the CTA panel is ALSO forest green and this button overlaps its right
   edge, so it carries an off-white ring. Over light sections that ring is
   effectively invisible; over the dark panel it is the only thing keeping
   the button from dissolving into it. */
.to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 55;         /* above the page, below the header (60) and modal (100) */
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-color: var(--forest-green);
    color: var(--off-white);
    /* compose, don't compete — the reveal and the hover lift both move this,
       and a bare transform in either would kill whichever lost */
    --lift: 10px;
    transform: translateY(var(--lift));
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease),
                transform 0.4s var(--ease),
                background-color 0.2s ease,
                visibility 0s 0.4s;   /* stay hidden until the fade finishes */
    box-shadow:
        0 0 0 2px rgba(245, 244, 239, 0.92),
        0 12px 28px -10px rgba(27, 53, 43, 0.45);
}

.to-top svg {
    width: 19px;
    height: 19px;
}

.js .to-top.is-shown {
    --lift: 0px;
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;         /* appear at once; the 0.4s hold is for hiding */
}

.to-top:hover {
    background-color: var(--forest-green-hover);
}

/* Must out-specify .js .to-top.is-shown (0,3,0), which sets --lift: 0px —
   otherwise the hover lift is silently dropped, the same trap the service
   cards hit. */
.js .to-top.is-shown:hover {
    --lift: -3px;
}

.to-top:focus-visible {
    outline: 2px solid var(--forest-green);
    outline-offset: 3px;
}

/* ---------- Ambient cursor effects ----------
   The layers are injected by script.js (section 4), not authored in the HTML:
   they are pure decoration, so building them in JS means nothing is left
   behind when JS is off or the pointer is coarse — which is the correct
   degradation rather than a static texture nobody can interact with.

   One layer PER SECTION, not one fixed layer for the page. .services and .faq
   paint an opaque --band background, so a fixed layer behind them is clipped
   away and one in front would draw straight over the text. Inside a section,
   z-index: -1 lands above that section's own background and below its
   content — the same slot the existing washes use, and it needs the section
   to be a stacking context (.hero/.services/.faq already are; .process now
   has isolation: isolate for this reason). */

.ambient {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.ambient__base,
.ambient__spot {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(137, 156, 133, 0.55) 1px, transparent 1.6px);
    background-size: 24px 24px;
}

/* The standing texture — faint enough to read as paper rather than pattern.
   This is the main "how subtle is too subtle" knob. */
.ambient__base {
    opacity: 0.13;
}

/* The lit patch: the same dots, revealed through a soft mask that follows
   the pointer. Masked rather than moved, so the dots stay locked to the
   grid instead of sliding around with the cursor.
   The mask radius is the other knob — how wide the lit area reads. */
.ambient__spot {
    opacity: 0;
    transition: opacity 0.5s var(--ease);
    -webkit-mask-image: radial-gradient(circle 132px at var(--mx, 50%) var(--my, 50%),
        #000 0%, rgba(0, 0, 0, 0.32) 55%, rgba(0, 0, 0, 0) 100%);
    mask-image: radial-gradient(circle 132px at var(--mx, 50%) var(--my, 50%),
        #000 0%, rgba(0, 0, 0, 0.32) 55%, rgba(0, 0, 0, 0) 100%);
}

.ambient.is-active .ambient__spot {
    opacity: 1;
}

/* The JS already refuses to run on coarse pointers, so this is belt-and-
   braces for a narrow desktop window. Kept deliberately low: at the
   original 940px it matched the one-column breakpoint and switched the
   effect off in a half-screen window on an ordinary display, which is a
   desktop user with a fine pointer — exactly who this is for. */
@media (max-width: 640px) {
    .ambient {
        display: none;
    }
}

/* ---------- Scroll reveal ---------- */

/* Scoped to .js so content is never hidden for no-JS visitors,
   and never stranded invisible if a script error occurs.

   The reveal uses the independent `translate` property, NOT `transform`.
   It has to coexist with elements that own `transform` for their own
   reasons — .service-card composes a magnetic pull into it — and a
   `transform` here would beat the card's rule on specificity (0,3,0 vs
   0,1,0) and silently blank the magnet. `translate` and `transform` are
   separate properties and compose, so both survive. */
.js .reveal {
    opacity: 0;
    translate: 0 22px;
    transition:
        opacity 1s var(--ease),
        translate 1s var(--ease);
    transition-delay: calc(var(--i, 0) * 200ms);
}

.js .reveal.is-visible {
    opacity: 1;
    translate: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .js .reveal {
        opacity: 1;
        translate: none;
        transition: none;
    }

    .modal.is-open,
    .modal__dialog {
        animation: none;
    }

    .service-card,
    .logo,
    .site-header {
        transition: none;
    }

    /* the card flip swaps instantly rather than turning, back-to-top
       appears without sliding, and nav underlines do not grow */
    .service-card__inner,
    .service-card__hint,
    .to-top,
    .site-nav a {
        transition: none;
    }

    /* show icons and connector fully drawn instead of animating them */
    .js .service-card__icon svg > * {
        stroke-dasharray: none;
        stroke-dashoffset: 0;
    }

    /* the ambient layers are pointer decoration; the script already refuses
       to build them here, this is belt-and-braces if the preference changes */
    .ambient {
        display: none;
    }

    .js .step__node {
        transform: none;
    }

    .js .process-track::before {
        clip-path: none;
        transition: none;
    }

    /* an endlessly moving line is precisely what this preference is for */
    .js .process-track.is-visible::before {
        animation: none;
    }

    /* the marker exists only as motion — with motion off, remove it
       rather than park a stray dot on the line */
    .js .process-track__marker {
        display: none;
    }

    /* nodes stay hollow rings and the checkmarks stay undrawn */
    .js .process-track.is-visible .step__node,
    .js .process-track.is-visible .step__node svg path {
        animation: none;
    }
}

/* ---------- Utilities ---------- */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 940px) {
    .hero {
        grid-template-columns: 1fr;
        row-gap: 44px;
        padding: 32px 0 56px;
    }

    .hero-media {
        margin-right: 0;
        aspect-ratio: 16 / 11;
    }

    .form-card {
        width: 100%;
    }

    /* One override now covers services, process, faq, about and the CTA —
       the three separate section padding rules that used to live here were
       the same value three times. */
    :root {
        --section-y: 64px;
    }

    /* four labels plus the logo and the CTA do not fit */
    .site-nav {
        display: none;
    }

    .about__inner {
        grid-template-columns: 1fr;
        row-gap: 32px;
    }

    .cta__panel {
        padding: 48px 26px;
    }

    /* a little closer to the corner, and a touch smaller, on a phone */
    .to-top {
        right: 16px;
        bottom: 16px;
        width: 42px;
        height: 42px;
    }

    .step-list {
        gap: 28px;
    }

    .faq-list {
        max-width: none;
    }

    .faq-item p {
        padding-right: 8px;
    }

    /* the horizontal connector only makes sense while the steps sit in a row */
    .process-track::before,
    .process-track__marker,
    .step__node {
        display: none;
    }

    .step {
        padding-top: 22px;
        border-top: 2px solid rgba(137, 156, 133, 0.42);
    }

    .site-footer__inner {
        flex-direction: column;
        gap: 36px;
    }

    .site-footer {
        padding: 44px 0 28px;
    }
}


/* ---------- Catch-up page: hero image ---------- */

/* .hero-media hard-codes 4/3 because the homepage's source photo is 4:3
   (1.339). The catch-up page uses a wider image (1.61), so that ratio would
   crop the sides off it. Overriding only here keeps the homepage untouched.
   The ratio matches the image exactly, so nothing is cropped at all. */
.hero-media--catchup {
    aspect-ratio: 1200 / 745;
}

/* The mobile rule sets 16/11 on .hero-media; this repeats the override at
   the same specificity, later in the file, so it still wins there. */
@media (max-width: 940px) {
    .hero-media--catchup {
        aspect-ratio: 1200 / 745;
    }
}

/* ---------- Links inside service cards ---------- */

/* No rule existed for an anchor inside a card, so it fell back to the
   browser default blue. Mirrors the footer's link treatment. */
.service-card__face--back a {
    color: var(--forest-green);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(27, 53, 43, 0.3);
    transition: border-color 0.4s var(--ease);
}

.service-card__face--back a:hover,
.service-card__face--back a:focus-visible {
    border-bottom-color: currentColor;
}

/* ---------- Logo as a link home ---------- */

/* The logo carries the standard "go home" affordance. Without a rule the
   anchor inherits the browser's link colour and underline, which would
   paint the wordmark blue. */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    border: 0;
}



/* ---------- Nav breakpoint, adjusted for a fifth label ---------- */

/* The rule above hides the nav below 940px, and its comment records why that
   number was chosen: "four labels plus the logo and the CTA do not fit".
   A fifth label (Catch-Up) invalidates that measurement, so the nav now has
   to stand down earlier. Roughly one label plus one 30px gap wider, rounded
   up: hiding slightly early is harmless, overflowing is not. Later in the
   file at equal specificity, so it wins. */
@media (max-width: 1050px) {
    .site-nav {
        display: none;
    }
}

/* ---------- Home button (catch-up page) ---------- */

/* Same visual family as .to-top: round, forest green, off-white glyph, and
   the same 2px off-white ring so it stays legible on any band. Inline rather
   than fixed, because .to-top already owns the corner and two floating
   buttons would compete for the same glance. */
.home-btn {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 20px;
    border-radius: 50%;
    background-color: var(--forest-green);
    color: var(--off-white);
    box-shadow:
        0 0 0 2px rgba(245, 244, 239, 0.92),
        0 12px 28px -10px rgba(27, 53, 43, 0.45);
    transition: background-color 0.2s ease, transform 0.4s var(--ease);
}

.home-btn svg {
    width: 18px;
    height: 18px;
}

.home-btn:hover {
    background-color: var(--forest-green-hover);
    transform: translateY(-3px);
}

.home-btn:focus-visible {
    outline: 2px solid var(--forest-green);
    outline-offset: 3px;
}

/* ---------- Links inside FAQ answers ---------- */

/* There is no author rule for a plain anchor, so any link in body copy fell
   back to the browser default blue. */
.faq-item a {
    color: var(--forest-green);
    text-decoration: none;
    border-bottom: 1px solid rgba(27, 53, 43, 0.3);
    transition: border-color 0.4s var(--ease);
}

.faq-item a:hover,
.faq-item a:focus-visible {
    border-bottom-color: currentColor;
}

/* ---------- Service card links must be reachable ---------- */

/* The whole-card toggle sits at z-index 2 above both faces, which is what
   makes any click flip the card. The side effect is that a link on the back
   face can never be clicked, because the click lands on the toggle every
   time. That is why the catch-up card link did nothing.

   Raising the inner above the toggle and switching its own pointer events
   off lets the link through, while every other click falls through the inner
   onto the toggle underneath and still flips the card. Text selection was
   already impossible with the toggle covering the card, so nothing regresses. */
.service-card__inner {
    position: relative;
    z-index: 3;
    pointer-events: none;
}

.service-card__face--back a {
    pointer-events: auto;
}
