/* ==========================================================
   The Aurel Expedition – home page
   Visual language taken from the in-game HUD:
   pale blue readouts, thin lines, segmented bars, Oxanium.
   ========================================================== */

.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 120px 0; }

/* ---------- shared HUD elements ---------- */

.label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: var(--hud);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}
.label::before {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--hud);
}
.label.small { font-size: 12px; margin-top: 8px; }

.eyebrow {
    color: var(--hud);
    font-size: 14px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

h2 { font-size: clamp(32px, 4.2vw, 52px); }
h3 { font-size: 20px; letter-spacing: 0.04em; }

.muted { color: var(--muted); font-size: 15px; }

/* panel with HUD corner brackets */
.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px;
}
.panel::before, .panel::after {
    content: "";
    position: absolute;
    width: 14px; height: 14px;
    border-color: var(--hud);
    border-style: solid;
    pointer-events: none;
}
.panel::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.panel::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

/* segmented battery bar like the HUD gauge */
.bar {
    display: block;
    width: 100%;
    height: 10px;
    background: repeating-linear-gradient(90deg, rgba(159,211,240,0.16) 0 7px, transparent 7px 10px);
    transform: skewX(-20deg);
}
.bar > i {
    display: block;
    height: 100%;
    background: repeating-linear-gradient(90deg, var(--hud) 0 7px, transparent 7px 10px);
    box-shadow: 0 0 12px rgba(159, 211, 240, 0.35);
}

/* buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 26px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border-radius: var(--radius);
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}
.btn i { font-size: 18px; }
.btn-primary { background: var(--sun); color: #fff; }
.btn-primary:hover { background: var(--sun-2); color: #111; }
.btn-ghost {
    color: var(--hud);
    background: rgba(159, 211, 240, 0.08);
    box-shadow: inset 0 0 0 1px var(--hud-dim);
}
.btn-ghost:hover { background: rgba(159, 211, 240, 0.18); color: var(--hud-strong); }

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- HERO ---------- */

.hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 140px 0 40px;
    overflow: hidden;
}

.hero-bg, .hero-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.hero-bg img { object-fit: cover; object-position: 80% 60%; }
.hero-bg { background: var(--bg); }
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% 50%;
    opacity: 0;
    transition: opacity 1.2s ease;
}
.hero-video.on { opacity: 1; }

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7,9,13,0.92) 0%, rgba(7,9,13,0.72) 30%, rgba(7,9,13,0.12) 55%, rgba(7,9,13,0) 100%, rgba(7,9,13,0) 100%),
        linear-gradient(0deg, var(--bg) 0%, rgba(7,9,13,0) 38%),
        linear-gradient(180deg, rgba(7,9,13,0.75) 0%, rgba(7,9,13,0) 16%);
}

.hero-content { width: 100%; z-index: 2; margin-bottom: 72px; }
.hero-content > * { max-width: 600px; }
.hero-content > h1 { max-width: none; }

.hero h1 {
    font-size: clamp(46px, 6.6vw, 96px);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 0.95;
    margin-bottom: 28px;
    text-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
}

.hero .lead {
    max-width: 520px;
    font-size: 19px;
    color: #d7d1c6;
    margin-bottom: 36px;
}

.actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hud-strip {
    width: 100%;
    z-index: 2;
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 48px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}
.hud-item { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.hud-item span {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}
.hud-item b { color: var(--hud); font-size: 16px; letter-spacing: 0.1em; text-transform: uppercase; }
.hud-battery { justify-self: end; width: min(100%, 360px); }
.hud-battery .bar { flex: 1; }

.blink { animation: blink 1.6s steps(2, start) infinite; }
@keyframes blink { 50% { opacity: 0.25; } }

/* ---------- STORY ---------- */

.story-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}
.story-grid p:not(.label) { color: #cfc9be; font-size: 18px; }

.echo blockquote {
    margin: 0 0 28px;
    font-size: 24px;
    line-height: 1.4;
    color: var(--hud-strong);
}
.pulse {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--hud);
    box-shadow: 0 0 0 0 rgba(159,211,240,0.6);
    animation: pulse 2s infinite;
}
.echo .label::before { display: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(159,211,240,0); } 100% { box-shadow: 0 0 0 0 rgba(159,211,240,0); } }

.wave-line { display: flex; align-items: center; gap: 4px; height: 34px; }
.wave-line i {
    flex: 1;
    background: var(--hud-dim);
    height: 30%;
    border-radius: 2px;
    animation: wave 1.4s ease-in-out infinite;
}
.wave-line i:nth-child(3n)   { animation-delay: -0.3s; }
.wave-line i:nth-child(3n+1) { animation-delay: -0.7s; }
.wave-line i:nth-child(4n)   { animation-delay: -1.1s; }
@keyframes wave { 50% { height: 100%; } }

/* ---------- REGIONS ---------- */

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head p:not(.label) { color: var(--muted); font-size: 18px; }

