/* ═══════════════════════════════════════════════════════
   Shanjai R · Portfolio · Quiet Estate
   ═══════════════════════════════════════════════════════ */

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--accent-gold); border-radius: 10px; }

/* ── CSS Variables · Ralph Lauren–inspired navy & white ── */
:root {
    --bg-primary:    #FFFFFF;
    --bg-secondary:  #FAFAF8;
    --text-primary:  #14213D;
    --text-secondary:#5C6470;
    --accent-gold:   #14213D;
    --accent-gold-light: rgba(20, 33, 61, 0.06);
    --accent-olive:  #5B6B84;
    --accent-olive-rgb: 91,107,132;
    --accent-olive-light: rgba(91,107,132,0.10);
    --accent-espresso: #0B1626;
    --nav-height:    76px;
    --radius-lg:     4px;
    --radius-md:     3px;
    --shadow-sm:     0 2px 10px rgba(10,20,40,0.07);
    --shadow-md:     0 8px 28px rgba(10,20,40,0.10);
    --shadow-hover:  0 20px 48px rgba(10,20,40,0.14);
    --glass-bg:      rgba(255,255,255,0.92);
    --glass-border:  rgba(20,33,61,0.14);
    --ease:          cubic-bezier(0.25, 1, 0.5, 1);
    --transition:    all 0.4s var(--ease);

    /* ── Data viz: categorical series (validated: OKLab CVD deltaE, adjacent-pair) ── */
    --viz-1: #A9832E; /* gold */
    --viz-2: #1568A5; /* blue */
    --viz-3: #C2451B; /* terracotta */
    --viz-4: #8C2F5C; /* plum */
    --viz-5: #4A7A2E; /* olive */
    --viz-good:    #0ca30c;
    --viz-warning: #fab219;
    --viz-critical:#d03b3b;
    --viz-track:   rgba(20,33,61,0.07);
    --viz-surface: var(--bg-secondary);
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
    background-image: radial-gradient(rgba(20,33,61,0.05) 1px, transparent 1px);
    background-size: 26px 26px;
}
body::before {
    content: '';
    position: fixed; inset: 0;
    background: linear-gradient(160deg, rgba(250,250,248,0.95) 0%, rgba(250,250,248,0.98) 100%);
    z-index: -2;
    transition: background 0.4s ease;
}

h1, h2, h3, h4 { font-family: 'Cormorant Garamond', serif; font-weight: 600; color: var(--text-primary); line-height: 1.2; letter-spacing: -0.3px; }
a { color: var(--text-primary); text-decoration: none; transition: var(--transition); }

/* ── Custom cursor (disabled for a quieter, editorial feel) ── */
.cursor-ring, .cursor-dot { display: none; }

/* ── Scroll progress bar ── */
.scroll-progress {
    position: fixed; top: 0; left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold), #6B84AC);
    z-index: 9999; width: 0%; pointer-events: none;
    transition: width 0.08s linear;
}

/* ── Glow orbs ── */
.glow-orb { position: fixed; border-radius: 50%; filter: blur(140px); z-index: -1; pointer-events: none; }
.orb-1 { top: -8%; left: -5%; width: 650px; height: 650px; background: var(--accent-gold); opacity: 0.07; animation: orbFloat 16s ease-in-out infinite 0s; }
.orb-2 { bottom: -12%; right: -8%; width: 750px; height: 750px; background: #14213D; opacity: 0.06; animation: orbFloat 18s ease-in-out infinite -6s; }
.orb-3 { top: 42%; left: 58%; width: 550px; height: 550px; background: var(--accent-gold); opacity: 0.05; animation: orbFloat 14s ease-in-out infinite -10s; }
@keyframes orbFloat {
    0%, 100% { transform: translate(0,0) scale(1); }
    33%  { transform: translate(18px,-18px) scale(1.05); }
    66%  { transform: translate(-12px,14px) scale(0.96); }
}

/* ── Navigation ── */
.glass-nav {
    position: fixed; top: 0; left: 0; width: 100%;
    height: var(--nav-height);
    background: var(--bg-primary);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000; display: flex; align-items: center;
    transition: height 0.3s var(--ease), background 0.4s ease, box-shadow 0.3s ease;
}
.glass-nav.scrolled { height: 58px; box-shadow: 0 4px 30px rgba(0,0,0,0.08); }

.nav-container {
    max-width: 1400px; width: 100%; margin: 0 auto; padding: 0 2rem;
    display: flex; align-items: center;
}

.logo { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 600; color: var(--text-primary); letter-spacing: 0.5px; flex-shrink: 0; }
.logo::after { content: '.'; color: var(--accent-gold); }

.nav-links { list-style: none; display: flex; align-items: center; gap: 1.6rem; margin-left: 2.5rem; }
.nav-links li { flex-shrink: 0; }
.nav-links a {
    display: inline-flex; align-items: center; gap: 0.35rem;
    font-size: 0.78rem; font-weight: 600; color: var(--text-secondary); position: relative;
    padding: 0.4rem 0; letter-spacing: 1.6px; text-transform: uppercase;
    white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }
.nav-links a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 1px; background: var(--accent-gold); transition: var(--transition); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* Work dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle i { font-size: 0.55rem; transition: transform 0.25s var(--ease); }
.nav-dropdown:hover .nav-dropdown-toggle i,
.nav-dropdown:focus-within .nav-dropdown-toggle i { transform: rotate(180deg); }
.nav-dropdown-menu {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(4px);
    padding-top: 0.6rem; width: 300px;
    opacity: 0; visibility: hidden; transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 1001;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-dropdown-menu-inner {
    background: var(--bg-secondary); border: 1px solid var(--glass-border); border-radius: var(--radius-md);
    box-shadow: var(--shadow-md); padding: 0.6rem; display: flex; flex-direction: column; gap: 0.1rem;
}
.nav-dropdown-menu a {
    display: block; padding: 0.65rem 0.9rem; font-size: 0.76rem; font-weight: 600;
    text-transform: none; letter-spacing: 0.1px; color: var(--text-secondary);
    border-radius: 4px; white-space: normal; line-height: 1.4;
}
.nav-dropdown-menu a:hover { background: var(--accent-gold-light); color: var(--accent-gold); }
.nav-dropdown-menu a::after { display: none; }
.nav-dropdown-all { border-top: 1px solid var(--glass-border); margin-top: 0.3rem; padding-top: 0.75rem !important; color: var(--accent-gold) !important; font-weight: 700 !important; }

/* ── "Start Here" mega-menu (self-selection module) ── */
.nav-dropdown-menu--mega { left: 0; transform: translateY(4px); width: 860px; max-width: calc(100vw - 2.5rem); }
.nav-dropdown:hover .nav-dropdown-menu--mega,
.nav-dropdown:focus-within .nav-dropdown-menu--mega { transform: translateY(0); }
.nav-mega-inner {
    background: var(--bg-secondary); border: 1px solid var(--glass-border); border-radius: var(--radius-md);
    box-shadow: var(--shadow-md); padding: 1.75rem;
    display: grid; grid-template-columns: repeat(4, 1fr);
}
.nav-mega-col { padding: 0 1.5rem; display: flex; flex-direction: column; gap: 0.55rem; border-left: 1px solid var(--glass-border); }
.nav-mega-col:first-child { border-left: none; padding-left: 0; }
.nav-mega-col:last-child { padding-right: 0; }
.nav-mega-title { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; font-weight: 600; color: var(--text-primary); line-height: 1.3; }
.nav-mega-sub { font-size: 0.72rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: 0.35rem; }
.nav-mega-col a { display: block; font-size: 0.78rem; font-weight: 600; color: var(--text-secondary); line-height: 1.55; padding: 0; background: none; border-radius: 0; transition: color 0.2s ease; }
.nav-mega-col a:hover { color: var(--accent-gold); background: none; }

.mobile-link--sub { padding-left: 2.25rem !important; font-size: 0.88rem !important; }

.nav-actions { display: flex; align-items: center; gap: 0.6rem; margin-left: auto; }

.hamburger {
    display: none; flex-direction: column; justify-content: center; align-items: center;
    width: 44px; height: 44px; border-radius: var(--radius-lg);
    background: var(--bg-secondary); border: 1px solid rgba(0,0,0,0.07);
    cursor: pointer; gap: 5px; transition: var(--transition); box-shadow: var(--shadow-sm);
}
.hamburger span { display: block; width: 18px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: var(--transition); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile nav ── */
.mobile-overlay { display: none; position: fixed; inset: 0; background: rgba(20,18,14,0.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); z-index: 998; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.mobile-overlay.open { opacity: 1; pointer-events: all; }
.mobile-nav { position: fixed; top: var(--nav-height); right: 0; width: 270px; height: calc(100vh - var(--nav-height)); height: calc(100dvh - var(--nav-height)); background: var(--bg-secondary); z-index: 999; padding: 2rem 1.25rem; padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px)); transform: translateX(100%); transition: transform 0.35s var(--ease); box-shadow: -8px 0 40px rgba(0,0,0,0.15); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.mobile-nav.open { transform: translateX(0); }
.mobile-nav ul { list-style: none; display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-nav .mobile-link { display: block; padding: 0.9rem 1rem; font-size: 1rem; font-weight: 600; color: var(--text-secondary); border-radius: 10px; transition: var(--transition); }
.mobile-nav .mobile-link:hover { background: rgba(28,27,23,0.05); color: var(--text-primary); padding-left: 1.5rem; }

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.85rem 2.1rem; border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.78rem;
    cursor: pointer; transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease); gap: 0.55rem;
    letter-spacing: 1.4px; text-transform: uppercase; border: 1px solid transparent;
}
.btn-primary { background: var(--text-primary); color: var(--bg-primary); border-color: var(--text-primary); }
.btn-primary:hover { background: var(--accent-gold); border-color: var(--accent-gold); color: var(--bg-primary); }
.btn-ghost { background: transparent; color: var(--text-primary); border-color: var(--text-primary); }
.btn-ghost:hover { background: var(--text-primary); color: var(--bg-primary); }
.btn-lg { padding: 1.05rem 2.5rem; font-size: 0.82rem; }

/* ── Cards ── */
.glass-card {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative; overflow: hidden;
}
.glass-card:hover { border-color: var(--accent-gold); box-shadow: var(--shadow-md); }

/* ── Layout ── */
main { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }
section { padding: 56px 0; }

/* ── Section header ── */
.section-header { margin-bottom: 3rem; text-align: center; }
.section-header h2 { font-size: 2.5rem; font-weight: 600; }
.s-eyebrow {
    font-size: 0.75rem; font-weight: 700; letter-spacing: 3px;
    text-transform: uppercase; color: var(--accent-gold);
    margin-bottom: 0.75rem; display: flex; align-items: center; justify-content: center; gap: 0.6rem;
}
.s-eyebrow span { color: var(--text-secondary); opacity: 0.5; }
.s-rule { width: 56px; height: 1px; background: var(--accent-gold); margin: 1.1rem auto 0; }

/* ── Hero ── */
.hero { display: flex; flex-direction: column; padding-top: var(--nav-height); position: relative; }
.hero-content { display: flex; justify-content: space-between; align-items: center; width: 100%; gap: 5rem; padding: 2.75rem 0 1.5rem; }
.hero-text { flex: 1; }

/* Hero stagger animations */
.availability-chip { animation: heroIn 0.7s 0.05s both ease-out; }
.greeting          { animation: heroIn 0.7s 0.18s both ease-out; }
.hero-name         { animation: heroIn 0.8s 0.3s  both ease-out; }
.hero-role         { animation: heroIn 0.7s 0.42s both ease-out; }
.hero-meta         { animation: heroIn 0.7s 0.5s  both ease-out; }
.hero-statement    { animation: heroIn 0.7s 0.62s both ease-out; }
.hero-current      { animation: heroIn 0.7s 0.76s both ease-out; }
.hero-cta          { animation: heroIn 0.7s 0.9s  both ease-out; }
.hero-visual       { animation: heroIn 0.9s 0.22s both ease-out; }
.hero-scroll-hint  { animation: heroIn 0.7s 1.1s  both ease-out; }
@keyframes heroIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }

.availability-chip {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.35rem 1rem;
    background: rgba(var(--accent-olive-rgb),0.08); border: 1px solid rgba(var(--accent-olive-rgb),0.22);
    border-radius: 100px; font-size: 0.77rem; font-weight: 600;
    color: var(--accent-olive); margin-bottom: 1.5rem; letter-spacing: 0.2px;
}
.avail-dot { width: 7px; height: 7px; background: var(--accent-olive); border-radius: 50%; flex-shrink: 0; animation: pulseDot 2s infinite; }
@keyframes pulseDot { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.5; transform:scale(1.4); } }

