:root {
    --paper: #E8EDF2;
    --sheet: #F6F8FA;
    --sheet-dim: rgba(246,248,250,.72);
    --navy: #07213F;
    --gold: #FFC72D;
    --graphite: #4B5B6E;
    --rule: #C5CFD9;
    --rule-strong: #95A3B1;

    --cat6: #1F5FBF;
    --smf: var(--gold);
    --om4: #0E9AA8;
    --ok: #2F8F5B;

    --container: 1440px;
    --side-col: 360px;

    --radius-sm: 3px;
    --radius-md: 4px;
    --radius-lg: 6px;

    h1 {
      font-family: var(--font-display);
      font-weight: 900;
      font-style: italic;
                         }
    --font-body: "Segoe UI", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: "SFMono-Regular", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --ease: cubic-bezier(.16,.84,.44,1);

    --shadow-md: 0 18px 40px rgba(7,33,63,.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 40px; }

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    background: var(--paper);
    color: var(--navy);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

button {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

ul { margin: 0; padding: 0; list-style: none; }

main { flex: 1; }

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

.label, .tag-label {
    margin: 0;
    color: var(--graphite);
    font-family: var(--font-display);
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tag-label, .legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
}

.nav-container {
    position: relative;
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand, .hero-title, .section-heading h2, .contact-main h2, .career-section h2, .contact-band h2 {
    font-family: var(--font-display);
    font-weight: 800;
    text-transform: uppercase;
}

.brand { font-size: 1.05rem; letter-spacing: .01em; }

.brand:hover { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 5px; }

.nav {
    position: relative;
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-links a {
    font-size: .9rem;
    font-weight: 500;
    color: var(--graphite);
    transition: color .2s ease;
}

.nav-links a:hover { color: var(--navy); }

.nav-links a.is-current { color: var(--navy); font-weight: 700; }

.nav-linkedin {
    padding: 7px 12px;
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius-sm);
    font-size: .85rem;
    font-weight: 600;
    white-space: nowrap;
    transition: border-color .2s ease;
}

.nav-linkedin:hover { border-color: var(--navy); }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
}

.nav-toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform .25s var(--ease), opacity .25s ease;
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-active .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border-radius: var(--radius-sm);
    font-size: .92rem;
    font-weight: 600;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.button-primary {
    background: var(--gold);
    color: var(--navy);
    border: 1px solid var(--gold);
}

.button-primary:hover { background: var(--navy); border-color: var(--navy); color: var(--gold); }

.button-secondary { border: 1px solid var(--rule-strong); }

.button-secondary:hover { border-color: var(--navy); }

.button-ghost {
    color: var(--sheet);
    border: 1px solid rgba(246,248,250,.35);
}

.button-ghost:hover { border-color: var(--gold); }

.text-link, .cert-link, .vendor-link:hover {
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    transition: text-decoration-color .2s ease;
}

.text-link:hover, .cert-link:hover, .cert-link.is-active { text-decoration-color: var(--navy); }

.hero { padding: 40px 0 40px; }

.hero-title {
    margin: 0 0 18px;
    font-size: clamp(2.8rem, 8vw, 6.6rem);
    line-height: .95;
    letter-spacing: -.02em;
}

.hero-lede {
    max-width: 58ch;
    margin: 0;
    color: var(--graphite);
    font-size: 1.12rem;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.hero-grid, .site-layout, .career-grid, .band-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--side-col);
}

.hero-grid, .band-grid { gap: 48px; align-items: center; }

.spec-sheet, .site-drawing, .net-inspector, .trace {
    background: var(--sheet);
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius-md);
}

.spec-sheet { padding: 16px 20px 8px; }

.spec-list { margin: 10px 0 0; }

.spec-row {
    display: grid;
    grid-template-columns: 9ch minmax(0, 1fr);
    gap: 12px;
    padding: 8px 0;
    border-top: 1px dashed var(--rule);
    font-size: .9rem;
}

.spec-row dt {
    padding-top: 2px;
    color: var(--graphite);
    font-family: var(--font-mono);
    font-size: .74rem;
}

