@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

:root {
    --bg: #071012;
    --bg-2: #0b171a;
    --surface: rgba(255, 255, 255, 0.075);
    --surface-strong: rgba(255, 255, 255, 0.12);
    --text: #f4f7f5;
    --muted: #9fb0ad;
    --line: rgba(255, 255, 255, 0.14);
    --accent: #022d78;
    --accent-2: #7fb0ff;
    --dark: #020505;
    --radius-lg: 34px;
    --radius-md: 24px;
    --radius-sm: 16px;
    --max: 1180px;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:
        "Inter",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    color: var(--text);
    background:
        radial-gradient(
            circle at 15% 8%,
            rgba(83, 232, 255, 0.2),
            transparent 28rem
        ),
        radial-gradient(
            circle at 86% 4%,
            rgba(2, 45, 120, 0.36),
            transparent 28rem
        ),
        linear-gradient(135deg, #071012 0%, #0b171a 52%, #040707 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

body.nav-open {
    overflow: hidden;
}

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

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

.noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.08;
    z-index: 50;
    background-image:
        radial-gradient(
            circle at 20% 30%,
            rgba(255, 255, 255, 0.18) 1px,
            transparent 1px
        ),
        radial-gradient(
            circle at 70% 80%,
            rgba(255, 255, 255, 0.12) 1px,
            transparent 1px
        );
    background-size:
        38px 38px,
        54px 54px;
}

.site-header {
    position: fixed;
    top: 18px;
    left: 50%;
    z-index: 40;
    width: min(calc(100% - 32px), var(--max));
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 10px 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(7, 16, 18, 0.66);
    backdrop-filter: blur(22px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
    transition:
        border-color 180ms ease,
        background 180ms ease,
        transform 180ms ease;
}

.site-header.is-scrolled {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(7, 16, 18, 0.86);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-nav a {
    padding: 12px 15px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
    transition:
        color 160ms ease,
        background 160ms ease,
        transform 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--text);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.site-nav .nav-cta {
    color: #fff;
    background: var(--accent);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 5px auto;
    background: currentColor;
    transition: transform 180ms ease;
}

.section {
    width: min(calc(100% - 32px), var(--max));
    margin-inline: auto;
    padding: 84px 0;
}

.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
    align-items: center;
    gap: 30px;
    padding-top: 132px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 22px currentColor;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 780px;
    margin-bottom: 24px;
    font-size: clamp(4.2rem, 12vw, 10.5rem);
    line-height: 0.86;
    letter-spacing: -0.095em;
    overflow-wrap: anywhere;
}

h2 {
    font-size: clamp(2rem, 5vw, 4.75rem);
    line-height: 0.96;
    letter-spacing: -0.075em;
    overflow-wrap: anywhere;
}

h3 {
    margin-bottom: 12px;
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    line-height: 1;
    letter-spacing: -0.055em;
}

.hero-lead,
.section-heading p,
.about-text,
.contact-card p,
.social-card p {
    color: var(--muted);
    font-size: clamp(1.05rem, 1.45vw, 1.28rem);
    line-height: 1.65;
}

.hero-lead {
    max-width: 660px;
    margin-bottom: 32px;
}

.hero-actions,
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button,
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 900;
    transition:
        transform 180ms ease,
        background 180ms ease,
        border-color 180ms ease;
}

.button:hover,
.social-links a:hover {
    transform: translateY(-2px);
}

.primary {
    color: #fff;
    background: var(--accent);
    box-shadow: 0 14px 40px rgba(2, 45, 120, 0.42);
}

.secondary,
.social-links a {
    border: 1px solid var(--line);
    color: var(--text);
    background: rgba(255, 255, 255, 0.07);
}

.youtube {
    color: #fff;
    background: #ff0000;
    box-shadow: 0 14px 40px rgba(255, 0, 0, 0.35);
}

.youtube:hover {
    background: #cc0000;
}

.hero-actions .button:not(.seestar) {
    flex: 1;
}

.seestar {
    color: #fff;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 14px 40px rgba(15, 52, 96, 0.45);
    flex-basis: 100%;
    justify-content: center;
}

.seestar:hover {
    background: linear-gradient(135deg, #16213e 0%, #0f3460 50%, #1a4a8a 100%);
}

.hero-panel {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 0.75fr;
    grid-template-rows: 1fr auto;
    gap: 16px;
}

.portrait-card,
.signal-card,
.mini-card,
.stat-card,
.work-card,
.about-card,
.social-card,
.contact-card {
    border: 1px solid var(--line);
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.12),
        rgba(255, 255, 255, 0.045)
    );
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.tilt-card {
    transform-style: preserve-3d;
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background 180ms ease;
}

.tilt-card:hover {
    border-color: rgba(127, 176, 255, 0.48);
}

.portrait-card {
    position: relative;
    grid-row: span 2;
    min-height: 560px;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.portrait-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.92) contrast(1.05);
}

