@font-face {
    font-family: "Bricolage";
    src: url("/fonts/display.woff2") format("woff2");
    font-weight: 200 800;
    font-display: swap;
}

@font-face {
    font-family: "Hanken";
    src: url("/fonts/body.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --navy: #121928;
    --navy-deep: #0b101b;
    --navy-light: #1b2230;
    --navy-lighter: #262e3b;
    --slate: #40556a;
    --slate-light: #8fa0af;
    --indigo: #635bcc;
    --indigo-hover: #726ad9;
    --indigo-light: #a9a2f5;
    --pale: #dce3ea;
    --pale-surface: #eef1f6;
    --text: #eef1f6;
    --text-muted: #9aa8b6;
    --border: rgba(143, 160, 175, 0.2);
    --border-strong: rgba(143, 160, 175, 0.36);

    --font-display: "Bricolage", ui-sans-serif, system-ui, sans-serif;
    --font-body: "Hanken", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

    color-scheme: dark;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
    overflow-x: clip;
}

body {
    background: var(--navy);
    color: var(--text);
    font: 16px/1.65 var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

a {
    color: inherit;
}

img,
svg {
    display: block;
    max-width: 100%;
}

button {
    font: inherit;
}

:focus-visible {
    outline: 2px solid var(--indigo-light);
    outline-offset: 3px;
    border-radius: 3px;
}

.container {
    width: min(1140px, 100% - 48px);
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 10px;
    z-index: 100;
    padding: 10px 18px;
    border-radius: 4px;
    background: var(--pale);
    color: var(--navy);
    font-weight: 700;
    text-decoration: none;
}

.skip-link:focus {
    left: 16px;
}

/* Icons */
.icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
}

.icon-filled {
    fill: currentColor;
    stroke: none;
}

/* Header */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 40;
    background: rgba(18, 25, 40, 0.68);
    backdrop-filter: blur(18px) saturate(135%);
    -webkit-backdrop-filter: blur(18px) saturate(135%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    height: 68px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 28px;
    min-width: 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font: 700 20px/1 var(--font-display);
    letter-spacing: -0.03em;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.18s ease, text-shadow 0.2s ease;
}

.brand img {
    width: 28px;
    height: 28px;
    transition: filter 0.3s ease;
}

.brand:hover {
    color: #ffffff;
    text-shadow: 0 0 14px rgba(255, 255, 255, 0.38);
}

.brand:hover img {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.45));
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link,
.nav-dropdown-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: rgba(238, 241, 246, 0.78);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.18s ease, text-shadow 0.2s ease, background-color 0.18s ease;
}

.nav-link:hover,
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle:focus-visible,
.nav-item.is-open .nav-dropdown-toggle {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
    text-shadow: 0 0 14px rgba(255, 255, 255, 0.55);
}

.nav-caret {
    width: 12px;
    height: 12px;
    opacity: 0.72;
    transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.18s ease;
}

.nav-dropdown-toggle:hover .nav-caret,
.nav-item.is-open .nav-caret {
    opacity: 1;
}

.nav-item.is-open .nav-caret {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    display: grid;
    gap: 2px;
    min-width: 224px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(12, 17, 29, 0.62);
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 18px 42px rgba(5, 8, 15, 0.42);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform-origin: top left;
    transform: translateY(-6px) scale(0.98);
    transition:
        opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.22s ease;
}

.nav-item.is-open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 5px;
    background: transparent;
    color: rgba(238, 241, 246, 0.78);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition:
        color 0.18s ease,
        background-color 0.18s ease,
        text-shadow 0.18s ease,
        box-shadow 0.18s ease;
}

.nav-dropdown-icon {
    width: 15px;
    height: 15px;
    color: var(--slate-light);
    opacity: 0.78;
    transition: color 0.18s ease, opacity 0.18s ease, filter 0.18s ease;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible,
.nav-dropdown-menu a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    text-shadow: 0 0 14px rgba(255, 255, 255, 0.65);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.nav-dropdown-menu a:hover .nav-dropdown-icon,
.nav-dropdown-menu a:focus-visible .nav-dropdown-icon,
.nav-dropdown-menu a[aria-current="page"] .nav-dropdown-icon {
    color: #ffffff;
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.45));
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.header-socials {
    display: flex;
    align-items: center;
    gap: 4px;
}

.header-social-link {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    color: rgba(238, 241, 246, 0.72);
    transition: color 0.18s ease, background-color 0.18s ease, filter 0.18s ease;
}

.header-social-link:hover,
.header-social-link:focus-visible {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.52));
}

.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: rgba(238, 241, 246, 0.82);
    font: 500 14px/1 var(--font-body);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.18s ease, text-shadow 0.2s ease;
}

.header-cta:hover,
.header-cta:focus-visible {
    background: transparent;
    color: #ffffff;
    text-shadow: 0 0 14px rgba(255, 255, 255, 0.72), 0 0 24px rgba(255, 255, 255, 0.32);
}

.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: rgba(238, 241, 246, 0.84);
    cursor: pointer;
    transition: color 0.2s ease, filter 0.2s ease;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus-visible,
.mobile-menu-toggle[aria-expanded="true"] {
    color: #ffffff;
    background: transparent;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.6));
}

.hamburger {
    position: relative;
    display: block;
    width: 18px;
    height: 14px;
}

.hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1.8px;
    border-radius: 2px;
    background: currentColor;
    transform-origin: center;
    transition:
        transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.2s ease,
        box-shadow 0.2s ease;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 6px;
}

.hamburger span:nth-child(3) {
    top: 12px;
}

