/* =========================================================
   Kundan Sagar Bedmutha — Academic Portfolio
   Design tokens
   ========================================================= */
:root {
  --bg: #FFFFFF;
  --bg-raised: #F6F7FA;
  --bg-card: #F4F6F9;
  --bg-card-hover: #ECEFF4;
  --line: rgba(28, 63, 110, 0.16);
  --line-soft: rgba(28, 63, 110, 0.09);

  --accent: #996F09; /* darkened from #B8860B for WCAG AA text contrast (was 3.25:1, now 4.53:1 on white) */
  --accent-soft: rgba(184, 134, 11, 0.10); /* kept as the original lighter gold — background tint only, not text, so contrast rules don't apply */
  --accent-2: #35588A; /* secondary trace color, used sparingly */

  --text: #1C3F6E;
  --text-muted: #4A6486;
  --text-dim: #5D7898; /* darkened from #7C93AF for WCAG AA text contrast (was 3.16:1, now 4.56:1 on white) */

  --ok: #1C8655; /* darkened from #1E8E5A for WCAG AA text contrast (was 4.14:1, now 4.57:1 on white) */
  --pending: #A76809; /* darkened from #C2790A for WCAG AA text contrast (was 3.48:1, now 4.54:1 on white) */
  --review: #5C6B85;
  --danger: #C0392B; /* form error state — 5.44:1 on white */

  --font-head: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius: 10px;
  --radius-lg: 16px;
  --maxw: 1120px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::selection { background: var(--accent); color: var(--text); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  padding: 12px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(28,63,110,0.18);
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 16px;
}

/* =========================================================
   Circuit-board background
   A faint grid of PCB-style traces + node points, fixed so it
   reads as one continuous board behind every page.
   ========================================================= */
.circuit-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(184,134,11,0.06), transparent 40%),
    radial-gradient(circle at 82% 78%, rgba(28,63,110,0.05), transparent 42%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg fill='none' stroke='%231C3F6E' stroke-opacity='0.10' stroke-width='1'%3E%3Cpath d='M0 40H70V90H140V40H240'/%3E%3Cpath d='M0 160H50V120H120V200H240'/%3E%3Cpath d='M180 0V60H240'/%3E%3Cpath d='M40 240V190H0'/%3E%3Cpath d='M200 240V180H150V120'/%3E%3C/g%3E%3Cg fill='%23B8860B' fill-opacity='0.4'%3E%3Ccircle cx='70' cy='40' r='2.5'/%3E%3Ccircle cx='140' cy='90' r='2.5'/%3E%3Ccircle cx='50' cy='160' r='2.5'/%3E%3Ccircle cx='120' cy='120' r='2.5'/%3E%3Ccircle cx='180' cy='60' r='2.5'/%3E%3Ccircle cx='150' cy='120' r='2.5'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 240px 240px, 240px 240px, 240px 240px;
  background-position: 0 0;
}

.circuit-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% -10%, rgba(10,14,39,0) 0%, var(--bg) 78%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, var(--bg) 0%, #F6F7FA 50%, var(--bg) 100%);
  pointer-events: none;
}

/* =========================================================
   Layout helpers
   ========================================================= */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

main { position: relative; z-index: 1; }

section { padding: 88px 0; }
@media (max-width: 720px) { section { padding: 56px 0; } }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 14px; }
h3 { font-size: 20px; margin-bottom: 8px; }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p { color: var(--text-muted); font-size: 16.5px; }

.text-muted { color: var(--text-muted); }

