:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-elevated: rgba(4, 12, 24, 0.78);
  --bg-soft: rgba(10, 24, 39, 0.72);
  --surface: rgba(93, 217, 255, 0.08);
  --surface-strong: rgba(255, 255, 255, 0.1);
  --text: #e8fbff;
  --text-soft: #aad8e5;
  --text-muted: #6ca1b1;
  --border: rgba(93, 217, 255, 0.22);
  --accent: #ff8a3d;
  --accent-strong: #ff4f8b;
  --accent-soft: rgba(255, 79, 139, 0.12);
  --secondary: #61f4de;
  --shadow: 0 24px 80px rgba(1, 8, 18, 0.55);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f4ead7;
  --bg-elevated: rgba(255, 248, 236, 0.84);
  --bg-soft: rgba(255, 255, 255, 0.75);
  --surface: rgba(195, 111, 53, 0.08);
  --surface-strong: rgba(40, 30, 24, 0.08);
  --text: #2f1f18;
  --text-soft: #6a4e43;
  --text-muted: #8a6b5d;
  --border: rgba(195, 111, 53, 0.22);
  --accent: #d94841;
  --accent-strong: #2451d1;
  --accent-soft: rgba(36, 81, 209, 0.1);
  --secondary: #0f9f87;
  --shadow: 0 24px 80px rgba(146, 103, 71, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(97, 244, 222, 0.12), transparent 32%),
    radial-gradient(circle at 85% 12%, rgba(255, 79, 139, 0.14), transparent 28%),
    linear-gradient(180deg, var(--bg), color-mix(in srgb, var(--bg) 84%, #000 16%));
  color: var(--text);
  font-family: "Space Grotesk", system-ui, sans-serif;
  transition:
    background-color 220ms ease,
    color 220ms ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.06), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.02));
  z-index: 0;
}

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

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  position: relative;
  overflow: hidden;
}

.scanlines,
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.scanlines {
  opacity: 0.12;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.08) 0,
    rgba(255, 255, 255, 0.08) 1px,
    transparent 1px,
    transparent 4px
  );
  mix-blend-mode: soft-light;
}

.noise {
  opacity: 0.08;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.35) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.2) 0 1px, transparent 1px),
    radial-gradient(circle at 40% 70%, rgba(255, 255, 255, 0.22) 0 1px, transparent 1px);
  background-size: 18px 18px, 22px 22px, 26px 26px;
}

.ambient {
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
}

.ambient-one,
.ambient-two {
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.ambient-one {
  top: -8rem;
  left: -8rem;
  background: rgba(97, 244, 222, 0.22);
}

.ambient-two {
  right: -10rem;
  top: 12rem;
  background: rgba(255, 79, 139, 0.18);
}

.ambient-grid {
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 92%);
  opacity: 0.28;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  width: min(1180px, calc(100% - 2rem));
  margin: 1.25rem auto 0;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--bg-elevated);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brand-mark {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: white;
  box-shadow: 0 0 18px rgba(255, 79, 139, 0.28);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  color: var(--text-soft);
}

