/* ============================================
   DAKSH RANDERIA — Portfolio Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;1,9..144,300;1,9..144,400&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* ── Tokens ── */
:root {
  /* Colors */
  --cream:       #F8F7F2;
  --cream-alt:   #F2F1EA;
  --white:       #FFFFFF;
  --ink:         #181C1B;
  --ink-secondary: #566360;
  --ink-tertiary:  #8A9593;
  --teal:        #187B70;
  --teal-hover:  #126660;
  --teal-light:  rgba(24, 123, 112, 0.08);
  --teal-mid:    rgba(24, 123, 112, 0.16);
  --amber:       #B06C2A;
  --amber-light: rgba(176, 108, 42, 0.08);
  --border:      rgba(24, 30, 28, 0.10);
  --border-strong: rgba(24, 30, 28, 0.18);

  /* Typography */
  --font-sans:   'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-serif:  'Fraunces', Georgia, serif;
  --font-mono:   ui-monospace, SFMono-Regular, monospace;

  /* Sizes */
  --sz-xs:   11px;
  --sz-sm:   13px;
  --sz-base: 15px;
  --sz-md:   16px;
  --sz-lg:   18px;
  --sz-xl:   22px;
  --sz-2xl:  28px;
  --sz-3xl:  36px;
  --sz-4xl:  48px;
  --sz-5xl:  60px;

  /* Spacing */
  --sp-2:   2px;
  --sp-4:   4px;
  --sp-6:   6px;
  --sp-8:   8px;
  --sp-12:  12px;
  --sp-16:  16px;
  --sp-20:  20px;
  --sp-24:  24px;
  --sp-32:  32px;
  --sp-40:  40px;
  --sp-48:  48px;
  --sp-64:  64px;
  --sp-80:  80px;
  --sp-96:  96px;
  --sp-128: 128px;

  /* Radii */
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   14px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.09), 0 4px 8px rgba(0,0,0,0.04);

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --fast: 140ms;
  --normal: 260ms;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-family: var(--font-sans);
  font-size: var(--sz-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body { overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--sp-24);
}

.container--narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--sp-24);
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: calc(60px + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(248, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--normal) var(--ease);
}

.nav.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-serif);
  font-size: var(--sz-md);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-32);
}

.nav__link {
  font-size: var(--sz-sm);
  font-weight: 500;
  color: var(--ink-secondary);
  transition: color var(--fast) var(--ease);
  letter-spacing: 0.01em;
}

.nav__link:hover { color: var(--teal); }
.nav__link--active { color: var(--ink); }

.nav__cta {
  font-size: var(--sz-sm);
  font-weight: 600;
  padding: var(--sp-6) var(--sp-16);
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--r-full);
  transition: background var(--fast) var(--ease);
}

.nav__cta:hover { background: var(--teal); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: var(--sp-8);
}

.nav__burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform var(--normal) var(--ease), opacity var(--normal) var(--ease);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-8);
  padding: var(--sp-12) var(--sp-24);
  border: none;
  border-radius: var(--r-md);
  font-family: var(--font-sans);
  font-size: var(--sz-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--fast) var(--ease);
  text-decoration: none;
}

.btn--primary {
  background: var(--ink);
  color: var(--cream);
}
.btn--primary:hover { background: var(--teal); color: var(--white); }

.btn--outline {
  background: transparent;
  border: 1.5px solid var(--border-strong);
  color: var(--ink);
}
.btn--outline:hover { border-color: var(--teal); color: var(--teal); }

.btn--ghost {
  background: transparent;
  color: var(--teal);
  padding-left: 0;
  padding-right: 0;
}
.btn--ghost:hover { color: var(--teal-hover); }
.btn--ghost svg { transition: transform var(--fast) var(--ease); }
.btn--ghost:hover svg { transform: translateX(3px); }

/* ── Section shared ── */
.section { padding: var(--sp-96) 0; }
.section--alt { background: var(--cream-alt); }
.section--dark { background: var(--ink); color: var(--cream); }

.section__label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-8);
  font-size: var(--sz-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: var(--sp-16);
}

.section__label::before {
  content: '';
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--teal);
}

.section__title {
  font-family: var(--font-serif);
  font-size: var(--sz-3xl);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: var(--sp-16);
}

