/* ============================================================
   ARYAMAN SINGH RANA — Portfolio
   Design: Editorial Data Desk
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=DM+Mono:wght@400;500&display=swap');

/* --- CSS Variables --- */
:root {
  --bg: #F5F1EB;
  --surface: #EDEAE3;
  --border: #C8C4BC;
  --text: #1A1714;
  --text-muted: #6B6560;
  --accent: #C1440E;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-mono: 'DM Mono', 'Courier New', monospace;
  --nav-h: 64px;
  --max-w: 860px;
  --radius: 2px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-weight: 400;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

/* --- Container --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
}

/* --- Section Structure --- */
.section-header {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 64px;
}

.section-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  flex-shrink: 0;
  margin-top: 4px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
}

/* --- Scroll Reveal --- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

[data-reveal].visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(245, 241, 235, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.nav-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-monogram {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  transition: color 0.15s ease;
}

.nav-monogram:hover {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 2px;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.nav-links a:hover,
.nav-links a[data-active] {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a[data-active]::after {
  width: 100%;
}

/* ============================================================
   HERO
   ============================================================ */

#hero {
  min-height: 20vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding-top: calc(var(--nav-h) + clamp(72px, 14vh, 130px));
  padding-bottom: 0;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
  width: 100%;
  padding-bottom: 20px;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 28px;

  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.6s ease forwards;
  animation-delay: 0ms;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(56px, 11vw, 96px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 36px;
}

.hero-name .line-1 {
  display: block;
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.65s ease forwards;
  animation-delay: 120ms;
}

.hero-name .line-2 {
  display: block;
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.65s ease forwards;
  animation-delay: 200ms;
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: clamp(15px, 2.2vw, 18px);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 480px;
  margin-bottom: 48px;

  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.6s ease forwards;
  animation-delay: 340ms;
}

/* ============================================================
   ABOUT
   ============================================================ */

#about {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

.about-bio {
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.85;
  color: var(--text);
  max-width: 680px;
}

/* ============================================================
   SKILLS
   ============================================================ */

#skills {
  padding: 120px 0;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.skill-group-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

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

.tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 10px;
  /* cursor: default; */
  transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.tag:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(193, 68, 14, 0.12);
}

/* ============================================================
   EXPERIENCE
   ============================================================ */

#experience {
  padding: 70px 0;
}

.timeline {
  position: relative;
  padding-left: 32px;
}

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

.timeline-entry {
  position: relative;
  margin-bottom: 72px;
}

.timeline-entry:last-child {
  margin-bottom: 0;
}

.timeline-entry::before {
  content: '';
  position: absolute;
  left: -38px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
}

.entry-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.entry-company {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  font-weight: 400;
  color: var(--text);
}

.entry-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  white-space: nowrap;
  flex-shrink: 0;
}

.entry-role {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.entry-location {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.entry-projects {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.entry-project {
  padding-left: 0;
}

.project-title-line {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}

.project-title-line .arrow {
  color: var(--accent);
  margin-right: 6px;
  font-style: normal;
}

.project-desc {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.75;
  padding-left: 20px;
}

.project-desc strong {
  color: var(--accent);
  font-weight: 500;
}

.entry-bullets {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.75;
  padding-left: 20px;
  list-style-type: square;
  margin-bottom: 20px;
}

.entry-bullets li {
  margin-bottom: 8px;
}

.entry-bullets li::marker {
  color: var(--accent);
}

.entry-bullets strong {
  color: var(--accent);
  font-weight: 500;
}

.experience-tags {
  margin-top: 16px;
}

/* ============================================================
   PROJECTS
   ============================================================ */

#projects {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.project-card:hover {
  border-color: var(--accent);
  box-shadow: 4px 4px 0 var(--accent);
}

.project-card-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
}

.project-card-desc {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.project-card-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-card-stack .stack-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2px 7px;
}

/* ============================================================
   PILL TAGS — fully rounded, used in projects & side projects
   ============================================================ */

.pill-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px 11px;
  white-space: nowrap;
}

.project-link {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  position: relative;
  padding-bottom: 1px;
  transition: color 0.15s ease;
  align-self: flex-start;
}

.project-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.project-link:hover {
  color: var(--accent);
}

.project-link:hover::after {
  width: 100%;
}

/* ============================================================
   EDUCATION
   ============================================================ */

#education {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

.edu-entry {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.edu-school {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}

.edu-degree {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text);
}

.edu-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ============================================================
   CONTACT / FOOTER
   ============================================================ */

footer {
  padding: 120px 0 60px;
  border-top: 1px solid var(--border);
}

.footer-heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 32px;
}

.footer-email {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 3.5vw, 28px);
  color: var(--text);
  display: inline-block;
  position: relative;
  padding-bottom: 2px;
  margin-bottom: 40px;
  transition: color 0.15s ease;
}

.footer-email::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--border);
  transition: background 0.2s ease;
}

.footer-email:hover {
  color: var(--accent);
}

.footer-email:hover::after {
  background: var(--accent);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 1px;
  transition: color 0.15s ease;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.2s ease;
}

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

.footer-links a:hover::after {
  width: 100%;
}

