/* ==========================================================================
   Sohan Chowdhury – Personal Portfolio
   Solarpunk Aesthetic · Golden Hour Sunrise to Sunset Celestial Scroll
   ========================================================================== */

/* ── Palette: Living Green ◈ (Default: Sunrise Golden Hour -> Short Midday -> Sunset Golden Hour) ── */
:root {
    --scroll-p: 0;
    --sunrise-op: 1;
    --midday-op: 0;
    --sunset-op: 0;

    /* 1. Sunrise Golden Hour (Top of Page: Morning Dawn) */
    --sunrise-sky-1: #fed7aa;
    --sunrise-sky-2: #fef08a;
    --sunrise-sky-3: #fef9c3;
    --sunrise-sky-4: #ecfdf5;

    /* 2. Short Midday (Mid-Page: Photosynthetic Solar Tech) */
    --midday-sky-1: #7ee0ee;
    --midday-sky-2: #a7f3d0;
    --midday-sky-3: #d1fae5;
    --midday-sky-4: #f0fdf4;

    /* 3. Sunset Golden Hour (Bottom of Page: Backcountry Sunset into Alpine Twilight) */
    --sunset-sky-1: #fdba74;
    --sunset-sky-2: #f97316;
    --sunset-sky-3: #c2410c;
    --sunset-sky-4: #134e4a;

    /* Card Surfaces & Eco-Glassmorphism (Frosted glass letting the mountain landscape radiate through) */
    --bg-surface: rgba(255, 255, 255, 0.64);
    --bg-surface-alpha: rgba(255, 255, 255, 0.72);
    --bg-card: rgba(240, 248, 242, 0.70);
    --bg-highlight: rgba(212, 235, 216, 0.75);
    --border: rgba(45, 115, 70, 0.22);
    --border-dark: rgba(25, 80, 45, 0.45);
    --card-shadow: 0 8px 30px rgba(15, 36, 23, 0.08);
    --card-shadow-hover: 0 14px 36px rgba(15, 36, 23, 0.14);

    /* Grid & Topo Contours */
    --grid-color: rgba(30, 95, 60, 0.07);
    --contour-top: #f59e0b;
    --contour-mid: #16a34a;
    --contour-bot: #d97706;

    /* High-Contrast Crisp Typography */
    --text: #0d2115;
    --text-muted: #294734;
    --text-faint: #50705a;

    /* Accents */
    --accent: #16a34a;
    --accent-bright: #22c55e;
    --warm-accent: #d97706;
    --cool-accent: #0d9488;
    --cool-accent-bright: #14b8a6;
    --warm: #d97706;
    --warm-deep: #b45309;
    --link: #15803d;
    --link-cool: #0f766e;
    --pop: #e11d48;
    --glow: rgba(34, 197, 94, 0.28);

    /* Timeline Vine gradient (sunrise gold -> midday emerald -> sunset amber-teal) */
    --vine-start: #f59e0b;
    --vine-mid: #16a34a;
    --vine-end: #d97706;

    /* Interactive aliases */
    --green: #16a34a;
    --cyan: #0d9488;
    --yellow: #f59e0b;
    --orange: #d97706;
    --blue: #0284c7;
    --magenta: #e11d48;

    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "Fira Code", Menlo, Consolas, monospace;
}

