:root {
    --ink: #10110f;
    --ink-soft: #191b18;
    --ink-raised: #20231f;
    --paper: #f2f0e9;
    --paper-soft: #d6d3ca;
    --muted: #9b9d95;
    --line: rgba(242, 240, 233, 0.16);
    --line-strong: rgba(242, 240, 233, 0.3);
    --accent: #d9ff43;
    --accent-ink: #1a2100;
    --danger: #ff8f7d;
    --radius: 8px;
    --radius-small: 4px;
    --container: 1200px;
    --header-height: 68px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    color-scheme: dark;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
    min-width: 320px;
    background: var(--ink);
    color: var(--paper);
    font-family: "Instrument Sans", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.scroll-progress {
    position: fixed;
    inset: 0 0 auto;
    z-index: 200;
    height: 2px;
    transform-origin: 0 50%;
    background: var(--accent);
    box-shadow: 0 0 14px rgba(212, 247, 36, .55);
    pointer-events: none;
}

body.nav-open {
    overflow: hidden;
}

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

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

button,
a,
select {
    touch-action: manipulation;
}

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

[hidden] {
    display: none !important;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

::selection {
    background: var(--accent);
    color: var(--accent-ink);
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 999;
    padding: 10px 14px;
    border-radius: var(--radius-small);
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 750;
    transform: translateY(-160%);
    transition: transform 160ms ease;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--line);
    background: rgba(16, 17, 15, 0.92);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.site-nav {
    min-height: var(--header-height);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    justify-self: start;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.brand-mark {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-small);
    color: var(--accent);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.7rem;
    letter-spacing: -0.04em;
}

.brand-meta {
    color: var(--muted);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.64rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

.nav-links a {
    position: relative;
    color: var(--paper-soft);
    font-size: 0.84rem;
    font-weight: 600;
    transition: color 180ms ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 220ms var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current="true"] {
    color: var(--paper);
}

.nav-links a:hover::after,
.nav-links a[aria-current="true"]::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-action-group {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    justify-self: end;
}

.lang-switcher {
    display: inline-flex;
    align-items: center;
    padding: 3px;
    background: rgba(25, 27, 24, 0.88);
    border: 1px solid var(--line);
    border-radius: 999px;
    gap: 2px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lang-btn {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.72rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: color 160ms ease, background 160ms ease, transform 120ms ease;
    line-height: 1.2;
}

.lang-btn:hover {
    color: var(--paper);
}

.lang-btn.active {
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 700;
    box-shadow: 0 1px 6px rgba(217, 255, 67, 0.35);
}

.mobile-bar-actions {
    display: none;
}

.mobile-nav-lang {
    display: none;
}

.availability {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--paper-soft);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.availability-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(217, 255, 67, 0.12);
}

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-small);
    background: transparent;
    cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
    content: "";
    display: block;
    width: 17px;
    height: 1px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle span {
    margin-block: 5px;
}

.section {
    border-bottom: 1px solid var(--line);
    padding-block: clamp(76px, 10vw, 132px);
}

.hero {
    min-height: calc(100svh - var(--header-height));
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
    padding-block: clamp(64px, 8vw, 104px);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.72fr);
    gap: clamp(56px, 9vw, 128px);
    align-items: end;
}

.kicker,
.section-index,
.card-label,
.meta-label {
    color: var(--accent);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-kicker-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
}

.hero-kicker-group .kicker {
    margin-bottom: 0;
}

.hero-author-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 3px 12px 3px 4px;
    border-radius: 999px;
    background: rgba(32, 35, 31, 0.8);
    border: 1px solid var(--line);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    color: var(--paper-soft);
    transition: border-color 200ms ease, transform 200ms ease, background 200ms ease;
    text-decoration: none;
}

.hero-author-pill:hover {
    border-color: rgba(217, 255, 67, 0.45);
    background: rgba(32, 35, 31, 0.98);
    transform: translateY(-2px);
    color: var(--paper);
}

