/* website colors */
:root {
    --cream: #EEE9DF;
    --black: #171817;
    --blue: #123F59;
    --maroon: #663C45;
    --gray: #777770;
}

/* reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--cream);
    color: var(--black);
    font-family: Arial, Helvetica, sans-serif;
}

/* navigation */
/* floating navigation bar */
.navbar {
    width: 100%;
    height: 85px;
    padding: 0 6%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(238, 233, 223, 0.94);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    border-bottom: 1px solid rgba(0, 0, 0, 0.15);

    transition:
        height 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
}

.logo {
    font-size: 30px;
    font-weight: 900;
    text-decoration: none;
    color: var(--black);
    letter-spacing: -2px;
}

.logo span {
    color: var(--maroon);
}

nav {
    display: flex;
    gap: 35px;
}

nav a {
    text-decoration: none;
    color: var(--black);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--maroon);
}

.linkedin-btn {
    text-decoration: none;
    color: var(--black);
    font-size: 12px;
    font-weight: bold;
    border: 1px solid var(--black);
    padding: 12px 20px;
    transition: 0.3s;
}

.linkedin-btn:hover {
    background: var(--black);
    color: var(--cream);
}

/* homepage */
.hero {
    min-height: calc(100vh - 85px);
    padding: 35px 6% 25px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    position: relative;
    overflow: hidden;
}

/* subtle engineering grid */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(rgba(18,63,89,0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(18,63,89,0.045) 1px, transparent 1px);

    background-size: 40px 40px;
    pointer-events: none;
}

.hero-top,
.hero-footer {
    display: flex;
    justify-content: space-between;

    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--gray);

    position: relative;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-label {
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 25px;
    color: var(--maroon);
}

/* large editorial typography */
.hero h1 {
    font-size: clamp(65px, 11vw, 180px);
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -0.085em;
}

.hero h1 span {
    color: var(--blue);
}

.hero-bottom {
    margin-top: 55px;

    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
}

.hero-bottom p {
    max-width: 450px;
    font-size: 17px;
    line-height: 1.7;
    color: #484848;
}

.explore-btn {
    text-decoration: none;
    color: var(--black);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;

    padding-bottom: 12px;
    border-bottom: 1px solid var(--black);

    display: flex;
    gap: 40px;
    transition: 0.3s;
}

.explore-btn:hover {
    color: var(--maroon);
    border-color: var(--maroon);
}

.explore-btn span {
    font-size: 20px;
}

/* responsive */
@media (max-width: 768px) {

    .navbar {
        height: auto;
        min-height: 75px;
        padding: 18px 5%;
        flex-wrap: wrap;
        gap: 18px;
    }

    nav {
        order: 3;
        width: 100%;
        justify-content: space-between;
        gap: 10px;
        flex-wrap: wrap;
    }

    nav a {
        font-size: 11px;
    }

    .hero {
        min-height: 85vh;
        padding: 30px 5%;
    }

    .hero h1 {
        font-size: clamp(48px, 11vw, 90px);
    }

    .hero-bottom {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 40px;
    }

    .hero-bottom p {
        font-size: 15px;
    }

    .hero-top,
    .hero-footer {
        font-size: 9px;
        letter-spacing: 1px;
    }
}

/* ============================= */
/* ABOUT ME SECTION              */
/* ============================= */

.about-section {
    padding: 90px 6% 120px;
    background: #e5e0d5;
    border-top: 1px solid rgba(0, 0, 0, 0.15);
}

.section-header {
    display: flex;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);

    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2px;
    color: var(--gray);
}

.about-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 90px;
    align-items: center;
    margin-top: 80px;
}

.section-label {
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 3px;
    color: var(--maroon);
    margin-bottom: 25px;
}

.about-left h2 {
    font-size: clamp(45px, 5vw, 85px);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.065em;
    margin-bottom: 40px;
}

.about-left h2 span {
    color: var(--blue);
}

.about-intro {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 25px;
    max-width: 600px;
}

.about-description {
    font-size: 15px;
    line-height: 1.9;
    color: #555;
    margin-bottom: 20px;
    max-width: 580px;
}

/* personal information */

.about-details {
    margin-top: 45px;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
}

.about-details div {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.about-details span {
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 2px;
    color: var(--gray);
}

.about-details strong {
    font-size: 15px;
    font-weight: 600;
}

/* portrait area */

.about-right {
    width: 100%;
}

.portrait-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    background: var(--blue);
    padding: 15px;
}

