/*
 * ENNU Splash Page — division split
 * Self-contained, no framework dependencies.
 * Tokens mirror design-system.css (brand guidelines).
 */

.ennu-splash {
    /* Brand palette */
    --ennu-black: #151515;
    --ennu-white: #ffffff;
    --ennu-navy: #061530;
    --ennu-gold: #c59825;
    --ennu-peach: #e9cbb7;
    --ennu-brown: #241715;

    /* Typography */
    --ennu-font-headline: 'Times New Roman', Georgia, serif;
    --ennu-font-subhead: 'Josefin Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ennu-font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

    /* Documented type scale (design-system.json). H1 is fluid down to phones
       but tops out at the specified 56px; the rest are used at spec size. */
    --ennu-text-h1: 56px;
    --ennu-text-h4: 18px;
    --ennu-text-body: 18px;
    --ennu-text-caption: 14px;
    --ennu-leading-tight: 1.2;
    --ennu-leading-relaxed: 1.75;

    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--ennu-black);
    color: var(--ennu-white);
    font-family: var(--ennu-font-body);
    overflow: hidden;
}

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

/* Full-bleed when the splash owns the whole document (takeover template). */
.ennu-splash-body {
    margin: 0;
    padding: 0;
    background: #151515;
}

.ennu-splash-body .ennu-splash {
    margin: 0;
}

/* ==================== THEME HARDENING ====================
   The splash is a full-page component dropped into whatever theme the site
   runs, over dark panels it controls. Themes routinely set heading colours and
   `a:hover { color: … }` that would otherwise win here — on ennu.co the theme
   turned the headline near-black and recoloured panel titles on hover. The
   component therefore pins its own text colours rather than inheriting. Colour
   is the only property forced; everything else stays overridable. */

.ennu-splash a,
.ennu-splash a:hover,
.ennu-splash a:focus,
.ennu-splash a:active,
.ennu-splash a:visited {
    text-decoration: none;
}

.ennu-splash .ennu-splash__panel,
.ennu-splash .ennu-splash__panel:hover,
.ennu-splash .ennu-splash__panel:focus,
.ennu-splash .ennu-splash__panel:active,
.ennu-splash .ennu-splash__panel:visited,
.ennu-splash .ennu-splash__headline,
.ennu-splash .ennu-splash__wordmark,
.ennu-splash .ennu-splash__panel-title,
.ennu-splash .ennu-splash__panel-cta-label {
    color: var(--ennu-white) !important;
}

.ennu-splash .ennu-splash__subheadline,
.ennu-splash .ennu-splash__panel-subtitle,
.ennu-splash .ennu-splash__panel-description,
.ennu-splash .ennu-splash__panel-bullet {
    color: rgba(255, 255, 255, 0.8) !important;
}

.ennu-splash .ennu-splash__panel-eyebrow {
    color: var(--unit-accent, var(--ennu-white)) !important;
}

/* The CTA fill flips the label to the unit's ink colour on hover, so that
   pairing has to out-rank the white pinned above. */
.ennu-splash .ennu-splash__panel:hover .ennu-splash__panel-cta,
.ennu-splash .ennu-splash__panel:focus-visible .ennu-splash__panel-cta,
.ennu-splash .ennu-splash__panel:hover .ennu-splash__panel-cta-label,
.ennu-splash .ennu-splash__panel:focus-visible .ennu-splash__panel-cta-label {
    color: var(--unit-on-accent, var(--ennu-black)) !important;
}

/* ==================== MASTHEAD ==================== */

.ennu-splash__masthead {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
    padding: clamp(24px, 4vh, 48px) 24px clamp(24px, 4vh, 40px);
    text-align: center;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(21, 21, 21, 0.72) 0%, rgba(21, 21, 21, 0) 100%);
}

.ennu-splash__logo {
    display: block;
    height: auto;
    max-height: 52px;
    max-width: 220px;
    margin: 0 auto 20px;
}

.ennu-splash__wordmark {
    margin: 0 0 18px;
    font-family: var(--ennu-font-subhead);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: var(--ennu-white);
    opacity: 0.9;
}