/* ── Palette: Golden Solarpunk ☀️ (Rich Honey Sunrise -> High Daylight -> Deep Terracotta Alpenglow) ── */
[data-theme="golden"] {
    --sunrise-sky-1: #fde047;
    --sunrise-sky-2: #fef08a;
    --sunrise-sky-3: #fef3c7;
    --sunrise-sky-4: #f7fee7;

    --midday-sky-1: #93c5fd;
    --midday-sky-2: #bbf7d0;
    --midday-sky-3: #ecfccb;
    --midday-sky-4: #fefce8;

    --sunset-sky-1: #ea580c;
    --sunset-sky-2: #f97316;
    --sunset-sky-3: #9a3412;
    --sunset-sky-4: #14532d;

    --bg-surface: rgba(255, 252, 244, 0.68);
    --bg-surface-alpha: rgba(255, 252, 244, 0.74);
    --bg-card: rgba(248, 241, 226, 0.72);
    --bg-highlight: rgba(235, 224, 197, 0.78);
    --border: rgba(185, 135, 45, 0.25);
    --border-dark: rgba(145, 95, 25, 0.5);
    --card-shadow: 0 8px 30px rgba(70, 48, 15, 0.08);
    --card-shadow-hover: 0 14px 36px rgba(70, 48, 15, 0.14);

    --grid-color: rgba(150, 105, 30, 0.07);
    --contour-top: #d97706;
    --contour-mid: #65a30d;
    --contour-bot: #ea580c;

    --text: #20190f;
    --text-muted: #50422d;
    --text-faint: #78694e;

    --accent: #65a30d;
    --accent-bright: #84cc16;
    --warm-accent: #d97706;
    --cool-accent: #15803d;
    --cool-accent-bright: #22c55e;
    --warm: #d97706;
    --warm-deep: #b45309;
    --link: #4d7c0f;
    --link-cool: #166534;
    --pop: #e11d48;
    --glow: rgba(217, 119, 6, 0.28);

    --vine-start: #f59e0b;
    --vine-mid: #65a30d;
    --vine-end: #ea580c;

    --green: #65a30d;
    --cyan: #15803d;
    --yellow: #d97706;
    --orange: #b45309;
    --blue: #0284c7;
    --magenta: #e11d48;
}

/* ── Palette: Dusk Moss 🌑 (Alpine Mist Dawn -> Cyan Midday -> Twilight Mountain Dusk) ── */
[data-theme="moss"] {
    --sunrise-sky-1: #fef3c7;
    --sunrise-sky-2: #e0f2fe;
    --sunrise-sky-3: #ccfbf1;
    --sunrise-sky-4: #f0fdf4;

    --midday-sky-1: #38bdf8;
    --midday-sky-2: #5eead4;
    --midday-sky-3: #ccfbf1;
    --midday-sky-4: #f0fdf4;

    --sunset-sky-1: #c2410c;
    --sunset-sky-2: #9a3412;
    --sunset-sky-3: #431407;
    --sunset-sky-4: #083344;

    --bg-surface: rgba(255, 255, 255, 0.66);
    --bg-surface-alpha: rgba(255, 255, 255, 0.74);
    --bg-card: rgba(235, 243, 240, 0.72);
    --bg-highlight: rgba(207, 224, 219, 0.78);
    --border: rgba(50, 105, 90, 0.25);
    --border-dark: rgba(30, 75, 62, 0.5);
    --card-shadow: 0 8px 30px rgba(18, 45, 36, 0.08);
    --card-shadow-hover: 0 14px 36px rgba(18, 45, 36, 0.14);

    --grid-color: rgba(35, 90, 75, 0.07);
    --contour-top: #38bdf8;
    --contour-mid: #10b981;
    --contour-bot: #ea580c;

    --text: #101d17;
    --text-muted: #32493e;
    --text-faint: #587569;

    --accent: #059669;
    --accent-bright: #10b981;
    --warm-accent: #d97706;
    --cool-accent: #0891b2;
    --cool-accent-bright: #06b6d4;
    --warm: #b45309;
    --warm-deep: #78350f;
    --link: #047857;
    --link-cool: #0e7490;
    --pop: #e11d48;
    --glow: rgba(16, 185, 129, 0.28);

    --vine-start: #06b6d4;
    --vine-mid: #059669;
    --vine-end: #ea580c;

    --green: #059669;
    --cyan: #0891b2;
    --yellow: #d97706;
    --orange: #b45309;
    --blue: #0284c7;
    --magenta: #e11d48;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--sunrise-sky-1);
    transition: background-color 0.3s ease;
    overflow-x: clip;
    max-width: 100%;
}

body {
    margin: 0;
    padding: 0;
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    background: transparent !important;
    position: relative;
    overflow-x: clip;
    max-width: 100%;
}

/* ── Visible Fixed Solarpunk Celestial Atmosphere ── */
.solarpunk-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    contain: strict;
}

.sp-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* 1. Sunrise Layer (Morning Golden Hour: Top of Page) */
.sp-sunrise-layer {
    opacity: var(--sunrise-op, 1);
    transition: opacity 0.14s ease-out;
}

.sp-sunrise-sky {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        var(--sunrise-sky-1) 0%,
        var(--sunrise-sky-2) 32%,
        var(--sunrise-sky-3) 68%,
        var(--sunrise-sky-4) 100%
    );
}

