/* ===== Skip-to-content link (a11y) ===== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  padding: 0.6rem 1.1rem;
  background: var(--accent-1);
  color: #061812;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0.5rem;
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

/* ===== Scroll progress bar ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--grad);
  z-index: 200;
  transition: width 0.08s linear;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
  pointer-events: none;
}

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

:root {
  --bg: #061812;
  --surface: #0f1f1a;
  --surface-2: #16302a;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f5f7fa;
  --text-2: #9ca3af;
  --text-3: #6b7280;
  --accent-1: #10b981;
  --accent-2: #22d3ee;
  --grad: linear-gradient(135deg, var(--accent-1), var(--accent-2));

  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', var(--font-body);
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --max-w: 1100px;
  --section-py: clamp(4rem, 10vw, 7rem);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

::selection {
  background: rgba(34, 211, 238, 0.4);
  color: white;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  color: var(--accent-1);
}

strong {
  color: var(--text);
  font-weight: 600;
}

/* ===== Aurora background (drifting orbs — the unique signature) ===== */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.aurora {
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  filter: blur(95px);
  opacity: 0.55;
  will-change: transform;
}

.aurora--1 {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.85) 0%, transparent 65%);
  top: -20%;
  left: -15%;
  animation: drift-1 26s ease-in-out infinite;
}

.aurora--2 {
  background: radial-gradient(circle, rgba(34, 211, 238, 0.75) 0%, transparent 65%);
  top: -10%;
  right: -15%;
  animation: drift-2 32s ease-in-out infinite;
}

.aurora--3 {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.45) 0%, transparent 65%);
  bottom: -25%;
  left: 25%;
  animation: drift-3 40s ease-in-out infinite;
}

@keyframes drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(18vw, 14vh) scale(1.1); }
}
@keyframes drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-14vw, 20vh) scale(1.05); }
}
@keyframes drift-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12vw, -10vh) scale(0.95); }
}

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(6, 24, 18,0.6);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.nav__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.08em;
  transition: opacity 0.2s;
}

.nav__logo:hover { opacity: 0.85; }

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

.nav__links a {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-2);
  transition: color 0.2s ease;
  position: relative;
  padding: 0.25rem 0;
}

.nav__links a:hover { color: var(--text); }

.nav__links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--grad);
  transition: width 0.3s ease;
}

.nav__links a:hover::after { width: 100%; }

.nav__links a.is-active {
  color: var(--text);
}

.nav__links a.is-active::after {
  width: 100%;
}

@media (max-width: 640px) {
  .nav__links { gap: 1.1rem; }
  .nav__links a { font-size: 0.825rem; }
}

@media (max-width: 420px) {
  .nav__links li:nth-child(3) { display: none; }
}

/* ===== Hero ===== */
.hero {
  --cx: 50%;
  --cy: 50%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem 1.5rem 5rem;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 350px at var(--cx) var(--cy), rgba(16, 185, 129, 0.08), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.hero:hover::before { opacity: 1; }

.hero__content { position: relative; z-index: 1; }

.hero__content {
  max-width: 900px;
  text-align: center;
}

.hero__greeting {
  color: var(--accent-1);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.hero__name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 11vw, 7rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 1.25rem;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.accent {
  color: var(--accent-1);
  font-weight: 500;
  font-style: normal;
}

.hero__title {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-2);
  margin-bottom: 1.75rem;
  letter-spacing: 0.01em;
  font-weight: 500;
}

.hero__tagline {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-2);
  line-height: 1.7;
}

.hero__cta {
  display: flex;
  gap: 0.875rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn--primary {
  background: var(--grad);
  color: white;
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.25);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(34, 211, 238, 0.4);
}

.btn--ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  background: var(--surface-2);
  border-color: rgba(16, 185, 129, 0.4);
  transform: translateY(-2px);
}

.hero__scroll-cue {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 36px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
}

.hero__scroll-cue span {
  width: 3px;
  height: 7px;
  background: var(--text-2);
  border-radius: 2px;
  animation: scroll-bounce 1.6s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.3; }
}

@media (max-width: 640px) {
  .hero__scroll-cue { display: none; }
}

/* ===== Sections ===== */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--section-py) 1.5rem;
}

.section__heading {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.section__heading::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--grad);
  border-radius: 2px;
  margin-top: 0.85rem;
}

.section__sub {
  color: var(--text-2);
  margin-bottom: 2.5rem;
  max-width: 640px;
  font-size: 1rem;
}

.section__sub a {
  color: var(--accent-1);
  border-bottom: 1px dotted currentColor;
  transition: color 0.2s;
}

.section__sub a:hover { color: var(--accent-2); }

/* ===== About ===== */
.about__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-top: 2.5rem;
  align-items: start;
}

@media (max-width: 768px) {
  .about__grid { grid-template-columns: 1fr; gap: 2rem; }
}

