/* REWF Institute — Terminal Grade v7 */

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

:root {
    /* Surface — deeper, darker, more institutional */
    --bg:            #050810;
    --bg-deeper:     #03050b;
    --surface:       #0b1120;
    --surface-elev:  #101a30;
    --surface-hi:    #172341;

    /* Borders */
    --border:        rgba(255,255,255,0.06);
    --border-strong: rgba(255,255,255,0.12);
    --border-accent: rgba(212,168,81,0.28);

    /* Text */
    --text:          #e8ecf4;
    --text-soft:     #c8cfdc;
    --text-muted:    #8690a4;
    --text-dim:      #5c657a;
    --text-faint:    #3a4256;

    /* Accent */
    --accent:        #d4a851;
    --accent-bright: #f5c875;
    --accent-deep:   #9c7a2e;
    --accent-glow:   rgba(212,168,81,0.18);

    /* Semantic */
    --danger:        #e05a4f;
    --danger-bright: #ff7166;
    --warn:          #e89948;
    --success:       #4ca574;
    --info:          #5b8dee;
    --cyan:          #5dc8cf;

    /* Fonts */
    --sans:    'Inter', 'Noto Sans JP', -apple-system, 'Segoe UI', sans-serif;
    --mono:    'JetBrains Mono', 'SF Mono', 'Consolas', monospace;
    --serif:   'Instrument Serif', 'Georgia', serif;

    /* Easing */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth:   cubic-bezier(0.65, 0, 0.35, 1);

    /* Shadows */
    --shadow:    0 8px 32px rgba(0,0,0,0.4);
    --shadow-lg: 0 24px 72px rgba(0,0,0,0.56), 0 6px 18px rgba(0,0,0,0.32);
    --shadow-glow: 0 0 60px rgba(212,168,81,0.18);
}

html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.65;
    font-weight: 400;
    letter-spacing: -0.005em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Ambient mesh background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 18% 8%, rgba(91,141,238,0.10) 0%, transparent 55%),
        radial-gradient(ellipse 60% 55% at 88% 18%, rgba(212,168,81,0.08) 0%, transparent 55%),
        radial-gradient(ellipse 80% 70% at 50% 110%, rgba(224,90,79,0.06) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    animation: meshShift 40s ease-in-out infinite;
}
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.013) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.013) 1px, transparent 1px);
    background-size: 72px 72px;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(ellipse 70% 65% at 50% 40%, black 20%, transparent 90%);
    -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 40%, black 20%, transparent 90%);
}
body > * { position: relative; z-index: 1; }
@keyframes meshShift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-1.5%, 1%) scale(1.02); }
}

/* ===== CONTAINERS ===== */
.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 920px; margin: 0 auto; padding: 0 32px; }

/* ===== TICKER ===== */
.ticker-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 101;
    height: 30px;
    display: flex;
    align-items: center;
    background: var(--bg-deeper);
    border-bottom: 1px solid var(--border);
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: 0.02em;
    overflow: hidden;
}
.ticker-label {
    flex-shrink: 0;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    color: var(--accent-bright);
    font-weight: 700;
    letter-spacing: 0.14em;
    border-right: 1px solid var(--border);
    background: linear-gradient(90deg, rgba(212,168,81,0.10), transparent);
}
.ticker-track {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    mask-image: linear-gradient(90deg, transparent 0%, black 4%, black 96%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 4%, black 96%, transparent 100%);
}
.ticker-track-inner {
    display: inline-block;
    white-space: nowrap;
    animation: tickerScroll 60s linear infinite;
    padding-left: 32px;
}
.ticker-item {
    display: inline-block;
    padding: 0 26px;
    color: var(--text-muted);
    border-right: 1px solid rgba(255,255,255,0.06);
}
.ticker-item strong { color: var(--text); font-weight: 600; margin-left: 6px; }
.ticker-item .up { color: var(--danger); margin-left: 6px; }
.ticker-item .down { color: var(--success); margin-left: 6px; }
.ticker-item .warn { color: var(--warn); }
@keyframes tickerScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.ticker-clock {
    flex-shrink: 0;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    color: var(--text-dim);
    border-left: 1px solid var(--border);
    letter-spacing: 0.04em;
}

/* ===== NAV ===== */
.nav {
    position: fixed;
    top: 30px; left: 0; right: 0;
    z-index: 100;
    background: rgba(5,8,16,0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid transparent;
    transition: all 0.4s var(--ease-out-expo);
}
.nav.scrolled {
    background: rgba(5,8,16,0.9);
    border-bottom-color: var(--border);
    box-shadow: 0 1px 0 rgba(255,255,255,0.03), 0 12px 36px rgba(0,0,0,0.36);
}
.nav-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    height: 68px;
}
.nav-logo {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 11px;
}
.nav-brand i { font-style: normal; font-weight: 400; color: var(--text-muted); margin-left: 4px; }
.nav-seal {
    width: 30px; height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-accent);
    box-shadow: 0 0 0 3px rgba(212,168,81,0.05);
}
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
    font-size: 13.5px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.25s var(--ease-out-expo);
    position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    left: 0; bottom: -6px;
    width: 0; height: 1px;
    background: var(--accent);
    transition: width 0.35s var(--ease-out-expo);
}
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    background: var(--accent) !important;
    color: var(--bg-deeper) !important;
    padding: 9px 18px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    transition: all 0.25s var(--ease-out-expo) !important;
}
.nav-cta span { transition: transform 0.25s var(--ease-out-expo); display: inline-block; }
.nav-cta:hover { background: var(--accent-bright) !important; transform: translateY(-1px); box-shadow: 0 12px 32px rgba(245,200,117,0.36); }
.nav-cta:hover span { transform: translateX(3px); }
.nav-toggle {
    display: none;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px;
    cursor: pointer;
    color: var(--text-muted);
}
@media (max-width: 920px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 98px; left: 0; right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(5,8,16,0.98);
        backdrop-filter: blur(24px);
        padding: 16px 32px 32px;
        border-bottom: 1px solid var(--border);
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--border); }
    .nav-toggle { display: flex; }
}

/* ===== SIDE INDICATOR ===== */
.side-indicator {
    position: fixed;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px;
    background: rgba(5,8,16,0.6);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.5s var(--ease-out-expo);
    pointer-events: none;
}
.side-indicator.show { opacity: 1; pointer-events: auto; }
.side-indicator a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-dim);
    font-size: 11.5px;
    transition: all 0.3s var(--ease-out-expo);
}
.side-indicator a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.side-indicator a.active { color: var(--accent-bright); background: rgba(212,168,81,0.06); }
.si-num { font-family: var(--mono); font-weight: 600; letter-spacing: 0.05em; font-size: 10.5px; color: var(--text-faint); transition: color 0.3s; }
.side-indicator a.active .si-num { color: var(--accent); }
.si-label { font-weight: 500; letter-spacing: 0.01em; max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width 0.4s var(--ease-out-expo); }
.side-indicator a:hover .si-label, .side-indicator a.active .si-label { max-width: 120px; }

@media (max-width: 1160px) { .side-indicator { display: none; } }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.005em;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.3s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent-bright) 0%, var(--accent) 50%, var(--accent-deep) 100%);
    color: var(--bg-deeper);
    box-shadow: 0 1px 0 rgba(255,255,255,0.16) inset, 0 0 0 1px rgba(245,200,117,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(212,168,81,0.4), 0 0 0 1px rgba(245,200,117,0.5); }
