:root {
  --bg: #070b15;
  --bg-deep: #04070f;
  --surface: rgba(10, 16, 31, 0.78);
  --surface-strong: #0f1730;
  --surface-soft: rgba(17, 26, 51, 0.78);
  --text: #eef3ff;
  --muted: #95a3c7;
  --accent: #76f7d3;
  --accent-2: #ffb56a;
  --accent-3: #8f7dff;
  --accent-4: #ff5d9e;
  --border: rgba(151, 176, 255, 0.16);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --radius: 24px;
  --radius-sm: 18px;
  --header-bg: rgba(7, 11, 21, 0.72);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(118, 247, 211, 0.14), transparent 34%),
    radial-gradient(circle at 80% 16%, rgba(143, 125, 255, 0.18), transparent 28%),
    radial-gradient(circle at 18% 78%, rgba(255, 181, 106, 0.12), transparent 30%),
    linear-gradient(180deg, #08101d 0%, #050913 56%, #03060d 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 88px 88px;
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(circle at center, black 45%, transparent 100%);
}

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

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  background: var(--accent);
  color: #04100d;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  z-index: 30;
}

.skip-link:focus {
  left: 1.2rem;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.grid,
.orb,
.beam {
  position: absolute;
}

.grid {
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.06), transparent 50%),
    linear-gradient(135deg, rgba(118, 247, 211, 0.06), transparent 40%);
  opacity: 0.4;
}

.orb {
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.65;
  animation: float 14s ease-in-out infinite;
}

.orb-1 {
  width: 26rem;
  height: 26rem;
  right: -5rem;
  top: 3rem;
  background: radial-gradient(circle, rgba(118, 247, 211, 0.42), transparent 68%);
}

.orb-2 {
  width: 32rem;
  height: 32rem;
  left: -9rem;
  bottom: -7rem;
  background: radial-gradient(circle, rgba(255, 181, 106, 0.28), transparent 64%);
  animation-delay: 2s;
}

.orb-3 {
  width: 20rem;
  height: 20rem;
  left: 48%;
  top: 34%;
  background: radial-gradient(circle, rgba(143, 125, 255, 0.25), transparent 66%);
  animation-delay: 4s;
}

.beam {
  height: 18rem;
  width: 34rem;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.28;
}

.beam-1 {
  background: rgba(118, 247, 211, 0.24);
  top: -5rem;
  left: 20%;
  transform: rotate(-14deg);
}

.beam-2 {
  background: rgba(255, 93, 158, 0.18);
  bottom: 8rem;
  right: -8rem;
  transform: rotate(22deg);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-4));
  transform: scaleX(0);
  transform-origin: left center;
  z-index: 40;
  box-shadow: 0 0 24px rgba(118, 247, 211, 0.5);
}

.page {
  max-width: 1220px;
  margin: 0 auto;
  padding: 1.2rem 2rem 4rem;
  position: relative;
  z-index: 1;
}

.site-header {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--header-bg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  position: sticky;
  top: 1rem;
  z-index: 20;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(118, 247, 211, 0.9), rgba(143, 125, 255, 0.95));
  color: #03060d;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: 0 14px 40px rgba(118, 247, 211, 0.18);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand-name,
.hero h1,
.section-head h2,
.card h3,
.skill-card h3,
.project-card h3,
.timeline-content h3,
.archive-head h3 {
  font-family: "Space Grotesk", sans-serif;
}

.brand-name {
  font-size: 1rem;
  font-weight: 700;
}

.brand-role {
  color: var(--muted);
  font-size: 0.82rem;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.8rem;
  justify-self: end;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(118, 247, 211, 0.3);
}

.menu-toggle-icon {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 18px;
}

.menu-toggle-line {
  width: 100%;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: var(--text);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
}

.menu-toggle-text {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem;
  min-width: 0;
  width: 100%;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.9rem;
  color: var(--muted);
  min-width: 0;
}

.nav a {
  position: relative;
  padding: 0.3rem 0;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15rem;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

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

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: nowrap;
  justify-content: flex-end;
  justify-self: end;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 1.3rem;
  border-radius: 999px;
  border: 1px solid rgba(151, 176, 255, 0.22);
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(143, 125, 255, 0.18), rgba(118, 247, 211, 0.12)),
    rgba(255, 255, 255, 0.03);
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 14px 34px rgba(11, 18, 34, 0.26);
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  color: var(--text);
  border-color: rgba(118, 247, 211, 0.42);
  box-shadow: 0 18px 38px rgba(118, 247, 211, 0.14);
}

