/* ---------- Design tokens ---------- */
:root {
    --navy-950: #061427;
    --navy-900: #0a2540;
    --navy-800: #11305a;
    --navy-700: #1a4280;
    --teal-500: #0891b2;
    --teal-400: #22b8d6;
    --gold: #c9a86a;
    --ink: #0c1828;
    --muted: #5b6b7e;
    --line: #e3e8ef;
    --bg: #ffffff;
    --bg-soft: #f6f8fb;
    --bg-deep: #0a2540;

    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgba(10, 37, 64, 0.06);
    --shadow: 0 8px 24px rgba(10, 37, 64, 0.08);
    --shadow-lg: 0 20px 50px rgba(10, 37, 64, 0.14);

    --maxw: 1140px;
    --pad: clamp(20px, 4vw, 40px);

    --serif: "Playfair Display", Georgia, serif;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--sans);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; margin: 0; list-style: none; }

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--teal-500), var(--teal-400));
    z-index: 100;
    transition: width 0.08s ease-out;
    box-shadow: 0 0 8px rgba(8,145,178,0.45);
}

/* ---------- Skip link (a11y) ---------- */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 999;
    background: var(--navy-900);
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.92rem;
    box-shadow: var(--shadow-lg);
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 16px;
    outline: 2px solid var(--teal-400);
    outline-offset: 2px;
}

/* ---------- Universal focus-visible ring (a11y) ---------- */
:focus-visible {
    outline: 2px solid var(--teal-500);
    outline-offset: 3px;
    border-radius: 4px;
}
.btn:focus-visible,
.nav-cta:focus-visible {
    outline-offset: 4px;
}
.brand:focus-visible {
    outline-offset: 6px;
}

.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 var(--pad);
}

h1, h2, h3 {
    font-family: var(--serif);
    color: var(--navy-900);
    line-height: 1.2;
    margin: 0 0 0.4em;
    letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; font-family: var(--sans); letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

/* ---------- Header / nav ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
    border-bottom-color: var(--line);
    box-shadow: var(--shadow-sm);
}
.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--navy-900);
}
.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--navy-900), var(--teal-500));
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
}
.brand-name { letter-spacing: -0.01em; }

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}
.nav a {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--ink);
    position: relative;
    padding: 6px 0;
    transition: color 0.2s ease;
}
.nav a:hover { color: var(--teal-500); }
.nav a.is-active { color: var(--teal-500); }
.nav a::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 2px;
    background: var(--teal-500);
    transition: width 0.25s ease;
}
.nav a:hover::after,
.nav a.is-active::after { width: 100%; }
.nav a.nav-cta.is-active { color: #fff; }
.nav a.nav-cta.is-active::after { width: 0; }
.nav .nav-cta {
    background: var(--navy-900);
    color: #fff;
    padding: 9px 18px;
    border-radius: 999px;
    transition: background 0.2s ease, transform 0.2s ease;
}
.nav .nav-cta:hover { background: var(--teal-500); color: #fff; transform: translateY(-1px); }
.nav .nav-cta::after { display: none; }

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    width: 42px; height: 42px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}
.nav-toggle span {
    width: 22px; height: 2px;
    background: var(--navy-900);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
    .nav-toggle { display: flex; }
    .nav {
        position: absolute;
        top: 72px;
        left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px var(--pad) 24px;
        background: rgba(255,255,255,0.98);
        border-bottom: 1px solid var(--line);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }
    .nav.open {
        max-height: 480px;
        padding: 16px var(--pad) 28px;
    }
    .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
    .nav a:last-child { border-bottom: 0; }
    .nav .nav-cta { margin-top: 10px; text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(60px, 10vw, 120px) 0 clamp(60px, 9vw, 100px);
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(8,145,178,0.10), transparent 60%),
        radial-gradient(900px 500px at -10% 30%, rgba(10,37,64,0.06), transparent 60%),
        linear-gradient(180deg, #fbfcfe 0%, #ffffff 100%);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: clamp(30px, 6vw, 80px);
    align-items: center;
}
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    color: var(--teal-500);
    font-weight: 600;
    margin-bottom: 20px;
}
.accent { color: var(--teal-500); font-style: italic; font-weight: 600; }
.lead {
    font-size: clamp(1.05rem, 1.5vw, 1.18rem);
    color: var(--muted);
    max-width: 56ch;
    margin-bottom: 32px;
}
.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
    min-height: 44px;
}
/* Cursor + touch-target on all link-like CTAs */
a, button { cursor: pointer; }
.btn-primary {
    background: var(--navy-900);
    color: #fff;
    box-shadow: var(--shadow);
}
.btn-primary:hover {
    background: var(--teal-500);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.btn-ghost {
    background: transparent;
    color: var(--navy-900);
    border-color: var(--line);
}
.btn-ghost:hover {
    border-color: var(--navy-900);
    background: var(--navy-900);
    color: #fff;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 28px 36px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.9rem;
}
.hero-meta strong {
    display: block;
    color: var(--navy-900);
    font-weight: 700;
    margin-bottom: 2px;
    letter-spacing: -0.005em;
}

/* Hero credibility / trust row */
.trust-row {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 22px;
    flex-wrap: wrap;
}
.trust-label {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--muted);
}
.trust-row ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
}
.trust-row li {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--navy-900);
    background: rgba(8,145,178,0.07);
    border: 1px solid rgba(8,145,178,0.18);
    padding: 5px 11px;
    border-radius: 6px;
    text-transform: uppercase;
}