.greeting { font-size: 0.95rem; color: var(--accent-gold); font-weight: 700; margin-bottom: 0.5rem; letter-spacing: 3px; text-transform: uppercase; }

.hero-name {
    font-family: 'Cormorant Garamond', serif; font-size: 5.8rem; font-weight: 600;
    line-height: 1.05; letter-spacing: 0; margin-bottom: 1rem;
}
.gradient-text {
    background: linear-gradient(135deg, var(--text-primary) 20%, #2A3A5C 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero-role {
    font-family: 'Inter', sans-serif; font-size: 1.05rem; font-weight: 600;
    color: var(--text-primary); margin-bottom: 0.5rem; display: block;
}
.hero-role-edu { font-weight: 500; color: var(--text-secondary); }
.hero-meta {
    font-family: 'Inter', sans-serif; font-size: 0.72rem; font-weight: 600;
    color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1.6px;
    margin-bottom: 2.2rem; display: block;
}

.hero-statement {
    font-family: 'Cormorant Garamond', serif; font-weight: 500;
    font-size: 2.1rem; line-height: 1.32; letter-spacing: 0;
    color: var(--text-primary); max-width: 540px; margin-bottom: 1.8rem;
}

.hero-current {
    font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 2.5rem;
    display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
}
.hero-current-label {
    font-size: 0.68rem; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
    color: var(--accent-gold); border: 1px solid var(--glass-border);
    padding: 0.2rem 0.6rem; border-radius: 100px;
}

/* Hero CTA */
.hero-cta { display: flex; align-items: center; gap: 2rem; }
.socials { display: flex; gap: 0.75rem; }
.social-btn {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: var(--radius-lg);
    background: var(--bg-secondary); border: 1px solid rgba(0,0,0,0.07);
    font-size: 1.2rem; color: var(--text-secondary); box-shadow: var(--shadow-sm); transition: var(--transition);
}
.social-btn:hover { background: var(--text-primary); color: var(--bg-secondary); transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }

/* Hero visual */
.hero-visual { flex: 0 0 400px; position: relative; }
.photo-wrap { position: relative; }
.photo-ring {
    position: absolute; inset: -14px; border-radius: calc(var(--radius-lg) + 14px);
    border: 1px solid var(--accent-gold); opacity: 0.4; pointer-events: none;
}
.photo-ring.r2 { display: none; }
.photo-dots {
    position: absolute; width: 90px; height: 90px; bottom: -28px; right: -28px;
    background-image: radial-gradient(circle, rgba(20,33,61,0.4) 1.5px, transparent 1.5px);
    background-size: 11px 11px; z-index: 1; pointer-events: none;
}
.hero-photo { width: 100%; height: auto; border-radius: var(--radius-lg); object-fit: cover; box-shadow: var(--shadow-md); display: block; position: relative; z-index: 0; filter: grayscale(0.15); }
.photo-glow { display: none; }

/* Scroll hint */
.hero-scroll-hint {
    display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
    padding-bottom: 1.25rem; color: var(--text-secondary); font-size: 0.72rem;
    font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
    cursor: pointer; transition: var(--transition);
}
.hero-scroll-hint:hover { color: var(--accent-gold); }
.scroll-chevron { animation: bounceY 1.8s ease-in-out infinite; font-size: 1rem; color: var(--accent-gold); }
@keyframes bounceY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

/* ── Now Card ── */
.now-card { max-width: 1240px; margin: 2rem auto 0; padding: 2rem 2.5rem; }
.now-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.now-dot { width: 10px; height: 10px; background: var(--accent-olive); border-radius: 50%; box-shadow: 0 0 0 3px rgba(var(--accent-olive-rgb),0.2); flex-shrink: 0; animation: nowGlow 2s ease-in-out infinite; }
@keyframes nowGlow { 0%,100% { box-shadow: 0 0 0 3px rgba(var(--accent-olive-rgb),0.2); } 50% { box-shadow: 0 0 0 7px rgba(var(--accent-olive-rgb),0.08); } }
.now-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--text-primary); }
.now-updated { margin-left: auto; font-size: 0.73rem; color: var(--text-secondary); opacity: 0.55; }
.now-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.now-item { display: flex; align-items: flex-start; gap: 0.75rem; }
.now-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 0.05rem; }
.now-k { display: block; font-size: 0.67rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-secondary); opacity: 0.65; margin-bottom: 0.2rem; }
.now-focus { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--glass-border); }
.now-focus .now-k { margin-bottom: 0.6rem; }
.now-focus .sk-chips { font-size: 0.88rem; line-height: 1.9; }
.now-v { display: block; font-size: 0.9rem; color: var(--text-primary); line-height: 1.5; }

/* ── Story ── */
.story-layout { max-width: 1160px; margin: 0 auto; display: flex; flex-direction: column; gap: 2rem; }

/* Story Timeline */
.story-timeline { position: relative; max-width: 720px; margin: 0 auto; padding-left: 2.5rem; }
.story-timeline::before { content: ''; position: absolute; left: 7px; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, transparent, var(--accent-gold) 4%, var(--accent-gold) 96%, transparent); }
.tl-item { position: relative; margin-bottom: 1.75rem; opacity: 0; transform: translateX(-18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.tl-item.tl-visible { opacity: 1; transform: translateX(0); }
.tl-dot { position: absolute; left: -2.5rem; top: 1.5rem; width: 14px; height: 14px; background: var(--accent-gold); border-radius: 50%; border: 3px solid var(--bg-primary); box-shadow: 0 0 0 2px var(--accent-gold); z-index: 1; }
.tl-card { padding: 1.5rem 1.75rem; }
.tl-year { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 0.45rem; }
.tl-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.tl-card p { font-size: 0.93rem; color: var(--text-secondary); line-height: 1.75; margin: 0; }
.tl-card strong { color: var(--text-primary); font-weight: 700; }
.tl-dot-now { background: var(--accent-olive); box-shadow: 0 0 0 2px var(--accent-olive); animation: nowDotPulse 2s ease-in-out infinite; }
@keyframes nowDotPulse { 0%,100% { box-shadow: 0 0 0 2px rgba(var(--accent-olive-rgb),0.5); } 50% { box-shadow: 0 0 0 6px rgba(var(--accent-olive-rgb),0.12); } }
.tl-year-now { color: var(--accent-olive); }
.tl-card-now { border-top: 2px solid rgba(var(--accent-olive-rgb),0.4); }

/* Case Study grid */
.proj-summary { color: var(--text-secondary); font-size: 0.97rem; line-height: 1.75; margin: 0 0 0.25rem; }
.cs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; margin-top: 1.1rem; }
.cs-block { padding: 0.9rem 1rem; border-radius: var(--radius-lg); background: rgba(28,27,23,0.03); border: 1px solid rgba(0,0,0,0.06); }
.cs-label { display: inline-block; font-size: 0.63rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 0.45rem; color: var(--text-secondary); opacity: 0.85; }
.cs-impact .cs-label { color: var(--accent-gold); opacity: 1; }
.cs-block p { font-size: 0.83rem; color: var(--text-secondary); line-height: 1.65; margin: 0; }
.cs-arch-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; font-size: 0.78rem; color: var(--text-secondary); }
.arch-sep { color: var(--accent-gold); opacity: 0.55; font-size: 0.62rem; }
.cs-metrics { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-top: 0.2rem; }
.cs-metric { text-align: center; }
.m-val { display: block; font-size: 1.25rem; font-weight: 600; color: var(--accent-gold); line-height: 1; font-family: 'Cormorant Garamond', serif; }
.m-desc { display: block; font-size: 0.68rem; color: var(--text-secondary); margin-top: 0.2rem; }

.story-pillars { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem; }
.story-pillar-card { padding: 2.5rem 2rem; text-align: center; }
.story-pillar-card .pillar-icon { font-size: 2rem; margin-bottom: 1rem; }
.story-pillar-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.9rem; }
.story-pillar-card p { font-size: 0.93rem; color: var(--text-secondary); line-height: 1.75; }
.story-belief-card { padding: 2.5rem 2rem; border-top: 3px solid var(--accent-gold); }
.story-belief-card blockquote { font-family: 'Cormorant Garamond', serif; font-size: 1rem; font-weight: 700; line-height: 1.65; color: var(--text-primary); font-style: italic; }

/* ── About ── */
.about-editorial {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 4rem;
    max-width: 1240px; margin: 0 auto;
}
.ab-statement { display: flex; flex-direction: column; }
.ab-statement h3 {
    font-size: 2.1rem; font-weight: 500; line-height: 1.28; margin-bottom: 3rem;
    position: sticky; top: calc(var(--nav-height) + 2rem);
}
.ab-supporting p { font-size: 1.02rem; color: var(--text-secondary); margin-bottom: 1.3rem; line-height: 1.85; }
.ab-supporting p:last-of-type { margin-bottom: 0; }
.ab-supporting a { color: var(--accent-gold); border-bottom: 1px solid var(--accent-gold); }

.ab-credentials {
    display: flex; flex-direction: column; gap: 1.85rem;
    padding-top: 2rem; border-top: 1px solid var(--glass-border);
}
.ab-cred { display: flex; flex-direction: column; gap: 0.4rem; }
.ab-cred-k { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.4px; color: var(--text-secondary); opacity: 0.75; }
.ab-cred-v { font-size: 1rem; font-weight: 600; color: var(--text-primary); }

.quote-mark { font-family: 'Cormorant Garamond', serif; font-size: 5rem; color: var(--accent-gold); opacity: 0.55; line-height: 0.8; margin-bottom: 0.5rem; }