/* 2. Midday Layer (Short, Bright Solar Tech: Mid-Page) */
.sp-midday-layer {
    opacity: var(--midday-op, 0);
    transition: opacity 0.14s ease-out;
}

.sp-midday-sky {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        var(--midday-sky-1) 0%,
        var(--midday-sky-2) 35%,
        var(--midday-sky-3) 70%,
        var(--midday-sky-4) 100%
    );
}

/* 3. Sunset Layer (Evening Golden Hour: Bottom of Page into Alpine Dusk) */
.sp-sunset-layer {
    opacity: var(--sunset-op, 0);
    transition: opacity 0.14s ease-out;
}

.sp-sunset-sky {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        var(--sunset-sky-1) 0%,
        var(--sunset-sky-2) 34%,
        var(--sunset-sky-3) 68%,
        var(--sunset-sky-4) 100%
    );
}

/* ── Golden Hour Directional Light Sweep ── */
.sp-golden-light {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(var(--light-angle, 125deg),
        rgba(251, 191, 36, 0.28) 0%,
        rgba(245, 158, 11, 0.12) 36%,
        transparent 66%
    );
    mix-blend-mode: soft-light;
    transition: background 0.08s ease-out;
}

.sp-golden-spot {
    position: absolute;
    top: 22%;
    left: calc(28% + var(--scroll-p, 0) * 46%);
    width: min(650px, 90vw);
    height: min(650px, 90vw);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(254, 240, 138, 0.22) 0%,
        rgba(245, 158, 11, 0.10) 42%,
        transparent 70%
    );
    pointer-events: none;
    filter: blur(42px);
    transition: left 0.08s ease-out;
}

/* ── Mount Assiniboine: Golden Light & Mountain Shadow System ── */
.topo-hillshade {
    pointer-events: none;
}

/* East Facet: Lit at top/morning, transitions into shadow on scroll */
.facet-east-lit {
    opacity: calc(1 - var(--scroll-p, 0) * 0.90);
    transition: opacity 0.06s ease-out;
}

.facet-east-shadow {
    opacity: calc(0.08 + var(--scroll-p, 0) * 0.88);
    transition: opacity 0.06s ease-out;
}

/* West Facet: Starts in deep cool shadow, blazes into sunset alpenglow */
.facet-west-lit {
    opacity: calc(0.12 + var(--scroll-p, 0) * 0.88);
    transition: opacity 0.06s ease-out;
}

.facet-west-shadow {
    opacity: calc(0.92 - var(--scroll-p, 0) * 0.85);
    transition: opacity 0.06s ease-out;
}

/* Mountain Cast Shadow: Sweeps dynamically across Lake Magog and the valley */
.mountain-cast-shadow {
    transform-box: view-box;
    transform-origin: 1060px 160px;
    transform: skewX(var(--shadow-skew, -26deg));
    transition: transform 0.08s ease-out, opacity 0.08s ease-out;
    opacity: 0.88;
}

/* Razor-sharp Knife-Edge North Ridge (Arête) Highlight */
.ridge-arete-crest {
    filter: drop-shadow(0 0 5px var(--warm-accent));
}

/* Lake Magog Golden-Hour Water Reflection */
.lake-water-reflection {
    opacity: calc(0.35 + var(--scroll-p, 0) * 0.55);
    transition: opacity 0.08s ease-out;
}

/* Summit Pinnacle Alpenglow Beacon */
@keyframes summit-alpenglow-glow {
    0%, 100% {
        opacity: 0.75;
        transform: scale(1);
    }
    50% {
        opacity: 0.98;
        transform: scale(1.15);
    }
}

.summit-beacon {
    transform-box: view-box;
    transform-origin: 1060px 160px;
    animation: summit-alpenglow-glow 6s ease-in-out infinite alternate;
}

@media (prefers-reduced-motion: reduce) {
    .summit-beacon {
        animation: none !important;
    }
}

/* Architectural solar cell micro-grid */
.sp-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, var(--grid-color) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: radial-gradient(ellipse at 50% 30%, rgba(0, 0, 0, 0.55) 0%, transparent 85%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, rgba(0, 0, 0, 0.55) 0%, transparent 85%);
    opacity: 0.85;
}

/* Topographical elevation plot contours shifting from morning gold to midday green to sunset amber */
.sp-topo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0.95;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    transition: opacity 0.4s ease;
}

