:root {
    --bg: #000;
    --bg-soft: #050505;
    --surface: rgba(10, 28, 36, 0.72);
    --surface-strong: rgba(8, 21, 29, 0.92);
    --text: #f5f7f2;
    --muted: rgba(245, 247, 242, 0.72);
    --cyan: #44f2da;
    --amber: #ffb649;
    --lime: #bef264;
    --line: rgba(255, 255, 255, 0.08);
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Keep anchor targets visible below the fixed header */
#studio,
#games,
#updates,
#careers,
#contact {
    scroll-margin-top: 8.5rem;
}

body {
    margin: 0;
    min-width: 320px;
    font-family: "Space Grotesk", sans-serif;
    background:
        radial-gradient(circle at top, rgba(68, 242, 218, 0.12), transparent 30%),
        #000;
    color: var(--text);
}

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

img {
    max-width: 100%;
}

.page-shell {
    overflow: hidden;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: "Luckiest Guy", sans-serif;
    letter-spacing: 0.03em;
    gap: 2rem;
    padding: 1.1rem 4.5rem;
    transition: background-color 200ms ease, border-color 200ms ease, backdrop-filter 200ms ease, padding 200ms ease;
}

.site-header.scrolled {
    padding: 0.08rem 4rem;
    background: rgba(0, 0, 0, 0.76);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
}

.brand-logo {
    display: block;
    width: auto;
    height: 2rem;
}

.site-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 2.5rem;
    font-size: 1.2rem;
    letter-spacing: 0.2em;
}

.site-nav a,
.header-cta,
.button,
.game-card a {
    transition: transform 180ms ease, color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.site-nav a:hover,
.game-card a:hover {
    color: var(--cyan);
}

.social-links {
    display: none; /* TODO: remove this line when social links are ready */
    align-items: center;
    gap: 1.5rem;
    font-size: 1.4rem;
}

.social-links a {
    color: var(--text);
    text-decoration: none;
    transition: color 180ms ease, transform 180ms ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    color: var(--cyan);
    transform: translateY(-2px);
}

.header-cta,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.85rem 1.35rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.95rem;
    font-weight: 100;
}

.button:hover,
.header-cta:hover {
    transform: translateY(-1px);
}

.button-static {
    cursor: default;
}

.header-cta,
.button-primary {
    background: var(--cyan);
    color: #021014;
}

.button-secondary {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text);
}

.hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: center;
    padding: 8rem 4.5rem 4rem;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.gradient-orb,
.signal,
.grid-haze {
    position: absolute;
    pointer-events: none;
}

.gradient-orb {
    border-radius: 999px;
    filter: blur(30px);
    opacity: 0.75;
}

.orb-a {
    width: 30rem;
    height: 30rem;
    top: 10%;
    right: 8%;
    background: radial-gradient(circle, rgba(68, 242, 218, 0.28), transparent 65%);
}

.orb-b {
    width: 28rem;
    height: 28rem;
    bottom: 2%;
    left: -4%;
    background: radial-gradient(circle, rgba(255, 182, 73, 0.22), transparent 70%);
}

.grid-haze {
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 5rem 5rem;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 90%);
    opacity: 0.08;
}

.signal {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.signal-one {
    width: 16rem;
    height: 16rem;
    right: 18%;
    top: 18%;
    transform: rotate(18deg);
}

.signal-two {
    width: 10rem;
    height: 10rem;
    left: 40%;
    bottom: 14%;
    transform: rotate(-16deg);
}

.hero-copy,
.hero-stage,
.hero-media,
.section-heading,
.studio-grid,
.games-grid,
.timeline,
.careers-card,
.contact-card {
    position: relative;
    z-index: 1;
}

.hero-stage {
    position: relative;
    min-height: 34rem;
}

/* Hero right-side image (replaces stage cards) */
.hero-media {
    position: relative;
    z-index: 1;
    min-height: 34rem;
    display: grid;
    place-items: center;
}

.hero-media-image {
    width: min(720px, 100%);
    height: auto;
    display: block;
    filter: drop-shadow(0 30px 80px rgba(0, 0, 0, 0.45));
}

.eyebrow {
    margin: 0 0 0.8rem;
    color: var(--amber);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.studio-copy h3,
.game-card h3,
.timeline-step h3,
.careers-card h2,
.contact-card h2 {
    margin: 0;
    font-family: "Luckiest Guy", cursive;
    letter-spacing: 0.05em;
    line-height: 0.95;
}

.hero h1 {
    max-width: 10ch;
    font-size: clamp(4.5rem, 10vw, 8.6rem);
}

/* Split hero title sizing */

#hero-title .hero-title-main {
    display: block;
    font-size: 1em;
}

#hero-title .hero-title-sub {
    display: block;
    font-size: 0.6em;
    letter-spacing: 0.04em;
}