/* ── Experience (connected timeline) ── */
.ar-list { max-width: 1000px; margin: 0 auto; position: relative; padding-left: 2.25rem; }
.ar-list::before {
    content: ''; position: absolute; left: 5px; top: 0.6rem; bottom: 0.6rem; width: 1px;
    background: linear-gradient(180deg, var(--accent-gold) 0%, var(--glass-border) 18%, var(--glass-border) 100%);
}
.ar-entry {
    position: relative;
    display: grid; grid-template-columns: 120px 1fr; gap: 2.5rem;
    padding: 2.25rem 0;
    transition: var(--transition);
}
.ar-entry:first-child { padding-top: 0.25rem; }
.ar-entry:last-child { padding-bottom: 0.25rem; }
.ar-dot {
    position: absolute; left: -2.25rem; top: 0.4rem;
    width: 11px; height: 11px; border-radius: 50%;
    background: var(--bg-primary); border: 2px solid var(--glass-border);
    transition: var(--transition); z-index: 1;
}
.ar-entry--current .ar-dot {
    background: var(--accent-gold); border-color: var(--accent-gold);
    box-shadow: 0 0 0 4px var(--accent-gold-light);
}
.ar-year {
    font-size: 0.78rem; font-weight: 600; letter-spacing: 0.8px;
    color: var(--text-secondary); padding-top: 0.2rem; transition: var(--transition);
}
.ar-entry--current .ar-year { color: var(--accent-gold); font-weight: 700; }
.ar-body h3 { font-size: 1.35rem; margin-bottom: 0.4rem; }
.ar-co { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 0.3rem; }
.ar-co a { color: var(--text-secondary); border-bottom: 1px solid var(--glass-border); }
.ar-co a:hover { color: var(--accent-gold); border-color: var(--accent-gold); }
.ar-meta { font-size: 0.7rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-secondary); opacity: 0.85; margin-bottom: 1rem; }
.ar-desc { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.8; max-width: 620px; margin-bottom: 1.1rem; }
.ar-bullets { list-style: disc; padding-left: 1.1rem; max-width: 620px; margin-bottom: 1.1rem; }
.ar-bullets li { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 0.3rem; }
.ar-bullets li::marker { color: var(--accent-gold); }
.ar-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ar-tags span { font-size: 0.72rem; font-weight: 600; color: var(--text-secondary); border: 1px solid var(--glass-border); padding: 0.22rem 0.65rem; border-radius: 3px; }

/* ── Skills (editorial list) ── */
.skills-editorial { max-width: 980px; margin: 0 auto; }
.sk-group {
    display: grid; grid-template-columns: 140px 1fr; gap: 2.25rem;
    padding: 1.6rem 0;
    border-top: 1px solid var(--glass-border);
}
.sk-group:first-child { border-top: none; padding-top: 0; }
.sk-group:last-child { padding-bottom: 0; }
.sk-group h4 { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.6px; color: var(--text-secondary); padding-top: 0.25rem; }
.sk-chips { font-size: 1.02rem; line-height: 1.95; color: var(--text-primary); }
.sk-chips span { transition: color 0.25s ease; cursor: default; }
.sk-chips span:hover { color: var(--accent-gold); }
.sk-chips span:not(:first-child)::before {
    content: '·';
    display: inline-block;
    margin: 0 0.8em 0 0;
    color: var(--text-secondary);
    opacity: 0.4;
    font-weight: 400;
}
@media (max-width: 640px) {
    .sk-group { grid-template-columns: 1fr; gap: 0.6rem; }
}

/* ── Education ── */
.edu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.edu-card { padding: 2.5rem; display: flex; align-items: flex-start; gap: 1.25rem; }
.edu-badge { font-size: 2rem; flex-shrink: 0; }
.edu-body {}
.edu-body h3 { font-size: 1.05rem; margin-bottom: 0.6rem; line-height: 1.4; }
.edu-inst { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 1rem; line-height: 1.5; display: block; }
.edu-year { font-size: 0.78rem; font-weight: 600; color: var(--text-secondary); border: 1px solid var(--glass-border); padding: 0.3rem 0.9rem; border-radius: var(--radius-md); display: inline-block; }

/* ── Awards ── */
.awards-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; max-width: 1260px; margin: 0 auto; }
.award-card { padding: 3.5rem 3rem; text-align: center; }
.award-card::before { content: ''; position: absolute; top: 0; left: 15%; right: 15%; height: 3px; background: linear-gradient(90deg, transparent, var(--accent-gold), transparent); border-radius: 0 0 4px 4px; }
.award-top { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.award-emoji { font-size: 2.8rem; }
.award-times { font-family: 'Cormorant Garamond', serif; font-size: 1.9rem; font-weight: 600; color: var(--accent-gold); background: var(--accent-gold-light); border: 1px solid rgba(20,33,61,0.22); padding: 0.2rem 0.9rem; border-radius: var(--radius-md); }
.award-card h3 { font-size: 1.45rem; margin-bottom: 0.8rem; }
.award-card p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.65; }

/* ── Projects ── */
.projects-stack { display: flex; flex-direction: column; gap: 2.5rem; max-width: 1200px; margin: 0 auto; }
.project-card { display: flex; overflow: hidden; padding: 0; }
.project-img-wrap { flex: 0 0 44%; overflow: hidden; background: var(--bg-primary); min-height: 300px; position: relative; }
.project-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); display: block; }
.project-card:hover .project-img-wrap img { transform: scale(1.06); }
.proj-num {
    position: absolute; top: 1.25rem; left: 1.25rem; z-index: 2;
    font-family: 'Cormorant Garamond', serif; font-size: 2.3rem; font-weight: 500;
    color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,0.55); line-height: 1;
}
.proj-num--flagship {
    position: static; display: block; font-size: 3.6rem; font-weight: 500;
    color: var(--accent-gold); text-shadow: none; margin-bottom: 0.3rem;
}

/* Flagship project card (SARA) */
.project-card--flagship { border-color: var(--accent-gold); padding: 0; }
.project-body--full { padding: 3.2rem 3.5rem; justify-content: flex-start; }
.proj-subtitle { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 1rem; }
.proj-status {
    display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
    color: var(--accent-gold); border: 1px solid var(--glass-border); padding: 0.25rem 0.7rem;
    border-radius: 100px; margin-bottom: 1.4rem;
}
.proj-summary--lg { font-size: 1.02rem; max-width: 760px; margin-bottom: 0.5rem; }

/* Client work (confidential, no case-study page) */
.projects-compact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.project-card--compact { display: block; padding: 2.5rem; }
.proj-num--compact {
    position: static; display: block; font-family: 'Cormorant Garamond', serif;
    font-size: 1.9rem; font-weight: 500; color: var(--accent-gold); margin-bottom: 0.2rem;
}
.project-card--compact h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.proj-status--muted {
    color: var(--text-secondary); border-color: var(--glass-border);
    font-weight: 600; margin-bottom: 1rem;
}
.project-card--compact .proj-summary { margin-bottom: 1.1rem; }
.proj-img-overlay {
    position: absolute; inset: 0; background: rgba(28,27,23,0.6);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.35s ease;
}
.project-card:hover .proj-img-overlay { opacity: 1; }
.overlay-link {
    display: inline-flex; align-items: center; gap: 0.5rem;
    color: #fff; font-weight: 700; font-size: 0.9rem;
    border: 2px solid rgba(255,255,255,0.5); padding: 0.6rem 1.25rem;
    border-radius: var(--radius-lg); transition: var(--transition);
}
.overlay-link:hover { border-color: var(--accent-gold); color: var(--accent-gold); }
.project-body { padding: 2.8rem 3.2rem; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.project-body-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.75rem; }
.project-body-top h3 { font-size: 1.55rem; }
.proj-ext-link { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--radius-lg); border: 1px solid rgba(0,0,0,0.08); color: var(--text-secondary); font-size: 1rem; transition: var(--transition); flex-shrink: 0; }
@media (max-width: 768px) {
    .proj-ext-link { width: 44px; height: 44px; }
}
.proj-ext-link:hover { background: var(--accent-gold); color: #fff; border-color: var(--accent-gold); transform: translateY(-2px); }
.proj-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }
.proj-tags span { background: rgba(28,27,23,0.05); color: var(--text-secondary); padding: 0.28rem 0.75rem; border-radius: var(--radius-md); font-size: 0.75rem; font-weight: 600; }
.project-body p { color: var(--text-secondary); font-size: 0.97rem; line-height: 1.78; }

/* Home-page project teaser (deep-dive lives on its own page) */
.proj-case-link {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.82rem; font-weight: 700; letter-spacing: 0.4px;
    color: var(--accent-gold); margin-top: 0.5rem;
}
.proj-case-link i { transition: transform 0.25s var(--ease); }
.project-card:hover .proj-case-link i { transform: translate(3px, -3px); }

/* ── Case Study Page (dedicated project/ABM landing pages) ── */
.cs-back {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.78rem; font-weight: 600; color: var(--text-secondary);
    max-width: 860px; margin: 6.5rem auto 2.5rem;
}
.cs-back:hover { color: var(--accent-gold); }
.cs-hero { max-width: 860px; margin: 0 auto; padding-bottom: 3rem; }
.cs-hero h1 { font-size: 3.6rem; margin: 0.9rem 0 0.35rem; }
.cs-hero-sub { font-size: 1.05rem; color: var(--text-secondary); margin-bottom: 1.75rem; }
.cs-hero-lede {
    font-family: 'Cormorant Garamond', serif; font-weight: 500;
    font-size: 1.7rem; line-height: 1.42; color: var(--text-primary); margin-bottom: 2.25rem;
}
.cs-hero-meta {
    display: flex; flex-wrap: wrap; padding-top: 1.75rem; border-top: 1px solid var(--glass-border);
}
.cs-meta-item {
    display: flex; flex-direction: column; gap: 0.3rem;
    padding-right: 2.25rem; margin-right: 2.25rem; border-right: 1px solid var(--glass-border);
}
.cs-meta-item:last-child { border-right: none; padding-right: 0; margin-right: 0; }
.cs-meta-k { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.4px; color: var(--text-secondary); opacity: 0.75; }
.cs-meta-v { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }
.cs-meta-v a { color: var(--accent-gold); }

.cs-narrative { max-width: 860px; margin: 0 auto; padding: 1rem 0 4rem; border-top: 1px solid var(--glass-border); }
.cs-narrative p { font-size: 1.04rem; color: var(--text-secondary); line-height: 1.9; margin-bottom: 1.4rem; max-width: 700px; }
.cs-narrative p:first-child {
    padding-top: 3rem; font-family: 'Cormorant Garamond', serif; font-size: 1.2rem;
    color: var(--text-primary); line-height: 1.7;
}
.cs-pullquote {
    font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 500;
    font-size: 1.65rem; line-height: 1.5; color: var(--text-primary); max-width: 720px;
    padding: 0.2rem 0 0.2rem 1.75rem; margin: 2.75rem 0; border-left: 2px solid var(--accent-gold);
}
.cs-narrative .proj-tags { margin-top: 0.5rem; }

.cs-section-title { font-family: 'Inter', sans-serif; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.6px; color: var(--accent-gold); max-width: 860px; margin: 0 auto 2.25rem; line-height: 1.4; }