.portrait-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.78));
}

.portrait-overlay {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    z-index: 1;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
}

.portrait-overlay span,
.work-content span {
    color: var(--accent-2);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.portrait-overlay strong {
    max-width: 120px;
    font-size: 1.45rem;
    line-height: 0.95;
    letter-spacing: -0.06em;
    text-align: right;
}

.signal-card,
.mini-card {
    border-radius: var(--radius-md);
    padding: 22px;
}

.signal-card {
    align-self: stretch;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        radial-gradient(
            circle at 20% 0%,
            rgba(2, 45, 120, 0.42),
            transparent 45%
        ),
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.13),
            rgba(255, 255, 255, 0.04)
        );
}

.signal-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow:
        0 0 0 9px rgba(2, 45, 120, 0.18),
        0 0 34px rgba(127, 176, 255, 0.48);
}

.signal-card p {
    margin: 0;
    max-width: 180px;
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -0.08em;
}

.mini-card {
    display: grid;
    place-items: center;
    text-align: center;
    aspect-ratio: 1.2;
}

.mini-card strong {
    display: block;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 0.9;
    letter-spacing: -0.08em;
}

.mini-card span {
    color: var(--muted);
    font-weight: 800;
}

.section-heading {
    max-width: 820px;
    margin-bottom: 30px;
}

.section-heading h2 {
    margin-bottom: 18px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stat-card {
    min-height: 250px;
    padding: 24px;
    border-radius: var(--radius-md);
}

.featured-stat {
    grid-column: span 2;
    background:
        radial-gradient(
            circle at 80% 10%,
            rgba(83, 232, 255, 0.22),
            transparent 36%
        ),
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.15),
            rgba(255, 255, 255, 0.05)
        );
}

.stat-number,
.stat-prefix,
.stat-suffix {
    display: inline-block;
    font-size: clamp(3rem, 7vw, 6.7rem);
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -0.1em;
}

.stat-number.small {
    font-size: clamp(2.8rem, 5vw, 5rem);
}

.stat-card p {
    margin: 22px 0 0;
    color: var(--muted);
    line-height: 1.45;
    font-weight: 700;
}

.about-card,
.social-card,
.contact-card {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 40px;
    padding: clamp(28px, 5vw, 64px);
    border-radius: var(--radius-lg);
}

.about-text p:last-child,
.social-card p:last-child,
.contact-card p:last-child {
    margin-bottom: 0;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.work-card {
    position: relative;
    min-height: 470px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.work-card.large,
.work-card.wide {
    grid-column: span 2;
}

.work-card img {
    width: 100%;
    height: 100%;
    min-height: 470px;
    object-fit: cover;
    transition:
        transform 500ms ease,
        filter 500ms ease;
}

.work-card:hover img {
    transform: scale(1.045);
    filter: saturate(1.08) contrast(1.05);
}

.work-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(2, 5, 5, 0.05),
        rgba(2, 5, 5, 0.9)
    );
}

.work-content {
    position: absolute;
    inset: auto 18px 18px;
    z-index: 1;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-md);
    background: rgba(5, 10, 11, 0.72);
    backdrop-filter: blur(18px);
}

