/* =============================================
   Editorial Academic Portfolio — Nasir Eisty
   ============================================= */

:root {
  --bg: #f5f3ee;
  --bg-card: #fffef9;
  --bg-blue: #eef2f9;
  --ink: #1a1810;
  --ink-2: #4a4840;
  --ink-3: #8a8880;
  --accent: #2b4d8a;
  --accent-light: #e8edf7;
  --accent-warm: #c4773a;
  --orange: #FF8200;
  --rule: #d8d5cc;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --mono: 'DM Mono', monospace;
  --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { text-decoration: underline; }

/* ===== NAVIGATION ===== */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(245, 243, 238, 0.93);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
  padding: 0 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--accent);
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo-text {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--accent);
  letter-spacing: -0.3px;
  text-decoration: none;
}

.utk-logo-nav {
  height: 68px;
  width: auto;
  flex-shrink: 0;
  display: block;
}

.sail-logo-nav {
  height: 44px;
  width: auto;
  flex-shrink: 0;
  display: block;
}

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

.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--accent); text-decoration: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink-2);
  border-radius: 2px;
}

/* ===== HERO ===== */

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 2.2fr 1.2fr;
  padding-top: 72px;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 4rem 6rem 5rem;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.hero-name {
  font-family: var(--serif);
  font-size: clamp(48px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -1px;
  color: var(--accent);
  margin-bottom: 0.4rem;
  font-style: italic;
}

.hero-subtitle {
  font-size: 16px;
  font-weight: 400;
  color: var(--ink-2);
  margin-bottom: 0.15rem;
  letter-spacing: 0.01em;
}

.hero-subtitle a { color: var(--ink-3); font-size: 15px; }
.hero-subtitle a:hover { color: var(--accent); text-decoration: underline; }

.hero-utk-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--orange);
  margin-top: 0.2rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}

/* UTK full logo in hero */
.hero-utk-logo {
  height: 185px;
  width: auto;
  margin-bottom: 1.25rem;
  display: block;
}

.hero-bio {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-2);
  max-width: 500px;
  margin-bottom: 2.5rem;
  border-left: 2px solid var(--accent);
  padding-left: 1.25rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===== HERO RIGHT (photo strip) ===== */

.hero-right {
  position: relative;
  background: #1a2d3e;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 30px,
    rgba(255,255,255,0.015) 30px,
    rgba(255,255,255,0.015) 31px
  );
  pointer-events: none;
}

.hero-photo-wrap {
  position: relative;
  z-index: 2;
  width: 320px;
  height: 420px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero-badge {
  position: absolute;
  bottom: 2rem;
  left: 1.25rem;
  right: 1.25rem;
  z-index: 2;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0.875rem 1rem;
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255,255,255,0.8);
  line-height: 1.9;
}

.hero-badge strong {
  display: block;
  color: #fff;
  font-size: 12px;
  margin-bottom: 0.2rem;
  letter-spacing: 0.04em;
}

/* ===== BUTTONS ===== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 2px;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #1e3a6e; color: #fff; text-decoration: none; }

.btn-outline {
  background: transparent;
  color: var(--ink-2);
  border: 1px solid var(--rule);
}

.btn-outline:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

.btn-white { background: #fff; color: var(--accent); border-radius: 2px; }
.btn-white:hover { opacity: 0.9; text-decoration: none; color: var(--accent); }

/* ===== SECTIONS ===== */

section { padding: 5rem; }

.section-inner { max-width: 1100px; margin: 0 auto; }

.section-header {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.section-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--orange);
  letter-spacing: 0.1em;
}

h2 {
  font-family: var(--serif);
  font-size: 40px;
  letter-spacing: -0.5px;
  color: var(--ink);
}

.rule { flex: 1; height: 1px; background: var(--rule); margin-left: 1rem; }

/* ===== TIMELINE ===== */

.timeline { display: grid; grid-template-columns: 150px 1fr; }

.tl-item { display: contents; }

