/* ---------- Tokens ---------- */
:root {
    /* Surfaces & Borders */
    --bg-base: #141416;
    --bg-surface: #1c1c1f;
    --bg-glass: rgba(20, 20, 22, 0.65);
    --bg-glass-subtle: rgba(255, 255, 255, 0.06);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.18);

    /* Typography & Contrast */
    --text-primary: #F5F5F7;
    --text-secondary: #A1A1A6;

    /* Accent */
    --accent: #d4202c;
    --accent-btn: #c81d28;
    --accent-btn-hover: #b51822;

    /* Type & Tracking */
    --font: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
    --text-eyebrow: 0.78125rem;
    --text-sm: 0.875rem;
    --text-base: 1.0625rem;
    --text-lead: clamp(1.0625rem, 1.3vw, 1.1875rem);
    --text-display: clamp(2.65rem, 5.4vw, 4.65rem);
    --tracking-display: -0.03em;
    --tracking-eyebrow: 0.14em;

    /* Spacing & Layout Rhythm */
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --nav-height: 3.375rem;
    --nav-offset: 1rem;
    --content-width: 34rem;
    --section-pad-x: clamp(1.25rem, 6vw, 6rem);
    --section-pad-y: clamp(4rem, 10vh, 8rem);

    /* Radii & Motion */
    --radius-pill: 9999px;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --duration-fast: 160ms;
    --duration-base: 240ms;

    /* Section & trail aliases */
    --bg: var(--bg-base);
    --trail-dim: #3a3a3f;
    --text: var(--text-primary);
    --red: var(--accent);
}

@supports (height: 100svh) {
    :root {
        --section-pad-y: clamp(4rem, 10svh, 8rem);
    }
}

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

html {
    color-scheme: dark;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-height) + var(--nav-offset) + 1.5rem);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: var(--text-base);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.skip-link {
    position: fixed;
    top: var(--nav-offset);
    left: 1rem;
    z-index: 200;
    padding: 0.65rem 1rem;
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-pill);
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
    transform: translateY(-200%);
    transition: transform var(--duration-fast) var(--ease-out);
}

.skip-link:focus-visible {
    transform: translateY(0);
    outline: 2px solid var(--text-primary);
    outline-offset: 2px;
}

/* ---------- Floating Glass Navbar ---------- */
.site-header {
    position: fixed;
    top: var(--nav-offset);
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    padding: 0 clamp(0.75rem, 3vw, 1.5rem);
    pointer-events: none;
}

.glass-nav {
    pointer-events: auto;
    width: 100%;
    max-width: 64rem;
    min-height: var(--nav-height);
    padding: 0.3125rem 0.4375rem 0.3125rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    background: var(--bg-glass);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.36),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0 0.25rem;
    color: var(--text-primary);
    font-size: 0.96875rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity var(--duration-fast) var(--ease-out);
}

.nav-brand:hover {
    opacity: 0.85;
    text-decoration: none;
}

.nav-brand:focus-visible {
    outline: 2px solid var(--text-primary);
    outline-offset: 2px;
    border-radius: var(--radius-pill);
}

.nav-brand-logo {
    display: none;
    height: 20px;
    width: auto;
    flex-shrink: 0;
    transition:
        opacity var(--duration-fast) var(--ease-out),
        transform var(--duration-fast) var(--ease-out);
}

.nav-brand:hover .nav-brand-logo {
    opacity: 0.9;
    transform: scale(1.04);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0 0.9rem;
    border-radius: var(--radius-pill);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: -0.005em;
    text-decoration: none;
    white-space: nowrap;
    transition:
        color var(--duration-fast) var(--ease-out),
        background-color var(--duration-fast) var(--ease-out);
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.07);
    text-decoration: none;
}

.nav-link:active {
    background: rgba(255, 255, 255, 0.11);
}

.nav-link:focus-visible {
    color: var(--text-primary);
    outline: 2px solid var(--text-primary);
    outline-offset: 1px;
    border-radius: var(--radius-pill);
}

h1,
h2,
h3 {
    margin: 0 0 0.75rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(3.5rem, 11vw, 8rem);
    font-weight: 800;
    letter-spacing: -0.01em;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.35rem;
    font-weight: 650;
    letter-spacing: -0.01em;
}

p {
    margin: 0 0 1rem;
}

a {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: var(--red);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.2em;
    transition: text-decoration-thickness 0.15s ease;
}

a:hover {
    text-decoration-thickness: 4px;
}

a:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 4px;
    border-radius: 2px;
}

/* ---------- The trail ---------- */
main {
    position: relative;
    overflow-x: clip;
}

