/* ==========================================================================
   Grupo Multiverso — Design System
   Identity: deep space black + Multiverso yellow (#fbbd18)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
    /* Brand */
    --gold: #fbbd18;
    --gold-bright: #ffd45c;
    --gold-deep: #e0a800;

    /* Surfaces */
    --bg: #07070b;
    --bg-elevated: #0d0d14;
    --surface: rgba(18, 18, 26, 0.72);
    --surface-hover: rgba(26, 26, 36, 0.85);
    --surface-solid: #12121a;

    /* Lines */
    --line: rgba(255, 255, 255, 0.07);
    --line-strong: rgba(251, 189, 24, 0.28);

    /* Text */
    --text: #f2f2f5;
    --text-muted: rgba(242, 242, 245, 0.62);
    --text-faint: rgba(242, 242, 245, 0.38);

    /* Status */
    --ok: #44bb55;
    --warn: #d47c2e;
    --danger: #cc3344;
    --info: #4488dd;

    /* Radii */
    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-pill: 999px;

    /* Elevation */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.6);
    --glow: 0 0 32px rgba(251, 189, 24, 0.22);

    /* Rhythm */
    --gutter: clamp(1.25rem, 4vw, 4rem);
    --header-h: 76px;
    /* Grows with the viewport instead of stranding 600px of dead margin on a
       1440p/4K monitor, but still stops before line lengths get unreadable. */
    --maxw: min(1660px, 92vw);

    /* Motion */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --fast: 0.18s;
    --base: 0.32s;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Ambient starfield + aurora. Fixed so it never scrolls, behind everything. */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse 80% 55% at 15% -10%, rgba(251, 189, 24, 0.13), transparent 60%),
        radial-gradient(ellipse 70% 50% at 85% 8%, rgba(68, 136, 221, 0.09), transparent 60%),
        radial-gradient(ellipse 90% 60% at 50% 110%, rgba(123, 104, 238, 0.08), transparent 60%),
        var(--bg);
}

/* Faint grid to give the black some texture. */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 30%, transparent 85%);
    -webkit-mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 30%, transparent 85%);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

button,
input,
textarea,
select {
    font: inherit;
    color: inherit;
}

