/* ═══════════════════════════════════════════
   190975.com — Style
   ═══════════════════════════════════════════ */

/* ── Variables ── */
:root {
    --bg: #060a0e;
    --sky: #6cb4e4;
    --sky-muted: #5299cc;
    --sky-deep: #2d6e9e;
    --sky-glow: #8ec8f0;
    --text: #eaf0f7;
    --text-muted: #adbfd4;
    --text-dim: #7a96b0;
    --font-display: 'Instrument Serif', serif;
    --font-mono: 'DM Mono', monospace;
    --border: rgba(91, 163, 217, 0.06);
    --border-strong: rgba(91, 163, 217, 0.1);
    --hover-bg: rgba(91, 163, 217, 0.04);
}

/* ── Reset ── */
* { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--sky-deep) transparent;
}

body {
    background-color: var(--bg);
    background-image: url('cyanotype_ascent_web.jpg');
    background-position: top;
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--text);
    font-family: var(--font-mono);
    font-weight: 300;
    line-height: 1.7;
    font-size: 14px;
    overflow-x: hidden;
}


/* ═══ EFFECTS ═══ */

.readability-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh; height: 100dvh;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(
        135deg,
        rgba(6, 10, 14, 0.72) 0%,
        rgba(6, 10, 14, 0.50) 20%,
        rgba(6, 10, 14, 0.28) 45%,
        rgba(6, 10, 14, 0.10) 70%,
        rgba(6, 10, 14, 0.02) 100%
    );
}

.grain {
    position: fixed;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grain-drift 8s steps(10) infinite;
}

@keyframes grain-drift {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -10%); }
    20% { transform: translate(-15%, 5%); }
    30% { transform: translate(7%, -15%); }
    40% { transform: translate(-5%, 15%); }
    50% { transform: translate(-15%, 10%); }
    60% { transform: translate(15%, 0%); }
    70% { transform: translate(0%, 10%); }
    80% { transform: translate(3%, 15%); }
    90% { transform: translate(-10%, 10%); }
}

.atmosphere {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.cloud-mass {
    position: absolute;
    bottom: -20%; right: -10%;
    width: 70vw; height: 80vh;
    background: radial-gradient(ellipse at 60% 70%,
        rgba(10, 20, 35, 0.55) 0%, rgba(15, 30, 50, 0.35) 30%,
        rgba(20, 50, 80, 0.15) 55%, transparent 75%);
    filter: blur(60px);
    opacity: 0.5;
    animation: cloud-breathe 20s ease-in-out infinite;
}

.cloud-mass-2 {
    position: absolute;
    top: 5%; left: -15%;
    width: 55vw; height: 60vh;
    background: radial-gradient(ellipse at 40% 50%,
        rgba(91, 163, 217, 0.07) 0%, rgba(91, 163, 217, 0.03) 40%,
        transparent 70%);
    filter: blur(80px);
    animation: cloud-breathe 25s ease-in-out infinite reverse;
}

.cloud-mass-3 {
    position: absolute;
    top: 30%; right: 10%;
    width: 40vw; height: 40vh;
    background: radial-gradient(ellipse at 50% 50%,
        rgba(6, 10, 14, 0.4) 0%, rgba(10, 25, 45, 0.2) 40%,
        transparent 70%);
    filter: blur(50px);
    opacity: 0.4;
    animation: cloud-drift 30s ease-in-out infinite;
}

@keyframes cloud-breathe {
    0%, 100% { transform: scale(1) translate(0, 0); opacity: 0.5; }
    50% { transform: scale(1.06) translate(12px, -10px); opacity: 0.4; }
}

@keyframes cloud-drift {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
    33% { transform: translate(-20px, 10px) scale(1.04); opacity: 0.3; }
    66% { transform: translate(15px, -8px) scale(0.97); opacity: 0.45; }
}


/* ═══ NAVIGATION (shared) ═══ */

.nav-bar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    padding: 2rem 3.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background 0.5s ease;
}

