/* =========================================================
   A13.UZ — MINIMALIST DESIGN SYSTEM (LIGHT & DARK)
========================================================= */

:root {
    color-scheme: light dark;

    --bg: #f8f8f6;
    --surface: #ffffff;
    --surface2: #f0f0ee;
    --text: #0b0b0c;
    --muted: #52524e;
    --line: rgba(0, 0, 0, .09);
    --black: #0b0b0c;
    --accent: #2bc56f;

    --max: 1280px;
    --radius: 28px;
    --ease: cubic-bezier(.2, .8, .2, 1);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #080809;
        --surface: #101011;
        --surface2: #181819;
        --text: #f5f5f3;
        --muted: #b4b4b0;
        --line: rgba(255, 255, 255, .1);
        --black: #ffffff;
    }
}

[data-theme="dark"] {
    color-scheme: dark;
    --bg: #080809;
    --surface: #101011;
    --surface2: #181819;
    --text: #f5f5f3;
    --muted: #b4b4b0;
    --line: rgba(255, 255, 255, .1);
    --black: #ffffff;
}

:root:has(> head > meta[name="color-scheme"][content="dark"]) {
    color-scheme: dark;
    --bg: #080809;
    --surface: #101011;
    --surface2: #181819;
    --text: #f5f5f3;
    --muted: #b4b4b0;
    --line: rgba(255, 255, 255, .1);
    --black: #ffffff;
}

[data-theme="light"] {
    color-scheme: light;
    --bg: #f8f8f6;
    --surface: #ffffff;
    --surface2: #f0f0ee;
    --text: #0b0b0c;
    --muted: #52524e;
    --line: rgba(0, 0, 0, .09);
    --black: #0b0b0c;
}

:root:has(> head > meta[name="color-scheme"][content="light"]) {
    color-scheme: light;
    --bg: #f8f8f6;
    --surface: #ffffff;
    --surface2: #f0f0ee;
    --text: #0b0b0c;
    --muted: #52524e;
    --line: rgba(0, 0, 0, .09);
    --black: #0b0b0c;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: clip;
    accent-color: var(--text);
}

body {
    background-color: var(--bg);
    background-image:
        radial-gradient(at 0% 0%, rgba(226, 235, 248, .5) 0px, transparent 45%),
        radial-gradient(at 95% 8%, rgba(250, 240, 226, .55) 0px, transparent 40%),
        radial-gradient(at 90% 90%, rgba(230, 238, 252, .3) 0px, transparent 45%),
        radial-gradient(at 5% 95%, rgba(248, 242, 232, .35) 0px, transparent 45%);
    background-attachment: fixed;
    color: var(--text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: clip;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    transition: background-color .4s, color .4s;
}

[data-theme="dark"] body {
    background-image:
        radial-gradient(at 0% 0%, rgba(35, 45, 75, .22) 0px, transparent 50%),
        radial-gradient(at 95% 8%, rgba(45, 35, 60, .18) 0px, transparent 45%),
        radial-gradient(at 90% 90%, rgba(30, 40, 65, .15) 0px, transparent 45%);
}

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

button {
    font: inherit;
    color: inherit;
}

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

:focus-visible {
    outline: 2px solid var(--text);
    outline-offset: 3px;
}

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

.skip-link {
    position: fixed;
    top: 12px;
    left: 16px;
    z-index: 100001;
    padding: 10px 16px;
    border-radius: 12px;
    background: var(--text);
    color: var(--bg);
    font-size: 12px;
    font-weight: 600;
    transform: translateY(-160%);
    transition: transform .2s var(--ease);
}

.skip-link:focus-visible {
    transform: translateY(0);
}

.container {
    width: min(var(--max), calc(100% - 40px));
    margin-inline: auto;
}

/* =========================================================
   SCROLL PROGRESS & BACKGROUND ATMOSPHERE
========================================================= */

.progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: var(--text);
    z-index: 99999;
}

.grid-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -3;
    opacity: .6;
    background-image:
        radial-gradient(circle at 1px 1px, var(--line) 1.2px, transparent 0),
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 56px 56px, 56px 56px, 56px 56px;
    mask-image: radial-gradient(ellipse at 50% 35%, black 45%, transparent 85%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 35%, black 45%, transparent 85%);
}

