:root {
    --page-ink: #18222d;
    --page-muted: #5b6670;
    --page-accent: #0f6a68;
    --page-accent-deep: #0b4d54;
    --page-accent-soft: #d9eceb;
    --page-panel: rgba(255, 255, 255, 0.78);
    --page-border: rgba(24, 34, 45, 0.1);
    --page-shadow: 0 24px 70px rgba(24, 34, 45, 0.12);
    --page-highlight: rgba(15, 106, 104, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--page-ink);
    background:
        radial-gradient(circle at top left, rgba(243, 219, 187, 0.8), transparent 34%),
        radial-gradient(circle at top right, rgba(139, 196, 191, 0.35), transparent 28%),
        linear-gradient(180deg, #f4efe8 0%, #f8faf9 48%, #eef4f4 100%);
    font-family: "Aptos", "Segoe UI Variable", "Segoe UI", sans-serif;
}

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

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

h1,
h2,
h3 {
    margin: 0;
    font-family: "Cambria", "Palatino Linotype", Georgia, serif;
    letter-spacing: -0.03em;
}

h1 {
    font-size: clamp(2.8rem, 8vw, 5.4rem);
    line-height: 0.95;
    max-width: 10ch;
}

h2 {
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    line-height: 1.05;
    margin-top: 0.4rem;
}

h3 {
    font-size: 1.3rem;
}

p {
    margin: 0;
}

.page-shell {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.5rem 0 4rem;
    display: grid;
    gap: 1.5rem;
}

.section-panel {
    position: relative;
    overflow: hidden;
    padding: clamp(1.4rem, 1rem + 1vw, 2.2rem);
    border: 1px solid var(--page-border);
    border-radius: 28px;
    background: var(--page-panel);
    box-shadow: var(--page-shadow);
    backdrop-filter: blur(20px);
}

.section-panel::before {
    content: "";
    position: absolute;
    inset: auto -10% -55% auto;
    width: 18rem;
    height: 18rem;
    border-radius: 50%;
    background: radial-gradient(circle, var(--page-highlight) 0%, transparent 68%);
    pointer-events: none;
}

.hero {
    display: grid;
    gap: 1.5rem;
    align-items: center;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.9fr);
}

.hero-copy,
.hero-card,
.timeline-item,
.project-card {
    position: relative;
    z-index: 1;
}

.eyebrow,
.section-label,
.timeline-period,
.project-period {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--page-accent);
}

.lede {
    margin-top: 1rem;
    max-width: 62ch;
    font-size: 1.08rem;
    line-height: 1.7;
    color: var(--page-muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.9rem;
    padding: 0.75rem 1.15rem;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-1px);
}

.button-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--page-accent) 0%, var(--page-accent-deep) 100%);
    box-shadow: 0 12px 28px rgba(15, 106, 104, 0.28);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(24, 34, 45, 0.12);
}

.hero-card {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid rgba(24, 34, 45, 0.08);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(245, 249, 248, 0.8));
}

.portrait {
    width: 100%;
    aspect-ratio: 1 / 0.92;
    object-fit: cover;
    object-position: center top;
    border-radius: 20px;
    background: linear-gradient(180deg, #d3ddd8, #eef3f2);
}

.snapshot-list {
    display: grid;
    gap: 0.8rem;
    margin: 0;
}

.snapshot-item {
    display: grid;
    gap: 0.18rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(24, 34, 45, 0.08);
}

.snapshot-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.snapshot-item dt {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--page-muted);
}

.snapshot-item dd {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.section-label-spaced {
    margin-top: 1.75rem;
}

.keyword-stack {
    display: grid;
    gap: 1.2rem;
    margin-top: 1.1rem;
}

.keyword-block {
    display: grid;
    gap: 0.7rem;
}

.keyword-heading {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--page-muted);
}

.content-list {
    margin: 1.25rem 0 0;
    padding-left: 1.2rem;
    display: grid;
    gap: 0.9rem;
    color: var(--page-muted);
    line-height: 1.65;
}

.compact-list {
    gap: 0.7rem;
}

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.15rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    min-height: 2.2rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: var(--page-accent-soft);
    color: var(--page-accent-deep);
    font-size: 0.95rem;
    font-weight: 700;
}

.timeline {
    display: grid;
    gap: 1rem;
    margin-top: 1.35rem;
}

.timeline-item {
    padding: 1.1rem 1.15rem;
    border-radius: 20px;
    border: 1px solid rgba(24, 34, 45, 0.08);
    background: rgba(255, 255, 255, 0.66);
}

.timeline-role,
.project-name,
.project-role {
    margin-top: 0.45rem;
    color: var(--page-muted);
    line-height: 1.55;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.35rem;
}

.project-card {
    min-height: 13rem;
    padding: 1.15rem;
    border-radius: 20px;
    border: 1px solid rgba(24, 34, 45, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(236, 243, 242, 0.82));
}

.project-name {
    font-weight: 700;
    color: var(--page-ink);
}

.project-role {
    margin-top: 0.3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.35rem;
}

.contact-card {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.55rem;
    min-height: 9rem;
    padding: 1.2rem;
    border-radius: 20px;
    border: 1px solid rgba(24, 34, 45, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(236, 243, 242, 0.82));
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.contact-card:hover,
.contact-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(24, 34, 45, 0.12);
}

.contact-label {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--page-accent);
}

.contact-value {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--page-ink);
    overflow-wrap: anywhere;
}

.message-panel {
    min-height: 50vh;
    align-content: center;
}

@media (max-width: 940px) {
    .hero,
    .section-grid,
    .project-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        max-width: none;
    }
}

@media (max-width: 640px) {
    .page-shell {
        width: min(100% - 1rem, 1120px);
        padding-top: 1rem;
    }

    .section-panel {
        padding: 1.2rem;
        border-radius: 24px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }
}