/* ── Container ── */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 36px 24px 80px 24px;
    position: relative;
    z-index: 10;
}

/* ── Status / Beacon Bar ── */
.status-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 14px;
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-top: 2.5px solid var(--warm-accent);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.12), var(--card-shadow);
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 34px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.beacon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-bright);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--accent-bright);
    animation: pulse 2.5s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7), 0 0 5px var(--accent-bright); }
    70%  { box-shadow: 0 0 0 9px transparent,          0 0 2px var(--accent-bright); }
    100% { box-shadow: 0 0 0 0 transparent,           0 0 5px var(--accent-bright); }
}

.status-meta {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.status-meta a {
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 1px dashed var(--border-dark);
}

.status-meta a:hover {
    color: var(--link);
    border-bottom-color: var(--link);
}

/* ── Theme Picker ── */
.theme-picker {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    background: var(--bg-surface-alpha);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.theme-picker-label {
    color: var(--text-faint);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.theme-swatch {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 0;
    outline: none;
    transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s ease;
}

.theme-swatch:hover {
    transform: scale(1.25);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.theme-swatch.active {
    transform: scale(1.12);
    border-color: #ffffff;
    box-shadow: 0 0 0 2px var(--bg-surface), 0 0 0 4px var(--accent);
}

.swatch-green  { background: linear-gradient(135deg, #fde047 0%, #22c55e 52%, #15803d 100%); }
.swatch-golden { background: linear-gradient(135deg, #fef08a 0%, #f59e0b 50%, #ea580c 100%); }
.swatch-moss   { background: linear-gradient(135deg, #38bdf8 0%, #059669 50%, #083344 100%); }

/* ── Hero Section (Bathed in Radiant Morning Sunrise Golden Hour) ── */
.hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 30px;
    position: relative;
    padding: 24px 26px;
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-left: 4.5px solid var(--warm-accent);
    border-radius: 12px;
    box-shadow: 0 10px 32px rgba(245, 158, 11, 0.14), var(--card-shadow);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.hero-text { flex: 1; }

.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 8px 0;
    color: var(--text);
    letter-spacing: -0.025em;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin: 0;
    font-weight: 400;
}

.hero-subtitle strong { color: var(--text); }

.hero-avatar { flex-shrink: 0; }

.avatar-img {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 20px rgba(217, 119, 6, 0.25);
    object-fit: cover;
    background-color: var(--bg-card);
}

/* ── Quick Nav ── */
.quick-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: 34px;
}

.nav-pill {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    padding: 6px 13px;
    background: var(--bg-surface);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(25, 55, 35, 0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: all 0.18s ease;
}

.nav-glyph {
    color: var(--warm-accent);
    font-size: 11px;
    line-height: 1;
    margin-right: 6px;
    display: inline-block;
    transition: transform 0.2s ease, color 0.18s ease;
}

.nav-pill:hover {
    background: #ffffff;
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(22, 163, 74, 0.2);
    transform: translateY(-1px);
}

.nav-pill:hover .nav-glyph {
    color: var(--accent);
    transform: scale(1.25);
}

.nav-pill:active { transform: translateY(0); }

.nav-pill:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.nav-pill-sub {
    font-size: 11px;
    color: var(--text-faint);
    margin-left: 3px;
}

/* ── Tone-of-Voice Slider ── */
.tone-widget {
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    padding: 22px 24px;
    margin-bottom: 44px;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    --tone-color: var(--cyan);
}

.tone-header {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-family: var(--font-mono);
    font-size: 12.5px;
}

.tone-label-prefix {
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.tone-badge {
    padding: 3px 10px;
    background: var(--bg-card);
    border: 1px solid var(--tone-color, var(--border-dark));
    border-radius: 12px;
    font-weight: 600;
    color: var(--tone-color, var(--text));
    transition: color 0.2s ease, border-color 0.2s ease;
}

.slider-container {
    margin: 14px 0 16px 0;
}

.slider-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
}

.slider-step-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.slider-step-btn:hover:not(:disabled) {
    background: var(--bg-highlight);
    border-color: var(--tone-color, var(--accent));
    color: var(--tone-color, var(--accent));
    transform: translateY(-1px);
}

.slider-step-btn:active:not(:disabled) {
    transform: scale(0.94);
}

.slider-step-btn:disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

.slider-step-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.slider-core {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.slider-track-wrap {
    display: flex;
    align-items: center;
    height: 32px;
    position: relative;
    width: 100%;
}

.tone-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--orange) 0%, var(--yellow) 25%, var(--cyan) 50%, var(--blue) 75%, var(--magenta) 100%);
    outline: none;
    cursor: pointer;
    touch-action: pan-y;
    margin: 0;
    padding: 0;
}

/* Solar tech-y minimalist circular aperture thumb */
.tone-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    transform: none;
    background: radial-gradient(circle at center, #ffffff 28%, var(--tone-color, var(--cyan)) 32%, var(--tone-color, var(--cyan)) 100%);
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12), 0 0 12px var(--tone-color, var(--cyan));
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.tone-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 0 0 2px #ffffff, 0 0 18px var(--tone-color, var(--cyan));
}

.tone-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    transform: none;
    background: radial-gradient(circle at center, #ffffff 28%, var(--tone-color, var(--cyan)) 32%, var(--tone-color, var(--cyan)) 100%);
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12), 0 0 12px var(--tone-color, var(--cyan));
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.tone-slider::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 0 0 2px #ffffff, 0 0 18px var(--tone-color, var(--cyan));
}

.slider-ticks {
    position: relative;
    width: 100%;
    height: 34px;
    margin-top: 4px;
}

.slider-tick {
    position: absolute;
    top: 0;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-faint);
    transition: color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
    white-space: nowrap;
}

.slider-tick:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

.slider-tick .tick-pip {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-faint);
    opacity: 0.45;
    transition: all 0.2s ease;
}

.slider-tick:hover .tick-pip {
    opacity: 0.9;
    background: var(--text);
}

.slider-tick:hover {
    color: var(--text);
}

.slider-tick.active {
    color: var(--text);
    font-weight: 700;
}

.slider-tick.active .tick-pip {
    width: 8px;
    height: 8px;
    background: var(--tone-color, var(--cyan));
    opacity: 1;
    box-shadow: 0 0 8px var(--tone-color, var(--cyan));
}

/* Mathematical step alignment: thumb is 20px wide (radius 10px) */
.slider-tick[data-val="0"] {
    left: 0;
    align-items: flex-start;
    text-align: left;
}
.slider-tick[data-val="0"] .tick-pip {
    margin-left: 7px; /* 10px center - 3px half pip */
}
.slider-tick[data-val="0"].active .tick-pip {
    margin-left: 6px; /* 10px center - 4px half pip */
}

.slider-tick[data-val="1"] {
    left: calc(10px + 0.25 * (100% - 20px));
    transform: translateX(-50%);
    align-items: center;
    text-align: center;
}

.slider-tick[data-val="2"] {
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
    text-align: center;
}

.slider-tick[data-val="3"] {
    left: calc(10px + 0.75 * (100% - 20px));
    transform: translateX(-50%);
    align-items: center;
    text-align: center;
}

.slider-tick[data-val="4"] {
    right: 0;
    left: auto;
    align-items: flex-end;
    text-align: right;
}
.slider-tick[data-val="4"] .tick-pip {
    margin-right: 7px; /* 10px center - 3px half pip */
}
.slider-tick[data-val="4"].active .tick-pip {
    margin-right: 6px; /* 10px center - 4px half pip */
}

.tick-short {
    display: none;
}

.tick-full {
    display: inline;
}

.dynamic-bio-box {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--border);
}

.dynamic-bio-text {
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
    color: var(--text);
    min-height: 75px;
    transition: opacity 0.15s ease;
}

/* ── Section Common ── */
.section { margin-bottom: 48px; }

.section-title {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 20px 0;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 25%;
    height: 2px;
    background: linear-gradient(to right, var(--accent), var(--warm-accent), transparent);
    border-radius: 1px;
}

.section-title .hash { color: var(--accent); }

/* ── Timeline: Living Celestial Vine (Sunrise -> Midday -> Sunset) ── */
.timeline-panel {
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    padding: 22px 24px 18px 28px;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.timeline {
    position: relative;
    padding-left: 26px;
    border-left: none;
    display: flex;
    flex-direction: column;
    gap: 26px;
    margin: 0 0 0 4px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2.5px;
    background: linear-gradient(180deg,
        var(--vine-start) 0%,
        var(--vine-mid) 42%,
        var(--vine-end) 92%,
        transparent 100%
    );
    border-radius: 1px;
    transform-origin: top center;
    animation: stem-grow 1.2s ease-out both;
}

@keyframes stem-grow {
    from { transform: scaleY(0); opacity: 0; }
    to   { transform: scaleY(1); opacity: 1; }
}

.timeline-item { position: relative; }

.timeline-dot {
    position: absolute;
    left: -31px;
    top: 6px;
    width: 11px;
    height: 11px;
    border-radius: 50% 0 50% 0;
    background: #ffffff;
    border: 2px solid var(--accent);
    transform: rotate(45deg);
    transition: transform 0.2s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.timeline-dot.active {
    background: var(--warm-accent);
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.3), 0 0 10px var(--sun-color-core);
}

.timeline-item:hover .timeline-dot {
    transform: rotate(45deg) scale(1.3);
    border-color: var(--warm-accent);
    box-shadow: 0 0 10px var(--warm-accent);
}

.timeline-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 2px;
}

.timeline-role {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
}

.timeline-org { color: var(--link); }

.timeline-time {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--text-muted);
}

.timeline-location {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-faint);
    margin-bottom: 6px;
}

