:root {
    --bg: #03050b;
    --bg-2: #07101d;
    --ink: #f4f1ff;
    --muted: #9aa0b6;
    --line: rgba(173, 181, 255, 0.16);
    --line-strong: rgba(208, 214, 255, 0.34);
    --violet: #a98bff;
    --blue: #75d7ff;
    --gold: #f2cf86;
    --rose: #ff8bd1;
    --mint: #8af7d0;
    --panel: rgba(8, 13, 26, 0.66);
    --panel-strong: rgba(13, 20, 38, 0.82);
    --font-display: "Cormorant Garamond", Georgia, serif;
    --font-heading: "Marcellus", "Times New Roman", serif;
    --font-accent: "Alegreya Sans SC", "Trebuchet MS", sans-serif;
    --font-ui: "IBM Plex Mono", monospace;
    --font-body: "Inter", Arial, Helvetica, sans-serif;
    --anchor-offset: 6.25rem;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--anchor-offset);
}

section[id] {
    scroll-margin-top: var(--anchor-offset);
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at 58% 38%, rgba(111, 94, 255, 0.22), transparent 22rem),
        radial-gradient(circle at 72% 58%, rgba(66, 214, 255, 0.12), transparent 20rem),
        radial-gradient(circle at 34% 48%, rgba(169, 139, 255, 0.16), transparent 18rem),
        linear-gradient(135deg, #02030a, var(--bg-2) 52%, #02030a);
    font-family: var(--font-body);
}

body::before,
body::after,
.ambient-field {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
}

body::before {
    z-index: -3;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.72) 0 1px, transparent 1.6px),
        radial-gradient(circle, rgba(169, 139, 255, 0.56) 0 1px, transparent 1.8px),
        radial-gradient(circle, rgba(117, 215, 255, 0.42) 0 1px, transparent 1.8px);
    background-position: 7% 14%, 34% 28%, 76% 18%;
    background-size: 220px 180px, 260px 210px, 310px 240px;
    opacity: 0.48;
}

body::after {
    z-index: -2;
    background:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(circle at 55% 45%, black, transparent 76%);
}

.ambient-field {
    z-index: -1;
    background:
        radial-gradient(circle at 50% 45%, transparent 0 14rem, rgba(3, 5, 11, 0.22) 25rem, rgba(3, 5, 11, 0.78) 58rem),
        linear-gradient(180deg, rgba(3, 5, 11, 0.28), rgba(3, 5, 11, 0.92));
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem clamp(1rem, 3vw, 2rem);
    background: rgba(3, 5, 11, 0.72);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
    text-decoration: none;
}

.brand-mark {
    position: relative;
    flex: 0 0 auto;
    display: block;
    width: 2.8rem;
    height: 2.8rem;
    border: 1px solid rgba(208, 214, 255, 0.58);
    border-radius: 50%;
    background:
        linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(208, 214, 255, 0.28) 50%, transparent calc(50% + 0.5px)),
        linear-gradient(0deg, transparent calc(50% - 0.5px), rgba(208, 214, 255, 0.28) 50%, transparent calc(50% + 0.5px)),
        radial-gradient(circle, rgba(169, 139, 255, 0.13), transparent 62%);
    box-shadow:
        0 0 26px rgba(169, 139, 255, 0.22),
        inset 0 0 18px rgba(117, 215, 255, 0.08);
}

.brand-mark::before,
.brand-mark::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 1.4rem;
    height: 1.4rem;
    border: 1px solid rgba(169, 139, 255, 0.58);
    transform: translate(-50%, -50%) rotate(45deg);
}

.brand-mark::after {
    width: 0.6rem;
    height: 0.6rem;
    border-color: rgba(117, 215, 255, 0.58);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.brand-mark span {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--ink);
    box-shadow: 0 0 10px rgba(169, 139, 255, 0.9);
}

.brand-mark span:nth-child(1) { left: calc(50% - 2px); top: 12%; }
.brand-mark span:nth-child(2) { right: 12%; top: calc(50% - 2px); }
.brand-mark span:nth-child(3) { left: calc(50% - 2px); top: calc(50% - 2px); }
.brand-mark span:nth-child(4) { left: 12%; top: calc(50% - 2px); }
.brand-mark span:nth-child(5) { left: calc(50% - 2px); bottom: 12%; }

