:root {
    --hg-50: #F3F9F4;
    --hg-100: #E4F1E6;
    --hg-200: #CBE1CE;
    --hg-300: #A6C9AB;
    --hg-400: #79AF81;
    --hg-500: #528E5B;
    --hg-600: #355E3B;
    --hg-700: #27492C;
    --hg-800: #1A351E;
    --hg-900: #112414;
    --hg-950: #0A170C;
    --hunter-green: var(--hg-600);
    --hunter-green-dark: var(--hg-800);
    --hunter-green-light: var(--hg-100);
    --text-main: var(--hg-950);
    --text-light: var(--hg-700);
    --bg-color: var(--hg-100);
    --white: var(--hg-50);
    --ease-out-expo: cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* --- GLASS PILL NAV --- */
.glass-pill-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    background: rgba(243, 249, 244, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(243, 249, 244, 0.4);
    border-radius: 50px;
    display: flex;
    gap: 1rem;
    padding: 0.5rem 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.glass-pill-nav a {
    position: relative;
    z-index: 1;
    color: var(--hunter-green-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    border-radius: 30px;
    transition: background 0.3s, color 0.3s;
}

.glass-pill-nav a:hover {
    background: rgba(0, 0, 0, 0.06);
}

.glass-pill-nav a.active {
    color: var(--white);
}

/* Sliding spring indicator behind the active nav link */
.nav-indicator {
    position: absolute;
    top: 0.5rem;
    left: 0;
    height: calc(100% - 1rem);
    width: 0;
    background: #000000;
    border-radius: 30px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    transition: transform 0.5s cubic-bezier(0.34, 1.4, 0.64, 1),
                width 0.5s cubic-bezier(0.34, 1.4, 0.64, 1),
                opacity 0.3s ease;
    pointer-events: none;
}

/* --- NOISE TEXTURE OVERLAY --- */
.noise-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* --- SKIP LINK --- */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 10001;
    background: var(--hunter-green-dark);
    color: var(--white);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: top 0.2s var(--ease-out-expo);
}

.skip-link:focus { top: 1rem; }

a:focus-visible,
button:focus-visible,
.fan-card:focus-visible,
.social-btn:focus-visible,
.glass-pill-nav a:focus-visible {
    outline: 2px solid var(--hunter-green);
    outline-offset: 3px;
    border-radius: 4px;
}

/* --- BACKGROUND --- */
body {
    background: linear-gradient(-45deg, var(--hg-100), var(--hg-200), var(--hg-100), var(--hg-200));
    background-size: 400% 400%;
    animation: bodyGradientBreathe 15s ease infinite;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

body.anim-paused, body.anim-paused .hero { animation-play-state: paused !important; }

@keyframes bodyGradientBreathe {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(45deg, var(--hunter-green-dark), var(--hg-900), var(--hunter-green), var(--hg-800));
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: var(--white);
    text-align: center;
    overflow: hidden;
    padding: 2rem;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-img-container {
    width: clamp(280px, 45vmin, 500px);
    height: clamp(280px, 45vmin, 500px);
    border-radius: 50%; overflow: hidden;
    border: 4px solid rgba(243, 249, 244, 0.1);
    margin-bottom: 2rem; z-index: 5;
    opacity: 0; transform: translateY(30px);
    animation: heroFadeUp 1s var(--ease-out-expo) forwards 0.2s;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.hero-img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.hero h1 {
    font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
    font-size: clamp(2.75rem, 7vw, 4.75rem);
    font-weight: 600; line-height: 1.02; letter-spacing: -0.02em;
    z-index: 5; opacity: 0;
    transform: translateY(30px);
    
    background: linear-gradient(to right, var(--hg-50) 20%, var(--hg-200) 50%, var(--hg-50) 80%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: heroFadeUp 1s var(--ease-out-expo) forwards 0.4s, textShine 4s linear infinite 1.4s;
}

@keyframes textShine {
    to { background-position: 200% center; }
}

.hero h3 {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 300; color: var(--hunter-green-light);
    margin-top: 1rem; z-index: 5; min-height: 2.4rem;
}

.typewriter-cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--hunter-green-light);
    margin-left: 4px;
    animation: blink 1s step-end infinite;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

@keyframes heroFadeUp { to { opacity: 1; transform: translateY(0); } }

/* --- HERO AMBIENT GLOW --- */
/* The glow is the portrait-synth's exhaust: each tapped note blooms it and
   glides its hue with the pitch (registered @property so the hue animates). */
@property --note-hue {
    syntax: '<number>';
    inherits: true;
    initial-value: 140;
}
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    -webkit-filter: blur(80px);
    pointer-events: none;
    z-index: 1;
}
.hero { transition: --note-hue 0.9s ease; }
.glow-a {
    width: 44vmax; height: 44vmax;
    left: -14vmax; top: -16vmax;
    background: radial-gradient(circle, hsl(var(--note-hue, 140) 45% 52% / 0.5) 0%, transparent 70%);
    animation: glowDriftA 26s ease-in-out infinite alternate;
}
.glow-b {
    width: 38vmax; height: 38vmax;
    right: -12vmax; bottom: -14vmax;
    background: radial-gradient(circle, hsl(calc(var(--note-hue, 140) + 26) 42% 36% / 0.55) 0%, transparent 70%);
    animation: glowDriftB 32s ease-in-out infinite alternate;
}
@keyframes glowDriftA { to { transform: translate(7vmax, 5vmax) scale(1.1); } }
@keyframes glowDriftB { to { transform: translate(-6vmax, -5vmax) scale(1.12); } }
/* Strike bloom: a fresh burst behind the portrait on every tapped note.
   Big, bright and slow enough to actually see. */
.glow-hit {
    width: 46vmax; height: 46vmax;
    left: 50%; top: 34%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, hsl(var(--note-hue, 140) 80% 60% / 0.85) 0%, hsl(var(--note-hue, 140) 70% 50% / 0.35) 45%, transparent 70%);
    opacity: 0;
}
.hero.glow-struck .glow-hit { animation: glowStrike 1.3s ease-out; }
@keyframes glowStrike {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.45); }
    16% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(2.4); }
}

