/* =========================================================
   Academic site template
   Palette + type system carried over from the single-page
   "garden" site, expanded into a shared stylesheet for a
   multi-page layout (nav, footer, cards, pills, timeline).
   ========================================================= */

:root {
    --ink: #1e3156;
    --ink-light: #3c5478;
    --ink-muted: #7c8ca8;
    --cream: #f5f8fb;
    --cream-dark: #e8edf4;
    --accent: #496995;
    --accent-soft: #a5b5d2;
    --accent-bg: #eaf0f7;
    --accent-dark: #1e3156;
    --teal: #c06a4c;
    --teal-bg: #fdf0ec;
    --border: #dbe3ec;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(30,49,86,0.07);
    --shadow-md: 0 4px 16px rgba(30,49,86,0.09);
    --shadow-lg: 0 8px 30px rgba(30,49,86,0.12);
    --radius: 10px;
    --font-serif: 'Instrument Serif', Georgia, serif;
    --font-sans: 'Source Sans 3', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --maxw: 980px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: var(--font-sans);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.7;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent-soft); color: var(--ink); }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== NAV ===== */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(248,249,252,0.88);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.4s cubic-bezier(0.4,0,0.2,1), background 0.4s;
}
nav.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner {
    max-width: var(--maxw); margin: 0 auto; padding: 0 2rem;
    display: flex; align-items: center; justify-content: space-between; height: 60px;
}
.nav-logo { font-family: var(--font-serif); font-size: 1.3rem; color: var(--ink); }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 0.15rem; }
.nav-links a {
    color: var(--ink-muted); font-size: 0.87rem; font-weight: 500;
    padding: 0.35rem 0.7rem; border-radius: 7px; transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); background: var(--accent-bg); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; color: var(--ink); }
.mobile-menu {
    display: none; position: fixed; top: 60px; left: 0; right: 0;
    background: rgba(248,249,252,0.98); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border); padding: 0.75rem 2rem 1.25rem;
    box-shadow: var(--shadow-lg); z-index: 99;
}
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 0.55rem 0; color: var(--ink-light); font-weight: 500; font-size: 0.95rem; border-bottom: 1px solid var(--border); }
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a.active { color: var(--accent); }

/* ===== PAGE HEADER (non-home pages) ===== */
.page-header { padding: 7.5rem 2rem 2.5rem; }
.page-header-inner { max-width: var(--maxw); margin: 0 auto; }
.page-label { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 0.5rem; }
.page-title { font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1.15; margin-bottom: 0.6rem; }
.page-desc { color: var(--ink-muted); font-size: 1.02rem; max-width: 640px; }

