:root {
    color-scheme: dark;
    --bg: #07100d;
    --bg-raised: #0b1713;
    --surface: rgba(18, 36, 30, 0.72);
    --surface-solid: #10231d;
    --surface-hover: #152d25;
    --text: #f3f7f4;
    --text-soft: #c0cdc5;
    --muted: #82968a;
    --line: rgba(221, 244, 230, 0.13);
    --line-strong: rgba(221, 244, 230, 0.24);
    --accent: #b9ee72;
    --accent-strong: #92d84d;
    --accent-ink: #102006;
    --sky: #68cbef;
    --warm: #ff9e78;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
    --radius-sm: 0.7rem;
    --radius-md: 1.25rem;
    --radius-lg: 2rem;
    --container: 1180px;
    --font-body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: "Avenir Next", Avenir, Inter, ui-sans-serif, sans-serif;
    --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

[data-theme="light"] {
    color-scheme: light;
    --bg: #f2f5ee;
    --bg-raised: #f9fbf5;
    --surface: rgba(255, 255, 255, 0.76);
    --surface-solid: #ffffff;
    --surface-hover: #f0f7e9;
    --text: #142019;
    --text-soft: #42534a;
    --muted: #65756c;
    --line: rgba(20, 46, 31, 0.13);
    --line-strong: rgba(20, 46, 31, 0.24);
    --accent: #82bf3f;
    --accent-strong: #69a82e;
    --accent-ink: #ffffff;
    --sky: #167da5;
    --warm: #c95c36;
    --shadow: 0 24px 70px rgba(36, 58, 42, 0.12);
}

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

html {
    overflow-x: hidden;
    overflow-x: clip;
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
}

body {
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
    overflow-x: clip;
    background:
        radial-gradient(circle at 83% 4%, rgba(104, 203, 239, 0.1), transparent 27rem),
        radial-gradient(circle at 9% 18%, rgba(185, 238, 114, 0.08), transparent 31rem),
        var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 76px 76px;
    content: "";
    opacity: 0.18;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, black, transparent 75%);
}

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

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
    font: inherit;
}

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

a:focus-visible,
button:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--accent) 70%, transparent);
    outline-offset: 4px;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    letter-spacing: -0.035em;
}

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

.skip-link {
    position: fixed;
    z-index: 100;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 750;
    transform: translateY(-160%);
    transition: transform 160ms ease;
}

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

.site-header {
    position: sticky;
    z-index: 50;
    top: 0;
    border-bottom: 1px solid transparent;
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    backdrop-filter: blur(18px) saturate(1.25);
    transition: border-color 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
    border-bottom-color: var(--line);
    background: color-mix(in srgb, var(--bg) 91%, transparent);
}