.btn-outline {
    background: rgba(255,255,255,0.03);
    color: var(--text);
    border-color: var(--border-strong);
    backdrop-filter: blur(8px);
}
.btn-outline:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.24); transform: translateY(-1px); }
.btn-arrow { transition: transform 0.3s var(--ease-out-expo); display: inline-block; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ===== HERO CINEMA (fullscreen image) ===== */
.hero-cinema {
    position: relative;
    min-height: 100vh;
    padding: 0;
    overflow: hidden;
    background: var(--bg-deeper);
}
.hc-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: contrast(1.05) brightness(0.92) saturate(1.18);
    opacity: 0;
    animation: hcCycle 32s ease-in-out infinite, hcKen 32s ease-in-out infinite;
    transform: scale(1.04);
}
.hc-1 {
    background-image: url('./img/tanker_sunlight.jpg');
    background-position: center;
    animation-delay: 0s;
}
.hc-2 {
    background-image: url('./img/fa18_launch.jpg');
    background-position: center;
    animation-delay: 8s;
}
.hc-3 {
    background-image: url('./img/hormuz_modis.jpg');
    background-position: 58% 50%;
    animation-delay: 16s;
}
.hc-4 {
    background-image: url('./img/tanker_houston.jpg');
    background-position: center;
    animation-delay: 24s;
}
@keyframes hcCycle {
    0%, 22% { opacity: 1; }
    25%, 97% { opacity: 0; }
    100% { opacity: 0; }
}
@keyframes hcKen {
    0% { transform: scale(1.04) translate(0, 0); }
    25% { transform: scale(1.14) translate(-1.5%, -1%); }
    100% { transform: scale(1.14) translate(-1.5%, -1%); }
}
.hc-grad {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5,8,16,0.55) 0%, rgba(5,8,16,0.15) 20%, rgba(5,8,16,0.25) 55%, rgba(5,8,16,0.92) 100%),
        linear-gradient(90deg, rgba(5,8,16,0.6) 0%, transparent 55%);
    pointer-events: none;
    z-index: 1;
}
.hc-inner {
    position: relative;
    z-index: 2;
    max-width: 1240px;
    margin: 0 auto;
    padding: 160px 40px 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
@media (max-width: 760px) {
    .hc-inner { padding: 128px 24px 64px; }
}

.hero-left { animation: fadeRise 1.2s var(--ease-out-expo); }
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 11.5px;
    font-weight: 500;
    color: var(--accent-bright);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 8px 18px;
    background: rgba(212,168,81,0.08);
    border: 1px solid var(--border-accent);
    border-radius: 100px;
    margin-bottom: 36px;
}
.eyebrow-dot {
    width: 6px; height: 6px;
    background: var(--accent-bright);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent-bright);
    animation: pulse 2.4s ease-in-out infinite;
}

.hero-h1 {
    font-size: clamp(38px, 5.2vw, 76px);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -0.035em;
    margin-bottom: 32px;
}
.hero-h1 .line { display: block; }
.hero-h1 .them { color: var(--text-faint); font-weight: 400; }
.hero-h1 .them-em { color: var(--text-dim); font-weight: 400; margin-bottom: 18px; }
.hero-h1 .us {
    background: linear-gradient(180deg, #ffffff 0%, #c8cfdc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-h1 .us-em {
    background: linear-gradient(180deg, #ffffff 0%, #c8cfdc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-h1 em {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    background: linear-gradient(180deg, var(--accent-bright) 0%, var(--accent-deep) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
}

.hero-sub {
    font-size: 17px;
    line-height: 1.65;
    color: var(--text-muted);
    max-width: 520px;
    margin-bottom: 40px;
}

.hero-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.hero-proof {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    max-width: 520px;
}
.proof-stat-n {
    font-family: var(--mono);
    font-size: 32px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}
.proof-stat-l { font-size: 12px; color: var(--text-muted); line-height: 1.45; }

/* ===== TERMINAL WIDGET ===== */
.hero-right { animation: fadeRise 1.2s var(--ease-out-expo) 0.15s backwards; }
.terminal {
    background: linear-gradient(180deg, rgba(16,26,48,0.9) 0%, rgba(11,17,32,0.94) 100%);
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 0 80px rgba(91,141,238,0.05);
    position: relative;
}
.terminal::before {
    content: '';
    position: absolute;
    top: 0; left: 20px; right: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245,200,117,0.4), transparent);
}
.terminal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.015);
}
.terminal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-soft);
    letter-spacing: 0.14em;
}
.term-dot {
    width: 8px; height: 8px;
    background: var(--danger);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(224,90,79,0.18), 0 0 10px var(--danger);
    animation: pulse 1.6s ease-in-out infinite;
}
.terminal-ts {
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--text-dim);
    letter-spacing: 0.04em;
}

/* Scenario tabs */
.scenario-tabs {
    display: flex;
    padding: 6px;
    gap: 4px;
    background: rgba(0,0,0,0.28);
    border-bottom: 1px solid var(--border);
}
.scen {
    flex: 1;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid transparent;
    padding: 8px 10px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
}
.scen:hover { color: var(--text); background: rgba(255,255,255,0.03); }
.scen.active {
    color: var(--accent-bright);
    background: rgba(212,168,81,0.08);
    border-color: var(--border-accent);
}

/* Mini world map */
.choke-map {
    padding: 0;
    background: var(--bg-deeper);
    position: relative;
    border-bottom: 1px solid var(--border);
}
.choke-map svg { display: block; width: 100%; height: auto; }
.cp { cursor: pointer; transition: transform 0.3s var(--ease-out-expo); }
.cp-ring {
    fill: none;
    stroke: var(--text-dim);
    stroke-width: 1;
    opacity: 0.4;
    transform-origin: center;
    transition: all 0.3s var(--ease-out-expo);
}
.cp-dot {
    fill: var(--text-muted);
    transition: all 0.3s var(--ease-out-expo);
}
.cp-label {
    font-family: var(--mono);
    font-size: 9.5px;
    fill: var(--text-dim);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: fill 0.3s var(--ease-out-expo);
}
.cp.active .cp-dot { fill: var(--danger-bright); filter: drop-shadow(0 0 6px var(--danger)); }
.cp.active .cp-ring { stroke: var(--danger); opacity: 1; animation: cpPulse 2s ease-in-out infinite; }
.cp.active .cp-label { fill: var(--text); }
@keyframes cpPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.6); opacity: 0.2; }
}