.mobile-menu-toggle:hover .hamburger span,
.mobile-menu-toggle[aria-expanded="true"] .hamburger span {
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.55);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0.2);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.mobile-drawer {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    visibility: hidden;
    border-top: 1px solid transparent;
    background: rgba(12, 17, 29, 0.78);
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    transition:
        grid-template-rows 0.34s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.24s ease,
        visibility 0.24s ease,
        border-color 0.24s ease;
}

.mobile-drawer.is-open {
    grid-template-rows: 1fr;
    opacity: 1;
    visibility: visible;
    border-top-color: rgba(255, 255, 255, 0.1);
}

.mobile-drawer-inner {
    overflow: hidden;
    padding: 0 24px;
    transition: padding 0.34s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.is-open .mobile-drawer-inner {
    padding: 12px 24px 24px;
}

.mobile-drawer-group {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-drawer-group:last-child {
    border-bottom: 0;
}

.mobile-drawer-label {
    margin-bottom: 6px;
    color: var(--slate-light);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mobile-drawer-links {
    display: grid;
    gap: 2px;
}

.mobile-drawer-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 10px;
    margin-inline: -10px;
    border-radius: 5px;
    color: rgba(238, 241, 246, 0.82);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.18s ease, background-color 0.18s ease, text-shadow 0.18s ease;
}

.mobile-drawer-icon {
    width: 15px;
    height: 15px;
    color: var(--slate-light);
    opacity: 0.78;
}

.mobile-drawer-links a:hover,
.mobile-drawer-links a:focus-visible,
.mobile-drawer-links a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

.mobile-drawer-links a:hover .mobile-drawer-icon,
.mobile-drawer-links a:focus-visible .mobile-drawer-icon,
.mobile-drawer-links a[aria-current="page"] .mobile-drawer-icon {
    color: #ffffff;
    opacity: 1;
}

.mobile-drawer-socials {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 6px;
}

.mobile-drawer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: rgba(238, 241, 246, 0.8);
    transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.mobile-drawer-socials a:hover,
.mobile-drawer-socials a:focus-visible {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.06);
}

/* Transparent Action Links / Buttons (Unboxed Text -> Luminous Glow on Hover) */
.button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 4px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: rgba(238, 241, 246, 0.84);
    font: 700 13px/1 var(--font-display);
    letter-spacing: 0.09em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.18s ease, text-shadow 0.22s ease, transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.button::after {
    content: "";
    position: absolute;
    left: 4px;
    right: 4px;
    bottom: 5px;
    height: 1.5px;
    background: currentColor;
    opacity: 0.32;
    transform-origin: center;
    transition: opacity 0.2s ease, box-shadow 0.22s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.button:hover,
.button:focus-visible {
    background: transparent;
    color: #ffffff;
    text-shadow: 0 0 14px rgba(255, 255, 255, 0.75), 0 0 26px rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
}

.button:hover::after,
.button:focus-visible::after {
    opacity: 0.95;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.72);
    transform: scaleX(1.04);
}

.button-primary {
    color: var(--indigo-light);
}

.button-primary:hover,
.button-primary:focus-visible {
    color: #ffffff;
    text-shadow: 0 0 16px rgba(255, 255, 255, 0.8), 0 0 28px rgba(169, 162, 245, 0.55);
}

.button-pale {
    color: rgba(238, 241, 246, 0.82);
}

.button-pale:hover,
.button-pale:focus-visible {
    color: #ffffff;
    text-shadow: 0 0 14px rgba(255, 255, 255, 0.78), 0 0 24px rgba(238, 241, 246, 0.42);
}

/* Light-surface Action Variants (for actions inside pale/light sections) */
.button-on-light {
    color: #5249c2;
}

.button-on-light:hover,
.button-on-light:focus-visible {
    color: #635bcc;
    text-shadow: 0 0 14px rgba(99, 91, 204, 0.45), 0 0 20px rgba(255, 255, 255, 0.9);
}

.button-on-light:hover::after,
.button-on-light:focus-visible::after {
    box-shadow: 0 0 10px rgba(99, 91, 204, 0.52);
}

.button-on-light-dark {
    color: var(--navy);
}

.button-on-light-dark:hover,
.button-on-light-dark:focus-visible {
    color: #0b101b;
    text-shadow: 0 0 14px rgba(18, 25, 40, 0.24), 0 0 18px rgba(255, 255, 255, 0.95);
}

.button-on-light-dark:hover::after,
.button-on-light-dark:focus-visible::after {
    box-shadow: 0 0 8px rgba(18, 25, 40, 0.28);
}

.button[disabled] {
    opacity: 0.48;
    cursor: not-allowed;
    transform: none;
    text-shadow: none;
}

.button[hidden] {
    display: none;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 225svh;
    background:
        radial-gradient(ellipse 75% 52% at 50% 42%, rgba(99, 91, 204, 0.2), transparent 72%),
        radial-gradient(ellipse 95% 40% at 50% 90%, rgba(28, 72, 92, 0.34), transparent 76%),
        linear-gradient(180deg, #0d1421 0%, #121928 48%, #142436 82%, #172b3e 100%);
}

.hero-sticky {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100svh;
    min-height: 560px;
    padding: 96px 24px 200px;
    text-align: center;
    overflow: hidden;
}

.hero-stars {
    position: absolute;
    inset: 0 0 28%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.hero-stars svg {
    width: 100%;
    height: 100%;
    max-width: none;
}

.hero-inner {
    position: relative;
    z-index: 3;
    max-width: 860px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    will-change: transform, opacity;
}

.hero-headline {
    font: 800 clamp(38px, 5.4vw, 66px) / 1.02 var(--font-display);
    letter-spacing: -0.03em;
    text-transform: uppercase;
    text-wrap: balance;
    color: var(--text);
}

.hero-headline span {
    display: block;
    color: var(--indigo-light);
}

/* Scroll-driven Logo & Mini-Eirodian Scatter (Zero Flashes) */
.hero-scroll-fx {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    pointer-events: none;
    overflow: hidden;
}

.hero-fly-logo {
    position: absolute;
    width: clamp(88px, 10vw, 124px);
    height: clamp(88px, 10vw, 124px);
    opacity: 0.92;
    transform: translate3d(32vw, -25vh, 0) scale(0.76) rotate(10deg);
    filter: drop-shadow(0 12px 28px rgba(11, 16, 27, 0.45));
    will-change: transform, opacity;
}

.hero-wordmark {
    position: absolute;
    font: 800 clamp(34px, 4.6vw, 56px) / 1 var(--font-display);
    letter-spacing: -0.03em;
    color: #ffffff;
    opacity: 0;
    transform: translate3d(0, 64px, 0) scale(0.92);
    text-shadow: 0 8px 28px rgba(11, 16, 27, 0.6);
    will-change: transform, opacity;
}

.hero-mini-cluster {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
}

.hero-mini-logo {
    position: absolute;
    opacity: 0;
    filter: drop-shadow(0 6px 14px rgba(11, 16, 27, 0.35));
    will-change: transform, opacity;
}

/* 4-Layer Infinite Organic Ocean Waves Transitioning into Light About Surface */
.hero-waves {
    position: absolute;
    inset: auto 0 -1px;
    z-index: 2;
    width: 100%;
    height: clamp(148px, 21vh, 210px);
    overflow: hidden;
    pointer-events: none;
}

.wave-layer {
    position: absolute;
    inset: 0;
    will-change: transform;
}

.wave-layer-1 {
    opacity: 0.78;
    animation: waveBobA 9s ease-in-out infinite;
}

.wave-layer-2 {
    opacity: 0.86;
    animation: waveBobB 7.5s ease-in-out infinite;
}

.wave-layer-3 {
    opacity: 0.94;
    animation: waveBobA 6.4s ease-in-out -2.1s infinite;
}

.wave-layer-4 {
    animation: waveBobB 5.8s ease-in-out -1.4s infinite;
}

.wave-track {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 200%;
    max-width: none;
    height: 100%;
    will-change: transform;
}

.wave-track-back {
    animation: waveLoop 32s linear infinite;
}

.wave-track-mid-back {
    animation: waveLoop 23s linear infinite reverse;
}

.wave-track-mid-front {
    animation: waveLoop 16s linear infinite;
}

.wave-track-front {
    animation: waveLoop 11.5s linear infinite reverse;
}

/* Section Light Surface (Elbside .els-about & .els-games rhythm in Eirodian --pale) */
.section-light {
    background: var(--pale);
    color: var(--navy);
    padding: clamp(72px, 8vw, 108px) 0;
}

.section-light + .section-light {
    padding-top: 0;
}

.section-dark {
    background: var(--navy);
    color: var(--text);
    padding: clamp(72px, 8vw, 108px) 0;
    border-top: 1px solid var(--border);
}

.eyebrow-light {
    margin-bottom: 10px;
    color: var(--indigo);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eyebrow-dark {
    margin-bottom: 10px;
    color: var(--indigo-light);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.heading-light {
    font: 800 clamp(30px, 4vw, 48px) / 1.03 var(--font-display);
    letter-spacing: -0.03em;
    text-transform: uppercase;
    text-wrap: balance;
    color: var(--navy);
}

.heading-dark {
    font: 800 clamp(30px, 4vw, 48px) / 1.03 var(--font-display);
    letter-spacing: -0.03em;
    text-transform: uppercase;
    text-wrap: balance;
    color: var(--text);
}

.section-intro {
    max-width: 720px;
}

.prose-light {
    display: grid;
    gap: 14px;
    max-width: 65ch;
    margin-top: 18px;
    color: rgba(18, 25, 40, 0.84);
    font-size: 17px;
    line-height: 1.65;
}

/* 3-Column Pillars (.els-about__pillars) */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 44px;
    list-style: none;
    padding: 0;
}

.pillar-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 26px;
    border: 1px solid rgba(18, 25, 40, 0.12);
    border-radius: 6px;
    background: var(--pale-surface);
    box-shadow: 0 2px 6px rgba(18, 25, 40, 0.06);
}

.pillar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 4px;
    border-radius: 4px;
    background: var(--indigo);
    color: #ffffff;
}

.pillar-card h3 {
    font: 800 20px/1.1 var(--font-display);
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--navy);
}

.pillar-card p {
    color: rgba(18, 25, 40, 0.78);
    font-size: 15px;
    line-height: 1.6;
}

/* Projects Showcase (.els-games rhythm, Custom Branded Artwork, Zero Stock Photos, Zero Arrows) */
.projects-block {
    padding-top: 84px;
    border-top: 1px solid rgba(18, 25, 40, 0.12);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin-top: 36px;
}

.project-card {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(18, 25, 40, 0.12);
    border-radius: 6px;
    background: var(--pale-surface);
    box-shadow: 0 2px 8px rgba(18, 25, 40, 0.08);
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(18, 25, 40, 0.14);
}

.project-banner {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--navy);
    overflow: hidden;
}