.timeline-story {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--text);
}

.timeline-note {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed var(--border);
}

.timeline-note a {
    color: var(--link);
    text-decoration: none;
    font-weight: 600;
}

.timeline-note a:hover {
    text-decoration: underline;
    color: var(--warm-accent);
}

/* ── Projects: Refined Architectural Cards ── */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 600px) {
    .projects-grid { grid-template-columns: 1fr 1fr; }
}

.project-card {
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-left: 3.5px solid var(--accent);
    border-radius: 10px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.project-card:hover {
    transform: translateY(-2px);
    border-left-color: var(--accent-bright);
    box-shadow: var(--card-shadow-hover);
}

.project-type {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--warm-accent);
    margin-bottom: 6px;
}

.project-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--text);
}

.project-title a {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.project-title a:hover {
    color: var(--link);
    border-bottom-color: var(--link);
}

.project-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin: 0 0 14px 0;
    line-height: 1.5;
    flex-grow: 1;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 12px;
}

.project-link {
    color: var(--link);
    text-decoration: none;
    font-weight: 600;
}

.project-link:hover {
    text-decoration: underline;
    color: var(--accent-bright);
}

.project-stars { color: var(--text-faint); }

/* ── Little Things: Tiny, playful launchpad ── */
.tiny-things-intro {
    color: var(--text-muted);
    margin: -8px 0 18px;
}

