/* ============================================================
   RENEGADE ENTERPRISES - Design System & Styles
   Color Palette: Black, Burnt Orange, Deep Red, Bone White
   Typography: Barlow Condensed (display), Oswald (headers), Inter (body)
   ============================================================ */

/* --- CSS CUSTOM PROPERTIES --- */
:root {
    /* Colors */
    --black:        #0A0A0A;
    --black-light:  #111111;
    --black-card:   #141414;
    --black-hover:  #1A1A1A;
    --orange:       #FF6A00;
    --orange-dark:  #E55D00;
    --orange-light: #FF8C33;
    --red:          #CC1100;
    --red-dark:     #990D00;
    --red-light:    #E63322;
    --white:        #F5F0EB;
    --white-dim:    #B8B2AA;
    --white-muted:  #7A756F;
    --gray:         #2A2A2A;
    --gray-light:   #3A3A3A;

    /* Gradients */
    --gradient-brand: linear-gradient(135deg, var(--orange) 0%, var(--red) 100%);
    --gradient-dark:  linear-gradient(180deg, var(--black) 0%, var(--black-light) 100%);
    --gradient-card:  linear-gradient(145deg, var(--black-card) 0%, var(--black) 100%);
    --gradient-glow:  radial-gradient(ellipse at center, rgba(255, 106, 0, 0.15) 0%, transparent 70%);

    /* Typography */
    --font-display: 'Barlow Condensed', sans-serif;
    --font-heading: 'Oswald', sans-serif;
    --font-body:    'Inter', sans-serif;

    /* Spacing */
    --section-pad: clamp(80px, 10vw, 140px);
    --container:   1280px;

    /* Transitions */
    --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
    --ease-snap: cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Borders */
    --border: 1px solid rgba(255, 255, 255, 0.06);
    --border-hover: 1px solid rgba(255, 106, 0, 0.3);
    --radius: 8px;
    --radius-lg: 16px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

button {
    cursor: pointer;
}

::selection {
    background: var(--orange);
    color: var(--black);
}

/* --- UTILITIES --- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 40px);
}

.text-accent {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section {
    padding: var(--section-pad) 0;
    position: relative;
}

/* --- PRELOADER --- */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s var(--ease-out), visibility 0.8s;
    overflow: hidden;
}

#preloader::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 106, 0, 0.06) 0%, transparent 60%);
    animation: preloader-pulse-bg 3s ease-in-out infinite;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
    animation: preloader-fade-in 0.8s ease-out forwards;
}

/* Logo wrapper with ring */
.preloader-logo-wrap {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-glow {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 106, 0, 0.12) 0%, transparent 70%);
    animation: preloader-glow-pulse 2s ease-in-out infinite;
}

/* Scan lines - horizontal sweeps */
.preloader-scanlines {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 4px;
}

.scanline {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--orange), transparent);
    opacity: 0;
}

.scanline-1 {
    top: 25%;
    animation: scanline-sweep 2.5s ease-in-out 0.3s infinite;
}

.scanline-2 {
    top: 50%;
    animation: scanline-sweep 2.5s ease-in-out 0.8s infinite;
}

.scanline-3 {
    top: 75%;
    animation: scanline-sweep 2.5s ease-in-out 1.3s infinite;
}

/* Corner brackets - tech/military feel */
.preloader-brackets {
    position: absolute;
    inset: -4px;
}

.bracket {
    position: absolute;
    width: 24px;
    height: 24px;
    border-color: var(--orange);
    border-style: solid;
    border-width: 0;
    opacity: 0;
    animation: bracket-appear 0.6s var(--ease-out) 0.2s forwards;
}

.bracket-tl {
    top: 0; left: 0;
    border-top-width: 2px;
    border-left-width: 2px;
}

.bracket-tr {
    top: 0; right: 0;
    border-top-width: 2px;
    border-right-width: 2px;
    animation-delay: 0.35s;
}

.bracket-bl {
    bottom: 0; left: 0;
    border-bottom-width: 2px;
    border-left-width: 2px;
    animation-delay: 0.5s;
}

.bracket-br {
    bottom: 0; right: 0;
    border-bottom-width: 2px;
    border-right-width: 2px;
    animation-delay: 0.65s;
}

/* Pulse rings expanding outward */
.preloader-pulse-ring {
    position: absolute;
    inset: -10px;
    border: 1px solid var(--orange);
    opacity: 0;
    border-radius: 4px;
}

.pulse-1 {
    animation: pulse-expand 3s ease-out 0.5s infinite;
}

.pulse-2 {
    animation: pulse-expand 3s ease-out 1.5s infinite;
}

.preloader-real-logo {
    width: 110px;
    height: 110px;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(255, 106, 0, 0.4)) drop-shadow(0 0 60px rgba(255, 106, 0, 0.15));
    animation: preloader-logo-enter 1s var(--ease-out) forwards, preloader-logo-breathe 3s ease-in-out 1s infinite;
    opacity: 0;
    transform: scale(0.7);
}

/* Text group */
.preloader-text-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    animation: preloader-text-enter 0.8s var(--ease-out) 0.4s forwards;
    opacity: 0;
    transform: translateY(10px);
}

.preloader-brand {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 28px;
    letter-spacing: 8px;
    color: var(--white);
}

.preloader-sub {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 6px;
    color: var(--orange);
}

/* Tagline */
.preloader-tagline {
    animation: preloader-text-enter 0.8s var(--ease-out) 0.7s forwards;
    opacity: 0;
    transform: translateY(10px);
}

.preloader-tagline-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 4px;
    color: var(--white-muted);
    padding: 8px 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50px;
}

/* Progress bar */
.preloader-bar {
    width: 240px;
    height: 2px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 1px;
    overflow: hidden;
    animation: preloader-text-enter 0.6s var(--ease-out) 0.9s forwards;
    opacity: 0;
}

.preloader-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--gradient-brand);
    border-radius: 1px;
    animation: preloader-fill 2.8s cubic-bezier(0.4, 0, 0.2, 1) 1s forwards;
    box-shadow: 0 0 8px rgba(255, 106, 0, 0.5);
}

/* Status text with animated dots */
.preloader-status {
    display: flex;
    align-items: center;
    gap: 8px;
    animation: preloader-text-enter 0.6s var(--ease-out) 1.1s forwards;
    opacity: 0;
}

.preloader-loading-text {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 3px;
    color: var(--white-muted);
}

.preloader-dots {
    display: flex;
    gap: 4px;
}

.pdot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--orange);
    animation: preloader-dot-blink 1.4s ease-in-out infinite;
}

.pdot:nth-child(2) { animation-delay: 0.2s; }
.pdot:nth-child(3) { animation-delay: 0.4s; }

/* --- PRELOADER ANIMATIONS --- */
@keyframes preloader-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes preloader-pulse-bg {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
}

@keyframes preloader-glow-pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

@keyframes scanline-sweep {
    0% { opacity: 0; transform: translateY(-20px); }
    20% { opacity: 0.6; }
    50% { opacity: 0.3; }
    80% { opacity: 0.6; }
    100% { opacity: 0; transform: translateY(20px); }
}

@keyframes bracket-appear {
    from { opacity: 0; transform: scale(1.3); }
    to { opacity: 0.8; transform: scale(1); }
}

@keyframes pulse-expand {
    0% { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(1.5); opacity: 0; }
}

@keyframes preloader-logo-enter {
    to { opacity: 1; transform: scale(1); }
}

