/* ==========================================================================
   SAMEQO GROUP — brand layer
   Derived from SAMEQO Brand Guideline v1.0
   Navy is the ground, not an accent. Gold is a foreground colour only on navy.
   ========================================================================== */

/* --- 1. Tokens ----------------------------------------------------------- */

:root {
    /* Brand colour — from the guideline */
    --navy:        #0f123a;
    --gold:        #DAA520;
    --white:       #fffefb;
    --grey:        #9a9aa4;

    /* Derived tones — established across the built apps */
    --navy-deep:   #0a0c2a;   /* below the ground: footer, contact band */
    --navy-raised: #191d4b;   /* panels sitting on navy */
    --navy-line:   #262b5e;   /* hairlines on navy */
    --gold-deep:   #a87c17;   /* gold TEXT on light backgrounds — 4.6:1 */
    --gold-pale:   #f5e7c2;   /* callout backgrounds */
    --ink:         #16182e;   /* body text on light */
    --ink-soft:    #565a72;   /* secondary text on light */

    /* Type */
    --font-display: 'Righteous', 'Trebuchet MS', sans-serif;
    --font-body:    'Inter', -apple-system, 'Segoe UI', sans-serif;
    --font-mono:    'JetBrains Mono', 'Consolas', monospace;

    /* Scale */
    --step--1: clamp(0.78rem, 0.76rem + 0.1vw, 0.84rem);
    --step-0:  clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
    --step-1:  clamp(1.2rem, 1.12rem + 0.4vw, 1.45rem);
    --step-2:  clamp(1.55rem, 1.35rem + 1vw, 2.1rem);
    --step-3:  clamp(2.1rem, 1.7rem + 2vw, 3.2rem);
    --step-4:  clamp(2.6rem, 1.9rem + 3.4vw, 4.6rem);

    /* Space and measure */
    --gutter: clamp(1.25rem, 4vw, 3rem);
    --shell:  1180px;
    --section-y: clamp(4rem, 9vw, 7.5rem);
}

/* --- 2. Reset and base --------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--step-0);
    line-height: 1.65;
    color: var(--white);
    background: var(--navy);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 400;      /* Righteous has one weight — size and tracking carry hierarchy */
    line-height: 1.08;
    margin: 0;
}

p { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: -9999px;
}
.skip-link:focus {
    left: var(--gutter);
    top: 1rem;
    z-index: 100;
    padding: 0.6rem 1rem;
    background: var(--gold);
    color: var(--navy);
    border-radius: 3px;
}

/* --- 3. Layout primitives ------------------------------------------------ */

.shell {
    width: 100%;
    max-width: var(--shell);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.band {
    padding-block: var(--section-y);
}

.band--navy  { background: var(--navy); color: var(--white); }
.band--deep  { background: var(--navy-deep); color: var(--white); }
.band--light { background: var(--white); color: var(--ink); }

/* --- 4. The eyebrow device ----------------------------------------------- *
   Lifted from the logo, where gold hairlines flank the word GROUP.
   Used as the section marker throughout.
   ------------------------------------------------------------------------- */

.eyebrow {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-family: var(--font-body);
    font-size: var(--step--1);
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.eyebrow::before,
.eyebrow::after {
    content: "";
    height: 1px;
    width: 34px;
    background: var(--gold);
    flex: none;
}

.eyebrow--start::before { width: 34px; }
.eyebrow--start::after  { display: none; }

.eyebrow--center {
    justify-content: center;
    text-align: center;
}

/* On light backgrounds the brand gold fails contrast — step down. */
.band--light .eyebrow { color: var(--gold-deep); }
.band--light .eyebrow::before,
.band--light .eyebrow::after { background: var(--gold-deep); }

/* --- 5. Buttons ---------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem 1.7rem;
    font-family: var(--font-body);
    font-size: var(--step--1);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn--gold {
    background: var(--gold);
    color: var(--navy);
}
.btn--gold:hover { background: #c4941b; }

.btn--ghost {
    background: transparent;
    color: var(--white);
    border-color: var(--navy-line);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

/* --- 6. Site header ------------------------------------------------------ */

.masthead {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 18, 58, 0.94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--navy-line);
}

.masthead__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-height: 76px;
}