h1,
h2,
h3,
h4 {
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

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

::selection {
    background: rgba(251, 189, 24, 0.3);
    color: #fff;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 10001;
    padding: 0.75rem 1.25rem;
    background: var(--gold);
    color: #000;
    font-weight: 700;
    border-radius: 0 0 var(--r-sm) 0;
}

.skip-link:focus {
    left: 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.shell {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.page {
    flex: 1 0 auto;
    padding-top: calc(var(--header-h) + clamp(1.75rem, 4vw, 3.25rem));
    padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.section {
    margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.section:last-child {
    margin-bottom: 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.9rem;
}

.eyebrow::before {
    content: '';
    width: 22px;
    height: 1px;
    background: var(--gold);
}

.page-title {
    font-size: clamp(2.1rem, 5.5vw, 3.5rem);
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #fff 20%, var(--gold) 130%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.page-lede {
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    color: var(--text-muted);
    max-width: 62ch;
}

.section-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    margin-bottom: 1.5rem;
    color: var(--gold);
}

/* --------------------------------------------------------------------------
   4. Header
   -------------------------------------------------------------------------- */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    height: var(--header-h);
    display: flex;
    align-items: center;
    transition: background var(--base) var(--ease), border-color var(--base) var(--ease),
        box-shadow var(--base) var(--ease), backdrop-filter var(--base) var(--ease);
    border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
    background: rgba(7, 7, 11, 0.82);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border-bottom-color: var(--line);
    box-shadow: var(--shadow-md);
}

.header-inner {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-shrink: 0;
    transition: transform var(--fast) var(--ease);
}

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

.brand img {
    width: 38px;
    filter: drop-shadow(0 0 12px rgba(251, 189, 24, 0.45));
}

.brand-name {
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.brand-name span {
    color: var(--gold);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    list-style: none;
}

.nav-list a {
    display: block;
    position: relative;
    padding: 0.55rem 0.9rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: var(--r-sm);
    transition: color var(--fast) var(--ease), background var(--fast) var(--ease);
}

.nav-list a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.nav-list a[aria-current='page'] {
    color: var(--gold);
}

.nav-list a[aria-current='page']::after {
    content: '';
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.25rem;
    height: 2px;
    border-radius: 2px;
    background: var(--gold);
    box-shadow: 0 0 8px rgba(251, 189, 24, 0.6);
}

/* Language switch. Pushed right alongside the nav on desktop. */
.site-nav {
    margin-left: auto;
}

.lang-switch {
    flex-shrink: 0;
    margin-left: 0.85rem;
    padding: 0.4rem 0.75rem;
    min-width: 44px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: all var(--fast) var(--ease);
}

.lang-switch:hover {
    color: var(--gold);
    border-color: var(--line-strong);
    background: rgba(251, 189, 24, 0.08);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    cursor: pointer;
    color: var(--text);
}

.nav-toggle svg {
    width: 20px;
    height: 20px;
}

.nav-toggle .icon-close {
    display: none;
}

.nav-toggle[aria-expanded='true'] .icon-open {
    display: none;
}

.nav-toggle[aria-expanded='true'] .icon-close {
    display: block;
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.8rem 1.6rem;
    border: 1px solid transparent;
    border-radius: var(--r-pill);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease),
        background var(--fast) var(--ease), border-color var(--fast) var(--ease);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
    color: #0a0a0a;
    box-shadow: 0 6px 20px rgba(251, 189, 24, 0.28);
}

.btn-primary:hover {
    box-shadow: 0 10px 30px rgba(251, 189, 24, 0.42);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--line);
    color: var(--text);
}

.btn-ghost:hover {
    border-color: var(--line-strong);
    background: rgba(251, 189, 24, 0.07);
    color: var(--gold);
}

.btn svg {
    width: 17px;
    height: 17px;
}

/* --------------------------------------------------------------------------
   6. Cards
   -------------------------------------------------------------------------- */
.card {
    position: relative;
    background: var(--surface);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: clamp(1.4rem, 3vw, 2rem);
    box-shadow: var(--shadow-sm);
    transition: transform var(--base) var(--ease), border-color var(--base) var(--ease),
        box-shadow var(--base) var(--ease), background var(--base) var(--ease);
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
    background: var(--surface-hover);
    box-shadow: var(--shadow-md), var(--glow);
}

/* --------------------------------------------------------------------------
   7. Hero (home)
   -------------------------------------------------------------------------- */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.hero-title {
    font-size: clamp(2.5rem, 7.5vw, 5rem);
    letter-spacing: -0.035em;
    margin-bottom: 1.25rem;
}

.hero-title .accent {
    display: block;
    background: linear-gradient(120deg, var(--gold) 0%, var(--gold-bright) 45%, #fff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lede {
    font-size: clamp(1.02rem, 1.9vw, 1.25rem);
    color: var(--text-muted);
    max-width: 54ch;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.hero-visual {
    position: relative;
    display: grid;
    place-items: center;
}

.hero-visual img {
    width: min(100%, 520px);
    filter: drop-shadow(0 0 60px rgba(251, 189, 24, 0.28));
    animation: float 7s ease-in-out infinite;
}

.hero-visual::before {
    content: '';
    position: absolute;
    width: 78%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 189, 24, 0.16), transparent 68%);
    filter: blur(38px);
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-16px);
    }
}

/* Stat strip */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
}

.stat {
    background: var(--bg-elevated);
    padding: 1.5rem 1.25rem;
    text-align: center;
}

.stat-num {
    display: block;
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    font-weight: 700;
    color: var(--gold);
    line-height: 1.1;
    text-shadow: 0 0 24px rgba(251, 189, 24, 0.3);
}

.stat-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-faint);
}