/* Hero visual */
.hero-visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 380px;
}
.hero-card {
    position: relative;
    z-index: 2;
    width: min(360px, 100%);
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, var(--navy-900), var(--navy-700) 60%, var(--teal-500));
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    color: #fff;
}
.hero-card-inner {
    height: 100%;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        radial-gradient(circle at 70% 0%, rgba(255,255,255,0.18), transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(255,255,255,0.10), transparent 45%);
}
.hero-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    z-index: 1;
    transition: transform 0.6s ease;
}
.hero-card:hover .hero-photo { transform: scale(1.04); }
.hero-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background:
        linear-gradient(180deg, rgba(6,20,39,0) 45%, rgba(6,20,39,0.55) 75%, rgba(6,20,39,0.85) 100%);
    color: #fff;
    pointer-events: none;
}
.monogram {
    font-family: var(--serif);
    font-size: clamp(5rem, 11vw, 8rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    color: #fff;
    opacity: 0.95;
}
.hero-card-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.hero-card-meta span:first-child {
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.01em;
}
.hero-blob {
    position: absolute;
    width: 460px; height: 460px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(8,145,178,0.18), transparent 65%);
    filter: blur(20px);
    z-index: 1;
    top: 10%; right: -20%;
}

@media (max-width: 860px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { min-height: 320px; order: -1; }
    .hero-card { width: min(260px, 75%); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-alt { background: var(--bg-soft); }
.section-head { max-width: 760px; margin: 0 0 48px; }
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--teal-500);
    margin-bottom: 14px;
}
.section-label::before {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--teal-500);
    opacity: 0.6;
}
.section-label.light { color: rgba(255,255,255,0.7); }
.section-label.light::before { background: rgba(255,255,255,0.5); }
.subhead {
    font-family: var(--sans);
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--navy-900);
    margin: 60px 0 22px;
    font-weight: 700;
}

/* ---------- About ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: clamp(30px, 5vw, 70px);
    align-items: center;
}
.about-lead {
    font-size: 1.12rem;
    color: var(--ink);
    line-height: 1.75;
    margin: 0;
}
.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.stat {
    position: relative;
    background: var(--bg-soft);
    padding: 22px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}
.stat::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(8,145,178,0.06), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.stat:hover {
    transform: translateY(-3px);
    border-color: rgba(8,145,178,0.35);
    box-shadow: 0 14px 28px rgba(10,37,64,0.08);
}
.stat:hover::before { opacity: 1; }
.stat-icon {
    width: 28px;
    height: 28px;
    color: var(--teal-500);
    display: block;
    margin-bottom: 14px;
}
.stat-num {
    font-family: var(--serif);
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--navy-900);
    line-height: 1;
    display: block;
    margin-bottom: 6px;
    background: linear-gradient(135deg, var(--navy-900), var(--teal-500));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-label {
    font-size: 0.85rem;
    color: var(--muted);
    letter-spacing: 0.01em;
}
@media (max-width: 760px) {
    .about-grid { grid-template-columns: 1fr; }
}

/* ---------- Timeline ---------- */
.timeline {
    position: relative;
    padding-left: 0;
}
.timeline-item {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 30px;
    padding: 30px 0;
    border-top: 1px solid var(--line);
}
.timeline-item:last-child { border-bottom: 1px solid var(--line); }
.timeline-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 500;
    padding-top: 4px;
}
.dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--teal-500);
    box-shadow: 0 0 0 5px rgba(8,145,178,0.16), 0 0 0 9px rgba(8,145,178,0.06);
    flex-shrink: 0;
    transition: transform 0.25s ease;
}
.timeline-item:hover .dot { transform: scale(1.2); }
.timeline-body h3 {
    font-family: var(--serif);
    font-size: 1.45rem;
    font-weight: 600;
    margin-bottom: 6px;
}
.role-org {
    color: var(--muted);
    font-weight: 500;
    margin-bottom: 14px;
    font-size: 0.95rem;
}