.masthead__logo img { height: 38px; width: auto; }

.nav {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2.4vw, 2.2rem);
}

.nav__link {
    font-size: var(--step--1);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--white);
    padding-block: 0.4rem;
    border-bottom: 1px solid transparent;
    transition: color 0.18s ease, border-color 0.18s ease;
}
.nav__link:hover,
.nav__link[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }

.lang {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: var(--step--1);
    color: var(--grey);
}
.lang a { text-decoration: none; }
.lang a:hover { color: var(--gold); }
.lang [aria-current="true"] { color: var(--white); }

.nav-toggle { display: none; }

/* --- 7. Hero ------------------------------------------------------------- */

.hero {
    position: relative;
    padding-block: clamp(4.5rem, 11vw, 9rem);
    overflow: hidden;
}

.hero__inner { position: relative; z-index: 2; max-width: 62ch; }

.hero__title {
    font-size: var(--step-4);
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
}

.hero__title em {
    font-style: normal;
    color: var(--gold);
}

.hero__lede {
    font-size: var(--step-1);
    color: #cdd0e4;
    max-width: 54ch;
    margin-bottom: 2.75rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Brand pattern as low-opacity texture. Drop the file in and it appears. */
.hero__texture {
    position: absolute;
    inset: 0 0 0 auto;
    width: min(46%, 520px);
    background-image: url("/img/pattern-secondary.svg");
    background-size: cover;
    background-position: center;
    opacity: 0.16;
    pointer-events: none;
    z-index: 1;
}

/* --- 8. The shift list --------------------------------------------------- *
   The thesis, made literal: what the institution has now, and what replaces it.
   ------------------------------------------------------------------------- */

.shift {
    margin-top: clamp(3rem, 6vw, 4.5rem);
    border-top: 1px solid var(--navy-line);
    position: relative;
    z-index: 2;
}

.shift__row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: baseline;
    gap: clamp(0.75rem, 2.5vw, 2rem);
    padding-block: 1.35rem;
    border-bottom: 1px solid var(--navy-line);
}

.shift__from {
    color: var(--grey);
    font-size: var(--step-0);
    letter-spacing: 0.01em;
}

.shift__arrow {
    color: var(--gold);
    font-size: var(--step-1);
    line-height: 1;
    flex: none;
}

.shift__to {
    font-size: var(--step-1);
    color: var(--white);
}

.shift__owner {
    display: inline-block;
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: var(--step--1);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 0.3rem;
    border-bottom: 1px solid transparent;
}
.shift__owner:hover { border-bottom-color: var(--gold); }

/* --- 9. Section heading -------------------------------------------------- */

.section-head { max-width: 60ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }

.section-head__title {
    font-size: var(--step-3);
    margin-bottom: 1.1rem;
}

.section-head__body {
    font-size: var(--step-1);
    color: #cdd0e4;
}

.band--light .section-head__body { color: var(--ink-soft); }

/* --- 10. The quadrant ---------------------------------------------------- *
   Signature element. The mark is four shapes rotating around a centre, and
   the four subsidiaries ARE those four shapes. The hub sits at the crossing.
   ------------------------------------------------------------------------- */

.quad {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--navy-line);
    border: 1px solid var(--navy-line);
}

.quad__cell {
    background: var(--navy);
    padding: clamp(1.75rem, 3.6vw, 3rem);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease;
}
.quad__cell:hover { background: var(--navy-raised); }

.quad__lockup { height: 34px; width: auto; }

.quad__field {
    font-family: var(--font-mono);
    font-size: var(--step--1);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
}

