:root {
    --bg: #071019;
    --surface: #101c27;
    --surface-soft: #152837;
    --ink: #eef8ff;
    --muted: #a8bdc9;
    --line: rgba(72, 214, 238, 0.22);
    --accent: #f13b8d;
    --accent-2: #22c7e8;
    --accent-3: #ffd52e;
    --dark: #03070d;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.38);
    --radius: 8px;
    --wrap: min(1120px, calc(100vw - 40px));
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

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

.wrap {
    width: var(--wrap);
    margin-inline: auto;
}

.skip-link,
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.skip-link:focus {
    z-index: 1000;
    top: 12px;
    left: 12px;
    width: auto;
    height: auto;
    clip: auto;
    padding: 10px 14px;
    background: var(--accent-2);
    color: var(--dark);
}

.site-header {
    position: fixed;
    z-index: 30;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(3, 7, 13, 0.9);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(16px);
    transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
    background: rgba(3, 7, 13, 0.3);
    border-color: rgba(72, 214, 238, 0.12);
    box-shadow: none;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: var(--wrap);
    min-height: 54px;
    margin-inline: auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
}

.brand__mark {
    display: block;
    width: auto;
    height: 34px;
    object-fit: contain;
}

.custom-logo-link img {
    width: auto;
    max-height: 32px;
}

.brand__text {
    display: grid;
    line-height: 1.2;
}

.brand__text strong {
    font-size: 0.92rem;
}

.brand__text small {
    color: var(--muted);
    font-size: 0.72rem;
}

.primary-nav .menu,
.footer-nav .menu {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.primary-nav a,
.footer-nav a {
    font-weight: 700;
    text-decoration: none;
}

.primary-nav a {
    color: rgba(238, 248, 255, 0.9);
    font-size: 0.9rem;
}

.primary-nav a:hover,
.primary-nav a:focus,
.footer-nav a:hover,
.footer-nav a:focus {
    color: var(--accent-2);
}

.nav-toggle {
    display: none;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.nav-toggle span:not(.screen-reader-text) {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: var(--ink);
}

.hero {
    position: relative;
    min-height: 72vh;
    overflow: hidden;
    background: var(--dark);
}

.hero__content {
    position: relative;
    z-index: 2;
    display: grid;
    align-content: center;
    min-height: 72vh;
    max-width: 820px;
    padding-block: 118px 72px;
    margin-left: max(20px, calc((100vw - 1120px) / 2));
}

.hero h1,
.archive-hero h1,
.single-entry h1,
.page-entry h1 {
    max-width: 880px;
    margin: 0;
    font-size: clamp(2.4rem, 7vw, 5.9rem);
    line-height: 0.96;
    letter-spacing: 0;
}

.hero p {
    max-width: 620px;
    color: #d5e7ef;
    font-size: 1.18rem;
}

.hero__media {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(3, 7, 13, 0.9) 0%, rgba(7, 16, 25, 0.74) 38%, rgba(7, 16, 25, 0.28) 72%),
        linear-gradient(180deg, rgba(3, 7, 13, 0.1) 0%, rgba(3, 7, 13, 0.84) 100%),
        url("../images/hero-ucarts3d.png") center right / cover no-repeat,
        linear-gradient(145deg, #03070d, #071019);
}

.shape {
    position: absolute;
    display: none;
    border: 3px solid var(--ink);
    box-shadow: 12px 12px 0 rgba(23, 25, 28, 0.85);
}

.shape--cube {
    right: 12vw;
    top: 18vh;
    width: 220px;
    aspect-ratio: 1;
    transform: rotate(12deg) skew(-8deg);
    background: var(--accent);
}

.shape--ring {
    right: 28vw;
    bottom: 16vh;
    width: 150px;
    aspect-ratio: 1;
    border-width: 24px;
    border-radius: 50%;
    background: transparent;
}

.shape--plane {
    right: 5vw;
    bottom: 10vh;
    width: 280px;
    height: 92px;
    transform: rotate(-10deg);
    background: var(--accent-2);
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--accent-2);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.button {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid rgba(238, 248, 255, 0.45);
    border-radius: var(--radius);
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 0 22px rgba(34, 199, 232, 0.22);
}

.button--primary {
    background: linear-gradient(135deg, var(--accent), #ff6bb0);
    color: #fff;
}

.button--ghost {
    background: rgba(16, 28, 39, 0.74);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.feature-band {
    background: var(--dark);
    color: var(--ink);
}

.feature-band__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    padding-block: 0;
    background: rgba(72, 214, 238, 0.18);
}

.feature-band article {
    padding: 34px;
    background: linear-gradient(180deg, #071019, #0e1d29);
}

.feature-band span {
    color: var(--accent-3);
    font-weight: 900;
}

.feature-band h2 {
    margin-bottom: 8px;
}

.section-head {
    padding-top: 72px;
}

.section-head h2,
.callout h2 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.08;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    padding-block: 28px 72px;
}

.content-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.content-card__media {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #0b1720;
}

.content-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-art {
    display: block;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, transparent 0 48%, rgba(72, 214, 238, 0.28) 49% 51%, transparent 52%),
        linear-gradient(45deg, var(--accent-3), var(--accent-2) 52%, var(--accent));
}

.content-card__body {
    padding: 20px;
}

.content-card__meta {
    margin: 0 0 8px;
    color: var(--accent-2);
    font-size: 0.82rem;
    font-weight: 900;
}

.content-card h2 {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.16;
}

.content-card h2 a {
    text-decoration: none;
}

.content-card p:last-child {
    margin-bottom: 0;
    color: var(--muted);
}

.callout {
    padding-block: 70px;
    background: linear-gradient(135deg, #0c1a25, #152837);
}

.callout__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.archive-hero,
.single-entry__header {
    padding-block: 118px 38px;
}

.archive-hero {
    background:
        linear-gradient(90deg, rgba(3, 7, 13, 0.92), rgba(7, 16, 25, 0.8)),
        url("../images/hero-ucarts3d.png") center / cover no-repeat;
    border-bottom: 1px solid var(--line);
}

.archive-hero p,
.single-entry__header p {
    max-width: 720px;
    color: var(--muted);
    font-size: 1.08rem;
}

.single-entry,
.page-entry {
    padding-bottom: 80px;
}

.single-entry__image {
    margin: 0 0 34px;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.entry-content {
    max-width: 780px;
}

.entry-content > * {
    margin-block: 0 1.25rem;
}

.entry-content h2,
.entry-content h3 {
    margin-top: 2.2rem;
    line-height: 1.16;
}

.entry-content a {
    color: var(--accent-2);
    font-weight: 700;
}

.about-hero {
    padding-block: 118px 64px;
    background: linear-gradient(180deg, var(--dark), var(--bg));
    border-bottom: 1px solid var(--line);
}

.about-hero__grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
    gap: 44px;
    align-items: center;
}

.about-hero__media {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 16% 16%, rgba(255, 213, 46, 0.95), transparent 28%),
        radial-gradient(circle at 82% 22%, rgba(241, 59, 141, 0.9), transparent 34%),
        radial-gradient(circle at 56% 84%, rgba(34, 199, 232, 0.9), transparent 38%),
        linear-gradient(135deg, #071019, #152837);
    box-shadow: var(--shadow);
}

.about-hero__media img,
.about-hero__placeholder {
    width: 100%;
    aspect-ratio: 7 / 4;
}

.about-hero__media img {
    height: 100%;
    object-fit: contain;
    background: transparent;
}

.about-hero__placeholder {
    display: grid;
    place-items: center;
    background:
        linear-gradient(135deg, rgba(255, 213, 46, 0.92), rgba(34, 199, 232, 0.72) 54%, rgba(241, 59, 141, 0.86)),
        var(--surface);
    color: var(--dark);
    font-weight: 900;
}

.about-hero__content h1 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 4.8rem);
    line-height: 1;
    letter-spacing: 0;
}

.about-hero__content p {
    max-width: 680px;
    color: var(--muted);
    font-size: 1.12rem;
}

.about-content {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
    gap: 44px;
    padding-block: 72px;
}

.about-content h2,
.about-project-link h2 {
    margin-top: 0;
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    line-height: 1.1;
}

.about-content__main {
    max-width: 760px;
}

.about-content__side {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.about-content__side ul {
    padding-left: 1.1rem;
    margin-bottom: 0;
}

.about-project-link {
    padding-block: 64px;
    background: linear-gradient(135deg, #0c1a25, #152837);
}

.about-project-link__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 28px;
    align-items: center;
}

.about-project-link__inner p {
    max-width: 620px;
    color: var(--muted);
}

.privacy-embed {
    display: grid;
    gap: 10px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.privacy-embed__button {
    justify-self: start;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid rgba(238, 248, 255, 0.45);
    border-radius: var(--radius);
    background: var(--accent-3);
    color: var(--dark);
    font-weight: 900;
    cursor: pointer;
}

.privacy-embed iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.pagination {
    grid-column: 1 / -1;
}

.site-footer {
    padding-block: 42px 24px;
    background: var(--dark);
    color: var(--ink);
}

.site-footer__inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 28px;
    width: var(--wrap);
    margin-inline: auto;
}

.site-footer .brand__mark {
    height: 56px;
    margin-bottom: 16px;
}

.site-footer p,
.site-footer a {
    color: rgba(255, 255, 255, 0.82);
}

.site-footer__copy {
    width: var(--wrap);
    margin: 28px auto 0;
    color: rgba(255, 255, 255, 0.62);
}

@media (max-width: 840px) {
    .nav-toggle {
        display: block;
    }

    .primary-nav {
        position: absolute;
        inset: 54px 0 auto;
        display: none;
        padding: 18px 20px;
        border-bottom: 1px solid var(--line);
        background: rgba(3, 7, 13, 0.92);
        backdrop-filter: blur(16px);
    }

    .primary-nav.is-open {
        display: block;
    }

    .primary-nav .menu {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero__content {
        margin-inline: auto;
    }

    .shape--cube {
        right: -70px;
        top: 13vh;
        width: 160px;
    }

    .shape--ring {
        right: 14vw;
        bottom: 12vh;
        width: 110px;
        border-width: 18px;
    }

    .shape--plane {
        right: -90px;
        width: 220px;
    }

    .feature-band__grid,
    .content-grid,
    .callout__inner,
    .site-footer__inner,
    .about-hero__grid,
    .about-content,
    .about-project-link__inner {
        grid-template-columns: 1fr;
    }

    .about-project-link__inner {
        align-items: start;
    }

    .content-grid {
        padding-bottom: 50px;
    }
}

@media (max-width: 520px) {
    :root {
        --wrap: min(100vw - 28px, 1120px);
    }

    .brand__text small {
        display: none;
    }

    .hero {
        min-height: 68vh;
    }

    .hero__content {
        min-height: 68vh;
        padding-block: 96px 48px;
    }

    .feature-band article {
        padding: 24px;
    }
}
