:root {
  --bg: #07111f;
  --bg-elevated: #0b1728;
  --bg-card: rgba(11, 23, 40, 0.78);
  --bg-card-strong: #101e33;
  --text: #f2f7ff;
  --text-muted: #a8bbd4;
  --text-soft: #7f93ac;
  --brand: #40dbc4;
  --brand-strong: #11bfa8;
  --accent: #62a9ff;
  --accent-warm: #ffbf69;
  --border: rgba(160, 192, 222, 0.16);
  --border-hover: rgba(64, 219, 196, 0.4);
  --shadow: 0 22px 72px rgba(1, 6, 16, 0.42);
  --header: rgba(7, 17, 31, 0.72);
  --grid: rgba(116, 159, 191, 0.065);
  --radius: 1.5rem;
  --container: 1180px;
}

html[data-theme="light"] {
  --bg: #f7fafc;
  --bg-elevated: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.83);
  --bg-card-strong: #ffffff;
  --text: #102139;
  --text-muted: #53667e;
  --text-soft: #718399;
  --brand: #079e91;
  --brand-strong: #087f76;
  --accent: #176de1;
  --accent-warm: #ce7d19;
  --border: rgba(17, 44, 71, 0.12);
  --border-hover: rgba(7, 158, 145, 0.36);
  --shadow: 0 18px 62px rgba(18, 40, 66, 0.09);
  --header: rgba(247, 250, 252, 0.78);
  --grid: rgba(30, 71, 105, 0.055);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.6;
  transition: background-color 240ms ease, color 240ms ease;
}

body::selection {
  background: var(--brand);
  color: #06101e;
}

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

button {
  color: inherit;
  font: inherit;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

.container {
  width: min(var(--container), calc(100% - 3rem));
  margin: 0 auto;
}

.mono {
  font-family: "Space Mono", monospace;
  font-size: 0.77rem;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 110;
  border-radius: 0.7rem;
  background: var(--brand);
  color: #07111f;
  padding: 0.7rem 1rem;
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

.ambient {
  position: fixed;
  z-index: -2;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.4;
  pointer-events: none;
}

.ambient-one {
  width: 32rem;
  height: 32rem;
  right: -10rem;
  top: -9rem;
  background: rgba(31, 129, 198, 0.58);
}

.ambient-two {
  width: 30rem;
  height: 30rem;
  bottom: 12%;
  left: -15rem;
  background: rgba(22, 185, 151, 0.35);
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 18%, transparent 74%);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: var(--header);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  transition: border-color 200ms ease, padding 200ms ease;
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  padding: 0.65rem 0;
}

.navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid rgba(64, 219, 196, 0.35);
  border-radius: 0.8rem;
  background: linear-gradient(135deg, rgba(64, 219, 196, 0.14), rgba(98, 169, 255, 0.12));
  color: var(--brand);
  font-family: "Space Mono", monospace;
  font-size: 0.9rem;
}

.brand-text {
  font-size: 0.95rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.55rem;
  color: var(--text-muted);
  font-size: 0.93rem;
  font-weight: 600;
}

.nav-links a {
  position: relative;
  transition: color 180ms ease;
}

.nav-links a::after {
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 100%;
  height: 2px;
  content: "";
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.theme-toggle {
  display: inline-grid;
  width: 2.65rem;
  height: 2.65rem;
  cursor: pointer;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-card);
}

.theme-toggle svg {
  grid-area: 1 / 1;
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  transition: transform 200ms ease, opacity 200ms ease;
}

.theme-toggle .moon {
  opacity: 0;
  transform: rotate(-25deg) scale(0.6);
}

[data-theme="light"] .theme-toggle .sun {
  opacity: 0;
  transform: rotate(25deg) scale(0.6);
}

[data-theme="light"] .theme-toggle .moon {
  opacity: 1;
  transform: none;
}

