/* ========================================
   SKIP LINK (accessibility)
   ======================================== */

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 10000;
    padding: 8px 16px;
    background: var(--onyx, #07090F);
    color: var(--lime, #D1FF5C);
    font-family: var(--neue-haas, sans-serif);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0 0 8px 8px;
    text-decoration: none;
    transition: top 200ms ease;
}

.skip-link:focus {
    top: 0;
}

/* ========================================
   LOADING SCREEN
   ======================================== */

.loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f4f4ff;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity;
}

@media (prefers-reduced-motion: reduce) {
    .loader {
        transition: none;
    }
    .loader__dot {
        animation: none;
    }
}

.loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

/* Dot logo – continuous rotation */
.loader__dot {
    width: clamp(48px, 8vw, 80px);
    animation: loaderRotate 12s linear infinite;
}

.loader__dot img {
    width: 100%;
    height: auto;
    display: block;
}

/* Loading text */
.loader__text {
    font-family: var(--neue-haas), sans-serif;
    font-size: clamp(40px, 6vw, 56px);
    color: #07090F;
    margin: 0;
    letter-spacing: 0.02em;
    font-weight: 400;
}

@keyframes loaderRotate {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Content is visible behind the loader (z-index covers it) — allows LCP to fire */

@layer reset {
    *,
    *::before,
    *::after {
        box-sizing: border-box;
    }

    html {
        overflow-y: scroll; /* Always show scrollbar to prevent layout shift */
        background-color: var(--lavender-mist, #f4f4ff);
    }

    html,
    body {
        margin: 0;
        padding: 0;
        overflow-x: clip;
    }

    body {
        line-height: 1;
    }

    img,
    picture,
    video,
    canvas,
    svg {
        display: block;
        max-width: 100%;
    }

    button,
    input,
    textarea,
    select {
        font: inherit;
        border-radius: 0;
        margin: 0;
    }

    ul,
    ol {
        margin: 0;
        padding: 0;
        list-style: none;
    }

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

    section {
        padding-block: var(--section-py-current, var(--section-py-mobile, 32px));
        padding-inline: var(--px-current, var(--px-mobile, 20px));
    }
        
}

/* ========================================
   BASE STYLES & TYPOGRAPHY
   ======================================== */

@layer base {
    :root {
        /* Navigation */
        --nav-height: 90px;

                /* Colors - SCSS RGB */
        --lavender-mist: #f4f4ffff;
        --lavender-accent: #9392EE;
        --lime: #D1FF5C;
        --onyx: #07090F;

        /* Fonts */
        --adelphi: neue-haas-unica, 'Inter', system-ui, sans-serif;
        --neue-haas: neue-haas-unica, 'Inter', system-ui, sans-serif;
    }

    * {
        box-sizing: border-box;
    }

    body {
        margin: 0;
        overflow-x: clip;
        font-family: var(--neue-haas), sans-serif;
        font-style: normal;
        font-weight: 380;
        font-size: var(--text-base);
        line-height: 1.65;
        color: var(--onyx);
    }

    p {
        max-width: 75ch;
        margin-inline: 0;
        margin-bottom: var(--gap-current, 1.5rem);
    }


    .section-inner {
        width: 100%;
        padding-inline: var(--px-current, var(--px-mobile));
    }

    .content-narrow {
        max-width: min(70ch, 100%);
        margin-inline: 0; /* left-aligned within section-inner */
    }

    .content-medium {
        max-width: min(80ch, 100%);
    }

    h1,
    h2,
    h3,
    h4,
    h5 {
        margin: 0;
        font-family: var(--adelphi), sans-serif;
        font-style: normal;
        font-weight: 500;
        color: var(--onyx);
    }

    h1 {
        font-family: var(--adelphi);
        font-size: var(--h1);
        line-height: 110%;
        letter-spacing: -0.015em;
        color: var(--lavender-accent);
    }

    h2 {
        font-family: var(--adelphi);
        font-size: var(--h2);
        line-height: 110%;
        letter-spacing: -0.012em;
    }

    h3 {
        font-family: var(--adelphi);
        font-size: var(--h3);
        line-height: 115%;
        letter-spacing: -0.008em;
    }

    h4 {
        font-family: var(--adelphi);
        font-size: var(--h4);
        line-height: 120%;
        letter-spacing: -0.004em;
    }

    h5 {
        font-family: var(--adelphi);
        font-size: var(--h5);
        line-height: 30px;
    }
}

/* ========================================
   LAYOUT & SECTIONS
   ======================================== */

/* Offset content below the fixed header on every page */
main {
    padding-top: var(--nav-height);
}

.layout {
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
    width: 100%;
}

/* Landing Section */
.landing-section {
    width: 100%;
    height: 100vh;
    margin-left: 0;
    margin-right: 0;
    background-color: var(--lavender-mist);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.scroll-indicator {
    position: absolute;
    bottom: clamp(24px, 4vh, 48px);
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--neue-haas), sans-serif;
    font-size: clamp(14px, 1.2vw, 16px);
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--onyx);
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 200ms ease, transform 200ms ease;
}

.scroll-indicator:hover {
    opacity: 1;
    transform: translateX(-50%) translateY(4px);
}

.scroll-arrow {
    width: clamp(18px, 2vw, 24px);
    height: auto;
    transform: rotate(-90deg);
}

.landing-content {
    position: relative;
    width: min(92vw, 1400px);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.landing-i-anchor {
    position: relative;
    display: inline-block;
}

.landing-bird {
    width: clamp(82px, 7.6vw, 118px);
    height: auto;
    margin: 0;
    display: block;
    position: absolute;
    left: 50%;
    bottom: 0.8em;
    transform: translateX(-50%);
    z-index: 2;
    pointer-events: none;
}

.landing-section h1 {
    font-family: var(--adelphi);
    font-weight: 500;
    color: var(--onyx);
    font-size: calc(var(--h1) * 1.3);
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin: 0;
    margin-top: clamp(36px, 3.8vw, 56px);
    margin-bottom: clamp(22px, 2.2vw, 36px);
}

.landing-logo {
    margin: 0;
    margin-top: clamp(36px, 3.8vw, 56px);
    margin-bottom: clamp(22px, 2.2vw, 36px);
    line-height: 0;
}

.landing-logo img {
    width: clamp(280px, 54vw, 950px);
    height: auto;
    display: block;
}

.landing-subtitle {
    color: var(--onyx);
    font-family: var(--neue-haas), sans-serif;
    font-size: var(--text-xl);
    font-weight: 200;
    letter-spacing: 0;
    margin: 0 auto;
    max-width: none;
    opacity: 0.8;
    text-align: center;
    text-indent: 0;
}

.landing-notice {
    color: var(--onyx);
    font-family: var(--neue-haas), sans-serif;
    font-size: var(--text-l);
    font-weight: 350;
    letter-spacing: 0;
    margin: 2rem auto 0;
    max-width: none;
    opacity: 0.6;
    text-align: center;
    text-indent: 0;
}

/* ========================================
   ABOUT ME SECTION
   Pure flexbox. Two children:
     .welcome-image-group  (image)
     .welcome-content      (heading + text)
   ≤807px  → stacked column
   808px+  → side by side, bottom-aligned
   1024px+ → larger image
   ======================================== */

#about-me,
.aboutme {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--lavender-accent);
    padding-block: var(--section-py-current, var(--section-py-mobile, 32px));
    padding-inline: var(--px-current, var(--px-mobile, 20px));
    scroll-margin-top: 90px;
}

/* ---- MOBILE: stacked column ---- */
.welcome-container {
    width: 100%;
    max-width: 1320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

/* Mobile: flatten wrapper so heading can reorder above image */
.welcome-content {
    display: contents;
}

.welcome-heading {
    order: -1;
    width: 100%;
    text-align: center;
}

.about-kicker {
    font-family: var(--neue-haas), sans-serif;
    margin: 0 0 8px;
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--onyx);
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
}

.about-kicker::after {
    content: '';
    display: inline-block;
    width: 1.5em;
    height: 1px;
    background: currentColor;
}

.welcome-heading h2 {
    margin: 0;
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.1;
    letter-spacing: 0.02em;
    color: var(--lime, #D1FF5C);
    font-family: var(--adelphi), sans-serif;
}

/* Image group: image + contact stacked, centered */
.welcome-image-group {
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.welcome-image img {
    width: clamp(200px, 50vw, 280px);
    height: auto;
    display: block;
}

/* Interactive SVG: hidden below 1279px */
.welcome-svg {
    display: none;
}



/* Text */
.welcome-text {
    width: 100%;
}

.welcome-text p {
    font-family: var(--neue-haas);
    font-size: clamp(16px, calc(14.18px + 0.57vw), 18px);
    line-height: 1.7;
    letter-spacing: 0.01em;
    color: var(--onyx);
    margin-bottom: 1.25em;
    text-align: left;
    max-width: 60ch;
    text-wrap: pretty;
    word-spacing: 0.02em;
}

.welcome-text p:last-child {
    margin-bottom: 0;
}

/* Inline decorations */
.text-underline {
    display: inline;
    background: linear-gradient(to top, var(--lime) 40%, transparent 40%);
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    padding: 0 0.15em;
    margin: 0 -0.15em;
}

.underline-svg {
    display: none;
}

.smiley-emoji {
    display: inline;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    margin-left: 0.25em;
}

/* ---- 808px+ : SIDE-BY-SIDE ----
   space-between pushes image left, text right.
   ---------------------------------------- */
@media (min-width: 808px) {
    #about-me,
    .aboutme {
        padding-inline: clamp(20px, 3vw, 48px);
    }

    .welcome-container {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        gap: clamp(24px, 3vw, 40px);
    }

    .welcome-image-group {
        flex: 0 0 auto;
    }

    .welcome-image img {
        width: clamp(240px, 28vw, 380px);
    }

    .welcome-content {
        display: flex;
        flex-direction: column;
        gap: 0.75em;
        flex: 0 1 58ch;
        min-width: 0;
        max-width: 58ch;
    }

    .welcome-heading {
        order: 0;
        text-align: left;
    }
}

/* ---- 1024px+ : LARGER IMAGE ---- */
@media (min-width: 1024px) {
    .welcome-image {
        flex: 0 0 auto;
    }

    .welcome-image img {
        width: clamp(280px, 25vw, 400px);
    }
}

/* ---- 1279px+ : INTERACTIVE SVG + BIGGER SIZE ---- */
@media (min-width: 1279px) {
    .welcome-svg {
        display: block;
        width: clamp(400px, 32vw, 540px);
        height: auto;
    }

    .welcome-image .welcome-png {
        display: none;
    }
}

/* Reveal Section – scroll-past sticky image effect
   Uses clip-path: inset(0) to clip a position:fixed child,
   so the image stays fixed in the viewport but only shows
   within this section's bounds. Sections before and after
   naturally scroll over it with their solid backgrounds. */
.reveal-section {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: inset(0);
    padding: 0;
    background-color: var(--lavender-mist);
}

/* Fixed background – clipped to .reveal-section by clip-path */
.reveal-section__bg {
    position: fixed;
    inset: 0;
    background-image: url('assets/tools_section_mobilesvg.svg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    will-change: transform;
}

@media (min-width: 768px) {
    .reveal-section__bg {
        background-image: url('assets/Tools_Section_desktop.svg');
    }
}

/* Remove legacy pseudo-element (replaced by __bg div) */
.reveal-section::before {
    display: none;
}

/* Overlay disabled – SVG backgrounds include their own fill */
.reveal-section::after {
    display: none;
}

.reveal-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding-inline: var(--px-current, var(--px-mobile, 20px));
}

.reveal-title {
    font-family: var(--adelphi), sans-serif;
    font-size: calc(var(--h2) * 1.1);
    line-height: 1.1;
    color: #fff;
    margin-bottom: 0;
    letter-spacing: -0.02em;
}

@media (max-width: 768px) {
    .reveal-section {
        min-height: 35vh;
    }
}

/* ========================================
   WORK STATEMENT
   ======================================== */

.work-statement {
    background-color: var(--lavender-mist);
    padding-block: clamp(60px, 10vw, 80px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.work-statement .statement-container {
    max-width: 1000px;
    text-align: center;
}

.work-statement p {
    font-family: var(--neue-haas), sans-serif;
    font-size: clamp(20px, 2.5vw, 26px);
    line-height: 1.5;
    color: var(--onyx);
    margin: 0;
    font-weight: 400;
    max-width: 60ch;
}

/* ========================================
   SKILLS HEADER
   ======================================== */

.skills-header {
    background-color: var(--onyx);
    padding-block: var(--section-py-current, var(--section-py-mobile, 32px));
    padding-inline: var(--px-current, var(--px-mobile, 20px));
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.skills-header .projects-kicker {
    font-family: var(--neue-haas), sans-serif;
    margin: 0 0 8px;
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--lavender-accent);
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
}

.skills-header .projects-kicker::after {
    content: '';
    display: inline-block;
    width: 1.5em;
    height: 1px;
    background: currentColor;
}

.skills-title {
    font-family: var(--adelphi), sans-serif;
    font-size: calc(var(--h2) * 0.75);
    line-height: 110%;
    letter-spacing: -0.012em;
    color: #F4F4FF;
    margin: 0;
}

/* Skills Section - Mobile First */
.skills {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: var(--onyx);
    color: #F4F4FF;
    scroll-margin-top: 80px;
}

.projects-kicker {
    scroll-margin-top: 120px;
    font-size: var(--text-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
}

.projects-kicker::after {
    content: '';
    display: inline-block;
    width: 1.5em;
    height: 1px;
    background: currentColor;
}

.skills > * {
    position: relative;
    padding-block: var(--section-py-current, var(--section-py-mobile, 32px));
    padding-inline: var(--px-current, var(--px-mobile, 20px));
    margin: 0;
}

#motion {
    scroll-margin-top: 90px;
}

.skills > * > h3 {
    margin: 0;
    margin-bottom: 10px;
    font-size: calc(var(--h2) * 0.65);
}

.skills .skill-list {
    margin: 0;
}

.skills .skill-list li {
    padding: 10px 0;
    margin-right: 0;
    border-bottom: 0.5px solid;
    font-size: var(--text-base);
    line-height: 1.5;
    letter-spacing: 0.08em;
}

.skills .skill-list li:last-child {
    border-bottom: none;
}

/* Skills - md (768px+) - Tablet spacing */
@media (min-width: 768px) {
    .skills > * {
        padding-block: var(--section-py-current, var(--section-py-md, 48px));
        padding-inline: var(--px-current, var(--px-md, 80px));
    }
}

/* Skills - lg (1024px+) - H2 rotated to the side */
@media (min-width: 1024px) {
    .skills > * {
        padding-block: var(--section-py-current, var(--section-py-lg, 64px));
        padding-inline: var(--px-current, var(--px-lg, 80px));
    }

    .skills .design {
        padding-bottom: var(--section-py-current, var(--section-py-lg, 64px));
    }

    .skills .motion {
        padding-bottom: var(--section-py-current, var(--section-py-lg, 64px));
    }

    .skills .what-else {
        padding-bottom: var(--section-py-current, var(--section-py-lg, 64px));
    }

    .skills > * > h3 {
        position: absolute;
        top: 0;
        left: var(--px-current, 40px);
        --text-size: 375px;
        width: var(--text-size);
        text-align: right;
        transform: rotate(-90deg) translateY(calc(var(--text-size) * -1));
        transform-origin: right top;
        margin: 0;
        margin-left: -10px;
        margin-bottom: 0;
    }

    .skills .skill-list {
        margin: 0;
        margin-left: calc(var(--px-current, 40px) + clamp(40px, 6vw, 56px) + clamp(24px, 3vw, 48px));
        margin-right: var(--px-current, 40px);
    }

    .skills .skill-list li {
        padding: 10px 0;
        margin-right: calc(-1 * var(--px-current, 40px));
    }

    .skills .skill-list li:first-child {
        padding-top: 0;
    }
}

/* Skills - xl (1280px+) - Side-by-side layout */
@media (min-width: 1280px) {
    .skills {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        min-height: 450px;
        padding-inline: var(--px-current, 60px);
    }

    .skills > * {
        flex: 0 0 30%;
        max-width: 30%;
        padding: 0 0 60px 0;
        display: flex;
        flex-direction: column;
        background-clip: border-box;
    }

    .skills > * > h3 {
        position: absolute;
        top: 0;
        left: 0;
        margin-left: -30px;
    }

    .skills .skill-list {
        margin: 0;
        flex: 1;
        margin-left: calc(clamp(40px, 6vw, 56px) + clamp(24px, 3vw, 48px));
        margin-right: 0;
        overflow: visible;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .skills .skill-list li {
        padding: 0;
        margin-right: 0;
    }

    .skills .skill-list li:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 1279px) {
    .skills .design,
    .skills .motion,
    .skills .what-else {
        padding-top: 0;
    }
}

.skills .design h3 {
    color: var(--lavender-accent);
}

.skills .design .skill-list li {
    border-color: rgb(209 255 92 / 0.9);
}

.skills .design .skill-list li:last-child {
    border-bottom-color: rgb(209 255 92 / 0.9);
}

.skills .motion h3 {
    color: var(--lime);
}

.skills .motion .skill-list li {
    border-color: rgb(147 146 238 / 0.9);
}

.skills .motion .skill-list li:last-child {
    border-bottom-color: rgb(147 146 238 / 0.9);
}

.skills .what-else {
    color: inherit;
}

.skills .what-else h3 {
    color: var(--lavender-mist);
}

.skills .what-else .skill-list li {
    border-color: rgb(209 255 92 / 0.9);
}

.skills .what-else .skill-list li:last-child {
    border-bottom-color: rgb(209 255 92 / 0.9);
}

/* ========================================
   RESPONSIVE - IPAD (max-width: 1024px)
   ======================================== */
@media (max-width: 1024px) {
    .hero-title {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }
}

/* ========================================
   RESPONSIVE - TABLET (max-width: 767px)
   ======================================== */
@media (max-width: 767px) {

    .video-player {
        order: 2;
        margin: -25px auto 0 auto;
    }
}

/* ========================================
   RESPONSIVE - MOBILE (max-width: 480px)
   ======================================== */
@media (max-width: 480px) {
    .landing-subtitle {
        font-size: var(--text-lg); /* 18px instead of 21px for better mobile proportion */
        font-weight: 250;
    }
}

@media (max-width: 380px) {
    .landing-subtitle {
        font-size: var(--text-base); /* 16px on very small screens */
        font-weight: 300;
    }

    .video-player {
        position: relative;
        margin: auto;
        margin-top: 0px;
        width: calc(95% - 2 * var(--px-current, var(--px-mobile, 20px)));
        max-width: 855px;
        height: auto;
        aspect-ratio: 900 / 580;
        border-radius: 20px;
        background: var(--onyx);
    }
}

/* ========================================
   FOOTER
   ======================================== */

footer {
    position: relative;
    z-index: 2;
    padding: 0;
    margin: 0;
    width: 100%;
    background-color: var(--onyx);
    overflow: hidden;
}

/* Projects Section */
#projects {
    scroll-margin-top: 100px;
}

.footer-container {
    display: grid;
    grid-template-columns: 3fr 1fr;
    align-items: stretch;
    width: 100%;
}

.footer-left {
    background-color: var(--lavender-accent);
    padding: clamp(28px, 3.5vw, 48px) var(--px-mobile, 20px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    color: var(--onyx);
}

.footer-logo img {
    width: 80px;
    height: auto;
}

.footer-logo a {
    display: block;
    transition: transform 600ms cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
}

.footer-logo a:hover {
    transform: scale(1.1);
}

.footer-legal-container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.footer-legal p {
    font-family: var(--neue-haas), sans-serif;
    font-size: clamp(0.75rem, 0.46vw + 0.653rem, 1.1rem);
    line-height: 1.4;
    max-width: 540px;
    margin: 0 0 12px 0;
    color: var(--onyx);
}

.footer-copyright p {
    font-family: var(--neue-haas), sans-serif;
    font-size: clamp(0.75rem, 0.46vw + 0.653rem, 1.1rem);
    margin: 0;
    color: var(--onyx);
}

.imprint-link {
    font-family: var(--neue-haas), sans-serif;
    font-weight: 400;
    font-size: var(--text-sm);
    color: var(--lime);
    text-decoration: none;
    transition: text-decoration 300ms ease;
}

.imprint-link:hover {
    text-decoration: underline;
}

.footer-right {
    background-color: var(--onyx);
    padding: clamp(28px, 3.5vw, 48px) var(--px-mobile, 20px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    color: var(--lavender-mist);
}

.footer-title {
    font-family: var(--adelphi), sans-serif;
    font-size: calc(var(--h2) * 0.6);
    margin-bottom: clamp(12px, 2vw, 24px);
    letter-spacing: -0.01em;
    line-height: 0;
}

.footer-title-logo {
    width: clamp(120px, 16vw, 260px);
    max-width: 100%;
    height: auto;
    display: block;
}

.footer-title-logo.footer-dot {
    width: clamp(18px, 2vw, 28px);
    height: auto;
    animation: logoRotate 12s linear infinite;
}

@keyframes logoRotate {
    0% { transform: translateY(1px) rotate(0); }
    100% { transform: translateY(1px) rotate(360deg); }
}

.footer-contact {
    font-family: var(--neue-haas), sans-serif;
    font-size: clamp(0.85rem, 1.2vw + 0.4rem, 1.25rem);
    line-height: 1.4;
    font-weight: 400;
    margin: 0;
}

.footer-contact p {
    margin: 0;
    color: var(--lavender-mist);
}

.footer-email a {
    display: inline-block;
    text-decoration: none;
    font-family: var(--neue-haas), sans-serif;
    font-size: clamp(0.85rem, 1.2vw + 0.4rem, 1.25rem);
    font-weight: 400;
    color: var(--lavender-mist);
    transition: color 400ms cubic-bezier(0.23, 1, 0.32, 1);
}

.footer-email a:hover {
    color: var(--lime);
}

/* ========================================
   CONTACT MODAL
   ======================================== */

.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 400ms cubic-bezier(0.23, 1, 0.32, 1),
                visibility 0s linear 400ms;
}

.contact-modal.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity 400ms cubic-bezier(0.23, 1, 0.32, 1),
                visibility 0s linear 0s;
}

.contact-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 9, 15, 0.6);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.contact-modal__card {
    position: relative;
    background: var(--onyx);
    border: 1px solid var(--lavender-accent);
    border-radius: 12px;
    padding: clamp(28px, 4vw, 48px);
    max-width: 420px;
    width: calc(100% - 40px);
    text-align: center;
    transform: translateY(24px) scale(0.96);
    transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
}

.contact-modal.is-open .contact-modal__card {
    transform: translateY(0) scale(1);
}

.contact-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    line-height: 0;
}

.contact-modal__close-icon {
    width: 24px;
    height: 24px;
    display: block;
    transition: opacity 300ms ease;
}

.contact-modal__close-icon--hover {
    position: absolute;
    inset: 4px;
    opacity: 0;
}

.contact-modal__close:hover .contact-modal__close-icon--default {
    opacity: 0;
}

.contact-modal__close:hover .contact-modal__close-icon--hover {
    opacity: 1;
}

.contact-modal__title {
    font-family: var(--adelphi), sans-serif;
    font-size: var(--h4);
    color: var(--lavender-mist);
    margin: 0 0 16px;
    font-weight: 400;
}

.contact-modal__address {
    font-family: var(--neue-haas), sans-serif;
    font-size: clamp(22px, 3vw, 28px);
    color: var(--lavender-accent);
    letter-spacing: 0.08em;
    margin: 0 0 28px;
}

.contact-modal__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-modal__btn {
    font-family: var(--neue-haas), sans-serif;
    font-size: var(--text-sm);
    text-decoration: none;
    padding: 0.65em 1.6em;
    border-radius: 6px;
    cursor: pointer;
    transition: background 300ms ease, color 300ms ease, border-color 300ms ease;
    border: 1px solid transparent;
}

.contact-modal__btn--primary {
    background: var(--lavender-accent);
    color: var(--lime);
}

.contact-modal__btn--primary:hover {
    background: var(--lavender-mist);
    color: var(--lavender-accent);
}

.contact-modal__btn--secondary {
    background: transparent;
    color: var(--lavender-mist);
    border-color: var(--lavender-mist);
}

.contact-modal__btn--secondary:hover {
    border-color: var(--lime);
    color: var(--lime);
}

.contact-modal__copied {
    font-family: var(--neue-haas), sans-serif;
    font-size: var(--text-sm);
    color: var(--lime);
    margin: 12px 0 0;
    transition: opacity 300ms ease;
}

.contact-modal__copied.is-hidden {
    opacity: 0;
}

.footer-social-icons {
    display: flex;
    align-items: center;
    gap: clamp(6px, 0.6vw, 10px);
    margin-top: clamp(8px, 1vw, 16px);
}

.footer-social-icons__link {
    position: relative;
    display: block;
    width: clamp(24px, 2.5vw, 36px);
    height: clamp(24px, 2.5vw, 36px);
}

.footer-social-icons__img {
    width: 100%;
    height: 100%;
    display: block;
    transition: opacity 400ms cubic-bezier(0.23, 1, 0.32, 1);
}

.footer-social-icons__img--hover {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.footer-social-icons__link:hover .footer-social-icons__img--default {
    opacity: 0;
}

.footer-social-icons__link:hover .footer-social-icons__img--hover {
    opacity: 1;
}

.footer-legal-container {
    margin-top: auto;
}

/* Responsive footer layout using consistent breakpoint system */
@media (max-width: 990px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .footer-right {
        order: -1; /* Contact info appears first on mobile */
    }

    .footer-legal-container {
        margin-top: 16px;
    }
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(80px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.skills .design,
.skills .motion,
.skills .what-else {
    opacity: 0;
    transform: translateY(40px);
}

.skills .design.animate-in,
.skills .motion.animate-in,
.skills .what-else.animate-in {
    animation: slideInUp 900ms cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.skills .design.animate-in {
    animation-delay: 100ms;
}

.skills .motion.animate-in {
    animation-delay: 250ms;
}

.skills .what-else.animate-in {
    animation-delay: 400ms;
}

/* ========================================
   FLOATING DECORATIVE DOTS
   ======================================== */

.section-decoration {
    position: absolute;
    top: 20px;
    right: 40px;
    pointer-events: none;
    z-index: 1000;
}

.skills-header {
    position: relative;
}

.projects-section {
    position: relative;
}

.floating-dot--large {
    width: 240px;
    height: 240px;
    animation: blurRotation 20s ease-in-out infinite;
    transform-origin: center;
}

/* Original DOT.svg rotation animation */
@keyframes originalRotation {
    0% { 
        transform: rotate(0deg); 
    }
    100% { 
        transform: rotate(360deg); 
    }
}

/* Main page blur transition animation */
@keyframes blurRotation {
    0% { 
        transform: rotate(0deg);
        filter: blur(5px);
        opacity: 0.3;
    }
    25% { 
        transform: rotate(90deg);
        filter: blur(15px);
        opacity: 0.6;
    }
    50% { 
        transform: rotate(180deg);
        filter: blur(30px);
        opacity: 0.4;
    }
    75% { 
        transform: rotate(270deg);
        filter: blur(10px);
        opacity: 0.7;
    }
    100% { 
        transform: rotate(360deg);
        filter: blur(5px);
        opacity: 0.3;
    }
}

/* Main page specific dot styling */
.floating-dot--main-page {
    width: 240px;
    height: 240px;
    animation: blurRotation 60s ease-in-out infinite;
    transform-origin: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-decoration {
        top: 15px;
        right: 20px;
    }
    
    .floating-dot--large {
        width: 180px;
        height: 180px;
    }
    
    .floating-dot--main-page {
        width: 180px;
        height: 180px;
    }
}


