/* AnhNguyen — refined visual system */
:root {
  --bg-void: #0e1114;
  --bg-deep: #14181d;
  --bg-surface: #1a1f26;
  --bg-elevated: #222830;
  --bg-card: #262d36;
  --text-pure: #f3f5f7;
  --text-soft: #d5dae0;
  --text-muted: #9aa3ad;
  --text-dim: #6f7882;
  --accent-primary: #00e887;
  --accent-secondary: #22c7ff;
  --accent-tertiary: #ff3da8;
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-hover: rgba(255, 255, 255, 0.18);
  --glow-primary: rgba(0, 232, 135, 0.28);
  --glow-secondary: rgba(34, 199, 255, 0.22);
  --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius-sm: 10px;
  --radius-md: 16px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 4.25rem;
}

[data-theme="light"] {
  --bg-void: #f6f7f8;
  --bg-deep: #ffffff;
  --bg-surface: #eef1f3;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --text-pure: #121417;
  --text-soft: #2a2f35;
  --text-muted: #5c6570;
  --text-dim: #8a939e;
  --accent-primary: #00b86b;
  --accent-secondary: #0096b8;
  --accent-tertiary: #d1007a;
  --border-subtle: rgba(18, 20, 23, 0.08);
  --border-hover: rgba(18, 20, 23, 0.14);
  --glow-primary: rgba(0, 184, 107, 0.18);
  --glow-secondary: rgba(0, 150, 184, 0.16);
  --shadow-soft: 0 20px 50px rgba(18, 20, 23, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: "Be Vietnam Pro", system-ui, sans-serif;
  color: var(--text-pure);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(0, 232, 135, 0.12), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(34, 199, 255, 0.1), transparent 50%),
    radial-gradient(700px 500px at 70% 100%, rgba(255, 61, 168, 0.06), transparent 55%),
    var(--bg-void);
  background-attachment: fixed;
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

[data-theme="light"] body {
  background:
    radial-gradient(1100px 520px at 8% -8%, rgba(0, 184, 107, 0.1), transparent 55%),
    radial-gradient(800px 480px at 95% 0%, rgba(0, 150, 184, 0.08), transparent 50%),
    radial-gradient(700px 420px at 60% 110%, rgba(209, 0, 122, 0.05), transparent 55%),
    var(--bg-void);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
}

[data-theme="light"] body::before {
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(18, 20, 23, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 20, 23, 0.04) 1px, transparent 1px);
}

main, .site-nav, .site-controls, .footer-custom, .error-page > * {
  position: relative;
  z-index: 1;
}

h1, h2, h3, .font-display {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--text-pure);
  letter-spacing: -0.02em;
}

.font-mono, code, .site-nav__lang, .section-number, .stat-number, .stat-label,
.skill-tag, .timeline-tag, .footer-custom p, .hero-eyebrow, .about-eyebrow,
.about-location, .hobbies-title, .contact-title, .social-title, .scroll-indicator {
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-secondary); transition: color 0.25s var(--ease-out); }
a:hover { color: var(--accent-primary); }

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

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
  z-index: 99999;
  transform-origin: left;
  transform: scaleX(0);
  pointer-events: none;
}

/* Nav */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--nav-h);
  padding: 0.7rem clamp(1rem, 3vw, 2rem);
  background: color-mix(in srgb, var(--bg-void) 72%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border-subtle);
}

.site-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text-pure);
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: 1.05rem;
}

.site-nav__brand span {
  background: linear-gradient(135deg, var(--text-pure), color-mix(in srgb, var(--text-pure) 70%, var(--accent-primary)));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.site-nav__brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--border-subtle), 0 8px 20px rgba(0, 0, 0, 0.25);
}

.site-nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--bg-elevated) 80%, transparent);
  color: var(--text-pure);
  cursor: pointer;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
}

.site-nav__toggle svg { width: 20px; height: 20px; }

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 0.15rem 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.5rem 0.7rem;
  border-radius: 999px;
  transition: color 0.25s var(--ease-out), background 0.25s var(--ease-out);
}