.project-banner-github {
    background:
        radial-gradient(circle at 75% 25%, rgba(99, 91, 204, 0.42), transparent 56%),
        linear-gradient(155deg, #1b2230 0%, #121928 70%);
}

.project-banner-community {
    background:
        radial-gradient(circle at 25% 75%, rgba(169, 162, 245, 0.28), transparent 54%),
        linear-gradient(155deg, #262e3b 0%, #121928 72%);
}

.project-banner-default {
    background:
        radial-gradient(circle at 50% 42%, rgba(99, 91, 204, 0.36), transparent 62%),
        linear-gradient(155deg, #1b2230 0%, #121928 74%);
}

.project-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-banner.is-icon-preview {
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 50%, rgba(99, 91, 204, 0.32), transparent 60%),
        linear-gradient(155deg, #1b2230 0%, #121928 74%);
}

.project-banner.is-icon-preview img {
    width: 96px;
    height: 96px;
    object-fit: contain;
    border-radius: 20px;
    padding: 12px;
    background: rgba(11, 16, 27, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45), 0 0 28px rgba(99, 91, 204, 0.28);
}

.project-card:hover .project-banner img {
    transform: scale(1.03);
}

.project-card:hover .project-banner.is-icon-preview img {
    transform: scale(1.06);
}

.project-banner svg {
    width: 100%;
    height: 100%;
}

.project-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    padding: 26px;
}

.project-body h3 {
    font: 800 24px/1.1 var(--font-display);
    letter-spacing: -0.015em;
    text-transform: uppercase;
    color: var(--navy);
}

.project-body p {
    flex: 1;
    color: rgba(18, 25, 40, 0.78);
    font-size: 15px;
    line-height: 1.6;
}

.projects-grid:has(> .project-card:only-child) {
    grid-template-columns: minmax(0, 1fr);
}

.projects-empty {
    color: rgba(18, 25, 40, 0.72);
    font-size: 16px;
}

.project-body .button-row {
    margin-top: 8px;
}

.project-platforms {
    display: grid;
    margin-top: 4px;
    border-top: 1px solid rgba(18, 25, 40, 0.1);
}

.project-platform-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 40px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(18, 25, 40, 0.08);
    text-decoration: none;
}

.project-platform-row:last-child {
    border-bottom: 0;
    padding-bottom: 2px;
}

.project-platform-row.is-link {
    cursor: pointer;
    transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-platform-row.is-link:hover,
.project-platform-row.is-link:focus-visible {
    transform: translateX(2px);
}

.project-platform-name {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--navy);
    font: 600 14px/1.2 var(--font-body);
    transition: color 0.18s ease;
}

.project-platform-row.is-link:hover .project-platform-name,
.project-platform-row.is-link:focus-visible .project-platform-name {
    color: #5249c2;
}

.project-platform-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex: none;
}