/* Terminal metrics */
.term-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1px;
    background: var(--border);
    border-bottom: 1px solid var(--border);
}
.term-metric { padding: 16px 18px; background: var(--surface); }
.tm-l { font-family: var(--mono); font-size: 9.5px; font-weight: 600; color: var(--text-dim); letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 8px; }
.tm-v { font-family: var(--mono); font-size: 24px; font-weight: 600; color: var(--text); line-height: 1; letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 4px; }
.tm-v.red { color: var(--danger-bright); }
.tm-u { font-size: 12px; color: var(--text-dim); font-weight: 400; }
.tm-spark { margin-top: 10px; height: 24px; }
.tm-spark svg { width: 100%; height: 100%; }
.tm-spark path { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.tm-spark.red path { stroke: var(--danger); }
.tm-badge {
    display: inline-block;
    margin-top: 8px;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(224,90,79,0.14);
    color: var(--danger);
    border: 1px solid rgba(224,90,79,0.32);
    letter-spacing: 0.1em;
}

/* Alert feed */
.term-feed { padding: 14px 20px 16px; }
.feed-head {
    font-family: var(--mono);
    font-size: 9.5px;
    font-weight: 600;
    color: var(--text-dim);
    letter-spacing: 0.18em;
    margin-bottom: 10px;
}
.feed-body { display: flex; flex-direction: column; gap: 6px; }
.feed-item {
    display: flex;
    gap: 12px;
    font-family: var(--mono);
    font-size: 11.5px;
    line-height: 1.4;
}
.feed-time { color: var(--text-dim); flex-shrink: 0; min-width: 64px; }
.feed-msg { color: var(--text-soft); }
.feed-msg .tag {
    display: inline-block;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    padding: 1px 5px;
    border-radius: 3px;
    margin-right: 6px;
    vertical-align: 1px;
}
.feed-msg .tag.red { background: rgba(224,90,79,0.16); color: var(--danger); }
.feed-msg .tag.amber { background: rgba(212,168,81,0.16); color: var(--accent-bright); }
.feed-msg .tag.blue { background: rgba(91,141,238,0.16); color: var(--info); }

/* Hero responsive */
@media (max-width: 1040px) {
    .hero-split-inner { grid-template-columns: 1fr; gap: 48px; }
    .hero-proof { max-width: none; }
}
@media (max-width: 540px) {
    .hero-h1 { font-size: 40px; }
    .hero-proof { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .proof-stat-n { font-size: 24px; }
    .term-metrics { grid-template-columns: 1fr; }
}

/* ===== BIG TYPE (with market imagery backdrop) ===== */
.big-type {
    padding: 160px 32px 140px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--bg-deeper);
}
.bt-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: contrast(1.08) brightness(0.55) saturate(1.1);
    opacity: 0;
    animation: hcCycle 32s ease-in-out infinite, hcKen 32s ease-in-out infinite;
    transform: scale(1.04);
    z-index: 0;
}
.bt-mk1 { background-image: url('./img/market_global_trading.jpg'); animation-delay: 0s; }
.bt-mk2 { background-image: url('./img/market_bloomberg.jpg'); animation-delay: 8s; }
.bt-mk3 { background-image: url('./img/market_nyse_floor.jpg'); animation-delay: 16s; }
.bt-mk4 { background-image: url('./img/market_msm_hall.jpg'); animation-delay: 24s; }
.bt-grad {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5,8,16,0.55) 0%, rgba(5,8,16,0.3) 20%, rgba(5,8,16,0.45) 60%, rgba(5,8,16,0.95) 100%),
        linear-gradient(90deg, rgba(5,8,16,0.55) 0%, transparent 45%, transparent 55%, rgba(5,8,16,0.35) 100%);
    pointer-events: none;
    z-index: 1;
}
.big-type-inner {
    max-width: 1240px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    width: 100%;
}
.bt-mark {
    font-family: var(--mono);
    font-size: 11.5px;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.bt-mark::after { content: ''; width: 72px; height: 1px; background: linear-gradient(90deg, var(--accent), transparent); }
.bt-h2 {
    font-size: clamp(36px, 6vw, 84px);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.035em;
    max-width: 1100px;
}
.bt-line {
    display: block;
    opacity: 0;
    transform: translateY(28px);
    transition: all 0.9s var(--ease-out-expo);
}
.bt-h2.visible .bt-line { opacity: 1; transform: translateY(0); }
.bt-h2 .bt-line:nth-child(1) { transition-delay: 0s; }
.bt-h2 .bt-line:nth-child(2) { transition-delay: 0.1s; }
.bt-h2 .bt-line:nth-child(3) { transition-delay: 0.25s; }
.bt-h2 .bt-line:nth-child(4) { transition-delay: 0.4s; }
.bt-h2 .bt-line:nth-child(5) { transition-delay: 0.5s; }
.bt-grey { color: var(--text-faint); font-weight: 400; }
.bt-h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--text-soft); }
.bt-accent { background: linear-gradient(180deg, #ffffff 0%, #c8cfdc 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ===== SECTIONS ===== */
.section { padding: 120px 32px; position: relative; }
.section-tight { padding: 96px 32px; }
.section-divider { border-top: 1px solid var(--border); }

.sec-head { margin-bottom: 72px; max-width: 800px; }
.sec-num {
    font-family: var(--mono);
    font-size: 11.5px;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.sec-num::after { content: ''; width: 56px; height: 1px; background: linear-gradient(90deg, var(--accent), transparent); }
.section h2 {
    font-size: clamp(30px, 4vw, 50px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.028em;
    color: var(--text);
    margin-bottom: 20px;
}
.section h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent-bright); }
.sec-lead { font-size: 17.5px; color: var(--text-muted); line-height: 1.7; max-width: 680px; }

/* ===== GAP ===== */
.gap-section { padding-top: 32px; }
.gap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 56px;
}
.gap-q {
    background: var(--surface);
    padding: 44px 36px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    transition: background 0.4s var(--ease-out-expo);
    position: relative;
}
.gap-q:hover { background: var(--surface-elev); }
.gap-q-hd { display: flex; gap: 16px; align-items: flex-start; }
.gap-q-idx { font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--accent); letter-spacing: 0.12em; padding-top: 4px; }
.gap-q-title { font-size: 15.5px; font-weight: 500; color: var(--text); line-height: 1.5; letter-spacing: -0.005em; }
.gap-q-body { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; }
.gap-q-val { display: flex; align-items: baseline; gap: 10px; margin-bottom: 20px; }
.gap-q-num { font-family: var(--mono); font-size: 68px; font-weight: 500; color: var(--text); line-height: 0.95; letter-spacing: -0.035em; }
.gap-q-num.red { background: linear-gradient(180deg, #ff8070 0%, #e05a4f 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gap-q-u { font-family: var(--mono); font-size: 18px; color: var(--text-dim); font-weight: 500; }
.gap-q-badge { display: inline-block; font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; padding: 4px 10px; border-radius: 4px; background: rgba(224,90,79,0.14); color: var(--danger); border: 1px solid rgba(224,90,79,0.36); margin-left: 6px; }
.gap-q-sub { font-size: 13.5px; color: var(--text-muted); line-height: 1.65; }
.gap-q-sub strong { color: var(--text-soft); font-weight: 600; }

.gap-foot {
    padding: 32px 36px;
    background: linear-gradient(135deg, rgba(212,168,81,0.06) 0%, transparent 60%), var(--surface);
    border: 1px solid var(--border-accent);
    border-radius: 14px;
    display: flex;
    align-items: flex-start;
    gap: 22px;
}
.gap-foot-mark {
    flex-shrink: 0;
    width: 44px; height: 44px;
    background: var(--accent-glow);
    border: 1px solid var(--border-accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-bright);
    font-family: var(--mono);
    font-size: 20px;
    font-weight: 400;
}
.gap-foot-title { font-size: 16.5px; font-weight: 600; color: var(--text); margin-bottom: 8px; letter-spacing: -0.01em; }
.gap-foot-note { font-size: 14.5px; color: var(--text-muted); line-height: 1.65; }

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

/* ===== FRAMEWORK PIPELINE (with infrastructure backdrop) ===== */
.framework {
    padding-top: 140px;
    position: relative;
    overflow: hidden;
    background: var(--bg-deeper);
}
.fw-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: contrast(1.08) brightness(0.45) saturate(1.1);
    opacity: 0;
    animation: hcCycle 32s ease-in-out infinite, hcKen 32s ease-in-out infinite;
    transform: scale(1.04);
    z-index: 0;
}
.fw-ifr1 { background-image: url('./img/infra_refinery_night.jpg'); animation-delay: 0s; }
.fw-ifr2 { background-image: url('./img/infra_lng_negishi.jpg'); animation-delay: 8s; }
.fw-ifr3 { background-image: url('./img/infra_lng_sabine.jpg'); animation-delay: 16s; }
.fw-ifr4 { background-image: url('./img/infra_satorp_night.jpg'); animation-delay: 24s; }
.fw-grad {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5,8,16,0.6) 0%, rgba(5,8,16,0.35) 20%, rgba(5,8,16,0.5) 60%, rgba(5,8,16,0.95) 100%),
        linear-gradient(90deg, rgba(5,8,16,0.4) 0%, transparent 45%, transparent 55%, rgba(5,8,16,0.25) 100%);
    pointer-events: none;
    z-index: 1;
}
.pipeline {
    position: relative;
    padding: 16px 0 0;
    margin-bottom: 56px;
}
.pipeline-svg {
    position: absolute;
    top: 56px;
    left: 0; right: 0;
    width: 100%;
    height: 2px;
    z-index: 0;
    opacity: 0;
    transition: opacity 1s var(--ease-out-expo) 0.4s;
}
.pipeline.visible .pipeline-svg { opacity: 1; }
.pipe-line {
    stroke-dashoffset: 2400;
    animation: flowDash 2.2s var(--ease-out-expo) 0.6s forwards;
}
.pipeline.visible .pipe-line {
    animation: flowDash 2.2s var(--ease-out-expo) forwards;
}
@keyframes flowDash { to { stroke-dashoffset: 0; } }