.site-nav__links a:hover {
  color: var(--text-pure);
  background: color-mix(in srgb, var(--bg-elevated) 80%, transparent);
}

.site-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.site-nav__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 0.8rem;
  border: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
  color: var(--text-pure);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), border-color 0.25s var(--ease-out), background 0.25s var(--ease-out);
}

.site-nav__btn:hover {
  border-color: color-mix(in srgb, var(--accent-primary) 55%, var(--border-subtle));
  background: color-mix(in srgb, var(--accent-primary) 10%, var(--bg-elevated));
  transform: translateY(-1px);
}

.site-nav__btn svg { width: 18px; height: 18px; }

.site-nav__lang {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.site-controls {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 900;
}

.site-controls .site-nav__btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
}

/* Hero — full-bleed cinematic */
#hero-section {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 0;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #1a222c url("../img/hero-poster.jpg") center / cover no-repeat;
  overflow: hidden;
}

.hero-media video,
.hero-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  background: transparent;
  opacity: 1 !important;
  visibility: visible !important;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 12, 18, 0.72) 0%, rgba(8, 12, 18, 0.45) 48%, rgba(8, 12, 18, 0.22) 78%, rgba(8, 12, 18, 0.4) 100%),
    linear-gradient(180deg, rgba(8, 12, 18, 0.35) 0%, rgba(8, 12, 18, 0.12) 42%, rgba(8, 12, 18, 0.5) 100%);
}

/* Hero luôn “dark surface” — kể cả khi site đang light theme */
[data-theme="light"] .hero-media::after {
  background:
    linear-gradient(90deg, rgba(8, 12, 18, 0.68) 0%, rgba(8, 12, 18, 0.42) 50%, rgba(8, 12, 18, 0.2) 78%, rgba(8, 12, 18, 0.38) 100%),
    linear-gradient(180deg, rgba(8, 12, 18, 0.32) 0%, rgba(8, 12, 18, 0.1) 45%, rgba(8, 12, 18, 0.48) 100%);
}

.hero-media.is-poster-only video { display: none; }
.hero-media.is-poster-only {
  background: #1a222c url("../img/hero-poster.jpg") center / cover no-repeat;
}

.hero-play {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: max(5.5rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(8, 12, 18, 0.72);
  color: #fff;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.hero-play[hidden] { display: none !important; }

.hero-play svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.hero-play:hover,
.hero-play:focus-visible {
  border-color: color-mix(in srgb, var(--accent-primary) 55%, #fff);
  color: #fff;
  outline: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(680px, calc(100% - 2rem));
  margin: calc(var(--nav-h) + 2.5rem) 0 4.5rem clamp(1rem, 4vw, 3.5rem);
  padding: clamp(1.6rem, 3vw, 2.4rem) clamp(1.4rem, 3vw, 2.2rem);
  color: #ffffff !important;
  background: rgba(10, 14, 20, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  text-shadow: none;
}

[data-theme="light"] .hero-content,
[data-theme="light"] #hero-section .hero-title,
[data-theme="light"] #hero-section .hero-title .line-soft,
[data-theme="light"] #hero-section .hero-subtitle,
[data-theme="light"] #hero-section .hero-eyebrow,
[data-theme="light"] #hero-section .scroll-indicator {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

[data-theme="light"] #hero-section .hero-subtitle strong {
  color: #9ff5d4 !important;
  -webkit-text-fill-color: #9ff5d4 !important;
}

[data-theme="light"] #hero-section .hero-brand,
[data-theme="light"] #hero-section .hero-title .highlight {
  color: #00e887 !important;
}

[data-theme="light"] #hero-section .hero-title .highlight {
  -webkit-text-fill-color: transparent !important;
}

.hero-brand {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #00e887;
  -webkit-text-fill-color: #00e887;
  margin: 0 0 1.1rem;
  opacity: 0;
  animation: fadeInUp 0.9s var(--ease-out) forwards 0.1s;
  text-shadow: none;
}

.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f2f2f2;
  -webkit-text-fill-color: #f2f2f2;
  margin-bottom: 1.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.95rem 0.55rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  opacity: 0;
  animation: fadeInUp 0.9s var(--ease-out) forwards 0.2s;
  text-shadow: none;
}