.header-inner {
    min-height: 4.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    flex: 0 0 auto;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand-mark {
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
    border-radius: 50%;
    background: color-mix(in srgb, var(--accent) 13%, transparent);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: -0.08em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.site-nav a {
    padding: 0.55rem 0.8rem;
    border-radius: 99rem;
    color: var(--text-soft);
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 160ms ease, background 160ms ease;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.icon-button,
.menu-button {
    width: 2.6rem;
    height: 2.6rem;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.icon-button:hover,
.menu-button:hover {
    border-color: var(--line-strong);
    background: var(--surface-hover);
    transform: translateY(-1px);
}

.theme-icon {
    font-size: 1.05rem;
    line-height: 1;
}

.menu-button {
    display: none;
}

.menu-lines,
.menu-lines::before,
.menu-lines::after {
    width: 1.05rem;
    height: 1px;
    display: block;
    background: currentColor;
    content: "";
    transition: transform 180ms ease;
}

.menu-lines::before {
    transform: translateY(-5px);
}

.menu-lines::after {
    transform: translateY(4px);
}

.menu-button[aria-expanded="true"] .menu-lines {
    background: transparent;
}

.menu-button[aria-expanded="true"] .menu-lines::before {
    transform: translateY(0) rotate(45deg);
}

.menu-button[aria-expanded="true"] .menu-lines::after {
    transform: translateY(-1px) rotate(-45deg);
}

.button {
    min-height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.78rem 1.15rem;
    border: 1px solid var(--line);
    border-radius: 99rem;
    background: var(--surface);
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 750;
    line-height: 1;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button::after {
    content: "\2197";
    font-size: 0.95em;
}

.button:hover {
    border-color: var(--line-strong);
    background: var(--surface-hover);
    transform: translateY(-2px);
}

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

.button-primary:hover {
    border-color: transparent;
    background: var(--accent-strong);
}

.button-down::after {
    content: "\2193";
}

.button-back::after {
    order: -1;
    content: "\2190";
}

.hero {
    position: relative;
    padding: clamp(4.5rem, 10vw, 8rem) 0 4.5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) minmax(320px, 0.84fr);
    align-items: center;
    gap: clamp(3rem, 7vw, 7rem);
}

.eyebrow,
.kicker {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.2rem;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow::before,
.kicker::before {
    width: 1.9rem;
    height: 1px;
    background: currentColor;
    content: "";
}

.status-dot {
    width: 0.48rem;
    height: 0.48rem;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0.35rem color-mix(in srgb, var(--accent) 12%, transparent);
}

.hero h1 {
    max-width: 12ch;
    margin-bottom: 1.65rem;
    font-size: clamp(3.15rem, 7.3vw, 6.8rem);
    font-weight: 650;
    line-height: 0.93;
}

.hero h1 em {
    color: var(--accent);
    font-style: normal;
}

.hero-lede {
    max-width: 42rem;
    margin-bottom: 2rem;
    color: var(--text-soft);
    font-size: clamp(1.08rem, 1.9vw, 1.35rem);
    line-height: 1.55;
}

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

.hero-visual {
    position: relative;
    isolation: isolate;
}

.hero-visual::before {
    position: absolute;
    z-index: -1;
    inset: -10% -12%;
    border: 1px solid var(--line);
    border-radius: 50%;
    content: "";
    transform: rotate(-12deg);
}

.portrait-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border: 1px solid var(--line-strong);
    border-radius: 10rem 10rem var(--radius-lg) var(--radius-lg);
    background: var(--surface-solid);
    box-shadow: var(--shadow);
}

.portrait-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 52% center;
    filter: saturate(0.86) contrast(1.04);
}

.portrait-frame::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 16, 11, 0.32), transparent 42%);
    content: "";
    pointer-events: none;
}

