/* =====================================================
   GLOBAL
===================================================== */

:root {
    --black: #050505;
    --dark: #0a0a0a;
    --dark-2: #101010;
    --dark-3: #161616;

    --white: #f5f5f5;
    --light: #d5d5d5;
    --muted: #858585;
    --line: rgba(255, 255, 255, 0.13);

    --max-width: 1280px;
}

/* plus-jakarta-sans-regular - latin */
@font-face {
  font-display: swap; 
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/plus-jakarta-sans-v12-latin-regular.woff2') format('woff2'); 
}

@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/space-grotesk-v22-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--black);
    color: var(--white);
    font-family: "Inter", sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}


/* =====================================================
   NAVBAR
===================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 82px;

    padding: 0 5%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    z-index: 1000;

    background: rgba(5, 5, 5, 0.72);
    backdrop-filter: blur(14px);

    border-bottom: 1px solid var(--line);
}

.logo img {
    width: 92px;
}

.nav-links {
    display: flex;
    gap: 42px;
}

.nav-links a {
    position: relative;

    color: var(--light);

    font-size: 13px;
    font-weight: 500;

    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.nav-links a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -7px;

    width: 0;
    height: 1px;

    background: white;

    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;

    border: 0;
    background: transparent;
    color: white;

    font-size: 24px;

    cursor: pointer;
}


/* =====================================================
   HERO
===================================================== */

.hero {
    min-height: 100vh;

    position: relative;

    display: flex;
    align-items: center;

    background:
        url("assets/lab-hero.webp")
        center / cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.88),
            rgba(0, 0, 0, 0.58),
            rgba(0, 0, 0, 0.72)
        );
}

.hero-content {
    position: relative;
    z-index: 2;

    width: min(var(--max-width), 90%);

    margin: auto;

    padding-top: 80px;
}

.eyebrow,
.section-number {
    font-family: "Space Grotesk", sans-serif;

    font-size: 11px;
    letter-spacing: 0.22em;

    color: var(--muted);

    text-transform: uppercase;
}

.hero h1 {
    margin-top: 20px;

    font-family: "Space Grotesk", sans-serif;

    font-size: clamp(38px, 5vw, 90px);

    line-height: 1.03;

    font-weight: 500;

    letter-spacing: -0.04em;
}

.hero h1 span {
    color: #bdbdbd;
}

.hero-subtitle {
    margin-top: 24px;

    color: var(--light);

    font-size: 18px;
    letter-spacing: 0.12em;
}

.hero-navigation {
    margin-top: 40px;

    display: flex;
    gap: 14px;

    align-items: center;
}

.hero-navigation a {
    font-family: "Space Grotesk", sans-serif;

    font-size: 13px;

    text-transform: uppercase;
    letter-spacing: 0.16em;

    transition: opacity 0.3s;
}

.hero-navigation a:hover {
    opacity: 0.55;
}

.hero-navigation span {
    color: var(--muted);
}

.cta-button {
    display: inline-flex;

    align-items: center;
    gap: 20px;

    margin-top: 38px;

    padding: 15px 24px;

    border: 1px solid rgba(255, 255, 255, 0.45);

    font-size: 12px;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: 0.14em;

    transition:
        background 0.3s,
        color 0.3s,
        transform 0.3s;
}

.cta-button:hover {
    background: white;
    color: black;

    transform: translateY(-2px);
}

.cta-button.large {
    padding: 18px 30px;
}

.scroll-indicator {
    position: absolute;

    bottom: 35px;
    right: 5%;

    display: flex;
    align-items: center;
    gap: 15px;

    color: var(--muted);

    font-size: 10px;

    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.scroll-line {
    width: 55px;
    height: 1px;

    background: var(--muted);
}


/* =====================================================
   GENERAL SECTIONS
===================================================== */

.section {
    width: min(var(--max-width), 90%);

    margin: auto;

    padding: 130px 0;
}

.section-heading h2 {
    margin-top: 15px;

    font-family: "Plus Jakarta Sans", sans-serif;

    font-size: clamp(34px, 4vw, 58px);

    font-weight: 500;

    line-height: 1.15;

    letter-spacing: -0.035em;
}

.section-heading.centered {
    text-align: center;
}

.section-heading.centered > p:last-child {
    max-width: 620px;

    margin: 20px auto 0;

    color: var(--muted);
}


/* =====================================================
   WHY
===================================================== */

.why-grid {
    margin-top: 65px;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 80px;

    align-items: center;
}

.why-content p {
    margin-bottom: 20px;

    color: #b8b8b8;

    font-size: 16px;
}

.why-content .lead-text {
    color: var(--white);

    font-size: 21px;

    line-height: 1.65;
}

.text-link {
    display: inline-block;

    margin-top: 18px;

    padding-bottom: 5px;

    border-bottom: 1px solid var(--light);

    font-size: 12px;

    text-transform: uppercase;
    letter-spacing: 0.13em;
}

.video-frame {
    position: relative;

    aspect-ratio: 16 / 9;

    border: 1px solid var(--line);

    background: var(--dark-2);
}

.video-frame iframe {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;
}


/* =====================================================
   CLIENTS
===================================================== */

.clients-section {
    padding: 100px 0;

    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);

    overflow: hidden;
}

