/* ==========================================================================
   Asembl — main stylesheet
   ========================================================================== */

/* Design tokens
   ----------------------------------------------------------------------- */
:root {
    --color-bg: #ffffff;
    --color-surface: #f4f4f4;
    --color-text: #0a0a0a;
    --color-text-muted: #4b5563;
    --color-border: #e5e7eb;
    --color-dark: #0a0a0a;
    --color-dark-soft: #1a1a1a;
    --color-on-dark: #ffffff;
    --color-on-dark-muted: #b3b3b3;

    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    --font-feature-settings: "cv02", "cv03", "cv04", "cv11";
    --font-size-base: 1rem;
    --line-height-base: 1.55;

    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2rem;
    --space-6: 3rem;
    --space-7: 4rem;
    --space-8: 6rem;
    --space-9: 9rem;

    --content-max-width: 1200px;
    --content-padding: var(--space-5);
}

/* Reset
   ----------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-feature-settings: var(--font-feature-settings);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* Typography utilities
   ----------------------------------------------------------------------- */
.b1 {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
}
.b2 {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
}
.b3 {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
}

::selection {
    background: #d4d4d4;
    color: var(--color-text);
}
.hero ::selection,
.power ::selection,
.duo__box--dark ::selection {
    background: #3a3a3a;
    color: var(--color-on-dark);
}

/* Section primitive
   ----------------------------------------------------------------------- */
.hero__inner,
.statement__inner,
.power__inner,
.tech__inner,
.duo__inner,
.site-footer__inner {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding-left: var(--content-padding);
    padding-right: var(--content-padding);
}

.site-header__inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-left: 50px;
    padding-right: 50px;
}

/* Site header — absolute over hero, white wordmark
   ----------------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    width: 100%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, 0);
    opacity: 1;
    will-change: auto;
}
.site-header__inner {
    display: flex;
    align-items: flex-start;
    padding-top: 25px;
    padding-bottom: 25px;
}
.site-header__brand {
    display: inline-flex;
    align-items: center;
}
.site-header__logo {
    height: 2.5rem;
    width: auto;
    display: block;
    transition: opacity 0.2s ease;
}
.site-header__logo--black { display: none; }
.site-header[data-nav-mode="light"] .site-header__logo--white { display: none; }
.site-header[data-nav-mode="light"] .site-header__logo--black { display: block; }

/* Hero
   ----------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    color: var(--color-on-dark);
    overflow: hidden;
    display: flex;
    align-items: center;
}
.hero__media {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 30%, #2a2a2a 0%, transparent 55%),
        radial-gradient(ellipse at 80% 70%, #1f1f1f 0%, transparent 55%),
        linear-gradient(180deg, #0a0a0a 0%, #181818 100%);
    z-index: 0;
}
.hero__media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.55) 100%);
    z-index: 1;
}
.hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 0;
    padding-bottom: 0;
    text-align: center;
}
.hero__title {
    margin: 0 auto;
    font-size: clamp(58px, 5.8vw, 80px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

/* Hero scroll indicator */
.hero__scroll {
    position: absolute;
    left: 50%;
    bottom: var(--space-5);
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-on-dark);
    opacity: 0.85;
    transition: opacity 0.2s ease;
}
.hero__scroll:hover { opacity: 1; }
.hero__scroll-label {
    font-family: "Inter", sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.05em;
    line-height: 1em;
    text-align: center;
}
/* Statement (centred line on white)
   ----------------------------------------------------------------------- */
.statement {
    background: #f7f7f7;
}
.statement__inner {
    padding-top: 150px;
    padding-bottom: 150px;
    text-align: center;
}
.statement__line {
    margin: 0 auto;
    max-width: 925px;
    font-size: 50px;
    font-weight: 400;
    line-height: 1.4em;
    letter-spacing: -0.02em;
    text-align: center;
}
.statement__accent {
    color: #9ca3af;
}

/* Power to Build (dark, two-column)
   ----------------------------------------------------------------------- */
