:root {
    color-scheme: dark;
    --bg: #0b0c10;
    --surface: #121419;
    --surface-raised: #181a20;
    --text: #f5f4f0;
    --muted: #9c9da6;
    --accent: #b6f36a;
    --line: rgba(255, 255, 255, 0.1);
    --display: "Space Grotesk", sans-serif;
    --body: "DM Sans", sans-serif;
    --content: 1120px;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: radial-gradient(ellipse at 82% 10%, rgba(119, 142, 73, 0.1), transparent 34rem), var(--bg);
    color: var(--text);
    font-family: var(--body);
    -webkit-font-smoothing: antialiased;
}

body::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
    background-size: 72px 72px;
    content: "";
    pointer-events: none;
    mask-image: linear-gradient(to bottom, black, transparent 78%);
}

a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }

.content-width {
    width: min(var(--content), calc(100% - 64px));
    margin-inline: auto;
}

.portfolio-header {
    position: absolute;
    z-index: 4;
    top: 0;
    left: 50%;
    display: flex;
    width: min(var(--content), calc(100% - 64px));
    height: 82px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    transform: translateX(-50%);
    animation: header-in .7s both;
}

.brand {
    font-family: var(--display);
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -.08em;
    text-decoration: none;
}

.brand span { color: var(--accent); }

.portfolio-nav {
    display: flex;
    align-items: center;
    gap: clamp(18px, 3vw, 38px);
}

.portfolio-nav a,
.intro-return,
.portfolio-footer > a:last-child {
    color: #c1c1c8;
    font-size: .79rem;
    text-decoration: none;
    transition: color .18s ease;
}

.portfolio-nav a:hover,
.intro-return:hover,
.portfolio-footer > a:last-child:hover { color: var(--accent); }

.portfolio-nav .nav-contact {
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px;
    color: var(--text);
}

.nav-contact span { margin-left: 7px; color: var(--accent); }
.intro-return { margin-left: 12px; }

.portfolio-hero {
    position: relative;
    display: grid;
    min-height: min(760px, 100svh);
    align-items: center;
    grid-template-columns: 1.07fr .93fr;
    padding-top: 100px;
    padding-bottom: 74px;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 20px 0;
    animation: content-in .8s .12s both;
}

.eyebrow,
.section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #b0b0b8;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.availability-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 14px rgba(182,243,106,.7);
    animation: glow 2.4s ease-in-out infinite;
}

h1,
h2,
h3,
p { margin-top: 0; }

h1,
.section-heading,
.contact-card h2 {
    font-family: var(--display);
    font-weight: 600;
}

h1 {
    margin: 27px 0 20px;
    font-size: clamp(3.8rem, 8vw, 6.4rem);
    letter-spacing: -.09em;
    line-height: .96;
}

