@charset "UTF-8";
/* ═══════════════════════════════════════════════════════════════
   FROM PODIUM TO EQUILIBRIUM — Cecilia Cuellar
   Cinematic, story-driven design
   ═══════════════════════════════════════════════════════════════ */

/* ── RESET & VARIABLES ──────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Core palette */
    --bg-deep:       #06080d;
    --bg-surface:    #0c1017;
    --bg-card:       #111820;
    --bg-elevated:   #171f2a;
    --border:        rgba(212, 168, 67, 0.12);
    --border-subtle: rgba(255, 255, 255, 0.06);

    /* Text */
    --text-primary:   #e8e6e1;
    --text-secondary: #9ca3af;
    --text-muted:     #5c6370;
    --text-inverse:   #06080d;

    /* Accent — warm gold (medals, Mexico, competition/triumph) */
    --gold:          #d4a843;
    --gold-light:    #e8c96a;
    --gold-dim:      rgba(212, 168, 67, 0.15);
    --gold-glow:     rgba(212, 168, 67, 0.25);

    /* Accent 2 — subtle teal (cooperation, growth, equilibrium) */
    --teal:          #4db8a4;
    --teal-dim:      rgba(77, 184, 164, 0.12);

    /* Typography */
    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

    /* Spacing */
    --section-pad: clamp(100px, 14vh, 180px);
    --container-max: 1280px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

::selection {
    background: var(--gold);
    color: var(--text-inverse);
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease;
}
a:hover { color: var(--gold-light); }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 40px);
}

.gold { color: var(--gold); }

/* ── PHOTO PLACEHOLDERS ─────────────────────────────────────── */
.photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--bg-card);
    border: 2px dashed var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    min-height: 200px;
}
.photo-placeholder i { font-size: 1.5rem; color: var(--gold-dim); }
.photo-placeholder.large { min-height: 300px; }

/* ── NAVIGATION ──────────────────────────────────────────────── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px clamp(20px, 5vw, 40px);
    transition: background 0.4s ease, padding 0.4s ease,
                backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled {
    background: rgba(6, 8, 13, 0.85);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    padding: 14px clamp(20px, 5vw, 40px);
    box-shadow: 0 1px 0 var(--border-subtle);
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.7rem;
    color: var(--text-primary) !important;
    letter-spacing: 0.02em;
    transition: transform 0.3s var(--ease-spring);
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
}
.nav-logo:hover { transform: scale(1.03); }

.logo-cc {
    color: var(--gold);
    font-weight: 700;
}

.logo-expand {
    display: inline-block;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-width 0.5s var(--ease-out), opacity 0.4s ease;
    vertical-align: bottom;
    color: var(--text-primary);
    font-weight: 400;
}

.nav-logo:hover .logo-expand,
.nav-logo.expanded .logo-expand {
    max-width: 200px;
    opacity: 1;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s var(--ease-out);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

#gameTheoryCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
}

.hero-grain {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 40px);
    padding-top: 100px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: clamp(36px, 5vw, 72px);
    width: 100%;
}

.hero-overline {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 28px;
    opacity: 0;
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 4.8rem);
    font-weight: 400;
    line-height: 1.12;
    color: var(--text-primary);
    margin-bottom: 24px;
    opacity: 0;
}

.hero-subhead {
    font-family: var(--font-body);
    font-size: clamp(1.15rem, 2.2vw, 1.5rem);
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-secondary);
    opacity: 0;
}
.hero-subhead em {
    font-style: italic;
    color: var(--gold-light);
}

/* Hero photo */
.hero-image-wrapper {
    position: relative;
    opacity: 0;
}

.hero-photo {
    width: 100%;
    max-width: 380px;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}
.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-photo-accent {
    position: absolute;
    top: 20px;
    left: 20px;
    right: -10px;
    bottom: -10px;
    border: 1px solid var(--gold);
    border-radius: 12px;
    opacity: 0.25;
    z-index: 0;
}