.hero-text,
.studio-copy p {
    color: var(--muted);
    font-size: 1.1rem;
}

.game-card p,
.timeline-step p {
    color: var(--muted);
    line-height: 1.7;
}

.careers-card p,
.contact-card p {
    line-height: 1.7;
}

.hero-text {
    max-width: 35rem;
    margin: 1.5rem 0 0;
    font-size: 1.05rem;
}

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

/* Contact form */
.contact-form {
    margin-top: 2rem;
}

.contact-form-hidden {
    display: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text);
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.95rem;
    transition: border-color 180ms ease, background 180ms ease;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(245, 247, 242, 0.3);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--cyan);
    background: rgba(68, 242, 218, 0.04);
}

@media (max-width: 760px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.stage-card {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.75rem;
    background: linear-gradient(180deg, rgba(17, 35, 42, 0.82), rgba(6, 15, 20, 0.92));
    box-shadow: var(--shadow);
}

.stage-card::before,
.collage-panel::before,
.game-card::before,
.careers-card::before,
.contact-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent 45%);
    opacity: 0.35;
    pointer-events: none;
}

.stage-card-large {
    inset: 7rem 7rem 4rem 0;
    padding: 2rem;
}

.stage-card-small {
    width: 15rem;
    padding: 1.4rem;
    background: linear-gradient(180deg, rgba(13, 41, 52, 0.9), rgba(6, 18, 24, 0.95));
}

.top-card {
    top: 1rem;
    right: 0;
}

.bottom-card {
    bottom: 0;
    right: 2rem;
}

.stage-label,
.step-number {
    display: inline-flex;
    margin-bottom: 1rem;
    color: var(--cyan);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.game-meta {
    display: inline-flex;
    margin-bottom: 1rem;
    color: var(--amber);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.stage-card h2 {
    margin: 0;
    font-family: "Anton", sans-serif;
    font-size: clamp(2.8rem, 6vw, 4.8rem);
    line-height: 0.95;
    text-transform: uppercase;
}

.stage-card p {
    max-width: 20rem;
    color: var(--muted);
}

.intro-band {
    padding: 1.25rem 4.5rem 4rem;
}

.intro-band p {
    margin: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 1.25rem 0;
    color: rgba(245, 247, 242, 0.8);
    font-size: clamp(1rem, 2vw, 1.3rem);
}

.studio-section,
.games-section,
.process-section,
.careers-section,
.contact-section {
    padding: 0 4.5rem 7.5rem;
}

.section-heading {
    margin-bottom: 2.5rem;
}

.section-heading h2 {
    max-width: none;
    white-space: nowrap;
    font-size: clamp(2.8rem, 5vw, 5rem);
    font-weight: 400;
}


.split-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
}

.studio-grid {
    display: grid;
    grid-template-columns: 0.7fr 1.0fr 0.3fr;
    gap: 3.25rem;
    align-items: center;
}

.studio-collage {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.collage-panel {
    position: relative;
    min-height: 14rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.75rem;
    box-shadow: var(--shadow);
}

.collage-panel-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.collage-panel span {
    position: absolute;
    left: 1.4rem;
    bottom: 1.2rem;
    z-index: 1;
    font-family: "Anton", sans-serif;
    font-size: 3rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.panel-tall {
    grid-row: span 2;
    min-height: 31rem;
    background:
        linear-gradient(160deg, rgba(68, 242, 218, 0.22), transparent 55%),
        linear-gradient(180deg, rgba(8, 26, 34, 0.8), rgba(4, 10, 14, 0.96));
}

.panel-tall::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
    radial-gradient(circle at center, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, 0.2) 72%, rgba(0, 0, 0, 0.45) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.22));
}

.panel-medium {
    background:
        linear-gradient(160deg, rgba(190, 242, 100, 0.26), transparent 48%),
        linear-gradient(180deg, rgba(16, 40, 28, 0.72), rgba(5, 12, 9, 0.94));
}