.power {
    background: var(--color-dark);
    color: var(--color-on-dark);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.power__inner {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-7);
    align-items: center;
    padding-top: var(--space-9);
    padding-bottom: var(--space-9);
}
.power__title {
    margin: 0 0 70px;
    font-size: 55px;
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -0.03em;
}
.power__body {
    margin: 0;
    max-width: 36rem;
    font-family: "Inter", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    letter-spacing: 0;
    line-height: 1.5;
    text-align: start;
    color: var(--color-on-dark);
}
.power__media-wrap {
    position: relative;
    width: fit-content;
}
.power__media {
    height: 500px;
    width: auto;
    display: block;
    background: #CDDDEA;
    border-radius: 10px;
}
.power__media-label {
    position: absolute;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    background-color: #ffffff61;
    border-radius: 10px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
    height: 39px;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 0 18px;
    color: var(--color-text);
    font-family: "Inter", sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.01em;
    white-space: nowrap;
}
.power__media-label--center {
    top: 55%;
    left: 45%;
    transform: translate(-50%, calc(-50% + 50px));
}
.power__media-label--top-left {
    top: 70px;
    left: 70px;
}

/* Technology
   ----------------------------------------------------------------------- */
.tech {
    background: #f0f0f0;
}
.tech__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-7);
    align-items: start;
    padding-top: var(--space-9);
    padding-bottom: var(--space-8);
    text-align: left;
}
.tech__title {
    margin: 0;
    font-size: 55px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: -0.03em;
    color: var(--color-text);
}
.tech__body {
    margin: 10px 0 0 0;
    font-size: 18px;
    line-height: 1.5;
    color: var(--color-text);
}
.tech__image-wrap {
    grid-column: 1 / -1;
    position: relative;
    margin-top: var(--space-6);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.tech__image-panel {
    position: relative;
    width: 100%;
}
.tech__image-panel[hidden] {
    display: none;
}
.tech__image {
    width: 100%;
    aspect-ratio: 2048 / 1148;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}
.tech__image-overlay {
    position: absolute;
    bottom: 30px;
    left: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    max-width: calc(100% - 60px);
}
.tech__image-buttons {
    align-self: flex-start;
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.tech__image-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: 0 20px;
    background-color: rgb(232, 232, 232);
    color: var(--color-text);
    border: none;
    border-radius: 0;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: color 0.18s ease, background-color 0.18s ease;
}
.tech__image-button--inactive {
    background-color: #ffffff;
    color: rgb(158, 158, 158);
}
.tech__image-button--inactive:hover,
.tech__image-button--inactive:focus-visible {
    color: var(--color-text);
    outline: none;
}
.tech__image-glass {
    width: 480px;
    max-width: 100%;
    padding: 28px 32px;
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #ffffff;
}
.tech__image-glass-eyebrow {
    margin: 0 0 16px;
    font-size: 35px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: #ffffff;
}
.tech__image-glass-body {
    margin: 0;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5em;
    color: #ffffff;
    text-wrap: pretty;
}

/* Duo (two side-by-side boxes — black left, grey right)
   ----------------------------------------------------------------------- */
.duo__inner {
    padding-top: var(--space-6);
    padding-bottom: var(--space-9);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}
.duo__box {
    padding: var(--space-6);
    min-height: 24rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: 10px;
}
.duo__box--dark {
    background: #2b2b2b;
    color: var(--color-on-dark);
    align-items: center;
    justify-content: center;
}
.duo__box-logo {
    height: 5rem;
    width: auto;
    display: block;
}
.duo__box--light {
    align-items: flex-start;
    justify-content: center;
    padding-right: 80px;
}
.duo__box-title {
    margin: 0 0 30px;
    font-size: 40px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--color-text);
}
.duo__box-body {
    margin: 0;
    color: var(--color-text);
}
.duo__box--light {
    background: var(--color-surface);
    color: var(--color-text);
}
.duo__eyebrow {
    margin: 0 0 var(--space-3);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.7;
}
.duo__title {
    margin: 0;
    font-size: clamp(1.25rem, 2vw, 1.625rem);
    line-height: 1.3;
    letter-spacing: -0.01em;
    font-weight: 500;
}

/* Footer
   ----------------------------------------------------------------------- */
.site-footer__inner {
    /* keeps max-width + padding via the section primitive; content border lives below */
}
.site-footer__content {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-4);
    padding-top: var(--space-5);
    padding-bottom: 100px;
    border-top: 1px solid #888888;
}
.site-footer__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 50px;
}
.site-footer__logo {
    height: 2rem;
    width: auto;
    display: block;
}
.site-footer__copy {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-text);
}
.site-footer__social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: -4px;
}
.site-footer__link {
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-text);
}
.site-footer__link:hover { text-decoration: underline; }
.site-footer__divider {
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-text);
    user-select: none;
}

/* Tablet (≤ 1024px / iPad portrait)
   ----------------------------------------------------------------------- */
