:root {
    --bg: #07111f;
    --bg-deep: #040b15;
    --surface: rgba(13, 29, 49, 0.72);
    --surface-strong: #0d1d31;
    --surface-hover: rgba(16, 38, 64, 0.88);
    --line: rgba(136, 173, 213, 0.14);
    --line-strong: rgba(80, 163, 255, 0.36);
    --text: #e8f0fa;
    --heading: #f8fbff;
    --muted: #94a8c1;
    --muted-strong: #b9c7d8;
    --accent: #5ab0ff;
    --accent-light: #91ceff;
    --accent-soft: rgba(90, 176, 255, 0.12);
    --shadow: 0 24px 70px rgba(0, 4, 12, 0.36);
    --radius-lg: 22px;
    --radius-md: 16px;
    --mouse-x: 50vw;
    --mouse-y: 50vh;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background-color: var(--bg-deep);
    overscroll-behavior-y: none;
    scroll-behavior: smooth;
    scroll-padding-top: 4.5rem;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    overscroll-behavior-y: none;
    color: var(--text);
    background:
        radial-gradient(circle at 6% 5%, rgba(31, 111, 194, 0.14), transparent 25rem),
        linear-gradient(145deg, var(--bg) 0%, var(--bg-deep) 100%);
    background-color: var(--bg-deep);
    font-family: "Manrope", sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    text-rendering: optimizeLegibility;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, black, transparent 85%);
    content: "";
    pointer-events: none;
}

body.modal-open {
    padding-right: 0 !important;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
}

img {
    display: block;
    max-width: 100%;
}

::selection {
    color: #fff;
    background: rgba(50, 143, 231, 0.62);
}

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

.skip-link {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 3000;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    color: #04101c;
    background: var(--accent-light);
    font-size: 0.85rem;
    font-weight: 800;
    transform: translateY(-180%);
    transition: transform 160ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.spotlight {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: radial-gradient(
        560px circle at var(--mouse-x) var(--mouse-y),
        rgba(55, 132, 208, 0.13),
        transparent 72%
    );
    pointer-events: none;
}

.portfolio-shell {
    position: relative;
    z-index: 1;
    width: min(100% - 3rem, 1220px);
    margin: 0 auto;
}

.intro-panel__inner {
    padding: 5.8rem 0 2.5rem;
}

.brand-mark {
    display: inline-grid;
    width: 70px;
    height: 70px;
    place-items: center;
    margin-bottom: 3.25rem;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.025);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
    transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.brand-mark:hover {
    border-color: var(--line-strong);
    background: var(--accent-soft);
    transform: translateY(-2px);
}

.brand-mark img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.eyebrow {
    margin: 0 0 0.75rem;
    color: var(--accent);
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    line-height: 1.4;
    text-transform: uppercase;
}

.intro-copy h1 {
    max-width: 620px;
    margin: 0;
    color: var(--heading);
    font-size: clamp(2.6rem, 5vw, 4.65rem);
    font-weight: 800;
    letter-spacing: -0.065em;
    line-height: 1;
}

.intro-copy h2 {
    margin: 1rem 0 0;
    color: var(--muted-strong);
    font-size: clamp(1.15rem, 2vw, 1.42rem);
    font-weight: 600;
    letter-spacing: -0.025em;
}

.intro-summary {
    max-width: 470px;
    margin: 1.3rem 0 0;
    color: var(--muted);
    line-height: 1.75;
}

.section-nav {
    display: grid;
    gap: 0.8rem;
    width: max-content;
    margin-top: 3.6rem;
}

.section-nav__link {
    display: flex;
    align-items: center;
    width: max-content;
    gap: 1rem;
    padding: 0.2rem 0;
    color: #7087a3;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition: color 180ms ease;
}

.section-nav__line {
    display: block;
    width: 2rem;
    height: 1px;
    background: currentColor;
    transform-origin: left;
    transition: width 180ms ease, background 180ms ease;
}

.section-nav__link:hover,
.section-nav__link.is-active {
    color: var(--heading);
}

.section-nav__link:hover .section-nav__line,
.section-nav__link.is-active .section-nav__line {
    width: 4rem;
    color: var(--accent);
}

.intro-footer {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 4rem;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.48rem;
    color: #506681;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.language-button {
    padding: 0.25rem;
    border: 0;
    color: #6f86a1;
    background: transparent;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    cursor: pointer;
    transition: color 160ms ease;
}

.language-button:hover,
.language-button.is-active {
    color: var(--accent-light);
}

.social-links {
    display: flex;
    align-items: center;
    gap: 1.1rem;
}

.social-links a {
    color: #8096b0;
    font-size: 1.25rem;
    line-height: 1;
    transition: color 160ms ease, transform 160ms ease;
}

.social-links a:hover {
    color: var(--accent-light);
    transform: translateY(-3px);
}

.content-panel {
    min-width: 0;
}

.content-section {
    position: relative;
    padding: 6rem 0;
    scroll-margin-top: 1rem;
}

.content-section:first-child {
    padding-top: 6.8rem;
}

.content-section + .content-section {
    border-top: 1px solid var(--line);
}

.mobile-section-label {
    display: none;
}

.prose-block {
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.9;
}

.prose-block p {
    margin: 0 0 1.35rem;
}

.prose-block strong {
    color: var(--heading);
    font-weight: 600;
}

.profile-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    margin: 2.5rem 0 0;
}