@keyframes preloader-logo-breathe {
    0%, 100% { filter: drop-shadow(0 0 30px rgba(255, 106, 0, 0.4)) drop-shadow(0 0 60px rgba(255, 106, 0, 0.15)); }
    50% { filter: drop-shadow(0 0 40px rgba(255, 106, 0, 0.6)) drop-shadow(0 0 80px rgba(255, 106, 0, 0.25)); }
}

@keyframes preloader-text-enter {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes preloader-fill {
    to { width: 100%; }
}

@keyframes preloader-dot-blink {
    0%, 100% { opacity: 0.2; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* --- NAVIGATION --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    /* Explicit property list avoids animating expensive values like
       backdrop-filter on scroll, which caused scroll jitter on mid-range GPUs. */
    transition: background 0.3s var(--ease-out),
                border-color 0.3s var(--ease-out),
                padding 0.3s var(--ease-out);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: var(--border);
    padding: 10px 0;
}

.nav-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 40px);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1001;
}

.nav-logo-img {
    height: 44px;
    width: auto;
    filter: brightness(1.1);
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.nav-brand {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.nav-tagline {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 10px;
    letter-spacing: 4px;
    color: var(--orange);
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--white-dim);
    transition: color 0.3s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-brand);
    transition: width 0.3s var(--ease-out);
}

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

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

.btn-nav-cta {
    background: var(--gradient-brand);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.btn-nav-cta::after {
    display: none;
}

.btn-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 106, 0, 0.3);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s var(--ease-out);
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}

/* Mid-page variant: the hero now lives below the news grid and functions
   as a brand manifesto banner ("advertisement" for Renegade). Shorter,
   tighter, framed by subtle top/bottom rules so it reads as a break
   between news and the services sections. */
.hero.hero-mid {
    min-height: 82vh;
    padding: 90px 0 90px;
    border-top: 1px solid rgba(255, 106, 0, 0.18);
    border-bottom: 1px solid rgba(255, 106, 0, 0.18);
    background:
        radial-gradient(ellipse 60% 50% at 50% 50%, rgba(255,106,0,0.04) 0%, transparent 70%),
        linear-gradient(180deg, #0a0a0a 0%, #050505 50%, #0a0a0a 100%);
}
.hero.hero-mid .hero-content {
    max-width: 960px;
}
@media (max-width: 768px) {
    .hero.hero-mid {
        min-height: auto;
        padding: 70px 0 70px;
    }
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-grain {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    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='1'/%3E%3C/svg%3E");
    background-size: 128px;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(255, 106, 0, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 70% 60%, rgba(204, 17, 0, 0.06) 0%, transparent 50%);
}

.hero-lines {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-line {
    position: absolute;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.03), transparent);
}

.hero-line:nth-child(1) { left: 10%; }
.hero-line:nth-child(2) { left: 30%; }
.hero-line:nth-child(3) { left: 50%; }
.hero-line:nth-child(4) { left: 70%; }
.hero-line:nth-child(5) { left: 90%; }

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 40px);
    /* Promote to its own compositor layer so parallax transforms don't
       repaint the rest of the hero on every frame. */
    will-change: transform, opacity;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border: 1px solid rgba(255, 106, 0, 0.3);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--orange);
    margin-bottom: 32px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--orange);
    border-radius: 50%;
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 900;
    line-height: 0.95;
    margin-bottom: 24px;
}

.hero-title-line {
    display: block;
    font-size: clamp(48px, 9vw, 110px);
    text-transform: uppercase;
    letter-spacing: -1px;
}

.hero-title-accent {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 40px rgba(255, 106, 0, 0.2));
}

.hero-subtitle {
    font-size: clamp(15px, 2vw, 18px);
    color: var(--white-dim);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    display: block;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(28px, 4vw, 42px);
    color: var(--white);
    line-height: 1;
}

.hero-stat-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--white-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 4px;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--gray);
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s var(--ease-out);
    letter-spacing: 0.3px;
}

.btn-primary {
    background: var(--gradient-brand);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 106, 0, 0.35);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-outline {
    border: 1px solid var(--gray-light);
    color: var(--white);
}

.btn-outline:hover {
    border-color: var(--orange);
    background: rgba(255, 106, 0, 0.08);
    transform: translateY(-2px);
}

.btn-count {
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

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

/* Platforms bar */
.hero-platforms {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.platforms-label {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white-muted);
}

.platforms-logos {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.platform-logo {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    color: var(--white-muted);
    letter-spacing: 1px;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.platform-logo:hover {
    opacity: 1;
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 1;
}

.hero-scroll span {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white-muted);
}

.scroll-indicator {
    width: 20px;
    height: 32px;
    border: 1px solid var(--gray-light);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.scroll-dot {
    width: 3px;
    height: 8px;
    background: var(--orange);
    border-radius: 2px;
    animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(10px); opacity: 0.3; }
}

/* --- MARQUEE SECTION --- */
.marquee-section {
    padding: 24px 0;
    background: var(--black-light);
    border-top: var(--border);
    border-bottom: var(--border);
    overflow: hidden;
}

.marquee-track {
    display: flex;
    overflow: hidden;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 32px;
    animation: marquee 40s linear infinite;
    white-space: nowrap;
}

.marquee-item {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(16px, 2.5vw, 22px);
    letter-spacing: 3px;
    color: var(--white-muted);
    transition: color 0.3s;
}

.marquee-item:hover {
    color: var(--orange);
}

.marquee-dot {
    width: 6px;
    height: 6px;
    background: var(--orange);
    border-radius: 50%;
    flex-shrink: 0;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* --- SECTION HEADERS --- */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--orange);
    margin-bottom: 16px;
    position: relative;
}

.section-tag::before,
.section-tag::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background: var(--orange);
    opacity: 0.4;
}

.section-tag::before {
    right: calc(100% + 12px);
}

.section-tag::after {
    left: calc(100% + 12px);
}

.section-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(32px, 5vw, 56px);
    text-transform: uppercase;
    letter-spacing: -0.5px;
    line-height: 1.05;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 16px;
    color: var(--white-dim);
    line-height: 1.7;
}

.section-cta {
    text-align: center;
    margin-top: 48px;
}

/* --- ARTISTS SECTION --- */
.artists-section {
    background: var(--gradient-dark);
}

.artists-filter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--gray);
    border-radius: 50px;
    color: var(--white-dim);
    transition: all 0.3s var(--ease-out);
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--orange);
    color: var(--orange);
    background: rgba(255, 106, 0, 0.08);
}

.artists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 24px;
}

.artist-card {
    background: var(--gradient-card);
    border: var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s var(--ease-out);
}

.artist-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 106, 0, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 106, 0, 0.05);
}

.artist-card-img {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.artist-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        hsl(var(--hue), 80%, 15%) 0%,
        hsl(calc(var(--hue) + 20), 70%, 8%) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
}

.artist-initial {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 80px;
    color: rgba(255, 255, 255, 0.06);
    text-transform: uppercase;
}

.artist-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(10, 10, 10, 0.9) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s;
}

.artist-card:hover .artist-card-overlay {
    opacity: 1;
}

.artist-play-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transform: translateY(10px);
    transition: transform 0.4s var(--ease-out);
}

.artist-card:hover .artist-play-btn {
    transform: translateY(0);
}

.artist-card-info {
    padding: 20px;
}

.artist-name {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.artist-genre {
    font-size: 13px;
    color: var(--orange);
    font-weight: 500;
}

.artist-stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: var(--border);
    font-size: 12px;
    color: var(--white-muted);
}

