/* =========================================================
   Nicholas Pietronuto — Portfolio
   Liquid Glass · Dark
   Deep dark navy · #93c5fd accent · frosted glass panels
   ========================================================= */

/* ----- Design tokens ----- */
:root {
    /* Base dark */
    --bg:      #07090f;
    --bg-2:    #04060b;   /* deepest — footer */

    /* Glass layer tokens */
    --glass-bg:     rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.11);
    --glass-hi:     rgba(255, 255, 255, 0.17);  /* specular top edge */

    /* Typography */
    --ink:     #e8edf8;                       /* primary — slight blue-white */
    --ink-2:   rgba(232, 237, 248, 0.58);
    --ink-3:   rgba(232, 237, 248, 0.32);

    /* Accent — the light blue from the footer */
    --accent:      #93c5fd;
    --accent-2:    #bfdbfe;                   /* lighter hover */
    --accent-deep: #3b82f6;
    --accent-soft: rgba(147, 197, 253, 0.12);
    --accent-glow: rgba(147, 197, 253, 0.25);

    /* Rules */
    --rule:    rgba(255, 255, 255, 0.09);
    --rule-2:  rgba(255, 255, 255, 0.05);

    /* Surfaces (non-blur fallback) */
    --surface:   rgba(255, 255, 255, 0.07);
    --surface-2: rgba(255, 255, 255, 0.12);

    --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

    --max-w:     1200px;
    --pad-x:     clamp(1.25rem, 4vw, 3rem);
    --section-y: clamp(4rem, 10vw, 8rem);

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.35), 0 2px 8px rgba(0,0,0,0.30);
    --shadow-md: 0 2px 4px rgba(0,0,0,0.45), 0 10px 32px rgba(0,0,0,0.40);
    --shadow-lg: 0 4px 8px rgba(0,0,0,0.55), 0 24px 64px rgba(0,0,0,0.55);

    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    color-scheme: dark;
}

/* ----- Reset & base ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
    margin: 0;
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/*
 * Background depth blobs — fixed behind everything.
 * Glass elements with backdrop-filter pick up these colors,
 * producing the characteristic tinted liquid-glass look.
 */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 65% 55% at 10% 8%,  rgba(37, 99, 235, 0.22) 0%, transparent 60%),
        radial-gradient(ellipse 50% 55% at 88% 78%, rgba(99, 40, 210, 0.14) 0%, transparent 60%),
        radial-gradient(ellipse 35% 40% at 58% 48%, rgba(147, 197, 253, 0.07) 0%, transparent 55%);
    pointer-events: none;
    z-index: -1;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 180ms var(--ease); }
a:hover { color: var(--accent-2); }
::selection { background: var(--accent-deep); color: #fff; }
.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding-inline: var(--pad-x);
}

/* =========================================================
   Nav — liquid glass bar
   ========================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7, 9, 15, 0.55);
    backdrop-filter: blur(28px) saturate(200%);
    -webkit-backdrop-filter: blur(28px) saturate(200%);
    border-bottom: 1px solid transparent;
    /* Bottom hairline glow — gives the bar a lit-edge feeling */
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06);
    transition: border-color 200ms var(--ease), background 200ms var(--ease);
}
.site-header.is-scrolled {
    background: rgba(7, 9, 15, 0.78);
    border-bottom-color: rgba(255, 255, 255, 0.09);
}
.nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4.5rem;
    gap: 1.5rem;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--ink);
    font-family: var(--sans);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}
.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    background: rgba(147, 197, 253, 0.14);
    border: 1px solid rgba(147, 197, 253, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
    color: var(--accent);
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.brand-name { font-size: 0.95rem; }
@media (max-width: 520px) { .brand-name { display: none; } }

.primary-nav { display: flex; gap: clamp(1rem, 3vw, 2rem); }
.primary-nav a {
    color: rgba(232, 237, 248, 0.60);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0;
    position: relative;
    padding-block: 0.25rem;
}
.primary-nav a:hover { color: var(--ink); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
    padding-block: clamp(1.75rem, 4vw, 3rem) clamp(1.5rem, 3.5vw, 2.5rem);
    position: relative;
    overflow: hidden;
}
.hero::before { display: none; }

/* Dot-grid — soft blue tint on dark */
.hero-topo {
    position: absolute;
    top: 0;
    right: 0;
    width: clamp(240px, 40vw, 520px);
    height: clamp(240px, 40vw, 520px);
    color: var(--accent);
    opacity: 0.10;
    pointer-events: none;
    z-index: 0;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 6vw, 6rem);
    align-items: center;
}
@media (max-width: 860px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-photo { order: -1; max-width: 340px; }
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 0.85rem;
}
.kicker::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--accent);
    flex-shrink: 0;
}

