:root {
  --bg: #07111f;
  --bg-soft: rgba(16, 31, 54, 0.72);
  --panel: rgba(8, 19, 35, 0.74);
  --panel-strong: rgba(10, 25, 46, 0.96);
  --text: #eff5ff;
  --muted: #9fb5cc;
  --line: rgba(146, 183, 255, 0.16);
  --accent: #68f0c1;
  --accent-strong: #24c4a7;
  --accent-warm: #ffb86a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  --max-width: 1180px;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(37, 106, 185, 0.34), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(104, 240, 193, 0.18), transparent 24%),
    radial-gradient(circle at bottom right, rgba(255, 184, 106, 0.16), transparent 22%),
    linear-gradient(145deg, #030814 0%, #07111f 42%, #09182e 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  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: 56px 56px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 85%);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.015));
  pointer-events: none;
}

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

p {
  margin: 0;
}

.page-shell {
  position: relative;
  width: min(calc(100% - 32px), var(--max-width));
  margin: 24px auto 40px;
  z-index: 1;
}

.page-shell::before {
  content: "";
  position: absolute;
  inset: 140px 8% auto;
  height: 420px;
  background: radial-gradient(circle, rgba(39, 103, 205, 0.16), transparent 68%);
  filter: blur(20px);
  pointer-events: none;
  z-index: -1;
}

.ambient {
  position: fixed;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.32;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: drift 18s ease-in-out infinite;
}

.ambient-one {
  top: 8%;
  left: -8%;
  width: 280px;
  height: 280px;
  background: rgba(58, 128, 255, 0.28);
}

.ambient-two {
  top: 34%;
  right: -4%;
  width: 260px;
  height: 260px;
  background: rgba(104, 240, 193, 0.18);
  animation-duration: 22s;
}

.ambient-three {
  bottom: 12%;
  left: 22%;
  width: 220px;
  height: 220px;
  background: rgba(255, 184, 106, 0.16);
  animation-duration: 24s;
}

.topbar {
  position: sticky;
  top: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(4, 12, 23, 0.68);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.topbar-center {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.social-link:hover {
  transform: translateY(-1px);
  border-color: rgba(104, 240, 193, 0.32);
  background: linear-gradient(135deg, rgba(104, 240, 193, 0.18), rgba(255, 255, 255, 0.03));
}

.social-icon {
  width: 18px;
  height: 18px;
  display: block;
  opacity: 0.9;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 10px 6px 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.brand-mark {
  display: grid;
  place-items: center;
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, rgba(104, 240, 193, 0.28) 0%, rgba(255, 255, 255, 0.08) 100%);
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.22),
    0 0 0 3px rgba(104, 240, 193, 0.08);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brand-name {
  white-space: nowrap;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-role {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.nav a::after {
  content: "";
  display: none;
}

.nav a:hover,
.nav a.is-active {
  color: var(--text);
  border-color: rgba(104, 240, 193, 0.24);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

.section {
  padding: 28px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 28px;
  align-items: stretch;
  min-height: calc(100vh - 160px);
}

.hero-copy,
.hero-panel,
.contact-panel,
.stack-card,
.project-card,
.credential,
.timeline-item,
.focus-list article {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(17, 33, 58, 0.88), rgba(8, 18, 32, 0.78));
  box-shadow: var(--shadow);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 56px);
  position: relative;
  overflow: hidden;
}

.hero-copy::after,
.hero-panel::after,
.timeline-item::after,
.project-card::after,
.stack-card::after,
.credential::after,
.contact-panel::after,
.focus-list article::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0), rgba(104, 240, 193, 0.08));
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.hero-copy::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  top: -80px;
  right: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 184, 106, 0.18), transparent 70%);
  pointer-events: none;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.contact-panel h2 {
  margin: 0;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero h1 {
  max-width: 10ch;
  font-size: clamp(3.5rem, 8vw, 7rem);
}

.hero h1 span {
  display: block;
  color: var(--accent-warm);
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
}

.hero-text,
.about-copy p,
.timeline-content p,
.contact-panel p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}

.hero-text {
  max-width: 58ch;
  margin-top: 24px;
}

.ops-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.ops-strip span {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

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

.button-primary {
  color: #02231d;
  background: linear-gradient(135deg, var(--accent) 0%, #d5fff2 100%);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.hero-panel {
  display: grid;
  gap: 18px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(104, 240, 193, 0.2), transparent 25%),
    linear-gradient(180deg, rgba(17, 35, 60, 0.88), rgba(7, 16, 30, 0.8));
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: auto -60px -80px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(104, 240, 193, 0.18), transparent 68%);
  pointer-events: none;
}

.signal-card {
  position: relative;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg);
  background: var(--panel);
  overflow: hidden;
}

