/* ============================================
   ERMA SWARTZ — Portfolio
   "Methods as Practice"
   Whimsical / Forest / Professional
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400;1,9..40,500&display=swap');

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --forest-deep: #1a3a2a;
    --forest: #2d5a3d;
    --forest-light: #3d7a54;
    --moss: #7a9e7e;
    --sage: #b8c5a3;
    --sage-light: #dde4d0;
    --cream: #f7f5f0;
    --warm-white: #fefcf8;
    --earth: #6b5b4a;
    --earth-light: #a0907e;
    --bark: #4a3f35;
    --text-dark: #2c2c2c;
    --text-body: #4a4a4a;
    --text-light: #7a7a7a;
    --shadow-sm: 0 1px 3px rgba(26, 58, 42, 0.08);
    --shadow-md: 0 4px 16px rgba(26, 58, 42, 0.1);
    --shadow-lg: 0 8px 32px rgba(26, 58, 42, 0.14);
    --radius: 6px;
    --radius-lg: 14px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', 'Segoe UI', sans-serif;
    color: var(--text-body);
    background-color: var(--warm-white);
    line-height: 1.75;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;

    color: var(--text-dark);
    line-height: 1.25;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--forest);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--forest-light);
}

/* --- Navigation --- */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(254, 252, 248, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(26, 58, 42, 0.06);
    padding: 0 2rem;
    transition: box-shadow var(--transition);
}

.site-nav.scrolled {
    box-shadow: 0 2px 20px rgba(26, 58, 42, 0.08);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 68px;
}

.nav-name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 600;

    color: var(--forest-deep);
    letter-spacing: -0.01em;
    transition: var(--transition);
}

.nav-name:hover {
    color: var(--forest);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.15rem;
}

.nav-links a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-body);
    border-radius: 100px;
    transition: all var(--transition);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--forest);
    background: rgba(45, 90, 61, 0.07);
}

.nav-links a.active {
    font-weight: 600;
}

/* Mobile nav */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--forest-deep);
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* ============================================
   HERO — with rotating keywords
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--forest-deep);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    filter: saturate(0.6) brightness(0.9);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(26, 58, 42, 0.88) 0%,
        rgba(45, 90, 61, 0.72) 40%,
        rgba(74, 63, 53, 0.65) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
    max-width: 850px;
}

.hero-content h1 {
    font-size: clamp(2.8rem, 7vw, 5rem);
    color: var(--cream);
    font-weight: 700;

    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
}

/* Rotating keywords */
.hero-rotate-wrap {
    display: block;
    margin-bottom: 1.5rem;
}

.hero-rotate {
    display: inline-block;
    position: relative;
    height: 1.5em;
    overflow: hidden;
    vertical-align: bottom;
}

.hero-rotate-inner {
    display: flex;
    flex-direction: column;
    animation: rotateWords 10s ease-in-out infinite;
}

.hero-rotate-inner span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 1.5em;
    font-style: italic;

    color: var(--sage);
}

@keyframes rotateWords {
    0%, 16% { transform: translateY(0); }
    20%, 36% { transform: translateY(-1.5em); }
    40%, 56% { transform: translateY(-3em); }
    60%, 76% { transform: translateY(-4.5em); }
    80%, 96% { transform: translateY(-6em); }
    100% { transform: translateY(0); }
}

.hero-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--sage-light);
    font-weight: 300;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

.hero-methods {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
}

.hero-methods a {
    display: inline-block;
    padding: 0.65rem 1.5rem;
    border: 1px solid rgba(184, 197, 163, 0.35);
    border-radius: 100px;
    color: var(--sage-light);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all var(--transition);
}

.hero-methods a:hover {
    background: rgba(184, 197, 163, 0.15);
    border-color: var(--sage);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* ============================================
   BLOB ACCENTS — organic SVG shapes
   ============================================ */
.blob-accent {
    position: absolute;
    z-index: 0;
    opacity: 0.04;
    pointer-events: none;
}

.blob-accent svg {
    fill: var(--forest);
    width: 100%;
    height: 100%;
}

/* ============================================
   WAVY DIVIDER
   ============================================ */
.wavy-divider {
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wavy-divider svg {
    display: block;
    width: 100%;
    height: 40px;
}

.wavy-divider path {
    fill: none;
    stroke: var(--sage);
    stroke-width: 1.5;
    opacity: 0.35;
}

.wavy-divider-cream path {
    stroke: var(--sage-light);
}

/* ============================================
   SECTION LAYOUT
   ============================================ */
.section {
    padding: 6rem 2rem;
    position: relative;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.75rem);
    margin-bottom: 1rem;
    color: var(--forest-deep);

}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto;
    font-weight: 300;
}

.section-label {
    display: inline-block;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.73rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--moss);
    margin-bottom: 0.75rem;
}