.hero-avatar-wrap {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(217, 255, 67, 0.6);
    display: grid;
    place-items: center;
    background: var(--ink-soft);
}

.hero-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-author-name {
    font-weight: 600;
    color: var(--paper);
}

.hero-avatar-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(217, 255, 67, 0.2);
}

.kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.kicker::before {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
}

.hero-title {
    max-width: 900px;
    font-size: clamp(3.2rem, 7.2vw, 7.4rem);
    font-weight: 650;
    letter-spacing: -0.065em;
    line-height: 0.93;
}

.hero-title em {
    color: var(--accent);
    font-family: "Newsreader", serif;
    font-weight: 400;
}

.hero-summary {
    max-width: 650px;
    margin-top: 30px;
    color: var(--paper-soft);
    font-size: clamp(1rem, 1.6vw, 1.18rem);
    line-height: 1.75;
}

.hero-actions,
.card-actions,
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-actions {
    margin-top: 34px;
}

.button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid transparent;
    border-radius: var(--radius-small);
    padding: 10px 16px;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms var(--ease);
}

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

.button-primary {
    background: var(--accent);
    color: var(--accent-ink);
}

.button-primary:hover {
    background: #e4ff76;
}

.button-secondary {
    border-color: var(--line-strong);
    background: transparent;
    color: var(--paper);
}

.button-secondary:hover {
    border-color: var(--paper-soft);
    background: rgba(242, 240, 233, 0.06);
}

.button svg {
    width: 15px;
    height: 15px;
    flex: none;
}

.hero-side {
    border-top: 1px solid var(--line-strong);
}

.method-row {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    padding-block: 18px;
}

.method-number {
    color: var(--accent);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.7rem;
}

.method-row h2 {
    margin-bottom: 4px;
    font-size: 0.92rem;
    font-weight: 650;
}

.method-row p {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.55;
}

.proof-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid var(--line);
}

.proof-item {
    min-height: 112px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    border-right: 1px solid var(--line);
    padding: 22px 28px;
}

.proof-item:last-child {
    border-right: 0;
}

.proof-value {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 620;
    letter-spacing: -0.05em;
    line-height: 1;
}

.proof-label {
    max-width: 120px;
    color: var(--muted);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.66rem;
    line-height: 1.5;
    text-align: right;
    text-transform: uppercase;
}

.section-head {
    display: grid;
    grid-template-columns: minmax(120px, 0.3fr) minmax(0, 1fr) auto;
    gap: 32px;
    align-items: end;
    margin-bottom: 48px;
}

.section-title {
    max-width: 760px;
    font-size: clamp(2.2rem, 5vw, 4.9rem);
    font-weight: 610;
    letter-spacing: -0.055em;
    line-height: 1;
}

.section-note {
    max-width: 260px;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.65;
}

.filter-control {
    min-width: 190px;
    min-height: 42px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-small);
    background: var(--ink-soft);
    padding: 0 38px 0 13px;
    color: var(--paper);
    font-size: 0.78rem;
    cursor: pointer;
}

/* Modern Category Dropdown */
.category-filter-wrapper {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    gap: 8px;
    min-width: 220px;
}

.category-trigger {
    width: 100%;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 14px;
    background: var(--ink-soft);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-small);
    color: var(--paper);
    font-family: "Instrument Sans", sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms var(--ease);
}

.category-trigger:hover {
    background: var(--ink-raised);
    border-color: var(--paper-soft);
}

.category-trigger.is-open {
    background: var(--ink-raised);
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), 0 8px 24px rgba(0, 0, 0, 0.5);
}

.category-trigger.has-filter {
    border-color: rgba(217, 255, 67, 0.45);
}

.category-trigger-content {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.category-indicator-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--muted);
    transition: background-color 180ms ease, box-shadow 180ms ease;
    flex-shrink: 0;
}

.category-trigger.has-filter .category-indicator-dot,
.category-trigger.is-open .category-indicator-dot {
    background: var(--accent);
    box-shadow: 0 0 8px rgba(217, 255, 67, 0.8);
}

