/* ============================================================
   NEXTMERE PORTFOLIO — MAIN STYLESHEET
   Design language: editorial dark — gold on layered charcoal.
   Display: Fraunces (serif)  ·  Body/UI: Inter (sans)
   Rewritten 2026: tokenised, de-shadowed, no !important wars.
   ============================================================ */

/* ---------- 1. SELF-HOSTED FONTS (latin, woff2) ---------- */
@font-face{font-family:'Inter';font-style:normal;font-weight:300;font-display:swap;src:url('../fonts/inter-300.woff2') format('woff2');}
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/inter-400.woff2') format('woff2');}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/inter-500.woff2') format('woff2');}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/inter-600.woff2') format('woff2');}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/inter-700.woff2') format('woff2');}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/fraunces-600.woff2') format('woff2');}

/* ---------- 2. DESIGN TOKENS ---------- */
:root{
    /* Brand — rose gold. --gold-rgb is the single source: everything below
       derives from it, so a rebrand is a one-line edit. */
    --gold-rgb:241,209,151;
    --gold:rgb(var(--gold-rgb));
    --gold-bright:#FBE7BE;
    --gold-tint:rgba(var(--gold-rgb),.10);
    --gold-line:rgba(var(--gold-rgb),.32);

    /* Canvas — layered near-blacks */
    --bg:#0B0B0D;
    --surface-1:#141417;
    --surface-2:#1C1C21;

    /* Ink */
    --ink:#FFFFFF;
    --ink-1:rgba(255,255,255,.92);
    --ink-2:rgba(255,255,255,.72);
    --ink-3:rgba(255,255,255,.52);

    /* Hairlines */
    --line:rgba(255,255,255,.10);
    --line-2:rgba(255,255,255,.18);

    /* Type */
    --font-display:'Fraunces',Georgia,'Times New Roman',serif;
    --font-body:'Inter','Segoe UI',system-ui,-apple-system,BlinkMacSystemFont,sans-serif;

    /* Radius */
    --radius-sm:10px;
    --radius:14px;
    --radius-lg:18px;
    --pill:999px;

    /* Elevation — one consistent scale */
    --shadow-1:0 2px 10px rgba(0,0,0,.35);
    --shadow-2:0 12px 34px rgba(0,0,0,.45);
    --shadow-3:0 22px 60px rgba(0,0,0,.55);
    --shadow-gold:0 10px 28px rgba(var(--gold-rgb),.26);

    /* Section rhythm */
    --section-pad:clamp(4rem,8vw,7rem);
}

/* ---------- 3. RESET & BASE ---------- */
*{margin:0;padding:0;box-sizing:border-box;}

html{
    scroll-behavior:smooth;
    scroll-padding-top:90px;
    font-size:16px;
    -webkit-text-size-adjust:100%;
}

body{
    font-family:var(--font-body);
    color:var(--ink-2);
    line-height:1.65;
    background-color:var(--bg);
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
    /* Gentle first-paint fade (instant under reduced-motion, see §16) */
    opacity:0;
    animation:fadeIn .5s ease-in forwards;
}

@keyframes fadeIn{to{opacity:1;}}

h1,h2,h3,h4,h5,h6{
    font-family:var(--font-body);
    color:var(--ink);
    font-weight:600;
    line-height:1.2;
    margin-bottom:1rem;
}

/* Display serif reserved for the big editorial moments */
h1,h2,
.section-title,
.education-title{
    font-family:var(--font-display);
    font-weight:600;
    letter-spacing:-.015em;
    line-height:1.1;
}

h1{font-size:clamp(2.4rem,5vw + 1rem,3.8rem);}
h2{font-size:clamp(1.9rem,3vw + 1rem,2.6rem);}
h3{font-size:clamp(1.25rem,1.2vw + .85rem,1.5rem);}

p{margin-bottom:1rem;color:var(--ink-2);}

a{
    text-decoration:none;
    color:var(--gold);
    transition:color .2s ease;
}
a:hover{color:var(--gold-bright);}

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

