/* Color system */
:root {
    --ink: #0f172a;
    --ink-soft: #1f2937;
    --cloud: #f6f4ee;
    --card: #ffffff;
    --teal: #0f766e;
    --teal-strong: #0b5c56;
    --amber: #fbbf24;
    --muted: #6b7280;
    --border: #e5e7eb;
    --shadow-sm: 0 6px 20px rgba(15, 23, 42, 0.08);
    --shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
    --radius: 14px;
    --radius-lg: 20px;
    --transition: 0.25s ease;
}

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

body {
    margin: 0;
    font-family: 'Space Grotesk', 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background: #f9fafb;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'DM Serif Display', 'Times New Roman', serif;
    margin: 0 0 0.6rem 0;
    color: var(--ink);
}

p {
    margin: 0 0 1rem 0;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(229, 231, 235, 0.6);
}

.site-header .shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--teal), var(--amber));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-weight: 700;
    font-size: 1rem;
}

.brand-role {
    color: var(--muted);
    font-size: 0.85rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1rem;
    padding: 0;
    margin: 0;
}

.nav-links a {
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    font-weight: 600;
    color: var(--ink);
    transition: background var(--transition), color var(--transition);
}

.nav-links a:hover,
.nav-links a:focus-visible {
    background: rgba(15, 118, 110, 0.08);
    color: var(--teal);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    background: none;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: var(--ink);
    display: block;
    transition: transform var(--transition), opacity var(--transition);
}

.hero {
    position: relative;
    padding: 5rem 0 3rem;
    overflow: hidden;
    background: radial-gradient(circle at 20% 20%, rgba(11, 92, 86, 0.14), transparent 30%),
                radial-gradient(circle at 80% 10%, rgba(251, 191, 36, 0.18), transparent 35%),
                #0c1220;
    color: #fff;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(11, 92, 86, 0.5), rgba(15, 23, 42, 0.8));
    mix-blend-mode: screen;
    opacity: 0.8;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

.hero-copy h1 {
    font-size: 2.8rem;
    color: #fff;
}

.hero .lede {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 1rem;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.85rem 1.2rem;
    border-radius: 12px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}

.btn-primary {
    background: linear-gradient(120deg, var(--amber), #ffd166);
    color: #0f172a;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-meta strong {
    display: block;
    font-size: 1.1rem;
}

.hero-profile {
    justify-self: end;
}

.profile-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
    max-width: 340px;
}

.profile-image {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 5 / 4;
    margin-bottom: 1rem;
}

.profile-body {
    background: rgba(12, 18, 32, 0.6);
    border-radius: var(--radius);
    padding: 1rem;
    color: #e5e7eb;
}

.profile-title {
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fff;
}

.profile-desc {
    color: rgba(255, 255, 255, 0.75);
}

.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.profile-tags span {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.9rem;
}

.section {
    padding: 5rem 0;
    background: #fff;
}

.section-muted {
    background: var(--cloud);
}

.section-head {
    max-width: 720px;
    margin: 0 auto 2rem;
    text-align: center;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--teal);
    margin-bottom: 0.4rem;
}

.body {
    color: var(--muted);
    font-size: 1rem;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 2rem;
    align-items: start;
}

.cards {
    display: grid;
    gap: 1rem;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.card h3 {
    font-size: 1.15rem;
}

.plain-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
    color: var(--muted);
    display: grid;
    gap: 0.5rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.tile {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.tile:hover {
    transform: translateY(-4px);
    border-color: rgba(15, 118, 110, 0.35);
    box-shadow: var(--shadow);
}

.tile .icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(15, 118, 110, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--teal);
    margin-bottom: 0.75rem;
}

.list {
    display: grid;
    gap: 1rem;
}

.project {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.project h3 {
    font-size: 1.2rem;
}

.project .muted {
    color: var(--muted);
}

.project-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    background: rgba(15, 118, 110, 0.1);
    color: var(--teal);
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
}

.pill-alt {
    background: rgba(15, 23, 42, 0.06);
    color: var(--ink);
}

.timeline {
    position: relative;
    display: grid;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(15, 118, 110, 0.15);
}

.timeline-item {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 1rem;
    position: relative;
    padding-left: 0.5rem;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal), var(--amber));
    margin-top: 0.3rem;
    box-shadow: 0 0 0 5px rgba(15, 118, 110, 0.1);
}

.muted {
    color: var(--muted);
}

.highlight {
    background: linear-gradient(120deg, rgba(11, 92, 86, 0.08), rgba(251, 191, 36, 0.1));
}

.highlight-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.5rem;
    align-items: center;
}

.chip-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip-list li {
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}

.highlight-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.contact {
    gap: 1.5rem;
}

.contact-list {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.contact-item {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 0.75rem;
    align-items: start;
    background: #fff;
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.contact-item i {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(15, 118, 110, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--teal);
}

.contact-links {
    grid-template-columns: 1fr;
}

.link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.link-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: rgba(15, 118, 110, 0.35);
}

.link-card i {
    color: var(--teal);
}

.site-footer {
    background: #0b1220;
    color: #cbd5e1;
    padding: 2rem 0;
}

.footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #e2e8f0;
    font-weight: 600;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: #fff;
}

@media (max-width: 980px) {
    .hero-grid,
    .two-col,
    .highlight-grid {
        grid-template-columns: 1fr;
    }

    .hero-profile {
        justify-self: stretch;
    }

    .hero-meta {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
}

@media (max-width: 780px) {
    .nav-toggle {
        display: inline-flex;
    }

    .nav-links {
        position: absolute;
        inset: 100% 1rem auto 1rem;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 0.75rem;
        box-shadow: var(--shadow);
        flex-direction: column;
        display: none;
    }

    .nav-links.open {
        display: flex;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 4rem 0 3rem;
    }

    .hero-copy h1 {
        font-size: 2.1rem;
    }

    .footer-grid {
        flex-direction: column;
        align-items: flex-start;
    }
}
