/* =========================================
   NEONHEX Website v2
   Static studio site with neon hex-grid scenes
   ========================================= */

:root {
    --bg: #020206;
    --bg-soft: #070714;
    --panel-solid: #06090f;
    --bg-card: rgba(13, 14, 33, 0.72);
    --purple: #5E5FC7;
    --magenta: #DD3DF8;
    --cyan: #39EFFE;
    --panel-border: #3d4350;
    --line-asset: url("assets/line.png");
    --cassette-asset: url("assets/caseta_2.png");
    --cassette-cto: url("assets/caseta_cto.png");
    --cassette-design: url("assets/caseta_design.png");
    --cassette-energy: url("assets/caseta_energy.png");
    --wave-underline: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 18' preserveAspectRatio='none'%3E%3Cpath d='M3 10 C 14 6 25 13 38 9 S 62 8 74 10 90 7 97 9' fill='none' stroke='%23F8FBFF' stroke-width='5' stroke-linecap='round'/%3E%3Cpath d='M4 13 C 18 10 28 15 41 12 S 64 11 76 13 91 11 97 12' fill='none' stroke='%23F8FBFF' stroke-opacity='.42' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
    --wave-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 18' preserveAspectRatio='none'%3E%3Cpath d='M3 10 C 14 6 25 13 38 9 S 62 8 74 10 90 7 97 9' fill='none' stroke='%23fff' stroke-width='5' stroke-linecap='round'/%3E%3Cpath d='M4 13 C 18 10 28 15 41 12 S 64 11 76 13 91 11 97 12' fill='none' stroke='%23fff' stroke-opacity='.42' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
    --white: #f8fbff;
    --white-dim: rgba(248, 251, 255, 0.72);
    --white-muted: rgba(248, 251, 255, 0.52);
    --white-faint: rgba(248, 251, 255, 0.14);
    --border: rgba(248, 251, 255, 0.12);
    --shadow-purple: rgba(94, 95, 199, 0.45);
    --shadow-magenta: rgba(221, 61, 248, 0.36);
    --shadow-cyan: rgba(57, 239, 254, 0.34);
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'IBM Plex Sans', sans-serif;
    --header-height: 72px;
    --layout-width: 1080px;
}

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

html {
    background: var(--bg);
    color: var(--white);
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--white);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    color: inherit;
    font: inherit;
}

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
    width: 100%;
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem max(clamp(1rem, 4vw, 4rem), calc((100vw - var(--layout-width)) / 2));
    background: linear-gradient(to bottom, rgba(2, 2, 6, 0.88), rgba(2, 2, 6, 0));
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition: background 0.25s ease, backdrop-filter 0.25s ease, box-shadow 0.25s ease;
}

.site-header::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: rgba(221, 61, 248, 0.48);
    box-shadow: 0 1px 18px rgba(221, 61, 248, 0.12);
    pointer-events: none;
}

.site-header.scrolled,
.site-header.nav-open {
    background: rgba(2, 2, 6, 0.84);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.brand-link {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-width: max-content;
}

.brand-mark {
    position: relative;
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    filter: drop-shadow(0 0 14px var(--shadow-cyan));
}

.brand-mark img {
    width: 120%;
    height: 121%;
    object-fit: contain;
    display: block;
}

.brand-word {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    letter-spacing: 0.08em;
}

.header-brand {
    gap: 0;
}

.footer-brand-link {
    justify-content: center;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: clamp(0.85rem, 2vw, 1.5rem);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--white-dim);
}

.site-nav a {
    position: relative;
    display: inline-flex;
    justify-content: center;
    padding-bottom: 0.45rem;
    margin-bottom: -0.45rem;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.site-nav a::after {
    content: "";
    position: absolute;
    right: 50%;
    bottom: 0;
    width: 100%;
    height: 14px;
    background-image: var(--wave-underline);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    opacity: 0;
    filter: drop-shadow(0 0 5px rgba(248, 251, 255, 0.38));
    transform: translateX(50%) translateY(2px) scaleX(0.72);
    transition: opacity 0.2s ease, transform 0.2s ease, filter 0.2s ease;
    pointer-events: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--white);
    text-shadow: 0 0 16px var(--shadow-cyan);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
    opacity: 0.95;
    transform: translateX(50%) translateY(5px) scaleX(1);
}

