/* ============================================================
   Dinh Viet Sang — Homepage
   Minimal, Apple-inspired design system (light theme)
   ============================================================ */

:root {
  --bg:            #ffffff;
  --bg-elevated:   #ffffff;
  --bg-subtle:     #f5f5f7;
  --text:          #1d1d1f;
  --text-secondary:#6e6e73;
  --text-tertiary: #86868b;
  --accent:        #0071e3;
  --accent-hover:  #0077ed;
  --accent-soft:   rgba(0,113,227,0.08);
  --pi:            #b45309;
  --pi-soft:       rgba(180,83,9,0.07);
  --border:        #d2d2d7;
  --border-light:  #e6e6eb;
  --shadow-sm:     0 2px 10px rgba(0,0,0,0.05);
  --shadow-md:     0 10px 30px rgba(0,0,0,0.08);
  --shadow-lg:     0 22px 55px rgba(0,0,0,0.12);
  --radius:        20px;
  --radius-sm:     16px;
  --maxw:          1000px;
  --nav-h:         48px;
  --ease:          cubic-bezier(0.4, 0, 0.2, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Helvetica Neue", "Inter", "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 68px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

img { max-width: 100%; display: block; }

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

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: 100%;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
}
.nav-brand:hover { color: var(--text); text-decoration: none; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 6px 13px;
  font-size: 15px;
  font-weight: 400;
  color: var(--text-secondary);
  border-radius: 980px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-links a:hover { color: var(--text); text-decoration: none; background: rgba(0,0,0,0.05); }
.nav-links li.active a { color: var(--text); font-weight: 500; background: rgba(0,0,0,0.06); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; width: 40px; height: 40px; }
.nav-toggle span {
  display: block; width: 20px; height: 1.5px; background: var(--text); margin: 4px auto;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- Hero (home) ---------- */
.hero { display: flex; align-items: center; gap: 50px; padding: 76px 0 20px; }
.hero-photo {
  flex: 0 0 auto; width: 224px; height: 224px; border-radius: 30px; object-fit: cover;
  box-shadow: var(--shadow-lg); outline: 1px solid rgba(0,0,0,0.04);
}
.hero-body { flex: 1 1 auto; min-width: 0; }
.hero-eyebrow { font-size: 15px; font-weight: 500; color: var(--accent); margin: 0 0 8px; }
.hero-body h1 {
  font-size: clamp(36px, 5.5vw, 54px); font-weight: 600; letter-spacing: -0.035em;
  line-height: 1.04; margin: 0 0 16px;
}
.hero-affil { font-size: 17px; color: var(--text-secondary); line-height: 1.65; margin: 0 0 24px; }
.hero-affil a { color: var(--text-secondary); }
.hero-affil a:hover { color: var(--accent); }
.hero-affil strong { color: var(--text); font-weight: 600; }
.hero ~ section { margin-top: 60px; }

/* ---------- Section title (home) ---------- */
.section-title {
  font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-tertiary); margin: 0 0 20px;
}

/* ---------- Tag pills (home) ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 12px; }
.tag {
  padding: 11px 22px; background: var(--bg-subtle); border-radius: 980px;
  font-size: 16px; font-weight: 500; color: var(--text);
}

/* ---------- Container (list pages) ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
main.container { padding-bottom: 96px; }

/* ---------- Page header (list pages) ---------- */
.page-head { padding: 92px 0 44px; text-align: center; }
.page-head h1 {
  font-size: clamp(36px, 6vw, 54px);
  font-weight: 600;
  letter-spacing: -0.035em;
  margin: 0 0 14px;
  line-height: 1.05;
  text-wrap: balance;
}
.page-head p { font-size: clamp(19px, 2.4vw, 22px); color: var(--text-secondary); margin: 0; font-weight: 400; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; font-size: 15px; font-weight: 500; border-radius: 980px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease), border-color 0.2s var(--ease);
  cursor: pointer; border: 1px solid transparent; white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; text-decoration: none; }
.btn-primary:active { transform: scale(0.98); }
.btn-ghost { background: transparent; color: var(--accent); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); background: var(--accent-soft); text-decoration: none; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Cards (activities) ---------- */
.card {
  background: var(--bg-elevated); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 34px 40px; box-shadow: var(--shadow-sm);
}
.card h2 {
  font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-tertiary); margin: 0 0 18px;
}
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li {
  position: relative; padding: 14px 0 14px 26px; border-top: 1px solid var(--border-light);
  color: var(--text); line-height: 1.55;
}
.info-list li:first-child { border-top: 0; padding-top: 2px; }
.info-list li::before {
  content: ""; position: absolute; left: 3px; top: 22px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--accent);
}
.info-list li:first-child::before { top: 10px; }