.pipe-nodes {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    gap: 12px;
    align-items: stretch;
    position: relative;
    z-index: 1;
}
.pipe-node {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.5s var(--ease-out-expo);
    opacity: 0;
    transform: translateY(20px);
}
.pipeline.visible .pipe-node { opacity: 1; transform: translateY(0); }
.pipeline.visible .pipe-node:nth-child(1) { transition-delay: 0.15s; }
.pipeline.visible .pipe-node:nth-child(3) { transition-delay: 0.35s; }
.pipeline.visible .pipe-node:nth-child(5) { transition-delay: 0.55s; }
.pipeline.visible .pipe-node:nth-child(7) { transition-delay: 0.75s; }
.pipe-node:hover { border-color: var(--border-strong); transform: translateY(-4px); box-shadow: var(--shadow); background: var(--surface-elev); }

.pn-icon {
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 700;
    width: 44px; height: 44px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}
.pn-icon sub { font-size: 9px; margin-left: 1px; }
.pn-blue { background: rgba(91,141,238,0.12); color: var(--info); border: 1px solid rgba(91,141,238,0.3); box-shadow: 0 0 20px rgba(91,141,238,0.14); }
.pn-orange { background: rgba(232,153,72,0.12); color: var(--warn); border: 1px solid rgba(232,153,72,0.3); box-shadow: 0 0 20px rgba(232,153,72,0.14); }
.pn-red { background: rgba(224,90,79,0.12); color: var(--danger); border: 1px solid rgba(224,90,79,0.3); box-shadow: 0 0 20px rgba(224,90,79,0.14); }
.pn-cyan { background: rgba(93,200,207,0.12); color: var(--cyan); border: 1px solid rgba(93,200,207,0.3); box-shadow: 0 0 20px rgba(93,200,207,0.14); }

.pn-title { font-size: 18px; font-weight: 600; color: var(--text); letter-spacing: -0.01em; margin-bottom: 4px; }
.pn-scope { font-family: var(--mono); font-size: 10px; color: var(--text-dim); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; }
.pipe-node p { font-size: 13.5px; line-height: 1.6; color: var(--text-muted); margin-bottom: auto; padding-bottom: 16px; }
.pn-val { padding-top: 14px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 11px; color: var(--text-dim); letter-spacing: 0.08em; }
.pn-val strong { color: var(--accent-bright); font-weight: 600; font-size: 14px; letter-spacing: 0; }

.pipe-arrow {
    align-self: center;
    font-family: var(--mono);
    color: var(--text-faint);
    font-size: 16px;
    padding: 0 4px;
    transition: color 0.4s var(--ease-out-expo);
}
.pipeline.visible .pipe-arrow { color: var(--accent); }

.fw-open {
    text-align: center;
    padding: 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
}
.fw-open p { color: var(--text-muted); margin-bottom: 18px; font-size: 15px; }

@media (max-width: 1100px) {
    .pipe-nodes { grid-template-columns: 1fr 1fr; }
    .pipe-arrow { display: none; }
}
@media (max-width: 640px) { .pipe-nodes { grid-template-columns: 1fr; } }

/* ===== EVIDENCE ===== */
.ev-primary {
    background: linear-gradient(135deg, rgba(224,90,79,0.08) 0%, transparent 45%), var(--surface);
    border: 1px solid rgba(224,90,79,0.28);
    border-radius: 16px;
    padding: 40px 44px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}
.ev-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: linear-gradient(180deg, var(--danger-bright), var(--danger));
}
.ev-pri-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.ev-pri-loc { font-family: var(--mono); font-size: 11px; color: var(--text-dim); letter-spacing: 0.08em; }
.ev-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 100px;
    border: 1px solid;
}
.ev-tag-live { color: var(--danger); background: rgba(224,90,79,0.1); border-color: rgba(224,90,79,0.36); }
.ev-tag-retro { color: var(--info); background: rgba(91,141,238,0.08); border-color: rgba(91,141,238,0.32); }
.ev-tag-theory { color: var(--warn); background: rgba(232,153,72,0.08); border-color: rgba(232,153,72,0.32); }
.live-mini { width: 6px; height: 6px; background: var(--danger); border-radius: 50%; animation: pulse 1.6s infinite; box-shadow: 0 0 8px var(--danger); }

.ev-pri-title {
    font-size: clamp(22px, 2.6vw, 30px);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 28px;
}
.ev-pri-sub { color: var(--text-muted); font-weight: 400; }
.ev-pri-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; }
.ev-pri-col-h { font-family: var(--mono); font-size: 10.5px; font-weight: 600; color: var(--accent); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 14px; }
.ev-list { list-style: none; padding: 0; }
.ev-list li { font-size: 14.5px; padding: 10px 0 10px 20px; color: var(--text-soft); line-height: 1.55; position: relative; border-bottom: 1px solid var(--border); }
.ev-list li:last-child { border-bottom: none; }
.ev-list li::before { content: ''; position: absolute; left: 0; top: 20px; width: 10px; height: 1px; background: var(--danger); }

.ev-pri-signal { padding: 18px 20px; background: rgba(0,0,0,0.28); border: 1px solid var(--border); border-radius: 10px; }
.eps-row { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.eps-row:last-child { border-bottom: none; }
.eps-row span { color: var(--text-muted); }
.eps-row strong { font-family: var(--mono); color: var(--text); font-weight: 600; letter-spacing: -0.01em; }
.eps-row strong.red { color: var(--danger-bright); }
.eps-row strong i { font-style: normal; color: var(--text-dim); font-weight: 400; font-size: 11px; margin-left: 2px; }
.ev-pri-punch { margin-top: 18px; font-size: 14.5px; color: var(--text-soft); line-height: 1.6; }
.ev-pri-punch strong { color: var(--danger); font-family: var(--mono); letter-spacing: 0.04em; font-weight: 700; }

@media (max-width: 880px) { .ev-pri-grid { grid-template-columns: 1fr; } }

/* Timeline */
.ev-timeline {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px 44px;
    margin-bottom: 28px;
}
.ev-tl-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.ev-tl-title {
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.015em;
    color: var(--text);
    margin-bottom: 44px;
}
.tl-rail { position: relative; padding: 32px 0 40px; min-height: 120px; }
.tl-line {
    position: absolute;
    top: 50%; left: 2%; right: 2%;
    height: 1px;
    background: linear-gradient(90deg, rgba(91,141,238,0.5) 0%, rgba(232,153,72,0.55) 45%, rgba(224,90,79,0.7) 100%);
    transform: translateY(-50%);
}
.tl-step {
    position: absolute;
    top: 50%;
    left: var(--pos);
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 88px;
}
.tl-dot {
    width: 14px; height: 14px;
    background: var(--info);
    border: 3px solid var(--bg);
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--info), 0 0 14px rgba(91,141,238,0.4);
    margin-bottom: 4px;
}
.tl-step:nth-child(3) .tl-dot { background: var(--warn); box-shadow: 0 0 0 1px var(--warn), 0 0 14px rgba(232,153,72,0.4); }
.tl-step:nth-child(4) .tl-dot { background: var(--warn); box-shadow: 0 0 0 1px var(--warn), 0 0 14px rgba(232,153,72,0.4); }
.tl-step:nth-child(5) .tl-dot { background: var(--danger); box-shadow: 0 0 0 1px var(--danger), 0 0 14px rgba(224,90,79,0.4); }
.tl-step.tl-step-end .tl-dot { background: var(--danger); box-shadow: 0 0 0 1px var(--danger), 0 0 18px var(--danger); animation: pulse 2s infinite; }
.tl-d { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--text); letter-spacing: 0.04em; position: absolute; top: -28px; }
.tl-m { font-size: 11.5px; color: var(--text-muted); text-align: center; line-height: 1.3; position: absolute; top: 30px; width: 140px; }
.ev-tl-foot { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 14.5px; color: var(--text-muted); line-height: 1.65; }

