:root {
    --bg: #07080d;
    --bg-2: #0c0e16;
    --stage: rgba(10, 12, 18, 0.72);
    --stage-solid: #0d1018;
    --panel: rgba(14, 16, 26, 0.88);
    --card: #10131c;
    --card-2: #161a26;
    --text: #f4f6fb;
    --muted: #a3abbb;
    --faint: #737c90;
    --line: rgba(255, 255, 255, 0.08);
    --line-2: rgba(255, 255, 255, 0.14);
    --purple: #c4b5fd;
    --purple-2: #8b7cff;
    --blue: #7cb6ff;
    --grad-a: #e4d8ff;
    --grad-b: #8b7cff;
    --grad-c: #5eb6ff;
    --glow: rgba(124, 92, 252, 0.35);
    --shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
    --btn: #f4f6fb;
    --btn-text: #12141c;
    --input: rgba(255, 255, 255, 0.03);
    --chip: rgba(255, 255, 255, 0.04);
    --grid: rgba(255, 255, 255, 0.035);
    --star: rgba(255, 255, 255, 0.72);
    --particle: rgba(196, 186, 255, 0.85);
    --ok: #86efac;
    --warn: #fcd34d;
    --danger: #fb7185;
    --terminal: rgba(7, 9, 14, 0.9);
    --display: "Syne", "Manrope", sans-serif;
    --font: "Manrope", "Segoe UI", sans-serif;
    --mono: "JetBrains Mono", ui-monospace, monospace;
    --radius: 22px;
    color-scheme: dark;
}

html[data-theme="light"] {
    --bg: #e7ebf3;
    --bg-2: #f7f8fb;
    --stage: rgba(255, 255, 255, 0.82);
    --stage-solid: #ffffff;
    --panel: rgba(255, 255, 255, 0.92);
    --card: #ffffff;
    --card-2: #f3f5fa;
    --text: #16181f;
    --muted: #596173;
    --faint: #7b8496;
    --line: rgba(22, 26, 40, 0.08);
    --line-2: rgba(22, 26, 40, 0.14);
    --purple: #6d4dff;
    --purple-2: #5b3df5;
    --blue: #1d4ed8;
    --grad-a: #6d28d9;
    --grad-b: #4338ca;
    --grad-c: #0369a1;
    --glow: rgba(91, 61, 245, 0.16);
    --shadow: 0 18px 50px rgba(40, 48, 80, 0.08);
    --btn: #171923;
    --btn-text: #f8fafc;
    --input: #ffffff;
    --chip: rgba(22, 26, 40, 0.04);
    --grid: rgba(40, 52, 90, 0.05);
    --star: rgba(48, 42, 92, 0.45);
    --particle: rgba(79, 70, 229, 0.45);
    color-scheme: light;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }

::selection { background: rgba(139, 124, 255, 0.35); color: #fff; }
html[data-theme="light"] ::selection { color: #1a1330; }

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip {
    position: absolute;
    left: 16px;
    top: -48px;
    z-index: 50;
    background: var(--btn);
    color: var(--btn-text);
    padding: 10px 14px;
    border-radius: 999px;
}

.skip:focus { top: 12px; }

.ambient {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        radial-gradient(900px 520px at 8% 0%, rgba(124, 92, 252, 0.16), transparent 60%),
        radial-gradient(700px 420px at 92% 12%, rgba(56, 189, 248, 0.08), transparent 55%),
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: auto, auto, 72px 72px, 72px 72px;
}

html[data-theme="light"] .ambient {
    background-image:
        radial-gradient(900px 520px at 8% 0%, rgba(109, 77, 255, 0.12), transparent 60%),
        radial-gradient(700px 420px at 92% 12%, rgba(37, 99, 235, 0.08), transparent 55%),
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
}

.ambient canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.shell {
    position: relative;
    z-index: 1;
    width: 100%;
    margin: 0;
}

.wrap {
    width: min(1120px, calc(100% - 40px));
    margin-inline: auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 8px;
    min-width: 0;
}

.brand .mark,
.brand-lockup .mark {
    width: 36px;
    height: 36px;
    flex: none;
    filter: drop-shadow(0 8px 14px rgba(139, 124, 255, 0.35));
}

.brand .wordmark { margin: 0; font-size: 12px; letter-spacing: 0.2em; }

.icon { width: 18px; height: 18px; flex: none; }
.icon-lg { width: 28px; height: 28px; }

.rail {
    position: sticky;
    top: 16px;
    padding: 18px 8px 8px 10px;
}

.mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    flex: none;
}

.mark .logo {
    width: 36px;
    height: 36px;
    display: block;
}

.wordmark {
    margin-top: 16px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.28em;
}

.wordmark span { color: var(--purple); }

.rail-title {
    margin-top: 22px;
    font-family: var(--display);
    font-size: clamp(2rem, 2.4vw, 2.7rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
    font-weight: 750;
    max-width: 11ch;
}

.rail-copy {
    margin-top: 14px;
    color: var(--muted);
    font-size: 0.95rem;
    max-width: 32ch;
}

.feature-list {
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 0.92rem;
}

.icon-wrap {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: color-mix(in srgb, currentColor 14%, transparent);
}

.feature-list li:nth-child(1) .icon-wrap { color: #c4b5fd; }
.feature-list li:nth-child(2) .icon-wrap { color: #7dd3fc; }
.feature-list li:nth-child(3) .icon-wrap { color: #a5b4fc; }
.feature-list li:nth-child(4) .icon-wrap { color: #d8b4fe; }
.feature-list li:nth-child(5) .icon-wrap { color: #f0abfc; }
.feature-list li:nth-child(6) .icon-wrap { color: #86efac; }

.social {
    display: flex;
    gap: 8px;
    margin-top: 18px;
}

.social a,
.icon-btn,
.nav-toggle {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    border: 1px solid var(--line-2);
    background: var(--chip);
    color: var(--text);
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.social a:hover,
.icon-btn:hover,
.nav-toggle:hover {
    border-color: color-mix(in srgb, var(--purple) 55%, transparent);
    transform: translateY(-1px);
}

.phone {
    width: 214px;
    margin-top: 26px;
    padding: 8px;
    border-radius: 30px;
    background: linear-gradient(180deg, #343846, #12141c);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phone-screen {
    position: relative;
    overflow: hidden;
    min-height: 300px;
    border-radius: 24px;
    padding: 16px 14px;
    background:
        radial-gradient(120px 80px at 80% 20%, rgba(139, 124, 255, 0.35), transparent 70%),
        #090b11;
    color: #f4f6fb;
}

.phone-top {
    display: flex;
    justify-content: space-between;
    color: #9aa3b5;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.08em;
}

.phone-badge {
    display: inline-flex;
    margin-top: 28px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.08em;
    color: #d6d3e8;
}

.phone-title {
    margin-top: 12px;
    font-family: var(--display);
    font-size: 1.35rem;
    line-height: 1;
    letter-spacing: -0.04em;
}

.phone-copy {
    margin-top: 8px;
    color: #a3abbb;
    font-size: 0.78rem;
}

.phone-actions {
    display: flex;
    gap: 6px;
    margin-top: 14px;
}

.phone-actions span {
    border-radius: 999px;
    padding: 6px 8px;
    font-size: 10px;
    background: #f4f6fb;
    color: #12141c;
}

.phone-actions span:last-child {
    background: transparent;
    color: #f4f6fb;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.phone-geo {
    position: absolute;
    right: -20px;
    bottom: -30px;
    width: 120px;
    height: 120px;
    border: 1px solid rgba(196, 181, 253, 0.35);
    transform: rotate(18deg);
    border-radius: 18px;
}

.stage {
    position: relative;
    width: 100%;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.topbar {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 20;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}

.bar {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.page-home .hero { padding-top: 36px; }

.page-home .topbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: color-mix(in srgb, var(--bg) 78%, transparent);
}

html[data-theme="light"] .page-home .topbar {
    background: color-mix(in srgb, #f7f8fb 88%, transparent);
}

.page-home .topbar.is-open,
.topbar:not(.page-home .topbar) {
    position: sticky;
    top: 0;
    background: color-mix(in srgb, var(--stage-solid) 88%, transparent);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
}

.topbar.is-open { border-bottom-color: var(--line); }

.nav-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    border: 1px solid var(--line);
    color: var(--purple);
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-left: auto;
}

.nav-links a,
.nav-drawer a {
    position: relative;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 600;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-drawer a:hover,
.nav-links a[aria-current="page"],
.nav-drawer a[aria-current="page"] {
    color: var(--text);
    background: var(--chip);
}

.nav-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
}

.nav-toggle { display: none; background: transparent; }

.nav-cta { white-space: nowrap; }

.nav-drawer {
    display: none;
    position: absolute;
    left: max(20px, calc((100% - 1120px) / 2));
    right: max(20px, calc((100% - 1120px) / 2));
    top: calc(100% + 8px);
    padding: 10px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--stage-solid);
    box-shadow: var(--shadow);
}

.nav-drawer a { display: block; }

.when-light { display: none; }
html[data-theme="light"] .when-dark { display: none; }
html[data-theme="light"] .when-light { display: inline-grid; }

.hero {
    position: relative;
    min-height: 0;
    width: min(1120px, calc(100% - 40px));
    margin: 6px auto 0;
    padding: 6px 0 4px;
    overflow: hidden;
    background:
        radial-gradient(520px 260px at 78% 18%, rgba(139, 124, 255, 0.2), transparent 62%),
        radial-gradient(420px 240px at 18% 90%, rgba(56, 189, 248, 0.08), transparent 70%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--star) 0.7px, transparent 0.8px);
    background-size: 46px 46px;
    mask-image: radial-gradient(circle at 70% 40%, #000 0%, transparent 72%);
    opacity: 0.45;
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 22px;
    align-items: start;
}

.hero-grid > * { min-width: 0; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--line-2);
    background: color-mix(in srgb, var(--card) 70%, transparent);
    color: var(--muted);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.14em;
}

.hero h1,
.page-head h1,
.article h1 {
    font-family: var(--display);
    font-weight: 750;
    letter-spacing: -0.045em;
    line-height: 0.98;
    text-wrap: balance;
}

.hero h1 {
    font-size: clamp(2.45rem, 3.7vw, 3.7rem);
    max-width: 11em;
}

.hero h1 .grad {
    display: inline;
}

.page-head h1 { font-size: clamp(2.1rem, 4vw, 3.3rem); max-width: 16ch; }
.article h1 { font-size: clamp(2rem, 4vw, 3rem); max-width: 20ch; }

.grad {
    background-image: linear-gradient(105deg, var(--grad-a), var(--grad-b) 42%, var(--grad-c));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lede {
    margin-top: 10px;
    max-width: 68ch;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.65;
}

.tech-row,
.techs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.tech-row li,
.techs li,
.chip,
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--chip);
    color: var(--muted);
    padding: 5px 10px;
    font-size: 0.78rem;
    font-weight: 650;
}

.hero-actions,
.project-actions,
.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: var(--btn);
    color: var(--btn-text);
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn .icon { width: 16px; height: 16px; transition: transform 0.2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:hover .icon { transform: translateX(2px); }

.btn-ghost,
.btn-disabled {
    background: transparent;
    color: var(--text);
    border-color: var(--line-2);
}

.btn-disabled {
    color: var(--faint);
    pointer-events: none;
}

.btn-small { min-height: 36px; padding: 0 12px; font-size: 0.85rem; }
.btn-danger { background: transparent; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, transparent); }

.terminal {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--terminal);
    color: #e7e9f4;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(139, 124, 255, 0.08);
    overflow: hidden;
    min-height: 280px;
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: #9aa3b5;
    font-family: var(--mono);
    font-size: 12px;
}

.dots { display: flex; gap: 6px; }
.dots i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: block;
}
.dots i:nth-child(1) { background: #fb7185; }
.dots i:nth-child(2) { background: #fcd34d; }
.dots i:nth-child(3) { background: #86efac; }
.terminal-bar span { margin-left: auto; }

.terminal-body {
    margin: 0;
    padding: 16px 16px 20px;
    min-height: 220px;
    font-family: var(--mono);
    font-size: 13px;
    line-height: 1.7;
    white-space: pre-wrap;
}

.terminal-body .cmd { color: #f8fafc; }
.terminal-body .out { color: #a3abbb; }
.caret {
    display: inline-block;
    width: 8px;
    height: 1em;
    margin-left: 2px;
    background: #c4b5fd;
    transform: translateY(2px);
    animation: blink 1s steps(1) infinite;
}

.geo {
    position: absolute;
    color: rgba(186, 198, 230, 0.45);
    pointer-events: none;
    z-index: 0;
}

.geo-1 { width: 180px; right: 6%; top: 18%; animation: floaty 14s ease-in-out infinite; }
.geo-2 { width: 92px; right: 24%; top: 12%; animation: floaty 18s ease-in-out infinite reverse; }

.stage-body {
    padding: 18px;
    display: grid;
    gap: 16px;
}

.page-index {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    width: min(1120px, calc(100% - 40px));
    margin: 28px auto 20px;
    padding: 0;
}

.door {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-height: 0;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--panel);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.door:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--purple) 50%, var(--line));
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.16);
}

.door .icon-wrap,
.about-card .icon-wrap { color: var(--purple); }

.door strong {
    font-family: var(--display);
    font-size: 1.2rem;
    letter-spacing: -0.04em;
}

.door span { color: var(--muted); font-size: 0.9rem; }
.door em {
    margin-top: 2px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-style: normal;
    font-weight: 700;
    font-size: 0.86rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 28px;
}

.about-card h2 {
    margin-top: 12px;
    font-family: var(--display);
    font-size: 1.25rem;
    letter-spacing: -0.04em;
}

.about-card p { margin-top: 8px; color: var(--muted); }
.profile-line { margin-bottom: 4px; }

.page-next {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 22px;
    margin-top: 22px;
}

.empty-stage {
    max-width: 640px;
    margin-top: 8px;
    padding: 36px 28px;
    border-radius: 22px;
    border: 1px dashed var(--line-2);
    background:
        radial-gradient(240px 120px at 10% 0%, rgba(139, 124, 255, 0.16), transparent 70%),
        var(--panel);
}

.empty-stage h2 {
    margin: 12px 0 8px;
    font-family: var(--display);
    letter-spacing: -0.04em;
    font-size: 1.8rem;
}

.empty-stage p { color: var(--muted); max-width: 52ch; }
.empty-stage .icon { color: var(--purple); }
.empty-stage ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.empty-stage li {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--text);
    font-size: 0.92rem;
}

.contact-aside h2 {
    font-family: var(--display);
    letter-spacing: -0.04em;
    font-size: 1.25rem;
}

.contact-aside h2 + .meta-list,
.contact-aside .note-list { margin-bottom: 18px; }

.note-list {
    margin: 10px 0 0;
    padding-left: 1.1rem;
    color: var(--muted);
}

.note-list li + li { margin-top: 8px; }

.featured-title {
    margin-top: 8px;
    font-family: var(--display);
    letter-spacing: -0.04em;
    font-size: clamp(1.6rem, 2.4vw, 2rem);
}

.mosaic {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.08fr);
    gap: 16px;
}

.trio {
    display: grid;
    grid-template-columns: 1.15fr 0.9fr 1fr;
    gap: 16px;
    align-items: start;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    min-width: 0;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.panel-head h2,
.page-head h1,
.block h3 {
    font-family: var(--display);
    letter-spacing: -0.04em;
}

.panel-head h2 { font-size: 1.35rem; }
.panel-head p,
.quiet { color: var(--muted); font-size: 0.92rem; }

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text);
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
}

.text-link:hover { color: var(--purple); }

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 14px;
}

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

.chip {
    color: var(--muted);
    background: transparent;
    cursor: pointer;
}

.chip.is-active,
.chip[aria-current="page"] {
    color: var(--text);
    border-color: color-mix(in srgb, var(--purple) 55%, var(--line));
    background: color-mix(in srgb, var(--purple) 12%, transparent);
}

.search {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: min(220px, 100%);
    padding: 0 12px;
    min-height: 40px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--input);
}

.search input,
.field input,
.field textarea,
.field select {
    width: 100%;
    border: 0;
    background: transparent;
    outline: none;
}

.search input { min-height: 38px; }
.filter-bar select {
    min-height: 40px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--input);
    padding: 0 12px;
}
body.nav-open { overflow: hidden; }

.field input,
.field textarea,
.field select {
    border: 1px solid var(--line-2);
    background: var(--input);
    border-radius: 12px;
    padding: 12px 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.field input:focus,
.field textarea:focus,
.field select:focus,
.search:focus-within {
    border-color: color-mix(in srgb, var(--purple) 70%, white);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--purple) 18%, transparent);
}

