/*
 * Muhideen Mustapha — portfolio
 * Editorial tech, race-day energy, and enough restraint to keep it employable.
 */

:root {
  --paper: #f3f0e8;
  --paper-deep: #e9e4d8;
  --card: #fffdf6;
  --ink: #171713;
  --muted: #625f57;
  --line: #171713;
  --lime: #dfff3f;
  --red: #ff523d;
  --blue: #315efb;
  --yellow: #ffc83d;
  --white: #fffdf6;
  --shadow: 7px 7px 0 var(--ink);
  --shadow-small: 4px 4px 0 var(--ink);
  --border: 2px solid var(--line);
  --radius: 22px;
  --radius-small: 13px;
  --container: min(1180px, calc(100vw - 40px));
  --display: "Arial Black", "Arial Narrow", Arial, sans-serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

html[data-theme="midnight"] {
  --paper: #11110f;
  --paper-deep: #191916;
  --card: #20201c;
  --ink: #f5f1e7;
  --muted: #bcb7aa;
  --line: #f5f1e7;
  --white: #fffdf6;
  --shadow: 7px 7px 0 #dfff3f;
  --shadow-small: 4px 4px 0 #dfff3f;
  color-scheme: dark;
}

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  overflow-x: clip;
  background:
    linear-gradient(rgba(23, 23, 19, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 23, 19, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 34px 34px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  background: var(--red);
  color: #fff;
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--paper-deep);
}

::-webkit-scrollbar-thumb {
  border: 3px solid var(--paper-deep);
  border-radius: 999px;
  background: var(--ink);
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

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

.skip-link {
  position: fixed;
  z-index: 999;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-160%);
  border: var(--border);
  border-radius: 8px;
  background: var(--lime);
  color: #111;
  font-weight: 800;
  transition: transform 180ms ease;
}

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

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.scroll-progress {
  position: fixed;
  z-index: 200;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: transparent;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--red) 0 34%, var(--blue) 34% 67%, var(--lime) 67%);
  will-change: transform;
}