.section__sub {
  font-size: var(--sz-lg);
  color: var(--ink-secondary);
  max-width: 520px;
  line-height: 1.6;
}

/* ── HERO ── */
.hero {
  padding-top: 140px;
  padding-bottom: var(--sp-96);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-8);
  font-size: var(--sz-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: var(--sp-32);
}

.hero__tag::before {
  content: '';
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--teal);
}

.hero__name {
  font-family: var(--font-serif);
  font-size: clamp(44px, 7vw, var(--sz-5xl));
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: var(--sp-24);
}

.hero__name em {
  font-style: italic;
  color: var(--teal);
}

.hero__desc {
  font-size: var(--sz-lg);
  color: var(--ink-secondary);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: var(--sp-40);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-16);
  flex-wrap: wrap;
}

.hero__meta {
  display: flex;
  gap: var(--sp-40);
  margin-top: var(--sp-64);
  padding-top: var(--sp-40);
  border-top: 1px solid var(--border);
}

.hero__stat-label {
  font-size: var(--sz-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
  margin-bottom: var(--sp-4);
}

.hero__stat-value {
  font-family: var(--font-serif);
  font-size: var(--sz-2xl);
  font-weight: 300;
  color: var(--ink);
  letter-spacing: -0.02em;
}

/* ── ABOUT ── */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-80);
  align-items: start;
}

.about__text {
  font-size: var(--sz-lg);
  color: var(--ink-secondary);
  line-height: 1.75;
}

.about__text p + p { margin-top: var(--sp-20); }

.about__skills {
  display: flex;
  flex-direction: column;
  gap: var(--sp-32);
}

.skill-group__label {
  font-size: var(--sz-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
  margin-bottom: var(--sp-12);
}

.skill-group__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-8);
}

.skill-tag {
  font-size: var(--sz-sm);
  font-weight: 500;
  padding: var(--sp-6) var(--sp-12);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  color: var(--ink-secondary);
  transition: all var(--fast) var(--ease);
}

.skill-tag:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* ── PROJECT CARDS ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-24);
}

.projects-grid--two { grid-template-columns: repeat(2, 1fr); }

.project-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-28, 28px);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--normal) var(--ease), transform var(--normal) var(--ease);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--normal) var(--ease);
}

.project-card--personal::before { background: var(--amber); }

.project-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.project-card:hover::before { transform: scaleX(1); }

.project-card__cat {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-6);
  font-size: var(--sz-xs);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: var(--sp-16);
}

.project-card--personal .project-card__cat { color: var(--amber); }

.project-card__title {
  font-family: var(--font-serif);
  font-size: var(--sz-xl);
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: var(--sp-8);
  line-height: 1.25;
}

.project-card__company {
  font-size: var(--sz-sm);
  font-weight: 500;
  color: var(--teal);
  margin-bottom: var(--sp-12);
}

.project-card--personal .project-card__company { color: var(--amber); }

.project-card__desc {
  font-size: var(--sz-sm);
  color: var(--ink-secondary);
  line-height: 1.65;
  flex: 1;
  margin-bottom: var(--sp-20);
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-6);
  margin-bottom: var(--sp-20);
}

.tag {
  font-size: var(--sz-xs);
  font-weight: 600;
  padding: var(--sp-4) var(--sp-8);
  border-radius: var(--r-sm);
}

.tag--teal { background: var(--teal-light); color: var(--teal); }
.tag--amber { background: var(--amber-light); color: var(--amber); }
.tag--neutral { background: var(--cream-alt); color: var(--ink-secondary); }

.project-card__link {
  font-size: var(--sz-sm);
  font-weight: 600;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  transition: gap var(--fast) var(--ease);
}

.project-card--personal .project-card__link { color: var(--amber); }
.project-card:hover .project-card__link { gap: var(--sp-10); }

/* Card footer — wraps primary + secondary links when both exist */
.project-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-12);
}

/* External "Live app" secondary link on cards */
.project-card__live {
  font-size: var(--sz-sm);
  font-weight: 600;
  color: var(--ink-secondary);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-4);
  transition: color var(--fast) var(--ease);
  white-space: nowrap;
}
.project-card__live:hover { color: var(--teal); }
.project-card--personal .project-card__live:hover { color: var(--amber); }