.about__bio p {
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

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

.fact {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: border-color 0.3s, transform 0.3s;
}

.fact:hover {
  border-color: rgba(16, 185, 129, 0.25);
  transform: translateX(2px);
}

.fact__label {
  font-size: 0.72rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-mono);
}

.fact__value {
  font-weight: 500;
  font-size: 0.95rem;
}

/* ===== Skills (tiered) ===== */
.skills__tiers {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.skill-tier {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.4rem 1.6rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.skill-tier:hover {
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateY(-2px);
}

.skill-tier--primary {
  border-left: 3px solid var(--accent-1);
}

.skill-tier__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.skill-tier__head h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text);
  margin: 0;
}

.skill-tier__sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.skill-tier__rows {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.skill-row {
  display: grid;
  grid-template-columns: 175px 1fr;
  align-items: start;
  gap: 1rem;
}

@media (max-width: 600px) {
  .skill-row {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
}

.skill-row__label {
  font-size: 0.74rem;
  color: var(--text-2);
  font-weight: 500;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-top: 0.4rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag {
  background: var(--surface-2);
  color: var(--text-2);
  padding: 0.32rem 0.7rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  font-weight: 400;
  border: 1px solid var(--border);
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.tag:hover {
  background: var(--bg);
  color: var(--accent-1);
  border-color: rgba(16, 185, 129, 0.3);
}

/* ===== Timeline (Experience) ===== */
.timeline {
  list-style: none;
  margin-top: 2.5rem;
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-1), var(--accent-2), transparent);
  opacity: 0.5;
}

.timeline__item {
  position: relative;
  padding-bottom: 2.5rem;
}

.timeline__item:last-child { padding-bottom: 0; }

.timeline__item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent-1);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
  transition: box-shadow 0.3s, border-color 0.3s;
}

.timeline__item:hover::before {
  box-shadow: 0 0 0 6px rgba(34, 211, 238, 0.2);
  border-color: var(--accent-2);
}

.timeline__date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-3);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.timeline__content h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  letter-spacing: -0.01em;
}

.timeline__org {
  color: var(--accent-1);
  font-weight: 500;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.timeline__content p:last-child {
  color: var(--text-2);
  line-height: 1.7;
}

/* ===== Projects ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.6rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.1), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.card:hover::before { opacity: 1; }

.card--featured {
  border: 1px solid rgba(34, 211, 238, 0.25);
  background: linear-gradient(145deg, var(--surface) 0%, rgba(34, 211, 238, 0.06) 100%);
}

/* CTA card — links the trimmed projects list to the full GitHub */
.card--cta {
  text-align: left;
  cursor: pointer;
  background: linear-gradient(145deg, var(--surface) 0%, rgba(16, 185, 129, 0.08) 100%);
  border: 1px solid rgba(16, 185, 129, 0.25);
  text-decoration: none;
}

.card--cta:hover {
  border-color: rgba(34, 211, 238, 0.4);
  background: linear-gradient(145deg, var(--surface) 0%, rgba(34, 211, 238, 0.1) 100%);
}

.card--cta .card__tag {
  color: var(--accent-1);
}

@media (min-width: 900px) {
  .card--cta { grid-column: 1 / -1; }
}

@media (min-width: 900px) {
  .card--featured { grid-column: 1 / -1; }
}

.card__tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 500;
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.card--featured .card__title {
  font-size: 1.65rem;
}

.card__desc {
  color: var(--text-2);
  font-size: 0.94rem;
  line-height: 1.7;
  flex-grow: 1;
}

.card__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.card__tech span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-3);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.18rem 0.55rem;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.card__link {
  font-size: 0.875rem;
  color: var(--accent-1);
  font-weight: 500;
  transition: color 0.2s;
  margin-top: 0.25rem;
  align-self: flex-start;
}

.card__link:hover { color: var(--accent-2); }

/* ===== Education ===== */
.education-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2.5rem;
}

.education-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-1);
  border-radius: 8px;
  padding: 1.1rem 1.4rem;
  transition: border-left-color 0.3s, background 0.3s, transform 0.3s;
}

.education-item:hover {
  border-left-color: var(--accent-2);
  transform: translateX(3px);
}

.education-item h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  letter-spacing: -0.005em;
}

.education-item__org {
  color: var(--text-2);
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.education-item__detail {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-3);
}

/* ===== Achievements ===== */
.achievements {
  list-style: none;
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}

.achievements li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.4rem;
  transition: border-color 0.3s, transform 0.3s;
}

.achievements li:hover {
  border-color: rgba(34, 211, 238, 0.3);
  transform: translateX(3px);
}

.achievements h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.achievements p {
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.6;
}

.achievements a {
  color: var(--accent-1);
  border-bottom: 1px dotted currentColor;
  transition: color 0.2s;
}

.achievements a:hover { color: var(--accent-2); }

