@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #07110f;
    --panel: rgba(10, 21, 19, .84);
    --text: #f2f8f6;
    --muted: #9aada8;
    --line: rgba(255, 255, 255, .12);
    --accent: #64f3bd;
    --accent-dark: #072b20;
    --sans: 'Manrope', 'Segoe UI', sans-serif;
    --body: 'DM Sans', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--bg); }

body {
    min-height: 100svh;
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 15%, rgba(31, 107, 82, .2), transparent 30%),
        radial-gradient(circle at 95% 90%, rgba(19, 75, 65, .22), transparent 28%),
        var(--bg);
    font-family: var(--body);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.noise {
    position: fixed;
    inset: 0;
    opacity: .035;
    pointer-events: none;
    z-index: 5;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.aurora {
    position: fixed;
    width: 26rem;
    height: 26rem;
    border-radius: 50%;
    filter: blur(110px);
    opacity: .12;
    pointer-events: none;
}

.aurora--one { top: -14rem; right: -5rem; background: var(--accent); }
.aurora--two { bottom: -16rem; left: 20%; background: #2ca4a0; }

.profile-shell {
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: clamp(1rem, 4vw, 3.5rem);
}

.profile-card {
    position: relative;
    width: min(1120px, 100%);
    min-height: min(720px, calc(100svh - 7rem));
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(28rem, 1.08fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--panel);
    box-shadow: 0 40px 100px rgba(0, 0, 0, .4), inset 0 1px rgba(255, 255, 255, .04);
    backdrop-filter: blur(20px);
    animation: card-in .9s cubic-bezier(.2, .8, .2, 1) both;
}

.portrait-panel { position: relative; min-height: 620px; overflow: hidden; background: #0d1a18; }

.portrait-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: inherit;
    pointer-events: none;
}

.portrait-panel picture, .portrait-panel img { width: 100%; height: 100%; display: block; }

.portrait-panel img {
    position: absolute;
    inset: 0;
    object-fit: cover;
    object-position: center;
    filter: saturate(.92) contrast(1.03);
    transition: transform 1.1s cubic-bezier(.2, .8, .2, 1), filter .5s ease;
}

.profile-card:hover .portrait-panel img { transform: scale(1.025); filter: saturate(1) contrast(1.04); }

.portrait-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 8, 7, .22), transparent 38%, rgba(2, 8, 7, .7));
}

.status-pill {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .56rem .85rem;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 99px;
    background: rgba(4, 13, 11, .56);
    backdrop-filter: blur(12px);
    font: 600 .68rem/1 var(--sans);
    letter-spacing: .1em;
    text-transform: uppercase;
}

.status-pill span {
    width: .45rem;
    height: .45rem;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(100, 243, 189, .12), 0 0 16px var(--accent);
}

.portrait-mark {
    position: absolute;
    left: 1.6rem;
    bottom: 1.3rem;
    margin: 0;
    z-index: 2;
    font: 700 1rem/1 var(--sans);
    letter-spacing: -.04em;
}

.portrait-mark span { color: var(--accent); font-weight: 500; }

.content-panel {
    display: flex;
    flex-direction: column;
    padding: clamp(2.2rem, 5vw, 4.6rem);
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 48px 48px;
}

.panel-view {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    animation: panel-in .38s cubic-bezier(.2, .8, .2, 1) both;
}

.panel-view[hidden] { display: none; }

.panel-view--profile { justify-content: center; }
.panel-view--profile .intro { margin-top: 0; }
.panel-view--profile .actions { margin-top: clamp(2rem, 5vh, 3rem); padding-top: 0; }

.eyebrow {
    display: flex;
    align-items: center;
    gap: .8rem;
    color: var(--muted);
    font: 600 .68rem/1 var(--sans);
    letter-spacing: .18em;
    text-transform: uppercase;
}

.eyebrow span {
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

.intro { margin-top: clamp(2rem, 8vh, 5rem); }

h1 {
    margin: 0;
    font: 700 clamp(3.8rem, 7vw, 6.6rem)/.85 var(--sans);
    letter-spacing: -.075em;
}

.dot { color: var(--accent); }

.role {
    margin: 1.7rem 0 0;
    color: var(--text);
    font: 600 clamp(.76rem, 1.5vw, .92rem)/1.4 var(--sans);
    letter-spacing: .13em;
    text-transform: uppercase;
}

.role span { margin: 0 .45rem; color: var(--accent); }

.bio {
    max-width: 33rem;
    margin: clamp(2rem, 5vh, 3.2rem) 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.7vw, 1.14rem);
    line-height: 1.7;
}

.interests {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

.interests li {
    padding: .5rem .75rem;
    border: 1px solid var(--line);
    border-radius: 99px;
    color: #c8d5d1;
    font: 500 .72rem/1 var(--sans);
    letter-spacing: .07em;
    text-transform: uppercase;
}

.actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
    padding-top: 2.5rem;
}