.orbit-label {
    position: absolute;
    z-index: 2;
    right: -1.4rem;
    bottom: 3rem;
    width: 9rem;
    height: 9rem;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: color-mix(in srgb, var(--bg-raised) 86%, transparent);
    box-shadow: var(--shadow);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.55;
    text-align: center;
    text-transform: uppercase;
    backdrop-filter: blur(14px);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: clamp(4rem, 8vw, 7rem);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.metric {
    padding: 1.45rem 1.5rem;
    border-right: 1px solid var(--line);
}

.metric:first-child {
    padding-left: 0;
}

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

.metric strong,
.metric span {
    display: block;
}

.metric strong {
    margin-bottom: 0.15rem;
    font-family: var(--font-display);
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.metric span {
    color: var(--muted);
    font-size: 0.83rem;
}

.section {
    padding: clamp(5.5rem, 10vw, 9rem) 0;
}

.section + .section {
    border-top: 1px solid var(--line);
}

.section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
    align-items: end;
    gap: 2rem;
    margin-bottom: 2.7rem;
}

.section-head h2,
.page-title {
    max-width: 14ch;
    margin-bottom: 0;
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    font-weight: 600;
    line-height: 1;
}

.section-head p {
    margin-bottom: 0;
    color: var(--muted);
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 1.5rem;
}

.filter-button {
    padding: 0.56rem 0.82rem;
    border: 1px solid var(--line);
    border-radius: 99rem;
    background: transparent;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}

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

.filter-button[aria-pressed="true"] {
    border-color: color-mix(in srgb, var(--accent) 48%, transparent);
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    color: var(--accent);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1rem;
}

.project-card {
    grid-column: span 6;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.project-card.featured {
    grid-column: span 6;
}

.project-card:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

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

.project-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-bottom: 1px solid var(--line);
    background: #12221d;
}

.event-media {
    display: flex;
    align-items: flex-end;
    isolation: isolate;
    padding: 1.5rem;
    background:
        radial-gradient(circle at 78% 25%, rgba(104, 203, 239, 0.38), transparent 32%),
        linear-gradient(135deg, #132d25 0%, #1f4a38 58%, #5c7b32 100%);
}

.event-media-sky {
    background:
        radial-gradient(circle at 80% 20%, rgba(185, 238, 114, 0.3), transparent 32%),
        linear-gradient(135deg, #102b38 0%, #18506a 58%, #2d766a 100%);
}

.event-media-violet {
    background:
        radial-gradient(circle at 78% 22%, rgba(104, 203, 239, 0.3), transparent 31%),
        linear-gradient(135deg, #211d3c 0%, #49396b 56%, #32727a 100%);
}

.event-media-warm {
    background:
        radial-gradient(circle at 78% 20%, rgba(255, 216, 137, 0.28), transparent 31%),
        linear-gradient(135deg, #3b211b 0%, #82462d 58%, #a06e36 100%);
}

.event-media-teal {
    background:
        radial-gradient(circle at 80% 20%, rgba(185, 238, 114, 0.28), transparent 31%),
        linear-gradient(135deg, #0e2c29 0%, #176257 58%, #4b7d55 100%);
}

.event-media-amber {
    background:
        radial-gradient(circle at 80% 20%, rgba(255, 232, 161, 0.32), transparent 31%),
        linear-gradient(135deg, #36290f 0%, #75551f 58%, #927632 100%);
}

.event-media-cobalt {
    background:
        radial-gradient(circle at 80% 20%, rgba(185, 238, 114, 0.28), transparent 31%),
        linear-gradient(135deg, #101e3d 0%, #244c83 58%, #307677 100%);
}

.event-media::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 2.4rem 2.4rem;
    content: "";
    mask-image: linear-gradient(135deg, transparent, black);
}

.event-visual {
    display: grid;
    gap: 0.25rem;
    color: rgba(255, 255, 255, 0.78);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.event-visual strong {
    color: #ffffff;
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 3vw, 2.6rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
    text-transform: none;
}

.project-media img,
.project-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.project-media video {
    object-fit: contain;
    background: #07100d;
}

.media-toggle {
    position: absolute;
    z-index: 3;
    right: 0.75rem;
    bottom: 0.75rem;
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.35rem 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 99rem;
    background: rgba(4, 12, 8, 0.78);
    color: #f7faf8;
    font: 600 0.68rem/1 var(--font-mono);
    letter-spacing: 0.04em;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.media-toggle:hover {
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(4, 12, 8, 0.94);
    transform: translateY(-1px);
}

.media-toggle:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--accent) 70%, transparent);
    outline-offset: 3px;
}

.project-media.contain img {
    object-fit: contain;
    padding: 0.8rem;
    background: #f7f8f5;
}

.project-media.contain-dark img {
    object-fit: contain;
    padding: 0.8rem;
    background: #0d1715;
}

.project-card:hover .project-media img {
    transform: scale(1.025);
}

.project-index {
    position: absolute;
    z-index: 2;
    top: 0.8rem;
    left: 0.8rem;
    padding: 0.3rem 0.48rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 99rem;
    background: rgba(4, 12, 8, 0.68);
    color: rgba(255, 255, 255, 0.82);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    backdrop-filter: blur(8px);
}

.project-body {
    padding: 1.25rem 1.25rem 1.35rem;
}

.project-meta {
    margin-bottom: 0.6rem;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-card h3 {
    margin-bottom: 0.65rem;
    font-size: clamp(1.18rem, 2vw, 1.48rem);
    line-height: 1.18;
}

.project-card p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.project-link {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.project-link:hover {
    text-decoration: underline;
    text-underline-offset: 0.24rem;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.expertise-card,
.panel {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.expertise-card {
    min-height: 21rem;
    display: flex;
    flex-direction: column;
    padding: 1.6rem;
}

.expertise-number {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.72rem;
}

.expertise-card h3 {
    margin: auto 0 1rem;
    font-size: 1.75rem;
    line-height: 1.05;
}

.expertise-card p {
    margin-bottom: 1.25rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tag {
    padding: 0.35rem 0.52rem;
    border: 1px solid var(--line);
    border-radius: 99rem;
    color: var(--text-soft);
    font-family: var(--font-mono);
    font-size: 0.65rem;
}

.contact-panel {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 2rem;
    padding: clamp(2rem, 6vw, 4.5rem);
    border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line));
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 85% 0%, color-mix(in srgb, var(--sky) 18%, transparent), transparent 23rem),
        color-mix(in srgb, var(--surface-solid) 88%, transparent);
    box-shadow: var(--shadow);
}

.contact-panel::after {
    position: absolute;
    right: -4rem;
    bottom: -8rem;
    width: 24rem;
    height: 24rem;
    border: 1px solid var(--line);
    border-radius: 50%;
    content: "";
}

.contact-panel h2 {
    max-width: 13ch;
    margin-bottom: 1rem;
    font-size: clamp(2.4rem, 5.3vw, 5rem);
    font-weight: 600;
    line-height: 0.98;
}

.contact-panel p {
    max-width: 41rem;
    margin-bottom: 0;
    color: var(--muted);
}

.contact-panel .button {
    position: relative;
    z-index: 1;
}

.site-footer {
    padding: 2rem 0 3rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.82rem;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
}

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

/* About page */
.page-hero {
    padding: clamp(5rem, 11vw, 9rem) 0 clamp(4rem, 7vw, 6rem);
}

.page-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.55fr);
    align-items: end;
    gap: 4rem;
}

.page-hero .page-title {
    max-width: 13ch;
    margin-bottom: 1.6rem;
}

.page-lede {
    max-width: 47rem;
    margin-bottom: 0;
    color: var(--text-soft);
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
}

.profile-card {
    padding: 1.35rem;
}

.profile-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    margin-bottom: 1.2rem;
    border-radius: calc(var(--radius-md) - 0.4rem);
    object-fit: cover;
    object-position: center 34%;
}

.profile-card p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.profile-card strong {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--text);
    font-size: 1.05rem;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.65fr) minmax(0, 1.35fr);
    align-items: start;
    gap: clamp(2rem, 6vw, 6rem);
}

.aside-title {
    position: sticky;
    top: 7rem;
}

.aside-title h2 {
    margin-bottom: 1rem;
    font-size: clamp(2.1rem, 4vw, 3.5rem);
    line-height: 1;
}

.aside-title p {
    color: var(--muted);
}

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

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 9rem minmax(0, 1fr);
    gap: 1.5rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--line);
}

.timeline-date {
    padding-top: 0.18rem;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.69rem;
    font-weight: 700;
    text-transform: uppercase;
}

.timeline-item h3 {
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
}

.timeline-place {
    margin-bottom: 0.85rem;
    color: var(--text-soft);
    font-size: 0.88rem;
}

.timeline-item ul,
.clean-list {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--muted);
}