.skill-grid,
.skill-board {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.skill-board { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.skill-card,
.project-card,
.post-card,
.cert-card {
    border: 1px solid var(--line);
    background: var(--card);
    border-radius: 16px;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.skill-card { padding: 14px; min-height: 0; }
.skill-card.is-learning { min-height: 168px; }
.skill-card:hover,
.project-card:hover,
.post-card:hover,
.cert-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--purple) 50%, var(--line));
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.16);
}

.skill-top {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: flex-start;
}

.skill-card h3,
.project-card h3,
.post-card h3,
.cert-card h3 {
    margin-top: 12px;
    font-size: 1rem;
    letter-spacing: -0.03em;
}

.skill-card p,
.project-card p,
.post-card p,
.cert-card p { color: var(--muted); font-size: 0.86rem; margin-top: 6px; }

.level {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--faint);
}

.skill-group { margin-top: 36px; }
.skill-group h2 {
    font-family: var(--display);
    letter-spacing: -0.04em;
    font-size: 1.45rem;
}
.skill-group h2 span {
    display: block;
    margin-bottom: 6px;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--purple);
}
.skill-group > p { margin-top: 8px; color: var(--muted); max-width: 68ch; line-height: 1.65; }

.meter {
    margin-top: 14px;
    height: 6px;
    border-radius: 99px;
    background: color-mix(in srgb, var(--text) 8%, transparent);
    overflow: hidden;
}

