/* Adina Moldovan Portfolio — soft centered studio look */
:root {
    --ink: #1c2a33;
    --ink-soft: #5a6b76;
    --paper: #f3f6f4;
    --paper-2: #e8efea;
    --surface: #ffffff;
    --accent: #0f766e;
    --accent-deep: #0b5a54;
    --accent-soft: rgba(15, 118, 110, 0.12);
    --line: rgba(20, 33, 43, 0.1);
    --shadow: 0 14px 32px rgba(20, 33, 43, 0.07);
    --radius: 16px;
    --font: "Outfit", sans-serif;
    --nav-h: 68px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font);
    font-weight: 400;
    color: var(--ink);
    text-align: center;
    background:
        radial-gradient(1100px 520px at 50% -8%, rgba(15, 118, 110, 0.12), transparent 55%),
        linear-gradient(180deg, #eef3f0 0%, var(--paper) 45%, #e7eeea 100%);
    overflow-x: hidden;
    line-height: 1.65;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--accent-deep);
    font-weight: 500;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--accent);
}

h1, h2, h3 {
    font-family: var(--font);
    font-weight: 500;
    line-height: 1.2;
    color: var(--ink);
    margin: 0 0 0.6rem;
}

.section-inner {
    width: min(900px, calc(100% - 2.5rem));
    margin: 0 auto;
    text-align: center;
}

/* ========== NAV ========== */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--nav-h);
    padding: 0 1.5rem;
    background: rgba(243, 246, 244, 0.78);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.top-nav.is-scrolled {
    border-bottom-color: var(--line);
    background: rgba(243, 246, 244, 0.94);
    box-shadow: 0 8px 24px rgba(20, 33, 43, 0.04);
}

.logo {
    font-family: var(--font);
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: 0.01em;
}

.logo:hover {
    color: var(--accent-deep);
    text-decoration: none;
}

.menu {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu > li > a {
    display: inline-block;
    padding: 0.5rem 0.85rem;
    color: var(--ink-soft);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
}

.menu > li > a:hover {
    color: var(--ink);
    background: rgba(15, 118, 110, 0.08);
    text-decoration: none;
}

.menu li.dropdown {
    position: relative;
}

.menu li.dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 240px;
    margin: 0;
    padding: 0.5rem;
    list-style: none;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    z-index: 20;
    text-align: left;
}

.menu li.dropdown:hover .dropdown-menu,
.menu li.dropdown:focus-within .dropdown-menu {
    display: block;
}

.menu li.dropdown .dropdown-menu a {
    display: block;
    padding: 0.6rem 0.85rem;
    color: var(--ink-soft);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9rem;
    border-radius: 8px;
}

.menu li.dropdown .dropdown-menu a:hover {
    background: var(--accent-soft);
    color: var(--accent-deep);
}

#menu-toggle {
    display: none;
}

.menu-button-container {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.menu-button,
.menu-button::before,
.menu-button::after {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    position: relative;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-button::before,
.menu-button::after {
    content: "";
    position: absolute;
    left: 0;
}

.menu-button::before { top: -7px; }
.menu-button::after { top: 7px; }

#menu-toggle:checked + .menu-button-container .menu-button {
    background: transparent;
}

#menu-toggle:checked + .menu-button-container .menu-button::before {
    top: 0;
    transform: rotate(45deg);
}

#menu-toggle:checked + .menu-button-container .menu-button::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ========== HERO ========== */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    width: min(900px, calc(100% - 2rem));
    margin: 1rem auto 0;
    padding: 2.75rem 1.5rem 2.5rem;
    overflow: hidden;
    text-align: center;
    opacity: var(--hero-fade, 1);
    transition: opacity 0.2s linear;
    --spot-x: 50%;
    --spot-y: 35%;
    border-radius: 24px;
    background:
        linear-gradient(165deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.18)),
        radial-gradient(circle at 50% 0%, rgba(15, 118, 110, 0.12), transparent 55%);
    border: 1px solid rgba(20, 33, 43, 0.06);
    box-shadow: 0 18px 40px rgba(20, 33, 43, 0.05);
}