.site-nav a:hover,
.contact-links a:hover {
  color: var(--accent);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.toggle-track {
  width: 3.3rem;
  height: 1.9rem;
  display: flex;
  align-items: center;
  padding: 0.2rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.toggle-thumb {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  transform: translateX(1.35rem);
  transition: transform 180ms ease;
}

html[data-theme="light"] .toggle-thumb {
  transform: translateX(0);
}

.toggle-label {
  min-width: 3rem;
  font-size: 0.85rem;
}

main {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0 5rem;
}

.section {
  margin-top: 5rem;
  content-visibility: auto;
  contain-intrinsic-size: 1px 900px;
}

#hero.section {
  content-visibility: visible;
}

.app-launchbar {
  margin-top: 1.8rem;
}

.launchbar-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.launchbar-copy {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.launchbar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.launchbar-item {
  display: grid;
  gap: 0.28rem;
  padding: 0.8rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  background: var(--bg-elevated);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.launchbar-visual {
  position: relative;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  margin-bottom: 0.15rem;
}

.planet-core {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  box-shadow:
    0 0 18px rgba(97, 244, 222, 0.18),
    inset -3px -3px 8px rgba(0, 0, 0, 0.22);
}

.orbit-news .planet-core {
  background: linear-gradient(135deg, #ff8a3d, #ff4f8b);
}

.orbit-platform .planet-core {
  background: linear-gradient(135deg, #61f4de, #2451d1);
}

.orbit-student .planet-core {
  background: linear-gradient(135deg, #61f4de, #0f9f87);
}

.orbit-admin .planet-core {
  background: linear-gradient(135deg, #d94841, #2451d1);
}

.launchbar-item:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--border) 55%, var(--secondary) 45%);
  box-shadow: 0 0 24px rgba(97, 244, 222, 0.12);
}

.launchbar-title {
  color: var(--text);
  font-weight: 700;
  font-size: 0.72rem;
  line-height: 1.15;
}

.launchbar-url {
  color: var(--text-soft);
  font-family: "VT323", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  word-break: break-word;
  line-height: 1;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  min-height: calc(100vh - 12rem);
}

.eyebrow {
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.95rem;
  color: var(--accent);
  font-family: "VT323", monospace;
}

.hero h1,
.section-heading h2,
.contact-card h2,
.hero-panel h2 {
  margin: 0;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-shadow: 0 0 22px rgba(97, 244, 222, 0.08);
}

.hero h1 {
  font-size: clamp(3.7rem, 8vw, 7.5rem);
  max-width: 11ch;
}

.hero-text,
.about-copy p,
.contact-card p,
.work-card p,
.timeline-item p,
.strip-card p,
.hero-panel p {
  color: var(--text-soft);
  line-height: 1.7;
}

.hero-text {
  max-width: 62ch;
  margin-top: 1.5rem;
  font-size: 1.08rem;
}

.hero-identity {
  display: grid;
  gap: 0;
  margin: 0 0 0.6rem;
  line-height: 0.84;
}

.identity-name {
  display: block;
  color: var(--text);
  font-size: clamp(3.9rem, 10vw, 7.8rem);
  letter-spacing: -0.08em;
  font-weight: 700;
  text-transform: uppercase;
  font-family: "Audiowide", "Space Grotesk", system-ui, sans-serif;
  letter-spacing: 0.02em;
  text-shadow:
    0 0 18px rgba(97, 244, 222, 0.12),
    0 0 48px rgba(255, 79, 139, 0.08);
}

.identity-name-secondary {
  color: var(--secondary);
  margin-left: clamp(1rem, 4vw, 3.5rem);
}

.identity-role,
.identity-exp {
  color: var(--secondary);
}

.hero-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 0 0 1.2rem;
  color: var(--text-soft);
  font-family: "VT323", monospace;
  font-size: clamp(1.2rem, 2.8vw, 1.8rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.identity-sep {
  color: var(--accent);
}

.hero-fade-block {
  --hero-fade-opacity: 1;
  --hero-fade-shift: 0px;
  opacity: var(--hero-fade-opacity);
}

.hero-copy.hero-fade-block {
  transform:
    translate3d(0, calc(var(--scroll-translate) + var(--hero-fade-shift)), 0)
    rotate(var(--scroll-rotate))
    scale(var(--scroll-scale));
}

.hero-card.hero-fade-block {
  transform:
    translate3d(0, calc(var(--scroll-translate) + (var(--hero-fade-shift) * -0.6)), 0)
    rotate(var(--scroll-rotate))
    scale(var(--scroll-scale));
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 10.5rem;
  padding: 0.95rem 1.3rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.button:hover,
.theme-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(97, 244, 222, 0.12);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-color: transparent;
  color: white;
}

.button-secondary {
  background: var(--bg-soft);
}

.hero-meta {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.hero-meta li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.meta-label {
  width: 7.5rem;
  color: var(--text-muted);
}

.meta-value {
  color: var(--text);
}

.hero-card {
  display: flex;
  justify-content: flex-end;
}

.hero-panel,
.strip-card,
.work-card,
.about-notes article,
.contact-card,
.timeline-item {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  position: relative;
}

.hero-panel::after,
.strip-card::after,
.work-card::after,
.about-notes article::after,
.contact-card::after,
.timeline-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 28%, transparent 72%, rgba(97, 244, 222, 0.05));
}

.hero-panel {
  width: min(100%, 32rem);
  border-radius: 2rem;
  overflow: hidden;
}

.panel-top {
  display: flex;
  gap: 0.45rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--border);
}

.panel-top span {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--surface-strong);
}

.panel-top span:first-child {
  background: #ef4444;
}

.panel-top span:nth-child(2) {
  background: var(--accent);
}

.panel-top span:nth-child(3) {
  background: var(--secondary);
}

.panel-body {
  padding: 1.4rem;
}

.panel-kicker {
  margin: 0 0 0.5rem;
  color: var(--text-muted);
  font-family: "VT323", monospace;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
}

.hero-panel h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 11ch;
}

.stat-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.stat-grid article {
  padding: 1rem;
  border-radius: 1.2rem;
  background: var(--surface);
}

.stat-grid strong {
  display: block;
  font-size: 1.6rem;
  margin-bottom: 0.2rem;
}

.stat-grid span {
  color: var(--text-soft);
}

.intro-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.strip-card,
.work-card,
.contact-card,
.timeline-item,
.about-notes article {
  border-radius: 1.5rem;
  padding: 1.35rem;
}

.card-index,
.work-type,
.timeline-year {
  margin: 0 0 0.9rem;
  color: var(--accent);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: "VT323", monospace;
}

.section-heading {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-heading h2,
.contact-card h2 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  max-width: 12ch;
}

.split-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
}