.profile-facts div {
    padding: 1rem 1.05rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(13, 29, 49, 0.42);
}

.profile-facts dt {
    margin-bottom: 0.35rem;
    color: var(--accent);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.profile-facts dd {
    margin: 0;
    color: var(--muted-strong);
    font-size: 0.78rem;
    line-height: 1.55;
}

.section-heading {
    max-width: 560px;
    margin-bottom: 2.2rem;
}

.section-heading h2,
.contact-section h2 {
    margin: 0;
    color: var(--heading);
    font-size: clamp(1.65rem, 2.6vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.25;
}

.service-list {
    display: grid;
    gap: 0.5rem;
}

.service-item {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 1.2rem;
    padding: 1.4rem;
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    transition: background 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.service-item:hover {
    border-color: var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.service-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    color: var(--accent-light);
    background: var(--accent-soft);
    font-size: 1.15rem;
}

.service-item h3 {
    margin: 0.15rem 0 0.45rem;
    color: var(--heading);
    font-size: 1rem;
    font-weight: 700;
}

.service-item p {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.75;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0.9rem 0 0;
    padding: 0;
    list-style: none;
}

.tag-list li,
.tag-list > span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    color: var(--accent-light);
    background: rgba(52, 144, 229, 0.11);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.025em;
}

.project-group + .project-group {
    margin-top: 3.5rem;
}

.project-group__label {
    margin: 0 0 1rem;
    color: #6f86a1;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.project-group--preview > .project-card:nth-of-type(n + 6) {
    display: none;
}

.project-group__more {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0.8rem 0 0 1.4rem;
    color: var(--accent-light);
    font-size: 0.78rem;
    font-weight: 800;
}

.project-group__more:hover {
    color: var(--heading);
}

.project-group__more i {
    transition: transform 160ms ease;
}

.project-group__more:hover i {
    transform: translate(3px, -3px);
}

.project-card {
    display: grid;
    width: 100%;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 0.85rem;
    margin: 0 0 0.55rem;
    padding: 1.35rem 1.4rem;
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    color: inherit;
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: background 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.project-card--featured {
    grid-template-columns: 34px minmax(0, 1fr) 122px;
}

.project-card:hover,
.project-card:focus-visible {
    border-color: var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.project-card__index {
    padding-top: 0.15rem;
    color: #60758f;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.project-card__body {
    display: block;
    min-width: 0;
}

.project-card__topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    color: var(--heading);
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.45;
}

.project-card__topline i {
    flex: 0 0 auto;
    color: var(--accent);
    transition: transform 160ms ease;
}

.project-card:hover .project-card__topline {
    color: var(--accent-light);
}

.project-card:hover .project-card__topline i {
    transform: translate(3px, -3px);
}

.project-card__description {
    display: block;
    margin-top: 0.45rem;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.7;
}

.project-card__media {
    display: block;
    padding-top: 0.15rem;
}

.project-card__media img {
    width: 122px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border: 1px solid rgba(160, 190, 220, 0.18);
    border-radius: 10px;
    filter: saturate(0.65);
    transition: filter 180ms ease, border-color 180ms ease;
}

.project-card__media--portrait img {
    object-position: center top;
}

.project-card:hover .project-card__media img {
    border-color: var(--line-strong);
    filter: saturate(1);
}

/* Full project archive */
.project-archive {
    position: relative;
    max-width: 1240px;
    margin: 0 auto;
    padding: 2rem clamp(1.2rem, 5vw, 4rem) 4rem;
}

.project-archive__header,
.project-archive__nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.project-archive__header {
    justify-content: space-between;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line);
}

.project-archive__brand {
    color: var(--heading);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.project-archive__nav a {
    color: var(--muted-strong);
    font-size: 0.78rem;
    font-weight: 700;
}

.project-archive__nav a:hover {
    color: var(--accent-light);
}

.project-archive__intro {
    max-width: 720px;
    padding: 4rem 0 1rem;
}

.project-archive__intro h1 {
    margin: 0 0 0.8rem;
    color: var(--heading);
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
}

.project-archive__intro p:last-child {
    color: var(--muted);
}

.project-archive .project-group {
    scroll-margin-top: 2rem;
}

.project-archive .project-group__label {
    color: var(--accent-light);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 1rem;
    align-items: start;
}

.project-grid .project-card {
    margin: 0;
    padding: 1.2rem;
    border-color: var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    align-content: start;
}

.project-grid .project-card--with-media {
    grid-template-columns: 34px minmax(0, 1fr) 80px;
    align-items: center;
}

.project-grid .project-card--with-media .tag-list {
    grid-column: 1 / -1;
    margin-top: 0;
}

.project-grid .project-card__media {
    display: block;
    padding: 0;
}

.project-grid .project-card__media img {
    width: 80px;
    aspect-ratio: 16 / 10;
    border-radius: 10px;
}

.project-grid .project-card:hover,
.project-grid .project-card:focus-visible {
    padding: 1.2rem;
    border-color: var(--line-strong);
    background: var(--surface-hover);
}

.project-archive__footer {
    margin-top: 4rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.project-archive__footer a {
    color: var(--accent-light);
    font-size: 0.8rem;
    font-weight: 800;
}

.contact-section {
    max-width: 680px;
}

.contact-section > p:not(.eyebrow, .mobile-section-label) {
    max-width: 580px;
    margin: 1.2rem 0 0;
    color: var(--muted);
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

.primary-action,
.secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    gap: 0.65rem;
    padding: 0.7rem 1.15rem;
    border: 1px solid transparent;
    border-radius: 13px;
    font-size: 0.8rem;
    font-weight: 800;
    transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.primary-action {
    color: #03111d;
    background: var(--accent-light);
}

.primary-action:hover {
    color: #03111d;
    background: #b9e1ff;
    transform: translateY(-2px);
}

.secondary-action {
    border-color: var(--line-strong);
    color: var(--accent-light);
    background: var(--accent-soft);
}

.secondary-action:hover {
    border-color: var(--accent);
    color: #c9e9ff;
    background: rgba(90, 176, 255, 0.18);
    transform: translateY(-2px);
}

.contact-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 2rem;
    color: #7187a2;
    font-size: 0.76rem;
}

.contact-meta a:hover {
    color: var(--accent-light);
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.8rem 0 3rem;
    border-top: 1px solid var(--line);
    color: #637a95;
    font-size: 0.72rem;
}

.site-footer p {
    margin: 0;
}

.site-footer strong {
    color: var(--muted-strong);
    font-weight: 600;
}

.site-footer a {
    color: var(--muted-strong);
}

.site-footer a:hover {
    color: var(--accent-light);
}

/* Project modals */
.modal {
    --bs-modal-width: 820px;
    --bs-modal-color: var(--text);
    --bs-modal-bg: var(--surface-strong);
    --bs-modal-border-color: var(--line);
    --bs-modal-border-radius: 22px;
    --bs-modal-header-border-color: var(--line);
}

.modal-backdrop {
    --bs-backdrop-bg: #01060c;
    --bs-backdrop-opacity: 0.82;
    backdrop-filter: blur(6px);
}

.modal-content {
    overflow: hidden;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.6);
}

.modal-header {
    position: relative;
    align-items: flex-start;
    padding: 1.35rem 4.25rem 1.35rem 1.5rem;
}

.modal-title-wrap {
    min-width: 0;
}

.modal-eyebrow {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--accent);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.modal-title {
    color: var(--heading);
    font-size: 1.15rem;
    font-weight: 700;
}

.modal .btn-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    margin: 0;
    filter: invert(1) grayscale(1);
    opacity: 0.72;
}

.modal .btn-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 1.5rem;
}

.modal-description {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.8;
}

.modal-website-link {
    margin-top: 1.25rem;
}

.modal-stack {
    margin-top: 1.5rem;
}

.modal-stack__label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--muted-strong);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.project-carousel {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #030a12;
}