@media (max-width: 64rem) {
    :root { --content-padding: var(--space-4); }
    .site-header__inner { padding-left: 32px; padding-right: 32px; }
    .hero__title { font-size: 72px; }
    .statement__line { font-size: 40px; max-width: 720px; }
    .statement__inner { padding-top: 120px; padding-bottom: 120px; }
    .power__title { font-size: 44px; margin-bottom: 50px; }
    .power__media { height: 380px; }
    .duo__box-logo { height: 4rem; }
    .duo__box { min-height: 22rem; padding: var(--space-5); }
    .duo__box-title { font-size: 32px; margin-bottom: 24px; }
    .duo__box--light { padding-right: 56px; }
    .tech__title { font-size: 44px; }

    /* Carousel: text moves below image (image stays within content width) */
    .tech__image-overlay {
        position: static;
        bottom: auto;
        left: auto;
        margin-top: var(--space-4);
        max-width: 100%;
    }
    .tech__image-glass {
        width: 100%;
        padding: 0;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background-color: transparent;
        color: var(--color-text);
    }
    .tech__image-glass-eyebrow {
        font-size: 28px;
        margin-bottom: 16px;
        color: var(--color-text);
    }
    .tech__image-glass-body {
        font-size: 15px;
        line-height: 1.5em;
        color: var(--color-text);
    }
}

/* Mobile (≤ 768px)
   ----------------------------------------------------------------------- */
@media (max-width: 48rem) {
    :root { --content-padding: var(--space-3); }

    .site-header__inner {
        padding-left: var(--space-3);
        padding-right: var(--space-3);
        padding-top: 18px;
        padding-bottom: 18px;
    }
    .site-header__logo { height: 2rem; }

    /* Hero — allow wrap, scale fluidly */
    .hero__title {
        font-size: clamp(2.5rem, 11vw, 4.5rem);
        line-height: 1.3;
        white-space: normal;
        letter-spacing: 0.01em;
    }
    .hero__title-line { display: block; }
    .hero {
        height: 100vh;       /* fallback for older browsers */
        height: 100svh;      /* always within the visible viewport */
        height: 100dvh;      /* adapts to URL bar showing/hiding */
    }
    .hero__inner { padding-top: var(--space-6); padding-bottom: var(--space-8); }
    .hero__scroll { bottom: 100px; }

    /* Statement */
    .statement__line { font-size: 28px; line-height: 1.3em; }
    .statement__inner { padding-top: 72px; padding-bottom: 72px; }

    /* Power — remove 100vh, stack, image full-width */
    .power { min-height: auto; }
    .power__inner {
        grid-template-columns: 1fr;
        padding-top: 72px;
        padding-bottom: 72px;
        gap: 48px;
    }
    .power__title { font-size: 32px; margin-bottom: 28px; line-height: 1.1; }
    .power__media-wrap { width: 100%; }
    .power__media {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }
    .power__media-label--top-left { top: 20px; left: 20px; }
    .power__media-label--center {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    /* Tech — stack, smaller heading, overlay shrinks */
    .tech__inner {
        grid-template-columns: 1fr;
        padding-top: 72px;
        padding-bottom: 56px;
        gap: var(--space-5);
    }
    .tech__title { font-size: 32px; line-height: 1.2; }
    .tech__body { font-size: 16px; margin-top: 0; }
    .tech__image-buttons { flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
    .tech__image-button { font-size: 14px; padding: 0 14px; height: 42px; }
    /* Image bleeds edge-to-edge on mobile */
    .tech__image {
        margin-left: calc(var(--content-padding) * -1);
        margin-right: calc(var(--content-padding) * -1);
        width: calc(100% + (var(--content-padding) * 2));
        max-width: none;
        border-radius: 0;
    }
    /* (text-under-image treatment inherited from tablet rule) */
    .tech__image-glass-eyebrow { font-size: 24px; margin-bottom: 24px; }
    .tech__image-glass-body { font-size: 15px; line-height: 1.5em; }

    /* Duo — stack */
    .duo__inner {
        grid-template-columns: 1fr;
        padding-top: 32px;
        padding-bottom: 56px;
        gap: var(--space-3);
    }
    .duo__box {
        min-height: 18rem;
        padding: var(--space-5);
    }
    .duo__box-logo { height: 3.5rem; }
    .duo__box--light { padding-right: var(--space-5); }
    .duo__box-title { font-size: 28px; margin-bottom: 20px; }

    /* Footer — stack brand + social vertically */
    .site-footer__content {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-5);
        padding-top: var(--space-5);
        padding-bottom: 64px;
    }
    .site-footer__brand { gap: 30px; }
    .site-footer__social { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