/* --------------------------------------------------------------------------
   8. News
   -------------------------------------------------------------------------- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}

.news-item {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.news-tag {
    align-self: flex-start;
    padding: 0.25rem 0.75rem;
    border-radius: var(--r-pill);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(251, 189, 24, 0.12);
    color: var(--gold);
    border: 1px solid rgba(251, 189, 24, 0.25);
}

.news-tag.is-alert {
    background: rgba(204, 51, 68, 0.12);
    color: #ff6b7d;
    border-color: rgba(204, 51, 68, 0.3);
}

.news-item h3 {
    font-size: 1.15rem;
}

.news-item p {
    color: var(--text-muted);
    font-size: 0.94rem;
}

.news-date {
    font-size: 0.78rem;
    color: var(--text-faint);
}

/* --------------------------------------------------------------------------
   9. About / team
   -------------------------------------------------------------------------- */
.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.about-grid p + p {
    margin-top: 1rem;
}

.about-grid p {
    color: var(--text-muted);
    font-size: 1.03rem;
}

.about-visual img {
    width: min(100%, 340px);
    margin-inline: auto;
    filter: drop-shadow(0 0 50px rgba(251, 189, 24, 0.25));
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.value-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--gold);
}

.value-card p {
    color: var(--text-muted);
    font-size: 0.94rem;
}

.value-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 1rem;
    border-radius: var(--r-md);
    background: rgba(251, 189, 24, 0.1);
    border: 1px solid rgba(251, 189, 24, 0.2);
    color: var(--gold);
}

.value-icon svg {
    width: 21px;
    height: 21px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
}

.team-card {
    text-align: center;
}

.team-card img {
    width: 116px;
    height: 116px;
    margin: 0 auto 1.1rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(251, 189, 24, 0.25);
    transition: border-color var(--base) var(--ease), box-shadow var(--base) var(--ease);
}

.team-card:hover img {
    border-color: var(--gold);
    box-shadow: 0 0 28px rgba(251, 189, 24, 0.35);
}

.team-card h3 {
    font-size: 1.05rem;
}

.team-role {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    margin-top: 0.3rem;
}

/* --------------------------------------------------------------------------
   10. Projects
   -------------------------------------------------------------------------- */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.45rem 1.05rem;
    border-radius: var(--r-pill);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-faint);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--fast) var(--ease);
}

.filter-btn:hover {
    color: var(--text);
    border-color: var(--line-strong);
}

.filter-btn.is-active {
    background: rgba(251, 189, 24, 0.13);
    border-color: rgba(251, 189, 24, 0.4);
    color: var(--gold);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.25rem;
}

.project-card {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    padding: 1.35rem;
}

.project-card[hidden] {
    display: none;
}

.project-icon {
    width: 62px;
    height: 62px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: var(--r-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    padding: 8px;
}

.project-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.project-body {
    min-width: 0;
}

.project-body h3 {
    font-size: 1.02rem;
    margin-bottom: 0.4rem;
}

.project-body p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.65rem;
    border-radius: var(--r-pill);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 7px currentColor;
}

.badge-live {
    background: rgba(68, 187, 85, 0.12);
    color: #5fd472;
}

.badge-dev {
    background: rgba(251, 189, 24, 0.12);
    color: var(--gold);
}

.badge-planned {
    background: rgba(68, 136, 221, 0.12);
    color: #6ba6ea;
}

.badge-none {
    background: rgba(204, 51, 68, 0.12);
    color: #ff6b7d;
}

/* --------------------------------------------------------------------------
   11. Updates (changelog)
   -------------------------------------------------------------------------- */
.changelog {
    display: grid;
    gap: 1.25rem;
}

.release {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: clamp(1rem, 3vw, 2.5rem);
    padding: clamp(1.4rem, 3vw, 2rem);
}

.release-meta {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.release-version {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gold);
}