.discord-nav {
    color: var(--cyan) !important;
}

.nav-toggle {
    position: relative;
    z-index: 2;
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: var(--white);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.nav-open .nav-toggle span:first-child {
    transform: translateY(3px) rotate(45deg);
}

.site-header.nav-open .nav-toggle span:last-child {
    transform: translateY(-3px) rotate(-45deg);
}

/* =========================================
   Hex Scenes
   ========================================= */

.hex-scene {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--bg);
}

.hex-scene canvas {
    position: absolute;
    inset: 0;
    z-index: -3;
    width: 100%;
    height: 100%;
}

.page-wrap.hex-scene {
    overflow: visible;
}

.page-wrap.hex-scene canvas {
    position: fixed;
    z-index: -4;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    pointer-events: none;
}

.hero-vignette,
.page-vignette {
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
}

.hero-vignette {
    background:
        radial-gradient(circle at 50% 42%, rgba(221, 61, 248, 0.12), transparent 35%),
        radial-gradient(circle at 50% 78%, rgba(57, 239, 254, 0.12), transparent 34%),
        linear-gradient(to bottom, rgba(2, 2, 6, 0.34), rgba(2, 2, 6, 0.08) 44%, rgba(2, 2, 6, 0.86));
}

.page-vignette {
    position: fixed;
    background:
        radial-gradient(circle at 50% 15%, rgba(0, 0, 0, 0.5), transparent 34%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.62), rgba(2, 2, 6, 0.67));
}

/* =========================================
   Homepage
   ========================================= */

.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: calc(var(--header-height) + 1rem) clamp(1.25rem, 5vw, 5rem) 3rem;
}

.hero-content {
    width: min(720px, calc(100vw - 2rem));
    display: grid;
    justify-items: center;
    gap: clamp(1.1rem, 2.8vw, 1.85rem);
    text-align: center;
}

.hero-logo {
    position: relative;
    width: clamp(140px, 22vw, 220px);
    height: clamp(140px, 22vw, 220px);
    display: grid;
    place-items: center;
    margin-bottom: 0.2rem;
    filter: drop-shadow(0 0 24px var(--shadow-cyan)) drop-shadow(0 0 34px var(--shadow-magenta));
    animation: heroLogoEnter 1.5s cubic-bezier(0.18, 0.84, 0.24, 1) both;
}

.hero-logo::before,
.hero-logo::after {
    content: "";
    position: absolute;
    inset: -18%;
    z-index: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
    opacity: 0;
}

.hero-logo::before {
    inset: -25%;
    background-image: url("assets/shine.png");
    animation: logoShineBurst 1.2s 1.15s ease-out both, logoShineFloat 5.5s 2.35s ease-in-out infinite;
    filter: drop-shadow(0 0 18px rgba(221, 61, 248, 0.42));
}

.hero-logo::after {
    display: none;
}

.hero-logo img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    animation: heroLogoPulse 4.8s 1.8s ease-in-out infinite;
}

.eyebrow {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--cyan);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(5.4rem, 16vw, 11.5rem);
    line-height: 0.82;
    letter-spacing: 0.045em;
    text-shadow:
        0 0 26px rgba(57, 239, 254, 0.18),
        0 0 52px rgba(221, 61, 248, 0.14);
}

.hero-subtitle {
    width: min(720px, 100%);
    color: var(--white-dim);
    font-size: clamp(1rem, 2.6vw, 1.35rem);
    line-height: 1.55;
    letter-spacing: 0.03em;
}

.hero-subtitle .underline-magenta::after {
    background: var(--magenta);
    box-shadow: 0 0 12px var(--magenta);
}

.hero-subtitle .underline-cyan::after {
    background: var(--cyan);
    box-shadow: 0 0 12px var(--cyan);
}

.hero-subtitle .underline-purple::after {
    background: #9a7bff;
    box-shadow: 0 0 12px #9a7bff;
}

.hero-subtitle .underline-word::after {
    height: 9px;
    bottom: -0.12em;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
    -webkit-mask-image: var(--wave-mask);
    mask-image: var(--wave-mask);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

.underline-word {
    display: inline-block;
    position: relative;
    padding-bottom: 0.08em;
    color: var(--white);
    font-weight: 700;
}

.underline-word::after,
.accent-underline::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 12px currentColor;
}

.underline-magenta {
    color: var(--magenta);
}