.brand strong {
    display: block;
    color: var(--ink);
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 400;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.brand small {
    display: block;
    margin-top: 0.28rem;
    color: var(--muted);
    font-family: var(--font-accent);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: none;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: clamp(0.8rem, 2.8vw, 2.6rem);
}

.nav-links a {
    color: rgba(244, 241, 255, 0.72);
    font-family: var(--font-accent);
    font-size: 0.84rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-decoration: none;
    text-transform: uppercase;
}

.nav-links a:hover {
    color: var(--violet);
}

.hero-section {
    position: relative;
    min-height: auto;
    padding: clamp(0.45rem, 1.2vw, 1rem) 0 1.5rem;
}

.mission-control-box {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    gap: clamp(2rem, 6vw, 6rem);
    align-items: start;
    width: min(1280px, calc(100% - 2rem));
    min-height: auto;
    margin: 0 auto;
    padding: clamp(0.75rem, 2vw, 1.7rem) 0 clamp(1.2rem, 2.5vw, 2.2rem);
}

.mission-control-main {
    position: relative;
    z-index: 1;
    align-self: start;
    max-width: 790px;
}

.eyebrow,
.section-label,
.panel-label {
    margin: 0 0 1.5rem;
    color: var(--violet);
    font-family: var(--font-accent);
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

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

h1 {
    margin-bottom: 1.35rem;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(2.65rem, 4.7vw, 4.75rem);
    font-weight: 500;
    line-height: 1.06;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h2 {
    margin-bottom: 1rem;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.6vw, 3.4rem);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

h3 {
    margin-bottom: 0.65rem;
    color: var(--ink);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

p {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.72;
}

.hero-subtitle {
    max-width: 460px;
    margin-bottom: 1.5rem;
    font-size: 1.02rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
}

.text-link,
.button-link {
    display: inline-flex;
    align-items: center;
    min-height: 2.35rem;
    color: var(--violet);
    font-family: var(--font-accent);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-decoration: none;
    text-transform: uppercase;
}

.text-link::after {
    content: "->";
    margin-left: 0.75rem;
    letter-spacing: 0;
}

.button-link {
    padding: 0 0.85rem;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    color: rgba(244, 241, 255, 0.82);
    background: rgba(255, 255, 255, 0.035);
}

.button-link:hover,
.text-link:hover {
    color: var(--blue);
}

.future-layer {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    justify-self: end;
    align-self: start;
    padding: 1.15rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(4, 8, 18, 0.6);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.future-layer h2 {
    margin-bottom: 0.55rem;
    font-family: var(--font-heading);
    font-size: 1.28rem;
    letter-spacing: 0.1em;
}

.future-layer-note {
    margin-bottom: 1rem;
    font-size: 0.78rem;
    line-height: 1.55;
}

.future-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.future-grid article {
    min-width: 0;
    padding: 0.8rem;
    border: 1px solid color-mix(in srgb, var(--topic-color, var(--violet)) 34%, transparent);
    border-radius: 8px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--topic-color, var(--violet)) 10%, transparent), rgba(255, 255, 255, 0.018)),
        rgba(255, 255, 255, 0.02);
    box-shadow: inset 0 1px 0 color-mix(in srgb, var(--topic-color, var(--violet)) 16%, transparent);
}

.future-grid span {
    display: block;
    margin-bottom: 0.45rem;
    color: color-mix(in srgb, var(--topic-color, var(--violet)) 78%, white);
    font-family: var(--font-accent);
    font-size: 0.82rem;
    letter-spacing: 0.14em;
}

.future-grid h3 {
    margin-bottom: 0.35rem;
    color: color-mix(in srgb, var(--topic-color, var(--violet)) 82%, white);
    font-family: var(--font-accent);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.1em;
}

.future-grid p {
    margin-bottom: 0;
    font-size: 0.74rem;
    line-height: 1.45;
}

.future-grid article:nth-child(1) { --topic-color: var(--violet); }
.future-grid article:nth-child(2) { --topic-color: var(--blue); }
.future-grid article:nth-child(3) { --topic-color: var(--gold); }
.future-grid article:nth-child(4) { --topic-color: #b78cff; }
.future-grid article:nth-child(5) { --topic-color: var(--mint); }
.future-grid article:nth-child(6) { --topic-color: var(--rose); }

.panel-section,
.timeline-panel,
.contact-panel {
    width: min(1280px, calc(100% - 2rem));
    margin: 0 auto 1rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.panel-section,
.contact-panel {
    padding: clamp(1.4rem, 4vw, 3rem);
}

.mission-panel p {
    max-width: 1120px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.mission-panel .section-label,
.mission-panel h2 {
    text-align: center;
}

/* =========================
   PROJECT SECTION
========================= */

.project-section {
    display: block;
}

.project-intro {
    max-width: 1080px;
    margin: 0 auto;
    text-align: center;
}

.project-intro .section-label {
    margin-bottom: 1.25rem;
}

#projects-title {
    margin-bottom: 1.25rem;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    letter-spacing: 0.055em;
}

.project-intro p {
    max-width: 980px;
    margin-right: auto;
    margin-left: auto;
    font-size: 1rem;
    line-height: 1.7;
}

.project-intro .text-link {
    margin-top: 0.35rem;
}

.project-content {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: stretch;
    margin-top: clamp(2.5rem, 5vw, 4rem);
}

/* Showcase */

.project-showcase {
    min-width: 0;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.025);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.showcase-label {
    margin: 0;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--line);
}

.project-showcase video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    background: #03050b;
    object-fit: cover;
}

.video-caption {
    margin: 0;
    padding: 0.9rem 1.25rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.55;
}

/* Project details */

.project-details {
    display: grid;
    align-content: stretch;
    gap: 0;
    min-width: 0;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.025);
}

.project-details div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 150px;
    padding: clamp(1.25rem, 2.4vw, 1.8rem);
    border-bottom: 1px solid var(--line);
}