.portrait-placeholder {
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.35);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;

    color: var(--cream);
    text-align: center;

    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: 25px 25px;
}

.portrait-placeholder span {
    font-size: 12px;
    letter-spacing: 3px;
}

.portrait-placeholder p {
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 2px;
}

.portrait-placeholder small {
    font-size: 10px;
    letter-spacing: 2px;
    opacity: 0.6;
}

/* blueprint corner details */

.portrait-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--cream);
    border-style: solid;
}

.top-left {
    top: 5px;
    left: 5px;
    border-width: 2px 0 0 2px;
}

.top-right {
    top: 5px;
    right: 5px;
    border-width: 2px 2px 0 0;
}

.bottom-left {
    bottom: 5px;
    left: 5px;
    border-width: 0 0 2px 2px;
}

.bottom-right {
    bottom: 5px;
    right: 5px;
    border-width: 0 2px 2px 0;
}

.portrait-caption {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 15px;

    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1px;
    color: var(--gray);
}

/* mobile layout */

@media (max-width: 900px) {

    .about-container {
        grid-template-columns: 1fr;
        gap: 50px;
        margin-top: 50px;
    }

    .about-section {
        padding: 70px 5%;
    }

    .about-left h2 {
        font-size: clamp(42px, 8vw, 70px);
    }

    .about-intro {
        font-size: 19px;
    }

    .about-right {
        max-width: 450px;
    }
}

/* ============================= */
/* ENGINEERING PROJECTS          */
/* ============================= */

.projects-section {
    background: #123F59;
    color: #EEE9DF;
    padding: 90px 6% 100px;
    position: relative;
    overflow: hidden;
}

/* technical background grid */
.projects-section::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);

    background-size: 50px 50px;
    pointer-events: none;
}

.projects-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.3);

    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.6);

    position: relative;
    z-index: 1;
}

.projects-intro {
    margin: 90px 0 70px;
    position: relative;
    z-index: 1;
}

.projects-label {
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 3px;
    color: #C5B7A0;
    margin-bottom: 25px;
}

.projects-intro h2 {
    font-size: clamp(48px, 7vw, 110px);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.065em;
    margin-bottom: 35px;
}

.projects-intro h2 span {
    color: #B6C6CE;
}

.projects-intro > p:last-child {
    max-width: 570px;
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255,255,255,0.7);
}

/* project cards */
.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 60px 30px;
    position: relative;
    z-index: 1;
}

.project-card {
    min-width: 0;
}

.project-card:nth-child(3) {
    grid-column: 1 / -1;
    max-width: calc(50% - 15px);
}

.project-image {
    height: 350px;
    background: #194D69;
    border: 1px solid rgba(255,255,255,0.25);
    position: relative;
    overflow: hidden;
}

.blueprint-grid {
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);

    background-size: 25px 25px;
}

.project-placeholder {
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.project-placeholder > span {
    font-size: 11px;
    letter-spacing: 3px;
    opacity: 0.7;
}

.project-placeholder p {
    font-size: 12px;
    letter-spacing: 3px;
    font-weight: bold;
}

/* blueprint illustrations */
.technical-circle {
    width: 130px;
    height: 130px;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 50%;
    position: relative;
}

.technical-circle::before,
.technical-circle::after {
    content: "";
    position: absolute;
    background: rgba(255,255,255,0.5);
}

.technical-circle::before {
    width: 180px;
    height: 1px;
    left: -25px;
    top: 50%;
}

.technical-circle::after {
    height: 180px;
    width: 1px;
    top: -25px;
    left: 50%;
}

.technical-square {
    width: 130px;
    height: 130px;
    border: 2px solid rgba(255,255,255,0.6);
    transform: rotate(45deg);
    position: relative;
}

.technical-square::after {
    content: "";
    position: absolute;
    inset: 20px;
    border: 1px dashed rgba(255,255,255,0.5);
}

.technical-gear {
    font-size: 140px;
    font-family: Arial, sans-serif;
    font-weight: normal;
    line-height: 1;
    color: rgba(255,255,255,0.7);
}

.project-image-label {
    position: absolute;
    bottom: 15px;
    left: 20px;
    font-size: 10px;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.6);
}

/* hover animation */
.project-image {
    transition: background 0.4s ease;
}

.project-card:hover .project-image {
    background: #205B79;
}

.project-placeholder {
    transition: transform 0.5s ease;
}

