:root {
  --ink: #111923;
  --ink-soft: #3f5264;
  --paper: #eef3f7;
  --paper-strong: #f8fbfd;
  --mist: #dbe8f2;
  --line: rgba(17, 25, 35, 0.14);
  --night: #0f151b;
  --night-2: #172333;
  --amber: #7fb2d9;
  --amber-dark: #376b92;
  --green: #4f91a3;
  --blue: #2f6f9e;
  --shadow: 0 24px 70px rgba(17, 38, 60, 0.16);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-140%);
  border-radius: 6px;
  background: var(--paper-strong);
  color: var(--ink);
  padding: 10px 14px;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 18px 48px;
  color: var(--paper-strong);
  transition: background 180ms ease, box-shadow 180ms ease, min-height 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  min-height: 66px;
  background: rgba(13, 20, 28, 0.92);
  box-shadow: 0 10px 40px rgba(6, 13, 21, 0.24);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 250, 240, 0.34);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.08);
  color: #a9d7f5;
  font-family: var(--mono);
  font-size: 0.9rem;
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 250, 240, 0.86);
  font-family: var(--mono);
  font-size: 0.92rem;
}

.site-nav a {
  border-radius: 6px;
  padding: 10px 12px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 250, 240, 0.12);
  color: var(--paper-strong);
  outline: none;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  border: 1px solid rgba(255, 250, 240, 0.3);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.08);
  color: inherit;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.site-header.is-open .menu-toggle span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.site-header.is-open .menu-toggle span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.44fr);
  gap: 42px;
  align-items: center;
  min-height: 78vh;
  overflow: hidden;
  color: var(--paper-strong);
  background:
    linear-gradient(135deg, rgba(18, 43, 62, 0.64), rgba(15, 21, 27, 0.96) 48%),
    #101923;
  border-bottom: 1px solid rgba(169, 215, 245, 0.14);
}

.hero-content {
  width: min(760px, calc(100% - 48px));
  margin: auto 0 104px;
  padding: 132px 0 0 48px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 700;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: 4.4rem;
  line-height: 1;
  font-weight: 800;
}

.hero-copy {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 250, 240, 0.82);
  font-size: 1.18rem;
}

.typing-game {
  width: min(680px, 100%);
  margin-top: 26px;
  border: 1px solid rgba(169, 215, 245, 0.18);
  border-radius: 8px;
  background: rgba(15, 21, 27, 0.6);
  box-shadow: 0 22px 70px rgba(6, 13, 21, 0.22);
  overflow: hidden;
}

.typing-top,
.typing-stats,
.typing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.typing-top {
  border-bottom: 1px solid rgba(169, 215, 245, 0.12);
  padding: 14px 16px;
  color: #a9d7f5;
  font-family: var(--mono);
  font-size: 0.88rem;
  font-weight: 700;
}

.typing-reset {
  border: 1px solid rgba(169, 215, 245, 0.18);
  border-radius: 6px;
  background: rgba(169, 215, 245, 0.08);
  color: rgba(248, 251, 253, 0.84);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.78rem;
  padding: 7px 10px;
}

.typing-reset:hover,
.typing-reset:focus-visible {
  border-color: rgba(169, 215, 245, 0.44);
  outline: none;
}

.typing-stats {
  justify-content: flex-start;
  flex-wrap: wrap;
  padding: 14px 16px 0;
  color: rgba(248, 251, 253, 0.76);
  font-family: var(--mono);
  font-size: 0.82rem;
}

.typing-stats span {
  border: 1px solid rgba(169, 215, 245, 0.14);
  border-radius: 999px;
  background: rgba(169, 215, 245, 0.06);
  padding: 6px 10px;
}

.typing-stats strong {
  color: #dceefb;
}

.typing-prompt {
  min-height: 92px;
  margin: 0;
  padding: 16px 16px 14px;
  color: rgba(248, 251, 253, 0.66);
  cursor: text;
  font-family: var(--mono);
  font-size: 1.03rem;
  line-height: 1.75;
}

.typing-prompt span {
  position: relative;
  border-radius: 3px;
}

.typing-prompt .is-correct {
  color: #b8e1ff;
}

.typing-prompt .is-wrong {
  background: rgba(237, 99, 124, 0.22);
  color: #ffd6dd;
}

