/* =====================================================
   MUKTADIR ARIF — PORTFOLIO v2
   Aesthetic: Academic Precision · Research Authority
   Fonts: DM Serif Display (display) + DM Sans (body)
   Palette: Near-black + warm ivory + accent blue-teal
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

:root {
  /* CORE PALETTE */
  --ink:       #0D0F12;
  --ink-soft:  #1A1D22;
  --ink-line:  #252830;
  --ivory:     #F2EFE8;
  --ivory-dim: #C8C4BA;
  --ivory-faint: rgba(242, 239, 232, 0.06);
  --accent:    #5B8A8B;       /* teal-slate — scholarly, not flashy */
  --accent-warm: #C9A86A;    /* warm gold for selective highlights */
  --accent-soft: rgba(91, 138, 139, 0.15);
  --danger:    #C0624A;

  /* TYPOGRAPHY SCALE */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* SPACING */
  --nav-h: 72px;
  --section-pad: 110px;
  --max-w: 1120px;
  --prose-w: 760px;

  /* MOTION */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --t: 0.28s;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Subtle halftone grid texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(242,239,232,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242,239,232,0.018) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* =====================
   TYPOGRAPHY
   ===================== */
h1,h2,h3,h4,h5 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--ivory);
  font-weight: 400;
}
p { color: var(--ivory-dim); margin-bottom: 1rem; }
a { text-decoration: none; color: inherit; transition: color var(--t) var(--ease); }
strong { color: var(--ivory); font-weight: 600; }
em { font-style: italic; color: var(--ivory-dim); }

/* =====================
   LAYOUT HELPERS
   ===================== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}
.prose { max-width: var(--prose-w); margin: 0 auto; }
.section { padding: var(--section-pad) 0; }

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin-bottom: 1rem;
  font-weight: 400;
}

.divider {
  border: none;
  border-top: 1px solid var(--ink-line);
  margin: 4rem 0;
}

/* Ensure the card grid restrains column widths effectively */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* Ensure the parent card container hides any rogue element overflow */
.card {
  background: var(--ink-soft);
  border: 1px solid var(--ink-line);
  border-radius: 8px;
  overflow: hidden; /* Crucial: Clips images precisely to the card's border radius */
  display: flex;
  flex-direction: column;
}

.card-logo-banner {
  width: 100%;
  height: 180px;       /* Set a fixed height boundary for the image frame */
  object-fit: cover;   /* Dynamically crops and centers the image within the boundary */
  display: block;
}

/* Ensure the parent card crops the image's top corners */
.card {
  overflow: hidden;
}

/* Constrain the wrapping element around your project image */
.project-image-wrapper {
  width: 100%;
  height: 220px;    /* Change this value to adjust the uniform height of your project banners */
  overflow: hidden;
  position: relative;
}

/* Enforce proportional responsiveness on the images */
.project-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Crops and centers the image proportionally within its frame without stretching */
  object-position: center;
  display: block;
}

/* =====================
   NAVBAR
   ===================== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background var(--t) var(--ease), border-color var(--t);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(13, 15, 18, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--ink-line);
}
.nav-container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ivory);
  letter-spacing: 0.01em;
}
.nav-logo span { color: var(--accent); }

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}
.nav-link {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--ivory-dim);
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: 2px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--t) var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--ivory); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-toggle { cursor: pointer; display: flex; align-items: center; gap: 4px; }
.dropdown-toggle svg { transition: transform var(--t) var(--ease); }
.dropdown:hover .dropdown-toggle svg { transform: rotate(180deg); }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 180px;
  background: var(--ink-soft);
  border: 1px solid var(--ink-line);
  border-radius: 8px;
  padding: 0.5rem 0;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
  color: var(--ivory-dim);
}
.dropdown-menu a:hover { color: var(--ivory); background: var(--ivory-faint); }

/* Mobile hamburger */
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; }
.hamburger span { display: block; width: 26px; height: 1.5px; background: var(--ivory); transition: var(--t); }

