/* ══════════════════════════════════════════════
   Afloka Jaffa — styles
   ══════════════════════════════════════════════ */

:root {
    --navy: #0A1B2E;
    --navy-2: #0E2540;
    --navy-3: #12304F;
    --gold: #D9A441;
    --gold-soft: #E8C27A;
    --cream: #F2E9D8;
    --muted: #9FB3C8;
    --font-display: 'Suez One', serif;
    --font-body: 'Assistant', sans-serif;
    --nav-h: 72px;
    --radius: 18px;
    --shadow-deep: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
}

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

/* Author display rules (grid/flex) must never defeat the hidden attribute */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
    background: var(--navy);
    color: var(--cream);
    font-family: var(--font-body);
    font-size: 1.06rem;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; }

::selection { background: var(--gold); color: var(--navy); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.container { width: min(1180px, 92vw); margin-inline: auto; }
.section { position: relative; padding: clamp(4.5rem, 9vw, 8rem) 0; }

/* Grain overlay */
.grain {
    position: fixed; inset: 0;
    pointer-events: none;
    z-index: 2000;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ══════════ Buttons ══════════ */
.btn {
    display: inline-flex; align-items: center; gap: 0.7rem;
    padding: 0.8rem 1.5rem;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    will-change: transform;
}
.btn-lg { padding: 1rem 1.9rem; }
.btn-gold {
    background: linear-gradient(135deg, #2B6BE4, #1D4FBF);
    color: #fff;
    box-shadow: 0 12px 30px -10px rgba(43, 107, 228, 0.55);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(43, 107, 228, 0.7); }
.btn-glass {
    background: rgba(242, 233, 216, 0.08);
    border: 1px solid rgba(242, 233, 216, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.btn-glass:hover { background: rgba(242, 233, 216, 0.16); transform: translateY(-2px); }
.btn__stack { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; text-align: right; }
.btn__stack small { font-weight: 400; opacity: 0.85; font-size: 0.78rem; }
.g-icon {
    display: grid; place-items: center;
    width: 34px; height: 34px; flex: none;
    background: #fff; border-radius: 50%;
}
.btn--glow { animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe {
    0%, 100% { box-shadow: 0 12px 30px -10px rgba(43, 107, 228, 0.55); }
    50% { box-shadow: 0 12px 44px -6px rgba(43, 107, 228, 0.85); }
}

/* ══════════ Section headings ══════════ */
.section-label {
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 0.08em;
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
}
.section-label::before {
    content: "";
    display: inline-block;
    width: 34px; height: 2px;
    background: var(--gold);
    vertical-align: middle;
    margin-left: 0.6rem;
    border-radius: 2px;
}
.section-title { font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: 1.1rem; }
.section-text { color: var(--muted); max-width: 46ch; }
.link-arrow {
    display: inline-flex; align-items: center; gap: 0.5rem;
    color: var(--gold); font-weight: 700; margin-top: 1.4rem;
    transition: gap 0.25s ease;
}
.link-arrow:hover { gap: 0.9rem; }

/* ══════════ Nav ══════════ */
.nav {
    position: fixed; inset-inline: 0; top: 0;
    z-index: 1000;
    height: var(--nav-h);
    transition: transform 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}
.nav__inner { display: flex; align-items: center; gap: 2rem; height: 100%; }
.nav__logo { height: 58px; width: auto; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5)); }
.nav__links { display: flex; gap: 1.8rem; margin-inline-start: auto; }
.nav__link { font-weight: 600; opacity: 0.9; position: relative; padding: 0.3rem 0; }
.nav__link::after {
    content: ""; position: absolute; inset-inline: 0; bottom: 0;
    height: 2px; background: var(--gold); border-radius: 2px;
    transform: scaleX(0); transform-origin: center; transition: transform 0.3s ease;
}
.nav__link:hover::after { transform: scaleX(1); }
.nav__cta { font-size: 0.95rem; padding: 0.55rem 1.1rem; }
.nav__cta .g-icon { width: 28px; height: 28px; }
.nav--scrolled {
    background: rgba(10, 27, 46, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 rgba(242, 233, 216, 0.08), 0 10px 30px -18px rgba(0,0,0,0.6);
}
.nav--hidden { transform: translateY(-110%); }

.nav__burger { display: none; flex-direction: column; gap: 5px; padding: 0.6rem; z-index: 1102; }
.nav__burger span {
    width: 24px; height: 2px; background: var(--cream); border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
    position: fixed; inset: 0; z-index: 1100;
    background: rgba(8, 20, 35, 0.97);
    display: grid; place-items: center;
    opacity: 0; pointer-events: none;
    visibility: hidden; /* keeps closed-menu links out of the tab order */
    transition: opacity 0.35s ease, visibility 0.35s;
}
.nav-overlay.is-open { opacity: 1; pointer-events: auto; visibility: visible; }
.nav-overlay__links { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; }
.nav-overlay__link { font-family: var(--font-display); font-size: 2rem; }
.nav-overlay__link--gold { color: var(--gold); }
.nav-overlay__anchor { position: absolute; bottom: 2.2rem; font-size: 1.6rem; opacity: 0.4; }

/* ══════════ Hero ══════════ */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex; align-items: center;
    overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; transform-origin: center; }
.hero__scrim {
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(10,27,46,0.45) 0%, rgba(10,27,46,0.15) 35%, rgba(10,27,46,0.6) 75%, var(--navy-2) 100%),
        linear-gradient(90deg, rgba(10,27,46,0.55) 0%, rgba(10,27,46,0) 55%);
}
.hero__content { position: relative; z-index: 2; padding-top: var(--nav-h); }
.hero__logo { line-height: 0; }
.hero__logo img {
    width: clamp(240px, 32vw, 420px);
    height: auto;
    filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.55));
}
.hero__divider {
    display: flex; align-items: center; gap: 0.8rem;
    color: var(--gold); margin: 0.9rem 0 0.7rem;
    max-width: 380px;
}
.hero__divider-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.hero__tag {
    font-family: var(--font-display);
    color: var(--gold-soft);
    font-size: clamp(1.3rem, 3vw, 1.9rem);
}
.hero__sub { color: var(--cream); opacity: 0.9; max-width: 42ch; margin-top: 0.7rem; font-size: 1.12rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

.hero__quick {
    display: none;
    margin-top: 2rem;
    background: rgba(10, 27, 46, 0.55);
    border: 1px solid rgba(242, 233, 216, 0.14);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.9rem 0.4rem;
}
.quick__item {
    display: flex; flex-direction: column; align-items: center; gap: 0.45rem;
    flex: 1; color: var(--cream); font-size: 0.85rem; font-weight: 600;
}
.quick__item svg { color: var(--gold); }

.hero__social {
    position: absolute;
    inset-inline-end: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
}
.hero__social-label {
    writing-mode: vertical-rl;
    color: var(--gold-soft);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.14em;
}
.hero__social-line {
    width: 1px; height: 52px;
    background: linear-gradient(180deg, var(--gold), transparent);
}
.hero__social a {
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border-radius: 50%;
    color: var(--cream);
    background: rgba(10, 27, 46, 0.35);
    border: 1px solid rgba(242, 233, 216, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.hero__social a:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy);
    transform: translateY(-4px);
}

.hero__scroll {
    position: absolute; bottom: 7.5rem; inset-inline-start: 50%;
    transform: translateX(50%);
    z-index: 3;
    width: 46px; height: 46px;
    display: grid; place-items: center;
    border: 1px solid rgba(242, 233, 216, 0.4);
    border-radius: 50%;
    color: var(--cream);
    background: rgba(10, 27, 46, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.wave { position: absolute; bottom: -1px; inset-inline: 0; width: 100%; height: clamp(60px, 9vw, 120px); z-index: 2; }
.wave path { fill: var(--navy-2); }

/* ══════════ Atmosphere ══════════ */
/* Sections blend into one another: each background ends on the color the
   next section starts with, so there are no visible seams. */
.atmo { background: linear-gradient(180deg, var(--navy-2) 0%, var(--navy-2) 70%, var(--navy-3) 100%); }
.atmo__grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}
.atmo__media {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-deep);
    border: 1px solid rgba(217, 164, 65, 0.25);
    aspect-ratio: 16 / 11;
}
.atmo__media img { width: 100%; height: 100%; object-fit: cover; }

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    margin-top: clamp(2.5rem, 5vw, 4rem);
}
.gallery__item {
    border-radius: 14px; overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 1px solid rgba(242, 233, 216, 0.1);
    box-shadow: 0 18px 36px -18px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 0;
}
.gallery__item:hover { transform: translateY(-6px); box-shadow: 0 26px 46px -18px rgba(0, 0, 0, 0.75); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery__item:hover img { transform: scale(1.06); }

/* ══════════ Reviews ══════════ */
.reviews {
    background:
        radial-gradient(120% 90% at 50% 30%, rgba(217, 164, 65, 0.07), transparent 60%),
        linear-gradient(180deg, var(--navy-3) 0%, var(--navy-3) 65%, var(--navy-2) 100%);
}
.reviews__grid {
    display: grid;
    grid-template-columns: 1fr minmax(0, 1.6fr) 1fr;
    gap: 2rem;
    align-items: center;
}
.reviews__center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.reviews__center .section-text { margin-inline: auto; }
.reviews__center .section-label::before { display: none; }
.reviews__cta { margin-top: 1.6rem; }

.stars { display: inline-flex; align-items: center; gap: 0.3rem; margin: 0.4rem 0 1rem; }
.star { fill: rgba(242, 233, 216, 0.18); transition: fill 0.3s ease; }
.star.is-lit { fill: var(--gold); filter: drop-shadow(0 0 6px rgba(217, 164, 65, 0.6)); }

.polaroid {
    background: #F5F1E6;
    padding: 10px 10px 34px;
    border-radius: 6px;
    box-shadow: var(--shadow-deep);
    max-width: 300px;
}
.polaroid img { border-radius: 3px; aspect-ratio: 1 / 0.85; object-fit: cover; }
.polaroid--right { transform: rotate(4deg); justify-self: start; }
.polaroid--left { transform: rotate(-3deg); justify-self: end; }

/* ══════════ Location ══════════ */
.loc { background: linear-gradient(180deg, var(--navy-2) 0%, var(--navy-2) 60%, var(--navy) 100%); }
.loc__grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
.loc__rows { list-style: none; margin: 1.8rem 0; display: flex; flex-direction: column; gap: 1.1rem; }
.loc__row { display: flex; align-items: center; gap: 1rem; }
.loc__row a:hover { color: var(--gold-soft); }
.loc__icon {
    width: 46px; height: 46px; flex: none;
    display: grid; place-items: center;
    border-radius: 50%;
    color: var(--gold);
    background: rgba(217, 164, 65, 0.1);
    border: 1px solid rgba(217, 164, 65, 0.35);
}
.loc__hours { display: flex; flex-direction: column; line-height: 1.5; }
.loc__hours span:first-child { color: var(--muted); font-size: 0.9rem; }
.loc__btns { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.loc__map {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-deep);
    border: 1px solid rgba(242, 233, 216, 0.12);
    aspect-ratio: 4 / 3.4;
    background: var(--navy-3);
}
.loc__map iframe { width: 100%; height: 100%; border: 0; display: block; }
.loc__fallback {
    position: absolute; bottom: 0.8rem; inset-inline-start: 0.8rem;
    background: rgba(10, 27, 46, 0.85);
    color: var(--cream);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem; font-weight: 600;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* ══════════ Footer ══════════ */
.footer { background: var(--navy); padding-top: 0; }
.footer__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.9fr 1.4fr;
    gap: 2.5rem;
    padding: 3.5rem 0 2.5rem;
}
.footer__logo { height: 106px; width: auto; margin-bottom: 1rem; opacity: 0.92; }
.footer__brand p { color: var(--muted); }
.footer__col { display: flex; flex-direction: column; gap: 0.55rem; }
.footer__col h3 { color: var(--gold-soft); font-size: 1.15rem; margin-bottom: 0.5rem; }
.footer__col a, .footer__col span { color: var(--muted); }
.footer__col [dir="ltr"] { text-align: right; }
.footer__col a:hover { color: var(--cream); }
.footer__col p { color: var(--muted); font-size: 0.95rem; }

.footer__social { display: flex; gap: 0.7rem; margin-top: 1.1rem; }
.footer__social a {
    width: 42px; height: 42px;
    display: grid; place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(242, 233, 216, 0.2);
    color: var(--cream);
    transition: background 0.25s ease, transform 0.25s ease, color 0.25s ease;
}
.footer__social a:hover { background: var(--gold); color: var(--navy); transform: translateY(-3px); }

.footer__bottom {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem;
    padding: 1.4rem 0 1.8rem;
    border-top: 1px solid rgba(242, 233, 216, 0.08);
    color: var(--muted);
    font-size: 0.9rem;
}
.footer__anchor { display: inline-block; font-size: 1.2rem; opacity: 0.6; }

/* ══════════ Lightbox / Toast / Preloader ══════════ */
.lightbox {
    position: fixed; inset: 0; z-index: 1500;
    background: rgba(6, 15, 27, 0.95);
    display: grid; place-items: center;
    padding: 4vmin;
}
.lightbox img {
    max-width: min(92vw, 1200px);
    max-height: 86vh;
    width: auto; height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow-deep);
}
.lightbox__close {
    position: absolute; top: 1.2rem; inset-inline-end: 1.4rem;
    width: 48px; height: 48px;
    display: grid; place-items: center;
    font-size: 1.3rem;
    color: var(--cream);
    border: 1px solid rgba(242, 233, 216, 0.3);
    border-radius: 50%;
    background: rgba(10, 27, 46, 0.5);
}

.preloader {
    position: fixed; inset: 0; z-index: 3000;
    display: grid; place-items: center;
    pointer-events: none;
}
.preloader__half {
    position: absolute; inset-block: 0;
    width: 51%;
    background: var(--navy);
}
.preloader__half--right { inset-inline-end: 0; }
.preloader__half--left { inset-inline-start: 0; }
.preloader__logo { position: relative; z-index: 2; width: 150px; }
.preloader__logo img { width: 100%; opacity: 0.22; }
.preloader__logo .preloader__fill {
    position: absolute; inset: 0;
    overflow: hidden;
    clip-path: inset(100% 0 0 0);
}
.preloader__logo .preloader__fill img { opacity: 1; }

/* ══════════ Responsive ══════════ */
@media (max-width: 880px) {
    .nav__links, .nav__cta { display: none; }
    .nav__burger { display: flex; }
    .nav__logo { height: 44px; }

    .hero { text-align: center; }
    .hero__content { display: flex; flex-direction: column; align-items: center; padding-bottom: 6rem; }
    .hero__title { justify-content: center; }
    .hero__divider { width: 70%; }
    .hero__ctas { justify-content: center; flex-direction: column; width: 100%; max-width: 420px; }
    .hero__ctas .btn { justify-content: center; }
    .hero__quick { display: flex; width: 100%; max-width: 420px; }
    .hero__scroll { display: none; }

    /* Social rail becomes a compact centered block in the hero flow:
       label on its own line, icons in a short row (clear of the fixed
       accessibility button in the corner) */
    .hero__social {
        position: static;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 1.6rem;
        row-gap: 0.7rem;
    }
    .hero__social-label { writing-mode: horizontal-tb; flex-basis: 100%; text-align: center; }
    .hero__social-line { display: none; }
    .hero__social a { width: 42px; height: 42px; }

    .atmo__grid, .loc__grid { grid-template-columns: 1fr; }
    .atmo__media { order: -1; }

    .gallery {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 72%;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 1rem;
        -webkit-overflow-scrolling: touch;
    }
    .gallery__item { scroll-snap-align: center; }

    /* All three location actions share one row */
    .loc__btns { flex-wrap: nowrap; }
    .loc__btns .btn {
        flex: 1;
        justify-content: center;
        padding: 0.8rem 0.4rem;
        font-size: 0.95rem;
        white-space: nowrap;
    }

    .reviews__grid { grid-template-columns: 1fr; }
    .polaroid { max-width: 240px; margin-inline: auto; }
    .polaroid--right { order: 2; transform: rotate(4deg) translateY(-1.2rem); }
    .polaroid--left { order: 3; margin-top: -3.5rem; transform: rotate(-4deg) translateX(-3rem); }

    .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer__bottom { flex-direction: column; text-align: center; gap: 0.4rem; }
}

/* ══════════ Accessibility widget & modes ══════════ */
.visually-hidden {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: fixed; top: 0.6rem; inset-inline-start: 0.6rem;
    z-index: 4000;
    background: var(--gold); color: var(--navy);
    font-weight: 700;
    padding: 0.7rem 1.3rem;
    border-radius: 999px;
    transform: translateY(-300%);
}
.skip-link:focus { transform: translateY(0); }

.a11y { position: fixed; bottom: 1.2rem; inset-inline-end: 1.2rem; z-index: 2500; }
.a11y__btn {
    width: 52px; height: 52px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: #1D4FBF; color: #fff;
    box-shadow: 0 10px 26px -8px rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.35);
}
.a11y__btn:hover { background: #2B6BE4; }
.a11y__panel {
    position: absolute; bottom: 62px; inset-inline-end: 0;
    width: min(280px, 84vw);
    background: #10263F;
    border: 1px solid rgba(242, 233, 216, 0.2);
    border-radius: 14px;
    box-shadow: var(--shadow-deep);
    padding: 0.9rem;
    display: flex; flex-direction: column; gap: 0.35rem;
}
.a11y__title { font-size: 1.15rem; color: var(--gold-soft); margin-bottom: 0.35rem; }
.a11y__row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 0.8rem;
    width: 100%;
    text-align: start;
    padding: 0.55rem 0.7rem;
    border-radius: 9px;
    color: var(--cream);
    background: rgba(242, 233, 216, 0.06);
    font-size: 0.98rem;
}
.a11y__row:hover { background: rgba(242, 233, 216, 0.13); }
.a11y__state::after { content: "כבוי"; color: var(--muted); font-size: 0.85rem; }
.a11y__toggle[aria-pressed="true"] { background: rgba(217, 164, 65, 0.2); }
.a11y__toggle[aria-pressed="true"] .a11y__state::after { content: "פעיל"; color: var(--gold-soft); font-weight: 700; }
.a11y__fontbtns { display: flex; gap: 0.4rem; }
.a11y__font {
    min-width: 42px;
    padding: 0.25rem 0.5rem;
    border-radius: 7px;
    background: rgba(242, 233, 216, 0.12);
    font-weight: 700;
}
.a11y__font:hover { background: rgba(242, 233, 216, 0.22); }
.a11y__link { color: var(--gold-soft); text-decoration: underline; }

