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

:root {
    --bg:           #F8F9FB;
    --bg-white:     #FFFFFF;
    --bg-soft:      #F1F3F7;
    --navy:         #1A2E45;
    --navy-mid:     #243B55;
    --navy-deep:    #0F1E30;
    --blue:         #3B82F6;
    --blue-dim:     #2563EB;
    --blue-soft:    rgba(59,130,246,0.08);
    --blue-line:    rgba(59,130,246,0.15);
    --text:         #0F1923;
    --text-mid:     #3D4E60;
    --text-soft:    #7A8FA3;
    --line:         rgba(15,25,35,0.08);
    --glass-bg:     rgba(255,255,255,0.72);
    --glass-border: rgba(255,255,255,0.6);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Grain overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 8000;
    pointer-events: none;
    opacity: 0.022;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

/* ── TYPOGRAPHY ───────────────────────────────────────── */
.cormorant {
    font-family: 'Cormorant Garamond', serif;
}

.mono {
    font-family: 'DM Mono', monospace;
}

/* ── NAV ──────────────────────────────────────────────── */
.nav-wrap {
    position: fixed;
    top: 0;
    left: 0; right: 0;
    z-index: 500;
    display: flex;
    justify-content: center;
    padding: 0;
    transition: padding 0.4s cubic-bezier(0.16,1,0.3,1),
                top 0.4s cubic-bezier(0.16,1,0.3,1);
}

.nav-wrap.scrolled {
    top: 16px;
    padding: 0 52px;
}

nav {
    width: 100%;
    max-width: 100%;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 52px;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid transparent;
    border-radius: 0;
    box-shadow: none;
    transition:
        height 0.4s cubic-bezier(0.16,1,0.3,1),
        max-width 0.4s cubic-bezier(0.16,1,0.3,1),
        padding 0.4s cubic-bezier(0.16,1,0.3,1),
        background 0.4s ease,
        backdrop-filter 0.4s ease,
        border-color 0.4s ease,
        border-radius 0.4s cubic-bezier(0.16,1,0.3,1),
        box-shadow 0.4s ease;
}

nav.scrolled {
    max-width: 1160px;
    height: 52px;
    padding: 0 32px;
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border-color: rgba(255,255,255,0.55);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(15,25,35,0.06), 0 1px 4px rgba(15,25,35,0.04);
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}

.nav-logo img {
    height: 32px;
    width: auto;
    display: block;
    transition: height 0.4s cubic-bezier(0.16,1,0.3,1);
}

nav.scrolled .nav-logo img { height: 26px; }

.nav-logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--navy);
    text-decoration: none;
    transition: font-size 0.4s cubic-bezier(0.16,1,0.3,1),
                letter-spacing 0.4s cubic-bezier(0.16,1,0.3,1);
}

nav.scrolled .nav-logo-text {
    font-size: 19px;
    letter-spacing: 4px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 52px;
    transition: gap 0.4s cubic-bezier(0.16,1,0.3,1);
}

nav.scrolled .nav-links { gap: 40px; }

.nav-links a {
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s, font-size 0.4s, letter-spacing 0.4s;
    position: relative;
    padding-bottom: 3px;
}

nav.scrolled .nav-links a {
    font-size: 11px;
    letter-spacing: 1.8px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 1px;
    background: var(--navy);
    transition: width 0.3s cubic-bezier(0.16,1,0.3,1);
}

.nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--navy); }
.nav-links a.active::after { width: 100%; }

.nav-cta {
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--bg-white);
    background: var(--navy);
    padding: 10px 22px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s, padding 0.4s, font-size 0.4s;
}

nav.scrolled .nav-cta {
    font-size: 11px;
    letter-spacing: 1.8px;
    padding: 8px 18px;
}

.nav-cta:hover { background: var(--navy-mid); }

/* ── FOOTER ───────────────────────────────────────────── */
footer {
    background: var(--navy-deep);
    padding: 64px 52px 44px;
    border-top: 1px solid rgba(255,255,255,0.07);
}

.footer-inner {
    max-width: 1160px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 52px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 36px;
}

.footer-brand-col {}

.footer-brand {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.88);
    display: block;
    margin-bottom: 14px;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-brand:hover { color: rgba(255,255,255,1); }

.footer-tagline {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255,255,255,0.38);
    line-height: 1.7;
    max-width: 220px;
}

.footer-col-title {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    margin-bottom: 20px;
}

.footer-col-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col-links a {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col-links a:hover { color: rgba(255,255,255,0.85); }

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

.footer-copy {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.25);
}

.footer-legal {
    display: flex;
    gap: 28px;
}

