/* ============================================
   ZURICH VS SAN FRANCISCO
   Editorial data journalism aesthetic
   Dark mode with Swiss red + Golden Gate gold
   ============================================ */

:root {
    --zurich: #E53935;
    --zurich-dim: #B71C1C;
    --zurich-glow: rgba(229, 57, 53, 0.15);
    --zurich-glow-strong: rgba(229, 57, 53, 0.3);
    --sf: #FF8F00;
    --sf-dim: #E65100;
    --sf-glow: rgba(255, 143, 0, 0.15);
    --sf-glow-strong: rgba(255, 143, 0, 0.3);
    --bg: #0a0a0f;
    --bg-card: #111119;
    --bg-elevated: #18181f;
    --bg-hover: #1e1e28;
    --text: #e8e6e3;
    --text-dim: #8a8a96;
    --text-muted: #55555f;
    --border: #2a2a35;
    --border-light: #1f1f2a;

    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', 'Consolas', monospace;
}

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

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

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

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* COLOR ACCENTS */
.zurich-accent { color: var(--zurich); }
.sf-accent { color: var(--sf); }

/* SECTION COMMON */
.section {
    padding: 100px 0;
    position: relative;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 48px;
    line-height: 1.15;
}

/* ANIMATION BASE */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: all 0.35s ease;
}

.nav-scrolled {
    background: rgba(10, 10, 15, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    padding: 10px 0;
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text);
    text-decoration: none;
    letter-spacing: 0.05em;
}

.nav-vs {
    font-size: 0.7em;
    color: var(--text-muted);
    margin: 0 2px;
    font-style: italic;
    font-family: var(--font-display);
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    font-size: 0.82rem;
    color: var(--text-dim);
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 25% 40%, var(--zurich-glow) 0%, transparent 50%),
        radial-gradient(ellipse at 75% 60%, var(--sf-glow) 0%, transparent 50%),
        var(--bg);
}

.hero-grain {
    position: absolute;
    inset: 0;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-size: 256px;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
    animation: heroFadeIn 1.2s ease forwards;
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 36px;
    padding: 6px 16px;
    border: 1px solid var(--border);
    border-radius: 100px;
    display: inline-block;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 7.5vw, 5.5rem);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 20px;
}

.hero-city {
    display: block;
}

.hero-zurich {
    color: var(--zurich);
    text-shadow: 0 0 60px var(--zurich-glow-strong);
}

.hero-sf {
    color: var(--sf);
    text-shadow: 0 0 60px var(--sf-glow-strong);
}

.hero-vs {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: 0.35em;
    color: var(--text-muted);
    display: block;
    margin: 8px 0;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-dim);
    margin-bottom: 50px;
    font-weight: 300;
}

.hero-score-strip {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 50px;
}

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

.hero-score-num {
    font-family: var(--font-mono);
    font-size: 3rem;
    font-weight: 600;
    display: block;
    line-height: 1;
}

.zurich-score .hero-score-num { color: var(--zurich); }
.tie-score .hero-score-num { color: var(--text-muted); }
.sf-score .hero-score-num { color: var(--sf); }

.hero-score-label {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-top: 6px;
    display: block;
    letter-spacing: 0.04em;
}

.hero-cta {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-dim);
    text-decoration: none;
    letter-spacing: 0.08em;
    border: 1px solid var(--border);
    padding: 10px 28px;
    border-radius: 100px;
    transition: all 0.3s ease;
    display: inline-block;
}

.hero-cta:hover {
    border-color: var(--text-dim);
    color: var(--text);
    transform: translateY(2px);
}

/* ============================================
   VERDICT
   ============================================ */
.verdict-section {
    padding-top: 80px;
}

.verdict-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 60px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.verdict-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--zurich), var(--zurich-dim));
}

.verdict-crown {
    font-size: 2.5rem;
    color: var(--zurich);
    margin-bottom: 12px;
}

.verdict-city {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    color: var(--zurich);
}

.verdict-tagline {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.5rem;
    color: var(--text-dim);
    margin-bottom: 36px;
}

.verdict-reasoning {
    max-width: 640px;
    margin: 0 auto 36px;
}

.verdict-reasoning p {
    color: var(--text-dim);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

.verdict-kicker {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    font-style: italic;
}

.mercer-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 24px;
    background: var(--bg-elevated);
    border-radius: 10px;
    flex-wrap: wrap;
}

.mercer-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.mercer-rank {
    font-family: var(--font-mono);
    font-size: 1.8rem;
    font-weight: 600;
}