.project-carousel .carousel-item img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.project-carousel .carousel-caption {
    right: 0;
    bottom: 0;
    left: 0;
    padding: 2.75rem 1.2rem 1rem;
    background: linear-gradient(transparent, rgba(2, 8, 15, 0.92));
    text-align: left;
}

.project-carousel .carousel-caption h6 {
    margin: 0;
    color: #fff;
    font-size: 0.82rem;
}

.project-carousel .carousel-caption p {
    margin: 0.15rem 0 0;
    color: rgba(232, 240, 250, 0.76);
    font-size: 0.66rem;
}

.project-carousel--contain .carousel-item img {
    aspect-ratio: auto;
    object-fit: contain;
}

.project-carousel--portrait .carousel-item img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 70vh;
    margin-inline: auto;
}

.project-carousel--contain .carousel-caption {
    position: static;
    padding: 0.75rem 1rem;
    background: var(--surface-strong);
}

.project-carousel--contain .carousel-indicators {
    display: none;
}

.project-carousel .carousel-indicators {
    margin-bottom: 0.65rem;
}

.project-carousel .carousel-indicators button {
    width: 20px;
    height: 3px;
}

.project-thumbs {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.45rem;
    margin-top: 0.7rem;
}

.project-thumb {
    padding: 0;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 160ms ease, border-color 160ms ease;
}