.artist-label {
    font-weight: 600;
    color: var(--white-dim);
}

/* --- DIAGONAL DIVIDER --- */
.diagonal-divider {
    height: 80px;
    background: var(--black-light);
    clip-path: polygon(0 0, 100% 60%, 100% 100%, 0 100%);
    margin-top: -1px;
}

/* --- RELEASES SECTION --- */
.releases-section {
    background: var(--black-light);
}

.releases-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.03);
    padding: 4px;
    border-radius: 8px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.tab-btn {
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 500;
    color: var(--white-dim);
    border-radius: 6px;
    transition: all 0.3s var(--ease-out);
}

.tab-btn:hover {
    color: var(--white);
}

.tab-btn.active {
    background: var(--gradient-brand);
    color: var(--white);
}

.releases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}

.release-card {
    background: var(--gradient-card);
    border: var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.4s var(--ease-out);
}

.release-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 106, 0, 0.15);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.release-cover {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.release-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(
        145deg,
        hsl(var(--hue1), 60%, 12%) 0%,
        hsl(var(--hue2), 70%, 8%) 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 16px;
}

.release-cover-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.release-cover-artist {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.release-cover-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white);
}

.release-type-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(8px);
    border-radius: 4px;
    color: var(--orange);
}

.release-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    opacity: 0;
    transition: all 0.4s var(--ease-out);
}

.release-card:hover .release-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.release-info {
    padding: 16px;
}

.release-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.release-artist {
    font-size: 13px;
    color: var(--white-dim);
    margin-bottom: 8px;
}

.release-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--white-muted);
}

/* --- PRESS NETWORK SECTION --- */
.press-network-section {
    background: var(--black-light);
    border-top: var(--border);
}

.press-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.press-tier {
    background: var(--gradient-card);
    border: var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    transition: border-color 0.3s;
}

.press-tier:hover {
    border-color: rgba(255, 106, 0, 0.15);
}

.press-tier-label {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 20px;
}

.press-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.press-logo-item {
    padding: 10px 20px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--white-dim);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    transition: all 0.3s var(--ease-out);
    letter-spacing: 0.3px;
}

.press-logo-item:hover {
    border-color: rgba(255, 106, 0, 0.3);
    color: var(--white);
    background: rgba(255, 106, 0, 0.06);
    transform: translateY(-2px);
}

.press-logo-item.press-highlight {
    background: rgba(255, 106, 0, 0.06);
    border-color: rgba(255, 106, 0, 0.15);
    color: var(--white);
    font-size: 15px;
}

.press-logo-item.press-highlight:hover {
    background: rgba(255, 106, 0, 0.12);
    border-color: var(--orange);
    box-shadow: 0 4px 20px rgba(255, 106, 0, 0.15);
}

.press-note {
    text-align: center;
    margin-top: 32px;
    padding: 20px 32px;
    background: var(--gradient-card);
    border: var(--border);
    border-radius: var(--radius);
}

.press-note p {
    font-size: 15px;
    color: var(--white-dim);
    line-height: 1.7;
}

.press-note strong {
    color: var(--orange);
    font-weight: 700;
}

/* --- NEWS SECTION --- */
.news-section {
    background: var(--black);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.news-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.news-card {
    background: var(--gradient-card);
    border: var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s var(--ease-out);
}

.news-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 106, 0, 0.15);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.news-card-img {
    position: relative;
    overflow: hidden;
}

.news-card:not(.news-featured) .news-card-img {
    aspect-ratio: 16/10;
}

.news-placeholder {
    width: 100%;
    height: 100%;
    min-height: 200px;
    background: linear-gradient(
        135deg,
        hsl(var(--hue), 60%, 12%) 0%,
        hsl(calc(var(--hue) + 15), 50%, 6%) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.08);
}

/* Real photo sits absolutely on top of the placeholder. If onerror fires,
   .has-photo is removed by JS and the placeholder shows through naturally. */
.news-card-img { position: relative; overflow: hidden; }
.news-card-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    z-index: 1;
    transition: transform 0.6s cubic-bezier(.2,.8,.2,1), filter 0.4s ease;
    filter: brightness(0.85) saturate(1.05);
    background: #0c0c0f;
}
.news-card:hover .news-card-photo { transform: scale(1.04); filter: brightness(0.95) saturate(1.1); }
.news-card-img.has-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 45%);
    z-index: 2;
    pointer-events: none;
}
.news-card-img.news-img-failed .news-card-photo { display: none; }
.news-category { z-index: 3; }
.news-source-badge {
    position: absolute;
    bottom: 12px;
    left: 16px;
    z-index: 3;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 3px;
}

/* ---------------- PHOTO CREDIT / COPYRIGHT ATTRIBUTION ---------------- */
/* Bottom-right corner of every article image. Small, unobtrusive, but
   always visible — rights holders never see their work uncredited.
   Kept subtle so it doesn't fight the image; on hover the tile lifts
   it up to match the card's own hover micro-interaction. */
.news-photo-credit {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 3;
    max-width: calc(100% - 20px);
    padding: 3px 8px;
    font-size: 9px;
    line-height: 1.25;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    text-align: right;
    pointer-events: none;            /* never blocks the card's Read Full Story */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.25s ease, background 0.25s ease;
}
.news-photo-credit-label {
    opacity: 0.72;
    text-transform: lowercase;
    font-size: 8.5px;
}
.news-photo-credit-src {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.news-photo-credit-sym {
    margin-left: 3px;
    opacity: 0.72;
    font-weight: 400;
}
.news-card:hover .news-photo-credit {
    color: rgba(255, 255, 255, 0.92);
    background: rgba(0, 0, 0, 0.68);
}

/* Featured card credit — bigger image canvas, so we can afford a slightly
   larger pill in the bottom-right corner. Lives inside .featured-bg so
   it sits above the darkening overlay but below the title/excerpt. */
.featured-photo-credit {
    position: absolute;
    bottom: 16px;
    right: 20px;
    z-index: 2;
    max-width: calc(100% - 40px);
    padding: 5px 12px;
    font-size: 10px;
    line-height: 1.3;
    font-weight: 500;
    letter-spacing: 0.4px;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    text-align: right;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.featured-photo-credit .news-photo-credit-label {
    opacity: 0.75;
    text-transform: lowercase;
    font-size: 9.5px;
}
.featured-photo-credit .news-photo-credit-src {
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.featured-photo-credit .news-photo-credit-sym {
    margin-left: 4px;
    opacity: 0.8;
}
@media (max-width: 768px) {
    .featured-photo-credit { bottom: 12px; right: 14px; font-size: 9px; padding: 4px 10px; }
    .news-photo-credit { font-size: 8.5px; padding: 2px 7px; }
}

/* ---------------- AGGREGATOR / COPYRIGHT DISCLAIMER ----------------- */
/* Sits between the news section header and the first news surface.
   Communicates clearly that Renegade is an aggregator: we credit every
   source, we don't own any content, rights holders can request removal.
   Designed to look official without breaking the page's dark aesthetic. */
.news-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    max-width: 920px;
    /* Disclaimer now sits at the tail of the news feed, as a footnote to
       everything above. Top gap separates it from the last row of cards;
       bottom gap gives room before the "All News & Updates" button. */
    margin: 56px auto 28px;
    padding: 16px 22px;
    background: linear-gradient(135deg, rgba(255, 106, 0, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 106, 0, 0.18);
    border-left: 3px solid var(--accent, #ff6a00);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    line-height: 1.65;
    text-align: left;
}
.news-disclaimer-icon {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--accent, #ff6a00);
    opacity: 0.85;
}
.news-disclaimer-text {
    margin: 0;
    flex: 1;
}
.news-disclaimer-text strong {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 700;
    letter-spacing: 0.3px;
}
.news-disclaimer-link {
    color: var(--accent, #ff6a00);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 106, 0, 0.35);
    transition: border-color 0.25s ease, color 0.25s ease;
}
.news-disclaimer-link:hover {
    color: #ff8a2e;
    border-bottom-color: #ff8a2e;
}
@media (max-width: 640px) {
    .news-disclaimer { font-size: 12px; padding: 14px 16px; gap: 10px; margin: 40px auto 20px; }
    .news-disclaimer-icon { width: 16px; height: 16px; }
}

.news-category {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: var(--gradient-brand);
    border-radius: 4px;
    color: var(--white);
}

/* Skeleton shimmer while live news loads */
.news-skeleton .news-title,
.news-skeleton .news-excerpt,
.news-skeleton .news-meta time,
.news-skeleton .news-meta span {
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.04) 100%);
    background-size: 200% 100%;
    border-radius: 4px;
    color: transparent !important;
    animation: news-shimmer 1.6s linear infinite;
}
.news-skeleton .news-title { height: 22px; margin-bottom: 10px; }
.news-skeleton .news-excerpt { height: 44px; }
.news-skeleton .news-meta time,
.news-skeleton .news-meta span { display: inline-block; height: 12px; min-width: 80px; }
@keyframes news-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.news-status {
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    letter-spacing: 1px;
    text-transform: uppercase;
    min-height: 18px;
}
.news-grid[data-state="error"] + .news-status::before {
    content: "UNABLE TO LOAD LIVE FEED \u2014 TRY AGAIN SHORTLY";
}

.news-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: var(--white-muted);
    margin-bottom: 12px;
}

.news-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 12px;
    transition: color 0.3s;
}

.news-card:hover .news-title {
    color: var(--orange);
}

.news-featured .news-title {
    font-size: 26px;
}

.news-excerpt {
    font-size: 14px;
    color: var(--white-dim);
    line-height: 1.7;
    margin-bottom: 16px;
}

.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--orange);
    transition: gap 0.3s var(--ease-out);
}

