/* =========================================================
   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;
    --accent-fg: #08120c;

    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;

    --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(--accent, 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: var(--font-body, '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%);
}

h1, h2, h3, .brand-name {
    font-family: var(--font-heading, 'Space Grotesk', sans-serif);
}

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: var(--font-heading, '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 color-mix(in srgb, var(--accent) 18%, transparent);
}

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

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
    }
    50% {
        box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 0%, transparent);
    }
}

.hero h1 {
    font-family: var(--font-heading, '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: var(--radius-btn, min(var(--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, color .2s;
}

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

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

.btn-primary:hover {
    background: var(--btn-primary-hover-bg, color-mix(in srgb, var(--btn-primary-bg, var(--text)) 86%, var(--accent)));
    border-color: var(--btn-primary-hover-bg, color-mix(in srgb, var(--btn-primary-bg, var(--text)) 86%, var(--accent)));
    color: var(--btn-primary-fg, var(--bg));
}

.btn-accent {
    background: var(--accent);
    color: var(--accent-fg, #08120c);
    border-color: var(--accent);
}

.btn-accent:hover {
    filter: brightness(1.06);
}

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

.btn-sm {
    min-height: 36px;
    padding: 0 12px;
    border-radius: var(--radius-btn-sm, min(var(--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: var(--font-heading, '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: var(--font-heading, '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: var(--font-heading, '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: var(--font-heading, '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: var(--font-heading, '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: var(--font-heading, '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: min(var(--radius), 24px);
    background: var(--surface);
    padding: 26px;
}

.panel-card h3 {
    font-family: var(--font-heading, '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(2, minmax(0, 1fr));
    grid-auto-rows: auto;
    gap: 16px;
    align-items: stretch;
}

.bento-card {
    position: relative;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    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: 1 / -1;
    grid-row: span 1;
}

.bento-card.large.has-terminal {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 28px;
    align-items: center;
}

.bento-card.large.has-terminal .terminal {
    margin-top: 0;
}

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

.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: var(--font-heading, '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: min(var(--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: var(--font-heading, '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, minmax(0, 1fr));
    gap: 17px;
}

.project {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    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;
}

/* Executive bespoke visual preview card when cover_media_id is empty */
.project-preview.has-art {
    background: linear-gradient(145deg, var(--surface2), color-mix(in srgb, var(--surface) 78%, var(--surface2)));
    border-bottom: 1px solid var(--line);
}

.project-preview.has-art::before {
    width: 320px;
    height: 320px;
    top: -140px;
    right: -70px;
    opacity: .65;
}

.project-art {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    transition: transform .45s var(--ease);
}

.project:hover .project-art {
    transform: scale(1.015);
}

.project-art-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: radial-gradient(ellipse at 70% 30%, black 25%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at 70% 30%, black 25%, transparent 80%);
    opacity: .7;
}

.project-art-top {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-art-mono {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--text);
    color: var(--bg);
    font-family: var(--font-heading, 'Space Grotesk', sans-serif);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: -.4px;
    flex-shrink: 0;
}

.project-art-num {
    font-family: var(--font-heading, 'Space Grotesk', sans-serif);
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 1px;
}

.project-art-cat {
    margin-left: auto;
    padding: 4px 10px;
    border-radius: 100px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    backdrop-filter: blur(8px);
    font-size: 10px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: .3px;
}

.project-art-center {
    position: relative;
    z-index: 2;
    margin-block: auto;
    padding: 16px 0;
}

.project-art-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 10px;
    color: var(--muted);
    letter-spacing: .4px;
    margin-bottom: 8px;
}

.project-art-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}

.project-art-dot.is-wip {
    background: #eab308;
    box-shadow: 0 0 0 3px rgba(234, 179, 8, .22);
}