.spec-row dd { margin: 0; font-weight: 600; }

.spec-status { display: flex; align-items: center; gap: 8px; }

.spec-list--dated .spec-row { grid-template-columns: minmax(0, 1fr) auto; }

.spec-list--dated dt {
    padding-top: 0;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    font-weight: 600;
}

.spec-list--dated dd {
    color: var(--graphite);
    font-family: var(--font-mono);
    font-size: .74rem;
    font-weight: 400;
}

.spec-more { display: inline-block; margin: 6px 0 10px; }

.site-section { padding-bottom: 72px; }

.site-layout, .career-grid { gap: 20px; align-items: start; }

.site-drawing { margin: 0; }

.drawing-head, .drawing-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 20px;
    padding: 10px 16px;
    font-family: var(--font-mono);
    font-size: .72rem;
    color: var(--graphite);
}

.drawing-head { justify-content: space-between; border-bottom: 1px solid var(--rule); }

.drawing-title { color: var(--navy); font-weight: 700; }

.drawing-legend { justify-content: center; border-top: 1px solid var(--rule); }

.legend-swatch { width: 22px; height: 3px; border-radius: 2px; background: var(--cable); }

.network-visual {
    position: relative;
    height: 440px;
}

.net-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.net-path {
    fill: none;
    stroke: var(--cable);
    stroke-width: 2.5;
    opacity: .7;
    vector-effect: non-scaling-stroke;
    transition: opacity .2s ease, stroke-width .2s ease;
}

.net-path.is-active { opacity: 1; stroke-width: 3.5; }

.cable-smf { --cable: var(--smf); }
.cable-om4 { --cable: var(--om4); }
.cable-cat6 { --cable: var(--cat6); }

.net-node {
    position: absolute;
    z-index: 2;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    min-width: 92px;
    padding: 8px 10px;
    background: var(--sheet);
    border: 1.5px solid var(--navy);
    border-radius: var(--radius-sm);
    transition: background .2s ease, box-shadow .2s ease;
}

.net-node:hover { box-shadow: 0 0 0 2px var(--rule-strong); }

.net-node.is-active {
    background: var(--navy);
    color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold);
}

.net-node.is-active .net-node-role { color: var(--sheet); }

.net-node-host {
    font-family: var(--font-mono);
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.net-node-role {
    color: var(--graphite);
    font-size: .68rem;
    line-height: 1.2;
}

.net-node-logos { display: flex; gap: 4px; margin-top: 2px; }

.net-node-logos img, .vendor-logo {
    width: 16px;
    height: 16px;
    object-fit: contain;
    border-radius: 2px;
}

.logo-missing { display: none; }

.net-inspector { padding: 20px; }

.inspector-title {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 8px 0 10px;
    font-size: 1.15rem;
    font-weight: 700;
}

.inspector-host {
    padding: 1px 7px;
    border-radius: var(--radius-sm);
    background: var(--gold);
    font-family: var(--font-mono);
    font-size: .85rem;
}

.inspector-host:empty { display: none; }

.inspector-info {
    margin: 0 0 14px;
    color: var(--graphite);
    font-size: .92rem;
    line-height: 1.6;
}

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

.protocol-chip {
    padding: 2px 8px;
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    background: var(--paper);
    font-family: var(--font-mono);
    font-size: .7rem;
    line-height: 1.6;
}

.protocol-chip--layer {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--gold);
    font-weight: 700;
}

.inspector-vendors { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--rule); }

.vendor-list { display: grid; gap: 4px; margin-top: 8px; }

.vendor-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: .9rem;
    font-weight: 600;
}

.vendor-link::after { content: "↗"; margin-left: auto; color: var(--graphite); }

.career-section { padding: 24px 0 72px; }

.career-section h2, .contact-band h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }

.career-section h2 { margin: 12px 0 24px; }

.trace {
    padding: 18px 20px;
    font-family: var(--font-mono);
    font-size: .84rem;
}

.trace-cmd { margin: 0 0 10px; color: var(--graphite); }

.trace-hops { margin: 0; padding: 0; list-style: none; counter-reset: hop; }