.news-read-more:hover {
    gap: 12px;
}

/* --- SERVICES SECTION --- */
.services-section {
    background: var(--black-light);
    position: relative;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gray-light), transparent);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--gradient-card);
    border: var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease-out);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-brand);
    transform: scaleX(0);
    transition: transform 0.4s var(--ease-out);
    transform-origin: left;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 106, 0, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: rgba(255, 106, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
    margin-bottom: 24px;
    transition: all 0.4s var(--ease-out);
}

.service-card:hover .service-icon {
    background: var(--gradient-brand);
    color: var(--white);
    transform: scale(1.05);
}

.service-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
}

.service-desc {
    font-size: 14px;
    color: var(--white-dim);
    line-height: 1.7;
}

.service-number {
    position: absolute;
    bottom: 20px;
    right: 24px;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 64px;
    color: rgba(255, 255, 255, 0.02);
    line-height: 1;
}

/* --- ABOUT SECTION --- */
.about-section {
    background: var(--black);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text {
    font-size: 16px;
    color: var(--white-dim);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.about-value {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
}

.about-value-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(255, 106, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
    flex-shrink: 0;
}

.about-value-icon svg {
    width: 14px;
    height: 14px;
}

.about-visual {
    display: flex;
    justify-content: center;
}

.about-image-frame {
    position: relative;
    background: var(--gradient-card);
    border: var(--border);
    border-radius: var(--radius-lg);
    padding: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    max-width: 400px;
    width: 100%;
}

.about-image-frame::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-lg);
    background: var(--gradient-brand);
    z-index: -1;
    opacity: 0.15;
}

.about-logo-display {
    max-width: 280px;
    filter: drop-shadow(0 0 30px rgba(255, 106, 0, 0.15));
}

.about-est {
    text-align: center;
}

.about-est-label {
    display: block;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--white-muted);
    margin-bottom: 4px;
}

.about-est-year {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 48px;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- CONTACT SECTION --- */
.contact-section {
    background: var(--black-light);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 106, 0, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--gray);
    border-radius: var(--radius);
    color: var(--white);
    font-size: 14px;
    transition: all 0.3s var(--ease-out);
}

.form-input::placeholder {
    color: var(--white-muted);
}

.form-input:focus {
    border-color: var(--orange);
    background: rgba(255, 106, 0, 0.04);
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.1);
}

.form-select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%237A756F' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 44px;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* --- FOOTER --- */
.footer {
    background: var(--black);
    border-top: var(--border);
    padding: 64px 0 32px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: var(--border);
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 16px;
    opacity: 0.7;
}

.footer-tagline {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 12px;
}

.footer-desc {
    font-size: 14px;
    color: var(--white-muted);
    line-height: 1.7;
    max-width: 300px;
}

/* --- IL LOKO Technologies "Made in Italy" badge ---
   Clickable link to the developer partner site. Rendered as a
   rounded dark pill with a white serif wordmark, a narrow Italian
   tricolor bar underneath, and a small "MADE IN ITALY" caption.
   Pure CSS — no image asset needed, stays crisp at any DPI. */
.iltech-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 28px;
    padding: 14px 28px 12px;
    background: linear-gradient(180deg, #1a1a20 0%, #0c0c10 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    text-decoration: none;
    color: #f4f4f6;
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: transform 180ms ease, border-color 180ms ease,
                box-shadow 180ms ease, background 180ms ease;
    cursor: pointer;
}
.iltech-badge:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.16);
    background: linear-gradient(180deg, #1f1f26 0%, #0f0f14 100%);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.iltech-badge:focus-visible {
    outline: 2px solid var(--orange, #ff6a00);
    outline-offset: 3px;
}

.iltech-badge-word {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.4px;
    line-height: 1;
    color: #ffffff;
    white-space: nowrap;
}
.iltech-badge-word em {
    font-style: italic;
    font-weight: 500;
    color: #ffffff;
}

/* Italian tricolor bar — three equal segments inside the pill. */
.iltech-badge-flag {
    display: inline-flex;
    width: 72px;
    height: 2px;
    border-radius: 1px;
    overflow: hidden;
}
.iltech-flag-green { flex: 1; background: #008c45; }
.iltech-flag-white { flex: 1; background: #f4f5f0; }
.iltech-flag-red   { flex: 1; background: #cd212a; }

.iltech-badge-caption {
    font-family: var(--font-heading, Inter), system-ui, sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1;
}

/* On narrow screens keep the badge on its own line but scale the
   wordmark slightly so it never pushes the footer-brand column. */
@media (max-width: 520px) {
    .iltech-badge {
        padding: 12px 22px 10px;
    }
    .iltech-badge-word {
        font-size: 16px;
    }
    .iltech-badge-flag {
        width: 60px;
    }
}

.footer-links-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 14px;
    color: var(--white-muted);
    transition: color 0.3s;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--white-muted);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-muted);
    transition: all 0.3s var(--ease-out);
}

.social-link:hover {
    border-color: var(--orange);
    color: var(--orange);
    background: rgba(255, 106, 0, 0.08);
    transform: translateY(-2px);
}

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

.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- SUCCESS DIALOG --- */
.success-dialog {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease-out), visibility 0.4s;
}

.success-dialog.visible {
    opacity: 1;
    visibility: visible;
}