.project-card:hover .project-placeholder {
    transform: scale(1.04);
}

/* project descriptions */
.project-info {
    padding-top: 25px;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;

    font-size: 10px;
    font-weight: bold;
    letter-spacing: 2px;
    color: #B6C6CE;
}

.project-info h3 {
    font-size: clamp(28px, 3vw, 46px);
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 20px;
}

.project-info > p {
    max-width: 550px;
    font-size: 14px;
    line-height: 1.9;
    color: rgba(255,255,255,0.7);
    margin-bottom: 25px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tags span {
    border: 1px solid rgba(255,255,255,0.3);
    padding: 9px 12px;
    font-size: 9px;
    font-weight: bold;
    letter-spacing: 1px;
}

.projects-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 90px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.3);

    font-size: 10px;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.6);

    position: relative;
    z-index: 1;
}

/* mobile */
@media (max-width: 768px) {

    .projects-section {
        padding: 70px 5%;
    }

    .projects-intro {
        margin: 65px 0 50px;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .project-card:nth-child(3) {
        grid-column: auto;
        max-width: 100%;
    }

    .project-image {
        height: 280px;
    }

    .projects-header,
    .projects-footer {
        font-size: 9px;
        letter-spacing: 1px;
    }
}

/* ============================= */
/* EXPERIENCE & EDUCATION        */
/* ============================= */

.experience-section {
    background: #EEE9DF;
    color: #171817;
    padding: 90px 6% 110px;
}

.experience-heading {
    margin: 90px 0 75px;
}

.experience-heading h2 {
    font-size: clamp(45px, 6vw, 100px);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.065em;
}

.experience-heading h2 span {
    color: var(--blue);
}

/* two-column layout */
.experience-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
}

.experience-column {
    min-width: 0;
}

.column-title {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    padding-bottom: 18px;
    border-bottom: 2px solid var(--black);
    margin-bottom: 35px;
}

.secondary-title {
    margin-top: 65px;
}

/* timeline */
.timeline-item {
    position: relative;
    padding-left: 25px;
    padding-bottom: 40px;
    border-left: 1px solid rgba(0,0,0,0.25);
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -5px;
    top: 0;
    width: 9px;
    height: 9px;
    background: var(--maroon);
    border-radius: 50%;
}

.timeline-date {
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 2px;
    color: var(--maroon);
    margin-bottom: 12px;
}

.timeline-item h4 {
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.035em;
    margin-bottom: 8px;
}

.timeline-role {
    font-size: 13px;
    font-weight: bold;
    color: var(--blue);
    margin-bottom: 15px;
}

.timeline-item > p:last-child {
    font-size: 14px;
    line-height: 1.8;
    color: #555;
}

/* awards */
.honors-list {
    border-top: 1px solid rgba(0,0,0,0.2);
}

.honor-item {
    display: grid;
    grid-template-columns: 35px 1fr 20px;
    gap: 15px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0,0,0,0.2);
    transition: padding 0.3s, color 0.3s;
}

.honor-item:hover {
    padding-left: 10px;
    color: var(--maroon);
}

.honor-item span {
    font-size: 11px;
    color: var(--gray);
}

.honor-item strong {
    font-size: 15px;
    font-weight: 700;
}

/* skills */
.skills-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.skill-group {
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.15);
}

.skill-group span {
    display: block;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 2px;
    color: var(--maroon);
    margin-bottom: 10px;
}

.skill-group p {
    font-size: 15px;
    line-height: 1.7;
}

/* footer */
.experience-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 80px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.25);
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 2px;
    color: var(--gray);
}

/* mobile */
@media (max-width: 900px) {

    .experience-section {
        padding: 70px 5%;
    }

    .experience-heading {
        margin: 65px 0 55px;
    }

    .experience-layout {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .experience-heading h2 {
        font-size: clamp(42px, 8vw, 75px);
    }

    .timeline-item h4 {
        font-size: 20px;
    }
}

/* ============================= */
/* MUSIC & CREATIVE WORK         */
/* ============================= */

.music-section {
    background: #202321;
    color: #EEE9DF;
    padding: 90px 6% 100px;
}

.music-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.2);

    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2px;
    color: #999D96;
}

.music-intro {
    margin: 90px 0 70px;
}

.music-label {
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 3px;
    color: #C17B4A;
    margin-bottom: 25px;
}

.music-intro h2 {
    font-size: clamp(48px, 7vw, 110px);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.065em;
    margin-bottom: 35px;
}