/* =====================
   BUTTONS
   ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--t) var(--ease);
}
.btn-primary {
  background: var(--ivory);
  color: var(--ink);
  border-color: var(--ivory);
}
.btn-primary:hover {
  background: transparent;
  color: var(--ivory);
}
.btn-outline {
  background: transparent;
  color: var(--ivory);
  border-color: var(--ink-line);
}
.btn-outline:hover {
  border-color: var(--ivory-dim);
  color: var(--ivory);
}
.btn-accent {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: rgba(91,138,139,0.3);
}
.btn-accent:hover { background: rgba(91,138,139,0.25); }

/* =====================
   HERO
   ===================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 2rem) 2rem 4rem;
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 55%;
  height: 120%;
  background: radial-gradient(ellipse at 70% 40%, rgba(91,138,139,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 0.1s forwards;
}
.hero-label::before {
  content: '';
  width: 32px; height: 1px;
  background: var(--accent);
}
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  line-height: 1.05;
  margin-bottom: 0.4rem;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 0.25s forwards;
}
.hero-name em {
  font-style: italic;
  color: var(--ivory-dim);
}
.hero-role {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.65rem);
  color: var(--accent);
  font-style: italic;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 0.38s forwards;
}
.hero-bio {
  max-width: 560px;
  font-size: 1.05rem;
  color: var(--ivory-dim);
  line-height: 1.8;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 0.5s forwards;
}
.hero-bio strong { color: var(--ivory); }
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 0.62s forwards;
}
.hero-meta {
  margin-top: 5rem;
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 0.75s forwards;
  padding-top: 2.5rem;
  border-top: 1px solid var(--ink-line);
}
.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--ivory);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.hero-stat span { font-size: 0.82rem; color: var(--ivory-dim); letter-spacing: 0.04em; }

/* =====================
   FEATURED RESEARCH BANNER
   ===================== */
.research-banner {
  background: var(--ink-soft);
  border: 1px solid var(--ink-line);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 2rem 2.5rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
  transition: border-color var(--t) var(--ease);
}
.research-banner:hover { border-left-color: var(--accent-warm); }
.research-banner-badge {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(91,138,139,0.3);
  padding: 4px 10px;
  border-radius: 3px;
  white-space: nowrap;
  margin-top: 0.2rem;
}
.research-banner-body { flex: 1; min-width: 250px; }
.research-banner-body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--ivory);
}
.research-banner-body p { font-size: 0.9rem; margin: 0; }
.research-banner-links { display: flex; gap: 0.75rem; margin-top: 1rem; flex-wrap: wrap; }
.research-link {
  font-size: 0.82rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}
.research-link:hover { color: var(--ivory); }

/* =====================
   CARDS
   ===================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--ink-soft);
  border: 1px solid var(--ink-line);
  border-radius: 6px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: border-color var(--t) var(--ease), transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.card:hover {
  border-color: rgba(242, 239, 232, 0.15);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.35);
}
.card-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 3px;
  display: inline-block;
}

/* Restrain card logos inside the header row */
.card-header .card-logo {
  height: 32px;          /* Sets a neat, standardized height matching your text/tags */
  width: auto;           /* Maintains perfect aspect ratio so it doesn't stretch or distort */
  object-fit: contain;   /* Safely scales the graphic inside its new bounds */
  max-width: 120px;      /* Prevents abnormally wide horizontal logos from pushing tags away */
  display: block;
}

