html {
    margin: 0;
    padding: 0;
    background: #3c00ff;
}

body {
    background-color: #3c00ff;
    margin: 0;
    padding: 0;
    font-family: "Climate Crisis", sans-serif;
    font-variation-settings: "YEAR" 1979;
}

/* ============================================
   HOME PAGE - LANDING
   ============================================ */

:root {
    --hero-pad-x: clamp(16px, 4vw, 48px);
    --hero-pad-y: clamp(24px, 6vh, 72px);

    --hero-title-size: clamp(2.25rem, 5.5vw, 5.5rem);
    --hero-statement-size: clamp(1.6rem, 4.2vw, 4.2rem);

    --hero-title-max: min(92vw, 18ch);
    --hero-statement-max: calc(100vw - 2rem);
}

.home-body {
    background-color: #3c00ff;
    overflow-x: hidden;
}

/* ---------- Reveal overlay animation ---------- */
.revealOverlay {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 9999;
    pointer-events: none;
    animation: smoothReveal 1400ms cubic-bezier(0.16, 1, 0.3, 1) 200ms forwards;
}

@keyframes smoothReveal {
    0%   { opacity: 1; }
    60%  { opacity: 0.4; }
    100% { opacity: 0; }
}

/* Content fades in with blur-to-sharp */
.home-hero {
    animation: contentSharpen 1800ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes contentSharpen {
    0%   { filter: blur(12px); opacity: 0; transform: scale(1.02); }
    40%  { filter: blur(4px); opacity: 0.6; }
    100% { filter: blur(0px); opacity: 1; transform: scale(1); }
}

/* ---------- Hero section (above the fold) ---------- */
.home-hero {
    width: 100vw;
    height: 100vh;
    position: relative;
    padding: var(--hero-pad-y) var(--hero-pad-x);
    box-sizing: border-box;
    overflow: hidden;
}

/* ---------- Intro line 1: "Hi, I'm Saher." ---------- */
.introLine1 {
    font-family: "Cascadia Mono", monospace;
    font-size: var(--hero-title-size);
    font-weight: 800;
    line-height: 1.03;
    letter-spacing: -0.02em;
    max-width: var(--hero-title-max);
    color: #000;
    white-space: nowrap;
    text-align: center;
    margin: 0;
    position: absolute;
    top: var(--hero-pad-y);
    left: 50%;
    transform: translateX(-50%);
}

/* ---------- Hover image between intro and statement ---------- */
.hoverImage {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(36vw, 360px);
    max-width: 360px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease, transform 200ms ease;
    z-index: 2;
}
.hoverImage.isVisible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.02);
}

/* ---------- Saher hover image (centered below headline) ---------- */
.saherCenteredImage {
    position: absolute;
    left: 50%;
    top: calc(var(--hero-pad-y) + 5rem);
    transform: translateX(-50%);
    height: 55vh;
    max-height: 500px;
    width: auto;
    max-width: 50vw;
    object-fit: contain;
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease;
    z-index: 2;
}
.saherCenteredImage.isVisible {
    opacity: 1;
}

/* ---------- Saher name hollow on hover ---------- */
.name-hover {
    position: relative;
    display: inline-block;
    overflow: visible;
    font-family: "Bungee", "Outfit", system-ui, sans-serif;
    color: #000;
    transition: font-family 160ms ease;
}
.name-hover.hollow-active,
.name-hover:hover {
    font-family: "Cascadia Mono", monospace;
}

/* ---------- Keyword hollow on hover ---------- */
.keyword {
    font-family: "Bungee", "Outfit", system-ui, sans-serif;
    transition: font-family 160ms ease;
}
.keyword:hover {
    font-family: "Cascadia Mono", monospace;
}

/* ---------- Statement sentence ---------- */
.statement {
    text-align: center;
    font-family: "Cascadia Mono", monospace;
    font-size: var(--hero-statement-size);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    width: var(--hero-statement-max);
    max-width: var(--hero-statement-max);
    color: #000;
    margin: 0;
    overflow-wrap: anywhere;
    /* Vertically centered in hero */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: filter 200ms ease, color 150ms ease;
}