.project-platform-icon svg {
    width: 20px;
    height: 20px;
}

.project-platform-status {
    position: relative;
    font: 700 11.5px/1 var(--font-display);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.project-platform-status.is-available {
    padding-bottom: 3px;
    color: #5249c2;
    transition: color 0.18s ease, text-shadow 0.2s ease;
}

.project-platform-status.is-available::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1.5px;
    background: currentColor;
    opacity: 0.38;
    transition: opacity 0.2s ease, box-shadow 0.2s ease;
}

.project-platform-row.is-link:hover .project-platform-status.is-available,
.project-platform-row.is-link:focus-visible .project-platform-status.is-available {
    color: #635bcc;
    text-shadow: 0 0 12px rgba(99, 91, 204, 0.38);
}

.project-platform-row.is-link:hover .project-platform-status.is-available::after,
.project-platform-row.is-link:focus-visible .project-platform-status.is-available::after {
    opacity: 0.95;
    box-shadow: 0 0 8px rgba(99, 91, 204, 0.45);
}

.project-platform-status.is-amber,
.project-platform-status.is-orange,
.project-platform-status.is-warning,
.project-platform-status.is-pending {
    color: #c2410c;
}

@media (min-width: 860px) {
    .projects-grid:has(> .project-card:only-child) .project-card,
    .project-featured .project-card {
        display: grid;
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
        align-items: stretch;
    }

    .projects-grid:has(> .project-card:only-child) .project-banner,
    .project-featured .project-banner {
        aspect-ratio: auto;
        min-height: 340px;
        height: 100%;
    }

    .projects-grid:has(> .project-card:only-child) .project-body,
    .project-featured .project-body {
        padding: 30px 32px;
        justify-content: center;
    }

    .projects-grid:has(> .project-card:only-child) .project-body p,
    .project-featured .project-body p {
        flex: 0 0 auto;
    }

    .projects-grid:has(> .project-card:only-child) .project-platforms,
    .project-featured .project-platforms {
        margin-top: 8px;
    }
}

.project-featured {
    margin-top: 36px;
}

.project-featured + .projects-grid {
    margin-top: 28px;
}

.projects-header-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 28px;
}

/* Dedicated /projects page */
.projects-page-head {
    background: var(--navy-deep);
    color: var(--text);
    padding: 112px 0 48px;
}

.projects-page-head__bar {
    margin-bottom: 0;
}

.projects-page-head__bar .button-row {
    margin-top: 22px;
}

.projects-page-lead {
    max-width: 62ch;
    margin-top: 16px;
    color: rgba(238, 241, 246, 0.8);
    font-size: 17px;
    line-height: 1.6;
}

.projects-page-list {
    padding: clamp(48px, 6vw, 72px) 0 clamp(72px, 8vw, 108px);
}