.footer-legal a {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.25);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-legal a:hover { color: rgba(255,255,255,0.55); }

/* ── PAGE HERO ────────────────────────────────────────── */
.page-hero {
    padding: 180px 52px 100px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -100px; left: 50%;
    transform: translateX(-50%);
    width: 900px; height: 600px;
    background: radial-gradient(ellipse at 40% 40%, rgba(59,130,246,0.07) 0%, transparent 55%);
    pointer-events: none;
}

.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(26,46,69,0.05) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.page-hero-inner {
    max-width: 1160px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.page-eyebrow {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--blue-dim);
    margin-bottom: 20px;
}

.page-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(48px, 6vw, 88px);
    font-weight: 300;
    line-height: 1.0;
    letter-spacing: -2px;
    color: var(--navy);
    margin-bottom: 28px;
}

.page-title em {
    font-style: normal;
    color: var(--text-soft);
    font-weight: 300;
}

.page-sub {
    font-size: 17px;
    font-weight: 400;
    line-height: 1.8;
    color: var(--text-mid);
    max-width: 560px;
}

/* ── SECTIONS ─────────────────────────────────────────── */
.sec {
    padding: 112px 52px;
    position: relative;
}

.sec::after {
    content: '';
    position: absolute;
    bottom: 0; left: 52px; right: 52px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--line) 15%, var(--line) 85%, transparent 100%);
}

.sec:last-of-type::after { display: none; }

.sec-soft { background: var(--bg-soft); }

.sec-navy {
    background: var(--navy);
}
.sec-navy::after { display: none; }

.sec-inner { max-width: 1160px; margin: 0 auto; }

/* ── COMMON ELEMENTS ──────────────────────────────────── */
.eyebrow {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--blue-dim);
    margin-bottom: 16px;
}

.eyebrow-light { color: rgba(59,130,246,0.8); }

.sec-h {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(36px, 3.5vw, 52px);
    font-weight: 300;
    line-height: 1.08;
    letter-spacing: -0.5px;
    color: var(--navy);
    margin-bottom: 18px;
}

.sec-h em { font-style: normal; color: var(--text-soft); font-weight: 300; }
.sec-h-light { color: rgba(255,255,255,0.92); }
.sec-h-light em { font-style: normal; color: rgba(255,255,255,0.5); font-weight: 300; }
.sec-p { font-size: 15px; font-weight: 400; line-height: 1.85; color: var(--text-mid); }
.sec-p-light { color: rgba(255,255,255,0.5); }

/* ── BUTTONS ──────────────────────────────────────────── */
.btn-primary {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--bg-white);
    background: var(--navy);
    padding: 13px 32px;
    border-radius: 10px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 2px 12px rgba(26,46,69,0.2);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--navy-mid);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(26,46,69,0.25);
}

.btn-secondary {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-mid);
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    padding: 13px 28px;
    border-radius: 10px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    box-shadow: 0 2px 8px rgba(15,25,35,0.05);
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--bg-white);
    border-color: rgba(26,46,69,0.15);
    color: var(--navy);
}

/* ── GLASS CARD ───────────────────────────────────────── */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(15,25,35,0.06);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.glass-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(15,25,35,0.1);
    border-color: rgba(59,130,246,0.2);
}

/* ── FORM ─────────────────────────────────────────────── */
.glass-form {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 48px;
    box-shadow: 0 4px 32px rgba(15,25,35,0.07);
}

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

.fg { display: flex; flex-direction: column; gap: 6px; }
.fg.full { grid-column: 1/-1; }

.fg label {
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    font-weight: 300;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-soft);
}

.fg input, .fg select, .fg textarea {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: var(--navy);
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: 10px;
    padding: 11px 14px;
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    resize: none;
    -webkit-appearance: none;
    appearance: none;
}

.fg input::placeholder, .fg textarea::placeholder { color: var(--text-soft); }

.fg input:focus, .fg select:focus, .fg textarea:focus {
    border-color: rgba(59,130,246,0.4);
    background: rgba(255,255,255,0.85);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.08);
}

.form-submit {
    margin-top: 6px;
    width: 100%;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--bg-white);
    background: var(--navy);
    border: none;
    border-radius: 10px;
    padding: 14px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 2px 12px rgba(26,46,69,0.2);
}

.form-submit:hover {
    background: var(--navy-mid);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(26,46,69,0.25);
}

.form-note {
    margin-top: 12px;
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    font-weight: 300;
    letter-spacing: 1px;
    color: var(--text-soft);
    text-align: center;
}

/* ── STRIP ────────────────────────────────────────────── */
.strip {
    background: var(--navy-deep);
    padding: 14px 0;
    overflow: hidden;
}