.btn.primary {
  background:
    linear-gradient(135deg, rgba(118, 247, 211, 0.28), rgba(255, 181, 106, 0.2)),
    rgba(255, 255, 255, 0.04);
  border-color: rgba(118, 247, 211, 0.32);
  box-shadow: 0 16px 36px rgba(118, 247, 211, 0.16);
}

.resume-btn {
  background:
    linear-gradient(135deg, rgba(143, 125, 255, 0.3), rgba(118, 247, 211, 0.16)),
    rgba(255, 255, 255, 0.04);
  border-color: rgba(143, 125, 255, 0.34);
  box-shadow: 0 14px 34px rgba(143, 125, 255, 0.16);
}

.resume-btn:hover {
  color: var(--text);
  border-color: rgba(118, 247, 211, 0.42);
  box-shadow: 0 18px 38px rgba(118, 247, 211, 0.12);
}

.btn.ghost {
  background:
    linear-gradient(135deg, rgba(143, 125, 255, 0.14), rgba(118, 247, 211, 0.08)),
    rgba(255, 255, 255, 0.02);
  border-color: rgba(151, 176, 255, 0.2);
}

.btn.small {
  padding: 0.65rem 1rem;
  font-size: 0.84rem;
}

.section {
  margin-top: 5rem;
  scroll-margin-top: 8rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
}

.section-head h2 {
  font-size: clamp(1.8rem, 2vw + 1rem, 2.6rem);
  letter-spacing: -0.03em;
}

.section-head p {
  color: var(--muted);
  max-width: 580px;
  line-height: 1.7;
}

.section-tag,
.eyebrow,
.chip,
.timeline-date {
  font-family: "JetBrains Mono", monospace;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(118, 247, 211, 0.18);
  background: rgba(118, 247, 211, 0.08);
  color: var(--accent);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 0.9rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 1.8rem;
  align-items: stretch;
  padding-top: 2.8rem;
}

.hero-copy,
.hero-panel,
.card,
.skill-card,
.project-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-copy {
  padding: 2.4rem;
  overflow: hidden;
}

.hero-copy::before,
.hero-panel::before,
.feature-card::before,
.accent-card::before {
  content: "";
  position: absolute;
  inset: auto auto -5rem -4rem;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(118, 247, 211, 0.22), transparent 70%);
  pointer-events: none;
}

.eyebrow {
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  margin-bottom: 0.9rem;
}

.hero-badge {
  display: inline-flex;
  padding: 0.45rem 0.8rem;
  margin-bottom: 1.1rem;
  border-radius: 999px;
  color: #fff3df;
  background: rgba(255, 181, 106, 0.14);
  border: 1px solid rgba(255, 181, 106, 0.2);
  font-size: 0.88rem;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(2.5rem, 4.8vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  max-width: 11ch;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 62ch;
  margin-top: 1.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
  margin-top: 1.8rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.hero-meta strong {
  display: inline-block;
  margin-right: 0.45rem;
  color: var(--text);
}

.hero-panel {
  padding: 2rem;
  display: grid;
  grid-template-columns: minmax(220px, 0.88fr) minmax(0, 1.12fr);
  gap: 1.35rem 1.6rem;
  align-items: start;
  overflow: hidden;
}

.hero-portrait {
  display: grid;
  gap: 0.9rem;
}

.panel-intro {
  display: grid;
  align-content: start;
  gap: 0.7rem;
  padding-top: 0.2rem;
}

.panel-intro .section-tag {
  margin-bottom: 0;
}

.portrait-frame {
  position: relative;
  padding: 0.75rem;
  border-radius: 28px;
  background:
    linear-gradient(160deg, rgba(118, 247, 211, 0.16), rgba(143, 125, 255, 0.22)),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(151, 176, 255, 0.18);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.32);
}

.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0.75rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.portrait-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 26%;
  border-radius: 22px;
  background: #020305;
  filter: grayscale(1) contrast(1.05) brightness(1.02);
}

.portrait-caption {
  display: grid;
  gap: 0.3rem;
}

.portrait-caption strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
}

.portrait-caption span {
  color: var(--muted);
  line-height: 1.65;
}

.panel-intro h3 {
  font-size: 1.48rem;
  line-height: 1.16;
  margin-bottom: 0;
  max-width: 18ch;
}

.panel-intro p,
.project-card p,
.card p,
.skill-card p,
.timeline-content p,
.archive-item span {
  color: var(--muted);
  line-height: 1.75;
}

.panel-intro p {
  max-width: 44ch;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  grid-column: 1 / -1;
}