.contact-button {
    display: inline-flex;
    min-height: 3.75rem;
    align-items: center;
    justify-content: space-between;
    gap: 2.8rem;
    padding: 0 1.25rem 0 1.4rem;
    border: 0;
    border-radius: 10px;
    color: var(--accent-dark);
    background: var(--accent);
    text-decoration: none;
    font: 700 .86rem/1 var(--sans);
    letter-spacing: .04em;
    cursor: pointer;
    box-shadow: 0 12px 32px rgba(100, 243, 189, .12);
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.contact-button svg { width: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .25s ease; }
.contact-button:hover { transform: translateY(-3px); background: #82facb; box-shadow: 0 16px 40px rgba(100, 243, 189, .2); }
.contact-button:hover svg { transform: translateX(4px); }

.socials { display: flex; gap: .55rem; }

.socials a {
    width: 3.25rem;
    height: 3.25rem;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: #c7d4d0;
    transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}

.socials a:hover { color: var(--accent); border-color: rgba(100, 243, 189, .45); background: rgba(100, 243, 189, .06); transform: translateY(-3px); }
.socials svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.socials .fill { fill: currentColor; stroke: none; }

footer {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-top: 2.5rem;
    color: #63736f;
    font: 500 .65rem/1 var(--sans);
    letter-spacing: .12em;
    text-transform: uppercase;
}

.footer-line { width: 2.5rem; height: 1px; background: var(--line); }

.back-button {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .45rem 0;
    border: 0;
    color: var(--muted);
    background: transparent;
    font: 600 .7rem/1 var(--sans);
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color .2s ease;
}

.back-button:hover { color: var(--accent); }
.back-button svg { width: 1rem; fill: none; stroke: currentColor; stroke-width: 1.8; }

.contact-heading { margin-top: clamp(1.6rem, 5vh, 3.2rem); }

.contact-kicker {
    margin: 0 0 .8rem;
    color: var(--accent);
    font: 600 .68rem/1 var(--sans);
    letter-spacing: .18em;
    text-transform: uppercase;
}

.contact-heading h2 {
    margin: 0;
    font: 700 clamp(2.6rem, 5vw, 4.3rem)/.95 var(--sans);
    letter-spacing: -.065em;
}

.contact-heading > p:last-child {
    margin: 1rem 0 0;
    color: var(--muted);
    font-size: .98rem;
    line-height: 1.55;
}

.contact-form { display: grid; gap: 1rem; margin-top: 2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form label { display: grid; gap: .48rem; }

.contact-form label > span {
    color: #b7c6c1;
    font: 600 .68rem/1 var(--sans);
    letter-spacing: .1em;
    text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 9px;
    outline: 0;
    color: var(--text);
    background: rgba(1, 8, 6, .42);
    font: 400 1rem/1.4 var(--body);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.contact-form input { min-height: 3.25rem; padding: 0 .9rem; }
.contact-form textarea { min-height: 8rem; padding: .8rem .9rem; resize: vertical; }

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(100, 243, 189, .7);
    background: rgba(1, 8, 6, .62);
    box-shadow: 0 0 0 3px rgba(100, 243, 189, .08);
}

.submit-button {
    min-height: 3.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.15rem 0 1.3rem;
    border: 0;
    border-radius: 9px;
    color: var(--accent-dark);
    background: var(--accent);
    font: 700 .82rem/1 var(--sans);
    letter-spacing: .04em;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
}

.submit-button:hover { transform: translateY(-2px); background: #82facb; }
.submit-button svg { width: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }

.privacy-note {
    margin: -.25rem 0 0;
    color: #667872;
    font-size: .72rem;
    line-height: 1.4;
}

.website-field {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    white-space: nowrap !important;
}

.form-notice {
    margin-top: 1.3rem;
    padding: .8rem .95rem;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 9px;
    font-size: .86rem;
    line-height: 1.45;
}

.form-notice--success { color: #9af8d2; border-color: rgba(100, 243, 189, .3); background: rgba(100, 243, 189, .07); }
.form-notice--error { color: #ffc0b8; border-color: rgba(255, 112, 96, .3); background: rgba(255, 112, 96, .07); }

a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

@keyframes card-in {
    from { opacity: 0; transform: translateY(18px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes panel-in {
    from { opacity: 0; transform: translateX(14px); }
    to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 860px) {
    .profile-shell { display: block; padding: 0; }
    .profile-card { min-height: 100svh; grid-template-columns: 1fr; border: 0; border-radius: 0; }
    .portrait-panel { min-height: clamp(23rem, 68vh, 37rem); }
    .portrait-panel img { object-position: center 28%; }
    .content-panel { min-height: 38rem; padding: 2rem clamp(1.25rem, 6vw, 3rem) max(2rem, env(safe-area-inset-bottom)); }
    .intro { margin-top: 3.6rem; }
    h1 { font-size: clamp(3.8rem, 16vw, 6rem); }
}

@media (max-width: 540px) {
    .portrait-panel { min-height: 58svh; max-height: 34rem; }
    .status-pill { top: max(1rem, env(safe-area-inset-top)); left: 1rem; }
    .portrait-mark { left: 1rem; }
    .content-panel { min-height: 42rem; }
    .intro { margin-top: 3.2rem; }
    .role { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; }
    .role span { margin: 0 .2rem; }
    .form-row { grid-template-columns: 1fr; }
    .contact-heading { margin-top: 1.4rem; }
    .contact-heading h2 { font-size: 3rem; }
    .contact-form { margin-top: 1.5rem; }
    .actions { align-items: stretch; flex-direction: column; }
    .contact-button { width: 100%; min-height: 4rem; }
    .socials { width: 100%; }
    .socials a { flex: 1; height: 3.5rem; }
    footer { margin-top: 2rem; }
}

@media (max-width: 360px) {
    h1 { font-size: 3.45rem; }
    .content-panel { padding-inline: 1rem; }
    .bio { font-size: .98rem; }
}

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