.underline-cyan {
    color: var(--cyan);
}

.underline-purple {
    color: #9a7bff;
}

.community-card {
    display: grid;
    justify-items: center;
    gap: clamp(0.9rem, 2vw, 1.25rem);
    margin-top: clamp(0.6rem, 2.5vw, 1.25rem);
}

.community-card p {
    color: var(--white);
    font-size: clamp(0.86rem, 1.8vw, 1rem);
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-shadow: 0 0 18px rgba(57, 239, 254, 0.22);
}

.community-action {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    width: min(460px, 100vw - 2rem);
    gap: clamp(0.75rem, 2.4vw, 1.6rem);
    transform: translateY(-40px);
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 46px;
    padding: 0.85rem 1.35rem;
    border: 1px solid rgba(57, 239, 254, 0.48);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(57, 239, 254, 0.95), rgba(221, 61, 248, 0.92));
    color: var(--bg);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    box-shadow: 0 0 24px var(--shadow-cyan), 0 0 34px var(--shadow-magenta);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 34px var(--shadow-cyan), 0 0 48px var(--shadow-magenta);
}

.discord-image-link {
    position: relative;
    display: inline-flex;
    grid-column: 2;
    justify-self: center;
    width: clamp(58px, 10vw, 78px);
    height: clamp(58px, 10vw, 78px);
    filter: drop-shadow(0 0 18px rgba(57, 239, 254, 0.35));
    transition: transform 0.22s ease, filter 0.22s ease;
}

.discord-icon {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.22s ease, filter 0.22s ease;
}

.discord-image-link:hover {
    transform: scale(1.14);
    filter:
        drop-shadow(0 0 20px rgba(57, 239, 254, 0.55))
        drop-shadow(0 0 34px rgba(221, 61, 248, 0.32));
}

.discord-image-link:active {
    transform: scale(1.2);
}

.discord-image-link:hover .discord-icon {
    filter: brightness(1.08) saturate(1.08);
}

.hero-mascot {
    grid-column: 3;
    justify-self: start;
    width: clamp(163px, 27vw, 255px);
    height: auto;
    object-fit: contain;
    transform: translate(-10px, 15px);
    filter:
        drop-shadow(0 0 14px rgba(57, 239, 254, 0.4))
        drop-shadow(0 0 24px rgba(221, 61, 248, 0.18));
}

.about-section {
    position: relative;
    overflow: hidden;
    padding: clamp(5rem, 10vw, 5rem) clamp(1.25rem, 5vw, 5rem);
    background:
        radial-gradient(circle at 20% 20%, rgba(94, 95, 199, 0.14), transparent 35%),
        radial-gradient(circle at 80% 0%, rgba(221, 61, 248, 0.11), transparent 32%),
        var(--bg);
}

.about-section::before,
.about-section::after {
    display: none;
}

.section-shell {
    position: relative;
    z-index: 1;
    width: min(880px, 100%);
    margin: 0 auto;
}

.section-shell h2 {
    position: relative;
    display: inline-block;
    margin-left: 20px;
    padding-bottom: 0.85rem;
    padding-left: 0.35rem;
    font-family: var(--font-display);
    font-size: clamp(3.35rem, 11.2vw, 7.35rem);
    line-height: 0.82;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.section-shell h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: min(100%, 520px);
    height: 14px;
    background-image: var(--wave-underline);
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 100% 100%;
    opacity: 0.86;
    filter: drop-shadow(0 0 6px rgba(248, 251, 255, 0.22));
}

.about-copy {
    position: relative;
    width: min(880px, 100%);
    display: grid;
    gap: clamp(0.95rem, 2vw, 1.2rem);
    margin-top: clamp(1.6rem, 4vw, 2.6rem);
    padding: 0;
    color: var(--white-dim);
    font-size: clamp(0.9rem, 1.45vw, 1.04rem);
    line-height: 1.7;
}

.about-copy::before {
    display: none;
}

/* =========================================
   Subpages
   ========================================= */

.page-wrap {
    min-height: auto;
    padding: calc(var(--header-height) + 1.5rem) clamp(1.2rem, 5vw, 5rem) clamp(1.25rem, 3vw, 2rem);
}