.projects-page-list .projects-grid {
    margin-top: 0;
}

/* Interactive Chrome Browser & Uneaver Tab Simulator */
.uneaver-demo {
    margin-top: 40px;
    border: 1px solid rgba(143, 160, 175, 0.24);
    border-radius: 10px;
    background: #1c2333;
    color: var(--text);
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(11, 16, 27, 0.24);
}

.uneaver-chrome-window-bar {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    padding: 10px 14px 0;
    background: #0f1522;
}

.uneaver-chrome-traffic {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding: 0 4px 4px;
    flex: none;
}

.uneaver-chrome-traffic span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: block;
}

.uneaver-chrome-traffic span:nth-child(1) {
    background: #ff5f57;
}

.uneaver-chrome-traffic span:nth-child(2) {
    background: #febc2e;
}

.uneaver-chrome-traffic span:nth-child(3) {
    background: #28c840;
}

.uneaver-demo-tabs {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    min-width: 0;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
}

.uneaver-demo-tabs::-webkit-scrollbar {
    display: none;
}

.uneaver-demo-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 156px;
    max-width: 240px;
    height: 36px;
    padding: 0 10px 0 12px;
    border: 0;
    border-radius: 8px 8px 0 0;
    background: transparent;
    color: rgba(238, 241, 246, 0.72);
    font: 500 12.5px/1 var(--font-body);
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.16s ease, background-color 0.16s ease;
}

.uneaver-demo-tab:hover:not([aria-selected="true"]) {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.uneaver-demo-tab[aria-selected="true"] {
    background: #262f42;
    color: #ffffff;
    font-weight: 600;
    transition: none;
}

.uneaver-tab-favicon,
.uneaver-demo-player-icon,
.uneaver-platform-chip-icon {
    width: 15px;
    height: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.uneaver-tab-favicon svg,
.uneaver-demo-player-icon svg,
.uneaver-platform-chip-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.uneaver-demo-player-icon {
    width: 18px;
    height: 18px;
}

.uneaver-tab-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    text-align: left;
}

.uneaver-tab-audio {
    width: 15px;
    height: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #9ae6b4;
    opacity: 0;
    transform: scale(0.75);
    transition: opacity 0.18s ease, transform 0.18s ease;
    flex: none;
}

.uneaver-tab-audio.is-playing {
    opacity: 1;
    transform: scale(1);
}

.uneaver-tab-audio svg {
    width: 14px;
    height: 14px;
}

.uneaver-tab-close {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
    color: rgba(238, 241, 246, 0.5);
    flex: none;
}

.uneaver-chrome-newtab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 0 0 4px 2px;
    border-radius: 50%;
    color: rgba(238, 241, 246, 0.56);
    font-size: 17px;
    line-height: 1;
    flex: none;
}

.uneaver-chrome-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: #262f42;
    border-bottom: 1px solid rgba(143, 160, 175, 0.18);
}

.uneaver-chrome-nav {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    flex: none;
}

.uneaver-chrome-nav-btn,
.uneaver-chrome-icon-btn {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: rgba(238, 241, 246, 0.82);
}

.uneaver-chrome-nav-btn.is-dim {
    color: rgba(238, 241, 246, 0.34);
}

.uneaver-chrome-nav-btn svg,
.uneaver-chrome-icon-btn svg {
    width: 15px;
    height: 15px;
}

.uneaver-chrome-omnibox {
    flex: 1 1 240px;
    min-width: 0;
    height: 32px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 11px;
    border-radius: 16px;
    background: #141a27;
    border: 1px solid rgba(143, 160, 175, 0.16);
}

.uneaver-chrome-lock,
.uneaver-chrome-star {
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(238, 241, 246, 0.56);
    flex: none;
}

.uneaver-chrome-lock svg,
.uneaver-chrome-star svg {
    width: 14px;
    height: 14px;
}

.uneaver-chrome-url {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(238, 241, 246, 0.88);
    font: 500 12.5px/1 var(--font-body);
}

.uneaver-demo-toolbar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: none;
}

.uneaver-demo-ext-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 4px 10px 4px 6px;
    border: 1px solid rgba(169, 162, 245, 0.4);
    border-radius: 15px;
    background: rgba(99, 91, 204, 0.28);
    color: #ffffff;
    font: 600 12px/1 var(--font-body);
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.uneaver-ext-badge {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background: linear-gradient(135deg, #635bcc, #8d84f6);
    color: #ffffff;
    font: 800 11px/1 var(--font-display);
}

.uneaver-ext-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.2);
}