.panel-wide {
    grid-column: span 1;
    background:
        linear-gradient(160deg, rgba(255, 182, 73, 0.24), transparent 48%),
        linear-gradient(180deg, rgba(40, 23, 10, 0.72), rgba(11, 7, 4, 0.94));
}

.studio-copy {
    padding-left: 0.1rem;
}

.studio-copy h3 {
    max-width: 12ch;
    font-size: clamp(2.4rem, 4vw, 4rem);
}

.feature-list {
    margin: 1.5rem 0 0;
    padding: 0 0 0 1rem;
    list-style: none;
}

.feature-list li {
    margin-bottom: 0.9rem;
    padding-left: 1.3rem;
    position: relative;
    color: var(--muted);
}

.feature-list li::before {
    content: "";
    position: absolute;
    top: 0.62rem;
    left: 0;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: var(--cyan);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.game-card,
.timeline-step,
.careers-card,
.contact-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.9rem;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.game-card {
    min-height: 25rem;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 2rem;
    position: relative;
}

.game-card-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.game-card p,
.game-card h3,
.game-card a {
    position: relative;
    z-index: 1;
}

.game-card a {
    text-decoration: underline;
}

.game-card-cyan {
    background:
        radial-gradient(circle at center, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.3) 65%, rgba(0, 0, 0, 0.8) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.6));
}

.game-card-cyan::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 45%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.85));
    pointer-events: none;
    z-index: 0;
    border-radius: 0 0 1.9rem 1.9rem;
}

.game-card-amber {
    background:
        radial-gradient(circle at top left, rgba(255, 182, 73, 0.34), transparent 35%),
        linear-gradient(180deg, rgba(53, 28, 12, 0.95), rgba(17, 9, 4, 0.96));
}

.game-card-lime {
    background:
        radial-gradient(circle at top left, rgba(190, 242, 100, 0.28), transparent 35%),
        linear-gradient(180deg, rgba(24, 47, 18, 0.95), rgba(8, 15, 6, 0.96));
}

.featured-game {
    transform: translateY(2.5rem);
}