.bullets {
    margin: 12px 0 0;
}
.bullets li {
    position: relative;
    padding: 6px 0 6px 22px;
    color: #25364a;
}
.bullets li::before {
    content: "";
    position: absolute;
    left: 0; top: 16px;
    width: 8px; height: 2px;
    background: var(--teal-500);
}

@media (max-width: 760px) {
    .timeline-item { grid-template-columns: 1fr; gap: 12px; }
}

/* ---------- Cards / education ---------- */
.edu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: rgba(8,145,178,0.3);
}
.card-feature {
    background: linear-gradient(160deg, var(--navy-900), var(--navy-800));
    border: 0;
    color: #fff;
}
.card-feature h3, .card-feature .card-eyebrow { color: #fff; }
.card-feature .card-org, .card-feature .card-date, .card-feature .card-note {
    color: rgba(255,255,255,0.78);
}
.card-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--teal-500);
    margin: 0 0 10px;
}
.card h3 {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 6px;
}
.card-org { color: var(--muted); font-weight: 500; margin-bottom: 4px; font-size: 0.95rem; }
.card-date { color: var(--muted); font-size: 0.9rem; margin-bottom: 12px; }
.card-note { color: #44566c; font-size: 0.95rem; }
.card-subhead {
    font-family: var(--sans);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--navy-900);
    margin: 22px 0 8px;
    font-weight: 700;
}

.cert-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
}
.cert-list li:last-child { border-bottom: 0; }
.card-feature .cert-list li { border-color: rgba(255,255,255,0.15); }

@media (max-width: 900px) { .edu-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .edu-grid { grid-template-columns: 1fr; } }

/* ---------- CE grid ---------- */
.ce-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.ce-item {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 16px;
    align-items: start;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 0.95rem;
    color: #2c3e58;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.ce-item:hover {
    border-color: var(--teal-500);
    transform: translateX(2px);
}
.ce-year {
    font-weight: 700;
    color: var(--teal-500);
    font-variant-numeric: tabular-nums;
}
.ce-sub {
    color: var(--muted);
    font-size: 0.85em;
    white-space: nowrap;
}
@media (max-width: 760px) { .ce-grid { grid-template-columns: 1fr; } }

/* ---------- Two col ---------- */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}
.chip-list li {
    font-size: 0.82rem;
    padding: 6px 12px;
    background: rgba(8,145,178,0.08);
    color: var(--navy-900);
    border-radius: 999px;
    font-weight: 500;
}