/* Optional alignment tweak for the header container */
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.card-tag.live { background: rgba(91,138,139,0.15); color: var(--accent); border: 1px solid rgba(91,138,139,0.3); }
.card-tag.research { background: rgba(201,168,106,0.12); color: var(--accent-warm); border: 1px solid rgba(201,168,106,0.3); }
.card-tag.award { background: rgba(192,98,74,0.12); color: #E08870; border: 1px solid rgba(192,98,74,0.3); }
.card-tag.code { background: rgba(242,239,232,0.06); color: var(--ivory-dim); border: 1px solid var(--ink-line); }

.card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.25rem; gap: 0.75rem; }
.card h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--ivory); margin-bottom: 0.5rem; line-height: 1.35; }
.card p { font-size: 0.9rem; color: var(--ivory-dim); flex-grow: 1; margin-bottom: 0; }

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ink-line);
}
.tech-tag {
  font-size: 0.75rem;
  color: var(--ivory-dim);
  background: rgba(242,239,232,0.04);
  border: 1px solid var(--ink-line);
  padding: 3px 10px;
  border-radius: 3px;
  white-space: nowrap;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.02em;
}

/* =====================
   TIMELINE (Experience)
   ===================== */
.timeline { display: flex; flex-direction: column; gap: 0; max-width: 800px; margin: 0 auto; }
.timeline-item {
  display: grid;
  grid-template-columns: 160px 1px 1fr;
  gap: 0 2rem;
  position: relative;
}
.timeline-date {
  font-size: 0.8rem;
  color: var(--ivory-dim);
  padding-top: 0.15rem;
  text-align: right;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
}
.timeline-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.timeline-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--ink);
  flex-shrink: 0;
  margin-top: 0.35rem;
}
.timeline-connector {
  width: 1px;
  flex: 1;
  background: var(--ink-line);
  min-height: 2rem;
}
.timeline-item:last-child .timeline-connector { display: none; }
.timeline-body { padding-bottom: 3rem; }
.timeline-body h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; margin-bottom: 0.2rem; color: var(--ivory); }
.timeline-body .org { font-size: 0.85rem; color: var(--accent); font-weight: 500; margin-bottom: 0.75rem; }
.timeline-body p { font-size: 0.9rem; color: var(--ivory-dim); }

/* =====================
   AWARDS
   ===================== */
.award-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--ink-line);
  align-items: flex-start;
}
.award-item:first-child { border-top: 1px solid var(--ink-line); }
.award-icon {
  width: 44px; height: 44px;
  background: var(--accent-soft);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.award-body h3 { font-family: var(--font-body); font-weight: 600; font-size: 1rem; color: var(--ivory); margin-bottom: 0.25rem; }
.award-body .venue { font-size: 0.85rem; color: var(--accent); font-weight: 500; margin-bottom: 0.5rem; }
.award-body p { font-size: 0.9rem; color: var(--ivory-dim); margin: 0; }
.award-date { font-size: 0.78rem; color: var(--ivory-dim); margin-top: 0.5rem; opacity: 0.7; }

/* =====================
   PUBLICATIONS
   ===================== */
.pub-item {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--ink-line);
  max-width: var(--prose-w);
  margin: 0 auto;
}
.pub-item:first-child { border-top: 1px solid var(--ink-line); }
.pub-meta { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.pub-venue { font-size: 0.78rem; font-weight: 600; color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; }
.pub-status { font-size: 0.78rem; color: var(--ivory-dim); padding: 2px 8px; border: 1px solid var(--ink-line); border-radius: 3px; }
.pub-item h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.1rem; color: var(--ivory); margin-bottom: 0.5rem; line-height: 1.45; }
.pub-authors { font-size: 0.85rem; color: var(--ivory-dim); margin-bottom: 1rem; font-style: italic; }
.pub-authors strong { color: var(--ivory); font-style: normal; }
.pub-abstract { font-size: 0.9rem; color: var(--ivory-dim); line-height: 1.75; margin-bottom: 1.25rem; }
.pub-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.pub-link { font-size: 0.82rem; color: var(--accent); display: flex; align-items: center; gap: 5px; font-weight: 500; }
.pub-link:hover { color: var(--ivory); }

/* =====================
   SKILLS
   ===================== */