.tiny-things-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

@media (min-width: 600px) {
    .tiny-things-grid { grid-template-columns: 1fr 1fr; }
}

.tiny-thing {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: linear-gradient(145deg, var(--bg-highlight), var(--bg-surface) 72%);
    box-shadow: var(--card-shadow);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.tiny-thing:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: var(--card-shadow-hover);
}

.tiny-thing-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.tiny-thing-icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--bg-surface-alpha);
    font-size: 20px;
}

.tiny-thing-kicker {
    color: var(--warm-deep);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tiny-thing-title {
    margin: 0 0 7px;
    color: var(--text);
    font-size: 1.08rem;
}

.tiny-thing-desc {
    flex-grow: 1;
    margin: 0 0 16px;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.tiny-thing-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 14px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--text);
    color: var(--bg-surface-alpha);
    font-size: 0.88rem;
    font-weight: 650;
    text-decoration: none;
    transition: transform 0.18s ease, background-color 0.18s ease;
}

.tiny-thing-button:hover {
    transform: translateY(-1px);
    background: var(--link);
}

.tiny-thing-button:focus-visible {
    outline: 3px solid var(--warm-accent);
    outline-offset: 3px;
}

/* ── Skills ── */
.skills-container {
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-left: 3.5px solid var(--accent);
    border-radius: 10px;
    padding: 22px;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.skills-note {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 18px;
    line-height: 1.5;
}

.mastery-axis {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-faint);
    padding: 6px 4px 10px 4px;
    border-bottom: 1px dashed var(--border);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.skill-meters {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.skill-meter-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.skill-meter-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 13.5px;
}

.skill-name {
    font-weight: 600;
    color: var(--text);
    font-family: var(--font-mono);
}

.skill-level-pct {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-faint);
}