.terminal-bubble {
  margin-top: 28px;
  padding: 14px 16px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(8, 15, 28, 0.68), rgba(12, 22, 38, 0.44));
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.terminal-topbar {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.terminal-topbar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.terminal-topbar span:nth-child(1) {
  background: rgba(255, 126, 126, 0.7);
}

.terminal-topbar span:nth-child(2) {
  background: rgba(255, 194, 102, 0.72);
}

.terminal-topbar span:nth-child(3) {
  background: rgba(104, 240, 193, 0.78);
}

.terminal-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-height: 28px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
}

.terminal-prompt {
  color: var(--accent);
  white-space: nowrap;
}

.terminal-command {
  position: relative;
  color: rgba(239, 245, 255, 0.92);
}

.terminal-command::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 1.05em;
  margin-left: 4px;
  vertical-align: -0.18em;
  background: rgba(104, 240, 193, 0.78);
  animation: blink-caret 1s steps(1) infinite;
}

.signal-label,
.signal-meta,
.timeline-company,
.credential-date,
.timeline-meta span {
  color: var(--muted);
}

.signal-value {
  margin: 10px 0 6px;
  font-size: 1.5rem;
  font-weight: 700;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.hero-grid article {
  position: relative;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.hero-grid article::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(104, 240, 193, 0.4), transparent);
}

.hero-grid span {
  display: block;
  margin-bottom: 10px;
  color: var(--accent-warm);
  font-size: 1.8rem;
  font-weight: 700;
}

.hero-grid p,
.focus-list p,
.stack-card li,
.credential p,
.credential span,
.timeline-meta p {
  color: var(--muted);
  line-height: 1.6;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
  position: relative;
  padding-top: 12px;
}

.section-heading::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 88px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), rgba(104, 240, 193, 0));
}

.section-heading h2,
.contact-panel h2 {
  max-width: 14ch;
  font-size: clamp(2.1rem, 5vw, 4rem);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 24px;
}

.about-copy {
  display: grid;
  gap: 20px;
  padding: 12px 0;
}

.focus-list {
  display: grid;
  gap: 16px;
}

.focus-list article {
  position: relative;
  padding: 20px;
  border-radius: var(--radius-lg);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.focus-list h3,
.timeline-content h3,
.stack-card h3,
.credential h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
  position: relative;
  border-radius: var(--radius-xl);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.timeline-meta p {
  margin-bottom: 6px;
  color: var(--accent);
  font-weight: 700;
}

.timeline-content {
  display: grid;
  gap: 14px;
}

.stack-grid,
.credentials-grid,
.projects-grid {
  display: grid;
  gap: 18px;
}

.stack-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.stack-feature {
  display: grid;
  gap: 22px;
  padding: clamp(24px, 4vw, 36px);
}

.stack-feature-copy {
  display: grid;
  gap: 12px;
}

.stack-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.stack-feature h3 {
  max-width: 14ch;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.05;
}

.stack-feature p,
.stack-card p {
  color: var(--muted);
  line-height: 1.7;
}

.tech-stack-image,
.tech-mini-image {
  display: block;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.tech-stack-image {
  padding: 16px 18px;
}

.tech-mini-image {
  padding: 10px 12px;
}

.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stack-tags span {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stack-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.stack-column > .stack-card {
  min-width: 0;
}

.stack-card-top {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

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

.project-card {
  display: grid;
  gap: 16px;
  padding: 24px;
  position: relative;
  border-radius: var(--radius-xl);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.project-header span {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-header a {
  color: var(--muted);
  font-size: 0.9rem;
}

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

.project-card p {
  color: var(--muted);
  line-height: 1.7;
}

.project-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.project-card li + li {
  margin-top: 8px;
}

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

.stack-card,
.credential {
  padding: 24px;
  position: relative;
  border-radius: var(--radius-xl);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.stack-card ul {
  margin: 0;
  padding-left: 18px;
}

.stack-card li + li {
  margin-top: 8px;
}

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

.credential {
  display: grid;
  gap: 10px;
  min-height: 220px;
}

.credential span {
  align-self: end;
  color: var(--accent-warm);
  font-weight: 700;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 24px;
  padding: clamp(24px, 5vw, 42px);
  position: relative;
  overflow: hidden;
}

.contact-panel::before {
  content: "";
  position: absolute;
  inset: auto auto -120px -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(58, 128, 255, 0.14), transparent 70%);
  pointer-events: none;
}


.site-footer {
  margin-top: 8px;
  padding: 0 0 28px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
  animation: footer-float 12s ease-in-out infinite;
}

.footer-links a,
.footer-links span {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 14px 16px 14px 28px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--muted);
  line-height: 1.5;
}

.footer-links a {
  color: var(--text);
  font-weight: 700;
}

.footer-links a {
  gap: 12px;
}

.footer-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  opacity: 0.82;
  filter: drop-shadow(0 0 10px rgba(104, 240, 193, 0.1));
}

.footer-links a:hover {
  color: var(--accent);
  border-color: rgba(104, 240, 193, 0.18);
  background: rgba(255, 255, 255, 0.05);
}

.footer-links span {
  color: var(--muted);
}

.contact-copy {
  display: grid;
  gap: 22px;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  animation: float-soft 10s ease-in-out infinite;
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 12, 23, 0.58);
  color: var(--text);
  font: inherit;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(159, 181, 204, 0.72);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(104, 240, 193, 0.34);
  background: rgba(10, 21, 39, 0.82);
  box-shadow: 0 0 0 4px rgba(104, 240, 193, 0.08);
  transform: translateY(-1px);
}

.contact-message {
  min-height: 0;
}

.contact-form textarea {
  resize: vertical;
  min-height: 160px;
}

.contact-submit {
  justify-self: start;
  border: none;
  cursor: pointer;
}

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

.contact-form:hover {
  border-color: rgba(104, 240, 193, 0.18);
}

.contact-links a {
  font-size: 1.1rem;
  font-weight: 700;
}

.timeline-item:hover,
.project-card:hover,
.stack-card:hover,
.credential:hover,
.focus-list article:hover {
  transform: translateY(-4px);
  border-color: rgba(104, 240, 193, 0.24);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.36);
}

.contact-links span {
  color: var(--muted);
}

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

.reveal-delay-1 {
  transition-delay: 100ms;
}

.reveal-delay-2 {
  transition-delay: 180ms;
}

.reveal-delay-3 {
  transition-delay: 260ms;
}

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

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(24px, -18px, 0) scale(1.08);
  }
}

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

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

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

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

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

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