.page-content {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    min-height: auto;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 4rem);
    overflow: hidden;
    border: 0;
    border-radius: 0;
    clip-path: polygon(22px 0, calc(100% - 22px) 0, 100% 22px, 100% calc(100% - 22px), calc(100% - 22px) 100%, 22px 100%, 0 calc(100% - 22px), 0 22px);
    background:
        radial-gradient(circle at 0% 0%, rgba(57, 239, 254, 0.04), transparent 34%),
        radial-gradient(circle at 100% 0%, rgba(221, 61, 248, 0.055), transparent 38%),
        var(--panel-solid);
    box-shadow:
        inset 0 0 0 1px rgba(248, 251, 255, 0.035),
        0 20px 90px rgba(0, 0, 0, 0.58),
        0 0 54px rgba(94, 95, 199, 0.12);
    backdrop-filter: blur(18px);
}

.page-content::before {
    display: none;
}

.page-content.legal-page {
    width: min(880px, 100%);
    background:
        radial-gradient(circle at 0% 0%, rgba(57, 239, 254, 0.035), transparent 30%),
        radial-gradient(circle at 100% 0%, rgba(221, 61, 248, 0.045), transparent 36%),
        var(--panel-solid);
    backdrop-filter: none;
}

.legal-page h1 {
    font-size: clamp(2.25rem, 6.75vw, 4.5rem);
}

.legal-page h1::after {
    width: 100%;
}

.editorial-page {
    width: min(880px, 100%);
    display: grid;
    gap: clamp(1.2rem, 2.5vw, 2rem);
}

.page-lede {
    max-width: 740px;
    color: var(--white-dim);
    font-size: clamp(1.05rem, 2.2vw, 1.25rem) !important;
}

.careers-lede {
    display: grid;
    gap: 0.35rem;
}

.careers-lede p {
    margin: 0;
}

.belief-line {
    justify-self: end;
    color: var(--magenta) !important;
    font-weight: 800;
}

.careers-page .underline-word::after,
.careers-page .accent-underline::after {
    height: 9px;
    bottom: -0.12em;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
    -webkit-mask-image: var(--wave-mask);
    mask-image: var(--wave-mask);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

.careers-page {
    padding-top: clamp(2rem, 4vw, 3rem);
}

.careers-page h1 {
    margin-bottom: clamp(0.85rem, 2vw, 1.15rem);
}

.page-content h1 {
    position: relative;
    display: inline-block;
    padding-bottom: clamp(0.32rem, 1vw, 0.5rem);
}

.page-content h1::after,
.careers-cta h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: clamp(13px, 1.8vw, 18px);
    background-image: var(--wave-underline);
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 100% 100%;
    opacity: 0.9;
    filter: drop-shadow(0 0 6px rgba(248, 251, 255, 0.28));
    pointer-events: none;
}

.editorial-panel {
    position: relative;
    display: grid;
    gap: 0.9rem;
    padding-top: 1.5rem;
    border-top: 0;
}

.editorial-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 12px;
    background-image: var(--wave-underline);
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 100% 100%;
    opacity: 0.34;
    pointer-events: none;
}

.editorial-panel:first-of-type {
    padding-top: 0;
    border-top: 0;
}

.editorial-panel:first-of-type::before {
    display: none;
}

.editorial-panel h2 {
    margin: 0;
}

.asset-heading {
    display: inline-flex;
    align-items: center;
    gap: clamp(0.2rem, 1vw, 0.45rem);
    width: fit-content;
}