.uneaver-demo-ext-btn[aria-pressed="false"] {
    border-color: rgba(143, 160, 175, 0.25);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.uneaver-demo-ext-btn[aria-pressed="false"] .uneaver-ext-badge {
    background: #475569;
    color: rgba(255, 255, 255, 0.72);
}

.uneaver-demo-ext-btn[aria-pressed="false"] .uneaver-ext-dot {
    background: #94a3b8;
    box-shadow: none;
}

.uneaver-demo-platforms {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    background: #161d2b;
    border-bottom: 1px solid rgba(143, 160, 175, 0.14);
}

.uneaver-demo-platform {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 5px 11px;
    border: 1px solid rgba(143, 160, 175, 0.2);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
    font: 600 12px/1 var(--font-body);
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.uneaver-demo-platform:hover,
.uneaver-demo-platform:focus-visible {
    color: #ffffff;
    border-color: rgba(169, 162, 245, 0.45);
    background: rgba(255, 255, 255, 0.05);
}

.uneaver-demo-platform[aria-pressed="true"] {
    border-color: var(--indigo-light);
    background: rgba(99, 91, 204, 0.28);
    color: #ffffff;
}

.uneaver-demo-body {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 28px;
    padding: 24px;
    align-items: center;
    background: #1b2232;
}

.uneaver-demo-player {
    display: grid;
    gap: 14px;
    padding: 20px;
    border: 1px solid rgba(143, 160, 175, 0.18);
    border-radius: 6px;
    background: var(--navy-deep);
}

.uneaver-demo-notes-view {
    display: grid;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid rgba(143, 160, 175, 0.16);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.03);
}

.uneaver-demo-notes-view[hidden] {
    display: none;
}

.uneaver-demo-notes-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.uneaver-demo-notes-doc {
    color: #eef1f6;
    font: 700 13px/1.2 var(--font-display);
}

.uneaver-demo-notes-saved {
    color: var(--text-muted);
    font: 500 11.5px/1 var(--font-body);
}

.uneaver-demo-notes-lines {
    display: grid;
    gap: 6px;
}

.uneaver-demo-notes-lines span {
    height: 6px;
    border-radius: 3px;
    background: rgba(143, 160, 175, 0.18);
}

.uneaver-demo-notes-lines span.is-wide {
    width: 86%;
}

.uneaver-demo-notes-lines span.is-mid {
    width: 68%;
}

.uneaver-demo-notes-lines span.is-short {
    width: 44%;
}

.uneaver-demo-player-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.uneaver-demo-player-id {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.uneaver-demo-player-title {
    font: 700 15px/1.2 var(--font-display);
    color: #ffffff;
}

.uneaver-demo-timer {
    color: var(--text-muted);
    font: 600 13px/1 var(--font-body);
    font-variant-numeric: tabular-nums;
}

.uneaver-demo-progress-track {
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.uneaver-demo-progress-fill {
    width: 100%;
    height: 100%;
    background: var(--indigo-light);
    transform-origin: left center;
    transform: scaleX(0.32);
    transition: transform 0.28s linear, opacity 0.2s ease;
}

.uneaver-demo-status {
    font-size: 13.5px;
    font-weight: 600;
    color: #9ae6b4;
}

.uneaver-demo-status.is-paused {
    color: #fbbf24;
}

.uneaver-demo-controls {
    display: grid;
    gap: 14px;
}

.uneaver-demo-controls h3 {
    font: 800 20px/1.15 var(--font-display);
    text-transform: uppercase;
    letter-spacing: -0.01em;
    color: #ffffff;
}

.uneaver-demo-controls p {
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.6;
}

.uneaver-demo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
}

/* FAQ Accordion on /projects/uneaver */
.faq-list {
    display: grid;
    margin-top: 28px;
    max-width: 760px;
    border-top: 1px solid rgba(18, 25, 40, 0.14);
}

.faq-item {
    border-bottom: 1px solid rgba(18, 25, 40, 0.14);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
    color: var(--navy);
    font: 700 17px/1.35 var(--font-display);
    cursor: pointer;
    list-style: none;
    transition: color 0.18s ease;
}

.faq-question:hover,
.faq-question:focus-visible {
    color: var(--indigo);
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question-toggle {
    flex: none;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--indigo);
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item[open]:not(.is-closing) .faq-question-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 0 18px;
    color: rgba(18, 25, 40, 0.8);
    font-size: 15.5px;
    line-height: 1.65;
    max-width: 65ch;
}

/* Release Changelog on /projects/uneaver */
.changelog-list {
    display: grid;
    gap: 16px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.changelog-item {
    display: grid;
    gap: 6px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(143, 160, 175, 0.14);
}

.changelog-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.changelog-meta {
    color: var(--indigo-light);
    font: 700 13px/1.3 var(--font-display);
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
}

.changelog-notes {
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.6;
}

/* Scroll Reveal (Progressive Enhancement, Never Hides Initial Viewport) */
.reveal-ready [data-reveal].is-reveal-pending {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
}

.reveal-ready [data-reveal].is-revealed {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition:
        opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Official Channels List (Elbside .social-links--handles pattern, Zero Arrows) */
.channels-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.channel-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border: 1px solid rgba(18, 25, 40, 0.12);
    border-radius: 6px;
    background: var(--pale-surface);
    color: var(--navy);
    text-decoration: none;
    transition: border-color 0.16s ease, transform 0.16s ease, background-color 0.16s ease;
}

.channel-link:hover {
    border-color: var(--indigo);
    background: #ffffff;
    transform: translateY(-2px);
}

.channel-link .icon {
    width: 22px;
    height: 22px;
    color: var(--indigo);
}

.channel-platform {
    display: block;
    font: 700 14px/1.2 var(--font-display);
    color: var(--navy);
}

.channel-handle {
    display: block;
    margin-top: 2px;
    color: var(--slate);
    font-size: 13px;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
}

.contact-lead {
    margin-top: 14px;
    color: var(--text-muted);
    font-size: 17px;
    line-height: 1.65;
}

.contact-details {
    display: grid;
    gap: 18px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.contact-detail-label {
    color: var(--slate-light);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.contact-detail-value {
    margin-top: 4px;
    font-size: 15px;
    color: var(--text);
}

.contact-detail-value a {
    color: var(--indigo-light);
    text-decoration: none;
}

.contact-detail-value a:hover {
    text-decoration: underline;
}

.contact-form {
    display: grid;
    gap: 18px;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--navy-light);
}

.field {
    display: grid;
    gap: 8px;
}

.field label {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.field input,
.field textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--navy-deep);
    color: var(--text);
    font: inherit;
    font-size: 15px;
    transition: border-color 0.16s ease, background-color 0.16s ease;
}

.field input:hover,
.field textarea:hover {
    border-color: var(--border-strong);
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--indigo-light);
    background: var(--navy);
}

.field textarea {
    min-height: 140px;
    resize: vertical;
}

.field.is-invalid label {
    color: #fca5a5;
}

.field.is-invalid input,
.field.is-invalid textarea {
    border-color: #ef4444;
    background: rgba(127, 29, 29, 0.14);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.16);
}

.field.is-invalid input:focus,
.field.is-invalid textarea:focus {
    border-color: #f87171;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.25);
}

.field-error {
    display: none;
    color: #f87171;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.field-error.is-visible {
    display: block;
}

.consent-group {
    display: grid;
    gap: 8px;
}

.consent-field {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
}

.consent-field input {
    flex: none;
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--indigo);
}