.ennu-splash__headline {
    margin: 0 0 10px;
    font-family: var(--ennu-font-headline);
    font-weight: 400;
    font-size: clamp(26px, 3.4vw, 46px);
    line-height: 1.15;
    color: var(--ennu-white);
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

.ennu-splash__subheadline {
    margin: 0 auto;
    max-width: 46ch;
    font-size: clamp(13px, 1.1vw, 16px);
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
}

/* ==================== PANELS ==================== */

.ennu-splash__panels {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
}

.ennu-splash__panel {
    position: relative;
    display: flex;
    /* Zero basis: panel widths come from flex-grow, so the hover ratios below
       have free space to distribute. */
    flex: 1 1 0%;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    padding: clamp(140px, 22vh, 220px) clamp(24px, 4vw, 64px) clamp(80px, 12vh, 120px);
    text-align: center;
    text-decoration: none;
    color: var(--ennu-white);
    overflow: hidden;
    isolation: isolate;
    transition: flex-grow 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Hairline divider between the two halves. */
.ennu-splash__panel + .ennu-splash__panel::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    width: 1px;
    background: rgba(255, 255, 255, 0.16);
}

.ennu-splash__panel-media {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: var(--ennu-splash-image, none);
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.ennu-splash__panel-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(21, 21, 21, 0.55) 0%, rgba(21, 21, 21, 0.72) 100%);
    transition: background 0.5s ease;
}

/* ==================== BUSINESS UNIT BRANDING ====================
   The brand guidelines split the secondary palette by audience: the feminine
   palette (peach on brown) carries ENNU Aesthetics, the masculine palette
   (gold on navy) carries ENNU Life. Each unit declares its tokens once here;
   everything below reads them, so a unit is re-skinned in one place. */

.ennu-splash__panel--aesthetics {
    --unit-accent: var(--ennu-peach);
    --unit-ground: var(--ennu-brown);
    --unit-ground-rgb: 36, 23, 21;
    --unit-accent-rgb: 233, 203, 183;
    --unit-on-accent: var(--ennu-brown);
}

.ennu-splash__panel--life {
    --unit-accent: var(--ennu-gold);
    --unit-ground: var(--ennu-navy);
    --unit-ground-rgb: 6, 21, 48;
    --unit-accent-rgb: 197, 152, 37;
    --unit-on-accent: var(--ennu-black);
}

.ennu-splash__panel-media {
    background-color: var(--unit-ground, var(--ennu-black));
}

.ennu-splash__panel .ennu-splash__panel-media::after {
    background:
        linear-gradient(180deg, rgba(var(--unit-ground-rgb, 21, 21, 21), 0.55) 0%, rgba(var(--unit-ground-rgb, 21, 21, 21), 0.87) 100%),
        radial-gradient(120% 90% at 50% 30%, rgba(var(--unit-accent-rgb, 255, 255, 255), 0.22) 0%, rgba(var(--unit-ground-rgb, 21, 21, 21), 0) 70%);
}

.ennu-splash__panel-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 34rem;
}

/* Division lockup. Height is set per panel (the aesthetics mark is a stacked
   lockup, ennulife a single line) so the two wordmarks read at the same weight;
   the slot is a fixed height so both headlines still start on the same line. */
.ennu-splash__panel-logo-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--ennu-splash-logo-slot, 76px);
    /* Clear space equals the wordmark "e" (51% of the aesthetics lockup,
       45% of ennulife's) — the guideline minimum, applied below the mark. */
    margin-bottom: var(--ennu-splash-logo-clear, 24px);
}

.ennu-splash__panel-logo {
    height: var(--ennu-splash-logo-height, 48px);
    width: auto;
    max-width: min(320px, 80%);
    object-fit: contain;
}

.ennu-splash__panel-eyebrow {
    font-family: var(--ennu-font-subhead);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--unit-accent, var(--ennu-white));
    margin-bottom: 18px;
}

/* H1 — Times New Roman, 56px per the scale, fluid down to phones. */
.ennu-splash__panel-title {
    font-family: var(--ennu-font-headline);
    font-size: clamp(32px, 3.8vw, var(--ennu-text-h1));
    line-height: var(--ennu-leading-tight);
    margin-bottom: 12px;
}

/* H4 — subhead in Josefin Sans at the documented 18px. */
.ennu-splash__panel-subtitle {
    font-family: var(--ennu-font-subhead);
    font-size: clamp(14px, 1.25vw, var(--ennu-text-h4));
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 20px;
}

/* Body — Montserrat 18px, relaxed leading. */
.ennu-splash__panel-description {
    font-size: clamp(14px, 1.15vw, var(--ennu-text-body));
    font-weight: 300;
    line-height: var(--ennu-leading-relaxed);
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 24px;
}