.project-art-title {
    font-family: var(--font-heading, 'Space Grotesk', sans-serif);
    font-size: clamp(22px, 2.3vw, 28px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.04em;
    color: var(--text);
    max-width: 92%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-art-foot {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.project-art-chip {
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .2px;
}

.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: var(--font-heading, '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, minmax(0, 1fr));
    gap: 15px;
}

.article {
    min-width: 0;
    min-height: 310px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: min(var(--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: var(--font-heading, '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, minmax(0, 1fr));
    gap: 15px;
}

.announcement-card {
    min-width: 0;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: min(var(--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: var(--font-heading, '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: var(--font-heading, '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: var(--font-heading, '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;
}

.prose del,
.prose strike {
    text-decoration: line-through;
}

/* Inline / Section / Card Rich Text (.prose-inline) */
.prose-inline p,
.prose-inline div {
    margin: 0;
}

.prose-inline p + p,
.prose-inline div + div,
.prose-inline p + div,
.prose-inline div + p {
    margin-top: 0.65em;
}

.prose-inline h1,
.prose-inline h2,
.prose-inline h3,
.prose-inline h4 {
    font-family: var(--font-heading, 'Space Grotesk', sans-serif);
    color: var(--text);
    line-height: 1.25;
    margin: 0.45em 0 0.25em;
}

.prose-inline h1:first-child,
.prose-inline h2:first-child,
.prose-inline h3:first-child,
.prose-inline h4:first-child {
    margin-top: 0;
}

.prose-inline h1 { font-size: 1.35em; font-weight: 700; }
.prose-inline h2 { font-size: 1.2em; font-weight: 700; }
.prose-inline h3 { font-size: 1.1em; font-weight: 600; }
.prose-inline h4 { font-size: 1.02em; font-weight: 600; }

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

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

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

.prose-inline s,
.prose-inline strike,
.prose-inline del {
    text-decoration: line-through;
}

.prose-inline ul,
.prose-inline ol {
    margin: 0.45em 0 0.45em 1.35em;
    padding: 0;
}

.prose-inline ul {
    list-style: disc;
}

.prose-inline ol {
    list-style: decimal;
}

.prose-inline li {
    margin-bottom: 0.25em;
}

.prose-inline blockquote {
    border-left: 2px solid #3b82f6;
    padding: 4px 12px;
    margin: 0.55em 0;
    background: var(--surface2);
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.prose-inline pre {
    padding: 10px 14px;
    border-radius: 10px;
    background: #0d0d0e;
    color: #f0f0ee;
    overflow-x: auto;
    margin: 0.55em 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.9em;
}

.prose-inline code {
    background: var(--surface2);
    padding: 1px 5px;
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.9em;
}

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

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

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

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

.bento-main .bento-desc {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

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

.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: var(--font-heading, '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: var(--font-heading, '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: 32px 0;
}

.footer {
    display: flex;
    flex-direction: column;
    gap: 18px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
}

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

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

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

.footer-connect {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.footer-social {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 100px;
    background: var(--surface);
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
    transition: color .2s, border-color .2s, transform .2s;
}

.footer-social svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.footer-social:hover {
    color: var(--text);
    border-color: color-mix(in srgb, var(--text) 30%, transparent);
    transform: translateY(-2px);
}

/* =========================================================
   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: 1 / -1;
    }

    .bento-card.large.has-terminal {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .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;
    }

    .visual {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        max-width: 100%;
    }

    .visual-card,
    .visual-card.has-photo {
        grid-column: 1 / -1;
        width: 100%;
    }

    .float,
    .float.one,
    .float.two {
        position: static;
        inset: auto;
        animation: none;
        white-space: normal;
        width: 100%;
        justify-content: flex-start;
        padding: 9px 11px;
    }

    .footer-connect {
        justify-content: flex-start;
    }
}

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

    .nav {
        gap: 8px;
    }

    .logo {
        gap: 8px;
        min-width: 0;
    }

    .logo-symbol {
        width: 32px;
        height: 32px;
        font-size: 12px;
        border-radius: 9px;
    }

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

    .logo-name small {
        font-size: 7px;
        letter-spacing: 1.4px;
    }

    .nav-actions {
        gap: 4px;
    }

    .nav-btn {
        width: 32px;
        height: 32px;
    }

    .lang-switch {
        height: 32px;
        padding: 2px;
    }

    .lang-trigger {
        width: 26px;
        height: 26px;
        font-size: 9.5px;
    }
}

/* =========================================================
   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);
}

.command-item[hidden],
.command-empty[hidden] {
    display: none !important;
}

/* =========================================================
   LIGHT THEME HIGH-CONTRAST POLISH (WCAG AA >= 4.5:1)
========================================================= */
:root[data-theme="light"],
:root:has(> head > meta[name="color-scheme"][content="light"]):not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f8f8f6;
    --surface: #ffffff;
    --surface2: #efefec;
    --text: #09090b;
    --muted: #3f3f46;
    --line: rgba(9, 9, 11, .12);
    --black: #09090b;
}

:root[data-theme="light"] body,
:root:has(> head > meta[name="color-scheme"][content="light"]):not([data-theme="dark"]) body {
    background-color: #f8f8f6;
    background-image:
        radial-gradient(at 0% 0%, rgba(226, 234, 246, .34) 0px, transparent 42%),
        radial-gradient(at 95% 8%, rgba(244, 238, 228, .36) 0px, transparent 38%);
    color: #09090b;
}

:root[data-theme="light"] .hero,
:root:has(> head > meta[name="color-scheme"][content="light"]):not([data-theme="dark"]) .hero {
    background:
        radial-gradient(ellipse 60% 50% at 78% 42%, rgba(215, 226, 240, .28), transparent 68%),
        radial-gradient(ellipse 50% 42% at 18% 28%, rgba(244, 240, 232, .32), transparent 65%);
}

:root[data-theme="light"] .hero-orb,
:root:has(> head > meta[name="color-scheme"][content="light"]):not([data-theme="dark"]) .hero-orb {
    background: radial-gradient(circle, rgba(205, 220, 244, .34) 0%, rgba(244, 236, 226, .22) 45%, transparent 70%);
    opacity: .75;
}

:root[data-theme="light"] .hero h1,
:root:has(> head > meta[name="color-scheme"][content="light"]):not([data-theme="dark"]) .hero h1 {
    color: #09090b;
}

:root[data-theme="light"] .hero h1 .gray,
:root:has(> head > meta[name="color-scheme"][content="light"]):not([data-theme="dark"]) .hero h1 .gray {
    color: #3f3f46;
}

:root[data-theme="light"] .logo-name span,
:root:has(> head > meta[name="color-scheme"][content="light"]):not([data-theme="dark"]) .logo-name span {
    color: #09090b;
}

:root[data-theme="light"] .logo-name small,
:root:has(> head > meta[name="color-scheme"][content="light"]):not([data-theme="dark"]) .logo-name small {
    color: #3f3f46;
    font-weight: 600;
}

:root[data-theme="light"] .hero-sub,
:root[data-theme="light"] .nav-links a,
:root[data-theme="light"] .meta-item span,
:root[data-theme="light"] .section-desc,
:root[data-theme="light"] .section-index,
:root[data-theme="light"] .hero-pill,
:root:has(> head > meta[name="color-scheme"][content="light"]):not([data-theme="dark"]) .hero-sub,
:root:has(> head > meta[name="color-scheme"][content="light"]):not([data-theme="dark"]) .nav-links a,
:root:has(> head > meta[name="color-scheme"][content="light"]):not([data-theme="dark"]) .meta-item span,
:root:has(> head > meta[name="color-scheme"][content="light"]):not([data-theme="dark"]) .section-desc,
:root:has(> head > meta[name="color-scheme"][content="light"]):not([data-theme="dark"]) .section-index {
    color: #3f3f46;
}

:root[data-theme="light"] .nav-links a:hover,
:root[data-theme="light"] .nav-links a.active,
:root:has(> head > meta[name="color-scheme"][content="light"]):not([data-theme="dark"]) .nav-links a:hover,
:root:has(> head > meta[name="color-scheme"][content="light"]):not([data-theme="dark"]) .nav-links a.active {
    color: #09090b;
}

/* =========================================================
   REACTIONS & FEEDBACK WIDGET (YOQDI / YOQMADI / FIKR)
========================================================= */
.article-card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    color: inherit;
    text-decoration: none;
}

.announcement-foot {
    margin-top: auto;
    padding-top: 10px;
}

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

.project-link {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-body .tags {
    margin-top: auto;
}

.project-reactions-wrap {
    padding: 0 25px 20px;
}

.reaction-widget--compact {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.reaction-widget--full {
    padding: 24px 26px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
}

.reaction-header {
    margin-bottom: 16px;
}

.reaction-title {
    font-family: var(--font-heading, 'Space Grotesk', sans-serif);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0 0 4px;
}

.reaction-subtitle {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
}

.reaction-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    max-width: 100%;
}

.reaction-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 8px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface2);
    color: var(--muted);
    font-family: inherit;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 1;
    min-width: 0;
    cursor: pointer;
    transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease), transform .15s var(--ease);
}

:is(.projects, .articles, .announcements-grid):has(.reaction-drawer:not([hidden])) {
    align-items: start;
}

.reaction-widget--full .reaction-actions {
    flex-wrap: wrap;
    gap: 10px;
}

.reaction-widget--full .reaction-btn {
    padding: 9px 15px;
    font-size: 13px;
    gap: 7px;
    flex-shrink: 0;
}

.reaction-btn svg {
    width: 12.5px;
    height: 12.5px;
    flex-shrink: 0;
}

.reaction-widget--full .reaction-btn svg {
    width: 15px;
    height: 15px;
}

@media (max-width: 520px) {
    .reaction-widget--compact .reaction-actions {
        gap: 4px;
    }

    .reaction-widget--compact .reaction-btn {
        padding: 4px 6.5px;
        font-size: 10.5px;
        gap: 3px;
    }

    .reaction-widget--compact .reaction-count {
        padding: 1px 4px;
        font-size: 10px;
    }

    .reaction-widget--full .reaction-btn--comment {
        margin-left: 0;
    }
}

/* =========================================================
   SOCIAL SHARE BAR (.share-bar)
========================================================= */
.share-bar {
    margin-top: 14px;
    padding: 14px 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--surface);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.share-bar-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--muted);
}

.share-bar-label svg {
    width: 15px;
    height: 15px;
}

.share-bar-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface2);
    color: var(--text);
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .2s var(--ease), background .2s var(--ease), transform .15s var(--ease);
}

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

.share-btn:hover {
    border-color: color-mix(in srgb, var(--text) 35%, var(--line));
    transform: translateY(-1px);
}

.share-btn.is-copied {
    border-color: rgba(34, 197, 94, 0.45);
    color: #22c55e;
    background: rgba(34, 197, 94, 0.12);
}

.reaction-btn:hover {
    color: var(--text);
    border-color: color-mix(in srgb, var(--text) 32%, var(--line));
    transform: translateY(-1px);
}

.reaction-btn--like.is-active {
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(34, 197, 94, 0.45);
    color: #22c55e;
}

:root[data-theme="light"] .reaction-btn--like.is-active,
:root:has(> head > meta[name="color-scheme"][content="light"]):not([data-theme="dark"]) .reaction-btn--like.is-active {
    color: #15803d;
    background: rgba(22, 163, 74, 0.12);
    border-color: rgba(22, 163, 74, 0.45);
}

.reaction-btn--dislike.is-active {
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(239, 68, 68, 0.45);
    color: #ef4444;
}

:root[data-theme="light"] .reaction-btn--dislike.is-active,
:root:has(> head > meta[name="color-scheme"][content="light"]):not([data-theme="dark"]) .reaction-btn--dislike.is-active {
    color: #b91c1c;
    background: rgba(220, 38, 38, 0.11);
    border-color: rgba(220, 38, 38, 0.45);
}

.reaction-btn--comment {
    margin-left: auto;
}

.reaction-btn--comment.has-my-comment {
    border-color: color-mix(in srgb, var(--text) 38%, var(--line));
    color: var(--text);
}

.reaction-count {
    font-family: var(--font-heading, 'Space Grotesk', sans-serif);
    font-weight: 700;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--bg) 60%, transparent);
}

.reaction-status {
    margin-top: 10px;
    font-size: 12px;
    color: #22c55e;
    font-weight: 500;
}

:root[data-theme="light"] .reaction-status:not(.is-error) {
    color: #15803d;
}

.reaction-status.is-error {
    color: #ef4444;
}

.hp-field {
    display: none !important;
}

.reaction-drawer {
    margin-top: 12px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface2) 70%, var(--bg));
}

.reaction-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.reaction-field--grow {
    flex: 1;
    min-width: 170px;
}

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

.reaction-form-top {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    margin-bottom: 10px;
}

.reaction-choice-group {
    display: inline-flex;
    gap: 6px;
}

.reaction-choice-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.reaction-choice-pill svg {
    width: 13px;
    height: 13px;
}

.reaction-choice-pill.is-active.is-like {
    border-color: rgba(34, 197, 94, 0.5);
    color: #22c55e;
    background: rgba(34, 197, 94, 0.12);
}

.reaction-choice-pill.is-active.is-dislike {
    border-color: rgba(239, 68, 68, 0.5);
    color: #ef4444;
    background: rgba(239, 68, 68, 0.12);
}

.reaction-input,
.reaction-textarea {
    width: 100%;
    padding: 8px 12px;
    border-radius: 11px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    font-family: inherit;
    font-size: 12.5px;
    outline: none;
}

.reaction-form-top .reaction-input {
    flex: 1;
    min-width: 150px;
}

.reaction-input:focus,
.reaction-textarea:focus {
    border-color: color-mix(in srgb, var(--text) 45%, var(--line));
}

.reaction-textarea {
    resize: vertical;
    min-height: 62px;
    line-height: 1.5;
}

.reaction-form-foot {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.reaction-hint {
    font-size: 11px;
    color: var(--muted);
}

.reaction-comments-wrap {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.reaction-comments-head {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 10px;
}

.reaction-comments-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reaction-comment-item {
    padding: 10px 13px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--surface);
}

.reaction-comment-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    margin-bottom: 4px;
}

.reaction-comment-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10.5px;
    padding: 2px 7px;
    border-radius: 999px;
    font-weight: 600;
}

