@font-face {
    font-family: 'Trillex';
    src: url('fonts/TrilleGX.ttf') format('truetype');
}

@font-face {
    font-family: 'Melodrama';
    src: url('fonts/Melodrama-Variable.ttf') format('truetype');
}

@font-face {
    font-family: 'MoonLight';
    src: url('fonts/Basteleur-Moonlight.ttf') format('truetype');
}

@font-face {
    font-family: HanaMinA;
    src: url(https://cdn.jsdelivr.net/gh/max32002/max-hana@1.1/webfont/HanaMinA.woff2) format("woff2"), url(https://cdn.jsdelivr.net/gh/max32002/max-hana@1.1/webfont/HanaMinA.woff) format("woff");
}

@font-face {
    font-family: 'Atlas';
    src: url('fonts/atlas-regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Cassete';
    src: url('fonts/J-Audio-Cassette.otf') format('opentype');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: #f5ebe0;
    width: 100%;
    height: auto;
    overflow-x: clip;
    --font-wdth: 0;
    cursor: none !important;
}

body * {
    cursor: none !important;
}

.custom-cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background-color: #d4af37; /* Gold */
    border-radius: 50%;
    pointer-events: none;
    z-index: 10001;
    will-change: transform;
}

::-webkit-scrollbar {
    width: 0px;
    background: transparent;
    display: none;
}

html,
body {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
    z-index: 2;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
}

#fps {
    position: fixed;
    top: 5px;
    left: 5px;
    color: #00ff00;
    font-family: monospace;
    font-size: 10px;
    z-index: 1000;
    cursor: pointer;
    user-select: none;
    opacity: 0.5;
    transition: opacity 0.2s;
}

#fps:hover {
    opacity: 1.0;
}

:root {
    --grid-margin: 30px;
}

.section-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

#section-1 {
    position: absolute;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;

}

.website-title {
    position: absolute;
    top: var(--grid-margin);
    left: var(--grid-margin);
    color: #fff;
    mix-blend-mode: difference;
    font-family: 'Melodrama', serif;
    letter-spacing: -10px;
    font-size: clamp(1.5rem, 10vw, 600px);
    margin: 0;
    padding: 0;
    line-height: 0.8;
    transform-origin: top left;
    font-weight: 100;
    z-index: 7;
}

.website-logo {
    position: absolute;
    top: var(--grid-margin);
    right: var(--grid-margin);
    height: 350px;
    width: 170px;
    background: url('./assets/21st logo-Photoroom.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0;
    padding: 0;
}

.xx {
    position: absolute;
    bottom: var(--grid-margin);
    left: var(--grid-margin);
    font-size: 150px;
    color: black;
    font-family: 'Trillex';
    font-variation-settings: "wdth" var(--font-wdth);
    margin: 0;
    padding: 0;
    letter-spacing: -15px;
}

.website-desc {
    position: absolute;
    bottom: var(--grid-margin);
    right: var(--grid-margin);
    font-size: 38px;
    color: black;
    font-weight: bold;
    width: 17%;
    font-family: 'MoonLight', sans-serif;
    z-index: 100;
    text-align: right;
    margin: 0;
    padding: 0;
    line-height: 1.1;
}

.scroll-below {
    position: absolute;
    bottom: 0%;
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    letter-spacing: 2px;
    font-size: 12px;
    z-index: -77;
}

.side-nav-indicator {
    position: fixed;
    left: 1.3vw;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 100;
}

.nav-line {
    width: 1px;
    height: 100px;
    background-color: #2b1d14;
    opacity: 0.5;
}

.nav-node-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 5px 0;
}

.nav-circle {
    width: 5px;
    height: 5px;
    border: 1px solid #2b1d14;
    border-radius: 50%;
    background-color: transparent;
}

.nav-text {
    position: absolute;
    left: 14px;
    white-space: nowrap;
    font-family: serif;
    color: #2b1d14;
    font-size: 10px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    pointer-events: none;
}

.nav-text-light {
    opacity: 0.5;
}

#section-2 {
    height: 50vh;
}

#section-3 {
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: auto !important;
    /* Force auto height to prevent collapse */
    overflow: visible;
    box-sizing: border-box;
    padding-bottom: 20vh;
}

.lab-card-row {
    display: flex;
    flex-direction: row;
    width: 100vw;
    min-height: 90vh;
    /* Ensure the row does not collapse */
    margin-bottom: 30vh;
    box-sizing: border-box;
}

.lab-text-chunk {
    width: 40vw;
    display: flex;
    flex-direction: column;
    padding: 0;
    box-sizing: border-box;
}

.lab-middle-chunk {
    width: 20vw;
}

.lab-label-chunk {
    width: 40vw;
    position: relative;
    padding: 0 4vw;
    box-sizing: border-box;
}

.why-plane-canvas {
    width: 100%;
    aspect-ratio: 1.8;
    height: auto !important;
}

#why-plane-text-desc,
#why-plane-text-desc-2,
#why-plane-text-desc-3,
#why-plane-text-desc-4,
#why-plane-text-desc-5 {
    font-family: 'Cassete';
    font-size: 1rem;
    line-height: normal;
    color: #2b1d14;
    margin-top: 3rem;
    text-align: justify;
    width: 97%;
}