@media (max-width: 900px) {
    .tl-rail { padding: 20px 0; }
    .tl-step { position: static; transform: none; flex-direction: row; min-width: 0; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); }
    .tl-line { display: none; }
    .tl-d { position: static; }
    .tl-m { position: static; width: auto; text-align: left; }
}

/* Generic ev-card (tau function) */
.ev-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 28px;
    transition: border-color 0.4s var(--ease-out-expo);
}
.ev-card:hover { border-color: var(--border-strong); }
.ev-tag-row { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.ev-label { font-family: var(--mono); font-size: 11px; color: var(--text-dim); letter-spacing: 0.08em; }
.ev-card h3 { font-size: clamp(20px, 2.2vw, 24px); font-weight: 600; line-height: 1.35; letter-spacing: -0.015em; color: var(--text); margin-bottom: 16px; }
.ev-card p { font-size: 15px; line-height: 1.7; color: var(--text-muted); }

.ev-quote {
    text-align: center;
    padding: 88px 32px;
    margin-top: 40px;
    background:
        radial-gradient(ellipse 60% 80% at 50% 50%, rgba(212,168,81,0.08) 0%, transparent 60%),
        var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
}
.ev-quote p { font-size: clamp(18px, 2vw, 22px); font-weight: 400; color: var(--text-muted); margin-bottom: 6px; line-height: 1.55; }
.ev-ask {
    font-size: clamp(28px, 3.6vw, 42px) !important;
    font-weight: 500 !important;
    color: var(--text) !important;
    margin-top: 24px !important;
    letter-spacing: -0.025em;
    line-height: 1.15;
}
.ev-ask em { font-family: var(--serif); font-style: italic; font-weight: 400; background: linear-gradient(180deg, var(--accent-bright) 0%, var(--accent-deep) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ===== SERVICES ===== */
.svc-asym { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; margin-bottom: 36px; }
.svc-major, .svc-minor {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease-out-expo);
}
.svc-major:hover, .svc-minor:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: var(--shadow); }
.svc-major::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.svc-status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--success); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 18px; }
.svc-status-dot { width: 7px; height: 7px; background: var(--success); border-radius: 50%; box-shadow: 0 0 8px var(--success); }
.svc-major h3, .svc-minor h3 { font-size: 24px; font-weight: 600; color: var(--text); letter-spacing: -0.015em; margin-bottom: 14px; }
.svc-major p, .svc-minor p { font-size: 15px; line-height: 1.65; color: var(--text-muted); margin-bottom: 24px; }
.svc-split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.svc-features { list-style: none; padding: 0; }
.svc-features li { font-size: 13.5px; color: var(--text-soft); padding: 7px 0 7px 22px; position: relative; line-height: 1.5; }
.svc-features li::before { content: ''; position: absolute; left: 0; top: 14px; width: 12px; height: 1px; background: var(--accent); }
.svc-price { text-align: center; font-size: 13.5px; color: var(--text-dim); letter-spacing: 0.02em; padding-top: 24px; border-top: 1px solid var(--border); }

@media (max-width: 900px) { .svc-asym { grid-template-columns: 1fr; } .svc-split { grid-template-columns: 1fr; } }

/* ===== BRIEFING / NL ===== */
.brief-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.brief-h2 { font-size: clamp(28px, 3.4vw, 40px) !important; margin-bottom: 16px !important; letter-spacing: -0.025em; }
.brief-features { display: grid; gap: 18px; margin: 32px 0; }
.brief-feat { display: flex; gap: 16px; align-items: flex-start; }
.brief-feat-icon { font-family: var(--mono); font-size: 13px; font-weight: 700; width: 38px; height: 38px; border-radius: 10px; background: rgba(212,168,81,0.08); border: 1px solid var(--border-accent); color: var(--accent-bright); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.brief-feat-title { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.brief-feat-desc { font-size: 13.5px; color: var(--text-muted); line-height: 1.55; }

.nl-form { display: flex; gap: 10px; margin-top: 24px; padding: 8px; background: rgba(255,255,255,0.04); border: 1px solid var(--border-strong); border-radius: 12px; transition: all 0.35s var(--ease-out-expo); }
.nl-form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); background: rgba(255,255,255,0.06); }
.nl-form input { flex: 1; background: transparent; border: none; outline: none; padding: 11px 14px; color: var(--text); font-family: var(--sans); font-size: 14.5px; }
.nl-form input::placeholder { color: var(--text-dim); }
.nl-form button { border: none; cursor: pointer; padding: 11px 22px; font-size: 13.5px; font-weight: 600; background: var(--text); color: var(--bg); border-radius: 8px; transition: all 0.3s var(--ease-out-expo); }
.nl-form button:hover { background: var(--accent-bright); }
.nl-note { margin-top: 14px; font-size: 12px; color: var(--text-dim); }
.nl-success { margin-top: 16px; padding: 14px 18px; background: rgba(76,165,116,0.08); border: 1px solid rgba(76,165,116,0.32); border-radius: 8px; color: var(--success); font-size: 13.5px; display: none; }
.nl-success.show { display: block; animation: fadeIn 0.5s var(--ease-out-expo); }

.brief-preview {
    background: var(--surface-elev);
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 0 48px rgba(91,141,238,0.05);
    transform: perspective(1400px) rotateY(-4deg) rotateX(2deg);
    transition: transform 0.8s var(--ease-out-expo);
}
.brief-preview:hover { transform: perspective(1400px) rotateY(0deg) rotateX(0deg); }
.brief-preview-header { padding: 16px 22px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.02); }
.brief-preview-logo { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--text); letter-spacing: 0.06em; }
.brief-preview-date { font-family: var(--mono); font-size: 11px; color: var(--text-dim); }
.brief-preview-section { padding: 16px 22px; border-bottom: 1px solid var(--border); }
.brief-preview-section:last-child { border-bottom: none; }
.brief-preview-title { font-family: var(--mono); font-size: 10.5px; font-weight: 600; color: var(--text-dim); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 12px; }
.brief-preview-row { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; padding: 6px 0; }
.brief-preview-row span:first-child { color: var(--text); font-weight: 500; }
.brief-preview-row span:last-child { font-family: var(--mono); }
.brief-up { color: var(--danger); font-weight: 600; }
.brief-down { color: var(--success); font-weight: 600; }
.brief-alert { color: var(--danger); font-weight: 700; }
.brief-preview-alert { font-size: 12.5px; color: var(--danger); background: rgba(224,90,79,0.08); padding: 12px 14px; border-radius: 6px; border-left: 2px solid var(--danger); line-height: 1.55; }

@media (max-width: 980px) { .brief-layout { grid-template-columns: 1fr; gap: 48px; } .brief-preview { transform: none; } }

/* ===== RESEARCH ===== */
.paper { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 44px; transition: all 0.4s var(--ease-out-expo); }
.paper:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.paper-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.paper-badge { font-family: var(--mono); font-size: 10.5px; font-weight: 700; color: var(--info); background: rgba(91,141,238,0.12); border: 1px solid rgba(91,141,238,0.32); padding: 4px 10px; border-radius: 4px; letter-spacing: 0.1em; }
.paper-author { font-size: 13px; color: var(--text-dim); font-family: var(--mono); letter-spacing: 0.04em; }
.paper h3 { font-size: 24px; font-weight: 600; color: var(--text); letter-spacing: -0.015em; line-height: 1.3; margin-bottom: 18px; }
.paper p { font-size: 15px; line-height: 1.7; color: var(--text-muted); margin-bottom: 14px; }
.paper-status-row { display: flex; align-items: center; gap: 14px; padding-top: 22px; border-top: 1px solid var(--border); margin-top: 24px; font-family: var(--mono); font-size: 12px; color: var(--warn); letter-spacing: 0.06em; }
.paper-status-dot { width: 7px; height: 7px; background: var(--warn); border-radius: 50%; animation: pulse 2.4s infinite; box-shadow: 0 0 8px var(--warn); }