.quad__body { color: #cdd0e4; }

.quad__more {
    margin-top: auto;
    padding-top: 0.5rem;
    font-size: var(--step--1);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white);
}
.quad__cell:hover .quad__more { color: var(--gold); }

.quad__hub {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(56px, 7vw, 84px);
    height: clamp(56px, 7vw, 84px);
    display: grid;
    place-items: center;
    background: var(--navy);
    border: 1px solid var(--navy-line);
    border-radius: 50%;
    padding: 14px;
    z-index: 3;
}

/* --- 11. Mission and vision ---------------------------------------------- */

.pair {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
}

.pair__item { border-top: 2px solid var(--gold); padding-top: 1.6rem; }

.pair__label {
    font-family: var(--font-display);
    font-size: var(--step-2);
    margin-bottom: 0.9rem;
}

.pair__text { font-size: var(--step-1); color: var(--ink-soft); }

/* --- 12. Contact band ---------------------------------------------------- */

.callout { text-align: center; max-width: 58ch; margin-inline: auto; }
.callout__title { font-size: var(--step-3); margin-bottom: 1.2rem; }
.callout__body { font-size: var(--step-1); color: #cdd0e4; margin-bottom: 2.25rem; }

/* --- 13. Footer ---------------------------------------------------------- */

.footer { background: var(--navy-deep); border-top: 1px solid var(--navy-line); }

.footer__grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    padding-block: clamp(3rem, 6vw, 4.5rem);
}

.footer__logo img { height: 54px; width: auto; margin-bottom: 1.25rem; }

.footer__tag {
    font-family: var(--font-mono);
    font-size: var(--step--1);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
}

.footer__heading {
    font-family: var(--font-body);
    font-size: var(--step--1);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--grey);
    margin-bottom: 1.1rem;
}

.footer__list li + li { margin-top: 0.65rem; }

.footer__list a {
    text-decoration: none;
    color: var(--white);
    font-size: var(--step-0);
}
.footer__list a:hover { color: var(--gold); }

.footer__bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 1.5rem;
    border-top: 1px solid var(--navy-line);
    font-size: var(--step--1);
    color: var(--grey);
}

/* --- 14. Responsive ------------------------------------------------------ */

@media (max-width: 860px) {
    .quad { grid-template-columns: 1fr; }
    .quad__hub { display: none; }
    .pair { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: repeat(2, 1fr); }
    .hero__texture { display: none; }
}

@media (max-width: 720px) {
    .nav { display: none; }
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        background: none;
        border: 1px solid var(--navy-line);
        border-radius: 2px;
        color: var(--white);
        font-family: var(--font-body);
        font-size: var(--step--1);
        letter-spacing: 0.1em;
        text-transform: uppercase;
        padding: 0.55rem 0.95rem;
        cursor: pointer;
    }
    .masthead[data-open="true"] .nav {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.9rem;
        width: 100%;
        padding-block: 1.25rem 1.75rem;
        border-top: 1px solid var(--navy-line);
    }
    .masthead[data-open="true"] .masthead__inner { flex-wrap: wrap; }

    .shift__row { grid-template-columns: 1fr; gap: 0.35rem; }
    .shift__arrow { transform: rotate(90deg); width: 1em; }
}

@media (max-width: 520px) {
    .footer__grid { grid-template-columns: 1fr; }
    .hero__actions .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* --- 15. Inner page banner ----------------------------------------------- */

.banner { padding-block: clamp(3.5rem, 8vw, 6rem) clamp(2.5rem, 5vw, 4rem); }

.banner__lockup { height: 40px; width: auto; margin-bottom: 1.75rem; }

.banner__title {
    font-size: var(--step-3);
    max-width: 22ch;
    margin-bottom: 1.1rem;
}

.banner__lede {
    font-size: var(--step-1);
    color: #cdd0e4;
    max-width: 54ch;
}

.banner__actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 1rem; }

/* --- 16. Long-form copy --------------------------------------------------- */

.prose-shell { max-width: 68ch; }