.hero-eyebrow::before { display: none; }

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-primary);
  border-radius: 50%;
  animation: pulse-dot 2.2s ease-in-out infinite;
  box-shadow: 0 0 0 0 var(--glow-primary);
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 var(--glow-primary); }
  50% { transform: scale(1.15); box-shadow: 0 0 0 8px transparent; }
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6.4rem);
  font-weight: 500;
  line-height: 1.02;
  margin: 0 0 1.25rem;
  opacity: 0;
  animation: fadeInUp 0.95s var(--ease-out) forwards 0.32s;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  background: none;
}

.hero-title .line-soft {
  display: block;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  font-size: 0.52em;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 0.2em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.75);
}

.hero-title .highlight {
  font-style: italic;
  display: inline-block;
  color: #00e887;
  background: linear-gradient(120deg, #00e887 0%, #22c7ff 70%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.55));
  text-shadow: none;
}

.hero-subtitle {
  font-size: clamp(1.02rem, 1.8vw, 1.2rem);
  color: rgba(255, 255, 255, 0.88);
  -webkit-text-fill-color: rgba(255, 255, 255, 0.88);
  max-width: 34rem;
  margin: 0 0 2.25rem;
  line-height: 1.75;
  opacity: 0;
  animation: fadeInUp 0.95s var(--ease-out) forwards 0.45s;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.65);
}

.hero-subtitle strong {
  color: #7dffe0;
  -webkit-text-fill-color: #7dffe0;
  font-weight: 600;
}

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

.hero-cta-group {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.95s var(--ease-out) forwards 0.58s;
}

.btn-magnetic,
.btn-outline-glow,
.btn-home,
.btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 1.05rem 1.7rem;
  font-family: "Be Vietnam Pro", sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border-radius: 999px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out), color 0.3s var(--ease-out), background 0.3s var(--ease-out);
}

.btn-magnetic,
.btn-home {
  background: linear-gradient(135deg, #00e887, #22c7ff);
  color: #04140c;
  -webkit-text-fill-color: #04140c;
  border: none;
  box-shadow: 0 14px 34px rgba(0, 232, 135, 0.35);
  text-shadow: none;
}

.btn-magnetic:hover,
.btn-home:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 232, 135, 0.45);
  color: #04140c;
  -webkit-text-fill-color: #04140c;
  text-decoration: none;
}

.btn-outline-glow,
.btn-contact {
  background: rgba(0, 0, 0, 0.4);
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(10px);
  text-shadow: none;
}

.btn-outline-glow:hover,
.btn-contact:hover {
  border-color: #22c7ff;
  color: #22c7ff;
  -webkit-text-fill-color: #22c7ff;
  background: rgba(34, 199, 255, 0.12);
  text-decoration: none;
}

#hero-section .btn-magnetic,
#hero-section .btn-outline-glow {
  text-shadow: none;
}

.skills-orbit {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  margin: 0 auto 2.75rem;
  max-width: 720px;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  font-size: 0.72rem;
  color: var(--text-soft);
  transition: transform 0.25s var(--ease-out), border-color 0.25s var(--ease-out), background 0.25s var(--ease-out);
}

.skill-tag:hover {
  border-color: color-mix(in srgb, var(--accent-primary) 50%, var(--border-subtle));
  transform: translateY(-2px);
  background: color-mix(in srgb, var(--accent-primary) 8%, var(--bg-elevated));
}

.skill-tag svg { width: 14px; height: 14px; opacity: 0.85; }