.category-trigger-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.category-trigger-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.category-count-pill {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--muted);
    background: rgba(242, 240, 233, 0.06);
    border: 1px solid var(--line);
    padding: 2px 7px;
    border-radius: 999px;
    line-height: 1.3;
}

.category-trigger.has-filter .category-count-pill {
    color: var(--accent);
    border-color: rgba(217, 255, 67, 0.35);
    background: rgba(217, 255, 67, 0.08);
}

.category-chevron {
    color: var(--muted);
    transition: transform 220ms var(--ease), color 180ms ease;
}

.category-chevron.is-rotated {
    transform: rotate(180deg);
    color: var(--accent);
}

/* Dropdown Menu Panel */
.category-dropdown-panel {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 250px;
    max-width: 320px;
    width: 100%;
    z-index: 90;
    background: rgba(25, 27, 24, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    padding: 6px;
    box-shadow: 0 18px 48px -6px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(217, 255, 67, 0.08);
    transform-origin: top right;
}

.category-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px 8px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 4px;
}

.category-panel-title {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.63rem;
    font-weight: 500;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.category-panel-total {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.63rem;
    color: var(--accent);
    font-weight: 500;
}

.category-panel-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 280px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.category-panel-list::-webkit-scrollbar {
    width: 4px;
}

.category-panel-list::-webkit-scrollbar-thumb {
    background: var(--line-strong);
    border-radius: 4px;
}

.category-panel-item {
    width: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 10px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-small);
    color: var(--paper-soft);
    font-family: "Instrument Sans", sans-serif;
    font-size: 0.81rem;
    text-align: left;
    cursor: pointer;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.category-panel-item:hover,
.category-panel-item.is-highlighted,
.category-panel-item:focus-visible {
    background: rgba(242, 240, 233, 0.07);
    color: var(--paper);
    border-color: var(--line);
    outline: none;
}

.category-panel-item.is-selected {
    background: rgba(217, 255, 67, 0.08);
    border-color: rgba(217, 255, 67, 0.3);
    color: var(--accent);
    font-weight: 600;
}

.category-item-left {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.category-item-bullet {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--line-strong);
    transition: background-color 140ms ease;
    flex-shrink: 0;
}

.category-panel-item:hover .category-item-bullet,
.category-panel-item.is-highlighted .category-item-bullet {
    background: var(--paper-soft);
}

.category-panel-item.is-selected .category-item-bullet {
    background: var(--accent);
    box-shadow: 0 0 6px rgba(217, 255, 67, 0.7);
}

.category-item-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-item-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.category-item-count {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.68rem;
    color: var(--muted);
    background: rgba(0, 0, 0, 0.3);
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid var(--line);
}

.category-panel-item.is-selected .category-item-count {
    color: var(--accent);
    background: rgba(217, 255, 67, 0.12);
    border-color: rgba(217, 255, 67, 0.25);
}

.category-check-icon {
    color: var(--accent);
    flex-shrink: 0;
}

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

.project-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.client-project {
    min-width: 0;
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    min-height: 300px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--ink);
    transition: background-color 260ms ease;
}

.client-project:hover {
    background: var(--ink-soft);
}

.project-visual {
    position: relative;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    border-right: 1px solid var(--line);
    background: var(--ink-raised);
    padding: 20px;
    isolation: isolate;
}

.project-visual::before,
.project-visual::after {
    content: "";
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(217, 255, 67, 0.22);
    border-radius: 50%;
    transition: transform 500ms var(--ease);
}

.project-visual::before {
    width: 170px;
    height: 170px;
    right: -80px;
    bottom: -70px;
}

.project-visual::after {
    width: 92px;
    height: 92px;
    right: -30px;
    bottom: -25px;
}

.client-project:hover .project-visual::before {
    transform: translate(-10px, -10px) scale(1.06);
}