.typing-prompt .is-current::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 2px;
  border-radius: 999px;
  background: #8dc1e8;
  animation: caret-blink 900ms steps(2) infinite;
}

.typing-input {
  width: calc(100% - 32px);
  min-height: 46px;
  margin: 0 16px;
  border: 1px solid rgba(169, 215, 245, 0.2);
  border-radius: 8px;
  background: rgba(238, 243, 247, 0.08);
  color: var(--paper-strong);
  font: 0.98rem var(--mono);
  padding: 11px 12px;
}

.typing-input::placeholder {
  color: rgba(248, 251, 253, 0.44);
}

.typing-input:focus {
  border-color: rgba(169, 215, 245, 0.58);
  outline: none;
  box-shadow: 0 0 0 4px rgba(141, 193, 232, 0.12);
}

.typing-input:disabled {
  opacity: 0.68;
}

.typing-footer {
  padding: 14px 16px 16px;
  color: rgba(248, 251, 253, 0.72);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.typing-meter {
  width: min(210px, 42%);
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(169, 215, 245, 0.12);
}

.typing-meter span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: #8dc1e8;
  transition: width 130ms ease;
}

.typing-game.is-complete {
  border-color: rgba(141, 193, 232, 0.42);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-fun {
  display: none;
  width: max-content;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  border: 1px solid rgba(255, 250, 240, 0.16);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.06);
  padding: 8px 12px;
  color: rgba(255, 250, 240, 0.86);
  font-family: var(--mono);
  font-size: 0.86rem;
}

.fun-code {
  display: inline-block;
  animation: code-bounce 1.8s ease-in-out infinite;
}

.fun-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  animation: dot-blink 1.8s ease-in-out infinite;
}

.hero-lab {
  position: relative;
  width: min(360px, calc(100% - 56px));
  margin: 118px 48px 118px 0;
  border: 1px solid rgba(169, 215, 245, 0.18);
  border-radius: 8px;
  background: rgba(15, 21, 27, 0.68);
  box-shadow: 0 30px 80px rgba(6, 13, 21, 0.28);
  overflow: hidden;
  animation: lab-float 5.8s ease-in-out infinite;
}

.hero-lab::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(169, 215, 245, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169, 215, 245, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent);
  pointer-events: none;
}

.lab-top {
  display: flex;
  gap: 7px;
  padding: 15px 16px;
  border-bottom: 1px solid rgba(169, 215, 245, 0.12);
}

.lab-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #6fa8d2;
}

.lab-top span:nth-child(2) {
  background: #8dc1e8;
}

.lab-top span:nth-child(3) {
  background: #5f8eb5;
}

.lab-line {
  position: relative;
  display: flex;
  gap: 10px;
  padding: 26px 20px 18px;
  color: #dceefb;
  font-family: var(--mono);
  font-size: 0.92rem;
}

.lab-prompt {
  color: #8dc1e8;
  font-weight: 700;
}

.lab-type {
  position: relative;
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  animation: typing-mask 4.8s steps(24) infinite;
}

.lab-type::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 1em;
  margin-left: 4px;
  background: #8dc1e8;
  vertical-align: -2px;
  animation: caret-blink 900ms steps(2) infinite;
}

.lab-stack {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 20px 22px;
}

.lab-stack span {
  border: 1px solid rgba(169, 215, 245, 0.18);
  border-radius: 999px;
  background: rgba(169, 215, 245, 0.08);
  color: rgba(248, 251, 253, 0.82);
  padding: 6px 10px;
  font-family: var(--mono);
  font-size: 0.74rem;
}

.lab-meter {
  position: relative;
  height: 5px;
  background: rgba(169, 215, 245, 0.1);
}

.lab-meter span {
  display: block;
  width: 42%;
  height: 100%;
  background: #8dc1e8;
  animation: meter-slide 2.8s ease-in-out infinite;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  padding: 12px 16px;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button-icon {
  font-family: var(--mono);
  font-size: 0.9rem;
}

.button.primary {
  background: #8dc1e8;
  color: #101923;
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #a9d7f5;
}

.button.secondary {
  border: 1px solid rgba(255, 250, 240, 0.34);
  color: var(--paper-strong);
  background: rgba(255, 250, 240, 0.08);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: rgba(255, 250, 240, 0.58);
  background: rgba(255, 250, 240, 0.14);
}

.status-strip {
  position: absolute;
  right: 36px;
  bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 760px;
}

.status-strip span {
  border: 1px solid rgba(255, 250, 240, 0.16);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.06);
  padding: 8px 12px;
  color: rgba(255, 250, 240, 0.86);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.section {
  padding: 98px 48px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.52fr) minmax(0, 1fr);
  gap: 36px;
  width: min(1180px, 100%);
  margin: 0 auto 42px;
}