[data-theme="dark"] .grid-bg {
    opacity: .45;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.12) 1.2px, transparent 0),
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

.mouse-glow {
    position: fixed;
    left: 0;
    top: 0;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    pointer-events: none;
    z-index: -2;
    transform: translate3d(-50%, -50%, 0);
    will-change: transform;
    background: radial-gradient(circle, rgba(160, 180, 215, .15), transparent 65%);
    opacity: .85;
}

[data-theme="dark"] .mouse-glow {
    background: radial-gradient(circle, rgba(255, 255, 255, .08), transparent 65%);
}

body::after {
    display: none;
}

.cursor {
    position: fixed;
    left: 0;
    top: 0;
    width: 18px;
    height: 18px;
    border: 1px solid var(--text);
    border-radius: 50%;
    pointer-events: none;
    z-index: 100000;
    opacity: 0;
    transform: translate3d(-50%, -50%, 0);
    will-change: transform;
    transition: width .25s var(--ease), height .25s var(--ease), background .25s, opacity .2s;
}

.cursor.ready {
    opacity: 1;
}

.cursor.active {
    width: 52px;
    height: 52px;
    background: rgba(120, 120, 120, .08);
}

@media (hover: none), (max-width: 900px) {
    .cursor,
    .mouse-glow {
        display: none;
    }
}

/* =========================================================
   HEADER & NAVIGATION
========================================================= */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 5000;
    transition: background .35s, border-color .35s;
}

header.scrolled {
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: blur(22px);
    border-bottom: 1px solid var(--line);
}

.nav {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -1px;
    flex-shrink: 0;
}

.logo-symbol {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--text);
    color: var(--bg);
    font-family: "Space Grotesk", sans-serif;
    font-size: 14px;
    overflow: hidden;
    transition: transform .35s var(--ease);
}

.logo-symbol img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo:hover .logo-symbol {
    transform: rotate(-6deg) scale(1.06);
}

.logo-name {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-name span {
    font-size: 14px;
}

.logo-name small {
    font-size: 8px;
    color: var(--muted);
    letter-spacing: 2px;
    margin-top: 4px;
}

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

.nav-links a {
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    transition: color .2s;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 100px;
    background: var(--surface);
    overflow: hidden;
    transition: border-color .25s var(--ease), background .2s;
}

.lang-trigger {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: var(--text);
    color: var(--bg);
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .5px;
    display: grid;
    place-items: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform .2s var(--ease);
}

.lang-options {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: max-width .28s var(--ease), opacity .2s var(--ease), padding .25s var(--ease);
}

.lang-switch.open .lang-options {
    max-width: 140px;
    opacity: 1;
    padding-left: 4px;
    padding-right: 4px;
    pointer-events: auto;
}

.lang-switch a {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .5px;
    padding: 5px 8px;
    border-radius: 100px;
    color: var(--muted);
    white-space: nowrap;
    transition: background .2s, color .2s;
}

.lang-switch a:hover {
    background: var(--surface2);
    color: var(--text);
}

.nav-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform .25s var(--ease), background .2s;
}

.nav-btn svg {
    width: 15px;
    height: 15px;
}

.nav-btn:hover {
    transform: translateY(-2px);
    background: var(--surface2);
}

/* Theme toggle icon state driven via CSS so zero JS flicker */
#themeBtn .icon-moon {
    display: none;
}

#themeBtn .icon-sun {
    display: grid;
    place-items: center;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) #themeBtn .icon-sun {
        display: none;
    }
    :root:not([data-theme="light"]) #themeBtn .icon-moon {
        display: grid;
        place-items: center;
    }
}

[data-theme="dark"] #themeBtn .icon-sun {
    display: none;
}

:root:has(> head > meta[name="color-scheme"][content="dark"]) #themeBtn .icon-sun {
    display: none;
}

[data-theme="dark"] #themeBtn .icon-moon {
    display: grid;
    place-items: center;
}

:root:has(> head > meta[name="color-scheme"][content="dark"]) #themeBtn .icon-moon {
    display: grid;
    place-items: center;
}

[data-theme="light"] #themeBtn .icon-sun {
    display: grid;
    place-items: center;
}