.about-copy {
  font-size: 1.05rem;
}

.about-notes {
  display: grid;
  gap: 1rem;
}

.about-notes article span {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}

.work-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.95fr 0.95fr;
  gap: 1rem;
}

.deployment-knowledge {
  margin-top: 1rem;
}

.deployment-knowledge .work-card {
  width: 100%;
}

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

.work-card.featured {
  background:
    linear-gradient(180deg, var(--accent-soft), transparent 60%),
    var(--bg-elevated);
}

.work-card h3,
.strip-card h3,
.timeline-item h3,
.project-item h3 {
  margin: 0 0 0.9rem;
  font-size: 1.5rem;
}

.project-item {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  position: relative;
  border-radius: 1.5rem;
  padding: 1.35rem;
}

.project-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 28%, transparent 72%, rgba(97, 244, 222, 0.05));
}

.project-meta {
  margin: -0.35rem 0 0.8rem;
  color: var(--text-muted);
  font-family: "VT323", monospace;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.work-card ul {
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.work-card li {
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7.4rem;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--text);
  font-family: "VT323", monospace;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.project-link:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--border) 55%, var(--secondary) 45%);
  box-shadow: 0 0 24px rgba(97, 244, 222, 0.12);
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1rem;
  align-items: start;
}

#experience .timeline {
  gap: 1.25rem;
}

#experience .timeline-item {
  position: relative;
  grid-template-columns: 11rem 1fr;
  gap: 1.4rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

#experience .timeline-item::after {
  display: none;
}

#experience .timeline-year {
  margin: 0;
  padding-top: 0.25rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  letter-spacing: 0.08em;
}

#experience .timeline-item > div {
  position: relative;
  padding: 0 0 1.35rem 1.5rem;
  border-left: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}

#experience .timeline-item > div::before {
  content: "";
  position: absolute;
  left: -0.45rem;
  top: 0.28rem;
  width: 0.78rem;
  height: 0.78rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--bg) 88%, transparent);
}

#experience .timeline-item h3 {
  margin-bottom: 0.45rem;
  font-size: 1.24rem;
}

#experience .timeline-item p {
  margin: 0;
  max-width: 60ch;
}

.contact-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
}

.contact-links {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.contact-links a {
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border);
  font-size: 1.02rem;
}

.site-footer {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0 0 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-muted);
}

.card-expand-toggle {
  display: none;
}

.scroll-motion {
  --scroll-translate: 0px;
  --scroll-rotate: 0deg;
  --scroll-scale: 1;
  transform: translate3d(0, var(--scroll-translate), 0) rotate(var(--scroll-rotate)) scale(var(--scroll-scale));
  transform-style: preserve-3d;
  will-change: transform;
}

.reveal {
  opacity: 0;
  transform: translateY(48px);
  transition:
    opacity 700ms ease,
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.reveal[data-reveal="fade-down"] {
  transform: translateY(-28px);
}

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

.hero-panel,
.strip-card,
.work-card,
.timeline-item,
.about-notes article,
.contact-card {
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.hero-panel:hover,
.strip-card:hover,
.work-card:hover,
.project-item:hover,
.timeline-item:hover,
.about-notes article:hover,
.contact-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--border) 55%, var(--secondary) 45%);
}

#experience .timeline-item:hover {
  transform: none;
  border-color: transparent;
}

