/* ============================================================
   Topline Business Management, LLC
   Business management and accounting for entertainment professionals.
   Understated, premium, architectural. Refined type, calm color.
   Fonts are self-hosted (see wwwroot/css/fonts.css) — no third-party
   font CDN, so no visitor IP is disclosed to Google.
   ============================================================ */

:root {
    /* Calm, established palette */
    --ink:        #15181c;   /* near-black, cool charcoal */
    --ink-soft:   #20262c;
    --paper:      #f6f3ed;   /* warm off-white */
    --paper-2:    #ece7dc;   /* deeper sand */
    --paper-3:    #e3ddd0;
    --stone:      #65635d;   /* muted body text */
    --stone-soft: #8a877f;
    --brass:      #806331;   /* understated bronze accent (AA-contrast on light) */
    --brass-soft: #b89a6a;
    --line:       rgba(21, 24, 28, 0.12);
    --line-light: rgba(246, 243, 237, 0.16);

    --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --maxw: 1180px;
    --gut: clamp(1.25rem, 5vw, 4rem);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; font-size: 100%; }

body {
    margin: 0;
    font-family: var(--sans);
    font-weight: 400;
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection { background: var(--brass); color: var(--paper); }

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

/* Visible keyboard focus everywhere (accessibility). */
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 1px; }

/* Skip link for keyboard / screen-reader users. */
.skip-link {
    position: fixed;
    top: 0; left: 50%;
    transform: translate(-50%, -120%);
    z-index: 200;
    background: var(--ink);
    color: var(--paper);
    padding: 0.85rem 1.4rem;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: transform 0.3s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin: 0;
}

p { margin: 0 0 1.25em; }
p:last-child { margin-bottom: 0; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }

.section { padding: clamp(4.5rem, 11vw, 9rem) 0; }
.section--tight { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--ink { background: var(--ink); color: var(--paper); }
.section--sand { background: var(--paper-2); }

.eyebrow {
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--brass);
    margin: 0 0 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
}
.eyebrow::before {
    content: "";
    width: 2.2rem;
    height: 1px;
    background: var(--brass);
    opacity: 0.7;
}
.section--ink .eyebrow { color: var(--brass-soft); }

.lede {
    font-family: var(--serif);
    font-size: clamp(1.5rem, 3vw, 2.15rem);
    line-height: 1.32;
    font-weight: 300;
    color: var(--ink-soft);
    letter-spacing: -0.005em;
}
.section--ink .lede { color: var(--paper); }

.muted { color: var(--stone); }
.section--ink .muted { color: rgba(246, 243, 237, 0.72); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 1.05rem 2rem;
    border: 1px solid var(--ink);
    color: var(--ink);
    background: transparent;
    cursor: pointer;
    transition: background 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn .arrow { transition: transform 0.5s var(--ease); }
.btn:hover .arrow { transform: translateX(0.35rem); }

.btn--light { border-color: var(--line-light); color: var(--paper); }
.btn--light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--brass); border-color: var(--brass); color: var(--ink); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    transition: background 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
    border-bottom: 1px solid transparent;
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 84px;
}
.site-header.is-solid {
    background: rgba(246, 243, 237, 0.92);
    backdrop-filter: saturate(140%) blur(14px);
    border-bottom-color: var(--line);
}

/* Header sits over a dark hero by default -> light text */
.site-header.over-dark:not(.is-solid) .nav a,
.site-header.over-dark:not(.is-solid) .nav-toggle span { color: var(--paper); }
.site-header.over-dark:not(.is-solid) .nav-toggle span { background: var(--paper); }

.brand { display: inline-flex; align-items: center; }
.brand__logo { height: 38px; width: auto; transition: opacity 0.45s var(--ease); }
.brand__logo--light { display: none; }
/* On the dark hero (before scroll) swap to the white logo. */
.site-header.over-dark:not(.is-solid) .brand__logo--dark { display: none; }
.site-header.over-dark:not(.is-solid) .brand__logo--light { display: block; }

.nav { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 2.75rem); }
.nav a {
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-soft);
    position: relative;
    padding: 0.4rem 0;
    transition: color 0.45s var(--ease);
}
.nav a::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 1px;
    background: var(--brass);
    transition: width 0.45s var(--ease);
}
.nav a:hover::after, .nav a.is-active::after { width: 100%; }
.nav a.is-active { color: var(--brass); }
.site-header.over-dark:not(.is-solid) .nav a.is-active { color: var(--brass-soft); }