.project-thumb img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.project-carousel--contain + .project-thumbs img {
    object-fit: contain;
    background: #fff;
}

.project-thumb:hover,
.project-thumb.is-active {
    border-color: var(--accent);
    opacity: 1;
}

@media (min-width: 1024px) {
    .portfolio-shell {
        display: grid;
        grid-template-columns: minmax(370px, 0.84fr) minmax(0, 1.16fr);
        gap: clamp(1.75rem, 3.25vw, 3.75rem);
    }

    .intro-panel__inner {
        position: sticky;
        top: 0;
        display: flex;
        height: 100vh;
        flex-direction: column;
        padding-right: 1rem;
    }

    .intro-footer {
        margin-top: auto;
    }
}

@media (max-width: 1023.98px) {
    .portfolio-shell {
        width: min(100% - 3rem, 760px);
    }

    .intro-panel__inner {
        min-height: auto;
        padding: 4rem 0 2.5rem;
    }

    .brand-mark {
        margin-bottom: 2.3rem;
    }

    .intro-copy h1 {
        max-width: none;
    }

    .section-nav {
        display: none;
    }

    .intro-footer {
        margin-top: 2.5rem;
    }

    .content-section,
    .content-section:first-child {
        padding: 4.5rem 0;
    }

    .mobile-section-label {
        position: sticky;
        top: 0;
        z-index: 20;
        display: block;
        width: calc(100% + 3rem);
        margin: 0 0 2rem -1.5rem;
        padding: 1rem 1.5rem;
        color: var(--heading);
        background: rgba(7, 17, 31, 0.88);
        backdrop-filter: blur(14px);
        font-size: 0.7rem;
        font-weight: 800;
        letter-spacing: 0.16em;
        text-transform: uppercase;
    }
}

@media (max-width: 679.98px) {
    .portfolio-shell {
        width: min(100% - 2rem, 620px);
    }

    .intro-panel__inner {
        padding: 2.2rem 0 1.5rem;
    }

    .brand-mark {
        width: 58px;
        height: 58px;
        margin-bottom: 2rem;
        border-radius: 15px;
    }

    .brand-mark img {
        width: 50px;
        height: 50px;
    }

    .intro-copy h1 {
        font-size: clamp(2.45rem, 12vw, 3.5rem);
    }

    .intro-summary {
        font-size: 0.92rem;
    }

    .intro-footer {
        align-items: flex-end;
        justify-content: space-between;
        gap: 1rem;
    }

    .social-links {
        gap: 0.85rem;
    }

    .social-links a {
        font-size: 1.12rem;
    }

    .content-section,
    .content-section:first-child {
        padding: 3.5rem 0;
    }

    .mobile-section-label {
        width: calc(100% + 2rem);
        margin-left: -1rem;
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .prose-block {
        font-size: 0.94rem;
    }

    .profile-facts {
        grid-template-columns: 1fr;
    }

    .service-item {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 0.9rem;
        padding: 1.15rem 0;
        border-radius: 0;
    }

    .service-item + .service-item {
        border-top-color: var(--line);
    }

    .service-item:hover {
        padding-right: 0.8rem;
        padding-left: 0.8rem;
        border-radius: var(--radius-md);
    }

    .service-icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        font-size: 0.95rem;
    }

    .project-card,
    .project-card--featured {
        grid-template-columns: 28px minmax(0, 1fr);
        padding: 1.2rem 0;
        border-radius: 0;
    }

    .project-card:hover,
    .project-card:focus-visible {
        padding-right: 0.8rem;
        padding-left: 0.8rem;
        border-radius: var(--radius-md);
    }

    .project-card__media {
        display: none;
    }

    .project-grid .project-card--with-media {
        grid-template-columns: 28px minmax(0, 1fr) 72px;
        column-gap: 0.65rem;
    }

    .project-grid .project-card__media img {
        width: 72px;
    }

    .contact-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .contact-actions a {
        width: 100%;
    }

    .contact-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .contact-meta span[aria-hidden="true"] {
        display: none;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .modal-dialog {
        margin: 0.75rem;
    }

    .modal-header,
    .modal-body {
        padding: 1.1rem;
    }

    .modal-header {
        padding-right: 4rem;
    }

    .modal .btn-close {
        top: 0.65rem;
        right: 0.65rem;
    }

    .project-thumbs {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (hover: hover) and (pointer: fine) {
    .project-group:has(.project-card:hover) .project-card:not(:hover) {
        opacity: 0.58;
    }
}

@media (hover: none), (pointer: coarse) {
    .spotlight {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .spotlight {
        display: none;
    }
}