.trace-hop {
    counter-increment: hop;
    display: grid;
    grid-template-columns: 2.5ch 20ch minmax(0, 1fr) auto;
    gap: 16px;
    padding: 7px 0;
    border-top: 1px dashed var(--rule);
}

.trace-hop::before { content: counter(hop); color: var(--graphite); text-align: right; }

.trace-host { color: var(--graphite); }

.trace-role { font-family: var(--font-body); font-weight: 600; }

.trace-when { color: var(--graphite); white-space: nowrap; }

.trace-hop.is-destination {
    margin-inline: -8px;
    padding-inline: 8px;
    background: rgba(255,199,45,.28);
}

.trace-hop.is-destination .trace-role, .trace-hop.is-destination .trace-when { color: var(--navy); font-weight: 700; }

.career-more { display: inline-block; margin-top: 18px; }

.contact-band, .footer {
    background: var(--navy);
    --focus: var(--gold);
}

.contact-band, .footer-brand { color: var(--sheet); }

.contact-band { padding: 56px 0 24px; box-shadow: 0 1px 0 var(--navy); }

.contact-band .label { color: var(--gold); }

.contact-band h2 { margin: 12px 0; }

.band-note { margin: 0; color: var(--sheet-dim); }

.band-email {
    display: inline-block;
    color: var(--gold);
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.band-email:hover { text-decoration: underline; text-underline-offset: 6px; }

.band-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
}

.contact-band .button-primary:hover { border-color: var(--gold); }

.contact-band .copy-toast, .contact-band .copy-toast.is-visible {
    position: static;
    transform: none;
    font-size: .8rem;
}

.section { padding: 96px 0; }

.section-heading { max-width: 640px; margin-bottom: 48px; }

.section-heading h2, .contact-main h2, .career-section h2, .contact-band h2 { line-height: 1.1; }

.section-heading h2 {
    margin: 14px 0 12px;
    font-size: clamp(1.7rem, 3.2vw, 2.6rem);
}

.section-heading > p:last-child {
    margin: 0;
    color: var(--graphite);
    font-size: .98rem;
    max-width: 60ch;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, .72fr);
    gap: 72px;
    align-items: start;
}

.about-main { max-width: 620px; }

.about-main p {
    margin: 0 0 20px;
    color: var(--graphite);
    font-size: 1rem;
    line-height: 1.85;
}

.about-main .large-text {
    color: var(--navy);
    font-size: 1.28rem;
    line-height: 1.6;
}

/* Right-hand column of the About grid: photo stacked above the profile card */
.about-side {
    display: grid;
    gap: 24px;
    margin-top: 9px;   /* lines the photo's top edge up with the top of the "// about me" text */
}

.about-logo {
    width: 220px;
    height: auto;   /* keeps the photo's real proportions */
}

.profile-card, .skill-card, .project-card {
    background: var(--sheet);
    border: 1px solid var(--rule);
    border-radius: var(--radius-md);
}

.profile-card { overflow: hidden; }

.card-heading {
    padding: 18px 22px;
    border-bottom: 1px solid var(--rule);
}

.profile-row {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 15px;
    padding: 17px 22px;
    border-bottom: 1px solid var(--rule);
}

.profile-row:last-child { border-bottom: 0; }

.profile-row span {
    color: var(--graphite);
    font-size: .82rem;
}

.profile-row strong {
    font-size: .84rem;
    font-weight: 700;
    text-align: right;
}

.profile-row .available { color: var(--ok); }

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

.skill-card, .project-card { transition: border-color .25s ease, transform .25s ease; }

.skill-card:hover, .project-card:hover { border-color: var(--rule-strong); transform: translateY(-4px); }

.skill-card {
    display: flex;
    flex-direction: column;
    min-height: 260px;
    padding: 38px 26px;
}

.skill-card--progress { border-style: dashed; }

.cert-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.cert-badge {
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: var(--paper);
    border: 1px solid var(--rule);
    overflow: hidden;
}