:root:has(> head > meta[name="color-scheme"][content="light"]) #themeBtn .icon-sun {
    display: grid;
    place-items: center;
}

[data-theme="light"] #themeBtn .icon-moon {
    display: none;
}

:root:has(> head > meta[name="color-scheme"][content="light"]) #themeBtn .icon-moon {
    display: none;
}

.menu-btn {
    display: none;
}

.mobile-drawer {
    display: none;
}

/* =========================================================
   HERO
========================================================= */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 0 90px;
    overflow: hidden;
    border-top: 0;
    background:
        radial-gradient(ellipse 65% 55% at 75% 42%, rgba(215, 226, 240, .45), transparent 70%),
        radial-gradient(ellipse 55% 45% at 20% 30%, rgba(248, 238, 225, .42), transparent 65%);
}

[data-theme="dark"] .hero {
    background:
        radial-gradient(ellipse 65% 55% at 75% 42%, rgba(255, 255, 255, .03), transparent 70%),
        radial-gradient(ellipse 55% 45% at 20% 30%, rgba(255, 255, 255, .02), transparent 65%);
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 13px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .8px;
    color: var(--text);
    background: color-mix(in srgb, var(--surface) 85%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--line);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .04);
    margin-bottom: 22px;
}

.hero-pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
    animation: pulseDot 2.4s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: .4;
        transform: scale(.85);
    }
}

.hero-orb {
    position: absolute;
    width: 620px;
    height: 620px;
    border-radius: 50%;
    right: -100px;
    top: 8%;
    background: radial-gradient(circle, rgba(195, 215, 248, 0.45) 0%, rgba(245, 232, 218, 0.3) 45%, transparent 70%);
    opacity: .9;
    pointer-events: none;
    will-change: transform;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .hero-orb {
        background: radial-gradient(circle, rgba(255, 255, 255, .05), transparent 65%);
        opacity: .6;
    }
}

[data-theme="dark"] .hero-orb {
    background: radial-gradient(circle, rgba(255, 255, 255, .05), transparent 65%);
    opacity: .6;
}

:root:has(> head > meta[name="color-scheme"][content="dark"]) .hero-orb {
    background: radial-gradient(circle, rgba(255, 255, 255, .05), transparent 65%);
    opacity: .6;
}

@media (prefers-reduced-motion: no-preference) {
    .hero-orb {
        animation: orb 10s ease-in-out infinite;
    }
}

@keyframes orb {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-50px, 30px) scale(1.08);
    }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 13px;
    border: 1px solid var(--line);
    border-radius: 100px;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 24px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(43, 197, 111, .12);
}

@media (prefers-reduced-motion: no-preference) {
    .status-dot {
        animation: pulse 2s infinite;
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(43, 197, 111, .12);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(43, 197, 111, 0);
    }
}

.hero h1 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(54px, 8.2vw, 118px);
    line-height: .86;
    letter-spacing: -0.065em;
    font-weight: 700;
}

.hero h1 .gray {
    color: var(--muted);
    color: color-mix(in srgb, var(--text) 64%, var(--bg));
    display: block;
}

.hero-sub {
    max-width: 560px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.75;
    margin-top: 28px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 26px;
}

.btn {
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .3s var(--ease), background .2s, border-color .2s;
}

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

.btn-primary {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
}

.btn-sm {
    min-height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 11px;
}

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

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    max-width: 560px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.meta-item strong {
    font-size: 14px;
    font-weight: 600;
}

.meta-item span {
    font-size: 11px;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: .6px;
}

/* =========================================================
   HERO VISUAL CARD
========================================================= */

.visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.visual::before {
    content: "";
    position: absolute;
    inset: -20px;
    border-radius: 48px;
    background: radial-gradient(circle at center, rgba(175, 200, 235, .32) 0%, rgba(245, 230, 215, 0.18) 50%, transparent 72%);
    pointer-events: none;
    z-index: 0;
}

[data-theme="dark"] .visual::before {
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
}

.visual-showcase {
    width: min(440px, 100%);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.visual-card {
    width: min(440px, 100%);
    aspect-ratio: 1;
    border: 1px solid var(--line);
    border-radius: 42px;
    background: linear-gradient(145deg, var(--surface), var(--surface2));
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform .2s ease;
}

.visual-card::before {
    content: "A13";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -55%);
    font-family: "Space Grotesk", sans-serif;
    font-size: 210px;
    font-weight: 800;
    letter-spacing: -16px;
    color: var(--text);
    opacity: .035;
    pointer-events: none;
}