.reaction-comment-badge svg {
    width: 11.5px;
    height: 11.5px;
}

@media print {
    header,
    footer,
    .no-print,
    .breadcrumb,
    .skip-link,
    .mouse-glow,
    .cursor,
    .progress,
    .grid-bg,
    dialog {
        display: none !important;
    }

    body {
        background: #ffffff !important;
        color: #09090b !important;
    }

    .page-hero {
        padding: 16px 0 12px !important;
        border-bottom: 1px solid #d4d4d8 !important;
    }

    .panel-card,
    .about-info {
        break-inside: avoid;
        border: 1px solid #d4d4d8 !important;
        background: #ffffff !important;
    }
}

/* =========================================================
   EXECUTIVE TYPOGRAPHY & PROPORTION REFINEMENT
========================================================= */
:root {
    --max: 1180px;
    --radius: 20px;
}

.hero {
    min-height: auto;
    padding: 102px 0 60px;
}

.hero-orb {
    width: 450px;
    height: 450px;
}

.hero-grid {
    gap: 48px;
}

.hero-pill {
    margin-bottom: 14px;
    font-size: 11px;
    padding: 6px 12px;
}

.hero h1 {
    font-size: clamp(34px, 4.4vw, 58px);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.hero-sub {
    max-width: 520px;
    font-size: 14.5px;
    line-height: 1.65;
    margin-top: 16px;
}

.hero-actions {
    gap: 10px;
    margin-top: 20px;
}

.btn {
    min-height: 38px;
    padding: 0 15px;
    border-radius: var(--radius-btn, min(var(--radius), 10px));
    font-size: 12px;
}

.btn.btn-sm {
    min-height: 32px;
    padding: 0 11px;
    border-radius: var(--radius-btn-sm, min(var(--radius), 9px));
    font-size: 11.5px;
}

.hero-meta {
    gap: 22px;
    margin-top: 24px;
    padding-top: 16px;
}

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

.meta-item span {
    font-size: 10.5px;
}

.visual-showcase,
.visual-card,
.visual-card.has-photo {
    width: min(350px, 100%);
    border-radius: 24px;
}

.visual-card::before {
    font-size: 145px;
    letter-spacing: -9px;
}

.float.one {
    left: -20px;
}

.float.two {
    right: -18px;
}

section {
    padding: 64px 0;
}

.page-hero {
    padding: 98px 0 38px;
}

.breadcrumb {
    font-size: 11.5px;
    margin-bottom: 10px;
}

.section-head {
    gap: 28px;
    margin-bottom: 28px;
}

.section-index {
    font-size: 10.5px;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
}

.section-title {
    font-size: clamp(24px, 2.7vw, 36px);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.section-desc {
    max-width: 420px;
    font-size: 13.5px;
    line-height: 1.6;
}

.section-foot {
    margin-top: 22px;
}

.marquee {
    padding: 12px 0;
}

.marquee-group {
    gap: 26px;
    padding-right: 26px;
}

.marquee span {
    font-size: 11px;
    letter-spacing: 1.6px;
}

.about-grid {
    gap: 44px;
}

.about-lead {
    font-size: clamp(17px, 1.8vw, 22px);
    line-height: 1.45;
    letter-spacing: -0.02em;
}

.info-row {
    padding: 11px 0;
    font-size: 12.5px;
}

.panel-card {
    border-radius: 18px;
    padding: 20px;
}

.panel-card h3 {
    font-size: 16px;
}

.bento-card {
    padding: 20px 22px;
    border-radius: 20px;
}

.bento-icon {
    width: 34px;
    height: 34px;
    margin-bottom: 14px;
}

.bento-card h3 {
    font-size: 17px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.bento-card p,
.bento-main .bento-desc {
    font-size: 13px;
    line-height: 1.58;
    margin-top: 6px;
}

.bento-num {
    right: 18px;
    top: 18px;
    font-size: 10.5px;
}

.stats {
    border-radius: 18px;
}

.stat {
    padding: 18px 20px;
}

.stat-number {
    font-size: clamp(24px, 2.5vw, 30px);
    letter-spacing: -1.2px;
    line-height: 1.1;
}

.project {
    border-radius: 20px;
}

.project-preview {
    height: 220px;
}

.project-art-title {
    font-size: clamp(16px, 1.6vw, 20px);
    line-height: 1.22;
    letter-spacing: -0.02em;
}

.project-body {
    padding: 18px 20px;
}

.project-reactions-wrap {
    padding: 0 20px 16px;
}

.project-body h3 {
    font-size: 18px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.project-body p,
.project-body .project-excerpt {
    font-size: 13px;
    line-height: 1.55;
    margin: 6px 0 12px;
}

.article {
    min-height: 240px;
    padding: 18px 20px;
    border-radius: 18px;
}

.article h3 {
    font-size: 17px;
    line-height: 1.28;
    letter-spacing: -0.02em;
    margin-top: 12px;
}

.article p,
.article .article-excerpt {
    font-size: 12.5px;
    line-height: 1.55;
    margin-top: 7px;
}

.announcement-card {
    padding: 18px 20px;
    border-radius: 18px;
}

.announcement-card h3 {
    font-size: 16.5px;
    line-height: 1.28;
    letter-spacing: -0.015em;
}

.timeline-item {
    padding: 0 0 32px 28px;
}

.timeline-item h3 {
    font-size: 17.5px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.timeline-item p,
.timeline-item .timeline-desc {
    font-size: 13px;
    line-height: 1.6;
}

.detail-cover img {
    max-height: 390px;
}

.prose {
    font-size: 14.5px;
    line-height: 1.72;
}

.prose h1 {
    font-size: 22px;
    line-height: 1.25;
    margin: 22px 0 10px;
}

.prose h2 {
    font-size: 19px;
    line-height: 1.28;
    margin: 20px 0 9px;
}

.prose h3 {
    font-size: 16.5px;
    line-height: 1.32;
    margin: 18px 0 8px;
}

.prose h4 {
    font-size: 15px;
    line-height: 1.35;
    margin: 16px 0 6px;
}

/* Contact Card & Form (07 — ALOQA) */
.contact {
    border-radius: 22px;
    padding: 38px 26px;
}

.contact::before {
    font-size: clamp(120px, 14vw, 175px);
    letter-spacing: -8px;
    opacity: 0.02;
}

.contact h2 {
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.contact-lead {
    max-width: 500px;
    font-size: 13.5px;
    line-height: 1.6;
    margin: 10px auto 0;
}

.socials {
    gap: 8px;
    margin-top: 14px;
}

.social {
    padding: 6px 12px;
    font-size: 11.5px;
}

.contact-form {
    max-width: 520px;
    margin: 20px auto 0;
    padding-top: 18px;
}

.form-grid {
    gap: 10px;
}

.field {
    gap: 4px;
    margin-bottom: 9px;
}

.field label {
    font-size: 11.5px;
}

.field input,
.field textarea {
    font-size: 13.5px;
    padding: 8px 12px;
    min-height: 38px;
    border-radius: 9px;
}

.field textarea {
    min-height: 82px;
}

.field-error {
    font-size: 11.5px;
    min-height: 0;
}

.field-error:empty {
    display: none;
}

@media (max-width: 640px) {
    section {
        padding: 48px 0;
    }

    .page-hero {
        padding: 86px 0 30px;
    }

    .contact {
        padding: 30px 16px;
        border-radius: 18px;
    }

    .field input,
    .field textarea {
        font-size: 16px;
    }
}

.reaction-comment-badge.is-like {
    background: rgba(34, 197, 94, 0.14);
    color: #22c55e;
}

.reaction-comment-badge.is-dislike {
    background: rgba(239, 68, 68, 0.14);
    color: #ef4444;
}

.reaction-comment-date {
    color: var(--muted);
    font-size: 10.5px;
    margin-left: auto;
}

.reaction-comment-text {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--text);
}

/* =========================================================
   INTERNATIONAL RESUME / CV SHEET & USER WORD BUILDER
========================================================= */
.resume-hero-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;
}

.resume-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cv-sheet {
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    padding: 34px 36px;
    box-shadow: var(--shadow);
}

.cv-head {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.cv-block {
    padding: 0;
}

.cv-head-main {
    flex: 1;
    min-width: 0;
}

.cv-name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.cv-name-row h1 {
    font-family: var(--font-heading, 'Space Grotesk', sans-serif);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin: 0;
}

.cv-avail-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    font-size: 11px;
    font-weight: 600;
    color: var(--text);
}

.cv-avail-pill .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
}

.cv-headline {
    margin: 7px 0 0;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--muted);
}

.cv-contact-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 14px;
    font-size: 12.5px;
    color: var(--muted);
}

.cv-contact-strip span,
.cv-contact-strip a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text);
}