.consent-group.is-invalid .consent-field {
    color: #fca5a5;
}

.consent-group.is-invalid .consent-field input {
    outline: 1.5px solid #ef4444;
    outline-offset: 2px;
    border-radius: 2px;
}

.consent-field a {
    color: var(--indigo-light);
    text-decoration: underline;
}

.honeypot {
    position: absolute;
    left: -9999px;
}

.contact-form .button {
    justify-self: start;
}

.form-status {
    min-height: 1.5em;
    font-size: 14px;
    font-weight: 500;
}

.form-status.is-pending {
    color: var(--pale);
}

.form-status.is-success {
    color: #9ae6b4;
}

.form-status.is-error {
    color: #feb2b2;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    background: var(--navy-deep);
    padding: 56px 0 44px;
}

.footer-top {
    margin-bottom: 40px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font: 800 22px/1 var(--font-display);
    letter-spacing: -0.03em;
    text-decoration: none;
}

.footer-brand img {
    width: 32px;
    height: 32px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.footer-col-title {
    margin-bottom: 14px;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.footer-col-list {
    display: grid;
    gap: 10px;
    padding: 0;
    list-style: none;
}

.footer-col-list a,
.footer-col-button {
    padding: 0;
    border: 0;
    background: none;
    color: var(--text-muted);
    font-size: 14px;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s ease;
}

.footer-col-list a:hover,
.footer-col-list a[aria-current="page"],
.footer-col-button:hover {
    color: var(--text);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 28px;
}

.footer-follow-label {
    margin-bottom: 10px;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-socials a {
    color: var(--text-muted);
    transition: color 0.15s ease;
}

.footer-socials a:hover {
    color: var(--text);
}

.copyright {
    color: var(--slate-light);
    font-size: 13px;
}

/* Legal / Policy / Imprint Pages (Matching Elbside .eh-legal layout 1:1) */
.eh-legal {
    background: var(--navy-deep);
    color: var(--text);
    padding: 112px 0 96px;
    min-height: 75svh;
}

.eh-legal .container {
    max-width: 1080px;
}

.eh-legal__head {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 48px;
    padding-block: 32px;
    position: relative;
}

.eh-legal__head::after {
    content: "";
    display: block;
    width: 48px;
    height: 2px;
    margin-top: 16px;
    background: var(--indigo-light);
    opacity: 0.85;
}

.eh-legal__head:has(.button-row)::after {
    display: none;
}

.eh-legal__title {
    font: 800 clamp(38px, 5vw, 60px) / 1 var(--font-display);
    letter-spacing: -0.02em;
    text-transform: uppercase;
    text-wrap: balance;
    color: var(--text);
}

.eh-legal__updated {
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.eh-legal__prose {
    max-width: 70ch;
    margin-inline: auto;
    color: var(--text);
    font-size: clamp(16px, 0.94rem + 0.25vw, 17px);
    line-height: 1.72;
}

.eh-legal__prose > p,
.eh-legal__prose > ul,
.eh-legal__prose > ol {
    margin-bottom: 20px;
}

.eh-legal__prose p {
    color: rgba(238, 241, 246, 0.88);
    margin-bottom: 16px;
}

.eh-legal__prose p:last-child {
    margin-bottom: 0;
}

.eh-legal__prose strong {
    color: #ffffff;
    font-weight: 600;
}

.eh-legal__prose a {
    color: var(--indigo-light);
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.eh-legal__prose a:hover {
    color: #ffffff;
}

.eh-legal__prose h2 {
    border-top: 1px solid var(--border);
    color: #ffffff;
    font: 700 clamp(22px, 2.2vw, 28px) / 1.15 var(--font-display);
    letter-spacing: -0.01em;
    text-transform: uppercase;
    margin: 56px 0 18px;
    padding-top: 20px;
}

.eh-legal__prose h2:first-child {
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
}

.eh-legal__prose h3 {
    color: #ffffff;
    font: 700 18px/1.25 var(--font-display);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin: 28px 0 10px;
}

.eh-legal__prose h4 {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 22px 0 10px;
}

.eh-legal__prose ul,
.eh-legal__prose ol {
    padding-left: 22px;
    margin-bottom: 20px;
}

.eh-legal__prose li {
    color: rgba(238, 241, 246, 0.88);
    margin-bottom: 10px;
}

.eh-legal__prose li::marker {
    color: var(--indigo-light);
}

.eh-legal__prose li > p {
    margin-bottom: 8px;
}

.eh-legal__prose code {
    padding: 2px 6px;
    border-radius: 3px;
    background: rgba(169, 162, 245, 0.14);
    color: var(--indigo-light);
    font-size: 0.88em;
}

.eh-legal__prose .contact-form {
    margin-top: 24px;
}

.eh-legal__action {
    margin-top: 20px;
}

/* 404 */
.not-found {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 62svh;
}

.not-found h1 {
    font: 800 clamp(72px, 16vw, 160px) / 0.95 var(--font-display);
    letter-spacing: -0.04em;
    color: var(--indigo-light);
}

.not-found p {
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 18px;
}

.not-found .button-row {
    margin-top: 28px;
}

/* Cookie & Custom Google Analytics Settings Slim Bar */
#cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 14px;
    z-index: 50;
    width: min(860px, calc(100% - 32px));
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: rgba(12, 17, 29, 0.86);
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    color: var(--text);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 18px 46px rgba(0, 0, 0, 0.52);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "copy actions"
        "panel panel";
    align-items: center;
    gap: 10px 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(-50%, 18px, 0) scale(0.98);
    transition:
        opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.34s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.3s ease;
}

#cookie-banner.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(-50%, 0, 0) scale(1);
}

#cookie-banner.is-expanded {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "header"
        "copy"
        "panel"
        "actions";
    max-width: 492px;
    padding: 18px 20px;
    gap: 8px;
}

.cookie-banner-header {
    grid-area: header;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

#cookie-banner.is-expanded .cookie-banner-header {
    display: flex;
}

.cookie-banner-title {
    font: 700 13px/1.2 var(--font-display);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
}

.cookie-banner-close {
    padding: 4px 6px;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.18s ease, text-shadow 0.18s ease;
}

.cookie-banner-close:hover,
.cookie-banner-close:focus-visible {
    color: #ffffff;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.65);
}

#cookie-banner p {
    grid-area: copy;
    margin: 0;
    color: rgba(238, 241, 246, 0.8);
    font-size: 13px;
    line-height: 1.45;
}

#cookie-banner a {
    color: var(--indigo-light);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.18s ease, text-shadow 0.18s ease;
}

