/* Homepage, "the firm" direction (DESIGN.md, color.firm). Reads the fonts and base tokens from /styles.css.
   One family: Inter. Text at 14, 16 and 18; headings at 24, a clamp to 48, a figure clamp to 64 and a headline clamp to 80.
   Four surfaces: paper (--gold-light), cream (--gold), deep teal (--teal-deep) and ink (--bg).
   Evidence always sits on ink. The teal band holds the selector. Light bands hold the offer.
   Motion states are driven by /home.js (classes is-in, is-on, is-done, is-paused, is-scrolled);
   without the script everything is visible and still. */

body.firm {
    /* Palette A, picked by the owner on 2026-11-14 (DESIGN.md, color.firm). The legacy token names are kept
       so the prototype reads the same variables as the live stylesheet; they are renamed at promotion. */
    --teal-deep: #1F5F6B;
    --teal: #6FBCCB;
    --bg: #0F2A30;
    --bg-card: #15343A;
    --bg-elevated: #0B2126;
    --text: #EAEFEE;
    --text-muted: #9DB0B2;
    --border-hover: rgba(234, 239, 238, 0.25);
    --font-display: var(--font-heading);
    background: var(--gold-light);
    color: var(--bg);
    font-size: 16px;
    line-height: 1.6;
}
body.firm::after { display: none; }
body.firm a { color: inherit; }
body.firm ::selection { background: var(--teal-deep); color: var(--gold-light); }
body.firm :focus-visible { outline: 2px solid var(--teal-deep); outline-offset: 4px; }
body.firm .f-ink :focus-visible, body.firm .f-case :focus-visible, body.firm .f-results :focus-visible { outline-color: var(--teal); }
body.firm .f-teal :focus-visible { outline-color: var(--gold-light); }

.f-wrap { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.f-skip { position: absolute; left: 0; top: -64px; background: var(--bg); color: var(--gold-light) !important; padding: 12px 16px; z-index: 30; }
.f-skip:focus { top: 0; }
/* Empty targets for links other pages still use (/#services and the like). The base stylesheet styles some of those ids. */
.f-anchor { display: block !important; height: 0 !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important; border: 0 !important; background: none !important; }

/* ---------- Type ---------- */
.f-h1, .f-h2, .f-h3, .f-fig, .f-tab, .f-case__ask, .f-voice blockquote { font-family: var(--font-heading); font-weight: 600; text-wrap: balance; }
.f-h1 { font-size: clamp(44px, 5.6vw, 80px); line-height: 1; letter-spacing: -0.04em; margin-bottom: 24px; max-width: 10em; }
.f-h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 20px; }
.f-h3 { font-size: 24px; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 12px; }
.f-fig { font-size: clamp(48px, 5vw, 64px); line-height: 1; letter-spacing: -0.04em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.f-lead { font-size: 18px; color: var(--text-dim); max-width: 30em; margin-bottom: 32px; }
.f-sub { font-size: 18px; color: var(--text-dim); max-width: 32em; }
.f-head { margin-bottom: 48px; }

/* ---------- Top bar ---------- */
.f-bar { position: sticky; top: 0; z-index: 20; background: var(--gold-light); border-bottom: 1px solid var(--gold); transition: border-color 0.3s ease; }
.f-bar.is-scrolled { border-bottom-color: var(--text-muted); }
.f-bar__in { display: flex; align-items: center; gap: 48px; height: 64px; }
.f-logo { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; }
.f-links { display: flex; gap: 32px; margin-right: auto; color: var(--text-dim); }
.f-links a { text-decoration: none; padding: 8px 0; transition: color 0.3s ease; }
body.firm .f-links a:hover { color: var(--teal-deep); }
.f-menu { display: none; }

/* ---------- Buttons and links ---------- */
.f-btn {
    display: inline-block;
    background: var(--teal-deep);
    color: var(--gold-light) !important;
    border: 1px solid var(--teal-deep);
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    padding: 16px 32px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.f-btn:hover { background: var(--bg); border-color: var(--bg); }
.f-btn--sm { padding: 8px 20px; white-space: nowrap; }
.f-narrow { display: none; }
.f-btn--light { background: var(--gold-light); border-color: var(--gold-light); color: var(--bg) !important; }
.f-btn--light:hover { background: var(--teal); border-color: var(--teal); }
.f-btn[disabled] { background: var(--text-muted); border-color: var(--text-muted); cursor: progress; }

body.firm .f-link { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 4px; transition: text-underline-offset 0.3s ease, color 0.3s ease; }
body.firm .f-link:hover { text-underline-offset: 8px; color: var(--bg); }
body.firm .f-onink .f-link, body.firm .f-onink a { color: var(--teal); text-underline-offset: 4px; transition: color 0.3s ease; }
body.firm .f-onink .f-link:hover, body.firm .f-onink a:hover { color: var(--gold-light); }

/* ---------- First screen ---------- */
.f-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; padding-top: 40px; padding-bottom: 40px; }
.f-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 32px; }