.cv-contact-strip a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cv-contact-strip svg {
    width: 13.5px;
    height: 13.5px;
    color: var(--muted);
    flex-shrink: 0;
}

.cv-photo-wrap {
    width: 112px;
    height: 112px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    flex-shrink: 0;
    background: var(--surface2);
}

.cv-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cv-summary-block {
    margin-top: 22px;
}

.cv-summary-text {
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--muted);
}

.cv-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
    gap: 30px;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.cv-col-main,
.cv-col-side {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.cv-sec-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-heading, 'Space Grotesk', sans-serif);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
    margin: 0 0 12px;
}

.cv-sec-title svg {
    width: 14px;
    height: 14px;
}

.cv-item {
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px dashed var(--line);
}

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

.cv-item-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

.cv-item-head h3 {
    font-size: 15.5px;
    line-height: 1.3;
    margin: 0;
}

.cv-item-org {
    font-size: 12.5px;
    color: var(--muted);
    margin-top: 2px;
}

.cv-item-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.cv-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--bg);
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
}

.cv-badge.is-accent {
    color: var(--text);
    border-color: color-mix(in srgb, var(--text) 35%, var(--line));
}

.cv-bullets {
    margin: 8px 0 0 18px;
    padding: 0;
    font-size: 13px;
    line-height: 1.58;
    color: var(--muted);
}