.highlight {
    color: var(--accent);
    background: linear-gradient(105deg, #d6ff9e 5%, #aaf05a 50%, #71c898 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    max-width: 430px;
    margin-bottom: 27px;
    color: #a7a8b1;
    font-size: .96rem;
    line-height: 1.85;
}

.hero-links { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }

.button {
    display: inline-flex;
    min-height: 49px;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 0 18px;
    border-radius: 3px;
    font-size: .81rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.button:hover { transform: translateY(-3px); }
.button-green { background: var(--accent); box-shadow: 0 9px 28px rgba(182,243,106,.12); color: #11140c; }
.button-green:hover { background: #d2ff9f; box-shadow: 0 12px 32px rgba(182,243,106,.23); }

.underlined-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #dedee2;
    font-size: .82rem;
    text-decoration: none;
}
.underlined-link:hover { color: var(--accent); }

.hero-footnote {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 56px;
    color: #777983;
    font-size: .73rem;
}
.hero-footnote span { width: 27px; height: 1px; background: var(--accent); }

.hero-photo {
    position: relative;
    width: min(100%, 410px);
    aspect-ratio: .82;
    justify-self: end;
    margin: 12px 14px 0 0;
    animation: photo-in 1.1s .25s both;
}

.hero-photo img {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 46% 46% 3px 3px;
    object-fit: cover;
    object-position: 45% center;
    filter: saturate(.82);
}

.hero-photo::after {
    position: absolute;
    z-index: 1;
    inset: 43% 0 0;
    border-radius: 0 0 3px 3px;
    background: linear-gradient(transparent, rgba(7,9,8,.88));
    content: "";
    pointer-events: none;
}

.photo-outline {
    position: absolute;
    z-index: 0;
    inset: -14px -17px 13px 15px;
    border: 1px solid rgba(182,243,106,.27);
    border-radius: 46% 46% 3px 3px;
    transform: rotate(3deg);
}

.photo-label {
    position: absolute;
    z-index: 2;
    right: 24px;
    bottom: 24px;
    left: 24px;
    display: grid;
    gap: 6px;
}
.photo-label span { color: var(--accent); font-size: .59rem; font-weight: 700; letter-spacing: .13em; }
.photo-label strong { font-family: var(--display); font-size: 1rem; font-weight: 500; }

.photo-spark {
    position: absolute;
    z-index: 2;
    top: 13%;
    left: -9%;
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 1px solid rgba(182,243,106,.45);
    border-radius: 50%;
    background: #111318;
    color: var(--accent);
    font-size: 1.5rem;
    animation: bob 5s ease-in-out infinite;
}

.hero-side-note {
    position: absolute;
    right: -25px;
    bottom: 18%;
    color: #777983;
    font-size: .6rem;
    letter-spacing: .13em;
    writing-mode: vertical-rl;
}

.intro-strip {
    overflow: hidden;
    border-block: 1px solid rgba(255,255,255,.08);
    background: #121419;
}

.strip-track {
    display: flex;
    width: max-content;
    align-items: center;
    gap: clamp(22px, 4vw, 56px);
    padding-block: 19px;
    animation: marquee 32s linear infinite;
}

.strip-track span {
    color: #bdbdc4;
    font-family: var(--display);
    font-size: .85rem;
    letter-spacing: .01em;
}
.strip-track i { color: var(--accent); font-size: .8rem; font-style: normal; }

.section-space { padding-block: clamp(92px, 12vw, 150px); }
.section-label { color: #9697a0; }
.section-label span { color: var(--accent); font-family: var(--display); }

.about-layout {
    display: grid;
    grid-template-columns: 1.05fr .76fr;
    gap: 9%;
    margin-top: 43px;
}

.section-heading {
    margin-bottom: 0;
    font-size: clamp(2.8rem, 5.7vw, 5.05rem);
    letter-spacing: -.08em;
    line-height: 1.02;
}

.section-heading em,
.contact-card h2 em {
    color: var(--accent);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
}

.about-description { padding-top: 7px; }
.about-description p,
.skills-content > p,
.education-card p {
    color: #a5a6af;
    font-size: .88rem;
    line-height: 1.85;
}

.about-description .lead-copy { color: #e4e4e7; font-size: .98rem; }
.about-description strong { color: var(--text); }
.about-description .sample-note,
.sample-note { color: #777983; font-size: .72rem; font-style: italic; }

.text-arrow {
    display: inline-flex;
    gap: 10px;
    margin-top: 7px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(182,243,106,.45);
    color: var(--accent);
    font-size: .8rem;
    text-decoration: none;
}
.text-arrow:hover { border-color: var(--accent); }

.profile-facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 76px;
    border-block: 1px solid var(--line);
}

.profile-facts > div { display: grid; gap: 10px; padding: 22px 18px 22px 0; }
.profile-facts > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.fact-label { color: #777983; font-size: .59rem; font-weight: 700; letter-spacing: .12em; }
.profile-facts strong { font-size: .8rem; font-weight: 500; }

.work-section {
    border-block: 1px solid rgba(255,255,255,.08);
    background: linear-gradient(135deg, rgba(255,255,255,.025), transparent 50%), #101115;
}

.work-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.work-heading .section-heading { margin-top: 27px; }
.work-intro { max-width: 300px; margin-bottom: 5px; color: #9c9da6; font-size: .85rem; line-height: 1.8; }

.sample-banner {
    margin: 32px 0 17px;
    padding: 12px 15px;
    border: 1px solid rgba(182,243,106,.16);
    background: rgba(182,243,106,.035);
    color: #a8a9b1;
    font-size: .73rem;
    line-height: 1.6;
}
.sample-banner span { margin-right: 7px; color: var(--accent); }

.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 18px; }
.project-large { grid-column: 1 / -1; }
.project-art { position: relative; display: grid; overflow: hidden; min-height: 285px; place-items: center; }
.project-large .project-art { min-height: 380px; }
.art-one { background: #8d9f72; }
.art-two { background: #cda899; }
.art-three { background: #292a35; }

.art-label {
    position: absolute;
    z-index: 2;
    top: 17px;
    left: 19px;
    color: rgba(12,15,12,.73);
    font-size: .56rem;
    font-weight: 700;
    letter-spacing: .11em;
}
.art-three .art-label { color: #c8c8d1; }

.browser-mock {
    position: relative;
    width: 64%;
    height: 76%;
    overflow: hidden;
    padding: 20px 25px;
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 5px;
    background: #f1eee5;
    box-shadow: 0 20px 50px rgba(0,0,0,.2);
    color: #22241d;
    transform: translateY(17px) rotate(-2deg);
    transition: transform .35s ease;
}
.project-card:hover .browser-mock { transform: translateY(10px) rotate(0); }
.browser-dots { display: flex; gap: 4px; }
.browser-dots i { width: 5px; height: 5px; border-radius: 50%; background: #9a9c8c; }
.mock-title { position: relative; z-index: 1; margin-top: 30px; font-family: var(--display); font-size: clamp(1.7rem, 4vw, 3.2rem); font-weight: 600; letter-spacing: -.08em; line-height: .95; }
.mock-title em { color: #728450; font-family: Georgia, serif; font-weight: 400; }
.mock-graphic { position: absolute; right: 8%; bottom: -34%; width: 38%; aspect-ratio: 1; border: 1px solid rgba(77,88,56,.35); border-radius: 50%; background: radial-gradient(circle at 34% 30%, #d2e7a4, #849663 64%, #586444); }
.mock-button { position: absolute; bottom: 18px; left: 25px; width: 72px; height: 7px; border-radius: 3px; background: #9aa782; }

.phone-mock {
    position: relative;
    display: flex;
    width: 146px;
    height: 225px;
    flex-direction: column;
    align-items: center;
    padding: 13px;
    border: 4px solid #25251f;
    border-radius: 24px;
    background: #efe7dd;
    box-shadow: 0 24px 35px rgba(0,0,0,.22);
    transform: rotate(7deg);
    transition: transform .35s ease;
}
.project-card:hover .phone-mock { transform: rotate(0) translateY(-5px); }
.phone-top { width: 39px; height: 4px; border-radius: 4px; background: #57544e; }
.phone-copy { align-self: flex-start; margin-top: 31px; color: #69675e; font-family: var(--display); font-size: .77rem; line-height: 1.4; }
.phone-copy b { color: #25251f; font-size: 1rem; }
.phone-circle { display: grid; width: 76px; height: 76px; place-items: center; align-self: flex-end; margin-top: 13px; border-radius: 50%; background: #b6ca8b; color: #26301a; font-size: 1.6rem; }
.phone-bottom { position: absolute; bottom: 10px; width: 33px; height: 3px; border-radius: 5px; background: #77756d; }
.art-orbit { position: absolute; width: 260px; height: 145px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; transform: rotate(-35deg); }

.code-mock {
    display: flex;
    width: min(72%, 370px);
    min-height: 130px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid rgba(255,255,255,.15);
    background: rgba(9,10,14,.62);
    box-shadow: 0 22px 55px rgba(0,0,0,.26);
    font-family: var(--display);
    font-size: clamp(1.1rem, 3vw, 2rem);
    letter-spacing: -.06em;
    transform: rotate(-3deg);
    transition: transform .35s ease;
}
.project-card:hover .code-mock { transform: rotate(0); }
.code-mock span { color: #b6f36a; }
.code-mock b { color: #e5bd96; font-weight: 500; }
.code-mock i { color: #c5b6ec; font-style: normal; }
.code-cursor { width: 2px; height: 28px; background: #b6f36a; animation: blink 1s steps(2) infinite; }
.art-cross { position: absolute; right: 12%; bottom: 13%; color: rgba(182,243,106,.55); font-size: 2rem; }

.project-info { display: flex; align-items: start; justify-content: space-between; gap: 14px; padding: 17px 2px 0; }
.project-info h3 { margin: 0 0 6px; font-family: var(--display); font-size: 1.05rem; font-weight: 500; letter-spacing: -.04em; }
.project-info p { max-width: 440px; margin-bottom: 0; color: #8f9099; font-size: .76rem; line-height: 1.65; }
.sample-tag { display: inline-block; margin-left: 6px; padding: 4px 6px; border: 1px solid rgba(182,243,106,.25); color: var(--accent); font-family: var(--body); font-size: .49rem; font-weight: 700; letter-spacing: .1em; vertical-align: 2px; }
.sample-note { color: #777983; font-size: .72rem; font-style: italic; line-height: 1.65; }
.project-arrow { color: var(--accent); }

.profiles-section { border-bottom: 1px solid rgba(255,255,255,.08); }
.profiles-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-top: 27px; }
.profiles-heading .section-heading { margin: 0; }
.profiles-heading .section-heading em { color: var(--accent); font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.profiles-intro { max-width: 335px; margin-bottom: 5px; color: #9c9da6; font-size: .85rem; line-height: 1.8; }
.profiles-section .sample-banner { margin-top: 30px; }
.profile-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.profile-tile { min-width: 0; }
.profile-link-card { width: 100%; min-width: 0; min-height: 118px; display: flex; align-items: center; gap: 15px; padding: 19px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.018); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: transform .2s ease, border-color .2s ease, background-color .2s ease; }
.profile-link-card:hover { transform: translateY(-3px); border-color: rgba(182,243,106,.45); background: rgba(182,243,106,.035); }
.profile-link-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.profile-icon { display: grid; width: 43px; height: 43px; flex: 0 0 43px; place-items: center; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; color: var(--accent); font-family: var(--display); font-size: .7rem; font-weight: 700; }
.leetcode-icon { color: #f5b84b; }
.hackerrank-icon { color: #62d991; }
.linkedin-icon { border-color: rgba(91,157,221,.38); color: #79b9f1; font-family: var(--body); font-size: .95rem; }
.youtube-icon { border-color: rgba(255,91,91,.38); color: #ff7777; font-size: .9rem; }
.profile-link-copy { display: grid; min-width: 0; gap: 4px; }
.profile-link-copy strong { font-family: var(--display); font-size: .95rem; font-weight: 500; }
.profile-link-copy small { overflow: hidden; color: #92939c; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.profile-handle { overflow: hidden; color: #777983; font-size: .63rem; text-overflow: ellipsis; white-space: nowrap; }
.profile-arrow { align-self: center; flex: 0 0 auto; margin-left: auto; color: #85868f; font-size: .68rem; transition: color .18s ease; }
.profile-link-card:hover .profile-arrow,
.profile-link-card[aria-expanded="true"] .profile-arrow { color: var(--accent); }
.profile-inline-page { margin-top: 8px; animation: profile-page-in .2s ease-out both; }
.profile-inline-page[hidden] { display: none; }
.mini-profile-page { overflow: hidden; padding: 16px; border: 1px solid rgba(182,243,106,.25); background: linear-gradient(145deg, rgba(182,243,106,.055), transparent 60%), #121419; }
.mini-profile-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.mini-profile-identity { display: flex; min-width: 0; align-items: center; gap: 10px; }
.mini-profile-icon { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border: 1px solid rgba(182,243,106,.3); border-radius: 50%; color: var(--accent); font-family: var(--display); font-size: .7rem; font-weight: 700; }
.mini-profile-identity h3 { overflow: hidden; margin: 0 0 3px; font-family: var(--display); font-size: .85rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.mini-profile-identity p { overflow: hidden; margin: 0; color: #898a93; font-size: .59rem; text-overflow: ellipsis; white-space: nowrap; }
.mini-profile-status { padding: 5px 6px; border: 1px solid rgba(255,255,255,.1); color: #92939c; font-size: .47rem; font-weight: 700; letter-spacing: .06em; white-space: nowrap; }
.mini-profile-status.is-live { border-color: rgba(182,243,106,.23); color: var(--accent); }
.mini-profile-description { margin: 12px 0; color: #a7a8b1; font-size: .68rem; line-height: 1.6; }
.mini-profile-content { display: grid; gap: 9px; }
.mini-profile-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.mini-profile-stats > div { display: grid; gap: 4px; padding: 8px 6px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.02); text-align: center; }
.leetcode-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mini-profile-stats strong { color: var(--accent); font-family: var(--display); font-size: .88rem; font-weight: 500; }
.mini-profile-stats span { color: #85868f; font-size: .51rem; }
.mini-profile-section-title { margin: 4px 0 0; color: #c8c8cf; font-family: var(--display); font-size: .66rem; font-weight: 500; }
.mini-profile-repos { display: grid; gap: 5px; }
.mini-profile-repo { display: grid; gap: 3px; min-width: 0; padding: 8px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.02); text-decoration: none; }
.mini-profile-repo:hover { border-color: rgba(182,243,106,.38); }
.mini-profile-repo strong { overflow: hidden; color: var(--accent); font-size: .64rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.mini-profile-repo span,
.mini-profile-note { margin: 0; color: #8d8e97; font-size: .57rem; line-height: 1.55; }
.mini-profile-info { display: grid; gap: 5px; padding: 10px; border: 1px solid rgba(255,255,255,.08); }
.mini-profile-info span { color: #888993; font-size: .53rem; text-transform: uppercase; }
.mini-profile-info strong { overflow-wrap: anywhere; color: #d3d3d8; font-size: .65rem; font-weight: 500; }
.profile-open-link { min-height: 37px; gap: 10px; justify-self: start; margin-top: 5px; padding-inline: 10px; font-size: .62rem; }
@keyframes profile-page-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

.skills-layout {
    display: grid;
    grid-template-columns: .8fr 1fr;
    gap: 10%;
    margin-top: 43px;
}
.skills-content > p:first-child { max-width: 500px; }
.skill-groups { margin-top: 27px; }
.skill-group { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding-block: 17px; border-top: 1px solid var(--line); }
.skill-group > span { padding-top: 7px; color: #777983; font-size: .6rem; font-weight: 700; letter-spacing: .12em; }
.skill-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-pills > span { padding: 7px 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 99px; color: #d2d2d7; font-size: .68rem; }
.skill-pills small { color: var(--accent); font-size: .55rem; }

.education-section { border-block: 1px solid rgba(255,255,255,.08); background: #101115; }
.education-layout { display: grid; grid-template-columns: 1fr .8fr; align-items: start; gap: 10%; }
.education-layout .section-heading { margin-top: 31px; }
.education-card { position: relative; margin-top: 36px; padding: 0 0 0 25px; border-left: 1px solid rgba(182,243,106,.48); }
.timeline-dot { position: absolute; top: 2px; left: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 13px rgba(182,243,106,.5); }
.education-card h3 { margin: 14px 0 7px; font-family: var(--display); font-size: 1.65rem; font-weight: 500; letter-spacing: -.06em; }
.education-card p { margin-bottom: 13px; font-size: .82rem; }
.education-card .sample-tag { margin: 0; }
.academic-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 21px; }
.academic-results > div { display: grid; gap: 7px; padding: 14px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.025); }
.academic-results span { color: #888993; font-size: .63rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.academic-results strong { color: var(--accent); font-family: var(--display); font-size: 1.55rem; font-weight: 500; letter-spacing: -.06em; }
.academic-results small { margin-left: 2px; font-size: .8rem; }

.contact-card {
    position: relative;
    overflow: hidden;
    padding: clamp(34px, 7vw, 76px);
    border: 1px solid rgba(182,243,106,.23);
    background: radial-gradient(ellipse at 90% 20%, rgba(182,243,106,.13), transparent 28rem), #121419;
}
.contact-card > *:not(.contact-flower) { position: relative; z-index: 1; }
.contact-layout { display: grid; grid-template-columns: .9fr 1fr; gap: clamp(32px, 7vw, 82px); align-items: start; }
.contact-card h2 { margin: 30px 0 16px; font-size: clamp(3rem, 6.5vw, 5.8rem); letter-spacing: -.085em; line-height: .98; }
.contact-copy > p { max-width: 430px; margin-bottom: 21px; color: #a3a4ac; font-size: .86rem; line-height: 1.8; }
.email-link { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); font-size: .9rem; text-decoration: none; }
.email-link:hover { color: #d2ff9f; }
.contact-form { position: relative; display: grid; gap: 9px; }
.contact-form label { margin-top: 7px; color: #d4d4d9; font-size: .72rem; font-weight: 600; }
.contact-form label span { color: #777983; font-size: .66rem; font-weight: 400; }
.contact-form input,
.contact-form select,
.contact-form textarea { width: 100%; padding: 12px 13px; border: 1px solid rgba(255,255,255,.13); border-radius: 2px; outline: none; background: rgba(8,9,12,.48); color: var(--text); font: inherit; font-size: .78rem; transition: border-color .2s ease, background-color .2s ease; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #777983; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: rgba(182,243,106,.7); background: rgba(8,9,12,.72); }
.contact-form select { min-height: 42px; }
.contact-form select option { background: #121419; color: var(--text); }
.contact-form textarea { min-height: 108px; resize: vertical; }
.website-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.submit-button { justify-self: start; border: 0; cursor: pointer; font-family: var(--body); }
.button-mail-secondary { border: 1px solid rgba(255,255,255,.2); background: transparent; color: var(--text); cursor: pointer; }
.button-mail-secondary:hover { border-color: var(--accent); color: var(--accent); }
.submit-button:disabled { cursor: wait; opacity: .7; transform: none; }
.form-status { margin: 4px 0 0; font-size: .78rem; line-height: 1.6; }
.form-status[hidden] { display: none; }
.form-status.is-success { color: var(--accent); }
.form-status.is-error { color: #ff9a91; }
.contact-form .form-note { margin: 3px 0 0; color: #777983; font-size: .66rem; line-height: 1.6; }
.contact-flower { position: absolute; top: 48%; right: 5%; color: rgba(182,243,106,.14); font-size: clamp(10rem, 25vw, 19rem); line-height: 1; transform: translateY(-50%); animation: rotate 35s linear infinite; }

.portfolio-footer { display: flex; min-height: 88px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); }
.portfolio-footer p { margin: 0; color: #777983; font-size: .73rem; }
.portfolio-footer p span { margin-left: 5px; color: var(--accent); }
.privacy-link { color: #777983; font-size: .73rem; text-decoration: none; transition: color .18s ease; }
.privacy-link:hover { color: var(--accent); }

.privacy-content { min-height: 76vh; padding-top: 145px; padding-bottom: 95px; }
.privacy-content > .section-heading { margin: 32px 0 42px; }
.privacy-copy { max-width: 720px; margin-bottom: 30px; }
.privacy-copy section + section { margin-top: 27px; padding-top: 24px; border-top: 1px solid var(--line); }
.privacy-copy h2 { margin-bottom: 9px; font-family: var(--display); font-size: 1.05rem; font-weight: 500; letter-spacing: -.03em; }
.privacy-copy p { margin-bottom: 0; color: #a5a6af; font-size: .84rem; line-height: 1.8; }
.privacy-copy a { color: var(--accent); text-decoration: none; }

.js-enabled .reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.2,1); }
.js-enabled .reveal.is-visible { opacity: 1; transform: translateY(0); }
.project-card:nth-child(2) { transition-delay: 80ms; }
.project-card:nth-child(3) { transition-delay: 160ms; }

@keyframes header-in { from { opacity: 0; transform: translate(-50%,-10px); } to { opacity: 1; transform: translate(-50%,0); } }
@keyframes content-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes photo-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes glow { 50% { box-shadow: 0 0 19px rgba(182,243,106,.95); } }
@keyframes bob { 50% { transform: translateY(-8px) rotate(8deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes rotate { to { transform: translateY(-50%) rotate(360deg); } }

@media (max-width: 850px) {
    .portfolio-hero { grid-template-columns: 1fr .76fr; padding-top: 145px; }
    h1 { font-size: clamp(3.6rem, 8vw, 5.2rem); }
    .hero-photo { width: min(100%, 340px); margin-right: 11px; }
    .profile-facts { grid-template-columns: repeat(2, 1fr); }
    .profile-facts > div:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
    .profile-facts > div:nth-child(4) { border-top: 1px solid var(--line); }
}

@media (max-width: 620px) {
    html { scroll-padding-top: 68px; }
    .content-width,
    .portfolio-header { width: calc(100% - 40px); }
    .portfolio-header { height: 68px; }
    .portfolio-nav { gap: 13px; }
    .portfolio-nav a { font-size: .68rem; }
    .portfolio-nav a:nth-child(3) { display: none; }
    .portfolio-nav a[href="#profiles"] { display: none; }
    .portfolio-nav .nav-contact { padding: 8px 10px; }
    .intro-return { display: none; }
    .brand { font-size: 1.3rem; }
    .portfolio-hero { min-height: auto; grid-template-columns: 1fr; padding-top: 116px; padding-bottom: 78px; }
    .eyebrow { font-size: .6rem; letter-spacing: .075em; }
    h1 { margin-top: 22px; font-size: clamp(3.45rem, 14vw, 5rem); }
    .hero-description { max-width: 420px; font-size: .9rem; }
    .hero-links { gap: 17px; }
    .hero-footnote { margin-top: 34px; }
    .hero-photo { width: min(76%, 340px); justify-self: center; margin: 43px 0 0; }
    .photo-spark { left: -12%; width: 46px; height: 46px; }
    .hero-side-note { right: 0; bottom: 11%; font-size: .52rem; }
    .strip-track { padding-block: 16px; }
    .section-space { padding-block: 88px; }
    .about-layout,
    .skills-layout,
    .education-layout { grid-template-columns: 1fr; gap: 27px; margin-top: 32px; }
    .section-heading { font-size: clamp(2.7rem, 11vw, 4rem); }
    .about-description .lead-copy { font-size: .92rem; }
    .about-description p,
    .skills-content > p,
    .education-card p { font-size: .83rem; }
    .profile-facts { margin-top: 46px; }
    .profile-facts > div { padding-block: 17px; }
    .profile-facts strong { font-size: .71rem; }
    .work-heading { display: block; }
    .work-heading .section-heading { margin-top: 24px; }
    .work-intro { margin-top: 16px; }
    .sample-banner { margin-top: 25px; }
    .project-grid { grid-template-columns: 1fr; gap: 27px; }
    .project-large { grid-column: auto; }
    .project-art,
    .project-large .project-art { min-height: 280px; }
    .browser-mock { width: 73%; height: 75%; }
    .mock-title { margin-top: 26px; }
    .profiles-heading { display: block; margin-top: 24px; }
    .profiles-intro { margin-top: 14px; }
    .profile-links { grid-template-columns: 1fr; gap: 9px; }
    .profile-link-card { min-height: 104px; padding: 15px; }
    .mini-profile-page { padding: 12px; }
    .mini-profile-status { font-size: .43rem; }
    .skills-layout { margin-top: 32px; }
    .skill-group { grid-template-columns: 78px 1fr; gap: 8px; }
    .skill-pills { gap: 6px; }
    .skill-pills > span { padding: 6px 8px; font-size: .62rem; }
    .education-layout .section-heading { margin-top: 24px; }
    .education-card { margin: 2px 0 0 4px; }
    .contact-card { padding: 33px 24px; }
    .contact-layout { grid-template-columns: 1fr; gap: 32px; }
    .contact-card h2 { font-size: clamp(2.9rem, 12vw, 4.5rem); }
    .contact-flower { top: 37%; right: -12%; font-size: 9rem; }
    .portfolio-footer { min-height: 78px; gap: 10px; }
    .portfolio-footer p { display: none; }
    .portfolio-footer > a:last-child { font-size: .71rem; }
    .privacy-content { min-height: 76vh; padding-top: 120px; padding-bottom: 75px; }
    .privacy-content > .section-heading { margin: 26px 0 34px; }
    .portfolio-footer .privacy-link { font-size: .71rem; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}