/* Connected process flow: Challenge → Approach → Architecture → Outcome */
.cs-flow { position: relative; max-width: 860px; margin: 0 auto; padding-left: 3.25rem; padding-bottom: 4rem; }
.cs-flow::before {
    content: ''; position: absolute; left: 1.1rem; top: 0.5rem; bottom: 2.5rem; width: 1px;
    background: linear-gradient(180deg, var(--glass-border) 0%, var(--glass-border) 85%, var(--accent-gold) 100%);
}
.cs-flow-step { position: relative; padding-bottom: 3rem; }
.cs-flow-step:last-child { padding-bottom: 0; }
.cs-flow-num {
    position: absolute; left: -3.25rem; top: -0.15rem;
    width: 2.3rem; height: 2.3rem; border-radius: 50%;
    background: var(--bg-secondary); border: 1px solid var(--glass-border);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Cormorant Garamond', serif; font-size: 0.95rem; font-weight: 600; color: var(--text-secondary);
}
.cs-flow-step:last-child .cs-flow-num { border-color: var(--accent-gold); color: var(--accent-gold); background: var(--accent-gold-light); }
.cs-flow-step p { font-size: 0.98rem; color: var(--text-secondary); line-height: 1.85; max-width: 620px; }
.cs-flow-step .cs-arch-flow { font-size: 0.86rem; margin-top: 0.25rem; }
.cs-flow-step .cs-metrics { margin-top: 0.75rem; }

/* Legacy grid (still used by Web Scraping Pipeline / Digital Menucard / Chemistry Lab LMS) */
.cs-full-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 860px; margin: 0 auto; padding-bottom: 4rem; }
.cs-block--lg { padding: 1.75rem 2rem; }
.cs-block--lg p { font-size: 0.95rem; }
.cs-block--lg .cs-arch-flow { font-size: 0.85rem; }
.cs-block--full { grid-column: 1 / -1; }

.cs-cta { text-align: center; padding: 4.5rem 0 6rem; border-top: 1px solid var(--glass-border); max-width: 640px; margin: 0 auto; }
.cs-cta h2 { font-size: 2rem; margin-bottom: 1rem; }
.cs-cta p { color: var(--text-secondary); margin-bottom: 2.25rem; line-height: 1.75; }
.cs-cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Impact: "What Changed Because I Worked On It" ── */
.wc-intro, .ph-intro { max-width: 640px; margin: 0 0 3rem; font-size: 1.08rem; color: var(--text-secondary); line-height: 1.75; font-style: italic; }
.wc-list { max-width: 860px; margin: 0 auto; }
.wc-item { display: grid; grid-template-columns: 90px 1fr; gap: 2rem; padding: 3rem 0; border-top: 1px solid var(--glass-border); }
.wc-item:first-child { border-top: none; padding-top: 0.5rem; }
.wc-item:last-child { padding-bottom: 1rem; }
.wc-num { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 600; color: var(--accent-gold); padding-top: 0.15rem; }
.wc-body h3 { font-size: 1.6rem; margin-bottom: 1.5rem; }
.wc-body h3 a { color: var(--text-primary); border-bottom: 1px solid var(--glass-border); transition: border-color 0.2s ease, color 0.2s ease; }
.wc-body h3 a:hover { color: var(--accent-gold); border-color: var(--accent-gold); }
.wc-body > p { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.75; margin-bottom: 0.85rem; max-width: 700px; }
.wc-body > p:last-child { margin-bottom: 0; }
.wc-body > p strong { color: var(--text-primary); font-weight: 700; }
.wc-body > p a { color: var(--accent-gold); border-bottom: 1px solid rgba(20,33,61,0.25); }
.wc-body > p a:hover { border-color: var(--accent-gold); }
.wc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.wc-grid p { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.75; }
.wc-closing {
    max-width: 640px; margin: 1rem auto 0; padding-top: 3rem;
    border-top: 1px solid var(--glass-border);
    text-align: center; font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem; font-style: italic; font-weight: 500;
    color: var(--text-primary); line-height: 1.6;
}

/* ── Philosophy: "How I Think About Systems" ── */
.ph-list { max-width: 860px; margin: 0 auto; }
.ph-item { display: grid; grid-template-columns: 70px 1fr; gap: 1.75rem; padding: 3.5rem 0; border-top: 1px solid var(--glass-border); transition: opacity 0.3s ease; }
.ph-item:first-child { border-top: none; padding-top: 0.5rem; }
.ph-item:last-child { padding-bottom: 1rem; }
.ph-num { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 600; color: var(--text-secondary); padding-top: 0.3rem; transition: color 0.3s ease; }
.ph-item:hover .ph-num { color: var(--accent-gold); }
.ph-body h3 { font-size: 2.1rem; line-height: 1.3; margin-bottom: 1rem; max-width: 640px; }
.ph-lead { font-size: 1.05rem; font-weight: 600; color: var(--text-primary); line-height: 1.6; margin-bottom: 0.85rem; max-width: 560px; }
.ph-text { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.75; max-width: 560px; }

@media (max-width: 780px) {
    .wc-item, .ph-item { grid-template-columns: 1fr; gap: 0.75rem; }
    .wc-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .ph-body h3 { font-size: 1.6rem; }
}

/* ── Featured Posts ── */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.more-writing { max-width: 860px; margin: 3rem auto 0; padding-top: 2rem; border-top: 1px solid var(--glass-border); }
.more-writing-list { display: flex; flex-direction: column; gap: 0; }
.more-writing-list a {
    font-size: 0.95rem; color: var(--text-secondary);
    padding: 0.75rem 0; border-bottom: 1px solid var(--glass-border);
    transition: color 0.2s ease;
}
.more-writing-list a:last-child { border-bottom: none; }
.more-writing-list a:hover { color: var(--accent-gold); }
.more-writing-list a::after { content: ' →'; }

.post-card {
    padding: 0; display: flex; flex-direction: column;
    text-decoration: none; color: inherit; overflow: hidden;
    border-top: 3px solid transparent; transition: var(--transition);
}
.post-card:hover { border-top-color: #0077B5; transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.post-card--featured { border-top-color: var(--accent-gold); }
.post-card--featured:hover { border-top-color: var(--accent-gold); box-shadow: 0 20px 48px rgba(20,33,61,0.18); }

/* Post image area */
.post-img-wrap {
    position: relative; height: 210px; overflow: hidden;
    display: flex; align-items: flex-end; padding: 1rem;
}
.post-img-wrap .pc-slide {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; transition: opacity 0.6s ease, transform 0.6s var(--ease);
    opacity: 0;
}
.post-img-wrap .pc-slide.active { opacity: 1; }
.post-card:hover .post-img-wrap .pc-slide.active { transform: scale(1.04); }

/* Carousel dots */
.pc-dots {
    position: absolute; bottom: 0.65rem; left: 50%; transform: translateX(-50%);
    display: flex; gap: 5px; z-index: 3;
}
.pc-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: rgba(255,255,255,0.4); transition: background 0.3s, transform 0.3s;
    cursor: pointer;
}
.pc-dot.active { background: #fff; transform: scale(1.35); }

/* Carousel prev/next buttons */
.pc-prev, .pc-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 30px; height: 30px; border-radius: 50%;
    background: rgba(0,0,0,0.45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff; font-size: 0.75rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 4;
    opacity: 0; transition: opacity 0.25s ease, background 0.2s;
    pointer-events: none;
}
.pc-prev { left: 0.6rem; }
.pc-next { right: 0.6rem; }
.pc-prev:hover, .pc-next:hover { background: rgba(0,0,0,0.7); }
.post-img-wrap:hover .pc-prev,
.post-img-wrap:hover .pc-next { opacity: 1; pointer-events: auto; }
@media (max-width: 768px) {
    .pc-prev, .pc-next { opacity: 0.8; pointer-events: auto; width: 44px; height: 44px; font-size: 0.9rem; }
}

/* Gradient overlay on image */
.post-img-wrap::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(20,18,14,0.7) 0%, transparent 60%);
    z-index: 1;
}

