/* =========================================================
   Dr. Mayank Aggarwal — Portfolio  (v2.0)
   ========================================================= */
:root {
    --brand: #7d1525;
    --brand-700: #5e0f1c;
    --brand-900: #3a0912;
    --brand-50: #fbf1f2;
    --brand-100: #f5dfe2;
    --gold: #c49a3c;
    --ink: #1d1517;
    --ink-2: #4a3f42;
    --muted: #7a6f71;
    --paper: #fbf8f4;
    --tint: #f5efe8;
    --line: #ebe2d8;
    --white: #fff;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow-sm: 0 2px 6px rgba(29, 21, 23, .05);
    --shadow: 0 12px 32px -12px rgba(29, 21, 23, .18);
    --shadow-lg: 0 30px 60px -20px rgba(58, 9, 18, .35);
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --header-h: 76px;
}

* { -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { font-family: var(--font-body); color: var(--ink-2); background: var(--paper); font-size: 1rem; line-height: 1.7; overflow-x: hidden; }
h1, h2, h3, h4, h5, h6 { color: var(--ink); font-weight: 700; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-700); }
img { max-width: 100%; }
::selection { background: var(--brand); color: #fff; }
.skip-link { position: absolute; z-index: 2000; top: 8px; left: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; }

/* ---------- Buttons ---------- */
.btn { background-image: none; font-weight: 600; border-radius: 12px; padding: .62rem 1.25rem; transition: all .2s ease; }
.btn-lg { padding: .85rem 1.6rem; font-size: 1rem; border-radius: 14px; }
.btn-sm { padding: .42rem .9rem; border-radius: 10px; font-size: .875rem; }
.btn-brand { background: var(--brand); color: #fff; border: 1px solid var(--brand); box-shadow: 0 8px 20px -10px rgba(125, 21, 37, .7); }
.btn-brand:hover, .btn-brand:focus { background: var(--brand-700); border-color: var(--brand-700); color: #fff; transform: translateY(-1px); }
.btn-outline-brand { border: 1.5px solid var(--brand); color: var(--brand); background: transparent; }
.btn-outline-brand:hover { background: var(--brand); color: #fff; }
.btn:focus-visible { outline: 3px solid rgba(125, 21, 37, .35); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(251, 248, 244, .82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s, background .25s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0, 0, 0, .35); background: rgba(255, 255, 255, .9); }
.site-header .navbar { min-height: var(--header-h); padding: 0; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand-mark { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(140deg, var(--brand), var(--brand-900)); color: #fff; font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18); flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; letter-spacing: -.01em; }
.brand-text small { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.brand-light { color: #fff; }
.brand-light .brand-text small { color: rgba(255, 255, 255, .6); }
.brand-light .brand-mark { background: #fff; color: var(--brand); }

.main-nav .nav-link { color: var(--ink-2); font-weight: 600; font-size: .94rem; padding: .5rem .85rem !important; border-radius: 10px; position: relative; }
.main-nav .nav-link:hover { color: var(--brand); background: var(--brand-50); }
.main-nav .nav-link.active { color: var(--brand); }
.main-nav .nav-link.active::after { content: ''; position: absolute; left: .85rem; right: .85rem; bottom: .2rem; height: 2px; border-radius: 2px; background: var(--brand); }
.main-nav .dropdown-menu { border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: .4rem; }
.main-nav .dropdown-item { border-radius: 8px; font-weight: 500; padding: .5rem .8rem; }
.main-nav .dropdown-item.active, .main-nav .dropdown-item:active { background: var(--brand); }

.menu-toggle { width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }
.menu-toggle span:nth-child(2) { width: 14px; margin-left: 6px; }
.menu-toggle:hover span:nth-child(2) { width: 20px; margin-left: 0; }

/* ---------- Mobile off-canvas ---------- */
.mobile-nav { width: min(86vw, 360px) !important; border-left: 0 !important; background: var(--paper); }
.mobile-nav .offcanvas-header { background: linear-gradient(140deg, var(--brand), var(--brand-900)); color: #fff; padding: 1.4rem 1.25rem; }
.mobile-nav-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255, 255, 255, .6); background: #fff; }
.mobile-links { list-style: none; padding: 0; margin: 0; }
.mobile-links li a { display: flex; align-items: center; gap: .85rem; padding: .9rem 1rem; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.02rem; margin-bottom: .25rem; }
.mobile-links li a > i:first-child { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--tint); color: var(--brand); font-size: 1.05rem; }
.mobile-links li a .bi-chevron-right { color: var(--muted); font-size: .8rem; }
.mobile-links li a:hover, .mobile-links li a.active { background: #fff; box-shadow: var(--shadow-sm); color: var(--brand); }
.mobile-links li a.active > i:first-child { background: var(--brand); color: #fff; }
.mobile-contact { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: .5rem; }
.mobile-contact > a { color: var(--ink-2); text-decoration: none; font-size: .92rem; display: flex; gap: .6rem; align-items: center; word-break: break-all; }
.mobile-contact > a i { color: var(--brand); }

/* ---------- Social ---------- */
.social-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.social-row a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; transition: .2s; border: 1px solid rgba(255, 255, 255, .12); }
.social-row a:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); transform: translateY(-2px); }
.mobile-nav .social-row a, .social-row-dark a { background: #fff; color: var(--brand); border: 1px solid var(--line); }
.social-row-dark a:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------- Generic sections ---------- */
.section { padding: 96px 0; }
.section-tint { background: var(--tint); }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: .75rem; }
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--gold); }
.section-title { font-family: var(--font-display); font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; margin-bottom: 1.4rem; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2.5rem; }
.lead-text { font-size: 1.06rem; }
.small-text { font-size: .92rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--brand); text-decoration: none; }
.link-arrow i { transition: transform .2s; }
.link-arrow:hover i.bi-arrow-right { transform: translateX(4px); }
.chip { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--brand); background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 999px; padding: .28rem .7rem; line-height: 1.2; }
.chip-soft { background: #fff; color: var(--ink-2); border-color: var(--line); }
.rich-text > :last-child { margin-bottom: 0; }
.rich-text p { margin-bottom: 1rem; }
.rich-text img { border-radius: var(--radius-sm); height: auto; }
.rich-text blockquote { border-left: 3px solid var(--gold); padding: .4rem 0 .4rem 1.2rem; font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); margin: 1.5rem 0; }
.rich-text table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .95rem; }
.rich-text table td, .rich-text table th { border: 1px solid var(--line); padding: .6rem .8rem; }
.rich-text table th { background: var(--tint); color: var(--ink); }
.rich-text figure { margin: 1.5rem 0; }
.rich-text figure.table { overflow-x: auto; }
.rich-text h2, .rich-text h3, .rich-text h4 { font-family: var(--font-display); font-weight: 600; margin: 1.8rem 0 .8rem; }
.rich-text ul li::marker { color: var(--brand); }

.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-state > i { font-size: 2.4rem; color: var(--brand); opacity: .55; }
.empty-state p { margin: .6rem 0 0; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero-pattern { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 70% at 70% 30%, #000 10%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 30%, #000 10%, transparent 75%); opacity: .7; pointer-events: none; }
.eyebrow-pill { display: inline-flex; align-items: center; gap: .55rem; padding: .45rem 1rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .8rem; font-weight: 600; color: var(--ink-2); box-shadow: var(--shadow-sm); }
.eyebrow-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-100); }
.hero-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.6rem, 6.4vw, 4.6rem); letter-spacing: -.035em; line-height: 1.02; margin: 1.3rem 0 1rem; }
.hero-role { font-size: 1.15rem; font-weight: 700; color: var(--brand); margin-bottom: .4rem; }
.hero-role span { color: var(--gold); margin: 0 .3rem; }
.hero-inst { color: var(--muted); font-weight: 500; margin-bottom: 1.3rem; }
.hero-lead { font-size: 1.05rem; max-width: 600px; padding-left: 1rem; border-left: 3px solid var(--gold); }