/* Blur statement text when hovering a keyword image */
.statement.isBlurred {
    filter: blur(7px);
    opacity: 0.7;
}

/* Static phrases: always filled black, no hover change */
.staticPhrase {
    color: #000;
    transition: color 150ms ease, opacity 150ms ease;
}

/* ---------- Keyword-hover dimming (statement only) ---------- */
.statement.isKeywordHover .staticPhrase {
    color: rgba(0, 0, 0, 0.2);
    opacity: 0.45;
}

.statement.isKeywordHover .keyword {
    font-family: "Cascadia Mono", monospace;
    opacity: 0.45;
    transition: font-family 150ms ease, opacity 150ms ease;
}

.statement.isKeywordHover .keyword.isActive {
    font-family: "Bungee", "Outfit", system-ui, sans-serif;
    color: #000;
    opacity: 1;
}

/* ---------- Nav section (below the fold) ---------- */
.navSection {
    min-height: 100vh;
    position: relative;
    overflow-x: clip;
    overflow-y: visible;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-color: #3c00ff;
}

/* ---------- Staircase nav stack ---------- */
.navStack {
    --nav-pad: clamp(16px, 3vw, 48px);
    --stair-step: 10vw;
    position: relative;
    left: 0;
    width: 100%;
    max-width: 100vw;
    padding: 0 var(--nav-pad);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    height: 70vh;
    overflow: hidden;
}