.logo-carousel {
    margin-top: 60px;

    overflow: hidden;

    width: 100%;
}

.logo-track {
    display: flex;

    width: max-content;

    animation: logoScroll 35s linear infinite;
}

.school-logo {
    width: 170px;
    height: 100px;

    margin: 0 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
}

.school-logo img {
    max-width: 160px;
    max-height: 85px;

    width: auto;
    height: auto;

    object-fit: contain;

    /* Keep original logo colours */
    filter: none;
    opacity: 1;

    transition: transform 0.3s ease;
}

.school-logo img:hover {
    transform: scale(1.08);
}
@keyframes logoScroll {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }

}


/* =====================================================
   WHAT
===================================================== */

.what-introduction {
  

    margin-top: 55px;
}

.what-introduction p {
    margin-bottom: 22px;

    color: #b7b7b7;

    font-size: 17px;
}

.what-introduction p:first-child {
    color: var(--white);

    font-size: 22px;
}

.included-heading {
    margin-top: 110px;
}

.included-heading h3 {
    margin-top: 12px;

    font-family: "Space Grotesk", sans-serif;

    font-size: 32px;

    font-weight: 500;
}

.included-grid {
    margin-top: 55px;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 80px;
}


/* =====================================================
   DELIVERABLES
===================================================== */

.deliverable {
    display: grid;

    grid-template-columns: 55px 1fr;

    gap: 20px;

    padding: 30px 0;

    border-top: 1px solid var(--line);
}

.deliverable:last-child {
    border-bottom: 1px solid var(--line);
}

.deliverable-number {
    font-family: "Space Grotesk", sans-serif;

    font-size: 11px;

    color: var(--muted);
}

.deliverable h3 {
    margin-bottom: 9px;

    font-family: "Space Grotesk", sans-serif;

    font-size: 17px;

    font-weight: 500;
}

.deliverable p {
    color: #999;

    font-size: 14px;
}


/* =====================================================
   ACCORDION
===================================================== */

.accordion {
    border-top: 1px solid var(--line);
}

.accordion-item {
    border-bottom: 1px solid var(--line);
}

.accordion-header {
    width: 100%;

    padding: 23px 0;

    display: flex;
    justify-content: space-between;
    align-items: center;

    border: none;

    background: transparent;

    color: white;

    cursor: pointer;

    font-family: "Space Grotesk", sans-serif;

    font-size: 16px;

    text-align: left;
}

.accordion-icon {
    color: var(--muted);

    font-size: 22px;

    transition: transform 0.3s;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;

    overflow: hidden;

    transition: max-height 0.4s ease;
}

.accordion-content p {
    padding-bottom: 25px;

    color: #999;

    font-size: 14px;
}

.accordion-item.active .accordion-content {
    max-height: 300px;
}


/* =====================================================
   TELESCOPE
===================================================== */

.telescope-feature {
    margin-top: 110px;

    display: grid;

    grid-template-columns: 1fr 1fr;

    background: var(--dark-2);

    border: 1px solid var(--line);
}

.telescope-image {
    min-height: 450px;
}

.telescope-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    filter: grayscale(100%);
}

.telescope-content {
    padding: 65px;
}

.telescope-content h3 {
    margin: 15px 0 25px;

    font-family: "Space Grotesk", sans-serif;

    font-size: 31px;

    font-weight: 500;

    line-height: 1.3;
}

.telescope-content p {
    margin-bottom: 18px;

    color: #a5a5a5;
}

