/* ============================================
   श्री उमाशंकर गुप्ता — डिजिटल पोर्टफोलियो
   Custom Handcrafted Design
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Tiro+Devanagari+Hindi:ital@0;1&family=Noto+Sans+Devanagari:wght@300;400;500;600;700;800;900&family=Yatra+One&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  --bg-deep: #0c0604;
  --bg-section: #110907;
  --bg-warm: #faf6f1;
  --bg-cream: #f3ece2;
  --bg-sand: #e8dfd3;

  --saffron: #e8732a;
  --saffron-light: #f5943e;
  --saffron-glow: #ff8c3a;
  --saffron-muted: rgba(232,115,42,0.12);

  --gold: #c9a84c;
  --gold-light: #dfc06a;
  --gold-deep: #a07d2e;

  --maroon: #6b1d0e;
  --maroon-deep: #3d0f07;
  --maroon-light: #8a2f1e;

  --text-ink: #1a1412;
  --text-body: #3d352e;
  --text-muted: #7a6f64;
  --text-faint: #a89d92;

  --white: #ffffff;
  --white-80: rgba(255,255,255,0.8);
  --white-60: rgba(255,255,255,0.6);
  --white-40: rgba(255,255,255,0.4);
  --white-15: rgba(255,255,255,0.15);
  --white-08: rgba(255,255,255,0.08);
  --white-04: rgba(255,255,255,0.04);

  --font-display: 'Yatra One', cursive;
  --font-body: 'Tiro Devanagari Hindi', serif;
  --font-ui: 'Noto Sans Devanagari', sans-serif;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: 72px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-warm);
  color: var(--text-body);
  line-height: 1.85;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Ornamental Patterns (SVG as CSS) ---------- */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 8px 0;
}

.ornament-line {
  height: 1px;
  width: 60px;
  background: var(--gold);
  opacity: 0.5;
}

.ornament-dot {
  width: 6px;
  height: 6px;
  background: var(--saffron);
  border-radius: 50%;
  position: relative;
}

.ornament-dot::before,
.ornament-dot::after {
  content: '';
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--gold);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}

.ornament-dot::before { left: -14px; }
.ornament-dot::after { right: -14px; }

/* Dark variant */
.ornament-dark .ornament-line {
  background: var(--gold-light);
  opacity: 0.3;
}

.ornament-dark .ornament-dot {
  background: var(--saffron-light);
}

.ornament-dark .ornament-dot::before,
.ornament-dark .ornament-dot::after {
  background: var(--gold-light);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: all 0.45s var(--ease);
}

.nav.pinned {
  background: rgba(12,6,4,0.92);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  box-shadow: 0 1px 0 var(--white-08);
}

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

.nav-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav-brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold-light);
  letter-spacing: 0.5px;
}

.nav-brand-sub {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  color: var(--white-40);
  letter-spacing: 3px;
  font-weight: 400;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-menu a {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--white-60);
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.25s var(--ease);
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--white);
  background: var(--white-08);
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle i {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white-80);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
  transform-origin: center;
}

.nav-toggle.open i:nth-child(1) { transform: rotate(45deg) translate(3px, 3px); }
.nav-toggle.open i:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open i:nth-child(3) { transform: rotate(-45deg) translate(3px, -3px); }

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  background: var(--bg-deep);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Subtle noise texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  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)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* Gradient orbs */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.hero-glow--1 {
  width: 500px;
  height: 500px;
  background: rgba(232,115,42,0.08);
  top: -10%;
  right: 5%;
}

.hero-glow--2 {
  width: 350px;
  height: 350px;
  background: rgba(201,168,76,0.06);
  bottom: 10%;
  left: -5%;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 2;
  padding: 100px 0 80px;
}

/* Left Content */
.hero-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--saffron);
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0;
  animation: revealUp 0.7s var(--ease-out) 0.3s forwards;
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
  opacity: 0;
  animation: revealUp 0.7s var(--ease-out) 0.5s forwards;
}

.hero-heading span {
  display: block;
  background: linear-gradient(135deg, var(--gold-light), var(--saffron-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--white-60);
  margin-bottom: 32px;
  max-width: 480px;
  opacity: 0;
  animation: revealUp 0.7s var(--ease-out) 0.65s forwards;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: 36px;
  border: 1px solid var(--white-08);
  border-radius: 14px;
  overflow: hidden;
  opacity: 0;
  animation: revealUp 0.7s var(--ease-out) 0.8s forwards;
}

.hero-meta-item {
  padding: 20px 16px;
  text-align: center;
  border-right: 1px solid var(--white-08);
  transition: background 0.3s var(--ease);
}

.hero-meta-item:last-child { border-right: none; }

.hero-meta-item:hover {
  background: var(--white-04);
}

.hero-meta-num {
  font-family: var(--font-ui);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--saffron-light);
  line-height: 1;
  display: block;
  margin-bottom: 4px;
}