/* ---------- Projects ---------- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.project {
    position: relative;
    padding: 30px 26px 26px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
    color: inherit;
    display: flex;
    flex-direction: column;
}
a.project { text-decoration: none; cursor: pointer; }
a.project:focus-visible {
    outline: 2px solid var(--teal-500);
    outline-offset: 3px;
}
.project::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--navy-900), var(--teal-500));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.project:hover { transform: translateY(-4px); border-color: rgba(8,145,178,0.35); box-shadow: var(--shadow); }
.project:hover::before { transform: scaleX(1); }
.project-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 18px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(10, 37, 64, 0.12), 0 1px 2px rgba(10, 37, 64, 0.08);
    display: grid;
    place-items: center;
    transition: transform 0.3s ease;
}
.project:hover .project-icon { transform: translateY(-2px) scale(1.04); }
.project-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.project-icon-svg {
    background: linear-gradient(160deg, #eef4ff, #dbe7ff);
    padding: 12px;
}
.project-icon-svg img {
    object-fit: contain;
}
.project-icon-placeholder,
.project-icon.icon-fallback {
    background: linear-gradient(160deg, var(--navy-900), var(--teal-500));
    color: #fff;
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.project-icon.icon-fallback::before {
    content: attr(data-fallback);
}

.project-year {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--teal-500);
    letter-spacing: 0.14em;
    margin-bottom: 10px;
}
.project h3 {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.project p {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 14px;
}
.muted { color: var(--muted); font-weight: 400; font-size: 0.85em; }
.tag {
    display: inline-block;
    font-size: 0.75rem;
    padding: 4px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    letter-spacing: 0.04em;
}
.project-foot {
    margin-top: auto;
    padding-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.project-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--teal-500);
    letter-spacing: 0.02em;
    transition: transform 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}
.project-link span { display: inline-block; transition: transform 0.25s ease; }
a.project:hover .project-link { color: var(--navy-900); }
a.project:hover .project-link span { transform: translate(2px, -2px); }
@media (max-width: 900px) { .projects-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .projects-grid { grid-template-columns: 1fr; } }

/* ---------- Skills ---------- */
.skills { margin-top: 16px; }
.skill-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px 32px;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.skill-group-label {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--teal-500);
    margin: 0 0 12px;
}
.skill-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.skill-chips span {
    padding: 7px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--bg-soft);
    font-size: 0.88rem;
    color: #2c3e58;
    font-weight: 500;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.skill-chips span:hover {
    border-color: var(--teal-500);
    color: var(--teal-500);
    background: #fff;
    transform: translateY(-2px);
}
@media (max-width: 900px) { .skill-groups { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Contact ---------- */
.section-contact {
    background:
        radial-gradient(800px 400px at 80% 0%, rgba(8,145,178,0.18), transparent 60%),
        linear-gradient(160deg, var(--navy-950), var(--navy-900));
    color: #fff;
    padding: clamp(72px, 9vw, 120px) 0;
}
.section-contact h2, .section-contact .section-label { color: #fff; }
.contact-wrap {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(30px, 6vw, 70px);
    align-items: center;
}
.contact-lead {
    color: rgba(255,255,255,0.78);
    font-size: 1.05rem;
    max-width: 50ch;
}
.contact-list {
    display: grid;
    gap: 12px;
}
.contact-list li {
    display: grid;
    grid-template-columns: 48px 1fr;
    align-items: center;
    gap: 18px;
    padding: 18px 22px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 14px;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
    font-size: 1rem;
}
.contact-list li:hover {
    border-color: rgba(34,184,214,0.55);
    background: rgba(255,255,255,0.06);
    transform: translateX(3px);
}
.contact-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(34,184,214,0.12);
    color: var(--teal-400);
    flex-shrink: 0;
}
.contact-icon svg { width: 22px; height: 22px; }
.contact-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.contact-label {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.55);
    font-weight: 700;
}
.contact-list a {
    color: #fff;
    transition: color 0.2s ease;
    word-break: break-word;
}
.contact-list a:hover { color: var(--teal-400); }
@media (max-width: 860px) {
    .contact-wrap { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--navy-950);
    color: rgba(255,255,255,0.65);
    padding: 26px 0;
    font-size: 0.88rem;
}
.footer-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.footer-wrap p { margin: 0; }
.footer-meta { letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.78rem; color: rgba(255,255,255,0.5); }
.footer-links {
    display: flex;
    align-items: center;
    gap: 14px;
}
.footer-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.footer-icon:hover {
    color: var(--teal-400);
    background: rgba(34,184,214,0.10);
    border-color: rgba(34,184,214,0.4);
    transform: translateY(-2px);
}

/* ---------- Reveal animation ---------- */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    /* Show all reveal elements immediately, no transform animation */
    .reveal { opacity: 1 !important; transform: none !important; }
    /* Disable hover transforms that imply motion */
    .hero-card:hover .hero-photo,
    .project:hover,
    .project:hover .project-icon,
    .ce-item:hover,
    .skill-chips span:hover,
    .btn-primary:hover,
    .stat:hover { transform: none !important; }
}