.work-content h3 {
    margin-top: 10px;
}

.work-content p {
    margin-bottom: 0;
    color: #c7d2cf;
    line-height: 1.5;
}

.social-card {
    align-items: center;
}

.social-links {
    justify-content: flex-end;
}

.social-links a {
    min-width: 136px;
}

.contact-card {
    display: block;
    max-width: 920px;
    margin-inline: auto;
    text-align: center;
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(2, 45, 120, 0.34),
            transparent 32rem
        ),
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.14),
            rgba(255, 255, 255, 0.04)
        );
}

.contact-card .button {
    margin-top: 12px;
}

.site-footer {
    width: min(calc(100% - 32px), var(--max));
    margin: 0 auto;
    padding: 28px 0 46px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
    border-top: 1px solid var(--line);
}

.site-footer p {
    margin: 0;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 600ms ease,
        transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 980px) {
    .hero,
    .about-card,
    .social-card {
        grid-template-columns: 1fr;
    }

    .hero {
        gap: 44px;
    }

    .hero-panel {
        max-width: 680px;
    }

    .stats-grid,
    .work-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-card,
    .featured-stat,
    .work-card.large,
    .work-card.wide {
        grid-column: span 1;
    }

    .social-links {
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    .site-header {
        top: 10px;
    }

    .nav-toggle {
        display: block;
    }

    .nav-toggle[aria-expanded="true"] span:first-child {
        transform: translateY(3.5px) rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] span:last-child {
        transform: translateY(-3.5px) rotate(-45deg);
    }

    .site-nav {
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        display: grid;
        gap: 8px;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 24px;
        background: rgba(7, 16, 18, 0.94);
        backdrop-filter: blur(22px);
        transform: translateY(-10px);
        opacity: 0;
        pointer-events: none;
        transition:
            opacity 180ms ease,
            transform 180ms ease;
    }

    .site-nav.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .site-nav a {
        padding: 14px 16px;
    }

    .brand span {
        display: none;
    }

    .section {
        width: min(calc(100% - 22px), var(--max));
        padding: 58px 0;
    }

    .hero {
        padding-top: 110px;
    }

    h1 {
        font-size: clamp(4.15rem, 22vw, 7rem);
    }

    .hero-actions .button,
    .contact-card .button {
        width: 100%;
    }

    .hero-panel {
        grid-template-columns: 1fr;
    }

    .portrait-card {
        min-height: 520px;
    }

    .signal-card,
    .mini-card {
        min-height: auto;
        aspect-ratio: auto;
    }

    .stats-grid,
    .work-grid {
        grid-template-columns: 1fr;
    }

    .stat-card,
    .work-card,
    .work-card img {
        min-height: 360px;
    }

    .about-card,
    .social-card,
    .contact-card {
        padding: 24px;
        border-radius: 24px;
    }

    .social-links a {
        width: 100%;
    }

    .site-footer {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Requested refinements */
.hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.68fr);
    grid-template-areas:
        "copy panel"
        "actions panel";
    gap: clamp(34px, 6vw, 72px);
}

.hero-copy {
    grid-area: copy;
}

.hero-panel {
    grid-area: panel;
    display: block;
    align-self: start;
}

.hero-actions {
    grid-area: actions;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.portrait-card {
    min-height: 640px;
    max-width: 460px;
    margin-left: auto;
}

.primary,
.site-nav .nav-cta {
    color: #fff;
    background: var(--accent);
}

.eyebrow {
    color: var(--accent-2);
}

.stats-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
}

.stat-card,
.featured-stat {
    grid-column: auto;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.105),
        rgba(255, 255, 255, 0.04)
    );
}

.stat-card:nth-child(2) {
    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(2, 45, 120, 0.34),
            transparent 54%
        ),
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.11),
            rgba(255, 255, 255, 0.04)
        );
}

.stat-card:nth-child(3) {
    background:
        radial-gradient(
            circle at 18% 0%,
            rgba(127, 176, 255, 0.2),
            transparent 52%
        ),
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.12),
            rgba(255, 255, 255, 0.045)
        );
}

