@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Inter:wght@300;400;500&display=swap');

/* =============================================
   DESIGN TOKENS
   ============================================= */
:root {
    --ink: #0a0a0a;
    --ink-2: #111111;
    --surface: #161616;
    --border: rgba(255, 255, 255, 0.08);
    --border-hi: rgba(255, 255, 255, 0.2);
    --gold: rgba(220, 240, 255, 1);
    --gold-dim: rgba(220, 240, 255, 0.15);
    --white: #f4f0eb;
    --muted: rgba(244, 240, 235, 0.6);
    --faint: rgba(244, 240, 235, 0.55);
    --accent-icy: rgba(220, 240, 255, 1);

    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --t-fast: 0.25s;
    --t-med: 0.5s;
    --t-slow: 1s;
}

/* =============================================
   RESET + BASE
   ============================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background: var(--ink);
}

body {
    background: transparent;
    color: var(--white);
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Grain overlay on entire site */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.6;
}

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

/* Make <picture> transparent to layout so existing img CSS still applies */
picture {
    display: contents;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
.display {
    font-family: var(--font-display);
    font-weight: 300;
    font-style: italic;
    font-size: clamp(5rem, 12vw, 10rem);
    line-height: 0.88;
    letter-spacing: -0.02em;
    color: var(--white);
    text-shadow: 0 4px 60px rgba(0, 0, 0, 0.5);
}

.display-sm {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: -0.01em;
}

.label {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold);
}

.body-text {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--muted);
    max-width: 75ch;
}

/* =============================================
   LAYOUT
   ============================================= */
.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 120px 5%;
}

.section--wide {
    max-width: 100%;
    padding: 120px 5%;
}

/* Fine horizontal rule */
.rule {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--border);
    margin: 0;
}

.rule--gold {
    background: var(--gold);
    width: 40px;
    height: 1px;
    margin-bottom: 40px;
}

/* =============================================
   NAVIGATION
   ============================================= */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    /* Logo is absolutely centered; the menu sits on the right. */
    justify-content: flex-end;
    padding: 28px 5%;
    transition: background var(--t-med) var(--ease),
        border-color var(--t-med) var(--ease);
}

nav.scrolled {
    background: #0a0a0a;
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 1.1rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--white);
    /* Center the logo at the top of every inner page (matches the
       homepage's .index-nav). The menu links and burger remain in flex flow
       so the logo sits centered above them on mobile, between them on desktop. */
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.nav-links {
    display: flex;
    gap: 48px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    font-size: 0.65rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--muted);
    transition: color var(--t-fast) var(--ease);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width var(--t-fast) var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* =============================================
   HERO / EDITORIAL CORE
   ============================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 750px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #000;
    z-index: 10; /* Block the global ambient canvas from rendering over heroes */
}

.hero__bg {
    position: absolute;
    inset: -5%;
    width: 110%;
    height: 110%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.3) saturate(0.7);
    transition: transform 0.1s ease-out;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 50%, transparent 0%, rgba(10, 10, 10, 0.7) 85%),
        linear-gradient(to bottom, transparent 80%, var(--ink) 100%);
    z-index: 1;
}



.hero__content {
    position: relative;
    z-index: 5;
    max-width: 1200px;
    width: 100%;
}

.hero__sub {
    font-family: monospace;
    font-size: 11px;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.5em;
    margin-bottom: 24px;
    display: block;
    opacity: 0.8;
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 11vw, 10rem);
    line-height: 0.85;
    margin-bottom: 40px;
    font-style: italic;
    font-weight: 300;
    color: var(--white);
    letter-spacing: -0.04em;
    transform: translateX(-5px);
}

.hero__copy-wrap {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 40px;
    align-items: start;
    max-width: 800px;
}

.hero__copy-wrap::before {
    content: '';
    width: 100%;
    height: 1px;
    background: var(--gold);
    margin-top: 15px;
    opacity: 0.6;
}

.hero__tagline {
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    line-height: 1.2;
    color: var(--gold-dim);
    margin-bottom: 16px;
    font-weight: 300;
}

.hero__desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

/* SHORT HERO (Internal) */
.hero--short {
    height: 60vh;
    min-height: 500px;
    align-items: center;
    padding-bottom: 0;
}

.hero__video,
.hero__video--reset {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scale(1.3);
    transform-origin: top center;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    z-index: 0;
    filter: brightness(0.4) saturate(0.85);
    transition: opacity 0.15s ease-in-out;
}

.hero__video--reset {
    z-index: 1;
}

.hero--short .hero__content {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero--short .hero__title {
    transform: none;
    text-align: center;
}

.hero--short .hero__copy-wrap {
    grid-template-columns: 1fr;
    margin: 0 auto;
    text-align: center;
}

.hero--short .hero__copy-wrap::before {
    display: none;
}

/* Floating book — left column of hero grid */
.hero__book {
    position: relative;
    z-index: 2;
    pointer-events: all;
    align-self: center;
    justify-self: end;
    width: 100%;
    max-width: 520px;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Radial gold glow behind the book */
.hero__book::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse at center,
            rgba(220, 240, 255, 0.15) 0%,
            rgba(220, 240, 255, 0.05) 40%,
            transparent 70%);
    z-index: -1;
    border-radius: 50%;
    filter: blur(30px);
    pointer-events: none;
}

