* {
    box-sizing: border-box;
}

:root {
    --bg: #090312;
    --bg-soft: rgba(19, 11, 34, 0.84);
    --panel: rgba(18, 20, 42, 0.82);
    --panel-strong: rgba(12, 14, 34, 0.92);
    --text: #f7f1ff;
    --muted: #b4a9cf;
    --cyan: #49e6f8;
    --pink: #ff47d7;
    --orange: #ff9b54;
    --lime: #d5ff4f;
    --line: rgba(124, 95, 184, 0.38);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
    --radius: 28px;
    --max-width: 1220px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Chakra Petch", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 20% 10%, rgba(255, 71, 215, 0.18), transparent 28%),
        radial-gradient(circle at 80% 15%, rgba(73, 230, 248, 0.15), transparent 24%),
        radial-gradient(circle at 50% 90%, rgba(255, 155, 84, 0.12), transparent 25%),
        linear-gradient(180deg, #12031d 0%, #090312 48%, #05020d 100%);
    overflow-x: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

body::before {
    background:
        linear-gradient(rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.02)) 0 0 / 100% 4px,
        linear-gradient(90deg, rgba(73, 230, 248, 0.06) 1px, transparent 1px) center / 96px 96px,
        linear-gradient(rgba(255, 71, 215, 0.06) 1px, transparent 1px) center / 96px 96px;
    opacity: 0.32;
}

body::after {
    background: radial-gradient(circle at center, transparent 55%, rgba(0, 0, 0, 0.5) 100%);
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

strong {
    color: #ffffff;
}

.screen-noise,
.screen-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.screen-noise {
    opacity: 0.06;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.8) 0 0.8px, transparent 1px),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.7) 0 0.7px, transparent 1px),
        radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.4) 0 0.6px, transparent 1px);
    background-size: 180px 180px;
    animation: noise-shift 10s linear infinite;
}

.screen-grid {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 14%);
    opacity: 0.18;
}

.topbar,
.section,
.footer {
    width: min(calc(100% - 32px), var(--max-width));
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 0 10px;
    backdrop-filter: blur(16px);
}

.brand {
    display: inline-flex;
    align-items: center;
}

.brand__logo {
    width: 180px;
    filter: drop-shadow(0 0 18px rgba(255, 71, 215, 0.24));
}

.topbar__nav {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.topbar__nav a,
.button,
.button--muted {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    padding: 12px 18px;
    font-size: 0.98rem;
    letter-spacing: 0.04em;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.topbar__nav a {
    background: rgba(16, 18, 34, 0.76);
}

.topbar__nav a:hover,
.button:hover {
    transform: translateY(-2px);
    border-color: rgba(73, 230, 248, 0.7);
    box-shadow: 0 0 24px rgba(73, 230, 248, 0.18);
}

.section {
    padding: 64px 0;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.9fr);
    align-items: center;
    gap: 42px;
    min-height: calc(100vh - 88px);
    padding-top: 40px;
}

.panel {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(20, 18, 47, 0.92), rgba(9, 10, 28, 0.92));
    box-shadow: var(--shadow);
    overflow: hidden;
}

.panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(73, 230, 248, 0.08), transparent 34%, rgba(255, 71, 215, 0.07));
    pointer-events: none;
}

.panel--accent {
    padding: 38px;
}

.panel--soft {
    padding: 32px;
    background: linear-gradient(180deg, rgba(20, 18, 47, 0.76), rgba(9, 10, 28, 0.76));
}

.eyebrow,
.timeline__year,
.showcase-card__label {
    font-family: "Press Start 2P", cursive;
    font-size: 0.72rem;
    line-height: 1.7;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--lime);
}

.hero h1,
.section-heading h2,
.footer h2 {
    margin: 0;
    font-family: "Press Start 2P", cursive;
    line-height: 1.18;
    text-transform: uppercase;
    text-shadow: 0 0 22px rgba(255, 71, 215, 0.18);
}

