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

:root {
    --blue: #2563eb;
    --blue-dark: #1e40af;
    --navy: #0b1739;
    --navy-soft: #122552;
    --ink: #0f172a;
    --sub: #52617a;
    --muted: #8a98ad;
    --line: #dfe6f0;
    --paper: #ffffff;
    --wash: #f3f6fb;
    --aqua: #45d4c4;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--ink); background: var(--wash); line-height: 1.6; }

header {
    position: fixed; inset: 0 0 auto; z-index: 100; height: 66px;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.nav-inner { width: min(1400px, 100%); height: 100%; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; }
.logo { color: var(--blue); font-size: 1.35rem; font-weight: 800; letter-spacing: -0.03em; text-decoration: none; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 1.65rem; list-style: none; }
.nav-links a { color: var(--sub); font-size: 0.88rem; font-weight: 600; text-decoration: none; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--blue); }

.hire-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; padding: .62rem 1.3rem; border-radius: 8px; color: #fff; background: linear-gradient(135deg, var(--blue), var(--blue-dark)); box-shadow: 0 4px 14px rgba(37,99,235,.28); font-size: .9rem; font-weight: 700; text-decoration: none; overflow: hidden; }
.hire-btn::before { content: ''; position: absolute; inset: 0 auto 0 -100%; width: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent); transition: left .5s; }
.hire-btn:hover::before { left: 100%; }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 5px; border: 0; background: none; cursor: pointer; }
.hamburger span { width: 22px; height: 2px; border-radius: 2px; background: var(--ink); transition: .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { display: none; position: fixed; inset: 66px 0 0; z-index: 99; flex-direction: column; justify-content: center; align-items: center; gap: 1.7rem; background: rgba(255,255,255,.98); backdrop-filter: blur(18px); opacity: 0; pointer-events: none; transition: opacity .3s; }
.mobile-nav.open { opacity: 1; pointer-events: auto; }
.mobile-nav a { color: var(--sub); font-size: 1.2rem; font-weight: 700; text-decoration: none; }
.mobile-nav a.active { color: var(--blue); }
.mobile-nav .hire-btn { color: #fff; font-size: 1rem; padding: .75rem 2rem; }

.modal { display: none; position: fixed; inset: 0; z-index: 10000; background: rgba(8,15,32,.62); backdrop-filter: blur(6px); }
.modal-content { width: min(500px, 90%); margin: 5% auto; overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 24px 70px rgba(0,0,0,.32); opacity: 0; transform: scale(.86); transition: .3s; }
.modal.active .modal-content { opacity: 1; transform: scale(1); }
.modal-header { position: relative; padding: 1.5rem; color: #fff; background: linear-gradient(135deg, var(--blue), var(--blue-dark)); }
.modal-header h2 { font-size: 1.5rem; }
.modal-header p { margin-top: .35rem; opacity: .88; }
.close { position: absolute; top: 1.5rem; right: 1.5rem; font-size: 1.4rem; cursor: pointer; }
.modal-body { padding: 2rem; }
.hire-options { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.hire-option { display: flex; gap: 1rem; align-items: center; padding: 1rem; border: 2px solid var(--line); border-radius: 10px; cursor: pointer; transition: .2s; }
.hire-option:hover, .hire-option.selected { border-color: var(--blue); background: #eff6ff; }
.hire-option-icon { font-size: 1.5rem; }
.hire-option-content h3 { color: var(--blue-dark); font-size: 1rem; }
.hire-option-content p { color: var(--sub); font-size: .86rem; }
.contact-actions { display: flex; gap: .8rem; }
.contact-btn { flex: 1; padding: .8rem 1rem; border-radius: 8px; text-align: center; font-weight: 700; text-decoration: none; }
.contact-btn.primary { color: #fff; background: var(--blue); }
.contact-btn.secondary { color: #334155; background: #eef2f7; }

.insights-hero { position: relative; margin-top: 72px; overflow: hidden; color: #fff; background: var(--navy); }
.insights-hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to right, #000, transparent 80%); }
.insights-hero::after { content: ''; position: absolute; top: -180px; right: -140px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(69,212,196,.2), transparent 68%); }
.hero-grid { position: relative; z-index: 1; width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 86px 0 82px; display: grid; grid-template-columns: 1.35fr .65fr; gap: 80px; align-items: end; }
.hero-masthead { display: flex; align-items: center; margin-bottom: 2.4rem; }
.back-link { display: inline-flex; color: #a9b9d4; font-size: .82rem; font-weight: 600; text-decoration: none; }
.back-link:hover { color: #fff; }
.hero-eyebrow, .section-kicker, .panel-label { color: var(--aqua); font-family: 'JetBrains Mono', monospace; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.hero-copy h1 { max-width: 760px; margin: .9rem 0 1.15rem; font-size: clamp(2.7rem, 5.8vw, 5rem); line-height: .98; letter-spacing: -.065em; }
.hero-copy > p { max-width: 680px; color: #aebbd1; font-size: 1.08rem; line-height: 1.75; }
.hero-topics { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.8rem; }
.hero-topics span { padding: .35rem .75rem; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; color: #c7d3e6; font-size: .76rem; font-weight: 600; background: rgba(255,255,255,.045); }
.hero-metrics { display: flex; flex-wrap: wrap; gap: 1.4rem 2rem; margin-top: 2.2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.11); }
.hero-metrics div { display: grid; min-width: 118px; gap: .1rem; }
.hero-metrics strong { color: #fff; font: 600 .78rem 'JetBrains Mono', monospace; text-transform: uppercase; }
.hero-metrics span { color: #7185a5; font-size: .68rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.editorial-panel { padding: 1.5rem; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; background: rgba(255,255,255,.055); backdrop-filter: blur(10px); }
.panel-label { margin-bottom: .8rem; }
.panel-line { display: flex; gap: .8rem; padding: .8rem 0; border-top: 1px solid rgba(255,255,255,.1); color: #d4ddeb; font-size: .84rem; }
.panel-line span { color: var(--aqua); font-family: 'JetBrains Mono', monospace; font-size: .72rem; }

.insights-body { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 72px 0 90px; }
.section-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; margin-bottom: 34px; }
.section-kicker { color: var(--blue); }
.section-intro h2, .trust-note h2, .topic-cta h2 { margin-top: .45rem; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.15; letter-spacing: -.04em; }
.section-intro p { color: var(--sub); line-height: 1.8; }
.featured-insight { display: grid; grid-template-columns: 1.15fr .85fr; overflow: hidden; min-height: 370px; border: 1px solid #cdd9eb; border-radius: 24px; background: var(--paper); box-shadow: 0 20px 52px rgba(25,54,104,.1); }
.featured-copy { position: relative; padding: 3rem; }
.article-meta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.3rem; }
.article-index { color: var(--muted); font: 600 .67rem 'JetBrains Mono', monospace; letter-spacing: .09em; text-transform: uppercase; }
.article-number { color: #c4cede; font: 600 2.1rem 'JetBrains Mono', monospace; line-height: 1; letter-spacing: -.08em; }
.category-label { color: var(--blue); font-family: 'JetBrains Mono', monospace; font-size: .69rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.status-label { padding: .28rem .65rem; border-radius: 999px; color: #68778c; background: #edf1f6; font-size: .68rem; font-weight: 700; }
.status-writing { color: #047857; background: #dff8ee; }
.featured-copy h2 { max-width: 690px; margin: .8rem 0 1rem; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.08; letter-spacing: -.052em; }
.featured-copy p { max-width: 680px; color: var(--sub); line-height: 1.75; }
.published-details { margin-top: 1.4rem; color: var(--muted); font-size: .76rem; font-weight: 600; }
.published-details span { margin: 0 .35rem; color: #c3ccda; }
.article-read-link { display: inline-flex; margin-top: .85rem; padding-bottom: .25rem; border-bottom: 2px solid var(--blue); color: var(--blue-dark); font-size: .84rem; font-weight: 800; text-decoration: none; }
.article-read-link:hover { color: var(--blue); }
.featured-scope { position: relative; overflow: hidden; padding: 2.7rem; color: #fff; background: linear-gradient(155deg, #152956, #0b1739); display: flex; flex-direction: column; justify-content: center; }
.featured-scope::after { content: '01'; position: absolute; right: -12px; bottom: -64px; color: rgba(255,255,255,.035); font: 700 11rem 'JetBrains Mono', monospace; line-height: 1; }
.featured-scope > * { position: relative; z-index: 1; }
.scope-kicker { margin-bottom: 1.1rem; color: var(--aqua); font-family: 'JetBrains Mono', monospace; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.featured-scope ul { display: grid; gap: 1rem; list-style: none; }
.featured-scope li { position: relative; padding-left: 1.5rem; color: #c9d5e8; font-size: .88rem; }
.featured-scope li::before { content: ''; position: absolute; top: .55rem; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 4px rgba(69,212,196,.12); }

.currently-writing { margin-top: 44px; padding: 1.7rem 0 .25rem; border-top: 1px solid #cfd8e6; border-bottom: 1px solid #cfd8e6; }
.currently-writing-header { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: end; margin-bottom: 1.1rem; }
.currently-writing-header h2 { margin-top: .35rem; color: var(--ink); font-size: 1.55rem; line-height: 1.2; letter-spacing: -.035em; }
.currently-writing-header p { color: var(--sub); font-size: .86rem; line-height: 1.65; }
.currently-writing-list { display: grid; }
.currently-writing-item { display: grid; grid-template-columns: 58px 1fr; gap: 1.2rem; padding: 1.15rem 0; border-top: 1px solid var(--line); }
.writing-number { padding-top: .2rem; color: #bac5d4; font: 600 1.35rem 'JetBrains Mono', monospace; letter-spacing: -.06em; }
.writing-copy { min-width: 0; }
.writing-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin-bottom: .35rem; }
.writing-meta span { color: var(--blue); font: 600 .65rem 'JetBrains Mono', monospace; letter-spacing: .08em; text-transform: uppercase; }
.writing-meta small { padding: .2rem .5rem; border-radius: 999px; color: #63738a; background: #e9eef5; font-size: .62rem; font-weight: 700; }
.currently-writing-item:first-child .writing-meta small { color: #047857; background: #dff8ee; }
.writing-copy h3 { color: var(--ink); font-size: 1rem; line-height: 1.4; letter-spacing: -.015em; }
.writing-copy p { max-width: 780px; margin-top: .3rem; color: var(--sub); font-size: .8rem; line-height: 1.6; }

.trust-note { display: grid; grid-template-columns: auto 1fr; gap: 1.8rem; align-items: center; margin-top: 64px; padding: 2.2rem; border: 1px solid #bddbd7; border-radius: 18px; background: linear-gradient(135deg, #effbf9, #f8fcff); }
.trust-mark { width: 72px; height: 72px; border-radius: 18px; display: grid; place-items: center; color: #fff; background: #0f766e; font: 700 1rem 'JetBrains Mono', monospace; box-shadow: 0 10px 24px rgba(15,118,110,.2); }
.trust-note h2 { font-size: 1.65rem; }
.trust-note p { max-width: 830px; margin-top: .6rem; color: var(--sub); }
.topic-cta { margin-top: 28px; padding: 2.4rem; border-radius: 18px; color: #fff; background: var(--navy); display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.topic-cta .section-kicker { color: var(--aqua); }
.topic-cta h2 { font-size: 1.75rem; }
.topic-cta p { margin-top: .45rem; color: #aebbd1; }
.cta-button { flex-shrink: 0; padding: .8rem 1.2rem; border: 0; border-radius: 9px; color: var(--navy); background: var(--aqua); font: 800 .84rem 'Inter', sans-serif; text-decoration: none; transition: .2s; cursor: pointer; }
.cta-button:hover { transform: translateY(-2px); background: #72e3d6; }

.topic-dialog { position: fixed; inset: 50% auto auto 50%; width: min(560px, calc(100% - 32px)); max-width: none; margin: 0; padding: 0; border: 0; border-radius: 20px; color: var(--ink); background: transparent; box-shadow: 0 28px 80px rgba(8,18,45,.3); transform: translate(-50%, -50%); }
.topic-dialog::backdrop { background: rgba(8,18,45,.66); backdrop-filter: blur(6px); }
.topic-dialog[open] { animation: dialogIn .24s ease both; }
.topic-dialog-card { position: relative; padding: 2rem; border: 1px solid #d4dfed; border-radius: 20px; background: #fff; }
.topic-dialog-close { position: absolute; top: 1rem; right: 1rem; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; color: var(--sub); background: #f5f7fb; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.topic-dialog-close:hover { color: var(--ink); border-color: #b8c6da; }
.topic-dialog h2 { max-width: 440px; margin: .45rem 0 .65rem; font-size: 1.75rem; line-height: 1.2; letter-spacing: -.035em; }
.topic-dialog-card > p { color: var(--sub); font-size: .9rem; }
.topic-dialog label { display: block; margin: 1.4rem 0 .45rem; color: #334155; font-size: .75rem; font-weight: 800; }
.topic-dialog textarea { width: 100%; resize: vertical; min-height: 120px; padding: .9rem 1rem; border: 1px solid #cfd9e7; border-radius: 10px; color: var(--ink); background: #f9fbfe; font: 500 .88rem/1.6 'Inter', sans-serif; outline: none; }
.topic-dialog textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.1); background: #fff; }
.topic-dialog-actions { display: flex; gap: .7rem; margin-top: 1rem; }
.topic-primary-action, .topic-secondary-action { flex: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .65rem .9rem; border-radius: 9px; font-size: .78rem; font-weight: 800; text-decoration: none; cursor: pointer; }
.topic-primary-action { border: 1px solid var(--blue); color: #fff; background: var(--blue); }
.topic-primary-action:hover { background: var(--blue-dark); }
.topic-secondary-action { border: 1px solid var(--line); color: var(--blue-dark); background: #fff; font-family: 'Inter', sans-serif; }
.topic-secondary-action:hover { border-color: var(--blue); background: #f3f7ff; }
.topic-dialog-alternative { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .72rem; }
.topic-dialog-alternative div { display: flex; gap: 1rem; }
.topic-dialog-alternative a { color: var(--blue); font-weight: 700; text-decoration: none; }
@keyframes dialogIn { from { opacity: 0; transform: translate(-50%, calc(-50% + 12px)) scale(.98); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }

footer { display: flex; justify-content: space-between; gap: 2rem; width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 28px 0 34px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
footer div { display: flex; gap: 1.3rem; }
footer a { color: var(--sub); text-decoration: none; }
footer a:hover { color: var(--blue); }
.back-to-top { position: fixed; right: 26px; bottom: 26px; z-index: 50; width: 42px; height: 42px; border: 0; border-radius: 50%; color: #fff; background: var(--blue); box-shadow: 0 5px 16px rgba(37,99,235,.35); opacity: 0; transform: translateY(10px); transition: .25s; cursor: pointer; }
.back-to-top.visible { opacity: 1; transform: translateY(0); }

.reveal { opacity: 0; transform: translateY(18px); }
.reveal.visible { animation: revealUp .55s ease forwards; }
.delay-1 { animation-delay: .05s; }
.delay-2 { animation-delay: .1s; }
.delay-3 { animation-delay: .15s; }
@keyframes revealUp { to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1050px) {
    .nav-links, .desktop-hire { display: none; }
    .hamburger, .mobile-nav { display: flex; }
    .hero-grid { grid-template-columns: 1fr; gap: 38px; }
    .editorial-panel { max-width: 600px; }
}

@media (max-width: 700px) {
    .nav-inner { padding: 0 20px; }
    .logo { font-size: 1.1rem; }
    .hero-grid, .insights-body, footer { width: min(100% - 32px, 1180px); }
    .hero-grid { padding: 58px 0 60px; }
    .hero-masthead { margin-bottom: 2rem; }
    .hero-copy h1 { font-size: 2.75rem; }
    .hero-copy > p { font-size: .96rem; }
    .section-intro { grid-template-columns: 1fr; gap: 14px; }
    .featured-insight { grid-template-columns: 1fr; }
    .featured-copy, .featured-scope { padding: 1.6rem; }
    .trust-note { grid-template-columns: 1fr; padding: 1.6rem; }
    .currently-writing-header { grid-template-columns: 1fr; gap: .6rem; }
    .currently-writing-item { grid-template-columns: 42px 1fr; gap: .8rem; }
    .trust-mark { width: 58px; height: 58px; }
    .topic-cta { align-items: flex-start; flex-direction: column; padding: 1.7rem; }
    .topic-dialog-card { padding: 1.45rem; }
    .topic-dialog-actions { flex-direction: column; }
    .topic-dialog-alternative { align-items: flex-start; flex-direction: column; gap: .35rem; }
    footer { flex-direction: column; gap: .8rem; }
    .modal-content { margin: 10% auto; }
    .modal-body { padding: 1.35rem; }
    .contact-actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
}