.why-plane-text {
    margin-top: -1vh;
    /* Keep the original overlap with canvas if desired */
    padding: 0 5vw;
    box-sizing: border-box;
}

#why-plane-text-heading,
#why-plane-text-heading-2,
#why-plane-text-heading-3,
#why-plane-text-heading-4,
#why-plane-text-heading-5 {
    font-family: 'Melodrama', serif;
    letter-spacing: -8px;
    font-size: clamp(1.5rem, 8vw, 600px);
    color: #2b1d14;
    font-variation-settings: "wdth" var(--font-wdth);
    font-weight: 100;
    line-height: clamp(1.5rem, 8vw, 600px);
}

.card-no {
    position: sticky;
    top: 5vh;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    /* By default align right for Labs 01 and 03 */
    align-items: flex-start;
    z-index: 50;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-family: 'MoonLight';
    color: #2b1d14;
    font-weight: 100;
    margin-top: 5vh;
}

#lab-card-alternate,
#lab-card4 {
    justify-content: flex-start;
    /* Align left for Labs 02 and 04 */
}

#section-4 {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 110vh;
    width: 100vw;
    padding: 15px;
    box-sizing: border-box;
}

.my-intro {
    width: 100%;
    height: 100%;
    background-color: #f5e7c6;
    border-radius: 15px;
    z-index: -3;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    font-size: clamp(2rem, 5vw, 5rem);
    font-family: 'MoonLight';
    padding: 1rem;
    text-align: center;
    box-sizing: border-box;
}

.static-name {
    display: inline-block;
    white-space: nowrap;
}

.dim-is {
    opacity: 0.3;
    font-family: 'MoonLight';
    font-variation-settings: "wdth" var(--font-wdth);
    letter-spacing: -0.15rem;
}

.dynamic-intro-mask {
    position: relative;
    width: clamp(400px, 65vw, 700px);
    height: 1.9em;
    overflow: hidden;
    margin-left: 3rem;
    text-align: left;
    margin-top: 20vh;
}

.dynamic-intro {
    position: absolute;
    visibility: hidden;
    top: 0;
    left: 0;
    width: 100%;
    font-size: clamp(2.5rem, 8vw, 600px);
    text-align: left;

}

.static-name {
    font-family: 'Melodrama', serif;

    font-size: clamp(1.5rem, 6vw, 600px);
    line-height: clamp(1.5rem, 6vw, 600px);
}

.dynamic-intro:first-child {
    visibility: visible;
}

.organic-boss-box {
    position: absolute;
    top: 12%;
    right: 10%;
    border: 1px solid #2b1d14;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: width 0.8s cubic-bezier(0.25, 1, 0.5, 1),
        height 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    padding: 0.8rem 1.5rem;
    font-family: 'MoonLight';
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: #2b1d14;
    overflow: hidden;
}

.boss-scaffold {
    position: relative;
    visibility: hidden;
    pointer-events: none;
    height: 5em;
}

.boss-layer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: max-content;
    text-align: center;
    pointer-events: none;
}

#boss-layer-1 {
    opacity: 1;
}

#boss-layer-2 {
    opacity: 0;
}

#section-35 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    z-index: -34;
    flex-direction: column;
}

.Quote-1 {
    position: relative;
    font-family: 'MoonLight';
    font-size: clamp(1.5rem, 5vw, 600px);
    text-align: center;
    width: 70%;
    z-index: -3;
    background-color: #f5ebe0;
}

.Quote-canvas-1 {
    width: 40%;
    height: 40vh;
    margin-left: 30vw;
    background: transparent;
    margin-bottom: -10vh;
    z-index: 55;
}

.sec4-contact {
    position: absolute;
    width: auto;
    height: auto;
    padding: 9px;
    font-size: 0.7rem;
    color: #2b1d14;
    font-family: 'Cassete';
    border-radius: 50px;
    right: 12vw;
    bottom: 5vh;
}

.hang-outs {
    position: absolute;
    width: auto;
    height: auto;
    padding: 8px 15px;
    font-size: 0.7rem;
    background: #2b1d14;
    color: #f5ebe0;
    font-family: 'Cassete';
    border-radius: 50px;
    right: 5vw;
    bottom: 5vh;
}

.sec-4-background {
    position: absolute;
    width: 60vw;
    height: 60vh;
    bottom: 0;
    right: 0;
    background: transparent;
    margin: 30px;
}

#section-6 {
    background: #2b1d14;
    height: auto;
    z-index: -50;
}

.sec-6-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.sec-6-heading {
    font-family: 'Melodrama', serif;
    letter-spacing: -10px;
    font-size: clamp(1.5rem, 10vw, 600px);

    width: 100%;
    text-align: center;
    color: #f5ebe0;
    margin-top: 30vh;
}

.mixing-sec5 {
    position: absolute;
    width: 100%;
    height: 50%;
    bottom: 0;
    left: 0;
    z-index: -22;
    background: #2b1d14;
}