.mercer-name {
    font-size: 0.9rem;
    font-weight: 500;
}

.mercer-spacer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mercer-dots {
    width: 30px;
    height: 1px;
    background: var(--border);
    display: block;
}

.mercer-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    white-space: nowrap;
}

/* ============================================
   SCORECARD
   ============================================ */
.scorecard-section {
    background:
        radial-gradient(ellipse at 20% 50%, rgba(229, 57, 53, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(255, 143, 0, 0.04) 0%, transparent 50%),
        var(--bg);
}

.scorecard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.score-card {
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    transition: transform 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
}

.score-card:hover {
    transform: translateY(-2px);
}

.score-card-winner {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    margin-bottom: 8px;
}

.score-card-cat {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
    line-height: 1.3;
}

.score-card-detail {
    font-size: 0.78rem;
    color: var(--text-dim);
    line-height: 1.4;
}

/* Zurich wins */
.zurich-win {
    border-left: 3px solid var(--zurich);
}

.zurich-win .score-card-winner {
    color: var(--zurich);
}

.zurich-win:hover {
    border-color: var(--zurich);
    background: rgba(229, 57, 53, 0.04);
}

/* SF wins */
.sf-win {
    border-left: 3px solid var(--sf);
}

.sf-win .score-card-winner {
    color: var(--sf);
}

.sf-win:hover {
    border-color: var(--sf);
    background: rgba(255, 143, 0, 0.04);
}

/* Tie */
.tie-card {
    border-left: 3px solid var(--text-muted);
}

.tie-card .score-card-winner {
    color: var(--text-muted);
}

/* ============================================
   BAR CHARTS
   ============================================ */
.bars-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px 48px;
}

.bar-comparison {
    margin-bottom: 4px;
}

.bar-label {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--text);
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.bar-city {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    width: 24px;
    color: var(--text-dim);
    flex-shrink: 0;
}

.bar-track {
    flex: 1;
    height: 28px;
    background: var(--bg-elevated);
    border-radius: 6px;
    overflow: visible;
    position: relative;
}

.bar-fill {
    height: 100%;
    border-radius: 6px;
    width: 0;
    transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    position: relative;
}

.zurich-bar {
    background: linear-gradient(90deg, var(--zurich-dim), var(--zurich));
}

.sf-bar {
    background: linear-gradient(90deg, var(--sf-dim), var(--sf));
}

.bar-value {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    color: white;
    white-space: nowrap;
}

.bar-value-outside {
    position: absolute;
    right: -60px;
    color: var(--text-dim);
}

.bar-footnote {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--sf);
    margin-top: 4px;
    text-align: right;
    letter-spacing: 0.05em;
}

/* ============================================
   SALARY SECTION
   ============================================ */
.salary-section {
    background: var(--bg);
}

.salary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

.salary-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 28px;
}

.salary-header {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 18px;
}

.salary-duo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.salary-item {
    text-align: center;
    flex: 1;
}

.salary-amount {
    font-family: var(--font-mono);
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 4px;
}

.salary-pct {
    font-family: var(--font-mono);
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 4px;
}

.salary-city {
    font-size: 0.78rem;
    color: var(--text-dim);
}

.salary-divider {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.salary-note {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
    font-size: 0.8rem;
    color: var(--text-dim);
    text-align: center;
}

.salary-note em {
    color: var(--zurich);
    font-style: normal;
    font-weight: 600;
}

/* INSIGHT BOX */
.insight-box {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--zurich-dim);
    border-radius: 10px;
    padding: 24px;
}

.insight-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.insight-text {
    font-size: 0.92rem;
    color: var(--text-dim);
    line-height: 1.65;
}

.insight-text strong {
    color: var(--text);
}

/* ============================================
   HOUSING
   ============================================ */
.housing-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

.housing-stat {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 36px;
    text-align: center;
}

.stat-big {
    font-family: var(--font-mono);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 600;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-unit {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* DATA TABLE */
.housing-table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.data-table th {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    text-align: left;
    padding: 12px 16px;
    border-bottom: 2px solid var(--border);
}

.zurich-col { color: var(--zurich) !important; }
.sf-col { color: var(--sf) !important; }

.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-dim);
}

.data-table td:first-child {
    color: var(--text);
    font-weight: 500;
}

.data-table tbody tr:hover {
    background: var(--bg-elevated);
}

/* ============================================
   NATURE
   ============================================ */