/* Fallback gradients when no image */
.post-img--academic { background: linear-gradient(135deg, #3B2740, #6B4A73); }
.post-img--life     { background: linear-gradient(135deg, #1F4A45, #3E7A6E); }
.post-img--culture  { background: linear-gradient(135deg, #1F3D1B, var(--accent-olive)); }
.post-img--milestone{ background: linear-gradient(135deg, #5C3D14, #A9832E); }
.post-img--career   { background: linear-gradient(135deg, #1C1B17, #6B4A32); }
.post-img--writing  { background: linear-gradient(135deg, #3D1F1F, #7A3B3B); }

/* Fallback emoji icon when no image */
.post-img--academic::before { content: '🎓'; }
.post-img--life::before     { content: '✈️'; }
.post-img--culture::before  { content: '🏢'; }
.post-img--milestone::before{ content: '🏆'; }
.post-img--career::before   { content: '💼'; }
.post-img--writing::before  { content: '✍️'; }
.post-img-wrap::before {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -60%);
    font-size: 3.5rem; opacity: 0.35; z-index: 0;
    pointer-events: none;
}
/* Hide pseudo emoji once real image loads */
.post-img-wrap img:not([style*="display: none"]) ~ * { }
.post-img-wrap:has(img:not([style*="display:none"]))::before { display: none; }

.post-tag {
    position: relative; z-index: 2;
    font-size: 0.68rem; font-weight: 700; letter-spacing: 0.8px;
    padding: 0.22rem 0.65rem; border-radius: 100px;
    border: 1px solid transparent;
}
.post-tag--academic { color: #D9C7DC; background: rgba(107,78,113,0.35); border-color: rgba(217,199,220,0.3); }
.post-tag--life     { color: #9FCFC2; background: rgba(62,122,110,0.35); border-color: rgba(159,207,194,0.3); }
.post-tag--culture  { color: #A8C79E; background: rgba(var(--accent-olive-rgb),0.35); border-color: rgba(168,199,158,0.3); }
.post-tag--milestone{ color: #E3CB94; background: rgba(20,33,61,0.35); border-color: rgba(227,203,148,0.3); }
.post-tag--career   { color: #D9BFA8; background: rgba(107,74,50,0.35); border-color: rgba(217,191,168,0.3); }
.post-tag--writing  { color: #E3B8B8; background: rgba(122,59,59,0.35); border-color: rgba(227,184,184,0.3); }

/* Post body */
.post-body { padding: 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.post-meta { display: flex; align-items: center; gap: 0.75rem; }
.post-date { font-size: 0.72rem; color: var(--text-secondary); font-weight: 600; }
.post-read { font-size: 0.72rem; color: var(--accent-gold); font-weight: 600; padding: 0.15rem 0.55rem; background: var(--accent-gold-light); border-radius: var(--radius-md); }

.post-title { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 600; line-height: 1.3; }

.post-excerpt { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.72; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

.post-footer {
    display: flex; align-items: center; gap: 0.75rem;
    padding-top: 0.85rem; border-top: 1px solid rgba(0,0,0,0.05); margin-top: auto;
}
.post-likes { font-size: 0.78rem; font-weight: 600; color: var(--text-secondary); }
.post-li-logo { font-size: 0.78rem; font-weight: 700; color: #0077B5; margin-left: auto; display: flex; align-items: center; gap: 0.35rem; }
.post-med-logo { font-size: 0.78rem; font-weight: 700; color: var(--text-secondary); margin-left: auto; display: flex; align-items: center; gap: 0.35rem; }
.post-ext { color: #0077B5; font-size: 0.8rem; transition: var(--transition); }
.post-ext--neutral { color: var(--text-secondary); }
.post-card:hover .post-ext { transform: translate(3px,-3px); }
.post-card:hover .post-ext--neutral { color: var(--accent-gold); }

/* ── Contact ── */
.contact-split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.contact-heading { font-size: 2.8rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.3px; margin-bottom: 1rem; }
.gold-em { color: var(--accent-gold); font-style: normal; }
.contact-sub { font-size: 1rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 2rem; }
.contact-links { display: flex; flex-direction: column; gap: 0.75rem; }
.clink {
    display: flex; align-items: center; gap: 1rem;
    padding: 1rem 1.25rem; border-radius: var(--radius-md);
    border: 1px solid rgba(0,0,0,0.06);
    background: var(--bg-secondary); transition: var(--transition);
}
.clink:hover { border-color: rgba(20,33,61,0.3); transform: translateX(6px); box-shadow: var(--shadow-sm); }
.clink-icon { width: 36px; height: 36px; border-radius: var(--radius-lg); background: var(--accent-gold-light); display: flex; align-items: center; justify-content: center; color: var(--accent-gold); font-size: 1rem; flex-shrink: 0; }
.clink-text { flex: 1; font-size: 0.9rem; font-weight: 600; color: var(--text-secondary); }
.clink-arrow { color: var(--text-secondary); opacity: 0.4; font-size: 0.85rem; transition: var(--transition); }
.clink:hover .clink-arrow { opacity: 1; color: var(--accent-gold); transform: translate(3px, -3px); }

.contact-right { padding: 3.5rem; display: flex; flex-direction: column; position: relative; overflow: visible; }
.contact-right-inner { position: relative; z-index: 1; }
.cr-tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--accent-gold); margin-bottom: 0.75rem; display: block; }
.cr-head { font-size: 2rem; margin-bottom: 0.75rem; }
.cr-sub { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.65; margin-bottom: 2rem; }
.cr-deco {
    position: absolute; bottom: 1.5rem; right: 2rem;
    font-size: 9rem; line-height: 1; color: var(--accent-gold); opacity: 0.05;
    font-family: serif; pointer-events: none; user-select: none;
}

/* ── Publications ── */
.pub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.pub-card {
    padding: 2rem; display: flex; flex-direction: column; gap: 0.75rem;
    text-decoration: none; color: inherit;
    border-top: 3px solid transparent;
    transition: var(--transition);
}
.pub-card:hover { border-top-color: var(--accent-gold); transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.pub-top { display: flex; justify-content: space-between; align-items: center; }
.pub-badge {
    font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px;
    color: var(--accent-gold); background: var(--accent-gold-light);
    border: 1px solid rgba(20,33,61,0.25); padding: 0.2rem 0.65rem; border-radius: 100px;
}
.pub-date { font-size: 0.75rem; color: var(--text-secondary); font-weight: 600; }
.pub-card h3 { font-size: 1rem; line-height: 1.45; }
.pub-card p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7; flex: 1; }
.pub-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 0.75rem; border-top: 1px solid rgba(0,0,0,0.05); }
.pub-journal { font-size: 0.78rem; font-weight: 700; color: var(--text-secondary); font-style: italic; }
.pub-arrow { color: var(--text-secondary); font-size: 0.85rem; transition: var(--transition); }
.pub-card:hover .pub-arrow { color: var(--accent-gold); transform: translate(3px,-3px); }

/* ── Certifications ── */
.cert-row { margin-top: 2.5rem; }
.cert-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--accent-gold); margin-bottom: 1rem; }
.cert-chips { display: flex; flex-wrap: wrap; gap: 1rem; }
.cert-chip { display: flex; align-items: center; gap: 0.85rem; padding: 1rem 1.5rem; border-radius: var(--radius-md); flex: 0 1 auto; }
.cert-icon { font-size: 1.5rem; flex-shrink: 0; }
.cert-name { display: block; font-size: 0.9rem; font-weight: 700; color: var(--text-primary); }
.cert-issuer { display: block; font-size: 0.75rem; color: var(--text-secondary); margin-top: 0.15rem; }

/* ── Education CGPA ── */
.edu-cgpa { display: inline-block; font-size: 0.75rem; font-weight: 700; color: var(--accent-olive); background: rgba(var(--accent-olive-rgb),0.1); border: 1px solid rgba(var(--accent-olive-rgb),0.22); padding: 0.2rem 0.65rem; border-radius: var(--radius-md); margin-top: 0.5rem; }

/* ── Hero photo fallback ── */
.photo-wrap.photo-fallback {
    min-width: 280px; min-height: 320px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--accent-gold-light), rgba(20,33,61,0.08));
    border: 2px solid rgba(20,33,61,0.25);
    display: flex; align-items: center; justify-content: center;
}
.photo-wrap.photo-fallback::after {
    content: 'S.R';
    font-family: 'Cormorant Garamond', serif; font-size: 5rem; font-weight: 700;
    color: var(--accent-gold); letter-spacing: 2px; opacity: 0.6;
}

/* ── Mobile nav active ── */
.mobile-nav .mobile-link.active { background: var(--accent-gold-light); color: var(--text-primary); padding-left: 1.5rem; border-left: 3px solid var(--accent-gold); }

/* ── Footer ── */
footer { padding: 4.5rem 2rem 2.5rem; margin-top: 2rem; border-top: 1px solid var(--glass-border); }
.footer-inner { max-width: 1400px; margin: 0 auto; }
.footer-statement {
    font-family: 'Cormorant Garamond', serif; font-weight: 500; font-style: italic;
    font-size: 1.7rem; color: var(--text-primary); text-align: center;
    max-width: 640px; margin: 0 auto 3rem; line-height: 1.4;
}
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center; gap: 2rem;
    padding-bottom: 2rem; border-bottom: 1px solid var(--glass-border);
}
.footer-id { display: flex; flex-direction: column; gap: 0.3rem; }
.footer-name { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-weight: 600; color: var(--text-primary); }
.footer-title { font-size: 0.75rem; color: var(--text-secondary); letter-spacing: 0.4px; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem 1.75rem; margin-top: 2rem; padding-top: 1.75rem; border-top: 1px solid var(--glass-border); }
.footer-links a { font-size: 0.78rem; font-weight: 600; color: var(--text-secondary); transition: color 0.2s ease; }
.footer-links a:hover { color: var(--accent-gold); }
.footer-copy { color: var(--text-secondary); font-size: 0.8rem; text-align: center; margin-top: 1.75rem; }
.footer-socials { display: flex; gap: 0.75rem; }
.footer-socials a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--radius-lg); background: var(--bg-secondary); border: 1px solid rgba(0,0,0,0.06); color: var(--text-secondary); font-size: 1rem; transition: var(--transition); }
.footer-socials a:hover { background: var(--text-primary); color: var(--bg-secondary); border-color: transparent; transform: translateY(-2px); }

/* ── Scroll-to-top ── */
.scroll-top { position: fixed; bottom: 2rem; right: 2rem; width: 44px; height: 44px; border-radius: 50%; background: var(--bg-primary); color: var(--accent-gold); border: 1.5px solid var(--accent-gold); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; box-shadow: var(--shadow-sm); transition: var(--transition); opacity: 0; transform: translateY(16px); pointer-events: none; z-index: 900; }
.scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.scroll-top:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* ── Fade-in-up (scroll sections) ── */
.fade-in-up { opacity: 0; transform: translateY(30px); transition: opacity 0.75s ease, transform 0.75s ease; }
.fade-in-up.visible { opacity: 1; transform: translateY(0); }

/* ── Typewriter cursor ── */
.typing-active::after { content: '|'; display: inline-block; color: var(--accent-gold); margin-left: 2px; animation: blink 0.8s step-end infinite; }
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0; } }

/* ══════════════════════════════
   Responsive
══════════════════════════════ */
@media (max-width: 1024px) {
    .story-narrative { padding: 2.5rem; }
    .story-pillars { grid-template-columns: 1fr; }
    .about-editorial { grid-template-columns: 1fr; gap: 1.75rem; }
    .ab-statement h3 { position: static; font-size: 1.8rem; }
    .now-grid { grid-template-columns: 1fr; }
    .cs-grid { grid-template-columns: 1fr; }
    .cs-full-grid { grid-template-columns: 1fr; }
    .cs-flow { padding-left: 2.75rem; }
    .cs-flow-num { left: -2.75rem; width: 2rem; height: 2rem; font-size: 0.85rem; }
    .cs-hero h1 { font-size: 2.8rem; }
    .cs-meta-item { padding-right: 1.25rem; margin-right: 1.25rem; }
}

@media (max-width: 992px) {
    .hero-content { flex-direction: column-reverse; text-align: center; padding-top: 3rem; gap: 3.5rem; }
    .hero-text .hero-statement { margin-left: auto; margin-right: auto; }
    .hero-current { justify-content: center; }
    .hero-cta { justify-content: center; }
    .availability-chip { margin: 0 auto 1.5rem; }
    .hero-visual { flex: 0 0 280px; }

    .ar-entry { grid-template-columns: 1fr; gap: 0.5rem; }

    .project-card { flex-direction: column; }
    .project-img-wrap { flex: 0 0 240px; }
    .projects-compact-grid { grid-template-columns: 1fr; }

    .awards-row { grid-template-columns: 1fr; max-width: 480px; }
    .pub-grid { grid-template-columns: 1fr; }
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-split { grid-template-columns: 1fr; }
    .contact-heading { font-size: 2.2rem; }
}

/* Switches to the mobile hamburger nav wide enough to cover phone landscape
   widths too (up to ~932px), since the desktop dropdowns rely on :hover
   and are not usable on touch. */
@media (max-width: 950px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .mobile-overlay { display: block; }
}

@media (max-width: 768px) {
    .hero-name { font-size: 3.2rem; letter-spacing: -0.5px; }
    .hero-visual { flex: 0 0 240px; }
    .section-header h2 { font-size: 2rem; }

    .edu-grid { grid-template-columns: 1fr; }
    .pub-grid { grid-template-columns: 1fr; }
    .posts-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 1.25rem; }
    .footer-statement { font-size: 1.4rem; }

    section { padding: 42px 0; }
    .hero-statement { font-size: 1.7rem; }
    .project-img-wrap { min-height: 220px; }

    /* Carousel dots: expand invisible tap area without changing visual size */
    .pc-dot { padding: 8px; margin: -8px; box-sizing: content-box; background-clip: content-box; }
}

@media (max-width: 600px) {
    .hero-name { font-size: 2.8rem; letter-spacing: -1.5px; }
    .hero-visual { flex: 0 0 220px; }
}

@media (max-width: 480px) {
    .hero-name { font-size: 2.6rem; letter-spacing: -1.5px; }
    .hero-stats { gap: 1.2rem; }
    .hstat-n { font-size: 1.6rem; }
    .project-body { padding: 2rem 1.5rem; }
    .project-img-wrap { min-height: 180px; }
    .award-card { padding: 2rem; }
    .contact-right { padding: 2rem 1.5rem; }
    .contact-heading { font-size: 1.75rem; }
    .now-card { padding: 1.5rem; }
    .now-grid { gap: 0.75rem; }
    .story-timeline { padding-left: 2rem; }
    .skills-editorial { gap: 1rem; }

    /* Hero CTA — wrap buttons on narrow screens */
    .hero-cta { flex-wrap: wrap; gap: 0.75rem; }
    .hero-cta .btn { flex: 1 1 auto; min-width: 120px; text-align: center; }
    .socials { width: 100%; justify-content: center; }

    /* Toast — bump above floating buttons */
    .copy-toast { bottom: 5.5rem; max-width: 85vw; white-space: normal; text-align: center; }

    /* Preloader */
    .preloader-logo { font-size: 3.5rem; }

    /* Konami */
    .konami-box { padding: 2rem 1.5rem !important; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ══════════════════════════════════════════════════════
   AWARD CARD GLOW
   ══════════════════════════════════════════════════════ */
.award-card { transition: var(--transition); }
.award-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 0 1.5px var(--accent-gold), 0 24px 56px rgba(20,33,61,0.22);
}
.award-card:hover::before {
    background: linear-gradient(90deg, transparent, var(--accent-gold) 30%, var(--accent-gold) 70%, transparent);
    opacity: 1;
}

/* ══════════════════════════════════════════════════════
   CURRENTLY LEARNING BADGE
   ══════════════════════════════════════════════════════ */
.learning-badge {
    display: flex; width: fit-content; align-items: center; gap: 0.6rem;
    background: var(--glass-bg); border: 1.5px solid rgba(var(--accent-olive-rgb),0.3);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    padding: 0.5rem 1.2rem; border-radius: 30px;
    margin: 0 auto 2rem;
    font-size: 0.82rem;
}
.lb-dot {
    width: 8px; height: 8px; background: var(--accent-olive); border-radius: 50%; flex-shrink: 0;
    animation: nowGlow 2s ease-in-out infinite;
}
.lb-label { font-weight: 700; color: var(--accent-olive); }
.lb-sep   { color: var(--text-secondary); }
.lb-tech  { color: var(--text-secondary); }

/* ══════════════════════════════════════════════════════
   FLOATING HIRE ME PILL
   ══════════════════════════════════════════════════════ */
.hire-pill {
    position: fixed; bottom: 6.5rem; right: 2rem;
    background: var(--bg-primary); color: var(--accent-gold);
    border: 1.5px solid var(--accent-gold);
    font-weight: 600; font-size: 0.8rem; letter-spacing: 0.2px;
    padding: 0.55rem 1.35rem; border-radius: 30px;
    display: flex; align-items: center;
    box-shadow: var(--shadow-sm);
    transform: translateY(80px); opacity: 0;
    transition: transform 0.4s var(--ease), opacity 0.4s var(--ease), box-shadow 0.2s, background 0.2s, color 0.2s;
    z-index: 997; pointer-events: none;
    text-decoration: none;
}
.hire-pill.hire-visible { transform: translateY(0); opacity: 1; pointer-events: all; }
.hire-pill:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
@media (max-width: 480px) { .hire-pill { bottom: 5.25rem; right: 1rem; } }

/* ══════════════════════════════════════════════════════
   COPY TOAST
   ══════════════════════════════════════════════════════ */
.copy-toast {
    position: fixed; bottom: 2rem; left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--text-primary); color: var(--bg-primary);
    padding: 0.65rem 1.5rem; border-radius: 30px;
    font-size: 0.85rem; font-weight: 600;
    opacity: 0; pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s ease;
    z-index: 9996; white-space: nowrap;
}
.copy-toast.toast-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ── "Click to copy" hint on email ── */
.clink-copy-hint {
    font-size: 0.68rem; color: var(--accent-gold);
    opacity: 0; margin-left: auto;
    transition: opacity 0.2s;
}
#emailClink:hover .clink-copy-hint { opacity: 1; }
#emailClink:hover .clink-arrow { display: none; }

/* ══════════════════════════════════════════════════════
   HOBBIES / BEYOND WORK
   ══════════════════════════════════════════════════════ */
.hobbies-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    max-width: 1000px;
    margin: 0 auto;
}
.hb-music { grid-column: span 2; }

.hb-card {
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: var(--transition);
}
.hb-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.hb-icon { font-size: 2rem; line-height: 1; }
.hb-card h3 { font-size: 1.15rem; margin: 0; }
.hb-card p  { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.65; margin: 0; }

.hb-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.25rem; }
.hb-tags span {
    font-size: 0.72rem; font-weight: 600;
    padding: 0.2rem 0.6rem; border-radius: 20px;
    background: var(--accent-gold-light); color: var(--accent-gold);
}

.hb-stat {
    display: inline-block; font-size: 0.75rem; font-weight: 700;
    color: var(--accent-olive); background: rgba(var(--accent-olive-rgb),0.12);
    padding: 0.2rem 0.65rem; border-radius: 20px; width: fit-content;
}

/* Music card */
.hb-music-header { display: flex; align-items: center; gap: 0.85rem; }
.hb-music-header .hb-icon { font-size: 1.75rem; }
.hb-music-header h3 { font-size: 1.1rem; margin: 0 0 0.1rem; }
.hb-spotify-tag { font-size: 0.7rem; color: var(--text-secondary); font-weight: 500; }
.hb-spotify-logo {
    margin-left: auto; font-size: 1.6rem;
    color: var(--accent-gold); opacity: 0.5;
}
.hb-music-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
/* Artist chips */
.hb-music-artists { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hb-artist-chip {
    display: flex; flex-direction: column; gap: 0.15rem;
    padding: 0.6rem 1rem; border-radius: 12px; flex: 1; min-width: 120px;
}
.hb-group { background: rgba(20,33,61,0.1); border: 1.5px solid var(--accent-gold); }
.hb-solo  { background: rgba(107,78,113,0.1); border: 1.5px solid #6B4E71; }
.hb-artist-label { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-secondary); }
.hb-group .hb-artist-name { font-size: 0.9rem; font-weight: 700; color: var(--accent-gold); }
.hb-solo  .hb-artist-name { font-size: 0.9rem; font-weight: 700; color: #6B4E71; }
.hb-artist-genre { font-size: 0.68rem; color: var(--text-secondary); }

/* Song rows */
.hb-song-row { display: flex; gap: 0.75rem; }
.hb-song {
    flex: 1; padding: 0.65rem 0.9rem; border-radius: 10px;
    display: flex; flex-direction: column; gap: 0.12rem;
}
.hb-song-alltime { background: rgba(20,33,61,0.08); border: 1px solid rgba(20,33,61,0.25); }
.hb-song-current { background: rgba(var(--accent-olive-rgb),0.08); border: 1px solid rgba(var(--accent-olive-rgb),0.3); }
.hb-song-tag { font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-secondary); }
.hb-song-alltime .hb-song-name { font-size: 0.88rem; font-weight: 700; color: var(--accent-gold); }
.hb-song-current .hb-song-name { font-size: 0.88rem; font-weight: 700; color: var(--accent-olive); }
.hb-song-by { font-size: 0.68rem; color: var(--text-secondary); }

/* Reading card */
.hb-book-title { font-size: 0.9rem !important; font-style: italic; color: var(--text-primary) !important; }
.hb-author { font-size: 0.78rem; color: var(--text-secondary); font-weight: 500; }

/* Mindset card */
.hb-mindset { grid-column: 1 / -1; }
.hb-mindset-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.6rem 2rem;
    margin-top: 0.25rem;
}
.hb-mindset-list li { font-size: 0.87rem; color: var(--text-secondary); display: flex; align-items: baseline; gap: 0.5rem; }
.hb-m-dot { color: var(--accent-gold); font-weight: 700; flex-shrink: 0; }

@media (max-width: 768px) {
    .hobbies-bento { grid-template-columns: 1fr 1fr; grid-auto-flow: dense; }
    .hb-music { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
    .hobbies-bento { grid-template-columns: 1fr; }
    .hb-music { grid-column: span 1; }
    .hb-mindset-list { grid-template-columns: 1fr; gap: 0.5rem; }
    .hb-artist-chip { min-width: 80px; padding: 0.5rem 0.75rem; }
    .hb-song-row { flex-direction: column; gap: 0.5rem; }
    .hb-card { padding: 1.5rem 1.25rem; }
    .hb-card h3 { font-size: 1rem; }
    .hb-card p { font-size: 0.82rem; }
}

/* ══════════════════════════════════════════════════════
   PRELOADER
   ══════════════════════════════════════════════════════ */
.preloader {
    position: fixed; inset: 0;
    background: #14213D;
    z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.preloader-out { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-inner { text-align: center; }
.preloader-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4.5rem; font-weight: 600;
    background: linear-gradient(135deg, #FFFFFF, #C9D4E8, #FFFFFF);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.75rem;
    letter-spacing: -0.5px;
    animation: preloaderPulse 1.2s ease-in-out infinite alternate;
}
@keyframes preloaderPulse {
    from { opacity: 0.7; transform: scale(0.97); }
    to   { opacity: 1;   transform: scale(1); }
}
.preloader-bar-wrap {
    width: 180px; height: 2px;
    background: rgba(255,255,255,0.18); border-radius: 10px; overflow: hidden;
    margin: 0 auto;
}
.preloader-bar {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, #FFFFFF, #C9D4E8);
    border-radius: 10px;
    transition: width 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}
.preloader-tag {
    margin-top: 1rem; font-size: 0.68rem;
    color: #9CA8BF; letter-spacing: 3px; text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════
   LOCAL TIME
   ══════════════════════════════════════════════════════ */
.local-time {
    font-size: 0.75rem; color: var(--text-secondary);
    margin: 0.5rem 0 0.25rem;
    display: flex; align-items: center; gap: 0.35rem;
    opacity: 0.75;
}

/* ══════════════════════════════════════════════════════
   LOGO MICRO-INTERACTION
   ══════════════════════════════════════════════════════ */
@keyframes logoSpin {
    0%   { transform: rotate(0)   scale(1);   color: var(--text-primary); }
    30%  { transform: rotate(-12deg) scale(1.25); color: var(--accent-gold); }
    70%  { transform: rotate(12deg)  scale(1.25); color: var(--accent-gold); }
    100% { transform: rotate(0)   scale(1);   color: var(--text-primary); }
}
.logo { display: inline-block; transition: color 0.3s; }
.logo-spin { animation: logoSpin 0.65s ease; }

/* ══════════════════════════════════════════════════════
   SECTION DOT NAVIGATOR
   ══════════════════════════════════════════════════════ */
.dot-nav {
    position: fixed; right: 1.75rem; top: 50%;
    transform: translateY(-50%);
    display: flex; flex-direction: column; align-items: flex-end;
    gap: 0.65rem; z-index: 989;
}
.dot-link {
    display: flex; align-items: center; justify-content: flex-end;
    gap: 0.6rem; text-decoration: none; position: relative;
    padding: 0.15rem 0;
}
.dot-link::before {
    content: attr(data-label);
    font-size: 0.66rem; font-weight: 700; letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
    opacity: 0; transform: translateX(4px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
    white-space: nowrap; pointer-events: none;
}
.dot-link:hover::before,
.dot-link.dn-active::before { opacity: 0.85; transform: translateX(0); }
.dn-dot {
    width: 13px; height: 1px;
    border-radius: 0;
    background: var(--text-secondary);
    opacity: 0.4;
    transition: opacity 0.3s var(--ease);
    flex-shrink: 0;
}
.dot-link:hover .dn-dot,
.dot-link.dn-active .dn-dot { opacity: 0.7; }
@media (max-width: 1100px) { .dot-nav { display: none; } }

/* ── Hero photo parallax clip + wiggle ── */
.photo-wrap { overflow: hidden; cursor: pointer; }
@keyframes photoWiggle {
    0%, 100% { transform: rotate(0deg); }
    20%  { transform: rotate(-4deg) scale(1.03); }
    40%  { transform: rotate(4deg)  scale(1.03); }
    60%  { transform: rotate(-3deg); }
    80%  { transform: rotate(3deg); }
}
.photo-wiggle { animation: photoWiggle 0.65s ease; }

/* ── BTS song card click pulse ── */
@keyframes songPulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.05); }
}
.song-playing { animation: songPulse 0.4s ease-in-out 3; }

/* ── Konami hint ── */
.konami-hint { cursor: pointer; opacity: 0.5; transition: opacity 0.2s; display: block; margin-top: 0.35rem; }
.konami-hint:hover { opacity: 1; }

/* ══════════════════════════════════════════════════════
   KONAMI EASTER EGG
   ══════════════════════════════════════════════════════ */
.konami-overlay {
    position: fixed; inset: 0;
    background: rgba(20,18,14,0.75);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    z-index: 9998;
    opacity: 0; pointer-events: none;
    transition: opacity 0.35s ease;
}
.konami-overlay.konami-active { opacity: 1; pointer-events: all; }

.konami-box {
    max-width: 440px; width: 90%;
    padding: 3rem 2.5rem;
    text-align: center;
    position: relative;
    transform: scale(0.85);
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.konami-overlay.konami-active .konami-box { transform: scale(1); }

.konami-close {
    position: absolute; top: 1rem; right: 1.25rem;
    background: none; border: none; font-size: 1.1rem;
    color: var(--text-secondary); cursor: pointer;
    transition: color 0.2s;
}
.konami-close:hover { color: var(--accent-gold); }

.konami-emoji { font-size: 3rem; margin-bottom: 1rem; animation: konamiBounce 0.6s ease; }
@keyframes konamiBounce {
    0%   { transform: scale(0) rotate(-15deg); }
    60%  { transform: scale(1.2) rotate(5deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.konami-title { font-size: 1.5rem; margin-bottom: 1rem; }
.konami-msg {
    font-size: 0.92rem; color: var(--text-secondary);
    line-height: 1.7; margin-bottom: 1.25rem;
}
.konami-msg strong { color: var(--text-primary); }
.konami-code-hint {
    font-family: monospace; font-size: 0.85rem;
    color: var(--accent-gold); letter-spacing: 0.1em;
    background: var(--accent-gold-light);
    padding: 0.4rem 1rem; border-radius: 20px;
    display: inline-block;
}

/* ══════════════════════════════════════════════════════
   CLICK RIPPLE
   ══════════════════════════════════════════════════════ */
.click-ripple {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9989;
    width: 12px; height: 12px;
    margin: -6px 0 0 -6px;
    border: 2px solid var(--accent-gold);
    animation: rippleExpand 0.65s ease-out forwards;
}
@keyframes rippleExpand {
    0%   { transform: scale(1);  opacity: 0.65; }
    100% { transform: scale(14); opacity: 0; }
}

/* ══════════════════════════════════════════════════════
   SECTION ACHIEVEMENT BADGE
   ══════════════════════════════════════════════════════ */
.achievement-badge {
    position: fixed;
    bottom: 10.5rem; right: -280px;
    z-index: 9989;
    display: flex; align-items: center; gap: 0.65rem;
    background: var(--bg-secondary);
    border: 1px solid rgba(20,33,61,0.25);
    border-left: 3px solid var(--accent-gold);
    border-radius: 12px;
    padding: 0.7rem 1.1rem 0.7rem 0.9rem;
    box-shadow: var(--shadow-md);
    transition: right 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    max-width: 230px;
}
.achievement-badge.ach-show { right: 1.5rem; }
.ach-icon { font-size: 1.3rem; flex-shrink: 0; }
.ach-label {
    display: block; font-size: 0.58rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 2px;
    color: var(--accent-gold); margin-bottom: 0.1rem;
}
.ach-name { display: block; font-size: 0.82rem; font-weight: 700; color: var(--text-primary); }

@media (max-width: 480px) {
    .achievement-badge { max-width: 175px; padding: 0.55rem 0.8rem 0.55rem 0.7rem; bottom: 9.25rem; }
    .ach-name { font-size: 0.75rem; }
    .ach-icon { font-size: 1.1rem; }
}

/* ── Card shimmer micro-interaction ── */
.glass-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 38%, rgba(20,33,61,0.09) 50%, transparent 62%);
    transform: translateX(-110%);
    pointer-events: none;
    transition: none;
    border-radius: inherit;
}
.glass-card:hover::after {
    transform: translateX(110%);
    transition: transform 0.6s ease;
}

/* ── How I Build process strip ── */
.process-strip {
    margin-top: 1.5rem;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.ps-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-gold);
}
.ps-steps {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
}
.ps-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.3rem;
    flex: 1;
    min-width: 70px;
}
.ps-icon { font-size: 1.5rem; }
.ps-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
}
.ps-detail {
    font-size: 0.64rem;
    color: var(--text-secondary);
    line-height: 1.4;
}
.ps-arrow {
    color: var(--accent-gold);
    font-size: 1.1rem;
    margin-top: 0.9rem;
    flex-shrink: 0;
}
@media (max-width: 600px) {
    .ps-steps { flex-direction: column; gap: 0.75rem; }
    .ps-step { flex-direction: row; align-items: flex-start; text-align: left; min-width: unset; gap: 0.6rem; }
    .ps-icon { font-size: 1.2rem; flex-shrink: 0; }
    .ps-arrow { display: none; }
}

/* ── My Setup card ── */
.hb-setup { grid-column: 1 / -1; }
.hb-setup-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.65rem;
    margin-top: 0.75rem;
}
.hb-setup-item {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    padding: 0.6rem 0.75rem;
    background: var(--accent-gold-light);
    border-radius: var(--radius-md);
    border: 1px solid rgba(20,33,61,0.15);
}
.hb-setup-key {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-gold);
}
.hb-setup-val {
    font-size: 0.8rem;
    color: var(--text-primary);
    font-weight: 600;
}
@media (max-width: 768px) {
    .hb-setup-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .hb-setup-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
    .hb-setup-key { font-size: 0.56rem; }
    .hb-setup-val { font-size: 0.74rem; }
    .process-strip { padding: 1.1rem 1.25rem; }
}

/* ── Day in the Life timeline ── */
.dil-wrap { max-width: 700px; margin: 0 auto; }
.dil-block-label {
    font-size: 0.64rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--accent-gold);
    margin: 2rem 0 0.6rem calc(64px + 28px + 1.5rem);
}
.dil-events { display: flex; flex-direction: column; }
.dil-event {
    display: grid;
    grid-template-columns: 64px 28px 1fr;
    gap: 0 0.75rem;
    align-items: flex-start;
    padding-bottom: 1rem;
}
.dil-time-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-top: 0.9rem;
}
.dil-time { font-size: 0.78rem; font-weight: 700; color: var(--text-primary); line-height: 1; }
.dil-ampm { font-size: 0.58rem; color: var(--text-secondary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.dil-node { display: flex; flex-direction: column; align-items: center; padding-top: 0.9rem; }
.dil-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--accent-gold); border: 2px solid var(--bg-primary);
    box-shadow: 0 0 0 2px var(--accent-gold);
    flex-shrink: 0; z-index: 1; position: relative;
}
.dil-vline { flex: 1; width: 2px; background: rgba(20,33,61,0.18); min-height: 36px; }
.dil-event:last-child .dil-vline { display: none; }
.dil-card {
    display: flex; gap: 0.8rem; align-items: flex-start;
    padding: 0.85rem 1.1rem;
    transition: var(--transition);
}
.dil-card:hover { transform: translateX(5px); box-shadow: var(--shadow-hover); }
.dil-icon { font-size: 1.25rem; flex-shrink: 0; margin-top: 0.05rem; }
.dil-title { font-size: 0.86rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.2rem; }
.dil-desc { font-size: 0.76rem; color: var(--text-secondary); line-height: 1.5; }

.dil-event.dil-now .dil-dot {
    background: #ef4444;
    box-shadow: 0 0 0 2px #ef4444, 0 0 14px rgba(239,68,68,0.5);
    animation: dilPulse 1.5s ease-in-out infinite;
}
.dil-event.dil-now .dil-time { color: var(--accent-gold); }
.dil-event.dil-now .dil-card { border-color: rgba(20,33,61,0.35); }
@keyframes dilPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.35); }
}
@media (max-width: 600px) {
    .dil-event { grid-template-columns: 50px 22px 1fr; gap: 0 0.5rem; }
    .dil-time { font-size: 0.7rem; }
    .dil-block-label { margin-left: calc(50px + 22px + 1rem); }
    .dil-card { padding: 0.7rem 0.85rem; gap: 0.6rem; }
    .dil-title { font-size: 0.8rem; }
    .dil-desc { font-size: 0.71rem; }
}

