@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black: #000000;
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-900: #171717;
  --primary: var(--gray-900);
  --success: var(--gray-400);
  --font-sans: "Inter var", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: "Inter Display var", "Inter Display", "Inter var", "Inter", -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;
  --bg-primary: var(--white);
  --bg-secondary: var(--gray-50);
  --text-primary: var(--black);
  --text-secondary: var(--gray-600);
  --border-color: var(--gray-200);
  --nav-bg: rgba(255, 255, 255, 0.8);

  /* Type scale — integer px values */
  --text-2xs: 0.6875rem;  /* 11px — mono caps, tags */
  --text-xs:  0.8125rem;  /* 13px — footer, dates */
  --text-sm:  1rem;       /* 16px — body, nav */
  --text-md:  1.1875rem;  /* 19px — lead, subtitle */
  --text-lg:  1.4375rem;  /* 23px — content h2 */
  --text-xl:  1.75rem;    /* 28px — project h3 */
  --text-2xl: 2.5rem;     /* 40px — hero mobile */
  --text-3xl: 3.5625rem;  /* 57px — hero h1 */

  /* Spacing rhythm — base 8px */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-6: 3rem;
  --space-8: 4rem;
  --space-12: 6rem;
  --space-16: 8rem;
}

[data-theme="dark"] {
  --bg-primary: var(--gray-900);
  --bg-secondary: #0a0a0a;
  --text-primary: var(--white);
  --text-secondary: var(--gray-400);
  --border-color: #2a2a2a;
  --nav-bg: rgba(23, 23, 23, 0.8);
  --gray-100: #1a1a1a;
  --primary: var(--white);
  --success: var(--gray-500);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: var(--text-sm);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'liga' 1, 'calt' 1, 'kern' 1, 'ss01' 1, 'cv01' 1, 'cv02' 1, 'cv03' 1, 'cv04' 1;
  font-optical-sizing: auto;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: inherit;
}

button, input, select, textarea {
  font: inherit;
}

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

::selection {
  background: var(--text-primary);
  color: var(--bg-primary);
}

/* ── Nav ────────────────────────────────────────────── */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

nav .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.25rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

nav .logo {
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin-right: auto;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 400;
  transition: color 0.2s;
}

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

.back-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 400;
  transition: color 0.2s;
  margin-right: auto;
}

.back-link:hover {
  color: var(--text-primary);
}

/* Page without hero: offset fixed nav */
.page-intro {
  padding-top: 9rem;
  padding-left: 3rem;
  padding-right: 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* ── Project detail content ─────────────────────────── */

.content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 3rem var(--space-16);
}

.project-page .content {
  max-width: 720px;
}

.content h2 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-top: var(--space-8);
  margin-bottom: var(--space-2);
}

.content h2:first-child {
  margin-top: var(--space-6);
}

.content p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.75;
  margin-bottom: var(--space-3);
  max-width: 65ch;
  transition: color 0.3s ease;
}

.content p:last-child {
  margin-bottom: 0;
}

.project-page .cs-section {
  padding: var(--space-12) max(3rem, calc((100% - 1400px) / 2 + 3rem));
}

.project-page .cs-section-alt {
  background: var(--gray-50);
}

[data-theme="dark"] .project-page .cs-section-alt {
  background: #141414;
}

.project-page .project-copy {
  max-width: 720px;
}

.project-page .cs-section h2 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

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

.project-page .project-copy p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.75;
  margin-bottom: var(--space-3);
  max-width: 65ch;
}

.project-page .project-copy p:last-child {
  margin-bottom: 0;
}

.project-page .cs-lead {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  max-width: 60ch;
  line-height: 1.75;
  margin-bottom: var(--space-6);
}

.project-page .cs-gallery-section {
  padding: var(--space-6) max(3rem, calc((100% - 1400px) / 2 + 3rem)) var(--space-8);
}

.project-page .cs-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
}

.project-page .cs-gallery-item {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  background: var(--gray-100);
}

.project-page .cs-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-page .cs-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.project-page .cs-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.project-page .cs-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: var(--space-6);
}

[data-theme="dark"] .project-page .cs-card {
  background: #1c1c1c;
  border-color: #2a2a2a;
}

.project-page .cs-card-label {
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.project-page .cs-card h3 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.project-page .cs-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.75;
}

.project-page .cs-numbered-list {
  margin-top: var(--space-6);
}

.project-page .cs-numbered-item {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: var(--space-4);
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--border-color);
}

.project-page .cs-numbered-item:last-child {
  border-bottom: none;
}

.project-page .cs-num {
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  padding-top: 4px;
}

.project-page .cs-numbered-content h3 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-2);
}

.project-page .cs-numbered-content p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 64ch;
}

/* ── Project meta ───────────────────────────────────── */

.project-meta {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.meta-label {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
}

.meta-value {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
}

.featured-image {
  max-width: 1400px;
  margin: 0 auto var(--space-8);
  padding: 0 3rem;
}

.featured-image-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--gray-100);
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.featured-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Experience timeline ────────────────────────────── */