#trail-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

#trail-bg,
#trail {
    fill: none;
    stroke-width: 4px;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke; /* keeps the line the same width even when the SVG is stretched */
}

#trail-bg {
    stroke: var(--trail-dim);
}

#trail {
    stroke: var(--red);
}

#trail-tip {
    display: none;
    fill: var(--red);
    filter: drop-shadow(0 0 6px var(--red)) drop-shadow(0 0 12px rgba(212, 32, 44, 0.55));
}

.trail-mobile {
    display: none;
}

/* Hide scrollbar for Firefox, IE, and Edge */
html, body {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and legacy Edge */
}

/* Hide scrollbar for Chrome, Safari, and Opera */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

/* ---------- Sections ---------- */
section {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    min-height: 100svh;
    padding: var(--section-pad-y) var(--section-pad-x);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* content on the left... */
}

section:nth-of-type(even) {
    align-items: flex-end;   /* ...and on the right, so the trail has space to pass on the other side */
}

section > * {
    width: 100%;
    max-width: var(--content-width);
}

#hero {
    min-height: max(640px, 90vh);
    min-height: max(640px, 90svh);
    padding: clamp(5.75rem, 10vh, 7.25rem) var(--section-pad-x) clamp(4rem, 8vh, 5.75rem);
    padding: clamp(5.75rem, 10svh, 7.25rem) var(--section-pad-x) clamp(4rem, 8svh, 5.75rem);
    background:
        radial-gradient(
            60% 54% at 28% 46%,
            rgba(255, 255, 255, 0.035) 0%,
            rgba(212, 32, 44, 0.02) 42%,
            transparent 74%
        );
}

#hero > .hero-grid {
    width: 100%;
    max-width: min(72.5rem, calc(100% - 4.5rem));
    padding-right: clamp(4.5rem, 7.5vw, 7.5rem);
    display: grid;
    grid-template-columns: minmax(0, 1.38fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(2rem, 4vw, 4rem);
}

#hero .hero-eyebrow {
    margin: 0 0 var(--space-4);
    font-size: var(--text-eyebrow);
    font-weight: 600;
    letter-spacing: var(--tracking-eyebrow);
    text-transform: uppercase;
    color: var(--text-secondary);
}

#hero h1 {
    margin: 0 0 var(--space-6);
    font-size: var(--text-display);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: var(--tracking-display);
    color: var(--text-primary);
}

.hero-greeting {
    display: block;
    font-size: clamp(1.75rem, 3.2vw, 2.75rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.15;
    color: rgba(245, 245, 247, 0.74);
    margin-bottom: 0.12em;
}

.hero-name {
    display: block;
    white-space: nowrap;
}

#hero .hero-lead {
    margin: 0 0 var(--space-8);
    max-width: 46ch;
    font-size: var(--text-lead);
    line-height: 1.6;
    color: var(--text-secondary);
    text-wrap: pretty;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: fit-content;
    min-height: 2.75rem;
    padding: 0.75rem 1.35rem;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.01em;
    text-decoration: none;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition:
        transform var(--duration-fast) var(--ease-out),
        background-color var(--duration-fast) var(--ease-out),
        border-color var(--duration-fast) var(--ease-out),
        box-shadow var(--duration-fast) var(--ease-out);
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0) scale(0.985);
}

.btn:focus-visible {
    outline: 2px solid var(--text-primary);
    outline-offset: 3px;
}

.btn-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.btn-primary {
    background: var(--accent-btn);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 8px 20px rgba(212, 32, 44, 0.22);
}

.btn-primary:hover {
    background: var(--accent-btn-hover);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 10px 24px rgba(212, 32, 44, 0.28);
}

.btn-glass {
    background: var(--bg-glass-subtle);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
}

.hero-socials {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.25rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius-pill);
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    text-decoration: none;
    transition:
        transform var(--duration-fast) var(--ease-out),
        color var(--duration-fast) var(--ease-out),
        background-color var(--duration-fast) var(--ease-out),
        border-color var(--duration-fast) var(--ease-out);
}

.social-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
    transform: translateY(-1px);
    text-decoration: none;
}

.social-link:active {
    transform: translateY(0) scale(0.96);
}

.social-link:focus-visible {
    color: var(--text-primary);
    outline: 2px solid var(--text-primary);
    outline-offset: 3px;
}

.social-icon {
    width: 1.125rem;
    height: 1.125rem;
    background-color: currentColor;
    -webkit-mask: var(--icon) center / contain no-repeat;
    mask: var(--icon) center / contain no-repeat;
}