::selection{background:var(--gold);color:#0B0B0D;}

/* ---------- 4. UTILITIES ---------- */
.container{
    max-width:1240px;
    margin:0 auto;
    padding:0 1.5rem;
}

.section-title{
    text-align:center;
    font-size:clamp(2rem,3.2vw + 1rem,2.9rem);
    margin-bottom:.75rem;
    color:var(--ink);
}

.section-subtitle{
    text-align:center;
    font-size:clamp(1.05rem,1vw + .85rem,1.3rem);
    color:var(--ink-2);
    max-width:680px;
    margin:0 auto 3.5rem;
    line-height:1.6;
}

/* ---------- 5. HEADER & NAV ---------- */
#header{
    background-color:var(--bg);
    border-bottom:1px solid var(--line);
    position:fixed;
    top:0;left:0;right:0;
    z-index:1000;
}

.navbar{
    display:grid;
    grid-template-columns:10% 10% 60% 20%;
    align-items:center;
    width:100%;
}

.logo{grid-column:1;}
.logo a{
    display:block;
    padding:.9rem 0 .9rem 2rem;
    color:var(--ink);
    font-weight:600;
    letter-spacing:.5px;
}
.logo a:hover{color:var(--gold);}

.nav-menu{
    grid-column:3;
    display:flex;
    list-style:none;
    justify-content:space-evenly;
    align-items:center;
    width:100%;
}

.nav-link{
    position:relative;
    color:var(--ink-2);
    font-size:1.02rem;
    font-weight:500;
    padding:.45rem 0;
    white-space:nowrap;
    transition:color .2s ease;
}
/* Animated gold underline — doubles as the scroll-spy .active indicator */
.nav-link::after{
    content:'';
    position:absolute;
    left:0;right:0;bottom:-2px;
    height:2px;
    border-radius:2px;
    background:var(--gold);
    transform:scaleX(0);
    transform-origin:left center;
    transition:transform .25s ease;
}
.nav-link:hover,
.nav-link.active{color:var(--ink);}
.nav-link:hover::after,
.nav-link.active::after{transform:scaleX(1);}

/* External "Our Education Site" link — diagonal arrow at top-right */
.nav-link-external{
    display:inline-flex;
    align-items:flex-start;
    gap:.12em;
    color:var(--gold);
}
.nav-link-external:hover{color:var(--gold-bright);}
.ext-arrow{
    flex-shrink:0;
    width:.62em;height:.62em;
    transform:translateY(.06em);
    transition:transform .25s ease;
}
.nav-link-external:hover .ext-arrow{transform:translate(.12em,-.12em);}

.nav-cta{
    grid-column:4;
    display:flex;
    justify-content:center;
    align-items:center;
}
.nav-cta-button{
    display:inline-block;
    background:transparent;
    color:var(--gold);
    padding:.55rem 1.5rem;
    font-size:.95rem;
    font-weight:600;
    border:1.5px solid var(--gold);
    border-radius:var(--pill);
    white-space:nowrap;
    transition:background .25s ease,color .25s ease,border-color .25s ease,transform .25s ease,box-shadow .25s ease;
}
.nav-cta-button:hover{
    background:var(--gold);
    color:#0B0B0D;
    border-color:var(--gold);
    transform:translateY(-2px);
    box-shadow:var(--shadow-1);
}

/* Hamburger (mobile only) */
.hamburger{
    display:none;
    flex-direction:column;
    gap:5px;
    cursor:pointer;
}
.hamburger span{
    width:25px;height:3px;
    background-color:var(--ink);
    border-radius:2px;
    transition:all .3s ease;
}

/* ---------- 6. BUTTONS ---------- */
.cta-button{
    display:inline-flex;
    align-items:center;
    gap:.5rem;
    background:var(--gold);
    color:#0B0B0D;
    padding:.95rem 2.2rem;
    font-family:var(--font-body);
    font-size:1.05rem;
    font-weight:600;
    border:1.5px solid var(--gold);
    border-radius:var(--pill);
    cursor:pointer;
    transition:background .25s ease,color .25s ease,border-color .25s ease,transform .25s ease,box-shadow .25s ease;
}
.cta-button:hover{
    background:var(--gold-bright);
    border-color:var(--gold-bright);
    color:#0B0B0D;
    transform:translateY(-2px);
    box-shadow:var(--shadow-gold);
}
.cta-button:active{transform:translateY(0) scale(.99);}

.cta-button-secondary{
    background:transparent;
    color:var(--ink);
    /* >=3:1 vs the dark hero bg so the outline reads as a button (WCAG 1.4.11) */
    border:1.5px solid rgba(255,255,255,.45);
}
.cta-button-secondary:hover{
    background:rgba(255,255,255,.06);
    color:var(--ink);
    border-color:var(--ink-2);
    box-shadow:none;
}