/* ===== HERO v2 (masthead layout) ===== */
.hero-v2 { padding: 8.5rem 2rem 4rem; }
.hero-v2-inner { max-width: var(--maxw); margin: 0 auto; }
.hero-masthead { display: flex; align-items: center; gap: 1.75rem; margin-bottom: 2.75rem; }
.hero-photo-badge { width: 116px; height: 116px; border-radius: 50%; overflow: hidden; flex-shrink: 0; box-shadow: var(--shadow-lg); border: 4px solid var(--white); }
.hero-photo-badge img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-photo-badge .photo-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(145deg, var(--accent-bg), var(--teal-bg)); font-family: var(--font-serif); font-size: 2.6rem; color: var(--accent); font-style: italic; }
.hero-kicker { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.45rem; }
.hero-name-big { font-family: var(--font-serif); font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.05; color: var(--ink); letter-spacing: -0.01em; }
.hero-name-big em { font-style: italic; }
.hero-split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: start; padding-top: 2rem; border-top: 1px solid var(--border); }
.hero-subtitle-v2 { font-size: 1.05rem; color: var(--ink-light); line-height: 1.85; }
.hero-side { display: flex; flex-direction: column; gap: 1.4rem; }
.hero-tags-v2 { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.social-icons { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.social-icon {
    width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--white); border: 1.5px solid var(--border); color: var(--ink-light) !important;
    transition: all 0.2s;
}
.social-icon svg { width: 18px; height: 18px; }
.social-icon:hover { border-color: var(--accent); color: var(--accent) !important; background: var(--accent-bg); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.social-icon.primary { background: var(--ink); border-color: var(--ink); color: var(--cream) !important; }
.social-icon.primary:hover { background: var(--accent); border-color: var(--accent); color: #fff !important; box-shadow: 0 4px 16px rgba(73,105,149,0.35); }

/* ===== HERO (home only) ===== */
.hero { min-height: 86vh; display: flex; align-items: center; padding: 6.5rem 2rem 3.5rem; }
.hero-inner { max-width: var(--maxw); margin: 0 auto; width: 100%; display: grid; grid-template-columns: 1fr 250px; gap: 3.5rem; align-items: center; }
.hero-text h1 { font-family: var(--font-serif); font-size: clamp(2.4rem, 4.5vw, 3.2rem); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 1.1rem; }
.hero-text h1 em { font-style: italic; }
.hero-subtitle { font-size: 1.08rem; color: var(--ink-light); line-height: 1.8; margin-bottom: 1.5rem; max-width: 560px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.75rem; }
.tag { padding: 0.28rem 0.7rem; border-radius: 100px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.015em; }
.tag.blue { background: var(--accent-bg); color: var(--accent); }
.tag.teal { background: var(--teal-bg); color: var(--teal); }

.social-row { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.social-pill {
    display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.4rem 0.9rem;
    border-radius: 100px; font-size: 0.84rem; font-weight: 600; border: 1.5px solid var(--border);
    color: var(--ink-light) !important; background: var(--white); transition: all 0.25s;
}
.social-pill:hover { border-color: var(--accent); color: var(--accent) !important; background: var(--accent-bg); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.social-pill svg { width: 16px; height: 16px; flex-shrink: 0; }
.social-pill.primary { background: var(--ink); border-color: var(--ink); color: var(--cream) !important; }
.social-pill.primary:hover { background: var(--accent); border-color: var(--accent); color: #fff !important; box-shadow: 0 4px 16px rgba(73,105,149,0.35); }
.social-pill.primary svg { stroke: currentColor; fill: none; }

.hero-photo { position: relative; }
.photo-frame { width: 240px; height: 296px; border-radius: 18px; overflow: hidden; background: var(--cream-dark); box-shadow: var(--shadow-lg); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(145deg, var(--accent-bg), var(--teal-bg)); font-family: var(--font-serif); font-size: 4rem; color: var(--accent); font-style: italic; }
.hero-photo .decor-1 { position: absolute; width: 50px; height: 50px; border-radius: 50%; background: var(--accent-soft); opacity: 0.35; top: -12px; right: -12px; z-index: -1; }
.hero-photo .decor-2 { position: absolute; width: 80px; height: 80px; border-radius: 50%; border: 2px solid rgba(165,181,210,0.5); bottom: -20px; left: -20px; z-index: -1; }

/* ===== SECTIONS ===== */
section { padding: 4rem 2rem; }
.section-inner { max-width: var(--maxw); margin: 0 auto; }
.section-label { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 0.5rem; }
.section-title { font-family: var(--font-serif); font-size: clamp(1.8rem, 3vw, 2.2rem); line-height: 1.2; margin-bottom: 0.6rem; }
.section-desc { color: var(--ink-muted); font-size: 1rem; max-width: 560px; margin-bottom: 2.25rem; }
section.alt { background: var(--white); }
.section-foot-link { margin-top: 1.75rem; font-size: 0.92rem; font-weight: 600; }

/* ===== CARD GRIDS (research / teaching / team) ===== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.card {
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.6rem; transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
section.alt .card { background: rgba(248,249,252,0.6); }
.card-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-bg); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; font-size: 1.2rem; }
.card h3 { font-family: var(--font-serif); font-size: 1.25rem; margin-bottom: 0.5rem; color: var(--ink); }
.card p { color: var(--ink-muted); font-size: 0.94rem; }
.card .card-meta { font-family: var(--font-mono); font-size: 0.72rem; color: var(--teal); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.4rem; }

/* ===== GALLERY (personal page) ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.4rem; }
.gallery-item { background: var(--white); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.2s, box-shadow 0.2s; }
.gallery-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.gallery-photo { aspect-ratio: 4 / 3; background: var(--cream-dark); overflow: hidden; }
.gallery-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-caption { padding: 0.8rem 1rem 1rem; font-family: var(--font-serif); font-style: italic; font-size: 0.95rem; color: var(--ink-light); text-align: center; }

/* ===== COURSES CARD (teaching page) ===== */
.courses-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.course-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.3rem 1.6rem; border-bottom: 1px solid var(--border); cursor: pointer; transition: background 0.2s; }
.course-row:last-child { border-bottom: none; }
.course-row:hover { background: var(--accent-bg); }
.course-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.course-row-main { min-width: 0; }
.course-title { font-family: var(--font-serif); font-size: 1.15rem; color: var(--ink); margin-bottom: 0.5rem; }
.semester-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.semester-badge { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; color: var(--accent); background: var(--accent-bg); padding: 0.2rem 0.6rem; border-radius: 100px; white-space: nowrap; }
.course-arrow { flex-shrink: 0; color: var(--ink-muted); transition: transform 0.2s; }
.course-row:hover .course-arrow { transform: translateX(3px); color: var(--accent); }

/* ===== COURSE MODAL ===== */
.modal-backdrop {
    display: none; position: fixed; inset: 0; background: rgba(30,49,86,0.45);
    z-index: 200; align-items: center; justify-content: center; padding: 1.5rem;
}
.modal-backdrop.open { display: flex; }
.modal-box {
    background: var(--white); border-radius: 14px; max-width: 560px; width: 100%;
    max-height: 80vh; overflow-y: auto; padding: 2rem; box-shadow: var(--shadow-lg);
    position: relative;
}
.modal-close {
    position: absolute; top: 1rem; right: 1rem; width: 32px; height: 32px; border-radius: 50%;
    border: none; background: var(--cream-dark); color: var(--ink-muted); cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.modal-close:hover { background: var(--accent-bg); color: var(--accent); }
.modal-meta { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.5rem; }
.modal-title { font-family: var(--font-serif); font-size: 1.5rem; color: var(--ink); margin-bottom: 0.9rem; padding-right: 2rem; }
.modal-semesters { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.1rem; }
.modal-body { color: var(--ink-light); font-size: 0.98rem; line-height: 1.75; }

/* ===== SELECTED WORKS (home) ===== */
.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.work-card {
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; display: flex; flex-direction: column;
}
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.work-thumb {
    height: 140px; background: linear-gradient(145deg, var(--accent-bg), var(--teal-bg));
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-serif); font-style: italic; font-size: 2.4rem; color: var(--accent);
}
.work-thumb img { width: 100%; height: 100%; object-fit: cover; }
.work-body { padding: 1.4rem 1.5rem 1.6rem; flex: 1; display: flex; flex-direction: column; }
.work-tag { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--teal); margin-bottom: 0.5rem; }
.work-body h3 { font-family: var(--font-serif); font-size: 1.2rem; margin-bottom: 0.5rem; color: var(--ink); }
.work-body p { color: var(--ink-muted); font-size: 0.92rem; margin-bottom: 1rem; flex: 1; }
.work-body a.section-foot-link { margin-top: 0; font-size: 0.85rem; }
.work-links { display: flex; gap: 1.1rem; flex-wrap: wrap; margin-top: 1rem; }
.work-links a.section-foot-link { margin-top: 0; }

/* ===== TAB SWITCHER (publications: papers / talks) ===== */
.tab-switch { display: inline-flex; gap: 0.25rem; background: var(--cream-dark); border-radius: 100px; padding: 0.25rem; margin-bottom: 2rem; }
.tab-btn {
    font-family: var(--font-sans); font-size: 0.86rem; font-weight: 600; color: var(--ink-muted);
    background: none; border: none; padding: 0.5rem 1.2rem; border-radius: 100px; cursor: pointer; transition: all 0.2s;
}
.tab-btn.active { background: var(--white); color: var(--accent); box-shadow: var(--shadow-sm); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ===== TALKS ===== */
.talk-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem 1.5rem; margin-bottom: 1rem; display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; flex-wrap: wrap; }
section.alt .talk-item { background: rgba(250,246,239,0.6); }
.talk-title { font-family: var(--font-serif); font-size: 1.05rem; color: var(--ink); margin-bottom: 0.3rem; }
.talk-venue { font-size: 0.88rem; color: var(--ink-muted); }
.talk-date { font-family: var(--font-mono); font-size: 0.75rem; color: var(--teal); white-space: nowrap; }

/* ===== MENTEE LIST (about page) ===== */
.mentee-group { margin-bottom: 2rem; }
.mentee-group h3 { font-family: var(--font-serif); font-size: 1.15rem; margin-bottom: 0.9rem; color: var(--ink); }
.mentee-item { display: flex; justify-content: space-between; gap: 1rem; padding: 0.65rem 0; border-bottom: 1px solid var(--border); font-size: 0.94rem; }
.mentee-item:last-child { border-bottom: none; }
.mentee-item .name { color: var(--ink); font-weight: 600; }
.mentee-item .detail { color: var(--ink-muted); }
.mentee-item .when { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-muted); white-space: nowrap; }

/* ===== AWARDS LIST (about page) ===== */
.award-list { display: flex; flex-direction: column; }
.award-item { display: flex; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--border); }
.award-item:last-child { border-bottom: none; }
.award-icon { width: 34px; height: 34px; border-radius: 8px; background: var(--accent-bg); color: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1rem; }
.award-title { font-weight: 600; color: var(--ink); font-size: 0.96rem; }
.award-sub { color: var(--ink-muted); font-size: 0.86rem; }

/* ===== PUBLICATIONS ===== */
.pub-list { display: flex; flex-direction: column; gap: 1.15rem; }
.pub-group-label { font-family: var(--font-serif); font-size: 1.1rem; color: var(--ink-light); margin-top: 1rem; margin-bottom: -0.25rem; }
.pub-group { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.25rem; }
section.alt .pub-group { background: rgba(248,249,252,0.5); }
.pub-group-title { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 700; color: var(--ink); margin-bottom: 1rem; padding-bottom: 0.65rem; border-bottom: 1px solid var(--border); }
.pub-venue-badge { display: inline-block; font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600; color: var(--teal); background: var(--teal-bg); padding: 0.18rem 0.55rem; border-radius: 6px; margin-bottom: 0.5rem; letter-spacing: 0.03em; }
.pub-title { font-family: var(--font-serif); font-size: 1.1rem; color: var(--ink); margin-bottom: 0.3rem; }
.pub-authors { font-size: 0.88rem; color: var(--ink-muted); margin-bottom: 0.55rem; }
.pub-authors strong { color: var(--ink-light); font-weight: 700; }
.pub-summary { font-size: 0.92rem; color: var(--ink-muted); margin-bottom: 0.75rem; }
.pub-links { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pub-links a {
    font-size: 0.8rem; font-weight: 600; padding: 0.3rem 0.75rem; border-radius: 100px;
    background: var(--accent-bg); color: var(--accent) !important; border: 1px solid transparent;
}
.pub-links a:hover { background: var(--accent); color: #fff !important; }

/* ===== TIMELINE (CV page) ===== */
.timeline { border-left: 2px solid var(--border); padding-left: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.timeline-item { position: relative; }
.timeline-item::before { content: ""; position: absolute; left: -1.62rem; top: 0.35rem; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid var(--white); box-shadow: 0 0 0 2px var(--accent-soft); }
.timeline-date { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent); font-weight: 600; letter-spacing: 0.04em; margin-bottom: 0.2rem; }
.timeline-title { font-family: var(--font-serif); font-size: 1.1rem; color: var(--ink); margin-bottom: 0.15rem; }
.timeline-sub { font-size: 0.88rem; color: var(--ink-muted); }

/* ===== NEWS ===== */
.news-list { display: flex; flex-direction: column; }
.news-item { display: flex; gap: 1.25rem; padding: 1.1rem 0; border-bottom: 1px solid var(--border); }
.news-item:last-child { border-bottom: none; }
.news-date { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-muted); white-space: nowrap; min-width: 108px; padding-top: 0.15rem; }
.news-headline { font-size: 0.98rem; color: var(--ink-light); }
.news-headline strong { color: var(--ink); }

/* ===== SERVICE / LIST ITEMS ===== */
.service-block { margin-bottom: 2rem; }
.service-block h3 { font-family: var(--font-serif); font-size: 1.2rem; margin-bottom: 0.9rem; color: var(--ink); }
.service-item { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--border); font-size: 0.94rem; }
.service-item:last-child { border-bottom: none; }
.service-item .role { color: var(--ink); font-weight: 600; }
.service-item .org { color: var(--ink-muted); }
.service-item .when { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-muted); white-space: nowrap; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.55rem 1.1rem; border-radius: 100px; font-size: 0.88rem; font-weight: 600; border: 1.5px solid var(--border); background: var(--white); color: var(--ink-light) !important; transition: all 0.2s; }
.btn:hover { border-color: var(--accent); color: var(--accent) !important; background: var(--accent-bg); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--cream) !important; }
.btn.primary:hover { background: var(--accent); border-color: var(--accent); color: #fff !important; }

/* ===== FOOTER ===== */
footer { background: var(--ink); color: var(--cream-dark); padding: 2.75rem 2rem; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.25rem; }
.footer-name { font-family: var(--font-serif); font-size: 1.15rem; color: var(--white); }
.footer-social { display: flex; gap: 1rem; }
.footer-social a { color: var(--accent-soft) !important; opacity: 0.85; }
.footer-social a:hover { opacity: 1; }
.footer-social svg { width: 19px; height: 19px; }
.footer-note { font-size: 0.8rem; color: var(--ink-muted); text-align: right; }

/* ===== FADE-IN UTILITY ===== */
.fade-in { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 760px) {
    .nav-links { display: none; }
    .nav-toggle { display: block; }
    .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
    .hero-photo { order: -1; display: flex; justify-content: center; }
    .photo-frame { width: 180px; height: 222px; }
    .hero-v2 { padding: 7rem 1.25rem 3rem; }
    .hero-masthead { flex-direction: column; align-items: flex-start; gap: 1.1rem; }
    .hero-photo-badge { width: 88px; height: 88px; }
    .hero-split { grid-template-columns: 1fr; gap: 1.75rem; }
    section { padding: 3rem 1.25rem; }
    .page-header { padding: 6.5rem 1.25rem 2rem; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
    .footer-note { text-align: left; }
    .service-item { flex-direction: column; gap: 0.2rem; }
}