.success-dialog-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.success-dialog-box {
    position: relative;
    background: var(--black-card);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    max-width: 440px;
    width: 90%;
    text-align: center;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s var(--ease-out);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(34, 197, 94, 0.1);
}

.success-dialog.visible .success-dialog-box {
    transform: scale(1) translateY(0);
}

.success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.1);
    border: 2px solid rgba(34, 197, 94, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: #22c55e;
    animation: success-check-pop 0.5s var(--ease-snap) forwards;
}

.success-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    color: #22c55e;
    margin-bottom: 12px;
}

.success-text {
    font-size: 14px;
    color: var(--white-dim);
    line-height: 1.7;
    margin-bottom: 28px;
}

.success-close-btn {
    padding: 12px 40px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.success-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.3);
}

@keyframes success-check-pop {
    0% { transform: scale(0); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* --- COOKIES BANNER --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    background: rgba(20, 20, 20, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 106, 0, 0.15);
    padding: 16px 0;
    transform: translateY(100%);
    transition: transform 0.5s var(--ease-out);
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner.hidden {
    transform: translateY(100%);
}

.cookie-content {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 40px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-text {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.cookie-text svg {
    color: var(--orange);
    flex-shrink: 0;
}

.cookie-text p {
    font-size: 13px;
    color: var(--white-dim);
    line-height: 1.5;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.cookie-link {
    font-size: 12px;
    color: var(--white-muted);
    text-decoration: underline;
    transition: color 0.3s;
}

.cookie-link:hover {
    color: var(--orange);
}

.cookie-accept {
    padding: 8px 24px;
    background: var(--gradient-brand);
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.cookie-accept:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 106, 0, 0.3);
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    .cookie-text {
        flex-direction: column;
    }
}

/* --- LANGUAGE SELECTOR --- */
.lang-selector {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--gray);
    border-radius: 6px;
    color: var(--white-dim);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s var(--ease-out);
}

.lang-btn:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--black-card);
    border: var(--border);
    border-radius: var(--radius);
    padding: 6px;
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.3s var(--ease-out);
    z-index: 100;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

.lang-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: block;
    width: 100%;
    padding: 8px 14px;
    text-align: left;
    font-size: 13px;
    color: var(--white-dim);
    border-radius: 4px;
    transition: all 0.2s;
}

.lang-option:hover {
    background: rgba(255, 106, 0, 0.1);
    color: var(--white);
}

.lang-option.active {
    color: var(--orange);
    font-weight: 600;
}

/* --- SERVICES GRID 3 COLUMNS --- */
.services-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* --- SERVICE CARD HIGHLIGHT (last card) --- */
.service-card-highlight {
    background: linear-gradient(145deg, rgba(255, 106, 0, 0.06) 0%, var(--black-card) 100%);
    border-color: rgba(255, 106, 0, 0.15);
}

.service-card-highlight .service-icon {
    background: var(--gradient-brand);
    color: var(--white);
}

/* --- ABOUT TIMELINE --- */
.about-timeline {
    margin-top: 40px;
}

.timeline-item {
    display: flex;
    gap: 24px;
    padding-bottom: 32px;
    margin-bottom: 32px;
    border-bottom: var(--border);
    position: relative;
}

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

.timeline-year {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 24px;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-width: 70px;
    flex-shrink: 0;
    line-height: 1.3;
}

.timeline-content h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: 14px;
    color: var(--white-dim);
    line-height: 1.7;
}

.timeline-content strong {
    color: var(--orange);
    font-weight: 600;
}

/* --- ABOUT MOTTO --- */
.about-motto {
    text-align: center;
    padding: 16px 0;
    border-top: var(--border);
    border-bottom: var(--border);
    width: 100%;
}

.about-motto-text {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 4px;
    color: var(--orange);
}

/* --- ABOUT VALUES COMPACT --- */
.about-values-compact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.about-value-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--gradient-card);
    border: var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    color: var(--white-dim);
    transition: all 0.3s var(--ease-out);
}

.about-value-item:hover {
    border-color: rgba(255, 106, 0, 0.2);
    background: rgba(255, 106, 0, 0.04);
}

.about-value-item svg {
    color: var(--orange);
    flex-shrink: 0;
}

/* --- CONTACT INFO ITEMS --- */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--white-dim);
}

.contact-info-item svg {
    color: var(--orange);
    flex-shrink: 0;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-visual {
        order: -1;
    }

    .contact-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .news-featured {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        inset: 0;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 24px;
        transform: translateX(100%);
        transition: transform 0.4s var(--ease-out);
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .nav-toggle {
        display: flex;
    }

    .nav-link {
        font-size: 18px;
    }

    .services-grid,
    .services-grid-3 {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-links-group {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

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

    .timeline-item {
        flex-direction: column;
        gap: 8px;
    }

    .lang-selector {
        order: 10;
    }
}

@media (max-width: 480px) {
    .footer-links-group {
        grid-template-columns: 1fr;
    }

    .hero-title-line {
        font-size: 40px;
    }
}

/* =========================================================
   BREAKING NEWS STRIP — pinned under navbar, rotating
   ========================================================= */
.breaking-strip {
    position: sticky;
    top: 68px; /* below navbar */
    z-index: 900;
    background: linear-gradient(90deg, #8b0000 0%, #b91c1c 50%, #8b0000 100%);
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(0,0,0,0.35);
    box-shadow: 0 6px 24px rgba(139,0,0,0.35);
    overflow: hidden;
    transition: transform 0.25s var(--ease-out), opacity 0.25s;
}
.breaking-strip[data-state="loading"] { opacity: 0.75; }
.breaking-strip[data-state="empty"] { display: none; }

.breaking-strip-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 32px);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    height: 42px;
}

.breaking-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 2px;
    color: #fff;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 3px;
    white-space: nowrap;
    flex-shrink: 0;
}
.breaking-dot {
    width: 7px;
    height: 7px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(255,255,255,0.9);
    animation: breaking-pulse 1.4s ease-out infinite;
}
@keyframes breaking-pulse {
    0%   { box-shadow: 0 0 0 0   rgba(255,255,255,0.9); }
    70%  { box-shadow: 0 0 0 10px rgba(255,255,255,0);   }
    100% { box-shadow: 0 0 0 0   rgba(255,255,255,0);   }
}

.breaking-track {
    position: relative;
    overflow: hidden;
    height: 42px;
    flex: 1;
    min-width: 0;
}
.breaking-item {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 42px;
    color: #fff;
    text-decoration: none;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
}
.breaking-item.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.breaking-item.is-leaving {
    opacity: 0;
    transform: translateY(-6px);
}
.breaking-source {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 2px 8px;
    background: rgba(0,0,0,0.35);
    border-radius: 2px;
    flex-shrink: 0;
}
.breaking-title {
    font-size: 14px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}
.breaking-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .breaking-strip-inner {
        grid-template-columns: auto 1fr;
        gap: 10px;
    }
    .breaking-meta { display: none; }
    .breaking-label { padding: 3px 8px; font-size: 11px; letter-spacing: 1.4px; }
    .breaking-title { font-size: 13px; }
}
@media (max-width: 480px) {
    .breaking-source { display: none; }
}

/* =========================================================
   FEATURED TRENDING STORY — giant card above news grid
   ========================================================= */