.project-sequence,
.project-domain {
    color: var(--muted);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.62rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.project-monogram {
    color: var(--accent);
    font-family: "Newsreader", serif;
    font-size: clamp(3rem, 6vw, 5.4rem);
    font-weight: 400;
    letter-spacing: -0.08em;
    line-height: 0.75;
}

.project-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.project-topline,
.repository-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--paper-soft);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.64rem;
    text-transform: uppercase;
}

.status::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.status.archived::before {
    background: var(--muted);
}

.project-title,
.repository-title {
    margin-top: 42px;
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    font-weight: 620;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.project-description,
.repository-description {
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.65;
}

.project-content .card-actions {
    margin-top: auto;
    padding-top: 26px;
}

.project-load-more {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.js .client-project[data-collapsed="true"] {
    display: none;
}

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

.github-section {
    background: var(--paper);
    color: var(--ink);
}

.github-section .section-index,
.github-section .card-label,
.github-section .meta-label {
    color: #657a00;
}

.github-section .section-note {
    color: #65665f;
}

.repository-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.repository-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(16, 17, 15, 0.18);
    border-radius: var(--radius);
    background: #f8f6ef;
    overflow: hidden;
    transition: transform 300ms var(--ease), border-color 200ms ease, box-shadow 300ms var(--ease);
}

.repository-card:hover {
    z-index: 2;
    border-color: rgba(16, 17, 15, 0.42);
    box-shadow: 0 18px 48px rgba(16, 17, 15, 0.1);
    transform: translateY(-6px);
}

.repository-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-bottom: 1px solid rgba(16, 17, 15, 0.15);
    background: #deddd6;
}

.repository-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.85) contrast(0.98);
    transition: transform 550ms var(--ease), filter 300ms ease;
}

.repository-card:hover .repository-thumb img {
    filter: saturate(1) contrast(1);
    transform: scale(1.025);
}

.repository-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.repository-title {
    margin-top: 30px;
    overflow-wrap: anywhere;
}

.repository-description {
    color: #65665f;
}

.technology-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 18px;
    list-style: none;
}

.technology-list li {
    border: 1px solid rgba(16, 17, 15, 0.18);
    border-radius: 999px;
    padding: 4px 8px;
    color: #4f504a;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.6rem;
    line-height: 1.2;
}

.repository-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 24px;
    border-block: 1px solid rgba(16, 17, 15, 0.14);
}

.repository-meta div {
    min-width: 0;
    padding-block: 11px;
}

.repository-meta div + div {
    border-left: 1px solid rgba(16, 17, 15, 0.14);
    padding-left: 10px;
}

.repository-meta dt {
    color: #777870;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.56rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.repository-meta dd {
    margin-top: 3px;
    overflow: hidden;
    font-size: 0.72rem;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.repository-card .card-actions {
    margin-top: auto;
    padding-top: 20px;
}

.repository-card .button-primary {
    background: var(--ink);
    color: var(--paper);
}

.repository-card .button-secondary {
    border-color: rgba(16, 17, 15, 0.25);
    color: var(--ink);
}

.capability-layout {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: clamp(48px, 8vw, 110px);
}

.capability-intro {
    position: sticky;
    top: calc(var(--header-height) + 32px);
    align-self: start;
}

.capability-intro .section-title {
    margin-top: 22px;
}

.capability-intro p:last-child {
    max-width: 450px;
    margin-top: 22px;
    color: var(--muted);
}

.service-list {
    border-top: 1px solid var(--line);
}

.service-item {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 20px;
    border-bottom: 1px solid var(--line);
    padding-block: 24px;
}

.service-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-small);
    color: var(--accent);
}

.service-icon svg {
    width: 19px;
    height: 19px;
}

.service-item h3 {
    font-size: 1.16rem;
    font-weight: 620;
    letter-spacing: -0.025em;
}

.service-item p {
    max-width: 580px;
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.84rem;
}

.systems-panel {
    margin-top: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.systems-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    padding: 14px 16px;
}