.scroll-indicator {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  color: rgba(255, 255, 255, 0.72);
  -webkit-text-fill-color: rgba(255, 255, 255, 0.72);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.scroll-mouse {
  width: 22px;
  height: 36px;
  border: 1.5px solid var(--border-hover);
  border-radius: 12px;
  position: relative;
}

.scroll-mouse::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 3px;
  height: 7px;
  background: var(--accent-primary);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollDown 1.6s ease-in-out infinite;
}

@keyframes scrollDown {
  0%, 100% { opacity: 1; top: 7px; }
  50% { opacity: 0.35; top: 16px; }
}

/* Sections */
.section-dark,
.section-elevated {
  padding: clamp(4.5rem, 8vw, 7.5rem) 0;
  color: var(--text-pure);
}

.section-dark { background: transparent; }
.section-elevated {
  background:
    linear-gradient(180deg, transparent, color-mix(in srgb, var(--bg-deep) 72%, transparent) 12%, color-mix(in srgb, var(--bg-deep) 72%, transparent) 88%, transparent);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-number {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--accent-primary);
  letter-spacing: 0.22em;
  margin-bottom: 0.9rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid color-mix(in srgb, var(--accent-primary) 35%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-primary) 8%, transparent);
}

.section-title {
  font-size: clamp(2.1rem, 4.8vw, 3.4rem);
  font-weight: 500;
  margin: 0 0 0.9rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 34rem;
  margin: 0 auto;
  line-height: 1.7;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Cards */
.tilt-card {
  position: relative;
  background: linear-gradient(160deg, color-mix(in srgb, var(--bg-elevated) 96%, #fff 4%), var(--bg-elevated));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.9rem 1.7rem;
  height: 100%;
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), border-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.tilt-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), transparent);
  opacity: 0.75;
  transform: scaleX(0.35);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.tilt-card:hover {
  border-color: color-mix(in srgb, var(--accent-primary) 35%, var(--border-subtle));
  box-shadow: var(--shadow-soft);
  transform: translateY(-6px);
}

.tilt-card:hover::before { transform: scaleX(1); }

.skill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.15rem;
  border-radius: 12px;
  color: var(--accent-primary);
  background: color-mix(in srgb, var(--accent-primary) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-primary) 22%, transparent);
}

.skill-icon svg { width: 1.45rem; height: 1.45rem; }

.tilt-card h3 {
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 0.65rem;
}

.tilt-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.7;
}

.lab-card {
  display: flex;
  flex-direction: column;
}

.lab-card .lab-role {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-secondary);
  margin: 0 0 0.4rem;
}

.lab-card h3 {
  margin-bottom: 1.1rem;
}

.lab-spec-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin: 0;
}

.lab-spec {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.5rem 0.75rem;
  align-items: start;
  padding-top: 0.7rem;
  border-top: 1px solid var(--border-subtle);
}

.lab-spec:first-child {
  padding-top: 0;
  border-top: 0;
}

.lab-spec dt {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin: 0;
  padding-top: 0.15rem;
}

