﻿:root {
    --ink: #050607;
    --ink-soft: #0d1215;
    --ink-muted: #172127;
    --paper: #f6f0ea;
    --paper-strong: #fffaf4;
    --sand: #e9ded3;
    --cream: #f2e9df;
    --line: rgba(17, 22, 25, 0.12);
    --line-soft: rgba(17, 22, 25, 0.08);
    --line-strong: rgba(255, 255, 255, 0.12);
    --text: #121619;
    --muted: #5e666b;
    --muted-strong: #41494e;
    --text-inverted: rgba(255, 255, 255, 0.92);
    --muted-inverted: rgba(255, 255, 255, 0.68);
    --accent: #d9a57b;
    --accent-soft: #f1cba9;
    --sky: #9ab3cb;
    --shadow-soft: 0 18px 54px rgba(9, 12, 14, 0.08);
    --shadow-strong: 0 30px 90px rgba(3, 4, 5, 0.34);
    --radius-xl: 36px;
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
    --header-height: 84px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: var(--text);
    background: var(--paper);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

button,
input,
textarea {
    font: inherit;
}

section[id] {
    scroll-margin-top: calc(var(--header-height) + 16px);
}

.site-noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.18;
    mix-blend-mode: soft-light;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.5) 0.8px, transparent 0.8px),
        radial-gradient(circle at 80% 60%, rgba(255, 255, 255, 0.4) 0.8px, transparent 0.8px);
    background-size: 4px 4px, 5px 5px;
}

.shell {
    position: relative;
    z-index: 1;
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: fixed;
    inset: 18px 0 auto;
    z-index: 20;
    transition: transform 220ms ease, opacity 220ms ease;
}

.site-header.is-scrolled .header-shell {
    background: rgba(7, 10, 11, 0.84);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.header-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: var(--header-height);
    padding: 14px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(7, 10, 11, 0.54);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--text-inverted);
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: radial-gradient(circle at top, rgba(241, 203, 169, 0.44), rgba(255, 255, 255, 0.08));
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.82rem;
    letter-spacing: 0.16em;
}

.brand-copy {
    display: grid;
    gap: 2px;
}

.brand-copy strong {
    font-size: 0.98rem;
    font-weight: 700;
}

.brand-copy span {
    font-size: 0.78rem;
    color: var(--muted-inverted);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto;
}

.site-nav a,
.header-cta,
.console-feed-head a,
.panel-head a,
.site-footer a {
    position: relative;
}

.site-nav a {
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.95rem;
    transition: color 180ms ease;
}

.site-nav a::after,
.header-cta::after,
.console-feed-head a::after,
.panel-head a::after,
.site-footer a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 1px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
    background: currentColor;
}

.site-nav a:hover,
.header-cta:hover,
.console-feed-head a:hover,
.panel-head a:hover,
.site-footer a:hover {
    color: var(--paper-strong);
}

.site-nav a:hover::after,
.header-cta:hover::after,
.console-feed-head a:hover::after,
.panel-head a:hover::after,
.site-footer a:hover::after {
    transform: scaleX(1);
}

.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-inverted);
    font-weight: 600;
}

.header-toggle {
    display: none;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.header-toggle span {
    display: block;
    width: 18px;
    height: 1.5px;
    margin: 6px auto;
    background: var(--paper-strong);
    transition: transform 180ms ease, opacity 180ms ease;
}

.header-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.8px) rotate(45deg);
}

.header-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.8px) rotate(-45deg);
}

.hero {
    position: relative;
    min-height: 100dvh;
    padding: 160px 0 140px;
    overflow: hidden;
    color: var(--text-inverted);
    background:
        radial-gradient(
            circle at 18% 18%,
            rgba(120, 150, 176, 0.2) 0%,
            rgba(120, 150, 176, 0) 26%
        ),
        radial-gradient(
            circle at 52% 12%,
            rgba(241, 203, 169, 0.18) 0%,
            rgba(241, 203, 169, 0) 24%
        ),
        radial-gradient(
            circle at 86% 24%,
            rgba(217, 165, 123, 0.16) 0%,
            rgba(217, 165, 123, 0) 22%
        ),
        radial-gradient(
            circle at 50% 72%,
            rgba(99, 120, 136, 0.16) 0%,
            rgba(99, 120, 136, 0) 34%
        ),
        linear-gradient(
            180deg,
            #030405 0%,
            #071015 30%,
            #0d171b 58%,
            #162126 82%,
            #223038 100%
        );
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            120deg,
            rgba(255, 255, 255, 0.05) 0%,
            transparent 24%,
            transparent 76%,
            rgba(255, 255, 255, 0.03) 100%
        ),
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size:
        auto,
        150px 150px,
        150px 150px;
    background-position: center, center, center;
    opacity: 0.18;
    mask-image: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.88) 0%,
        rgba(0, 0, 0, 0.72) 62%,
        transparent 100%
    );
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -8% -10% -8%;
    height: clamp(240px, 32vw, 420px);
    background:
        radial-gradient(
            ellipse at center,
            rgba(239, 229, 218, 0.22) 0%,
            rgba(161, 148, 136, 0.1) 38%,
            rgba(10, 14, 17, 0) 70%
        ),
        linear-gradient(
            180deg,
            rgba(10, 14, 17, 0) 0%,
            rgba(11, 16, 19, 0.3) 22%,
            rgba(17, 24, 28, 0.82) 62%,
            rgba(233, 222, 211, 0.92) 100%
        );
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-backdrop::before,
.hero-backdrop::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(18px);
}