.menu-toggle {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(360px, 1.04fr) minmax(350px, 0.82fr);
  align-items: center;
  gap: clamp(2.4rem, 6vw, 6rem);
  min-height: 100vh;
  padding: 8.7rem 0 5.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  margin-bottom: 1.1rem;
  color: var(--brand);
  font-family: "Space Mono", monospace;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 0 rgba(64, 219, 196, 0.5);
  animation: pulse 2.1s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(64, 219, 196, 0.5);
  }
  72%,
  100% {
    box-shadow: 0 0 0 0.68rem rgba(64, 219, 196, 0);
  }
}

.hero h1 {
  max-width: 700px;
  margin-bottom: 1.45rem;
  font-size: clamp(2.75rem, 5.3vw, 4.65rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 1.04;
}

.hero-summary {
  max-width: 610px;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.4vw, 1.1rem);
}

.hero-summary strong {
  color: var(--text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 2.15rem 0 2.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0 1.35rem;
  border-radius: 0.88rem;
  font-size: 0.94rem;
  font-weight: 700;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--brand);
  color: #061320;
  box-shadow: 0 14px 34px rgba(17, 191, 168, 0.2);
}

.button-primary:hover {
  box-shadow: 0 18px 38px rgba(17, 191, 168, 0.28);
}

.button-secondary {
  border: 1px solid var(--border);
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--border-hover);
}

.quick-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.55rem;
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 500;
}

.quick-facts li {
  position: relative;
}

.quick-facts li + li::before {
  position: absolute;
  left: -0.9rem;
  color: var(--brand);
  content: "/";
}

.system-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1.45rem;
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.43rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--border);
}

.terminal-header span {
  width: 0.56rem;
  height: 0.56rem;
  border-radius: 50%;
  background: #f66f65;
}

.terminal-header span:nth-child(2) {
  background: var(--accent-warm);
}

.terminal-header span:nth-child(3) {
  background: var(--brand);
}

.terminal-header p {
  margin-left: auto;
  color: var(--text-soft);
  font-family: "Space Mono", monospace;
  font-size: 0.7rem;
}

.system-body {
  padding: clamp(1.2rem, 4vw, 1.75rem);
}

.muted {
  margin-bottom: 1.5rem;
  color: var(--text-soft);
}

.pipeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.pipeline article {
  flex: 0 1 6.6rem;
  padding: 0.75rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 0.72rem;
  background: var(--bg-elevated);
  text-align: center;
}

.pipeline article.active {
  border-color: rgba(64, 219, 196, 0.42);
  box-shadow: 0 0 32px rgba(64, 219, 196, 0.12);
}

.pipeline small {
  display: block;
  margin-bottom: 0.28rem;
  color: var(--text-soft);
  font-family: "Space Mono", monospace;
  font-size: 0.57rem;
}

.pipeline strong {
  font-size: 0.7rem;
}

.connection {
  flex: 0 1 1.9rem;
  height: 1px;
  margin: 0 0.25rem;
  background: linear-gradient(90deg, var(--border-hover), var(--accent));
}

.signal-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
  margin-bottom: 1.65rem;
}

.signal-row div {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  color: var(--text-muted);
}

.signal {
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 50%;
  background: var(--brand);
}

.signal.cloud {
  background: var(--accent);
}

.console {
  display: flex;
  flex-direction: column;
  gap: 0.63rem;
  padding: 1rem;
  border-radius: 0.7rem;
  background: rgba(3, 10, 20, 0.42);
  color: var(--text-muted);
  font-family: "Space Mono", monospace;
  font-size: 0.7rem;
}

[data-theme="light"] .console {
  background: #f1f6fa;
}

.console span {
  display: inline-block;
  width: 4.6rem;
  color: var(--accent);
}

.console b {
  color: var(--brand);
  font-weight: 400;
}

.section {
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
  scroll-margin-top: 4.5rem;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: clamp(2.4rem, 5vw, 3.6rem);
}

.section-heading .eyebrow {
  margin-top: 0.4rem;
}

.section-heading h2 {
  max-width: 700px;
  font-size: clamp(1.85rem, 3.1vw, 2.75rem);
  letter-spacing: -0.05em;
  line-height: 1.18;
}

.about-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(2.5rem, 7vw, 6.5rem);
}