.hero-name {
    font-family: var(--sans);
    font-weight: 700;
    font-size: clamp(2.4rem, 6vw, 4.75rem);
    line-height: 1.0;
    letter-spacing: -0.04em;
    margin: 0;
    color: var(--ink);
}
.hero-name-last {
    color: var(--accent);
    display: block;
}
.hero-name::after { display: none; }

.hero-tagline {
    margin: 1.5rem 0 2rem;
    font-size: clamp(1.05rem, 1.5vw, 1.15rem);
    font-weight: 400;
    color: var(--ink-2);
    max-width: 44ch;
    line-height: 1.7;
}
.hero-tagline em { font-style: normal; font-weight: 600; color: var(--ink); }

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 1.75rem;
}

/* Primary CTA — liquid glass button */
.hero-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1.5rem;
    background: rgba(147, 197, 253, 0.13);
    border: 1px solid rgba(147, 197, 253, 0.32);
    color: var(--accent);
    font-size: 0.925rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    border-radius: 10px;
    text-decoration: none;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.20),
        0 4px 16px rgba(147, 197, 253, 0.10),
        0 1px 3px rgba(0, 0, 0, 0.35);
    transition: background 200ms var(--ease),
                border-color 200ms var(--ease),
                box-shadow 200ms var(--ease),
                transform 200ms var(--ease);
}
.hero-cta-primary:hover {
    background: rgba(147, 197, 253, 0.22);
    border-color: rgba(147, 197, 253, 0.52);
    color: var(--accent-2);
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 8px 28px rgba(147, 197, 253, 0.22),
        0 2px 6px rgba(0, 0, 0, 0.35);
}
.cta-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 6px;
    flex-shrink: 0;
    animation: arrow-bounce 2.2s var(--ease) infinite;
}
.hero-cta-primary:hover .cta-arrow { animation-play-state: paused; }
@keyframes arrow-bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(3px); }
}

/* Ghost CTA */
.hero-cta-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--ink-2);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 2px;
    transition: color 180ms var(--ease), border-color 180ms var(--ease), gap 180ms var(--ease);
}
.hero-cta-ghost:hover {
    color: var(--accent);
    border-color: var(--accent);
    gap: 0.65rem;
}
.hero-cta-ghost svg { transition: transform 180ms var(--ease); flex-shrink: 0; }
.hero-cta-ghost:hover svg { transform: translateX(3px); }

/* Fallback .btn */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 180ms var(--ease);
}
.btn-primary {
    background: rgba(147, 197, 253, 0.14);
    border-color: rgba(147, 197, 253, 0.32);
    color: var(--accent);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.16);
}
.btn-primary:hover { background: rgba(147,197,253,0.22); color: var(--accent-2); transform: translateY(-1px); }
.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.11);
    color: var(--ink);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
}
.btn-ghost:hover { background: rgba(255,255,255,0.09); color: var(--accent); border-color: rgba(147,197,253,0.32); transform: translateY(-1px); }

/* Hero photo */
.hero-photo {
    position: relative;
    margin: 0;
    width: 100%;
    justify-self: end;
}
@media (max-width: 860px) { .hero-photo { justify-self: center; } }
.hero-photo::before { display: none; }
.hero-photo img {
    width: 100%;
    border-radius: 16px;
    aspect-ratio: 444 / 555;
    object-fit: cover;
    display: block;
    box-shadow:
        0 0 0 1px rgba(147, 197, 253, 0.18),
        0 0 50px rgba(147, 197, 253, 0.07),
        0 28px 72px rgba(0, 0, 0, 0.70);
}

/* =========================================================
   Work — section header
   ========================================================= */
.work { padding-block: var(--section-y); }
.section-head { margin-bottom: clamp(2rem, 5vw, 4rem); }

.section-eyebrow,
.about-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 1rem;
}
.section-eyebrow::before,
.about-eyebrow::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--accent);
    flex-shrink: 0;
}

.section-title {
    font-family: var(--sans);
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin: 0;
    color: var(--ink);
}
.section-title em { font-style: normal; color: var(--accent); }
.section-title::after { display: none; }

/* =========================================================
   Projects — liquid glass cards
   ========================================================= */
