:root {
    --black: #07090d;
    --black-soft: #0b0f15;
    --black-raised: #10161f;
    --blue-deep: #081b33;
    --blue-panel: #0b2748;
    --blue-neon: #168bff;
    --blue-bright: #54adff;
    --gold: #d6a84a;
    --gold-light: #f0c873;
    --white: #f2f5f7;
    --text: #d8dfe6;
    --muted: #94a1af;
    --line: rgba(84, 173, 255, 0.22);
    --line-soft: rgba(255, 255, 255, 0.09);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
    --radius-large: 28px;
    --radius-medium: 18px;
    --radius-small: 10px;
    --shell: min(1180px, calc(100% - 40px));
    --header-height: 78px;
    --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
    margin: 0;
    color: var(--text);
    background: var(--black);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.nav-open {
    overflow: hidden;
}

::selection {
    color: var(--black);
    background: var(--gold-light);
}

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

button,
input,
select,
textarea {
    font: inherit;
}

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

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

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

h1,
h2,
h3 {
    color: var(--white);
    line-height: 1.08;
}

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

h2 {
    margin-bottom: 0;
    font-size: clamp(2.2rem, 5vw, 4.25rem);
    font-weight: 760;
}

h3 {
    font-size: 1.24rem;
}

.shell {
    width: var(--shell);
    margin-inline: auto;
}

.section {
    position: relative;
    padding: clamp(88px, 11vw, 150px) 0;
}

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

.section-blue {
    overflow: hidden;
    background:
        radial-gradient(circle at 95% 10%, rgba(22, 139, 255, 0.15), transparent 27rem),
        linear-gradient(155deg, #07182d 0%, var(--blue-deep) 48%, #061425 100%);
    border-block: 1px solid rgba(84, 173, 255, 0.13);
}

.section-blue::before {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    opacity: 0.28;
    background-image:
        linear-gradient(rgba(84, 173, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(84, 173, 255, 0.06) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, transparent, black 18%, black 82%, transparent);
}

.section-blue > .shell {
    position: relative;
    z-index: 1;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--gold-light);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    line-height: 1.3;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 30px;
    height: 1px;
    content: "";
    background: var(--gold);
}

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

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

.button:focus-visible,
.filter-button:focus-visible,
.copy-button:focus-visible,
.nav-toggle:focus-visible,
.back-to-top:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(84, 173, 255, 0.55);
    outline-offset: 3px;
}

.button-gold {
    color: #181208;
    background: var(--gold);
    box-shadow: 0 10px 30px rgba(214, 168, 74, 0.18);
}

.button-gold:hover {
    background: var(--gold-light);
    box-shadow: 0 14px 38px rgba(214, 168, 74, 0.28);
}

.button-outline {
    color: var(--white);
    border-color: rgba(84, 173, 255, 0.45);
    background: rgba(8, 39, 72, 0.36);
}

.button-outline:hover {
    border-color: var(--blue-bright);
    background: rgba(22, 139, 255, 0.12);
    box-shadow: 0 0 24px rgba(22, 139, 255, 0.12);
}

.button-small {
    min-height: 40px;
    padding-inline: 18px;
    font-size: 0.86rem;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 14px;
    left: 14px;
    padding: 10px 16px;
    color: var(--black);
    background: var(--gold-light);
    border-radius: 8px;
    font-weight: 800;
    transform: translateY(-160%);
    transition: transform 160ms ease;
}

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

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

/* Header */

.site-header {
    position: fixed;
    z-index: 100;
    top: 0;
    right: 0;
    left: 0;
    height: var(--header-height);
    border-bottom: 1px solid transparent;
    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        backdrop-filter 180ms ease;
}

.site-header.is-scrolled {
    border-color: rgba(84, 173, 255, 0.16);
    background: rgba(7, 9, 13, 0.88);
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(18px);
}

.nav-shell {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--gold-light);
    border: 1px solid rgba(214, 168, 74, 0.72);
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, rgba(214, 168, 74, 0.12), transparent 68%),
        var(--black);
    font-family: var(--font-display);
    font-size: 0.83rem;
    font-weight: 900;
    letter-spacing: 0.05em;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-copy strong {
    color: var(--white);
    font-size: 0.9rem;
    letter-spacing: 0.025em;
}

.brand-copy small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.7rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2.2vw, 30px);
}

.site-nav > a:not(.button) {
    position: relative;
    padding: 8px 0;
    color: #c9d1d9;
    font-size: 0.87rem;
    font-weight: 680;
}

.site-nav > a:not(.button)::after {
    position: absolute;
    right: 0;
    bottom: 2px;
    left: 0;
    height: 2px;
    content: "";
    background: var(--blue-neon);
    box-shadow: 0 0 12px rgba(22, 139, 255, 0.85);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 180ms ease;
}

.site-nav > a:hover,
.site-nav > a.is-active {
    color: var(--white);
}

.site-nav > a:hover::after,
.site-nav > a.is-active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--white);
    background: var(--blue-deep);
    cursor: pointer;
}