/* The case file: three client problems, one at a time, on ink. */
.f-case { background: var(--bg); color: var(--text); padding: 32px; }
.f-prog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-bottom: 12px; }
.f-prog__seg { position: relative; height: 20px; padding: 0; border: 0; background: none; cursor: pointer; }
.f-prog__seg::before, .f-prog__fill { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; }
.f-prog__seg::before { background: var(--border-hover); }
.f-prog__fill { background: var(--teal); transform: scaleX(0); transform-origin: left center; }
.f-prog__seg.is-done .f-prog__fill { transform: none; }
.f-prog__seg.is-on .f-prog__fill { animation: f-fill 6s linear forwards; }
.f-case.is-paused .f-prog__seg.is-on .f-prog__fill { animation-play-state: paused; }
.f-slides { display: grid; }
.f-slide { grid-area: 1 / 1; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0s linear 0.4s; }
.f-slide.is-on { opacity: 1; visibility: visible; transition: opacity 0.4s ease 0.2s, visibility 0s linear 0s; }
.f-slide > * { opacity: 0; transform: translateY(12px); transition: opacity 0.4s ease, transform 0.4s var(--ease-out); }
.f-slide.is-on > * { opacity: 1; transform: none; }
.f-slide.is-on > :nth-child(1) { transition-delay: 0.2s; }
.f-slide.is-on > :nth-child(2) { transition-delay: 0.28s; }
.f-slide.is-on > :nth-child(3) { transition-delay: 0.36s; }
.f-slide.is-on > :nth-child(4) { transition-delay: 0.44s; }
.f-slide.is-on > :nth-child(5) { transition-delay: 0.52s; }
.f-slide .f-grow { transform: scaleX(0); transform-origin: left center; }
.f-slide.is-on .f-grow { transform: none; transition: transform 0.8s var(--ease-out) 0.5s; }
.f-slide.is-on .f-bars__row:nth-child(2) .f-grow { transition-delay: 0.7s; }
.f-case__head { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--text-muted); padding-bottom: 16px; border-bottom: 1px solid var(--border-hover); }
.f-case__ask { font-size: 24px; line-height: 1.2; letter-spacing: -0.02em; margin: 20px 0; }
.f-case__find { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center; margin-top: auto; padding: 20px 0; border-top: 1px solid var(--border-hover); border-bottom: 1px solid var(--border-hover); }
.f-case__find .f-fig { color: var(--gold-light); }
.f-case__foot { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 24px; padding-top: 16px; font-size: 14px; color: var(--text-muted); }