.hero::before {
    content: "";
    position: absolute;
    inset: -20% -30%;
    background:
        radial-gradient(
            420px 280px at var(--spot-x) var(--spot-y),
            rgba(15, 118, 110, 0.14),
            transparent 65%
        );
    pointer-events: none;
    z-index: 0;
    transition: background 0.15s ease;
}

.hero-content {
    position: relative;
    z-index: 1;
    order: 1;
    max-width: 34rem;
    animation: heroCopyIn 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-visual {
    position: relative;
    z-index: 1;
    order: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: heroPhotoIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
    will-change: transform;
}

.hero-photo-frame {
    width: 112px;
    height: 148px;
    border-radius: 18px;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow:
        0 10px 28px rgba(20, 33, 43, 0.12),
        0 0 0 1px rgba(15, 118, 110, 0.08);
    background: #e8e8e8;
    flex-shrink: 0;
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    display: block;
}

.hero-bg {
    position: absolute;
    inset: 8% 18% 42% 18%;
    background:
        linear-gradient(145deg, rgba(15, 118, 110, 0.1), rgba(14, 116, 144, 0.04) 45%, transparent),
        radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.55), transparent 62%);
    border-radius: 40%;
    z-index: 0;
    animation: drift 14s ease-in-out infinite alternate;
}

@keyframes drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(0, 2%, 0) scale(1.03); }
}