.hero-backdrop::before {
    width: min(56rem, 78vw);
    height: min(28rem, 40vw);
    top: 5rem;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(
        ellipse at center,
        rgba(241, 203, 169, 0.16) 0%,
        rgba(241, 203, 169, 0.08) 34%,
        rgba(241, 203, 169, 0) 72%
    );
}

.hero-backdrop::after {
    width: min(78rem, 120vw);
    height: 18rem;
    left: 50%;
    bottom: 9rem;
    transform: translateX(-50%);
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(201, 215, 227, 0.14) 20%,
        rgba(255, 237, 219, 0.22) 50%,
        rgba(201, 215, 227, 0.14) 80%,
        rgba(255, 255, 255, 0) 100%
    );
    opacity: 0.56;
}

.hero-glow,
.hero-ridge {
    position: absolute;
    border-radius: 999px;
}

.hero-glow-one {
    width: 48rem;
    height: 48rem;
    top: -16rem;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(
        circle,
        rgba(241, 203, 169, 0.36) 0%,
        rgba(241, 203, 169, 0.11) 30%,
        rgba(241, 203, 169, 0) 66%
    );
    filter: blur(22px);
}

.hero-glow-two {
    width: 38rem;
    height: 38rem;
    top: -4rem;
    left: -10rem;
    background: radial-gradient(
        circle,
        rgba(154, 179, 203, 0.22) 0%,
        rgba(154, 179, 203, 0.08) 34%,
        rgba(154, 179, 203, 0) 72%
    );
    filter: blur(16px);
}

.hero-glow-three {
    width: 34rem;
    height: 34rem;
    right: -7rem;
    top: 7rem;
    background: radial-gradient(
        circle,
        rgba(217, 165, 123, 0.2) 0%,
        rgba(217, 165, 123, 0.08) 32%,
        rgba(217, 165, 123, 0) 72%
    );
    filter: blur(16px);
}

.hero-ridge {
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(
        180deg,
        rgba(163, 185, 202, 0.32),
        rgba(40, 55, 64, 0.7) 38%,
        rgba(8, 11, 13, 0.98) 100%
    );
    box-shadow: var(--shadow-strong);
    filter: blur(6px);
}

.ridge-one {
    width: min(96rem, 126vw);
    height: 20rem;
    bottom: 14rem;
    opacity: 0.36;
}

.ridge-two {
    width: min(84rem, 112vw);
    height: 17rem;
    bottom: 8rem;
    opacity: 0.56;
}

.ridge-three {
    width: min(66rem, 100vw);
    height: 14rem;
    bottom: 2rem;
    opacity: 0.8;
}

.hero-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(380px, 0.94fr);
    gap: 38px;
    align-items: end;
}

.hero-copy h1 {
    margin: 22px 0 20px;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(4rem, 8vw, 7.4rem);
    line-height: 0.92;
    letter-spacing: -0.045em;
    font-weight: 400;
    max-width: 10.2ch;
}

.hero-copy h1 span {
    color: var(--accent-soft);
}

.hero-lede {
    max-width: 41rem;
    margin: 0 0 30px;
    font-size: 1.08rem;
    color: var(--muted-inverted);
}

.eyebrow-pill {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
    font-weight: 700;
}

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

.button-primary {
    color: var(--ink);
    background: var(--paper-strong);
    box-shadow: 0 18px 42px rgba(255, 255, 255, 0.1);
}

.button-secondary {
    color: var(--text-inverted);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
}

.button-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
}

.trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.trust-strip li {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.76);
    background: rgba(255, 255, 255, 0.035);
    font-size: 0.86rem;
}

