:root {
    --ai2c-bg: #000;
    --ai2c-text: #fff;
    --ai2c-accent: #e7ff00;
    --ai2c-muted: rgba(255, 255, 255, 0.72);
    --ai2c-pad-x: clamp(1.25rem, 4.86vw, 4.375rem);
    --ai2c-header-y: clamp(1.1rem, 6vh, 5.4rem);
    --ai2c-eth-h: 4.5rem;
    --ai2c-sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --ai2c-display: "Instrument Serif", "Times New Roman", serif;
    --ai2c-radius: 38px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (min-width: 901px) {
    html {
        scroll-snap-type: y mandatory;
    }
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--ai2c-bg);
    color: var(--ai2c-text);
    font-family: var(--ai2c-sans);
    font-size: 19px;
    line-height: 1.45;
    letter-spacing: -0.03em;
}

body {
    min-height: 100%;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

img,
video {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

/* Header
   ========================================================================== */

.ai2c-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--ai2c-header-y) var(--ai2c-pad-x) 0;
    pointer-events: none;
}

.ai2c-header > * {
    pointer-events: auto;
}

.ai2c-logo {
    display: block;
    width: clamp(7.5rem, 13.3vw, 12rem);
    flex-shrink: 0;
}

.ai2c-logo img {
    display: block;
    width: 100%;
    height: auto;
}

.ai2c-nav {
    display: flex;
    align-items: center;
    gap: 1.15rem;
}

.ai2c-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 7.125rem;
    height: 2.0625rem;
    padding: 0 1.1rem;
    border: 1px solid var(--ai2c-accent);
    border-radius: var(--ai2c-radius);
    background: #000;
    color: #fff;
    font-size: 1.05rem;
    letter-spacing: -0.03em;
    text-decoration: none;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.ai2c-pill:hover,
.ai2c-pill:focus-visible,
.ai2c-pill.is-active {
    background: var(--ai2c-accent);
    color: #000;
}

.ai2c-pill-cta {
    margin-top: 1.35rem;
    min-width: 11.3rem;
    height: 3.3rem;
    font-size: 1.15rem;
}

.ai2c-menu-toggle {
    display: none;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid var(--ai2c-accent);
    border-radius: 50%;
    background: #000;
    cursor: pointer;
}