.timeline {
  display: flex;
  flex-direction: column;
  max-width: 640px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 2rem;
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: var(--space-6);
  transition: border-color 0.3s ease;
}

.timeline-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.timeline-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: 1.5;
}

.timeline-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--primary);
  border-radius: 3px;
  width: fit-content;
}

.timeline-role {
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.timeline-company {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-bottom: var(--space-1);
  letter-spacing: 0;
}

.timeline-desc {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* ── Nav controls ───────────────────────────────────── */

.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-toggle {
  background: none;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.lang-toggle:hover {
  color: var(--text-primary);
  background: var(--gray-100);
}

[data-theme="dark"] .lang-toggle:hover,
[data-theme="dark"] .theme-toggle:hover {
  background: #2a2a2a;
}

.theme-toggle {
  background: none;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}

.theme-toggle:hover {
  background: var(--gray-100);
}

.theme-icon {
  width: 15px;
  height: 15px;
  stroke: var(--text-secondary);
  transition: stroke 0.2s;
}

.theme-toggle:hover .theme-icon {
  stroke: var(--text-primary);
}

/* ── Hero ───────────────────────────────────────────── */

.hero {
  width: 100%;
  padding: var(--space-16) max(3rem, calc((100% - 1400px) / 2 + 3rem)) var(--space-12);
  position: relative;
  overflow: hidden;
  background: #f1f1f1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 420px;
}

.project-page .hero {
  padding-top: 180px;
}

.about-page .hero {
  padding-top: 180px;
}

.about-page main > section {
  padding: var(--space-12) max(3rem, calc((100% - 1400px) / 2 + 3rem));
}

.about-page main > section > * {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero > * {
  position: relative;
  z-index: 1;
  max-width: 680px;
  width: 100%;
}

.hero > .project-images {
  max-width: 100%;
}

.hero > .hero-blobs {
  max-width: none;
  width: auto;
}

.hero-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.blob {
  position: absolute;
  display: block;
}

.blob-purple {
  width: clamp(280px, 42vw, 585px);
  top: -80px;
  right: clamp(-120px, -4vw, -60px);
  opacity: 0.8;
  mix-blend-mode: multiply;
}

.blob-lime {
  width: clamp(320px, 55vw, 765px);
  top: clamp(20px, 4vw, 60px);
  right: clamp(-60px, 2vw, 40px);
  opacity: 1;
  mix-blend-mode: multiply;
}

[data-theme="dark"] .hero {
  background: #111111;
}


[data-theme="dark"] .blob-purple {
  opacity: 0.5;
}

[data-theme="dark"] .blob-lime {
  opacity: 0.4;
}


.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 500;
  font-feature-settings: 'liga' 1, 'calt' 1, 'kern' 1, 'ss01' 1, 'cv01' 1;
  margin-bottom: var(--space-3);
  max-width: none;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.hero .subtitle {
  font-size: var(--text-md);
  color: var(--text-secondary);
  max-width: 52ch;
  line-height: 1.6;
  font-weight: 400;
  margin-bottom: var(--space-6);
  transition: color 0.3s ease;
}

.hero .project-meta {
  width: auto;
  max-width: max-content;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  transition: color 0.3s ease;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.links {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 400;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.links a:hover {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
}

/* ── Main ───────────────────────────────────────────── */

main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem var(--space-16);
}

main > section {
  margin-bottom: var(--space-16);
  scroll-margin-top: 100px;
}

main > section > h2 {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
  transition: color 0.3s ease;
}

/* ── Home page ──────────────────────────────────────── */

#work {
  padding-top: 5rem;
}

/* ── Home project image mosaic ──────────────────────── */

.project-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  max-width: 80%;
}

.hero .project-images {
  max-width: 100%;
  margin-top: var(--space-6);
  margin-bottom: 0;
}

.project-images .project-image-wrapper {
  aspect-ratio: 2 / 1;
  border-radius: 6px;
}

/* ── Work page ──────────────────────────────────────── */

.work-header {
  margin-bottom: var(--space-8);
}

.work-header h1 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  transition: color 0.3s ease;
}

.work-header p {
  font-size: var(--text-md);
  color: var(--text-secondary);
  max-width: 52ch;
  line-height: 1.6;
  transition: color 0.3s ease;
}

.projects-filter {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-color);
}

.filter-btn {
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 3px;
  padding: 0.375rem 0.75rem;
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
}

.filter-btn:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: var(--bg-primary);
}

.year-section {
  margin-bottom: var(--space-16);
}

.year-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.year-label {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color 0.3s ease;
}

.year-rule {
  flex: 1;
  height: 1px;
  background: var(--border-color);
  transition: background-color 0.3s ease;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8) var(--space-6);
}

.work-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.work-card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--gray-100);
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  margin-bottom: var(--space-3);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.work-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-card:hover .work-card-image img {
  transform: scale(1.02);
}

