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

:root {
  --bg: #ffffff;
  --bg-tint: #f8f9fc;
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #94a3b8;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #eff6ff;
  --accent-muted: #6b8dd6;
  --border: #e2e8f0;
  --border-hover: #cbd5e1;
  --card: #ffffff;
  --award-text: #92400e;
  --award-bg: #fef3c7;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.04);

  --sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --serif: 'DM Serif Display', Georgia, serif;
  --radius: 14px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: #fff; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
strong { font-weight: 600; }

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}
.content-text {
  max-width: 760px;
}

/* ===== Nav ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0.9rem 0;
  background: transparent;
  transition: all 0.3s;
}
.nav.scrolled {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(226,232,240,0.6);
  padding: 0.5rem 0;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-name {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-name:hover { text-decoration: none; }
.nav-links {
  display: flex;
  list-style: none;
  gap: 1.8rem;
}
.nav-links a {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 28px; height: 28px; position: relative; padding: 0;
}
.nav-toggle span {
  position: absolute; left: 2px;
  width: 24px; height: 1.5px;
  background: var(--text);
  transition: all 0.25s;
}
.nav-toggle span:first-child { top: 9px; }
.nav-toggle span:last-child { top: 17px; }
.nav-toggle.active span:first-child { top: 13px; transform: rotate(45deg); }
.nav-toggle.active span:last-child { top: 13px; transform: rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  padding: 11rem 0 5rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(170deg, #f0f4ff 0%, var(--bg) 50%, #faf8ff 100%);
}
.hero-glow {
  position: absolute;
  top: -300px; right: -200px;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(37,99,235,0.06) 0%, rgba(139,92,246,0.03) 40%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 320px;
  gap: 56px;
  align-items: center;
}
.hero-text { min-width: 0; }
.hero-eyebrow {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}
.hero-name {
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 4rem);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.hero-statement {
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 0.9rem;
  letter-spacing: -0.01em;
}
.hero-sub {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 520px;
}
.hero-actions {
  display: flex;
  gap: 10px;
}

.hero-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.hero-photo img {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--card);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(37,99,235,0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.hero-photo img:hover {
  transform: scale(1.04);
  box-shadow: 0 16px 50px rgba(37,99,235,0.15), 0 4px 16px rgba(0,0,0,0.06);
}
.hero-affiliation {
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 20px;
  box-shadow: var(--shadow-sm);
  width: 100%;
}
.aff-role {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.aff-org {
  font-size: 0.7rem;
  color: var(--text-2);
  margin-bottom: 4px;
}
.aff-edu {
  font-size: 0.65rem;
  color: var(--text-3);
  font-style: italic;
}

.btn {
  display: inline-flex; align-items: center;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 0.8rem; font-weight: 600;
  font-family: var(--sans);
  border: none; cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 2px 8px rgba(37,99,235,0.2);
}
.btn-primary:hover {
  background: var(--accent-hover); color: #fff;
  box-shadow: 0 4px 16px rgba(37,99,235,0.3);
  transform: translateY(-2px);
}
.btn-ghost {
  background: var(--bg); color: var(--text-2);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent); color: var(--accent);
  transform: translateY(-2px);
}

/* ===== Highlights ===== */
.highlights {
  padding: 3rem 0 0;
  background: var(--bg);
  margin-top: -2rem;
  position: relative;
  z-index: 2;
}
.hl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.hl-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.25s;
}
.hl-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  text-decoration: none;
}
.hl-card--gold {
  border-color: rgba(146,64,14,0.2);
  background: linear-gradient(135deg, #fffbeb, #ffffff);
}
.hl-card--gold:hover {
  border-color: var(--award-text);
}
.hl-card--reinvent {
  border-color: rgba(255,153,0,0.25);
  background: linear-gradient(135deg, #fff8ee, #ffffff);
}
.hl-card--reinvent .hl-badge {
  color: #c45500;
}
.hl-badge {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.hl-card--gold .hl-badge {
  color: var(--award-text);
}
.hl-venue {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.hl-detail {
  font-size: 0.7rem;
  color: var(--text-3);
}

/* ===== Section ===== */
.section { padding: 5rem 0; }
.section-tinted { background: var(--bg-tint); }

.section-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 2.5rem;
  position: relative;
  display: inline-block;
}
.section-label::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}
.section-note {
  font-size: 0.82rem;
  color: var(--text-3);
  margin-top: -1.5rem;
  margin-bottom: 2rem;
}
.see-all {
  margin-top: 3rem;
  text-align: center;
}
.see-all a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-3);
}
.see-all a:hover { color: var(--accent); }