.portrait-wrap { position: relative; max-width: 420px; margin: 0 auto; padding: 0 0 24px 24px; }
.portrait-wrap::before { content: ''; position: absolute; left: 0; bottom: 0; width: calc(100% - 24px); height: calc(100% - 24px); border-radius: 220px 220px 28px 28px; background: linear-gradient(150deg, var(--brand), var(--brand-900)); }
.portrait-frame { position: relative; border-radius: 220px 220px 28px 28px; overflow: hidden; aspect-ratio: 4/5; background: var(--tint); box-shadow: var(--shadow-lg); border: 6px solid #fff; }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; }
.float-card { position: absolute; display: flex; align-items: center; gap: .7rem; background: #fff; border-radius: 16px; padding: .7rem 1rem .7rem .7rem; box-shadow: var(--shadow); border: 1px solid var(--line); max-width: 250px; animation: float 6s ease-in-out infinite; }
.float-card .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); font-size: 1.15rem; flex-shrink: 0; }
.float-card strong { display: block; color: var(--ink); font-size: .9rem; line-height: 1.2; }
.float-card small { color: var(--muted); font-size: .76rem; line-height: 1.3; display: block; }
.float-card-a { top: 46%; left: -90px; }
.float-card-b { bottom: 12%; right: -24px; animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Stats band ---------- */
.stats-band { background: var(--ink); color: #fff; position: relative; }
.stats-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(600px 200px at 10% 0%, rgba(125, 21, 37, .7), transparent), radial-gradient(500px 200px at 90% 100%, rgba(196, 154, 60, .25), transparent); }
.stat { position: relative; padding: 2.4rem 1.5rem; text-align: center; border-right: 1px solid rgba(255, 255, 255, .08); }
.col-6:last-child .stat, .col-lg-3:last-child .stat { border-right: 0; }
.stat > i { color: var(--gold); font-size: 1.3rem; }
.stat-num { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 600; color: #fff; line-height: 1.1; margin: .4rem 0 .2rem; }
.stat-label { font-size: .82rem; color: rgba(255, 255, 255, .65); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }

/* ---------- Awards ---------- */
.awards-stack { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.award-row { display: flex; gap: 1rem; padding: 1rem .25rem; border-bottom: 1px dashed var(--line); }
.award-row:last-of-type { border-bottom: 0; margin-bottom: .5rem; }
.award-row h3 { font-size: 1rem; margin: 0 0 .15rem; }
.award-row p { margin: 0; font-size: .85rem; color: var(--muted); }
.award-ic { width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(140deg, #fff7e6, #f6e6c4); color: #8a6516; font-size: 1.25rem; }
.award-tile, .member-tile { height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.2rem; transition: .2s; }
.award-tile { display: flex; gap: 1rem; }
.award-tile:hover, .member-tile:hover { border-color: var(--brand-100); box-shadow: var(--shadow); transform: translateY(-2px); }
.award-tile h4, .member-tile h4 { font-size: 1rem; margin: 0 0 .2rem; }
.award-tile .meta { font-size: .82rem; color: var(--brand); font-weight: 600; margin-bottom: .4rem; }
.member-tile { border-left: 4px solid var(--brand); }
.member-tile p { margin: 0 0 .6rem; color: var(--muted); font-size: .9rem; }

/* ---------- Interests ---------- */
.interest-card { position: relative; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; transition: .25s; overflow: hidden; }
.interest-card::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--brand), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.interest-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.interest-card:hover::after { transform: scaleX(1); }
.interest-card .num { position: absolute; top: 1.2rem; right: 1.4rem; font-family: var(--font-display); font-size: 2rem; color: var(--line); font-weight: 600; }
.interest-card .ic { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: var(--brand-50); color: var(--brand); font-size: 1.5rem; margin-bottom: 1.1rem; }
.interest-card h3 { font-size: 1.15rem; margin-bottom: .45rem; }
.interest-card p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---------- Talks ---------- */
.talk-card { display: flex; gap: 1.3rem; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; text-decoration: none; color: inherit; transition: .25s; }
.talk-card:hover { border-color: var(--brand-100); box-shadow: var(--shadow); transform: translateY(-3px); color: inherit; }
.talk-date { flex-shrink: 0; width: 76px; text-align: center; border-radius: 14px; background: var(--brand); color: #fff; padding: .7rem .3rem; align-self: flex-start; }
.talk-date .d { display: block; font-family: var(--font-display); font-size: 1.9rem; line-height: 1; font-weight: 600; }
.talk-date .m { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; margin-top: .3rem; opacity: .85; }
.talk-body h3 { font-size: 1.15rem; margin: .6rem 0 .35rem; line-height: 1.35; }
.talk-venue { font-size: .86rem; color: var(--ink-2); font-weight: 600; margin-bottom: .45rem; display: flex; gap: .35rem; }
.talk-venue i { color: var(--brand); }
.talk-sum { font-size: .9rem; color: var(--muted); margin: 0; }

.filter-bar { display: grid; grid-template-columns: 1fr 200px 140px auto auto; gap: .75rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem; box-shadow: var(--shadow-sm); }
.filter-bar .form-control, .filter-bar .form-select { border-radius: 12px; border-color: var(--line); min-height: 46px; }
.input-icon { position: relative; }
.input-icon i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.input-icon .form-control { padding-left: 40px; }
.result-count { color: var(--muted); font-size: .9rem; margin: 1.3rem 0; font-weight: 600; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(125, 21, 37, .12); }

.lecture-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: .25s; }
.lecture-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); color: inherit; }
.lecture-img { position: relative; aspect-ratio: 16/9; background: var(--tint); overflow: hidden; }
.lecture-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.lecture-card:hover .lecture-img img { transform: scale(1.05); }
.chip-on-img { position: absolute; left: 1rem; top: 1rem; background: rgba(255, 255, 255, .95); }
.lecture-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.lecture-body h3 { font-size: 1.12rem; margin: .2rem 0 .5rem; line-height: 1.35; }
.lecture-body .talk-sum { flex: 1; margin-bottom: 1rem; }
.lecture-date { font-size: .8rem; color: var(--brand); font-weight: 700; margin: 0; display: flex; gap: .4rem; }

.detail-img { width: 100%; border-radius: var(--radius); margin-bottom: 1.5rem; box-shadow: var(--shadow); }
.detail-meta { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.5rem; }
.detail-meta span { display: inline-flex; gap: .45rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .4rem .9rem; font-size: .88rem; font-weight: 600; }
.detail-meta i { color: var(--brand); }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; position: sticky; top: calc(var(--header-h) + 20px); }
.side-card h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.side-list { list-style: none; padding: 0; margin: 0; }
.side-list li + li { border-top: 1px solid var(--line); }
.side-list a { display: block; padding: .8rem 0; text-decoration: none; color: var(--ink); }
.side-list a:hover strong { color: var(--brand); }
.side-list strong { display: block; font-size: .95rem; line-height: 1.35; }
.side-list small { color: var(--muted); }

/* ---------- Albums & photos ---------- */
.album-card { display: block; position: relative; border-radius: var(--radius); overflow: hidden; text-decoration: none; background: var(--ink); box-shadow: var(--shadow-sm); transition: .3s; }
.album-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.album-img { aspect-ratio: 4/3; overflow: hidden; }
.album-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s, opacity .3s; opacity: .9; }
.album-card:hover .album-img img { transform: scale(1.06); opacity: .75; }
.album-meta { position: absolute; inset: auto 0 0 0; padding: 3rem 1.3rem 1.2rem; background: linear-gradient(transparent, rgba(20, 8, 10, .88)); color: #fff; }
.album-meta h3 { color: #fff; font-size: 1.15rem; margin: 0 0 .25rem; }
.album-meta span { font-size: .82rem; opacity: .8; }
.photo-grid { columns: 3 280px; column-gap: 1rem; }
.photo-item { display: block; position: relative; margin-bottom: 1rem; border-radius: var(--radius-sm); overflow: hidden; break-inside: avoid; }
.photo-item img { width: 100%; display: block; transition: transform .5s; }
.photo-item:hover img { transform: scale(1.04); }
.photo-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem .9rem .7rem; color: #fff; font-size: .85rem; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); opacity: 0; transition: .3s; }
.photo-item:hover .photo-cap { opacity: 1; }

/* ---------- Page hero ---------- */
.page-hero { position: relative; padding: 64px 0 56px; background: linear-gradient(180deg, var(--tint), var(--paper)); border-bottom: 1px solid var(--line); overflow: hidden; }
.page-hero h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 4.6vw, 3.3rem); letter-spacing: -.03em; line-height: 1.1; margin: .4rem 0 .7rem; max-width: 900px; }
.page-hero p { color: var(--muted); font-size: 1.08rem; margin: 0; max-width: 720px; }
.breadcrumb { font-size: .85rem; font-weight: 600; margin: 0; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb-item.active { color: var(--brand); }

/* ---------- About ---------- */
.profile-card { top: calc(var(--header-h) + 20px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.3rem 1.6rem; box-shadow: var(--shadow-sm); text-align: center; }
.profile-img { border-radius: 14px; overflow: hidden; aspect-ratio: 1/1; background: var(--tint); margin-bottom: 1.2rem; }
.profile-img img { width: 100%; height: 100%; object-fit: cover; }
.profile-card h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; margin-bottom: .2rem; }
.profile-card .role { color: var(--brand); font-weight: 700; margin-bottom: 1rem; }
.profile-facts { list-style: none; padding: 0; margin: 0 0 1.3rem; text-align: left; font-size: .9rem; }
.profile-facts li { display: flex; gap: .7rem; padding: .6rem 0; border-top: 1px solid var(--line); word-break: break-word; }
.profile-facts i { color: var(--brand); margin-top: .15rem; }
.callout { background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: var(--radius-sm); padding: 1.1rem 1.3rem; color: var(--ink); font-weight: 500; margin-bottom: 1.5rem; }
.mini-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin: 2rem 0 0; }
.mini-stats > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem; text-align: center; }
.mini-stats strong { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--brand); font-weight: 600; line-height: 1.1; }
.mini-stats span { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.block-title { font-family: var(--font-display); font-weight: 600; font-size: 1.55rem; margin: 3rem 0 1.4rem; display: flex; align-items: center; gap: .6rem; }
.block-title i { color: var(--brand); font-size: 1.3rem; }
.timeline { list-style: none; padding: 0 0 0 1.6rem; margin: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 1.6rem 0.4rem; }
.timeline li::before { content: ''; position: absolute; left: calc(-1.6rem - 7px); top: 6px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); }
.tl-head { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.tl-head h4 { font-size: 1.08rem; margin: 0; }
.tl-sub { color: var(--muted); font-weight: 600; font-size: .92rem; margin: .2rem 0 .3rem; }

/* ---------- Research ---------- */
.filter-pills { display: flex; flex-wrap: wrap; gap: .4rem; background: #fff; border: 1px solid var(--line); padding: .35rem; border-radius: 14px; }
.filter-pills button { border: 0; background: transparent; padding: .45rem .95rem; border-radius: 10px; font-weight: 600; font-size: .88rem; color: var(--ink-2); }
.filter-pills button.active { background: var(--brand); color: #fff; }
.pub-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .9rem; }
.pub-list li { display: flex; gap: 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.2rem 1.4rem; }
.pub-year { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; color: var(--brand); min-width: 58px; }
.pub-body h3 { font-size: 1.05rem; line-height: 1.45; margin: 0 0 .35rem; }
.pub-body h3 a { color: var(--ink); text-decoration: none; }
.pub-body h3 a:hover { color: var(--brand); }
.pub-body h3 a i { font-size: .75rem; color: var(--muted); }
.pub-authors { font-size: .9rem; margin: 0 0 .3rem; }
.pub-venue { font-size: .88rem; color: var(--muted); margin: 0; font-style: italic; }
.pub-body details { margin-top: .6rem; }
.pub-body summary { color: var(--brand); font-weight: 600; font-size: .85rem; cursor: pointer; }
.patent-card { height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; border-top: 4px solid var(--gold); }
.patent-card h3 { font-size: 1.1rem; line-height: 1.4; }
.patent-card .meta { font-size: .88rem; color: var(--muted); margin-bottom: .3rem; }

/* ---------- Contact ---------- */
.contact-cards { display: flex; flex-direction: column; gap: .8rem; }
.contact-card { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.1rem; text-decoration: none; color: var(--ink-2); transition: .2s; }
a.contact-card:hover { border-color: var(--brand-100); box-shadow: var(--shadow); color: var(--ink-2); }
.contact-card .ic { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); font-size: 1.15rem; }
.contact-card small { display: block; text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; font-weight: 700; color: var(--muted); }
.contact-card strong { color: var(--ink); word-break: break-word; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: clamp(1.4rem, 4vw, 2.4rem); box-shadow: var(--shadow); }
.form-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; margin-bottom: 1.3rem; }
.form-card .form-label { font-weight: 600; font-size: .88rem; color: var(--ink); }
.form-card .form-control { border-radius: 12px; border-color: var(--line); padding: .75rem 1rem; background: var(--paper); }
.form-card .form-control:focus { background: #fff; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 21/8; min-height: 280px; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ---------- CTA ---------- */
.cta-panel { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(2rem, 5vw, 3.5rem); background: linear-gradient(130deg, var(--brand) 0%, var(--brand-900) 100%); color: rgba(255, 255, 255, .85); box-shadow: var(--shadow-lg); }
.cta-panel::after { content: ''; position: absolute; width: 380px; height: 380px; right: -120px; top: -160px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .06); }
.cta-panel h2 { color: #fff; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.02em; }
.cta-panel .btn-light { color: var(--brand); border-radius: 14px; position: relative; z-index: 1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .62); padding: 80px 0 0; font-size: .93rem; }
.site-footer h6 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1.1rem; }
.footer-about { max-width: 420px; margin-top: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a, .footer-contact a { color: rgba(255, 255, 255, .62); text-decoration: none; transition: color .2s; }
.footer-links a:hover, .footer-contact a:hover { color: var(--gold); }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; gap: .7rem; margin-bottom: .9rem; word-break: break-word; }
.footer-contact i { color: var(--gold); margin-top: .2rem; }
.footer-bottom { margin-top: 56px; padding: 1.4rem 0; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: .85rem; }
.to-top { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; }
.to-top:hover { background: var(--brand); color: #fff; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .float-card { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) { .float-card-a { left: -10px; } .float-card-b { right: -6px; } }
@media (max-width: 991.98px) {
    :root { --header-h: 68px; }
    .section { padding: 72px 0; }
    .hero { padding: 40px 0 72px; }
    .portrait-wrap { max-width: 340px; }
    .stat { border-bottom: 1px solid rgba(255, 255, 255, .08); }
    .filter-bar { grid-template-columns: 1fr 1fr; }
    .filter-bar .input-icon { grid-column: 1 / -1; }
    .profile-card { position: static !important; }
}
@media (max-width: 575.98px) {
    .section { padding: 56px 0; }
    .brand-text small { display: none; }
    .brand-text strong { font-size: 1rem; }
    .brand-mark { width: 38px; height: 38px; }
    .float-card { padding: .5rem .75rem .5rem .5rem; max-width: 190px; }
    .float-card .ic { width: 32px; height: 32px; font-size: .95rem; }
    .float-card-a { left: -44px; top: 46%; }
    .float-card-b { right: -4px; bottom: 6%; }
    .talk-card { flex-direction: column; gap: .9rem; padding: 1.2rem; }
    .talk-date { width: auto; display: inline-flex; gap: .5rem; align-items: baseline; padding: .4rem .8rem; }
    .talk-date .d { font-size: 1.2rem; }
    .talk-date .m { margin: 0; }
    .mini-stats { grid-template-columns: repeat(2, 1fr); }
    .pub-list li { flex-direction: column; gap: .3rem; }
    .filter-bar { grid-template-columns: 1fr; }
    .stat { padding: 1.6rem .8rem; }
    .stat:nth-child(odd) { border-right: 1px solid rgba(255, 255, 255, .08); }
    .footer-bottom { flex-direction: column-reverse; text-align: center; }
}