.hero-media {
    display: flex;
    justify-content: flex-start;
}

.portrait-frame {
    margin: 0;
    width: 100%;
    max-width: 352px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.portrait-inner {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    aspect-ratio: 1 / 1;
    background: var(--bg-surface);
}

.portrait-inner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    filter: brightness(0.95) contrast(1.03);
}

.portrait-inner::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(
        180deg,
        rgba(20, 20, 22, 0.04) 0%,
        transparent 24%,
        transparent 62%,
        rgba(20, 20, 22, 0.34) 100%
    );
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* ---------- About Me ---------- */
#about-me {
    min-height: auto;
    scroll-margin-top: -3.5rem;
    padding: clamp(3.75rem, 7.5vh, 5.5rem) var(--section-pad-x) clamp(3.5rem, 7vh, 5.5rem);
    padding: clamp(3.75rem, 7.5svh, 5.5rem) var(--section-pad-x) clamp(3.5rem, 7svh, 5.5rem);
}

#about-me > .about-card {
    width: 100%;
    max-width: min(580px, 54vw);
    padding: clamp(1.75rem, 3.5vw, 2.75rem);
    background: rgba(255, 255, 255, 0.025);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: border-color var(--duration-base) var(--ease-out);
}

#about-me > .about-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.section-eyebrow {
    margin: 0 0 var(--space-3);
    font-size: var(--text-eyebrow);
    font-weight: 600;
    letter-spacing: var(--tracking-eyebrow);
    text-transform: uppercase;
    color: var(--text-secondary);
}

#about-me h2 {
    margin: 0 0 1.35rem;
    font-size: clamp(1.9rem, 4vw, 2.75rem);
    letter-spacing: -0.025em;
    color: var(--text-primary);
}

.about-body {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.about-body p {
    margin: 0;
    color: var(--text-secondary);
    font-size: clamp(0.98rem, 1.1vw, 1.0625rem);
    line-height: 1.72;
    text-wrap: pretty;
}

.text-highlight {
    color: var(--text-primary);
    font-weight: 500;
}

/* ---------- Tech stack marquee band ---------- */
/* Tech icons in assets/tech/: Simple Icons (CC0 1.0 Universal) and Devicon java-plain (MIT License) */
.tech-band {
    position: relative;
    z-index: 2;
    width: 100%;
    background: rgba(20, 20, 22, 0.55);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    backdrop-filter: blur(14px) saturate(160%);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.5rem 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.tech-band-label {
    margin: 0;
    padding: 0 var(--section-pad-x);
    text-align: left;
}

.marquee-row {
    overflow: hidden;
    padding: 2px 0;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: marquee 38s linear infinite;
}

.tech-band:hover .marquee-track,
.tech-band:focus-within .marquee-track {
    animation-play-state: paused;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.marquee-list {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    list-style: none;
    margin: 0;
    padding: 0 0.875rem 0 0;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--text-secondary);
}

.marquee-list li {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 1rem;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--text-secondary);
    white-space: nowrap;
    transition:
        border-color var(--duration-fast) var(--ease-out),
        background-color var(--duration-fast) var(--ease-out),
        color var(--duration-fast) var(--ease-out);
}

.tech-icon {
    width: 1.45rem;
    height: 1.45rem;
    flex-shrink: 0;
    color: inherit;
    background-color: currentColor;
    -webkit-mask: var(--icon) center / contain no-repeat;
    mask: var(--icon) center / contain no-repeat;
}

.marquee-list li:hover,
.marquee-list li:focus-visible {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

.marquee-list li:focus-visible {
    outline: 2px solid var(--text-primary);
    outline-offset: 2px;
}

/* ---------- Experience ---------- */
#experience {
    min-height: auto;
    scroll-margin-top: -3.5rem;
    padding: clamp(3.75rem, 7.5vh, 5.5rem) var(--section-pad-x) clamp(4rem, 8vh, 6rem);
    padding: clamp(3.75rem, 7.5svh, 5.5rem) var(--section-pad-x) clamp(4rem, 8svh, 6rem);
}

#experience > .experience-wrap {
    width: 100%;
    max-width: min(600px, 56vw);
}

#experience h2 {
    margin: 0 0 1.5rem;
    font-size: clamp(1.9rem, 4vw, 2.75rem);
    letter-spacing: -0.025em;
    color: var(--text-primary);
}

.experience-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.experience-card {
    padding: clamp(1.35rem, 2.5vw, 1.85rem);
    background: rgba(255, 255, 255, 0.025);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: border-color var(--duration-base) var(--ease-out);
}