/* ---------- 7. HERO (split: video left, content right) ---------- */
.hero{
    position:relative;
    min-height:100vh;
    overflow:hidden;
}
.hero-container{
    display:grid;
    grid-template-columns:1fr 1fr;
    width:100%;
    min-height:100vh;
}
.hero-video-wrapper{
    position:relative;
    width:100%;height:100%;
    overflow:hidden;
}
.hero-video{
    width:100%;height:100%;
    object-fit:cover;
    object-position:center;
}
.hero-content{
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    padding:clamp(2rem,5vw,5rem);
    background-color:var(--bg);
}
.hero h1{
    color:var(--ink);
    font-size:clamp(2.8rem,6vw + 1rem,4.4rem);
    margin-bottom:1rem;
}
.tagline{
    font-size:clamp(1.2rem,1.4vw + .8rem,1.7rem);
    font-weight:300;
    color:var(--ink-2);
    margin-bottom:1.6rem;
}
.hero-description{
    font-size:1.2rem;
    color:var(--ink-2);
    line-height:1.8;
    max-width:600px;
    margin-bottom:2.5rem;
}
.hero-buttons{
    display:flex;
    gap:1rem;
    justify-content:center;
    flex-wrap:wrap;
}

/* ---------- 8. SHARED SECTION SHELL ---------- */
.services,
.platforms,
.portfolio,
.education-callout,
.contact{
    position:relative;
    padding:var(--section-pad) 0;
    background-color:var(--bg);
    border-top:1px solid var(--line);
}

/* ---------- 9. SERVICES ---------- */
.services-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:1.5rem;
    margin-top:3.5rem;
}
.service-card{
    position:relative;
    background:var(--surface-1);
    border:1px solid var(--line);
    border-radius:var(--radius);
    padding:2.5rem 2rem;
    text-align:center;
    min-height:360px;
    display:flex;
    flex-direction:column;
    align-items:center;
    transition:transform .3s ease,border-color .3s ease,background .3s ease,box-shadow .3s ease;
}
.service-card:hover{
    transform:translateY(-6px);
    border-color:var(--gold-line);
    background:var(--surface-2);
    box-shadow:var(--shadow-2);
}
.service-icon{
    margin-bottom:1.5rem;
    display:flex;
    align-items:center;
    justify-content:center;
}
.service-icon svg{
    width:56px;height:56px;
    color:var(--gold);            /* tamed: one accent, no rainbow */
    transition:transform .3s ease;
}
.service-card:hover .service-icon svg{transform:scale(1.08);}

.service-card h3{
    color:var(--ink);
    font-size:1.3rem;
    font-weight:600;
    margin-bottom:1.25rem;
}
.service-list{
    list-style:none;
    width:100%;
    text-align:left;
}
.service-list li{
    display:flex;
    align-items:flex-start;
    gap:.75rem;
    margin-bottom:1rem;
    color:var(--ink-2);
    font-size:1rem;
    line-height:1.55;
}
.service-list li:last-child{margin-bottom:0;}
.service-list li svg{
    flex-shrink:0;
    width:20px;height:20px;
    color:rgba(255,255,255,.55);  /* soft white checks beside the gold icon */
    margin-top:2px;
    transition:color .3s ease;
}
.service-card:hover .service-list li svg{color:var(--gold);}
.service-list li span{flex:1;}