.footer-links .sep {
  color: var(--border);
  font-size: 12px;
  user-select: none;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

/* ============================================================
   NAV SOCIALS
   ============================================================ */

.nav-socials {
  display: flex;
  align-items: center;
  gap: 20px;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.nav-socials::-webkit-scrollbar {
  display: none;
}

.nav-socials a {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 2px;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.nav-socials a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.nav-socials a:hover {
  color: var(--text);
}

.nav-socials a:hover::after {
  width: 100%;
}

.nav-socials .sep {
  color: var(--border);
  font-size: 12px;
  user-select: none;
}

/* ============================================================
   HERO TAB PILLS — full-width line with centered pills
   ============================================================ */

.hero-tabs {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  position: relative;
  padding: 10px 0 10px;

  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
  animation-delay: 420ms;
}

/* The horizontal line running edge-to-edge */
.hero-tabs::before {
  content: '';
  position: absolute;
  top: 45%;
  left: 0;
  right: 0;
  background: var(--border);
  z-index: 0;
}

.tab-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  /* bg covers the line behind the pill */
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 52px;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  appearance: none;
  -webkit-appearance: none;
}

/* slight gap between the two pills */
.tab-pill:first-child {
  margin-right: 12px;
}

.tab-pill:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.tab-pill.active {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--bg);
  box-shadow: 0 0 0 3px rgba(193, 68, 14, 0.08);
}

/* ============================================================
   TAB SWITCHING
   ============================================================ */

.tab-hidden {
  display: none !important;
}

/* ============================================================
   SIDE PROJECTS & EXPERIMENTS — Editorial List
   ============================================================ */

#side-projects {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

.side-section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 64px;
  margin-top: 80px;
}

.side-section-label:first-of-type {
  margin-top: 0;
}

.side-project-list {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.side-project-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.side-project-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.side-project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.side-project-img video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Multi-image grid within the left column */
.side-project-img--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.side-project-img--grid img {
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

/* Placeholder shimmer label */
.side-project-img:not(:has(img)):not(:has(video))::after {
  content: 'image';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--border);
}

.side-project-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}

.side-project-category {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.side-project-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
}

.side-project-desc {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.8;
}

.side-project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.side-project-link {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
  display: inline-block;
  position: relative;
  padding-bottom: 1px;
  margin-top: 4px;
  align-self: flex-start;
  transition: color 0.15s ease;
}

.side-project-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.side-project-link:hover {
  color: var(--accent);
}

.side-project-link:hover::after {
  width: 100%;
}

.side-project-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2px 8px;
  display: inline-block;
  align-self: flex-start;
  margin-top: 2px;
}

.side-project-badge--award {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(193, 68, 14, 0.06);
}

/* ============================================================
   FOCUS / ACCESSIBILITY
   ============================================================ */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   LIGHTBOX
   ============================================================ */

.side-project-img {
  cursor: zoom-in;
}

.side-project-img:hover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26, 23, 20, 0.12);
  z-index: 1;
  pointer-events: none;
  transition: background 150ms ease;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(26, 23, 20, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 80px 20px 40px;
  flex-direction: column;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
}

.lightbox-media {
  max-width: min(960px, 90vw);
  max-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-media img,
.lightbox-media video {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  object-fit: contain;
  border-radius: 2px;
  display: block;
  user-select: none;
}

/* Close button */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: 1px solid rgba(200, 196, 188, 0.3);
  color: rgba(245, 241, 235, 0.7);
  font-size: 22px;
  line-height: 1;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 2px;
  transition: border-color 150ms, color 150ms;
}

.lightbox-close:hover {
  border-color: var(--accent);
  color: var(--bg);
}

/* Prev / Next buttons */
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 1px solid rgba(200, 196, 188, 0.3);
  color: rgba(245, 241, 235, 0.7);
  font-family: var(--font-mono);
  font-size: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 2px;
  transition: border-color 150ms, color 150ms;
  z-index: 10;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  border-color: var(--accent);
  color: var(--bg);
}

.lightbox-prev[hidden],
.lightbox-next[hidden] {
  display: none;
}

/* Dot navigation */
.lightbox-dots {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 14px;
}

.lightbox-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid rgba(200, 196, 188, 0.4);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 150ms, border-color 150ms;
}

.lightbox-dot.active {
  background: var(--accent);
  border-color: var(--accent);
}

/* ============================================================
   RESPONSIVE — 640px
   ============================================================ */

@media (max-width: 640px) {

  .nav-links,
  .nav-socials {
    gap: 16px;
  }

  #hero {
    padding-top: calc(var(--nav-h) + 56px);
  }

  .hero-tabs {
    flex-wrap: wrap;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .timeline {
    padding-left: 20px;
  }

  .timeline-entry::before {
    left: -26px;
    width: 8px;
    height: 8px;
  }

  .entry-header {
    flex-direction: column;
    gap: 4px;
  }

  .section-header {
    margin-bottom: 48px;
  }

  .side-project-item {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .side-section-label {
    margin-top: 56px;
  }

  .side-project-list {
    gap: 56px;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .hero-label,
  .hero-name .line-1,
  .hero-name .line-2,
  .hero-tagline,
  .hero-tabs {
    opacity: 1;
    transform: none;
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}