.cv-bullets li {
    margin-bottom: 4px;
}

.cv-note {
    margin: 6px 0 0;
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--muted);
}

.cv-skill-group {
    margin-bottom: 12px;
}

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

.cv-skill-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    margin-bottom: 6px;
}

.cv-skill-head span {
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
}

.cv-skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.cv-tag {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 7px;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--text);
}

.cv-lang-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.cv-lang-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--bg);
    font-size: 12.5px;
}

.cv-lang-row small {
    display: block;
    font-size: 11px;
    color: var(--muted);
}

.cv-cert-row {
    padding: 8px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 12.5px;
}

.cv-cert-row:last-child {
    border-bottom: 0;
}

.cv-cert-row small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-top: 2px;
}

.cv-pdf-viewer-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    overflow: hidden;
}

.cv-pdf-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
}

.cv-pdf-head svg {
    width: 18px;
    height: 18px;
}

.cv-pdf-frame {
    width: 100%;
    height: 760px;
    border: 0;
    background: #fff;
    display: block;
}

/* Visitor Word Template & Builder Box */
.cv-builder-box {
    margin-top: 32px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    padding: 24px 28px;
}

.cv-builder-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.cv-builder-head h2 {
    font-family: var(--font-heading, 'Space Grotesk', sans-serif);
    font-size: clamp(18px, 2.2vw, 24px);
    margin: 0 0 4px;
    letter-spacing: -0.02em;
}