.hero-console {
    display: grid;
    gap: 16px;
}

.console-card,
.console-metric,
.github-panel {
    border: 1px solid var(--line-strong);
    background: rgba(7, 10, 11, 0.42);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: var(--shadow-strong);
}

.console-card {
    border-radius: var(--radius-lg);
    padding: 18px;
}

.console-top,
.console-feed-head,
.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.console-pill,
.meta-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.console-pill::before,
.meta-label::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

.console-status,
.panel-note {
    font-size: 0.82rem;
    color: var(--muted-inverted);
}

.meta-label {
    color: var(--muted);
}

.meta-label-inverted {
    color: var(--muted-inverted);
}

.console-code {
    margin: 18px 0 0;
    padding: 18px;
    border-radius: 22px;
    overflow: auto;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.84);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.82rem;
    line-height: 1.9;
}

.console-code [data-github] {
    color: var(--accent-soft);
}

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

.console-metric {
    padding: 18px;
    border-radius: 24px;
}

.metric-label {
    display: block;
    margin-bottom: 10px;
    color: var(--muted-inverted);
    font-size: 0.82rem;
}

.console-metric strong {
    display: block;
    font-size: clamp(1.2rem, 3vw, 1.7rem);
    line-height: 1.1;
    color: var(--text-inverted);
}

.mini-feed {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.mini-feed-item,
.repo-activity-item {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.035);
}

.mini-feed-item {
    padding: 14px 16px;
}

.mini-feed-item strong,
.repo-activity-item strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text-inverted);
}

.mini-feed-item span,
.repo-activity-item span {
    display: inline-block;
    font-size: 0.84rem;
    color: var(--muted-inverted);
}

.is-skeleton {
    position: relative;
    overflow: hidden;
    min-height: 72px;
}

.is-skeleton::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.08) 45%, transparent 100%),
        rgba(255, 255, 255, 0.03);
    transform: translateX(-100%);
    animation: shimmer 1.6s infinite;
}

@keyframes shimmer {
    to {
        transform: translateX(100%);
    }
}

.section {
    padding: 110px 0;
}

.section-light {
    background: linear-gradient(180deg, rgba(233, 222, 211, 0.9) 0%, var(--paper) 40%);
}

.section-sand {
    background: var(--sand);
}

.section-ivory {
    background: var(--paper-strong);
}

.section-cream {
    background: var(--cream);
}

.section-ink {
    position: relative;
    color: var(--text-inverted);
    background:
        radial-gradient(circle at top, rgba(154, 179, 203, 0.08), transparent 34%),
        linear-gradient(180deg, #080b0d 0%, #0d1215 100%);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 42px;
}

.section-heading h2,
.cta-copy h2 {
    margin: 16px 0 14px;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2.8rem, 5vw, 4.6rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
    font-weight: 400;
}

.section-heading p,
.cta-copy p {
    margin: 0;
    font-size: 1rem;
    color: var(--muted);
}

.section-heading-inverted p {
    color: var(--muted-inverted);
}

.service-grid,
.experience-grid,
.process-grid {
    display: grid;
    gap: 18px;
}

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

.service-card,
.experience-card,
.process-card,
.project-card {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 250, 244, 0.72);
    box-shadow: var(--shadow-soft);
}

.service-card,
.experience-card,
.process-card {
    padding: 28px;
}

.service-card {
    min-height: 100%;
}

.service-index,
.process-number {
    display: inline-flex;
    margin-bottom: 26px;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    color: var(--muted);
}

.service-card h3,
.experience-card h3,
.process-card h3,
.github-panel h3 {
    margin: 0 0 12px;
    font-size: 1.25rem;
    line-height: 1.2;
}

.service-card p,
.experience-head p,
.process-card p {
    margin: 0;
    color: var(--muted-strong);
}

.feature-list,
.experience-list {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.feature-list li,
.experience-list li {
    position: relative;
    padding-left: 18px;
    color: var(--muted-strong);
}

.feature-list li + li,
.experience-list li + li {
    margin-top: 10px;
}

.feature-list li::before,
.experience-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

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

.project-card {
    grid-column: span 4;
    display: flex;
    flex-direction: column;
    min-height: 360px;
    padding: 28px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(251, 247, 242, 0.82)),
        var(--paper-strong);
}

.project-card.is-featured {
    grid-column: span 7;
    min-height: 420px;
}

.project-card.is-wide {
    grid-column: span 5;
}