.navWord {
    font-family: "Bungee", "Outfit", system-ui, sans-serif;
    font-size: clamp(2rem, min(10vh, 6.5vw), 8rem);
    text-transform: uppercase;
    letter-spacing: -0.03em;
    line-height: 0.85;
    white-space: nowrap;
    font-weight: 900;
    color: #000;
    text-decoration: none;
    display: block;
    will-change: transform, opacity;

    /* Default: hidden + offset for fall-in animation */
    opacity: 0;
    transform: translate(-6vw, -10vh) scale(1.08);
    transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
                transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Staircase indent per line — spans full viewport width */
.navWord:nth-child(1) { margin-left: 0; }
.navWord:nth-child(2) { margin-left: calc(var(--stair-step) * 1); }
.navWord:nth-child(3) { margin-left: calc(var(--stair-step) * 2); }
.navWord:nth-child(4) { margin-left: calc(var(--stair-step) * 3); }
.navWord:nth-child(5) { margin-left: calc(var(--stair-step) * 4); }

/* Staggered transition delays */
.navWord:nth-child(1) { transition-delay: 0ms; }
.navWord:nth-child(2) { transition-delay: 90ms; }
.navWord:nth-child(3) { transition-delay: 180ms; }
.navWord:nth-child(4) { transition-delay: 270ms; }
.navWord:nth-child(5) { transition-delay: 360ms; }

/* ---------- In-view: fall into place ---------- */
.navSection.inView .navWord {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* ---------- Shared hollow hover (nav items: solid -> Bungee Inline) ---------- */
.hollowHover {
    transition: font-family 160ms ease,
                opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
                transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hollowHover:hover {
    font-family: "Cascadia Mono", monospace;
}

/* ---------- Footer inverted hover (Bungee Inline default -> filled on hover) ---------- */
.footerInvert {
    color: #000;
    transition: font-family 160ms ease;
}

/* ---------- Footer / author block ---------- */
.home-author {
    position: absolute;
    left: clamp(16px, 3vw, 48px);
    bottom: clamp(16px, 3vw, 48px);
}

.footerLabel {
    font-family: "Cascadia Mono", monospace;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1;
    --stroke: 2px;
}

a.home-author-name {
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    text-decoration: none;
    display: block;
}

.home-author-location {
    font-size: clamp(0.7rem, 1.8vw, 1.2rem);
    margin-top: 0.4rem;
    letter-spacing: 0.02em;
}

/* ============================================
   NAVIGATION - Using button.png background
   ============================================ */

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    padding: 16px 40px;
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    z-index: 1000;
    border-bottom: none;
    box-shadow: none;
    box-sizing: border-box;
    overflow-x: auto;
}

.nav-link {
    font-family: "IBM Plex Serif", serif;
    font-size: 0.55rem;
    font-weight: 700;
    color: #090f06;
    text-decoration: none;
    padding: 12px 24px;
    background-image: url('assets/images/home page/button.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    border: none;
    border-radius: 0;
    transition: transform 0.2s, filter 0.2s;
}

.nav-link:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.nav-link.active {
    color: #FFFFFF;
    filter: brightness(0.95);
    transform: scale(1.02);
}

/* ============================================
   ART GALLERY PAGE - DIAMOND LAYOUT
   ============================================ */

.art-gallery-page {
    padding: 40px 0 40px 0;
    min-height: 100vh;
    overflow: hidden;
}

/* Diamond Gallery Container */
.diamond-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 50px;
}

/* Diamond Tile - rotated 45 degrees */
.diamond-tile {
    width: 280px;
    height: 280px;
    margin: 20px;
    transform: rotate(45deg);
    overflow: hidden;
    border: 4px solid #A22522;
    background-color: #FEFAE0;
    position: relative;
}

.diamond-tile-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140%;
    height: 140%;
    transform: translate(-50%, -50%) rotate(-45deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.diamond-tile a {
    display: block;
    width: 100%;
    text-align: center;
}

.diamond-tile img {
    width: 90%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.diamond-caption {
    font-family: "IBM Plex Serif", serif;
    font-size: 0.75rem;
    color: #090f06;
    text-align: center;
    padding: 8px 4px;
    line-height: 1.3;
    background-color: #FEFAE0;
}

/* ============================================
   CONTENT PAGE - COLLAGE VIDEO LAYOUT
   ============================================ */

.content-page {
    padding: 40px 0 40px 0;
    min-height: 100vh;
}

.collage-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 0;
    max-width: 1400px;
    margin: 0 auto;
}

.collage-video-tile {
    position: relative;
    border: 3px solid #A22522;
    margin: -1.5px;
    background-color: #FEFAE0;
}

.collage-video-title {
    font-family: "IBM Plex Serif", serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #A22522;
    margin: 0;
    padding: 16px;
    text-align: center;
}

.collage-video-tile video {
    width: 100%;
    height: auto;
    display: block;
    background-color: #000;
}

/* ============================================
   RESUME PAGE
   ============================================ */

.resume-page {
    padding: 40px 40px 40px 40px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.resume-container {
    width: 100%;
    max-width: 900px;
    background: rgba(255, 255, 255, 0.12);
    border: 3px solid #470c11;
    border-radius: 12px;
    box-shadow: 8px 8px 0 #470c11;
    padding: 24px;
    text-align: center;
}

.resume-title {
    font-family: "IBM Plex Serif", serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #A22522;
    margin: 0 0 16px 0;
}

.resume-pdf {
    width: 100%;
    height: 80vh;
    min-height: 600px;
    border: 3px solid #470c11;
    border-radius: 8px;
}

/* ============================================
   PROJECTS PAGE - Pull-scroll sections
   ============================================ */

.projects-body {
    background-color: #3c00ff;
    overflow: hidden;
}

.projects-snap-container {
    height: 100vh;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

.projects-snap-section {
    min-height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background-color: #3c00ff;
}

.projects-snap-inner {
    padding: clamp(80px, 10vh, 120px) clamp(24px, 6vw, 80px) clamp(40px, 6vh, 80px);
    transition: transform 100ms ease-out, opacity 100ms ease-out;
    will-change: transform, opacity;
}

.projects-section-title {
    font-family: "Bungee", "Outfit", system-ui, sans-serif;
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-weight: 900;
    color: #000;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin: 0 0 clamp(24px, 4vh, 48px) 0;
}

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

.projects-column {
    background-color: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: clamp(16px, 2vw, 24px);
    min-height: 200px;
}

.projects-column-title {
    font-family: "IBM Plex Serif", serif;
    font-size: clamp(1rem, 1.8vw, 1.4rem);
    font-weight: 700;
    color: #000;
    margin: 0 0 12px 0;
}

.projects-column-content {
}

.projects-blurb {
    font-family: "IBM Plex Serif", serif;
    font-size: clamp(0.8rem, 1.2vw, 0.95rem);
    font-weight: 400;
    color: #000;
    line-height: 1.6;
    margin: 0;
}

.projects-column-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    margin-bottom: 12px;
}

.projects-column-content video {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    background-color: #000;
    margin-top: 8px;
}

.projects-mockup-video {
    max-width: 280px;
    margin-top: 12px;
}

/* ============================================
   ABOUT PAGE - VAN HOLTZ NAV SCULPTURE
   ============================================ */

.about-body {
    background-color: #3c00ff;
    overflow: hidden;
}

/* ---------- Scroll-snap container (3 panels) ---------- */
.about-snap-container {
    height: 100vh;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

.about-snap-section {
    min-height: 100vh;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background-color: #3c00ff;
}

/* ---------- Full-width text (no image column) ---------- */
.about-section-text-full {
    width: 100%;
}

.about-section-text-full .about-bio {
    max-width: 100%;
}

/* ---------- Degree phrase (inline accent) ---------- */
.about-degree-accent {
    font-family: "Bungee", "Outfit", system-ui, sans-serif;
    cursor: pointer;
}

/* ---------- Bottom images: 3-up desktop, swipe carousel mobile ---------- */
.about-bottom-images {
    display: flex;
    gap: clamp(12px, 2vw, 24px);
    margin-top: clamp(24px, 4vh, 40px);
    width: 100%;
}

.about-bottom-slide {
    flex: 1 1 0;
    min-width: 0;
}

.about-bottom-slide img {
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: contain;
    display: block;
    border-radius: 6px;
}

/* ---------- About first screen wrapper ---------- */
.about-first-screen {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    box-sizing: border-box;
    padding-bottom: clamp(24px, 4vh, 48px);
}

.about-first-screen .about-headline-statement {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-headline-statement-inner {
    display: block;
    text-align: center;
}

/* ---------- About links row (first screen bottom) ---------- */
.about-links-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 28px;
    padding: 0 clamp(24px, 6vw, 80px) clamp(32px, 5vh, 56px);
    box-sizing: border-box;
    margin-top: auto;
}

.about-links-row a {
    font-family: "IBM Plex Serif", serif;
    font-size: clamp(0.85rem, 1.4vw, 1.05rem);
    font-weight: 600;
    color: #000;
    text-decoration: none;
    padding: 12px 24px;
    border: 2px solid #000;
    border-radius: 4px;
    transition: background-color 200ms ease, color 200ms ease;
    white-space: nowrap;
}

.about-links-row a:hover {
    background-color: #000;
    color: #3c00ff;
}

/* ---------- Bigger proof/chalk images (~15% larger) ---------- */
.about-intro-image {
    flex: 0 0 auto;
    width: clamp(230px, 30vw, 400px);
    height: auto;
    border-radius: 8px;
    object-fit: contain;
    margin-top: 1rem;
}

.aboutHero {
    width: 100vw;
    min-height: 100vh;
    position: relative;
    overflow: visible;
    background-color: #3c00ff;
    padding-bottom: clamp(100px, 15vh, 160px);
}

/* ---------- Nav sculpture cluster ---------- */
.aboutNavSculpture {
    position: absolute;
    right: clamp(16px, 4vw, 64px);
    top: 50%;
    transform: translateY(-50%) rotateY(-18deg) rotateX(6deg);
    perspective: 1200px;
    transform-style: preserve-3d;
    display: flex;
    flex-direction: column;
    gap: 0;
    z-index: 10;
}

/* ---------- Individual nav item row ---------- */
.sculptureItem {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1.5vw, 20px);
    text-decoration: none;
    cursor: pointer;
    position: relative;
    transform: skew(var(--item-skew, 0deg)) rotate(var(--item-rotate, 0deg));
    transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1),
                filter 200ms ease;
}

.sculptureItem:hover {
    transform: skew(var(--item-skew, 0deg)) rotate(var(--item-rotate, 0deg)) translateZ(30px);
    filter: brightness(1.15) contrast(1.05);
}

.sculptureItem:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 6px;
    border-radius: 4px;
}

/* ---------- The big nav word ---------- */
.sculptureWord {
    font-family: "Outfit", "Anton", system-ui, sans-serif;
    font-size: clamp(3.5rem, 8vw, 10rem);
    font-weight: 900;
    line-height: 0.88;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #000;
    display: block;
    white-space: nowrap;
}

/* ---------- Micro label (01, 02, etc.) ---------- */
.microLabel {
    font-family: "IBM Plex Serif", serif;
    font-size: clamp(0.5rem, 0.9vw, 0.75rem);
    font-weight: 400;
    color: rgba(0, 0, 0, 0.5);
    letter-spacing: 0.05em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    min-width: 2em;
}

/* Diagonal slash line via pseudo-element */
.microLabel::after {
    content: '';
    display: block;
    width: 1px;
    height: clamp(30px, 4vw, 60px);
    background: rgba(0, 0, 0, 0.3);
    transform: rotate(-35deg);
    transform-origin: top center;
}

/* ---------- Footer area (bottom-left) ---------- */
.aboutFooter {
    padding: clamp(40px, 6vh, 80px) clamp(24px, 6vw, 80px) 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    z-index: 5;
}

.aboutAuthorName {
    font-family: "Bungee", "Outfit", system-ui, sans-serif;
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1;
    color: #000;
}

.aboutAuthorDetail {
    font-family: "Outfit", "Anton", system-ui, sans-serif;
    font-size: clamp(0.7rem, 1.8vw, 1.2rem);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1;
    color: #000;
    margin-top: 0.4rem;
}

.aboutSpotify {
    flex-shrink: 0;
}

/* ---------- About page intro section ---------- */
.about-intro {
    padding: clamp(80px, 10vh, 120px) clamp(24px, 6vw, 80px) 0;
}

.about-greeting {
    font-family: "Cascadia Mono", monospace;
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 900;
    color: #000;
    margin: 0;
    line-height: 1.05;
}

.about-bio {
    font-family: "IBM Plex Serif", serif;
    font-size: clamp(0.95rem, 1.6vw, 1.15rem);
    font-weight: 400;
    color: #000;
    line-height: 1.7;
    max-width: 720px;
    margin: 0;
}

.about-bio-highlight {
    font-weight: 700;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
}

/* ---------- About page intro row (text + image) ---------- */
.about-intro-row {
    display: flex;
    align-items: flex-start;
    gap: clamp(24px, 4vw, 48px);
}

.about-intro-text {
    flex: 1;
    min-width: 0;
}

/* ---------- About page music section ---------- */
.about-music-section {
    display: flex;
    align-items: center;
    gap: clamp(24px, 4vw, 48px);
    padding: clamp(32px, 5vh, 60px) 0 0;
}

.about-music-embed {
    flex: 0 0 clamp(280px, 30vw, 400px);
}

.about-music-blurb {
    flex: 1;
    min-width: 0;
}

.about-music-blurb p {
    font-family: "IBM Plex Serif", serif;
    font-size: clamp(0.95rem, 1.6vw, 1.15rem);
    font-weight: 400;
    color: #000;
    line-height: 1.7;
    margin: 0;
}

/* ---------- Section A: Hero top (image + greeting) ---------- */
.about-section-a {
    justify-content: flex-start;
}

.about-hero-top {
    display: flex;
    align-items: center;
    gap: clamp(24px, 4vw, 48px);
}

.about-section-a .about-intro-image {
    margin-top: 0;
}

/* ---------- Headline statement: "I graduated..." ---------- */
.about-headline-statement {
    font-family: "Cascadia Mono", monospace;
    font-weight: 700;
    font-size: clamp(1.8rem, 3.8vw, 3rem);
    color: #000;
    text-align: center;
    width: 92%;
    max-width: 92%;
    margin: clamp(24px, 4vh, 48px) auto 0;
    line-height: 1.35;
    display: block;
}

/* degree-hover-trigger no longer used in headline */

/* ---------- Full-width bio paragraph ---------- */
.about-bio-wide {
    max-width: 100%;
    margin-top: clamp(16px, 3vh, 32px);
}

/* ---------- Section B: Career section ---------- */
.about-section-b {
    justify-content: flex-start;
}

.about-section-b-inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 80vh;
    padding-bottom: clamp(40px, 6vh, 80px);
}

.about-section-b-anchor {
    font-family: "IBM Plex Serif", serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: #000;
    text-align: center;
    line-height: 1.2;
    margin: 0;
}

.about-section-b-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.about-section-b-bottom .about-bio {
    max-width: 620px;
    text-align: right;
}

.tools-link {
    color: #000;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- Section C: Outside of work ---------- */
.about-section-c {
    justify-content: flex-start;
}

.about-section-c .about-intro {
    padding-top: clamp(60px, 8vh, 100px);
}

/* ---------- Scroll snap enhancement ---------- */
.about-snap-section {
    scroll-snap-stop: always;
}

.about-snap-section .about-intro {
    transition: transform 100ms ease-out, opacity 100ms ease-out;
    will-change: transform, opacity;
}

/* ============================================
   BURGER MENU NAVIGATION (non-home pages)
   ============================================ */

.burger-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 2000;
    width: 48px;
    height: 48px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px;
}

.burger-btn:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
    border-radius: 4px;
}