.work-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.work-card-client {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.3s ease;
}

.work-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.work-card:hover h3 {
  color: var(--primary);
}

.work-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-2);
  max-width: 48ch;
  transition: color 0.3s ease;
}

.work-card .project-tags {
  margin-top: auto;
}

.work-card-soon {
  cursor: default;
  pointer-events: none;
  opacity: 0.5;
}

/* ── Projects ───────────────────────────────────────── */

.projects-grid {
  display: grid;
  gap: var(--space-12);
}

.project {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 4rem;
  padding-bottom: var(--space-12);
  border-bottom: 1px solid var(--border-color);
  transition: border-color 0.3s ease;
}

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

.project-info {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  position: sticky;
  top: 110px;
  height: fit-content;
}

.project-year {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.project-type {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.project-image-wrapper {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--gray-100);
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.project-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.project-link:hover .project-image-wrapper img {
  transform: scale(1.02);
}

.project-content {
  display: flex;
  flex-direction: column;
}

.project-content h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-top: var(--space-3);
  margin-bottom: 0.625rem;
  transition: color 0.3s ease;
}

.project:hover .project-content h3 {
  color: var(--primary);
}

.project-content p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.65;
  margin-bottom: var(--space-3);
  max-width: 55ch;
  transition: color 0.3s ease;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: auto;
}

.tag {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--gray-100);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: color 0.3s ease, background-color 0.3s ease;
}

/* ── Services ───────────────────────────────────────── */

.services-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 560px;
}

.service {
  padding-bottom: var(--space-4);
  padding-top: var(--space-4);
  border-bottom: 1px solid var(--border-color);
  transition: border-color 0.3s ease;
}

.service:first-child {
  padding-top: 0;
}

.service:last-child {
  border-bottom: none;
}

.service h3 {
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.service p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.7;
  max-width: 52ch;
}

/* ── Skills ─────────────────────────────────────────── */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  max-width: 640px;
}

.skill-group h3 {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.skill-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skill-list li {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
  transition: color 0.3s ease;
}

/* ── About ──────────────────────────────────────────── */

.about-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-8);
  align-items: start;
}

.about-content {
  max-width: 60ch;
}

.about-content p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.75;
  margin-bottom: var(--space-3);
  transition: color 0.3s ease;
}

.about-content p:last-child {
  margin-bottom: 0;
}

.about-content p:hover {
  color: var(--text-primary);
}

.profile-container {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: border-color 0.3s ease;
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Contact ────────────────────────────────────────── */

.contact-intro {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.75;
  max-width: 52ch;
  margin-bottom: var(--space-4);
  transition: color 0.3s ease;
}

/* ── Footer ─────────────────────────────────────────── */

footer {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-6) 3rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color 0.3s ease;
}

footer p {
  color: var(--text-secondary);
  font-size: var(--text-xs);
  transition: color 0.3s ease;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--text-xs);
  transition: color 0.2s;
}

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

/* ── Responsive ─────────────────────────────────────── */

@media (max-width: 768px) {
  .hero {
    padding: 7rem 1.5rem var(--space-8);
  }

  .project-page .hero {
    padding-top: 7rem;
  }

  .about-page .hero {
    padding-top: 7rem;
  }

  .project-meta {
    gap: var(--space-3);
    margin-bottom: var(--space-3);
  }

  .blob-lime {
    top: auto;
    bottom: -60px;
    right: -40px;
  }

  .hero h1 {
    font-size: var(--text-2xl);
    line-height: 1.1;
    letter-spacing: -0.02em;
    max-width: none;
  }

  .hero .subtitle {
    font-size: var(--text-sm);
    max-width: none;
  }

  main {
    padding: 0 1.5rem var(--space-12);
  }

  .page-intro {
    padding-top: 7rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .project-page .cs-section {
    padding: var(--space-8) 1.5rem;
  }

  .about-page main > section {
    padding: var(--space-8) 1.5rem;
  }

  .project-page .cs-gallery-section {
    padding: var(--space-3) 1.5rem var(--space-6);
  }

  .project-page .cs-gallery {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .project-page .cs-grid-2,
  .project-page .cs-grid-3 {
    grid-template-columns: 1fr;
  }

  .project-page .cs-card {
    padding: var(--space-4);
  }

  .project-page .cs-numbered-item {
    grid-template-columns: 2rem 1fr;
    gap: var(--space-3);
  }

  nav .container {
    padding: 1rem 1.5rem;
  }

  nav ul {
    display: none;
  }

  .project {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }

  .project-info {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .project-content h3 {
    margin-top: var(--space-2);
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

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

  .work-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }

  .featured-image {
    padding: 0 1.5rem;
    margin-bottom: var(--space-6);
  }

  .content {
    padding: 0 1.5rem var(--space-12);
  }

  footer {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
    padding: var(--space-4) 1.5rem;
  }
}