.lab-spec dd {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

@media (max-width: 640px) {
  .lab-spec {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

.timeline-item {
  position: relative;
  background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.45rem 1.4rem;
  margin-bottom: 1rem;
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.timeline-item:hover {
  transform: translateX(6px);
  border-color: color-mix(in srgb, var(--accent-secondary) 35%, var(--border-subtle));
  box-shadow: var(--shadow-soft);
}

.timeline-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--bg-card) 90%, var(--accent-primary) 10%);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.timeline-content h4 {
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 0.45rem;
}

.timeline-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 0.9rem;
  line-height: 1.7;
}

.timeline-tag {
  display: inline-block;
  background: color-mix(in srgb, var(--accent-primary) 14%, transparent);
  color: var(--accent-primary);
  border: 1px solid color-mix(in srgb, var(--accent-primary) 30%, transparent);
  padding: 0.28rem 0.65rem;
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0.35rem 0.35rem 0;
  border-radius: 999px;
}

[data-theme="light"] .timeline-tag { color: var(--accent-primary); }

.contact-card {
  text-align: center;
  padding: 2rem 1.4rem;
  background: color-mix(in srgb, var(--bg-elevated) 94%, transparent);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-decoration: none;
  display: block;
  height: 100%;
  color: var(--text-pure);
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.contact-card:hover {
  transform: translateY(-8px);
  border-color: color-mix(in srgb, var(--accent-primary) 40%, var(--border-subtle));
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: var(--text-pure);
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  margin-bottom: 1.1rem;
  border-radius: 50%;
  color: var(--accent-primary);
  background: color-mix(in srgb, var(--accent-primary) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-primary) 24%, transparent);
}

.contact-icon svg { width: 1.35rem; height: 1.35rem; }

.contact-card h5 {
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 0.45rem;
}

.contact-card p {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin: 0;
  word-break: break-word;
}

.contact-card-actions { margin-top: 1.1rem; }

.copy-email-btn {
  padding: 0.55rem 1rem;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
}

.copy-email-btn:hover,
.copy-email-btn.copied {
  background: var(--accent-primary);
  color: #04140c;
  border-color: var(--accent-primary);
}

.stats-section {
  padding: 2.75rem 0;
  margin: 0 clamp(1rem, 4vw, 2rem);
  border: 1px solid var(--border-subtle);
  border-radius: calc(var(--radius-md) + 4px);
  background: color-mix(in srgb, var(--bg-elevated) 70%, transparent);
  backdrop-filter: blur(12px);
  position: relative;
  z-index: 2;
  transform: translateY(-2.25rem);
}

.stat-item { text-align: center; padding: 1.1rem 0.75rem; }

.stat-number {
  font-size: clamp(2.2rem, 4vw, 2.9rem);
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 0.55rem;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.footer-custom {
  background: transparent;
  border-top: 1px solid var(--border-subtle);
  padding: 2.25rem 0 5.5rem;
}

.footer-custom p {
  font-size: 0.74rem;
  color: var(--text-dim);
  margin: 0;
}

.footer-custom a {
  color: var(--accent-primary);
  text-decoration: none;
}

.footer-custom a:hover { color: var(--accent-secondary); }

/* About — card stage, ảnh + chữ cùng bo góc */
#about-hero {
  min-height: calc(100vh - var(--nav-h));
  padding: calc(var(--nav-h) + 1.5rem) clamp(1rem, 3vw, 2rem) 2.5rem;
  background:
    radial-gradient(800px 420px at 15% 20%, color-mix(in srgb, var(--accent-primary) 10%, transparent), transparent 60%),
    radial-gradient(700px 380px at 90% 80%, color-mix(in srgb, var(--accent-secondary) 8%, transparent), transparent 55%),
    var(--bg-void);
}

.about-stage {
  display: grid;
  grid-template-columns: minmax(280px, 1.15fr) minmax(300px, 1fr);
  gap: clamp(1rem, 2.2vw, 1.75rem);
  align-items: stretch;
  min-height: calc(100vh - var(--nav-h) - 4rem);
  max-width: 1240px;
  margin: 0 auto;
}

.about-image-col {
  position: relative;
  min-height: 420px;
}

.about-image-wrapper {
  position: sticky;
  top: calc(var(--nav-h) + 1.25rem);
  height: calc(100vh - var(--nav-h) - 3.5rem);
  max-height: 860px;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  background: var(--bg-elevated);
}

.about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.04) saturate(1.02);
  transform: scale(1.01);
}

.about-image-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(0, 0, 0, 0.08), transparent 45%),
    linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.28));
  pointer-events: none;
}

.about-content-col {
  display: flex;
  align-items: center;
}

.about-inner {
  width: 100%;
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  border-radius: 28px;
  padding: clamp(1.6rem, 3vw, 2.6rem);
  box-shadow: var(--shadow-soft);
}

.about-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.about-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent-primary);
}

.about-name {
  font-size: clamp(2.3rem, 4.8vw, 3.5rem);
  font-weight: 500;
  line-height: 1.08;
  margin: 0 0 0.5rem;
  color: var(--text-pure);
  background: none;
  -webkit-text-fill-color: var(--text-pure);
}