@media (max-width: 1080px) {
  .hero,
  .about-layout,
  .contact-panel,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .stack-layout {
    grid-template-columns: 1fr;
  }

  .stack-column {
    grid-template-columns: 1fr;
  }

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

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

  .credentials-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .timeline-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--max-width));
    margin-top: 12px;
  }

  .topbar {
    position: static;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 28px;
  }

  .topbar-center {
    width: 100%;
    justify-content: space-between;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    gap: 14px;
  }

  .hero-copy,
  .hero-panel,
  .stack-card,
  .credential,
  .timeline-item,
  .contact-panel,
  .focus-list article {
    border-radius: 24px;
  }

  .hero h1 {
    font-size: clamp(3rem, 20vw, 4.6rem);
  }

  .hero-copy,
  .hero-panel,
  .timeline-item,
  .project-card,
  .stack-card,
  .credential,
  .contact-panel {
    padding: 20px;
  }

  .project-header,
  .timeline-meta {
    align-items: flex-start;
  }

  .hero-grid,
  .stack-grid,
  .stack-layout {
    grid-template-columns: 1fr;
  }

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

  .footer-links {
    grid-template-columns: 1fr;
  }

  .stack-column {
    grid-template-columns: 1fr;
  }

  .contact-submit {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .ops-strip {
    gap: 8px;
  }

  .ops-strip span {
    width: 100%;
    text-align: center;
  }

  .button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .page-shell {
    width: min(calc(100% - 14px), var(--max-width));
    margin-top: 8px;
    margin-bottom: 28px;
  }

  .topbar {
    gap: 12px;
    padding: 12px 14px;
    border-radius: 22px;
  }

  .brand {
    gap: 10px;
    padding-right: 8px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .brand-name {
    font-size: 0.88rem;
  }

  .brand-role {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, max-content));
    gap: 10px 16px;
  }

  .nav a {
    font-size: 0.88rem;
  }

  .section {
    padding: 18px 0;
  }

  .hero {
    gap: 16px;
  }

  .hero-copy,
  .hero-panel,
  .timeline-item,
  .project-card,
  .stack-card,
  .credential,
  .contact-panel,
  .focus-list article {
    padding: 16px;
    border-radius: 20px;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(2.7rem, 17vw, 3.8rem);
    line-height: 0.94;
  }

  .hero-text,
  .about-copy p,
  .timeline-content p,
  .contact-panel p,
  .project-card p,
  .hero-grid p,
  .stack-card li {
    font-size: 0.95rem;
  }

  .eyebrow,
  .project-header span {
    font-size: 0.74rem;
    letter-spacing: 0.12em;
  }

  .section-heading h2,
  .contact-panel h2 {
    max-width: none;
    font-size: clamp(1.9rem, 10vw, 2.6rem);
  }

  .ops-strip {
    margin-top: 18px;
  }

  .ops-strip span {
    padding: 9px 12px;
    font-size: 0.74rem;
  }

  .project-header,
  .timeline-meta {
    display: grid;
    gap: 6px;
  }

  .contact-links a {
    font-size: 1rem;
    overflow-wrap: anywhere;
  }

  .hero-grid span,
  .signal-value {
    font-size: 1.55rem;
  }

  .terminal-bubble {
    padding: 12px 14px 14px;
  }

  .terminal-line {
    font-size: 0.86rem;
  }
}

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

  .reveal,
  .reveal-delay-1,
  .reveal-delay-2,
  .reveal-delay-3,
  .button,
  .nav a,
  .ambient,
  .project-card,
  .timeline-item,
  .stack-card,
  .credential,
  .focus-list article {
    transition: none;
    animation: none;
  }

  .terminal-command::after {
    animation: none;
  }

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