.strip-track {
    display: flex;
    animation: run 32s linear infinite;
    white-space: nowrap;
}

.strip-item {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding: 0 36px;
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.22);
    flex-shrink: 0;
}

.strip-mark {
    width: 3px; height: 3px;
    border-radius: 50%;
    background: var(--blue);
    opacity: 0.7;
}

/* ── ANIMATIONS ───────────────────────────────────────── */
@keyframes up {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(8px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.75s cubic-bezier(0.16,1,0.3,1),
                transform 0.75s cubic-bezier(0.16,1,0.3,1);
}

.reveal.in { opacity: 1; transform: translateY(0); }

/* ── MOBILE NAV ───────────────────────────────────────── */
.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 600;
}

.burger-line {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.nav-burger.open .burger-line:first-child {
    transform: translateY(3.25px) rotate(45deg);
}

.nav-burger.open .burger-line:last-child {
    transform: translateY(-3.25px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(248,249,251,0.97);
    backdrop-filter: blur(20px);
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
}

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

.mobile-nav-links a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 48px;
    font-weight: 300;
    letter-spacing: -1px;
    color: var(--navy);
    text-decoration: none;
    transition: color 0.2s, opacity 0.2s;
    line-height: 1;
}

.mobile-nav-links a:hover { opacity: 0.5; }

.mobile-cta {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--bg-white);
    background: var(--navy);
    padding: 14px 32px;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s;
}

.mobile-cta:hover { background: var(--navy-mid); }

/* ── BENTO GRID ───────────────────────────────────────── */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 16px;
}

.bento-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 36px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    box-shadow: 0 2px 16px rgba(15,25,35,0.05);
}

.bento-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(15,25,35,0.1);
    border-color: rgba(59,130,246,0.2);
}

.bento-card.wide { grid-column: span 2; }
.bento-card.tall { grid-row: span 2; }
.bento-card.dark { background: var(--navy); border-color: rgba(255,255,255,0.08); }
.bento-card.dark:hover { border-color: rgba(59,130,246,0.25); }

.bento-eyebrow {
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 14px;
}

.bento-eyebrow-light { color: rgba(59,130,246,0.7); }

.bento-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.1;
    margin-bottom: 10px;
}

.bento-title-light { color: rgba(255,255,255,0.9); }

.bento-desc {
    font-size: 13px;
    font-weight: 300;
    line-height: 1.75;
    color: var(--text-mid);
}

.bento-desc-light { color: rgba(255,255,255,0.45); }

.bento-stat {
    margin-top: auto;
    padding-top: 24px;
}

.bento-stat-val {
    font-family: 'Cormorant Garamond', serif;
    font-size: 64px;
    font-weight: 300;
    color: var(--navy);
    line-height: 1;
}

.bento-stat-val sup { font-size: 26px; color: var(--blue); }
.bento-stat-val-light { color: rgba(255,255,255,0.9); }

.bento-stat-label {
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    font-weight: 300;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-soft);
    margin-top: 6px;
}

.bento-stat-label-light { color: rgba(255,255,255,0.3); }

/* Decorative elements inside bento cards */
.bento-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: var(--blue-soft);
    border: 1px solid var(--blue-line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 20px;
}

.bento-icon-dark {
    background: rgba(59,130,246,0.1);
    border-color: rgba(59,130,246,0.2);
}

.bento-bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 64px;
    margin-top: 20px;
}

.bento-bar {
    flex: 1;
    border-radius: 4px 4px 0 0;
    background: var(--blue-soft);
    border: 1px solid var(--blue-line);
    transition: height 0.6s cubic-bezier(0.16,1,0.3,1);
}

.bento-bar.lit { background: var(--blue); border-color: var(--blue); }

.bento-dots {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.bento-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--blue-soft);
    border: 1px solid var(--blue-line);
}

.bento-dot.lit { background: var(--blue); border-color: var(--blue); }

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 1024px) {
    .nav-wrap { padding: 0 16px; }
    .nav-links { display: none; }
    .nav-cta { display: none; }
    .nav-burger { display: flex; }
    .page-hero, .sec { padding-left: 24px; padding-right: 24px; }
    .sec::after { left: 24px; right: 24px; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
    footer { padding: 40px 24px 32px; }
    .bento-grid { grid-template-columns: 1fr; }
    .bento-card.wide { grid-column: span 1; }
    .bento-card.tall { grid-row: span 1; }
}

@media (max-width: 640px) {
    .footer-top { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .form-row { grid-template-columns: 1fr; }
    .mobile-nav-links a { font-size: 36px; }
}