.tl-date {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.07em;
  padding: 1.4rem 2rem 1.4rem 0;
  border-right: 1px solid var(--rule);
  text-align: right;
  position: relative;
  line-height: 1.6;
}

.tl-date::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1.5px solid var(--rule);
}

.tl-item:first-child .tl-date::after {
  border-color: var(--orange);
  background: var(--orange);
  width: 11px;
  height: 11px;
  right: -6px;
}

.tl-content {
  padding: 1.4rem 0 1.4rem 2rem;
  border-bottom: 1px solid var(--rule);
}

.tl-item:last-child .tl-content { border-bottom: none; }

.tl-org { font-weight: 500; font-size: 16px; color: var(--ink); }
.tl-role { font-size: 14px; color: var(--ink-3); margin-top: 2px; }
.tl-detail { font-size: 13px; color: var(--ink-3); margin-top: 4px; line-height: 1.5; }

/* ===== RESEARCH GRID ===== */

.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--rule);
  border: 1.5px solid var(--rule);
}

.research-card {
  background: var(--bg);
  padding: 2.25rem;
  border-top: 3px solid transparent;
  transition: background var(--transition), border-color var(--transition);
}

.research-card:nth-child(odd)  { border-top-color: var(--accent); }
.research-card:nth-child(even) { border-top-color: var(--orange); }

.research-card:hover { background: var(--accent-light); }

.research-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  margin-bottom: 0.75rem;
  letter-spacing: 0.1em;
}

.research-title {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.research-desc { font-size: 14px; color: var(--ink-3); line-height: 1.7; }

/* ===== WORK CARDS ===== */

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.work-card {
  background: var(--bg);
  border: 1px solid var(--rule);
  padding: 2.25rem;
  text-decoration: none;
  display: block;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.work-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--orange));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.work-card:hover::before { transform: scaleX(1); }
.work-card:hover { border-color: var(--accent); text-decoration: none; }

.work-icon { font-size: 28px; margin-bottom: 1rem; display: block; }
.work-label { font-family: var(--serif); font-size: 24px; color: var(--ink); margin-bottom: 0.5rem; }
.work-desc { font-size: 14px; color: var(--ink-3); line-height: 1.65; }

.work-arrow {
  position: absolute;
  top: 1.75rem;
  right: 1.75rem;
  color: var(--ink-3);
  font-size: 18px;
  transition: transform var(--transition), color var(--transition);
}

.work-card:hover .work-arrow { transform: translate(3px, -3px); color: var(--accent); }

/* ===== NEWS ===== */

.news-list { display: flex; flex-direction: column; }

.news-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 2rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}

.news-item:last-child { border-bottom: none; }

.news-date {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  padding-top: 2px;
}

.news-text { font-size: 15px; color: var(--ink-2); line-height: 1.65; }
.news-text .highlight { font-style: italic; color: var(--ink); }
.news-text a { color: var(--accent); }
.news-text a:hover { text-decoration: underline; }

.news-tag {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 11px;
  font-family: var(--mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 1px;
}

.tag-grant { background: #e8f5e9; color: #1b5e20; }
.tag-paper { background: var(--accent-light); color: var(--accent); }
.tag-award { background: #fff8e1; color: #b45309; }
.tag-milestone { background: #f3e8ff; color: #6d28d9; }

/* ===== CONTACT ===== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.25rem;
  margin-top: 1.4rem;
}

.contact-info dt:first-child { margin-top: 0; }
.contact-info dd { font-size: 16px; color: var(--ink-2); }
.contact-info dd a { color: var(--accent); }
.contact-info dd a:hover { text-decoration: underline; }

.cta-box {
  background: var(--accent);
  padding: 2.75rem;
  border-radius: 2px;
  color: #fff;
}

.cta-box h3 {
  font-family: var(--serif);
  font-size: 28px;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.cta-box p { font-size: 15px; opacity: 0.82; line-height: 1.7; margin-bottom: 1.5rem; }

/* ===== FOOTER ===== */

footer {
  background: #1a2535;
  padding: 2rem 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

footer a { color: rgba(255,255,255,0.55); }
footer a:hover { color: #fff; text-decoration: none; }

/* ===== WELCOME NOTICE ===== */

.hero-welcome {
  margin-top: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #fff8f0 0%, #fff3e0 100%);
  border: 1px solid rgba(196, 119, 58, 0.22);
  border-left: 3px solid var(--accent-warm);
  border-radius: 2px;
  max-width: 500px;
}

.welcome-dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  background: var(--accent-warm);
  border-radius: 50%;
  margin-top: 0.35rem;
  flex-shrink: 0;
  animation: pulse 2.2s ease-in-out infinite;
}

.welcome-body { display: flex; flex-direction: column; gap: 2px; }

.welcome-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-warm);
  letter-spacing: 0.02em;
}

.welcome-text {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.55; transform: scale(1.35); }
}

.hero-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
  align-items: center;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem 0.4rem 0.65rem;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  color: var(--ink-2);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--sans);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
  white-space: nowrap;
}

