:root {
    --bg: #e4d4de;
    --ink: #050a1f;
    --text: #555;
    --muted: #999;
    --red: #d42b2b;
    --heading: 'Poppins', sans-serif;
    --body: 'Open Sans', sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--body);
    font-size: 15px;
    line-height: 1.35;
}

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

a { color: inherit; }

.icon { width: 1em; height: 1em; flex-shrink: 0; }

/* ---------- Menu toggle ---------- */

.menu-toggle {
    position: fixed;
    top: 40px;
    right: 44px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    border: 0;
    background: none;
    color: var(--ink);
    font: 700 14px/1 var(--body);
    text-transform: uppercase;
    cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px 13.5%;
    background: var(--bg) url(../img/them.jpg) right bottom / auto 100% no-repeat;
}

.hero__content { max-width: 650px; }

.hero__logo { width: 116px; margin-bottom: 24px; }

.hero h1 {
    margin: 0 0 28px;
    font: 800 clamp(34px, 4.4vw, 56px)/1 var(--heading);
    color: var(--ink);
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, .25);
}

.hero h1 span {
    display: block;
    margin-top: 4px;
    font-size: .6em;
    text-transform: none;
}

.hero h2 {
    margin: 0 0 12px;
    font: 400 21px/1.3 var(--body);
    color: #222;
}

.hero p { margin: 0; }

.social { display: flex; gap: 10px; margin: 18px 0 0 5px; }

.social a {
    display: grid;
    place-items: center;
    width: 47px;
    height: 47px;
    border-radius: 50%;
    background: #111;
    color: #fff;
    font-size: 22px;
    transition: background .2s;
}

.social a:hover { background: var(--red); }

.hero footer { margin-top: 44px; font-size: 10px; color: var(--muted); }
.hero footer p { margin: 0 0 12px; }
.credit { font-style: italic; }

/* ---------- Overlay menu ---------- */

.overlay {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: flex;
    background: var(--bg);
    visibility: hidden;
    opacity: 0;
    transition: opacity .35s, visibility .35s;
}

.menu-open { overflow: hidden; }
.menu-open .overlay { visibility: visible; opacity: 1; }

.overlay__left {
    flex: 1;
    display: flex;
    align-items: center;
    padding-left: 8.5%;
}

.overlay__left img { width: 306px; }

.overlay__right {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 40%;
    padding-left: 10%;
}

/* Slanted dark panel */
.overlay__right::before {
    content: '';
    position: absolute;
    inset: 0 0 0 -8%;
    z-index: -1;
    background: var(--ink);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 18% 100%);
}

.overlay__right { isolation: isolate; }

.overlay__aew img { width: 106px; margin-bottom: 18px; }

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

.overlay li a {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 10px 0;
    color: #fff;
    font: 800 30px/1.1 var(--heading);
    text-decoration: none;
    text-transform: uppercase;
    transition: color .2s;
}

.overlay li a:hover { color: var(--red); }

.overlay li .icon { width: 30px; height: 30px; }

.overlay__close {
    position: absolute;
    top: 38px;
    right: 44px;
    z-index: 1;
    padding: 4px;
    border: 0;
    background: none;
    color: var(--red);
    cursor: pointer;
}

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

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
    .hero {
        display: block;
        padding: 100px 6% 0;
        background-image: none;
    }

    .hero__content { margin: 0 auto; }

    .hero::after {
        content: '';
        display: block;
        max-width: 560px;
        aspect-ratio: 865 / 1067;
        margin: 40px auto 0;
        background: url(../img/mjddd.jpg) center / cover;
    }
}

@media (max-width: 760px) {
    .menu-toggle { top: 20px; right: 16px; }

    .hero { padding: 80px 16px 0; }
    .hero::after { margin: 32px -16px 0; max-width: none; }

    .hero h2 { font-size: 18px; }

    .overlay { flex-direction: column; }
    .overlay__left { flex: 0 0 auto; justify-content: center; padding: 80px 16px 32px; }
    .overlay__left img { width: 200px; }
    .overlay__right { flex: 1; width: auto; padding: 40px 16px 40px 18%; }
    .overlay__right::before { inset: 0; clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 100%); }
    .overlay li a { font-size: 24px; }
    .overlay__close { top: 20px; right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .overlay, .social a, .overlay li a { transition: none; }
}