/* ============================================
   METHOD CARDS — staggered grid with tilt hover
   ============================================ */
.methods-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
    perspective: 1200px;
}

.method-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.method-card:hover {
    transform: translateY(-6px) rotateX(2deg) rotateY(-1deg) !important;
    box-shadow: var(--shadow-lg);
}

.method-card-img-wrap {
    overflow: hidden;
    position: relative;
    height: 220px;
}

.method-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.6s ease;
}

.method-card:hover .method-card-img {
    transform: scale(1.06);
    filter: saturate(1.1) brightness(1.02);
}

.method-card-img-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(transparent, rgba(255,255,255,0.9));
    pointer-events: none;
}

.method-card-body {
    padding: 1.25rem 1.5rem 1.75rem;
}

.method-card-body h3 {
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
    color: var(--forest-deep);

}

.method-card-body p {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.6;
}

.method-card-tag {
    display: inline-block;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--moss);
    margin-bottom: 0.4rem;
}

/* ============================================
   ABOUT INTRO
   ============================================ */
.about-intro {
    background: var(--cream);
    position: relative;
    overflow: hidden;
}

.about-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.about-content p {
    font-size: 1.15rem;
    line-height: 1.85;
    color: var(--text-body);
}

.about-content p + p {
    margin-top: 1.25rem;
}

.about-content strong {
    color: var(--forest-deep);
    font-weight: 600;
}

/* ============================================
   METHOD PAGE: HERO
   ============================================ */
.method-hero {
    padding-top: 130px;
    padding-bottom: 5rem;
    background: linear-gradient(170deg, var(--forest-deep) 0%, var(--forest) 55%, var(--forest-light) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.method-hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--warm-white);
    clip-path: ellipse(55% 100% at 50% 100%);
}

.method-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    color: white;
    margin-bottom: 0.75rem;

}

.method-hero p {
    font-size: 1.15rem;
    color: var(--sage-light);
    max-width: 580px;
    margin: 0 auto;
    font-weight: 300;
    line-height: 1.75;
}

/* Pull quote */
.pull-quote {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);

    color: var(--forest-deep);
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem 2rem;
    line-height: 1.5;
    position: relative;
}

.pull-quote::before {
    content: '\201C';
    position: absolute;
    top: 0.5rem;
    left: -0.25rem;
    font-size: 4rem;
    color: var(--sage);
    opacity: 0.4;
    font-style: normal;
    line-height: 1;
}

/* ============================================
   PROJECT ENTRIES
   ============================================ */
.project-entry {
    padding: 5rem 2rem;
    position: relative;
}

.project-entry + .project-entry {
    border-top: 1px solid var(--sage-light);
}

.project-entry:nth-child(even) {
    background: var(--cream);
}

.project-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.project-entry:nth-child(even) .project-inner {
    direction: rtl;
}

.project-entry:nth-child(even) .project-inner > * {
    direction: ltr;
}

.project-img-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-img-wrap:hover {
    transform: rotate(-0.5deg) scale(1.01);
}

.project-img-wrap img {
    width: 100%;
    height: auto;
    transition: transform 0.6s ease;
}

.project-img-wrap:hover img {
    transform: scale(1.03);
}

.project-text h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--forest-deep);

}

.project-text .project-context {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--moss);
    margin-bottom: 0.75rem;
    display: block;
}

.project-text p {
    margin-bottom: 1rem;
    color: var(--text-body);
    line-height: 1.75;
}

.project-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1rem;
}

.project-tools span {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--sage-light);
    color: var(--earth);
    font-size: 0.76rem;
    font-weight: 500;
    border-radius: 100px;
    letter-spacing: 0.02em;
    transition: all var(--transition);
}

.project-tools span:hover {
    background: var(--sage);
    color: var(--bark);
}

/* ============================================
   MULTI-IMAGE GALLERY
   ============================================ */
.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.project-gallery img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.4s ease;
}

.project-gallery img:hover {
    transform: translateY(-3px) rotate(-0.5deg);
    box-shadow: var(--shadow-md);
}

/* Full-width project (for thesis deep-dive) */
.project-entry-full {
    padding: 4rem 2rem;
    position: relative;
}

.project-entry-full + .project-entry-full {
    border-top: 1px solid var(--sage-light);
}

.project-full-inner {
    max-width: 900px;
    margin: 0 auto;
}

.project-full-inner h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.4rem;
    color: var(--forest-deep);
    margin-bottom: 1rem;

}

.project-full-inner p {
    margin-bottom: 1rem;
    line-height: 1.75;
}

.project-full-inner img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin: 2rem 0;
}

.chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.chart-grid img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin: 0;
}

/* ============================================
   IFRAME EMBED (NJTPA maps)
   ============================================ */