.nav-toggle > span:not(.sr-only) {
    display: block;
    width: 100%;
    height: 2px;
    margin: 4px 0;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
}

/* Hero */

.hero {
    position: relative;
    min-height: min(940px, 100svh);
    overflow: hidden;
    padding: calc(var(--header-height) + 72px) 0 40px;
    background:
        linear-gradient(110deg, rgba(7, 9, 13, 0.98) 0%, rgba(7, 9, 13, 0.94) 45%, rgba(8, 27, 51, 0.86) 100%),
        var(--black);
}

.hero::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 130px;
    content: "";
    pointer-events: none;
    background: linear-gradient(to bottom, transparent, var(--black));
}

.hero-grid {
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background-image:
        linear-gradient(rgba(84, 173, 255, 0.11) 1px, transparent 1px),
        linear-gradient(90deg, rgba(84, 173, 255, 0.11) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(circle at 78% 44%, black, transparent 68%);
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(12px);
}

.hero-glow-blue {
    top: 11%;
    right: -10rem;
    width: 38rem;
    height: 38rem;
    background: radial-gradient(circle, rgba(22, 139, 255, 0.18), transparent 69%);
}

.hero-glow-gold {
    bottom: 2%;
    left: 17%;
    width: 22rem;
    height: 22rem;
    background: radial-gradient(circle, rgba(214, 168, 74, 0.08), transparent 70%);
}

.hero-layout {
    position: relative;
    z-index: 2;
    display: grid;
    min-height: calc(100svh - var(--header-height) - 180px);
    align-items: center;
    grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
    gap: clamp(60px, 8vw, 120px);
}

.hero-copy {
    max-width: 720px;
}

.hero-copy .eyebrow::before {
    display: none;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 5px rgba(214, 168, 74, 0.1), 0 0 16px rgba(214, 168, 74, 0.6);
}

.hero h1 {
    max-width: 800px;
    margin-bottom: 28px;
    font-size: clamp(3.3rem, 7vw, 6.8rem);
    font-weight: 820;
    line-height: 0.92;
    text-transform: uppercase;
}

.hero h1 span {
    color: var(--blue-bright);
    text-shadow: 0 0 34px rgba(22, 139, 255, 0.18);
}

.hero-lead {
    max-width: 650px;
    margin-bottom: 32px;
    color: #b9c4cf;
    font-size: clamp(1rem, 1.5vw, 1.18rem);
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 28px;
    color: var(--muted);
    font-size: 0.83rem;
}

.hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.hero-meta span::before {
    width: 5px;
    height: 5px;
    content: "";
    border: 1px solid var(--blue-bright);
    border-radius: 50%;
}

.identity-card {
    position: relative;
    display: grid;
    width: min(100%, 460px);
    aspect-ratio: 1;
    place-items: center;
    justify-self: center;
    isolation: isolate;
}

.identity-card::before {
    position: absolute;
    z-index: -3;
    inset: 9%;
    content: "";
    border: 1px solid rgba(84, 173, 255, 0.28);
    border-radius: 42% 58% 55% 45% / 46% 43% 57% 54%;
    background:
        linear-gradient(145deg, rgba(11, 39, 72, 0.8), rgba(7, 9, 13, 0.94)),
        var(--blue-deep);
    box-shadow:
        inset 0 0 70px rgba(22, 139, 255, 0.08),
        0 30px 80px rgba(0, 0, 0, 0.35);
    transform: rotate(-5deg);
}

.identity-card::after {
    position: absolute;
    z-index: -2;
    inset: 19%;
    content: "";
    border: 1px solid rgba(214, 168, 74, 0.42);
    border-radius: 50%;
    box-shadow: 0 0 44px rgba(214, 168, 74, 0.07);
}

.identity-orbit {
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(84, 173, 255, 0.22);
    border-radius: 50%;
}

.orbit-one {
    inset: 4%;
    transform: rotate(24deg) scaleY(0.67);
}

.orbit-two {
    inset: 12%;
    border-color: rgba(214, 168, 74, 0.24);
    transform: rotate(-38deg) scaleX(0.72);
}

.identity-core {
    display: flex;
    width: 142px;
    height: 142px;
    align-items: baseline;
    justify-content: center;
    padding-top: 32px;
    color: var(--white);
    border: 1px solid rgba(84, 173, 255, 0.55);
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 35%, rgba(22, 139, 255, 0.22), transparent 60%),
        #07101c;
    box-shadow:
        0 0 0 10px rgba(22, 139, 255, 0.03),
        0 0 42px rgba(22, 139, 255, 0.15);
    font-family: var(--font-display);
}

.identity-core span {
    font-size: 3.2rem;
    font-weight: 900;
    letter-spacing: -0.08em;
}

.identity-core strong {
    margin-left: 6px;
    color: var(--gold-light);
    font-size: 1.1rem;
}