/* Education timeline (home) */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 22px; padding: 15px 0; border-top: 1px solid var(--border-light); }
.timeline li:first-child { border-top: 0; padding-top: 2px; }
.timeline .yr { flex: 0 0 118px; color: var(--text-tertiary); font-variant-numeric: tabular-nums; font-size: 15px; padding-top: 1px; }
.timeline .what { flex: 1; }

/* ---------- Course cards (teaching) ---------- */
.course-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px;
  counter-reset: crs;
}
.course {
  counter-increment: crs;
  position: relative; display: flex; flex-direction: column;
  background: var(--bg-elevated); border: 1px solid var(--border-light);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.course:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.course-cover { position: relative; aspect-ratio: 5 / 3; overflow: hidden; background: var(--bg-subtle); }
.course-cover img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.course:hover .course-cover img { transform: scale(1.04); }
.course-cover .num {
  position: absolute; left: 16px; top: 16px;
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.9); backdrop-filter: blur(6px);
  border-radius: 50%; font-size: 12px; font-weight: 700; color: var(--text);
  font-variant-numeric: tabular-nums;
}
.course-cover .num::before { content: counter(crs, decimal-leading-zero); }
.course-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.course-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.course-level {
  font-size: 11px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); padding: 3px 10px; border-radius: 980px;
}
.course-code {
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}
.course h3 { font-size: 19px; font-weight: 600; margin: 2px 0 0; letter-spacing: -0.02em; line-height: 1.3; }
.course .course-sub { margin: 0; font-size: 14px; color: var(--text-tertiary); }
.course p.desc { margin: 4px 0 0; font-size: 15px; line-height: 1.55; color: var(--text-secondary); }

/* ---------- Reference list (publications / projects) ---------- */
.ref-list { list-style: none; margin: 0 auto; padding: 0; counter-reset: ref; max-width: 880px; }
.ref-list li {
  counter-increment: ref; position: relative; padding: 22px 20px 22px 66px;
  border-radius: var(--radius-sm); transition: background 0.2s var(--ease); line-height: 1.55;
}
.ref-list li::before {
  content: counter(ref); position: absolute; left: 18px; top: 21px; width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-subtle); color: var(--text-tertiary); border-radius: 50%;
  font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.ref-list li:hover { background: var(--bg-subtle); }