.skill-group { margin-bottom: 3rem; }
.skill-group-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--ink-line);
}
.skill-list { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.skill-pill {
  font-size: 0.875rem;
  color: var(--ivory-dim);
  border: 1px solid var(--ink-line);
  padding: 0.45rem 1rem;
  border-radius: 3px;
  transition: all var(--t) var(--ease);
  cursor: default;
}
.skill-pill:hover { border-color: var(--accent); color: var(--ivory); background: var(--accent-soft); }
.skill-pill.highlight { border-color: rgba(91,138,139,0.4); color: var(--accent); background: var(--accent-soft); }

/* =====================
   CONTACT FORM
   ===================== */
.contact-wrap { max-width: 640px; margin: 0 auto; }
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ivory-dim); margin-bottom: 0.5rem; }
.form-input, .form-textarea {
  width: 100%;
  background: var(--ink-soft);
  border: 1px solid var(--ink-line);
  color: var(--ivory);
  padding: 0.85rem 1rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91,138,139,0.12);
}
.form-textarea { resize: vertical; min-height: 140px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* =====================
   FOOTER
   ===================== */
.footer {
  border-top: 1px solid var(--ink-line);
  padding: 3rem 0;
  position: relative;
  z-index: 1;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-copy { font-size: 0.82rem; color: var(--ivory-dim); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.82rem; color: var(--ivory-dim); }
.footer-links a:hover { color: var(--ivory); }

/* =====================
   MODAL
   ===================== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(13,15,18,0.88);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  justify-content: center;
  align-items: center;
  padding: 2rem;
}
.modal.open { display: flex; }
.modal-box {
  background: var(--ink-soft);
  border: 1px solid var(--ink-line);
  border-radius: 8px;
  padding: 2.5rem;
  width: 100%;
  max-width: 560px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute;
  top: 1.25rem; right: 1.5rem;
  background: none; border: none;
  color: var(--ivory-dim);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color var(--t);
}
.modal-close:hover { color: var(--ivory); }

/* =====================
   SCROLL ANIMATIONS
   ===================== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Failsafe: if JS observer never fires, show content after 1.5s */
@keyframes revealFallback {
  to { opacity: 1; transform: none; }
}
.reveal {
  animation: revealFallback 0s 1.5s forwards;
}

/* =====================
   ANIMATIONS
   ===================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* =====================
   ABOUT PAGE
   ===================== */
.about-layout { display: grid; grid-template-columns: 1fr 320px; gap: 5rem; align-items: start; }
.about-image-frame {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
  border: 1px solid var(--ink-line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--ink-soft);
}
.about-image-frame img { width: 100%; display: block; filter: grayscale(15%); transition: filter 0.5s; }
.about-image-frame:hover img { filter: grayscale(0%); }
.about-caption {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--ink-line);
  font-size: 0.8rem;
  color: var(--ivory-dim);
}
.about-caption strong { color: var(--accent); font-weight: 500; display: block; margin-bottom: 0.15rem; }
.about-body p { font-size: 1rem; line-height: 1.85; }
.about-body h3 { font-family: var(--font-body); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin: 2.5rem 0 1rem; border-bottom: 1px solid var(--ink-line); padding-bottom: 0.75rem; }

/* =====================
   MOBILE
   ===================== */
@media (max-width: 900px) {
  .about-layout { grid-template-columns: 1fr; }
  .about-image-frame { position: static; max-width: 320px; }
  .timeline-item { grid-template-columns: 1fr; }
  .timeline-date { text-align: left; }
  .timeline-line { display: none; }
}
@media (max-width: 768px) {
  :root { --section-pad: 80px; }
  .nav-menu { position: fixed; top: 0; right: 0; height: 100vh; width: 75vw; max-width: 320px; background: var(--ink-soft); flex-direction: column; justify-content: center; align-items: flex-start; padding: 0 2.5rem; transform: translateX(100%); transition: transform 0.3s var(--ease); border-left: 1px solid var(--ink-line); gap: 2rem; }
  .nav-menu.open { transform: none; }
  .hamburger { display: flex; }
  .hero-meta { gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
}