.cv-builder-head p {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
    max-width: 680px;
}

.cv-builder-drawer {
    margin-top: 18px;
    border-top: 1px solid var(--line);
    padding-top: 14px;
}

.cv-builder-summary {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 13.5px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--bg);
    list-style: none;
}

.cv-builder-summary::-webkit-details-marker {
    display: none;
}

.cv-builder-form {
    margin-top: 18px;
}

.cv-builder-form select {
    width: 100%;
    font: inherit;
    font-size: 13.5px;
    padding: 8px 12px;
    min-height: 38px;
    border-radius: 9px;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--text);
}

.cv-dyn-group {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--bg);
}

.cv-dyn-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 13px;
}

.cv-dyn-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cv-dyn-row {
    padding: 10px;
    border-radius: 10px;
    border: 1px dashed var(--line);
    background: var(--surface);
}

.cv-dyn-row-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
}

.cv-dyn-list .cv-dyn-row:first-child .cv-dyn-row-bar {
    display: none;
}

.cv-lang-dyn-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.cv-builder-status {
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--line);
    font-size: 13px;
    font-weight: 500;
}

.cv-builder-status.is-loading {
    background: color-mix(in srgb, var(--accent) 10%, var(--bg));
    border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
    color: var(--text);
}

.cv-builder-status.is-success {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.4);
    color: #16a34a;
}