.visual-card.has-photo {
    width: min(440px, 100%);
    aspect-ratio: 1;
    border-radius: 34px;
    border: 1px solid rgba(0, 0, 0, .08);
    outline: 1px solid rgba(0, 0, 0, .06);
    outline-offset: 8px;
    box-shadow: 0 28px 70px -20px rgba(0, 0, 0, .14), 0 8px 24px -10px rgba(0, 0, 0, .06);
    background: var(--surface);
    position: relative;
    overflow: hidden;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .visual-card.has-photo {
        box-shadow: 0 30px 80px -24px rgba(0, 0, 0, .65);
    }
}

[data-theme="dark"] .visual-card.has-photo {
    box-shadow: 0 30px 80px -24px rgba(0, 0, 0, .65);
}

:root:has(> head > meta[name="color-scheme"][content="dark"]) .visual-card.has-photo {
    box-shadow: 0 30px 80px -24px rgba(0, 0, 0, .65);
}

.visual-card.has-photo::before,
.visual-card.has-photo::after {
    display: none;
}

.visual-card.has-photo picture,
.visual-card.has-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.visual-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.visual-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 13px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    font-size: 11px;
    line-height: 1.3;
    flex: 1 1 auto;
}

.visual-chip strong {
    display: block;
    color: var(--text);
    font-weight: 600;
}

.visual-chip span {
    display: block;
    color: var(--muted);
}

.visual-chip-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--surface2);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.visual-chip-icon svg {
    width: 14px;
    height: 14px;
}

.visual-clock {
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    font-family: "Space Grotesk", sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: .6px;
    font-variant-numeric: tabular-nums;
}

.profile {
    position: absolute;
    bottom: 0;
    left: 12%;
    width: 76%;
    height: 91%;
    border-radius: 34px 34px 0 0;
    background: linear-gradient(145deg, #d5d5d3, #8d8d89);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 10px;
    letter-spacing: 3px;
    overflow: hidden;
}

.profile picture,
.profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.float {
    position: absolute;
    padding: 7px 11px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .08);
    font-size: 11px;
    z-index: 4;
    white-space: nowrap;
    will-change: transform;
}

[data-theme="dark"] .float {
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
}

.float-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.2;
}

.float strong {
    display: block;
    color: var(--text);
    font-weight: 600;
    font-size: 11px;
    line-height: 1.2;
    letter-spacing: -.1px;
}

.float span {
    display: block;
    color: var(--muted);
    font-size: 9.5px;
    line-height: 1.2;
}

.float.one {
    left: -44px;
    top: 18%;
    animation: floatOne 5s ease-in-out infinite;
}

.float.two {
    right: -38px;
    bottom: 22%;
    animation: floatTwo 5s ease-in-out infinite 0.8s;
}

@keyframes floatOne {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -10px, 0);
    }
}

@keyframes floatTwo {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, 10px, 0);
    }
}

.float-icon {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: var(--surface2);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.float-icon svg {
    width: 12px;
    height: 12px;
}

.clock {
    position: absolute;
    bottom: 10px;
    right: 12px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 9.5px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: .5px;
    z-index: 2;
    padding: 3px 6px;
    border-radius: 5px;
    background: color-mix(in srgb, var(--surface) 75%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--line);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

/* =========================================================
   SECTIONS & INNER PAGE HEADERS
========================================================= */

section {
    padding: 115px 0;
    border-top: 1px solid var(--line);
}

.page-hero {
    padding: 130px 0 60px;
    border-top: 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 18px;
}

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

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: 48px;
}

.section-index {
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(36px, 4.8vw, 64px);
    line-height: .95;
    letter-spacing: -0.055em;
}

.section-desc {
    max-width: 400px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.section-foot {
    margin-top: 28px;
    display: flex;
    justify-content: flex-end;
}

/* =========================================================
   MARQUEE
========================================================= */

.marquee {
    position: relative;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 16px 0;
    overflow: hidden;
    white-space: nowrap;
    contain: content;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 24s linear infinite !important;
    will-change: transform;
}

.marquee.paused .marquee-track {
    animation-play-state: paused !important;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-group {
    display: flex;
    align-items: center;
    gap: 34px;
    padding-right: 34px;
    flex-shrink: 0;
}

.marquee span {
    font-family: "Space Grotesk", sans-serif;
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--muted);
}

.marquee .dot {
    color: var(--text);
}

.marquee-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--surface);
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.marquee:hover .marquee-toggle,
.marquee-toggle:focus-visible {
    opacity: 1;
}

.marquee-toggle svg {
    width: 12px;
    height: 12px;
}

@keyframes marquee {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(-50%, 0, 0);
    }
}