.hero-meta-label {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  color: var(--white-40);
  line-height: 1.3;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 14px;
  opacity: 0;
  animation: revealUp 0.7s var(--ease-out) 0.95s forwards;
}

.btn {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s var(--ease);
  letter-spacing: 0.2px;
}

.btn--primary {
  background: linear-gradient(135deg, var(--saffron), var(--maroon-light));
  color: var(--white);
  box-shadow: 0 4px 24px rgba(232,115,42,0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(232,115,42,0.4);
}

.btn--ghost {
  color: var(--white-80);
  border: 1px solid var(--white-15);
  background: var(--white-04);
}

.btn--ghost:hover {
  background: var(--white-08);
  border-color: var(--white-40);
  color: var(--white);
  transform: translateY(-2px);
}

/* Right - Photo */
.hero-portrait {
  position: relative;
  opacity: 0;
  animation: revealUp 0.8s var(--ease-out) 0.6s forwards;
}

.hero-portrait-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}

.hero-portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

.hero-portrait-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(12,6,4,0.6));
  pointer-events: none;
}

/* Decorative border */
.hero-portrait::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 12px;
  right: -12px;
  bottom: -12px;
  border: 1.5px solid var(--gold);
  border-radius: 20px;
  opacity: 0.2;
  z-index: -1;
}

/* Corner accents */
.hero-portrait-accent {
  position: absolute;
  width: 40px;
  height: 40px;
  z-index: 3;
}

.hero-portrait-accent--tl {
  top: -4px;
  left: -4px;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
  border-radius: 4px 0 0 0;
}

.hero-portrait-accent--br {
  bottom: -4px;
  right: -4px;
  border-bottom: 2px solid var(--saffron);
  border-right: 2px solid var(--saffron);
  border-radius: 0 0 4px 0;
}

@keyframes revealUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   DIAGONAL SECTION TRANSITIONS
   ============================================ */
.slant-top {
  position: relative;
}

.slant-top::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 0;
  width: 100%;
  height: 60px;
  background: inherit;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

/* ============================================
   SECTION HEADING COMPONENT
   ============================================ */
.sec-head {
  margin-bottom: 56px;
}

.sec-head--center { text-align: center; }

.sec-num {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--saffron);
  display: block;
  margin-bottom: 10px;
}

.sec-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--text-ink);
  line-height: 1.2;
  margin-bottom: 12px;
}

.sec-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
}

.sec-head--center .sec-desc { margin: 0 auto; }

/* Dark section variants */
.dark .sec-title { color: var(--white); }
.dark .sec-desc { color: var(--white-40); }
.dark .sec-num { color: var(--gold-light); }

/* ============================================
   ABOUT / PARICHAY
   ============================================ */
.about {
  padding: 100px 0 80px;
  background: var(--bg-warm);
  position: relative;
}

.about-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}

.about-prose h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--maroon);
  margin-bottom: 16px;
  line-height: 1.4;
}

.about-prose p {
  font-size: 1rem;
  color: var(--text-body);
  margin-bottom: 14px;
}

.about-prose p:last-child { margin-bottom: 0; }

/* Quote Block */
.about-quote {
  position: relative;
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(232,115,42,0.06), rgba(201,168,76,0.06));
  border-left: 3px solid var(--saffron);
  border-radius: 0 12px 12px 0;
  margin: 24px 0;
  font-style: italic;
  color: var(--maroon);
  font-size: 1.05rem;
}

/* Info Table */
.about-details {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.04);
}

.about-details-head {
  background: linear-gradient(135deg, var(--maroon-deep), var(--maroon));
  padding: 20px 28px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.about-detail-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  padding: 14px 28px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  font-size: 0.92rem;
  transition: background 0.2s var(--ease);
}

.about-detail-row:last-child { border-bottom: none; }

.about-detail-row:hover { background: rgba(232,115,42,0.03); }

.about-detail-row dt {
  font-family: var(--font-ui);
  font-weight: 600;
  color: var(--text-ink);
  font-size: 0.85rem;
}

.about-detail-row dd {
  color: var(--text-body);
}

/* ============================================
   SANGH SECTION
   ============================================ */
.sangh {
  background: var(--bg-deep);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

/* Subtle radial glow */
.sangh::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232,115,42,0.06) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  pointer-events: none;
}