.about-location {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.35rem;
}

.about-divider {
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-primary), transparent);
  margin-bottom: 1.35rem;
  border: none;
}

.about-bio p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.8;
  margin: 0 0 1rem;
}

.about-bio p strong { color: var(--text-pure); font-weight: 600; }

.about-bio .lead-text {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-style: italic;
  color: var(--text-soft);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.hobbies-section,
.contact-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.hobbies-title,
.contact-title,
.social-title {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 0.85rem;
}

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

.hobby-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--text-soft);
  transition: transform 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}

.hobby-tag:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
}

.contact-email {
  display: inline-block;
  color: var(--text-pure);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent-primary) 50%, transparent);
  margin-bottom: 1.15rem;
  transition: color 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}

.contact-email:hover {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
}

.social-links { display: flex; gap: 0.65rem; }

.social-btn {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  color: var(--text-pure);
  text-decoration: none;
  background: color-mix(in srgb, var(--bg-elevated) 85%, transparent);
  transition: transform 0.25s var(--ease-out), background 0.25s var(--ease-out), color 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}

.social-btn svg { width: 18px; height: 18px; }

.social-btn:hover {
  background: var(--accent-primary);
  color: #04140c;
  border-color: var(--accent-primary);
  transform: translateY(-3px);
}

/* 404 */
.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.error-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem 1.5rem 3rem;
}

.error-content { text-align: center; max-width: 640px; }