.featured-trending {
    display: block;
    position: relative;
    min-height: 440px;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    margin-bottom: 28px;
    background: #141414;
    box-shadow: 0 22px 60px -20px rgba(0,0,0,0.7), inset 0 0 0 1px rgba(255,255,255,0.05);
    isolation: isolate;
    transition: transform 0.45s var(--ease-out), box-shadow 0.45s;
}
.featured-trending[data-state="loading"] {
    background: linear-gradient(120deg, #1a1a1a 0%, #262626 50%, #1a1a1a 100%);
    background-size: 200% 100%;
    animation: news-shimmer 1.8s ease-in-out infinite;
    min-height: 380px;
}
.featured-trending[data-state="empty"] { display: none; }
.featured-trending:hover {
    transform: translateY(-2px);
    box-shadow: 0 30px 80px -20px rgba(0,0,0,0.8), inset 0 0 0 1px rgba(255,106,0,0.35);
}
.featured-trending:hover .featured-photo {
    transform: scale(1.03);
}

.featured-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.featured-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.0);
    transition: transform 0.9s var(--ease-out);
    filter: brightness(0.72) saturate(1.12);
}
.featured-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(10,10,10,0.05) 0%, rgba(10,10,10,0.55) 55%, rgba(10,10,10,0.92) 100%),
        linear-gradient(90deg, rgba(10,10,10,0.75) 0%, rgba(10,10,10,0.0) 70%);
}
.featured-trending[data-state="loading"] .featured-bg,
.featured-trending[data-state="loading"] .featured-body { visibility: hidden; }

.featured-body {
    position: relative;
    z-index: 2;
    padding: clamp(24px, 4vw, 48px);
    max-width: 820px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 440px;
    gap: 16px;
}

.featured-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.featured-trending-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #ff3b3b 0%, #b91c1c 100%);
    border-radius: 4px;
    box-shadow: 0 6px 20px rgba(255,59,59,0.35);
}
.trending-pulse {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(255,255,255,0.9);
    animation: breaking-pulse 1.4s ease-out infinite;
}
.featured-category {
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    background: var(--gradient-brand, linear-gradient(135deg, #ff6a00 0%, #e85600 100%));
    color: #fff;
    border-radius: 3px;
}
.featured-source {
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.92);
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 3px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.featured-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: clamp(28px, 4.6vw, 54px);
    line-height: 1.05;
    letter-spacing: -0.5px;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 30px rgba(0,0,0,0.4);
}
.featured-excerpt {
    font-size: clamp(14px, 1.6vw, 17px);
    line-height: 1.55;
    color: rgba(255,255,255,0.82);
    max-width: 720px;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.featured-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 8px;
    flex-wrap: wrap;
}
.featured-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--orange, #ff6a00);
    transition: gap 0.25s;
}
.featured-trending:hover .featured-cta { gap: 14px; }
.featured-date {
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
}

@media (max-width: 640px) {
    .featured-trending { min-height: 340px; }
    .featured-body { min-height: 340px; }
    .featured-title { font-size: 26px; }
    .featured-excerpt { -webkit-line-clamp: 3; }
}

/* =========================================================
   TOP STORIES RAIL — horizontal list of ranks 2-4
   ========================================================= */
.top-stories-rail {
    margin: 0 0 32px;
    padding: 18px 0 22px;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.top-stories-rail[data-state="empty"] { display: none; }
.rail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 0 2px;
}
.rail-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
}
.rail-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 2px;
    color: #ff3b3b;
}
.live-dot {
    width: 7px;
    height: 7px;
    background: #ff3b3b;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(255,59,59,0.8);
    animation: breaking-pulse 1.4s ease-out infinite;
}

.rail-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.rail-item {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 14px;
    align-items: center;
    padding: 10px 12px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
    transition: transform 0.25s, background 0.25s, border-color 0.25s;
    min-height: 84px;
}
.rail-item:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,106,0,0.3);
}
.rail-rank {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 42px;
    line-height: 1;
    color: transparent;
    background: linear-gradient(135deg, #ff6a00 0%, #ffb347 100%);
    -webkit-background-clip: text;
    background-clip: text;
    text-align: center;
    letter-spacing: -2px;
}
.rail-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.rail-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 10px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
}
.rail-meta .rail-source {
    color: var(--orange, #ff6a00);
    font-weight: 700;
}
.rail-item-title {
    font-size: 14px;
    line-height: 1.35;
    font-weight: 600;
    color: rgba(255,255,255,0.95);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 900px) {
    .rail-items { grid-template-columns: 1fr; }
}

/* Rank badge on main news grid cards */
.news-card[data-rank] .news-rank-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 4;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0,0,0,0.65);
    border: 1px solid rgba(255,106,0,0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 16px;
    color: #ff6a00;
}

/* =========================================================
   DEV-MODE CONTACT NOTICE — shown instead of mailto fallback
   when running locally without PHP
   ========================================================= */
.dev-notice-dialog {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.dev-notice-dialog.visible { display: flex; }
.dev-notice-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10,10,10,0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.dev-notice-card {
    position: relative;
    max-width: 520px;
    width: 100%;
    padding: 32px;
    background: #161616;
    border: 1px solid rgba(255,193,7,0.35);
    border-radius: 12px;
    box-shadow: 0 30px 80px -20px rgba(0,0,0,0.8);
    color: #fff;
}
.dev-notice-card h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0 0 12px;
    color: #ffc107;
}
.dev-notice-card p { margin: 0 0 10px; line-height: 1.55; color: rgba(255,255,255,0.82); font-size: 14px; }
.dev-notice-card code {
    display: inline-block;
    padding: 2px 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    color: #ff6a00;
}
.dev-notice-card button {
    margin-top: 16px;
    padding: 10px 22px;
    background: var(--gradient-brand, linear-gradient(135deg, #ff6a00, #e85600));
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
}

/* ============================================================
   DMCA TAKEDOWN MODAL
   Triggered by the "DMCA policy" link inside the news-disclaimer
   at the bottom of the news feed. Submits to DMCA@renegadeinc.org
   via FormSubmit.co. Built to match the site's dark aesthetic
   without overwhelming the page.
   ============================================================ */
.dmca-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.dmca-modal.visible {
    display: flex;
    animation: dmcaFadeIn 0.25s ease;
}
@keyframes dmcaFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.dmca-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 8, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
}
.dmca-modal-card {
    position: relative;
    width: 100%;
    max-width: 640px;
    max-height: calc(100vh - 48px);
    overflow: hidden;
    background: linear-gradient(180deg, #15161b 0%, #0e0f13 100%);
    border: 1px solid rgba(255, 106, 0, 0.22);
    border-radius: 14px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 106, 0, 0.06) inset;
    display: flex;
    flex-direction: column;
    animation: dmcaSlideUp 0.35s cubic-bezier(0.2, 0.9, 0.3, 1);
}
@keyframes dmcaSlideUp {
    from { opacity: 0; transform: translateY(24px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.dmca-modal-x {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.72);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    z-index: 2;
}
.dmca-modal-x:hover {
    background: rgba(255, 106, 0, 0.15);
    border-color: rgba(255, 106, 0, 0.35);
    color: #ff8a2e;
}

.dmca-modal-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px 28px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.dmca-modal-icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 106, 0, 0.18), rgba(255, 106, 0, 0.06));
    border: 1px solid rgba(255, 106, 0, 0.28);
    border-radius: 10px;
    color: var(--accent, #ff6a00);
}
.dmca-modal-heading h3 {
    margin: 0;
    font-family: var(--font-heading, 'Oswald', sans-serif);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
}
.dmca-modal-subtitle {
    margin: 4px 0 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.dmca-modal-body {
    padding: 22px 28px 26px;
    overflow-y: auto;
    flex: 1;
}
.dmca-intro {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.72);
}

.dmca-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.dmca-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 560px) {
    .dmca-form-row { grid-template-columns: 1fr; }
}
.dmca-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.dmca-field-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
}
.dmca-field input,
.dmca-field select,
.dmca-field textarea {
    width: 100%;
    padding: 11px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.dmca-field textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.55;
}
.dmca-field input:focus,
.dmca-field select:focus,
.dmca-field textarea:focus {
    outline: none;
    border-color: rgba(255, 106, 0, 0.55);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.15);
}
.dmca-field input::placeholder,
.dmca-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.32);
}
.dmca-field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='rgba(255,255,255,0.55)' stroke-width='2'%3E%3Cpolyline points='1 1 6 6 11 1'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}
.dmca-field select option {
    background: #15161b;
    color: #fff;
}