/* ===== ABOUT ===== */
.about-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.about-motto { font-size: clamp(22px, 2.6vw, 30px); font-weight: 500; color: var(--text); line-height: 1.35; letter-spacing: -0.02em; margin-bottom: 28px; font-family: var(--serif); font-style: italic; font-weight: 400; }
.about-main p { font-size: 15.5px; line-height: 1.75; color: var(--text-muted); margin-bottom: 18px; max-width: 620px; }

.profile-card {
    padding: 32px;
    background: linear-gradient(135deg, rgba(212,168,81,0.06) 0%, transparent 70%), var(--surface);
    border: 1px solid var(--border-accent);
    border-radius: 14px;
    position: relative;
    overflow: hidden;
}
.profile-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 40%; height: 1px;
    background: linear-gradient(90deg, var(--accent), transparent);
}
.profile-img-wrap {
    max-width: 360px;
    width: 100%;
    aspect-ratio: 2816 / 1382;
    margin: 0 auto 22px;
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    background: #000;
}
.profile-img-wrap img { width: 100%; height: 100%; display: block; object-fit: cover; }
.profile-img-seal img { object-position: center center; }
.profile-img-master img { object-position: center top; }
.profile-block { text-align: left; }
.profile-kicker { font-family: var(--mono); font-size: 10.5px; font-weight: 600; color: var(--accent); letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 14px; }
.profile-block:nth-of-type(2) .profile-kicker { color: var(--text-dim); }
.profile-name { font-size: 19px; font-weight: 500; color: var(--text); line-height: 1.4; letter-spacing: -0.01em; margin-bottom: 14px; }
.profile-sep { color: var(--text-dim); font-weight: 400; margin: 0 4px; }
.profile-bio { font-size: 13.5px; line-height: 1.65; color: var(--text-muted); margin: 0; }
.profile-bio em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent-bright); }
.profile-divider { height: 1px; background: var(--border); margin: 26px 0; }

@media (max-width: 980px) { .about-layout { grid-template-columns: 1fr; gap: 40px; } }

/* ===== LEGAL ===== */
.legal-figure { margin: 0 0 40px; position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); aspect-ratio: 16 / 7; background: #000; }
.legal-figure img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; display: block; filter: brightness(0.78) contrast(1.05); }
.legal-figure::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.55) 100%); pointer-events: none; }
.legal-figure figcaption { position: absolute; right: 14px; bottom: 12px; font-family: var(--mono); font-size: 10.5px; color: rgba(255,255,255,0.72); letter-spacing: 0.06em; z-index: 1; }
.legal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.legal-grid h3 { font-size: 13px; font-weight: 600; color: var(--text-dim); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 12px; }
.legal-grid p { font-size: 13.5px; color: var(--text-muted); line-height: 1.7; }
@media (max-width: 680px) { .legal-grid { grid-template-columns: 1fr; } .legal-figure { aspect-ratio: 16 / 9; } }

/* ===== CONTACT ===== */
.section-contact { text-align: center; padding: 140px 32px; background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(212,168,81,0.06) 0%, transparent 60%); }
.contact-head { font-size: clamp(36px, 5.2vw, 64px); font-weight: 500; letter-spacing: -0.028em; line-height: 1.08; margin-bottom: 22px; }
.contact-head em { font-family: var(--serif); font-style: italic; font-weight: 400; background: linear-gradient(180deg, var(--accent-bright) 0%, var(--accent-deep) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.contact-sub { font-size: 17px; color: var(--text-muted); margin-bottom: 48px; max-width: 560px; margin-left: auto; margin-right: auto; line-height: 1.6; }
.contact-email {
    font-family: var(--mono);
    font-size: 17px;
    color: var(--text);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 20px 38px;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    transition: all 0.35s var(--ease-out-expo);
    letter-spacing: 0.02em;
}
.contact-email:hover { background: var(--surface-elev); border-color: var(--accent); color: var(--accent-bright); transform: translateY(-2px); box-shadow: 0 14px 36px rgba(212,168,81,0.18); }

/* ===== FOOTER ===== */
footer { padding: 56px 32px 32px; border-top: 1px solid var(--border); background: var(--bg-deeper); }
.footer-inner { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 36px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.footer-brand-block { max-width: 320px; }
.footer-brand { font-size: 15px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-tag { font-size: 13px; color: var(--text-muted); line-height: 1.65; }
.footer-col h4 { font-family: var(--mono); font-size: 10.5px; font-weight: 600; color: var(--text-dim); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13.5px; color: var(--text-muted); text-decoration: none; padding: 5px 0; transition: color 0.25s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { max-width: 1240px; margin: 0 auto; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11.5px; color: var(--text-dim); letter-spacing: 0.04em; }
@media (max-width: 820px) { .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; } .footer-brand-block { grid-column: 1 / -1; } .footer-bottom { flex-direction: column; gap: 8px; } }

/* ===== REVEAL ===== */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.18s; }
.reveal-d3 { transition-delay: 0.28s; }

/* ===== KEYFRAMES ===== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeRise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } }

/* Scrollbar */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-hi); border-radius: 6px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

/* =====================================================
   IMAGE TREATMENT — v7.1
   Public-domain imagery (NASA / U.S. Navy / Wikimedia Commons)
   Duotone: navy shadows -> amber highlights
   ===================================================== */

/* Hero background collage */
.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.hero-bg-img {
    position: absolute;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%) contrast(1.15) brightness(0.45) sepia(30%) hue-rotate(-10deg) saturate(180%);
    opacity: 0;
    transition: opacity 2s var(--ease-out-expo);
    mix-blend-mode: screen;
}
.hero-split.ready .hero-bg-img { opacity: 0.55; }
.hero-bg-1 {
    top: 6%; right: -12%;
    width: 70%; height: 70%;
    background-image: url('./img/hormuz_full.jpg');
    transition-delay: 0.1s;
    mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 0%, transparent 75%);
}
.hero-bg-2 {
    bottom: -10%; left: -8%;
    width: 52%; height: 60%;
    background-image: url('./img/irgc_speedboat.jpg');
    transition-delay: 0.4s;
    mask-image: radial-gradient(ellipse 60% 55% at 40% 55%, black 0%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 60% 55% at 40% 55%, black 0%, transparent 78%);
}
.hero-bg-3 {
    top: 55%; right: 22%;
    width: 35%; height: 35%;
    background-image: url('./img/kharg_terminal.jpg');
    transition-delay: 0.7s;
    mask-image: radial-gradient(ellipse 55% 55% at 50% 50%, black 0%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 55% 55% at 50% 50%, black 0%, transparent 80%);
}
.hero-split.ready .hero-bg-3 { opacity: 0.38; }
.hero-bg-veil {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 25% 40%, rgba(5,8,16,0.4) 0%, transparent 70%),
        linear-gradient(180deg, var(--bg) 0%, transparent 20%, transparent 70%, var(--bg) 100%),
        linear-gradient(90deg, var(--bg) 0%, transparent 30%, transparent 70%, rgba(5,8,16,0.3) 100%);
}
.hero-split-inner { position: relative; z-index: 1; }

/* Terminal scene viewer */
.scene {
    position: relative;
    height: 420px;
    background: var(--bg-deeper);
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}
@media (max-width: 1040px) { .scene { height: 360px; } }
.scene-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.9s var(--ease-out-expo);
    filter: grayscale(100%) contrast(1.1) brightness(0.55) sepia(35%) hue-rotate(-8deg) saturate(220%);
}
.scene-hormuz  { background-image: url('./img/hormuz_modis.jpg'); background-position: 62% 50%; }
.scene-taiwan  { background-image: url('./img/fa18_launch.jpg'); }
.scene-malacca { background-image: url('./img/uss_lincoln.jpg'); }
.scene-suez    { background-image: url('./img/hormuz_full.jpg'); }
.scene[data-scen="hormuz"]  .scene-hormuz,
.scene[data-scen="taiwan"]  .scene-taiwan,
.scene[data-scen="malacca"] .scene-malacca,
.scene[data-scen="suez"]    .scene-suez { opacity: 0.92; }

