/*
 * IronVale Resources — Pilbara Heat
 * Bold industrial aesthetic for a mid-tier WA iron ore producer.
 *
 * Direction:
 *   - Dark slate background like ore in shadow
 *   - Rust-red and ember-orange accents (heated metal)
 *   - Hi-vis yellow as a safety/CTA accent
 *   - Bold uppercase display typography (Anton)
 *   - Body in characterful sans (Karla)
 *   - Monospace for stats and data (JetBrains Mono)
 *   - Asymmetric grids, sharp edges, big numbers as visuals
 *   - No rounded corners — everything is geometric
 */

/* ============================================================
   FONT IMPORTS — Google Fonts
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Archivo+Narrow:wght@400;500;600&family=Karla:wght@300;400;500;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */

:root {
    /* Palette — Pilbara Heat */
    --iv-bg: #0c0c0e;            /* deep slate, almost black */
    --iv-bg-2: #15161a;           /* slightly lifted surface */
    --iv-bg-3: #1d1f25;           /* card background */
    --iv-line: #2a2d35;            /* subtle divider */
    --iv-line-2: #3a3e48;          /* stronger divider */

    --iv-text: #f5f1ea;            /* warm off-white (sun-bleached) */
    --iv-text-muted: #9b9690;      /* dust */
    --iv-text-dim: #5d5a55;        /* deep dust */

    --iv-rust: #c8421e;            /* heated steel */
    --iv-rust-deep: #8a2c12;       /* deeper rust */
    --iv-ember: #f2682a;           /* ember orange */
    --iv-hivis: #f5d90a;            /* high visibility yellow */
    --iv-pilbara: #b34d18;          /* Pilbara red earth */

    --iv-success: #7c9a3f;          /* desert vegetation */
    --iv-warn: #f5b700;
    --iv-danger: #d63924;

    /* Typography */
    --iv-font-display: 'Anton', 'Archivo Narrow', sans-serif;
    --iv-font-body: 'Karla', system-ui, sans-serif;
    --iv-font-mono: 'JetBrains Mono', 'Courier New', monospace;

    /* Spacing */
    --iv-px-1: 0.25rem;
    --iv-px-2: 0.5rem;
    --iv-px-3: 1rem;
    --iv-px-4: 1.5rem;
    --iv-px-5: 2rem;
    --iv-px-6: 3rem;
    --iv-px-8: 5rem;
    --iv-px-10: 8rem;

    --iv-max: 1320px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    overflow-y: scroll;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--iv-font-body);
    background: var(--iv-bg);
    color: var(--iv-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Subtle grain overlay across the whole page — adds atmosphere */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    z-index: 1000;
    mix-blend-mode: overlay;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5 {
    font-family: var(--iv-font-display);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: 0.005em;
    text-transform: uppercase;
    color: var(--iv-text);
}

h1 { font-size: clamp(3rem, 8vw, 7.5rem); }
h2 { font-size: clamp(2.25rem, 5vw, 4.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h4 { font-size: 1.25rem; }

.eyebrow {
    font-family: var(--iv-font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--iv-rust);
    font-weight: 500;
    margin-bottom: var(--iv-px-3);
    display: flex;
    align-items: center;
    gap: var(--iv-px-2);
}

.eyebrow::before {
    content: '';
    width: 32px;
    height: 1px;
    background: var(--iv-rust);
}

.lead {
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--iv-text-muted);
    max-width: 40ch;
}

.mono {
    font-family: var(--iv-font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    color: var(--iv-text-muted);
}

.stat-number {
    font-family: var(--iv-font-display);
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 0.85;
    color: var(--iv-text);
    letter-spacing: -0.02em;
}

/* ============================================================
   LAYOUT
   ============================================================ */

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

.wrap-narrow {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 var(--iv-px-5);
}

section {
    position: relative;
}

.section-pad {
    padding: var(--iv-px-10) 0;
}

.section-pad-sm {
    padding: var(--iv-px-6) 0;
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(12, 12, 14, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--iv-line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--iv-px-3) var(--iv-px-5);
    max-width: var(--iv-max);
    margin: 0 auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: var(--iv-px-3);
    color: var(--iv-text);
    font-family: var(--iv-font-display);
    font-size: 1.4rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.brand-logo {
    width: 36px;
    height: 36px;
    background: var(--iv-rust);
    display: grid;
    place-items: center;
    color: var(--iv-text);
    font-family: var(--iv-font-display);
    font-size: 1.2rem;
    transform: rotate(-5deg);
}

.brand-name {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.brand-name strong { font-size: 1.4rem; }
.brand-name span {
    font-family: var(--iv-font-mono);
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--iv-text-muted);
    margin-top: 2px;
}

.nav {
    display: flex;
    gap: var(--iv-px-5);
    align-items: center;
}

.nav a {
    font-family: var(--iv-font-mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--iv-text-muted);
    transition: color 0.15s;
    position: relative;
    padding: var(--iv-px-2) 0;
}

.nav a:hover,
.nav a.active {
    color: var(--iv-text);
}

.nav a.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--iv-rust);
}

.nav-cta {
    font-family: var(--iv-font-mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    background: var(--iv-rust);
    color: var(--iv-text);
    padding: var(--iv-px-2) var(--iv-px-4);
    transition: background 0.15s;
    border: 1px solid var(--iv-rust);
}

.nav-cta:hover {
    background: var(--iv-ember);
    border-color: var(--iv-ember);
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: var(--iv-px-10) 0;
}

/* Layered background — gradient + geometric pattern */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 70% 30%, rgba(200, 66, 30, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 80%, rgba(179, 77, 24, 0.10) 0%, transparent 60%),
        linear-gradient(180deg, var(--iv-bg) 0%, var(--iv-bg-2) 100%);
    z-index: 0;
}

/* Diagonal stripes — like geological strata */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        135deg,
        transparent,
        transparent 80px,
        rgba(255, 255, 255, 0.012) 80px,
        rgba(255, 255, 255, 0.012) 81px
    );
    z-index: 0;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--iv-max);
    margin: 0 auto;
    padding: 0 var(--iv-px-5);
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--iv-px-8);
    align-items: end;
}