.contract-note {
    margin-top: 40px;

    padding: 20px;

    border-left: 1px solid var(--muted);

    color: #777;

    font-size: 14px;
}


/* =====================================================
   GALLERY
===================================================== */

.gallery-section {
    padding: 120px 0;

    background: #080808;

    overflow: hidden;
}

.gallery-carousel {
    position: relative;

    margin-top: 60px;
}

.gallery-window {
    width: min(1100px, 80%);

    margin: auto;

    overflow: hidden;
}

.gallery-track {
    display: flex;

    transition: transform 0.65s cubic-bezier(.77,0,.18,1);
}

.gallery-slide {
    min-width: 100%;
     display: flex;
    align-items: center;
    justify-content: center;
}



.gallery-slide img {
    width: 100%;
    max-height: 500px;
    height: auto;

    object-fit: contain;

    filter: grayscale(25%);
}

.gallery-control {
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    width: 52px;
    height: 52px;

    border: 1px solid var(--line);

    background: rgba(0, 0, 0, 0.8);

    color: white;

    cursor: pointer;

    z-index: 5;

    transition:
        background 0.3s,
        color 0.3s;
}

.gallery-control:hover {
    background: white;
    color: black;
}

.gallery-control.prev {
    left: 3%;
}

.gallery-control.next {
    right: 3%;
}

.gallery-progress {
    width: min(1100px, 80%);

    height: 1px;

    margin: 25px auto 0;

    background: #222;
}

.gallery-progress-bar {
    width: 0;
    height: 100%;

    background: white;
}


/* =====================================================
   HOW / ABOUT
===================================================== */

