:root {
    --ink: #101114;
    --muted: #62666d;
    --line: #dedfe2;
    --surface: #fff;
    --surface-soft: #f5f5f7;
    --accent: #1668d4;
    --accent-hover: #0d56b5;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
    background: var(--surface);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.container { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }

header {
    position: sticky;
    z-index: 100;
    top: 0;
    border-bottom: 1px solid rgba(16, 17, 20, .08);
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
}
.header-container { display: flex; min-height: 70px; align-items: center; justify-content: space-between; gap: 2rem; }
header h1 { font-size: 1rem; font-weight: 650; letter-spacing: -.02em; white-space: nowrap; }
header nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem); }
header nav a {
    position: relative;
    color: #37393d;
    font-size: .82rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 180ms ease;
}
header nav a::after {
    position: absolute;
    right: 0;
    bottom: -7px;
    left: 0;
    height: 1px;
    background: var(--ink);
    content: "";
    transform: scaleX(0);
    transition: transform 180ms ease;
}
header nav a:hover, header nav a:focus-visible { color: var(--ink); }
header nav a:hover::after, header nav a:focus-visible::after { transform: scaleX(1); }

section { padding: clamp(5rem, 10vw, 8rem) 0; }
section:nth-of-type(even) { background: var(--surface-soft); }
section h2 {
    margin-bottom: 2.5rem;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 650;
    letter-spacing: -.045em;
    line-height: 1.08;
    text-align: center;
}

#hero {
    display: flex;
    min-height: calc(100vh - 70px);
    align-items: center;
    overflow: hidden;
    background: radial-gradient(circle at 82% 24%, rgba(22, 104, 212, .1), transparent 30%), linear-gradient(180deg, #fff 0%, #f5f5f7 100%);
}
.hero-container {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, .8fr);
    align-items: center;
    gap: clamp(3rem, 8vw, 7rem);
}
.hero-eyebrow {
    display: inline-block;
    margin-bottom: 1.15rem;
    color: var(--accent);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}
#hero h2 {
    max-width: 700px;
    margin-bottom: 1.5rem;
    font-size: clamp(3.25rem, 7vw, 6.25rem);
    font-weight: 650;
    letter-spacing: -.065em;
    line-height: .95;
    text-align: left;
}
#hero p { max-width: 590px; margin-bottom: 2rem; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.55; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-buttons .btn, .hero-buttons .btn-outline {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: .75rem 1.35rem;
    border: 1px solid var(--ink);
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}
.hero-buttons .btn { background: var(--ink); color: #fff; }
.hero-buttons .btn-outline { background: transparent; color: var(--ink); }
.hero-buttons a:hover { transform: translateY(-2px); }
.hero-buttons .btn:hover { background: #32343a; }
.hero-buttons .btn-outline:hover { background: var(--ink); color: #fff; }

.profile-photo-wrap { position: relative; width: min(100%, 390px); aspect-ratio: 4 / 5; justify-self: center; }
.profile-photo-accent { position: absolute; inset: 18px -18px -18px 18px; border: 1px solid rgba(16, 17, 20, .2); border-radius: 26px; }
.profile-photo {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 22px;
    box-shadow: 0 20px 60px rgba(16, 17, 20, .1);
    object-fit: cover;
    object-position: 50% 44%;
}
.profile-photo-badge {
    position: absolute;
    z-index: 2;
    right: -24px;
    bottom: 28px;
    padding: .72rem 1rem;
    border: 1px solid rgba(16, 17, 20, .1);
    border-radius: 999px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 10px 30px rgba(16, 17, 20, .12);
    color: #303238;
    font-size: .7rem;
    font-weight: 650;
    letter-spacing: .02em;
    white-space: nowrap;
    backdrop-filter: blur(12px);
}

#about p, #contact > .container > p { max-width: 780px; margin-inline: auto; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); text-align: center; }
.card {
    display: grid;
    grid-template-columns: minmax(220px, .85fr) minmax(0, 1.4fr);
    gap: .5rem 3rem;
    margin-bottom: 1rem;
    padding: 2rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.card:hover { border-color: #c4c6ca; box-shadow: 0 16px 36px rgba(16, 17, 20, .07); transform: translateY(-2px); }
.card h3 { font-size: 1.08rem; line-height: 1.35; }
.card span { grid-column: 1; color: var(--muted); font-size: .82rem; }
.card ul { grid-column: 2; grid-row: 1 / span 2; padding-left: 1.15rem; color: #4f535a; }
.card li + li { margin-top: .35rem; }

.skills-container { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; }
.skill { padding: .65rem 1rem; border: 1px solid #d7d8dc; border-radius: 999px; background: #fff; color: #34363b; font-size: .87rem; font-weight: 550; }
.timeline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; max-width: 850px; margin-inline: auto; list-style: none; }
.timeline li { padding: 1.4rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: #3f4248; text-align: center; }
.timeline li:last-child:nth-child(odd) { grid-column: 1 / -1; }

.art-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.art-card { overflow: hidden; border-radius: 18px; background: #e8e9eb; }
.art-card img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 400ms ease; }
.art-card:hover img { transform: scale(1.035); }

#contact { text-align: center; }
#contact p a, .social-links a { color: var(--accent); font-weight: 600; text-decoration: none; }
#contact p a:hover, .social-links a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
.social-links { display: flex; justify-content: center; gap: 1.5rem; margin: 1.25rem 0 2.5rem; }
form { display: flex; max-width: 600px; margin-inline: auto; flex-direction: column; gap: .85rem; }
form input, form textarea {
    width: 100%;
    padding: .95rem 1rem;
    border: 1px solid #cfd1d5;
    border-radius: 12px;
    outline: none;
    background: #fff;
    color: var(--ink);
    font: inherit;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}
form textarea { min-height: 130px; resize: vertical; }
form input:focus, form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(22, 104, 212, .12); }
form button {
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 650;
    transition: background 180ms ease, transform 180ms ease;
}
form button:hover { background: #32343a; transform: translateY(-1px); }
footer { padding: 2rem 24px; border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: .8rem; text-align: center; }

@media (max-width: 800px) {
    .header-container { min-height: auto; padding: 1rem 0; flex-direction: column; gap: .75rem; }
    header nav { width: 100%; justify-content: center; gap: 1.15rem; }
    #hero { min-height: auto; padding: 5rem 0 6rem; }
    .hero-container { grid-template-columns: 1fr; gap: 4rem; }
    .hero-content, #hero h2 { text-align: center; }
    #hero p { margin-right: auto; margin-left: auto; }
    .hero-buttons { justify-content: center; }
    .profile-photo-wrap { width: min(76vw, 370px); }
    .card { grid-template-columns: 1fr; }
    .card span, .card ul { grid-column: 1; grid-row: auto; }
    .card ul { margin-top: .75rem; }
}

@media (max-width: 560px) {
    .container { width: min(100% - 32px, 1120px); }
    section { padding: 4.5rem 0; }
    header nav { overflow-x: auto; justify-content: flex-start; padding-bottom: .25rem; }
    #hero h2 { font-size: clamp(2.8rem, 15vw, 4rem); }
    .profile-photo-accent { inset: 12px -10px -12px 10px; }
    .profile-photo-badge { right: 50%; bottom: -20px; transform: translateX(50%); }
    .timeline, .art-grid { grid-template-columns: 1fr; }
    .timeline li:last-child:nth-child(odd) { grid-column: auto; }
    .social-links { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; }
}