/* ══════════════════════════════════════════════════════
   GALLERY — INSTAGRAM STORY HIGHLIGHTS
   ══════════════════════════════════════════════════════ */
.gallery-hint {
    text-align: center; color: var(--text-secondary);
    font-size: 0.85rem; margin-bottom: 2.5rem; letter-spacing: 0.3px;
    font-style: italic;
}

/* MOMENTS GRID (editorial gallery with quotes) */
.moments-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem; max-width: 1240px; margin: 0 auto;
}

.moment-card {
    display: block; text-align: left; background: var(--bg-secondary);
    border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
    padding: 0; cursor: pointer; overflow: hidden;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.moment-card:hover, .moment-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-gold);
}
.moment-card:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 3px; }

.moment-photo {
    display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden;
    background: var(--bg-primary);
}
.moment-photo img {
    display: block; width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s var(--ease);
}
.moment-card:hover .moment-photo img { transform: scale(1.06); }
.moment-photo::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(11,22,38,0.35), transparent 55%);
    pointer-events: none;
}

.moment-body { display: block; padding: 1.5rem 1.6rem 1.75rem; }
.moment-quote {
    display: block; font-family: 'Cormorant Garamond', serif; font-style: italic;
    font-size: 1.18rem; font-weight: 500; line-height: 1.5;
    color: var(--text-primary); margin-bottom: 0.9rem;
}
.moment-quote::before { content: "“"; }
.moment-quote::after { content: "”"; }
.moment-meta {
    display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 1.3px;
    text-transform: uppercase; color: var(--text-secondary);
}