/* ===== About ===== */
.about-body p {
  font-size: 0.93rem;
  color: var(--text-2);
  margin-bottom: 1.3rem;
  line-height: 1.85;
}
.about-body p:last-child { margin-bottom: 0; }
.about-lede {
  font-size: 0.98rem;
  color: var(--text);
}
.about-philosophy {
  font-style: italic;
  color: var(--accent-muted);
  border-left: 3px solid rgba(37,99,235,0.2);
  padding-left: 1rem;
}

/* ===== Research Cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.pillar {
  padding: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s;
  position: relative;
}
.pillar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.3s;
}
.pillar:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.pillar:hover::before { opacity: 1; }
.pillar-icon {
  color: var(--accent);
  margin-bottom: 1.2rem;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  border-radius: 10px;
}
.pillar h3 {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text);
}
.pillar p {
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.pillar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.pillar-tags span {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--accent-muted);
  background: var(--accent-soft);
  padding: 3px 9px;
  border-radius: 4px;
}
.pillar-featured {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--accent);
  margin-top: 1rem;
  text-decoration: none;
  padding-top: 0.7rem;
  border-top: 1px solid var(--border);
}
.pillar-featured:hover {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ===== Selected Work ===== */
.works {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.work {
  padding: 2rem 2.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  transition: all 0.3s;
}
.work:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.work--featured {
  border-color: rgba(37,99,235,0.2);
  background: linear-gradient(135deg, #fafbff 0%, var(--card) 100%);
  box-shadow: 0 2px 12px rgba(37,99,235,0.06);
}
.work--featured:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(37,99,235,0.1);
}
.work-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}
.venue-badge {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 5px;
  text-transform: uppercase;
}
.venue-iclr { background: #f5f3ff; color: #6d28d9; border: 1px solid rgba(109,40,217,0.1); }
.venue-eacl { background: #ecfeff; color: #0e7490; border: 1px solid rgba(14,116,144,0.1); }
.venue-neurips { background: #f1f5f9; color: #334155; border: 1px solid rgba(51,65,85,0.1); }
.venue-icml { background: #fef2f2; color: #b91c1c; border: 1px solid rgba(185,28,28,0.1); }
.venue-ieee { background: #f0fdf4; color: #15803d; border: 1px solid rgba(21,128,61,0.1); }

.work-award {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--award-text);
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  padding: 4px 12px;
  border-radius: 5px;
}
.work-note {
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--text-3);
  background: var(--bg-tint);
  padding: 4px 12px;
  border-radius: 5px;
  border: 1px solid var(--border);
}
.work-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 0.75rem;
}

/* Problem / Method / Impact narrative */
.work-narrative {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1rem;
}
.work-row {
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.6;
}
.work-label {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  width: 62px;
  margin-right: 0.4rem;
  flex-shrink: 0;
}

.work-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.work-authors {
  font-size: 0.72rem;
  color: var(--text-3);
}
.work-links {
  display: flex;
  gap: 0.45rem;
}
.work-links a {
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  padding: 3px 12px;
  border-radius: 5px;
  border: 1.5px solid rgba(37,99,235,0.2);
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.work-links a:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  text-decoration: none;
}

/* Work card with photo */
.work--with-photo {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 2rem;
  align-items: center;
}
.work--with-photo .work-body { min-width: 0; }

/* Featured card: larger side-by-side photo pair */
.work--featured.work--with-photo {
  grid-template-columns: 1fr minmax(213px, 24%);
}
/* Column widths use the images' aspect ratios (plaque ~0.93:1, cert ~1.49:1)
   so both images render at the same height. */
.work-photo--pair {
  display: grid;
  grid-template-columns: 0.93fr 1.49fr;
  gap: 0.6rem;
  align-items: center;
  overflow: visible;
}
.work-photo--pair img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s;
}
.work-photo--pair img:hover { transform: scale(1.03); }
.work-photo {
  overflow: hidden;
  border-radius: 10px;
}
.work-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  transition: transform 0.3s;
}
.work-photo img:hover { transform: scale(1.03); }