/* ── EXPERIENCE ── */
.timeline {
  position: relative;
  padding-left: var(--sp-32);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.timeline__item {
  position: relative;
  padding-bottom: var(--sp-48);
}

.timeline__item:last-child { padding-bottom: 0; }

.timeline__item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--sp-32) - 4px);
  top: 8px;
  width: 9px;
  height: 9px;
  background: var(--teal);
  border-radius: 50%;
  border: 2px solid var(--cream);
}

.timeline__period {
  font-size: var(--sz-xs);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
  margin-bottom: var(--sp-6);
}

.timeline__role {
  font-family: var(--font-serif);
  font-size: var(--sz-xl);
  font-weight: 300;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-4);
}

.timeline__company {
  font-size: var(--sz-sm);
  font-weight: 600;
  color: var(--teal);
  margin-bottom: var(--sp-16);
}

.timeline__bullets {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}

.timeline__bullet {
  font-size: var(--sz-sm);
  color: var(--ink-secondary);
  line-height: 1.6;
  padding-left: var(--sp-16);
  position: relative;
}

.timeline__bullet::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--ink-tertiary);
  font-size: 10px;
  top: 4px;
}

/* ── PROJECTS PAGE ── */
.projects-filters {
  display: flex;
  gap: var(--sp-8);
  margin-bottom: var(--sp-48);
  flex-wrap: wrap;
}

.filter-btn {
  font-size: var(--sz-sm);
  font-weight: 600;
  padding: var(--sp-8) var(--sp-16);
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--ink-secondary);
  border-radius: var(--r-full);
  cursor: pointer;
  transition: all var(--fast) var(--ease);
}

.filter-btn:hover { border-color: var(--teal); color: var(--teal); }

.filter-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

/* ── PROJECT PAGE ── */
.project-hero {
  padding-top: 120px;
  padding-bottom: var(--sp-64);
  border-bottom: 1px solid var(--border);
}

.project-hero__back {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  font-size: var(--sz-sm);
  font-weight: 600;
  color: var(--ink-secondary);
  margin-bottom: var(--sp-40);
  transition: color var(--fast) var(--ease);
}

.project-hero__back:hover { color: var(--teal); }

.project-hero__cat {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-8);
  font-size: var(--sz-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: var(--sp-16);
}

.project-hero__cat--personal { color: var(--amber); }
.project-hero__cat::before {
  content: '';
  display: block;
  width: 20px;
  height: 1.5px;
  background: currentColor;
}

.project-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(34px, 5vw, var(--sz-4xl));
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: var(--sp-20);
  max-width: 680px;
}

.project-hero__logline {
  font-size: var(--sz-lg);
  color: var(--ink-secondary);
  max-width: 560px;
  line-height: 1.65;
  margin-bottom: var(--sp-32);
}

.project-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-8);
}

/* Hero action buttons — shown on project pages with live apps */
.project-hero__actions {
  display: flex;
  gap: var(--sp-12);
  margin-top: var(--sp-24);
  flex-wrap: wrap;
}

/* ── PROJECT BODY ── */
.project-body {
  padding: var(--sp-64) 0;
}

.project-body__grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--sp-64);
  align-items: start;
}

.project-content h2 {
  font-family: var(--font-serif);
  font-size: var(--sz-2xl);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: var(--sp-48);
  margin-bottom: var(--sp-20);
}

.project-content h2:first-child { margin-top: 0; }

.project-content p {
  font-size: var(--sz-md);
  color: var(--ink-secondary);
  line-height: 1.8;
  margin-bottom: var(--sp-20);
}

.project-content ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-12);
  margin-bottom: var(--sp-24);
}

.project-content li {
  font-size: var(--sz-md);
  color: var(--ink-secondary);
  line-height: 1.7;
  padding-left: var(--sp-24);
  position: relative;
}

.project-content li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-size: var(--sz-sm);
}

.project-sidebar {
  position: sticky;
  top: 80px;
}

.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-24);
  margin-bottom: var(--sp-16);
}

.sidebar-card__title {
  font-size: var(--sz-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
  margin-bottom: var(--sp-16);
}

.sidebar-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--sp-10) 0;
  border-bottom: 1px solid var(--border);
  font-size: var(--sz-sm);
}