.social-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

.social-btn:hover { transform: translateY(-2px); color: #fff; }
.social-btn.scholar:hover  { background: #4285F4; border-color: #4285F4; }
.social-btn.orcid:hover    { background: #A6CE39; border-color: #A6CE39; }
.social-btn.linkedin:hover { background: #0A66C2; border-color: #0A66C2; }

/* ===== SUB-PAGE HEADER ===== */

.page-header {
  background: linear-gradient(135deg, #1a2535 0%, var(--accent) 100%);
  padding: calc(72px + 3rem) 5rem 3rem;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    45deg, transparent, transparent 30px,
    rgba(255,255,255,0.015) 30px, rgba(255,255,255,0.015) 31px
  );
  pointer-events: none;
}

.page-inner { max-width: 1100px; margin: 0 auto; position: relative; }

.page-breadcrumb {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.page-breadcrumb a { color: rgba(255,255,255,0.65); text-decoration: none; }
.page-breadcrumb a:hover { color: #fff; }
.page-breadcrumb span { margin: 0 0.5rem; opacity: 0.4; }

.page-title {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 54px);
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1.05;
}

/* ===== PUBLICATION LIST ===== */

.pub-section { margin-bottom: 3rem; }

.pub-section-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 0;
}

.pub-list { display: flex; flex-direction: column; }

.pub-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}

.pub-item:last-child { border-bottom: none; }

.pub-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  padding-top: 3px;
  text-align: right;
}

.pub-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.45;
  margin-bottom: 0.3rem;
}

.pub-title a { color: var(--ink); }
.pub-title a:hover { color: var(--accent); text-decoration: underline; }

.pub-authors { font-size: 13px; color: var(--ink-3); margin-bottom: 0.2rem; line-height: 1.5; }
.pub-authors strong { color: var(--ink-2); font-weight: 500; }
.pub-venue { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.pub-venue em { font-style: italic; color: var(--accent); }

.pub-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 1px;
  margin-left: 0.35rem;
  vertical-align: middle;
}

.tag-j { background: var(--accent-light); color: var(--accent); }
.tag-c { background: #e8f5e9; color: #1b5e20; }
.tag-w { background: #fff8e1; color: #b45309; }
.tag-b { background: #f3e8ff; color: #6d28d9; }

/* ===== STUDENT CARDS ===== */

.student-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.student-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  padding: 1.25rem 1.5rem;
}

.student-card.alumni { border-left-color: var(--ink-3); }
.student-card.ug     { border-left-color: var(--orange); }

.student-type {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.35rem;
}

.student-card.alumni .student-type { color: var(--ink-3); }
.student-card.ug     .student-type { color: var(--orange); }

.student-name { font-weight: 600; color: var(--ink); font-size: 15px; margin-bottom: 0.2rem; }
.student-period { font-size: 11px; color: var(--ink-3); font-family: var(--mono); }
.student-note { font-size: 13px; color: var(--ink-2); margin-top: 0.6rem; line-height: 1.5; }
.student-note strong { color: var(--accent); }

/* ===== COMMITTEE TABLE ===== */

.committee-list { display: flex; flex-direction: column; }

.committee-item {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}

.committee-item:last-child { border-bottom: none; }
.committee-name { font-weight: 500; color: var(--ink); font-size: 15px; }
.committee-type { font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.04em; }
.committee-advisor { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.committee-status { font-family: var(--mono); font-size: 10px; letter-spacing: 0.07em; text-transform: uppercase; padding: 2px 6px; border-radius: 1px; }
.status-ongoing { background: var(--accent-light); color: var(--accent); }
.status-done    { background: #e8f5e9; color: #1b5e20; }

/* ===== GRANT CARDS ===== */

.grant-list { display: flex; flex-direction: column; gap: 0.875rem; }

.grant-item {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--orange);
  padding: 1.5rem;
}

.grant-title { font-weight: 600; color: var(--ink); font-size: 15px; margin-bottom: 0.6rem; }

.grant-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

.grant-meta .amount { color: #1b5e20; font-weight: 500; }
.grant-meta .role   { color: var(--accent); }

/* ===== SERVICE ITEMS ===== */

.service-list { display: flex; flex-direction: column; }

.service-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 2rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}

.service-item:last-child { border-bottom: none; }

.service-date {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.service-role { font-weight: 500; color: var(--ink); font-size: 15px; margin-bottom: 0.2rem; }
.service-org  { font-size: 13px; color: var(--ink-3); line-height: 1.5; }
.service-org a { color: var(--accent); }

/* ===== TEACHING ===== */

.course-list { display: flex; flex-direction: column; gap: 0.875rem; }

.course-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  padding: 1.25rem 1.5rem;
  align-items: center;
}

.course-term {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.05em;
  line-height: 1.6;
}

.course-code  { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: 0.05em; margin-bottom: 0.25rem; }
.course-title { font-weight: 600; color: var(--ink); font-size: 15px; margin-bottom: 0.2rem; }
.course-school { font-size: 13px; color: var(--ink-3); }

/* ===== ANNOUNCEMENT ===== */

.announce-box {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--orange);
  padding: 2.5rem;
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.8;
  max-width: 700px;
}

/* ===== ANIMATIONS ===== */

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

.fade-up { opacity: 0; animation: fadeUp 0.7s ease forwards; }
.d1 { animation-delay: 0.1s; }
.d2 { animation-delay: 0.25s; }
.d3 { animation-delay: 0.4s; }
.d4 { animation-delay: 0.55s; }
.d5 { animation-delay: 0.7s; }

/* ===== RESPONSIVE ===== */

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-right { min-height: 380px; }
  .hero-photo-wrap { width: 220px; height: 290px; transform: none; }
  .hero-photo { width: 100%; height: 100%; }
  .hero-left { padding: 4rem 2rem 3rem; }
  .hero-utk-logo { height: 140px; }
  .research-grid { grid-template-columns: 1fr 1fr; }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  section { padding: 4rem 2rem; }
  footer { padding: 1.75rem 2rem; }
  nav { padding: 0 1.5rem; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: rgba(245, 243, 238, 0.98);
    border-bottom: 1px solid var(--rule);
    padding: 1rem 1.5rem;
    gap: 0.25rem;
  }
  .nav-links.open a { padding: 0.5rem 0; }
  .nav-toggle { display: flex; }
  .research-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr; gap: 0.25rem; }
  .timeline { grid-template-columns: 1fr; }
  .tl-date { border-right: none; text-align: left; padding: 1rem 0 0; }
  .tl-date::after { display: none; }
  .tl-content { padding: 0.25rem 0 1.25rem; border-bottom: 1px solid var(--rule); }
  .hero-photo { width: 180px; height: 180px; }
  section { padding: 3rem 1.25rem; }
  footer { flex-direction: column; gap: 0.5rem; text-align: center; padding: 1.5rem 1.25rem; }
  .section-header { flex-wrap: wrap; }
  h2 { font-size: 32px; }
}