.hero h1 {
    font-size: clamp(1.7rem, 3.7vw, 3.55rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.section-heading h2,
.footer h2 {
    font-size: clamp(1.8rem, 4vw, 3.2rem);
}

.hero__lede,
.section-heading p,
.project-card__body p,
.timeline__item p,
.intro-strip p,
.footer p {
    margin: 0;
    color: var(--muted);
    font-size: 1.18rem;
    line-height: 1.65;
}

.hero__lede {
    max-width: 62ch;
    margin-top: 24px;
}

.hero__actions,
.project-card__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
}

.button--primary {
    background: linear-gradient(90deg, rgba(255, 71, 215, 0.94), rgba(73, 230, 248, 0.92));
    color: #12031d;
    font-weight: 700;
    box-shadow: 0 0 28px rgba(255, 71, 215, 0.24);
}

.button--secondary {
    background: rgba(255, 255, 255, 0.04);
}

.button--muted {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    cursor: default;
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
}

.hero__stats li {
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
}

.hero__stat-label {
    display: block;
    margin-bottom: 8px;
    color: var(--cyan);
    font-size: 0.92rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero__visual {
    position: relative;
    min-height: 660px;
}

.showcase-card {
    position: absolute;
    width: min(100%, 410px);
    padding: 18px;
    backdrop-filter: blur(16px);
    animation: float 6s ease-in-out infinite;
}

.showcase-card img {
    width: 100%;
    height: 100%;
    border-radius: 18px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.showcase-card__label {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 1;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(5, 2, 13, 0.78);
    color: var(--lime);
}

.showcase-card--primary {
    inset: 28px 26px auto auto;
    transform: rotate(-3deg);
}

.showcase-card--secondary {
    left: 0;
    top: 240px;
    width: 320px;
    transform: rotate(5deg);
    animation-delay: 1.2s;
}

.showcase-card--tertiary {
    right: 10px;
    bottom: 20px;
    width: 340px;
    transform: rotate(4deg);
    animation-delay: 2.4s;
}

.intro-strip {
    padding-top: 10px;
}

.intro-strip__grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 28px;
    align-items: center;
}

.section-heading {
    display: grid;
    gap: 18px;
    max-width: 780px;
    margin-bottom: 28px;
}

.project-grid {
    display: grid;
    gap: 28px;
}

.project-grid--products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-card {
    display: grid;
    grid-template-columns: minmax(280px, 0.88fr) minmax(0, 1fr);
    gap: 24px;
    padding: 22px;
}

.project-card__media {
    position: relative;
    min-height: 340px;
    overflow: hidden;
    isolation: isolate;
    border-radius: 24px;
}

.project-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.project-card__media--stacked,
.project-card__media--split {
    position: relative;
}

.project-card__media--stacked img,
.project-card__media--split img {
    position: absolute;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
}

.project-card__media--stacked img:nth-child(1) {
    inset: 0 54px 46px 0;
}

.project-card__media--stacked img:nth-child(2) {
    inset: 40px 0 26px 96px;
}

.project-card__media--stacked img:nth-child(3) {
    inset: auto 54px 0 34px;
    height: 45%;
}

.project-card__media--split {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 14px;
}

.project-card__media--split img {
    position: static;
    height: 100%;
}

.project-card__media--split img:nth-child(1) {
    grid-column: span 12;
    min-height: 178px;
}

.project-card__media--split img:nth-child(2),
.project-card__media--split img:nth-child(3) {
    grid-column: span 6;
    min-height: 152px;
}

.project-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
}

.project-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--cyan);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.project-card h3,
.timeline__item h3 {
    margin: 0;
    font-family: "Press Start 2P", cursive;
    font-size: clamp(1.15rem, 2vw, 1.7rem);
    line-height: 1.45;
}

.project-note {
    align-self: center;
    color: var(--muted);
    font-size: 1rem;
}

.project-card--product {
    grid-template-columns: 1fr;
}

.project-card--product .project-card__media {
    min-height: 280px;
}

.section--timeline {
    padding-bottom: 40px;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.timeline__item {
    padding: 28px;
    min-height: 240px;
}

.timeline__year {
    display: inline-block;
    margin-bottom: 22px;
    color: var(--orange);
}

.timeline__item--highlight {
    border-color: rgba(73, 230, 248, 0.6);
    box-shadow: 0 0 34px rgba(73, 230, 248, 0.14), var(--shadow);
}

.footer {
    padding-top: 0;
    padding-bottom: 64px;
}

.footer__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0) rotate(var(--card-rotate, 0deg));
    }

    50% {
        transform: translateY(-10px) rotate(var(--card-rotate, 0deg));
    }
}

@keyframes noise-shift {
    0% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(-1%, 1%);
    }

    50% {
        transform: translate(1%, -1%);
    }

    75% {
        transform: translate(1%, 1%);
    }

    100% {
        transform: translate(0, 0);
    }
}

.showcase-card--primary {
    --card-rotate: -3deg;
}

.showcase-card--secondary {
    --card-rotate: 5deg;
}

.showcase-card--tertiary {
    --card-rotate: 4deg;
}

@media (max-width: 1120px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero__visual {
        min-height: 620px;
    }

    .project-grid--products,
    .timeline,
    .footer__content,
    .intro-strip__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .topbar {
        position: static;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero__stats,
    .project-card {
        grid-template-columns: 1fr;
    }

    .hero__visual {
        min-height: 760px;
    }

    .showcase-card--primary {
        top: 0;
        right: 0;
    }

    .showcase-card--secondary {
        top: 250px;
        left: 0;
    }

    .showcase-card--tertiary {
        right: 0;
        bottom: 0;
    }
}

@media (max-width: 680px) {
    .topbar,
    .section,
    .footer {
        width: min(calc(100% - 20px), var(--max-width));
    }

    .section {
        padding: 44px 0;
    }

    .panel--accent,
    .panel--soft,
    .project-card,
    .timeline__item {
        padding: 22px;
    }

    .hero h1,
    .section-heading h2,
    .footer h2 {
        font-size: clamp(1.6rem, 10vw, 2.2rem);
        line-height: 1.32;
    }

    .hero__lede,
    .section-heading p,
    .project-card__body p,
    .timeline__item p,
    .intro-strip p,
    .footer p {
        font-size: 1rem;
    }

    .hero__visual {
        min-height: auto;
        display: grid;
        gap: 18px;
    }

    .showcase-card {
        position: static;
        width: 100%;
        transform: none;
        animation: none;
    }

    .showcase-card--primary,
    .showcase-card--secondary,
    .showcase-card--tertiary {
        inset: auto;
    }

    .project-card__media {
        min-height: auto;
    }

    .project-card__media--stacked {
        display: grid;
        gap: 14px;
    }

    .project-card__media--stacked img,
    .project-card__media--split img {
        position: static;
        min-height: 180px;
    }

    .project-card__media--stacked img:nth-child(3) {
        height: auto;
    }

    .project-card__media--split {
        grid-template-columns: 1fr;
    }

    .project-card__media--split img:nth-child(2),
    .project-card__media--split img:nth-child(3) {
        grid-column: span 12;
    }

    .hero__actions,
    .project-card__footer,
    .topbar__nav {
        flex-direction: column;
        align-items: stretch;
    }

    .project-note {
        align-self: flex-start;
    }

    .topbar__nav {
        width: 100%;
    }
}