@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
p {
    max-width: 65ch;
}

dialog.modal-dialog {
    border: none;
    border-radius: var(--border-radius-lg);
    padding: 0;
    max-width: 500px;
    width: 90%;
    background: var(--bg);
    color: var(--text-primary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    margin: auto;
}
dialog.modal-dialog::backdrop {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}
.modal-dialog .modal-content {
    padding: var(--space-xl);
    position: relative;
}
.modal-dialog .modal-close {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
}

/* Apple/Tesla Premium Showcase Core */
.hero-premium {
    position: relative;
    height: 100vh;
    min-height: 800px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-premium::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2); /* Light overlay for stark daylight */
    z-index: 1;
}

.hero-premium .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-premium h1 {
    font-size: clamp(3rem, 6vw, 6rem);
    color: var(--text-on-dark);
    text-transform: uppercase;
    line-height: 0.85;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(0,0,0,0.4);
    text-wrap: balance;
}

.hero-premium .tagline {
    font-size: var(--text-xl);
    color: var(--text-on-dark);
    max-width: 800px;
    font-weight: 400;
    opacity: 0.9;
}

/* Stark Daylight Data Sections (Puffery Word Edition) */
.daylight-data {
    background-color: var(--bg);
    padding: var(--space-3xl) 0;
    border-bottom: 1px solid var(--border-subtle);
}

.stat-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
}
@media (min-width: 900px) {
    .stat-grid:not(.varied-grid) {
        grid-template-columns: 1.5fr 1fr;
        grid-template-rows: auto auto;
    }
    .stat-grid:not(.varied-grid) > *:nth-child(1) {
        grid-column: 1;
        grid-row: 1 / span 2;
        border-right: 1px solid var(--border-subtle);
        padding-right: var(--space-2xl);
        align-self: center;
    }
}

.huge-stat {
    display: flex;
    flex-direction: column;
}

/* The puffery words replace the numbers */
.huge-stat .number {
    font-family: var(--font-display);
    font-size: clamp(3rem, 5vw, 6rem);
    line-height: 0.8;
    color: var(--color-secondary);
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.huge-stat .label {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    color: var(--text-primary);
    text-transform: uppercase;
    margin-bottom: var(--space-xs);
}

.huge-stat .desc {
    font-size: var(--text-base);
    color: var(--text-primary);
    opacity: 0.8;
    line-height: 1.6;
}

/* Interactive Slider Section */
.slider-section {
    background-color: var(--bg-alt);
    padding: var(--space-3xl) 0;
    color: var(--text-primary);
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    max-height: 800px;
    margin-top: var(--space-xl);
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    cursor: ew-resize; /* Cursor indicates drag left/right */
    user-select: none;
}

.slider-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.slider-after {
    z-index: 1;
}

.slider-before {
    z-index: 2;
}

.slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--color-white);
    z-index: 3;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    pointer-events: none; /* Handle doesn't block mouse events on wrapper */
}

.slider-handle-button {
    width: 48px;
    height: 48px;
    background-color: var(--color-secondary);
    border: 3px solid var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-family: var(--font-display);
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: -2px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.slider-labels {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    z-index: 4;
    pointer-events: none;
}

.slider-label-badge {
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px 16px;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

/* The Engineered Genesis */
.genesis-reveal {
    background-color: var(--bg);
    color: var(--text-primary);
    padding: var(--space-3xl) 0;
    text-align: center;
}

.genesis-reveal h2 {
    font-size: clamp(3rem, 5vw, 6rem);
    line-height: 1;
    margin-bottom: var(--space-lg);
    font-family: var(--font-display);
    text-transform: uppercase;
    text-wrap: balance;
}

.genesis-reveal p {
    font-size: var(--text-2xl);
    max-width: 65ch;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.4;
}