/* ---------- 10. PLATFORMS ---------- */
.platforms-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:1.5rem;
    margin-top:3rem;
}
.platform-card{
    position:relative;
    background:var(--surface-1);
    border:1px solid var(--line);
    border-radius:var(--radius);
    padding:2.5rem 1.5rem;
    text-align:center;
    aspect-ratio:1 / 1;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    transition:transform .3s ease,border-color .3s ease,background .3s ease,box-shadow .3s ease;
}
.platform-card:hover{
    transform:translateY(-6px);
    border-color:var(--gold-line);
    background:var(--surface-2);
    box-shadow:var(--shadow-2);
}
.platform-icon{
    margin-bottom:1rem;
    display:flex;
    align-items:center;
    justify-content:center;
    transform:scale(2);            /* preserve existing logo sizing */
    transform-origin:center;
}
.platform-card h3{
    color:var(--ink);
    font-size:1.2rem;
    font-weight:600;
    margin-top:1.6rem;
    margin-bottom:0;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.platform-card p{display:none;}

/* ---------- 11. PORTFOLIO / OUR WORK ---------- */
.portfolio-list{
    display:flex;
    flex-direction:column;
    gap:2rem;
    max-width:820px;
    margin:0 auto;
}
.portfolio-link-item{
    background:var(--surface-1);
    border:1px solid var(--line);
    border-radius:var(--radius);
    padding:2.75rem;
    text-align:center;
    transition:transform .3s ease,border-color .3s ease,box-shadow .3s ease;
}
.portfolio-link-item:hover{
    transform:translateY(-5px);
    border-color:var(--gold-line);
    box-shadow:var(--shadow-2);
}
.portfolio-link-item h3{
    color:var(--ink);
    font-size:1.8rem;
    font-weight:600;
    margin-bottom:1rem;
}
.portfolio-link-item .project-description{
    color:var(--ink-2);
    font-size:1.05rem;
    line-height:1.65;
    margin-bottom:1.75rem;
}
.project-link{
    display:inline-flex;
    align-items:center;
    gap:.5rem;
    color:#0B0B0D;
    font-size:1.05rem;
    font-weight:600;
    padding:.85rem 2.2rem;
    background:var(--gold);
    border:1.5px solid var(--gold);
    border-radius:var(--pill);
    transition:background .25s ease,border-color .25s ease,color .25s ease,transform .25s ease,box-shadow .25s ease;
}
.project-link:hover{
    background:var(--gold-bright);
    border-color:var(--gold-bright);
    color:#0B0B0D;
    transform:translateY(-2px);
    box-shadow:var(--shadow-gold);
}

/* ---------- 12. EDUCATION CALLOUT ---------- */
.education-card{
    max-width:760px;
    margin:0 auto;
    text-align:center;
    padding:3.5rem 2.5rem;
    border:1px solid var(--gold-line);
    border-radius:var(--radius-lg);
    background:linear-gradient(180deg,var(--gold-tint),rgba(255,255,255,.02));
    box-shadow:var(--shadow-3);
}
.education-eyebrow{
    display:inline-block;
    font-size:.78rem;
    font-weight:700;
    letter-spacing:2px;
    text-transform:uppercase;
    color:var(--gold);
    border:1px solid var(--gold-line);
    background:var(--gold-tint);
    padding:.35rem .85rem;
    border-radius:var(--pill);
    margin-bottom:1.4rem;
}
.education-title{
    color:var(--ink);
    font-size:clamp(1.9rem,3vw + 1rem,2.6rem);
    margin:0 0 1rem;
}
.education-text{
    color:var(--ink-2);
    font-size:1.12rem;
    line-height:1.7;
    max-width:560px;
    margin:0 auto 2.25rem;
}
.education-btn{
    display:inline-flex;
    align-items:center;
    gap:.5rem;
    color:#0B0B0D;
    font-size:1.1rem;
    font-weight:700;
    padding:.95rem 2.4rem;
    background:var(--gold);
    border:2px solid var(--gold);
    border-radius:var(--pill);
    transition:transform .25s ease,box-shadow .25s ease,background .25s ease;
}
.education-btn:hover{
    background:var(--gold-bright);
    border-color:var(--gold-bright);
    color:#0B0B0D;
    transform:translateY(-2px);
    box-shadow:var(--shadow-gold);
}
.education-btn .ext-arrow{
    width:1em;height:1em;
    align-self:flex-start;
    transform:translateY(-.05em);
}
.education-btn:hover .ext-arrow{transform:translate(.15em,-.2em);}

/* ---------- 13. CONTACT / FORM ---------- */
.contact .section-subtitle a{color:var(--gold);}
.contact .section-subtitle a:hover{color:var(--gold-bright);}

.contact-content{
    display:flex;
    justify-content:center;
    margin-top:3rem;
}
.contact-form-wrapper{
    background:var(--surface-1);
    border:1px solid var(--line);
    padding:2.5rem;
    border-radius:var(--radius);
    box-shadow:var(--shadow-2);
    width:100%;
    max-width:1100px;
}
.contact-form{
    display:flex;
    flex-direction:column;
    gap:1.5rem;
}
.form-row{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:1.5rem;
}
.form-group{
    display:flex;
    flex-direction:column;
}
.form-group label{
    color:var(--ink);
    font-weight:600;
    margin-bottom:.5rem;
    font-size:.95rem;
}
.form-group input,
.form-group select,
.form-group textarea{
    padding:.8rem .9rem;
    /* >=3:1 vs both the card and the field fill (WCAG 1.4.11 non-text contrast) */
    border:1.5px solid rgba(255,255,255,.42);
    border-radius:var(--radius-sm);
    font-size:1rem;
    font-family:inherit;
    background:rgba(255,255,255,.05);
    color:var(--ink);
    transition:border-color .25s ease,background .25s ease,box-shadow .25s ease;
}
.form-group input::placeholder,
.form-group textarea::placeholder{color:var(--ink-3);}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{
    outline:none;
    border-color:var(--gold);
    background:rgba(255,255,255,.08);
    box-shadow:0 0 0 3px var(--gold-tint);
}
.form-group textarea{
    resize:vertical;
    min-height:120px;
}

.checkbox-group{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:1rem;
    margin-top:.5rem;
}
.checkbox-label{
    display:flex;
    align-items:center;
    gap:.5rem;
    cursor:pointer;
    padding:.5rem;
    border-radius:var(--radius-sm);
    transition:background-color .25s ease;
}
.checkbox-label:hover{background:rgba(255,255,255,.06);}
.checkbox-label input[type="checkbox"]{
    width:18px;height:18px;
    accent-color:var(--gold);
    cursor:pointer;
    flex-shrink:0;
}
.checkbox-label span{
    color:var(--ink-2);
    font-size:.9rem;
    line-height:1.3;
}

.privacy-agreement{
    display:flex;
    align-items:flex-start;
    padding:0;
}
.privacy-agreement input[type="checkbox"]{margin-top:.2rem;}
.privacy-agreement span{
    font-size:.9rem;
    line-height:1.5;
}
.privacy-agreement a{
    color:var(--gold);
    text-decoration:underline;
    text-underline-offset:2px;
    font-weight:600;
}
.privacy-agreement a:hover{color:var(--gold-bright);}

.submit-button{
    background:var(--gold);
    color:#0B0B0D;
    padding:1rem 2.2rem;
    border:none;
    border-radius:var(--pill);
    font-size:1.05rem;
    font-weight:600;
    cursor:pointer;
    margin-top:1rem;
    width:fit-content;
    align-self:flex-start;
    transition:background .25s ease,transform .25s ease,box-shadow .25s ease,opacity .25s ease;
}
.submit-button:disabled{
    background:#3a3a3e;
    color:#86868b;
    cursor:not-allowed;
    opacity:1;
}
.submit-button:not(:disabled):hover{
    background:var(--gold-bright);
    transform:translateY(-2px);
    box-shadow:var(--shadow-gold);
}
.submit-button:active{transform:translateY(0) scale(.99);}

/* Inline field-validation message (created by form-handler.js with a dark
   inline colour that is invisible on the dark form — override to a readable red). */
.error-message{
    color:#ff8a8a !important;
    font-size:.85rem;
    margin-top:.3rem;
}

.form-status{
    padding:1rem;
    border-radius:var(--radius-sm);
    text-align:center;
    font-weight:500;
    display:none;
}
.form-status.success{
    background:rgba(46,204,113,.15);
    color:#4cd787;
    border:1px solid rgba(46,204,113,.5);
    display:block;
}
.form-status.error{
    background:rgba(244,67,54,.15);
    color:#ff7a7a;
    border:1px solid rgba(244,67,54,.5);
    display:block;
}

/* ---------- 14. FOOTER & BACK-TO-TOP ---------- */
.footer{
    background-color:var(--bg);
    border-top:1px solid var(--line);
    color:var(--ink-2);
    padding:2rem 0;
    text-align:center;
}
.footer p{color:var(--ink-3);margin:0;}
.footer-content{
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:1rem;
}

.back-to-top-fixed{
    position:fixed;
    bottom:30px;right:30px;
    width:48px;height:48px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:var(--surface-2);
    color:var(--gold);
    border:1px solid var(--gold-line);
    border-radius:50%;
    box-shadow:var(--shadow-2);
    opacity:0;
    visibility:hidden;
    transition:opacity .3s ease,visibility .3s ease,transform .3s ease,background .3s ease,color .3s ease;
    z-index:999;
    cursor:pointer;
}
.back-to-top-fixed.show{opacity:1;visibility:visible;}
.back-to-top-fixed:hover{
    transform:translateY(-4px);
    background:var(--gold);
    color:#0B0B0D;
    border-color:var(--gold);
}
.back-to-top-fixed svg{width:22px;height:22px;}

/* ---------- 15. PRIVACY PAGES ---------- */
.privacy-page{
    padding:8rem 0 4rem;
    min-height:100vh;
    background-color:var(--bg);
}
.privacy-page h1{
    color:var(--ink);
    font-size:clamp(2.2rem,4vw + 1rem,3rem);
    margin-bottom:.5rem;
    text-align:center;
}
.last-updated{
    text-align:center;
    color:var(--ink-3);
    font-style:italic;
    margin-bottom:3rem;
}
.privacy-content{
    max-width:900px;
    margin:0 auto;
    background:var(--surface-1);
    border:1px solid var(--line);
    padding:3rem;
    border-radius:var(--radius);
    box-shadow:var(--shadow-2);
}
.privacy-content h2{
    color:var(--ink);
    font-size:1.6rem;
    margin-top:2rem;
    margin-bottom:1rem;
    border-bottom:1px solid var(--gold-line);
    padding-bottom:.5rem;
}
.privacy-content h2:first-child{margin-top:0;}
.privacy-content p{
    line-height:1.8;
    margin-bottom:1rem;
    color:var(--ink-2);
}
.privacy-content ul{
    margin-left:2rem;
    margin-bottom:1.5rem;
    line-height:1.8;
}
.privacy-content li{
    margin-bottom:.5rem;
    color:var(--ink-2);
}
.privacy-content strong{color:var(--ink);}
.privacy-content a{color:var(--gold);text-decoration:underline;text-underline-offset:2px;}
.privacy-content a:hover{color:var(--gold-bright);}

.back-to-home{
    text-align:center;
    margin-top:3rem;
}

/* ---------- 16. ANIMATIONS ---------- */
.fade-in-up{
    opacity:0;
    transform:translateY(40px);
    transition:opacity .8s ease-out,transform .8s ease-out;
}
.fade-in-up.visible{
    opacity:1;
    transform:translateY(0);
}
.fade-in-text{
    opacity:0;
    transform:translateY(28px);
    transition:opacity .8s ease-out,transform .8s ease-out;
}
.fade-in-text.visible{opacity:1;transform:translateY(0);}
.fade-in-text:nth-child(1).visible{transition-delay:.1s;}
.fade-in-text:nth-child(2).visible{transition-delay:.3s;}
.fade-in-text:nth-child(3).visible{transition-delay:.5s;}
.fade-in-text:nth-child(4).visible{transition-delay:.7s;}

/* ---------- 17. ACCESSIBILITY ---------- */
/* Keyboard-only focus ring in high-contrast gold (visible on charcoal). */
*:focus-visible,
a:focus-visible,
button:focus-visible{
    outline:2px solid var(--gold);
    outline-offset:2px;
}
*:focus:not(:focus-visible){outline:none;}

.skip-to-main{
    position:absolute;
    left:-9999px;
    z-index:1100;
    padding:1em;
    background-color:var(--surface-2);
    color:var(--ink);
    border:1px solid var(--gold-line);
    text-decoration:none;
}
.skip-to-main:focus{
    left:50%;
    transform:translateX(-50%);
    top:0;
}

/* Honour reduced-motion: no fades, no transitions */
@media (prefers-reduced-motion:reduce){
    *,*::before,*::after{
        animation-duration:.01ms !important;
        animation-iteration-count:1 !important;
        transition-duration:.01ms !important;
    }
    body{opacity:1;animation:none;}
    .fade-in-up,.fade-in-text{opacity:1;transform:none;}
}

/* ---------- 18. PRINT ---------- */
@media print{
    .no-print,header,footer,.back-to-top-fixed,.hero-arrow{display:none !important;}
    /* Repoint the colour tokens rather than listing selectors: every rule on
       every page reads through these, so light-on-dark text and the brand gold
       (1.5:1 on white) all turn black without an allowlist to keep in sync. */
    :root{
        --ink:#000;--ink-1:#000;--ink-2:#000;--ink-3:#000;
        --gold:#000;--gold-bright:#000;--gold-line:#000;
    }
    body{background:#fff;color:#000;opacity:1;animation:none;}
    a{text-decoration:underline;}
    a[href]:after{content:" (" attr(href) ")";}
}

/* Disable Picture-in-Picture / cue overlays on the hero video */
.hero-video::-webkit-media-controls-picture-in-picture-button{display:none !important;}
.hero-video::cue{display:none;}