.experience-card:hover {
    border-color: rgba(255, 255, 255, 0.14);
}

.experience-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.35rem 1rem;
    margin-bottom: 0.35rem;
}

.experience-header h3 {
    margin: 0;
    font-size: clamp(1.125rem, 1.5vw, 1.25rem);
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.25;
    color: var(--text-primary);
}

.experience-date {
    font-size: 0.875rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    color: var(--text-secondary);
    white-space: nowrap;
}

.experience-org {
    margin: 0 0 0.85rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(245, 245, 247, 0.78);
}

.experience-desc {
    margin: 0 0 1.15rem;
    color: var(--text-secondary);
    font-size: clamp(0.95rem, 1.05vw, 1rem);
    line-height: 1.65;
    text-wrap: pretty;
}

.experience-tags,
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.experience-tags li,
.project-tags li {
    padding: 0.3rem 0.68rem;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.2;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
}

.project-tags {
    margin-bottom: 1.25rem;
}

/* ---------- Projects ---------- */
#projects {
    min-height: auto;
    scroll-margin-top: -3.5rem;
    padding: clamp(3.75rem, 7.5vh, 5.5rem) var(--section-pad-x) clamp(4.5rem, 9vh, 7rem);
    padding: clamp(3.75rem, 7.5svh, 5.5rem) var(--section-pad-x) clamp(4.5rem, 9svh, 7rem);
    align-items: flex-start;
}

#projects > .projects-header {
    width: 100%;
    max-width: min(580px, 43vw);
    margin-bottom: clamp(2rem, 3.5vw, 2.75rem);
}

#projects h2 {
    margin: 0;
    font-size: clamp(1.9rem, 4vw, 2.75rem);
    letter-spacing: -0.025em;
    color: var(--text-primary);
}

#projects > .project {
    width: 100%;
    max-width: min(580px, 43vw);
    padding: clamp(1.5rem, 2.8vw, 2.1rem);
    background: rgba(255, 255, 255, 0.025);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition:
        opacity 0.4s ease,
        border-color var(--duration-base) var(--ease-out);
}

#projects > .project:hover {
    border-color: rgba(255, 255, 255, 0.14);
}

.project + .project {
    margin-top: clamp(2.75rem, 4.5vw, 4.25rem);
}

.project:nth-of-type(odd) {
    align-self: flex-start;
}

.project:nth-of-type(even) {
    align-self: flex-end;
}

.project-header {
    margin-bottom: 0.75rem;
}

.project-logo {
    display: block;
    height: clamp(2.75rem, 4vw, 3.35rem);
    width: auto;
    max-width: 11.5rem;
    margin-bottom: 0.9rem;
    object-fit: contain;
    object-position: left center;
}

.project-header h3 {
    margin: 0;
    font-size: clamp(1.25rem, 1.8vw, 1.45rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--text-primary);
}

.project-desc {
    margin: 0 0 1rem;
    color: var(--text-secondary);
    font-size: clamp(0.95rem, 1.05vw, 1rem);
    line-height: 1.65;
    text-wrap: pretty;
}

.project-footer {
    display: flex;
    align-items: center;
}

.btn-project {
    padding: 0.65rem 1.15rem;
    font-size: 0.875rem;
    gap: 0.5rem;
}

.btn-mask-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask: var(--icon) center / contain no-repeat;
    mask: var(--icon) center / contain no-repeat;
}

.btn-arrow-icon {
    width: 0.875rem;
    height: 0.875rem;
    flex-shrink: 0;
    opacity: 0.75;
    transition: transform var(--duration-fast) var(--ease-out), opacity var(--duration-fast) var(--ease-out);
}

.btn-project:hover .btn-arrow-icon {
    opacity: 1;
    transform: translate(1px, -1px);
}

/* ---------- Project media showcase stage & carousel ---------- */
.project-stage {
    width: 100%;
    padding: clamp(0.6rem, 1.2vw, 0.85rem);
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    margin-bottom: 1.25rem;
}

.project-shots {
    width: 100%;
    margin: 0;
}

.shot-btn {
    appearance: none;
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 12px;
    overflow: hidden;
    cursor: zoom-in;
    transition:
        border-color var(--duration-fast) var(--ease-out),
        transform var(--duration-fast) var(--ease-out),
        box-shadow var(--duration-fast) var(--ease-out);
}

.shot-btn:hover {
    border-color: rgba(255, 255, 255, 0.24);
}

.shot-btn:focus-visible {
    outline: 2px solid var(--text-primary);
    outline-offset: 3px;
}

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

.shot-btn--volley {
    aspect-ratio: 1264 / 940;
}