.scene-veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5,8,16,0.15) 0%, rgba(5,8,16,0.5) 55%, rgba(5,8,16,0.85) 100%),
        radial-gradient(ellipse 70% 80% at 50% 50%, transparent 0%, rgba(5,8,16,0.35) 100%);
    pointer-events: none;
}
.scene-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(212,168,81,0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212,168,81,0.08) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 75% 65% at 50% 50%, black, transparent 95%);
    -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 50%, black, transparent 95%);
    opacity: 0.5;
}
.scene-marker {
    position: absolute;
    width: 24px; height: 24px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: all 0.7s var(--ease-out-expo);
}
.scene[data-scen="hormuz"]  .scene-marker { top: 48%; left: 58%; }
.scene[data-scen="taiwan"]  .scene-marker { top: 40%; left: 62%; }
.scene[data-scen="malacca"] .scene-marker { top: 52%; left: 50%; }
.scene[data-scen="suez"]    .scene-marker { top: 45%; left: 40%; }
.scene-marker-ring {
    position: absolute;
    inset: 0;
    border: 1px solid var(--danger);
    border-radius: 50%;
    animation: markerPulse 2s ease-out infinite;
}
.scene-marker-dot {
    position: absolute;
    top: 50%; left: 50%;
    width: 10px; height: 10px;
    background: var(--danger-bright);
    border: 2px solid var(--bg-deeper);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 16px var(--danger), 0 0 0 3px rgba(224,90,79,0.25);
}
@keyframes markerPulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(3); opacity: 0; }
}
.scene-meta { position: absolute; left: 18px; bottom: 14px; z-index: 2; }
.scene-meta-title { font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--text); letter-spacing: 0.14em; text-shadow: 0 2px 8px rgba(0,0,0,0.6); }
.scene-meta-caption { font-family: var(--mono); font-size: 10.5px; color: var(--text-muted); letter-spacing: 0.08em; margin-top: 4px; text-shadow: 0 2px 8px rgba(0,0,0,0.6); }
.scene-source { position: absolute; right: 14px; bottom: 12px; font-family: var(--mono); font-size: 9.5px; color: var(--text-dim); letter-spacing: 0.08em; z-index: 2; opacity: 0.8; }

/* Context grid */
.context-sec { padding-top: 140px; padding-bottom: 140px; }
.ctx-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 420px;
    gap: 20px;
    margin-bottom: 40px;
}
.ctx-wide { grid-column: span 2; grid-row: span 2; }
.ctx-tall { grid-row: span 2; }

.ctx-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
    transition: all 0.5s var(--ease-out-expo);
    margin: 0;
}
.ctx-card:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.ctx-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%) contrast(1.08) brightness(0.75) sepia(20%) hue-rotate(-6deg) saturate(140%);
    transition: all 0.7s var(--ease-out-expo);
}
.ctx-card:hover .ctx-img {
    transform: scale(1.04);
    filter: grayscale(70%) contrast(1.08) brightness(0.85) sepia(10%) hue-rotate(-6deg) saturate(160%);
}
.ctx-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5,8,16,0.1) 0%, rgba(5,8,16,0.2) 40%, rgba(5,8,16,0.92) 100%);
    pointer-events: none;
    z-index: 1;
}
.ctx-img-1 { background-image: url('./img/hormuz_modis.jpg'); background-position: 60% 50%; }
.ctx-img-2 { background-image: url('./img/fa18_launch.jpg'); }
.ctx-img-3 { background-image: url('./img/irgc_speedboat.jpg'); }
.ctx-img-4 { background-image: url('./img/kharg_terminal.jpg'); }
.ctx-img-5 { background-image: url('./img/uss_lincoln.jpg'); }
.ctx-img-6 { background-image: url('./img/hormuz_full.jpg'); }

.ctx-card figcaption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 22px 24px;
    z-index: 2;
    transform: translateY(8px);
    transition: transform 0.5s var(--ease-out-expo);
}
.ctx-card:hover figcaption { transform: translateY(0); }
.ctx-card.ctx-wide figcaption { padding: 28px 32px 26px; max-width: 560px; }
.ctx-tag {
    display: inline-block;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--accent-bright);
    padding: 3px 9px;
    background: rgba(212,168,81,0.14);
    border: 1px solid var(--border-accent);
    border-radius: 3px;
    margin-bottom: 12px;
    backdrop-filter: blur(4px);
}
.ctx-card h3 {
    font-size: clamp(16px, 1.4vw, 19px);
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin-bottom: 10px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.ctx-card.ctx-wide h3 { font-size: clamp(20px, 1.8vw, 26px); }
.ctx-card p {
    font-size: 13.5px;
    color: var(--text-soft);
    line-height: 1.6;
    margin-bottom: 10px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.7);
    opacity: 0.9;
    max-height: 120px;
    transition: all 0.5s var(--ease-out-expo);
    overflow: hidden;
}
.ctx-card.ctx-wide p { font-size: 15px; max-height: 160px; }
.ctx-card:hover p { opacity: 1; max-height: 240px; }
.ctx-src { display: inline-block; font-family: var(--mono); font-size: 9.5px; color: var(--text-dim); letter-spacing: 0.1em; margin-top: 4px; opacity: 0.7; }

.ctx-foot {
    text-align: center;
    font-size: 12.5px;
    color: var(--text-dim);
    line-height: 1.65;
    max-width: 680px;
    margin: 0 auto;
    padding: 24px 16px 0;
    border-top: 1px solid var(--border);
    font-family: var(--mono);
    letter-spacing: 0.02em;
}

@media (max-width: 900px) {
    .ctx-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; }
    .ctx-wide { grid-column: span 2; grid-row: span 1; }
    .ctx-tall { grid-row: span 1; }
    .ctx-card p { opacity: 1; max-height: 200px; }
}
@media (max-width: 560px) {
    .ctx-grid { grid-template-columns: 1fr; }
    .ctx-wide { grid-column: span 1; }
}

/* =====================================================
   CINEMA STACK — v8
   Magazine-style full-viewport image sections, no frames
   ===================================================== */
.cinema-stack {
    padding: 0;
    margin: 0;
    background: var(--bg-deeper);
}
.cinema-scene {
    position: relative;
    height: 100vh;
    min-height: 560px;
    width: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.cinema-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: contrast(1.08) brightness(0.88) saturate(1.18);
    transform: scale(1.02);
    animation: cinemaKen 22s ease-in-out infinite alternate;
}
@keyframes cinemaKen {
    0% { transform: scale(1.02) translate(0, 0); }
    100% { transform: scale(1.14) translate(-1.5%, -1.5%); }
}
.cinema-img-hormuz      { background-image: url('./img/hormuz_modis.jpg'); background-position: 58% 50%; }
.cinema-img-sunlight    { background-image: url('./img/tanker_sunlight.jpg'); background-position: center; }
.cinema-img-stride      { background-image: url('./img/tanker_stride.jpg'); background-position: center; }
.cinema-img-houston     { background-image: url('./img/tanker_houston.jpg'); background-position: center; }
.cinema-img-lincoln     { background-image: url('./img/uss_lincoln.jpg'); }
.cinema-img-kharg       { background-image: url('./img/kharg_terminal.jpg'); }
.cinema-img-hormuz-full { background-image: url('./img/hormuz_full.jpg'); }
.cinema-img-fa18        { background-image: url('./img/fa18_launch.jpg'); background-position: center; }

.cinema-grad {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5,8,16,0.85) 0%, rgba(5,8,16,0.35) 45%, transparent 70%),
        linear-gradient(180deg, rgba(5,8,16,0.4) 0%, transparent 35%, transparent 70%, rgba(5,8,16,0.6) 100%);
    pointer-events: none;
}
.cinema-grad-right {
    background:
        linear-gradient(270deg, rgba(5,8,16,0.85) 0%, rgba(5,8,16,0.35) 45%, transparent 70%),
        linear-gradient(180deg, rgba(5,8,16,0.4) 0%, transparent 35%, transparent 70%, rgba(5,8,16,0.6) 100%);
}