/* Name block under headshot */
.hero-name-block {
    text-align: center;
    margin-top: 16px;
    position: relative;
    z-index: 1;
}

.hero-name {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: 0.02em;
}

.hero-degree {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    color: var(--gold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 4px;
}

/* Hero scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    z-index: 1;
}

.hero-scroll span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
    50%      { opacity: 1;   transform: scaleY(1); }
}

/* Hero social */
.hero-social {
    position: fixed;
    left: clamp(16px, 3vw, 32px);
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    z-index: 100;
}

.hero-social::after {
    content: '';
    width: 1px;
    height: 80px;
    background: var(--text-muted);
    opacity: 0.3;
}

.hero-social a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color 0.3s ease, transform 0.3s var(--ease-spring);
}
.hero-social a:hover {
    color: var(--gold);
    transform: translateY(-2px);
}

/* ── STORY SECTION ───────────────────────────────────────────── */
.story {
    padding: var(--section-pad) 0;
}

.story-label {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 72px;
}

.section-num {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--gold);
    letter-spacing: 0.1em;
}

.section-name {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.section-name::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 1px;
    background: var(--text-muted);
    vertical-align: middle;
    margin-right: 16px;
    opacity: 0.5;
}

/* Story acts — alternating layout */
.story-act {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: clamp(36px, 5vw, 72px);
    align-items: center;
    margin-bottom: 120px;
}
.story-act:last-child { margin-bottom: 0; }

.story-act.reverse {
    grid-template-columns: 1.2fr 1fr;
}
.story-act.reverse .story-visual { order: 2; }
.story-act.reverse .story-text   { order: 1; }

.visual-frame {
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.visual-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}
.visual-frame:hover img {
    transform: scale(1.03);
}

.visual-caption {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    margin-top: 12px;
    text-transform: uppercase;
}

.story-heading {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    color: var(--text-primary);
    margin-bottom: 20px;
}

.story-body {
    font-size: 1.12rem;
    color: var(--text-secondary);
    margin-bottom: 18px;
    line-height: 1.8;
}
.story-body:last-child { margin-bottom: 0; }

.story-body strong {
    color: var(--text-primary);
    font-weight: 600;
}

.story-body.quiet {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.95rem;
    border-left: 2px solid var(--gold-dim);
    padding-left: 16px;
    margin-top: 20px;
}

/* ── PHILOSOPHY ──────────────────────────────────────────────── */
.philosophy {
    padding: var(--section-pad) 0;
    background: var(--bg-surface);
    position: relative;
}

.philosophy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border), transparent);
}

.philosophy-content {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 72px;
    align-items: start;
}

.matrix-wrapper {
    position: sticky;
    top: 120px;
}

.payoff-matrix {
    width: 100%;
    max-width: 370px;
    border-collapse: collapse;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    margin: 0 auto;
}

.payoff-matrix th {
    padding: 12px 16px;
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
}

.payoff-matrix .row-label {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: right;
    padding-right: 16px;
}

.payoff-matrix .cell {
    text-align: center;
    padding: 24px 16px;
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    transition: background 0.5s ease, border-color 0.5s ease,
                box-shadow 0.5s ease, transform 0.5s ease;
}

.payoff-matrix .cooperate-both {
    background: var(--gold-dim);
    border-color: var(--gold);
    box-shadow: 0 0 20px var(--gold-dim);
}

.payoff-matrix .defect-both {
    background: rgba(255,255,255,0.02);
}

.payoff {
    font-size: 1.1rem;
    font-weight: 600;
}
.payoff.dim { opacity: 0.4; }

.matrix-caption {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 16px;
}

.philosophy-quote {
    border: none;
    padding: 0;
    margin: 0 0 28px 0;
}

.philosophy-quote p {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.8vw, 1.85rem);
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 16px;
}
.philosophy-quote p:last-child { margin-bottom: 0; }