.hero-content {
    animation: rise-in 1s 0.1s ease-out backwards;
}

@keyframes rise-in {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
    margin-bottom: var(--iv-px-4);
}

.hero h1 .accent {
    color: var(--iv-rust);
    display: inline-block;
}

.hero h1 .strike {
    position: relative;
    display: inline-block;
}

.hero-tagline {
    font-size: 1.15rem;
    color: var(--iv-text-muted);
    max-width: 50ch;
    margin-bottom: var(--iv-px-5);
}

.hero-cta {
    display: flex;
    gap: var(--iv-px-3);
    flex-wrap: wrap;
    margin-top: var(--iv-px-5);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--iv-px-2);
    font-family: var(--iv-font-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: var(--iv-px-3) var(--iv-px-5);
    border: 1px solid transparent;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-primary {
    background: var(--iv-rust);
    color: var(--iv-text);
    border-color: var(--iv-rust);
}

.btn-primary:hover {
    background: var(--iv-ember);
    border-color: var(--iv-ember);
    transform: translateX(4px);
}

.btn-ghost {
    background: transparent;
    color: var(--iv-text);
    border-color: var(--iv-line-2);
}

.btn-ghost:hover {
    border-color: var(--iv-text);
}

.btn-hivis {
    background: var(--iv-hivis);
    color: var(--iv-bg);
    border-color: var(--iv-hivis);
}

.btn-hivis:hover {
    transform: translateX(4px);
}

.btn-arrow::after {
    content: '→';
    font-family: var(--iv-font-display);
    transition: transform 0.2s;
}

.btn:hover .btn-arrow::after,
.btn-arrow:hover::after {
    transform: translateX(4px);
}

/* Hero stat panel on the right */
.hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--iv-line);
    border: 1px solid var(--iv-line);
    animation: fade-in 1s 0.4s ease-out backwards;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.stat {
    background: var(--iv-bg-2);
    padding: var(--iv-px-4);
    position: relative;
}

.stat-label {
    font-family: var(--iv-font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--iv-text-muted);
    margin-bottom: var(--iv-px-2);
}

.stat-value {
    font-family: var(--iv-font-display);
    font-size: 2.5rem;
    line-height: 1;
    color: var(--iv-text);
}