.cinema-inner {
    position: absolute;
    top: 50%;
    left: 6vw;
    transform: translateY(-50%);
    max-width: 640px;
    z-index: 2;
}
.cinema-inner-right {
    left: auto;
    right: 6vw;
    text-align: right;
}

.cinema-mark {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-bright);
    letter-spacing: 0.24em;
    text-transform: uppercase;
    margin-bottom: 28px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.7);
}
.cinema-h2 {
    font-size: clamp(48px, 8vw, 120px);
    font-weight: 500;
    line-height: 0.95;
    letter-spacing: -0.035em;
    color: var(--text);
    margin-bottom: 28px;
    text-shadow: 0 6px 32px rgba(0,0,0,0.7);
}
.cinema-h2 em {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    background: linear-gradient(180deg, var(--accent-bright) 0%, var(--accent-deep) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}
.cinema-p {
    font-size: clamp(16px, 1.5vw, 19px);
    line-height: 1.55;
    color: var(--text-soft);
    margin-bottom: 32px;
    max-width: 520px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.65);
}
.cinema-inner-right .cinema-p { margin-left: auto; }
.cinema-meta {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    opacity: 0.75;
    text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

@media (max-width: 760px) {
    .cinema-scene { min-height: 88vh; }
    .cinema-inner, .cinema-inner-right { left: 6vw; right: 6vw; text-align: left; max-width: none; }
    .cinema-inner-right .cinema-p { margin-left: 0; }
    .cinema-h2 { font-size: clamp(40px, 11vw, 64px); }
    .cinema-grad, .cinema-grad-right {
        background:
            linear-gradient(180deg, rgba(5,8,16,0.45) 0%, rgba(5,8,16,0.15) 40%, rgba(5,8,16,0.85) 100%);
    }
}

/* =====================================================
   PHYSICAL SUBSTRATE — v8 (crossfade, unified pattern)
   ===================================================== */
.substrate {
    position: relative;
    min-height: 100vh;
    padding: 160px 32px 140px;
    overflow: hidden;
    background: var(--bg-deeper);
    display: flex;
    align-items: center;
}
.sb-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: contrast(1.08) brightness(0.55) saturate(1.15);
    opacity: 0;
    animation: hcCycle 32s ease-in-out infinite, hcKen 32s ease-in-out infinite;
    transform: scale(1.04);
    z-index: 0;
}
.sb-1 { background-image: url('./img/tanker_stride.jpg'); animation-delay: 0s; }
.sb-2 { background-image: url('./img/uss_lincoln.jpg'); animation-delay: 8s; }
.sb-3 { background-image: url('./img/kharg_terminal.jpg'); animation-delay: 16s; }
.sb-4 { background-image: url('./img/hormuz_full.jpg'); animation-delay: 24s; }
.sb-grad {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5,8,16,0.5) 0%, rgba(5,8,16,0.2) 20%, rgba(5,8,16,0.4) 60%, rgba(5,8,16,0.92) 100%),
        linear-gradient(90deg, rgba(5,8,16,0.55) 0%, transparent 55%);
    pointer-events: none;
    z-index: 1;
}
.substrate-inner {
    position: relative;
    z-index: 2;
    max-width: 1240px;
    margin: 0 auto;
    width: 100%;
}
.sb-eyebrow {
    display: inline-block;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-bright);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    padding: 8px 18px;
    background: rgba(212,168,81,0.1);
    border: 1px solid var(--border-accent);
    border-radius: 100px;
    margin-bottom: 32px;
    backdrop-filter: blur(8px);
}
.sb-h2 {
    font-size: clamp(42px, 6.5vw, 88px);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 24px;
    max-width: 900px;
    text-shadow: 0 6px 32px rgba(0,0,0,0.7);
}
.sb-h2 em {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    background: linear-gradient(180deg, var(--accent-bright) 0%, var(--accent-deep) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.sb-sub {
    font-size: clamp(16px, 1.5vw, 19px);
    line-height: 1.6;
    color: var(--text-soft);
    max-width: 560px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.65);
}

/* Legacy image-marquee (kept for compatibility, hidden) */
.image-marquee {
    display: none;
    position: relative;
    height: 100vh;
    min-height: 620px;
    overflow: hidden;
    background: var(--bg-deeper);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 0;
}
.im-overlay-top {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212,168,81,0.4) 50%, transparent);
    z-index: 10;
}
.im-rail {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: stretch;
    overflow: hidden;
}
.im-track {
    display: flex;
    gap: 0;
    padding: 0;
    height: 100%;
    animation: marqueeSlide 96s linear infinite;
    will-change: transform;
}
.im-track:hover { animation-play-state: paused; }
@keyframes marqueeSlide {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.im-slide {
    flex-shrink: 0;
    width: 100vw;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 0;
    border: none;
    margin: 0;
    cursor: default;
}
.im-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: contrast(1.08) brightness(0.88) saturate(1.15);
    transform: scale(1.04);
    animation: kenBurns 16s ease-in-out infinite alternate;
}
@keyframes kenBurns {
    0% { transform: scale(1.04) translate(0, 0); }
    100% { transform: scale(1.12) translate(-1%, -1.5%); }
}
.im-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(5,8,16,0.12) 0%,
        rgba(5,8,16,0.15) 40%,
        rgba(5,8,16,0.8) 100%);
    pointer-events: none;
    z-index: 1;
}
.im-slide figcaption {
    position: absolute;
    bottom: 6vh; left: 48px; right: 48px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 900px;
}
.im-tag {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.24em;
    color: var(--accent-bright);
    text-shadow: 0 2px 12px rgba(0,0,0,0.85);
    padding: 8px 16px;
    background: rgba(5,8,16,0.55);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-accent);
    border-radius: 100px;
    align-self: flex-start;
}
.im-title {
    font-size: clamp(36px, 5.8vw, 84px);
    font-weight: 500;
    color: var(--text);
    letter-spacing: -0.03em;
    line-height: 1;
    text-shadow: 0 4px 24px rgba(0,0,0,0.8);
}

.im-headline {
    position: absolute;
    top: 12vh; left: 48px;
    z-index: 5;
    max-width: 640px;
    padding: 0;
    pointer-events: none;
}
.im-eyebrow {
    display: inline-block;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-bright);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    padding: 6px 14px;
    background: rgba(212,168,81,0.1);
    border: 1px solid var(--border-accent);
    border-radius: 100px;
    margin-bottom: 20px;
}
.im-h2 {
    font-size: clamp(32px, 4.6vw, 56px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.028em;
    color: var(--text);
    margin-bottom: 16px;
}
.im-h2 em {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    background: linear-gradient(180deg, var(--accent-bright) 0%, var(--accent-deep) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.im-sub {
    font-size: 15.5px;
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 520px;
    margin: 0 auto;
}

.im-edge { display: none; }

/* Full-screen gradient overlay for text legibility */
.im-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5,8,16,0.55) 0%, rgba(5,8,16,0.25) 30%, rgba(5,8,16,0.35) 60%, rgba(5,8,16,0.92) 100%),
        linear-gradient(90deg, rgba(5,8,16,0.4) 0%, transparent 45%);
    pointer-events: none;
    z-index: 1;
}

@media (max-width: 900px) {
    .image-marquee { height: 90vh; min-height: 520px; }
    .im-slide figcaption { left: 24px; right: 24px; bottom: 5vh; }
    .im-headline { top: 8vh; left: 24px; right: 24px; max-width: none; }
    .im-h2 { font-size: clamp(28px, 7vw, 44px); }
    .im-title { font-size: clamp(28px, 8vw, 48px); }
}
@media (prefers-reduced-motion: reduce) {
    .im-track { animation: none; }
}