.dmca-form-legal {
    margin: 4px 0 0;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 2px solid rgba(255, 106, 0, 0.4);
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.6);
}
.dmca-form-legal strong {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.dmca-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 6px;
}
.dmca-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
    border: 1px solid transparent;
}
.dmca-btn:active { transform: translateY(1px); }
.dmca-btn-ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
}
.dmca-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
}
.dmca-btn-primary {
    background: linear-gradient(135deg, #ff6a00 0%, #e85600 100%);
    border-color: rgba(255, 106, 0, 0.6);
    color: #fff;
    box-shadow: 0 6px 20px rgba(255, 106, 0, 0.25);
}
.dmca-btn-primary:hover {
    background: linear-gradient(135deg, #ff7a1a 0%, #ff6a00 100%);
    box-shadow: 0 8px 24px rgba(255, 106, 0, 0.35);
}
.dmca-btn-primary:disabled {
    opacity: 0.7;
    cursor: wait;
}

/* Success state (hidden until submit succeeds) */
.dmca-success {
    text-align: center;
    padding: 8px 0 4px;
}
.dmca-success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.06));
    border: 1px solid rgba(34, 197, 94, 0.4);
    border-radius: 50%;
    color: #22c55e;
}
.dmca-success h4 {
    margin: 0 0 10px;
    font-family: var(--font-heading, 'Oswald', sans-serif);
    font-size: 22px;
    color: #fff;
}
.dmca-success p {
    margin: 0 auto 22px;
    max-width: 420px;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 560px) {
    .dmca-modal { padding: 12px; }
    .dmca-modal-card { max-height: calc(100vh - 24px); border-radius: 10px; }
    .dmca-modal-header { padding: 20px 20px 16px; gap: 12px; }
    .dmca-modal-icon { width: 40px; height: 40px; }
    .dmca-modal-heading h3 { font-size: 18px; }
    .dmca-modal-body { padding: 18px 20px 22px; }
    .dmca-form-actions { flex-direction: column-reverse; }
    .dmca-form-actions .dmca-btn { width: 100%; }
}

/* Lock page scroll when modal is open */
body.dmca-open { overflow: hidden; }

/* ============================================================
   NEWS ARCHIVE MODAL
   Full-screen overlay opened by "All News & Updates" CTA.
   Shows up to 500 aggregated stories (~30 days). Same aesthetic
   language as the DMCA modal but with a list/grid layout and
   built-in search + source + region filters.
   ============================================================ */
.archive-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: stretch;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.86);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity .25s var(--ease-out);
}
.archive-modal.is-open {
    display: flex;
    opacity: 1;
    animation: archiveFadeIn .25s var(--ease-out);
}
@keyframes archiveFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.archive-modal-backdrop {
    position: absolute;
    inset: 0;
    cursor: pointer;
}
.archive-modal-shell {
    position: relative;
    width: 100%;
    max-width: 1160px;
    height: 100%;
    max-height: calc(100vh - 48px);
    margin: auto;
    background: linear-gradient(180deg, #0f0f0f 0%, #0a0a0a 100%);
    border: 1px solid rgba(255, 106, 0, 0.22);
    border-radius: 16px;
    box-shadow:
        0 40px 120px rgba(0, 0, 0, 0.75),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 0 70px rgba(255, 106, 0, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: archiveSlideUp .3s var(--ease-out);
}
@keyframes archiveSlideUp {
    from { transform: translateY(30px) scale(0.98); opacity: 0; }
    to   { transform: none; opacity: 1; }
}
.archive-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 26px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background:
        radial-gradient(ellipse at top right, rgba(255, 106, 0, 0.12) 0%, transparent 60%),
        linear-gradient(180deg, rgba(255, 106, 0, 0.04) 0%, transparent 100%);
}
.archive-modal-title-wrap { flex: 1; min-width: 0; }
.archive-modal-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(22px, 3vw, 30px);
    letter-spacing: 0.02em;
    color: #fff;
    text-transform: uppercase;
    margin: 0 0 4px;
}
.archive-modal-sub {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.64);
    line-height: 1.5;
}
.archive-modal-count {
    color: var(--orange-light);
    font-weight: 600;
}
.archive-modal-close {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.78);
    transition: background .2s, color .2s, border-color .2s;
}
.archive-modal-close:hover {
    background: rgba(255, 106, 0, 0.15);
    border-color: rgba(255, 106, 0, 0.4);
    color: #fff;
}

.archive-modal-toolbar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 14px 26px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.015);
}
.archive-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    transition: border-color .2s, background .2s;
}
.archive-search:focus-within {
    border-color: rgba(255, 106, 0, 0.5);
    background: rgba(255, 106, 0, 0.04);
}
.archive-search svg { color: rgba(255, 255, 255, 0.5); flex: 0 0 auto; }
.archive-search input {
    flex: 1;
    min-width: 0;
    padding: 10px 4px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 14px;
    outline: none;
}
.archive-search input::placeholder { color: rgba(255, 255, 255, 0.4); }
.archive-filters { display: flex; gap: 10px; }
.archive-select {
    min-width: 150px;
    padding: 10px 32px 10px 12px;
    background: rgba(255, 255, 255, 0.04) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23ffffff' stroke-opacity='.6' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") right 12px center / 10px 6px no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}
.archive-select:focus {
    border-color: rgba(255, 106, 0, 0.5);
    background-color: rgba(255, 106, 0, 0.04);
}
.archive-select option { background: #141414; color: #fff; }

.archive-modal-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 18px 26px 26px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    align-content: start;
    scrollbar-color: rgba(255, 106, 0, 0.4) transparent;
}
.archive-modal-body::-webkit-scrollbar { width: 10px; }
.archive-modal-body::-webkit-scrollbar-track { background: transparent; }
.archive-modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 106, 0, 0.4);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.archive-item {
    display: flex;
    flex-direction: column;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    overflow: hidden;
    color: inherit;
    transition: transform .2s var(--ease-out), border-color .2s, background .2s;
}
.archive-item:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 106, 0, 0.3);
    background: linear-gradient(160deg, rgba(255, 106, 0, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
}
.archive-item-media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #0a0a0a;
    overflow: hidden;
}
.archive-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.archive-item-noimg {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, hsl(var(--hue, 20), 70%, 18%) 0%, hsl(var(--hue, 20), 70%, 8%) 100%);
}
.archive-item-text {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.archive-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.55);
}
.archive-item-source {
    color: var(--orange-light);
    font-weight: 700;
}
.archive-item-cat {
    padding: 2px 6px;
    background: rgba(255, 106, 0, 0.12);
    border: 1px solid rgba(255, 106, 0, 0.25);
    border-radius: 4px;
    color: var(--orange-light);
}
.archive-item-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    color: #fff;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.archive-item-excerpt {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.62);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.archive-empty {
    grid-column: 1 / -1;
    padding: 60px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 15px;
}
.archive-loading {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.65);
}
.archive-loading-spinner {
    width: 34px;
    height: 34px;
    border: 3px solid rgba(255, 106, 0, 0.2);
    border-top-color: var(--orange);
    border-radius: 50%;
    animation: archiveSpin 1s linear infinite;
}
@keyframes archiveSpin { to { transform: rotate(360deg); } }