.nav-bar.scrolled {
    background: rgba(6, 10, 14, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

/* Article pages: nav always has bg */
.nav-bar.nav-solid {
    background: rgba(6, 10, 14, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.logo {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.8rem;
    color: var(--text);
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: color 0.3s;
}

.logo:hover { color: var(--sky); }
.logo-dash { color: var(--sky); }

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    font-family: var(--font-mono);
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    text-decoration: none;
    position: relative;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0%;
    height: 1px;
    background: var(--sky);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover { color: var(--sky-glow); }
.nav-links a:hover::after { width: 100%; }

.back-link {
    font-family: var(--font-mono);
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    text-decoration: none;
    position: relative;
    transition: color 0.3s;
}

.back-link::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0%;
    height: 1px;
    background: var(--sky);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.back-link:hover { color: var(--sky-glow); }
.back-link:hover::after { width: 100%; }


/* ═══ HAMBURGER ═══ */

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 24px;
    position: relative;
    z-index: 1100;
    -webkit-tap-highlight-color: transparent;
}

.menu-toggle span {
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--text);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-toggle span:nth-child(1) { top: 4px; }
.menu-toggle span:nth-child(2) { top: 11px; }
.menu-toggle span:nth-child(3) { top: 18px; }

.menu-toggle.active span:nth-child(1) { top: 11px; transform: rotate(45deg); background: var(--sky); }
.menu-toggle.active span:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.menu-toggle.active span:nth-child(3) { top: 11px; transform: rotate(-45deg); background: var(--sky); }


/* ═══ MOBILE OVERLAY MENU ═══ */

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh; height: 100dvh;
    background: rgba(6, 10, 14, 0.97);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 1050;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mobile-overlay.open { opacity: 1; pointer-events: all; }

.mobile-overlay a {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 2.2rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s, transform 0.3s;
}

.mobile-overlay a:hover,
.mobile-overlay a:active { color: var(--sky); transform: translateX(6px); }

.mobile-overlay .mobile-footer {
    position: absolute;
    bottom: 2.5rem;
    font-family: var(--font-mono);
    font-weight: 300;
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}


/* ═══ HOMEPAGE — SECTIONS ═══ */

.section {
    position: relative;
    z-index: 2;
    padding: 0 3.5rem;
    scroll-margin-top: 5rem;
}

.section-label {
    font-family: var(--font-mono);
    font-weight: 300;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--sky);
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-label::before {
    content: '';
    width: 32px;
    height: 1px;
    background: var(--sky-muted);
}

.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, rgba(91, 163, 217, 0.15) 0%, rgba(91, 163, 217, 0.08) 60%, transparent 100%);
    margin: 0 3.5rem;
    max-width: calc(100% - 7rem);
}


/* ── Hero ── */

.hero {
    min-height: 100vh; min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 3.5rem;
    position: relative;
    z-index: 2;
}

.hero-greeting {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: normal;
    font-size: clamp(3.2rem, 8vw, 7rem);
    line-height: 1.05;
    color: var(--text);
    margin-bottom: 0.4em;
    opacity: 0;
    transform: translateY(40px);
    animation: reveal-up 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.hero-greeting .accent { color: var(--sky-glow); display: inline-block; }

.hero-sub {
    max-width: 520px;
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: reveal-up 1s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}

.hero-cta {
    display: flex;
    gap: 2rem;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    animation: reveal-up 1s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards;
}

.hero-cta a {
    font-family: var(--font-mono);
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    color: var(--sky-glow);
    text-decoration: none;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(123, 188, 232, 0.4);
    transition: all 0.3s;
}

.hero-cta a:hover { color: #fff; border-bottom-color: #fff; }

.hero-cta .divider { width: 24px; height: 1px; background: var(--text-dim); }

.hero-deco {
    position: absolute;
    bottom: 3rem; right: 3.5rem;
    font-family: var(--font-mono);
    font-weight: 300;
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 0.1em;
    writing-mode: vertical-rl;
    opacity: 0;
    animation: fade-in 1.5s ease 1.5s forwards;
}

@keyframes reveal-up { to { opacity: 1; transform: translateY(0); } }
@keyframes fade-in { to { opacity: 1; } }


/* ── About ── */

.about-section { padding-top: 10rem; padding-bottom: 10rem; }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.about-intro {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.6rem, 3vw, 2.6rem);
    line-height: 1.35;
    color: var(--text);
}

.about-intro .highlight { color: var(--sky-glow); }

.about-body p { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 0.9rem; }

.about-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2.5rem; }

.tag {
    font-family: var(--font-mono);
    font-weight: 300;
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(108, 180, 228, 0.2);
    color: var(--text-muted);
    border-radius: 2px;
    transition: all 0.3s;
    background: rgba(6, 10, 14, 0.4);
}

.tag:hover { border-color: var(--sky-muted); color: var(--sky); background: rgba(91, 163, 217, 0.08); }


/* ── Neurodivergent ── */

.nd-section { padding-top: 10rem; padding-bottom: 10rem; }

.nd-grid {
    display: grid;
    grid-template-columns: 0.8fr 1fr;
    gap: 5rem;
    align-items: start;
}

.nd-statement {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    line-height: 1.3;
    color: var(--sky-glow);
}

.nd-detail p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }

.trait-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-strong);
}

.trait h4 {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--sky);
    margin-bottom: 0.8rem;
}

.trait p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }


/* ── Projects ── */

.projects-section { padding-top: 10rem; padding-bottom: 10rem; }

.project-card {
    display: block;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border);
    transition: all 0.4s;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.project-card.no-link { cursor: default; }
.project-card:first-child { border-top: 1px solid var(--border); }

.project-card:hover {
    background: var(--hover-bg);
    padding-left: 1.5rem; padding-right: 1.5rem;
    margin-left: -1.5rem; margin-right: -1.5rem;
}

.project-card:hover .project-title { color: var(--sky); }

.project-info h3,
.project-title {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.project-info h3 .dash { color: var(--sky); }

.project-info .project-type {
    font-family: var(--font-mono);
    font-weight: 300;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sky);
    margin-bottom: 0.8rem;
    display: block;
}

.project-info p { color: var(--text-muted); font-size: 0.85rem; max-width: 520px; }

.project-suite { display: flex; gap: 1rem; margin-top: 0.8rem; flex-wrap: wrap; }

.project-suite span {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-dim);
    transition: color 0.3s;
}

.project-suite span .dash { color: var(--sky-muted); }

.project-suite .suite-sep {
    font-style: normal;
    color: rgba(108, 180, 228, 0.3);
    font-size: 0.92rem;
    align-self: center;
}

.project-card:hover .project-suite span { color: var(--text-muted); }


/* ── Writing (homepage list) ── */

.writing-section { padding-top: 10rem; padding-bottom: 10rem; }

.article-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 2.5rem;
    align-items: baseline;
    padding: 2.2rem 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    transition: all 0.4s;
}

.article-row:first-of-type { border-top: 1px solid var(--border); }

.article-row:hover {
    background: var(--hover-bg);
    padding-left: 1.5rem; padding-right: 1.5rem;
    margin-left: -1.5rem; margin-right: -1.5rem;
}

.article-date { font-family: var(--font-mono); font-weight: 300; font-size: 0.75rem; color: var(--text-muted); }

.article-title {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.3rem;
    color: var(--text);
    transition: color 0.3s;
}

.article-row:hover .article-title { color: var(--sky-glow); }

.article-platform {
    font-family: var(--font-mono);
    font-weight: 300;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sky-muted);
    margin-top: 0.3rem;
}


/* ── Footer (homepage) ── */

.footer-section { padding-top: 10rem; padding-bottom: 6rem; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: end;
}

.footer-cta {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.2;
    color: var(--text);
}

.footer-cta .sky { color: var(--sky-glow); }

.footer-links { display: flex; flex-direction: column; gap: 1rem; align-items: flex-end; }