.prose p {
    font-size: var(--step-1);
    color: var(--ink);
    margin-bottom: 1.4em;
}
.prose p:last-child { margin-bottom: 0; }

.prose__meta {
    margin-top: 2.5rem;
    font-family: var(--font-mono);
    font-size: var(--step--1);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-deep);
}

.prose__back { margin-top: 2rem; }
.prose__back a {
    font-size: var(--step--1);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--gold-deep);
    padding-bottom: 2px;
}
.prose__back a:hover { color: var(--gold-deep); }

/* --- 17. Service list ----------------------------------------------------- *
   Numbered because "where we start" is a real order of work, not decoration.
   -------------------------------------------------------------------------- */

.services { border-top: 1px solid var(--navy-line); }

.services__item {
    display: grid;
    grid-template-columns: 4.5rem 1fr;
    gap: clamp(1rem, 3vw, 2.5rem);
    padding-block: clamp(1.5rem, 3vw, 2.25rem);
    border-bottom: 1px solid var(--navy-line);
}

.services__index {
    font-family: var(--font-mono);
    font-size: var(--step-1);
    color: var(--gold);
    line-height: 1.3;
}

.services__title {
    font-size: var(--step-2);
    margin-bottom: 0.6rem;
}

.services__body { color: #cdd0e4; max-width: 60ch; }

/* --- 18. Post list -------------------------------------------------------- */

.postlist { border-top: 1px solid var(--navy-line); }

.postlist__item {
    padding-block: clamp(1.75rem, 3.5vw, 2.5rem);
    border-bottom: 1px solid var(--navy-line);
    max-width: 68ch;
}

.postlist__date {
    font-family: var(--font-mono);
    font-size: var(--step--1);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.7rem;
}

.postlist__title { font-size: var(--step-2); margin-bottom: 0.75rem; }
.postlist__title a { text-decoration: none; }
.postlist__title a:hover { color: var(--gold); }

.postlist__excerpt { color: #cdd0e4; margin-bottom: 1rem; }

.postlist__more {
    font-size: var(--step--1);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--white);
    border-bottom: 1px solid var(--gold);
    padding-bottom: 2px;
}
.postlist__more:hover { color: var(--gold); }

.pager {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
}
.pager__link {
    font-size: var(--step--1);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--gold);
}
.pager__status { font-family: var(--font-mono); font-size: var(--step--1); color: var(--grey); }

.empty { color: var(--grey); font-size: var(--step-1); }

/* --- 19. Questions -------------------------------------------------------- */

.qa { border-top: 1px solid var(--navy-line); max-width: 76ch; }
.qa__item { border-bottom: 1px solid var(--navy-line); }

.qa__question {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding-block: 1.4rem;
    font-size: var(--step-1);
    cursor: pointer;
    list-style: none;
}
.qa__question::-webkit-details-marker { display: none; }
.qa__question::before {
    content: "+";
    font-family: var(--font-mono);
    color: var(--gold);
    flex: none;
    line-height: 1.4;
}
.qa__details[open] .qa__question::before { content: "\2212"; }
.qa__question:hover { color: var(--gold); }

.qa__answer {
    padding: 0 0 1.6rem 2rem;
    color: #cdd0e4;
    max-width: 66ch;
}

/* --- 20. Contact ---------------------------------------------------------- */

.contact {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
}

.field { margin-bottom: 1.5rem; }

.field label,
.field-row label {
    display: block;
    font-size: var(--step--1);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--grey);
    margin-bottom: 0.55rem;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    font-family: var(--font-body);
    font-size: var(--step-0);
    color: var(--white);
    background: var(--navy-raised);
    border: 1px solid var(--navy-line);
    border-radius: 2px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.field textarea { resize: vertical; min-height: 9rem; }

.field select option { background: var(--navy-raised); color: var(--white); }

.field__hint { margin-top: 0.5rem; font-size: var(--step--1); color: var(--grey); }