@media (max-width: 640px) {
    .moments-grid { grid-template-columns: 1fr; gap: 1.25rem; }
}


/* ══════════════════════════════════════════════════════
   3D CARD TILT
   ══════════════════════════════════════════════════════ */
.tilt-card { transform-style: preserve-3d; will-change: transform; transition: box-shadow 0.3s; }
.tilt-card:hover { box-shadow: var(--shadow-hover); }
.tilt-shine {
    position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,0.1) 0%, transparent 65%);
    opacity: 0; transition: opacity 0.3s;
}
.tilt-card:hover .tilt-shine { opacity: 1; }

/* ══════════════════════════════════════════════════════
   SKILL PROFICIENCY BARS
   ══════════════════════════════════════════════════════ */
.schip { position: relative; overflow: hidden; }
.skill-bar {
    position: absolute; bottom: 0; left: 0;
    height: 2px; background: var(--accent-gold);
    width: 0; border-radius: 0 2px 2px 0;
    transition: width 1.1s cubic-bezier(0.25, 1, 0.5, 1); opacity: 0.75;
}
.skills-visible .skill-bar { width: var(--skill-level, 0%); }

/* ══════════════════════════════════════════════════════
   IMAGE LIGHTBOX
   ══════════════════════════════════════════════════════ */