.shot-btn--flow {
    aspect-ratio: 1400 / 702;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.shot-btn--flow:hover {
    border-color: rgba(255, 255, 255, 0.26);
}

/* LeafMark 3-phone showcase */
.project-stage--phones {
    padding: clamp(0.85rem, 1.6vw, 1.15rem);
}

.project-shots--phones {
    display: flex;
    align-items: flex-end;
    gap: clamp(0.55rem, 1.3vw, 0.85rem);
    padding-top: 6px;
}

.phone-shot {
    flex: 1 1 0;
    min-width: 0;
    aspect-ratio: 462 / 1000;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.45);
}

.phone-shot--featured {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.20);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.58);
}

.phone-shot:hover {
    transform: translateY(-3px);
}

.phone-shot--featured:hover {
    transform: translateY(-8px);
}

/* NBA Clutch Decision Engine Mini-Carousel */
.carousel {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.carousel-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1920 / 963;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: var(--bg-surface);
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 320ms var(--ease-out);
}

.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
}

.carousel-slide:focus-visible {
    outline-offset: -3px;
}

.carousel-btn {
    appearance: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.375rem;
    height: 2.375rem;
    padding: 0;
    background: rgba(20, 20, 22, 0.72);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    backdrop-filter: blur(12px) saturate(160%);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-pill);
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    transition:
        background-color var(--duration-fast) var(--ease-out),
        border-color var(--duration-fast) var(--ease-out),
        transform var(--duration-fast) var(--ease-out);
}

.carousel-prev {
    left: 0.6rem;
}

.carousel-next {
    right: 0.6rem;
}

.carousel-btn svg {
    width: 1.05rem;
    height: 1.05rem;
}

.carousel-btn:hover {
    background: rgba(34, 34, 38, 0.88);
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-50%) scale(1.04);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.96);
}

.carousel-btn:focus-visible {
    outline: 2px solid var(--text-primary);
    outline-offset: 2px;
}

.carousel-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.carousel-dot {
    appearance: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.5rem;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.carousel-dot::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.28);
    transition:
        width var(--duration-base) var(--ease-out),
        background-color var(--duration-fast) var(--ease-out);
}

.carousel-dot:hover::before {
    background: rgba(255, 255, 255, 0.55);
}

.carousel-dot.is-active::before {
    width: 18px;
    background: var(--text-primary);
}

.carousel-dot:focus-visible {
    outline: 2px solid var(--text-primary);
    outline-offset: 1px;
    border-radius: var(--radius-pill);
}

/* ---------- Lightbox ---------- */
html.lightbox-open,
html.lightbox-open body {
    overflow: hidden;
}

.lightbox {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100dvh;
    max-width: none;
    max-height: none;
    border: none;
    background: transparent;
    color: var(--text-primary);
    overflow: hidden;
}

.lightbox[open] {
    display: flex;
    animation: lightbox-in 180ms var(--ease-out);
}

@keyframes lightbox-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox::backdrop {
    background: rgba(10, 10, 12, 0.86);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.lightbox-inner {
    position: relative;
    width: 100%;
    height: 100%;
    padding: clamp(0.9rem, 2.5vw, 1.75rem);
    display: flex;
    flex-direction: column;
}

.lightbox-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    flex-shrink: 0;
}

.lightbox-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 2.5rem;
    padding: 0.45rem 0.95rem;
    background: rgba(20, 20, 22, 0.72);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    backdrop-filter: blur(14px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    color: var(--text-primary);
}

.lightbox-title {
    font-weight: 600;
    letter-spacing: -0.01em;
}

.lightbox-counter {
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

.lightbox-counter:not([hidden])::before {
    content: "·";
    margin-right: 0.65rem;
    color: rgba(255, 255, 255, 0.25);
}

.lightbox-stage {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.65rem, 2vw, 1.5rem);
    padding-top: 0.75rem;
}

.lightbox-img {
    display: block;
    min-width: 0;
    max-width: min(92vw, 1320px);
    max-height: 84vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.72);
    background: var(--bg-surface);
}

.lightbox-close,
.lightbox-nav {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
    background: rgba(20, 20, 22, 0.72);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    backdrop-filter: blur(14px) saturate(160%);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-pill);
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition:
        background-color var(--duration-fast) var(--ease-out),
        border-color var(--duration-fast) var(--ease-out),
        transform var(--duration-fast) var(--ease-out);
}

.lightbox-close svg,
.lightbox-nav svg {
    width: 1.15rem;
    height: 1.15rem;
}