.cursor-orb {
  position: fixed;
  z-index: -1;
  top: 0;
  left: 0;
  width: 280px;
  height: 280px;
  transform: translate3d(-50%, -50%, 0);
  border-radius: 50%;
  background: rgba(223, 255, 63, 0.14);
  filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.cursor-orb.is-visible {
  opacity: 1;
}

/* Navigation */
.site-header {
  position: fixed;
  z-index: 100;
  top: 18px;
  width: 100%;
  pointer-events: none;
}

.nav-shell {
  min-height: 64px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 7px 9px 7px 12px;
  border: var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  pointer-events: auto;
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.site-header.is-scrolled .nav-shell {
  box-shadow: var(--shadow-small);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.brand-mark {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1px;
}

.brand-dot {
  align-self: flex-end;
  width: 9px;
  height: 9px;
  margin: 0 0 3px -1px;
  border-radius: 50%;
  background: var(--red);
}

.nav-links {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  position: relative;
  padding: 9px 12px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  transition: color 180ms ease, background 180ms ease;
}

.nav-links a span {
  margin-right: 3px;
  color: var(--red);
  font-size: 9px;
}

.nav-links a:hover,
.nav-links a.is-active {
  background: var(--ink);
  color: var(--paper);
}

.nav-links a.is-active span {
  color: var(--lime);
}

.icon-button {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--lime);
  color: #111;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.icon-button:hover {
  transform: rotate(9deg) scale(1.04);
  background: var(--yellow);
}

.theme-toggle .theme-sun,
html[data-theme="midnight"] .theme-toggle .theme-moon {
  display: none;
}

html[data-theme="midnight"] .theme-toggle .theme-sun {
  display: block;
}

.menu-toggle {
  display: none;
}

.menu-close-icon {
  display: none;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(370px, 0.72fr);
  align-items: center;
  gap: clamp(40px, 7vw, 100px);
  padding-top: 142px;
  padding-bottom: 96px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.status-pulse {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #19a55b;
}

.status-pulse::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid #19a55b;
  border-radius: 50%;
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

.hero-title,
.section-heading h2,
.contact-card h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.92;
}

.hero-title {
  max-width: 800px;
  font-size: clamp(56px, 7.6vw, 112px);
}

.scribble-wrap {
  position: relative;
  display: inline-block;
  color: var(--blue);
}

.scribble-wrap svg {
  position: absolute;
  right: 0;
  bottom: -15px;
  width: 96%;
  height: 22px;
  overflow: visible;
}

.scribble-wrap path {
  fill: none;
  stroke: var(--red);
  stroke-width: 8;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.word-swap {
  display: inline-block;
  min-height: 1em;
  transition: opacity 180ms ease, transform 180ms ease;
}

.word-swap.is-changing {
  transform: translateY(10px) rotate(1deg);
  opacity: 0;
}

.hero-intro {
  max-width: 680px;
  margin: 40px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.65;
}

.hero-intro strong {
  color: var(--ink);
}

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

.button {
  position: relative;
  display: inline-flex;
  min-height: 53px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border: var(--border);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-small);
}

.button-primary {
  background: var(--ink);
  color: var(--paper);
}

.button-primary:hover {
  background: var(--blue);
  color: #fff;
}

.button-ghost {
  background: var(--card);
}

.button .icon {
  width: 18px;
  height: 18px;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 34px;
}

.social-row a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  font-size: 12px;
  font-weight: 800;
  transition: color 180ms ease, transform 180ms ease;
}

.social-row a:hover {
  transform: translateY(-2px);
  color: var(--blue);
}

.social-row .icon {
  width: 16px;
  height: 16px;
}

.social-row a > span {
  color: var(--red);
}

.hero-visual {
  position: relative;
  z-index: 1;
  width: min(100%, 490px);
  justify-self: end;
}

.portrait-frame {
  position: relative;
  z-index: 2;
  padding: 12px;
  transform: rotate(2.2deg);
  border: var(--border);
  border-radius: 4px;
  background: var(--card);
  box-shadow: 12px 14px 0 var(--ink);
  transition: transform 100ms linear;
  transform-style: preserve-3d;
}

html[data-theme="midnight"] .portrait-frame {
  box-shadow: 12px 14px 0 var(--lime);
}

.portrait-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 1122 / 1402;
  object-fit: contain;
  object-position: center;
  border: 1.5px solid var(--ink);
  background: #07101d;
  filter: saturate(1.04) contrast(1.02);
}

.portrait-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 4px 0;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.portrait-caption span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.portrait-caption .icon {
  width: 13px;
  height: 13px;
}

.caption-side {
  color: var(--red);
}

.portrait-tape {
  position: absolute;
  z-index: 3;
  top: -19px;
  left: 50%;
  width: 116px;
  height: 38px;
  transform: translateX(-50%) rotate(-3deg);
  background: rgba(255, 200, 61, 0.82);
  clip-path: polygon(2% 10%, 100% 0, 96% 93%, 4% 100%);
  backdrop-filter: blur(2px);
}

.portrait-halo {
  position: absolute;
  border: var(--border);
  border-radius: 50%;
}

.halo-one {
  top: -42px;
  right: -48px;
  width: 180px;
  height: 180px;
  background: var(--lime);
  animation: slow-spin 14s linear infinite;
}

.halo-two {
  bottom: 28px;
  left: -70px;
  width: 120px;
  height: 120px;
  background: var(--blue);
}

@keyframes slow-spin {
  to { transform: rotate(360deg); }
}

.floating-note {
  position: absolute;
  z-index: 4;
  padding: 8px 12px;
  border: 2px solid #111;
  background: var(--lime);
  color: #111;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 900;
  box-shadow: 3px 3px 0 #111;
  animation: bob 4s ease-in-out infinite;
}

