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

:root {
    --white: #ffffff;
    --off-white: #f8f8f6;
    --text: #1a1a2e;
    --text-muted: #5a5a72;
    --accent: #1e3a5f;
    --teal: #247ba0;
    --teal-light: #e8f4f8;
    --border: #e2e2e8;
    --nav-height: 70px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--white);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── NAVIGATION ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.03em;
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.2s;
}

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

.nav-links a.active {
    color: var(--accent);
    border-bottom: 2px solid var(--teal);
    padding-bottom: 2px;
}

/* ── BUTTONS ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.25rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.02em;
    border: none;
}

.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: #162d4a; }

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1.5px solid var(--accent);
}
.btn-outline:hover { background: var(--teal-light); }

/* ── HERO ── */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-height) + 3rem) clamp(1.5rem, 5vw, 4rem) 4rem;
    max-width: 1200px;
    margin: 0 auto;
    gap: 4rem;
}

.hero-photo {
    flex-shrink: 0;
    width: clamp(200px, 25vw, 320px);
    height: clamp(200px, 25vw, 320px);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(30,58,95,0.15);
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hero-text { flex: 1; }

.hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 0.75rem;
}

.hero-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--accent);
    line-height: 1.1;
    margin-bottom: 0.4rem;
}

.hero-title {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.hero-pitch {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    line-height: 1.7;
    max-width: 560px;
    margin-bottom: 2rem;
    border-left: 3px solid var(--teal);
    padding-left: 1.25rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── METRICS STRIP ── */
#metrics {
    background: var(--accent);
    color: white;
    padding: 3rem clamp(1.5rem, 5vw, 4rem);
}

.metrics-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    text-align: center;
}

.metric-value {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.metric-value span { color: rgba(36,123,160,0.9); }

.metric-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.4;
    letter-spacing: 0.02em;
}

/* ── SECTIONS ── */
section { padding: 5rem clamp(1.5rem, 5vw, 4rem); }

.section-inner { max-width: 1200px; margin: 0 auto; }

.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 0.5rem;
}

.section-heading {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

/* ── ABOUT ── */
#about { background: var(--off-white); }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    line-height: 1.8;
    margin-bottom: 1.25rem;
    font-size: 1.025rem;
}

.credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.credential-tag {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--accent);
    background: white;
    border: 1.5px solid var(--border);
    padding: 0.35rem 0.8rem;
    border-radius: 100px;
    white-space: nowrap;
}

.about-highlight {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.about-highlight h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.highlight-item {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.highlight-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--teal);
    margin-top: 0.55rem;
    flex-shrink: 0;
}

.highlight-item p {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ── EXPERTISE ── */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.expertise-card {
    background: var(--off-white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.25s;
}

.expertise-card:hover {
    border-color: var(--teal);
    box-shadow: 0 4px 20px rgba(36,123,160,0.12);
    transform: translateY(-2px);
}

.expertise-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.6rem;
    line-height: 1.3;
}

.expertise-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.card-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--teal-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.card-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--teal);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ── TECHNOLOGY ── */
#technology { background: var(--off-white); }

.tech-intro {
    max-width: 680px;
    margin-bottom: 3rem;
}

.tech-intro p {
    font-size: 1.025rem;
    line-height: 1.8;
}

.tech-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.tech-pillar {
    background: white;
    border: 1px solid var(--border);
    border-top: 3px solid var(--teal);
    border-radius: 8px;
    padding: 2rem;
    transition: box-shadow 0.25s;
}

.tech-pillar:hover { box-shadow: 0 6px 24px rgba(30,58,95,0.1); }

.tech-pillar h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.tech-pillar p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.tech-evidence {
    margin-top: 2.5rem;
    background: var(--accent);
    border-radius: 8px;
    padding: 1.75rem 2rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.tech-evidence-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.tech-evidence p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
}

.tech-evidence strong { color: white; }

/* ── CAREER TIMELINE ── */
.timeline {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 140px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--teal), var(--border));
}

.timeline-item {
    display: flex;
    margin-bottom: 2.5rem;
    position: relative;
}

.timeline-date {
    width: 140px;
    flex-shrink: 0;
    padding-top: 0.1rem;
    padding-right: 1.5rem;
    text-align: right;
}

.timeline-date span {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--teal);
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--teal);
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--teal);
    flex-shrink: 0;
    margin-top: 0.25rem;
    margin-left: -5px;
    position: relative;
    z-index: 1;
}

.timeline-content {
    flex: 1;
    padding-left: 1.5rem;
}

.timeline-role {
    font-weight: 600;
    font-size: 1rem;
    color: var(--accent);
    margin-bottom: 0.15rem;
}

.timeline-firm {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--teal);
    margin-bottom: 0.6rem;
}

.timeline-detail {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── CONTACT ── */
#contact {
    background: var(--accent);
    color: white;
    text-align: center;
}

#contact .section-label { color: rgba(36,123,160,0.9); }
#contact .section-heading { color: white; }

.contact-sub {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    max-width: 500px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.contact-link-outline {
    background: transparent;
    color: white;
    border: 1.5px solid rgba(255,255,255,0.4);
}
.contact-link-outline:hover { border-color: white; background: rgba(255,255,255,0.08); }

/* ── CONTACT FORM ── */
.contact-form {
    max-width: 560px;
    margin: 0 auto 2rem;
    text-align: left;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
    background: rgba(255,255,255,0.08);
    border: 1.5px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    padding: 0.7rem 0.9rem;
    transition: border-color 0.2s;
    outline: none;
    width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.3); }

.form-group input:focus,
.form-group textarea:focus { border-color: var(--teal); }

.form-group textarea { resize: vertical; min-height: 120px; }

.form-honeypot { display: none; }

.form-submit {
    width: 100%;
    padding: 0.85rem;
    background: white;
    color: var(--accent);
    border: none;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    letter-spacing: 0.02em;
}

.form-submit:hover { background: var(--off-white); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-status {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    text-align: center;
    display: none;
}

.form-status.success {
    background: rgba(36,123,160,0.25);
    border: 1px solid rgba(36,123,160,0.5);
    color: white;
    display: block;
}

.form-status.error {
    background: rgba(180,50,50,0.25);
    border: 1px solid rgba(180,50,50,0.4);
    color: #ffaaaa;
    display: block;
}

/* ── FOOTER ── */
footer {
    background: #0f1e30;
    color: rgba(255,255,255,0.4);
    text-align: center;
    padding: 1.5rem;
    font-size: 0.8rem;
}

/* ── FADE-IN ── */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .metrics-grid { grid-template-columns: repeat(3, 1fr); }
    .expertise-grid { grid-template-columns: repeat(2, 1fr); }
    .tech-pillars { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    #hero { flex-direction: column; align-items: center; text-align: center; padding-top: calc(var(--nav-height) + 2rem); }
    .hero-photo { width: 180px; height: 180px; }
    .hero-pitch { border-left: none; padding-left: 0; border-top: 3px solid var(--teal); padding-top: 1rem; }
    .hero-actions { justify-content: center; }
    .about-grid { grid-template-columns: 1fr; }
    .metrics-grid { grid-template-columns: repeat(2, 1fr); }
    .expertise-grid { grid-template-columns: 1fr; }
    .tech-pillars { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .timeline::before { left: 0; }
    .timeline-date { display: none; }
    .timeline-item { padding-left: 1.5rem; }
    .timeline-dot { position: absolute; left: -5px; margin-left: 0; }
}

@media (max-width: 560px) {
    .form-row { grid-template-columns: 1fr; }
}

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