.ref-list li:hover::before { background: var(--accent); color: #fff; }
.ref-list li + li { border-top: 1px solid var(--border-light); }
.ref-list strong { font-weight: 700; color: var(--text); }
.ref-list em { color: var(--text-secondary); font-style: normal; }
.badge {
  display: inline-block; margin-left: 4px; padding: 2px 10px; font-size: 12px; font-weight: 600;
  color: #bf6a00; background: #fff4e5; border-radius: 980px; vertical-align: middle; white-space: nowrap;
}

/* Venue-quality tags */
.pubtag {
  display: inline-block; margin-left: 5px; padding: 2px 9px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  border-radius: 980px; vertical-align: middle; white-space: nowrap;
}
.pubtag.q1   { color: #0f766e; background: #e2f5f1; }
.pubtag.q2   { color: #0369a1; background: transparent; box-shadow: inset 0 0 0 1px rgba(3,105,161,0.40); }
.pubtag.core { color: #4f46e5; background: #eeebfe; }
.pubtag.pat  { color: #be185d; background: #fdeaf1; }

/* Legend under the search bar */
.legend {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  margin: 0 0 10px; font-size: 13px; color: var(--text-tertiary);
}
.legend .pubtag, .legend .badge { margin-left: 0; }
.legend span.k { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Reviewer / link list (activities) ---------- */
.link-list { list-style: none; margin: 0; padding: 0; columns: 1; }
.link-list li { padding: 11px 0; border-top: 1px solid var(--border-light); line-height: 1.45; }
.link-list li:first-child { border-top: 0; }

/* ---------- Search / filter bar ---------- */
.toolbar {
  position: sticky; top: var(--nav-h); z-index: 20;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 0 16px; margin-bottom: 6px;
  background: linear-gradient(var(--bg) 72%, rgba(255,255,255,0));
}
.search {
  flex: 1 1 260px; position: relative; display: flex; align-items: center;
}
.search svg {
  position: absolute; left: 15px; width: 16px; height: 16px; color: var(--text-tertiary);
  pointer-events: none;
}
.search input {
  width: 100%; font: inherit; font-size: 15px; color: var(--text);
  padding: 11px 16px 11px 42px; border-radius: 980px;
  border: 1px solid var(--border); background: var(--bg-elevated);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: var(--text-tertiary); }
.search input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.result-count { font-size: 14px; color: var(--text-tertiary); font-variant-numeric: tabular-nums; }
.empty-note {
  display: none; text-align: center; padding: 48px 0; color: var(--text-tertiary); font-size: 16px;
}
.empty-note.show { display: block; }

/* ---------- Year-grouped publications ---------- */
/* fallback start value; main.js recomputes it from the actual item count */
.year-wrap { counter-reset: pub 96; }
.year-group { display: grid; grid-template-columns: 108px 1fr; gap: 28px; padding: 8px 0 26px; }
.year-group + .year-group { border-top: 1px solid var(--border-light); padding-top: 26px; }
.year-tag { position: relative; }
.year-tag .y {
  position: sticky; top: 118px; display: block;
  font-size: 24px; font-weight: 600; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; line-height: 1.1;
}
.year-tag .c {
  position: sticky; top: 148px; display: block; margin-top: 4px;
  font-size: 12px; color: var(--text-tertiary);
}
.entry-list { list-style: none; margin: 0; padding: 0; }
.entry {
  position: relative; counter-increment: pub -1;
  padding: 16px 18px 16px 58px; border-radius: var(--radius-sm); line-height: 1.55;
  transition: background 0.2s var(--ease);
}
.entry::before {
  content: counter(pub); position: absolute; left: 14px; top: 16px;
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  background: var(--bg-subtle); color: var(--text-tertiary); border-radius: 50%;
  font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.entry + .entry { border-top: 1px solid var(--border-light); }
.entry:hover { background: var(--bg-subtle); }
.entry:hover::before { background: var(--accent); color: #fff; }
.entry strong { font-weight: 700; color: var(--text); }
.entry em { color: var(--text-secondary); font-style: normal; }
.entry.hide { display: none; }
.year-group.hide { display: none; }

/* ---------- Project cards ---------- */
.proj-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px;
  counter-reset: proj 25;
}
.proj {
  position: relative; overflow: hidden;
  counter-increment: proj -1;
  display: flex; flex-direction: column; gap: 12px;
  background: var(--bg-elevated); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 26px 28px 24px; box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.proj:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.proj-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; row-gap: 8px; }
.proj-num {
  width: 26px; height: 26px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-subtle); color: var(--text-tertiary); border-radius: 50%;
  font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.proj-num::before { content: counter(proj); }
.proj:hover .proj-num { background: var(--accent); color: #fff; }
.proj-role { margin-left: auto; }
.proj-status {
  font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft);
  padding: 3px 10px; border-radius: 980px; white-space: nowrap;
}
/* ---------- Principal Investigator highlight (gold, distinct from the blue accent) ---------- */
.proj-pi {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff; background: var(--pi);
  padding: 4px 12px 4px 10px; border-radius: 980px; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(180,83,9,0.32);
}
.proj-pi::before { content: "★"; font-size: 12px; line-height: 1; letter-spacing: 0; }

/* Lighter PI marker — annotation only, no card highlight */
.proj-pi-lite {
  font-size: 11px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--pi); background: transparent; border: 1px solid rgba(180,83,9,0.38);
  padding: 3px 10px; border-radius: 980px; white-space: nowrap;
}

/* Neutral role marker for the remaining projects */
.proj-member {
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-tertiary); background: var(--bg-subtle); border: 0;
  padding: 3px 10px; border-radius: 980px; white-space: nowrap;
}

.proj.is-pi {
  border: 2px solid var(--pi);
  background: linear-gradient(180deg, var(--pi-soft), rgba(180,83,9,0) 140px), var(--bg-elevated);
  padding: 25px 27px 23px;
}
.proj.is-pi::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--pi);
}
.proj.is-pi:hover { box-shadow: 0 10px 30px rgba(180,83,9,0.16); }
.proj.is-pi .proj-num { background: var(--pi); color: #fff; }
.proj:hover.is-pi .proj-num { background: var(--pi); }
.proj.is-pi .proj-year { color: var(--pi); }
.proj.is-pi .proj-status { color: var(--pi); background: var(--pi-soft); }
.proj.is-pi .proj-role { border-color: rgba(180,83,9,0.30); color: var(--pi); }
.proj-year {
  font-size: 13px; font-weight: 600; color: var(--accent);
  font-variant-numeric: tabular-nums; letter-spacing: 0.01em;
}
.proj-role {
  font-size: 11px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--text-tertiary); border: 1px solid var(--border-light);
  padding: 3px 9px; border-radius: 980px; white-space: nowrap;
}
.proj h3 {
  margin: 0; font-size: 17px; font-weight: 600; line-height: 1.4;
  letter-spacing: -0.01em; flex: 1;
}
.proj .fund {
  margin: 0; padding-top: 12px; border-top: 1px solid var(--border-light);
  font-size: 14px; color: var(--text-secondary);
}
.proj.hide { display: none; }

/* ---------- Contact ---------- */
.contact-wide {
  display: grid; grid-template-columns: 320px 1fr; gap: 22px; align-items: start;
}
.photo-panel {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light); background: var(--bg-elevated);
}
.photo-panel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.panel {
  background: var(--bg-elevated); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 32px 34px; box-shadow: var(--shadow-sm);
}
.panel h3 {
  margin: 0 0 16px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-tertiary);
}
.panel .lead { margin: 0 0 20px; font-size: 17px; line-height: 1.6; color: var(--text-secondary); }
.panel .addr { margin: 0; font-size: 16px; line-height: 1.7; }
.panel .addr b { font-weight: 600; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border-light); padding: 32px 0 46px; }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 22px;
  display: flex; align-items: center; justify-content: space-between;
  color: var(--text-tertiary); font-size: 13px;
}
.footer a { color: var(--text-tertiary); }
.footer a:hover { color: var(--accent); }