/* ===== Contact ===== */
.section--contact {
  text-align: center;
}

.section--contact .section__heading::after {
  margin-left: auto;
  margin-right: auto;
}

.contact__lead {
  max-width: 540px;
  margin: 1.25rem auto 2.5rem;
  color: var(--text-2);
  line-height: 1.7;
}

.contact__methods {
  display: flex;
  justify-content: center;
  gap: 0.875rem;
  flex-wrap: wrap;
}

.contact__method {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.25s ease;
}

.contact__method:hover {
  background: var(--surface-2);
  border-color: rgba(16, 185, 129, 0.4);
  transform: translateY(-2px);
  color: var(--accent-1);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
}

.contact__icon {
  font-size: 1rem;
  font-family: var(--font-mono);
  color: var(--accent-1);
  font-weight: 600;
}

/* ===== Hero org & badges ===== */
.hero__org {
  color: var(--text);
  font-weight: 600;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 2rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-2);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-1);
  box-shadow: 0 0 10px var(--accent-1);
  flex-shrink: 0;
}

/* ===== Bullet list (experience details) ===== */
.bullet-list {
  list-style: none;
  padding: 0;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.bullet-list li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--text-2);
  line-height: 1.7;
  font-size: 0.95rem;
}

.bullet-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-1);
  opacity: 0.75;
}

.bullet-list li strong {
  color: var(--text);
  font-weight: 600;
}

/* Metric highlight — accent-color, bold, tabular-nums for clean alignment */
.metric {
  color: var(--accent-1);
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ===== Awards grid ===== */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.award {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.award:hover {
  border-color: rgba(34, 211, 238, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.award--featured {
  background: linear-gradient(145deg, var(--surface) 0%, rgba(34, 211, 238, 0.07) 100%);
  border: 1px solid rgba(34, 211, 238, 0.25);
}

@media (min-width: 720px) {
  .award--featured { grid-column: 1 / -1; }
}

.award__kind {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
}

.award__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.35;
}

.award--featured .award__title {
  font-size: 1.2rem;
}

.award__meta {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-3);
  letter-spacing: 0.01em;
}

.award__desc {
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 0.2rem;
}

.award__desc a {
  color: var(--accent-1);
  border-bottom: 1px dotted currentColor;
  transition: color 0.2s;
}

.award__desc a:hover { color: var(--accent-2); }

/* ===== Tag em (subtle annotation inside tag) ===== */
.tag em {
  font-style: normal;
  color: var(--text-3);
  font-size: 0.88em;
}

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

/* ===== Reveal animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Hero stagger */
.hero .reveal:nth-child(1) { transition-delay: 0.05s; }
.hero .reveal:nth-child(2) { transition-delay: 0.18s; }
.hero .reveal:nth-child(3) { transition-delay: 0.32s; }
.hero .reveal:nth-child(4) { transition-delay: 0.46s; }
.hero .reveal:nth-child(5) { transition-delay: 0.62s; }
.hero .reveal:nth-child(6) { transition-delay: 0.78s; }

/* ===== Focus styles (keyboard a11y) ===== */
:focus-visible {
  outline: 2px solid var(--accent-1);
  outline-offset: 3px;
  border-radius: 4px;
}

.btn:focus-visible {
  outline-offset: 4px;
}

.tag:focus-visible {
  outline-offset: 2px;
}

/* ===== Print stylesheet ===== */
@media print {
  body {
    background: white;
    color: black;
  }
  .nav, .scroll-progress, .skip-link, .hero__scroll-cue, .bg-mesh, .footer { display: none !important; }
  main { margin-top: 0; }
  .hero { min-height: 0; padding: 0 0 1cm 0; }
  .hero::before { display: none; }
  .hero__name, .grad, .accent, .metric, .award__kind, .timeline__org, .card__tag, .card__link, .skill-tier__sub, .nav__logo {
    background: none !important;
    color: black !important;
    -webkit-text-fill-color: black !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .section { padding: 0.5cm 0; max-width: none; page-break-inside: avoid; }
  .card, .skill-tier, .award, .education-item, .achievements li, .fact, .timeline__item, .contact__method {
    background: white !important;
    border: 1px solid #ccc !important;
    box-shadow: none !important;
    transform: none !important;
    page-break-inside: avoid;
  }
  .tag, .card__tech span { background: white !important; border: 1px solid #999 !important; color: black !important; }
  .badge { background: white !important; border: 1px solid #999 !important; color: black !important; }
  .badge__dot { background: black !important; box-shadow: none !important; }
  a { color: black !important; text-decoration: underline; }
  .timeline::before, .timeline__item::before { display: none !important; }
  .timeline { padding-left: 0; }
  .section__heading::after { display: none; }
  h1, h2, h3 { page-break-after: avoid; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__scroll-cue { display: none; }
  html { scroll-behavior: auto; }
}