/* Exhibits: bars and blocks. Defaults are for ink; .f-paper recolours them for light panels. */
.f-bars { display: grid; gap: 12px; margin-bottom: 24px; }
.f-bars__row { display: grid; gap: 4px; }
.f-bars__label { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--text-muted); }
.f-bars__label b { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.f-bars__bar { height: 12px; background: var(--text-muted); }
.f-bars__bar--before { width: 55.6%; }
.f-bars__bar--after { width: 100%; background: var(--teal); }
.f-bars__track { background: var(--text-dim); }
.f-bars__bar--share { width: 73%; background: var(--teal); }
.f-blocks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.f-blocks span { height: 12px; border: 1px solid var(--text-muted); }
.f-blocks--on span { background: var(--teal); border-color: var(--teal); }
.f-ex { margin: 16px 0 24px; padding-top: 20px; border-top: 1px solid var(--border-hover); }

/* Proof strip: the place a logo row would sit. */
.f-strip { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 64px; align-items: center; padding-top: 20px; padding-bottom: 20px; border-top: 1px solid var(--bg); }
.f-strip__say { color: var(--text-dim); max-width: 22em; }
.f-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.f-facts div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.f-facts dt { font-size: 14px; line-height: 1.4; color: var(--text-dim); }
.f-facts dd { font-size: 24px; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 4px; font-variant-numeric: tabular-nums; }

/* ---------- Bands ---------- */
section.f-band { padding: 96px 0; }
.f-cream { background: var(--gold); }
.f-ink, body.firm #contact { background: var(--bg); color: var(--text); border-top: 0; }
.f-ink .f-sub { color: var(--text-muted); }
.f-teal { background: var(--teal-deep); color: var(--gold-light); }
.f-teal .f-sub { color: var(--gold); }
.f-split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; align-items: start; }

.f-paper { background: var(--gold-light); color: var(--bg); }
.f-paper .f-bars__label { color: var(--text-dim); }
.f-paper .f-bars__label b { color: var(--bg); }

/* The problems we are hired to solve: pick a sentence, see what we deliver for it. */
.f-show { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: repeat(6, auto) 1fr; column-gap: 64px; align-items: start; }
.f-show__in { position: fixed; top: 96px; left: 0; opacity: 0; pointer-events: none; }
.f-tab { grid-column: 1; display: block; padding: 20px 0 20px 20px; border-bottom: 1px solid var(--border-hover); border-left: 2px solid var(--teal-deep); font-size: 24px; line-height: 1.2; letter-spacing: -0.02em; color: var(--gold); opacity: 0.72; cursor: pointer; transition: opacity 0.3s ease, color 0.3s ease, border-color 0.3s ease, padding-left 0.3s var(--ease-out); }
.f-tab:first-of-type { border-top: 1px solid var(--border-hover); }
.f-tab:hover { opacity: 1; padding-left: 28px; }
.f-panel { grid-column: 2; grid-row: 1 / -1; display: none; padding: 40px; min-height: 672px; flex-direction: column; animation: f-rise 0.5s var(--ease-out); }
.f-panel__top { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--text-dim); padding-bottom: 16px; border-bottom: 1px solid var(--gold); }
.f-panel__top b { font-weight: 600; color: var(--teal-deep); }
.f-panel__lead { font-size: 18px; margin: 24px 0; }
.f-panel__label { font-size: 14px; line-height: 1.5; color: var(--text-dim); margin-bottom: 12px; }
.f-keep { list-style: none; border-top: 1px solid var(--gold); margin-top: 24px; }
.f-keep li { padding: 12px 0; border-bottom: 1px solid var(--gold); line-height: 1.5; }
.f-panel__foot { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 24px; margin-top: auto; padding-top: 24px; }
.f-panel__res b { font-size: 24px; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; color: var(--teal-deep); margin-right: 8px; }
.f-show:has(#s1:checked) .f-tab[for="s1"], .f-show:has(#s2:checked) .f-tab[for="s2"], .f-show:has(#s3:checked) .f-tab[for="s3"],
.f-show:has(#s4:checked) .f-tab[for="s4"], .f-show:has(#s5:checked) .f-tab[for="s5"], .f-show:has(#s6:checked) .f-tab[for="s6"] { opacity: 1; color: var(--gold-light); border-left-color: var(--gold-light); }
.f-show:has(#s1:checked) .f-panel[data-for="s1"], .f-show:has(#s2:checked) .f-panel[data-for="s2"], .f-show:has(#s3:checked) .f-panel[data-for="s3"],
.f-show:has(#s4:checked) .f-panel[data-for="s4"], .f-show:has(#s5:checked) .f-panel[data-for="s5"], .f-show:has(#s6:checked) .f-panel[data-for="s6"] { display: flex; }
.f-show:has(#s1:focus-visible) .f-tab[for="s1"], .f-show:has(#s2:focus-visible) .f-tab[for="s2"], .f-show:has(#s3:focus-visible) .f-tab[for="s3"],
.f-show:has(#s4:focus-visible) .f-tab[for="s4"], .f-show:has(#s5:focus-visible) .f-tab[for="s5"], .f-show:has(#s6:focus-visible) .f-tab[for="s6"] { outline: 2px solid var(--gold-light); outline-offset: 4px; }

.f-reg { border-top: 1px solid var(--bg); font-size: 14px; line-height: 1.5; }
.f-reg div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--gold); }
.f-reg .f-reg__head { color: var(--text-dim); }
.f-reg div span:first-child { font-weight: 600; }
.f-reg .f-reg__head span:first-child { font-weight: 400; }
.f-rank, .f-fit { display: grid; gap: 8px; }
.f-rank div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: center; font-size: 14px; }
.f-rank i, .f-fit i { display: block; height: 12px; background: var(--teal-deep); transform-origin: left center; animation: f-grow 0.8s var(--ease-out) 0.2s backwards; }
.f-rank div:nth-child(2) i, .f-fit div:nth-child(2) i { animation-delay: 0.28s; }
.f-rank div:nth-child(3) i, .f-fit div:nth-child(3) i { animation-delay: 0.36s; }
.f-rank div:nth-child(4) i { animation-delay: 0.44s; }
.f-fit div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 4px 16px; align-items: center; font-size: 14px; }
.f-fit span { grid-row: span 2; }
.f-fit .f-fit__price { background: var(--text-muted); }
.f-w1 { width: 92%; }
.f-w2 { width: 74%; }
.f-w3 { width: 56%; }
.f-w4 { width: 36%; }
.f-key { display: flex; gap: 24px; font-size: 14px; color: var(--text-dim); margin-top: 12px; }
.f-key span::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -1px; background: var(--teal-deep); }
.f-key .f-key__price::before { background: var(--text-muted); }
.f-steps { list-style: none; counter-reset: step; border-top: 1px solid var(--gold); }
.f-steps li { counter-increment: step; display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--gold); line-height: 1.5; }
.f-steps li::before { content: counter(step); font-size: 18px; font-weight: 600; color: var(--teal-deep); }
.f-cells { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--text-muted); }
.f-cells div { padding: 16px; border-left: 1px solid var(--text-muted); }
.f-cells div:first-child { border-left: 0; }
.f-cells span { display: block; font-size: 14px; color: var(--text-dim); }
.f-cells b { font-weight: 600; }