.error-code {
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(7rem, 20vw, 12rem);
  font-weight: 600;
  line-height: 0.95;
  margin-bottom: 0.8rem;
  background: linear-gradient(135deg, var(--text-pure), var(--accent-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.error-title {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 500;
  font-style: italic;
  margin: 0 0 1rem;
}

.error-message {
  color: var(--text-muted);
  margin: 0 0 2.4rem;
  line-height: 1.8;
}

.error-actions {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
}

.error-footer {
  text-align: center;
  padding: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.error-footer p {
  margin: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  color: var(--text-dim);
}

/* Layout utilities */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 1.5rem);
}

.container-fluid { width: 100%; padding: 0; }

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -0.75rem;
}

.row.g-0 { margin: 0; }
.row.g-0 > [class*="col-"] { padding: 0; }
.row.g-4 { margin: 0 -0.75rem; }
.row.g-4 > [class*="col-"] { padding: 0.75rem; }

[class*="col-"] {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 0 0.75rem;
}

.col-6 { flex: 0 0 50%; max-width: 50%; }
.min-vh-100 { min-height: 100vh; }
.h-100 { height: 100%; }
.p-0 { padding: 0 !important; }
.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.text-center { text-align: center; }
.d-flex { display: flex; }
.gap-4 { gap: 1.15rem; }
.mb-0 { margin-bottom: 0 !important; }
.mb-3 { margin-bottom: 1rem !important; }
.order-1 { order: 1; }
.order-2 { order: 2; }

@media (min-width: 768px) {
  .col-md-3 { flex: 0 0 25%; max-width: 25%; }
  .col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .text-md-start { text-align: left; }
  .text-md-end { text-align: right; }
  .mb-md-0 { margin-bottom: 0 !important; }
}

@media (min-width: 992px) {
  .col-lg-4 { flex: 0 0 33.333%; max-width: 33.333%; }
  .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
}

@media (min-width: 1200px) {
  .col-xl-5 { flex: 0 0 42%; max-width: 42%; }
  .col-xl-7 { flex: 0 0 58%; max-width: 58%; }
  .order-xl-1 { order: 1; }
  .order-xl-2 { order: 2; }
}

/* ===== Mobile / tablet ===== */
@media (max-width: 991px) {
  :root { --nav-h: 3.75rem; }

  html, body { overflow-x: hidden; }

  .site-nav {
    padding: 0.55rem max(0.85rem, env(safe-area-inset-right)) 0.55rem max(0.85rem, env(safe-area-inset-left));
    gap: 0.45rem;
  }

  .site-nav__brand span { font-size: 0.98rem; }
  .site-nav__brand img { width: 30px; height: 30px; }

  .site-nav__toggle {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    margin-left: auto;
  }

  .site-nav__actions { gap: 0.3rem; }
  .site-nav__btn {
    min-width: 44px;
    min-height: 44px;
  }

  .site-nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.65rem max(0.85rem, env(safe-area-inset-right)) 0.9rem max(0.85rem, env(safe-area-inset-left));
    background: color-mix(in srgb, var(--bg-deep) 97%, transparent);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-subtle);
    max-height: min(78vh, 520px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .site-nav.is-open .site-nav__links { display: flex; }

  .site-nav__links a {
    padding: 0.85rem 1rem;
    font-size: 1rem;
    border-radius: 12px;
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .scroll-indicator { display: none; }

  #hero-section {
    min-height: 100svh;
    align-items: flex-end;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .hero-content {
    width: calc(100% - 1.25rem);
    max-width: none;
    margin: 0 auto max(1.1rem, env(safe-area-inset-bottom));
    margin-top: calc(var(--nav-h) + 0.75rem);
    padding: 1.2rem 1.1rem 1.3rem;
    border-radius: 22px;
    align-self: center;
  }

  .hero-brand {
    letter-spacing: 0.18em;
    margin-bottom: 0.65rem;
    font-size: 0.88rem;
  }

  .hero-eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    max-width: 100%;
    white-space: normal;
    line-height: 1.45;
    padding: 0.48rem 0.75rem;
    gap: 0.55rem;
  }

  .hero-title {
    font-size: clamp(2.35rem, 10.5vw, 3.2rem);
    margin-bottom: 0.8rem;
    word-break: break-word;
  }

  .hero-title .line-soft { font-size: 0.46em; }
  .hero-title .highlight { max-width: 100%; }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    line-height: 1.65;
  }

  .hero-cta-group {
    flex-direction: column;
    gap: 0.6rem;
  }

  .hero-cta-group .btn-magnetic,
  .hero-cta-group .btn-outline-glow {
    width: 100%;
    min-height: 48px;
    padding: 0.9rem 1.1rem;
    font-size: 0.76rem;
  }

  .hero-play {
    bottom: max(7.5rem, calc(env(safe-area-inset-bottom) + 6.5rem));
    min-height: 44px;
  }

  .hero-media::after,
  [data-theme="light"] .hero-media::after {
    background:
      linear-gradient(180deg, rgba(8, 12, 18, 0.28) 0%, rgba(8, 12, 18, 0.22) 38%, rgba(8, 12, 18, 0.68) 100%);
  }

  .hero-media video,
  .hero-video {
    object-position: center 35%;
  }

  .hero-media.is-poster-only video { display: none; }
  .hero-media.is-poster-only {
    background: #1a222c url("../img/hero-poster.jpg") center / cover no-repeat;
  }

  .stats-section {
    margin: 0 0.75rem;
    transform: translateY(-0.65rem);
    padding: 1.35rem 0.2rem;
    border-radius: 18px;
  }

  .stat-item { padding: 0.7rem 0.35rem; }
  .stat-label {
    font-size: 0.62rem;
    letter-spacing: 0.05em;
    line-height: 1.35;
  }

  .section-dark,
  .section-elevated { padding: 3.25rem 0; }

  .section-header { margin-bottom: 1.85rem; }
  .section-title { font-size: clamp(1.85rem, 7vw, 2.6rem); }
  .section-subtitle { font-size: 0.94rem; padding: 0 0.35rem; }

  .skills-orbit {
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    gap: 0.45rem;
  }

  .skill-tag {
    font-size: 0.72rem;
    padding: 0.4rem 0.7rem;
  }

  .row.g-4 > [class*="col-"] { padding: 0.4rem; }

  .tilt-card { padding: 1.25rem 1.1rem; border-radius: 16px; }

  .lab-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.95rem;
  }

  .lab-spec {
    grid-template-columns: 4.6rem minmax(0, 1fr);
    gap: 0.35rem 0.55rem;
    padding-top: 0.6rem;
  }

  .lab-spec dt { font-size: 0.62rem; }
  .lab-spec dd {
    font-size: 0.86rem;
    word-break: break-word;
  }

  .timeline-item {
    flex-direction: column;
    gap: 0.85rem !important;
    padding: 1.15rem;
  }

  .timeline-icon { width: 48px; height: 48px; }

  .contact-card { padding: 1.4rem 1.05rem; }

  .footer-custom {
    padding: 2rem 0 calc(5rem + env(safe-area-inset-bottom));
    text-align: center;
  }

  .footer-custom .row { gap: 0.75rem; }
  .footer-custom [class*="col-"] { text-align: center !important; }

  .site-controls {
    right: max(0.75rem, env(safe-area-inset-right));
    bottom: max(0.75rem, env(safe-area-inset-bottom));
  }

  .site-controls .site-nav__btn {
    width: 48px;
    height: 48px;
  }

  /* About mobile */
  #about-hero {
    padding: calc(var(--nav-h) + 0.85rem) max(0.75rem, env(safe-area-inset-right)) calc(1.5rem + env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
  }

  .about-stage {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    min-height: 0;
  }

  .about-image-col { min-height: 0; }

  .about-image-wrapper {
    position: relative;
    top: 0;
    height: min(42vh, 320px);
    max-height: 320px;
    border-radius: 22px;
  }

  .about-inner {
    border-radius: 22px;
    padding: 1.35rem 1.2rem 1.5rem;
  }

  .about-name { font-size: clamp(2rem, 9vw, 2.6rem); }
  .about-bio p { font-size: 0.94rem; line-height: 1.75; }
  .about-bio .lead-text { font-size: 1.1rem; }

  .error-main {
    padding: calc(var(--nav-h) + 2rem) 1.1rem 2.5rem;
  }

  .error-actions {
    flex-direction: column;
    width: 100%;
  }

  .error-actions .btn-home,
  .error-actions .btn-contact {
    width: 100%;
    min-height: 48px;
  }
}