.sangh-intro {
  max-width: 700px;
  margin: 0 auto 48px;
  text-align: center;
  color: var(--white-60);
  font-size: 1.02rem;
  position: relative;
  z-index: 1;
}

.roles-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--white-08);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.role-tile {
  padding: 32px 24px;
  background: var(--bg-section);
  text-align: center;
  transition: all 0.35s var(--ease);
  position: relative;
}

.role-tile::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--saffron);
  transition: width 0.4s var(--ease);
}

.role-tile:hover::before { width: 60%; }

.role-tile:hover {
  background: rgba(232,115,42,0.05);
}

.role-tile-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  border-radius: 10px;
  background: var(--white-08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.role-tile-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--saffron-light);
}

.role-tile h4 {
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--white-80);
  margin-bottom: 4px;
}

.role-tile p {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--white-40);
  font-weight: 400;
}

/* ============================================
   ORGANIZATIONS
   ============================================ */
.orgs {
  padding: 100px 0 80px;
  background: var(--bg-cream);
}

.org-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.org-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 20px 24px;
  background: var(--white);
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.3s var(--ease);
}

.org-row:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  transform: translateY(-2px);
  border-color: rgba(232,115,42,0.15);
}

.org-row-num {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--saffron-muted), rgba(201,168,76,0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--saffron);
  flex-shrink: 0;
}

.org-row-name {
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--text-ink);
  line-height: 1.4;
}

.org-row-role {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--saffron);
  background: var(--saffron-muted);
  padding: 5px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ============================================
   PUBLICATIONS
   ============================================ */
.pubs {
  padding: 100px 0;
  background: var(--bg-warm);
  position: relative;
}

.pubs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pub-card {
  background: var(--white);
  border-radius: 16px;
  padding: 32px 20px 24px;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}

.pub-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-deep), var(--saffron), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.pub-card:hover::before { transform: scaleX(1); }

.pub-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  border-color: rgba(232,115,42,0.12);
}

.pub-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--saffron-muted), rgba(201,168,76,0.08));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pub-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--saffron);
}

.pub-card h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-ink);
  margin-bottom: 8px;
  line-height: 1.4;
}

.pub-tag {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gold-deep);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ============================================
   AWARDS
   ============================================ */
.awards {
  background: var(--bg-deep);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.awards::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 15% 50%, rgba(201,168,76,0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 85% 30%, rgba(232,115,42,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.awards-group {
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}

.awards-group:last-child { margin-bottom: 0; }

.awards-group-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--saffron-light);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--white-08);
  display: flex;
  align-items: center;
  gap: 12px;
}

.awards-group-title::before {
  content: '';
  width: 4px;
  height: 20px;
  background: var(--saffron);
  border-radius: 2px;
  flex-shrink: 0;
}

.awards-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 10px;
}

.award-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 10px;
  background: var(--white-04);
  border: 1px solid transparent;
  transition: all 0.25s var(--ease);
}

.award-row:hover {
  background: var(--white-08);
  border-color: var(--white-08);
  transform: translateX(4px);
}

.award-yr {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--bg-deep);
  background: linear-gradient(135deg, var(--saffron), var(--saffron-light));
  padding: 4px 10px;
  border-radius: 6px;
  min-width: 48px;
  text-align: center;
  flex-shrink: 0;
}

.award-row--gold .award-yr {
  background: linear-gradient(135deg, var(--gold-deep), var(--gold-light));
}

.award-txt {
  font-size: 0.9rem;
  color: var(--white-80);
  line-height: 1.45;
}

/* ============================================
   ACTIVITIES
   ============================================ */
.activities {
  padding: 100px 0;
  background: var(--bg-warm);
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.act-card {
  padding: 32px 24px 28px;
  background: var(--white);
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.35s var(--ease);
  position: relative;
}

.act-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 3px;
  background: linear-gradient(90deg, var(--saffron), var(--gold));
  border-radius: 0 0 3px 3px;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.act-card:hover::after { opacity: 1; }

.act-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.07);
}

.act-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--saffron-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.act-card-icon svg {
  width: 18px;
  height: 18px;
  fill: var(--saffron);
}

.act-card h4 {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-ink);
  margin-bottom: 8px;
}

.act-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.act-card .highlight-tag {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--saffron);
  background: var(--saffron-muted);
  padding: 4px 12px;
  border-radius: 6px;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery {
  padding: 100px 0;
  background: var(--bg-cream);
}