.systems-title h3 {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.systems-title span {
    color: var(--accent);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.62rem;
}

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

.server-link {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    padding: 13px 16px;
    color: var(--paper-soft);
    font-size: 0.76rem;
    transition: background-color 180ms ease, color 180ms ease;
}

.server-link:nth-child(odd) {
    border-right: 1px solid var(--line);
}

.server-link:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.server-link:hover {
    background: var(--ink-raised);
    color: var(--paper);
}

.server-link span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.server-link span:last-child {
    color: var(--accent);
}

.about-layout {
    display: grid;
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    gap: clamp(40px, 6vw, 100px);
    align-items: start;
}

.about-profile-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-photo-card {
    position: relative;
    width: 100%;
    max-width: 320px;
    margin-top: 4px;
}

.about-photo-aura {
    position: absolute;
    inset: -14px -18px;
    border-radius: 46% 54% 60% 40% / 40% 48% 52% 60%;
    background: radial-gradient(circle at 45% 45%, rgba(217, 255, 67, 0.22) 0%, rgba(217, 255, 67, 0.05) 50%, transparent 72%);
    filter: blur(36px);
    pointer-events: none;
    z-index: 0;
    transition: filter 400ms ease, transform 400ms ease;
}

.about-photo-card:hover .about-photo-aura {
    filter: blur(44px);
    transform: scale(1.05);
}

.about-photo-frame {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    /* Organic sculpted curvature: fluid asymmetrical pebble, not a rigid box */
    border-radius: 38px 96px 42px 88px / 48px 40px 92px 46px;
    border: 1.5px solid rgba(217, 255, 67, 0.4);
    box-shadow: 
        0 24px 48px -12px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 0 24px rgba(0, 0, 0, 0.4);
    background: var(--ink-soft);
    transition: border-radius 600ms var(--ease), transform 400ms var(--ease), border-color 300ms ease, box-shadow 400ms ease;
}

.about-photo-card:hover .about-photo-frame {
    border-radius: 88px 40px 94px 38px / 42px 88px 44px 84px;
    transform: translateY(-4px);
    border-color: rgba(217, 255, 67, 0.75);
    box-shadow: 
        0 32px 56px -16px rgba(0, 0, 0, 0.85),
        0 0 32px -4px rgba(217, 255, 67, 0.3),
        inset 0 0 24px rgba(0, 0, 0, 0.4);
}

.about-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
    filter: contrast(1.03) saturate(1.04);
    transition: transform 600ms var(--ease), filter 400ms ease;
}

.about-photo-card:hover .about-photo {
    transform: scale(1.04);
}

.about-photo-tag {
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    background: rgba(16, 17, 15, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.72rem;
    white-space: nowrap;
    box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.75);
    transition: transform 300ms var(--ease), border-color 300ms ease;
}

.about-photo-card:hover .about-photo-tag {
    transform: translateX(-50%) translateY(-2px);
    border-color: rgba(217, 255, 67, 0.5);
}

.about-photo-status {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(217, 255, 67, 0.2);
    animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(217, 255, 67, 0.2);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(217, 255, 67, 0.45);
    }
}

.about-photo-name {
    font-weight: 600;
    color: var(--paper);
}

.about-photo-sep {
    color: var(--muted);
}

.about-photo-badge {
    color: var(--paper-soft);
}

.about-copy h2 {
    font-size: clamp(2.3rem, 5.5vw, 5.2rem);
    font-weight: 610;
    letter-spacing: -0.055em;
    line-height: 1;
}

.about-text {
    max-width: 720px;
    margin-top: 28px;
    color: var(--paper-soft);
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    line-height: 1.8;
}

.about-text + .about-text {
    margin-top: 18px;
}

.about-text a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: rgba(217, 255, 67, 0.45);
    text-underline-offset: 4px;
}

.cta-section {
    border-bottom: 1px solid var(--line);
    padding-block: clamp(80px, 12vw, 160px);
}

.cta-layout {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: end;
}

.cta-title {
    max-width: 880px;
    margin-top: 20px;
    font-size: clamp(2.5rem, 6.5vw, 6.6rem);
    font-weight: 610;
    letter-spacing: -0.065em;
    line-height: 0.96;
}