.philosophy-body {
    font-size: 1.12rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ── CREDENTIALS ─────────────────────────────────────────────── */
.credentials {
    padding: var(--section-pad) 0;
}

.cred-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.cred-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 36px 32px;
    transition: border-color 0.3s ease, transform 0.3s var(--ease-spring),
                box-shadow 0.3s ease;
}
.cred-card:hover {
    border-color: var(--border);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.cred-icon {
    font-size: 1.7rem;
    color: var(--gold);
    margin-bottom: 18px;
}

.cred-card h4 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.cred-card ul {
    list-style: none;
}
.cred-card li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    padding: 6px 0;
    border-bottom: 1px solid var(--border-subtle);
}
.cred-card li:last-child { border-bottom: none; }
.cred-card li strong { color: var(--text-primary); font-weight: 600; }
.cred-card li em { color: var(--gold); font-style: italic; }

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 6px 14px;
    border-radius: 100px;
    background: var(--gold-dim);
    color: var(--gold);
    letter-spacing: 0.03em;
    border: 1px solid rgba(212, 168, 67, 0.2);
    transition: background 0.3s ease, color 0.3s ease;
}
.tag:hover {
    background: var(--gold);
    color: var(--text-inverse);
}

/* ── RESEARCH ────────────────────────────────────────────────── */
.research {
    padding: var(--section-pad) 0;
    background: var(--bg-surface);
    position: relative;
}

.research::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border), transparent);
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
}

.filter-btn {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 10px 22px;
    border-radius: 100px;
    border: 1px solid var(--border-subtle);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}
.filter-btn:hover {
    border-color: var(--text-muted);
    color: var(--text-secondary);
}
.filter-btn.active {
    border-color: var(--gold);
    background: var(--gold-dim);
    color: var(--gold);
}

.research-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.research-item {
    background: var(--bg-card);
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 28px 32px;
    transition: border-color 0.3s ease, background 0.3s ease,
                transform 0.3s var(--ease-out), opacity 0.4s ease,
                max-height 0.4s ease;
    overflow: hidden;
    position: relative;
}
.research-item:hover {
    border-color: var(--border);
    background: var(--bg-elevated);
}

/* ── Translate floating button ── */
.translate-wrapper {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9999;
}

.translate-fab {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 1.15rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
    backdrop-filter: blur(8px);
}
.translate-fab:hover {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
}

.translate-dropdown {
    display: none;
    position: absolute;
    bottom: 56px;
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 0;
    min-width: 170px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.translate-dropdown.open {
    display: flex;
    flex-direction: column;
}
.translate-dropdown-title {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 4px 18px 8px;
}
.translate-lang {
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--text-secondary);
    padding: 8px 18px;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.translate-lang:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}
.translate-lang--reset {
    color: var(--gold);
}
.translate-lang--reset:hover {
    color: var(--gold-light);
}
.translate-divider {
    border: none;
    border-top: 1px solid var(--border-subtle);
    margin: 4px 14px;
}

/* Hide Google Translate UI — we use our own buttons */
.goog-te-gadget { display: none !important; }
/* Hide Google Translate branding bar that pushes body down */
.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame {
    display: none !important;
}
body { top: 0 !important; }
.skiptranslate { display: none !important; }
body { top: 0 !important; }

/* ── Featured research card ── */
.research-item.featured {
    border: 1px solid var(--gold);
    background: linear-gradient(135deg, rgba(212,168,67,0.06) 0%, var(--bg-card) 60%);
    padding-top: 40px;
}
.research-item.featured:hover {
    border-color: var(--gold-light);
    background: linear-gradient(135deg, rgba(212,168,67,0.10) 0%, var(--bg-elevated) 60%);
}
.featured-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--gold);
    color: #000;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 8px 0 8px 0;
}

.research-item.hidden {
    display: none;
}