/* =========================================================
   ABOUT
========================================================= */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.about-lead {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(23px, 2.8vw, 34px);
    line-height: 1.38;
    letter-spacing: -0.035em;
}

.about-lead span {
    color: var(--muted);
}

.about-bio {
    margin-top: 22px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
}

.about-info {
    border-top: 1px solid var(--line);
}

.info-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
}

.info-row span {
    color: var(--muted);
}

.about-blocks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.panel-card {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    padding: 26px;
}

.panel-card h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 18px;
    margin-bottom: 16px;
}

.skill-bar {
    margin-bottom: 14px;
}

.skill-bar:last-child {
    margin-bottom: 0;
}

.skill-head {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 6px;
}

.skill-head span {
    color: var(--muted);
}

.skill-track {
    height: 4px;
    border-radius: 100px;
    background: var(--surface2);
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: var(--text);
    border-radius: 100px;
}

/* =========================================================
   BENTO EXPERTISE
========================================================= */

.bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(190px, auto);
    gap: 14px;
}

.bento-card {
    position: relative;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
    transition: transform .35s var(--ease), box-shadow .35s;
}

.bento-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 60px rgba(0, 0, 0, .07);
}

.bento-card.large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-card.wide {
    grid-column: span 2;
}

.bento-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--surface2);
    margin-bottom: 22px;
}

.bento-icon svg {
    width: 18px;
    height: 18px;
}

.bento-card h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 20px;
    letter-spacing: -.5px;
}

.bento-card p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
    margin-top: 8px;
    max-width: 380px;
}

.bento-num {
    position: absolute;
    right: 20px;
    top: 20px;
    color: var(--muted);
    font-size: 10px;
}

.terminal {
    margin-top: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    background: #0d0d0e;
    color: #eee;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
}

.terminal-head {
    height: 32px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    border-bottom: 1px solid #222;
}

.term-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #555;
}

.terminal-body {
    padding: 16px;
    line-height: 1.9;
}

.term-green {
    color: #65d98b;
}

.term-gray {
    color: #777;
}

/* =========================================================
   STATS
========================================================= */

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
}

.stat {
    padding: 28px;
    background: var(--surface);
    border-right: 1px solid var(--line);
}

.stat:last-child {
    border-right: 0;
}

.stat-number {
    font-family: "Space Grotesk", sans-serif;
    font-size: 40px;
    letter-spacing: -2.5px;
}

.stat-label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
    margin-top: 4px;
    letter-spacing: 1px;
}

/* =========================================================
   PROJECTS
========================================================= */

.project-filters {
    display: flex;
    gap: 7px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
    padding: 8px 14px;
    border-radius: 100px;
    font-size: 11px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: background .2s, color .2s, border-color .2s;
}

.filter.active,
.filter:hover {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

.projects {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 17px;
}

.project {
    border: 1px solid var(--line);
    border-radius: 28px;
    overflow: hidden;
    background: var(--surface);
    transition: transform .4s var(--ease);
}

.project-link {
    display: block;
    height: 100%;
}

.project:hover {
    transform: translateY(-7px);
}

.project-preview {
    height: 310px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--surface2), #d8d8d5);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .project-preview {
        background: linear-gradient(135deg, var(--surface2), #222224);
    }
    :root:not([data-theme="light"]) .project-preview::before {
        background: radial-gradient(circle, rgba(255, 255, 255, .12), transparent 65%);
    }
}