.skill-track {
    width: 100%;
    height: 6px;
    background: var(--bg-highlight);
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--warm-accent));
    border-radius: 3px;
}

.skill-fill.expert {
    background: linear-gradient(90deg, var(--accent-bright), var(--accent), var(--warm-accent));
}

.skill-fill.zero { background: transparent; }

.skill-comment {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
    font-family: var(--font-sans);
}

/* ── Outdoors & Photography (Sunset Golden Hour into Alpine Twilight) ── */
.outdoors-box {
    background: var(--bg-surface);
    border: 1.5px solid rgba(245, 158, 11, 0.45);
    border-left: 4.5px solid var(--warm-accent);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 10px 32px rgba(245, 158, 11, 0.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.outdoors-box p {
    margin: 0 0 14px 0;
    font-size: 0.98rem;
    color: var(--text);
}

.outdoors-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-family: var(--font-mono);
    font-size: 13px;
}

.outdoors-links a {
    color: var(--warm-deep);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1.5px dashed var(--warm-accent);
    transition: color 0.15s ease, border-color 0.15s ease;
}

.outdoors-links a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* ── Quote Box ── */
.quote-box {
    position: relative;
    margin: 36px 0;
    padding: 20px 24px 20px 26px;
    background: var(--bg-surface);
    border: 1.5px solid rgba(245, 158, 11, 0.35);
    border-left: 4.5px solid var(--warm-accent);
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(245, 158, 11, 0.15);
    font-style: italic;
    color: var(--text);
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.quote-box cite {
    display: block;
    margin-top: 6px;
    font-style: normal;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-faint);
}

/* ── Footer ── */
.footer {
    position: relative;
    margin-top: 60px;
    padding: 28px 22px 22px 22px;
    background: var(--bg-surface);
    border: 1.5px solid rgba(245, 158, 11, 0.35);
    border-top: 3.5px solid var(--warm-accent);
    border-radius: 10px;
    box-shadow: 0 10px 36px rgba(245, 158, 11, 0.18);
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 16px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-links a {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: color 0.15s ease, border-color 0.15s ease;
}

.footer-links a:hover {
    color: var(--warm-accent);
    border-bottom-color: var(--warm-accent);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--text-faint);
    font-size: 11.5px;
}

.back-to-top {
    color: var(--warm-accent);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease;
}

.back-to-top:hover {
    text-decoration: underline;
    color: var(--accent);
}

/* ── Mobile ── */
@media (max-width: 600px) {
    .solarpunk-bg {
        contain: none;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    .container {
        padding: 18px 12px 60px 12px;
        overflow-x: hidden;
    }
    .theme-picker {
        right: 12px;
        bottom: max(12px, env(safe-area-inset-bottom));
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
    .sp-golden-spot {
        width: 300px;
        height: 300px;
    }
    .hero { flex-direction: column-reverse; gap: 16px; padding: 18px; }
    .avatar-img { width: 80px; height: 80px; }
    .hero-title { font-size: 1.8rem; }
    .status-bar { font-size: 12px; padding: 8px 10px; }
    .timeline-panel { padding: 18px 16px 14px 22px; }
    .timeline { margin-left: 2px; padding-left: 22px; gap: 20px; }
    .timeline-dot { left: -26px; }

    /* Tone Widget Mobile Polish */
    .tone-widget {
        padding: 18px 14px;
        margin-bottom: 36px;
    }
    .tone-header {
        font-size: 11.5px;
        gap: 6px;
    }
    .tone-badge {
        font-size: 11px;
        padding: 3px 8px;
    }
    .slider-row {
        gap: 8px;
    }
    .slider-step-btn {
        width: 30px;
        height: 30px;
    }
    .slider-track-wrap {
        height: 30px;
    }
    .slider-ticks {
        height: 30px;
        margin-top: 3px;
    }
    .slider-tick {
        font-size: 10px;
    }
    .tick-full {
        display: none;
    }
    .tick-short {
        display: inline;
    }
    .dynamic-bio-text {
        font-size: 0.98rem;
        line-height: 1.55;
    }
}

@media (max-width: 360px) {
    .slider-row {
        gap: 6px;
    }
    .slider-step-btn {
        width: 26px;
        height: 26px;
    }
    .slider-track-wrap {
        height: 26px;
    }
    .slider-ticks {
        height: 28px;
    }
    .slider-tick {
        font-size: 9px;
    }
}