.lightbox-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    display: flex; align-items: center; justify-content: center;
    z-index: 10001;
    opacity: 0; pointer-events: none;
    transition: opacity 0.25s ease;
}
.lightbox-overlay.lb-open { opacity: 1; pointer-events: all; }
.lb-media {
    display: flex; flex-direction: column; align-items: center; gap: 1.1rem;
    max-width: min(88vw, 1100px); max-height: 90vh;
}
.lightbox-img {
    max-width: 100%; max-height: 74vh;
    border-radius: var(--radius-md); object-fit: contain;
    box-shadow: 0 40px 120px rgba(0,0,0,0.6);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.lightbox-overlay.lb-open .lightbox-img { transform: scale(1); }
.lb-quote {
    font-family: 'Cormorant Garamond', serif; font-style: italic;
    font-size: 1.3rem; font-weight: 500; line-height: 1.55;
    color: rgba(255,255,255,0.92); text-align: center;
    max-width: 620px; padding: 0 1.5rem;
}
.lb-quote::before { content: "\201C"; } .lb-quote::after { content: "\201D"; }
@media (max-width: 640px) {
    .lb-media { max-width: 92vw; max-height: 84vh; gap: 0.75rem; }
    .lightbox-img { max-height: 58vh; }
    .lb-quote { font-size: 1.05rem; padding: 0 1rem; max-height: 22vh; overflow-y: auto; }
}
.lb-close {
    position: fixed; top: 1.25rem; right: 1.25rem;
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%; width: 40px; height: 40px;
    color: #fff; font-size: 1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s; z-index: 1;
}
.lb-close:hover { background: rgba(255,255,255,0.22); }
.lb-prev, .lb-next {
    position: fixed; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%; width: 44px; height: 44px;
    color: #fff; font-size: 1.1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s; z-index: 1;
}
.lb-prev { left: 1.25rem; }
.lb-next { right: 1.25rem; }
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,0.22); }
.lb-counter {
    position: fixed; bottom: 1.25rem; left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,0.55); font-size: 0.78rem; font-family: 'Inter', sans-serif;
}
.post-img-wrap .pc-slide, .hb-photo img { cursor: zoom-in; }
@media (max-width: 640px) {
    .lb-close { width: 44px; height: 44px; top: 0.6rem; right: 0.6rem; font-size: 0.9rem; }
    .lb-prev, .lb-next { width: 44px; height: 44px; font-size: 1rem; }
    .lb-prev { left: 0.35rem; } .lb-next { right: 0.35rem; }
    .lb-counter { bottom: 0.6rem; font-size: 0.7rem; }
}
/* Short viewports (phone landscape) need the same vertical budget as narrow
   ones, since a wide-but-short screen skips the max-width:640px rules above. */
@media (max-height: 500px) {
    .lb-media { max-width: 80vw; max-height: 82vh; gap: 0.5rem; }
    .lightbox-img { max-height: 55vh; }
    .lb-quote { font-size: 0.95rem; padding: 0 1rem; max-height: 20vh; overflow-y: auto; }
    .lb-close { width: 38px; height: 38px; top: 0.5rem; right: 0.5rem; font-size: 0.85rem; }
    .lb-prev, .lb-next { width: 38px; height: 38px; font-size: 0.9rem; }
    .lb-counter { bottom: 0.4rem; font-size: 0.68rem; }
}

/* ═══════════════════════════════════════════════════════
   Case Study · Data Visualization Components
   ═══════════════════════════════════════════════════════ */

.viz-section { max-width: 860px; margin: 0 auto; padding-bottom: 4rem; }
.viz-section + .viz-section { padding-top: 0.5rem; }
.viz-intro { font-size: 0.98rem; color: var(--text-secondary); line-height: 1.85; max-width: 700px; margin: -1rem 0 2.25rem; }
.viz-card { padding: 1.75rem 2rem 2rem; margin-bottom: 1.75rem; }
.viz-card:last-child { margin-bottom: 0; }
.viz-card-title { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.4px; color: var(--accent-gold); margin-bottom: 1.35rem; }
.viz-source { font-size: 0.72rem; color: var(--text-secondary); opacity: 0.75; margin-top: 1.1rem; }

/* Stat tiles */
.viz-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 1px; background: var(--glass-border); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 1.75rem; }
.viz-stat { background: var(--bg-secondary); padding: 1.4rem 1.2rem; }
.viz-stat-val { display: block; font-family: 'Cormorant Garamond', serif; font-size: 2.1rem; font-weight: 600; color: var(--text-primary); line-height: 1; }
.viz-stat-label { display: block; margin-top: 0.5rem; font-size: 0.74rem; color: var(--text-secondary); font-weight: 600; line-height: 1.4; }
.viz-stat-delta { display: inline-flex; align-items: center; gap: 0.2rem; margin-top: 0.6rem; font-size: 0.72rem; font-weight: 700; }
.viz-stat-delta.up { color: var(--viz-good); }
.viz-stat-delta.down { color: var(--viz-critical); }

/* Horizontal bar list (magnitude, single hue) */
.viz-bars { display: flex; flex-direction: column; gap: 0.8rem; }
.viz-bar-row { display: grid; grid-template-columns: 118px 1fr 46px; align-items: center; gap: 0.7rem; }
.viz-bar-label { font-size: 0.78rem; color: var(--text-secondary); font-weight: 600; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viz-bar-track { position: relative; height: 10px; background: var(--viz-track); border-radius: 2px; }
.viz-bar-fill { position: absolute; top: 0; left: 0; height: 100%; border-radius: 0 5px 5px 0; background: var(--viz-1); }
.viz-bar-fill.viz-fill-2 { background: var(--viz-2); }
.viz-bar-val { font-size: 0.78rem; font-weight: 700; color: var(--text-primary); font-variant-numeric: tabular-nums; }

/* Stacked bar (part-to-whole) */
.viz-stacked-track { display: flex; height: 22px; border-radius: 3px; overflow: hidden; background: var(--viz-track); }
.viz-stacked-seg { height: 100%; border-right: 2px solid var(--viz-surface); }
.viz-stacked-seg:last-child { border-right: none; }
.viz-stacked-legend { display: flex; flex-wrap: wrap; gap: 0.6rem 1.3rem; margin-top: 1.1rem; }
.viz-legend-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; color: var(--text-secondary); font-weight: 600; }
.viz-legend-swatch { width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; }
.viz-legend-item b { color: var(--text-primary); font-variant-numeric: tabular-nums; }

/* Meter (single ratio) */
.viz-meter { margin-bottom: 1.3rem; }
.viz-meter:last-child { margin-bottom: 0; }
.viz-meter-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.5rem; }
.viz-meter-label { font-size: 0.82rem; font-weight: 600; color: var(--text-primary); }
.viz-meter-pct { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 600; color: var(--accent-gold); }
.viz-meter-track { height: 10px; border-radius: 5px; background: var(--viz-track); overflow: hidden; }
.viz-meter-fill { height: 100%; border-radius: 5px; background: var(--accent-gold); }

/* Two-bar before/after comparison */
.viz-compare { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; }
.viz-compare-side { text-align: center; }
.viz-compare-tag { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-secondary); margin-bottom: 0.6rem; }
.viz-compare-val { font-family: 'Cormorant Garamond', serif; font-size: 2.4rem; font-weight: 600; line-height: 1; color: var(--text-secondary); }
.viz-compare-side.viz-after .viz-compare-val { color: var(--accent-gold); }
.viz-compare-side.viz-after .viz-compare-tag { color: var(--accent-gold); }
.viz-compare-sub { display: block; font-size: 0.74rem; color: var(--text-secondary); margin-top: 0.35rem; }
.viz-compare-arrow { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; color: var(--accent-gold); }
.viz-compare-arrow-delta { font-size: 0.82rem; font-weight: 700; white-space: nowrap; }
@media (max-width: 560px) {
    .viz-compare { grid-template-columns: 1fr; gap: 0.75rem; }
    .viz-compare-arrow { flex-direction: row; justify-content: center; }
    .viz-compare-arrow svg { transform: rotate(90deg); }
}

/* Pipeline / architecture diagram */
.viz-pipeline { display: flex; align-items: stretch; gap: 0; }
.viz-pipeline-node { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.55rem; padding: 1.1rem 0.7rem; background: var(--bg-secondary); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); flex: 1 1 0; min-width: 0; }
.viz-pipeline-node-num { font-family: 'Cormorant Garamond', serif; font-size: 0.95rem; font-weight: 600; color: var(--accent-gold); }
.viz-pipeline-node-label { font-size: 0.72rem; font-weight: 700; color: var(--text-primary); line-height: 1.3; }
.viz-pipeline-node-desc { font-size: 0.66rem; color: var(--text-secondary); line-height: 1.4; }
.viz-pipeline-arrow { flex: 0 0 22px; display: flex; align-items: center; justify-content: center; color: var(--accent-gold); opacity: 0.6; }
@media (max-width: 780px) {
    .viz-pipeline { flex-direction: column; }
    .viz-pipeline-arrow { flex-basis: 20px; }
    .viz-pipeline-arrow svg { transform: rotate(90deg); }
}

/* Interactive pipeline stage (System Playground) */
button.viz-pipeline-node { cursor: pointer; font-family: inherit; }
button.viz-pipeline-node:hover,
button.viz-pipeline-node:focus-visible { border-color: var(--accent-gold); background: var(--accent-gold-light); }
button.viz-pipeline-node:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 2px; }
button.viz-pipeline-node.is-active { border-color: var(--accent-gold); background: var(--accent-gold-light); box-shadow: inset 0 0 0 1px var(--accent-gold); }

/* Editorial cards: subtle hover (insights, failure cases) */
.wc-item { transition: background 0.3s ease; }
.wc-item:hover { background: var(--bg-secondary); }

/* Competitive Intelligence demo reveal */
.tns-demo-result { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease); margin-top: 1.5rem; }
.tns-demo-result-inner { overflow: hidden; }
.tns-demo.is-run .tns-demo-result { grid-template-rows: 1fr; }
.tns-demo-btn[aria-pressed="true"] { background: var(--accent-gold); color: #FFFFFF; }
.tns-demo-btn:disabled { opacity: 0.55; cursor: default; }

.tns-demo-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0.85rem; }
.tns-demo-select {
    font-family: 'Inter', sans-serif; font-size: 0.85rem; font-weight: 600;
    color: var(--text-primary); background: var(--bg-primary);
    border: 1px solid var(--glass-border); border-radius: var(--radius-md);
    padding: 0.7rem 1rem; min-width: 240px; max-width: 100%;
    cursor: pointer;
}
.tns-demo-select:disabled { opacity: 0.55; cursor: default; }
.tns-demo-select:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 2px; }

.tns-demo-fields .cs-meta-item { opacity: 0; transform: translateY(6px); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.tns-demo-fields .cs-meta-item.is-in { opacity: 1; transform: translateY(0); }

@media (max-width: 560px) {
    .tns-demo-controls { flex-direction: column; align-items: stretch; }
    .tns-demo-select { min-width: 0; }
}