.hero__book:hover {
    transform: translateY(-6px) scale(1.02);
}

.hero__book img {
    width: 100%;
    opacity: 1;
    display: block;
    filter: saturate(1.6) drop-shadow(0 30px 70px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 40px rgba(220, 240, 255, 0.08));
    transition: filter 0.4s ease;
}

.hero__book:hover img {
    filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 60px rgba(220, 240, 255, 0.15));
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    padding: 14px 32px;
    border: 1px solid;
    cursor: pointer;
    transition: all var(--t-fast) var(--ease);
}

.btn--primary {
    background: var(--accent-icy);
    border-color: var(--accent-icy);
    color: #000;
    font-weight: 600;
}

.btn--primary:hover {
    background: transparent;
    color: var(--accent-icy);
    border-color: var(--accent-icy);
    box-shadow: 0 0 24px rgba(220, 240, 255, 0.15);
}

.btn--icy {
    background: var(--accent-icy);
    border-color: var(--accent-icy);
    color: #000;
    font-weight: 600;
}

.btn--icy:hover {
    background: var(--white);
    border-color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(220, 240, 255, 0.3);
}

.btn--ghost {
    background: transparent;
    border-color: var(--border-hi);
    color: var(--white);
}

.btn--ghost:hover {
    border-color: var(--accent-icy);
    color: var(--accent-icy);
    box-shadow: 0 0 20px rgba(220, 240, 255, 0.1);
}

.btn-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Specific Hero CTA Styling - already covered by btn--icy but kept for context if needed */
.hero__cta .btn {
    mix-blend-mode: screen;
}

/* =============================================
   EDITORIAL GRID (2-col)
   ============================================= */
.editorial {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.editorial--reverse .editorial__visual {
    order: -1;
}

.editorial--top {
    align-items: start;
}

.editorial__visual img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    filter: saturate(0.5);
    transition: filter var(--t-med) var(--ease);
}

.editorial__visual img:hover {
    filter: saturate(0.8);
}

.editorial__text {
    padding: 20px 0;
}

.editorial__text .rule--gold {
    margin-bottom: 28px;
}

.editorial__text h2 {
    margin-bottom: 24px;
}

.editorial__text p {
    margin-bottom: 20px;
}

/* =============================================
   CHARACTER GRID
   ============================================= */
/* =============================================
   PERSONNEL / TAC-HUD
   ============================================= */
.personnel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
    padding-top: 40px;
}

/* Tactical HUD Overlay Background */
.personnel-grid::before {
    content: '';
    position: absolute;
    inset: 0;
    background: none;
    pointer-events: none;
    z-index: -1;
}

.personnel-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border-hi);
    transition: all 0.5s var(--ease);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.personnel-card:hover {
    border-color: var(--gold);
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 20px rgba(220, 240, 255, 0.1);
}

.personnel-card__img-wrap {
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: var(--ink);
    position: relative;
}

.personnel-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.8) contrast(1.2) brightness(0.8);
    transition: all 0.6s var(--ease);
    display: block;
}

.personnel-card__img--redacted {
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(
            45deg,
            rgba(220, 240, 255, 0.04) 0px,
            rgba(220, 240, 255, 0.04) 1px,
            transparent 1px,
            transparent 12px
        ),
        var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
}

.personnel-card__img--redacted::after {
    content: 'NO VISUAL DATA';
    font-family: monospace;
    font-size: 9px;
    letter-spacing: 0.3em;
    color: rgba(220, 240, 255, 0.3);
    text-transform: uppercase;
}

.personnel-card:hover .personnel-card__img {
    filter: grayscale(0.2) contrast(1) brightness(1);
    transform: scale(1.05);
}

/* Scanning Line Animation */
.personnel-card__scanner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gold);
    box-shadow: 0 0 20px var(--gold);
    opacity: 0;
    z-index: 5;
    pointer-events: none;
}

.personnel-card:hover .personnel-card__scanner {
    animation: scan 2.5s linear infinite;
    opacity: 0.4;
}

@keyframes scan {
    0% {
        top: 0%;
    }

    100% {
        top: 100%;
    }
}

.personnel-card__info {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.personnel-card__id {
    font-family: monospace;
    font-size: 10px;
    color: var(--gold);
    margin-bottom: 12px;
    letter-spacing: 0.2em;
    display: block;
}

.personnel-card__name {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--white);
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.personnel-card__status {
    font-size: 0.6rem;
    font-family: monospace;
    letter-spacing: 0.2em;
    color: #4caf50;
    margin-bottom: 20px;
    display: block;
}

.status--mia .personnel-card__status {
    color: #ff5252;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4caf50;
    box-shadow: 0 0 10px #4caf50;
    display: block;
}

.status--mia .status-dot {
    background: #ff5252;
    box-shadow: 0 0 10px #ff5252;
}

.personnel-card__desc {
    font-size: 0.85rem;
    line-height: 1.6;
    color: rgba(244, 240, 235, 0.7);
    margin-bottom: 24px;
}

.personnel-card__meta {
    margin-top: auto;
    border-top: 1px solid var(--border-hi);
    padding-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-size: 9px;
    text-transform: uppercase;
    color: var(--muted);
    letter-spacing: 0.1em;
}

.meta-value {
    font-size: 11px;
    font-family: monospace;
    color: var(--white);
    letter-spacing: 0.05em;
}

/* =============================================
   FORM
   ============================================= */
.form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form input,
.form textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-hi);
    padding: 18px 20px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 300;
    outline: none;
    width: 100%;
    transition: border-color var(--t-fast) var(--ease);
}