/* =========================================================
   Navigation
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--line-soft);
}

.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 6px rgba(184,134,11,0.5); }
.brand span.dim { color: var(--text-dim); }

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

.nav-links a {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 6px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
  position: relative;
}
.nav-links a:hover { color: var(--text); background: var(--accent-soft); }
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 1px;
  background: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.25s var(--ease); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line-soft);
    padding: 10px 20px 20px;
    gap: 2px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
  }
  .nav-links.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links a { padding: 12px 10px; font-size: 14px; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.02em;
  padding: 12px 22px;
  border-radius: 8px;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn-primary { background: var(--accent); color: var(--text); border-color: var(--accent); font-weight: 700; }
.btn-primary:hover { box-shadow: 0 8px 20px rgba(28,63,110,0.18); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  padding: 100px 0 70px;
  position: relative;
}
.hero-kicker {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-kicker .blink { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(184,134,11,0.5);} 50% { opacity: 0.55; box-shadow: 0 0 0 6px rgba(184,134,11,0);} }

.hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  max-width: 900px;
  color: var(--text);
}
.hero h1 .accent { color: var(--accent); }
.hero-name { animation: hero-glow-name 4s ease-in-out infinite; }

.hero-identity {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 17px;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.8;
}
.hero-identity .sep { color: var(--accent-2); margin: 0 6px; }
.hero-identity .role-highlight {
  color: var(--accent);
  font-weight: 700;
  display: inline-block;
  transition: opacity 0.3s var(--ease);
}

@keyframes hero-glow-name {
  0%, 12%, 100% { text-shadow: none; filter: brightness(1); }
  4% { text-shadow: 0 0 22px rgba(28,63,110,0.35); filter: brightness(1.08); }
}

.hero-desc { margin-top: 24px; max-width: 620px; color: var(--text-muted); font-size: 17px; }

.hero .btn-row { margin-top: 36px; }

/* =========================================================
   Stat strip
   ========================================================= */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 64px;
  background: linear-gradient(180deg, rgba(184,134,11,0.04), transparent);
}
.stat {
  padding: 26px 22px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
button.stat {
  background: none;
  border: none;
  border-right: 1px solid var(--line);
  font-family: inherit;
  text-align: inherit;
  width: 100%;
  cursor: pointer;
}
button.stat:last-child { border-right: none; }
button.stat:hover .num { color: var(--text); }
.stat .num {
  font-family: var(--font-mono);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--accent);
  display: block;
}
.stat .label {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}
@media (max-width: 720px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
}

/* =========================================================
   Cards
   ========================================================= */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), background 0.25s var(--ease);
}
.card:hover { border-color: var(--line); background: var(--bg-card-hover); transform: translateY(-2px); }
.card[open] { background: var(--bg-card-hover); }

/* Expandable card (Projects) — native <details>/<summary> */
.card-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.card-summary::-webkit-details-marker { display: none; }
.card-summary::marker { content: ''; }
.card-teaser { margin-top: 10px; font-size: 13.5px; color: var(--text-dim); }
.card[open] .card-teaser { display: none; }
.card-details { margin-top: 16px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .grid-4 { grid-template-columns: 1fr; } }

/* =========================================================
   Status badges (PCB silkscreen style)
   ========================================================= */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 5px;
  border: 1px solid currentColor;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge-accepted { color: var(--ok); background: rgba(28, 134, 85, 0.08); }
.badge-pending { color: var(--pending); background: rgba(167, 104, 9, 0.08); }
.badge-review { color: var(--review); background: rgba(92, 107, 133, 0.08); }
.badge-gold { color: var(--accent); background: rgba(153, 111, 9, 0.08); }

/* =========================================================
   Tags (tech stack pills)
   ========================================================= */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent-2);
  background: rgba(74, 95, 127, 0.08);
  border: 1px solid rgba(74, 95, 127, 0.22);
  padding: 4px 10px;
  border-radius: 5px;
}

/* =========================================================
   Publication / project rows — expandable (details/summary)
   ========================================================= */