.project {
    position: relative;
    padding: clamp(2rem, 4vw, 3rem);
    margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
    border-radius: 20px;
    /* Glass */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14), /* specular top edge */
        0 8px 40px rgba(0, 0, 0, 0.40),
        0 2px 8px rgba(0, 0, 0, 0.25);
    transition: border-color 300ms var(--ease), box-shadow 300ms var(--ease);
}
.project:hover {
    border-color: rgba(147, 197, 253, 0.20);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 12px 52px rgba(0, 0, 0, 0.48),
        0 0 36px rgba(147, 197, 253, 0.06);
}
/* Remove the old border-top divider system — cards are self-contained now */
.project:first-of-type { border-top: none; }
.project:last-of-type  { margin-bottom: 0; }
.project-head { margin-bottom: 0.75rem; }

.project-title {
    font-family: var(--sans);
    font-weight: 700;
    font-size: clamp(1.6rem, 3.5vw, 2.25rem);
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin: 0;
    color: var(--ink);
}
.project-title em { font-style: normal; color: var(--accent); }

.project-description {
    max-width: 64ch;
    margin: 0.65rem 0 1.75rem;
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--ink-2);
}
.project-description em { font-style: normal; font-weight: 600; color: var(--ink); }

/* Math callout — glass inset panel */
.callout {
    margin: 0 0 1.75rem;
    padding: 1.25rem clamp(1rem, 3vw, 1.75rem);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-left: 3px solid var(--accent);
    border-radius: 0 12px 12px 0;
    overflow-x: auto;
    color: var(--ink);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* =========================================================
   Media gallery
   ========================================================= */
.project-media {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: clamp(0.6rem, 1.2vw, 1rem);
    margin: 0;
}
.media {
    flex-grow: var(--ar, 1);
    flex-shrink: 1;
    flex-basis: 0;
    min-width: clamp(200px, 24vw, 280px);
    max-width: 100%;
    width: auto;
    height: auto;
    aspect-ratio: var(--ar, 16 / 10);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.10),
        0 4px 20px rgba(0, 0, 0, 0.40);
    object-fit: cover;
    cursor: zoom-in;
    transition: transform 280ms var(--ease),
                box-shadow 280ms var(--ease),
                border-color 280ms var(--ease);
}
.media:hover {
    transform: translateY(-3px);
    border-color: rgba(147, 197, 253, 0.32);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 12px 36px rgba(0, 0, 0, 0.52),
        0 0 24px rgba(147, 197, 253, 0.10);
}

.media-stack {
    flex-grow: var(--ar, 1);
    flex-shrink: 1;
    flex-basis: 0;
    min-width: clamp(200px, 24vw, 280px);
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: clamp(0.6rem, 1.2vw, 1rem);
    margin: 0;
}
.media-stack > .media { flex: 0 0 auto; min-width: 0; width: 100%; }

/* Go-kart: constrain min-width so row stays compact */
#go-kart .media,
#go-kart .media-stack {
    min-width: clamp(140px, 18vw, 220px);
}

@media (max-width: 640px) {
    .project-media { gap: 0.75rem; }
    .media-stack  { gap: 0.75rem; }
    .media, .media-stack { flex-basis: 100%; min-width: 100%; }
}
@media (max-width: 760px) {
    .project-media.has-stack > .media,
    .project-media.has-stack > .media-stack { flex-basis: 100%; min-width: 100%; }
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
    background: var(--bg-2);
    color: var(--ink);
    padding-block: clamp(4rem, 9vw, 7rem) 2rem;
    margin-top: var(--section-y);
    position: relative;
    overflow: hidden;
}
/* Soft blue bloom in corner */
.footer::before {
    content: '';
    position: absolute;
    inset: -25% -10% auto auto;
    width: 55vw;
    height: 55vw;
    max-width: 640px;
    max-height: 640px;
    background: radial-gradient(circle, rgba(147, 197, 253, 0.12) 0%, transparent 65%);
    pointer-events: none;
}
/* Large faint NP watermark */
.footer::after {
    content: 'NP';
    position: absolute;
    bottom: 1.5rem;
    left: var(--pad-x);
    font-family: var(--mono);
    font-size: clamp(5rem, 16vw, 13rem);
    font-weight: 700;
    letter-spacing: -0.06em;
    line-height: 1;
    color: rgba(255, 255, 255, 0.03);
    pointer-events: none;
    user-select: none;
}
.footer .container { position: relative; z-index: 1; }
.footer .section-eyebrow { color: var(--accent); }
.footer .section-eyebrow::before { background: var(--accent); }