.meter span {
    display: block;
    height: 100%;
    width: var(--p);
    border-radius: inherit;
    background: linear-gradient(90deg, #8b7cff, #5eb6ff);
}

.meter-label {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.04em;
    color: var(--faint);
}

.meter-label b { color: var(--text); font-weight: 500; }

.skill-queue { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.skill-card.is-queued .level { color: var(--purple); }

.project-results.is-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.project-results.is-list { display: grid; gap: 12px; }

.project-card { overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.project-results.is-list .project-card { display: grid; grid-template-columns: 132px minmax(0, 1fr); }

.project-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #0c0e16;
    overflow: hidden;
}

.project-results.is-list .project-thumb { aspect-ratio: auto; min-height: 100%; }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: left center; }

.ribbon {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(10, 12, 18, 0.82);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-body,
.post-body,
.cert-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.project-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.project-card h3 { margin: 0; }
.project-actions { margin-top: auto; }

.facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 22px 0 8px;
}

.facts div {
    padding: 10px;
    border-radius: 14px;
    background: var(--card);
    border: 1px solid var(--line);
}

.facts b {
    display: block;
    font-family: var(--display);
    font-size: 1rem;
    letter-spacing: -0.04em;
}

.facts span,
.meta-row { color: var(--faint); font-size: 0.78rem; }

.about-blocks { display: grid; gap: 12px; margin-top: 8px; }
.about-blocks h3 {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--faint);
    font-weight: 700;
}
.about-blocks p { color: var(--muted); font-size: 0.92rem; }