/* --- UNIFIED SECTION HEADERS --- */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 2rem;
}

.section-header h2 {
    font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
    font-size: 2.75rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--hunter-green-dark);
}

.gradient-text {
    background: linear-gradient(135deg, var(--hunter-green-dark), var(--hg-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* --- SECTION 2: ABOUT ME & SOCIALS --- */
.content-section { padding: 6rem 2rem; max-width: 1200px; margin: 0 auto; }
.container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.card {
    background-color: rgba(243, 249, 244, 0.75);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(243, 249, 244, 0.6);
    border-radius: 24px; padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    display: flex; flex-direction: column;
    transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}

.card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(53, 94, 59, 0.12); }

.reveal-up { opacity: 0; transform: translateY(60px); transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo); }
.reveal-up.visible { opacity: 1; transform: translateY(0); }

.card-header { display: flex; align-items: center; margin-bottom: 1.5rem; color: var(--hunter-green); }
.card-header i { font-size: 1.8rem; margin-right: 1rem; }
.card-header h2 { font-size: 1.5rem; font-weight: 600; }
p { color: var(--text-light); }
strong { color: var(--text-main); }

.bio-card {
    grid-column: span 2;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--hunter-green-dark);
    border: 1px solid rgba(243, 249, 244,0.15);
    color: var(--white);
    justify-content: center;
}

.bio-card::before,
.bio-card::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.bio-card::before {
    z-index: 0;
    background-image: url("about-me.jpg");
    background-size: cover;
    background-position: center 48%;
    opacity: 0.62;
}

.bio-card::after {
    z-index: 1;
    background: linear-gradient(90deg, rgba(10, 23, 12, 0.72), rgba(10, 23, 12, 0.4));
}

.bio-card .bio-text-content,
.bio-card > div:last-child {
    position: relative;
    z-index: 2;
}

.bio-text-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(243, 249, 244,0.9);
    column-count: 2;
    column-gap: 2.5rem;
    text-align: justify;
}

.bio-card strong, .bio-card a { color: rgba(243, 249, 244,0.9); }
.bio-card a { text-decoration: underline; text-decoration-color: rgba(243, 249, 244,0.4); text-underline-offset: 4px; transition: color 0.2s; }
.bio-card a:hover { color: var(--white); text-decoration-color: var(--white); }
.bio-card .card-header { color: var(--white); }

.socials-card {
    grid-column: span 1; display: flex; justify-content: center;
    align-items: center; background-color: rgba(228, 241, 230, 0.75); padding: 2rem;
}

.social-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; width: 100%; }

.social-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 1.5rem 0.5rem; background-color: rgba(243, 249, 244, 0.6);
    backdrop-filter: blur(10px); border: 1px solid rgba(243, 249, 244, 0.5);
    border-radius: 16px; color: var(--hunter-green); text-decoration: none;
    transition: all 0.3s var(--ease-out-expo); font-weight: 600; font-size: 0.9rem;
    text-align: center; position: relative; overflow: hidden; z-index: 1; height: 100px;
}

.social-btn i, .social-btn svg {
    font-size: 2rem; width: 32px; height: 32px;
    margin-bottom: 0.5rem; transition: transform 0.3s var(--ease-out-expo); fill: currentColor;
}

.social-btn::before {
    content: ''; position: absolute; top: 100%; left: 0; width: 100%; height: 100%;
    background: var(--hunter-green); transition: top 0.3s var(--ease-out-expo); z-index: -1;
}