.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
    padding-bottom: clamp(2rem, 5vw, 4rem);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-title {
    font-family: var(--sans);
    font-weight: 700;
    font-size: clamp(2.2rem, 5.2vw, 3.6rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
    margin: 0 0 0.75rem;
    color: #ffffff;
}
.footer-title em { font-style: normal; color: var(--accent); font-weight: 700; }

.footer-sub {
    font-size: 1rem;
    color: rgba(232, 237, 248, 0.58);
    max-width: 44ch;
    margin: 0;
    line-height: 1.7;
}

.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.footer-links a {
    display: grid;
    grid-template-columns: 6rem 1fr;
    align-items: baseline;
    gap: 1rem;
    padding: 0.9rem 0;
    color: var(--ink);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: color 180ms var(--ease),
                padding-left 180ms var(--ease),
                border-color 180ms var(--ease);
}
.footer-links a:hover {
    color: var(--accent);
    padding-left: 0.4rem;
    border-bottom-color: rgba(147, 197, 253, 0.25);
}
.link-label {
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    color: var(--accent);
}
.link-value {
    font-weight: 500;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    letter-spacing: -0.015em;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    color: rgba(232, 237, 248, 0.32);
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
}
.footer-bottom .back-to-top {
    color: rgba(232, 237, 248, 0.48);
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.footer-bottom .back-to-top:hover { color: var(--accent); }

/* =========================================================
   Lightbox
   ========================================================= */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 4vw, 3.5rem);
    background: rgba(4, 6, 14, 0.82);
    backdrop-filter: blur(10px) saturate(160%);
    -webkit-backdrop-filter: blur(10px) saturate(160%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 220ms var(--ease), visibility 0s linear 220ms;
}
.lightbox.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity 220ms var(--ease), visibility 0s linear 0s;
}
.lightbox-stage {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.97);
    transition: transform 260ms var(--ease);
}
.lightbox.is-open .lightbox-stage { transform: scale(1); }
.lightbox-stage > img,
.lightbox-stage > video {
    display: block;
    max-width: min(95vw, 1600px);
    max-height: 88vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 14px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.10),
        0 28px 80px rgba(0, 0, 0, 0.72);
    background: #000;
}
.lightbox-close {
    position: absolute;
    top: clamp(0.75rem, 2vw, 1.25rem);
    right: clamp(0.75rem, 2vw, 1.25rem);
    width: 2.6rem;
    height: 2.6rem;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
    color: #fff;
    cursor: pointer;
    padding: 0;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: background 180ms var(--ease),
                border-color 180ms var(--ease),
                transform 180ms var(--ease);
}
.lightbox-close:hover {
    background: rgba(147, 197, 253, 0.20);
    border-color: rgba(147, 197, 253, 0.40);
    transform: rotate(90deg);
}
.lightbox-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
body.lightbox-open { overflow: hidden; }

/* =========================================================
   Reveal on scroll
   ========================================================= */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 700ms var(--ease), transform 700ms var(--ease);
    will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Details & personality
   ========================================================= */

/* Custom thin scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Nav — animated sliding underline */
.primary-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--accent);
    border-radius: 1px;
    transition: width 220ms var(--ease);
}
.primary-nav a:hover::after { width: 100%; }

/* Brand mark — tilt + glow on hover */
.brand-mark {
    transition: transform 240ms var(--ease), box-shadow 240ms var(--ease);
}
.brand:hover .brand-mark {
    transform: rotate(-6deg) scale(1.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 4px 20px rgba(147, 197, 253, 0.38);
}

/* Hero name — thin accent rule underneath */
.hero-name::after {
    content: '';
    display: block;
    width: 2.75rem;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    margin-top: 1.4rem;
    opacity: 0.75;
}

/* =========================================================
   About strip (kept for potential reuse)
   ========================================================= */
.about {
    padding-block: clamp(3rem, 7vw, 5rem);
    border-top: 1px solid var(--rule);
}
.about-text {
    font-weight: 500;
    font-size: clamp(1.3rem, 2.4vw, 1.85rem);
    line-height: 1.5;
    letter-spacing: -0.015em;
    color: var(--ink);
    max-width: 62ch;
    margin: 0;
}
.about-text em { font-style: normal; font-weight: 700; color: var(--accent); }