.field__error {
    margin-top: 0.5rem;
    font-size: var(--step--1);
    color: #ff9f9f;
}

.field-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

/* Honeypot: off-screen rather than display:none, which some bots skip. */
.trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.notice {
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
    border-left: 3px solid var(--gold);
    background: var(--navy-raised);
    font-size: var(--step-0);
}
.notice--warn { border-left-color: #ff9f9f; }

.contact__details { border-top: 1px solid var(--navy-line); padding-top: 1.75rem; }

.detail { margin: 0 0 2rem; }
.detail dt {
    font-size: var(--step--1);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--grey);
    margin-bottom: 0.3rem;
}
.detail dd { margin: 0 0 1.25rem; font-size: var(--step-1); }
.detail dd a { text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.detail dd a:hover { color: var(--gold); }

.contact__note { color: var(--grey); font-size: var(--step--1); }

/* --- 21. Mission pair on navy --------------------------------------------- */

.pair--onNavy .pair__text { color: #cdd0e4; }

/* --- 22. Error pages ------------------------------------------------------ */

.errorpage { padding-block: clamp(5rem, 12vw, 9rem); }

.errorpage__code {
    font-family: var(--font-mono);
    font-size: var(--step-2);
    letter-spacing: 0.3em;
    color: var(--gold);
    margin-bottom: 1rem;
}

.errorpage__title { font-size: var(--step-3); margin-bottom: 1.1rem; max-width: 20ch; }
.errorpage__body { font-size: var(--step-1); color: #cdd0e4; max-width: 52ch; margin-bottom: 2.5rem; }

/* --- 23. Responsive additions --------------------------------------------- */

@media (max-width: 860px) {
    .contact { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .field-row { grid-template-columns: 1fr; }
    .services__item { grid-template-columns: 1fr; gap: 0.5rem; }
}

/* =========================================================================
   24. THE OPENING SEQUENCE

   Default state = the static fallback: act five only, laid out as a normal
   hero. film.js adds .film--ready to switch on the cinematic behaviour. So
   no JavaScript, an old browser, or reduced-motion all land on something
   deliberate rather than on wreckage.
   ========================================================================= */

.film { position: relative; background: var(--navy); }

/* --- fallback (no JS / reduced motion) ----------------------------------- */

.film__scroll { position: relative; }
.film__stage { position: relative; }
.film__camera { position: relative; }

.film .act { display: none; }
.film .act--5 { display: block; }

.film__marks,
.film__hint,
.film__skip { display: none; }

.film .act--5 .act__reveal {
    max-width: var(--shell);
    margin-inline: auto;
    padding: clamp(4rem, 10vw, 8rem) var(--gutter);
    text-align: center;
}

/* --- cinematic mode ------------------------------------------------------ */

.film--ready .film__scroll { height: 520vh; }

.film--ready .film__stage {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    perspective: 1200px;
    perspective-origin: 50% 45%;
    background:
        radial-gradient(120% 90% at 50% 35%, #1a1f55 0%, var(--navy) 45%, #06081c 100%);
}

.film--ready .film__camera {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    will-change: transform;
}

.film--ready .act {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(1080px, 92vw);
    transform: translate(-50%, -50%);
    transform-style: preserve-3d;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.film--ready .act--5 .act__reveal {
    padding: 0;
    text-align: center;
}

.act__art {
    display: block;
    width: 100%;
    height: auto;
    max-height: 58vh;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.45));
}

.act__caption {
    margin-top: clamp(1.25rem, 3vw, 2.5rem);
    max-width: 46ch;
}

.act__line {
    font-family: var(--font-display);
    font-size: var(--step-2);
    line-height: 1.15;
    color: var(--white);
}

/* Act 4 — four panels, already sitting in the quadrant arrangement */

.act__quad {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--navy-line);
    border: 1px solid var(--navy-line);
    max-width: 760px;
    margin-inline: auto;
}

.act__panel {
    background: var(--navy);
    padding: clamp(1.25rem, 3vw, 2.25rem);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
}

.act__panel img { height: 26px; width: auto; }

.act__panel span {
    font-family: var(--font-mono);
    font-size: var(--step--1);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
}

/* Act 5 — the reveal */

.act__symbol {
    width: clamp(72px, 9vw, 118px);
    height: auto;
    margin: 0 auto clamp(1.5rem, 3vw, 2.25rem);
}

.film__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: var(--step-4);
    line-height: 1.06;
    margin: 0 auto 1.25rem;
    max-width: 18ch;
}

.film__lede {
    font-size: var(--step-1);
    color: #cdd0e4;
    max-width: 56ch;
    margin: 0 auto 2.5rem;
}

.film__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* --- chapter marks, hint, skip ------------------------------------------- */

.film--ready .film__marks {
    display: flex;
    gap: 0.5rem;
    position: absolute;
    left: 50%;
    bottom: 2rem;
    transform: translateX(-50%);
    z-index: 5;
}

.film__marks li {
    width: 26px;
    height: 2px;
    background: var(--navy-line);
    transition: background-color 0.3s ease;
}
.film__marks li.is-on { background: var(--gold); }

.film--ready .film__hint {
    display: block;
    position: absolute;
    left: 50%;
    bottom: 3.5rem;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: var(--step--1);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--grey);
    transition: opacity 0.4s ease;
    z-index: 5;
}

.film--ready .film__skip {
    display: inline-block;
    position: absolute;
    right: var(--gutter);
    bottom: 2.5rem;
    padding: 0.6rem 1.1rem;
    background: transparent;
    border: 1px solid var(--navy-line);
    border-radius: 2px;
    color: var(--grey);
    font-family: var(--font-body);
    font-size: var(--step--1);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.3s ease, color 0.2s ease, border-color 0.2s ease;
    z-index: 6;
}
.film--ready .film__skip:hover { color: var(--gold); border-color: var(--gold); }

/* --- small screens ------------------------------------------------------- *
   The sequence stays, but shortened and flattened. Five screens of scroll on
   a phone is a lot to ask before anybody reaches a sentence they can act on.
   -------------------------------------------------------------------------- */

@media (max-width: 720px) {
    .film--ready .film__scroll { height: 380vh; }
    .film--ready .film__stage { perspective: 900px; }
    .act__art { max-height: 40vh; }
    .act__line { font-size: var(--step-1); }
    .act__quad { grid-template-columns: 1fr; max-width: 340px; }
    .act__panel { padding: 0.9rem 1.1rem; flex-direction: row; align-items: center; gap: 0.9rem; }
    .act__panel img { height: 18px; }
    .film--ready .film__skip { right: 50%; transform: translateX(50%); bottom: 5.5rem; }
}

/* Anyone who has asked for less movement gets the static hero, full stop. */
@media (prefers-reduced-motion: reduce) {
    .film--ready .film__scroll { height: auto; }
    .film--ready .film__stage { position: relative; height: auto; overflow: visible; perspective: none; }
    .film--ready .film__camera { position: relative; transform: none !important; }
    .film--ready .act { display: none; }
    .film--ready .act--5 {
        display: block;
        position: relative;
        top: auto;
        left: auto;
        transform: none !important;
        opacity: 1 !important;
        filter: none !important;
        width: auto;
    }
    .film--ready .act--5 .act__reveal { padding: clamp(4rem, 10vw, 8rem) var(--gutter); }
    .film--ready .film__marks,
    .film--ready .film__hint,
    .film--ready .film__skip { display: none; }
}

/* --- 25. Footer solution links -------------------------------------------- *
   The host is shown under each name so a visitor can see they are about to
   leave this site before they click, rather than after.
   -------------------------------------------------------------------------- */

.footer__list--solutions li + li { margin-top: 1rem; }

.footer__host {
    display: block;
    margin-top: 0.15rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    color: var(--grey);
}