.social-btn:hover::before { top: 0; }
.social-btn:hover { color: var(--white); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.social-btn:hover i, .social-btn:hover svg { transform: scale(1.1); }

.hover-text { display: none; font-size: 0.75rem; word-break: break-word; line-height: 1.3; }

/* Staggered entrance for social buttons when the card scrolls into view */
.socials-card.visible .social-btn { animation: btnIn 0.55s var(--ease-out-expo) backwards; }
.socials-card.visible .social-btn:nth-child(2) { animation-delay: 0.06s; }
.socials-card.visible .social-btn:nth-child(3) { animation-delay: 0.12s; }
.socials-card.visible .social-btn:nth-child(4) { animation-delay: 0.18s; }
.socials-card.visible .social-btn:nth-child(5) { animation-delay: 0.24s; }
.socials-card.visible .social-btn:nth-child(6) { animation-delay: 0.3s; }
.socials-card.visible .social-btn:nth-child(7) { animation-delay: 0.36s; }
.socials-card.visible .social-btn:nth-child(8) { animation-delay: 0.42s; }
@keyframes btnIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.social-btn:hover .default-text { display: none; }
.social-btn:hover .hover-text { display: block; }

.badge {
    display: inline-block; padding: 0.4rem 1rem;
    background-color: rgba(243, 249, 244,0.2); color: var(--white);
    border-radius: 30px; font-size: 0.85rem; font-weight: 600;
    margin: 1rem 0.5rem 0 0; backdrop-filter: blur(5px);
}

.email-badge { text-decoration: none !important; transition: background-color 0.3s ease; }
.email-badge:hover { background-color: rgba(243, 249, 244,0.3) !important; }

/* --- SECTION 3: HORIZONTAL SCROLL --- */
.horizontal-scroll-wrapper {
    position: relative;
    padding: 3.5rem 0;
    overflow: hidden;
    scroll-margin-top: 5rem;
}

.horizontal-scroll-wrapper .section-header { margin-bottom: 1.5rem; }

.sticky-container {
    position: relative;
    width: 100%;
    overflow: visible;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.horizontal-track {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: none;
    -webkit-overflow-scrolling: touch;
    padding: 0.75rem 4rem 1rem;
    scrollbar-width: none !important;
    scrollbar-color: transparent transparent;
    -ms-overflow-style: none;
    transform: none !important;
}

.horizontal-track::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.h-card {
    width: 340px;
    min-height: 340px;
    height: auto;
    flex-shrink: 0; justify-content: flex-start;
    background-color: rgba(243, 249, 244, 0.75);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(243, 249, 244, 0.6);
    padding: 1.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    display: flex; flex-direction: column;
    scroll-snap-align: start;
    opacity: 1 !important;
    transform: translateY(0);
    transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}

.h-card.shape-soft { border-radius: 40px; margin-bottom: 32px; }
.h-card.shape-arch { border-radius: 92px 92px 36px 36px; padding-top: 2.75rem; margin-top: 32px; }
.work-card { width: 370px; min-height: 390px; }
.work-card .work-summary { margin-top: 0.65rem; }
.ultimate-card { width: 320px; min-height: 300px; }
.investing-card { width: 360px; }
.h-card.tech-card { width: 350px; border-radius: 32px; }
.h-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(53, 94, 59, 0.12); }
.h-card i.main-icon, .h-card svg.main-icon { transition: transform 0.3s var(--ease-out-expo); }
.h-card:hover i.main-icon, .h-card:hover svg.main-icon { transform: translateY(-4px); }
.h-card .card-header { margin-bottom: 0.8rem; }
.h-card i.main-icon { font-size: 2.5rem; color: var(--hunter-green); margin-bottom: 0.9rem; }
.h-card svg.main-icon { width: 2.5rem; height: 2.5rem; fill: currentColor; color: var(--hunter-green); margin-bottom: 0.9rem; }
.h-card a { color: var(--hunter-green); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; transition: opacity 0.2s; }
.h-card a:hover { opacity: 0.7; }
.lemonade-logo { height: 1.2em; vertical-align: middle; margin-left: 4px; }

.mini-card-stack {
    width: 300px;
    height: 360px;
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    scroll-snap-align: start;
}

.mini-card-stack .mini-h-card {
    width: 100%;
    height: calc(50% - 0.5rem);
    min-height: 0;
    margin: 0;
    border-radius: 32px;
    padding: 1.25rem;
    overflow: hidden;
}

.mini-card-stack .mini-h-card:nth-child(n) {
    margin: 0;
    padding-top: 1.25rem;
}

.mini-h-card .main-icon {
    font-size: 1.45rem !important;
    width: 1.45rem !important;
    height: 1.45rem !important;
    margin-bottom: 0.6rem !important;
}

.mini-h-card .card-header {
    margin-bottom: 0.6rem;
}

.mini-h-card .card-header h2 {
    font-size: 1rem;
}

.mini-h-card p {
    font-size: 0.85rem;
    line-height: 1.45;
}

/* --- SECTION 4: MY BOARD OF DIRECTORS --- */
.board-section { padding: 8rem 2rem; max-width: 1400px; margin: 0 auto; overflow: hidden; }

.fan-container { display: flex; justify-content: center; align-items: center; height: 450px; }

.fan-card {
    width: 220px; height: 340px; border-radius: 16px;
    background-color: var(--hunter-green-dark); color: var(--white);
    position: relative; transition: transform 0.4s var(--ease-out-expo), z-index 0s, box-shadow 0.4s;
    box-shadow: -15px 0 30px rgba(0, 0, 0, 0.15); margin-left: -120px;
    overflow: hidden; border: 1px solid rgba(243, 249, 244,0.1);
}

.fan-card:first-child { margin-left: 0; }

.fan-card:nth-child(1) { --neon: rgba(50, 205, 50, 0.6); transform: rotate(-22.5deg) translateY(65px); z-index: 1; }
.fan-card:nth-child(2) { --neon: rgba(30, 144, 255, 0.6); transform: rotate(-17.5deg) translateY(45px); z-index: 2; }
.fan-card:nth-child(3) { --neon: rgba(255, 69, 0, 0.6); transform: rotate(-12.5deg) translateY(25px); z-index: 3; }
.fan-card:nth-child(4) { --neon: rgba(255, 215, 0, 0.6); transform: rotate(-7.5deg) translateY(10px); z-index: 4; }
.fan-card:nth-child(5) { --neon: rgba(138, 43, 226, 0.6); transform: rotate(-2.5deg) translateY(2px); z-index: 5; }
.fan-card:nth-child(6) { --neon: rgba(255, 99, 71, 0.6); transform: rotate(2.5deg) translateY(2px); z-index: 6; }
.fan-card:nth-child(7) { --neon: rgba(0, 250, 154, 0.6); transform: rotate(7.5deg) translateY(10px); z-index: 7; }
.fan-card:nth-child(8) { --neon: rgba(255, 20, 147, 0.6); transform: rotate(12.5deg) translateY(25px); z-index: 8; }
.fan-card:nth-child(9) { --neon: rgba(0, 191, 255, 0.6); transform: rotate(17.5deg) translateY(45px); z-index: 9; }
.fan-card:nth-child(10) { --neon: rgba(0, 255, 255, 0.6); transform: rotate(22.5deg) translateY(65px); z-index: 10; }

.fan-card img {
    width: 100%; height: 100%; object-fit: cover;
    opacity: 0.6; filter: grayscale(80%);
    transition: opacity 0.4s, filter 0.4s;
}

.fan-card:focus, .fan-card:active, .fan-card.selected {
    transform: translateY(-50px) rotate(0deg) scale(1.08) !important;
    z-index: 20 !important;
    box-shadow: 0 0 40px var(--neon), 0 20px 40px rgba(0, 0, 0, 0.4);
}

.fan-card:focus img, .fan-card:active img, .fan-card.selected img { opacity: 1; filter: grayscale(0%); }

@media (hover: hover) {
    .fan-card:hover {
        transform: translateY(-50px) rotate(0deg) scale(1.08) !important;
        z-index: 20 !important;
        box-shadow: 0 0 40px var(--neon), 0 20px 40px rgba(0, 0, 0, 0.4);
    }
    .fan-card:hover img { opacity: 1; filter: grayscale(0%); }
    .fan-card:hover .fan-info { transform: translateY(0); }
}

.fan-info {
    position: absolute; bottom: 0; left: 0; width: 100%;
    padding: 2rem 1rem 1.5rem 1rem;
    background: linear-gradient(to top, rgba(26, 53, 30,1) 0%, rgba(26, 53, 30,0.8) 50%, transparent 100%);
    transform: translateY(100%); transition: transform 0.4s var(--ease-out-expo); text-align: center;
}

.fan-card:focus .fan-info, .fan-card:active .fan-info, .fan-card.selected .fan-info { transform: translateY(0); }

/* --- Fan card 3D tilt + glare (Tilt pattern, hand-ported) ---
   JS wraps each card's contents in .fan-tilt and drives rotateX/rotateY
   on it (the outer card keeps its fan-layout transform). Glare sweeps
   with the pointer. Hover-capable pointers only. */
.fan-card { perspective: 900px; }
.fan-tilt {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform;
}
.fan-glare {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(243, 249, 244, 0.25), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.fan-card.is-hot .fan-glare { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
    .fan-card.is-hot .fan-glare { opacity: 0; }
}
.fan-info h4 { margin: 0; font-size: 1.2rem; font-weight: 800; }
.fan-info p { margin: 0 0 0.2rem 0; font-size: 0.75rem; color: var(--hunter-green-light); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }

/* --- SCROLL PROGRESS PILL --- */
.scroll-progress {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 9000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}
.sp-pill {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(243, 249, 244, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(243, 249, 244, 0.55);
    border-radius: 999px;
    padding: 0.4rem 0.95rem 0.4rem 0.4rem;
    box-shadow: 0 10px 28px rgba(26, 53, 30, 0.14);
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.25s var(--ease-out-expo), box-shadow 0.25s var(--ease-out-expo);
}
.sp-pill:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(26, 53, 30, 0.18); }
.sp-pill:active { transform: scale(0.97); }
.sp-pill svg { width: 32px; height: 32px; transform: rotate(-90deg); display: block; }
.sp-track { fill: none; stroke: rgba(53, 94, 59, 0.15); stroke-width: 4; }
.sp-ring {
    fill: none; stroke: var(--hunter-green); stroke-width: 4; stroke-linecap: round;
    stroke-dasharray: 113.1; stroke-dashoffset: 113.1;
}
.sp-label {
    font-size: 0.78rem; font-weight: 600; color: var(--hunter-green-dark);
    min-width: 70px; text-align: left; white-space: nowrap;
    transition: opacity 0.12s ease;
}
.sp-menu {
    display: flex; flex-direction: column; gap: 0.15rem;
    background: rgba(243, 249, 244, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(243, 249, 244, 0.55);
    border-radius: 18px;
    padding: 0.5rem;
    box-shadow: 0 16px 40px rgba(26, 53, 30, 0.16);
    opacity: 0; visibility: hidden;
    transform: translateY(8px) scale(0.97);
    transform-origin: bottom right;
    transition: opacity 0.22s var(--ease-out-expo), transform 0.22s var(--ease-out-expo), visibility 0s 0.25s;
}
.sp-menu.open {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity 0.22s var(--ease-out-expo), transform 0.22s var(--ease-out-expo), visibility 0s 0s;
}
.sp-menu a {
    color: var(--hunter-green-dark); text-decoration: none;
    font-weight: 600; font-size: 0.85rem;
    padding: 0.55rem 1rem; border-radius: 12px; white-space: nowrap;
    transition: background 0.2s;
}
.sp-menu a:hover { background: rgba(53, 94, 59, 0.1); }
@media (max-width: 600px) {
    .scroll-progress { right: 0.9rem; bottom: 0.9rem; }
    .sp-label { display: none; }
}

/* --- FOOTER --- */
.site-footer {
    background-color: var(--hunter-green-dark); color: var(--hunter-green-light);
    text-align: center; padding: 2rem 1.5rem 3rem 1.5rem; font-size: 0.9rem;
    border-top: 1px solid rgba(243, 249, 244,0.05); position: relative;
}

.site-footer p { color: rgba(228, 241, 230, 0.7); margin: 0; }

/* --- REDUCED MOTION EXCEPTION --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    html { scroll-behavior: auto; }
    .hero-glow { display: none !important; }
    .reveal-up { opacity: 1; transform: none; }
    .typewriter-cursor { display: none; }
}

/* --- MOBILE OVERRIDES --- */
@media (max-width: 1024px) {
    .container { grid-template-columns: 1fr; }
    .bio-card, .socials-card { grid-column: span 1; }
    .bio-text-content p { column-count: 1; text-align: left; }
    .social-grid { grid-template-columns: repeat(2, 1fr); }
    .section-header { padding: 0 1rem; }
    
    .h-card {
        width: 78vw; max-width: 300px; height: auto; min-height: 360px; padding: 1.5rem;
    }
    .h-card.shape-soft, .h-card.shape-arch {
        border-radius: 32px; padding-top: 1.5rem; margin: 0;
    }
    .work-card { min-height: 380px; }
    .ultimate-card { min-height: 300px; }
    .h-card.tech-card { border-radius: 24px; }
    .h-card i.main-icon { font-size: 2rem; margin-bottom: 1rem; }
    .h-card svg.main-icon { width: 2rem; height: 2rem; margin-bottom: 1rem; }
    .h-card .card-header { margin-bottom: 1rem; }
    .h-card .card-header h2 { font-size: 1.3rem; }
    .h-card p { font-size: 0.95rem; }
    .horizontal-scroll-wrapper { padding: 2.5rem 0; }
    .horizontal-scroll-wrapper .section-header { margin-bottom: 1rem; }
    .horizontal-track { padding: 0.5rem 2rem 1rem; scroll-snap-type: none; }
    .mini-card-stack {
        width: 78vw;
        max-width: 300px;
        height: 360px;
        flex-basis: 78vw;
    }
    .mini-card-stack .mini-h-card {
        min-height: 0;
        padding: 1rem;
    }
    .mini-h-card .main-icon { margin-bottom: 0.4rem !important; }
    .mini-h-card .card-header { margin-bottom: 0.35rem; }
    .mini-h-card .card-header h2 { font-size: 0.95rem; }
    .mini-h-card p { font-size: 0.78rem; line-height: 1.35; }

    .board-section { padding: 4rem 0; }
    .section-header h2 { font-size: 1.8rem; white-space: nowrap; letter-spacing: -0.5px; }

    .fan-container {
        height: 280px; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch; padding: 3rem 2rem 1rem 2rem; -ms-overflow-style: none;
        scrollbar-width: none;
        mask-image: linear-gradient(to right, transparent 0, black 24px, black calc(100% - 24px), transparent 100%);
        -webkit-mask-image: linear-gradient(to right, transparent 0, black 24px, black calc(100% - 24px), transparent 100%);
    }
    .fan-container::-webkit-scrollbar { display: none; }

    .fan-card { width: 160px; height: 240px; margin-left: -60px; border-radius: 12px; flex-shrink: 0; scroll-snap-align: center; }
    .fan-card:first-child { margin-left: 0; }
    .fan-card:last-child { margin-right: 2rem; }
    .fan-card:nth-child(n) { transform: none; }
    
    .fan-card:nth-child(1) { z-index: 1; }
    .fan-card:nth-child(2) { z-index: 2; }
    .fan-card:nth-child(3) { z-index: 3; }
    .fan-card:nth-child(4) { z-index: 4; }
    .fan-card:nth-child(5) { z-index: 5; }
    .fan-card:nth-child(6) { z-index: 6; }
    .fan-card:nth-child(7) { z-index: 7; }
    .fan-card:nth-child(8) { z-index: 8; }
    .fan-card:nth-child(9) { z-index: 9; }
    .fan-card:nth-child(10) { z-index: 10; }

    .fan-info { padding: 1rem 0.8rem; }
    .fan-info h4 { font-size: 1rem; }
    .fan-info p { font-size: 0.7rem; margin-bottom: 0.2rem; }

    .fan-card:focus, .fan-card:active, .fan-card.selected {
        transform: translateY(-30px) scale(1.05) !important;
    }
    @media (hover: hover) {
        .fan-card:hover {
            transform: translateY(-30px) scale(1.05) !important;
        }
    }
}

@media (max-width: 600px) {
    .hero h1 { font-size: 3rem; }
    .fan-card { width: 140px; height: 210px; margin-left: -50px; }
    .fan-info h4 { font-size: 0.9rem; }
    
    /* Shrink the pill nav slightly for small phones */
    .glass-pill-nav { width: 90%; justify-content: space-around; padding: 0.5rem; }
    .glass-pill-nav a { font-size: 0.75rem; padding: 0.4rem; }
}

/* ================= ROUND 2: MANIFESTO / WORD SEARCH / FOOTER ================= */

/* --- Microcaptions --- */
.microcaption {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.7rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--hunter-green);
    opacity: 0.8;
    margin: 0 0 0.8rem;
}
.section-header .microcaption { text-align: center; }
.hero-microcaption {
    margin-top: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 1s var(--ease-out-expo) forwards 1.2s;
}

/* --- Manifesto --- */
.manifesto {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 1.5rem 0;
}
/* The pause, made visible: slow-drifting contour lines fill the breathing
   room between the finished manifesto and the bio. The band's height IS the
   pause — 44vh of drift on desktop, more on mobile. */
.manifesto-drift {
    height: 44vh;
    min-height: 260px;
    width: 100%;
    position: relative;
    overflow: hidden;
    margin-top: 2.5rem;
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 18%, black 82%, transparent);
    mask-image: linear-gradient(to bottom, transparent, black 18%, black 82%, transparent);
}
.manifesto-drift canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    /* vertical page scroll still works; horizontal drags make ripples */
    touch-action: pan-y;
    cursor: crosshair;
}
/* WebGL ink-wash sits behind the 2D pond; the pond keeps its ripples. */
#pondShader { z-index: 0; }
#pondCanvas { z-index: 1; }

