/* Brandbook edition 2: preserve the current composition and type scale. */
:root {
    --accent-bright: var(--brand-accent);
    --accent: var(--brand-accent);
    --accent-hover: var(--brand-accent-hover);
    --brand-black: #000;
    --brand-white: #fffdf8;
    --brand-orange: var(--brand-accent);
    --brand-orange-deep: var(--brand-accent-hover);
    --brand-clay: #f3e1d2;
}

[hidden] { display: none !important; }
strong, b { font-weight: 600; }

/* Retain the light hero buttons rather than recolouring every CTA. */
.button-dark:hover, .button-dark:focus-visible {
    background: var(--accent-hover);
    color: var(--accent-ink);
}
.editorial-hero .button-dark:hover,
.editorial-hero .button-dark:focus-visible {
    background: #eee8de;
    color: #111315;
}
.content-detail-hero .button-dark:hover,
.content-detail-hero .button-dark:focus-visible {
    background: #ddd;
    color: #000;
}
.refined-contact-form button[type="submit"]:focus-visible {
    background: var(--brand-orange-deep);
    color: #fff;
}

/* Optional palette support, without substituting any existing page surface. */
.surface-clay { background: var(--brand-clay); color: #111315; }
.surface-clay :is(p, small, label) { color: #111315; }

/* The toggle controls the disclosure, not focus or CSS hover alone. */
.nav-group:not(.is-open) .nav-dropdown { display: none; }
.nav-static-label { font: inherit; min-height: 44px; }
.nav-static-label::after { display: none; }
@media (max-width: 760px) {
    .nav-group:not(.is-open) .nav-dropdown { display: grid; }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
.background-video-toggle {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 4;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.64);
    border-radius: 50%;
    background: rgba(17, 19, 21, 0.54);
    color: #fffdf8;
    cursor: pointer;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: background-color 160ms ease, transform 160ms ease;
}
.background-video-control-surface { position: relative; }
.background-video-toggle:hover,
.background-video-toggle:focus-visible {
    background: rgba(17, 19, 21, 0.84);
    transform: scale(1.06);
}
.background-video-toggle:focus-visible { outline: 2px solid #fffdf8; outline-offset: 3px; }
.background-video-toggle svg { width: 19px; height: 19px; fill: currentColor; }
.background-video-toggle[data-paused="true"] .pause-icon,
.background-video-toggle[data-paused="false"] .play-icon { display: none; }

/* Native dialog provides focus containment across the embedded player. */
dialog.youtube-lightbox {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    border: 0;
    background: transparent;
    color: #fffdf8;
}
dialog.youtube-lightbox:not([open]) { display: none; }
dialog.youtube-lightbox::backdrop { background: rgba(0, 0, 0, 0.82); }
.youtube-lightbox-panel { overflow-y: auto; }
.youtube-lightbox-close { min-width: 48px; min-height: 48px; }

/* Two-tone focus remains visible on both light and dark surfaces. */
:focus-visible {
    outline: 3px solid #fffdf8 !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 6px #111315 !important;
}
.contact-form :is(input, select, textarea) { border-color: #686963; }
.contact-form [aria-invalid="true"] { border-color: var(--brand-accent-hover); border-width: 2px; }
.field-error { color: var(--brand-accent-hover); font-size: 0.875rem; line-height: 1.5; }
.form-status { padding: 12px 16px; border-left: 3px solid var(--brand-accent-hover); }
.form-status p { margin: 0; color: #111315; }
.form-status a { text-decoration: underline; }
.button:disabled { cursor: wait; }

.image-disclosure {
    grid-column: 2;
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #686963;
}
@media (max-width: 760px) { .image-disclosure { grid-column: 1; } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        transition-duration: 0s !important;
        transition-delay: 0s !important;
        animation-duration: 0s !important;
    }
    html.reveal-ready [data-reveal] { opacity: 1; transform: none; }
}

/* Public entry remains useful while the authenticated portal is deployed separately. */
.client-entry-page { min-height: 68vh; display: grid; align-items: center; padding: clamp(108px, 14vw, 180px) 6vw 72px; background: var(--brand-white); }
.client-entry-panel { width: min(100%, 800px); margin: 0 auto; }
.client-entry-panel h1 { font-size: clamp(40px, 6vw, 76px); line-height: 1.06; letter-spacing: -.04em; margin: 20px 0 28px; }
.client-entry-intro { max-width: 590px; font-size: clamp(17px, 2vw, 21px); line-height: 1.6; margin-bottom: 28px; }
.client-entry-note { margin-top: 28px; font-size: 14px; }
.client-entry-note a { text-decoration: underline; text-underline-offset: 3px; }