.music-intro h2 span {
    color: #B9B6A9;
}

.music-description {
    max-width: 650px;
    font-size: 16px;
    line-height: 1.9;
    color: #B5B7B0;
}

.music-description strong {
    color: #EEE9DF;
}

/* layout */
.music-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: start;
}

/* audio console */
.audio-console {
    background: #343832;
    border: 1px solid #555A50;
    padding: 25px;
    box-shadow: 12px 12px 0 rgba(0,0,0,0.25);
}

.console-top,
.console-bottom,
.display-label,
.console-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.console-top {
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 2px;
    color: #C9C8B8;
    margin-bottom: 25px;
}

.console-display {
    background: #141D19;
    border: 8px solid #252B25;
    padding: 20px;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.display-label,
.console-status {
    font-family: monospace;
    font-size: 10px;
    letter-spacing: 1px;
    color: #9AB7A0;
}

.waveform {
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 5px;
    margin: 25px 0;
}

.waveform span {
    width: 7px;
    background: #A4C6A8;
    border-radius: 2px;
    opacity: 0.85;
    animation: waveformMove 1.5s ease-in-out infinite alternate;
}

.waveform span:nth-child(3n) {
    animation-delay: 0.3s;
}

.waveform span:nth-child(4n) {
    animation-delay: 0.6s;
}

@keyframes waveformMove {
    from {
        transform: scaleY(0.65);
    }
    to {
        transform: scaleY(1.15);
    }
}

.status-light {
    color: #A4C6A8;
}

.console-bottom {
    justify-content: flex-start;
    margin-top: 25px;
    gap: 20px;
}

.console-knob {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #777C72, #222620);
    border: 2px solid #171A16;
    position: relative;
}

.console-knob::after {
    content: "";
    position: absolute;
    width: 2px;
    height: 10px;
    background: #D8D5C7;
    top: 3px;
    left: 13px;
}

.console-bottom > span {
    margin-left: auto;
    font-size: 9px;
    letter-spacing: 2px;
    color: #999D96;
}

/* releases */
.releases-heading {
    display: flex;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.3);

    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2px;
}

.release-item {
    display: grid;
    grid-template-columns: 35px 1fr 25px;
    align-items: center;
    gap: 20px;
    padding: 30px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    transition: padding 0.3s;
}

.release-item:hover {
    padding-left: 10px;
}

.release-number {
    font-size: 11px;
    color: #C17B4A;
}

.release-info h3 {
    font-size: 35px;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 5px;
}

.release-info p {
    font-size: 10px;
    letter-spacing: 2px;
    color: #999D96;
}

.release-arrow {
    font-size: 20px;
    color: #C17B4A;
}

.music-note {
    margin-top: 50px;
    padding: 25px;
    border-left: 2px solid #C17B4A;
    background: rgba(255,255,255,0.03);
}

.music-note span {
    font-size: 10px;
    letter-spacing: 2px;
    color: #C17B4A;
}

.music-note p {
    margin-top: 15px;
    font-size: 14px;
    line-height: 1.8;
    color: #B5B7B0;
}

.music-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 90px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);

    font-size: 10px;
    letter-spacing: 2px;
    color: #999D96;
}