.cert-badge-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.cert-dates {
    color: var(--graphite);
    font-family: var(--font-mono);
    font-size: .64rem;
    font-weight: 500;
    line-height: 1.4;
    text-align: right;
}

.cert-dates--progress {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.skill-card h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    line-height: 1.3;
}

.cert-issuer {
    margin: 0 0 20px;
    color: var(--graphite);
    font-size: .86rem;
}

.cert-link {
    margin-top: auto;
    align-self: flex-start;
    font-family: var(--font-mono);
    font-size: .78rem;
}

.tag-label.cert-subheading {
    display: flex;
    margin: 40px 0 4px;
    text-transform: none;
    letter-spacing: 0;
}

.experience-tags span, .project-footer span {
    padding: 6px 10px;
    background: var(--sheet);
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    color: var(--graphite);
    font-family: var(--font-mono);
    font-size: .68rem;
    font-weight: 500;
}

.timeline { max-width: 860px; }

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 20px;
    padding-bottom: 44px;
}

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

.timeline-marker { position: relative; display: flex; justify-content: center; }

.timeline-marker::before {
    content: "";
    position: absolute;
    top: 16px;
    bottom: -44px;
    width: 1px;
    background: var(--rule-strong);
}

.timeline-item:last-child .timeline-marker::before { display: none; }

.timeline-marker span {
    position: relative;
    z-index: 2;
    width: 12px;
    height: 12px;
    margin-top: 8px;
    border: 3px solid var(--paper);
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 1px var(--navy);
}

.timeline-date {
    margin-bottom: 8px;
    color: var(--graphite);
    font-family: var(--font-mono);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .06em;
}

.timeline-content h3 { margin: 0 0 3px; font-size: 1.3rem; }

.timeline-content h4 { margin: 0 0 12px; color: var(--graphite); font-size: .9rem; font-weight: 600; }

.timeline-years { display: block; margin-top: 4px; font-weight: 500; }

.timeline-content p { max-width: 640px; margin: 0; color: var(--graphite); line-height: 1.8; }

.experience-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; }

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.project-card { padding: 26px; }

.project-type {
    color: var(--graphite);
    font-family: var(--font-mono);
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .04em;
}

.project-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    margin: 18px 0 20px;
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius-sm);
    font-size: 1.05rem;
    font-weight: 700;
}

.project-card h3 { margin: 0 0 10px; font-size: 1.18rem; }

.project-card p { min-height: 110px; margin: 0; color: var(--graphite); font-size: .88rem; line-height: 1.75; }

.project-footer { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; }

.contact-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    padding: 56px;
    background: var(--sheet);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.contact-main { position: relative; z-index: 2; max-width: 620px; }

.contact-main h2 {
    margin: 14px 0 15px;
    font-size: clamp(1.8rem, 3.4vw, 2.8rem);
}

.contact-copy { max-width: 56ch; margin: 0; color: var(--graphite); line-height: 1.8; }

.contact-links { margin-top: 30px; border-top: 1px solid var(--rule); }

.contact-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid var(--rule);
    font-weight: 700;
    transition: padding-left .2s ease, box-shadow .2s ease;
}

.contact-link strong { font-size: 1.05rem; font-weight: 700; }

.contact-link:hover { padding-left: 8px; box-shadow: inset 3px 0 0 var(--gold); }

.contact-decoration {
    position: relative;
    z-index: 1;
    width: 280px;
    height: 280px;
    flex: 0 0 280px;
}

.contact-globe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: .25;
    pointer-events: none;
}

.contact-globe circle, .contact-globe ellipse {
    fill: none;
    stroke: var(--navy);
    stroke-width: 1;
}

.contact-globe .wm-dot { fill: var(--navy); stroke: none; }

.pulse-ring {
    position: absolute;
    inset: 50% auto auto 50%;
    border-radius: 50%;
    border: 1px solid var(--navy);
    opacity: .5;
    transform: translate(-50%,-50%) scale(1);
}

@media (prefers-reduced-motion: no-preference) {
    .pulse-ring {
        animation: ringPulse 2.6s ease-out infinite;
    }
    .ring-two { animation-delay: .7s; }
    .ring-three { animation-delay: 1.4s; }
}