.nav-toggle { display: none; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    background: var(--ink);
    color: var(--paper);
    overflow: hidden;
}
/* Parallax photo layer (over-sized so it can translate without exposing edges). */
.hero__photo {
    position: absolute;
    top: -12%; left: 0; right: 0; bottom: -12%;
    z-index: 0;
    will-change: transform;
}
.hero__photo img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 62%;
}
/* Architectural line motif sits subtly over the photo. */
.hero__art {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.28;
    mix-blend-mode: screen;
}
.hero__art svg { width: 100%; height: 100%; }
.hero::after {
    /* darkening overlay to seat white type over the photo */
    content: "";
    position: absolute; inset: 0; z-index: 2;
    background:
        linear-gradient(90deg, rgba(18,21,25,0.86) 0%, rgba(18,21,25,0.58) 48%, rgba(18,21,25,0.42) 100%),
        linear-gradient(0deg, rgba(18,21,25,0.7) 0%, rgba(18,21,25,0) 38%);
}
.hero__inner { position: relative; z-index: 3; padding: 9rem 0 5rem; }
.hero__content { max-width: 56rem; }
.hero h1 {
    font-size: clamp(2.7rem, 6.4vw, 5.4rem);
    font-weight: 300;
    line-height: 1.04;
    letter-spacing: -0.015em;
    margin: 0 0 1.8rem;
}
.hero h1 em { font-style: italic; color: var(--brass-soft); }
.hero__sub {
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
    line-height: 1.6;
    font-weight: 300;
    color: rgba(246, 243, 237, 0.8);
    max-width: 38rem;
    margin: 0 0 2.6rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

.scroll-cue {
    position: absolute;
    bottom: 2.2rem; left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    font-size: 0.62rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(246,243,237,0.5);
    display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
}
.scroll-cue::after {
    content: "";
    width: 1px; height: 2.6rem;
    background: linear-gradient(var(--brass-soft), transparent);
    animation: cue 2.4s var(--ease) infinite;
    transform-origin: top;
}
@keyframes cue { 0%,100% { transform: scaleY(0.4); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }

/* Compact page hero (interior pages) */
.page-hero {
    position: relative;
    background: var(--ink);
    color: var(--paper);
    padding: clamp(9rem, 16vw, 13rem) 0 clamp(3.5rem, 7vw, 5.5rem);
    overflow: hidden;
}
.page-hero__art { position: absolute; inset: 0; z-index: 0; opacity: 0.42; }
.page-hero__art svg { width: 100%; height: 100%; }
.page-hero::after {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(90deg, rgba(21,24,28,0.92) 0%, rgba(21,24,28,0.55) 100%);
}
.page-hero__inner { position: relative; z-index: 2; max-width: 48rem; }
.page-hero h1 {
    font-size: clamp(2.4rem, 5.4vw, 4.2rem);
    font-weight: 300;
    line-height: 1.06;
    margin: 0 0 1.3rem;
}
.page-hero p {
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    font-weight: 300;
    color: rgba(246,243,237,0.78);
    max-width: 38rem;
    margin: 0;
}

/* ============================================================
   Generic blocks
   ============================================================ */
.section-head { max-width: 44rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 300; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::after {
    content: ""; width: 2.2rem; height: 1px; background: var(--brass); opacity: 0.7;
}

/* Two-column intro */
.split {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(2.5rem, 6vw, 6rem);
    align-items: start;
}
.split__aside .eyebrow { margin-bottom: 1.6rem; }
.split__aside h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 300; }

/* Pillars / value props */
.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.pillar {
    background: var(--paper);
    padding: clamp(2rem, 3.5vw, 3rem) clamp(1.75rem, 3vw, 2.5rem);
}
.section--sand .pillar { background: var(--paper-2); }
.pillar__num {
    font-family: var(--serif);
    font-size: 1rem;
    color: var(--brass);
    letter-spacing: 0.1em;
    margin-bottom: 1.6rem;
}
.pillar h3 { font-size: 1.65rem; margin-bottom: 0.8rem; }
.pillar p { font-size: 0.97rem; color: var(--stone); margin: 0; }

/* Service / capability list */
.cap-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}
.cap {
    background: var(--paper);
    padding: clamp(2rem, 3.4vw, 2.8rem);
    /* Per-cell borders so an odd capability count still reads as intentional. */
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    transition: background 0.5s var(--ease);
}
.cap:hover { background: var(--paper-2); }
.cap__index {
    font-family: var(--sans);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    color: var(--brass);
    margin-bottom: 1.3rem;
}
.cap h3 { font-size: 1.55rem; margin-bottom: 0.7rem; }
.cap p { font-size: 0.96rem; color: var(--stone); margin: 0; }

/* Serve list */
.serve-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line-light);
    border-left: 1px solid var(--line-light);
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.serve {
    background: var(--ink);
    padding: clamp(1.8rem, 3vw, 2.5rem);
    /* Per-cell borders so an odd card count (e.g. 7) still reads as intentional. */
    border-right: 1px solid var(--line-light);
    border-bottom: 1px solid var(--line-light);
}
.serve h3 {
    font-size: 1.45rem;
    color: var(--paper);
    margin-bottom: 0.55rem;
}
.serve p { font-size: 0.92rem; color: rgba(246,243,237,0.62); margin: 0; }