.lightbox-close:hover,
.lightbox-nav:hover {
    background: rgba(36, 36, 40, 0.88);
    border-color: rgba(255, 255, 255, 0.28);
    transform: scale(1.04);
}

.lightbox-close:active,
.lightbox-nav:active {
    transform: scale(0.96);
}

.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
    outline: 2px solid var(--text-primary);
    outline-offset: 2px;
}

.lightbox-nav[hidden] {
    display: none;
}

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

/* ---------- Contacts ---------- */
#contacts {
    min-height: clamp(26rem, 56vh, 36rem);
    min-height: clamp(26rem, 56svh, 36rem);
    scroll-margin-top: -3.5rem;
    padding: clamp(3.75rem, 7.5vh, 5.5rem) var(--section-pad-x) clamp(4.5rem, 9vh, 7rem);
    padding: clamp(3.75rem, 7.5svh, 5.5rem) var(--section-pad-x) clamp(4.5rem, 9svh, 7rem);
}

#contacts > .contact-card {
    width: 100%;
    max-width: min(580px, 54vw);
    padding: clamp(1.75rem, 3.5vw, 2.5rem);
    background: rgba(255, 255, 255, 0.025);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: border-color var(--duration-base) var(--ease-out);
}

#contacts > .contact-card:hover {
    border-color: rgba(255, 255, 255, 0.14);
}

#contacts h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.9rem, 4vw, 2.75rem);
    letter-spacing: -0.025em;
    color: var(--text-primary);
}

.contact-lead {
    margin: 0 0 1.65rem;
    max-width: 46ch;
    color: var(--text-secondary);
    font-size: clamp(0.98rem, 1.1vw, 1.0625rem);
    line-height: 1.65;
    text-wrap: pretty;
}

.contact-email-pill {
    display: inline-flex;
    align-items: stretch;
    max-width: 100%;
    margin-bottom: 1.15rem;
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    overflow: hidden;
}

.contact-email-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    min-height: 2.75rem;
    padding: 0.65rem 1rem;
    color: var(--text-primary);
    font-size: 0.96875rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: background-color var(--duration-fast) var(--ease-out);
}

.contact-email-link:hover {
    background: rgba(255, 255, 255, 0.04);
    text-decoration: none;
}

.contact-email-link:focus-visible {
    outline: 2px solid var(--text-primary);
    outline-offset: -2px;
    border-radius: 12px 0 0 12px;
}

.contact-icon {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
    color: var(--text-secondary);
    background-color: currentColor;
    -webkit-mask: var(--icon) center / contain no-repeat;
    mask: var(--icon) center / contain no-repeat;
}

.contact-email-divider {
    width: 1px;
    flex-shrink: 0;
    background: var(--border-subtle);
}

.contact-copy-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0 0.85rem;
    flex-shrink: 0;
    background: transparent;
    border: 0;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition:
        background-color var(--duration-fast) var(--ease-out),
        color var(--duration-fast) var(--ease-out);
}

.contact-copy-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

.contact-copy-btn:focus-visible {
    outline: 2px solid var(--text-primary);
    outline-offset: -2px;
    border-radius: 0 12px 12px 0;
}

.copy-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.copy-icon--check,
.copy-label {
    display: none;
}