.pub {
  display: block;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.pub:hover { border-color: var(--line); background: rgba(184,134,11,0.03); }
.pub[open] { background: rgba(184,134,11,0.03); border-color: var(--line); }
.pub:hover .pub-title { color: var(--accent); }
.pub:hover .chevron { transform: translateX(3px); }
.pub.pub-static { cursor: default; }
.pub.pub-static:hover { border-color: var(--line-soft); background: transparent; }
.pub.pub-static:hover .pub-title { color: var(--text); }
.pub.pub-static:hover .chevron { transform: none; }
.pub-summary > .pub-meta { flex-basis: 100%; }

.pub-summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.pub-summary::-webkit-details-marker { display: none; }
.pub-summary::marker { content: ''; }
.pub-summary-right { display: flex; align-items: center; gap: 12px; }

.chevron { color: var(--text-dim); flex-shrink: 0; display: inline-flex; transition: transform 0.25s var(--ease); }
details[open] .chevron { transform: rotate(180deg); }

.pub-title { font-family: var(--font-head); font-weight: 700; font-size: 17px; }
.pub-meta { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-muted); display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.pub-meta a { color: var(--accent); }
.pub-meta a:hover { text-decoration: underline; }
.pub-list { display: flex; flex-direction: column; gap: 14px; }

.pub-details {
  padding: 14px 24px 22px;
  border-top: 1px dashed var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.detail-row { display: flex; gap: 10px; font-size: 13.5px; color: var(--text-muted); flex-wrap: wrap; }
.detail-label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-dim); min-width: 118px; flex-shrink: 0; }
.detail-row a { color: var(--accent); }
.detail-row a:hover { text-decoration: underline; }

.domain-block { margin-bottom: 44px; }
.domain-block:last-child { margin-bottom: 0; }
.domain-title {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}

/* =========================================================
   Timeline (experience)
   ========================================================= */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 40px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::after {
  content: '';
  position: absolute;
  left: -28px; top: 4px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  z-index: 1;
}
.tl-role { font-family: var(--font-head); font-weight: 700; font-size: 17px; }
.tl-meta { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-muted); margin: 4px 0 10px; }

/* =========================================================
   Skills
   ========================================================= */
.skill-group { margin-bottom: 26px; }
.skill-group h4 { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }

/* =========================================================
   Social / profile links
   ========================================================= */
.link-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 720px) { .link-grid { grid-template-columns: 1fr; } }
.link-card {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.link-card:hover { border-color: var(--accent); background: var(--accent-soft); }
.link-card .icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(184,134,11,0.1);
  color: var(--accent);
  flex-shrink: 0;
}
.link-card .name { font-weight: 600; font-size: 14.5px; }
.link-card .handle { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }

/* =========================================================
   Forms
   ========================================================= */
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.field input, .field textarea {
  width: 100%;
  background: var(--bg-raised);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 13px 15px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14.5px;
  transition: border-color 0.2s var(--ease);
}
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(153, 111, 9, 0.25); }
.field textarea { resize: vertical; min-height: 140px; }
.form-note { font-size: 13px; color: var(--text-dim); margin-top: 10px; }
.form-note-success { color: var(--ok); font-weight: 600; }
.form-note-error { color: var(--danger); font-weight: 600; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; pointer-events: none; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 40px 0;
  margin-top: 40px;
  position: relative;
  z-index: 1;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-inner p { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-dim); }
.footer-links { display: flex; gap: 18px; }
.footer-links a { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-muted); }
.footer-links a:hover { color: var(--accent); }

/* =========================================================
   Fade-in-on-scroll
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* =========================================================
   Page header (non-home pages)
   ========================================================= */
.page-header { padding: 64px 0 20px; }
.page-header h1 { font-size: clamp(32px, 5vw, 46px); }
.page-header p { margin-top: 14px; color: var(--text-muted); max-width: 620px; font-size: 16.5px; }

/* CV embed */
.cv-block { border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 32px; margin-bottom: 24px; }
.cv-block h3 { color: var(--accent); font-family: var(--font-mono); font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 18px; }

/* Utility */
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }

/* =========================================================
   Publication search / filter bar
   ========================================================= */
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 32px; }
.filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-tab {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  padding: 8px 14px;
  border-radius: 7px;
  border: 1px solid var(--line-soft);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}
.filter-tab:hover { border-color: var(--line); color: var(--text); }
.filter-tab.active { background: var(--accent); border-color: var(--accent); color: var(--bg); font-weight: 700; }