[data-theme="dark"] .project-preview {
    background: linear-gradient(135deg, var(--surface2), #222224);
}

:root:has(> head > meta[name="color-scheme"][content="dark"]) .project-preview {
    background: linear-gradient(135deg, var(--surface2), #222224);
}

[data-theme="dark"] .project-preview::before {
    background: radial-gradient(circle, rgba(255, 255, 255, .12), transparent 65%);
}

:root:has(> head > meta[name="color-scheme"][content="dark"]) .project-preview::before {
    background: radial-gradient(circle, rgba(255, 255, 255, .12), transparent 65%);
}

.project-preview::before {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .75), transparent 65%);
    top: -190px;
    right: -90px;
}

.browser {
    position: absolute;
    left: 8%;
    right: 8%;
    top: 13%;
    bottom: -16px;
    background: #fff;
    color: #111;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 32px 75px rgba(0, 0, 0, .18);
    overflow: hidden;
    transition: transform .5s var(--ease);
}

.project:hover .browser {
    transform: translateY(-10px) scale(1.015);
}

.browser-bar {
    height: 28px;
    background: #f1f1f1;
    display: flex;
    align-items: center;
    padding-left: 12px;
    gap: 5px;
}

.browser-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #aaa;
}

.browser-content {
    padding: 22px;
    height: calc(100% - 28px);
}

.project-preview.has-image {
    background: transparent;
}

.project-preview.has-image::before {
    display: none;
}

.project-preview.has-image picture,
.project-preview.has-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.browser-line {
    height: 8px;
    background: #eee;
    border-radius: 10px;
    margin-bottom: 11px;
}

.browser-line.short {
    width: 38%;
}

.browser-box {
    margin-top: 20px;
    height: 110px;
    border-radius: 12px;
    background: #f4f4f4;
}

.project-body {
    padding: 25px;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    font-size: 10px;
    margin-bottom: 12px;
}

.project-meta svg {
    width: 15px;
    height: 15px;
}

.project-body h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 24px;
    letter-spacing: -.8px;
}

.project-body p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
    margin: 8px 0 16px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    border: 1px solid var(--line);
    padding: 5px 9px;
    border-radius: 100px;
    color: var(--muted);
    font-size: 10px;
}

.tag.active {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

/* =========================================================
   ARTICLES & ANNOUNCEMENTS
========================================================= */

.articles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.article {
    min-height: 310px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    transition: transform .35s var(--ease);
}

.article:hover {
    transform: translateY(-6px);
}

.article-cover {
    margin: -8px -8px 18px;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--surface2);
}

.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.article-top svg {
    width: 15px;
    height: 15px;
}

.article h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 21px;
    line-height: 1.2;
    letter-spacing: -.6px;
    margin-top: 22px;
}

.article p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
    margin-top: 10px;
}

.article-bottom {
    border-top: 1px solid var(--line);
    margin-top: auto;
    padding-top: 14px;
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 10px;
}

.announcements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.announcement-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.announcement-card[data-priority="urgent"],
.announcement-card[data-priority="high"] {
    border-color: color-mix(in srgb, var(--text) 35%, transparent);
}

.announcement-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .8px;
}

.announcement-card h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 19px;
    line-height: 1.25;
}

.announcement-card p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

/* =========================================================
   TIMELINE
========================================================= */

.timeline {
    border-left: 1px solid var(--line);
    margin-left: 10px;
}

.timeline-item {
    position: relative;
    padding: 0 0 54px 40px;
}

.timeline-item:last-child {
    padding-bottom: 10px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--text);
    left: -5px;
    top: 4px;
    box-shadow: 0 0 0 6px var(--bg);
}

.timeline-date {
    color: var(--muted);
    font-size: 10px;
    margin-bottom: 7px;
    letter-spacing: .8px;
}

.timeline-item h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 22px;
}

.timeline-org {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}

.timeline-item p {
    color: var(--muted);
    font-size: 13px;
    max-width: 650px;
    margin-top: 6px;
    line-height: 1.65;
}

/* =========================================================
   DETAIL PAGES (PROJECTS & ARTICLES)
========================================================= */

.detail-grid {
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    gap: 40px;
    align-items: start;
}

.detail-cover {
    border: 1px solid var(--line);
    border-radius: 26px;
    overflow: hidden;
    background: var(--surface);
    margin-bottom: 28px;
}