.contact-copy-btn.is-copied {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.contact-copy-btn.is-copied .copy-icon--copy {
    display: none;
}

.contact-copy-btn.is-copied .copy-icon--check,
.contact-copy-btn.is-copied .copy-label {
    display: inline-flex;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

/* ---------- Footer ---------- */
footer {
    padding: 1.75rem var(--section-pad-x);
    border-top: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
}

footer p {
    margin: 0;
}

.footer-top-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 2.75rem;
    padding: 0.25rem 0;
    color: var(--text-secondary);
    font-weight: 500;
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}

.footer-top-link:hover {
    color: var(--text-primary);
    text-decoration: none;
}

.footer-top-link:focus-visible {
    color: var(--text-primary);
    outline: 2px solid var(--text-primary);
    outline-offset: 3px;
    border-radius: 4px;
}

.footer-top-icon {
    width: 0.95rem;
    height: 0.95rem;
    flex-shrink: 0;
    transition: transform var(--duration-fast) var(--ease-out);
}

.footer-top-link:hover .footer-top-icon {
    transform: translateY(-2px);
}

/* ---------- Trail stops (circles added by js/trail.js) ---------- */
.trail-node {
    fill: var(--bg);
    stroke: var(--trail-dim);
    stroke-width: 3px;
    transition: fill 0.25s ease, stroke 0.25s ease;
}

.trail-node.reached {
    fill: var(--red);
    stroke: var(--red);
}

/* ---------- Stop reveal ---------- */
html.js .trail-stop {
    opacity: 0.4;
    transition: opacity 0.4s ease;
}

html.js .trail-stop.reached {
    opacity: 1;
}

/* ---------- Narrower screens: trail becomes a line down the left (keep 960px in sync with mobileQuery in js/trail.js) ---------- */
@media (max-width: 960px) {
    #trail-bg,
    #trail,
    #trail-tip {
        display: none;
    }

    .trail-mobile {
        display: block;
        position: absolute;
        inset: 0;
        z-index: 0;
        pointer-events: none;
    }

    .trail-mobile-bg,
    .trail-mobile-fill {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 20px;
        width: 4px;
        border-radius: 2px;
        pointer-events: none;
    }

    .trail-mobile-bg {
        background: var(--trail-dim);
    }

    .trail-mobile-fill {
        background: var(--red);
        transform-origin: top center;
        transform: scaleY(0);
        will-change: transform;
        transition: none;
    }

    .trail-mobile-tip {
        position: absolute;
        top: -6px;
        left: 16px;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: var(--red);
        box-shadow: 0 0 6px var(--red), 0 0 12px rgba(212, 32, 44, 0.55);
        transform: translate3d(0, 0, 0);
        opacity: 0;
        will-change: transform;
        transition: none;
    }

    section,
    section:nth-of-type(even) {
        align-items: flex-start;
        padding-left: 3.25rem;
    }

    #hero {
        min-height: auto;
        padding-top: clamp(5.75rem, 12vh, 7.25rem);
        padding-top: clamp(5.75rem, 12svh, 7.25rem);
        padding-right: clamp(1.25rem, 5vw, 2.5rem);
        padding-bottom: clamp(3rem, 7vh, 4.5rem);
        padding-bottom: clamp(3rem, 7svh, 4.5rem);
        padding-left: 3.25rem;
        background:
            radial-gradient(
                90% 65% at 35% 32%,
                rgba(255, 255, 255, 0.035) 0%,
                rgba(212, 32, 44, 0.02) 45%,
                transparent 78%
            );
    }

    #hero > .hero-grid {
        max-width: var(--content-width);
        padding-right: 0;
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }

    #hero h1 {
        font-size: clamp(2.35rem, 9vw, 3.5rem);
    }

    .hero-greeting {
        font-size: clamp(1.45rem, 5vw, 2.15rem);
    }

    .portrait-frame {
        max-width: 320px;
    }

    html.js .trail-stop {
        opacity: 0.45;
    }

    #about-me {
        min-height: auto;
        scroll-margin-top: -3rem;
        padding-top: clamp(2.5rem, 5.5vh, 3.5rem);
        padding-top: clamp(2.5rem, 5.5svh, 3.5rem);
        padding-right: clamp(1.25rem, 5vw, 2.5rem);
        padding-bottom: clamp(3rem, 6.5vh, 4rem);
        padding-bottom: clamp(3rem, 6.5svh, 4rem);
        padding-left: 3.25rem;
    }

    #about-me > .about-card {
        max-width: 580px;
    }

    #experience {
        min-height: auto;
        scroll-margin-top: -2.25rem;
        padding-top: clamp(2.5rem, 5.5vh, 3.5rem);
        padding-top: clamp(2.5rem, 5.5svh, 3.5rem);
        padding-right: clamp(1.25rem, 5vw, 2.5rem);
        padding-bottom: clamp(3rem, 6.5vh, 4rem);
        padding-bottom: clamp(3rem, 6.5svh, 4rem);
        padding-left: 3.25rem;
    }

    #experience > .experience-wrap {
        max-width: 600px;
    }

    #projects {
        scroll-margin-top: -2.25rem;
        padding-top: clamp(2.5rem, 5.5vh, 3.5rem);
        padding-top: clamp(2.5rem, 5.5svh, 3.5rem);
        padding-right: clamp(1.25rem, 5vw, 2.5rem);
        padding-bottom: clamp(3.5rem, 7vh, 4.5rem);
        padding-bottom: clamp(3.5rem, 7svh, 4.5rem);
        padding-left: 3.25rem;
    }

    #projects > .projects-header,
    #projects > .project {
        max-width: 580px;
    }

    .project:nth-of-type(odd),
    .project:nth-of-type(even) {
        align-self: flex-start;
    }

    .project + .project {
        margin-top: 2rem;
    }

    .project-logo {
        height: 2.75rem;
    }

    #contacts {
        min-height: auto;
        scroll-margin-top: -2.25rem;
        padding-top: clamp(2.5rem, 5.5vh, 3.5rem);
        padding-top: clamp(2.5rem, 5.5svh, 3.5rem);
        padding-right: clamp(1.25rem, 5vw, 2.5rem);
        padding-bottom: clamp(3.5rem, 7vh, 4.5rem);
        padding-bottom: clamp(3.5rem, 7svh, 4.5rem);
        padding-left: 3.25rem;
    }

    #contacts > .contact-card {
        max-width: 580px;
    }

    footer {
        padding-left: 3.25rem;
        padding-right: clamp(1.25rem, 5vw, 2.5rem);
    }

    .tech-band-label {
        padding-left: 3.25rem;
    }

    .marquee-list {
        font-size: 0.95rem;
        gap: 0.75rem;
        padding-right: 0.75rem;
    }

    .marquee-list li {
        padding: 0.45rem 0.8rem;
        gap: 0.5rem;
    }

    .tech-icon {
        width: 1.25rem;
        height: 1.25rem;
    }
}