.ri-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.ri-tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 500;
}
.ri-tag.journal  { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.ri-tag.book     { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.ri-tag.working  { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.ri-tag.progress { background: var(--teal-dim); color: var(--teal); }
.ri-tag.policy   { background: rgba(244, 114, 182, 0.15); color: #f472b6; }
.ri-tag.media    { background: rgba(251, 146, 60, 0.15); color: #fb923c; }

.ri-year {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
}

.ri-title {
    font-family: var(--font-body);
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 6px;
}

.ri-authors {
    font-size: 0.92rem;
    color: var(--text-muted);
}

.ri-venue {
    font-size: 0.92rem;
    color: var(--text-secondary);
}
.ri-venue em { font-style: italic; }

.ri-links {
    margin-top: 10px;
    display: flex;
    gap: 16px;
}

.ri-links a {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gold);
    transition: color 0.3s ease;
}
.ri-links a:hover { color: var(--gold-light); }

/* Research Show More / Show Less */
.show-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 24px;
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gold);
    background: transparent;
    border: 1px dashed var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.show-more-btn:hover {
    background: var(--gold-dim);
    border-color: var(--gold);
    color: var(--gold-light);
}

.show-more-btn i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

/* ── TEAM ────────────────────────────────────────────────────── */
.team {
    padding: var(--section-pad) 0;
    text-align: center;
}

.team-headline {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    color: var(--text-primary);
    margin-bottom: 24px;
}

.team-body {
    font-size: 1.18rem;
    color: var(--text-secondary);
    max-width: 750px;
    margin: 0 auto 16px;
    line-height: 1.8;
}
.team-body.quiet {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.team-photo-wrapper {
    margin: 48px 0;
}

.team-photo-frame {
    max-width: 780px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    border: 1px solid var(--border);
}
.team-photo-frame img {
    width: 100%;
    height: auto;
}

.team-caption {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 12px;
}

.team-names {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 48px;
}

.fellow-name {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--text-primary);
}

.fellow-dot {
    color: var(--gold);
    font-size: 1rem;
}

.team-quote {
    max-width: 720px;
    margin: 0 auto;
    border: none;
    padding: 40px;
    background: var(--bg-card);
    border-radius: 12px;
    border-left: 3px solid var(--gold);
}

.team-quote p {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.2vw, 1.5rem);
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ── CV TIMELINE ─────────────────────────────────────────────── */
.cv-section {
    padding: var(--section-pad) 0;
    background: var(--bg-surface);
    position: relative;
}

.cv-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border), transparent);
}

.timeline {
    position: relative;
    padding-left: 44px;
    max-width: 720px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--gold), var(--border-subtle));
}

.tl-item {
    position: relative;
    margin-bottom: 40px;
}
.tl-item:last-child { margin-bottom: 0; }

.tl-dot {
    position: absolute;
    left: -40px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-deep);
    border: 2px solid var(--gold);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.tl-item:hover .tl-dot {
    background: var(--gold);
    box-shadow: 0 0 12px var(--gold-glow);
}

.tl-year {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--gold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tl-content h4 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--text-primary);
    margin: 4px 0;
}
.tl-content h4 em { color: var(--gold); font-style: italic; }

.tl-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ── CONTACT ─────────────────────────────────────────────────── */
.contact {
    padding: var(--section-pad) 0;
    text-align: center;
}

.contact-headline {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5.5vw, 3.8rem);
    color: var(--text-primary);
    margin-bottom: 16px;
}

.contact-body {
    font-size: 1.12rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto 40px;
}

.contact-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-secondary) !important;
    font-size: 0.95rem;
    transition: border-color 0.3s ease, background 0.3s ease,
                color 0.3s ease, transform 0.3s var(--ease-spring);
}
.contact-link i { color: var(--gold); font-size: 1rem; }

.contact-link:hover {
    border-color: var(--gold);
    background: var(--gold-dim);
    color: var(--text-primary) !important;
    transform: translateY(-2px);
}

/* ── CONTACT BOOKING CTA ────────────────────────────────────── */
.contact-booking {
    margin-bottom: 36px;
}