.detail-cover img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
}

.prose {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text);
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
    font-family: "Space Grotesk", sans-serif;
    margin: 28px 0 12px;
    letter-spacing: -0.02em;
    color: var(--text);
}

.prose h1 {
    font-size: 26px;
    font-weight: 700;
}

.prose h2 {
    font-size: 22px;
    font-weight: 700;
}

.prose h3 {
    font-size: 18px;
    font-weight: 600;
}

.prose h4 {
    font-size: 16px;
    font-weight: 600;
}

.prose p {
    margin-bottom: 16px;
    color: color-mix(in srgb, var(--text) 86%, var(--muted));
}

.prose strong, .prose b {
    font-weight: 700;
    color: var(--text);
}

.prose em, .prose i {
    font-style: italic;
}

.prose u {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prose s {
    text-decoration: line-through;
}

.prose hr {
    border: 0;
    height: 1px;
    background: var(--line);
    margin: 26px 0;
}

.prose ul,
.prose ol {
    margin: 0 0 18px 22px;
}

.prose li {
    margin-bottom: 6px;
}

.prose blockquote {
    border-left: 3px solid #3b82f6;
    padding: 12px 18px;
    margin: 20px 0;
    background: var(--surface2);
    border-radius: 0 12px 12px 0;
    color: var(--muted);
    font-style: italic;
}

.prose pre {
    padding: 16px;
    border-radius: 14px;
    background: #0d0d0e;
    color: #f0f0ee;
    overflow-x: auto;
    margin-bottom: 18px;
    font-size: 13px;
}

.prose code {
    background: var(--surface2);
    padding: 2px 6px;
    border-radius: 5px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 13px;
}

.prose a {
    color: #3b82f6;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 28px;
}

.gallery-item {
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    background: var(--surface);
    cursor: pointer;
    padding: 0;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform .35s var(--ease);
}

.gallery-item:hover img {
    transform: scale(1.03);
}

.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 40px;
}

/* =========================================================
   CONTACT & ACCESSIBLE FORM
========================================================= */

.contact {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 36px;
    background: var(--surface);
    padding: 72px 32px;
    text-align: center;
}

.contact::before {
    content: "A13";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-family: "Space Grotesk", sans-serif;
    font-size: 310px;
    font-weight: 800;
    letter-spacing: -18px;
    color: var(--text);
    opacity: .025;
    pointer-events: none;
}

.contact-content {
    position: relative;
    z-index: 2;
}

.contact h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(42px, 6.8vw, 86px);
    line-height: .9;
    letter-spacing: -0.06em;
}

.contact-lead {
    max-width: 480px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
    margin: 20px auto;
}

.socials {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 22px;
}

.social {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 100px;
    background: var(--bg);
    font-size: 11px;
    transition: transform .2s;
}

.social svg {
    width: 14px;
    height: 14px;
}

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

.contact-form {
    max-width: 620px;
    margin: 36px auto 0;
    text-align: left;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.field label {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
}

.field input,
.field textarea {
    width: 100%;
    font: inherit;
    font-size: max(1rem, 1em);
    padding: 11px 14px;
    min-height: 48px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--text);
    transition: border-color .2s;
}

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

.field input:user-invalid,
.field textarea:user-invalid,
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
    border-color: #d9383a;
}

.field-error {
    font-size: 12px;
    color: #d9383a;
    min-height: 16px;
}

.form-status {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--surface2);
    font-size: 13px;
    margin-bottom: 16px;
}

.form-status.success {
    border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}

.form-status.error {
    border-color: rgba(217, 56, 58, .5);
    color: #d9383a;
}

/* =========================================================
   FOOTER
========================================================= */

footer {
    border-top: 1px solid var(--line);
    padding: 30px 0;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

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

/* =========================================================
   REVEAL ANIMATION
========================================================= */

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(28px);
        transition: opacity .8s var(--ease), transform .8s var(--ease);
    }
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   NATIVE DIALOGS (COMMAND PALETTE & LIGHTBOX)
========================================================= */

dialog.a13-dialog {
    margin: auto;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 40px 120px rgba(0, 0, 0, .28);
    width: min(580px, calc(100% - 28px));
    max-height: 85dvh;
    overflow: auto;
    padding: 0;
}