.archive-modal-foot {
    padding: 12px 26px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.4);
}
.archive-modal-foot-note {
    margin: 0;
    font-size: 11px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.42);
    text-align: center;
}

html.archive-open, body.archive-open { overflow: hidden; }

@media (max-width: 720px) {
    .archive-modal { padding: 0; }
    .archive-modal-shell {
        max-height: 100vh;
        max-height: 100dvh;
        height: 100vh;
        height: 100dvh;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    .archive-modal-head { padding: 16px 18px 14px; }
    .archive-modal-toolbar {
        grid-template-columns: 1fr;
        padding: 12px 18px;
    }
    .archive-filters { flex-wrap: wrap; }
    .archive-select { flex: 1 1 140px; min-width: 0; }
    .archive-modal-body { padding: 14px 18px 22px; gap: 12px; grid-template-columns: 1fr; }
    .archive-modal-foot { padding: 10px 18px 14px; }
    .archive-item-title { font-size: 15px; }
}

/* ============================================================
   MOBILE RESPONSIVE OVERHAUL — iPhone + all small devices
   A comprehensive pass that re-centers the hero, tightens the
   padding rhythm, fixes horizontal overflow, prevents zoom on
   input focus (iOS), and makes every CTA / button reachable
   with a single thumb. Lives at the bottom so every other
   declaration can be overridden cleanly when needed.
   ============================================================ */

/* Prevent iOS from bouncing the 100vh viewport with safe-area
   aware layout. Use dvh where supported. */
@supports (height: 100dvh) {
    :root { --vh100: 100dvh; }
}
@supports not (height: 100dvh) {
    :root { --vh100: 100vh; }
}

/* --- MOBILE: 768px and below --- */
@media (max-width: 768px) {
    html, body { overflow-x: clip; }

    /* Tighten section padding so content has breathing room
       without eating up scroll height. */
    :root { --section-pad: clamp(56px, 12vw, 96px); }

    /* Container padding for phones. */
    .container, .hero-content, .news-container, .footer-container,
    .services-container, .about-container, .legal-container,
    .mid-hero-container, .blog-container, .contact-container {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    /* Center every section header in mobile so text doesn't
       feel cramped against the left edge. */
    .section-header,
    .section-tag,
    .section-title,
    .section-desc {
        text-align: center !important;
    }
    .section-header { align-items: center; }

    /* Buttons: easy tap targets. */
    .btn {
        min-height: 48px;
        padding-left: 22px !important;
        padding-right: 22px !important;
        justify-content: center;
    }
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        width: 100%;
        max-width: 360px;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions .btn { width: 100%; }

    /* Hero typography scale down + center */
    .hero-title, .hero-subtitle, .hero-badge { text-align: center; }
    .hero-title { font-size: clamp(42px, 12vw, 72px) !important; line-height: 1; }
    .hero-subtitle { font-size: 15px !important; line-height: 1.55; }

    /* News grid: always single column on phones for readability. */
    #newsGrid, .news-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .news-card { min-height: 0; }
    .news-featured { grid-column: auto !important; grid-row: auto !important; }

    /* Make rank badges visible against img bg on mobile */
    .news-rank-badge { top: 10px !important; left: 10px !important; }

    /* Breaking strip -> horizontal scroll with snap, hide scrollbar */
    .breaking-strip-track {
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    .breaking-strip-track > * { scroll-snap-align: start; }

    /* Top stories rail -> stack vertically */
    .rail-list, .top-rail-list {
        grid-template-columns: 1fr !important;
    }

    /* Prevent iOS input zoom: set font-size to 16px minimum on
       all inputs/textareas/selects. */
    input, select, textarea {
        font-size: 16px !important;
    }

    /* Forms: one-column, full-width, safe-area bottom padding */
    .contact-form .form-row,
    .dmca-form .dmca-form-row {
        grid-template-columns: 1fr !important;
    }
    .contact-form, .dmca-form {
        padding: 20px 18px !important;
    }

    /* Services cards: single column, tighter gaps */
    .services-grid,
    .services-row,
    .about-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* Nav: logo + burger easier to hit. Compress nav links. */
    .nav {
        padding: 10px 16px !important;
    }
    .nav-brand { gap: 8px; }
    .nav-logo-img { width: 34px !important; height: 34px !important; }
    .nav-brand-text { font-size: 15px !important; letter-spacing: 0.04em; }

    /* Footer grid stack */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
        text-align: center;
    }
    .footer-col { align-items: center; }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    /* Reduce heavy background animations on small devices for
       performance and motion-sickness prevention. */
    .hero-lines, .hero-gradient { opacity: 0.5; }

    /* News disclaimer: tighter, centered */
    .news-disclaimer {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 18px 16px;
    }
    .news-disclaimer-icon { margin: 0 auto; }

    /* Ensure CTA is full-width on phone */
    .section-cta .btn { width: 100%; max-width: 340px; }
}

/* --- SMALL PHONES: 480px and below (iPhone SE, old Androids) --- */
@media (max-width: 480px) {
    :root { --section-pad: clamp(48px, 14vw, 72px); }

    .container, .hero-content, .news-container, .footer-container {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .hero-title { font-size: clamp(38px, 13vw, 58px) !important; }
    .hero-subtitle { font-size: 14px !important; }

    .btn { font-size: 14px !important; min-height: 46px; }

    /* News card tighter */
    .news-card-content { padding: 14px 14px 16px !important; }
    .news-title { font-size: 17px !important; line-height: 1.3; }
    .news-excerpt { font-size: 13px !important; }

    /* Section titles */
    .section-title { font-size: clamp(28px, 8vw, 40px) !important; }
    .section-tag { font-size: 12px !important; letter-spacing: 0.14em; }

    /* Archive modal list density */
    .archive-item-title { font-size: 14px !important; }
    .archive-item-excerpt { font-size: 12px !important; }
    .archive-item-text { padding: 12px 14px 14px; }
}

/* --- ULTRA-NARROW: 360px and below --- */
@media (max-width: 360px) {
    .hero-title { font-size: 36px !important; }
    .nav-brand-text { font-size: 14px !important; }
    .nav-logo-img { width: 30px !important; height: 30px !important; }
}

/* --- SAFE-AREA: notch & home indicator (iPhone X+) --- */
@supports (padding: max(0px)) {
    body { padding-bottom: env(safe-area-inset-bottom); }
    .nav { padding-top: max(10px, env(safe-area-inset-top)); }
    .archive-modal-shell { padding-bottom: env(safe-area-inset-bottom); }
}

/* --- TOUCH DEVICE TUNING --- */
@media (hover: none) and (pointer: coarse) {
    /* Hover states don't apply on touch; replace with slight
       active-press feedback. */
    .btn:active { transform: scale(0.98); }
    .news-card:active { transform: scale(0.995); }
    .archive-item:active { transform: scale(0.99); }
    /* Disable the sticky orange glow on nav that flickers on scroll */
    .nav-glow { display: none; }
}

/* --- REDUCED MOTION --- */
@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;
    }
}