.burger-bar {
    display: block;
    width: 28px;
    height: 3px;
    background: #000;
    border-radius: 2px;
    transition: transform 300ms ease, opacity 200ms ease;
}

/* Animate to X when open */
.burger-btn.is-open .burger-bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.burger-btn.is-open .burger-bar:nth-child(2) {
    opacity: 0;
}

.burger-btn.is-open .burger-bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Overlay */
.burger-overlay {
    position: fixed;
    inset: 0;
    z-index: 1500;
    background: rgba(60, 0, 255, 0.97);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    opacity: 0;
    visibility: hidden;
    transition: opacity 350ms ease, visibility 350ms ease;
}

.burger-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* Nav links inside overlay */
.burger-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-evenly;
    width: 100%;
    height: 60vh;
    padding-left: clamp(24px, 6vw, 80px);
    box-sizing: border-box;
}

.burger-nav-link {
    font-family: "Bungee", "Outfit", system-ui, sans-serif;
    font-size: clamp(2rem, 7vw, 5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1;
    color: #000;
    text-decoration: none;
    transition: font-family 160ms ease;
}

.burger-nav-link:hover {
    font-family: "Cascadia Mono", monospace;
}

.burger-nav-link:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 6px;
    border-radius: 4px;
}

.burger-nav-link.active {
    font-family: "Cascadia Mono", monospace;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet: 2-column projects grid */
@media (max-width: 1024px) and (min-width: 769px) {
    .projects-columns {
        grid-template-columns: repeat(2, 1fr);
    }
    .projects-columns .projects-column:last-child {
        grid-column: 1 / -1;
        max-width: 50%;
        justify-self: center;
    }
}

/* Medium screens / short viewports */
@media (max-width: 900px), (max-height: 700px) {
    .navStack {
        --nav-pad: clamp(16px, 3vw, 40px);
        height: 65vh;
    }
}

@media (max-width: 768px) {
    /* About page hero top */
    .about-hero-top {
        flex-direction: column;
        align-items: center;
        gap: clamp(12px, 2vh, 24px);
    }

    .about-section-a .about-intro-image {
        width: 100%;
        max-width: 280px;
    }

    .about-headline-statement {
        font-size: clamp(1.3rem, 4vw, 1.8rem);
    }

    .about-section-b-anchor {
        font-size: clamp(1.4rem, 3.5vw, 2rem);
    }

    /* About page intro row (legacy) */
    .about-intro-row {
        flex-direction: column;
    }

    .about-intro-image {
        width: 100%;
        max-width: 340px;
    }

    /* About page music section */
    .about-music-section {
        flex-direction: column;
    }

    .about-music-embed {
        flex: none;
        width: 100%;
    }

    /* Snap sections on mobile: allow natural height */
    .about-snap-section {
        min-height: 100vh;
    }

    /* Home Landing */
    .navStack {
        --nav-pad: clamp(12px, 2.5vw, 32px);
        height: 60vh;
    }

    .hollowHover:hover {
        font-family: "Cascadia Mono", monospace;
    }

    /* Navigation */
    .site-nav {
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }

    .nav-link {
        font-size: 0.55rem;
        padding: 8px 16px;
    }

    /* Art Gallery Diamond */
    .diamond-gallery {
        padding: 50px 20px;
    }

    .diamond-tile {
        width: 200px;
        height: 200px;
        margin: 15px;
    }

    .diamond-tile img {
        max-height: 140px;
    }

    .diamond-caption {
        font-size: 0.65rem;
    }

    /* Content Page Collage */
    .content-page {
        padding: 40px 0 40px 0;
    }

    .collage-video-grid {
        grid-template-columns: 1fr;
    }

    .collage-video-title {
        font-size: 1.2rem;
        padding: 12px;
    }

    /* Resume Page */
    .resume-page {
        padding-top: 40px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .resume-container {
        padding: 16px;
    }

    .resume-pdf {
        height: 60vh;
        min-height: 400px;
    }

    /* Projects Page */
    .projects-columns {
        grid-template-columns: 1fr;
    }

    .projects-snap-inner {
        padding-top: clamp(70px, 10vh, 100px);
    }

    .projects-mockup-video {
        max-width: 100%;
    }

    /* About section B bottom: full width on mobile */
    .about-section-b-bottom .about-bio {
        max-width: 100%;
        text-align: left;
    }

    /* About links row: wrap into ~2 rows on mobile */
    .about-links-row {
        gap: 10px 14px;
        padding-bottom: clamp(24px, 4vh, 40px);
        justify-content: center;
    }

    .about-links-row a {
        font-size: clamp(0.72rem, 2.2vw, 0.88rem);
        padding: 8px 14px;
        flex: 0 1 auto;
    }

    /* Bottom images: horizontal swipe carousel */
    .about-bottom-images {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0;
    }

    .about-bottom-images::-webkit-scrollbar {
        display: none;
    }

    .about-bottom-slide {
        flex: 0 0 85%;
        scroll-snap-align: center;
        padding: 0 8px;
        box-sizing: border-box;
    }

}

@media (max-width: 480px) {
    .about-headline-statement {
        font-size: clamp(1.1rem, 4vw, 1.5rem);
    }

    .about-section-b-anchor {
        font-size: clamp(1.2rem, 3vw, 1.6rem);
    }

    .about-section-a .about-intro-image {
        max-width: 220px;
    }

    .navStack {
        --nav-pad: clamp(8px, 2vw, 24px);
        --stair-step: 8vw;
        height: 55vh;
    }

    .hollowHover:hover {
        font-family: "Cascadia Mono", monospace;
    }

    :root {
        --hero-title-size: clamp(2rem, 8vw, 3rem);
        --hero-statement-size: clamp(1.4rem, 6.5vw, 2.6rem);
        --hero-statement-max: calc(100vw - 1rem);
    }

    .home-hero {
        height: 100vh;
    }

    .hoverImage {
        width: min(50vw, 200px);
    }

    .saherCenteredImage {
        max-width: 70vw;
        height: 40vh;
        top: calc(var(--hero-pad-y) + 3.5rem);
    }

    .nav-link {
        font-size: 0.5rem;
        padding: 6px 12px;
    }

    .diamond-tile {
        width: 150px;
        height: 150px;
        margin: 10px;
    }

    .diamond-tile img {
        max-height: 100px;
    }

    .collage-video-grid {
        grid-template-columns: 1fr;
    }

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

    .projects-section-title {
        font-size: clamp(1.4rem, 6vw, 2rem);
    }
}