.nature-section {
    background:
        radial-gradient(ellipse at 30% 70%, rgba(229, 57, 53, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 30%, rgba(255, 143, 0, 0.04) 0%, transparent 50%),
        var(--bg);
}

.nature-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.nature-col {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 36px;
}

.zurich-nature { border-top: 3px solid var(--zurich); }
.sf-nature { border-top: 3px solid var(--sf); }

.nature-city-name {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.zurich-nature .nature-city-name { color: var(--zurich); }
.sf-nature .nature-city-name { color: var(--sf); }

.nature-stats-row {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.nature-stat {
    text-align: center;
    flex: 1;
    padding: 14px 8px;
    background: var(--bg-elevated);
    border-radius: 8px;
}

.nature-stat-num {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1;
    margin-bottom: 4px;
}

.nature-stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.nature-list {
    list-style: none;
    margin-bottom: 20px;
}

.nature-list li {
    padding: 8px 0;
    font-size: 0.88rem;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border-light);
    line-height: 1.5;
}

.nature-list li:last-child { border-bottom: none; }
.nature-list li strong { color: var(--text); }

.nature-vibe {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

/* ============================================
   WEATHER
   ============================================ */
.weather-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 40px;
}

.weather-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 24px;
}

.weather-season {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 16px;
    color: var(--text);
}

.weather-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.weather-city-block {
    padding: 12px;
    background: var(--bg-elevated);
    border-radius: 8px;
}

.weather-emoji {
    font-size: 1.4rem;
    display: block;
    margin-bottom: 6px;
}

.weather-city-name {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
}

.weather-desc {
    font-size: 0.8rem;
    color: var(--text-dim);
    line-height: 1.5;
}

/* Weather numbers bars */
.weather-numbers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.weather-num-item {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 20px;
}

.weather-num-label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.weather-num-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.weather-num-city {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    width: 20px;
}

.weather-num-track {
    flex: 1;
    height: 14px;
    background: var(--bg-elevated);
    border-radius: 4px;
    overflow: hidden;
}

.weather-num-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease;
}

.weather-num-val {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-dim);
    white-space: nowrap;
    min-width: 68px;
    text-align: right;
}

/* ============================================
   LIFESTYLE / HARD TRUTHS
   ============================================ */
.truths-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.truth-col {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 36px;
}

.truth-city {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.truth-good, .truth-bad {
    margin-bottom: 20px;
}

.truth-good .truth-item::before {
    content: '+';
    color: #4CAF50;
    font-family: var(--font-mono);
    font-weight: 700;
    margin-right: 10px;
}

.truth-bad .truth-item::before {
    content: '–';
    color: #ef5350;
    font-family: var(--font-mono);
    font-weight: 700;
    margin-right: 10px;
}

.truth-item {
    padding: 7px 0;
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.45;
}

/* ============================================
   NEIGHBORHOODS
   ============================================ */
.hood-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.hood-col-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hood-card {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

.hood-card:last-child { border-bottom: none; }

.hood-name {
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 3px;
    color: var(--text);
}

.hood-vibe {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 4px;
    line-height: 1.45;
}

.hood-price {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ============================================
   STARTUP
   ============================================ */
.startup-compare {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: start;
}

.startup-col {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 36px;
}

.startup-city {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.startup-big-num {
    font-family: var(--font-mono);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 600;
    color: var(--text);
    line-height: 1;
    margin-bottom: 6px;
}

.startup-big-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.startup-facts {
    list-style: none;
}

.startup-facts li {
    padding: 6px 0;
    font-size: 0.82rem;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border-light);
    line-height: 1.45;
}

.startup-facts li:last-child { border-bottom: none; }

.startup-vs {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.5rem;
    color: var(--text-muted);
    padding-top: 60px;
}

/* ============================================
   FINAL VERDICT
   ============================================ */
.final-section {
    padding: 100px 0 80px;
}

.final-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
}

.final-top {
    text-align: center;
    padding: 60px 48px 40px;
    background:
        radial-gradient(ellipse at center, var(--zurich-glow-strong) 0%, transparent 60%),
        var(--bg-card);
}

.final-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.final-headline {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--zurich);
    margin-bottom: 8px;
}

.final-subhead {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--text-dim);
}

.final-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 40px 48px;
    border-top: 1px solid var(--border-light);
}

.final-column h4 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.final-column p {
    font-size: 0.88rem;
    color: var(--text-dim);
    line-height: 1.65;
}

.final-kicker {
    text-align: center;
    padding: 32px 48px 48px;
    border-top: 1px solid var(--border-light);
}

.final-kicker p {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--text);
    line-height: 1.7;
    font-style: italic;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 40px 0 60px;
    border-top: 1px solid var(--border-light);
}