.gotcha {
    position: absolute;
    bottom: 0;
    right: 4%;
    font-family: 'Cassete';
    color: #2b1d14;
    font-size: 0.7rem;
    text-transform: uppercase;
}

/* EDUCATION SECTIONN(HOW I LEARN THINGS)*/
.education {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

/* ==========================================
    PILLARS 1 & 2
   ========================================== */
.edu-pillar-1 {
    width: 50vw;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.edu-pillar-1-canvas {
    width: 50vw;
    height: 50vh;

}

.edu-pillar-1-header {
    color: #f5ebe0;
    font-family: 'MoonLight';
    font-size: clamp(1.5rem, 3.2vw, 400px);
    margin-bottom: 6vh;
    width: 55%;
}

.edu-pillar-1-intro {
    color: #f5ebe0;
    font-family: 'Gambetta';
    font-size: 1.4rem;
    width: 55%;
    text-align: justify;
    height: auto;
    margin-bottom: 2vh;
}

.edu-pillar-1-heading {
    font-family: 'Gambetta', serif;
    color: #f5ebe0;
    width: 55%;
    text-align: justify;
    height: auto;
}

.edu-pillar-2 {
    width: 50vw;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 60vh;
}

.edu-pillar-2-header {
    color: #f5ebe0;
    font-family: 'MoonLight';
    font-size: clamp(1.5rem, 3.2vw, 400px);
    margin-bottom: 6vh;
    width: 55%;
}

.edu-pillar-2-intro {
    color: #f5ebe0;
    font-family: 'Gambetta';
    font-size: 1.4rem;
    width: 55%;
    text-align: justify;
    height: auto;
    margin-bottom: 2vh;
}

.edu-pillar-2-heading {
    font-family: 'Gambetta', serif;
    color: #f5ebe0;
    width: 55%;
    text-align: justify;
    height: auto;
}

.edu-pillar-2-canvas {
    width: 55%;
    height: 250px;
    background: url('./images/6d89cf74ede5e118061745bad1e010f5.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    margin-top: 1vh;
    margin-bottom: 1vh;
}

/* ==========================================
    PILLARS 3 & 4
   ========================================== */
.edu-pillar-3 {
    width: 50vw;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.edu-pillar-3-canvas {
    width: 55%;
    height: 450px;
    background: url('images/pexels-orhanveliakbaba-15431625 (2) (1).jpg');
    margin-top: 5vh;
    background-size: cover;
    background-repeat: no-repeat;
}

.edu-pillar-3-header {
    color: #f5ebe0;
    font-family: 'MoonLight';
    font-size: clamp(1.5rem, 3.2vw, 400px);
    margin-bottom: 6vh;
    width: 55%;
}

.edu-pillar-3-intro {
    color: #f5ebe0;
    font-family: 'Gambetta';
    font-size: 1.4rem;
    width: 55%;
    text-align: justify;
    height: auto;
    margin-bottom: 2vh;
}

.edu-pillar-3-heading {
    font-family: 'Gambetta', serif;
    color: #f5ebe0;
    width: 55%;
    text-align: justify;
    height: auto;
}

.edu-pillar-4 {
    width: 50vw;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 70vh;
}

.edu-pillar-4-header {
    color: #f5ebe0;
    font-family: 'MoonLight';
    font-size: clamp(1.5rem, 3.2vw, 400px);
    margin-bottom: 6vh;
    width: 55%;
}

.edu-pillar-4-intro {
    color: #f5ebe0;
    font-family: 'Gambetta';
    font-size: 1.4rem;
    width: 55%;
    text-align: justify;
    height: auto;
    margin-bottom: 2vh;
}

.edu-pillar-4-heading {
    font-family: 'Gambetta', serif;
    color: #f5ebe0;
    width: 55%;
    text-align: justify;
    height: auto;
}

.edu-pillar-4-canvas {
    width: 55%;
    height: 250px;
    background: url('images/pexels-artrademotion-34122127.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    margin: 1vh;
}

/* ==========================================
    PILLARS 5 & 6
   ========================================== */
.edu-pillar-5 {
    width: 50vw;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20vh;
}

.edu-pillar-5-canvas {
    width: 55%;
    height: 250px;
    background: url('images/pexels-julia-valk-429140651-23893842.jpg');
    margin: 1vh;
    background-size: cover;
    background-repeat: no-repeat;
}

.edu-pillar-5-header {
    color: #f5ebe0;
    font-family: 'MoonLight';
    font-size: clamp(1.5rem, 3.2vw, 400px);
    margin-bottom: 6vh;
    width: 55%;
}

.edu-pillar-5-intro {
    color: #f5ebe0;
    font-family: 'Gambetta';
    font-size: 1.4rem;
    width: 55%;
    text-align: justify;
    height: auto;
    margin-bottom: 2vh;
}

.edu-pillar-5-heading {
    font-family: 'Gambetta', serif;
    color: #f5ebe0;
    width: 55%;
    text-align: justify;
    height: auto;
}

.edu-pillar-6 {
    width: 50vw;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 60vh;
}

.edu-pillar-6-header {
    color: #f5ebe0;
    font-family: 'MoonLight';
    font-size: clamp(1.5rem, 3.2vw, 400px);
    margin-bottom: 6vh;
    width: 55%;
}

.edu-pillar-6-intro {
    color: #f5ebe0;
    font-family: 'Gambetta';
    font-size: 1.4rem;
    width: 55%;
    text-align: justify;
    height: auto;
    margin-bottom: 2vh;
}

.edu-pillar-6-heading {
    font-family: 'Gambetta', serif;
    color: #f5ebe0;
    width: 55%;
    text-align: justify;
    height: auto;
}

.edu-pillar-6-canvas {
    width: 55%;
    height: 550px;
    background: url('images/pexels-paolo-sanchez-2149881372-32911550.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom;
    margin-top: 6vh;
}

.imageseperator-up {
    width: 27.5%;
    height: 1px;
    margin-right: 30%;
    background: #f5ebe0;
    margin-top: 4vh;

}

.imageseperator-down {
    width: 27.5%;
    height: 1px;
    margin-left: 30%;
    background: #f5ebe0;

}

.sec-6-canavs-bg {
    position: absolute;
    width: 100%;
    height: 80vh;
    top: 0;
    left: 0;
    z-index: 10;
}

.Quote-container-2 {
    width: 100vw;
    height: 130vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #2b1d14;
}

.Quote-canavs-2 {
    position: absolute;
    width: 100%;
    height: 100%;
    bottom: 0;
    left: 0;
    z-index: 10;
}

.quote-2 {
    font-size: clamp(2.5rem, 5vw, 600px);
    color: #f5ebe0;
    font-family: 'MoonLight';
    text-align: center;
    width: 70vw;
}

.quote-2-buffer {
    width: 100vw;
    height: 15vh;
    background: #2b1d14;
}

.buffer-line {
    width: 40vw;
    height: 1px;
    margin-left: 30vw;
    background: #f5e7c6;
}

#section-7 {
    height: auto;
}

.skills-header {
    width: 100vw;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #2b1d14;
    font-family: 'Melodrama', serif;
    letter-spacing: -10px;
    font-size: clamp(1.5rem, 10vw, 600px);
    line-height: clamp(1.5rem, 10vw, 600px);


}

.skills-container {
    width: 100vw;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20vh;
}

.skills-container .skills {
    font-family: 'MoonLight', sans-serif;
    color: #2b1d14;
    font-size: clamp(1.5rem, 5vw, 600px);
    line-height: clamp(1.5rem, 6vw, 600px);
    width: 100vw;
    text-align: center;
    clip-path: inset(0% 0% 100% 0%);
    transform: translateY(-100%);


}

.skill-wrapper {
    display: flex;
    justify-content: space-between;
}

.skill-box {
    width: 0vw;
    height: clamp(1.5rem, 6vw, 600px);


    background: #2b1d14;
    overflow: hidden;
    position: relative;
}

.vertical-skill-text {
    color: #0a0401;
    font-family: 'Cassete', sans-serif;
    font-size: 0.1rem;
    white-space: nowrap;
    writing-mode: vertical-rl;
    position: absolute;
    top: 0%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(180deg);
}

.skill-wrapper {
    border-bottom: 1px solid #2b1d14;
    overflow: hidden;
}

.vertical-skill-text {
    color: white;

    font-family: 'Cassete', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.2rem;

    white-space: nowrap;

    writing-mode: vertical-rl;

    transform: rotate(180deg);
}

.Vortex-container {
    width: 100vw;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    background-color: transparent;
    z-index: 56;
}

.portal-container {
    width: 100vw;
    height: 100vh;

    z-index: 5;
}

/* ==========================================================================
    BRUTALIST MANIFESTO (SECTION 9 INTRO)
   ========================================================================== */

.introText-container {
    width: 50vw;
    height: 100vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;

    margin-left: 50vw;

    box-sizing: border-box;
    z-index: -100;
}

.introText-sub {
    font-family: 'Cassete', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    color: #2b1d14;
    opacity: 0.6;
    margin-bottom: 2vh;
}

.introText-header {
    font-family: 'Melodrama', serif;
    font-size: clamp(3rem, 6vw, 6rem);
    line-height: 0.85;
    letter-spacing: -0.05em;
    color: #2b1d14;
    margin-bottom: 3vh;
    font-weight: 100;
}

.introText-text {
    font-family: 'MoonLight', sans-serif;
    font-size: clamp(1rem, 1.2vw, 1.8rem);
    line-height: 1.6;
    color: #2b1d14;
    opacity: 0.8;
    max-width: 90%;
    text-align: justify;
}

/* ==========================================================================
    SCRAMBLE HUD (SECTION 9 CORNER TERMINALS)
   ========================================================================== */

#section-9 {
    z-index: 5;
}

.vortex-hud-tl,
.vortex-hud-br {
    position: absolute;
    z-index: 50;
    font-family: 'Melodrama', serif;
    font-size: clamp(1.5rem, 10vw, 600px);
    line-height: clamp(1.5rem, 8vw, 600px);
    color: #0a0401;
    letter-spacing: -10px;
    pointer-events: none;
    opacity: 0;
    mix-blend-mode: difference;
    font-weight: 100;
}

.vortex-hud-tl {
    top: 0vh;
    left: 0vw;
    text-align: left;
}

.vortex-hud-br {
    bottom: 0vh;
    right: 0vw;
    text-align: right;
}

.temporal-lock-active {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 99999 !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
}

#section-10 {
    height: auto;
}

.Quote-3-container {
    width: 100%;
    height: 130vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: -5;
}

.Quote-3 {
    width: 60%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: clamp(1.5rem, 5vw, 600px);
    line-height: clamp(1.5rem, 6vw, 600px);
    color: #2b1d14;
    text-align: center;
    font-family: 'MoonLight';
    z-index: -5;
}

/* ==========================================================================
    FOOTER MATRIX (40-20-40 SPLIT)
   ========================================================================== */

#section-11 {
    z-index: 1;
    height: 100vh;
    background: transparent;
}

.footer-container {
    width: 100vw;
    height: 100vh;
    background: #2b1d14;
    color: #f5ebe0;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    padding: 10vh 0 5vh 0;
    box-sizing: border-box;
    z-index: -7;
}

/* --- THE LEFT WING (40vw) --- */
.footer-left {
    width: 40vw;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-left: 3vw;
    box-sizing: border-box;
}

.footer-title {
    font-family: 'Melodrama', serif;
    font-size: clamp(3rem, 8vw, 8rem);
    line-height: 0.85;
    font-weight: 100;
    letter-spacing: -0.05em;
    margin-bottom: 2vh;
}

.footer-sub {
    font-family: 'Cassete', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    line-height: 1.6;
    opacity: 0.5;
}

.footer-status {
    font-family: 'Cassete', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background-color: #cb8a43;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(203, 138, 67, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(203, 138, 67, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(203, 138, 67, 0);
    }
}

/* --- THE VOID (20vw) --- */
.footer-middle {
    width: 20vw;

}

/* --- THE RIGHT WING (40vw) --- */
.footer-right {
    width: 40vw;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    padding-right: 3vw;
    text-align: right;
    box-sizing: border-box;
    z-index: 55;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1vh;
    margin-top: 2vh;
}

.footer-link {
    font-family: 'MoonLight', sans-serif;
    font-size: clamp(2rem, 5vw, 5rem);
    color: #f5ebe0;
    text-decoration: none;
    line-height: 1;
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 15px;
    transition: color 0.4s ease, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.footer-link span {
    font-family: 'Cassete', sans-serif;

    opacity: 1;
    transform: translateX(-20px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.footer-link:hover {
    color: #cb8a43;
    transform: translateX(-10px);
}

.footer-link:hover span {
    opacity: 1;
    transform: translateX(0);
}

.footer-legal {
    position: relative;
    /* Anchors the absolute credits box */
    font-family: 'Cassete', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    line-height: 1.6;

    margin-top: 3vh;
    /* Adds some breathing room from the links above */
}

/* ==========================================================================
   ASSET CREDITS TOGGLE
   ========================================================================== */
.footer-credits-wrapper {
    position: relative;
    margin-top: 30vh;
    /* Creates breathing room between the links and copyright */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.credits-btn {
    font-family: 'Cassete', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: #f5ebe0;
    background: transparent;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    opacity: 0.5;
    transition: opacity 0.3s ease, color 0.3s ease;
    padding: 0;
}

.credits-btn:hover {
    opacity: 1;
    color: #cb8a43;
}

.credits-box {
    position: absolute;
    bottom: 150%;
    right: 0;
    background: #f5ebe0;
    color: #2b1d14;
    padding: 15px 20px;
    border-radius: 4px;
    font-family: 'Cassete', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    line-height: 2.2;
    text-align: right;
    white-space: nowrap;

    /* Hidden State */
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 100;
}

/* Active State */
.credits-box.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.credits-box a {
    color: #2b1d14;
    text-decoration: none;
    transition: color 0.3s ease;
}

.credits-box a:hover {
    color: #cb8a43;
}

/* LOADER  */
/* ==========================================================================
   LOADING OVERLAY
   ========================================================================== */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #f5ebe0;
    /* Matches your site background */
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-pillar {
    width: 15vw;
    height: 100vh;
    background-color: #f5e7c6;
    /* Vertical grey strip */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.loading-text {
    font-family: 'Melodrama', sans-serif;
    font-size: clamp(3rem, 6vw, 7rem);
    /* Dynamically sizes to fit comfortably inside 20vw */
    color: #2b1d14;
    opacity: 0.6;
}

/* --- MOBILE TRIAGE --- */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        padding: 5vh 5vw;
    }

    .footer-left,
    .footer-right {
        width: 100vw;
        padding: 0;
        align-items: flex-start;
        text-align: left;
        gap: 5vh;
    }

    .footer-middle {
        display: none;
    }

    .footer-link {
        justify-content: flex-start;
    }

    .footer-link:hover {
        transform: translateX(10px);
    }
}

.skills-3d-tracker {
    position: absolute;
    right: 15vw;
    top: 0;
    width: clamp(250px, 30vw, 400px);
    height: clamp(250px, 30vw, 400px);
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transform: translateY(0);
    transform: scale(1.5)
}

@media (max-width: 768px) {
    .my-intro {
        flex-direction: column;
        line-height: 1.2;
    }

    .static-name {
        white-space: normal;
        margin-bottom: 0.5rem;
    }

    .dynamic-intro-mask {
        width: 100%;
        margin-left: 0;
        text-align: center;
    }

    .dynamic-intro {
        text-align: center;
    }
}


/* ==========================================================================
   (MAX-WIDTH: 768px)
   ========================================================================== */


.why-plane-canvas,
.Quote-canvas-1,
.sec-4-background,
.edu-pillar-1-canvas,
.Quote-canavs-2 {
    background: transparent !important;
}

@media (max-width: 768px) {

    /* ✦ GLOBAL TYPOGRAPHY  ✦ */
    .website-title,
    .edu-pillar-1-header,
    .edu-pillar-2-header,
    .edu-pillar-3-header,
    .edu-pillar-4-header,
    .edu-pillar-5-header,
    .edu-pillar-6-header,
    .introText-header,
    #why-plane-text-heading,
    #why-plane-text-heading-2,
    #why-plane-text-heading-3,
    #why-plane-text-heading-4,
    #why-plane-text-heading-5
    {
        letter-spacing: normal !important;
    }

    /* ✦ SECTION 1: THE CRUCIBLE ✦ */
    #section-1 {
        padding: 5vw;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .website-title {
        position: relative;
        top: 0;
        left: 0;
        font-size: 18vw;
        margin-top: 5vh;
        line-height: 0.9;
    }

    .website-logo {
        position: absolute;
        top: -3vh;
        right: -10vw;
        width: 60vw;
        opacity: 0.15;
        transform: scale(0.5)
    }

    .website-desc {
        position: relative;
        bottom: 0;
        right: 0;
        width: 100%;
        text-align: left;
        font-size: 6vw;
        margin-bottom: 7vh;
    }

    .xx {
        display: none;
    }

    /* ✦ SECTION 3: LAB CARDS ✦ */
    .lab-card-row {
        flex-direction: column !important;
        margin-bottom: 5vh !important;
        min-height: auto !important;
    }

    .lab-label-chunk {
        order: 1 !important;
        /* Force label to always be on top on mobile */
        width: 100vw !important;
        padding: 5vw !important;
    }

    .lab-text-chunk {
        order: 2 !important;
        /* Force canvas/text to be below label */
        width: 100vw !important;
        padding: 0 !important;
        /* Let canvas stretch 100vw to apply internal 3D gap */
    }

    .lab-middle-chunk {
        display: none !important;
        /* Hide empty chunks on mobile to save space */
    }

    .why-plane-canvas {
        height: 60vw;
        width: 100vw;
    }

    .card-no,
    #lab-card-alternate,
    #lab-card3,
    #lab-card4,
    #lab-card5 {
        font-size: 15vw;
        position: relative;
        top: 0;
        justify-content: flex-start !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #why-plane-text-heading,
    #why-plane-text-heading-2,
    #why-plane-text-heading-3,
    #why-plane-text-heading-4,
    #why-plane-text-heading-5 {
        font-size: 15vw;
        line-height: 1;
    }

    .why-plane-text {
        margin-left: 0;
        margin-top: 2vh;
        padding: 0 5vw !important;
    }

    /* ✦ SECTION 3.5: WRAITH LAUREL ✦ */
    .Quote-canvas-1 {
        position: relative;
        width: 100vw;
        height: 40vh;
        transform: translateY(30%);
        margin: 0;
    }

    .Quote-1 {
        width: 90%;
        font-size: 8vw;
    }

    #section-35 {
        transform: translateY(-30%);
        height: 80vh;
    }

    /* ✦ SECTION 4: BOSS BOX & FRAMES ✦ */
    .my-intro {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding: 5vw;
    }

    .static-name {
        font-size: 15vw;
        line-height: 1;
        text-align: left;
        white-space: normal;
        margin-bottom: 2vh;
    }

    .dynamic-intro-mask {
        margin: 0;
        width: 100%;
        height: 16vw;
        margin-bottom: 5vh;
    }

    .dynamic-intro {
        font-size: 11vw;
        line-height: 15vw;
        transform: scale(1.4)
    }

    .organic-boss-box {
        position: relative;
        top: 0;
        right: 0;
        margin-top: 2vh;
        border: 1px solid #2b1d14;
        padding: 10px 20px;
        font-size: 5vw;
        width: max-content;
    }

    .sec-4-background {
        position: relative;
        width: 100vw;
        height: 40vh;
        margin: 0;
        margin-top: 5vh;
        right: 0;
        bottom: 0;
    }

    .sec4-contact {
        left: 5vw;
        bottom: 5vh;
    }

    .hang-outs {
        right: 5vw;
        bottom: 5vh;
    }

    /* ✦ SECTION 6: METALLURGIC PIPELINE ✦ */
    .education {
        flex-direction: column;
        width: 100vw;
        margin: 0;
    }

    .edu-pillar-1,
    .edu-pillar-2,
    .edu-pillar-3,
    .edu-pillar-4,
    .edu-pillar-5,
    .edu-pillar-6 {
        width: 100vw;
        padding: 5vw;
        margin-top: 5vh !important;
        align-items: flex-start;
    }

    .edu-pillar-1-header,
    .edu-pillar-2-header,
    .edu-pillar-3-header,
    .edu-pillar-4-header,
    .edu-pillar-5-header,
    .edu-pillar-6-header {
        width: 100%;
        font-size: 12vw;
        line-height: 1;
        margin-bottom: 2vh;
        text-align: left;
    }

    .edu-pillar-1-intro,
    .edu-pillar-2-intro,
    .edu-pillar-3-intro,
    .edu-pillar-4-intro,
    .edu-pillar-5-intro,
    .edu-pillar-6-intro,
    .edu-pillar-1-heading,
    .edu-pillar-2-heading,
    .edu-pillar-3-heading,
    .edu-pillar-4-heading,
    .edu-pillar-5-heading,
    .edu-pillar-6-heading {
        width: 100%;
        font-size: 1.1rem;
        text-align: left;
    }

    .edu-pillar-1-canvas,
    .edu-pillar-2-canvas,
    .edu-pillar-3-canvas,
    .edu-pillar-4-canvas,
    .edu-pillar-5-canvas,
    .edu-pillar-6-canvas {
        width: 90vw;
        height: 60vw;
        margin-top: 3vh;
    }

    .sec-6-heading {
        letter-spacing: 0;
        font-size: 20vw;
        margin-bottom: 20vh;
    }

    .imageseperator-up,
    .imageseperator-down {
        display: none;
    }

    /* ✦ FIX 2: QUOTE 2 & CHAINS (BULLETPROOF CENTERING) ✦ */
    .Quote-container-2 {
        position: relative;
        height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0;
        overflow: hidden;
    }

    .Quote-canavs-2 {
        position: absolute;
        width: 100vw;
        height: 100vh;
        top: 0;
        left: 0;
        margin: 0;
        z-index: 10;
    }

    .quote-2 {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 20;
        width: 90%;
        font-size: 8vw;
        text-align: center;
        margin: 0;
    }

    .quote-2-buffer {
        display: none;
    }

    .introText-container {
        display: none
    }

    .vortex-hud-tl {
        font-size: 6rem;
        line-height: 5rem;
        letter-spacing: -0.07em;
    }

    .vortex-hud-br {
        font-size: 6rem;
        line-height: 5rem;
        letter-spacing: -0.07em;
    }

    .Quote-3-container {
        height: 60vh;
    }

    .loading-pillar {
        width: 40vw;
    }

    .loading-text {
        font-size: 16vw;
    }

    /* ✦ SECTION 7: THE SKILLS MATRIX ✦ */
    .skills-header {
        height: 20vh;
        font-size: 18vw;
        margin-top: 10vh;
        letter-spacing: 0;
        margin-bottom: 5vh;
    }

    .skills-container {
        padding: 0 5vw;
        margin-bottom: 10vh;
    }

    .skill-wrapper {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 4vw;
        padding: 2vh 0;
    }

    .skills-container .skills {
        font-size: 12vw;
        text-align: left;
        width: auto;
        transform: translateY(0) !important;
        clip-path: none !important;
    }

    .skill-box {
        width: auto !important;
        height: auto;
        background: transparent;
        overflow: visible;
        border: none;
    }

    .vertical-skill-text {
        position: relative;
        writing-mode: horizontal-tb;
        transform: none;
        top: auto;
        left: auto;
        font-size: 4vw;
        color: #2b1d14;
        letter-spacing: 0;
    }

    .skills-3d-tracker {
        display: none !important;
    }

    /* ✦ SECTION 11: FOOTER ✦ */
    .footer-container {
        flex-direction: column;
        padding: 5vh 5vw;
        height: auto;
    }

    .footer-left {
        width: 100%;
        padding-left: 0;
        gap: 3vh;
        margin-bottom: 5vh;
    }

    .footer-right {
        width: 100%;
        padding-right: 0;
        align-items: flex-start;
        text-align: left;
    }

    .footer-middle {
        display: none;
    }

    .footer-title {
        font-size: 18vw;
    }

    .footer-link {
        justify-content: flex-start;
        font-size: 12vw;
        flex-direction: row-reverse;
    }

    .footer-link span {
        transform: translateX(0);
    }

    #section-11 {
        height: auto;
    }
}



/* ==========================================================================
    (MIN-WIDTH: 1600px)
   ========================================================================== */
@media (min-width: 1600px) {

    /* ✦ 1. SECTION 1: THE CRUCIBLE (LANDING TYPOGRAPHY) ✦ */
    .website-title {
        font-size: clamp(6rem, 9vw, 180px) !important;
        letter-spacing: -6px !important;
        line-height: 0.8 !important;
    }

    .website-desc {
        font-size: clamp(1.8rem, 2.2vw, 45px) !important;
        width: 25% !important;
        line-height: 1.2 !important;
    }

    .xx {
        font-size: clamp(120px, 10vw, 200px) !important;
    }


    /* Labs Typography Overrides */
    .card-no {
        margin-top: 10vh !important;
        font-size: clamp(120px, 10vw, 200px) !important;
    }

    #why-plane-text-heading,
    #why-plane-text-heading-2,
    #why-plane-text-heading-3,
    #why-plane-text-heading-4,
    #why-plane-text-heading-5 {
        font-size: clamp(4rem, 6vw, 140px) !important;
        line-height: clamp(4rem, 6vw, 140px) !important;
    }

    #why-plane-text-desc,
    #why-plane-text-desc-2,
    #why-plane-text-desc-3,
    #why-plane-text-desc-4,
    #why-plane-text-desc-5 {
        font-size: clamp(1.2rem, 1.5vw, 30px) !important;
        max-width: 80%;
    }

    /* ✦ 3. SECTION 4: THE BOSS BOX (FIXING THE COLLAPSE) ✦ */
    #section-4 {
        height: 120vh !important;
        padding: 4vw !important;
    }

    .my-intro {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 4rem !important;
        position: relative !important;
    }

    .static-name {
        font-size: clamp(3rem, 5vw, 90px) !important;
        line-height: 1.1 !important;
        flex-shrink: 0 !important;
    }

    .dynamic-intro-mask {
        width: 45vw !important;
        height: 2.2em !important;
        margin-top: 0 !important;
        margin-left: 2rem !important;
        flex-grow: 1 !important;
    }

    .dynamic-intro {
        font-size: clamp(3rem, 6vw, 100px) !important;
    }

    .organic-boss-box {
        position: absolute !important;
        top: 8% !important;
        right: 5% !important;
        font-size: 2.2rem !important;
        padding: 1.5rem 3rem !important;
    }

    /* ✦ 4. QUOTE CONTAINERS & QUOTES (LOCKED TO 50VW & MASSIVELY SCALED) ✦ */
    .Quote-1,
    .quote-2,
    .Quote-3 {
        width: 50vw !important;
        font-size: clamp(2.5rem, 4.5vw, 95px) !important;
        line-height: 1.15 !important;
        text-align: center !important;
        margin: 0 auto !important;
    }

    /* Ensure outer quote containers respect the sizing layout */
    .Quote-container-2,
    .Quote-3-container,
    #section-35 {
        width: 100vw !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    /* Section 3.5 Specific Quote Layout */
    .Quote-1 {
        position: relative !important;
        background-color: transparent !important;
    }

    /* ✦ 5. THE LEARNING PIPELINE & SKILLS MATRIX ✦ */
    .sec-6-heading {
        font-size: clamp(4rem, 7vw, 140px) !important;
    }

    .edu-pillar-1-header,
    .edu-pillar-2-header,
    .edu-pillar-3-header,
    .edu-pillar-4-header,
    .edu-pillar-5-header,
    .edu-pillar-6-header {
        font-size: clamp(2rem, 3.5vw, 65px) !important;
    }

    .edu-pillar-1-intro,
    .edu-pillar-2-intro,
    .edu-pillar-3-intro,
    .edu-pillar-4-intro,
    .edu-pillar-5-intro,
    .edu-pillar-6-intro,
    .edu-pillar-1-heading,
    .edu-pillar-2-heading,
    .edu-pillar-3-heading,
    .edu-pillar-4-heading,
    .edu-pillar-5-heading,
    .edu-pillar-6-heading {
        font-size: clamp(1.4rem, 1.8vw, 32px) !important;
    }

    .skills-header {
        font-size: clamp(4rem, 7vw, 140px) !important;
    }

    .skills-container .skills {
        font-size: clamp(3rem, 5.5vw, 100px) !important;
        line-height: 1.1 !important;
    }

    .vertical-skill-text {
        font-size: 1.8rem !important;
    }

    /* ✦ 6. DIGITAL PORTAL & FOOTER ✦ */
    .introText-header {
        font-size: clamp(3rem, 5.5vw, 100px) !important;
    }

    .introText-text {
        font-size: clamp(1.4rem, 1.8vw, 32px) !important;
    }

    .vortex-hud-tl,
    .vortex-hud-br {
        font-size: clamp(4rem, 7vw, 130px) !important;
        line-height: 1 !important;
    }

    .footer-title {
        font-size: clamp(5rem, 8vw, 160px) !important;
    }

    .footer-sub,
    .footer-status,
    .footer-legal {
        font-size: clamp(1rem, 1.2vw, 22px) !important;
    }

    .footer-link {
        font-size: clamp(2rem, 3.5vw, 70px) !important;
    }
}

.lab-link {
    text-decoration: none;
    display: inline-flex;
    align-items: baseline;
    gap: 15px;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    color: inherit;
    cursor: pointer !important;
}
.lab-link .reveal-text {
    transition: color 0.4s ease;
}
.lab-link span {
    font-family: 'Cassete', sans-serif;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    font-size: 0.5em; /* relative to heading */
}
.lab-link:hover {
    color: #cb8a43 !important;
    transform: translateX(10px);
}
.lab-link:hover .reveal-text {
    color: #cb8a43 !important;
}
.lab-link:hover span {
    opacity: 1;
    transform: translateX(0);
}

#why-plane-text-desc-4,
#why-plane-text-desc-5 {
    margin-top: 0.5rem !important;
}