.identity-card > p {
    position: absolute;
    bottom: 18%;
    left: 50%;
    width: 220px;
    margin: 0;
    color: #9fabb8;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    line-height: 1.55;
    text-align: center;
    text-transform: uppercase;
    transform: translateX(-50%);
}

.identity-card > p strong {
    color: var(--gold-light);
    font-weight: 800;
}

.identity-label {
    position: absolute;
    padding: 8px 12px;
    color: #b8c7d6;
    border: 1px solid rgba(84, 173, 255, 0.24);
    border-radius: 999px;
    background: rgba(7, 14, 24, 0.82);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    font-size: 0.68rem;
    font-weight: 780;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.identity-label-top {
    top: 8%;
    left: 22%;
}

.identity-label-right {
    top: 37%;
    right: 0;
}

.identity-label-bottom {
    right: 9%;
    bottom: 10%;
}

.discipline-strip {
    position: relative;
    z-index: 3;
    display: grid;
    margin-top: 34px;
    border: 1px solid rgba(84, 173, 255, 0.18);
    border-radius: 14px;
    background: rgba(7, 14, 24, 0.64);
    grid-template-columns: repeat(4, 1fr);
    backdrop-filter: blur(16px);
}

.discipline-strip span {
    position: relative;
    padding: 18px 16px;
    color: #b4c0cc;
    font-size: 0.74rem;
    font-weight: 760;
    letter-spacing: 0.12em;
    text-align: center;
    text-transform: uppercase;
}

.discipline-strip span + span {
    border-left: 1px solid rgba(84, 173, 255, 0.14);
}

/* About */

.about-layout {
    display: grid;
    align-items: start;
    grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
    gap: clamp(50px, 10vw, 150px);
}

.about-copy {
    padding-top: 16px;
}

.about-copy > p {
    color: #aeb9c4;
}

.lead-paragraph {
    color: var(--white) !important;
    font-size: clamp(1.12rem, 2vw, 1.46rem);
    line-height: 1.65;
}

.principle-row {
    display: grid;
    margin-top: 48px;
    border-top: 1px solid var(--line-soft);
    grid-template-columns: repeat(3, 1fr);
}

.principle-row > div {
    padding: 24px 20px 0 0;
}

.principle-row > div + div {
    padding-left: 20px;
    border-left: 1px solid var(--line-soft);
}

.principle-row strong,
.principle-row span {
    display: block;
}

.principle-row strong {
    margin-bottom: 7px;
    color: var(--gold-light);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.principle-row span {
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.5;
}

/* Capabilities */

.section-heading {
    display: grid;
    align-items: end;
    margin-bottom: 54px;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
    gap: 60px;
}

.section-heading > p {
    max-width: 440px;
    margin: 0 0 7px auto;
    color: #aab7c5;
}

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

.capability-card {
    position: relative;
    min-height: 330px;
    overflow: hidden;
    padding: 38px;
    border: 1px solid rgba(84, 173, 255, 0.18);
    border-radius: var(--radius-medium);
    background:
        linear-gradient(145deg, rgba(11, 39, 72, 0.72), rgba(7, 19, 35, 0.88));
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.14);
    transition:
        border-color 200ms ease,
        box-shadow 200ms ease,
        transform 200ms ease;
}

.capability-card::after {
    position: absolute;
    right: -70px;
    bottom: -70px;
    width: 180px;
    height: 180px;
    content: "";
    border: 1px solid rgba(84, 173, 255, 0.1);
    border-radius: 50%;
    box-shadow: 0 0 0 28px rgba(84, 173, 255, 0.025);
}

.capability-card:hover {
    border-color: rgba(84, 173, 255, 0.5);
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.24), 0 0 28px rgba(22, 139, 255, 0.06);
    transform: translateY(-4px);
}