.sidebar-row:last-child { border-bottom: none; padding-bottom: 0; }

.sidebar-row__label { color: var(--ink-tertiary); font-weight: 500; }
.sidebar-row__value { color: var(--ink); font-weight: 600; text-align: right; }

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-10);
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: var(--sp-10);
  font-size: var(--sz-sm);
  font-weight: 600;
  color: var(--teal);
  padding: var(--sp-10) var(--sp-12);
  background: var(--teal-light);
  border-radius: var(--r-sm);
  transition: background var(--fast) var(--ease);
}

.sidebar-link:hover { background: var(--teal-mid); }

/* ── CONTACT / CTA ── */
.cta-section {
  padding: var(--sp-96) 0;
  text-align: center;
}

.cta-section .section__title { margin-bottom: var(--sp-16); }

.cta-section p {
  font-size: var(--sz-lg);
  color: var(--ink-secondary);
  margin-bottom: var(--sp-40);
}

.cta-links {
  display: flex;
  justify-content: center;
  gap: var(--sp-16);
  flex-wrap: wrap;
}

/* ── FOOTER ── */
.footer {
  padding: var(--sp-32) 0;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__copy {
  font-size: var(--sz-sm);
  color: var(--ink-tertiary);
}

.footer__social {
  display: flex;
  gap: var(--sp-16);
}

.footer__social-link {
  font-size: var(--sz-sm);
  color: var(--ink-secondary);
  transition: color var(--fast) var(--ease);
}

.footer__social-link:hover { color: var(--teal); }

/* ── RESUME MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--normal) var(--ease);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: var(--sp-40);
  width: 100%;
  max-width: 420px;
  margin: var(--sp-16);
  transform: translateY(12px);
  transition: transform var(--normal) var(--ease);
}

.modal-overlay.open .modal { transform: translateY(0); }

.modal__title {
  font-family: var(--font-serif);
  font-size: var(--sz-2xl);
  font-weight: 300;
  color: var(--ink);
  margin-bottom: var(--sp-8);
}

.modal__sub {
  font-size: var(--sz-sm);
  color: var(--ink-secondary);
  margin-bottom: var(--sp-24);
}

.modal__input-wrap {
  position: relative;
  margin-bottom: var(--sp-8);
}

.modal__input {
  width: 100%;
  padding: var(--sp-12) var(--sp-16);
  padding-right: var(--sp-48);
  font-family: var(--font-sans);
  font-size: var(--sz-base);
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  outline: none;
  transition: border-color var(--fast) var(--ease);
}

.modal__input:focus { border-color: var(--teal); }

.modal__toggle {
  position: absolute;
  right: var(--sp-12);
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--ink-tertiary);
  cursor: pointer;
  padding: var(--sp-4);
}

.modal__error {
  font-size: var(--sz-sm);
  color: #C01528;
  margin-bottom: var(--sp-16);
  display: none;
}

.modal__error.show { display: block; }

.modal__help {
  font-size: var(--sz-xs);
  color: var(--ink-tertiary);
  margin-top: var(--sp-16);
}

.modal__help a { color: var(--teal); }

.modal__actions {
  display: flex;
  gap: var(--sp-12);
  margin-top: var(--sp-24);
}

/* ── Animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; gap: var(--sp-48); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .project-body__grid { grid-template-columns: 1fr; }
  .project-sidebar { position: static; }
}

@media (max-width: 640px) {
  .container { padding: 0 var(--sp-16); }
  .container--narrow { padding: 0 var(--sp-16); }
  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    position: fixed;
    top: calc(60px + env(safe-area-inset-top, 0px)); left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: var(--sp-24);
    border-bottom: 1px solid var(--border);
    gap: var(--sp-20);
  }
  .nav__burger { display: flex; }
  .hero { padding-top: 100px; padding-bottom: var(--sp-64); }
  .hero__meta { flex-wrap: wrap; gap: var(--sp-24); }
  .projects-grid { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; gap: var(--sp-16); text-align: center; }
  .section { padding: var(--sp-64) 0; }
  .cta-links { flex-direction: column; align-items: center; }
}