/* Mode: font scaling */
html.a11y-font-1 { font-size: 112.5%; }
html.a11y-font-2 { font-size: 125%; }

/* Mode: high contrast */
html.a11y-contrast {
    --navy: #000;
    --navy-2: #000;
    --navy-3: #000;
    --cream: #fff;
    --muted: #fff;
    --gold: #ffd52e;
    --gold-soft: #ffd52e;
}
html.a11y-contrast .hero__scrim {
    background: linear-gradient(180deg, rgba(0,0,0,0.75), rgba(0,0,0,0.75) 75%, #000 100%);
}
html.a11y-contrast .grain { display: none; }
/* Surfaces styled with color literals must also go black in this mode */
html.a11y-contrast .nav--scrolled,
html.a11y-contrast .legal-nav,
html.a11y-contrast .nav-overlay,
html.a11y-contrast .lightbox,
html.a11y-contrast .hero__quick,
html.a11y-contrast .a11y__panel { background: #000; }
html.a11y-contrast .btn-glass,
html.a11y-contrast .hero__social a,
html.a11y-contrast .a11y__row { background: #111; border-color: #fff; }
html.a11y-contrast .btn-gold,
html.a11y-contrast .a11y__btn { background: #0a2fbf; }

/* Mode: grayscale media */
html.a11y-grayscale img,
html.a11y-grayscale iframe,
html.a11y-grayscale .polaroid,
html.a11y-grayscale .g-icon svg { filter: grayscale(1); }

/* Mode: highlight links */
html.a11y-links a { text-decoration: underline !important; text-underline-offset: 3px; }

/* Mode: readable font */
html.a11y-readable body,
html.a11y-readable h1, html.a11y-readable h2, html.a11y-readable h3 {
    font-family: Arial, Helvetica, sans-serif !important;
    letter-spacing: 0.01em;
}

/* Mode: stop animations (JS also skips motion init on reload) */
html.a11y-no-motion *, html.a11y-no-motion *::before, html.a11y-no-motion *::after {
    animation: none !important;
    transition: none !important;
}

/* ══════════ Legal pages ══════════ */
.legal-main {
    padding: calc(var(--nav-h) + 2.5rem) 0 4rem;
    max-width: 820px;
    margin-inline: auto;
    width: 92vw;
}
.legal-main h1 { font-size: clamp(2rem, 5vw, 3rem); color: var(--cream); margin-bottom: 0.4rem; }
.legal-main .legal-updated { color: var(--muted); font-size: 0.95rem; margin-bottom: 2.2rem; }
.legal-main h2 { font-size: 1.45rem; color: var(--gold-soft); margin: 2.2rem 0 0.7rem; }
.legal-main p, .legal-main li { color: var(--cream); opacity: 0.92; margin-bottom: 0.7rem; }
.legal-main ul { padding-inline-start: 1.4rem; margin-bottom: 0.9rem; }
.legal-main a { color: var(--gold-soft); text-decoration: underline; text-underline-offset: 3px; }
.legal-main strong { color: var(--cream); }
.legal-nav {
    position: fixed; top: 0; inset-inline: 0; z-index: 1000;
    height: var(--nav-h);
    display: flex; align-items: center;
    background: rgba(10, 27, 46, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(242, 233, 216, 0.08);
}
.legal-nav .container { display: flex; align-items: center; justify-content: space-between; }
.legal-nav img { height: 44px; }
.legal-nav a.back { color: var(--gold-soft); font-weight: 700; }
.legal-footer {
    border-top: 1px solid rgba(242, 233, 216, 0.08);
    color: var(--muted);
    text-align: center;
    padding: 1.4rem 0;
    font-size: 0.9rem;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; justify-content: center; }
.footer__legal a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.footer__legal a:hover { color: var(--cream); }

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