.section-heading.compact {
  margin-bottom: 28px;
}

.section-heading h2,
.contact-content h2 {
  margin: 0;
  font-size: 2.6rem;
  line-height: 1.08;
}

.about-section {
  background: var(--paper);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1fr);
  gap: 28px;
  width: min(1180px, 100%);
  margin: 0 auto;
  align-items: stretch;
}

.terminal-panel {
  overflow: hidden;
  border: 1px solid rgba(17, 25, 35, 0.18);
  border-radius: 8px;
  background: #111923;
  box-shadow: var(--shadow);
}

.terminal-top {
  display: flex;
  gap: 7px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #5f8eb5;
}

.terminal-top span:nth-child(2) {
  background: #8dc1e8;
}

.terminal-top span:nth-child(3) {
  background: #4f91a3;
}

pre {
  margin: 0;
  white-space: pre-wrap;
}

code {
  display: block;
  padding: 26px;
  color: #d8f0ec;
  font-family: var(--mono);
  font-size: 0.98rem;
  line-height: 1.7;
}

.code-muted {
  color: #8dc1e8;
}

.about-copy {
  display: grid;
  align-content: center;
  gap: 18px;
  border-left: 3px solid var(--green);
  padding: 8px 0 8px 28px;
}

.award-callout {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(47, 111, 158, 0.2);
  border-radius: 8px;
  background: rgba(47, 111, 158, 0.08);
  padding: 18px;
}

.award-callout span {
  color: var(--amber-dark);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 800;
}

.award-callout strong {
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1.35;
}

.about-copy p,
.contact-content p,
.project-card p,
.timeline-item p,
.skill-group p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.03rem;
}

.experience-section {
  background: var(--mist);
}

.timeline {
  width: min(1180px, 100%);
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
  gap: 34px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-item h3,
.project-card h3,
.skill-group h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1.2;
}

.item-date,
.item-source {
  margin: 0;
}

.item-date {
  color: var(--amber-dark);
  font-family: var(--mono);
  font-size: 0.88rem;
  font-weight: 700;
}