.meta-list { display: grid; gap: 8px; margin-top: 14px; }
.meta-list div { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: 0.92rem; }

.cert-row, .cert-board {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(180px, 1fr);
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
}

.cert-board { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); overflow: visible; }
.cert-card { scroll-snap-align: start; overflow: hidden; }
.cert-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; background: var(--card-2); }

.empty {
    border: 1px dashed var(--line-2);
    border-radius: 16px;
    padding: 22px 16px;
    text-align: center;
    color: var(--muted);
}

.empty h3 { margin: 8px 0; font-family: var(--display); color: var(--text); }
.empty .icon { color: var(--purple); }

.form-grid { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
.field span { font-size: 0.82rem; color: var(--muted); font-weight: 650; }
.field-error { color: var(--danger); font-size: 0.8rem; }
.hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.flash, .notice {
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 12px;
    border: 1px solid var(--line);
    background: var(--chip);
}

.flash-ok, .notice-ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, var(--line)); }
.flash-bad { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); }
.notice-warn { color: var(--warn); }

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.post-card { overflow: hidden; display: flex; flex-direction: column; }
.post-card img, .post-fallback { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.post-fallback {
    display: grid;
    place-items: center;
    background:
        radial-gradient(120px 80px at 20% 20%, rgba(139, 124, 255, 0.35), transparent 70%),
        #10131c;
    color: #d6d3e8;
    font-family: var(--display);
    letter-spacing: 0.14em;
}

.featured-post {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 18px;
    margin-bottom: 16px;
    align-items: center;
}

.page-head { margin-bottom: 14px; max-width: 78ch; }
.page-head h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); max-width: 18ch; }
.page-head p { margin-top: 8px; line-height: 1.65; }