/* mobile */
@media (max-width: 900px) {

    .music-section {
        padding: 70px 5%;
    }

    .music-intro {
        margin: 65px 0 50px;
    }

    .music-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .music-intro h2 {
        font-size: clamp(42px, 8vw, 75px);
    }

    .audio-console {
        padding: 15px;
    }

    .console-display {
        padding: 12px;
    }

    .waveform {
        gap: 3px;
    }

    .waveform span {
        width: 5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .waveform span {
        animation: none;
    }
}

/* navbar when scrolling */
.navbar.scrolled {
    height: 65px;
    background: rgba(238, 233, 223, 0.97);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

/* active navigation link */
nav a.active {
    color: var(--maroon);
    border-bottom: 2px solid var(--maroon);
    padding-bottom: 5px;
}

/* smooth section navigation */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

/* navigation hover */
nav a {
    position: relative;
}

nav a:hover {
    color: var(--maroon);
}

/* mobile navbar adjustments */
@media (max-width: 768px) {

    .navbar {
        height: auto;
        min-height: 75px;
        padding: 15px 5%;
    }

    .navbar.scrolled {
        height: auto;
        min-height: 65px;
    }

    nav {
        gap: 12px;
    }

    nav a {
        font-size: 10px;
    }

    .linkedin-btn {
        font-size: 10px;
        padding: 9px 12px;
    }
}

/* ============================= */
/* COLLABORATORS                 */
/* ============================= */

.collaborators-section {
    background: #E5E0D5;
    color: #171817;
    padding: 90px 6% 110px;
}

.collaborators-intro {
    margin: 90px 0 65px;
}

.collaborators-intro h2 {
    font-size: clamp(55px, 8vw, 120px);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.07em;
    margin-bottom: 35px;
}

.collaborators-intro h2 span {
    color: var(--blue);
}

.collaborators-intro > p:last-child {
    max-width: 650px;
    font-size: 16px;
    line-height: 1.9;
    color: #555;
}

/* technical collaboration board */

.collaborators-board {
    border: 1px solid rgba(0,0,0,0.35);
    padding: 30px;
    background: #EEE9DF;
}

.board-header,
.board-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;

    font-size: 10px;
    font-weight: bold;
    letter-spacing: 2px;
    color: var(--gray);
}

.board-header {
    padding-bottom: 25px;
    border-bottom: 2px solid var(--black);
}

.board-footer {
    padding-top: 25px;
    border-top: 2px solid var(--black);
}

.collaborator-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 0.7fr;
    gap: 20px;
    align-items: center;

    padding: 25px 10px;
    border-bottom: 1px solid rgba(0,0,0,0.15);

    transition: background 0.3s, padding 0.3s;
}

.collaborator-row:not(.collaborator-heading):hover {
    background: rgba(18,63,89,0.06);
    padding-left: 20px;
}

.collaborator-row strong {
    font-size: 18px;
    letter-spacing: -0.02em;
}

.collaborator-row span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #555;
}

.collaborator-heading {
    padding-top: 20px;
    padding-bottom: 20px;
}

.collaborator-heading span {
    color: var(--maroon);
    font-size: 10px;
    font-weight: bold;
}

.collaborator-row:last-of-type {
    border-bottom: none;
}

/* ============================= */
/* CONTACT SECTION               */
/* ============================= */

.contact-section {
    background: #123F59;
    color: #EEE9DF;
    padding: 90px 6% 40px;
    position: relative;
    overflow: hidden;
}

/* subtle blueprint grid */

.contact-section::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);

    background-size: 45px 45px;
    pointer-events: none;
}

.contact-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;

    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.3);

    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.65);

    position: relative;
    z-index: 1;
}

.contact-content {
    margin: 110px 0 140px;
    position: relative;
    z-index: 1;
}

.contact-label {
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 3px;
    color: #B6C6CE;
    margin-bottom: 30px;
}

.contact-content h2 {
    font-size: clamp(55px, 9vw, 145px);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.075em;
    margin-bottom: 40px;
}

.contact-content h2 span {
    color: #B6C6CE;
}

.contact-description {
    max-width: 550px;
    font-size: 17px;
    line-height: 1.8;
    color: rgba(255,255,255,0.75);
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 60px;
}

.contact-links a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;

    min-width: 190px;
    padding-bottom: 15px;

    color: #EEE9DF;
    text-decoration: none;

    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2px;

    border-bottom: 1px solid rgba(255,255,255,0.6);
    transition: color 0.3s, border-color 0.3s;
}

.contact-links a:hover {
    color: #B6C6CE;
    border-color: #B6C6CE;
}

.contact-links a span {
    font-size: 22px;
}

/* contact footer */

.contact-footer {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;

    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.3);

    position: relative;
    z-index: 1;
}

.contact-footer > div {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-footer strong {
    font-size: 18px;
    letter-spacing: -0.03em;
}

.contact-footer p,
.contact-footer span {
    font-size: 10px;
    letter-spacing: 1px;
    line-height: 1.6;
    color: rgba(255,255,255,0.6);
}

/* ============================= */
/* BACK TO TOP BUTTON            */
/* ============================= */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #EEE9DF;
    color: #171817;
    border: 1px solid #171817;

    font-size: 24px;
    text-decoration: none;

    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);

    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--maroon);
    color: white;
}

/* ============================= */
/* MOBILE                        */
/* ============================= */