.stat-unit {
    font-family: var(--iv-font-mono);
    font-size: 0.7rem;
    color: var(--iv-rust);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-top: var(--iv-px-1);
}

.stat-accent .stat-value { color: var(--iv-rust); }

/* Crawling marquee under hero — operational data */
.marquee {
    border-top: 1px solid var(--iv-line);
    border-bottom: 1px solid var(--iv-line);
    background: var(--iv-bg-2);
    overflow: hidden;
    padding: var(--iv-px-3) 0;
    position: relative;
}

.marquee-track {
    display: flex;
    gap: var(--iv-px-8);
    white-space: nowrap;
    animation: scroll 60s linear infinite;
}

.marquee-item {
    font-family: var(--iv-font-mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--iv-text-muted);
    display: flex;
    align-items: center;
    gap: var(--iv-px-2);
}

.marquee-item::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--iv-rust);
    border-radius: 50%;
}

.marquee-item strong {
    color: var(--iv-text);
    font-weight: 500;
}

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

/* ============================================================
   SECTION HEADERS
   ============================================================ */

.section-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--iv-px-6);
    margin-bottom: var(--iv-px-6);
    align-items: end;
}

.section-header h2 {
    max-width: 14ch;
}

.section-header .lead {
    color: var(--iv-text-muted);
    align-self: end;
}

/* ============================================================
   FEATURE GRID — three columns
   ============================================================ */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--iv-line);
    border: 1px solid var(--iv-line);
}

.feature {
    background: var(--iv-bg);
    padding: var(--iv-px-5);
    position: relative;
    transition: background 0.2s;
}

.feature:hover {
    background: var(--iv-bg-2);
}

.feature-num {
    font-family: var(--iv-font-mono);
    font-size: 0.7rem;
    color: var(--iv-rust);
    letter-spacing: 0.15em;
    margin-bottom: var(--iv-px-3);
}

.feature h3 {
    font-size: 1.4rem;
    margin-bottom: var(--iv-px-3);
}

.feature p {
    color: var(--iv-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================================
   OPERATIONS / SITES PANEL
   ============================================================ */

.sites-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--iv-px-4);
}

.site-card {
    border: 1px solid var(--iv-line);
    background: var(--iv-bg-2);
    padding: var(--iv-px-5);
    position: relative;
    transition: border-color 0.2s, transform 0.2s;
}

.site-card:hover {
    border-color: var(--iv-rust);
    transform: translateY(-4px);
}

.site-card-status {
    position: absolute;
    top: var(--iv-px-3);
    right: var(--iv-px-3);
    font-family: var(--iv-font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--iv-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-card-status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--iv-success);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--iv-success);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.site-card-name {
    font-family: var(--iv-font-display);
    font-size: 1.8rem;
    color: var(--iv-text);
    margin-bottom: var(--iv-px-1);
}

.site-card-type {
    font-family: var(--iv-font-mono);
    font-size: 0.75rem;
    color: var(--iv-rust);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: var(--iv-px-3);
}

.site-card-data {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--iv-px-2);
    padding-top: var(--iv-px-3);
    border-top: 1px solid var(--iv-line);
}

.site-card-data div {
    font-family: var(--iv-font-mono);
    font-size: 0.7rem;
    color: var(--iv-text-muted);
}

.site-card-data strong {
    display: block;
    font-family: var(--iv-font-display);
    font-size: 1.4rem;
    color: var(--iv-text);
    margin-top: 2px;
}

/* ============================================================
   SCENARIO BLOCK — story panel
   ============================================================ */

.scenario {
    background: var(--iv-bg-2);
    border-left: 4px solid var(--iv-rust);
    padding: var(--iv-px-6) var(--iv-px-6);
    margin: var(--iv-px-6) 0;
}

.scenario-label {
    font-family: var(--iv-font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--iv-rust);
    margin-bottom: var(--iv-px-3);
}

.scenario h3 {
    font-size: 2.5rem;
    margin-bottom: var(--iv-px-4);
    max-width: 14ch;
}

.scenario p {
    color: var(--iv-text-muted);
    font-size: 1.05rem;
    max-width: 65ch;
    line-height: 1.7;
}