.cv-builder-status.is-error {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.4);
    color: #dc2626;
}

@media (max-width: 860px) {
    .cv-sheet {
        padding: 22px 18px;
    }

    .cv-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cv-head {
        flex-direction: column-reverse;
    }

    .cv-builder-form .form-grid,
    .cv-lang-dyn-grid {
        grid-template-columns: 1fr !important;
    }
}

@media print {
    @page {
        size: A4;
        margin: 10mm;
    }

    :root,
    [data-theme="dark"],
    [data-theme="light"] {
        --bg: #ffffff !important;
        --surface: #ffffff !important;
        --surface2: #f8fafc !important;
        --text: #09090b !important;
        --muted: #475569 !important;
        --line: #d4d4d8 !important;
    }

    main section {
        padding: 0 !important;
    }

    .cv-sheet,
    .cv-sheet * {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .cv-sheet {
        border: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
        background: #ffffff !important;
        color: #09090b !important;
    }

    .cv-head {
        padding-bottom: 12px !important;
        gap: 16px !important;
        flex-direction: row !important;
    }

    .cv-photo-wrap {
        width: 88px !important;
        height: 88px !important;
    }

    .cv-summary-block {
        margin-top: 12px !important;
    }

    .cv-columns {
        grid-template-columns: 1.85fr 1fr !important;
        gap: 16px !important;
        margin-top: 14px !important;
    }

    .cv-block + .cv-block {
        margin-top: 12px !important;
    }

    .cv-sec-title {
        margin-bottom: 8px !important;
    }

    .cv-item {
        margin-bottom: 10px !important;
    }

    .cv-skill-group {
        margin-bottom: 8px !important;
    }

    .cv-lang-list {
        gap: 6px !important;
    }

    .cv-lang-row {
        padding: 5px 8px !important;
    }

    .cv-tag {
        padding: 2px 6px !important;
        font-size: 10.5px !important;
    }

    .cv-name-row h1,
    .cv-sec-title,
    .cv-item h3,
    .cv-bullets,
    .cv-note,
    .cv-contact-strip a,
    .cv-contact-strip span,
    .cv-summary-text,
    .cv-skill-head strong,
    .cv-lang-row strong,
    .cv-cert-row strong {
        color: #09090b !important;
    }

    .cv-headline,
    .cv-item-org,
    .cv-contact-strip svg,
    .cv-skill-head span,
    .cv-lang-row small,
    .cv-cert-row small {
        color: #334155 !important;
    }

    .cv-item,
    .cv-lang-row,
    .cv-skill-group,
    .cv-cert-row {
        break-inside: avoid;
    }

    .cv-badge,
    .cv-tag,
    .cv-lang-row,
    .cv-avail-pill {
        border-color: #d4d4d8 !important;
        background: #f8fafc !important;
        color: #09090b !important;
    }
}

/* ==========================================================================
   A13 Universal Advertising System — Popup Modal
   ========================================================================== */
.a13-ad-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9990;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(2, 6, 23, .62);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity .22s ease;
}
.a13-ad-backdrop.is-open {
    opacity: 1;
}
.a13-ad-modal {
    position: relative;
    width: 100%;
    max-height: min(86vh, 720px);
    overflow-y: auto;
    border-radius: 18px;
    background: var(--surface, #111827);
    color: var(--text, #f8fafc);
    border: 1px solid var(--line, rgba(148, 163, 184, .22));
    box-shadow: 0 28px 70px rgba(0, 0, 0, .42);
    transition: transform .24s cubic-bezier(.16, 1, .3, 1), opacity .22s ease;
}
.a13-ad-modal.sz-sm { max-width: min(380px, calc(100vw - 28px)); }
.a13-ad-modal.sz-md { max-width: min(500px, calc(100vw - 28px)); }
.a13-ad-modal.sz-lg { max-width: min(660px, calc(100vw - 28px)); }

.a13-ad-modal.anim-scale { transform: scale(.93); opacity: 0; }
.a13-ad-modal.anim-fade { opacity: 0; }
.a13-ad-modal.anim-slide_up { transform: translateY(24px); opacity: 0; }
.a13-ad-backdrop.is-open .a13-ad-modal { transform: none; opacity: 1; }

.a13-ad-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(15, 23, 42, .72);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}
.a13-ad-close:hover {
    background: rgba(15, 23, 42, .94);
    transform: scale(1.06);
}
.a13-ad-inner {
    display: flex;
    flex-direction: column;
}
.a13-ad-inner.pos-left { flex-direction: row; }
.a13-ad-inner.pos-right { flex-direction: row-reverse; }
.a13-ad-media {
    background: #020617;
    flex-shrink: 0;
    overflow: hidden;
}
.a13-ad-inner.pos-left .a13-ad-media,
.a13-ad-inner.pos-right .a13-ad-media {
    width: 44%;
}
.a13-ad-media img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 300px;
    object-fit: cover;
}
.a13-ad-media video,
.a13-ad-media iframe {
    display: block;
    width: 100%;
    border: 0;
}
.a13-ad-media.vid-compact video,
.a13-ad-media.vid-compact iframe { height: 200px; }
.a13-ad-media.vid-standard video,
.a13-ad-media.vid-standard iframe { height: 270px; }
.a13-ad-media.vid-wide video,
.a13-ad-media.vid-wide iframe { height: 340px; }