/* Numbered approach steps */
.steps { display: grid; gap: 0; margin-top: clamp(2rem, 4vw, 3rem); }
.step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    padding: clamp(2rem, 4vw, 3rem) 0;
    border-top: 1px solid var(--line);
    align-items: baseline;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__num {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    color: var(--brass);
    line-height: 1;
}
.step h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 0.7rem; }
.step p { color: var(--stone); margin: 0; max-width: 46rem; }

/* Pull statement */
.statement { text-align: center; max-width: 50rem; margin: 0 auto; }
.statement p {
    font-family: var(--serif);
    font-size: clamp(1.7rem, 3.6vw, 2.7rem);
    line-height: 1.32;
    font-weight: 300;
    color: var(--paper);
}
.statement p em { font-style: italic; color: var(--brass-soft); }

/* Notice / disclaimer block */
.notice {
    border: 1px solid var(--line);
    border-left: 2px solid var(--brass);
    padding: clamp(1.6rem, 3vw, 2.2rem) clamp(1.6rem, 3vw, 2.4rem);
    background: rgba(154, 124, 76, 0.05);
}
.notice p { font-size: 0.95rem; color: var(--stone); }
.notice strong { color: var(--ink); font-weight: 600; }

/* ============================================================
   Contact
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: start;
}
.contact-detail { margin-bottom: 2rem; }
.contact-detail .label {
    font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--brass); margin-bottom: 0.5rem;
}
.contact-detail .value { font-family: var(--serif); font-size: 1.35rem; color: var(--ink); }

.form { display: grid; gap: 1.5rem; }
.field { display: grid; gap: 0.55rem; }
.field label {
    font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--ink-soft); font-weight: 500;
}
.field input, .field textarea, .field select {
    font-family: var(--sans);
    font-size: 1rem;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 0.95rem 1.1rem;
    width: 100%;
    transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none;
    border-color: var(--brass);
    background: #fffdf8;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.field-error { color: #9a4b3c; font-size: 0.82rem; }

.form-success {
    border: 1px solid var(--brass);
    background: rgba(154,124,76,0.07);
    padding: 1.4rem 1.6rem;
    margin-bottom: 1.5rem;
}
.form-success p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    background: var(--ink);
    color: rgba(246,243,237,0.7);
    padding: clamp(3.5rem, 7vw, 5.5rem) 0 2.5rem;
    font-size: 0.9rem;
}
.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--line-light);
}
.footer-logo { height: 84px; width: auto; max-width: 100%; }
@media (max-width: 560px) { .footer-logo { height: 64px; } }
.footer-brand p { margin-top: 1.4rem; max-width: 26rem; color: rgba(246,243,237,0.6); font-size: 0.92rem; }
.footer-col h2 {
    font-family: var(--sans);
    font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--brass-soft); margin-bottom: 1.2rem; font-weight: 600;
    line-height: 1.4;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.footer-col a { color: rgba(246,243,237,0.7); transition: color 0.4s var(--ease); }
.footer-col a:hover { color: var(--brass-soft); }
.footer-bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
    padding-top: 2rem;
    font-size: 0.8rem;
    color: rgba(246,243,237,0.5);
}
.footer-disclaimer { max-width: 40rem; line-height: 1.6; }
.footer-meta { display: flex; flex-direction: column; gap: 0.7rem; align-items: flex-end; text-align: right; }
@media (max-width: 700px) { .footer-meta { align-items: flex-start; text-align: left; } }
.footer-legal { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; align-items: center; }
.footer-legal a, .footer-legal .linklike {
    color: rgba(246,243,237,0.7); font-size: 0.8rem;
    transition: color 0.4s var(--ease);
}
.footer-legal a:hover, .footer-legal .linklike:hover { color: var(--brass-soft); }
.footer-legal .sep { color: rgba(246,243,237,0.3); }
.linklike {
    background: none; border: none; padding: 0; margin: 0; cursor: pointer;
    font: inherit; font-size: 0.8rem; letter-spacing: inherit;
}

/* Accept button (used on the dark cookie banner) */
.btn--brass { background: var(--brass-soft); border-color: var(--brass-soft); color: var(--ink); }
.btn--brass:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 150;
    background: var(--ink);
    color: var(--paper);
    border-top: 2px solid var(--brass);
    box-shadow: 0 -18px 40px rgba(0,0,0,0.28);
}
.cookie-banner[hidden] { display: none; }
/* Never let the fixed banner overlap the open mobile nav panel. */
body.nav-open .cookie-banner { display: none; }
.cookie-banner__inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: clamp(1rem, 3vw, 2.5rem);
    padding: 1.15rem 0;
}
.cookie-banner__text { max-width: 44rem; }
.cookie-banner__text p { font-size: 0.9rem; line-height: 1.55; color: rgba(246,243,237,0.82); margin: 0; }
.cookie-banner__text strong { color: var(--paper); }
.cookie-banner__text a { color: var(--brass-soft); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner__actions { display: flex; gap: 0.7rem; flex-shrink: 0; }
.cookie-banner__actions .btn { padding: 0.8rem 1.4rem; font-size: 0.72rem; white-space: nowrap; }
@media (max-width: 720px) {
    .cookie-banner__inner { flex-direction: column; align-items: flex-start; }
    .cookie-banner__actions { width: 100%; }
    .cookie-banner__actions .btn { flex: 1; justify-content: center; }
}

/* ============================================================
   Long-form legal / statement pages
   ============================================================ */
.legal { max-width: 46rem; }
.legal .updated {
    font-family: var(--sans); font-size: 0.85rem; color: var(--stone);
    letter-spacing: 0.04em; margin-bottom: 2.2rem;
    padding-bottom: 1.4rem; border-bottom: 1px solid var(--line);
}
.legal h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 400; margin: 2.6rem 0 0.8rem; }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-size: 1.2rem; font-weight: 500; margin: 1.6rem 0 0.5rem; }
.legal p, .legal li { color: var(--stone); }
.legal p { margin-bottom: 1rem; }
.legal ul { margin: 0 0 1.1rem; padding-left: 1.2rem; }
.legal li { margin-bottom: 0.45rem; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--brass); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--bronze-2, var(--brass)); }