.asset-heading h2 {
    min-height: clamp(42px, 7vw, 62px);
    display: inline-flex;
    align-items: center;
    padding: 0.65rem clamp(1rem, 3vw, 1.6rem);
    background-image: var(--cassette-asset);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    color: var(--white);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.asset-heading img {
    width: clamp(84px, 16vw, 136px);
    height: auto;
    object-fit: contain;
    transform: translate(-18px, 30px);
    filter: drop-shadow(0 0 12px rgba(57, 239, 254, 0.22));
}

.accent-underline {
    position: relative;
    display: inline-block;
    padding-bottom: 0.06em;
    color: var(--white);
    font-weight: 800;
}

.accent-magenta {
    color: var(--magenta);
}

.accent-cyan {
    color: var(--cyan);
}

.plain-list {
    display: grid;
    gap: 0;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

.plain-list li {
    position: relative;
    display: grid;
    grid-template-columns: minmax(110px, 0.35fr) 1fr;
    align-items: center;
    gap: clamp(1rem, 3vw, 2rem);
    min-height: clamp(76px, 9vw, 96px);
    padding: 1.2rem 0;
    border-top: 0;
}

.plain-list li::before,
.contact-strip::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background-image: var(--wave-underline);
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 100% 100%;
    opacity: 0.24;
    pointer-events: none;
}

.plain-list strong {
    color: var(--white);
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.plain-list span {
    color: var(--white-dim);
    line-height: 1.65;
}

.contact-strip {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 0 0;
    border-top: 0;
}

.contact-strip p {
    margin: 0;
}

.contact-strip a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: min(100%, 320px);
    padding: 0.85rem clamp(1.1rem, 4vw, 2rem);
    border: 0;
    border-radius: 0;
    clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
    background-color: var(--panel-solid);
    background-image: var(--cassette-asset);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    text-decoration: none !important;
    color: var(--magenta);
    box-shadow: 0 0 20px rgba(221, 61, 248, 0.08);
}

.contact-strip a:hover,
.contact-strip a:focus-visible {
    transform: translateY(-2px);
    color: var(--cyan);
    filter: drop-shadow(0 0 12px rgba(57, 239, 254, 0.18));
}

.page-content h1 {
    margin: 0.6rem 0 1.4rem;
    font-family: var(--font-display);
    font-size: clamp(4rem, 12vw, 8rem);
    line-height: 0.9;
    letter-spacing: 0.05em;
}

.page-content h2 {
    margin: 2.4rem 0 0.75rem;
    font-size: clamp(1.3rem, 3vw, 1.65rem);
    line-height: 1.2;
}

.page-content h3 {
    margin: 1.6rem 0 0.5rem;
    font-size: 1.05rem;
    color: var(--cyan);
}

.page-content p,
.page-content li {
    color: var(--white-dim);
    font-size: 1rem;
    line-height: 1.75;
}

.page-content ul,
.page-content ol {
    display: grid;
    gap: 0.6rem;
    margin: 0.9rem 0 0;
    padding-left: 1.25rem;
}

.page-content a {
    color: var(--cyan);
    font-weight: 700;
    text-decoration-line: underline;
    text-decoration-style: wavy;
    text-decoration-color: currentColor;
    text-decoration-thickness: 1.5px;
    text-decoration-skip-ink: none;
    text-underline-offset: 0.24em;
    transition: color 0.2s ease, text-shadow 0.2s ease, transform 0.2s ease;
}

.page-content a:hover,
.page-content a:focus-visible,
.about-copy a:hover,
.about-copy a:focus-visible {
    color: var(--white);
    text-shadow: 0 0 16px rgba(57, 239, 254, 0.5);
}

.about-copy a {
    color: var(--magenta);
    font-weight: 700;
    text-decoration-line: underline;
    text-decoration-style: wavy;
    text-decoration-color: currentColor;
    text-decoration-thickness: 1.5px;
    text-decoration-skip-ink: none;
    text-underline-offset: 0.24em;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

@keyframes heroLogoEnter {
    0% {
        transform: translateY(12px) scale(0.82) rotate(-5deg);
    }

    65% {
        transform: translateY(-3px) scale(1.05) rotate(1deg);
    }

    100% {
        transform: translateY(0) scale(1) rotate(0);
    }
}

@keyframes logoShineBurst {
    0% {
        opacity: 0;
        transform: translateX(10px) scale(0.45) rotate(-12deg);
    }

    45% {
        opacity: 0.95;
        transform: translateX(10px) scale(1.08) rotate(2deg);
    }

    100% {
        opacity: 0.68;
        transform: translateX(10px) scale(1) rotate(0);
    }
}

@keyframes logoShineFloat {
    0%, 100% {
        transform: translateX(10px) scale(1) rotate(0deg);
        opacity: 0.62;
    }

    50% {
        transform: translateX(10px) scale(1.04) rotate(3deg);
        opacity: 0.86;
    }
}

@keyframes logoShineFloatAlt {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.46;
    }

    50% {
        transform: scale(1.08) rotate(-4deg);
        opacity: 0.78;
    }
}

@keyframes heroLogoPulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.025);
    }
}

.career-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1rem, 3vw, 1.4rem);
}