.gallery-masonry {
  columns: 4;
  column-gap: 16px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  display: block;
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.5s var(--ease);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(12,6,4,0.0);
  transition: background 0.35s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item:hover::after {
  background: rgba(12,6,4,0.15);
}

/* Lightbox */
.lb {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.94);
  backdrop-filter: blur(30px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lb.open { display: flex; animation: fadeIn 0.25s var(--ease); }

.lb img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 10px;
  box-shadow: 0 20px 80px rgba(0,0,0,0.4);
}

.lb-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white-08);
  border: 1px solid var(--white-15);
  color: var(--white-80);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.lb-close:hover {
  background: var(--white-15);
  transform: rotate(90deg);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  padding: 100px 0;
  background: var(--bg-deep);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 60% 40%, rgba(232,115,42,0.05) 0%, transparent 50%);
  pointer-events: none;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  position: relative;
  z-index: 1;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 20px 22px;
  background: var(--white-04);
  border: 1px solid var(--white-08);
  border-radius: 14px;
  transition: all 0.25s var(--ease);
}

.contact-item:hover {
  background: var(--white-08);
  transform: translateX(4px);
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--saffron), var(--maroon-light));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 18px;
  height: 18px;
  fill: var(--white);
}

.contact-item h4 {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--saffron-light);
  margin-bottom: 2px;
  letter-spacing: 0.5px;
}

.contact-item p {
  color: var(--white-80);
  font-size: 0.92rem;
}

.contact-item a {
  color: var(--white-80);
  transition: color 0.2s var(--ease);
}

.contact-item a:hover { color: var(--saffron-light); }

.contact-map {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--white-08);
  height: 100%;
  min-height: 300px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: brightness(0.85) contrast(1.1);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #060302;
  padding: 48px 0 24px;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--gold-light);
  margin-bottom: 4px;
}

.footer-sub {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--white-40);
  margin-bottom: 20px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.footer-nav a {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--white-40);
  transition: color 0.2s var(--ease);
}

.footer-nav a:hover { color: var(--saffron-light); }

.footer-copy {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.2);
  padding-top: 20px;
  border-top: 1px solid var(--white-04);
}

/* ============================================
   SCROLL-TO-TOP
   ============================================ */
.to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--saffron), var(--maroon-light));
  color: var(--white);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(232,115,42,0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.35s var(--ease);
  cursor: pointer;
  border: none;
}

.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(232,115,42,0.5);
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal.seen {
  opacity: 1;
  transform: translateY(0);
}

.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-layout { grid-template-columns: 1fr 300px; gap: 40px; }
  .pubs-grid { grid-template-columns: repeat(3, 1fr); }
  .activities-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-masonry { columns: 3; }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    background: rgba(12,6,4,0.97);
    backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 90px 28px 40px;
    gap: 4px;
    transition: right 0.35s var(--ease);
    z-index: 999;
  }

  .nav-menu.open { right: 0; }
  .nav-menu a { width: 100%; }
  .nav-toggle { display: flex; }

  .hero { min-height: auto; }
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 88px 0 60px;
    text-align: center;
  }

  .hero-portrait {
    order: -1;
    max-width: 260px;
    margin: 0 auto;
  }

  .hero-subtitle { margin: 0 auto 28px; }
  .hero-meta { grid-template-columns: repeat(2, 1fr); }
  .hero-meta-item:nth-child(2) { border-right: none; }
  .hero-actions { justify-content: center; flex-wrap: wrap; }

  .about-layout { grid-template-columns: 1fr; }
  .roles-strip { grid-template-columns: repeat(2, 1fr); }
  .pubs-grid { grid-template-columns: repeat(2, 1fr); }
  .activities-grid { grid-template-columns: 1fr; }
  .gallery-masonry { columns: 2; }
  .contact-layout { grid-template-columns: 1fr; }
  .awards-items { grid-template-columns: 1fr; }

  .org-row { grid-template-columns: 40px 1fr; gap: 14px; }
  .org-row-role { grid-column: 2; margin-top: -4px; }

  .sec-title { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 20px; }
  .hero-meta { grid-template-columns: repeat(2, 1fr); }
  .pubs-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .pub-card { padding: 24px 16px 20px; }
  .roles-strip { grid-template-columns: 1fr 1fr; }
  .gallery-masonry { columns: 2; column-gap: 10px; }
  .gallery-item { margin-bottom: 10px; }
  .hero-heading { font-size: 2.2rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
}

/* Print */
@media print {
  .nav, .to-top, .lb { display: none !important; }
  .hero { min-height: auto; padding: 40px 0; }
  body { background: #fff; color: #000; }
}