/* Results: one joined ink panel on paper. */
.f-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--bg); color: var(--text); }
.f-result { padding: 40px; border-left: 1px solid var(--border-hover); display: flex; flex-direction: column; }
.f-result:first-child { border-left: 0; }
.f-result .f-fig { color: var(--gold-light); margin-bottom: 16px; }
.f-result__who { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }
.f-result > a { margin-top: auto; }
.f-voice { margin-top: 64px; }
.f-voice blockquote { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.15; letter-spacing: -0.03em; max-width: 22em; }

/* Three ways to work with us */
.f-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--bg); }
.f-way { padding: 32px 32px 0; border-left: 1px solid var(--text-muted); display: flex; flex-direction: column; }
.f-way:first-child { padding-left: 0; border-left: 0; }
.f-way:last-child { padding-right: 0; }
.f-way p { color: var(--text-dim); margin-bottom: 24px; }
.f-terms { margin: auto 0 24px; }
.f-terms div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--text-muted); font-size: 14px; }
.f-terms dt { color: var(--text-dim); }
.f-terms dd { font-weight: 600; text-align: right; }

/* How an engagement runs */
.f-head--say { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: end; }
.f-say figcaption { font-size: 14px; color: var(--text-dim); }
.f-phases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: phase; }
.f-phase { position: relative; counter-increment: phase; padding: 24px 40px 0 0; border-top: 2px solid var(--gold); }
.f-phase::before { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: var(--teal-deep); transform-origin: left center; }
.f-phase__n { display: block; font-size: 14px; font-weight: 600; color: var(--teal-deep); margin-bottom: 12px; }
.f-phase__n::before { content: "Phase " counter(phase); }
.f-phase p { color: var(--text-dim); max-width: 26em; }
.f-phase__fact { display: block; margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--bg); }