.scenario-tensions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--iv-px-3);
    margin-top: var(--iv-px-5);
}

.scenario-tensions li {
    font-family: var(--iv-font-mono);
    font-size: 0.85rem;
    color: var(--iv-text);
    padding-left: var(--iv-px-3);
    border-left: 2px solid var(--iv-line-2);
}

.scenario-tensions li::before {
    content: 'TENSION';
    display: block;
    color: var(--iv-rust);
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    margin-bottom: 4px;
}

/* ============================================================
   CTA BANNER
   ============================================================ */

.cta-banner {
    position: relative;
    background:
        linear-gradient(90deg, var(--iv-rust-deep) 0%, var(--iv-rust) 60%, var(--iv-ember) 100%);
    padding: var(--iv-px-8) 0;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 60px,
        rgba(0, 0, 0, 0.06) 60px,
        rgba(0, 0, 0, 0.06) 61px
    );
    pointer-events: none;
}

.cta-banner-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    align-items: center;
    gap: var(--iv-px-6);
}

.cta-banner h2 {
    color: var(--iv-text);
    max-width: 16ch;
}

.cta-banner p {
    color: rgba(245, 241, 234, 0.85);
    margin-top: var(--iv-px-3);
    max-width: 55ch;
}

.cta-banner-btn {
    justify-self: end;
}

/* ============================================================
   PROSE — rendered markdown content (job descriptions, docs)
   ============================================================ */

.prose {
    color: var(--iv-text-muted);
    font-size: 1.05rem;
    line-height: 1.75;
    max-width: 70ch;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
    color: var(--iv-text);
    margin-top: var(--iv-px-6);
    margin-bottom: var(--iv-px-3);
}

.prose > h1:first-child,
.prose > h2:first-child,
.prose > h3:first-child {
    margin-top: 0;
}

.prose h1 { font-size: clamp(2rem, 4vw, 3rem); }
.prose h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    padding-bottom: var(--iv-px-2);
    border-bottom: 1px solid var(--iv-line);
}
.prose h3 { font-size: 1.4rem; }
.prose h4 {
    font-size: 0.85rem;
    font-family: var(--iv-font-mono);
    letter-spacing: 0.12em;
    color: var(--iv-rust);
}

.prose p {
    margin-bottom: var(--iv-px-4);
}

.prose strong {
    color: var(--iv-text);
    font-weight: 700;
}

.prose em {
    color: var(--iv-text);
    font-style: italic;
}

.prose a {
    color: var(--iv-ember);
    border-bottom: 1px solid var(--iv-rust-deep);
    transition: border-color 0.15s;
}
.prose a:hover {
    border-color: var(--iv-ember);
}

.prose ul,
.prose ol {
    margin: var(--iv-px-3) 0 var(--iv-px-4);
    padding-left: 0;
}

.prose ul li,
.prose ol li {
    position: relative;
    padding: var(--iv-px-2) 0 var(--iv-px-2) var(--iv-px-4);
    border-left: 2px solid var(--iv-line-2);
    margin-bottom: var(--iv-px-2);
    list-style: none;
}

.prose ul li::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 50%;
    width: 8px;
    height: 2px;
    background: var(--iv-rust);
    transform: translateY(-50%);
}

.prose ol {
    counter-reset: prose-counter;
}
.prose ol li {
    counter-increment: prose-counter;
}
.prose ol li::before {
    content: counter(prose-counter, decimal-leading-zero);
    position: absolute;
    left: var(--iv-px-2);
    top: var(--iv-px-2);
    font-family: var(--iv-font-mono);
    font-size: 0.7rem;
    color: var(--iv-rust);
    letter-spacing: 0.1em;
}
.prose ol li {
    padding-left: var(--iv-px-6);
}

.prose li > strong:first-child {
    color: var(--iv-text);
    display: inline;
}

.prose blockquote {
    border-left: 4px solid var(--iv-rust);
    background: var(--iv-bg);
    padding: var(--iv-px-3) var(--iv-px-4);
    margin: var(--iv-px-4) 0;
    color: var(--iv-text);
    font-style: italic;
}

.prose code {
    font-family: var(--iv-font-mono);
    font-size: 0.9em;
    background: var(--iv-bg);
    color: var(--iv-hivis);
    padding: 2px 6px;
    border: 1px solid var(--iv-line);
}