.booking-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-inverse) !important;
    background: var(--gold);
    border-radius: 100px;
    transition: background 0.3s ease, transform 0.3s var(--ease-spring),
                box-shadow 0.3s ease;
}

.booking-btn:hover {
    background: var(--gold-light);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(212, 168, 67, 0.3);
    color: var(--text-inverse) !important;
}

.booking-btn i {
    font-size: 1rem;
}

/* ── IMPACT STATS BAR ────────────────────────────────────────── */
.impact-stats {
    padding: 48px 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 24px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--gold);
    line-height: 1.1;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ── FEATURED IN — CREDIBILITY BAR ──────────────────────────── */
.featured-in {
    padding: 48px 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.featured-label {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.featured-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 32px;
}

.featured-logo-text {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    padding: 8px 20px;
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    transition: color 0.3s ease, border-color 0.3s ease;
    white-space: nowrap;
}

.featured-logo-text:hover {
    color: var(--gold);
    border-color: var(--border);
}

/* ── METHODS & TOOLS ────────────────────────────────────────── */
.methods {
    padding: var(--section-pad) 0;
}

.methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.method-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 28px 24px;
    transition: border-color 0.3s ease, transform 0.3s var(--ease-spring);
}

.method-card:hover {
    border-color: var(--border);
    transform: translateY(-3px);
}

.method-icon {
    color: var(--gold);
    font-size: 1.3rem;
    margin-bottom: 14px;
}

.method-card h4 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.method-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── NEWSLETTER / DECODE ECON ───────────────────────────────── */
.newsletter-section {
    padding: var(--section-pad) 0;
    background: var(--bg-surface);
    position: relative;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border), transparent);
}

.newsletter-card {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: clamp(28px, 4vw, 48px);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: clamp(28px, 4vw, 48px);
    align-items: center;
}

.newsletter-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

.newsletter-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    color: var(--text-primary);
    margin-bottom: 16px;
}

.newsletter-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.newsletter-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: var(--gold) !important;
    padding: 12px 28px;
    border: 1px solid var(--gold);
    border-radius: 100px;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s var(--ease-spring);
}

.newsletter-cta:hover {
    background: var(--gold);
    color: var(--text-inverse) !important;
    transform: translateY(-2px);
}

.newsletter-preview {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.newsletter-article {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 24px;
    transition: border-color 0.3s ease;
}

.newsletter-article:hover {
    border-color: var(--border);
}

.newsletter-article-tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--teal);
    display: block;
    margin-bottom: 8px;
}

.newsletter-article h4 {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 10px;
}

.newsletter-article a {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--gold);
    letter-spacing: 0.04em;
}

/* ── DECODE ECON AFFILIATION BAR ─────────────────────────────── */
.decode-econ-affiliation {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 32px;
    padding: 24px 32px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    transition: border-color 0.3s ease;
}

.decode-econ-affiliation:hover {
    border-color: var(--border);
}

.affiliation-badge {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--gold);
    background: var(--gold-dim);
    border-radius: 10px;
}

.affiliation-text p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

.affiliation-text a {
    color: var(--gold);
}

.affiliation-text a:hover {
    color: var(--gold-light);
}

.affiliation-link {
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: var(--text-muted) !important;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.affiliation-link:hover {
    color: var(--gold) !important;
}

.affiliation-link i {
    margin-left: 6px;
    font-size: 0.65rem;
}

/* ── SUBSCRIBE CTA BUTTON ───────────────────────────────────── */
.newsletter-subscribe-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-inverse) !important;
    background: var(--gold);
    border-radius: 100px;
    transition: background 0.3s ease, transform 0.3s var(--ease-spring),
                box-shadow 0.3s ease;
    margin-bottom: 12px;
}

.newsletter-subscribe-btn:hover {
    background: var(--gold-light);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(212, 168, 67, 0.3);
    color: var(--text-inverse) !important;
}