.search-box { flex: 1 1 220px; min-width: 200px; }
.search-box input {
  width: 100%;
  background: var(--bg-raised);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  transition: border-color 0.2s var(--ease);
}
.search-box input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(153, 111, 9, 0.25); }

.pub-hidden, .domain-block-hidden { display: none !important; }
.filter-empty { color: var(--text-dim); font-size: 14.5px; padding: 20px 0; display: none; }
.filter-empty.show { display: block; }

/* =========================================================
   Icon cards (Research Areas / Certifications)
   ========================================================= */
.icon-card { display: flex; gap: 16px; align-items: flex-start; }
.icon-box {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.icon-card h3 { margin-bottom: 6px; }
.icon-card p { font-size: 14px; color: var(--text-muted); }

/* Certification cards */
.cert-date {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 14px;
}
.cert-issuer { color: var(--accent-2); font-size: 13.5px; margin-bottom: 8px; display: block; }

/* =========================================================
   Publication detail page
   ========================================================= */
.pub-detail-badges { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.pub-venue-card { border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 18px 20px; margin: 20px 0 32px; }
.pub-venue-card .venue-name { font-weight: 700; font-size: 15.5px; }
.pub-venue-card .venue-meta { color: var(--text-muted); font-size: 13.5px; margin-top: 4px; }

.keyword-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.keyword-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 5px 13px;
  display: inline-block;
}

.cite-block { border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 14px; }
.cite-block-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.cite-block-head span { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); }
.copy-btn {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.copy-btn:hover { text-decoration: underline; }
.cite-text { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-muted); line-height: 1.6; white-space: pre-wrap; word-break: break-word; }

.breadcrumb { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-dim); margin-bottom: 22px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }

/* =========================================================
   Cursor-follow spotlight highlight — applied consistently
   to every interactive card/link-row across the site.
   ========================================================= */
.card, .link-card, .pub, .cv-block, .tl-item, .stat {
  position: relative;
  overflow: visible;
}
.card::before, .link-card::before, .pub::before, .cv-block::before, .tl-item::before, .stat::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(184,134,11,0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
  z-index: 0;
  border-radius: inherit;
}
.card:hover::before, .link-card:hover::before, .pub:hover::before, .cv-block:hover::before, .tl-item:hover::before, .stat:hover::before { opacity: 1; }
.pub.pub-static:hover::before { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .card::before, .link-card::before, .pub::before, .cv-block::before, .tl-item::before, .stat::before { display: none; }
}

/* =========================================================
   Project grid — 3 col desktop / 2 col tablet / 1 col mobile,
   with a featured card that spans two columns.
   ========================================================= */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 960px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .project-grid { grid-template-columns: 1fr; } }


.project-card { display: flex; flex-direction: column; }
.project-subtitle { font-size: 13px; color: var(--text-muted); margin-top: -4px; margin-bottom: 10px; }

.project-result {
  margin: 4px 0 14px;
  padding: 10px 14px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
}
.project-result .result-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 3px;
}
.project-result .result-value { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.5; }

.project-card .tags { margin-top: auto; padding-top: 4px; }
.project-card { text-decoration: none; }
.project-card:hover h3 { color: var(--accent); }
.project-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.project-card:hover .project-cta { opacity: 1; transform: translateY(0); }

.project-grid .reveal:nth-child(1) { transition-delay: 0s; }
.project-grid .reveal:nth-child(2) { transition-delay: 0.06s; }
.project-grid .reveal:nth-child(3) { transition-delay: 0.12s; }
.project-grid .reveal:nth-child(4) { transition-delay: 0.18s; }
.project-grid .reveal:nth-child(5) { transition-delay: 0.24s; }
.project-grid .reveal:nth-child(6) { transition-delay: 0.3s; }
.project-grid .reveal:nth-child(7) { transition-delay: 0.36s; }
.project-grid .reveal:nth-child(8) { transition-delay: 0.42s; }
.project-grid .reveal:nth-child(9) { transition-delay: 0.48s; }
.project-grid .reveal:nth-child(10) { transition-delay: 0.54s; }