@media (max-width: 576px) {
  .site-nav__brand span {
    max-width: 9ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero-content {
    width: calc(100% - 0.9rem);
    margin-left: 0.45rem;
    margin-right: 0.45rem;
    padding: 1.05rem 0.95rem 1.15rem;
    border-radius: 18px;
  }

  .hero-eyebrow {
    font-size: 0.58rem;
    letter-spacing: 0.06em;
  }

  .hero-title { font-size: clamp(2.05rem, 11vw, 2.7rem); }
  .hero-subtitle { font-size: 0.9rem; }

  .section-dark,
  .section-elevated { padding: 2.75rem 0; }

  .tilt-card,
  .timeline-item,
  .lab-card { padding: 1.1rem; }

  .lab-spec {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .lab-spec dt { padding-top: 0; }

  .stat-number { font-size: 1.75rem; }

  .stats-section {
    margin: 0 0.45rem;
    padding: 1.15rem 0.05rem;
  }

  .container { padding: 0 0.85rem; }

  .hobby-tag { font-size: 0.74rem; padding: 0.45rem 0.75rem; }

  #homelab .col-md-6 { width: 100%; max-width: 100%; flex: 0 0 100%; }
}

/* Very small phones */
@media (max-width: 380px) {
  .site-nav__brand span { display: none; }
  .hero-title { font-size: 1.95rem; }
  .hero-brand { font-size: 0.8rem; }
  .col-6 .stat-label { font-size: 0.56rem; }
  .hero-cta-group .btn-magnetic,
  .hero-cta-group .btn-outline-glow { font-size: 0.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .hero-brand, .hero-eyebrow, .hero-title, .hero-subtitle, .hero-cta-group,
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Touch devices: kill hover-tilt jank */
@media (hover: none) {
  .tilt-card:hover { transform: none; }
  .timeline-item:hover { transform: none; }
  .contact-card:hover { transform: none; }
}