.card-number {
    position: absolute;
    top: 30px;
    right: 34px;
    color: rgba(214, 168, 74, 0.75);
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.capability-card h3 {
    margin: 28px 0 16px;
    font-size: 1.5rem;
}

.capability-card p {
    max-width: 500px;
    color: #aab7c5;
}

.line-icon {
    position: relative;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(84, 173, 255, 0.52);
    border-radius: 14px;
    background: rgba(22, 139, 255, 0.05);
    box-shadow: inset 0 0 20px rgba(22, 139, 255, 0.05);
}

.line-icon::before,
.line-icon::after {
    position: absolute;
    content: "";
}

.line-icon-machine::before {
    inset: 15px 12px;
    border: 2px solid var(--blue-bright);
    border-top-width: 8px;
}

.line-icon-machine::after {
    right: 16px;
    bottom: 10px;
    left: 16px;
    height: 2px;
    background: var(--gold);
}

.line-icon-tools::before {
    top: 13px;
    left: 25px;
    width: 4px;
    height: 29px;
    border-radius: 999px;
    background: var(--blue-bright);
    transform: rotate(42deg);
}

.line-icon-tools::after {
    top: 10px;
    left: 13px;
    width: 16px;
    height: 16px;
    border: 3px solid var(--gold);
    border-right-color: transparent;
    border-radius: 50%;
    transform: rotate(42deg);
}

.line-icon-design::before {
    inset: 12px;
    border: 2px solid var(--blue-bright);
    border-radius: 50% 50% 50% 12%;
    transform: rotate(-24deg);
}

.line-icon-design::after {
    top: 24px;
    left: 25px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 10px -4px 0 -1px var(--blue-bright), -9px -5px 0 -1px var(--blue-bright);
}

.line-icon-code::before {
    top: 16px;
    left: 12px;
    width: 16px;
    height: 16px;
    border-bottom: 2px solid var(--blue-bright);
    border-left: 2px solid var(--blue-bright);
    transform: rotate(45deg);
}

.line-icon-code::after {
    top: 16px;
    right: 12px;
    width: 16px;
    height: 16px;
    border-top: 2px solid var(--gold);
    border-right: 2px solid var(--gold);
    transform: rotate(45deg);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 22px 0 0;
    list-style: none;
}

.tag-list li {
    padding: 7px 10px;
    color: #abc7e4;
    border: 1px solid rgba(84, 173, 255, 0.18);
    border-radius: 999px;
    background: rgba(22, 139, 255, 0.05);
    font-size: 0.72rem;
    font-weight: 700;
}

/* Experience */

.experience-layout {
    display: grid;
    align-items: start;
    grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(60px, 10vw, 150px);
}

.experience-intro {
    position: sticky;
    top: calc(var(--header-height) + 40px);
}

.experience-intro > p:not(.eyebrow) {
    max-width: 400px;
    margin: 28px 0 24px;
    color: #aab5c0;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--gold-light);
    border-bottom: 1px solid rgba(214, 168, 74, 0.4);
    font-weight: 750;
}

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

.timeline {
    position: relative;
}

.timeline::before {
    position: absolute;
    top: 7px;
    bottom: 7px;
    left: 115px;
    width: 1px;
    content: "";
    background: linear-gradient(var(--blue-neon), rgba(84, 173, 255, 0.08));
}

.timeline-item {
    position: relative;
    display: grid;
    padding-bottom: 48px;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 55px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    position: absolute;
    top: 6px;
    left: 110px;
    width: 11px;
    height: 11px;
    content: "";
    border: 2px solid var(--blue-bright);
    border-radius: 50%;
    background: var(--black);
    box-shadow: 0 0 16px rgba(22, 139, 255, 0.48);
}

.timeline-date {
    padding-top: 2px;
    color: var(--gold-light);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.timeline-company {
    margin-bottom: 7px;
    color: var(--blue-bright);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.timeline-item h3 {
    margin-bottom: 12px;
    font-size: 1.35rem;
}

.timeline-item p:last-child {
    margin: 0;
    color: #9ca8b4;
}

/* Portfolio */

.portfolio-section {
    padding-bottom: clamp(100px, 12vw, 165px);
}

.portfolio-heading {
    margin-bottom: 32px;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 34px;
}

.filter-button {
    padding: 9px 15px;
    color: #aebdcb;
    border: 1px solid rgba(84, 173, 255, 0.18);
    border-radius: 999px;
    background: rgba(7, 18, 33, 0.62);
    cursor: pointer;
    font-size: 0.76rem;
    font-weight: 760;
    transition: 180ms ease;
}

.filter-button:hover,
.filter-button.is-active {
    color: var(--black);
    border-color: var(--gold);
    background: var(--gold);
}

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

.project-card {
    display: grid;
    min-height: 500px;
    overflow: hidden;
    border: 1px solid rgba(84, 173, 255, 0.2);
    border-radius: var(--radius-large);
    background: #08182c;
    box-shadow: var(--shadow);
    grid-template-rows: 220px minmax(0, 1fr);
    transition:
        opacity 180ms ease,
        transform 200ms ease,
        border-color 200ms ease;
}

.project-card:hover {
    border-color: rgba(84, 173, 255, 0.52);
    transform: translateY(-5px);
}

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

.project-visual {
    position: relative;
    display: grid;
    overflow: hidden;
    place-items: center;
    border-bottom: 1px solid rgba(84, 173, 255, 0.14);
}

.project-visual::before {
    position: absolute;
    inset: 0;
    content: "";
    opacity: 0.32;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(90deg, transparent, black 25%, black 75%, transparent);
}

.project-visual > span {
    position: relative;
    z-index: 2;
    color: var(--white);
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5.2rem);
    font-weight: 900;
    letter-spacing: -0.06em;
    text-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
}

.visual-forge {
    background:
        radial-gradient(circle at 50% 85%, rgba(214, 168, 74, 0.32), transparent 35%),
        linear-gradient(145deg, #15110c, #54330d 55%, #07101b);
}

.visual-forge > span {
    color: var(--gold-light);
}

.visual-forge > div {
    position: absolute;
    bottom: 28px;
    width: 180px;
    height: 22px;
    border-radius: 50%;
    background: rgba(214, 168, 74, 0.16);
    filter: blur(8px);
}

.visual-web {
    background:
        radial-gradient(circle at 70% 20%, rgba(22, 139, 255, 0.4), transparent 40%),
        linear-gradient(145deg, #07111f, #0a2a50);
}

.code-lines {
    position: absolute;
    top: 36px;
    right: 36px;
    width: 110px;
    height: 70px;
    opacity: 0.5;
    background:
        linear-gradient(var(--blue-bright), var(--blue-bright)) 0 0 / 100% 3px no-repeat,
        linear-gradient(var(--gold), var(--gold)) 0 18px / 68% 3px no-repeat,
        linear-gradient(var(--blue-bright), var(--blue-bright)) 0 36px / 83% 3px no-repeat,
        linear-gradient(var(--blue-bright), var(--blue-bright)) 0 54px / 48% 3px no-repeat;
}

.visual-eddie {
    background:
        linear-gradient(180deg, rgba(7, 9, 13, 0.12), rgba(7, 9, 13, 0.8)),
        linear-gradient(145deg, #2b0907, #751c13 56%, #0d0b0b);
}

.visual-eddie > span {
    color: #e1c29d;
}

.moon {
    position: absolute;
    top: 32px;
    right: 42px;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: #b5251d;
    box-shadow: 0 0 45px rgba(181, 37, 29, 0.44);
}

.visual-outdoor {
    background:
        radial-gradient(circle at 72% 18%, rgba(214, 168, 74, 0.35), transparent 28%),
        linear-gradient(155deg, #07170f, #123a24 58%, #061425);
}

.terrain-lines {
    position: absolute;
    right: -4%;
    bottom: -42%;
    left: -4%;
    height: 180px;
    border: 2px solid rgba(214, 168, 74, 0.35);
    border-radius: 50%;
    box-shadow:
        0 -22px 0 -1px rgba(84, 173, 255, 0.16),
        0 -44px 0 -2px rgba(84, 173, 255, 0.12),
        0 -66px 0 -3px rgba(84, 173, 255, 0.08);
}

.project-content {
    padding: 30px;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 18px;
    color: var(--gold-light);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.project-meta span:last-child {
    color: var(--muted);
}

.project-content h3 {
    margin-bottom: 14px;
    font-size: 1.55rem;
}

.project-content > p {
    color: #a7b4c1;
}

/* Resume banner */

.resume-banner {
    padding: 70px 0;
    color: var(--black);
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 35%),
        var(--gold);
}

.resume-banner .eyebrow,
.resume-banner h2,
.resume-banner p {
    color: #181208;
}

.resume-banner .eyebrow::before {
    background: #181208;
}

.resume-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.resume-banner h2 {
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.resume-banner p {
    max-width: 700px;
    margin: 14px 0 0;
}

.resume-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 12px;
}

.resume-banner .button-gold {
    color: var(--white);
    background: var(--black);
    box-shadow: none;
}

.resume-banner .button-gold:hover {
    background: var(--blue-deep);
}

.resume-banner .button-outline {
    color: var(--black);
    border-color: rgba(7, 9, 13, 0.42);
    background: transparent;
}

.resume-banner .button-outline:hover {
    color: var(--white);
    border-color: var(--black);
    background: var(--black);
}

/* Contact */

.contact-section {
    overflow: hidden;
}

.contact-section::before {
    position: absolute;
    top: 0;
    right: -20%;
    width: 65%;
    height: 100%;
    content: "";
    pointer-events: none;
    background: radial-gradient(circle, rgba(22, 139, 255, 0.1), transparent 65%);
}

.contact-layout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(50px, 9vw, 120px);
}

.contact-intro > p:not(.eyebrow) {
    max-width: 450px;
    margin: 28px 0 38px;
    color: #a7b1bd;
}

.contact-method {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 11px;
    padding: 20px 0;
    border-block: 1px solid var(--line-soft);
}

.contact-method > span {
    width: 100%;
    color: var(--gold-light);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.contact-method a {
    color: var(--white);
    font-size: clamp(1rem, 2vw, 1.18rem);
    font-weight: 760;
}

.copy-button {
    padding: 5px 10px;
    color: var(--blue-bright);
    border: 1px solid rgba(84, 173, 255, 0.25);
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
    font-size: 0.68rem;
    font-weight: 750;
}

.copy-button:hover {
    color: var(--white);
    border-color: var(--blue-bright);
}

.contact-note {
    margin-top: 28px;
    padding-left: 18px;
    border-left: 2px solid var(--gold);
}

.contact-note strong {
    display: block;
    margin-bottom: 6px;
    color: var(--white);
    font-size: 0.88rem;
}

.contact-note p {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
}

.contact-panel {
    padding: clamp(24px, 5vw, 46px);
    border: 1px solid rgba(84, 173, 255, 0.18);
    border-radius: var(--radius-large);
    background:
        linear-gradient(145deg, rgba(11, 39, 72, 0.72), rgba(7, 17, 30, 0.9));
    box-shadow: var(--shadow);
}

.form-notice {
    margin-bottom: 24px;
    padding: 14px 16px;
    border: 1px solid;
    border-radius: 10px;
    font-size: 0.88rem;
}

.form-notice-success {
    color: #c8f5db;
    border-color: rgba(83, 214, 139, 0.4);
    background: rgba(31, 135, 74, 0.16);
}

.form-notice-error {
    color: #ffd2d2;
    border-color: rgba(255, 102, 102, 0.36);
    background: rgba(149, 37, 37, 0.16);
}

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

.field {
    margin-bottom: 20px;
}

.field label,
.label-row {
    color: #dfe7ee;
    font-size: 0.76rem;
    font-weight: 760;
    letter-spacing: 0.04em;
}

.field label {
    display: inline-block;
    margin-bottom: 8px;
}

.optional,
.label-row > span {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 600;
}

.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.label-row label {
    margin: 0;
}

.field input,
.field select,
.field textarea {
    display: block;
    width: 100%;
    color: var(--white);
    border: 1px solid rgba(84, 173, 255, 0.2);
    border-radius: 10px;
    outline: none;
    background: rgba(4, 12, 22, 0.78);
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        background-color 160ms ease;
}

.field input,
.field select {
    height: 49px;
    padding: 0 14px;
}

.field textarea {
    min-height: 160px;
    padding: 13px 14px;
    resize: vertical;
}

.field select {
    cursor: pointer;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
    border-color: rgba(84, 173, 255, 0.42);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--blue-bright);
    background: rgba(4, 14, 27, 0.96);
    box-shadow: 0 0 0 4px rgba(22, 139, 255, 0.1);
}

.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 8px;
}

.form-footer p {
    max-width: 330px;
    margin: 0;
    color: var(--muted);
    font-size: 0.72rem;
}

.honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

/* Footer */

.site-footer {
    padding: 38px 0;
    border-top: 1px solid rgba(84, 173, 255, 0.16);
    background: #05070a;
}

.footer-layout {
    display: grid;
    align-items: center;
    grid-template-columns: 1fr auto;
    gap: 26px;
}

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

.footer-links a {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 680;
}

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

.copyright {
    grid-column: 1 / -1;
    margin: 0;
    color: #65707b;
    font-size: 0.7rem;
}

.back-to-top {
    position: fixed;
    z-index: 80;
    right: 22px;
    bottom: 22px;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: var(--black);
    border: 0;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: 180ms ease;
}

.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.copy-toast {
    position: fixed;
    z-index: 120;
    bottom: 28px;
    left: 50%;
    padding: 11px 16px;
    color: var(--white);
    border: 1px solid rgba(84, 173, 255, 0.3);
    border-radius: 999px;
    background: rgba(8, 27, 51, 0.95);
    box-shadow: var(--shadow);
    font-size: 0.78rem;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 16px);
    transition: 180ms ease;
}

.copy-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* Progressive motion */

.js [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 600ms ease,
        transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* XAMPP-only local development tools */

.local-tools {
    position: fixed;
    z-index: 95;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border: 1px solid rgba(214, 168, 74, 0.4);
    border-radius: 999px;
    background: rgba(7, 9, 13, 0.94);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(14px);
}

.local-tools strong {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--gold-light);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.local-tools strong span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #53d68b;
    box-shadow: 0 0 12px rgba(83, 214, 139, 0.7);
}

.local-tools a {
    padding-left: 10px;
    color: #b7c4d0;
    border-left: 1px solid var(--line-soft);
    font-size: 0.68rem;
    font-weight: 740;
}

.local-tools a:hover {
    color: var(--white);
}

.local-diagnostic-page {
    min-height: 100svh;
    background:
        radial-gradient(circle at 90% 5%, rgba(22, 139, 255, 0.16), transparent 30rem),
        linear-gradient(145deg, #07090d, #071425 65%, #081b33);
}

.local-diagnostic-page::before {
    position: fixed;
    inset: 0;
    content: "";
    pointer-events: none;
    opacity: 0.22;
    background-image:
        linear-gradient(rgba(84, 173, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(84, 173, 255, 0.08) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at 78% 20%, black, transparent 65%);
}

.local-diagnostic-shell {
    position: relative;
    z-index: 1;
    width: min(1050px, calc(100% - 36px));
    margin: 0 auto;
    padding: 30px 0 70px;
}

.local-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(84, 173, 255, 0.15);
}

.local-page-header nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.local-page-header nav a {
    padding: 8px 12px;
    color: var(--muted);
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 750;
}

.local-page-header nav a:hover,
.local-page-header nav a.is-current {
    color: var(--white);
    border-color: rgba(84, 173, 255, 0.28);
    background: rgba(22, 139, 255, 0.08);
}

.local-hero {
    padding: 85px 0 50px;
}

.local-hero h1 {
    max-width: 820px;
    margin-bottom: 22px;
    font-size: clamp(3rem, 8vw, 6.2rem);
    text-transform: uppercase;
}

.local-hero > p:not(.eyebrow) {
    max-width: 720px;
    color: #aab7c4;
    font-size: 1.06rem;
}

.local-summary {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 16px;
    padding: 9px 13px;
    border: 1px solid;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.local-summary span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.local-summary.is-good {
    color: #bdeed1;
    border-color: rgba(83, 214, 139, 0.34);
    background: rgba(31, 135, 74, 0.12);
}

.local-summary.is-good span {
    background: #53d68b;
    box-shadow: 0 0 12px rgba(83, 214, 139, 0.65);
}

.local-summary.needs-work {
    color: #ffe0a3;
    border-color: rgba(214, 168, 74, 0.4);
    background: rgba(214, 168, 74, 0.1);
}

.local-summary.needs-work span {
    background: var(--gold);
    box-shadow: 0 0 12px rgba(214, 168, 74, 0.65);
}

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

.check-card {
    display: flex;
    min-height: 120px;
    align-items: flex-start;
    gap: 18px;
    padding: 24px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-medium);
    background: rgba(7, 16, 29, 0.78);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
}

.check-card.is-good {
    border-color: rgba(83, 214, 139, 0.2);
}

.check-card.needs-work {
    border-color: rgba(214, 168, 74, 0.34);
}

.check-icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 50%;
    font-size: 0.88rem;
    font-weight: 900;
}

.is-good .check-icon {
    color: #bdeed1;
    border: 1px solid rgba(83, 214, 139, 0.4);
    background: rgba(31, 135, 74, 0.16);
}

.needs-work .check-icon {
    color: #ffe0a3;
    border: 1px solid rgba(214, 168, 74, 0.46);
    background: rgba(214, 168, 74, 0.12);
}

.check-card h2 {
    margin-bottom: 7px;
    font-family: var(--font-sans);
    font-size: 1rem;
    letter-spacing: 0;
}

.check-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

.local-instruction-card,
.empty-message-card {
    margin-top: 22px;
    padding: clamp(25px, 5vw, 42px);
    border: 1px solid rgba(214, 168, 74, 0.28);
    border-radius: var(--radius-large);
    background:
        linear-gradient(145deg, rgba(11, 39, 72, 0.72), rgba(7, 17, 30, 0.92));
    box-shadow: var(--shadow);
}

.local-instruction-card h2,
.empty-message-card h2 {
    font-size: clamp(1.7rem, 4vw, 2.7rem);
}

.local-instruction-card ol {
    padding-left: 22px;
    color: #b7c2cd;
}

.local-instruction-card li + li {
    margin-top: 8px;
}

.local-instruction-card a:not(.button) {
    color: var(--blue-bright);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.local-instruction-card code {
    color: var(--gold-light);
}

.error-card {
    border-color: rgba(255, 102, 102, 0.36);
}

.local-page-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 38px;
    padding-top: 28px;
    border-top: 1px solid var(--line-soft);
}

.local-message-hero {
    display: grid;
    align-items: start;
    grid-template-columns: 1fr auto;
    column-gap: 50px;
}

.local-message-hero .eyebrow,
.local-message-hero h1,
.local-message-hero p {
    grid-column: 1;
}

.local-message-hero .button {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: center;
}

.local-message-list {
    display: grid;
    gap: 15px;
}

.local-message-card {
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid rgba(84, 173, 255, 0.18);
    border-radius: var(--radius-medium);
    background:
        linear-gradient(145deg, rgba(11, 39, 72, 0.65), rgba(7, 17, 30, 0.9));
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.17);
}

.local-message-card > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.local-message-card h2 {
    margin: 10px 0 5px;
    font-family: var(--font-sans);
    font-size: 1.35rem;
    letter-spacing: 0;
}

.local-message-card header p,
.local-message-card time {
    margin: 0;
    color: var(--muted);
    font-size: 0.74rem;
}

.message-status {
    display: inline-block;
    padding: 5px 9px;
    color: #bdeed1;
    border: 1px solid rgba(83, 214, 139, 0.3);
    border-radius: 999px;
    background: rgba(31, 135, 74, 0.13);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.message-contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 22px 0;
}

.message-contact-row > * {
    padding: 6px 10px;
    color: #acc8e5;
    border: 1px solid rgba(84, 173, 255, 0.18);
    border-radius: 999px;
    background: rgba(22, 139, 255, 0.05);
    font-size: 0.7rem;
}

.message-contact-row a:hover {
    color: var(--white);
    border-color: var(--blue-bright);
}

.message-body {
    padding-top: 20px;
    color: #cad3dc;
    border-top: 1px solid var(--line-soft);
    line-height: 1.72;
}

.empty-message-card {
    text-align: center;
}

.empty-message-card > span {
    display: grid;
    width: 76px;
    height: 76px;
    margin: 0 auto 22px;
    place-items: center;
    color: var(--gold-light);
    border: 1px solid rgba(214, 168, 74, 0.4);
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 800;
}

.empty-message-card p {
    color: var(--muted);
}

/* Tablet */

@media (max-width: 980px) {
    :root {
        --header-height: 70px;
    }

    .nav-toggle {
        display: block;
    }

    .nav-toggle[aria-expanded="true"] > span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] > span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle[aria-expanded="true"] > span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .site-nav {
        position: fixed;
        top: var(--header-height);
        right: 0;
        bottom: 0;
        left: 0;
        display: flex;
        padding: 34px 24px;
        align-items: stretch;
        flex-direction: column;
        gap: 4px;
        background:
            linear-gradient(145deg, rgba(8, 27, 51, 0.98), rgba(7, 9, 13, 0.99));
        opacity: 0;
        pointer-events: none;
        transform: translateX(100%);
        transition: opacity 220ms ease, transform 220ms ease;
    }

    .site-nav.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(0);
    }

    .site-nav > a:not(.button) {
        padding: 15px 4px;
        border-bottom: 1px solid var(--line-soft);
        font-size: 1.15rem;
    }

    .site-nav > a:not(.button)::after {
        display: none;
    }

    .site-nav .button {
        margin-top: 20px;
    }

    .hero {
        min-height: auto;
        padding-top: calc(var(--header-height) + 80px);
    }

    .hero-layout {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .identity-card {
        width: min(100%, 390px);
    }

    .discipline-strip {
        margin-top: 60px;
    }

    .about-layout,
    .experience-layout,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .experience-intro {
        position: static;
    }

    .section-heading {
        align-items: start;
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .section-heading > p {
        margin-left: 0;
    }

    .resume-banner-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 34px;
    }

    .resume-actions {
        flex-wrap: wrap;
    }

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

    .local-message-hero .button {
        width: fit-content;
        margin-top: 12px;
        grid-column: 1;
        grid-row: auto;
    }
}

/* Mobile */

@media (max-width: 700px) {
    :root {
        --shell: min(100% - 28px, 1180px);
    }

    h2 {
        font-size: clamp(2.15rem, 12vw, 3.3rem);
    }

    .section {
        padding: 82px 0;
    }

    .brand-copy strong {
        font-size: 0.82rem;
    }

    .brand-copy small {
        font-size: 0.62rem;
    }

    .hero {
        padding-top: calc(var(--header-height) + 58px);
    }

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

    .hero-actions .button {
        width: 100%;
    }

    .hero-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .identity-card {
        width: min(100%, 340px);
    }

    .identity-label-right {
        right: -2%;
    }

    .discipline-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .discipline-strip span:nth-child(3) {
        border-top: 1px solid rgba(84, 173, 255, 0.14);
        border-left: 0;
    }

    .discipline-strip span:nth-child(4) {
        border-top: 1px solid rgba(84, 173, 255, 0.14);
    }

    .principle-row {
        grid-template-columns: 1fr;
    }

    .principle-row > div,
    .principle-row > div + div {
        padding: 20px 0;
        border-bottom: 1px solid var(--line-soft);
        border-left: 0;
    }

    .capability-grid,
    .project-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .capability-card {
        min-height: 0;
        padding: 28px;
    }

    .timeline::before {
        left: 6px;
    }

    .timeline-item {
        padding-left: 31px;
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .timeline-item::before {
        left: 1px;
    }

    .project-card {
        min-height: 0;
        grid-template-rows: 190px auto;
    }

    .project-content {
        padding: 25px;
    }

    .project-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .resume-actions,
    .resume-actions .button {
        width: 100%;
    }

    .contact-panel {
        padding: 24px 18px;
    }

    .form-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .form-footer .button {
        width: 100%;
    }

    .footer-layout {
        grid-template-columns: 1fr;
    }

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

    .copyright {
        grid-column: auto;
    }

    .local-tools {
        right: 14px;
        bottom: 14px;
        left: 14px;
        justify-content: center;
    }

    .local-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .local-page-header nav {
        justify-content: flex-start;
    }

    .local-hero {
        padding-top: 60px;
    }

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

    .local-message-card > header {
        flex-direction: column;
        gap: 10px;
    }

    .local-page-footer,
    .local-page-footer .button {
        width: 100%;
    }
}

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

    .identity-label {
        font-size: 0.58rem;
    }

    .identity-card > p {
        bottom: 15%;
    }

    .discipline-strip span {
        padding-inline: 8px;
        font-size: 0.64rem;
    }
}

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

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

    .js [data-reveal] {
        opacity: 1;
        transform: none;
    }
}

@media print {
    .site-header,
    .hero-grid,
    .hero-glow,
    .hero-actions,
    .filter-bar,
    .contact-section,
    .back-to-top,
    .copy-toast {
        display: none !important;
    }

    body,
    .section,
    .section-blue {
        color: #111;
        background: #fff;
    }

    h1,
    h2,
    h3,
    .eyebrow {
        color: #000;
    }
}
