:root {
    --pads: clamp(24px, 5vw, 64px);
    --thick-pads: clamp(48px, 10vw, 128px);
    --innerpads: clamp(12px, 5vw, 32px);
    --max-width: 1200px;
}

h1 /* titles */ {
    font-family: 'sk-modernist', system-ui, -apple-system, sans-serif;
    font-weight: bold;
    font-size: clamp(1.5rem, 2vw, 2rem);
}

h2 /* subtitles */ {
    font-family: 'sk-modernist', system-ui, -apple-system, sans-serif;
    font-size: clamp(1.2rem, 1.6vw, 1.6rem);
    display: inline-block;
    overflow-y: hidden;
}

h2.space {
    padding-top: 2rem;
}

.final-section h2{
    color: var(--box-text);
    padding-bottom: 0.8rem;
}

h3 {
    background-color: var(--box-bg);
    padding: clamp(6px, 3vw, 18px);
    border-radius: 1rem;
    color: var(--box-text);
    font-size: clamp(0.9rem, 1.3vw, 1.2rem);
    text-align: center;
    letter-spacing: 0.1px;
    line-height: 150%;
    /* margin-top: clamp(0.5rem, 0.5vw, 1rem);
    margin-bottom: clamp(0.5rem, 0.5vw, 1rem); */
}

h3.special {
    background-color: var(--box-text);
    color: #fff;
}

h4 /* pic captions */ {
    font-family: 'sk-modernist', system-ui, -apple-system, sans-serif;
    font-size: clamp(1rem, 1vw, 1.5rem);
    color: var(--box-caption); 
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-bottom: 1rem;
}


.final-section h4{
    padding-top: 2rem;
}

p {
    font-family: 'sk-modernist', system-ui, -apple-system, sans-serif;
    font-size: clamp(0.9rem, 1.3vw, 1.2rem);
    letter-spacing: 0.05em; 
}

/* custom colours ------------------------------------------------- */
.box-pink {
    --box-bg: #FFF0F0;
    --box-text: #BE3A4C;
    --box-caption: #897679;
    --box-mid:#FF8585;
}

.box-blue {
    --box-bg: #F0F9FF;
    --box-text: #3854B1;
    --box-caption: #767A87;
    --box-mid:#5F9FFF;
}

.box-green {
    --box-bg: #F7FFF0;
    --box-text: #186e14;
    --box-caption: #737A72;
    --box-mid:#5da027;
}

/* navbar ------------------------------------------------- */

.navbar-links {
    color: var(--box-mid);
}

.navbar-links:hover {
    color: var(--box-text);
}

/* landing ------------------------------------------------ */
body,html {
    margin: 0;
    padding: 0;
    height: 100%;
}

.body {
    width: 100%;
    min-height: 100vh;

    /* overflow: hidden; */

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

    min-height: 100vh;   /* fallback */
    min-height: 100svh;
    min-height: 100dvh;
}

.landing-container {
    position: absolute; /* stays behind */
    top: 0;             /* make sure it starts at top */
    left: 0;
    width: 100%;
    height: 100vh;      /* full viewport */
    padding: var(--thick-pads);
    background-color: var(--box-bg);
    box-sizing: border-box;

    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;

    gap: clamp(48px, 10vw, 128px);
    z-index: -1;
}

.landing-container h1 {
    font-size: clamp(1.5rem, 2vw, 2rem);
}

.landing-container h2 {
    color:var(--box-mid);
    font-size: clamp(1rem, 1.6vw, 1.6rem);
}

.landing-container p {
    font-size:clamp(0.9rem, 1.2vw, 1.2rem)
}

.project-header-pic {
    max-width: 50%;
    height: auto;
    display: block; 
}

.landing-chonk {
    padding-bottom: 1rem;
}

/* landing text styles -------------------------- */
.landing-text {
    color: var(--box-text);
    will-change: transform;
    transition: transform 0.05s linear;
    padding-bottom: clamp(2rem, 2vw, 3rem);
}

.landing-text h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    padding-bottom: 1rem;
}

.landing-text h2 {
    font-family: 'sk-modernist', system-ui, -apple-system, sans-serif;
    font-size: clamp(1.3rem, 1vw, 1.5rem);
    display: inline-block;
    /* line-height: clamp(1.2rem, 6vw, 3rem); */
    overflow-y: hidden;
}

/* see final product button -------------------- */

.final-link {
    text-transform: uppercase;
    position: absolute;
    bottom: clamp(1rem, 3vw, 3rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    white-space: nowrap;

    text-decoration: none;
    color: var(--box-mid);
    font-size: clamp(1.2rem, 1.5vw, 2rem);
    display: inline-flex;
    gap: clamp(0.5rem, 1vw, 1rem);
    transition: color 0.3s ease;
    cursor: pointer;

    background-color: var(--box-bg);
    padding: clamp(6px, 2.5vw, 16px) clamp(16px, 4vw, 32px);
    border-radius: clamp(2rem, 2.5vw, 3rem);
    font-weight: bold;
    transition: color 0.3s ease, background-color 0.3s ease, padding 0.3s ease, opacity 0.5s ease;
    opacity: 1;
    pointer-events: auto;
}

.final-link.faded-out {
    opacity: 0;
    pointer-events: none;
}

.final-link:hover {
    color: var(--box-text);
    padding: clamp(6px, 2.5vw, 16px) clamp(20px, 5vw, 40px);
}

.final-link i {
    transition: transform 0.3s ease;
}

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

@media (aspect-ratio < 1/1) {
    .landing-container {
        flex-direction: column;
        text-align: center;
        /* gap: clamp(24px, 5vw, 64px); */
        padding: var(--pads);
    }

    .project-header-pic {
        height: 25vh;
        max-width: 100%;
    }

    .landing-content {
        gap: clamp(4rem, 20vh, 12rem);
    }

    .landing-text {
        gap: clamp(2rem, 5vh, 10rem);
    }
    .landing-chonk {
        display: flex;
        flex-direction: row;
    }

    .landing-chonk h2 {
        width: 50%;
        align-items: flex-start;
        text-align: left;
    }

    .landing-chonk p {
        width: 50%;
        align-items: flex-end;
        text-align: right;
    }
}

/* body styling -------------------------------- */


.body-container {
    position: relative;
    z-index: 1;
    margin-top: 100vh;
    background-color:#fff;
    width: 100%;
}

.body-container h1 {
    text-transform: uppercase;
}

.bvsa-flex {
    padding-top: 3rem;
    display: flex;
    flex-direction: row;
    gap: 3rem;
    justify-content: space-between;
}

@media screen and (max-width: 600px) {
    .bvsa-flex {
        flex-direction: column;
        gap: 3rem;
    }
}

/* swapparel video stuff holy chungus */
.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
}

