.content {
    min-width: 0;
    padding-bottom: 90px;
}

.content section {
    position: relative;
    margin-bottom: clamp(110px, 11vw, 170px);
}

.content section + section::before {
    content: "";
    position: absolute;
    left: 0;
    top: -58px;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--line), transparent 85%);
}

.paragraph,
.paragraphwhite {
    font-size: clamp(1rem, 1.05vw, 1.12rem);
    line-height: 1.82;
    margin: 22px 0 0;
    max-width: 48em;
}

.paragraph { color: var(--muted); }
.paragraphwhite { color: #edf3f7; }

.titlewhite,
.titlegray {
    margin: 0;
    font-family: "Manrope", sans-serif;
    text-transform: uppercase;
}

.titlewhite {
    color: var(--ink);
    font-size: clamp(2.6rem, 4.5vw, 4.5rem);
    font-weight: 800;
    line-height: .94;
    letter-spacing: -.06em;
}

.titlegray {
    color: #71808e;
    font-size: clamp(.88rem, 1.05vw, 1rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .16em;
}

.content .titlewhite {
    position: relative;
    width: fit-content;
}

.content .titlewhite::after {
    content: "";
    display: block;
    width: 52px;
    height: 3px;
    margin-top: 18px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    box-shadow: 0 0 18px rgba(87,184,255,.15);
    transition: width .35s ease;
}

.content .titlewhite:hover::after { width: 92px; }

.subtitle { margin-top: 50px; }

.education-entries span {
    display: block;
    color: #a8b4bf;
}

.education-entries span + span { margin-top: 8px; }
.education-entries .paragraphwhite { color: #f2f6f9; }

.figure {
    margin: 34px 0 42px;
    padding: 0;
}

.picture1,
.picture2 {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 26px;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-md), 0 0 34px rgba(87,184,255,.045);
    transition: transform .55s cubic-bezier(.2,.8,.2,1), box-shadow .55s ease, border-color .4s ease, filter .5s ease;
}

.picture1 { aspect-ratio: 16 / 9; object-position: 50% 45%; }
.picture2 { aspect-ratio: 16 / 9; }

.picture1:hover,
.picture2:hover {
    transform: translateY(-6px) scale(1.006);
    border-color: rgba(87,184,255,.18);
    box-shadow: var(--shadow-lg), 0 0 48px rgba(87,184,255,.09);
    filter: brightness(1.03) saturate(1.03);
}

#goals .figure { margin-bottom: 8px; }

.education-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.education-list li {
    padding: 7px 14px;
    color: #b6c1ca;
    background: rgba(255,255,255,.025);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: .83rem;
    line-height: 1.5;
    transition: color .22s ease, background .22s ease, border-color .22s ease, transform .22s ease;
}

.education-list li:hover {
    color: #eff6fa;
    background: rgba(87,184,255,.07);
    border-color: rgba(87,184,255,.22);
    transform: translateY(-1px);
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 44px;
}

.skills-box {
    position: relative;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, rgba(18,27,37,.96), rgba(11,17,24,.96));
    box-shadow: var(--shadow-sm), 0 0 26px rgba(87,184,255,.045);
    overflow: hidden;
    transition: transform .32s ease, border-color .32s ease, box-shadow .32s ease;
}

.skills-box::before {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    top: -95px;
    right: -72px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(87,184,255,.12), transparent 70%);
    transition: transform .5s ease;
}

.skills-box:hover {
    transform: translateY(-5px);
    border-color: rgba(87,184,255,.18);
    box-shadow: var(--shadow-md), 0 0 42px rgba(87,184,255,.085);
}

.skills-box:hover::before { transform: scale(1.45); }

.skills-box .titlegray {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--line);
}

.skills-list {
    margin: 0;
    padding-left: 20px;
    color: #d7e0e7;
    font-size: .96rem;
    line-height: 1.75;
}

.skills-list li { margin-bottom: 9px; }
.skills-list li:last-child { margin-bottom: 0; }
.skills-list li::marker { color: var(--blue); }
.skills-list strong { font-weight: 650; color: #edf5f9; }

.experience-card {
    max-width: none;
    margin-top: 18px;
    padding: 20px 24px;
    line-height: 1.7;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255,255,255,.028), rgba(255,255,255,.014));
    border: 1px solid var(--line);
    border-left: 2px solid var(--blue);
    box-shadow: 0 22px 48px rgba(0,0,0,.24), 0 0 28px rgba(87,184,255,.045);
}

.contact-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 30px;
    border-top: 1px solid var(--line);
}