.footer-links a {
    font-family: var(--font-mono);
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover { color: var(--sky-glow); }

.footer-bottom {
    margin-top: 6rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(91, 163, 217, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom span { font-size: 0.7rem; color: var(--text-muted); }


/* ═══ ARTICLE PAGES ═══ */

.article-wrapper {
    position: relative;
    z-index: 2;
    max-width: 680px;
    margin: 0 auto;
    padding: 10rem 2rem 6rem;
}

.article-meta {
    font-family: var(--font-mono);
    font-weight: 300;
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    margin-bottom: 2rem;
}

.article-h1 {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: normal;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 2.5rem;
}

.article-body {
    font-family: var(--font-mono);
    font-weight: 300;
    font-size: 0.95rem;
    line-height: 1.85;
    color: var(--text-muted);
}

.article-body p { margin-bottom: 1.5rem; }

.article-body h2 {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: normal;
    font-size: 1.6rem;
    color: var(--text);
    margin-top: 3rem;
    margin-bottom: 1.2rem;
}

.article-body h3 {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: normal;
    font-size: 1.2rem;
    color: var(--sky);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.article-body blockquote {
    border-left: 2px solid var(--sky-deep);
    padding-left: 1.5rem;
    margin: 2rem 0;
    color: var(--text);
    font-style: italic;
}

.article-body strong { color: var(--text); font-weight: 400; }
.article-body em { color: var(--text); }

.article-body a {
    color: var(--sky);
    text-decoration: none;
    border-bottom: 1px solid rgba(108, 180, 228, 0.3);
    transition: all 0.3s;
}

.article-body a:hover { color: var(--sky-glow); border-bottom-color: var(--sky-glow); }

.article-end {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-strong);
}

.article-end a {
    font-family: var(--font-mono);
    font-weight: 300;
    font-size: 0.75rem;
    color: var(--sky-muted);
    text-decoration: none;
    position: relative;
    transition: color 0.3s;
}

.article-end a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0%;
    height: 1px;
    background: var(--sky);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.article-end a:hover { color: var(--sky-glow); }
.article-end a:hover::after { width: 100%; }

.site-footer {
    position: relative;
    z-index: 2;
    max-width: 680px;
    margin: 0 auto;
    padding: 4rem 2rem 3rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-footer span { font-size: 0.7rem; color: var(--text-muted); }


/* ═══ SCROLL REVEAL ═══ */

.sr {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.sr.visible { opacity: 1; transform: translateY(0); }
.sr-d1 { transition-delay: 0.1s; }
.sr-d2 { transition-delay: 0.2s; }
.sr-d3 { transition-delay: 0.3s; }
.sr-d4 { transition-delay: 0.4s; }


/* ═══════════════════════════════════════════
   RESPONSIVE — TABLET (≤1024px)
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
    .section, .hero { padding-left: 2.5rem; padding-right: 2.5rem; }
    .nav-bar { padding: 1.8rem 2.5rem; }
    .about-grid, .nd-grid { gap: 3rem; }
    .section-divider { margin: 0 2.5rem; max-width: calc(100% - 5rem); }
    .hero-deco { right: 2.5rem; }
}


/* ═══════════════════════════════════════════
   RESPONSIVE — MOBILE (≤768px)
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
    .readability-overlay {
        background: linear-gradient(to bottom,
            rgba(6, 10, 14, 0.68) 0%,
            rgba(6, 10, 14, 0.55) 40%,
            rgba(6, 10, 14, 0.65) 100%);
    }

    body {
        background-attachment: scroll;
        background-size: 160vw auto;
        background-position: top;
    }

    /* Nav */
    .nav-bar { padding: 1.2rem 1.5rem; }
    .menu-toggle { display: block; }
    .nav-links { display: none; }
    .mobile-overlay { display: flex; }

    /* Sections */
    .section, .hero { padding-left: 1.5rem; padding-right: 1.5rem; }
    .section-divider { margin: 0 1.5rem; max-width: calc(100% - 3rem); }

    /* Hero */
    .hero-greeting { font-size: clamp(2.4rem, 11vw, 3.8rem); }
    .hero-sub { font-size: 0.85rem; max-width: 100%; }
    .hero-deco { display: none; }
    .hero-cta { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .hero-cta .divider { display: none; }

    /* About */
    .about-section { padding-top: 5rem; padding-bottom: 5rem; }
    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .about-intro { font-size: 1.4rem; }

    /* ND */
    .nd-section { padding-top: 5rem; padding-bottom: 5rem; }
    .nd-grid { grid-template-columns: 1fr; gap: 2rem; }
    .nd-statement { font-size: 1.5rem; }
    .trait-pair { grid-template-columns: 1fr; gap: 1.5rem; }

    /* Projects */
    .projects-section { padding-top: 5rem; padding-bottom: 5rem; }
    .project-card:hover { padding-left: 0; padding-right: 0; margin-left: 0; margin-right: 0; }
    .project-suite { gap: 0.8rem; }

    /* Writing */
    .writing-section { padding-top: 5rem; padding-bottom: 5rem; }
    .article-row { grid-template-columns: 1fr; gap: 0.3rem; padding: 1.5rem 0; }
    .article-title { font-size: 1.1rem; }
    .article-row:hover { padding-left: 0; padding-right: 0; margin-left: 0; margin-right: 0; }

    /* Footer */
    .footer-section { padding-top: 5rem; padding-bottom: 3rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .footer-links { align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: 1.5rem; }
    .footer-bottom { flex-direction: column; gap: 0.5rem; align-items: flex-start; margin-top: 3rem; }

    /* Articles */
    .article-wrapper { padding: 8rem 1.5rem 4rem; }
    .site-footer { padding: 3rem 1.5rem 2rem; flex-direction: column; gap: 0.5rem; }
}


/* ═══════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE (≤400px)
   ═══════════════════════════════════════════ */
@media (max-width: 400px) {
    .section, .hero { padding-left: 1rem; padding-right: 1rem; }
    .nav-bar { padding: 1rem; }
    .section-divider { margin: 0 1rem; max-width: calc(100% - 2rem); }
    .hero-greeting { font-size: 2.2rem; }
    .logo { font-size: 1.4rem; }
    .about-tags { gap: 0.35rem; }
    .tag { font-size: 0.6rem; padding: 0.35rem 0.6rem; }
    .mobile-overlay a { font-size: 1.8rem; }
    .article-wrapper { padding: 7rem 1rem 3rem; }
}