.project-details div:last-child {
    border-bottom: 0;
}

.project-details dt {
    margin-bottom: 0.7rem;
    color: var(--violet);
    font-family: var(--font-accent);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.project-details dd {
    margin: 0;
    color: rgba(244, 241, 255, 0.88);
    font-size: 1rem;
    line-height: 1.6;
}

.toolkit-panel {
    display: grid;
    grid-template-columns: minmax(240px, 0.65fr) minmax(0, 1.35fr);
    gap: clamp(1.5rem, 4vw, 3rem);
}

#toolkit-title {
    font-size: clamp(1.65rem, 2.65vw, 2.5rem);
    letter-spacing: 0.05em;
}

.toolkit-summary {
    max-width: 280px;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.65;
}

.toolkit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.toolkit-grid article {
    min-width: 0;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
}

.timeline-panel {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 2rem;
    min-height: 245px;
    padding: 2.1rem 1.6rem;
    align-items: start;
}

.timeline-intro {
    padding-top: 1.25rem;
}

.timeline-intro h2 {
    margin-bottom: 0;
    font-family: var(--font-heading);
    font-size: clamp(1.18rem, 1.55vw, 1.42rem);
    line-height: 1.14;
    letter-spacing: 0.1em;
}

.timeline-list {
    display: grid;
    grid-template-columns: repeat(6, minmax(150px, 1fr));
    gap: 0;
    margin: 0;
    padding: 1.25rem 0 0.7rem;
    list-style: none;
    overflow-x: auto;
    align-content: center;
}

.timeline-list li {
    position: relative;
    min-width: 150px;
    padding: 1.1rem 1rem 0;
    border-top: 1px solid var(--line-strong);
}

.timeline-list li::before {
    content: "";
    position: absolute;
    top: -4px;
    left: 1rem;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--violet);
    box-shadow: 0 0 18px var(--violet);
}

.timeline-list span {
    display: block;
    margin-bottom: 0.55rem;
    color: rgba(244, 241, 255, 0.78);
    font-family: var(--font-ui);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.timeline-list strong {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--ink);
    font-weight: 500;
}

.timeline-list p {
    margin-bottom: 0;
    font-size: 0.8rem;
}

.contact-panel {
    margin-bottom: 2rem;
    text-align: center;
}

#contact-title {
    max-width: 980px;
    margin-right: auto;
    margin-left: auto;
    font-size: clamp(2rem, 3.15vw, 3rem);
    letter-spacing: 0.055em;
}

.contact-panel > p:not(.section-label) {
    max-width: 820px;
    margin-right: auto;
    margin-left: auto;
}

.contact-panel .hero-actions {
    justify-content: center;
}

@media (max-width: 1040px) {
    .mission-control-box,
    .project-panel,
    .toolkit-panel,
    .timeline-panel {
        grid-template-columns: 1fr;
    }

    .mission-control-box {
        min-height: auto;
    }

    .timeline-list {
        padding-top: 0.6rem;
    }

    .timeline-intro {
        padding-top: 0;
    }

    .timeline-intro h2 {
        max-width: 420px;
    }
}

@media (max-width: 900px) {
    .project-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-showcase,
    .project-details {
        width: 100%;
        min-width: 0;
    }

    .project-showcase video {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }

    .project-details {
        grid-template-columns: 1fr;
    }

    .project-details div {
        min-height: auto;
        padding: 1.5rem;
    }
}

@media (max-width: 780px) {
    :root {
        --anchor-offset: 9.5rem;
    }

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

    .nav-links {
        justify-content: flex-start;
        gap: 0.8rem 1rem;
    }

    .hero-section {
        padding-top: 0.75rem;
    }

    h1 {
        font-size: clamp(2rem, 8vw, 3.2rem);
        letter-spacing: 0.18em;
    }

    .future-layer {
        justify-self: start;
    }

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

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

@media (max-width: 600px) {
    .project-section {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .project-content {
        gap: 1rem;
    }

    .project-showcase,
    .project-details {
        border-radius: 14px;
    }

    .showcase-label {
        padding: 1.25rem;
    }

    .video-caption {
        padding: 1.25rem;
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .project-details dt {
        font-size: 0.8rem;
    }

    .project-details dd {
        font-size: 1rem;
        line-height: 1.55;
    }
}

@media (max-width: 520px) {
    .brand small {
        display: block;
        max-width: 240px;
        font-size: 0.62rem;
        line-height: 1.35;
        letter-spacing: 0.08em;
    }

    .nav-links a {
        font-size: 0.76rem;
    }

    h1 {
        letter-spacing: 0.12em;
    }

    .panel-section,
    .timeline-panel,
    .contact-panel {
        width: min(100% - 1rem, 720px);
    }
}