.item-source {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.skills-section {
  background: var(--paper-strong);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.skill-group {
  min-height: 166px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
  padding: 24px;
}

.skill-group h3 {
  margin-bottom: 12px;
}

.projects-section {
  background: #101720;
  color: var(--paper-strong);
}

.projects-section .section-heading h2,
.projects-section .project-card h3 {
  color: var(--paper-strong);
}

.projects-section .section-heading {
  margin-bottom: 34px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.project-card {
  display: flex;
  min-height: 318px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(169, 215, 245, 0.12);
  border-radius: 8px;
  background: #182435;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(6, 13, 21, 0.2);
}

.project-card.featured {
  grid-column: span 2;
  background:
    linear-gradient(135deg, rgba(127, 178, 217, 0.2), rgba(79, 145, 163, 0.12)),
    #172333;
}

.project-card.placeholder {
  border-style: dashed;
  background: rgba(255, 250, 240, 0.06);
}

.project-card p {
  margin: 20px 0;
  color: rgba(255, 250, 240, 0.74);
}

.project-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-meta span {
  color: #a9d7f5;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
}

.tag-row span {
  border: 1px solid rgba(255, 250, 240, 0.14);
  border-radius: 999px;
  padding: 6px 10px;
  color: rgba(255, 250, 240, 0.82);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.contact-section {
  background: var(--paper);
}

.contact-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.45fr);
  gap: 36px;
  width: min(1180px, 100%);
  margin: 0 auto;
  align-items: center;
}

.contact-content p {
  max-width: 720px;
  margin-top: 18px;
}

.contact-panel {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  padding: 22px;
  box-shadow: var(--shadow);
}

.contact-link {
  display: flex;
  min-height: 56px;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.contact-link span,
.social-link {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 6px;
  background: var(--mist);
  color: var(--green);
  font-family: var(--mono);
  font-weight: 800;
}

.contact-link:hover,
.contact-link:focus-visible,
.social-link:hover,
.social-link:focus-visible {
  border-color: rgba(79, 145, 163, 0.46);
  outline: none;
}

.social-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.social-link {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  background: var(--night);
  color: var(--paper-strong);
}

.social-link svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.project-card,
.skill-group,
.contact-link,
.social-link {
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.project-card:hover,
.skill-group:hover,
.contact-link:hover,
.social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 50px rgba(17, 38, 60, 0.16);
}

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

  50% {
    transform: translateY(-10px);
  }
}

@keyframes typing-mask {
  0%,
  12% {
    max-width: 0;
  }

  48%,
  78% {
    max-width: 24ch;
  }

  100% {
    max-width: 0;
  }
}

@keyframes caret-blink {
  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}

@keyframes meter-slide {
  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(138%);
  }
}

@keyframes code-bounce {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  45% {
    transform: translateY(-5px) rotate(-5deg);
  }
}

@keyframes dot-blink {
  0%,
  100% {
    opacity: 0.38;
    transform: scale(0.85);
  }

  45% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fun-code,
  .fun-dot,
  .hero-lab,
  .lab-type,
  .lab-type::after,
  .lab-meter span {
    animation: none;
  }
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 48px;
  background: var(--night);
  color: rgba(255, 250, 240, 0.78);
  font-family: var(--mono);
  font-size: 0.88rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .site-header {
    padding: 14px 24px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 22px;
    align-content: center;
  }

  .hero-content {
    width: min(760px, calc(100% - 48px));
    margin: 118px 0 0;
    padding: 0 0 0 24px;
  }

  .hero-lab {
    display: none;
  }

  .hero h1 {
    font-size: 3.55rem;
  }

  .status-strip {
    left: 24px;
    right: 24px;
    justify-content: flex-start;
  }

  .section {
    padding: 76px 24px;
  }

  .section-heading,
  .about-grid,
  .timeline-item,
  .contact-content {
    grid-template-columns: 1fr;
  }

  .skills-grid,
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card.featured {
    grid-column: span 2;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: 66px 12px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid rgba(255, 250, 240, 0.14);
    border-radius: 8px;
    background: rgba(13, 20, 28, 0.96);
    padding: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  }

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

  .site-nav a {
    padding: 14px;
  }

  .hero {
    min-height: 94vh;
    align-content: start;
    gap: 18px;
  }

  .hero-content {
    width: calc(100% - 36px);
    margin: 0;
    padding: 112px 0 0 18px;
  }

  .hero h1 {
    font-size: 2.65rem;
    line-height: 1.03;
  }

  .hero-copy {
    font-size: 1.02rem;
  }

  .typing-game {
    margin-top: 20px;
  }

  .typing-top,
  .typing-stats,
  .typing-footer {
    align-items: flex-start;
  }

  .typing-stats {
    gap: 8px;
  }

  .typing-prompt {
    min-height: 132px;
    font-size: 0.94rem;
    line-height: 1.7;
  }

  .typing-footer {
    flex-direction: column;
  }

  .typing-meter {
    width: 100%;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-fun {
    display: inline-flex;
  }

  .button {
    justify-content: center;
  }

  .status-strip {
    bottom: 18px;
    left: 18px;
    right: 18px;
  }

  .section {
    padding: 64px 18px;
  }

  .section-heading h2,
  .contact-content h2 {
    font-size: 2rem;
  }

  .about-copy {
    border-left: 0;
    border-top: 3px solid var(--green);
    padding: 24px 0 0;
  }

  .skills-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card.featured {
    grid-column: span 1;
  }

  .project-card {
    min-height: 292px;
  }

  .contact-panel {
    padding: 16px;
  }

  .contact-link strong {
    overflow-wrap: anywhere;
  }

  .site-footer {
    padding: 24px 18px;
  }
}

@media (max-width: 420px) {
  .brand-text {
    display: none;
  }

  .hero h1 {
    font-size: 2.3rem;
  }

  .status-strip span {
    font-size: 0.74rem;
  }

  code {
    padding: 20px;
    font-size: 0.88rem;
  }
}