@media (max-width: 768px) {

    .collaborators-section,
    .contact-section {
        padding: 70px 5%;
    }

    .collaborators-intro {
        margin: 65px 0 50px;
    }

    .collaborators-board {
        padding: 15px;
    }

    .collaborator-row {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 20px 5px;
    }

    .collaborator-heading {
        display: none;
    }

    .collaborator-row strong {
        font-size: 16px;
    }

    .board-header,
    .board-footer {
        font-size: 9px;
        letter-spacing: 1px;
    }

    .contact-content {
        margin: 80px 0 100px;
    }

    .contact-content h2 {
        font-size: clamp(48px, 10vw, 80px);
    }

    .contact-footer {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-links {
        gap: 25px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }
}

/* ============================= */
/* CINEMATIC ENGINEERING HOMEPAGE */
/* ============================= */

.cinematic-hero {
    min-height: calc(100vh - 85px);
    background: #101C23;
    color: #EEE9DF;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* background slideshow */
.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.cinematic-hero .hero-top,
.cinematic-hero .hero-content,
.cinematic-hero .hero-footer {
    position: relative;
    z-index: 2;
}

.hero-slide {
    position: absolute;
    inset: 0;

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    opacity: 0;
    transform: scale(1);

    transition: opacity 2s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    animation: cinematicZoom 9s ease-out forwards;
}

@keyframes cinematicZoom {
    from {
        transform: scale(1.05);
    }

    to {
        transform: scale(1.15);
    }
}

/* dark faded overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;

    background:
        linear-gradient(
            90deg,
            rgba(5, 12, 17, 0.88) 0%,
            rgba(5, 12, 17, 0.65) 45%,
            rgba(5, 12, 17, 0.35) 100%
        ),
        linear-gradient(
            0deg,
            rgba(5, 12, 17, 0.75) 0%,
            transparent 50%,
            rgba(5, 12, 17, 0.3) 100%
        );
}

/* remove original grid on homepage */
.cinematic-hero::before {
    display: none;
}

/* homepage text */
.cinematic-hero .hero-label {
    color: #C9B9A3;
}

.cinematic-hero h1 {
    color: #EEE9DF;
    font-size: clamp(65px, 10vw, 165px);
    text-shadow: 0 5px 35px rgba(0,0,0,0.2);
}

.cinematic-hero h1 span {
    color: #E0D8C9;
}

.cinematic-hero .hero-bottom p {
    color: rgba(255,255,255,0.85);
}

.cinematic-hero .explore-btn {
    color: #EEE9DF;
    border-color: rgba(255,255,255,0.7);
}

.cinematic-hero .explore-btn:hover {
    color: #C9B9A3;
    border-color: #C9B9A3;
}

.cinematic-hero .hero-top,
.cinematic-hero .hero-footer {
    color: rgba(255,255,255,0.7);
}

/* slideshow indicators */
.slide-indicators {
    display: flex;
    align-items: center;
    gap: 8px;
}

.indicator {
    width: 25px;
    height: 3px;
    background: rgba(255,255,255,0.3);
    transition: background 0.5s, width 0.5s;
}

.indicator.active {
    width: 45px;
    background: #EEE9DF;
}

/* mobile */
@media (max-width: 768px) {

    .cinematic-hero {
        min-height: 85vh;
    }

    .cinematic-hero h1 {
        font-size: clamp(48px, 11vw, 90px);
    }

    .hero-overlay {
        background: rgba(5, 12, 17, 0.75);
    }

    .cinematic-hero .hero-footer {
        flex-wrap: wrap;
        gap: 15px;
    }
}

/* accessibility */
@media (prefers-reduced-motion: reduce) {

    .hero-slide {
        animation: none !important;
        transition: none;
        transform: none;
    }
}

.about-portrait {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
}

/* mentor recognition */

.collaborator-row:first-of-type strong {
    color: var(--blue);
}

.collaborator-row strong {
    transition: color 0.3s ease;
}

.collaborator-row:hover strong {
    color: var(--maroon);
}

.mentor-row strong {
    color: var(--blue);
}
.about-portrait {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    position: relative;
    z-index: 2;
}

/* DARK CINEMATIC OVERLAY */

.cinematic-hero .hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;

    background: linear-gradient(
        90deg,
        rgba(5, 12, 17, 0.90) 0%,
        rgba(5, 12, 17, 0.75) 50%,
        rgba(5, 12, 17, 0.60) 100%
    );
}

/* Keep slideshow behind overlay */

.cinematic-hero .hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Keep text above everything */

.cinematic-hero .hero-top,
.cinematic-hero .hero-content,
.cinematic-hero .hero-footer {
    position: relative;
    z-index: 3;
}