.note-code {
  top: -42px;
  left: -42px;
  transform: rotate(-7deg);
}

.note-coffee {
  right: -35px;
  bottom: 20%;
  transform: rotate(6deg);
  background: var(--red);
  color: #fff;
}

.tiny-disclaimer {
  position: absolute;
  right: -40px;
  bottom: 12%;
  margin: 0;
  transform: rotate(5deg);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
}

@keyframes bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

.scroll-cue {
  position: absolute;
  bottom: 30px;
  left: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.scroll-line {
  position: relative;
  width: 70px;
  height: 1px;
  overflow: hidden;
  background: color-mix(in srgb, var(--ink) 30%, transparent);
}

.scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: var(--ink);
  animation: scroll-line 1.8s ease-in-out infinite;
}

@keyframes scroll-line {
  to { transform: translateX(100%); }
}

/* Ticker */
.ticker {
  overflow: hidden;
  border-block: 2px solid #111;
  background: var(--lime);
  color: #111;
  transform: rotate(-1deg) scale(1.015);
}

.ticker-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 22px;
  padding: 13px 0;
  animation: ticker 32s linear infinite;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.ticker-track i {
  color: var(--red);
  font-style: normal;
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* Shared sections */
.section {
  position: relative;
  padding: clamp(90px, 11vw, 150px) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 390px);
  align-items: end;
  gap: 40px;
  margin-bottom: 64px;
}

.section-number,
.mini-label {
  display: block;
  margin-bottom: 13px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.section-heading h2 {
  font-size: clamp(48px, 6.2vw, 82px);
}

.section-heading > p {
  max-width: 380px;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 16px;
}

.accent-dot {
  color: var(--red);
}

.section-heading.light .section-number {
  color: var(--lime);
}

.section-heading.light > p {
  color: #bdb9b0;
}

/* Now */
.now-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 24px;
}

.now-card,
.stat-card,
.education-strip,
.project-card,
.skills-board,
.volunteer-card {
  border: var(--border);
  background: var(--card);
}

.now-card {
  position: relative;
  min-height: 620px;
  padding: clamp(27px, 4vw, 48px);
  padding-bottom: 190px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
}

.now-card::after {
  content: "{}";
  position: absolute;
  z-index: 0;
  top: -70px;
  right: -20px;
  color: color-mix(in srgb, var(--blue) 13%, transparent);
  font-family: var(--display);
  font-size: 240px;
  line-height: 1;
  transform: rotate(10deg);
}