.project-card::before {
    content: "";
    position: absolute;
    inset: auto -12% -40% auto;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--project-tint, rgba(217, 165, 123, 0.18)) 0%, rgba(255, 255, 255, 0) 68%);
    opacity: 0.95;
}

.project-card > * {
    position: relative;
    z-index: 1;
}

.project-kicker,
.experience-label,
.stack-title {
    display: inline-flex;
    margin-bottom: 16px;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.project-card h3 {
    margin: 0 0 12px;
    font-size: clamp(1.45rem, 2vw, 2rem);
    line-height: 1.05;
}

.project-card p {
    margin: 0;
    color: var(--muted-strong);
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 28px;
}

.project-meta span,
.chip-row span,
.metric-badges span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.6);
    font-size: 0.82rem;
    color: var(--muted-strong);
}

.project-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 22px;
}

.project-link {
    font-weight: 700;
}

.project-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    font-size: 0.86rem;
}

.project-loading {
    width: 100%;
    min-height: 100%;
    border-radius: 24px;
    background:
        linear-gradient(90deg, rgba(17, 22, 25, 0.06) 0%, rgba(255, 255, 255, 0.6) 50%, rgba(17, 22, 25, 0.06) 100%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

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

.experience-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.experience-head h3 {
    margin-bottom: 6px;
}

.metric-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.github-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 20px;
}

.github-panel {
    border-radius: 32px;
    padding: 28px;
}

.panel-head a,
.console-feed-head a {
    color: var(--paper-strong);
    font-weight: 700;
}

.signal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 26px 0 30px;
}

.signal-card {
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.signal-card span {
    display: block;
    margin-bottom: 10px;
    color: var(--muted-inverted);
    font-size: 0.82rem;
}

.signal-card strong {
    display: block;
    color: var(--text-inverted);
    font-size: 1.28rem;
}

.stack-groups {
    display: grid;
    gap: 20px;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip-row span {
    color: var(--muted-inverted);
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.repo-activity {
    display: grid;
    gap: 12px;
    margin-top: 26px;
}

.repo-activity-item {
    padding: 16px 18px;
}

.repo-activity-item p {
    margin: 0 0 10px;
    color: var(--muted-inverted);
    font-size: 0.9rem;
}

.repo-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

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

.cta-section {
    padding-top: 120px;
    padding-bottom: 120px;
}

.cta-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
    gap: 24px;
    align-items: start;
}

.contact-card {
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: var(--shadow-strong);
}

.contact-link {
    display: grid;
    gap: 6px;
    padding: 18px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.contact-link:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
}

.contact-link span {
    font-size: 0.8rem;
    color: var(--muted-inverted);
}

.contact-link strong {
    color: var(--text-inverted);
}

.site-footer {
    position: relative;
    z-index: 1;
    padding: 24px 0 40px;
    color: rgba(255, 255, 255, 0.72);
    background: #0d1215;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: 0.92rem;
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1100px) {
    .hero-shell,
    .github-grid,
    .cta-shell {
        grid-template-columns: 1fr;
    }

    .hero-shell {
        gap: 24px;
    }

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

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

@media (max-width: 820px) {
    .shell {
        width: min(100% - 24px, 1240px);
    }

    .site-header {
        inset: 12px 0 auto;
    }

    .header-shell {
        min-height: 72px;
        padding: 10px 12px;
        border-radius: 26px;
        flex-wrap: wrap;
    }

    .header-toggle {
        display: inline-block;
    }

    .header-cta {
        display: none;
    }

    .site-nav {
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 16px 8px 4px;
        margin-left: 0;
    }

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

    .hero {
        padding-top: 132px;
        padding-bottom: 96px;
    }

    .hero-copy h1 {
        max-width: none;
        font-size: clamp(3.3rem, 15vw, 5rem);
    }

    .console-grid,
    .signal-grid,
    .project-grid,
    .service-grid,
    .experience-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }

    .project-card,
    .project-card.is-featured,
    .project-card.is-wide {
        grid-column: span 12;
        min-height: 320px;
    }

    .cta-section {
        padding-top: 100px;
        padding-bottom: 100px;
    }

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

@media (max-width: 560px) {
    .brand-copy span {
        display: none;
    }

    .section {
        padding: 90px 0;
    }

    .service-card,
    .experience-card,
    .process-card,
    .project-card,
    .github-panel {
        padding: 22px;
        border-radius: 24px;
    }

    .button {
        width: 100%;
    }

    .hero-cta-row {
        flex-direction: column;
    }

    .trust-strip {
        gap: 8px;
    }

    .trust-strip li {
        width: 100%;
        justify-content: center;
    }
}

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

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

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