/* The firm */
.f-prose p { font-size: 18px; max-width: 36em; margin-bottom: 20px; }
.f-prose p:last-child { margin-bottom: 0; }
.f-list { list-style: none; border-top: 1px solid var(--bg); margin-top: 32px; }
.f-list li { padding: 12px 0; border-bottom: 1px solid var(--text-muted); }
.f-note { font-size: 14px; color: var(--text-dim); margin-top: 16px; }

/* Enquiry */
.f-contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.f-next { margin-top: 40px; border-top: 1px solid var(--border-hover); }
.f-next div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border-hover); }
.f-next dt { color: var(--text-muted); }
body.firm .f-next a { color: var(--teal); text-decoration: underline; text-underline-offset: 4px; transition: color 0.3s ease; }
body.firm .f-next a:hover { color: var(--gold-light); }
.f-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }
.f-form .f-full { grid-column: 1 / -1; }
.f-form label, .f-form legend { display: block; font-size: 14px; color: var(--text-muted); margin-bottom: 8px; }
.f-form fieldset { border: 0; }
.f-form input[type="text"], .f-form input[type="email"], .f-form select, .f-form textarea { width: 100%; background: var(--bg-card); color: var(--text); border: 1px solid var(--border-hover); border-radius: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.5; padding: 12px 16px; transition: border-color 0.3s ease; }
.f-form textarea { resize: vertical; min-height: 128px; }
.f-form input:focus, .f-form select:focus, .f-form textarea:focus { outline: 2px solid var(--teal); outline-offset: 0; border-color: var(--teal); }
.f-choice { display: flex; flex-wrap: wrap; gap: 12px; }
.f-choice label { margin: 0; font-size: 16px; color: var(--text); border: 1px solid var(--border-hover); padding: 12px 16px; cursor: pointer; transition: border-color 0.3s ease; }
.f-choice label:hover { border-color: var(--text); }
.f-choice input { position: absolute; opacity: 0; }
.f-choice input:checked + span { color: var(--teal); }
.f-choice label:has(input:checked) { border-color: var(--teal); }
.f-choice label:has(input:focus-visible) { outline: 2px solid var(--teal); outline-offset: 4px; }
.f-form__end { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; }
.f-form__end p { font-size: 14px; color: var(--text-muted); }
.f-form[hidden], .f-form [hidden], .f-done[hidden] { display: none; }
.f-form [aria-invalid="true"] { border-color: var(--gold); }
.f-form .f-err { font-size: 14px; line-height: 1.5; color: var(--text); border-left: 2px solid var(--gold); padding-left: 12px; margin-top: 8px; }
.f-form__end .f-err { flex-basis: 100%; margin-top: 0; }
.f-done { border-top: 1px solid var(--border-hover); border-bottom: 1px solid var(--border-hover); padding: 40px 0; }
.f-done p { max-width: 30em; margin-bottom: 20px; }
.f-done .f-link { background: none; border: 0; padding: 0; font-family: var(--font-body); font-size: 16px; cursor: pointer; }

/* Footer */
footer.f-foot { background: var(--bg-elevated); color: var(--text); padding: 64px 0 32px; border-top: 0; }
.f-foot__cols { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: 48px; padding-bottom: 48px; }
.f-foot__brand p { color: var(--text-muted); max-width: 20em; margin-top: 12px; }
.f-foot h2 { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 12px; }
.f-foot ul { list-style: none; }
.f-foot li { padding: 4px 0; }
.f-foot li a { color: var(--text-muted) !important; text-decoration: none; transition: color 0.3s ease; }
.f-foot li a:hover { color: var(--text) !important; }
.f-foot__legal { border-top: 1px solid var(--border-hover); padding-top: 24px; font-size: 14px; color: var(--text-muted); }

/* ---------- Tablet and phone ---------- */
@media (max-width: 1080px) {
    .f-links { display: none; }
    .f-bar__in { gap: 16px; }
    .f-bar__in > .f-btn { margin-left: auto; }
    .f-menu { display: block; }
    .f-menu summary { list-style: none; cursor: pointer; font-weight: 600; padding: 12px 0 12px 8px; }
    .f-menu summary::-webkit-details-marker { display: none; }
    .f-menu__panel { position: absolute; left: 0; right: 0; top: 64px; background: var(--gold-light); border-bottom: 1px solid var(--bg); padding: 8px 24px 24px; animation: f-rise 0.3s var(--ease-out); }
    .f-menu__panel a { display: block; padding: 16px 0; border-bottom: 1px solid var(--gold); font-size: 24px; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; text-decoration: none; }
}