.timeline {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.timeline-step {
    padding: 2rem;
}

.timeline-post-image {
    display: block;
    width: 100%;
    height: 15rem;
    margin-top: 1rem;
    border-radius: 1rem;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.step-number {
    color: var(--amber);
}

.timeline-step h3 {
    font-size: 2.5rem;
}

.careers-card,
.contact-card {
    display: grid;
    gap: 1.2rem;
    align-items: start;
    padding: 2rem;
}

.careers-section > .eyebrow,
.contact-section > .eyebrow {
    margin-bottom: 1rem;
}

.careers-card {
    grid-template-columns: 1.1fr 0.9fr;
    background:
        linear-gradient(135deg, rgba(68, 242, 218, 0.1), transparent 40%),
        linear-gradient(180deg, rgba(7, 20, 27, 0.9), rgba(4, 10, 14, 0.97));
}

.contact-card h2 {
    font-size: clamp(2.4rem, 4vw, 4rem);
}

.contact-card {
    background:
        radial-gradient(circle at right top, rgba(255, 182, 73, 0.18), transparent 30%),
        linear-gradient(180deg, rgba(6, 19, 23, 0.9), rgba(3, 8, 11, 0.97));
}

.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 700ms ease, transform 700ms ease;
}

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

@media (max-width: 1100px) {
    .site-header,
    .site-header.scrolled,
    .hero,
    .intro-band,
    .studio-section,
    .games-section,
    .process-section,
    .careers-section,
    .contact-section {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .hero,
    .studio-grid,
    .careers-card,
    .games-grid,
    .timeline {
        grid-template-columns: 1fr;
    }

    .hero-stage {
        min-height: 28rem;
    }

    /* Ensure the hero image keeps a reasonable height when stacked */
    .hero-media {
        min-height: 22rem;
    }

    .stage-card-large {
        inset: 5rem 3rem 2rem 0;
    }

    .stage-card-small {
        width: 13rem;
    }

    .studio-copy {
        padding-left: 1;
    }

    .featured-game {
        transform: none;
    }

    .split-heading {
        align-items: start;
        flex-direction: column;
    }
}

@media (max-width: 760px) {
    #studio,
    #games,
    #updates,
    #careers,
    #contact {
        scroll-margin-top: 12rem;
    }

    .site-header,
    .site-header.scrolled {
        top: 0.75rem;
        left: 0.75rem;
        right: 0.75rem;
        min-height: 4.75rem;
        padding: 0.7rem 1rem;
        gap: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 0.8rem;
        background:
            linear-gradient(105deg, rgba(68, 242, 218, 0.12), transparent 38%),
            linear-gradient(285deg, rgba(255, 182, 73, 0.09), transparent 34%),
            rgba(4, 12, 16, 0.88);
        backdrop-filter: blur(18px);
        box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.32);
    }

    .brand-logo {
        height: 3.25rem;
    }

    /* Show hamburger, hide social links slot space */
    .nav-toggle {
        display: flex;
    }

    /* Present navigation directly below the compact mobile header. */
    .site-nav {
        position: fixed;
        top: 5.9rem;
        left: 0.75rem;
        right: 0.75rem;
        bottom: auto;
        z-index: 19;
        padding: 1.5rem 2rem 2rem;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 1.5rem;
        font-size: 1.4rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0.8rem;
        background:
            linear-gradient(140deg, rgba(68, 242, 218, 0.1), transparent 42%),
            rgba(4, 12, 16, 0.94);
        backdrop-filter: blur(18px);
        box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.36);
        transform: none;

        /* Hidden by default */
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transition: opacity 240ms ease, visibility 0s linear 240ms;
    }

    .site-nav.is-open {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transition-delay: 0s;
    }

    .header-cta {
        display: none;
    }

    .hero {
        padding-top: 10rem;
        min-height: auto;
    }

    .hero h1 {
        max-width: 100%;
        font-size: clamp(3.2rem, 18vw, 5rem);
    }

    #studio .section-heading h2 {
        white-space: normal;
        max-width: 16ch;
        line-height: 1.05;
    }

    #games .section-heading h2 {
        white-space: normal;
        max-width: 18ch;
        line-height: 1.05;
    }

    .hero-stage {
        min-height: 22rem;
    }

    .hero-media {
        min-height: 18rem;
    }

    .hero-media-image {
        width: min(520px, 96%);
    }

    .stage-card-large {
        inset: 4.5rem 0 0 0;
    }

    .stage-card-small {
        width: 10.5rem;
        padding: 1rem;
    }

    .top-card {
        top: 0;
    }

    .bottom-card {
        bottom: -1rem;
        right: 0;
    }

    .studio-collage {
        grid-template-columns: 1fr;
    }

    .panel-tall,
    .panel-medium,
    .panel-wide {
        grid-column: auto;
        grid-row: auto;
        min-height: 12rem;
    }
}

/* ── Hamburger button (hidden on desktop) ─────────────────────────────── */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.2rem;
    height: 2.2rem;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 21;
}

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

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 240ms ease, opacity 240ms ease;
}

/* Animated X when open */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Job listings (index careers card) ────────────────────────────────── */
.jobs-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.jobs-empty {
    color: var(--muted);
    font-size: 0.95rem;
}

.job-listing {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.04);
    transition: background 180ms ease, border-color 180ms ease;
    text-decoration: none;
}

.job-listing:hover {
    background: rgba(68, 242, 218, 0.07);
    border-color: rgba(68, 242, 218, 0.3);
}

.job-listing-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.job-listing-title {
    font-family: "Luckiest Guy", cursive;
    font-size: 1.2rem;
    letter-spacing: 0.04em;
    color: var(--text);
}

.job-listing-meta {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.job-listing-arrow {
    font-size: 1.2rem;
    color: var(--cyan);
    transition: transform 180ms ease;
}

.job-listing:hover .job-listing-arrow {
    transform: translateX(4px);
}

/* ── Job detail page (job.html) ────────────────────────────────────────── */
.job-detail-section {
    padding: 8rem 4.5rem 7.5rem;
}

.job-detail-inner {
    max-width: 820px;
    margin: 0 auto;
}

.job-header {
    margin-bottom: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--line);
}

.job-header-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.4rem;
}

.job-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.job-badge-active {
    background: rgba(68, 242, 218, 0.15);
    color: var(--cyan);
    border: 1px solid rgba(68, 242, 218, 0.35);
}