@media (max-width: 640px) {
    .lightbox-stage {
        flex-wrap: wrap;
        align-content: center;
        gap: 0.85rem;
    }

    .lightbox-img {
        order: 1;
        flex-basis: 100%;
        max-width: 92vw;
        max-height: 74vh;
    }

    .lightbox-prev {
        order: 2;
    }

    .lightbox-next {
        order: 3;
    }

    .carousel-btn {
        width: 2.125rem;
        height: 2.125rem;
    }
}

@media (max-width: 560px) {
    .glass-nav {
        padding: 0.25rem 0.375rem 0.25rem 0.875rem;
        gap: 0.35rem;
    }

    .nav-wordmark {
        display: none;
    }

    .nav-brand-logo {
        display: block;
        height: 20px;
        width: auto;
    }

    .nav-links {
        gap: 0.0625rem;
    }

    .nav-link {
        padding: 0 0.55rem;
        font-size: 0.8125rem;
    }

    .hero-socials {
        margin-left: 0;
    }

    .portrait-frame {
        max-width: 300px;
    }

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

/* ---------- Reduced transparency & increased contrast ---------- */
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
    .glass-nav {
        background: var(--bg-surface);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        border-color: var(--border-hover);
    }

    .btn-glass,
    #about-me > .about-card,
    .tech-band,
    .experience-card,
    #projects > .project,
    #contacts > .contact-card,
    .carousel-btn,
    .lightbox-meta,
    .lightbox-close,
    .lightbox-nav {
        background: var(--bg-surface);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        border-color: var(--border-hover);
    }

    .lightbox::backdrop {
        background: rgba(10, 10, 12, 0.96);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
}

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

    a,
    .skip-link,
    .nav-brand,
    .nav-brand-logo,
    .nav-link,
    .btn,
    .btn-arrow-icon,
    .social-link,
    #about-me > .about-card,
    .experience-card,
    #projects > .project,
    #contacts > .contact-card,
    .contact-email-link,
    .contact-copy-btn,
    .footer-top-link,
    .footer-top-icon,
    .trail-node,
    .marquee-list li,
    .tech-icon,
    .shot-btn,
    .carousel-track,
    .carousel-btn,
    .carousel-dot::before,
    .lightbox-close,
    .lightbox-nav {
        transition: none;
    }

    .btn:hover,
    .btn:active,
    .nav-brand:hover .nav-brand-logo,
    .social-link:hover,
    .social-link:active,
    .phone-shot:hover,
    .phone-shot--featured:hover,
    .btn-project:hover .btn-arrow-icon,
    .footer-top-link:hover .footer-top-icon,
    .carousel-btn:hover,
    .carousel-btn:active,
    .lightbox-close:hover,
    .lightbox-close:active,
    .lightbox-nav:hover,
    .lightbox-nav:active {
        transform: none;
    }

    .phone-shot--featured {
        transform: none;
    }

    .lightbox[open] {
        animation: none;
    }

    html.js .trail-stop {
        opacity: 1;
        transition: none;
    }

    .trail-mobile-fill,
    .trail-mobile-tip {
        transition: none;
        will-change: auto;
    }

    .marquee-row {
        -webkit-mask-image: none;
        mask-image: none;
    }

    .marquee-track {
        width: 100%;
        justify-content: center;
        animation: none;
        transform: none;
    }

    .marquee-dup {
        display: none;
    }

    .marquee-list {
        flex-wrap: wrap;
        justify-content: center;
        padding: 0 var(--section-pad-x);
        row-gap: 0.75rem;
    }
}