/* ============================================================
   Parallax SVG accents
   ============================================================ */
.has-accent { position: relative; overflow: hidden; }
.has-accent > .wrap { position: relative; z-index: 2; }
.accent {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    will-change: transform;
}
.accent svg { display: block; width: 100%; height: auto; }

.accent--arch {
    top: -16%;
    right: -8%;
    width: min(48vw, 640px);
    opacity: 0.5;
}
.accent--rings {
    bottom: -22%;
    left: -10%;
    width: min(42vw, 540px);
    opacity: 0.55;
}
.accent--grid {
    top: -10%;
    right: -4%;
    width: min(38vw, 460px);
    opacity: 0.6;
}

@media (max-width: 700px) {
    /* Keep small screens calm. */
    .accent--arch { width: 78vw; opacity: 0.32; right: -22%; }
    .accent--rings { width: 80vw; opacity: 0.35; }
    .accent--grid { display: none; }
}

/* ============================================================
   Reveal on scroll
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
    .scroll-cue::after { animation: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
    .split, .contact-grid { grid-template-columns: 1fr; }
    .pillars, .serve-grid { grid-template-columns: 1fr; }
    .cap-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }

    /* The mobile nav is position:fixed INSIDE the header. A backdrop-filter on
       the header would become the containing block for that fixed panel and trap
       it to the header's height (breaking the menu once scrolled/solid). Drop the
       filter on mobile and use an opaque background instead. */
    .site-header.is-solid {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: var(--paper);
    }

    /* Full-screen overlay menu. Fades with opacity/visibility rather than a
       transform slide: a transform-animated fixed panel proved fragile when the
       page is scrolled, whereas opacity is reliable and the menu is always laid
       out full-viewport (inset:0), so it can never be trapped or pushed off-screen. */
    .nav {
        position: fixed;
        inset: 0;
        z-index: 90;
        width: 100%;
        background: var(--ink);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        padding: 5rem var(--gut) 3rem;
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        /* No transition on this fixed panel: some mobile browsers won't run a
           transition on a position:fixed element while the page is scrolled,
           which would leave the menu stuck hidden. Show/hide is instant and
           reliable; the links themselves fade in (static children animate fine). */
    }
    .nav.is-open { opacity: 1; visibility: visible; }
    .nav a {
        color: var(--paper) !important;
        font-size: 1.2rem;
        /* Links stay fully opaque; only a subtle rise animates. If a browser
           skips this transition, the links are still visible (just not animated). */
        transform: translateY(12px);
        transition: transform 0.4s var(--ease);
    }
    .nav.is-open a { transform: none; }
    .nav a.is-active { color: var(--brass-soft) !important; }

    .nav-toggle {
        display: flex; flex-direction: column; justify-content: center; gap: 6px;
        width: 34px; height: 34px; background: none; border: none; cursor: pointer;
        z-index: 110; padding: 0;
    }
    .nav-toggle span {
        display: block; width: 26px; height: 1.5px; background: var(--ink);
        transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
    }
    .nav-toggle.is-open span { background: var(--paper); }
    .nav-toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
    .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
    .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

@media (max-width: 560px) {
    .field-row { grid-template-columns: 1fr; }
    .hero__actions { flex-direction: column; align-items: stretch; }
    .hero__actions .btn { justify-content: center; }
}