.form-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--muted);
    margin-bottom: 6px;
    margin-top: 4px;
}

.form input::placeholder,
.form textarea::placeholder {
    color: var(--muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.form input:focus,
.form textarea:focus {
    border-color: var(--accent-icy);
    background: rgba(220, 240, 255, 0.05);
}

.form textarea {
    resize: none;
    height: 160px;
}

/* =============================================
   ACCESSIBILITY
   ============================================= */

/* Hero video pause/play button */
.hero-video-pause {
    position: absolute;
    bottom: 16px;
    right: 16px;
    z-index: 20;
    background: transparent;
    border: 1px solid rgba(220, 240, 255, 0.2);
    color: rgba(220, 240, 255, 1);
    font-size: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--t-fast);
}
.hero-video-pause:hover {
    color: #fff;
}

/* Skip to content link - hidden until focused */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 10000;
    padding: 12px 20px;
    background: var(--accent-icy);
    color: #000;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-decoration: none;
    border-radius: 4px;
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 16px;
}

/* Focus styles for all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--accent-icy);
    outline-offset: 3px;
    border-radius: 2px;
}

/* Remove outline for mouse users only */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}

/* Reduced motion: disable all animations and transitions */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal,
    .reveal--left,
    .reveal--right {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* =============================================
   FOOTER
   ============================================= */
footer {
    padding: 60px 5%;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: auto;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--muted);
}

.footer-meta {
    font-size: 0.7rem;
    color: var(--faint);
    letter-spacing: 0.1em;
}

.footer-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.footer-links a {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--faint);
    transition: color var(--t-fast);
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-links a.kofi-link {
    color: #ff5e5b;
    font-weight: 600;
}

.footer-links a.kofi-link:hover {
    color: #ff8a88;
}

/* =============================================
   LORE TIMELINE
   ============================================= */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 60px;
    border-left: 1px solid var(--border);
    padding-left: 40px;
}

.timeline-item {
    position: relative;
    padding-bottom: 60px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -45px;
    top: 6px;
    width: 8px;
    height: 8px;
    border: 1px solid var(--gold);
    background: var(--ink);
    transform: rotate(45deg);
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item .label {
    margin-bottom: 12px;
}

.timeline-item h3 {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.timeline-item p {
    color: var(--muted);
}

/* =============================================
   BOOK SHOWCASE (single book)
   ============================================= */
.book-showcase {
    display: grid;
    grid-template-columns: clamp(300px, 32vw, 480px) 1fr;
    gap: clamp(40px, 6vw, 100px);
}

.book-showcase--reverse {
    grid-template-columns: 1fr clamp(300px, 32vw, 480px);
}

.book-showcase--reverse .book-cover {
    order: 2;
}

.book-cover {
    position: relative;
    height: 100%;
}

.book-cover img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    filter: saturate(1.6);
}

/* Fix for white artifacts around transparent edges */
.book-cover--defringe {
    filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
}

.book-cover__label {
    position: absolute;
    top: -1px;
    right: -1px;
    background: var(--gold);
    color: var(--ink);
    font-size: 0.6rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 8px 16px;
}

/* =============================================
   BENTO BUY GRID (under book cover)
   ============================================= */
.bento-buy {
    margin-top: 20px;
    padding: 20px 0;
}

.bento-buy__label {
    margin-bottom: 14px;
    display: block;
}

.bento-buy__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.bento-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 8px;
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-decoration: none;
    color: var(--gold);
    border: 1px solid var(--gold-dim);
    background: transparent;
    transition: background var(--t-fast) var(--ease),
        color var(--t-fast) var(--ease),
        border-color var(--t-fast) var(--ease);
    line-height: 1.3;
}

.bento-btn:hover {
    background: var(--gold);
    color: var(--ink);
    border-color: var(--gold);
}

/* =============================================
   RETAILER GRID
   ============================================= */
.retailer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.retailer-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--ink);
    padding: 28px 32px;
    text-decoration: none;
    color: var(--white);
    transition: background var(--t-fast) var(--ease);
    position: relative;
}

.retailer-card:hover {
    background: var(--surface);
}

.retailer-card__name {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 1.4rem;
    flex: 1;
}

.retailer-card__format {
    font-size: 0.65rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--muted);
}

.retailer-card__arrow {
    font-size: 1.2rem;
    color: var(--gold);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity var(--t-fast) var(--ease),
        transform var(--t-fast) var(--ease);
}