.page-section {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 12px 0 28px;
}

.article { max-width: 760px; }
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    color: var(--faint);
    font-size: 0.88rem;
    margin: 14px 0 18px;
}

.prose { font-size: 1.05rem; line-height: 1.75; }
.prose > * + * { margin-top: 0.9em; }
.prose h2, .prose h3, .prose h4 {
    font-family: var(--display);
    letter-spacing: -0.04em;
    line-height: 1.15;
    margin-top: 1.4em;
}
.prose h2 { font-size: 1.7rem; }
.prose p, .prose li { color: var(--muted); }
.prose a { color: var(--purple); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose code {
    font-family: var(--mono);
    font-size: 0.86em;
    background: var(--chip);
    border-radius: 6px;
    padding: 0.1em 0.35em;
}
.prose pre {
    position: relative;
    background: #0c0e16;
    color: #e7e9f4;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px;
    overflow: auto;
}
.prose pre code { background: none; padding: 0; color: inherit; font-size: 13.5px; }
.tok-key { color: #c4b5fd; }
.tok-str { color: #86efac; }
.tok-num { color: #7cb6ff; }
.tok-com { color: #8b93a7; }
.copy-code {
    position: absolute;
    top: 8px;
    right: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #e7e9f4;
    border-radius: 999px;
    min-height: 30px;
    padding: 0 10px;
    font-size: 12px;
}

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.pager {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

.site-footer {
    margin-top: 36px;
    border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--panel) 88%, transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.7fr 0.7fr 1.1fr;
    gap: 28px;
    padding: 36px 0 28px;
}

.footer-grid h2 {
    margin: 0 0 12px;
    font-family: var(--display);
    font-size: 1rem;
    letter-spacing: -0.03em;
}

.footer-grid p,
.footer-grid a {
    color: var(--muted);
    font-size: 0.92rem;
}

.footer-grid > div > a { display: block; }
.footer-grid p a { display: inline; color: var(--text); }

.footer-grid a + a,
.footer-grid p + p { margin-top: 8px; }
.footer-grid a:hover { color: var(--text); }
.footer-grid .brand { margin-bottom: 12px; }
.footer-grid p { display: flex; gap: 8px; align-items: flex-start; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 0 22px;
    border-top: 1px solid var(--line);
    color: var(--faint);
    font-size: 0.86rem;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.story-grid article h2,
.section-block h2,
.section-title {
    font-family: var(--display);
    letter-spacing: -0.04em;
    font-size: 1.25rem;
}

.section-title { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-top: 0; line-height: 1.05; }

.read {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 8px 28px;
    align-items: start;
    margin-top: 28px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
}

.read-kicker {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    color: var(--purple);
    padding-top: 5px;
}

.read h2 {
    font-family: var(--display);
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
    letter-spacing: -0.04em;
    line-height: 1.08;
}

.read p,
.read li {
    color: var(--muted);
    line-height: 1.7;
    max-width: 74ch;
}

.read p + p { margin-top: 12px; }
.read .lede { margin-top: 8px; }
.read strong { color: var(--text); }
.read a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.read a:hover { color: var(--purple); }
.read p code,
.read li code {
    font-family: var(--mono);
    font-size: 0.86em;
    color: var(--text);
}

.read-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
    gap: 14px;
    margin-top: 14px;
    align-items: start;
}

.code-note {
    margin: 0;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #0c0e16;
    color: #d7dbe8;
    padding: 14px 16px 16px;
    font-family: var(--mono);
    font-size: 12.5px;
    line-height: 1.65;
    white-space: pre-wrap;
    box-shadow: inset 0 0 0 1px rgba(139, 124, 255, 0.08);
}

.code-note .cm { color: #8b93a7; }
.code-note .ky { color: #c4b5fd; }
.code-note .st { color: #86efac; }

.steps {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.step {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
}

.step b {
    font-family: var(--mono);
    color: var(--purple);
    font-weight: 500;
    font-size: 12px;
    padding-top: 3px;
}

.step strong {
    display: block;
    font-family: var(--display);
    letter-spacing: -0.03em;
    font-size: 1.05rem;
}

.step p { margin-top: 4px; }

.prompt-list {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.prompt-list li {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--card);
    max-width: none;
}

.prompt-list code {
    font-family: var(--mono);
    font-size: 0.86em;
    color: var(--text);
}

.story-grid p,
.section-block p { margin-top: 8px; color: var(--muted); }
.section-block { margin-top: 40px; }
.section-block + .section-block { margin-top: 28px; }

.colophon nav { display: flex; gap: 12px; flex-wrap: wrap; }
.colophon a:hover { color: var(--text); }

.error-page { padding: 64px 28px 80px; max-width: 640px; }
.error-page strong {
    font-family: var(--mono);
    color: var(--purple);
    letter-spacing: 0.14em;
}

.result-count { color: var(--faint); font-size: 0.82rem; margin-bottom: 8px; }

.check {
    display: flex;
    gap: 8px;
    align-items: center;
    color: var(--muted);
    font-size: 0.92rem;
}

.thumb-preview {
    width: 120px;
    border-radius: 12px;
    border: 1px solid var(--line);
}

@media (max-width: 1280px) {
    .trio { grid-template-columns: 1fr 1fr; }
    .trio .contact-panel { grid-column: 1 / -1; }
}

@media (max-width: 1080px) {
    .shell { width: 100%; }
}

@media (max-height: 860px) and (min-width: 1081px) {
    .phone { display: none; }
    .rail-title { font-size: 2rem; }
}

@media (max-width: 860px) {
    .nav-links, .nav-cta { display: none; }
    .nav-toggle { display: inline-grid; }
    .nav-tools { margin-left: auto; }
    .topbar { position: sticky; top: 0; background: color-mix(in srgb, var(--stage-solid) 92%, transparent); }
    .page-home .topbar { position: sticky; }
    .stage { overflow: visible; }
    .nav-drawer.is-open {
        display: grid;
        z-index: 30;
        max-height: min(70vh, 420px);
        overflow: auto;
    }
    .hero { padding: 8px 0 12px; min-height: 0; overflow: hidden; }
    .geo { display: none; }
    .hero-grid, .mosaic, .featured-post, .about-grid, .read, .read-grid { grid-template-columns: 1fr; }
    .page-index, .story-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
    .page-section { padding: 8px 0 20px; }
    .read { gap: 6px; margin-top: 22px; padding-top: 26px; }
    .page-home .hero { padding-top: 28px; }
    .stage-body { padding: 12px; }
}

@media (max-width: 720px) {
    .rail, .trio, .skill-grid, .skill-board, .project-results.is-grid, .post-grid, .cert-board, .facts, .page-index, .story-grid, .footer-grid, .empty-stage ul {
        grid-template-columns: 1fr;
    }
    .project-results.is-list .project-card { grid-template-columns: 1fr; }
    .search { margin-left: 0; width: 100%; }
    .hero h1 {
        max-width: none;
        font-size: clamp(1.85rem, 8.1vw, 2.7rem);
        letter-spacing: -0.05em;
    }
    .rail { padding-top: 6px; }
    .rail-title { margin-top: 12px; font-size: 1.85rem; }
    .rail-copy, .feature-list, .social { margin-top: 12px; }
    .feature-list { gap: 8px; }
    .panel-head { flex-wrap: wrap; align-items: flex-end; }
    .shell { width: 100%; margin: 0; }
    .hero-actions, .project-actions { align-items: stretch; }
    .hero-actions .btn, .project-actions .btn, .project-actions .btn-disabled { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
    .ambient canvas { display: none; }
}

@keyframes floaty {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(6deg); }
}

@keyframes blink {
    50% { opacity: 0; }
}