.timeline-item li + li,
.clean-list li + li {
    margin-top: 0.45rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.detail-card {
    padding: 1.5rem;
}

.detail-card h3 {
    margin-bottom: 1.25rem;
    font-size: 1.35rem;
}

.detail-card p:last-child,
.detail-card ul:last-child {
    margin-bottom: 0;
}

.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 500ms ease, transform 500ms ease;
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

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

@media (max-width: 940px) {
    .menu-button {
        display: inline-grid;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 0.5rem);
        right: 1.25rem;
        width: min(18rem, calc(100vw - 2.5rem));
        display: none;
        align-items: stretch;
        flex-direction: column;
        padding: 0.65rem;
        border: 1px solid var(--line);
        border-radius: var(--radius-md);
        background: var(--bg-raised);
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        padding: 0.8rem 0.9rem;
    }

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

    .hero-copy {
        position: relative;
        z-index: 2;
    }

    .hero-visual {
        width: min(72vw, 30rem);
        margin-inline: auto;
    }

    .project-card,
    .project-card.featured {
        grid-column: span 6;
    }

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

    .expertise-card:last-child {
        grid-column: 1 / -1;
        min-height: 17rem;
    }

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

    .aside-title {
        position: static;
    }
}

@media (max-width: 680px) {
    .container {
        width: min(calc(100% - 1.5rem), var(--container));
    }

    .header-inner {
        min-height: 4.15rem;
    }

    .brand-name {
        display: none;
    }

    .hero {
        padding-top: 4rem;
    }

    .hero h1 {
        font-size: clamp(3rem, 17vw, 4.6rem);
    }

    .hero-visual {
        width: min(88vw, 27rem);
    }

    .orbit-label {
        right: -0.5rem;
        bottom: 1.5rem;
        width: 7.6rem;
        height: 7.6rem;
        font-size: 0.61rem;
    }

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

    .metric,
    .metric:first-child {
        padding: 1rem 0;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

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

    .section-head {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .project-card,
    .project-card.featured {
        grid-column: 1 / -1;
    }

    .expertise-grid,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .expertise-card,
    .expertise-card:last-child {
        grid-column: auto;
        min-height: 18rem;
    }

    .contact-panel {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .contact-panel .button {
        justify-self: start;
    }

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

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
}

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