/* ===== Essays ===== */
.essays-intro {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.essay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.essay-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 24px 20px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.25s;
}
.essay-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  text-decoration: none;
}
.essay-date {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
}
.essay-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.35;
}
.essay-desc {
  font-size: 0.78rem;
  color: var(--text-2);
  line-height: 1.6;
  flex: 1;
}
.essay-read {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 4px;
}

/* ===== News ===== */
.news {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.news-year-label {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.7rem;
}
.news-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.news-list li {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.6;
  padding-left: 1rem;
  position: relative;
}
.news-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.4;
}
.news-list time {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-3);
  margin-right: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.news-badge {
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 3px;
  margin-right: 0.15rem;
  vertical-align: 1px;
}
.news-badge--award { background: var(--award-bg); color: var(--award-text); }
.news-badge--accept { background: var(--accent-soft); color: var(--accent); }
.news-badge--preprint { background: #f1f5f9; color: #475569; }
.news-badge--service { background: #f0fdf4; color: #15803d; }
.news-badge--talk { background: #fff7ed; color: #c2410c; }

/* ===== Pubs ===== */
.pubs {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.pubs--collapsed .pub:nth-child(n+11) { display: none; }
.pubs--collapsed ~ .pubs-toggle { display: block; }
.pubs--expanded ~ .pubs-toggle { display: none; }
.pubs-toggle { text-align: center; margin-top: 2rem; }
.pub {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 0.8rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.pub:hover { background: rgba(37,99,235,0.02); }
.pub:first-child { border-top: 1px solid var(--border); }
.pub-year {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-3);
  padding-top: 3px;
}
.pub-title {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
  margin-bottom: 2px;
}
.pub-meta {
  font-size: 0.74rem;
  color: var(--text-3);
  line-height: 1.5;
}
.pub-meta strong { color: var(--accent); font-weight: 700; }
.pub-link {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--accent);
  border: 1.5px solid rgba(37,99,235,0.2);
  padding: 1px 7px;
  border-radius: 4px;
  margin-left: 0.4rem;
  vertical-align: 1px;
  transition: all 0.15s;
  text-transform: uppercase;
}
.pub-link:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  text-decoration: none;
}

/* ===== Contact ===== */
.contact-lead {
  font-size: 0.95rem;
  color: var(--text-2);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}
.contact-email {
  display: inline-flex;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 2rem;
  text-decoration: none;
  padding: 14px 28px;
  background: var(--accent-soft);
  border: 2px solid rgba(37,99,235,0.15);
  border-radius: 12px;
  transition: all 0.2s;
}
.contact-email:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(37,99,235,0.25);
}
.contact-row {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.contact-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 12px 18px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: all 0.25s;
  text-decoration: none;
}
.contact-chip:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  text-decoration: none;
}
.chip-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-3);
}
.chip-value {
  font-size: 0.82rem;
  font-weight: 600;
}

/* ===== Footer ===== */
.footer {
  padding: 2.5rem 0 3rem;
  text-align: center;
  border-top: 1px solid var(--border);
}
.footer p { font-size: 0.7rem; color: var(--text-3); }

/* ===== Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .page { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }

  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 0; right: -100%;
    width: 240px; height: 100vh;
    background: var(--bg);
    border-left: 1px solid var(--border);
    flex-direction: column;
    padding: 3.5rem 1.5rem 2rem;
    gap: 1rem;
    transition: right 0.25s;
    z-index: 999;
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 0.9rem; }

  .hero { padding: 7.5rem 0 4rem; }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  .hero-right { order: -1; }
  .hero-photo img { width: 180px; height: 180px; }
  .hero-actions { justify-content: center; flex-wrap: wrap; }
  .hero-sub { margin-left: auto; margin-right: auto; }

  .hl-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: 1fr; }
  .essay-grid { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }

  .pub {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .pub-year { margin-bottom: 2px; }

  .work--with-photo {
    grid-template-columns: 1fr;
  }
  .work--featured.work--with-photo {
    grid-template-columns: 1fr;
  }
  .work-photo { order: -1; }
  .work-photo--pair { grid-template-columns: 0.93fr 1.49fr; }

  .work-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .contact-row { flex-direction: column; }
  .contact-email { font-size: 0.95rem; padding: 10px 18px; }
}