.ennu-splash__panel-bullets {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 32px;
    text-align: left;
}

.ennu-splash__panel-bullet {
    position: relative;
    padding-left: 22px;
    font-size: var(--ennu-text-caption);
    font-weight: 500;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.82);
}

.ennu-splash__panel-bullet::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--unit-accent, var(--ennu-white));
}

.ennu-splash__panel-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    font-family: var(--ennu-font-subhead);
    font-size: var(--ennu-text-caption);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ennu-white);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.ennu-splash__panel-cta-arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

/* ==================== HOVER / FOCUS ==================== */

@media (hover: hover) and (min-width: 861px) {
    .ennu-splash__panels:hover .ennu-splash__panel:not(:hover) {
        flex-grow: 0.82;
    }

    .ennu-splash__panel:hover {
        flex-grow: 1.18;
    }
}

.ennu-splash__panel:hover .ennu-splash__panel-media,
.ennu-splash__panel:focus-visible .ennu-splash__panel-media {
    transform: scale(1.08);
}

.ennu-splash__panel:hover .ennu-splash__panel-media::after,
.ennu-splash__panel:focus-visible .ennu-splash__panel-media::after {
    background: linear-gradient(180deg, rgba(21, 21, 21, 0.42) 0%, rgba(21, 21, 21, 0.66) 100%);
}

/* Hover fills the button with the unit's accent — the brand .btn-secondary
   treatment, in each business unit's own colour. */
.ennu-splash__panel:hover .ennu-splash__panel-cta,
.ennu-splash__panel:focus-visible .ennu-splash__panel-cta {
    background: var(--unit-accent);
    border-color: var(--unit-accent);
    color: var(--unit-on-accent, var(--ennu-black));
}

.ennu-splash__panel:hover .ennu-splash__panel-cta-arrow,
.ennu-splash__panel:focus-visible .ennu-splash__panel-cta-arrow {
    transform: translateX(4px);
}

.ennu-splash__panel:focus-visible {
    outline: 2px solid var(--ennu-white);
    outline-offset: -6px;
}

/* ==================== FOOTER ==================== */

.ennu-splash__footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 24px clamp(20px, 3vh, 32px);
    font-size: 13px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.72);
    background: linear-gradient(to top, rgba(21, 21, 21, 0.7) 0%, rgba(21, 21, 21, 0) 100%);
    pointer-events: none;
}

.ennu-splash__footer-link {
    pointer-events: auto;
    color: var(--ennu-white);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    padding-bottom: 2px;
    transition: border-color 0.25s ease, color 0.25s ease;
}

.ennu-splash__footer-link:hover,
.ennu-splash__footer-link:focus-visible {
    color: var(--ennu-gold);
    border-color: var(--ennu-gold);
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 860px) {
    .ennu-splash {
        min-height: 0;
    }

    .ennu-splash__masthead {
        position: static;
        padding: 40px 24px 28px;
        background: none;
    }

    .ennu-splash__panels {
        flex-direction: column;
    }

    .ennu-splash__panel {
        flex: 0 0 auto;
        min-height: 0;
        padding: 44px 24px 48px;
    }

    .ennu-splash__panel + .ennu-splash__panel::before {
        top: 0;
        left: 0;
        right: 0;
        bottom: auto;
        width: auto;
        height: 1px;
    }

    .ennu-splash__panel-logo-slot {
        height: 62px;
        margin-bottom: 16px;
    }

    .ennu-splash__panel-logo {
        height: calc(var(--ennu-splash-logo-height, 48px) * 0.8);
    }

    .ennu-splash__panel-bullets {
        align-items: flex-start;
        margin-bottom: 26px;
    }

    .ennu-splash__footer {
        position: static;
        padding: 26px 24px 34px;
        background: none;
    }
}

@media (max-width: 480px) {
    .ennu-splash__panel {
        padding: 36px 20px 40px;
    }

    .ennu-splash__panel-bullets {
        gap: 6px;
    }
}

/* ==================== MOTION / PRINT ==================== */

@media (prefers-reduced-motion: reduce) {
    .ennu-splash *,
    .ennu-splash *::before,
    .ennu-splash *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }

    .ennu-splash__panel:hover .ennu-splash__panel-media,
    .ennu-splash__panel:focus-visible .ennu-splash__panel-media {
        transform: none;
    }
}

@media print {
    .ennu-splash__panel-media {
        display: none;
    }

    .ennu-splash {
        color: #151515;
        background: #fff;
    }
}