.about-copy {
  display: flex;
  flex-direction: column;
  gap: 1.18rem;
  color: var(--text-muted);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.metrics article {
  padding: 1.45rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--bg-card);
}

.metrics strong {
  display: block;
  margin-bottom: 0.85rem;
  color: var(--brand);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  letter-spacing: -0.04em;
}

.metrics span {
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.projects-section,
.skills-section {
  background: linear-gradient(110deg, transparent, rgba(64, 219, 196, 0.025), transparent);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 25.5rem;
  padding: clamp(1.4rem, 2.5vw, 1.8rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: border-color 200ms ease, transform 200ms ease;
}

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.project-card.featured {
  grid-column: span 2;
  min-height: auto;
  background:
    radial-gradient(circle at 90% 18%, rgba(64, 219, 196, 0.13), transparent 28%),
    var(--bg-card-strong);
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.55rem;
}

.project-index {
  color: var(--brand);
  font-family: "Space Mono", monospace;
  font-size: 0.72rem;
}

.project-type {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.26rem 0.7rem;
  color: var(--text-soft);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.project-card h3 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.35rem, 2vw, 1.62rem);
  letter-spacing: -0.035em;
}

.project-card > p {
  max-width: 780px;
  margin-bottom: 1.55rem;
  color: var(--text-muted);
  font-size: 0.93rem;
}

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

.tags li {
  border-radius: 0.45rem;
  background: rgba(64, 219, 196, 0.085);
  padding: 0.3rem 0.62rem;
  color: var(--brand);
  font-family: "Space Mono", monospace;
  font-size: 0.68rem;
}

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: auto;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
}

.card-links a,
.text-link {
  transition: color 170ms ease;
}

.card-links a:hover,
.text-link:hover {
  color: var(--brand);
}

.card-links span,
.text-link span {
  color: var(--brand);
}

.repository-banner {
  display: grid;
  grid-template-columns: 0.6fr 1fr 1.5fr auto;
  align-items: center;
  gap: 1.3rem;
  margin-top: 1rem;
  padding: 1.3rem 1.65rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  color: var(--text-muted);
  transition: border-color 200ms ease;
}

.repository-banner:hover {
  border-color: var(--border-hover);
}

.repository-banner .mono {
  color: var(--brand);
}

.repository-banner strong {
  color: var(--text);
  font-size: 0.96rem;
}

.repository-banner p {
  font-size: 0.88rem;
}

.repository-banner .arrow {
  color: var(--brand);
  font-size: 1.25rem;
}

.timeline {
  position: relative;
  max-width: 950px;
  margin-left: auto;
}

.timeline::before {
  position: absolute;
  top: 0.6rem;
  bottom: 0;
  left: 10.7rem;
  width: 1px;
  content: "";
  background: var(--border);
}