.release-product {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.release-date {
    font-size: 0.82rem;
    color: var(--text-faint);
}

.release-notes {
    list-style: none;
    display: grid;
    gap: 0.7rem;
}

.release-notes li {
    display: flex;
    gap: 0.75rem;
    align-items: baseline;
    font-size: 0.94rem;
    color: var(--text-muted);
}

.note-type {
    flex-shrink: 0;
    width: 74px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
    padding: 0.15rem 0;
    border-radius: 4px;
}

.note-new {
    background: rgba(68, 187, 85, 0.14);
    color: #5fd472;
}

.note-fix {
    background: rgba(68, 136, 221, 0.14);
    color: #6ba6ea;
}

.note-mod {
    background: rgba(251, 189, 24, 0.14);
    color: var(--gold);
}

/* --------------------------------------------------------------------------
   12. Contacts
   -------------------------------------------------------------------------- */
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}

.channel-stack {
    display: grid;
    gap: 1rem;
}

.channel {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.35rem;
}

.channel-icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: var(--r-md);
    background: rgba(251, 189, 24, 0.1);
    border: 1px solid rgba(251, 189, 24, 0.2);
    color: var(--gold);
}

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

.channel h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.channel p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.channel a {
    color: var(--gold);
    border-bottom: 1px solid rgba(251, 189, 24, 0.3);
    transition: border-color var(--fast) var(--ease);
}

.channel a:hover {
    border-bottom-color: var(--gold);
}

.mail-list {
    display: grid;
    gap: 0.55rem;
    margin-top: 0.7rem;
    list-style: none;
}

.mail-list li {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: baseline;
    font-size: 0.89rem;
}

.mail-list dt,
.mail-purpose {
    color: var(--text-faint);
    min-width: 92px;
}

/* Form */
.form-card {
    padding: clamp(1.6rem, 3.5vw, 2.4rem);
}

.form-card h2 {
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
}

.form-card > p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.field label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--text-muted);
}

.field .req {
    color: var(--gold);
}

.field input,
.field textarea,
.field select {
    width: 100%;
    padding: 0.75rem 0.9rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    font-size: 0.94rem;
    transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease),
        box-shadow var(--fast) var(--ease);
}

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

.field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fbbd18' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 15px;
    padding-right: 2.4rem;
}

.field select option {
    background: var(--surface-solid);
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--text-faint);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 3px rgba(251, 189, 24, 0.14);
}

.field-error {
    font-size: 0.78rem;
    color: #ff6b7d;
    min-height: 1em;
}

.field.has-error input,
.field.has-error textarea,
.field.has-error select {
    border-color: rgba(204, 51, 68, 0.7);
}

/* Honeypot — hidden from humans, visible to naive bots. */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.form-note {
    font-size: 0.78rem;
    color: var(--text-faint);
}

.form-status {
    margin-top: 1.1rem;
    padding: 0.85rem 1.1rem;
    border-radius: var(--r-sm);
    font-size: 0.9rem;
    border: 1px solid transparent;
}

.form-status[hidden] {
    display: none;
}

.form-status.is-ok {
    background: rgba(68, 187, 85, 0.1);
    border-color: rgba(68, 187, 85, 0.3);
    color: #7ee08d;
}

.form-status.is-error {
    background: rgba(204, 51, 68, 0.1);
    border-color: rgba(204, 51, 68, 0.3);
    color: #ff8a99;
}

.btn[aria-busy='true'] {
    opacity: 0.65;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.site-footer {
    flex-shrink: 0;
    border-top: 1px solid var(--line);
    background: rgba(7, 7, 11, 0.6);
    padding-block: clamp(2.5rem, 5vw, 3.5rem) 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    padding-bottom: 2.25rem;
}

.footer-brand .brand {
    margin-bottom: 0.9rem;
}

.footer-brand p {
    font-size: 0.88rem;
    color: var(--text-faint);
    max-width: 38ch;
}

.footer-col h4 {
    font-size: 0.74rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.9rem;
}

.footer-col ul {
    list-style: none;
    display: grid;
    gap: 0.5rem;
}

.footer-col a {
    font-size: 0.88rem;
    color: var(--text-muted);
    transition: color var(--fast) var(--ease);
}

.footer-col a:hover {
    color: var(--gold);
}

.footer-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    font-size: 0.82rem;
    color: var(--text-faint);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.95rem;
    border-radius: var(--r-pill);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.8rem;
    font-weight: 600;
    transition: all var(--fast) var(--ease);
}