.retailer-card:hover .retailer-card__arrow {
    opacity: 1;
    transform: translateX(0);
}

/* =============================================
   MOBILE NAV BURGER
   ============================================= */
.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    /* Pad to a 44x44 hit area while keeping the visual icon small */
    padding: 14px;
    margin: -14px;
}

.nav-burger span {
    display: block;
    width: 22px;
    height: 1px;
    background: var(--white);
    transition: all var(--t-fast) var(--ease);
}

.nav-burger.open span:first-child {
    transform: rotate(45deg) translate(4px, 4px);
}

.nav-burger.open span:last-child {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* =============================================
   BOOK META GRID
   ============================================= */
.book-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 60px;
    border-top: 1px solid var(--border);
    padding-top: 40px;
}

/* =============================================
   iOS focus-zoom prevention
   Forms < 16px trigger automatic page zoom on focus on iOS Safari.
   Force 16px on touch-sized viewports to keep the layout stable.
   ============================================= */
@media (max-width: 768px) {
    .form input,
    .form textarea,
    .form-select,
    .newsletter-inline__input {
        font-size: 16px;
    }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {

    .editorial,
    .book-showcase {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .section {
        padding: 80px 5%;
    }

    .hero {
        min-height: 600px;
    }

    .personnel-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .book-meta {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .editorial--reverse .editorial__visual {
        order: unset;
    }

    .hero {
        grid-template-columns: 1fr;
        align-items: end;
        padding-bottom: 60px;
    }

    .hero__book {
        display: none;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 10, 10, 0.97);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        z-index: 99;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        font-size: 1rem;
        letter-spacing: 0.25em;
    }

    .nav-burger {
        display: flex;
        z-index: 100;
        position: relative;
    }

    nav.open .nav-logo {
        opacity: 0;
        pointer-events: none;
    }

    /* Prevent scrolling when menu is open */
    body:has(nav.open) {
        overflow: hidden;
    }

    footer {
        flex-direction: column;
        text-align: center;
        gap: 32px;
        padding: 60px 5% 40px;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }

    .footer-links a {
        font-size: 0.8rem;
        padding: 6px 0;
    }

    .footer-meta {
        order: 3;
    }
}

@media (max-width: 600px) {

    .section {
        padding: 60px 5%;
    }

    .hero--short {
        min-height: 55vh;
    }

    .personnel-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .book-meta {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .bento-buy__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .btn-group {
        flex-direction: column;
        width: 100%;
    }

    .btn-group .btn {
        width: 100%;
        justify-content: center;
    }

    .hero__title-grid {
        gap: 4px;
    }
}

@media (max-width: 480px) {

    .section {
        padding: 48px 4%;
    }

    .newsletter-inline {
        flex-direction: column;
    }

    .newsletter-inline__input,
    .newsletter-inline .btn {
        width: 100%;
        justify-content: center;
    }

    .personnel-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .retailer-grid {
        grid-template-columns: 1fr;
    }

    .bento-buy__grid {
        grid-template-columns: 1fr;
    }

    .hero__copy-wrap {
        max-width: 100%;
    }

    .hero__content {
        padding: 0 4%;
    }
}

/* =============================================
   REVEAL ANIMATIONS
   ============================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}




/* =============================================
   SCALE COMPARISON
   ============================================= */
.scale-section {
    background: #07090c;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

.scale-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 50% 120%, rgba(220, 240, 255, 0.08) 0%, transparent 70%),
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 100% 100%, 50px 50px, 50px 50px;
    pointer-events: none;
}

.scale-container {
    position: relative;
    width: 100%;
    height: 1000px;
    display: flex;
    align-items: stretch;
    padding: 0 2%;
    gap: 30px;
    overflow-x: auto;
    scrollbar-width: none; /* Hide scrollbar Firefox */
    z-index: 5;
}

.scale-container::-webkit-scrollbar { display: none; }

.scale-item {
    flex-shrink: 0;
    width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    transition: transform 0.5s var(--ease);
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(220, 240, 255, 0.15);
    border-radius: 4px;
    padding: 20px;
}

.scale-item:hover {
    transform: translateY(-10px);
}

.silhouette {
    position: relative;
    background: var(--gold-dim);
    border: 1px solid var(--gold);
    box-shadow: 0 0 30px rgba(220, 240, 255, 0.1);
    transition: all 0.5s var(--ease);
}

.scale-item:hover .silhouette {
    background: var(--gold);
    box-shadow: 0 0 50px rgba(220, 240, 255, 0.3);
}

/* Specific Sizes (Relative) */
.silhouette--human {
    width: 2px;
    height: 18px;
    background: var(--white);
    border: none;
}

.silhouette--mustang {
    width: 100%;
    aspect-ratio: 160 / 54;
    clip-path: polygon(0% 50%, 20% 0%, 100% 30%, 100% 70%, 20% 100%);
}

.silhouette--frigate {
    width: 100%;
    aspect-ratio: 600 / 160;
    clip-path: polygon(0% 40%, 10% 20%, 80% 20%, 100% 40%, 100% 60%, 80% 80%, 10% 80%, 0% 60%);
}

/* Eve - The Floating City (Environmental Background) */
.eve-bg {
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 250%;
    height: 800px;
    border-radius: 50% 50% 0 0;
    border-top: 1px solid rgba(220, 240, 255, 0.2);
    background: radial-gradient(circle at top, rgba(220, 240, 255, 0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.scale-info {
    margin-top: 30px;
    text-align: center;
    width: 100%;
}

.scale-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 4px;
    display: block;
}

.scale-dim {
    font-family: monospace;
    font-size: 10px;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

/* Tactical HUD Ruler */
.scale-ruler {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    height: 20px;
    border-top: 1px solid var(--border-hi);
    display: flex;
    justify-content: space-between;
    padding: 0 5%;
    z-index: 2;
}

.ruler-mark {
    position: relative;
    width: 1px;
    height: 10px;
    background: var(--border-hi);
}

.ruler-mark::after {
    content: attr(data-val);
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    font-family: monospace;
    font-size: 9px;
    color: var(--muted);
}

/* =============================================
   FORM SELECT
   ============================================= */
.form-select {
    width: 100%;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-hi);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 300;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color var(--t-fast) var(--ease);
}

.form-select:focus {
    border-color: var(--accent-icy);
    background: rgba(220, 240, 255, 0.05);
}

.form-select option {
    background: #1a1a1a;
    color: #f4f0eb;
}

/* =============================================
   NEWSLETTER INLINE FORM
   ============================================= */
.newsletter-inline {
    display: flex;
    gap: 10px;
}

.newsletter-inline__input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-hi);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.85rem;
    outline: none;
    transition: border-color var(--t-fast) var(--ease);
}

.newsletter-inline__input:focus {
    border-color: var(--accent-icy);
}

.newsletter-inline__input::placeholder {
    color: var(--muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* =============================================
   BLUEPRINT COMPONENTS (Dossiers Page)
   ============================================= */
.blueprint-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(220, 240, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(220, 240, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.blueprint-card {
    background: transparent;
    border: 1px solid rgba(220, 240, 255, 0.1);
    transition: all 0.4s var(--ease);
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 15px;
    gap: 10px;
}

.blueprint-card::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    width: 15px;
    height: 15px;
    border-top: 1px solid var(--accent-icy);
    border-left: 1px solid var(--accent-icy);
    opacity: 0.3;
}

.blueprint-card:hover {
    background: rgba(220, 240, 255, 0.05);
    border-color: rgba(220, 240, 255, 0.3);
    transform: translateY(-3px);
}

.blueprint-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-grow: 1;
    pointer-events: auto;
}

.blueprint-img:not(.planet-img) {
    max-height: 100%;
    max-width: 100%;
    filter: invert(1) brightness(0.9);
    opacity: 0.6;
    transition: opacity 0.4s var(--ease);
}

.blueprint-card:hover .blueprint-img:not(.planet-img) {
    opacity: 1;
}

.blueprint-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.blueprint-label {
    font-family: monospace;
    font-size: 9px;
    color: var(--accent-icy);
    letter-spacing: 0.1em;
    opacity: 0.8;
}

.blueprint-title {
    font-family: var(--font-display);
    color: var(--white);
    font-style: italic;
    font-size: 1.2rem;
}

.blueprint-status {
    font-family: monospace;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.4);
}

.blueprint-container {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    align-items: stretch;
    padding-bottom: 20px;
}

.blueprint-card {
    display: flex;
    flex-direction: column;
}

/* No fade-to-black on the blueprint scale section */
#scale-analysis::after {
    background: none;
}

/* =============================================
   TECH SPEC BLOCKS
   ============================================= */
.spec-block {
    position: relative;
    padding: 14px 16px 14px 22px;
    margin-top: 10px;
    background: rgba(220, 240, 255, 0.025);
    border-top: 1px solid rgba(220, 240, 255, 0.18);
    box-shadow: inset 2px 0 0 var(--accent-icy);
    font-family: monospace;
    font-size: 10px;
    color: rgba(220, 240, 255, 0.85);
    letter-spacing: 0.05em;
    line-height: 1.6;
    transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.blueprint-card:hover .spec-block {
    background: rgba(220, 240, 255, 0.04);
    box-shadow: inset 3px 0 0 var(--accent-icy), 0 0 32px -8px rgba(220, 240, 255, 0.5);
}

/* Four icy corner brackets */
.spec-block::before,
.spec-block::after,
.spec-block > .bracket-bl,
.spec-block > .bracket-br {
    content: '';
    position: absolute;
    width: 9px;
    height: 9px;
    border-color: var(--accent-icy);
    border-style: solid;
    border-width: 0;
    opacity: 0.75;
    transition: opacity 0.3s var(--ease);
}
.spec-block::before { top: -1px; left: -1px; border-top-width: 1px; border-left-width: 1px; }
.spec-block::after { top: -1px; right: -1px; border-top-width: 1px; border-right-width: 1px; }
.spec-block > .bracket-bl { bottom: -1px; left: -1px; border-bottom-width: 1px; border-left-width: 1px; }
.spec-block > .bracket-br { bottom: -1px; right: -1px; border-bottom-width: 1px; border-right-width: 1px; }
.blueprint-card:hover .spec-block::before,
.blueprint-card:hover .spec-block::after,
.blueprint-card:hover .spec-block > .bracket-bl,
.blueprint-card:hover .spec-block > .bracket-br {
    opacity: 1;
    box-shadow: 0 0 8px rgba(220, 240, 255, 0.6);
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 4px 0;
    border-bottom: 1px dashed rgba(220, 240, 255, 0.1);
    position: relative;
}
.spec-row:last-child { border-bottom: none; }

/* Small icy bullet on each row */
.spec-row::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 3px;
    background: var(--accent-icy);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(220, 240, 255, 0.5);
    transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.blueprint-card:hover .spec-row::before {
    box-shadow: 0 0 12px rgba(220, 240, 255, 0.8);
    transform: translateY(-50%) scale(1.4);
}

.spec-key {
    color: rgba(220, 240, 255, 0.55);
    text-transform: uppercase;
    font-size: 9px;
    letter-spacing: 0.12em;
    flex-shrink: 0;
}
.spec-val {
    color: var(--white);
    text-align: right;
    font-weight: 500;
    font-size: 10px;
}

/* =============================================
   BLUEPRINT CARD HOVER INTERACTIONS
   ============================================= */
.blueprint-visual {
    transition: transform 0.3s var(--ease);
    position: relative;
}
.blueprint-card:hover .blueprint-visual {
    transform: scale(1.03);
}
/* =============================================
   SHIP DETAIL (fake windows + metallic sheen via SVG mask)
   ============================================= */
.ship-detail {
    position: absolute;
    inset: 0;
    /* Default: flat icy blue silhouette matching planets */
    background: #9fb4c9;
    transition: background 0.5s var(--ease), opacity 0.5s var(--ease), transform 0.5s var(--ease);
    opacity: 0.8;
}
/* Hover: shared transform/opacity + shape helpers */
.blueprint-card:hover .ship-detail {
    background-repeat: no-repeat;
    background-size: 100% 100%;
    opacity: 1;
    transform: scale(1.03);
}

/* EVE — shiny silver / chrome */
.blueprint-card:hover .ship-detail[data-ship="eve"] {
    background:
        /* bright icy-white windows - dense */
        radial-gradient(circle at 15% 46%, rgba(240,250,255,1) 0, transparent 0.35%),
        radial-gradient(circle at 19% 50%, rgba(200,230,255,1) 0, transparent 0.3%),
        radial-gradient(circle at 23% 48%, rgba(230,245,255,1) 0, transparent 0.35%),
        radial-gradient(circle at 27% 52%, rgba(210,235,255,1) 0, transparent 0.3%),
        radial-gradient(circle at 31% 46%, rgba(240,250,255,1) 0, transparent 0.35%),
        radial-gradient(circle at 35% 50%, rgba(220,240,255,1) 0, transparent 0.3%),
        radial-gradient(circle at 39% 48%, rgba(230,245,255,1) 0, transparent 0.35%),
        radial-gradient(circle at 43% 52%, rgba(210,235,255,1) 0, transparent 0.3%),
        radial-gradient(circle at 47% 46%, rgba(240,250,255,1) 0, transparent 0.35%),
        radial-gradient(circle at 51% 50%, rgba(220,240,255,1) 0, transparent 0.3%),
        radial-gradient(circle at 55% 48%, rgba(230,245,255,1) 0, transparent 0.35%),
        radial-gradient(circle at 59% 52%, rgba(210,235,255,1) 0, transparent 0.3%),
        radial-gradient(circle at 63% 46%, rgba(240,250,255,1) 0, transparent 0.35%),
        radial-gradient(circle at 67% 50%, rgba(220,240,255,1) 0, transparent 0.3%),
        radial-gradient(circle at 71% 48%, rgba(230,245,255,1) 0, transparent 0.35%),
        radial-gradient(circle at 75% 52%, rgba(210,235,255,1) 0, transparent 0.3%),
        radial-gradient(circle at 79% 46%, rgba(240,250,255,1) 0, transparent 0.35%),
        radial-gradient(circle at 83% 50%, rgba(220,240,255,1) 0, transparent 0.3%),
        /* engine glow - icy white */
        radial-gradient(ellipse at 90% 50%, rgba(200,230,255,0.7) 0, transparent 4%),
        radial-gradient(ellipse at 10% 50%, rgba(200,230,255,0.5) 0, transparent 3%),
        /* sharp chrome specular highlight - top */
        linear-gradient(180deg,
            rgba(255,255,255,0.95) 0%,
            rgba(220,235,250,0.7) 8%,
            rgba(170,195,220,0.3) 20%,
            transparent 35%),
        /* secondary highlight band */
        linear-gradient(180deg,
            transparent 55%,
            rgba(230,240,255,0.5) 60%,
            transparent 65%),
        /* key light wash */
        radial-gradient(ellipse at 30% 25%, rgba(255,255,255,0.5) 0, transparent 55%),
        /* body shadow bottom */
        linear-gradient(180deg,
            transparent 60%,
            rgba(40,55,75,0.6) 85%,
            rgba(20,30,45,0.9) 100%),
        /* silver base gradient */
        linear-gradient(180deg,
            rgba(170,195,220,1) 0%,
            rgba(110,135,160,1) 50%,
            rgba(60,80,105,1) 100%);
    background-color: #6e8aa0;
    filter: drop-shadow(0 0 14px rgba(200,230,255,0.35));
}

/* JUGGERNAUT — rusty gold / weathered bronze */
.blueprint-card:hover .ship-detail[data-ship="juggernaut"] {
    background:
        /* warm amber windows - dense */
        radial-gradient(circle at 15% 46%, rgba(255,215,140,1) 0, transparent 0.35%),
        radial-gradient(circle at 19% 50%, rgba(255,190,100,1) 0, transparent 0.3%),
        radial-gradient(circle at 23% 48%, rgba(255,220,150,1) 0, transparent 0.35%),
        radial-gradient(circle at 27% 52%, rgba(255,200,120,1) 0, transparent 0.3%),
        radial-gradient(circle at 31% 46%, rgba(255,225,160,1) 0, transparent 0.35%),
        radial-gradient(circle at 35% 50%, rgba(255,195,110,1) 0, transparent 0.3%),
        radial-gradient(circle at 39% 48%, rgba(255,215,140,1) 0, transparent 0.35%),
        radial-gradient(circle at 43% 52%, rgba(255,205,125,1) 0, transparent 0.3%),
        radial-gradient(circle at 47% 46%, rgba(255,220,150,1) 0, transparent 0.35%),
        radial-gradient(circle at 51% 50%, rgba(255,190,100,1) 0, transparent 0.3%),
        radial-gradient(circle at 55% 48%, rgba(255,215,140,1) 0, transparent 0.35%),
        radial-gradient(circle at 59% 52%, rgba(255,200,120,1) 0, transparent 0.3%),
        radial-gradient(circle at 63% 46%, rgba(255,225,160,1) 0, transparent 0.35%),
        radial-gradient(circle at 67% 50%, rgba(255,195,110,1) 0, transparent 0.3%),
        radial-gradient(circle at 71% 48%, rgba(255,215,140,1) 0, transparent 0.35%),
        radial-gradient(circle at 75% 52%, rgba(255,205,125,1) 0, transparent 0.3%),
        radial-gradient(circle at 79% 46%, rgba(255,220,150,1) 0, transparent 0.35%),
        radial-gradient(circle at 83% 50%, rgba(255,190,100,1) 0, transparent 0.3%),
        /* engine glow - deep orange */
        radial-gradient(ellipse at 90% 50%, rgba(255,140,60,0.8) 0, transparent 5%),
        radial-gradient(ellipse at 10% 50%, rgba(255,140,60,0.6) 0, transparent 4%),
        /* rust patches - irregular dark warm blotches */
        radial-gradient(ellipse at 20% 35%, rgba(90,40,15,0.5) 0, transparent 10%),
        radial-gradient(ellipse at 45% 65%, rgba(100,45,20,0.45) 0, transparent 12%),
        radial-gradient(ellipse at 70% 30%, rgba(85,38,12,0.5) 0, transparent 9%),
        radial-gradient(ellipse at 82% 70%, rgba(95,42,18,0.4) 0, transparent 11%),
        /* weathered gold highlight top */
        linear-gradient(180deg,
            rgba(220,170,90,0.7) 0%,
            rgba(180,130,60,0.4) 20%,
            transparent 40%),
        /* key light wash warm */
        radial-gradient(ellipse at 30% 25%, rgba(255,210,140,0.45) 0, transparent 50%),
        /* deep umber shadow */
        linear-gradient(180deg,
            transparent 55%,
            rgba(50,25,10,0.7) 85%,
            rgba(25,12,5,0.95) 100%),
        /* rusty gold base gradient */
        linear-gradient(180deg,
            rgba(160,110,50,1) 0%,
            rgba(110,70,30,1) 50%,
            rgba(65,40,15,1) 100%);
    background-color: #6e4520;
    filter: drop-shadow(0 0 14px rgba(255,160,80,0.35));
}
.ship-detail[data-ship="eve"] {
    -webkit-mask-image: url("archives/Asset 2eve.svg");
            mask-image: url("archives/Asset 2eve.svg");
}
.ship-detail[data-ship="juggernaut"] {
    -webkit-mask-image: url("archives/Asset 2juggernaur.svg");
            mask-image: url("archives/Asset 2juggernaur.svg");
}
.ship-detail[data-ship] {
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    -webkit-mask-position: center;
            mask-position: center;
    -webkit-mask-size: contain;
            mask-size: contain;
}
.blueprint-card:hover .ship-detail {
    transform: scale(1.03);
    opacity: 1;
}

/* Planet base styles: icy blue tint */
.blueprint-img.planet-img {
    filter: brightness(2) contrast(0.1) invert(1) sepia(1) hue-rotate(170deg) saturate(0.65);
    opacity: 0.8;
    transition: filter 0.5s var(--ease), opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
/* Planet hover: reveal original imagery */
.blueprint-card:hover .blueprint-img.planet-img {
    filter: none !important;
    opacity: 1 !important;
    transform: scale(1.04);
}
/* Glow around visual frame on hover */
.blueprint-visual {
    transition: box-shadow 0.4s var(--ease), transform 0.3s var(--ease);
}
.blueprint-card:hover .blueprint-visual {
    box-shadow: 0 0 30px 4px rgba(220, 240, 255, 0.4), inset 0 0 20px rgba(220, 240, 255, 0.15);
}

/* =============================================
   LOGARITHMIC SCALE BAR
   ============================================= */
.scale-bar {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 60px;
    padding: 30px 24px 50px;
    position: relative;
    background: rgba(220, 240, 255, 0.02);
    border: 1px solid rgba(220, 240, 255, 0.08);
}
.scale-bar::before,
.scale-bar::after,
.scale-bar > .bracket-bl,
.scale-bar > .bracket-br {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border-color: var(--accent-icy);
    border-style: solid;
    border-width: 0;
    opacity: 0.8;
}
.scale-bar::before { top: -1px; left: -1px; border-top-width: 1px; border-left-width: 1px; }
.scale-bar::after { top: -1px; right: -1px; border-top-width: 1px; border-right-width: 1px; }
.scale-bar > .bracket-bl { bottom: -1px; left: -1px; border-bottom-width: 1px; border-left-width: 1px; }
.scale-bar > .bracket-br { bottom: -1px; right: -1px; border-bottom-width: 1px; border-right-width: 1px; }

.scale-bar__title {
    font-family: monospace;
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--accent-icy);
    text-transform: uppercase;
    margin-bottom: 24px;
    opacity: 0.8;
}
.scale-bar__track {
    position: relative;
    height: 2px;
    background: linear-gradient(to right, rgba(220, 240, 255, 0.1), rgba(220, 240, 255, 0.4), rgba(220, 240, 255, 0.1));
    margin: 30px 4% 50px;
}
.scale-bar__tick {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: auto;
}
.scale-bar__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--accent-icy);
    box-shadow: 0 0 10px rgba(220, 240, 255, 0.4);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.scale-bar__tick:hover .scale-bar__dot {
    transform: scale(1.6);
    box-shadow: 0 0 16px rgba(220, 240, 255, 0.8);
}
.scale-bar__label {
    position: absolute;
    top: 14px;
    font-family: monospace;
    font-size: 9px;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
    text-align: center;
}
.scale-bar__label--alt {
    top: auto;
    bottom: 14px;
}
.scale-bar__label-name {
    display: block;
    font-weight: 600;
    color: var(--accent-icy);
    margin-bottom: 2px;
}
.scale-bar__label-size {
    display: block;
    color: rgba(220, 240, 255, 0.55);
    font-size: 8px;
}
.scale-bar__axis {
    display: flex;
    justify-content: space-between;
    font-family: monospace;
    font-size: 8px;
    color: rgba(220, 240, 255, 0.4);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin: 0 4%;
}

@media (max-width: 700px) {
    .scale-bar { padding: 24px 14px 40px; }
    .scale-bar__track { margin: 30px 8% 50px; }
    .scale-bar__label { font-size: 8px; }
    .scale-bar__label-size { font-size: 7px; }
}

.scale-ref-label {
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-family: monospace;
    font-size: 8px;
    color: var(--accent-icy);
    opacity: 0.5;
}

/* Constrain planet inner images so they always fit their visual frame */
.blueprint-visual img.blueprint-img {
    max-height: 100%;
    max-width: 100%;
}

/* The scale section grows with its content — never locked to viewport height */
#scale-analysis {
    height: auto !important;
    min-height: 0 !important;
}

@media (max-width: 1100px) {
    #scale-analysis {
        padding: 80px 5%;
    }

    .blueprint-container {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .blueprint-title {
        font-size: 1.4rem;
    }

    /* Prevent image squishing on tablet - let height adjust proportionally */
    .blueprint-visual img.blueprint-img {
        height: auto !important;
        max-height: 240px;
    }

    .blueprint-visual {
        height: 280px !important;
    }
}

@media (max-width: 600px) {
    #scale-analysis {
        padding: 60px 16px;
    }

    .blueprint-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blueprint-card {
        padding: 14px;
    }

    /* Prevent image squishing on mobile - let height adjust proportionally */
    .blueprint-visual img.blueprint-img {
        height: auto !important;
        max-height: 200px;
    }

    /* On mobile, neutralize per-card inline visual heights to a uniform value
       (the size hierarchy is communicated via the spec block + ordering). */
    .blueprint-visual {
        height: 240px !important;
    }

    /* Stack spec rows vertically when too narrow to keep them on one line */
    .spec-row {
        flex-wrap: wrap;
        gap: 4px;
    }
    .spec-val {
        text-align: left;
        flex-basis: 100%;
    }
}