#cookie-banner a:hover {
    color: #ffffff;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.55);
}

.cookie-settings-panel {
    grid-area: panel;
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition:
        grid-template-rows 0.32s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.24s ease;
}

.cookie-settings-panel.is-open {
    grid-template-rows: 1fr;
    opacity: 1;
}

.cookie-settings-inner {
    overflow: hidden;
}

.cookie-settings-list {
    display: grid;
    gap: 12px;
    margin: 6px 0 10px;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cookie-setting-info {
    display: grid;
    gap: 2px;
}

.cookie-setting-name {
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
}

.cookie-setting-desc {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.4;
}

.cookie-switch {
    position: relative;
    flex: none;
    display: inline-block;
    width: 40px;
    height: 22px;
    cursor: pointer;
}

.cookie-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-switch-track {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cookie-switch-track::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(238, 241, 246, 0.8);
    transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
}

.cookie-switch input:checked + .cookie-switch-track {
    background: rgba(99, 91, 204, 0.72);
    border-color: var(--indigo-light);
    box-shadow: 0 0 14px rgba(169, 162, 245, 0.42);
}

.cookie-switch input:checked + .cookie-switch-track::after {
    transform: translateX(18px);
    background: #ffffff;
}

.cookie-switch input:focus-visible + .cookie-switch-track {
    outline: 2px solid var(--indigo-light);
    outline-offset: 2px;
}

.cookie-switch input:disabled + .cookie-switch-track {
    opacity: 0.5;
    cursor: not-allowed;
}

#cookie-banner .button-row {
    grid-area: actions;
    gap: 14px;
    flex-wrap: nowrap;
}

#cookie-banner.is-expanded .button-row {
    flex-wrap: wrap;
}

#cookie-banner .button {
    min-height: 32px;
    padding: 5px 2px;
    font-size: 11.5px;
}

/* Animations */
@keyframes waveLoop {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

@keyframes waveBobA {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, 5px, 0);
    }
}

@keyframes waveBobB {
    0%,
    100% {
        transform: translate3d(0, 4px, 0);
    }

    50% {
        transform: translate3d(0, -3px, 0);
    }
}

/* Responsive */
@media (max-width: 960px) {
    .pillars-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid,
    .uneaver-demo-body {
        grid-template-columns: 1fr;
    }

    .channels-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .hero {
        height: 195svh;
    }

    .nav-links,
    .header-socials {
        display: none;
    }

    .mobile-menu-toggle {
        display: inline-flex;
    }

    #cookie-banner {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "copy"
            "panel"
            "actions";
        gap: 8px;
        padding: 12px 14px;
    }
}

@media (max-width: 560px) {
    .container {
        width: calc(100% - 32px);
    }

    .channels-grid {
        grid-template-columns: 1fr;
    }

    .footer-columns {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 20px;
    }

    .uneaver-chrome-traffic,
    .uneaver-chrome-nav {
        display: none;
    }

    .uneaver-demo-tab {
        min-width: 120px;
        padding: 0 8px 0 10px;
    }

    .uneaver-demo-platforms,
    .uneaver-demo-body {
        padding: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    html {
        scroll-behavior: auto;
    }

    .hero {
        height: auto;
        min-height: clamp(580px, 88svh, 820px);
    }

    .hero-sticky {
        position: relative;
        height: auto;
        min-height: inherit;
    }

    .hero-mini-cluster,
    .hero-wordmark {
        display: none;
    }

    .reveal-ready [data-reveal].is-reveal-pending {
        opacity: 1;
        transform: none;
    }
}