.prose pre {
    background: var(--iv-bg);
    border: 1px solid var(--iv-line);
    padding: var(--iv-px-4);
    overflow-x: auto;
    margin: var(--iv-px-4) 0;
}

.prose pre code {
    background: none;
    border: none;
    padding: 0;
    color: var(--iv-text);
}

.prose hr {
    border: none;
    border-top: 1px solid var(--iv-line);
    margin: var(--iv-px-5) 0;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--iv-px-4) 0;
    font-family: var(--iv-font-mono);
    font-size: 0.85rem;
}
.prose table th,
.prose table td {
    padding: var(--iv-px-2) var(--iv-px-3);
    border: 1px solid var(--iv-line);
    text-align: left;
}
.prose table th {
    background: var(--iv-bg);
    color: var(--iv-text);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.7rem;
}

/* ============================================================
   APPLY FORM — inline on job-detail pages
   ============================================================ */

.apply-section {
    padding: var(--iv-px-8) 0;
    background: var(--iv-bg-2);
    border-top: 1px solid var(--iv-line);
}

.apply-form {
    max-width: 640px;
    display: grid;
    gap: var(--iv-px-3);
}

.apply-form label {
    display: block;
    font-family: var(--iv-font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--iv-text-muted);
    margin-bottom: var(--iv-px-1);
    font-weight: 500;
}

.apply-form input,
.apply-form textarea {
    width: 100%;
    padding: var(--iv-px-3);
    background: var(--iv-bg);
    border: 1px solid var(--iv-line-2);
    color: var(--iv-text);
    font-family: var(--iv-font-body);
    font-size: 0.95rem;
}

.apply-form input:focus,
.apply-form textarea:focus {
    outline: none;
    border-color: var(--iv-rust);
    box-shadow: 0 0 0 2px rgba(200, 66, 30, 0.2);
}

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

.apply-form input[type="file"] {
    padding: var(--iv-px-2);
}

.apply-required { color: var(--iv-rust); }

.apply-result {
    display: none;
    padding: var(--iv-px-3);
    margin-top: var(--iv-px-3);
    font-size: 0.92rem;
}

.apply-result-success {
    background: rgba(124, 154, 63, 0.15);
    border: 1px solid var(--iv-success);
    color: var(--iv-success);
}

.apply-result-error {
    background: rgba(214, 57, 36, 0.1);
    border: 1px solid var(--iv-danger);
    color: var(--iv-danger);
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
    background: var(--iv-bg);
    border-top: 1px solid var(--iv-line);
    padding: var(--iv-px-8) 0 var(--iv-px-5);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--iv-px-6);
    margin-bottom: var(--iv-px-6);
}

.footer-brand h3 {
    font-size: 2rem;
    margin-bottom: var(--iv-px-3);
}

.footer-brand p {
    color: var(--iv-text-muted);
    max-width: 35ch;
    font-size: 0.9rem;
}

.footer-col h4 {
    font-family: var(--iv-font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--iv-rust);
    margin-bottom: var(--iv-px-3);
}

.footer-col ul li {
    margin-bottom: var(--iv-px-2);
}

.footer-col a {
    font-size: 0.9rem;
    color: var(--iv-text-muted);
    transition: color 0.15s;
}

.footer-col a:hover {
    color: var(--iv-text);
}

.footer-bottom {
    padding-top: var(--iv-px-4);
    border-top: 1px solid var(--iv-line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--iv-px-3);
}

.footer-bottom p {
    font-family: var(--iv-font-mono);
    font-size: 0.7rem;
    color: var(--iv-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-disclaimer {
    font-style: italic;
    max-width: 60ch;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: var(--iv-px-6);
    }

    .section-header {
        grid-template-columns: 1fr;
        gap: var(--iv-px-3);
    }

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

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

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--iv-px-5);
    }

    .cta-banner-inner {
        grid-template-columns: 1fr;
    }

    .cta-banner-btn {
        justify-self: start;
    }
}

@media (max-width: 640px) {
    .nav { display: none; }
    .hero { min-height: 70vh; }
    .hero-stats { grid-template-columns: 1fr; }
    .scenario-tensions { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}