.contact-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 23px 4px;
    color: #e8eff4;
    text-decoration: none;
    font-family: "Manrope", sans-serif;
    font-size: clamp(1.2rem, 2.2vw, 1.9rem);
    font-weight: 750;
    letter-spacing: -.035em;
    border-bottom: 1px solid var(--line);
    transition: color .24s ease, padding-left .24s ease, background .24s ease;
}

.contact-link i {
    color: var(--blue-bright);
    font-size: .7em;
}

.contact-link:hover {
    color: #ffffff;
    padding-left: 10px;
    background: linear-gradient(90deg, rgba(87,184,255,.045), transparent 80%);
}

.content footer {
    padding-top: 30px;
    border-top: 1px solid var(--line);
}

.privacy-notice {
    max-width: 620px;
    margin: 0;
    color: #586675;
    font-size: .72rem;
    line-height: 1.7;
}

.js-ready .fade-in {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity .72s ease var(--fade-delay, 0ms),
        transform .72s cubic-bezier(.2,.8,.2,1) var(--fade-delay, 0ms);
}

.js-ready .fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1100px) {
    .skills-container { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
    .content { padding-bottom: 55px; }
    .content section { margin-bottom: 88px; }
    .content section + section::before { top: -42px; }
    .paragraph, .paragraphwhite { font-size: 1rem; line-height: 1.72; }
    .titlewhite { font-size: clamp(2.35rem, 11vw, 3.35rem); }
    .titlewhite::after { width: 40px; height: 2px; margin-top: 14px; }
    .titlegray { font-size: .82rem; }
    .figure { margin: 28px 0 34px; }
    .picture1, .picture2 { border-radius: 20px; }
    .skills-container { gap: 18px; margin-top: 32px; }
    .skills-box { padding: 24px 20px; border-radius: 22px; }
    .skills-box:hover, .picture1:hover, .picture2:hover { transform: none; }
    .skills-list { font-size: .94rem; }
    .contact-link { font-size: 1.32rem; padding: 20px 2px; }
    .contact-link:hover { padding-left: 5px; }
    .privacy-notice { font-size: .66rem; }
    .js-ready .fade-in { transform: translateY(14px); }
}

@media (prefers-reduced-motion: reduce) {
    .js-ready .fade-in { opacity: 1; transform: none; transition: none; }
}

/* Featured project */
.section-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 38px;
}

.section-heading-row .titlewhite {
    flex: 1 1 auto;
}

.more-projects-button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    color: #dce8ef;
    background: rgba(255,255,255,.028);
    text-decoration: none;
    font-family: "Inter", sans-serif;
    font-size: .84rem;
    font-weight: 750;
    letter-spacing: -.01em;
    box-shadow: 0 12px 30px rgba(0,0,0,.14);
    transition: transform .25s ease, color .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease;
}

.more-projects-button i {
    color: var(--blue-bright);
    font-size: .82rem;
}

.more-projects-button:hover {
    color: #fff;
    background: rgba(87,184,255,.07);
    border-color: rgba(87,184,255,.26);
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(0,0,0,.22), 0 0 24px rgba(87,184,255,.05);
}

.featured-project-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 28px;
    background:
        radial-gradient(circle at 84% 18%, rgba(87,184,255,.12), transparent 28%),
        linear-gradient(145deg, rgba(17,25,34,.98), rgba(9,14,20,.98));
    box-shadow: var(--shadow-md), 0 0 52px rgba(87,184,255,.07);
}

.featured-project-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.025) 50%, transparent 80%);
    transform: translateX(-100%);
    transition: transform .8s ease;
}

.featured-project-card:hover::before {
    transform: translateX(100%);
}

.project-meta {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 17px 24px;
    border-bottom: 1px solid var(--line);
    color: #71808f;
    font-size: .68rem;
    font-weight: 750;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.project-body {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
    gap: 34px;
    align-items: center;
    padding: 34px;
}

.project-copy {
    max-width: 640px;
}

.project-kicker {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--cyan);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.project-copy h2 {
    margin: 0;
    color: #f5f8fb;
    font-family: "Manrope", sans-serif;
    font-size: clamp(1.9rem, 3vw, 3rem);
    line-height: 1.05;
    letter-spacing: -.055em;
}

.project-copy p {
    margin: 20px 0 0;
    max-width: 58ch;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.8;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    margin-top: 26px;
    color: #edf6fb;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 750;
    transition: color .22s ease, gap .22s ease;
}

.project-link i {
    color: var(--blue-bright);
    transition: transform .22s ease;
}

.project-link:hover {
    color: #fff;
    gap: 15px;
}

.project-link:hover i {
    transform: translateX(2px);
}

.project-visual {
    min-height: 250px;
    display: grid;
    place-items: center;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.055);
    border-radius: 22px;
    background:
        radial-gradient(circle at 50% 100%, rgba(87,184,255,.10), transparent 60%),
        rgba(255,255,255,.018);
}