.timeline-item {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 3.5rem;
  padding-bottom: 3rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-date {
  padding-top: 0.15rem;
  color: var(--brand);
  font-family: "Space Mono", monospace;
  font-size: 0.71rem;
}

.timeline-content {
  position: relative;
}

.timeline-content::before {
  position: absolute;
  top: 0.42rem;
  left: -3.82rem;
  width: 0.65rem;
  height: 0.65rem;
  content: "";
  border: 2px solid var(--brand);
  border-radius: 50%;
  background: var(--bg);
}

.role-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.role-header h3 {
  font-size: 1.3rem;
  letter-spacing: -0.035em;
}

.role-header span {
  color: var(--text-soft);
  font-size: 0.85rem;
}

.timeline-content > p {
  max-width: 690px;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.detail-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.detail-list li::before {
  margin-right: 0.65rem;
  color: var(--brand);
  content: "—";
}

.text-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.87rem;
  font-weight: 700;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.skill-group {
  padding: clamp(1.35rem, 3vw, 1.8rem);
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  background: var(--bg-card);
}

.skill-group h3 {
  margin-bottom: 1.15rem;
  font-size: 1.08rem;
}

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

.skill-tags span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.36rem 0.7rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  transition: border-color 170ms ease, color 170ms ease;
}

.skill-group:hover .skill-tags span {
  border-color: rgba(64, 219, 196, 0.23);
}

.certification-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.certification {
  min-height: 13.5rem;
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  transition: transform 180ms ease, border-color 180ms ease;
}

.certification:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.certification span {
  color: var(--brand);
  font-family: "Space Mono", monospace;
  font-size: 0.67rem;
}

.certification h3 {
  margin: 1.05rem 0 0.75rem;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  line-height: 1.35;
}

.certification p {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.current-focus {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
  padding: 1.15rem 1.3rem;
  border: 1px dashed var(--border-hover);
  border-radius: 1rem;
}

.current-focus p {
  margin-right: 0.55rem;
  color: var(--brand);
}

.current-focus span {
  border-radius: 999px;
  background: var(--bg-card-strong);
  padding: 0.38rem 0.72rem;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.contact-section {
  padding: clamp(2rem, 5vw, 3rem) 0 clamp(5rem, 9vw, 7.5rem);
  scroll-margin-top: 5rem;
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: clamp(2.2rem, 6vw, 6rem);
  padding: clamp(1.7rem, 5vw, 3.5rem);
  border: 1px solid var(--border);
  border-radius: clamp(1.3rem, 3vw, 2rem);
  background:
    radial-gradient(circle at 90% 20%, rgba(64, 219, 196, 0.16), transparent 34%),
    var(--bg-card);
}

.contact-card h2 {
  max-width: 660px;
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: -0.055em;
  line-height: 1.18;
}

.contact-card > div:first-child > p:last-child {
  max-width: 590px;
  color: var(--text-muted);
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  min-width: 12.5rem;
}

.social-link {
  display: flex;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.66rem 0.9rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 700;
  transition: border-color 170ms ease, color 170ms ease;
}

.social-link:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

.social-link span {
  color: var(--brand);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.55rem 0;
  color: var(--text-soft);
  font-size: 0.82rem;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer a:hover {
  color: var(--brand);
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 9.5rem;
  }

  .system-card {
    max-width: 580px;
  }

  .section-heading,
  .about-layout {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .metrics,
  .certification-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .repository-banner {
    grid-template-columns: 1fr auto;
  }

  .repository-banner p {
    grid-column: 1 / 2;
  }

  .contact-card {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .contact-actions .button {
    flex-basis: 100%;
  }

  .social-link {
    flex: 1;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(var(--container), calc(100% - 2rem));
  }

  .brand-text {
    display: none;
  }

  .menu-toggle {
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.36rem;
    width: 2.7rem;
    height: 2.7rem;
    margin-left: auto;
    cursor: pointer;
    border: 1px solid var(--border);
    border-radius: 0.72rem;
    background: var(--bg-card);
  }

  .menu-toggle span {
    width: 1.15rem;
    height: 2px;
    margin: 0 auto;
    border-radius: 4px;
    background: var(--text);
    transition: transform 170ms ease;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: var(--bg-elevated);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.72rem;
  }

  .nav-links a::after {
    display: none;
  }

  .theme-toggle {
    margin: 0.55rem 0 0.2rem 0.65rem;
  }

  .hero h1 {
    letter-spacing: -0.055em;
  }

  .quick-facts {
    flex-direction: column;
    gap: 0.5rem;
  }

  .quick-facts li + li::before {
    display: none;
  }

  .projects-grid,
  .skills-grid,
  .metrics,
  .certification-grid {
    grid-template-columns: 1fr;
  }

  .project-card.featured {
    grid-column: auto;
  }

  .project-card {
    min-height: 0;
  }

  .timeline {
    margin-left: 0;
  }

  .timeline::before {
    left: 0.25rem;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    padding-left: 1.8rem;
  }

  .timeline-content::before {
    left: -1.87rem;
  }

  .role-header {
    flex-direction: column;
    gap: 0.28rem;
  }

  .site-footer .container {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 460px) {
  .hero-actions .button {
    width: 100%;
  }

  .pipeline article {
    padding: 0.64rem 0.3rem;
  }

  .pipeline strong {
    font-size: 0.62rem;
  }

  .signal-row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