.hero-brand {
    font-size: clamp(2.1rem, 5vw, 3.1rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin: 0 0 0.65rem;
    color: var(--ink);
    animation: fadeRise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.hero-title {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--accent-deep);
    margin: 0 0 0.85rem;
    animation: fadeRise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.28s both;
}

.hero-tagline {
    max-width: 32rem;
    margin: 0 auto;
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--ink-soft);
    animation: fadeRise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.hero-tech {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
    margin: 1.15rem 0 0;
    padding: 0;
    animation: fadeRise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.48s both;
}

.hero-tech li {
    padding: 0.35rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    color: var(--accent-deep);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(15, 118, 110, 0.18);
    border-radius: 8px;
    backdrop-filter: blur(6px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.45rem;
    justify-content: center;
    animation: fadeRise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.58s both;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.3rem;
    background: var(--accent);
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 10px;
    text-decoration: none;
    border: 1.5px solid var(--accent);
    transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hero-cta:hover {
    background: var(--accent-deep);
    border-color: var(--accent-deep);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

.hero-cta--secondary {
    background: transparent;
    color: var(--ink);
    border-color: rgba(20, 33, 43, 0.2);
}

.hero-cta--secondary:hover {
    background: rgba(20, 33, 43, 0.04);
    color: var(--ink);
    border-color: var(--ink);
}

@keyframes heroPhotoIn {
    from {
        opacity: 0;
        transform: translate3d(0, -36px, 0) scale(0.92);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
        filter: blur(0);
    }
}

@keyframes heroCopyIn {
    from {
        opacity: 0;
        transform: translate3d(0, 28px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeRise {
    from {
        opacity: 0;
        transform: translate3d(0, 18px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fallIn {
    from {
        opacity: 0;
        transform:
            translate3d(var(--fall-x, 0), -48px, 0)
            rotate(var(--fall-rot, 0deg))
            scale(0.97);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    }
}

/* Scroll reveals + Axibolaget-style slide-ins */
.reveal {
    opacity: 0;
    transform: translate3d(0, 36px, 0);
    filter: blur(3px);
    transition:
        opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.85s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
}

.slide-in,
.slide-in-left,
.slide-in-right {
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.slide-in {
    transform: translateY(50px);
}

.slide-in-left {
    transform: translateX(-50px);
}

.slide-in-right {
    transform: translateX(50px);
}

.slide-in.visible,
.slide-in-left.visible,
.slide-in-right.visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* ========== ABOUT ========== */
.about-me,
.skills-section,
.projects {
    padding: 3.75rem 0;
}

.about-me {
    background:
        linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.55) 20%, rgba(255, 255, 255, 0.7));
}

.about-copy {
    text-align: center;
}

.about-copy h2,
.skills-section h2,
.projects h2,
.contact-banner h2 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 500;
    letter-spacing: -0.015em;
    margin-bottom: 1rem;
}

.about-copy h3 {
    font-size: 0.95rem;
    margin-top: 1.6rem;
    margin-bottom: 0.45rem;
    color: var(--accent-deep);
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.about-copy p {
    max-width: 38rem;
    margin: 0 auto 1rem;
    color: var(--ink-soft);
    font-size: 1.02rem;
    font-weight: 300;
    text-align: center;
}

/* ========== SKILLS CAROUSEL ========== */
.skills-section {
    padding-top: 0.5rem;
    overflow: hidden;
}

.skills-carousel {
    margin-top: 0.35rem;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.skills-track {
    display: flex;
    width: max-content;
    animation: skillsMarquee 38s linear infinite;
    will-change: transform;
}

.skills-list {
    list-style: none;
    margin: 0;
    padding: 0.35rem 0.85rem 0.35rem 0;
    display: flex;
    gap: 0.85rem;
    flex-shrink: 0;
}

.skill-chip {
    flex: 0 0 auto;
    min-width: 160px;
    max-width: 200px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.75rem 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    text-align: center;
    min-height: 88px;
    cursor: default;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.skill-chip:hover {
    border-color: rgba(15, 118, 110, 0.3);
    background: #fff;
    transform: translateY(-2px);
}

.skill-chip i {
    font-size: 1.25rem;
}

.skill-chip span {
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--ink-soft);
    line-height: 1.3;
}

.skill-chip .devicon-nextjs-original,
.skill-chip .devicon-github-original,
.skill-chip .devicon-prisma-original {
    color: var(--ink);
}

@keyframes skillsMarquee {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-50%, 0, 0); }
}

/* ========== PROJECTS ========== */
.projects {
    background:
        linear-gradient(180deg, transparent, rgba(232, 239, 234, 0.85) 12%, #e4ebe6 100%);
}

.projects-intro {
    max-width: 34rem;
    margin: 0 auto 1.5rem;
    color: var(--ink-soft);
    font-size: 1.02rem;
    font-weight: 300;
}

.filter-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.6rem;
    justify-content: center;
}

.filter-btn {
    appearance: none;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.7);
    color: var(--ink-soft);
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 400;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-btn:hover {
    border-color: rgba(15, 118, 110, 0.4);
    color: var(--accent-deep);
}

.filter-btn.active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.bildcontainer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

figure.project-card {
    margin: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: center;
    opacity: 0;
    transform: translate3d(0, 0, 0);
    transform-origin: center top;
    cursor: pointer;
    transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

figure.project-card.visible:not(.is-settled) {
    animation: fallIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) var(--fall-delay, 0ms) forwards;
}

figure.project-card.is-settled {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    animation: none;
}

figure.project-card.is-settled:hover {
    box-shadow: var(--shadow);
    border-color: rgba(15, 118, 110, 0.25);
    transform: translate3d(0, -4px, 0);
}

figure.project-card > a.project-media {
    display: grid;
    place-items: center;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    padding: 0.65rem 0.7rem 0.55rem;
    background: linear-gradient(160deg, #e7efea 0%, #d5e2db 100%);
    text-decoration: none;
    cursor: pointer;
}

figure.project-card > a.project-media--photo {
    padding: 0;
}

figure.project-card img {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(20, 33, 43, 0.1);
    background: #f7faf8;
    transition: transform 0.35s ease;
}

figure.project-card > a.project-media--photo img {
    border-radius: 0;
    box-shadow: none;
    object-fit: cover;
}

figure.project-card.is-settled:hover img {
    transform: scale(1.02);
}

figcaption {
    padding: 0.85rem 0.9rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    flex: 1;
}

figcaption h3 {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    color: var(--ink);
}

.project-badge {
    display: inline-block;
    margin: 0.1rem 0 0.2rem;
    padding: 0.15rem 0.45rem;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent-deep);
    background: var(--accent-soft);
    border-radius: 4px;
}

.tech-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    margin: 0.15rem 0;
}

.tech-icons i {
    font-size: 1.15rem;
}

.stack {
    margin: 0.1rem 0 0.15rem;
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    color: var(--accent-deep);
}

.project-desc {
    margin: 0.15rem 0 0;
    max-width: 22rem;
    font-size: 0.88rem;
    font-weight: 300;
    line-height: 1.45;
    color: var(--ink-soft);
}

.project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: center;
    margin-top: 0.5rem;
    width: 100%;
}

.project-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.5rem;
    padding: 0.42rem 0.75rem;
    font-family: inherit;
    font-size: 0.76rem;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    border-radius: 8px;
    border: 1.5px solid transparent;
    transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.project-btn--primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.project-btn--primary:hover {
    background: var(--accent-deep);
    border-color: var(--accent-deep);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.project-btn--secondary {
    background: transparent;
    color: var(--ink);
    border-color: rgba(20, 33, 43, 0.18);
}

.project-btn--secondary:hover {
    background: rgba(20, 33, 43, 0.04);
    color: var(--ink);
    border-color: var(--ink);
    text-decoration: none;
    transform: translateY(-1px);
}

.project-btn--soon {
    background: rgba(20, 33, 43, 0.06);
    color: var(--ink-soft);
    border-color: rgba(20, 33, 43, 0.1);
    cursor: default;
    pointer-events: none;
}

.show-more-wrap {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin: 0.4rem 0 0.2rem;
}

.show-more-btn {
    appearance: none;
    background: transparent;
    border: 1.5px solid rgba(20, 33, 43, 0.22);
    color: var(--ink);
    padding: 0.75rem 1.35rem;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.show-more-btn:hover,
.show-more-btn:focus-visible {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
    outline: none;
}

/* ========== CONTACT BANNER ========== */
.contact-banner {
    margin-top: 2.75rem;
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.1rem;
    text-align: center;
    background:
        linear-gradient(120deg, rgba(15, 118, 110, 0.12), rgba(14, 116, 144, 0.06)),
        #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition-delay: 0.08s;
}

.contact-banner p {
    margin: 0 auto;
    color: var(--ink-soft);
    max-width: 30rem;
    font-weight: 300;
}

.contact-banner .hero-cta {
    flex-shrink: 0;
}

.contact-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
}

/* ========== FOOTER ========== */
.footer {
    padding: 2.25rem 1.5rem 1.85rem;
    text-align: center;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.45);
}

.footer-brand {
    font-weight: 500;
    margin: 0 0 0.75rem;
    color: var(--ink);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--line);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.social-link:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 118, 110, 0.4);
}

.linkedin-icon,
.github-icon {
    width: 18px;
    height: auto;
}

.footer-copy {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 300;
    color: var(--ink-soft);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 700px) {
    .bildcontainer {
        grid-template-columns: 1fr;
        max-width: 420px;
    }

    .menu-button-container {
        display: flex;
        order: 2;
    }

    .logo {
        order: 1;
    }

    .menu {
        display: none;
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        padding: 0.75rem;
        background: rgba(243, 246, 244, 0.98);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
    }

    #menu-toggle:checked ~ .menu {
        display: flex;
    }

    .menu > li > a {
        width: 100%;
        padding: 0.9rem 1rem;
    }

    .menu li.dropdown .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0 0 0.5rem 0.75rem;
        min-width: 0;
        text-align: center;
    }

    .filter-btn {
        flex: 1 1 calc(50% - 0.5rem);
    }

    .hero-brand {
        font-size: clamp(1.9rem, 9vw, 2.6rem);
    }

    .hero-photo-frame {
        width: 108px;
        height: 142px;
        border-radius: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }

    .reveal,
    figure.project-card {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        animation: none !important;
    }

    figure.project-card.is-settled,
    figure.project-card.visible {
        opacity: 1 !important;
    }

    .skills-track {
        animation: none !important;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        max-width: 820px;
        margin: 0 auto;
    }

    .skills-list[aria-hidden="true"] {
        display: none;
    }

    .slide-in,
    .slide-in-left,
    .slide-in-right,
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }
}