.project-window {
    width: min(100%, 390px);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 16px;
    background: #0a1017;
    box-shadow: 0 26px 60px rgba(0,0,0,.35), 0 0 28px rgba(87,184,255,.05);
    transform: rotate(-1.2deg);
    transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s ease;
}

.featured-project-card:hover .project-window {
    transform: rotate(0deg) translateY(-4px);
    box-shadow: 0 32px 68px rgba(0,0,0,.42), 0 0 28px rgba(87,184,255,.06);
}

.project-window-bar {
    display: flex;
    gap: 6px;
    padding: 11px 13px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    background: rgba(255,255,255,.025);
}

.project-window-bar span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34404c;
}

.project-window-content {
    padding: 24px;
}

.project-code-line {
    height: 8px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(87,184,255,.52), rgba(105,225,208,.12));
}

.project-code-line.short { width: 28%; }
.project-code-line.medium { width: 52%; }
.project-code-line.long { width: 78%; }

.project-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-top: 24px;
}

.project-grid span {
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 1px solid rgba(87,184,255,.22);
    border-radius: 9px;
    color: var(--blue-bright);
    background: rgba(87,184,255,.055);
    font-family: "Manrope", sans-serif;
    font-size: 1rem;
    font-weight: 800;
}

@media (max-width: 820px) {
    .section-heading-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .project-body {
        grid-template-columns: 1fr;
    }

    .project-visual {
        min-height: 210px;
    }
}

@media (max-width: 700px) {
    .section-heading-row {
        gap: 18px;
        margin-bottom: 26px;
    }

    .more-projects-button {
        padding: 12px 15px;
        font-size: .8rem;
    }

    .featured-project-card { border-radius: 22px; }

    .project-meta {
        flex-direction: column;
        gap: 6px;
        padding: 15px 18px;
    }

    .project-body { padding: 22px; gap: 24px; }
    .project-copy h2 { font-size: 1.9rem; }
    .project-copy p { font-size: .94rem; line-height: 1.7; }
    .project-visual { min-height: 180px; padding: 12px; border-radius: 18px; }
}

/* More projects page */
.projects-page {
    width: min(calc(100% - 48px), 1180px);
    margin: 0 auto;
    padding: 150px 0 110px;
}

.projects-hero {
    max-width: 760px;
    margin-bottom: 70px;
}

.projects-hero .titlegray {
    display: block;
    margin-bottom: 18px;
    color: var(--cyan);
}

.projects-hero .paragraph {
    max-width: 40em;
}

.project-list {
    border-top: 1px solid var(--line);
}

.project-row {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr) 30px;
    align-items: center;
    gap: 22px;
    padding: 30px 8px;
    border-bottom: 1px solid var(--line);
    color: inherit;
    text-decoration: none;
    transition: padding .28s ease, background .28s ease;
}

.project-row:hover {
    padding-left: 16px;
    padding-right: 0;
    background: linear-gradient(90deg, rgba(87,184,255,.045), transparent 72%);
}

.project-index {
    color: #536170;
    font-family: "Manrope", sans-serif;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.project-list-kicker {
    color: var(--cyan);
    font-size: .67rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.project-info h2 {
    margin: 7px 0 7px;
    color: #eef4f8;
    font-family: "Manrope", sans-serif;
    font-size: clamp(1.2rem, 2vw, 1.65rem);
    line-height: 1.15;
    letter-spacing: -.04em;
}

.project-info p {
    margin: 0;
    color: #6f7e8d;
    font-size: .82rem;
}

.project-row-icon {
    color: var(--blue-bright);
    transition: transform .25s ease;
}

.project-row:hover .project-row-icon {
    transform: translate(3px, -3px);
}

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 32px;
    color: #98a8b7;
    text-decoration: none;
    font-size: .86rem;
    font-weight: 700;
    transition: color .2s ease, gap .2s ease;
}

.back-home:hover {
    color: #fff;
    gap: 14px;
}

@media (max-width: 700px) {
    .projects-page {
        width: min(calc(100% - 28px), 620px);
        padding-top: 130px;
    }

    .projects-hero { margin-bottom: 48px; }

    .project-row {
        grid-template-columns: 36px minmax(0, 1fr) 24px;
        gap: 14px;
        padding: 24px 4px;
    }

    .project-row:hover { padding-left: 8px; }
    .project-index { font-size: .74rem; }
    .project-info h2 { font-size: 1.12rem; }
    .project-info p { font-size: .74rem; }
}