.stat-number,
.stat-prefix,
.stat-suffix {
    color: #ffffff;
    letter-spacing: -0.075em;
}

.stat-card p {
    max-width: 220px;
}

.work-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.work-card,
.work-card.large,
.work-card.wide {
    grid-column: auto;
}

.work-card {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    align-items: stretch;
    min-height: 264px;
    padding: 12px;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.work-card::after {
    display: none;
}

.work-card img {
    width: 360px;
    height: 240px;
    min-height: 0;
    aspect-ratio: 3 / 2;
    border-radius: 24px;
    object-fit: cover;
}

.work-card:hover img {
    transform: scale(1.018);
}

.work-content {
    position: static;
    inset: auto;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 240px;
    padding: 24px 30px;
    border: 0;
    background: transparent;
    backdrop-filter: none;
}

.work-content span {
    color: var(--accent-2);
}

.social-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    gap: 12px;
    justify-content: stretch;
}

.social-links .social-link {
    min-width: 0;
    min-height: 78px;
    justify-content: flex-start;
    gap: 12px;
    padding: 14px;
    border-radius: 24px;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.045)
    );
}

.social-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 16px;
    color: #fff;
    background: var(--accent);
    box-shadow: 0 12px 28px rgba(2, 45, 120, 0.34);
}

.social-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

@media (max-width: 980px) {
    .portrait-card {
        max-width: 620px;
        margin-left: 0;
        min-height: 560px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .work-card {
        grid-template-columns: 300px minmax(0, 1fr);
    }

    .work-card img {
        width: 300px;
        height: 220px;
    }

    .work-content {
        min-height: 220px;
        padding: 22px;
    }
}

@media (max-width: 760px) {
    .portrait-card {
        min-height: 520px;
        max-width: none;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card,
    .featured-stat {
        min-height: 220px;
    }

    .work-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .work-card img {
        width: 100%;
        height: 230px;
    }

    .work-content {
        min-height: auto;
        padding: 22px 8px 8px;
    }

    .social-links {
        grid-template-columns: 1fr;
    }
}

/* Hero image should fit the original 1200x675 asset ratio */
.hero {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
}

.portrait-card {
    width: min(100%, 560px);
    max-width: 560px;
    min-height: 0;
    aspect-ratio: 16 / 9;
    margin-left: auto;
}

.portrait-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #020505;
}

@media (max-width: 980px) {
    .portrait-card {
        width: min(100%, 680px);
        max-width: 680px;
        margin-left: 0;
        min-height: 0;
    }
}

@media (max-width: 760px) {
    .portrait-card {
        width: 100%;
        max-width: none;
        min-height: 0;
    }
}

/* Fix: collaboration images fill card height */
.work-card {
    align-items: stretch;
}

.work-card img {
    height: 100%;
    min-height: 240px;
    align-self: stretch;
    object-fit: cover;
}

/* Fix: hero responsive - override previous 2-col rules on mobile */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr !important;
        grid-template-areas:
            "copy"
            "panel"
            "actions" !important;
        gap: 44px;
        padding-top: 120px;
    }

    .portrait-card {
        width: 100%;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 600px) {
    .hero {
        padding-top: 110px;
        gap: 36px;
        min-height: 92vh;
    }

    .hero-copy h1 {
        font-size: clamp(3.2rem, 18vw, 5.4rem);
    }

    .portrait-card {
        width: 100%;
        max-width: none;
        margin-left: 0;
        margin-right: 0;
    }

    .portrait-card img {
        object-fit: cover;
        background: transparent;
    }

    .work-card img {
        height: 230px;
        min-height: 0;
        width: 100%;
    }
}

/* Remove conflicting min-height from old portrait-card rules */
@media (max-width: 760px) {
    .portrait-card {
        min-height: 0 !important;
    }
}
/* Override old 760px work-card img fixed height */
@media (max-width: 760px) {
    .work-card img {
        height: 100%;
        width: 100%;
    }
}