.iframe-placeholder {
    border-radius: var(--radius-lg);
    border: 2px dashed var(--sage);
    background: var(--cream);
    padding: 2.5rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.iframe-placeholder:hover {
    border-color: var(--forest);
    background: var(--sage-light);
}

.iframe-placeholder h4 {
    font-size: 1.1rem;
    color: var(--forest-deep);
}

.iframe-placeholder p {
    font-size: 0.85rem;
    color: var(--text-light);
}

.iframe-placeholder .load-btn {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    background: var(--forest);
    color: white;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
}

.iframe-placeholder .load-btn:hover {
    background: var(--forest-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.iframe-active {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.iframe-active iframe {
    width: 100%;
    height: 500px;
    border: none;
    display: block;
}

/* ============================================
   THESIS COVER (special treatment)
   ============================================ */
.thesis-hero {
    text-align: center;
    padding: 3rem 0;
}

.thesis-hero img {
    max-width: 500px;
    margin: 0 auto 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.thesis-hero h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--forest-deep);
    margin-bottom: 0.75rem;

}

.thesis-hero p {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-hero {
    padding-top: 130px;
    padding-bottom: 4rem;
    background: var(--cream);
    text-align: center;
}

.about-hero h1 {
    font-size: clamp(2.2rem, 4vw, 3rem);
    color: var(--forest-deep);

    margin-bottom: 1rem;
}

.about-hero p {
    font-size: 1.1rem;
    color: var(--text-body);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.skill-group h3 {
    font-size: 1.1rem;
    color: var(--forest-deep);
    margin-bottom: 0.75rem;

}

.skill-group ul {
    list-style: none;
}

.skill-group li {
    padding: 0.3rem 0;
    color: var(--text-body);
    font-size: 0.95rem;
    position: relative;
    padding-left: 1.25rem;
}

.skill-group li::before {
    content: '~';
    position: absolute;
    left: 0;
    color: var(--moss);
    font-weight: 600;
}

.resume-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--forest);
    color: white;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: all var(--transition);
    margin-top: 1rem;
}

.resume-btn:hover {
    background: var(--forest-light);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--forest-deep);
    color: var(--sage-light);
    padding: 3.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 50px;
    background: var(--warm-white);
    clip-path: ellipse(55% 100% at 50% 0%);
}

.footer-inner {
    max-width: 800px;
    margin: 0 auto;
}

.site-footer p {
    font-size: 0.9rem;
    color: var(--sage);
    margin-bottom: 0.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.75rem;
    margin-top: 1.25rem;
}

.footer-links a {
    color: var(--sage);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: all var(--transition);
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--sage);
    transform: scaleX(0);
    transition: transform var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-links a:hover::after {
    transform: scaleX(1);
}

/* CTA cross-links */
.cta-links {
    text-align: center;
    padding: 3rem 2rem 4rem;
}

.cta-links p {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.cta-links a {
    font-weight: 600;
    color: var(--forest);
    border-bottom: 1px solid var(--sage);
    transition: all var(--transition);
}

.cta-links a:hover {
    color: var(--forest-light);
    border-bottom-color: var(--forest-light);
}

/* ============================================
   EXPANDABLE CHART CARDS (global)
   ============================================ */
.chart-card-global {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.chart-card-global:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.chart-card-global img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    object-position: center;
    background: #fafaf8;
    padding: 0.5rem;
    cursor: zoom-in;
}

.chart-card-global .chart-info {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--sage-light);
}

.chart-card-global .chart-info h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 0.95rem;
    color: var(--forest-deep);
    margin-bottom: 0.3rem;
}

.chart-card-global .chart-info p {
    font-size: 0.82rem;
    color: var(--text-light);
    line-height: 1.55;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.lightbox-global {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(26, 58, 42, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    padding: 2rem;
    cursor: pointer;
}

.lightbox-global.active { display: flex; }

.lightbox-global img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    object-fit: contain;
}

/* ============================================
   LEAF DIVIDER (decorative)
   ============================================ */
.leaf-divider {
    text-align: center;
    padding: 1.5rem 0;
    color: var(--sage);
    font-size: 1.4rem;
    opacity: 0.45;
    user-select: none;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.fade-in-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-stagger.visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.fade-in-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.fade-in-stagger.visible > *:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.fade-in-stagger.visible > *:nth-child(4) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.fade-in-stagger.visible > *:nth-child(5) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 960px) {
    .methods-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .project-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .project-entry:nth-child(even) .project-inner {
        direction: ltr;
    }
}

@media (max-width: 680px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: rgba(254, 252, 248, 0.97);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid var(--sage-light);
        box-shadow: var(--shadow-md);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

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

    .section {
        padding: 3.5rem 1.25rem;
    }

    .project-entry {
        padding: 3rem 1.25rem;
    }

    .method-card-img-wrap {
        height: 180px;
    }

    .hero-content h1 {
        font-size: 2.4rem;
    }

    .project-gallery {
        grid-template-columns: 1fr;
    }

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