.region-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.region {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.region:hover { border-color: var(--hud-dim); }

.region-image { aspect-ratio: 16 / 9; overflow: hidden; }
.region-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.region:hover .region-image img { transform: scale(1.05); }

.region-body { padding: 22px 24px 24px; }
.region-body p { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.region-no {
    position: absolute;
    top: -18px; right: 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: var(--bg);
    background: var(--hud);
    padding: 6px 10px;
    border-radius: 2px;
}
.region-meta {
    font-size: 12px;
    color: var(--hud);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.region-locked { border-style: dashed; }
.region-locked .region-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, rgba(159,211,240,0.07) 0 2px, transparent 2px 5px);
}
.region-locked .region-image::before {
    content: "\f023";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    z-index: 2;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    color: var(--hud);
    opacity: 0.85;
}
.region-locked:hover .region-image img { transform: none; }
.region-locked .region-no { background: var(--sun); color: #fff; }
.region-locked h3 { color: var(--hud); }
.region-static .region-image {
    background:
        radial-gradient(circle at 70% 30%, rgba(232,87,42,0.22), transparent 60%),
        var(--bg-2);
}

/* ---------- WAVE BANNER ---------- */

.banner {
    min-height: 78vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}
.banner > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 40%;
}
.banner-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, var(--bg) 0%, rgba(7,9,13,0) 45%),
        linear-gradient(180deg, var(--bg) 0%, rgba(7,9,13,0) 18%);
}
.banner-content { width: 100%; padding-bottom: 80px; z-index: 2; }
.banner h2 { font-size: clamp(34px, 5.2vw, 72px); text-transform: uppercase; max-width: 1000px; }

/* ---------- ROVER ---------- */

.rover-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 64px;
    align-items: center;
}
.rover-image.panel { padding: 0; overflow: visible; margin: 0; }
.rover-image img { border-radius: var(--radius); width: 100%; }
.rover-image figcaption {
    position: absolute;
    left: 18px; bottom: 16px;
    font-size: 12px;
    letter-spacing: 0.22em;
    color: var(--hud);
    background: rgba(7,9,13,0.7);
    padding: 6px 10px;
}
.rover-grid p:not(.label) { color: #cfc9be; }

.specs { margin: 28px 0; display: grid; gap: 0; }
.specs > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}
.specs dt { color: var(--muted); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; }
.specs dd { margin: 0; color: var(--hud); font-weight: 600; text-align: right; }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
    font-size: 13px;
    letter-spacing: 0.08em;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 2px;
    color: var(--text);
    background: rgba(159,211,240,0.05);
}

/* ---------- FEATURES ---------- */

.features { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.feature i { font-size: 26px; color: var(--hud); margin-bottom: 18px; }
.feature p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- GALLERY ---------- */

.shot-grid {
    display: grid;
    grid-auto-flow: dense;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.shot {
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-2);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    cursor: zoom-in;
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease, opacity 0.3s ease; cursor: zoom-in; }
.shot:hover img { transform: scale(1.06); }
.shot:hover { border-color: var(--hud); }
.shot:nth-child(1), .shot:nth-child(8) { grid-column: span 2; grid-row: span 2; }

/* ---------- WISHLIST / PRESS ---------- */

.wishlist-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 24px;
    align-items: stretch;
}
.wishlist-panel {
    padding: 48px;
    background:
        radial-gradient(circle at 100% 0%, rgba(232,87,42,0.22), transparent 55%),
        var(--panel);
}
.wishlist-panel p:not(.label) { color: #cfc9be; font-size: 18px; margin-bottom: 28px; }
.press .specs { margin-top: 12px; }
.press .specs a { color: var(--hud); }

/* ---------- responsive ---------- */

@media screen and (max-width: 1080px) {
    .region-grid, .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .story-grid, .rover-grid, .wishlist-grid { grid-template-columns: 1fr; gap: 40px; }
    .shot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .shot:nth-child(8) { grid-column: auto; grid-row: auto; }
}

@media screen and (max-width: 700px) {
    .section { padding: 80px 0; }
    .hero { padding-top: 110px; }
    .hero-shade {
        background:
            linear-gradient(0deg, var(--bg) 0%, rgba(7,9,13,0.75) 45%, rgba(7,9,13,0.25) 100%);
    }
    .hero-bg img { object-position: 50% 50%; }
    .hero-content { margin-bottom: 40px; }
    .hero .lead { font-size: 17px; }
    .hud-strip { grid-template-columns: 1fr 1fr; gap: 16px 24px; }
    .hud-battery { grid-column: 1 / -1; justify-self: stretch; width: 100%; }
    .region-grid, .feature-grid { grid-template-columns: 1fr; }
    .shot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .shot:nth-child(1) { grid-column: auto; grid-row: auto; }
    .panel, .wishlist-panel { padding: 26px; }
    .banner { min-height: 60vh; }
    .btn { width: 100%; justify-content: center; }
}