.footer p {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.6;
    margin-bottom: 6px;
}

.footer-credit {
    font-family: var(--font-display);
    font-style: italic;
}

/* ============================================
   SCORECARD INTERACTIVITY
   ============================================ */
.scorecard-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-style: italic;
}

.score-card[data-key] {
    cursor: pointer;
    position: relative;
}

.score-card-expand {
    position: absolute;
    top: 12px;
    right: 14px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-muted);
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border);
    transition: all 0.25s ease;
    line-height: 1;
}

.score-card[data-key]:hover .score-card-expand {
    color: var(--text);
    border-color: var(--text-dim);
}

.zurich-win:hover .score-card-expand {
    border-color: var(--zurich);
    color: var(--zurich);
}

.sf-win:hover .score-card-expand {
    border-color: var(--sf);
    color: var(--sf);
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    pointer-events: none;
    transition: background 0.35s ease, backdrop-filter 0.35s ease;
}

.modal-overlay.modal-open {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: all;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    max-width: 680px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 0;
    position: relative;
    opacity: 0;
    transform: translateY(20px) scale(0.97);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.modal-open .modal {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 1.3rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 1;
    line-height: 1;
}

.modal-close:hover {
    background: var(--bg-hover);
    color: var(--text);
    border-color: var(--text-dim);
}

.modal-header {
    padding: 36px 36px 24px;
    border-bottom: 1px solid var(--border-light);
}

.modal-winner {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.modal-winner-zurich {
    color: var(--zurich);
    background: var(--zurich-glow);
}

.modal-winner-sf {
    color: var(--sf);
    background: var(--sf-glow);
}

.modal-winner-tie {
    color: var(--text-dim);
    background: var(--bg-elevated);
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
}

.modal-body {
    padding: 28px 36px 36px;
}

/* Modal stats row */
.modal-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}

.modal-stat {
    text-align: center;
    padding: 14px 10px;
    background: var(--bg-elevated);
    border-radius: 8px;
}

.modal-stat-val {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 4px;
}

.modal-stat-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    line-height: 1.3;
}

/* Modal sections */
.modal-section {
    margin-bottom: 22px;
}

.modal-section h4 {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text);
    margin-bottom: 8px;
}

.modal-section p {
    font-size: 0.88rem;
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 8px;
}

.modal-section em {
    color: var(--text);
    font-style: italic;
}

.modal-section strong {
    color: var(--text);
}

.modal-verdict {
    margin-top: 24px;
    padding: 18px 20px;
    background: var(--bg-elevated);
    border-left: 3px solid var(--text-dim);
    border-radius: 0 8px 8px 0;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text);
    line-height: 1.65;
}

/* Modal scrollbar */
.modal::-webkit-scrollbar {
    width: 6px;
}

.modal::-webkit-scrollbar-track {
    background: transparent;
}

.modal::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.modal::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-score-strip {
        gap: 24px;
    }

    .hero-score-num {
        font-size: 2.2rem;
    }

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

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

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

    .salary-amount, .salary-pct {
        font-size: 1.4rem;
    }

    .housing-stats {
        grid-template-columns: 1fr;
    }

    .nature-split,
    .weather-grid,
    .weather-numbers,
    .truths-grid,
    .hood-columns,
    .final-body {
        grid-template-columns: 1fr;
    }

    .startup-compare {
        grid-template-columns: 1fr;
    }

    .startup-vs {
        text-align: center;
        padding-top: 0;
    }

    .verdict-card {
        padding: 40px 24px;
    }

    .final-top,
    .final-body,
    .final-kicker {
        padding-left: 24px;
        padding-right: 24px;
    }

    .section {
        padding: 60px 0;
    }

    .mercer-bar {
        flex-direction: column;
        gap: 12px;
    }

    .bar-value-outside {
        right: -50px;
        font-size: 0.65rem;
    }

    .modal {
        max-height: 90vh;
        border-radius: 12px;
    }

    .modal-header {
        padding: 28px 24px 20px;
    }

    .modal-body {
        padding: 20px 24px 28px;
    }

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

    .modal-stat-val {
        font-size: 1.1rem;
    }

    .modal-overlay {
        padding: 12px;
    }
}

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

    .nature-stats-row {
        flex-direction: column;
        gap: 10px;
    }

    .weather-duo {
        grid-template-columns: 1fr;
    }

    .salary-duo {
        flex-direction: column;
        gap: 12px;
    }

    .salary-divider {
        font-size: 0.75rem;
    }
}