.about-axsx {
    margin-top: 60px;

    display: grid;

    grid-template-columns: 250px 1fr;

    gap: 80px;

    padding: 55px 0;

    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.about-label {
    font-family: "Space Grotesk", sans-serif;

    display: flex;
    flex-direction: column;

    font-size: 12px;

    letter-spacing: 0.2em;

    color: var(--muted);
}

.about-label strong {
    margin-top: 5px;

    font-size: 45px;

    color: white;
}

.about-axsx p {
    margin-bottom: 20px;

    color: #999;
}

.about-axsx .lead-text {
    color: white;

    font-size: 21px;
}


/* =====================================================
   PROCESS
===================================================== */

.process {
    margin-top: 100px;

    display: grid;

    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;

    align-items: start;

    gap: 20px;
}

.process-step h3 {
    margin: 18px 0 12px;

    font-family: "Space Grotesk", sans-serif;

    font-size: 17px;

    font-weight: 500;
}

.process-step p {
    color: #888;

    font-size: 13px;
}

.process-number {
    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #555;

    font-family: "Space Grotesk", sans-serif;

    font-size: 11px;
}

.process-line {
    width: 45px;

    height: 1px;

    margin-top: 22px;

    background: #444;
}

.setup-note {
    margin-top: 35px;

    text-align: center;

    color: #777;

    font-size: 13px;
}


/* =====================================================
   FLOWCHART
===================================================== */

.flowchart {
    margin-top: 50px;

    padding: 45px 30px;

    border: 1px solid var(--line);

    display: flex;

    justify-content: center;
    align-items: center;

    flex-wrap: wrap;

    gap: 14px;
}

.flow-node {
    min-width: 150px;

    padding: 18px 15px;

    border: 1px solid #333;

    text-align: center;

    font-family: "Space Grotesk", sans-serif;

    font-size: 13px;

    text-transform: uppercase;

    letter-spacing: 0.06em;
}

.flow-node span {
    display: block;

    margin-bottom: 7px;

    color: #666;

    font-size: 11px;
}

.final-node {
    border-color: #777;
}

.flow-arrow {
    color: #555;

    font-size: 20px;
}


/* =====================================================
   FINAL CTA
===================================================== */

.final-cta {
    margin-top: 130px;

    padding: 100px 30px;

    text-align: center;

    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.final-cta h2 {
    margin-top: 18px;

    font-family: "Space Grotesk", sans-serif;

    font-size: clamp(38px, 5vw, 70px);

    line-height: 1.15;

    font-weight: 500;
}

.final-cta p:not(.section-number) {
    max-width: 600px;

    margin: 25px auto 0;

    color: #888;
}


/* =====================================================
   TERMS
===================================================== */

.terms-section {
    width: min(var(--max-width), 90%);

    margin: auto;

    padding: 30px 10px;
}

.terms-grid {
    margin-top: 60px;

    display: grid;

    grid-template-columns: 1fr 1fr;

    border-top: 1px solid var(--line);
}

.term {
    display: grid;

    grid-template-columns: 45px 1fr;

    gap: 20px;

    padding: 30px;

    border-bottom: 1px solid var(--line);
}

.term:nth-child(odd) {
    border-right: 1px solid var(--line);
}

.term span {
    color: #555;

    font-family: "Space Grotesk", sans-serif;

    font-size: 11px;
}

.term p {
    color: #888;

    font-size: 13px;
}


/* =====================================================
   FOOTER
===================================================== */

.footer {
    padding: 70px 5% 25px;

    border-top: 1px solid var(--line);

    background: #030303;
}

.footer-main {
    max-width: var(--max-width);

    margin: auto;

    display: grid;

    grid-template-columns: 2fr 1fr 1fr;

    gap: 70px;
}

.footer-brand img {
    width: 90px;
}

.footer-brand p {
    margin-top: 20px;

    color: #666;

    font-size: 12px;
}

.footer h3 {
    margin-bottom: 20px;

    font-family: "Space Grotesk", sans-serif;

    font-size: 12px;

    font-weight: 500;

    text-transform: uppercase;

    letter-spacing: 0.12em;
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;

    gap: 9px;
}

.footer-links a,
.footer-contact a {
    color: #777;

    font-size: 13px;

    transition: color 0.3s;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: white;
}

.footer-bottom {
    max-width: var(--max-width);

    margin: 60px auto 0;

    padding-top: 20px;

    border-top: 1px solid var(--line);

    display: flex;
    justify-content: space-between;

    color: #444;

    font-size: 11px;
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 900px) {

    .nav-links {
        position: absolute;

        top: 82px;
        left: 0;

        width: 100%;

        padding: 25px;

        flex-direction: column;

        background: #050505;

        border-bottom: 1px solid var(--line);

        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .why-grid,
    .included-grid,
    .telescope-feature {
        grid-template-columns: 1fr;
    }

    .process {
        grid-template-columns: 1fr;
    }

    .process-line {
        display: none;
    }

    .about-axsx {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .terms-grid {
        grid-template-columns: 1fr;
    }

    .term:nth-child(odd) {
        border-right: none;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .flow-arrow {
        display: none;
    }
}


@media (max-width: 600px) {

    .navbar {
        height: 70px;
    }

    .nav-links {
        top: 70px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero-content {
        padding-top: 70px;
    }

    .section {
        padding: 90px 0;
    }

    .why-grid {
        gap: 45px;
    }

    .telescope-content {
        padding: 35px;
    }

    .gallery-window {
        width: 90%;
    }

    .gallery-control {
        width: 40px;
        height: 40px;
    }

    .gallery-control.prev {
        left: 1%;
    }

    .gallery-control.next {
        right: 1%;
    }

    .flowchart {
        flex-direction: column;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom {
        flex-direction: column;

        gap: 8px;
    }

    .scroll-indicator {
        display: none;
    }
}


/* ================= FAQ SECTION ================= */

.faq-section {
    padding: 100px 8%;
    background: var(--dark-1);
}

.faq-container {
    max-width: 900px;
    margin: 50px auto 0;
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-question {
    width: 100%;
    padding: 25px 0;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;

    background: transparent;
    border: none;

    color: var(--text);
    font-family: "Space Grotesk", sans-serif;
    font-size: 16px;
    font-weight: 500;

    text-align: left;
    cursor: pointer;

    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--accent);
}

.faq-icon {
    font-size: 25px;
    font-weight: 300;
    color: var(--accent);

    flex-shrink: 0;

    transition: transform 0.3s ease;
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;

    transition: grid-template-rows 0.35s ease;
}

.faq-answer p {
    overflow: hidden;

    margin: 0;

    color: var(--muted);
    font-family: "Inter", sans-serif;
    font-size: 14px;
    line-height: 1.9;
}

/* Open FAQ */

.faq-item.active .faq-answer {
    grid-template-rows: 1fr;
}

.faq-item.active .faq-answer p {
    padding-bottom: 25px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}


/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {

    .faq-section {
        padding: 70px 6%;
    }

    .faq-question {
        font-size: 14px;
        padding: 20px 0;
    }

    .faq-answer p {
        font-size: 13px;
        line-height: 1.8;
    }

}