.career-card {
    position: relative;
    display: block;
    min-height: clamp(250px, 30vw, 330px);
    padding: clamp(1.2rem, 3vw, 1.6rem);
    overflow: visible;
    border: 0;
    border-radius: 0;
    background-color: transparent;
    color: var(--white);
    text-decoration: none !important;
}

.career-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: var(--cassette-design);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    mix-blend-mode: screen;
    pointer-events: none;
}

.career-card-technical::after {
    background-image: var(--cassette-cto);
}

.career-card-design::after {
    background-image: var(--cassette-design);
}

.career-card-copy {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.75rem;
    width: min(58%, 560px);
}

.career-card-technical .career-card-copy {
    transform: translateY(40px);
}

.career-card-design .career-card-copy {
    transform: translateY(10px);
}

.career-card::before {
    display: none;
}

.career-card:hover,
.career-card:focus-visible {
    transform: translateY(-4px);
}

.career-card-copy > span {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 26px;
    padding: 0.3rem 0.65rem;
    border: 1px solid rgba(57, 239, 254, 0.55);
    background: transparent;
    color: var(--cyan);
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.career-card-technical .career-card-copy > span {
    transform: translateY(-25px);
}

.career-card-technical .career-card-copy > strong,
.career-card-technical .career-card-copy > p {
    transform: translateY(-15px);
}

.career-card-technical .tag-row {
    transform: translateY(-5px);
}

.career-card strong {
    color: var(--white);
    font-size: clamp(1.25rem, 3vw, 1.65rem);
    line-height: 1.1;
}

.career-card p {
    margin: 0;
    color: var(--white-dim);
    font-size: 0.98rem;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.25rem;
}

.tag-row small {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0.3rem 0.6rem;
    border: 1px solid rgba(57, 239, 254, 0.55);
    color: var(--cyan);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: transparent;
}

.career-mascot {
    position: absolute;
    right: clamp(-1.6rem, -1.5vw, -0.45rem);
    bottom: clamp(0.5rem, -2vw, -0.4rem);
    z-index: 1;
    width: clamp(178px, 30vw, 306px);
    max-width: none;
    height: auto;
    object-fit: contain;
    pointer-events: none;
    filter:
        drop-shadow(0 0 16px rgba(57, 239, 254, 0.34))
        drop-shadow(0 0 22px rgba(221, 61, 248, 0.18));
}

.design-mascot {
    right: clamp(-0.8rem, 1vw, 1.2rem);
    bottom: clamp(0.4rem, 1vw, 1rem);
    width: clamp(170px, 28vw, 292px);
}

.careers-cta {
    position: relative;
    display: block;
    min-height: clamp(260px, 30vw, 340px);
    padding: clamp(1.4rem, 3vw, 1.8rem);
    border: 0;
    border-radius: 0;
    overflow: visible;
    isolation: isolate;
}

.careers-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: var(--cassette-energy);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    mix-blend-mode: screen;
    pointer-events: none;
}

.careers-cta > div:first-child,
.careers-cta .contact-strip {
    position: relative;
    z-index: 1;
    width: min(62%, 560px);
}

.careers-cta h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 0.55rem;
    margin: 0 0 0.5rem;
}

.careers-cta p {
    margin: 0;
}

.careers-cta .contact-strip {
    justify-content: center;
    padding-top: 1.2rem;
}

.careers-cta .contact-strip a {
    position: relative;
    min-width: min(100%, 420px);
    min-height: 52px;
    padding: 0.9rem clamp(1.1rem, 4vw, 2rem);
    overflow: visible;
    background-color: transparent;
    background-image: var(--cassette-asset);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    color: var(--magenta);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-align: left;
    text-transform: none;
    text-decoration: none !important;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: 0 0 20px rgba(221, 61, 248, 0.08);
}

.careers-cta .contact-strip a::before {
    display: none;
}

.careers-cta .contact-strip a span {
    position: relative;
    z-index: 1;
    display: inline-block;
    transform: translateY(-5px);
}

.careers-cta .contact-strip a::after {
    content: "→";
    display: inline-block;
    transform: translateY(-5px);
    color: var(--magenta);
    font-size: 1.45em;
    line-height: 1;
    position: relative;
    z-index: 1;
}