/* --- Shader section dividers ---
   Thin WebGL grain bands between sections; grain shimmers with scroll
   velocity (uVel). Pure texture — aria-hidden, no interaction. */
.shader-divider {
    height: 84px;
    position: relative;
    overflow: hidden;
    /* matches the grain base color — no dark flash before the first frame */
    background: var(--hg-50);
}
.shader-divider canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}
.manifesto-kicker { margin-bottom: 1.6rem; }
.manifesto-text {
    margin: 0;
    max-width: 15ch;
    font-size: clamp(2.9rem, 8.5vw, 5.8rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.015em;
    color: var(--hunter-green-dark);
}
.manifesto-word {
    text-transform: uppercase;
    display: inline-block;
}
.manifesto-word.accent {
    font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: var(--hunter-green);
}
/* Words start invisible when JS word-reveal is active (no-JS keeps full text);
   they blur-and-rise in with a stagger once the manifesto enters the viewport. */
.manifesto.js-words .manifesto-word {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(0.35em);
    will-change: opacity, transform, filter;
}
.manifesto.js-words.words-in .manifesto-word {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                filter 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(var(--wi, 0) * 60ms);
}

/* --- Bio TL;DR toggle --- */
.bio-toggle {
    display: inline-flex;
    gap: 0.2rem;
    background: rgba(53, 94, 59, 0.07);
    border: 1px solid rgba(53, 94, 59, 0.22);
    border-radius: 999px;
    padding: 0.22rem;
    margin-bottom: 1.4rem;
}
.bio-toggle-btn {
    appearance: none;
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--hunter-green-dark);
    padding: 0.45rem 1.15rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.25s var(--ease-out-expo), color 0.25s, transform 0.12s ease;
}
.bio-toggle-btn.active { background: var(--hunter-green-dark); color: var(--hg-50); }
.bio-toggle-btn:not(.active):hover { background: rgba(53, 94, 59, 0.12); }
.bio-toggle-btn:active { transform: scale(0.96); }
.bio-text-content { transition: opacity 0.18s ease; }
/* --- Bio keyword scroll highlight --- */
.bio-text-content p .bio-word {
    border-radius: 0.32em;
    padding: 0 0.07em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    transition: background-color 0.45s ease, color 0.45s ease, box-shadow 0.45s ease;
}
.bio-text-content p .bio-word.key.lit {
    background: var(--hl, #ffe14d);
    color: var(--hg-900);
    font-weight: 700;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}
@media (prefers-reduced-motion: reduce) {
    .bio-text-content p .bio-word { transition: none; }
}
.bio-text-content.fading { opacity: 0; }

/* --- Word search --- */
.wordsearch-card { text-align: center; }
.ws-title {
    font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    font-size: 2rem;
    color: var(--hunter-green-dark);
    margin: 0 0 0.5rem;
}
.ws-hint {
    color: var(--hunter-green-dark);
    opacity: 0.75;
    margin: 0 auto 1rem;
    max-width: 44ch;
}
.ws-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 3px;
    max-width: 600px;
    margin: 1.25rem auto;
    padding: 10px;
    background: var(--white);
    border: 2px solid var(--hunter-green-dark);
    border-radius: 18px;
    box-shadow: 4px 4px 0 var(--hunter-green-dark);
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}
.ws-cell {
    appearance: none;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: rgba(53, 94, 59, 0.06);
    color: var(--hunter-green-dark);
    font-family: inherit;
    font-size: clamp(0.65rem, 2.4vw, 0.95rem);
    font-weight: 700;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease, transform 0.12s ease;
}
.ws-cell.sel { background: var(--hunter-green); color: var(--hg-50); transform: scale(1.12); }
.ws-cell.found { background: var(--hunter-green-dark); color: var(--hg-50); cursor: default; }
.ws-words {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
}
.ws-words li {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    border: 2px solid var(--hunter-green-dark);
    border-radius: 999px;
    padding: 0.28rem 0.8rem;
    color: var(--hunter-green-dark);
    background: var(--white);
    transition: background 0.25s ease, color 0.25s ease;
}
.ws-words li.done {
    background: var(--hunter-green);
    border-color: var(--hunter-green);
    color: var(--hg-50);
    text-decoration: line-through;
}
.ws-status {
    font-weight: 700;
    color: var(--hunter-green-dark);
    opacity: 0.7;
    margin: 1rem 0 0;
}
.ws-status.done { opacity: 1; color: var(--hunter-green); }