dialog.a13-dialog.a13-lightbox {
    width: min(920px, calc(100% - 28px));
    padding: 16px;
}

dialog.a13-dialog:modal {
    overscroll-behavior: contain;
}

dialog.a13-dialog::backdrop {
    background: rgba(0, 0, 0, .48);
    backdrop-filter: blur(10px);
    overflow: hidden;
    overscroll-behavior: contain;
}

.command-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 17px;
    border-bottom: 1px solid var(--line);
}

.command-search svg {
    width: 16px;
    height: 16px;
    color: var(--muted);
}

.command-search input {
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    width: 100%;
    font-size: max(1rem, 14px);
}

.command-close {
    border: 1px solid var(--line);
    background: var(--surface2);
    border-radius: 8px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.command-list {
    padding: 6px 0;
}

.command-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 17px;
    font-size: 13px;
    transition: background .15s;
}

.command-item svg {
    width: 15px;
    height: 15px;
    color: var(--muted);
}

.command-item:hover,
.command-item.is-active {
    background: var(--surface2);
}

.command-empty {
    padding: 20px 17px;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
}

.command-key {
    margin-left: auto;
    color: var(--muted);
    font-size: 10px;
}

/* =========================================================
   RESPONSIVE BREAKPOINTS
========================================================= */

@media (max-width: 980px) {
    .hero-orb {
        display: none;
    }

    .nav-links {
        display: none;
    }

    .menu-btn {
        display: grid;
    }

    header.nav-open .mobile-drawer {
        display: flex;
        flex-direction: column;
        gap: 6px;
        position: absolute;
        top: 76px;
        left: 16px;
        right: 16px;
        padding: 16px;
        border: 1px solid var(--line);
        border-radius: 20px;
        background: var(--surface);
        box-shadow: 0 24px 60px rgba(0, 0, 0, .14);
    }

    .mobile-drawer a {
        padding: 10px 12px;
        border-radius: 10px;
        font-size: 14px;
        color: var(--muted);
    }

    .mobile-drawer a.active,
    .mobile-drawer a:hover {
        background: var(--surface2);
        color: var(--text);
    }

    .hero-grid,
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .visual {
        max-width: 440px;
        margin-inline: auto;
    }

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

    .bento-card.large {
        grid-column: span 2;
    }

    .projects,
    .articles,
    .announcements-grid,
    .about-blocks {
        grid-template-columns: 1fr;
    }

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

    .stat:nth-child(2) {
        border-right: 0;
    }

    .stat:nth-child(-n+2) {
        border-bottom: 1px solid var(--line);
    }
}

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

    section {
        padding: 80px 0;
    }

    .hero {
        padding-top: 108px;
    }

    .lang-switch a {
        padding: 5px 6px;
        font-size: 9px;
    }

    .section-head {
        display: block;
    }

    .section-desc {
        margin-top: 16px;
    }

    .about-grid,
    .form-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .bento {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .bento-card,
    .bento-card.large,
    .bento-card.wide {
        grid-column: span 1;
        grid-row: span 1;
    }

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

    .stat {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .stat:last-child {
        border-bottom: 0;
    }

    .project-preview {
        height: 240px;
    }

    .contact {
        padding: 54px 18px;
        border-radius: 26px;
    }

    .float.one {
        left: -8px;
        top: 14%;
    }

    .float.two {
        right: -8px;
        bottom: 20%;
    }
}

/* =========================================================
   ALL-MEDIA RENDERING (VIDEO, AUDIO, DOCUMENTS)
========================================================= */
.media-video {
    width: 100%;
    max-height: 540px;
    border-radius: 14px;
    background: #000;
    display: block;
    object-fit: contain;
}

.shot .media-video,
.project-thumb .media-video {
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.media-audio-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    width: 100%;
}

.media-audio {
    width: 100%;
}

.media-doc-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    color: var(--ink);
    text-decoration: none;
    transition: border-color 0.18s ease, background 0.18s ease;
    width: 100%;
}

.media-doc-card:hover {
    border-color: var(--ink);
}

.media-doc-ext {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--bg);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.media-doc-name {
    font-size: 14px;
    font-weight: 500;
    word-break: break-word;
    flex: 1;
}

.gallery-media-item {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface);
}