.cta-mascot {
    position: absolute;
    right: clamp(-0.25rem, 5vw, 2.25rem);
    bottom: clamp(2.1rem, 3.5vw, 0.9rem);
    z-index: 1;
    width: clamp(210px, 30vw, 320px);
    max-width: none;
    height: auto;
    object-fit: contain;
    pointer-events: none;
    transform: translateX(50px);
    filter:
        drop-shadow(0 0 16px rgba(221, 61, 248, 0.38))
        drop-shadow(0 0 20px rgba(57, 239, 254, 0.2));
}

.page-note {
    margin: 1.8rem 0;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(221, 61, 248, 0.34);
    border-radius: 18px;
    background: rgba(221, 61, 248, 0.08);
    color: var(--white-dim);
}

.role-card,
.faq-card {
    margin-top: 1rem;
    padding: 1.1rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.035);
}

.role-card h3,
.faq-card h3 {
    margin-top: 0;
}

.legal-meta {
    color: var(--white-muted);
    font-size: 0.9rem;
}

/* =========================================
   Footer
   ========================================= */

.site-footer {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 2rem;
    width: min(var(--layout-width), calc(100% - 2.5rem));
    margin: 0 auto;
    padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 5vw, 5rem);
    border-top: 1px solid rgba(221, 61, 248, 0.48);
    border-radius: 28px 28px 0 0;
    background: rgba(1, 1, 4, 0.96);
    box-shadow:
        0 -1px 18px rgba(221, 61, 248, 0.12),
        0 -24px 80px rgba(0, 0, 0, 0.42);
}

.footer-brand,
.footer-links,
.footer-contact {
    display: grid;
    justify-items: center;
    text-align: center;
}

.footer-brand p,
.footer-contact p,
.footer-contact span {
    margin-top: 0.75rem;
    color: var(--white-muted);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-links {
    gap: 0.65rem;
}

.footer-links a,
.footer-contact a {
    color: var(--white-dim);
    font-size: 0.9rem;
    text-decoration: underline;
    text-decoration-color: rgba(57, 239, 254, 0.28);
    text-underline-offset: 0.22em;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--cyan);
    text-decoration-color: currentColor;
}

.footer-contact {
    gap: 0.4rem;
    align-content: start;
}

/* =========================================
   Responsive
   ========================================= */