.a13-ad-modal.pos-background {
    background-size: cover;
    background-position: center;
}
.a13-ad-modal.pos-background .a13-ad-body {
    background: linear-gradient(180deg, rgba(2, 6, 23, .52), rgba(2, 6, 23, .88));
    color: #f8fafc;
}
.a13-ad-body {
    padding: 22px 24px;
    flex: 1;
    min-width: 0;
}
.a13-ad-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent, #10b981) 16%, transparent);
    color: var(--accent, #10b981);
    margin-bottom: 10px;
}
.a13-ad-title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}
.a13-ad-short {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.5;
    opacity: .9;
}
.a13-ad-text {
    margin: 0 0 12px;
    font-size: 13.5px;
    line-height: 1.58;
    opacity: .8;
    white-space: pre-line;
}
.a13-ad-extra {
    margin: 0 0 14px;
    font-size: 12px;
    opacity: .68;
}
.a13-ad-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 14px;
}
.a13-ad-body.align-center { text-align: center; }
.a13-ad-body.align-center .a13-ad-actions { justify-content: center; }
.a13-ad-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: transform .15s ease, opacity .15s ease;
}
.a13-ad-cta:hover { transform: translateY(-1px); opacity: .94; }
.a13-ad-cta.st-primary { background: var(--accent, #10b981); color: var(--accent-fg, #042f2e); }
.a13-ad-cta.st-accent { background: #38bdf8; color: #082f49; }
.a13-ad-cta.st-outline { background: transparent; border: 1.5px solid var(--accent, #10b981); color: var(--accent, #10b981); }
.a13-ad-cta.st-gradient { background: linear-gradient(135deg, var(--accent, #10b981), #06b6d4); color: #042f2e; }
.a13-ad-html { font-size: 14px; line-height: 1.55; }
.a13-ad-html img { max-width: 100%; height: auto; border-radius: 10px; }

@media (max-width: 640px) {
    .a13-ad-backdrop { padding: 12px; }
    .a13-ad-inner.pos-left,
    .a13-ad-inner.pos-right { flex-direction: column; }
    .a13-ad-inner.pos-left .a13-ad-media,
    .a13-ad-inner.pos-right .a13-ad-media { width: 100%; }
    .a13-ad-body { padding: 16px 18px; }
    .a13-ad-title { font-size: 17px; }
    .a13-ad-media.vid-standard video,
    .a13-ad-media.vid-standard iframe,
    .a13-ad-media.vid-wide video,
    .a13-ad-media.vid-wide iframe { height: 205px; }
}

/* Visual Advertisement Builder rich HTML content */
.a13-ad-rich { font-size: 14px; line-height: 1.6; }
.a13-ad-rich h1 { font-size: 22px; margin: 0 0 10px; line-height: 1.28; }
.a13-ad-rich h2 { font-size: 19px; margin: 0 0 8px; line-height: 1.3; }
.a13-ad-rich h3 { font-size: 16.5px; margin: 0 0 8px; }
.a13-ad-rich p { margin: 0 0 10px; }
.a13-ad-rich ul, .a13-ad-rich ol { margin: 0 0 10px 20px; }
.a13-ad-rich hr { border: 0; border-top: 1px solid var(--line, rgba(148,163,184,.25)); margin: 14px 0; }
.a13-ad-rich figure.ad-media-block { margin: 12px 0; }
.a13-ad-rich img, .a13-ad-rich video { max-width: 100%; height: auto; border-radius: 10px; display: block; }
.a13-ad-rich .ad-video-embed { margin: 12px 0; }
.a13-ad-rich .ad-video-embed iframe { width: 100%; height: 240px; border: 0; border-radius: 10px; display: block; }