@media (max-width: 960px) {
    .f-wrap { padding: 0 24px; }
    .f-hero { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; padding-bottom: 48px; }
    .f-strip { grid-template-columns: 1fr; gap: 24px; padding-bottom: 48px; }
    .f-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    section.f-band { padding: 64px 0; }
    .f-head { margin-bottom: 32px; }
    .f-split, .f-contact { grid-template-columns: 1fr; gap: 32px; }
    .f-head--say { grid-template-columns: 1fr; gap: 24px; }
    .f-show { grid-template-columns: 1fr; grid-template-rows: none; }
    .f-tab { padding: 20px 0 20px 16px; }
    .f-panel { grid-column: 1; grid-row: auto; min-height: 0; padding: 24px; margin: 0 0 16px; }
    .f-cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .f-cells div:nth-child(3) { border-left: 0; }
    .f-cells div:nth-child(n+3) { border-top: 1px solid var(--text-muted); }
    .f-results, .f-ways, .f-phases { grid-template-columns: 1fr; }
    .f-result, .f-result:first-child { padding: 32px 24px; border-left: 0; border-top: 1px solid var(--border-hover); }
    .f-result:first-child { border-top: 0; }
    .f-result > a { margin-top: 0; }
    .f-voice { margin-top: 48px; }
    .f-way, .f-way:first-child, .f-way:last-child { padding: 32px 0; border-left: 0; border-bottom: 1px solid var(--text-muted); }
    .f-way:last-child { border-bottom: 0; padding-bottom: 0; }
    .f-phase { padding: 24px 0 40px; }
    .f-phase:last-child { padding-bottom: 0; }
    .f-foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
    .f-foot__brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
    .f-h1 { font-size: 40px; }
    .f-wide { display: none; }
    .f-narrow { display: inline; }
    .f-btn--sm { padding: 8px 12px; }
    .f-case { padding: 24px; }
    .f-case__find { grid-template-columns: 1fr; gap: 8px; }
    .f-form { grid-template-columns: 1fr; }
    .f-next div { grid-template-columns: 1fr; gap: 0; }
    .f-actions .f-btn { width: 100%; text-align: center; }
}

/* ---------- Motion ----------
   Playing by itself: the case file advances every six seconds, driven by the fill of its progress segment.
   On enter, once: band content rises in with a stagger, exhibits grow, phase lines draw, figures count up.
   On selection and hover: panels, tabs, links, buttons, fields.
   The hidden starting states apply only under .js, so the page is complete without the script. */
@keyframes f-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes f-grow { from { transform: scaleX(0); } }
@keyframes f-rise { from { opacity: 0; transform: translateY(24px); } }

.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s var(--ease-out); transition-delay: calc(var(--i, 0) * 120ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal] .f-ex .f-bars__bar, .js [data-reveal] .f-ex .f-blocks--on { transform: scaleX(0); transform-origin: left center; transition: transform 0.9s var(--ease-out); transition-delay: calc(var(--i, 0) * 120ms + 400ms); }
.js [data-reveal].is-in .f-ex .f-bars__bar, .js [data-reveal].is-in .f-ex .f-blocks--on { transform: none; }
.js .f-phase::before { transform: scaleX(0); transition: transform 0.9s var(--ease-out); transition-delay: calc(var(--i, 0) * 300ms + 200ms); }
.js .f-phase.is-in::before { transform: none; }

.f-bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--teal-deep); transform-origin: left center; transform: scaleX(0); }
@supports (animation-timeline: scroll()) {
    .f-bar::after { transform: none; animation: f-grow linear both; animation-timeline: scroll(root); }
}

@media (prefers-reduced-motion: reduce) {
    body.firm *, body.firm *::before, body.firm *::after { animation: none !important; transition: none !important; }
    .f-prog__seg.is-on .f-prog__fill { transform: none; }
    .f-bar::after { display: none; }
}