.newsletter-subscribe-btn i {
    font-size: 0.9rem;
}

/* ── ADVISORY / CONSULTING ──────────────────────────────────── */
.advisory {
    padding: var(--section-pad) 0;
}

.advisory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.advisory-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 36px 28px;
    text-align: center;
    transition: border-color 0.3s ease, transform 0.3s var(--ease-spring),
                box-shadow 0.3s ease;
}

.advisory-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.advisory-icon {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.advisory-card h4 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.advisory-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ── CV DOWNLOAD BUTTON ──────────────────────────────────────── */
.cv-download {
    margin-bottom: 48px;
}

.cv-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gold) !important;
    background: transparent;
    border: 2px solid var(--gold);
    border-radius: 100px;
    transition: background 0.3s ease, color 0.3s ease,
                transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
}

.cv-download-btn:hover {
    background: var(--gold);
    color: var(--text-inverse) !important;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(212, 168, 67, 0.25);
}

.cv-download-btn i {
    font-size: 1.1rem;
}

/* ── TESTIMONIALS ────────────────────────────────────────────── */
.testimonials {
    padding: var(--section-pad) 0;
    background: var(--bg-surface);
    position: relative;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border), transparent);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    transition: border-color 0.3s ease, transform 0.3s var(--ease-spring),
                box-shadow 0.3s ease;
}

.testimonial-card:hover {
    border-color: var(--border);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.testimonial-icon {
    color: var(--gold);
    font-size: 1.2rem;
    opacity: 0.5;
    margin-bottom: 12px;
    display: block;
}

.testimonial-quote p {
    font-family: var(--font-body);
    font-size: 1rem;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.75;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
}

.testimonial-name {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.testimonial-role {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

/* ── OWN NEWSLETTER — EMAIL CAPTURE ──────────────────────────── */
.own-newsletter {
    padding: var(--section-pad) 0;
    position: relative;
}

.own-newsletter-card {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 56px 48px;
    position: relative;
    overflow: hidden;
}

.own-newsletter-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, var(--gold-dim) 0%, transparent 60%);
    pointer-events: none;
}

.own-newsletter-content {
    position: relative;
    z-index: 1;
}

.own-newsletter-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 16px;
}

.own-newsletter-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    color: var(--text-primary);
    margin-bottom: 14px;
}

.own-newsletter-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 520px;
    margin: 0 auto 32px;
}

.newsletter-form {
    width: 100%;
}

.newsletter-input-group {
    display: flex;
    gap: 0;
    max-width: 480px;
    margin: 0 auto 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.newsletter-input-group:focus-within {
    border-color: var(--gold);
}

.newsletter-input-group input {
    flex: 1;
    padding: 16px 24px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    background: transparent;
    border: none;
    outline: none;
}

.newsletter-input-group input::placeholder {
    color: var(--text-muted);
}

.newsletter-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 28px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--gold);
    color: var(--text-inverse);
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.newsletter-submit-btn:hover {
    background: var(--gold-light);
}

.newsletter-submit-btn i {
    font-size: 0.85rem;
}

.newsletter-privacy {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.newsletter-success {
    color: var(--teal);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    margin-top: 8px;
}

/* ── FOOTER ──────────────────────────────────────────────────── */
.footer {
    padding: 28px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-subtle);
}

/* ── ANIMATIONS ──────────────────────────────────────────────── */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
[data-animate="fade-right"] { transform: translateX(-30px); }
[data-animate="fade-left"]  { transform: translateX(30px); }

[data-animate].visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Matrix cell animation */
.payoff-matrix .cell.pulse {
    animation: cellPulse 0.6s ease;
}

@keyframes cellPulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */

/* --- Safe-area insets for notched phones (iPhone X+) --- */
@supports (padding: env(safe-area-inset-top)) {
    .nav {
        padding-left: max(clamp(20px, 5vw, 40px), env(safe-area-inset-left));
        padding-right: max(clamp(20px, 5vw, 40px), env(safe-area-inset-right));
    }
    .footer {
        padding-bottom: max(28px, env(safe-area-inset-bottom));
    }
    .hero-social {
        left: max(clamp(16px, 3vw, 32px), env(safe-area-inset-left));
    }
}

/* Ensure minimum touch targets (44×44px) everywhere */
.nav-links a,
.filter-btn,
.contact-link,
.ri-links a,
.hero-social a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

/* ── SMALL DESKTOP / LARGE TABLET (≤ 1400px) ─────────────────── */
@media (max-width: 1400px) {
    .hero-photo {
        max-width: 340px;
    }

    .newsletter-card {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .story-act,
    .story-act.reverse {
        gap: clamp(28px, 4vw, 48px);
    }

    .philosophy-content {
        gap: clamp(28px, 4vw, 48px);
    }
}

/* ── TABLET (≤ 900px) ──────────────────────────────────────── */
@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-image-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-photo { max-width: 260px; }
    .hero-photo-accent { display: none; }

    .story-act,
    .story-act.reverse {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .story-act.reverse .story-visual { order: 0; }
    .story-act.reverse .story-text   { order: 0; }
    .story-act { margin-bottom: 72px; }

    .philosophy-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .matrix-wrapper {
        position: static;
        display: flex;
        justify-content: center;
    }

    .newsletter-card {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }

    .own-newsletter-card {
        padding: 40px 28px;
    }

    .hero-social { display: none; }

    .team-photo-frame {
        max-width: 100%;
    }

    .team-quote {
        padding: 28px 24px;
    }
}

/* ── TABLET PORTRAIT & LARGE PHONES (≤ 768px) ─────────────── */
@media (max-width: 768px) {
    /* Hamburger menu activates for tablets too */
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        max-width: 80vw;
        height: 100vh;
        height: 100dvh; /* dynamic viewport height for mobile browsers */
        background: var(--bg-card);
        flex-direction: column;
        padding: 80px 32px 32px;
        gap: 24px;
        transform: translateX(100%);
        transition: transform 0.4s var(--ease-out);
        box-shadow: -8px 0 30px rgba(0,0,0,0.3);
        z-index: 1001;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .nav-toggle { display: flex; }

    .nav-toggle.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Nav link touch targets */
    .nav-links a {
        font-size: 1rem;
        padding: 10px 0;
    }

    .hero-content {
        padding-top: 80px;
    }

    .hero-headline {
        font-size: clamp(2rem, 5.5vw, 3rem);
    }

    .hero-subhead {
        font-size: clamp(1rem, 2vw, 1.3rem);
    }

    /* Filter bar: horizontal scroll if too many items */
    .filter-bar {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 8px;
        gap: 6px;
    }
    .filter-bar::-webkit-scrollbar { display: none; }
    .filter-btn {
        flex-shrink: 0;
        padding: 10px 16px;
        font-size: 0.72rem;
    }

    /* Research items — less padding */
    .research-item {
        padding: 20px 18px;
    }
    .ri-title {
        font-size: 1rem;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
    }
    .contact-link {
        width: 100%;
        max-width: 360px;
        justify-content: center;
    }

    .methods-grid {
        grid-template-columns: 1fr;
    }

    .featured-logos {
        gap: 16px;
    }

    .featured-logo-text {
        font-size: 0.72rem;
        padding: 6px 14px;
    }

    .newsletter-card {
        padding: 28px 20px;
    }

    .decode-econ-affiliation {
        flex-direction: column;
        text-align: center;
        gap: 14px;
        padding: 20px;
    }

    .booking-btn {
        padding: 14px 28px;
        font-size: 0.82rem;
    }

    .cv-download-btn {
        padding: 14px 28px;
        font-size: 0.78rem;
    }

    .newsletter-input-group {
        flex-direction: column;
        border-radius: 14px;
    }

    .newsletter-input-group input {
        text-align: center;
        padding: 14px 20px;
    }

    .newsletter-submit-btn {
        justify-content: center;
        padding: 14px 24px;
        border-radius: 0 0 14px 14px;
    }

    /* Timeline — tighter spacing */
    .timeline {
        padding-left: 36px;
    }
    .tl-dot {
        left: -33px;
    }
    .tl-content h4 {
        font-size: 1.15rem;
    }

    /* Section padding reduction */
    :root {
        --section-pad: clamp(64px, 10vh, 120px);
    }
}

/* ── SMALL PHONES (≤ 480px) ────────────────────────────────── */
@media (max-width: 480px) {
    html {
        font-size: 15px;
    }

    .hero-content {
        padding-top: 72px;
        gap: 28px;
    }

    .hero-overline {
        font-size: 0.72rem;
        letter-spacing: 0.1em;
        margin-bottom: 18px;
    }

    .hero-headline {
        font-size: 1.9rem;
    }

    .hero-photo {
        max-width: 220px;
    }

    .hero-name {
        font-size: 1.35rem;
    }

    .hero-scroll {
        bottom: 24px;
    }

    .story-label {
        margin-bottom: 40px;
    }
    .story-act {
        margin-bottom: 56px;
    }
    .story-heading {
        font-size: 1.6rem;
    }
    .story-body {
        font-size: 1rem;
    }

    .philosophy-quote p {
        font-size: 1.15rem;
    }
    .philosophy-body {
        font-size: 1rem;
    }

    .cred-card {
        padding: 24px 20px;
    }
    .cred-card h4 {
        font-size: 1.2rem;
    }

    .research-item {
        padding: 16px 14px;
    }

    .team-headline {
        font-size: 1.8rem;
    }
    .team-body {
        font-size: 1rem;
    }
    .team-quote {
        padding: 24px 18px;
    }
    .team-quote p {
        font-size: 1.1rem;
    }

    .contact-headline {
        font-size: 2rem;
    }
    .contact-body {
        font-size: 1rem;
    }
    .contact-link {
        padding: 14px 20px;
        font-size: 0.88rem;
    }

    .footer {
        font-size: 0.78rem;
        padding: 20px 16px;
    }
}

/* ── VERY SMALL PHONES (≤ 360px) ───────────────────────────── */
@media (max-width: 360px) {
    html {
        font-size: 14px;
    }

    .nav-logo {
        font-size: 1.4rem;
    }
    .logo-expand {
        display: none;
    }

    .hero-headline {
        font-size: 1.7rem;
    }

    .hero-photo {
        max-width: 180px;
    }

    .nav-links {
        width: 100vw;
        max-width: 100vw;
    }

    .payoff-matrix {
        font-size: 0.78rem;
    }
    .payoff-matrix .cell {
        padding: 16px 10px;
    }
    .payoff {
        font-size: 0.95rem;
    }
}

/* ── LANDSCAPE PHONES ──────────────────────────────────────── */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 80px 0 40px;
    }
    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    .hero-photo {
        max-width: 180px;
    }
    .hero-scroll {
        display: none;
    }
}

/* ── PRINT / REDUCED MOTION ────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    [data-animate] {
        opacity: 1 !important;
        transform: none !important;
    }
    .scroll-line {
        animation: none;
        opacity: 0.5;
    }
}

/* ── HIGH-DPI / RETINA IMAGES ──────────────────────────────── */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .visual-frame img,
    .hero-photo img,
    .team-photo-frame img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* ── HOVER ONLY FOR DEVICES THAT SUPPORT IT ────────────────── */
@media (hover: none) {
    .visual-frame:hover img {
        transform: none;
    }
    .cred-card:hover {
        transform: none;
        box-shadow: none;
    }
    .contact-link:hover {
        transform: none;
    }
    .hero-social a:hover {
        transform: none;
    }
    .tag:hover {
        background: var(--gold-dim);
        color: var(--gold);
    }
}