/* --- Footer: the important questions + manifesto --- */
.foot-questions {
    max-width: 620px;
    margin: 0 auto 3.5rem;
    padding: 0 1.25rem;
    text-align: center;
}
.foot-q-kicker { opacity: 0.7; margin-bottom: 1.2rem; }
.foot-q-card {
    border: 1px solid rgba(243, 249, 244, 0.14);
    border-radius: 24px;
    background: rgba(243, 249, 244, 0.04);
    padding: 2rem 1.75rem;
}
.foot-q-text {
    margin: 0;
    font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-size: clamp(1.35rem, 4.5vw, 1.8rem);
    line-height: 1.35;
    color: var(--white);
}
.foot-q-opts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    margin-top: 1.5rem;
}
.foot-q-opt {
    appearance: none;
    border: 1px solid rgba(243, 249, 244, 0.35);
    background: transparent;
    color: var(--white);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-radius: 999px;
    padding: 0.55rem 1.2rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.12s ease, border-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.foot-q-opt:hover:not(:disabled) { background: rgba(243, 249, 244, 0.12); }
.foot-q-opt:active:not(:disabled) { transform: scale(0.96); }
.foot-q-opt:disabled { cursor: default; opacity: 0.55; }
.foot-q-opt.chosen {
    background: var(--hg-100);
    border-color: var(--hg-100);
    color: var(--hg-800);
    opacity: 1;
}
.foot-q-opt:focus-visible {
    outline: 2px solid var(--hg-300);
    outline-offset: 2px;
}
.foot-q-verdict {
    margin: 1.25rem 0 0;
    min-height: 1.6em;
    font-style: italic;
    color: var(--hg-300);
    font-size: 1.02rem;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.foot-q-verdict.show { opacity: 1; transform: none; }
.foot-manifesto {
    margin: 0 0 2.5rem;
    font-size: clamp(3rem, 11vw, 7.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--white);
    line-height: 1;
}
.foot-manifesto em {
    font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: var(--hg-300);
}

/* --- Round-2 responsive + reduced motion --- */
@media (max-width: 600px) {
    .manifesto-text { max-width: 12ch; }
    .ws-grid { gap: 2px; padding: 8px; border-radius: 14px; }
    .foot-manifesto { margin-bottom: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-microcaption { animation: none; opacity: 1; transform: none; }
    .bio-text-content { transition: none; }
}

/* ================= ROUND 3: MOBILE + TOUCH POLISH ================= */

/* Word-search card: full-width row on desktop, centered column */
.wordsearch-card { grid-column: 1 / -1; justify-self: center; width: 100%; max-width: 720px; }

/* Touch extras: no callout loupe or tap flash while dragging the grid */
.ws-grid {
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* Bio toggle lives on a dark card - light treatment so it is actually visible */
.bio-toggle {
    background: rgba(243, 249, 244, 0.08);
    border: 1px solid rgba(243, 249, 244, 0.28);
}
.bio-toggle button { color: rgba(243, 249, 244, 0.72); }
.bio-toggle button:hover { color: var(--hg-50); }
.bio-toggle button[aria-pressed="true"] {
    background: var(--hg-50);
    color: var(--hunter-green-dark);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.bio-toggle:focus-visible { outline: 2px solid var(--hg-50); outline-offset: 3px; }

@media (max-width: 600px) {
    .manifesto { padding: 14vh 1.25rem 0; }
    .manifesto-drift { height: 72vh; min-height: 0; }
    .bio-toggle { display: flex; width: 100%; }
    .bio-toggle button { flex: 1; padding: 0.7rem 0.5rem; }
    .foot-signoff { font-size: clamp(2.4rem, 15vw, 3.2rem); }
    .ws-blurb { font-size: 0.95rem; }
    .ws-status { font-size: 1rem; }
}

/* --- PORTRAIT INSTRUMENT (the hero photo plays notes) --- */
.hero-img-container {
    position: relative;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}
.hero-img-container:focus-visible {
    outline: 3px solid var(--hunter-green);
    outline-offset: 6px;
}
.portrait-kicker { opacity: 0.85; margin-top: 0.4rem; text-align: center; }
.hero-img-container.playing .hero-img { animation: portrait-thump 0.38s ease; }
@keyframes portrait-thump {
    0% { transform: scale(1); filter: brightness(1); }
    30% { transform: scale(0.955); filter: brightness(1.28); }
    100% { transform: scale(1); filter: brightness(1); }
}
.tap-ripple {
    position: absolute;
    width: 18px; height: 18px;
    margin: -9px 0 0 -9px;
    border-radius: 50%;
    background: rgba(243, 249, 244, 0.92);
    border: 3px solid hsl(var(--note-hue, 140) 65% 55%);
    box-shadow: 0 0 28px 8px hsl(var(--note-hue, 140) 75% 60% / 0.85);
    pointer-events: none;
    z-index: 6;
    animation: ripple-pop 0.9s ease-out forwards;
}
@keyframes ripple-pop {
    0% { transform: scale(0.4); opacity: 1; }
    100% { transform: scale(9); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-img-container.playing .hero-img { animation: none; }
}

/* --- PHOTO BLOOM GALLERY --- */
.gallery-section {
    padding: 5rem 1.25rem 4rem;
    max-width: 1180px;
    margin: 0 auto;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.gallery-sub {
    margin-top: 0.9rem;
    color: var(--text-light);
    font-size: 1rem;
}
/* Contact sheet: all thirty frames on one screen. Tap one to dive in. */
.bloom-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 1fr;
    gap: 0.9rem;
    margin-top: 2rem;
    height: calc(100svh - 340px);
    min-height: 380px;
}
.bloom-frame {
    --tilt: 0deg;
    margin: 0;
    min-height: 0;
    cursor: zoom-in;
    transform: rotate(var(--tilt));
    animation: frameFloat 9s ease-in-out infinite alternate;
}
.bloom-frame:nth-child(6n+1) { --tilt: -1.6deg; animation-duration: 11s; }
.bloom-frame:nth-child(6n+2) { --tilt: 1.2deg; animation-duration: 8s; animation-delay: -3s; }
.bloom-frame:nth-child(6n+3) { --tilt: -0.9deg; animation-duration: 10s; animation-delay: -5s; }
.bloom-frame:nth-child(6n+4) { --tilt: 1.5deg; animation-duration: 12s; animation-delay: -1s; }
.bloom-frame:nth-child(6n+5) { --tilt: -1.2deg; animation-duration: 9s; animation-delay: -4s; }
.bloom-frame:nth-child(6n+6) { --tilt: 0.8deg; animation-duration: 10.5s; animation-delay: -2.5s; }
@keyframes frameFloat {
    from { transform: rotate(var(--tilt)) translateY(-5px); }
    to { transform: rotate(var(--tilt)) translateY(6px); }
}
.bloom-frame .bloom-img-wrap { height: 100%; }
.bloom-frame .bloom-img-wrap img { height: 100%; object-fit: cover; }
/* captions live in the lightbox on this layout */
.bloom-frame figcaption { display: none; }
@media (max-width: 640px) {
    .bloom-grid { grid-template-columns: repeat(5, 1fr); gap: 0.7rem; height: calc(100svh - 320px); }
}
.bloom-frame:nth-child(5n+1) .bloom-img-wrap { border-radius: 42% 58% 61% 39% / 45% 42% 58% 55%; }
.bloom-frame:nth-child(5n+2) .bloom-img-wrap { border-radius: 63% 37% 41% 59% / 55% 63% 37% 45%; }
.bloom-frame:nth-child(5n+3) .bloom-img-wrap { border-radius: 37% 63% 55% 45% / 61% 38% 62% 39%; }
.bloom-frame:nth-child(5n+4) .bloom-img-wrap { border-radius: 55% 45% 38% 62% / 42% 58% 45% 55%; }
.bloom-frame:nth-child(5n+5) .bloom-img-wrap { border-radius: 48% 52% 60% 40% / 52% 44% 56% 48%; }
@media (hover: hover) {
    .bloom-frame:nth-child(5n+1):hover .bloom-img-wrap { border-radius: 58% 42% 45% 55% / 52% 58% 42% 48%; }
    .bloom-frame:nth-child(5n+2):hover .bloom-img-wrap { border-radius: 45% 55% 60% 40% / 42% 48% 52% 58%; }
    .bloom-frame:nth-child(5n+3):hover .bloom-img-wrap { border-radius: 60% 40% 42% 58% / 45% 60% 40% 55%; }
    .bloom-frame:nth-child(5n+4):hover .bloom-img-wrap { border-radius: 42% 58% 55% 45% / 58% 42% 55% 45%; }
    .bloom-frame:nth-child(5n+5):hover .bloom-img-wrap { border-radius: 55% 45% 48% 52% / 45% 55% 48% 52%; }
}
.bloom-img-wrap {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(53, 94, 59, 0.16);
    transition: border-radius 1.2s ease;
}
.bloom-img-wrap img {
    display: block;
    width: 100%;
    height: auto;
    filter: grayscale(1) contrast(1.04);
    transform: scale(1.045);
    transition: filter 1.1s ease, transform 1.5s ease;
}
.bloom-img-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--hunter-green);
    mix-blend-mode: multiply;
    opacity: 0.5;
    transition: opacity 1.1s ease;
    pointer-events: none;
}
.bloom-frame.bloomed .bloom-img-wrap img {
    filter: none;
    transform: scale(1);
}
.bloom-frame.bloomed .bloom-img-wrap::after { opacity: 0; }
.bloom-frame figcaption {
    padding: 0.55rem 0.3rem 0;
    font-size: 0.83rem;
    color: var(--text-light);
}
@media (max-width: 899px) {
    .gallery-section { padding: 4rem 1rem 5rem; }
}
@media (prefers-reduced-motion: reduce) {
    .bloom-frame { animation: none; }
    .bloom-img-wrap,
    .bloom-img-wrap img,
    .bloom-img-wrap::after { transition: none; }
}

/* --- THE PUTT: disc golf figure, embedded natively after the gallery --- */
.putt-section {
    padding: 5rem 1.25rem 4rem;
    max-width: 1180px;
    margin: 0 auto;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.putt-figure {
    position: relative;
    margin: 1rem auto 0;
    width: 100%;
    max-width: 620px;
}
.putt-read {
    position: absolute;
    top: 10px;
    right: 14px;
    z-index: 1;
    font: 11px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
    color: var(--text-light);
    pointer-events: none;
}
/* The figure's ink, tuned for the site palette (the bench defaults are built for pure white). */
#puttStage {
    --hl-plate: var(--hg-50);
    --hl-hi: var(--hg-800);
    --hl-edge: var(--hg-950);
    --hl-mid: var(--hg-700);
    --hl-lo: var(--hg-400);
}
@media (max-width: 899px) {
    .putt-section { padding: 4rem 1rem 5rem; }
}

/* --- HAMBURGER MENU --- */
.menu-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(243, 249, 244, 0.4);
    background: rgba(243, 249, 244, 0.75);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: transform 0.2s var(--ease-out-expo), background 0.2s ease;
}
.menu-btn:hover { transform: scale(1.06); background: rgba(243, 249, 244, 0.9); }
.menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--hunter-green-dark);
    transition: transform 0.3s var(--ease-out-expo), opacity 0.2s ease;
}
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 10003;
    background: rgba(17, 36, 20, 0.96);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.32s ease, visibility 0.32s;
}
.menu-overlay.open { opacity: 1; visibility: visible; }
.menu-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    text-align: center;
}
.menu-links a {
    font-family: 'Fraunces', serif;
    font-size: clamp(2rem, 8vw, 3.2rem);
    font-weight: 600;
    color: var(--hg-100);
    text-decoration: none;
    padding: 0.35rem 1rem;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.35s ease, transform 0.45s var(--ease-out-expo), color 0.2s ease;
}
.menu-overlay.open .menu-links a { opacity: 1; transform: none; }
.menu-overlay.open .menu-links a:nth-child(1) { transition-delay: 0.06s; }
.menu-overlay.open .menu-links a:nth-child(2) { transition-delay: 0.12s; }
.menu-overlay.open .menu-links a:nth-child(3) { transition-delay: 0.18s; }
.menu-overlay.open .menu-links a:nth-child(4) { transition-delay: 0.24s; }
.menu-overlay.open .menu-links a:nth-child(5) { transition-delay: 0.3s; }
.menu-overlay.open .menu-links a:nth-child(6) { transition-delay: 0.36s; }
.menu-links a:hover { color: var(--hg-300); }
.menu-links a.menu-game {
    margin-top: 1.2rem;
    color: #ffd97a;
    font-style: italic;
}
.menu-links a.menu-game:hover { color: #ffe9b0; }
.menu-new {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    vertical-align: middle;
    background: #ffd97a;
    color: var(--hg-800);
    border-radius: 999px;
    padding: 0.3rem 0.7rem;
    margin-left: 0.6rem;
}
@media (max-width: 640px) {
    .menu-btn { top: 84px; right: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .menu-overlay, .menu-links a { transition: none; }
    .menu-links a { opacity: 1; transform: none; }
}
.bloom-frame:focus-visible {
    outline: 3px solid var(--hunter-green);
    outline-offset: 6px;
    border-radius: 12px;
}
/* --- GALLERY LIGHTBOX --- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.lightbox[hidden] { display: none; }
.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 23, 12, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.lightbox-figure {
    position: relative;
    margin: 0;
    max-width: min(88vw, 980px);
    animation: lbIn 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes lbIn {
    from { opacity: 0; transform: scale(0.93) translateY(14px); }
}
.lightbox-figure img {
    display: block;
    width: 100%;
    max-height: 76vh;
    object-fit: contain;
    border-radius: 16px;
    background: var(--hg-950);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
    transition: opacity 0.22s ease;
}
.lightbox-figure figcaption {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    color: var(--hg-100);
    padding: 0.85rem 0.25rem 0;
    font-size: 0.95rem;
}
.lightbox-count { opacity: 0.6; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lightbox-nav {
    position: absolute;
    z-index: 2;
    width: 52px; height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(243, 249, 244, 0.25);
    background: rgba(243, 249, 244, 0.12);
    color: var(--hg-50);
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: background 0.2s ease, transform 0.2s ease;
}
.lightbox-nav:hover { background: rgba(243, 249, 244, 0.25); transform: scale(1.06); }
.lb-prev { left: max(1rem, 3vw); top: 50%; transform: translateY(-50%); }
.lb-next { right: max(1rem, 3vw); top: 50%; transform: translateY(-50%); }
.lb-prev:hover { transform: translateY(-50%) scale(1.06); }
.lb-next:hover { transform: translateY(-50%) scale(1.06); }
.lb-close { top: 1.1rem; right: max(1rem, 3vw); }
@media (prefers-reduced-motion: reduce) {
    .lightbox-figure { animation: none; }
}