.ai2c-menu-toggle-bars,
.ai2c-menu-toggle-bars::before,
.ai2c-menu-toggle-bars::after {
    display: block;
    width: 1.05rem;
    height: 1.5px;
    margin: 0 auto;
    background: var(--ai2c-text);
    content: "";
    position: relative;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.ai2c-menu-toggle-bars::before {
    top: -6px;
}

.ai2c-menu-toggle-bars::after {
    top: 4.5px;
}

body.menu-open .ai2c-menu-toggle-bars {
    background: transparent;
}

body.menu-open .ai2c-menu-toggle-bars::before {
    top: 0;
    transform: rotate(45deg);
}

body.menu-open .ai2c-menu-toggle-bars::after {
    top: -1.5px;
    transform: rotate(-45deg);
}

/* Sections
   ========================================================================== */

.ai2c-page {
    position: relative;
}

.ai2c-section {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    padding: calc(var(--ai2c-header-y) + 4.5rem) var(--ai2c-pad-x) calc(var(--ai2c-eth-h) + 1.5rem);
    overflow: hidden;
}

@media (min-width: 901px) {
    .ai2c-section {
        min-height: 100vh;
        min-height: 100dvh;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .ai2c-hero {
        height: 100vh;
        height: 100dvh;
    }
}

.ai2c-eyebrow {
    margin: 0 0 0.65rem;
    font-size: clamp(0.85rem, 1.4vw, 1.25rem);
    font-weight: 400;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.ai2c-display {
    margin: 0;
    color: var(--ai2c-accent);
    font-family: var(--ai2c-display);
    font-size: clamp(2.15rem, 5.07vw, 4.5625rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

/* Hero
   ========================================================================== */

.ai2c-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: #000;
    cursor: pointer;
}

.ai2c-hero-video,
.ai2c-hero-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000 center / cover no-repeat;
}

.ai2c-hero-shade {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: min(38vh, 24rem);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}

.ai2c-play {
    position: relative;
    z-index: 2;
    width: clamp(5.5rem, 12vw, 11rem);
    height: clamp(5.5rem, 12vw, 11rem);
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    pointer-events: none;
}

.ai2c-play img {
    display: block;
    width: 100%;
    height: 100%;
}

.ai2c-hero.is-playing .ai2c-play,
.ai2c-play.is-hidden,
.ai2c-play[hidden] {
    display: none;
}

.ai2c-mute {
    position: absolute;
    right: var(--ai2c-pad-x);
    bottom: clamp(0.85rem, 2.4vh, 1.6rem);
    z-index: 3;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    cursor: pointer;
}

.ai2c-mute-icon {
    display: block;
    width: 1.35rem;
    height: 1.35rem;
}

.ai2c-mute-icon[hidden] {
    display: none;
}

/* Intro
   ========================================================================== */

.ai2c-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: clamp(1.5rem, 4vw, 4rem);
    background: #000;
}

.ai2c-intro-bg {
    position: absolute;
    inset: 0;
    background-color: #000;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% auto;
    pointer-events: none;
    z-index: 0;
}

.ai2c-intro-copy,
.ai2c-intro-visual {
    position: relative;
    z-index: 1;
}

.ai2c-intro-copy {
    max-width: 46rem;
}

.ai2c-mosaic {
    margin-top: clamp(1.75rem, 4vh, 3.6rem);
    width: min(100%, 37.5rem);
}

.ai2c-mosaic img {
    display: block;
    width: 100%;
    height: auto;
}

.ai2c-intro-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ai2c-intro-visual img {
    width: min(100%, 32.8rem);
    height: auto;
    mix-blend-mode: screen;
}

/* About
   ========================================================================== */

.ai2c-about {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(4.5rem, 0.35fr);
    align-items: center;
    gap: clamp(1.25rem, 3vw, 3rem);
}

.ai2c-about-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.ai2c-about-bg img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

.ai2c-about-copy {
    position: relative;
    z-index: 1;
    max-width: 56rem;
}

.ai2c-about-body {
    max-width: 46rem;
    margin-top: 1.35rem;
    color: var(--ai2c-text);
}

.ai2c-about-body p {
    margin: 0 0 1em;
    font-size: clamp(0.95rem, 1.32vw, 1.1875rem);
}

.ai2c-about-body p:last-child {
    margin-bottom: 0;
}

.ai2c-about-body .accent,
.ai2c-about-body strong {
    color: var(--ai2c-accent);
    font-weight: 400;
}

.ai2c-bars {
    margin-top: 2rem;
    width: min(100%, 176.58px);
}

.ai2c-bars img {
    display: block;
    width: 100%;
    height: auto;
}

.ai2c-about-visual {
    position: relative;
    z-index: 1;
    align-self: stretch;
    min-height: 18rem;
    display: flex;
    justify-content: center;
    align-items: stretch;
    max-height: 600px;
}

.ai2c-about-meter {
    position: relative;
    width: 5.25rem;
    height: 100%;
    min-height: 22rem;
    pointer-events: none;
    overflow: visible;
}

.ai2c-about-meter-track {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
}

.ai2c-about-meter-star {
    position: absolute;
    left: 50%;
    top: 3%;
    width: 83%;
    height: auto;
    transform: translateX(-50%);
}

.ai2c-about-meter-line {
    position: absolute;
    left: 50%;
    top: 16%;
    height: 74%;
    width: 1px;
    transform: translateX(-50%);
    background: var(--ai2c-text);
}

.ai2c-about-meter-dot {
    position: absolute;
    left: 50%;
    bottom: 4%;
    width: 0.85rem;
    height: 0.85rem;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--ai2c-accent);
}

.ai2c-about-meter-grid {
    position: absolute;
    left: 50%;
    top: 100%;
    width: 94%;
    height: auto;
    margin-top: 0.35rem;
    transform: translateX(-50%);
}

/* Contact
   ========================================================================== */

.ai2c-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.ai2c-contact-bg {
    position: absolute;
    inset: 0% 0 0;
    background: center / cover no-repeat;
    opacity: 0.88;
    pointer-events: none;
}

.ai2c-contact-rock {
    position: absolute;
    left: 50%;
    top: 72%;
    z-index: 0;
    width: min(114.75rem, 80vw);
    aspect-ratio: 1384 / 923;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.ai2c-contact-rock-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ai2c-contact-cross,
.ai2c-contact-dot,
.ai2c-contact-dots {
    position: absolute;
    display: block;
    z-index: 1;
    max-width: none;
}

.ai2c-contact-cross {
    left: 48.53%;
    top: 3.72%;
    width: 3.33%;
    height: 5%;
}

.ai2c-contact-dots-tl {
    left: 47.9%;
    top: 22.6%;
    width: 3.81%;
    height: 6.41%;
}

.ai2c-contact-dots-tr {
    left: 64.36%;
    top: 24.28%;
    width: 3.81%;
    height: 6.41%;
}

.ai2c-contact-dot-lg {
    left: 58.93%;
    top: 28.95%;
    width: 7.59%;
    height: 11.39%;
}

.ai2c-contact-dot-mid {
    left: 54.36%;
    top: 46.61%;
    width: 1.72%;
    height: 2.58%;
}

.ai2c-contact-dot-right {
    left: 70.95%;
    top: 54.91%;
    width: 1.72%;
    height: 2.58%;
}

.ai2c-contact-dot-bl {
    left: 41.2%;
    top: 64.07%;
    width: 1.72%;
    height: 2.58%;
}

.ai2c-contact-title {
    position: relative;
    z-index: 1;
    letter-spacing: -0.03em;
}

.ai2c-contact-card {
    position: relative;
    z-index: 1;
    width: min(34rem, 92vw);
    margin-top: clamp(1.5rem, 6vh, 4.5rem);
    padding: 1.6rem 1.8rem 1.8rem;
    border-radius: 1.15rem;
    background: rgba(8, 8, 8, 0.72);
    backdrop-filter: blur(10px);
}

.ai2c-contact-company,
.ai2c-contact-address,
.ai2c-contact-mail {
    margin: 0;
    font-size: clamp(0.95rem, 1.4vw, 1.25rem);
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.ai2c-contact-address {
    margin-top: 0.15rem;
}

.ai2c-contact-mail {
    display: inline-block;
    margin-top: 0.55rem;
    color: #fff;
    text-underline-offset: 0.18em;
}

.ai2c-contact-mail:hover {
    color: var(--ai2c-accent);
}

/* ETH badge
   ========================================================================== */

.ai2c-eth {
    position: fixed;
    left: var(--ai2c-pad-x);
    bottom: clamp(0.85rem, 2.4vh, 1.6rem);
    z-index: 30;
    width: min(20.8rem, 78vw);
    pointer-events: none;
}

.ai2c-eth > img {
    display: block;
    width: 100%;
    height: auto;
}

.ai2c-eth-lockup {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    width: 100%;
}

.ai2c-eth-spin {
    width: auto;
    height: 1.85rem;
    flex: 0 0 auto;
}

.ai2c-eth-rule {
    width: 2px;
    height: 2.85rem;
    flex: 0 0 auto;
}

.ai2c-eth-mark {
    width: auto;
    height: 1.85rem;
    flex: 0 1 auto;
    max-width: 58%;
    object-fit: contain;
    object-position: left center;
}

.ai2c-eth p {
    margin: 0;
    font-size: 0.92rem;
    letter-spacing: 0.01em;
}

/* Inner pages
   ========================================================================== */

.ai2c-simple-inner {
    max-width: 48rem;
}

/* Admin bar
   ========================================================================== */

.admin-bar .ai2c-header {
    top: 32px;
}

@media (min-width: 1680px) and (max-width: 2560px) {
    .ai2c-about-bg {
        inset: -24% 0 0 0;
    }
}

@media screen and (max-width: 782px) {
    .admin-bar .ai2c-header {
        top: 46px;
    }
}

/* Tablet
   ========================================================================== */

@media (max-width: 1100px) {
    .ai2c-intro,
    .ai2c-about {
        grid-template-columns: 1fr;
        align-content: center;
    }

    .ai2c-intro-visual {
        justify-content: flex-start;
        max-width: 26rem;
    }

    .ai2c-about-visual,
    .ai2c-about-meter {
        display: none;
    }
}

/* Mobile
   ========================================================================== */

@media (max-width: 900px) {
    body {
        font-size: 16px;
    }

    .ai2c-header {
        padding-top: calc(env(safe-area-inset-top) + 1rem);
    }

    .ai2c-menu-toggle {
        position: relative;
        z-index: 50;
        display: grid;
        place-items: center;
    }

    .ai2c-nav {
        position: fixed;
        inset: 0;
        z-index: 35;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: stretch;
        gap: 1rem;
        padding: 6rem var(--ai2c-pad-x);
        background: rgba(0, 0, 0, 0.94);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition:
            opacity 0.2s ease,
            visibility 0.2s ease;
    }

    body.menu-open .ai2c-nav {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .ai2c-nav .ai2c-pill {
        width: 100%;
        height: 3.15rem;
        font-size: 1.15rem;
    }

    .ai2c-section {
        min-height: 100svh;
        padding-top: calc(env(safe-area-inset-top) + 6.4rem);
        padding-bottom: calc(env(safe-area-inset-bottom) + 4.8rem);
    }

    .ai2c-hero {
        padding: 0;
    }

    .ai2c-play {
        width: 5.25rem;
        height: 5.25rem;
    }

    .ai2c-intro-visual {
        max-width: 18rem;
        margin-top: 0.5rem;
    }

    .ai2c-mute {
        bottom: calc(env(safe-area-inset-bottom) + 0.85rem);
    }

    .ai2c-contact-card {
        padding: 1.25rem 1.15rem 1.4rem;
    }

    .ai2c-eth {
        width: min(16.5rem, 86vw);
        bottom: calc(env(safe-area-inset-bottom) + 0.7rem);
    }

    .ai2c-eth-lockup {
        gap: 0.65rem;
    }

    .ai2c-eth-spin,
    .ai2c-eth-mark {
        height: 1.45rem;
    }

    .ai2c-eth-rule {
        height: 2.2rem;
    }

    .ai2c-about-bg {
        inset: -8.5% 0 0 0;
    }
}

@media (max-width: 540px) {
    .ai2c-display {
        font-size: clamp(1.85rem, 9.4vw, 2.5rem);
    }

    .ai2c-intro-visual img {
        width: min(100%, 16.5rem);
    }
}

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

    .ai2c-hero-video {
        display: none;
    }

    .ai2c-hero-fallback {
        display: block;
    }
}