.cta-description {
    max-width: 620px;
    margin-top: 24px;
    color: var(--muted);
    font-size: 1rem;
}

.site-footer {
    padding-block: 26px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: var(--muted);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.66rem;
    text-transform: uppercase;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-links a {
    transition: color 180ms ease;
}

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

.reveal {
    opacity: 1;
    transform: none;
}

.js .reveal {
    opacity: 1;
    transform: none;
}

.js .reveal.is-visible {
    animation: reveal-in 650ms var(--ease) both;
}

@keyframes reveal-in {
    from {
        opacity: 0.72;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .hero-grid,
    .capability-layout {
        grid-template-columns: 1fr;
    }

    .hero-side {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .method-row {
        grid-template-columns: 28px 1fr;
        border-right: 1px solid var(--line);
        padding-inline: 16px;
    }

    .method-row:last-child {
        border-right: 0;
    }

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

    .capability-intro {
        position: static;
    }
}

@media (max-width: 820px) {
    .container {
        width: min(100% - 32px, var(--container));
    }

    .site-nav {
        grid-template-columns: 1fr auto;
    }

    .nav-action-group {
        display: none;
    }

    .mobile-bar-actions {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        justify-self: end;
    }

    .mobile-nav-lang {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 4px 10px;
        border-bottom: 1px solid var(--line);
    }

    .mobile-lang-label {
        font-family: "IBM Plex Mono", monospace;
        font-size: 0.8rem;
        color: var(--muted);
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .menu-toggle {
        display: grid;
        justify-self: end;
    }

    .availability {
        display: none;
    }

    .nav-links {
        position: fixed;
        top: var(--header-height);
        right: 0;
        left: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        border-bottom: 1px solid var(--line);
        background: var(--ink);
        padding: 10px 16px 20px;
        transform: translateY(-120%);
        visibility: hidden;
        transition: transform 260ms var(--ease), visibility 260ms;
    }

    .nav-links a {
        display: block;
        border-bottom: 1px solid var(--line);
        padding: 15px 4px;
        font-size: 1rem;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-open .nav-links {
        transform: translateY(0);
        visibility: visible;
    }

    .nav-open .menu-toggle span {
        opacity: 0;
    }

    .nav-open .menu-toggle::before {
        transform: translateY(6px) rotate(45deg);
    }

    .nav-open .menu-toggle::after {
        transform: translateY(-6px) rotate(-45deg);
    }

    .hero {
        min-height: auto;
    }

    .hero-title {
        font-size: clamp(3.2rem, 14vw, 6rem);
    }

    .proof-strip,
    .section-head,
    .about-layout,
    .cta-layout {
        grid-template-columns: 1fr;
    }

    .about-profile-col {
        gap: 16px;
    }

    .about-photo-card {
        max-width: 280px;
        margin-bottom: 8px;
    }

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

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

    .section-head {
        gap: 18px;
    }

    .section-note {
        max-width: 560px;
    }

    .filter-control,
    .category-filter-wrapper,
    .category-trigger {
        width: 100%;
    }

    .category-dropdown-panel {
        left: 0;
        right: 0;
        min-width: 100%;
    }

    .project-list {
        grid-template-columns: 1fr;
    }

    .cta-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 620px) {
    .brand-meta {
        display: none;
    }

    .hero-grid {
        gap: 44px;
    }

    .hero-side {
        grid-template-columns: 1fr;
    }

    .method-row {
        border-right: 0;
    }

    .client-project {
        grid-template-columns: 1fr;
    }

    .project-visual {
        min-height: 190px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .repository-grid,
    .server-list {
        grid-template-columns: 1fr;
    }

    .server-link:nth-child(odd) {
        border-right: 0;
    }

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

    .server-link:last-child {
        border-bottom: 0;
    }

    .repository-meta {
        grid-template-columns: 1fr;
    }

    .repository-meta div + div {
        border-top: 1px solid rgba(16, 17, 15, 0.14);
        border-left: 0;
        padding-left: 0;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
        animation: none;
    }
}