.metric-card {
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(151, 176, 255, 0.14);
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric-card strong {
  display: block;
  margin: 0.55rem 0 0.4rem;
  font-size: 1.45rem;
}

.metric-card small {
  display: block;
  color: #cad4ef;
  line-height: 1.55;
}

.signal-list,
.list {
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.signal-list {
  grid-column: 1 / -1;
  margin-top: 0.1rem;
}

.signal-list li,
.list li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.7;
}

.signal-list li::before,
.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 4px rgba(118, 247, 211, 0.08);
}

.about-grid,
.skills-grid,
.education-grid,
.languages-grid,
.two-col,
.contact-grid {
  display: grid;
  gap: 1.5rem;
}

.about-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.skills-grid,
.education-grid,
.languages-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.two-col,
.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.skill-card,
.project-card {
  padding: 1.55rem;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.card:hover,
.skill-card:hover,
.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(118, 247, 211, 0.26);
}

.card h3,
.skill-card h3,
.project-card h3 {
  font-size: 1.25rem;
  line-height: 1.2;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(151, 176, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: #d7e1ff;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.projects-showcase .project-card {
  grid-column: auto;
}

.featured-main {
  grid-column: 1 / -1 !important;
}

.accent-card {
  background:
    linear-gradient(180deg, rgba(143, 125, 255, 0.11), rgba(255, 93, 158, 0.05)),
    var(--surface);
}

.project-topline,
.archive-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.project-year {
  color: #d7e1ff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-card p {
  margin-top: 0.25rem;
}

.project-note {
  margin-top: 1rem;
  color: #d9e2fb;
  font-size: 0.95rem;
}

.archive-card {
  margin-top: 1.5rem;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.3rem;
}

.archive-item {
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(151, 176, 255, 0.12);
}

.archive-item strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.timeline {
  display: grid;
  gap: 1.4rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 1.3rem;
  padding: 1.45rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(11, 18, 34, 0.72);
  box-shadow: var(--shadow);
}

.timeline-date {
  color: var(--accent-2);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-content h3 {
  margin-bottom: 0.7rem;
  font-size: 1.12rem;
}

label {
  display: grid;
  gap: 0.45rem;
  color: #cad4ef;
  font-size: 0.92rem;
}

input,
textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(151, 176, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(118, 247, 211, 0.38);
  box-shadow: 0 0 0 4px rgba(118, 247, 211, 0.08);
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-info {
  display: grid;
  gap: 1rem;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 1.25rem;
  color: var(--accent-2);
}

.form-status.error {
  color: #ff95ba;
}

.note {
  margin-top: 1rem;
  color: var(--muted);
  line-height: 1.7;
}

.footer {
  margin-top: 4rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.75s ease var(--reveal-delay, 0ms),
    transform 0.75s ease var(--reveal-delay, 0ms);
}

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

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-24px);
  }
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 920px) {
  .page {
    padding-inline: 1.2rem;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 1rem;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-panel {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    border-top: 1px solid transparent;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, border-color 0.3s ease;
  }

  .site-header.menu-open .nav-panel {
    max-height: 85vh;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    border-top-color: rgba(151, 176, 255, 0.14);
    padding: 1.25rem 0.25rem 1rem;
    gap: 1.25rem;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
  }

  .site-header.menu-open .menu-toggle-line:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
  }

  .site-header.menu-open .menu-toggle-line:nth-child(2) {
    opacity: 0;
  }

  .site-header.menu-open .menu-toggle-line:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
  }

  .nav,
  .header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .nav a {
    width: 100%;
  }

  .header-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    justify-self: stretch;
    align-items: stretch;
  }

  .header-actions .btn {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 820px) {
  .site-header {
    top: 0.6rem;
  }

  .section {
    scroll-margin-top: 2rem;
  }

  .hero-panel {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .panel-intro {
    padding-top: 0;
  }

  .panel-intro h3,
  .panel-intro p {
    max-width: none;
  }

  .about-grid,
  .two-col,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .projects-showcase {
    grid-template-columns: 1fr;
  }

  .projects-showcase .project-card,
  .featured-main {
    grid-column: auto !important;
  }
}

@media (max-width: 640px) {
  .page {
    padding: 1rem 1rem 3rem;
  }

  .hero {
    padding-top: 1.8rem;
  }

  .hero-copy,
  .hero-panel,
  .card,
  .skill-card,
  .project-card,
  .timeline-item {
    padding: 1.25rem;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-meta,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .hero-actions .btn {
    width: 100%;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