.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 1.5rem;
}

.pic-flex {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}



/* content stuff styling -------------------------- */
.paragraph-chonk h2.first {
    padding-top: 0;
}

.content-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--pads);
    display: flex;
    flex-direction: row;
}

.project-header {
    flex: 0 0 18vw;
}

.paragraph-chonk {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: space-between;
}

.paragraph-chonk h2 {
    color:var(--box-text);
    padding-top: 2rem;
}

.project-pic {
    width: 100%;
    height: auto;
    display: block;
}

@media screen and (max-width: 850px) {
    .content-section {
        flex-direction: column;
    }

    .project-header {
        flex: 0;
        padding-bottom: var(--pads);
        padding-top: var(--thick-pads);
    }

}

.final-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--pads);
    display: flex;
    flex-direction: column;
}

.final-section h1 {
    padding-bottom: var(--innerpads);
}

.final-link {
    opacity: 1;
    transition: opacity 0.4s ease;
    pointer-events: auto;
  }
  
  .final-link.hidden {
    opacity: 0;
    pointer-events: none;
  }
  
.project-pic {
    border-radius: clamp(6px, 6vw, 16px);
}

/* mateway demo ------------------------------------------- */

.final-section.box-green{
    background-color: #000;
    border-radius: clamp(12px, 6vw, 32px);
}

.final-section.box-green h1{
    color: #fff;
}
.demo-chonk {
    max-width: 1200px;
    height: auto;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.demo-flex {
    display: flex;
    flex-direction: row;
    gap: 10%;
    justify-content: center;
    align-items: center;
}

.flexer {
    display: flex;
    align-items: center;
    text-align: center;
    flex-direction: column;
    gap: 1rem;
}

.project-demo {
    width: 80%;
    height: auto;

    border-radius: 1rem;
    overflow: hidden;

    object-fit: cover;
}

@media screen and (max-width: 1200px) {
    .final-section.box-green {
        border-radius: 0;
    }
}

@media screen and (max-width: 600px) {
    .final-section {
        padding-top: var(--thick-pads);
        padding-bottom: var(--thick-pads);
    }

    .demo-flex {
        flex-direction: column;
        gap: 3rem;
    }
}

/* footerrrrr--------------------------------------------- */

.divider {
    width: 100%;
    height: 2px;
    background-color: var(--box-caption);
    margin: 4rem 0;
  }
  
.footer {
    padding-top: 4rem;
    padding-bottom: clamp(8rem, 4vw, 16rem);
    background-color: #fff;
    padding: var(--pads);
}

.footer h1 {
    font-size: clamp(2rem, 4vw, 5rem);
}

.footer h2 {
    padding-top: 1rem;
    color: var(--box-text)
}

.foot-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 3rem;
    align-items: start;
}

.foot-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.foot-item p {
    margin-top: 0;
    padding-top: 0;
    font-weight: 600;
    opacity: 0.9;
  }
  
.foot-links {
    text-decoration: none;
    transition: color 0.2s ease;
    color: var(--box-mid);
    font-size: clamp(1.2rem, 1vw, 1.5rem);
}

.foot-link {
    display: flex;
    flex-direction: row;
    gap: clamp(1rem, 2vw, 2rem);

}
  
.foot-links:hover {
    opacity: 1;
    color: var(--box-text);
    font-weight: bold;

}

@media screen and (max-width: 800px) {
    .foot-container {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .foot-item {
        gap: 0.25rem;
    }
}


/* project navs ------------------------------------------ */

.project-nav {
    padding: var(--pads);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* base button */
.project-button {
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* anchor becomes layout container */
.project-button a {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    text-decoration: none;
    color: var(--box-mid);
    transition: ease 0.2s;
}

/* LEFT — PREV */
.project-button.prev a {
    text-align: left;
    align-items: flex-start;
    width: clamp(12rem, 25vw, 25rem);
}

/* RIGHT — NEXT */
.project-button.post a {
    text-align: right;
    align-items: flex-end;
    width: clamp(12rem, 25vw, 25rem);
}

/* labels */
.project-button .sub {
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 0.12em;
    opacity: 0.6;
    color: var(--box-caption)
}

.project-button .main {
    font-size: 1.4rem;
    font-weight: 600;
}

.project-button:hover {
    color: var(--box-text);
}

@media screen and (max-width: 450px) {
    .project-nav {
        padding: var(--pads);
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    /* LEFT — PREV */
.project-button.prev a {
    width: 100%;

}

/* RIGHT — NEXT */
.project-button.post a {
    width: 100%;
}
}