.updated { text-align: center; color: var(--text-tertiary); font-size: 13px; margin-top: 48px; }

/* ---------- Scroll reveal (progressive enhancement; JS-gated) ---------- */
.reveal-pre { opacity: 0; transform: translateY(20px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal-pre.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal-pre { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (min-width: 900px) {
  .link-list { columns: 2; column-gap: 44px; }
  .link-list li { break-inside: avoid; }
}

@media (max-width: 980px) {
  .contact-wide { grid-template-columns: 240px 1fr; gap: 18px; }
}

@media (max-width: 860px) {
  .hero { flex-direction: column; text-align: center; gap: 30px; padding-top: 56px; }
  .hero-actions { justify-content: center; }
  .hero-affil { font-size: 16px; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-light); padding: 8px 14px 16px;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 13px 12px; font-size: 17px; border-radius: 10px; }
  .nav-links li.active a { background: rgba(0,0,0,0.05); }
  .page-head { padding: 60px 0 36px; }
  .card { padding: 28px 24px; }
  .timeline li { flex-direction: column; gap: 3px; padding: 13px 0; }
  .timeline .yr { flex-basis: auto; font-size: 14px; }
  .contact-wide { grid-template-columns: 1fr; }
  .photo-panel { max-width: 280px; margin: 0 auto; }
  .photo-panel img { aspect-ratio: 1 / 1; }
  .panel { padding: 26px 22px; }
  .year-group { grid-template-columns: 1fr; gap: 10px; }
  .year-tag { display: flex; align-items: baseline; gap: 10px; }
  .year-tag .y { position: static; font-size: 20px; }
  .year-tag .c { position: static; margin-top: 0; }
  .entry { padding: 14px 12px 14px 50px; }
  .entry::before { top: 14px; left: 10px; }
  .toolbar { padding-top: 10px; }
  .ref-list li { padding: 46px 16px 22px; }
  .ref-list li::before { top: 15px; left: 16px; }
  .footer-inner { flex-direction: column; gap: 10px; text-align: center; }
}

@media (max-width: 480px) {
  .hero-photo { width: 172px; height: 172px; border-radius: 26px; }
  .contact-avatar { width: 108px; height: 108px; }
  .container { padding-left: 18px; padding-right: 18px; }
  .btn { padding: 11px 18px; }
}