.job-badge-closed {
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.job-tag {
    display: inline-flex;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.job-title-hero {
    margin: 0 0 0.9rem;
    font-family: "Luckiest Guy", cursive;
    font-size: clamp(2.8rem, 6vw, 5rem);
    letter-spacing: 0.05em;
    line-height: 0.95;
}

.job-summary {
    margin: 0;
    color: var(--muted);
    font-size: 1.4rem;
    line-height: 1.65;
}

.job-body {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.job-description p {
    margin: 0 0 1.2rem;
    color: var(--text);
    font-size: 1.2rem;
    line-height: 1.8;
}

.job-description p:last-child {
    margin-bottom: 0;
}

.job-section h3 {
    margin: 0 0 1.2rem;
    font-family: "Luckiest Guy", cursive;
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--amber);
}

.job-section h4 {
    margin: 0.8rem 0 0.8rem;
    font-size: 1.3rem;
}

.job-section p {
    margin: 0.62rem 0 1.2rem;
    color: var(--text);
    font-size: 1.2rem;
    line-height: 1.8;
}

.job-section p:last-child {
    margin-bottom: 0;
}

.job-list {
    margin: 0;
    padding: 0 0 0 1rem;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.job-list li {
    position: relative;
    padding-left: 1.3rem;
    color: var(--text);
    font-size: 1.2rem;
    line-height: 1.7;
}

.job-list li::before {
    content: "";
    position: absolute;
    top: 0.62rem;
    left: 0;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: var(--cyan);
}

.job-apply {
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    background: rgba(68, 242, 218, 0.05);
}

.job-apply p {
    margin: 0 0 1.2rem;
    color: var(--muted);
    font-size: 1.2rem;
    line-height: 1.7;
}

.job-closed-notice {
    margin: 0;
    color: var(--muted);
    font-size: 1.2rem;
    line-height: 1.7;
}

.job-closed-notice a {
    color: var(--cyan);
    font-weight: 700;
}

@media (max-width: 1100px) {
    .job-detail-section {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.post-date {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--cyan);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.post-link {
    display: inline-flex;
    align-items: center;
    margin-top: 1rem;
    color: var(--amber);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color 180ms ease, gap 180ms ease;
    gap: 0.3em;
}

.post-link:hover {
    color: var(--cyan);
}

/* ── Blog hero ─────────────────────────────────────────────────────────── */
.blog-hero {
    position: relative;
    min-height: 38vh;
    display: flex;
    align-items: flex-end;
    padding: 8rem 4.5rem 4rem;
    overflow: hidden;
}

.blog-hero-copy {
    position: relative;
    z-index: 1;
}

.blog-hero-copy h1 {
    margin: 0;
    font-family: "Luckiest Guy", cursive;
    font-size: clamp(3.6rem, 8vw, 7rem);
    letter-spacing: 0.05em;
    line-height: 0.95;
}

/* ── Blog feed ─────────────────────────────────────────────────────────── */
.blog-section {
    padding: 0 4.5rem 7.5rem;
}

.blog-feed {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 860px;
    margin: 0 auto;
}

.blog-loading,
.blog-empty {
    color: var(--muted);
    font-size: 1rem;
}

/* ── Post cards (blog.html) ────────────────────────────────────────────── */
.post-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.9rem;
    background: var(--surface);
    box-shadow: var(--shadow);
    padding: 2.4rem 2.8rem;
    transition: border-color 220ms ease;
}

.post-card:hover {
    border-color: rgba(68, 242, 218, 0.22);
}

.post-card-header {
    margin-bottom: 1.75rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--line);
}

.post-title {
    margin: 0.4rem 0 0.8rem;
    font-family: "Luckiest Guy", cursive;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    letter-spacing: 0.05em;
    line-height: 1;
}

.post-excerpt {
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

.post-media {
    margin: 0 0 1.5rem;
}

.post-media-inline {
    margin-top: 1.8rem;
}

.post-media-image {
    display: block;
    width: 100%;
    max-height: 28rem;
    border-radius: 1rem;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.post-media-caption {
    margin-top: 0.75rem;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

.post-body p {
    margin: 0 0 1.2rem;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.8;
}

.post-body p:last-child {
    margin-bottom: 0;
}

/* ── Blog page footer ──────────────────────────────────────────────────── */
.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 2rem 4.5rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.85rem;
}

.site-footer a {
    color: var(--cyan);
    font-weight: 700;
    transition: color 180ms ease;
}

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

.footer-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

@media (max-width: 1100px) {
    .blog-hero,
    .blog-section,
    .site-footer {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (max-width: 760px) {
    .post-card {
        padding: 1.6rem 1.4rem;
    }

    .site-footer {
        flex-direction: column;
        text-align: center;
    }
}

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

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

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