.now-card > * {
  position: relative;
  z-index: 1;
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mini-label {
  margin: 0;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.live-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #19a55b;
}

.now-card h3 {
  max-width: 700px;
  margin: 54px 0 20px;
  font-family: var(--display);
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.now-card > p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.current-stack,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.current-stack {
  margin-top: 24px;
}

.current-stack span,
.tag-list span {
  padding: 6px 9px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 750;
}

.current-stack span:nth-child(odd) {
  background: var(--lime);
  color: #111;
}

.scope-meme {
  position: absolute;
  right: 28px;
  bottom: 28px;
  width: min(390px, calc(100% - 56px));
  padding: 18px;
  transform: rotate(-1.3deg);
  border: 2px solid #111;
  background: var(--yellow);
  color: #111;
  box-shadow: 4px 4px 0 #111;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
}

.scope-meme p {
  margin: 5px 0;
}

.meme-file,
.meme-status {
  display: block;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.meme-file {
  padding-bottom: 6px;
  border-bottom: 1px solid #111;
}

.meme-status {
  margin-top: 8px;
  color: #146439;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-card {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-radius: var(--radius-small);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.stat-card:hover {
  transform: translate(-3px, -3px) rotate(-1deg);
  box-shadow: var(--shadow-small);
}

.stat-card strong {
  font-family: var(--display);
  font-size: clamp(40px, 4.5vw, 64px);
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.stat-card > span {
  max-width: 130px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
}

.stat-card.accent-lime { background: var(--lime); color: #111; }
.stat-card.accent-red { background: var(--red); color: #fff; }
.stat-card.accent-blue { background: var(--blue); color: #fff; }
.stat-card.accent-yellow { background: var(--yellow); color: #111; }
.stat-card.accent-lime > span,
.stat-card.accent-yellow > span { color: #2b2b25; }
.stat-card.accent-red > span,
.stat-card.accent-blue > span { color: rgba(255, 255, 255, 0.78); }

.education-strip {
  display: grid;
  grid-template-columns: 0.55fr 1fr 1fr;
  gap: 0;
  margin-top: 38px;
  overflow: hidden;
  border-radius: var(--radius);
}

.education-strip > * {
  padding: 27px;
}

.education-strip > * + * {
  border-left: 1.5px solid var(--ink);
}

.education-intro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--blue);
  color: #fff;
  font-family: var(--display);
  font-size: 18px;
  text-transform: uppercase;
}

.education-intro .icon {
  width: 38px;
  height: 38px;
}

.education-strip article > span {
  color: var(--red);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 900;
}

.education-strip h3 {
  margin: 17px 0 6px;
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.1;
}

.education-strip p,
.education-strip small {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.education-strip small {
  margin-top: 9px;
  color: var(--blue);
  font-weight: 750;
}

/* Experience */
.experience-section {
  overflow: hidden;
  background: #171713;
  color: #f5f1e7;
}

.experience-section::before {
  content: "CAREER\A MODE";
  position: absolute;
  top: 90px;
  right: -35px;
  white-space: pre;
  color: rgba(255, 255, 255, 0.025);
  font-family: var(--display);
  font-size: 180px;
  line-height: 0.75;
  text-align: right;
  transform: rotate(90deg);
}

.timeline {
  position: relative;
  max-width: 1030px;
  margin-inline: auto;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 80px;
  width: 1px;
  background: rgba(255, 255, 255, 0.25);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 44px 44px 1fr;
  gap: 18px;
  padding-bottom: 30px;
}

.timeline-index {
  padding-top: 34px;
  color: #77746d;
  font-family: var(--mono);
  font-size: 10px;
  text-align: right;
}

.timeline-marker {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding-top: 35px;
}

.timeline-marker span {
  width: 14px;
  height: 14px;
  border: 3px solid #171713;
  border-radius: 50%;
  outline: 1px solid #f5f1e7;
  background: var(--lime);
}

.timeline-item.accent-red .timeline-marker span { background: var(--red); }
.timeline-item.accent-blue .timeline-marker span { background: var(--blue); }
.timeline-item.accent-yellow .timeline-marker span { background: var(--yellow); }

.timeline-card {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid #3d3c37;
  border-radius: var(--radius);
  background: #20201c;
  transition: transform 220ms ease, border-color 220ms ease;
}

.timeline-card:hover {
  transform: translateX(7px);
  border-color: #77746d;
}

.job-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #8c8981;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.job-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
}

.job-title-row h3 {
  margin: 0;
  color: #fffdf6;
  font-family: var(--display);
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.company {
  margin: 10px 0 0;
  color: var(--lime);
  font-size: 14px;
  font-weight: 800;
}

.company small {
  color: #96938c;
  font-weight: 500;
}

.job-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  color: #6a6861;
}

.job-summary {
  max-width: 760px;
  margin: 25px 0 0;
  color: #c9c5bb;
  font-size: 15px;
}

.timeline-card details {
  margin-top: 26px;
  border-top: 1px solid #3d3c37;
}

.timeline-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 0;
  color: #fffdf6;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.timeline-card summary::-webkit-details-marker {
  display: none;
}

.timeline-card summary i {
  position: relative;
  width: 16px;
  height: 16px;
}

.timeline-card summary i::before,
.timeline-card summary i::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 2px;
  width: 12px;
  height: 1px;
  background: var(--lime);
  transition: transform 180ms ease;
}

.timeline-card summary i::after {
  transform: rotate(90deg);
}

.timeline-card details[open] summary i::after {
  transform: rotate(0);
}

.timeline-card ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0 0 0 17px;
  color: #aaa79f;
  font-size: 12px;
  line-height: 1.65;
}

.timeline-card li::marker {
  color: var(--lime);
}

.timeline-card .tag-list {
  margin-top: 25px;
}

.timeline-card .tag-list span {
  border-color: #4c4a44;
  color: #aaa79f;
}

/* Projects */
.projects-section {
  background: var(--paper-deep);
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.filter-button {
  padding: 9px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

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

.filter-button.is-active {
  background: var(--ink);
  color: var(--paper);
}

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

.project-card {
  position: relative;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  padding: clamp(25px, 3vw, 38px);
  overflow: hidden;
  border-radius: var(--radius);
  transform-style: preserve-3d;
  transition: opacity 220ms ease, transform 100ms linear, box-shadow 220ms ease;
}

.project-card:hover {
  box-shadow: var(--shadow);
}

.project-card::after {
  content: "";
  position: absolute;
  right: -65px;
  bottom: -65px;
  width: 150px;
  height: 150px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--lime);
  opacity: 0.8;
  transition: transform 300ms ease;
}

.project-card:hover::after {
  transform: scale(1.18);
}

.project-card.accent-red::after { background: var(--red); }
.project-card.accent-blue::after { background: var(--blue); }
.project-card.accent-yellow::after { background: var(--yellow); }

.project-card.is-hidden {
  display: none;
}

.project-featured {
  grid-column: 1 / -1;
  min-height: 480px;
  padding-right: clamp(30px, 28vw, 390px);
  background:
    linear-gradient(90deg, transparent 0 66%, color-mix(in srgb, var(--lime) 65%, transparent) 66% 100%),
    var(--card);
}

.project-featured::before {
  content: "GPU";
  position: absolute;
  right: 4%;
  bottom: 16%;
  font-family: var(--display);
  font-size: clamp(90px, 13vw, 170px);
  line-height: 0.8;
  letter-spacing: -0.09em;
  color: #111;
  transform: rotate(-7deg);
}

.project-featured::after {
  right: 25%;
  bottom: -95px;
}

.project-top {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ink);
}

.project-number {
  color: var(--red);
  font-family: var(--display);
  font-size: 19px;
}

.project-kicker {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.project-arrow {
  width: 24px;
  height: 24px;
  transition: transform 180ms ease;
}

.project-card:hover .project-arrow {
  transform: translate(4px, -4px);
}

.project-card h3,
.project-card > p,
.project-card .project-metric,
.project-card .tag-list {
  position: relative;
  z-index: 2;
}

.project-card h3 {
  max-width: 650px;
  margin: 34px 0 18px;
  font-family: var(--display);
  font-size: clamp(31px, 4.2vw, 58px);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.project-card:not(.project-featured) h3 {
  font-size: clamp(29px, 3.3vw, 44px);
}

.project-description {
  max-width: 650px;
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
}

.project-details {
  max-width: 670px;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.project-metric {
  margin-top: auto;
  padding-top: 25px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.project-tags {
  margin-top: 14px;
}

.project-tags span {
  background: var(--paper);
}

.skills-board {
  display: grid;
  grid-template-columns: 0.36fr 1fr;
  gap: 0;
  margin-top: 80px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.skills-heading {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px;
  background: var(--red);
  color: #fff;
}

.skills-heading > span {
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 0.9;
}

.skills-heading p {
  max-width: 220px;
  margin: 40px 0 0;
  font-family: var(--mono);
  font-size: 10px;
}

.skill-rows {
  padding: 20px 34px;
}

.skill-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 25px;
  padding: 22px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 23%, transparent);
}

.skill-row:last-child {
  border-bottom: 0;
}

.skill-row h3 {
  margin: 5px 0 0;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}

.skill-row > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 13px;
}

.skill-row span {
  font-size: 13px;
  font-weight: 750;
}

/* Play */
.play-section {
  overflow: hidden;
  background: var(--blue);
  color: #fff;
}

.play-section::after {
  content: "PLAY";
  position: absolute;
  right: -30px;
  bottom: -80px;
  color: rgba(255, 255, 255, 0.05);
  font-family: var(--display);
  font-size: 330px;
  line-height: 1;
  letter-spacing: -0.1em;
}

.play-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 40px;
  align-items: center;
}

.sticker-stage {
  position: relative;
  margin: 0;
  padding: 16px;
  transform: rotate(-2deg);
  border: 2px solid #111;
  background: #eee7d7;
  box-shadow: 12px 12px 0 #111;
  transform-style: preserve-3d;
  transition: transform 100ms linear;
}

.sticker-stage::before,
.sticker-stage::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 90px;
  height: 28px;
  background: rgba(223, 255, 63, 0.8);
}

.sticker-stage::before {
  top: -12px;
  left: -24px;
  transform: rotate(-14deg);
}

.sticker-stage::after {
  right: -24px;
  bottom: -12px;
  transform: rotate(-14deg);
}

.sticker-stage img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid #111;
}

.sticker-stage figcaption {
  padding: 10px 3px 0;
  color: #111;
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 800;
  text-align: right;
  text-transform: uppercase;
}

.hobby-list {
  display: grid;
  gap: 12px;
}

.hobby-card {
  display: grid;
  grid-template-columns: 36px 52px 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: var(--radius-small);
  background: rgba(17, 17, 15, 0.16);
  backdrop-filter: blur(5px);
  transition: transform 180ms ease, background 180ms ease;
}

.hobby-card:hover {
  transform: translateX(9px);
  background: rgba(17, 17, 15, 0.28);
}

.hobby-index {
  align-self: start;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
}

.hobby-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1.5px solid #111;
  border-radius: 50%;
  background: var(--lime);
  color: #111;
}

.hobby-card:nth-child(2) .hobby-icon { background: var(--red); }
.hobby-card:nth-child(3) .hobby-icon { background: var(--yellow); }
.hobby-card:nth-child(4) .hobby-icon { background: #fff; }

.hobby-card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 20px;
  line-height: 1;
}

.hobby-card p {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 11px;
  line-height: 1.5;
}

/* Impact and contact */
.impact-section {
  padding-bottom: 70px;
}

.volunteer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.volunteer-card {
  min-height: 330px;
  padding: 29px;
  border-radius: var(--radius);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.volunteer-card:hover {
  transform: translateY(-7px) rotate(-1deg);
  box-shadow: var(--shadow-small);
}

.volunteer-icon {
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  margin-bottom: 50px;
  border: var(--border);
  border-radius: 50%;
  background: var(--lime);
}

.volunteer-card:nth-child(2) .volunteer-icon { background: var(--yellow); }
.volunteer-card:nth-child(3) .volunteer-icon { background: var(--red); color: #fff; }

.volunteer-icon .icon {
  width: 28px;
  height: 28px;
}

.volunteer-card > span {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.volunteer-card h3 {
  margin: 12px 0;
  font-family: var(--display);
  font-size: 23px;
  line-height: 1.05;
}

.volunteer-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.leadership-tape {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 30px;
  padding: 15px 20px;
  overflow: hidden;
  border: var(--border);
  background: var(--yellow);
  color: #111;
  transform: rotate(0.5deg);
}

.leadership-title {
  flex: 0 0 auto;
  font-family: var(--display);
  font-size: 12px;
  text-transform: uppercase;
}

.leadership-track {
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.leadership-track i {
  color: var(--red);
  font-style: normal;
}

.contact-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 50px;
  margin-top: 110px;
  padding: clamp(34px, 6vw, 78px);
  overflow: hidden;
  border: 2px solid #111;
  border-radius: 32px;
  background: var(--lime);
  color: #111;
  box-shadow: 11px 11px 0 #111;
}

.contact-card::before {
  content: "";
  position: absolute;
  top: -130px;
  right: 15%;
  width: 260px;
  height: 260px;
  border: 2px solid #111;
  border-radius: 50%;
  background: var(--red);
}

.contact-card > * {
  position: relative;
  z-index: 1;
}

.contact-card .section-number {
  color: #111;
}

.contact-card h2 {
  font-size: clamp(46px, 6.8vw, 86px);
}

.contact-card h2 em {
  color: var(--blue);
  font-style: normal;
}

.contact-card p {
  max-width: 620px;
  margin: 25px 0 0;
  color: #34342d;
  font-size: 14px;
}

.contact-actions {
  display: flex;
  min-width: 270px;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.button-light {
  border-color: #111;
  background: #111;
  color: #fff;
}

.copy-button {
  display: inline-flex;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1.5px solid #111;
  border-radius: 999px;
  background: transparent;
  color: #111;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.copy-button:hover {
  background: #fff;
}

.copy-button .icon {
  width: 15px;
  height: 15px;
}

.contact-doodle {
  position: absolute;
  z-index: 0;
  top: -30px;
  right: 1%;
  color: rgba(17, 17, 15, 0.08);
  font-family: var(--display);
  font-size: 260px;
  line-height: 1;
  transform: rotate(-9deg);
}

/* Footer */
.site-footer {
  padding: 55px 0 30px;
  border-top: 2px solid #33322e;
  background: #171713;
  color: #f5f1e7;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 35px;
  align-items: start;
}

.footer-brand .brand-mark {
  border-color: #f5f1e7;
  background: var(--lime);
  color: #111;
}

.footer-inner > div:first-child p {
  max-width: 430px;
  margin: 20px 0 0;
  color: #97948c;
  font-size: 11px;
}

.footer-links {
  display: flex;
  gap: 20px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
}

.footer-links a:hover {
  color: var(--lime);
}

.copyright {
  grid-column: 1 / -1;
  margin: 30px 0 0;
  padding-top: 20px;
  border-top: 1px solid #363531;
  color: #77746d;
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
}

/* Motion helpers */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 650ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

.js .hero-visual.reveal.is-visible {
  transform: none;
}

/* Responsive */
@media (max-width: 1040px) {
  .nav-links a {
    padding-inline: 8px;
    font-size: 10px;
  }

  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(310px, 0.65fr);
    gap: 50px;
  }

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

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

  .stat-card {
    min-height: 160px;
  }

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

  .sticker-stage {
    width: min(720px, 90%);
    margin-inline: auto;
  }

  .hobby-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  :root {
    --container: min(100% - 28px, 720px);
  }

  .site-header {
    top: 10px;
  }

  .nav-shell {
    min-height: 58px;
    grid-template-columns: auto 1fr auto;
  }

  .menu-toggle {
    display: grid;
    justify-self: end;
    grid-column: 2;
  }

  .theme-toggle {
    grid-column: 3;
  }

  .nav-links {
    position: fixed;
    inset: 82px 14px auto;
    display: grid;
    gap: 5px;
    padding: 15px;
    transform: translateY(-20px) scale(0.97);
    border: var(--border);
    border-radius: 22px;
    background: var(--paper);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
  }

  .nav-links.is-open {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    padding: 13px 15px;
    border-radius: 12px;
    font-size: 13px;
  }

  .menu-toggle[aria-expanded="true"] .menu-open-icon {
    display: none;
  }

  .menu-toggle[aria-expanded="true"] .menu-close-icon {
    display: block;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 130px;
    padding-bottom: 100px;
  }

  .hero-copy {
    max-width: 700px;
  }

  .hero-visual {
    width: min(470px, calc(100% - 40px));
    justify-self: center;
    margin-top: 24px;
  }

  .scroll-cue {
    display: none;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 44px;
  }

  .section-heading > p {
    max-width: 540px;
  }

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

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

  .education-intro {
    grid-column: 1 / -1;
    min-height: 100px;
    flex-direction: row;
    align-items: center;
  }

  .education-strip article:nth-child(2) {
    border-left: 0;
  }

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

  .project-featured {
    grid-column: auto;
    padding-right: clamp(25px, 3vw, 38px);
    background: var(--card);
  }

  .project-featured::before {
    right: 2%;
    bottom: 6%;
    opacity: 0.08;
  }

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

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

  .skills-heading {
    min-height: 190px;
  }

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

  .volunteer-card {
    min-height: auto;
  }

  .volunteer-icon {
    margin-bottom: 35px;
  }

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

  .contact-actions {
    width: min(100%, 360px);
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .brand-mark {
    width: 39px;
    height: 39px;
  }

  .icon-button {
    width: 42px;
    height: 42px;
  }

  .nav-shell {
    gap: 7px;
    padding-left: 8px;
  }

  .hero-title {
    font-size: clamp(50px, 16vw, 72px);
  }

  .hero-intro {
    margin-top: 32px;
    font-size: 16px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .social-row {
    gap: 15px;
  }

  .note-code {
    top: -38px;
    left: -8px;
  }

  .note-coffee {
    right: -12px;
  }

  .tiny-disclaimer {
    right: -6px;
  }

  .section-heading h2 {
    font-size: clamp(44px, 14vw, 68px);
  }

  .now-card {
    min-height: 0;
    padding-bottom: 27px;
  }

  .now-card h3 {
    margin-top: 42px;
  }

  .scope-meme {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 24px;
  }

  .stats-grid {
    gap: 10px;
  }

  .stat-card {
    min-height: 145px;
    padding: 18px;
  }

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

  .education-intro {
    grid-column: auto;
  }

  .education-strip > * + * {
    border-top: 1.5px solid var(--ink);
    border-left: 0;
  }

  .timeline::before {
    left: 16px;
  }

  .timeline-item {
    grid-template-columns: 32px 1fr;
    gap: 10px;
  }

  .timeline-index {
    display: none;
  }

  .timeline-marker {
    justify-content: flex-start;
    padding-top: 34px;
    padding-left: 9px;
  }

  .timeline-marker span {
    transform: translateX(-50%);
  }

  .timeline-card {
    padding: 23px;
  }

  .job-meta {
    flex-direction: column;
    gap: 5px;
  }

  .job-icon {
    display: none;
  }

  .project-card {
    min-height: 470px;
    padding: 23px;
  }

  .project-top {
    grid-template-columns: auto 1fr;
  }

  .project-arrow {
    display: none;
  }

  .skill-rows {
    padding-inline: 22px;
  }

  .skill-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hobby-list {
    grid-template-columns: 1fr;
  }

  .sticker-stage {
    width: calc(100% - 16px);
  }

  .hobby-card {
    grid-template-columns: 25px 47px 1fr;
    padding: 15px;
  }

  .leadership-tape {
    align-items: flex-start;
    flex-direction: column;
  }

  .leadership-track {
    flex-wrap: wrap;
    white-space: normal;
  }

  .contact-card {
    margin-top: 80px;
    padding: 35px 24px;
    border-radius: 24px;
    box-shadow: 7px 7px 0 #111;
  }

  .contact-card h2 {
    font-size: 48px;
  }

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

  .footer-links {
    flex-wrap: wrap;
  }
}

@media (hover: none), (pointer: coarse) {
  .cursor-orb {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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