@media (max-width: 820px) {
    .site-header {
        align-items: center;
        min-height: 64px;
        padding: 0.8rem 1rem;
    }

    .brand-link {
        transform: translateY(1px);
    }

    .nav-toggle {
        display: block;
        flex: 0 0 auto;
    }

    .site-nav {
        position: fixed;
        inset: 0;
        z-index: 1;
        display: grid;
        align-content: start;
        gap: 1.35rem;
        min-height: 100vh;
        min-height: 100svh;
        padding: calc(var(--header-height) + 2.2rem) clamp(1.4rem, 7vw, 2.2rem) 2rem;
        border: 0;
        border-radius: 0;
        background:
            radial-gradient(circle at 12% 16%, rgba(221, 61, 248, 0.12), transparent 34%),
            radial-gradient(circle at 82% 28%, rgba(57, 239, 254, 0.08), transparent 36%),
            rgba(2, 2, 6, 0.98);
        box-shadow: none;
        backdrop-filter: blur(20px);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .site-nav a {
        justify-content: flex-start;
        width: fit-content;
        font-size: clamp(1rem, 5vw, 1.35rem);
        letter-spacing: 0.12em;
        padding-bottom: 0.65rem;
    }

    .site-header.nav-open .site-nav {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .hero {
        min-height: 100svh;
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .hero.hex-scene canvas {
        height: 100svh !important;
    }

    .hero-vignette {
        background:
            radial-gradient(circle at 50% 15%, rgba(0, 0, 0, 0.42), transparent 34%),
            linear-gradient(to bottom, rgba(0, 0, 0, 0.42), rgba(2, 2, 6, 0.5));
    }

    .page-wrap {
        padding-right: 0;
        padding-left: 0;
    }

    .page-content,
    .editorial-page,
    .page-content.legal-page {
        width: 100%;
    }

    .page-content {
        clip-path: none;
    }

    .community-card {
        width: min(360px, 100%);
        flex-direction: column;
        border-radius: 28px;
        padding: 1rem;
    }

    .community-card p {
        padding-left: 0;
        text-align: center;
    }

    .primary-button {
        width: 100%;
    }

    .site-footer {
        grid-template-columns: 1fr;
        width: min(520px, calc(100% - 2rem));
    }

    .career-card {
        min-height: auto;
        overflow: visible;
        padding: 1.45rem 1.1rem 1.1rem;
        background:
            radial-gradient(circle at 100% 0%, rgba(57, 239, 254, 0.075), transparent 34%),
            rgba(6, 9, 15, 0.9);
        clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
    }

    .career-card::after {
        display: none;
    }

    .career-card-copy,
    .careers-cta > div:first-child,
    .careers-cta .contact-strip {
        width: 100%;
    }

    .career-card-copy > span {
        justify-self: center;
        max-width: 100%;
        white-space: normal;
        font-size: clamp(0.86rem, 4.1vw, 1rem);
        letter-spacing: 0.095em;
        line-height: 1.1;
        margin-top: 0;
        margin-bottom: 0.75rem;
        transform: none !important;
        text-align: center;
    }

    .career-card strong {
        font-size: clamp(1.18rem, 5.4vw, 1.48rem);
    }

    .careers-cta {
        min-height: auto;
        margin-right: 0.85rem;
        padding: 1.1rem;
        overflow: visible;
        background:
            radial-gradient(circle at 100% 0%, rgba(221, 61, 248, 0.075), transparent 34%),
            rgba(6, 9, 15, 0.9);
        clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
    }

    .careers-cta::before {
        display: none;
    }

    .careers-cta h2 {
        font-size: clamp(1.18rem, 5.4vw, 1.48rem);
    }

    .careers-cta .contact-strip a {
        min-width: 0;
        width: 100%;
    }

    .career-card-technical .career-card-copy,
    .career-card-design .career-card-copy {
        transform: none;
    }

    .career-mascot,
    .cta-mascot {
        position: relative;
        right: auto;
        bottom: auto;
        display: block;
        margin: 1rem auto 0;
        max-width: min(70%, 220px);
        transform: none;
    }

    .design-mascot {
        max-width: min(68%, 210px);
    }

    .cta-mascot {
        max-width: min(68%, 210px);
    }
}

@media (max-width: 560px) {
    :root {
        --header-height: 64px;
    }

    .brand-word {
        font-size: 1.3rem;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
    }

    .hero-title {
        font-size: clamp(4rem, 20vw, 6.2rem);
    }

    .hero-subtitle {
        display: grid;
        justify-items: center;
        gap: 0.15rem;
        font-size: 0.98rem;
        line-height: 1.35;
    }

    .hero-subtitle .underline-word {
        width: max-content;
    }

    .editorial-page {
        gap: 1rem;
    }

    .section-shell h2 {
        margin-left: 10px;
        font-size: clamp(3.1rem, 15.4vw, 4.6rem);
    }

    .page-content {
        padding: 1.35rem;
        border-radius: 0;
        clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 16px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px), 0 16px);
    }

    .page-content h1 {
        display: block;
        width: fit-content;
        margin-right: auto;
        margin-left: auto;
        text-align: center;
        font-size: clamp(3.4rem, 18vw, 5.3rem);
    }

    .careers-page h1 {
        max-width: calc(100% - 1.2rem);
    }

    .careers-page h1::after {
        width: 100%;
    }

    .careers-lede,
    .careers-panel > p {
        padding-right: 0.85rem;
    }

    .plain-list li,
    .contact-strip {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .career-cards {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .career-card {
        margin-right: 0.85rem;
    }

    .career-card-technical .career-card-copy > span {
        transform: none !important;
    }

    .belief-line {
        justify-self: start;
        display: grid;
        gap: 0.15rem;
    }

    .belief-line .underline-word {
        width: max-content;
    }

    .careers-panel {
        margin-top: -0.35rem;
    }

    .community-action {
        width: min(360px, 100%);
        gap: 0.5rem;
        transform: translateY(-30px);
    }

    .hero-mascot {
        width: clamp(92px, 33vw, 142px);
    }

    .asset-heading {
        align-items: flex-start;
        width: 100%;
        gap: 0;
        justify-content: center;
    }

    .asset-heading h2 {
        min-height: 48px;
        padding: 0.55rem 0.65rem;
        font-size: clamp(0.9rem, 4.8vw, 1.08rem);
        letter-spacing: 0.07em;
        white-space: nowrap;
    }

    .asset-heading img {
        width: clamp(68px, 24vw, 108px);
        transform: translate(-10px, 24px);
    }

}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