@media (max-width: 1080px) {
  .hero,
  .split-layout,
  .contact-card,
  .work-grid,
  .project-list {
    grid-template-columns: 1fr;
  }

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

  .hero {
    min-height: auto;
    padding-top: 3rem;
  }

  .intro-strip {
    grid-template-columns: 1fr;
  }

  .hero-card {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .app-launchbar {
    margin-top: 1.5rem;
  }

  .launchbar-head {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 0.9rem;
  }

  .launchbar-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(12rem, 13.5rem);
    grid-template-columns: none;
    gap: 0.65rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .launchbar-grid::-webkit-scrollbar {
    display: none;
  }

  .launchbar-item {
    scroll-snap-align: start;
    min-height: 100%;
    padding: 0.75rem 0.8rem;
  }

  .launchbar-visual {
    width: 2rem;
    height: 2rem;
  }

  .site-header {
    border-radius: 1.5rem;
    padding: 1rem;
    display: grid;
    grid-template-columns: 1fr;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 0.8rem 1rem;
  }

  .hero h1 {
    font-size: clamp(2.9rem, 14vw, 4.8rem);
  }

  .identity-name {
    font-size: clamp(3.1rem, 15vw, 5rem);
  }

  .hero-summary {
    font-size: 1.15rem;
  }

  .theme-toggle {
    justify-self: start;
  }

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

  #experience .timeline-item {
    position: relative;
    grid-template-columns: 1fr;
    gap: 0.4rem;
    padding: 0 0 0 1.1rem;
  }

  #experience .timeline {
    position: relative;
    gap: 1.35rem;
    padding-left: 0.1rem;
  }

  #experience .timeline::before {
    content: "";
    position: absolute;
    top: 0.35rem;
    bottom: 0.35rem;
    left: 0.25rem;
    width: 1px;
    background: color-mix(in srgb, var(--border) 80%, transparent);
  }

  #experience .timeline-item > div {
    padding: 0 0 0 1.35rem;
    border-left: 0;
  }

  #experience .timeline-item > div::before {
    left: -0.05rem;
    top: 0.32rem;
    width: 0.65rem;
    height: 0.65rem;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--bg) 92%, transparent);
  }

  #experience .timeline-year {
    padding-top: 0;
    font-size: 0.88rem;
  }

  #experience .timeline-item h3 {
    font-size: 1.08rem;
    margin-bottom: 0.35rem;
  }

  #experience .timeline-item p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .section-heading {
    margin-bottom: 1.2rem;
  }

  #work .work-grid,
  #personal-projects .work-grid,
  #project-catalog .project-list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 84vw;
    grid-template-columns: none;
    gap: 0.9rem;
    overflow-x: auto;
    overflow-y: visible;
    padding: 0 0 0.4rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  #work .work-grid::-webkit-scrollbar,
  #personal-projects .work-grid::-webkit-scrollbar,
  #project-catalog .project-list::-webkit-scrollbar {
    display: none;
  }

  #work .work-card,
  #personal-projects .work-card,
  #project-catalog .project-item {
    min-height: 0;
    scroll-snap-align: start;
    padding: 1rem;
    transform: none !important;
  }

  #work .work-card:hover,
  #personal-projects .work-card:hover,
  #project-catalog .project-item:hover {
    transform: none !important;
  }

  .work-card h3,
  .project-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
  }

  .work-card ul {
    display: none;
    margin-top: 0.85rem;
  }

  .project-links {
    margin-top: 0.85rem;
  }

  .project-link {
    width: 100%;
    min-width: 0;
    padding: 0.68rem 0.9rem;
    font-size: 0.95rem;
  }

  .work-card p:not(.work-type),
  .project-item p:not(.work-type):not(.project-meta) {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }

  .work-card.is-expanded ul {
    display: flex;
  }

  .work-card.is-expanded p:not(.work-type),
  .project-item.is-expanded p:not(.work-type):not(.project-meta) {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
  }

  .card-expand-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.9rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    font-family: "VT323", monospace;
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .card-expand-toggle:hover,
  .card-expand-toggle:active {
    transform: none;
    box-shadow: none;
  }

  .deployment-knowledge .work-card,
  .intro-strip .strip-card,
  .timeline-item,
  .contact-card,
  .about-notes article {
    transform: none !important;
  }

  .section {
    margin-top: 4rem;
  }

  main {
    padding-bottom: 4rem;
  }
}

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

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

  .scroll-motion {
    transform: none;
  }

  .hero-fade-block {
    opacity: 1;
  }

  .scanlines,
  .noise,
  .ambient {
    animation: none;
  }

}