.status-pill:hover {
    border-color: var(--line-strong);
    color: var(--gold);
}

.status-pill::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 8px var(--ok);
    animation: blink 2.4s ease-in-out infinite;
}

@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}

/* --------------------------------------------------------------------------
   14. Loader (kept from original — logo pulse over blurred backdrop)
   -------------------------------------------------------------------------- */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    background: var(--bg);
    transition: opacity 0.45s var(--ease), visibility 0.45s var(--ease);
}

.page-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    width: 108px;
    filter: drop-shadow(0 0 22px var(--gold));
    animation: loaderPulse 1.6s ease-in-out infinite;
}

.loader-bar {
    width: 150px;
    height: 2px;
    margin-top: 1.75rem;
    border-radius: 2px;
    background: rgba(251, 189, 24, 0.15);
    overflow: hidden;
}

.loader-bar::after {
    content: '';
    display: block;
    width: 40%;
    height: 100%;
    border-radius: 2px;
    background: var(--gold);
    box-shadow: 0 0 10px var(--gold);
    animation: loaderSweep 1.1s ease-in-out infinite;
}

.loader-content {
    display: grid;
    place-items: center;
}

@keyframes loaderPulse {
    0%,
    100% {
        opacity: 0.75;
        transform: scale(0.97);
    }
    50% {
        opacity: 1;
        transform: scale(1.03);
    }
}

@keyframes loaderSweep {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(350%);
    }
}

/* --------------------------------------------------------------------------
   15. Scrollbar
   -------------------------------------------------------------------------- */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(251, 189, 24, 0.4) transparent;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(251, 189, 24, 0.35);
    border-radius: var(--r-pill);
    border: 2px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(251, 189, 24, 0.6);
    background-clip: content-box;
}

/* --------------------------------------------------------------------------
   16. Scroll reveal
   -------------------------------------------------------------------------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

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

/* --------------------------------------------------------------------------
   17. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
    .hero,
    .about-grid,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        order: -1;
    }

    .hero-visual img {
        width: min(64%, 260px);
    }

    .release {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

@media (max-width: 780px) {
    :root {
        --header-h: 64px;
    }

    .nav-toggle {
        display: flex;
        order: 3;
        margin-left: 0.5rem;
    }

    /* brand | EN | hamburger — the menu button stays under the thumb. */
    .lang-switch {
        order: 2;
        margin-left: auto;
    }

    .site-nav {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        background: rgba(7, 7, 11, 0.97);
        backdrop-filter: blur(22px);
        -webkit-backdrop-filter: blur(22px);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-lg);
        padding: 1rem var(--gutter) 1.5rem;
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: opacity var(--base) var(--ease), transform var(--base) var(--ease),
            visibility var(--base);
    }

    .site-nav.is-open {
        transform: none;
        opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0.15rem;
    }

    .nav-list a {
        padding: 0.85rem 1rem;
        font-size: 1rem;
    }

    .nav-list a[aria-current='page']::after {
        display: none;
    }

    .nav-list a[aria-current='page'] {
        background: rgba(251, 189, 24, 0.1);
    }

    /* Header is opaque whenever the mobile menu is open, so the panel joins it. */
    .site-header:has(.site-nav.is-open) {
        background: rgba(7, 7, 11, 0.97);
        backdrop-filter: blur(22px);
        -webkit-backdrop-filter: blur(22px);
    }

    .field-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

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

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .project-card {
        flex-direction: column;
    }
}

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

    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}

@media print {
    .site-header,
    .site-footer,
    .page-loader,
    .nav-toggle {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }
}