@keyframes ringPulse {
    0% { transform: translate(-50%,-50%) scale(.8); opacity: .75; }
    70% { opacity: 0; }
    100% { transform: translate(-50%,-50%) scale(1.15); opacity: 0; }
}

.ring-one { width: 100px; height: 100px; }
.ring-two { width: 180px; height: 180px; }
.ring-three { width: 260px; height: 260px; }

.contact-node {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%,-50%);
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--navy);
    color: var(--gold);
    font-family: var(--font-mono);
    font-size: .66rem;
    font-weight: 800;
    box-shadow: 0 0 0 10px rgba(255,199,45,.35);
    transition: transform .2s var(--ease), background .2s ease;
}

.contact-node:hover, .contact-node:focus-visible { transform: translate(-50%,-50%) scale(1.08); }

.contact-node.is-copied { background: var(--gold); color: var(--navy); }

.copy-toast {
    position: absolute;
    left: 50%;
    top: 12%;
    transform: translate(-50%,-100%);
    background: var(--navy);
    color: var(--gold);
    font-family: var(--font-mono);
    font-size: .68rem;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    transition: opacity .25s ease, transform .25s ease;
}

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

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ok);
}

.status-dot--sm { width: 6px; height: 6px; }

.footer { padding: 16px 0; color: var(--sheet-dim); }

.footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-left { display: flex; align-items: center; gap: 16px; }

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 700;
    font-size: .92rem;
}

.footer-copy, .back-top { font-size: .78rem; }

.footer-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: .72rem;
}

.back-top { transition: color .2s ease; }

.back-top:hover { color: var(--gold); }

@media (max-width: 1080px) {

    .nav-links {
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        padding: 0 4px;
        background: var(--sheet);
        border: 1px solid var(--rule);
        border-top: none;
        border-radius: 0 0 var(--radius-md) var(--radius-md);
        transition: max-height .3s ease, opacity .3s ease, padding .3s ease;
    }

    .nav-links.is-open { max-height: 320px; opacity: 1; padding: 10px 18px 16px; }

    .nav-links a { width: 100%; padding: 10px 0; }

    .nav-toggle { display: flex; }
}

@media (max-width: 1000px) {

    .hero-grid, .site-layout, .career-grid, .band-grid { grid-template-columns: 1fr; }

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

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

    .project-card p { min-height: auto; }

    .contact-card { padding: 42px; flex-direction: column; gap: 32px; }

    .contact-main { text-align: center; margin-inline: auto; }

    .contact-copy { max-width: none; }

    .contact-decoration { align-self: center; }
}

@media (max-width: 650px) {

    .container { width: calc(100% - 32px); }

    .nav-container { min-height: 60px; }

    .nav-linkedin { padding: 6px 10px; font-size: .78rem; }

    .hero { padding: 48px 0 32px; }

    .hero-lede { font-size: 1rem; }

    .network-visual { height: 360px; }

    .net-node { min-width: 0; padding: 6px; }

    .net-node-host { font-size: .64rem; }

    .net-node-role, .net-node-logos { display: none; }

    .trace { padding: 14px; font-size: .78rem; }

    .trace-hop { grid-template-columns: 2.5ch minmax(0, 1fr); gap: 2px 12px; }

    .trace-host, .trace-role, .trace-when { grid-column: 2; }

    .trace-role { grid-row: 1; }
    .trace-host { grid-row: 2; }
    .trace-when { grid-row: 3; }

    .section { padding: 72px 0; }

    .profile-row { grid-template-columns: 88px 1fr; padding: 14px 18px; }

    .timeline-item { grid-template-columns: 28px 1fr; gap: 14px; }

    .contact-card { padding: 30px 22px; align-items: center; }

    .contact-decoration { width: 220px; height: 220px; flex-basis: 220px; }
    .ring-one { width: 80px; height: 80px; }
    .ring-two { width: 145px; height: 145px; }
    .ring-three { width: 205px; height: 205px; }

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

a:focus-visible, button:focus-visible {
    outline: 2px solid var(--focus, var(--navy));
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

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