/* ============================================
   SASHA SOROKINA — Portfolio
   Spatial Composition System
   ============================================ */

/* --- Custom Properties --- */
:root {
  /* Color */
  --ground: #ffffff;
  --ink: #181818;
  --meta: #888888;
  --rule: #e0e0e0;
  --accent: #c23a22;

  /* Typography — Families */
  --font-serif: 'Space Grotesk', 'Helvetica Neue', Helvetica, sans-serif;
  --font-mono: 'Space Grotesk', 'Helvetica Neue', Helvetica, sans-serif;

  /* Typography — Scale */
  --t-display: clamp(3.5rem, 8vw, 6.5rem);
  --t-h1: 1.75rem;
  --t-h2: 1.25rem;
  --t-body: 1.0625rem;
  --t-small: 0.875rem;
  --t-meta: 0.75rem;
  --t-micro: 0.625rem;

  /* Spacing (8px base) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 16px;
  --s-4: 24px;
  --s-5: 32px;
  --s-6: 48px;
  --s-7: 64px;
  --s-8: 96px;
  --s-9: 128px;
  --s-10: 192px;
  --s-11: 256px;

  /* Layout */
  --max-text: 420px;
  --page-margin: clamp(37px, 4.57vw, 72px);
}

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

/* --- Base --- */
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--ground);
  min-height: 100vh;
  cursor: url('../images/cursor.svg') 2 1, auto;
}

a, button, [role="button"],
.sketchbook-grid img,
.image-gallery img,
.gallery-grid img,
.gallery-pair img,
.gallery-full img,
.gallery-grid--uniform img,
.g-bleed img,
.g-offset img,
.project-split-images img {
  cursor: url('../images/cursor-pointer.svg') 5 5, pointer;
}

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

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

/* --- Selection --- */
::selection {
  background: var(--rule);
  color: var(--ink);
}

/* --- Layout Container — FULL WIDTH --- */
.container {
  max-width: none;
  padding-left: var(--page-margin);
  padding-right: var(--page-margin);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
  padding: var(--s-4) 0;
  margin-top: var(--s-4);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-name {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--t-body);
  color: var(--ink);
  text-transform: lowercase;
}

.site-logo {
  width: 285px;
  height: auto;
  display: block;
  color: var(--ink);
}

.site-nav {
  display: flex;
  gap: var(--s-5);
}

.site-nav a {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--t-meta);
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--meta);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--ink);
}

.header-rule {
  display: none;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: var(--t-h2);
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
  padding-top: var(--s-7);
  padding-bottom: var(--s-8);
  min-height: 60vh;
}

/* --- Page Title --- */
.page-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--t-h1);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: var(--s-7);
}

/* ============================================
   PROJECT INDEX (Index Page)
   ============================================ */
.project-index {
  list-style: none;
}

.project-row {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  grid-template-rows: auto auto;
  gap: 0 var(--s-4);
  padding: var(--s-4) 0;
  border-bottom: 0.5px solid var(--rule);
}

.project-row:first-child {
  border-top: none;
}

.project-row a {
  display: contents;
}

.project-row a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.project-row:hover .project-title {
  color: var(--meta);
}

.project-number {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: var(--t-micro);
  color: var(--meta);
  padding-top: 0.35em;
  grid-row: 1 / 3;
  align-self: start;
}

.project-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--t-h2);
  line-height: 1.3;
  color: var(--ink);
  justify-self: start;
}


.project-year {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: var(--t-meta);
  color: var(--meta);
  padding-top: 0.25em;
  text-align: right;
}

/* Subtitle — hidden by default, reveal on hover */
.project-subtitle {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: var(--t-small);
  color: var(--meta);
  grid-column: 2 / 3;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 300ms ease, opacity 200ms ease;
}

.project-row:hover .project-subtitle {
  max-height: 3em;
  opacity: 1;
}

/* Index thumbnails — positioned right, aligned with title, push rows down */
.project-thumb {
  position: absolute;
  right: 0;
  top: var(--s-4);
  width: 160px;
  height: 106px;
  object-fit: cover;
  opacity: 0;
  transition: opacity 150ms ease;
  pointer-events: none;
}

.project-row:hover .project-thumb {
  opacity: 1;
}

.project-row:hover {
  padding-bottom: 84px;
}

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

/* ============================================
   PROJECT DETAIL PAGES
   ============================================ */

/* Back link */
.back-link {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: var(--t-micro);
  letter-spacing: 0.04em;
  color: var(--meta);
  display: inline-block;
  text-transform: lowercase;
}

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

/* Project header — enormous title */
.project-header {
  margin-top: clamp(96px, 15vw, 192px);
  margin-bottom: 0;
}

.project-header .project-number {
  display: block;
  margin-bottom: var(--s-2);
}

.project-header .project-title {
  font-size: var(--t-display);
  line-height: 1.0;
  letter-spacing: -0.03em;
  font-weight: 400;
}

.project-header .project-subtitle {
  font-size: var(--t-body);
  margin-top: var(--s-3);
  display: block;
  max-height: none;
  opacity: 1;
  overflow: visible;
  color: var(--meta);
  font-weight: 300;
}

/* Description — small, with large gap from title */
.project-description {
  max-width: var(--max-text);
  margin-top: 80px;
  margin-bottom: 0;
}

.project-description p {
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: var(--s-4);
}

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

/* Authorship Note */
.authorship-note {
  font-weight: 300;
  font-size: 0.8125rem;
  color: var(--meta);
  max-width: var(--max-text);
  margin-top: var(--s-4);
}

/* Metadata Block — sits far below description */
.meta-block {
  margin-top: 64px;
  border-top: 0.5px solid var(--rule);
  border-bottom: none;
  padding-top: 16px;
  max-width: var(--max-text);
}

.meta-row {
  display: flex;
  gap: var(--s-5);
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 0.6875rem;
  line-height: 1.5;
}

.meta-row + .meta-row {
  margin-top: var(--s-2);
}

.meta-label {
  color: var(--meta);
  min-width: 100px;
  flex-shrink: 0;
  text-transform: lowercase;
  letter-spacing: 0.1em;
  font-size: 0.6875rem;
}

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

/* Frameworks Block — floating label */
.frameworks-block {
  margin-top: var(--s-6);
  margin-bottom: 0;
  max-width: var(--max-text);
}

.frameworks-label {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: var(--t-micro);
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--meta);
  margin-bottom: var(--s-3);
}

.frameworks-rule {
  display: none;
}

/* Old list style — fallback */
.frameworks-list {
  list-style: none;
}

.frameworks-list li {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: var(--t-meta);
  line-height: 1.8;
  color: var(--ink);
}

.frameworks-list li::before {
  content: '· ';
  color: var(--meta);
}

/* New frameworks line — horizontal dot-separated */
.frameworks-line {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 0.6875rem;
  line-height: 1.8;
  color: var(--meta);
  max-width: 520px;
  margin-top: 12px;
}

/* ============================================
   HAND-DRAWN PROJECT TITLE
   ============================================ */
.project-title-art {
  margin-top: 32px;
  margin-bottom: 96px;
  max-width: 920px;
  color: var(--ink);
}

.project-title-art svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   TWO-COLUMN SPLIT LAYOUT
   ============================================ */
.project-split {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 48px;
  align-items: start;
}

.project-split-text {
  position: sticky;
  top: 32px;
}

.project-split-text .project-subtitle {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 0.9375rem;
  color: var(--meta);
  margin-bottom: 32px;
  max-height: none;
  opacity: 1;
  overflow: visible;
}

.project-split-text .project-description {
  max-width: 460px;
  margin-top: 0;
}

.project-split-text .project-description p {
  font-size: 0.8125rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.project-split-text .meta-block {
  margin-top: 48px;
}

.project-split-text .frameworks-block {
  margin-top: 24px;
}

.project-split-images {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 95%;
  margin-left: auto;
}

.project-split-images > img {
  width: 115%;
  height: auto;
  display: block;
}

.project-split-images .gallery-grid img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   IMAGE GALLERIES
   ============================================ */

/* Stacked gallery — full-width images */
.image-gallery {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.image-gallery img {
  width: 100%;
}

/* Grid gallery — variable columns */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 2), 1fr);
  gap: var(--s-2);
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Pair — two images side by side */
.gallery-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-2);
}

.gallery-pair img {
  width: 100%;
}

/* Full-width single */
.gallery-full {
  margin: 0;
}

.gallery-full img {
  width: 100%;
}

/* Uniform aspect ratio grid */
.gallery-grid--uniform img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Full-bleed — breaks out of container */
.g-bleed {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 96px;
  margin-bottom: 96px;
}

.g-bleed img {
  width: 100%;
  height: auto;
  display: block;
}

/* Offset — Constructivist asymmetry */
.g-offset {
  width: 60%;
  margin-left: auto;
}

.g-offset img {
  width: 100%;
}

/* ============================================
   PLAIN TEXT PROJECT TITLE (no SVG)
   ============================================ */
.project-title-text {
  font-family: var(--font-serif);
  font-size: var(--t-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  margin: 0;
}

/* ============================================
   PAIRED IMAGE GRID
   ============================================ */
.g-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.g-pair img {
  width: 100%;
  height: auto;
  display: block;
}

.g-pair--uniform {
  grid-auto-rows: 1fr;
}

.g-pair--uniform img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   PROJECT SECTIONS
   ============================================ */
.project-section {
  margin-top: var(--s-5);
}

.project-split-images .project-section:first-child {
  margin-top: -8px;
}

.project-section-title {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: var(--t-micro);
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--meta);
  margin-bottom: var(--s-4);
}

/* ============================================
   PREV/NEXT PROJECT NAVIGATION
   ============================================ */
.project-nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 192px;
  padding-top: 24px;
  border-top: 0.5px solid var(--rule);
}

.project-nav-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--meta);
  display: block;
  margin-bottom: 4px;
  letter-spacing: 0.1em;
}

.project-nav-prev .project-nav-title {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  color: var(--meta);
}

.project-nav-next {
  text-align: right;
}

.project-nav-next .project-nav-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--ink);
}

.project-nav a:hover .project-nav-title {
  color: var(--meta);
}

/* ============================================
   SKETCHBOOK
   ============================================ */
.sketchbook-section {
  margin-bottom: var(--s-8);
}

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

.sketchbook-section-title {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: var(--t-micro);
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--meta);
  margin-bottom: var(--s-4);
}

.sketchbook-title-art {
  max-width: 36%;
  color: var(--ink);
  margin-bottom: var(--s-5);
}

.sketchbook-section:nth-child(1) .sketchbook-title-art,
.sketchbook-section:nth-child(2) .sketchbook-title-art {
  max-width: 23%;
}

.sketchbook-title-art svg {
  width: 100%;
  height: auto;
  display: block;
}

.sketchbook-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}

.sketchbook-grid > img,
.sketchbook-grid > .sketchbook-stack {
  transition: transform 0.2s ease;
}

.sketchbook-grid > img:hover,
.sketchbook-grid > .sketchbook-stack:hover {
  transform: scale(1.08);
  z-index: 2;
  position: relative;
}

.sketchbook-grid img {
  width: 160px;
  flex-shrink: 0;
  height: auto;
  display: block;
}

.sketchbook-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  width: 160px;
}

.sketchbook-stack img {
  width: 100%;
  height: auto;
  display: block;
}

/* Lightbox overlay */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.96);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox-overlay img {
  max-width: 85vw;
  max-height: 85vh;
  object-fit: contain;
  display: block;
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: var(--t-h2);
  color: var(--meta);
  cursor: pointer;
  padding: var(--s-4);
  line-height: 1;
}

.lightbox-nav:hover {
  color: var(--ink);
}

.lightbox-prev {
  left: var(--s-4);
}

.lightbox-next {
  right: var(--s-4);
}

.lightbox-close {
  position: fixed;
  top: var(--s-4);
  right: var(--s-4);
  z-index: 1001;
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: var(--t-h1);
  color: var(--meta);
  cursor: pointer;
  line-height: 1;
}

.lightbox-close:hover {
  color: var(--ink);
}

.lightbox-counter {
  position: fixed;
  bottom: var(--s-4);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001;
  font-family: var(--font-mono);
  font-size: var(--t-meta);
  color: var(--meta);
}

/* ============================================
   ABOUT + RESUME PAGE (two-column layout)
   ============================================ */
.about-title-art {
  padding-top: clamp(32px, 7vh, 80px);
  margin-bottom: var(--s-7);
  max-width: 480px;
  color: var(--ink);
}

.about-title-art svg {
  width: 100%;
  height: auto;
  display: block;
}

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

.about-column {
  position: sticky;
  top: var(--s-5);
}

.about-content {
  max-width: none;
}

.about-content p {
  font-size: var(--t-body);
  line-height: 1.65;
  margin-bottom: var(--s-4);
}

/* Pull quote — indentation only, no border */
.pull-quote {
  margin: var(--s-7) 0;
  margin-left: var(--s-5);
  max-width: none;
}

.pull-quote blockquote {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: var(--t-body);
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: var(--s-3);
}

.pull-quote cite {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: var(--t-micro);
  font-style: normal;
  color: var(--meta);
  display: block;
}

.contact-block {
  margin-top: var(--s-8);
}

.contact-block a {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: var(--t-meta);
  color: var(--ink);
}

.contact-block a:hover {
  color: var(--meta);
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-page {
  margin-top: var(--s-5);
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-group {
  margin-bottom: var(--s-8);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.contact-label-art {
  max-width: 144px;
  color: var(--ink);
  margin-bottom: var(--s-3);
}

.contact-group:nth-child(3) .contact-label-art {
  max-width: 176px;
}

.contact-group:nth-child(1) .contact-link-art {
  max-width: 750px;
}

.contact-label-art svg {
  width: 100%;
  height: auto;
  display: block;
}

.contact-link-art {
  display: block;
  width: 100%;
  max-width: 568px;
  color: var(--ink);
}

.contact-link-art svg {
  width: 100%;
  height: auto;
  display: block;
}

.contact-link-art svg path {
  stroke-width: 3;
}

.contact-link-art:hover {
  color: var(--meta);
}

/* ============================================
   RESUME PAGE
   ============================================ */
.resume-content {
  max-width: none;
}

.resume-name {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--t-display);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--s-8);
  display: none;
}

.resume-section {
  margin-bottom: var(--s-7);
}

.resume-section-title {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: var(--t-micro);
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--meta);
  padding-bottom: var(--s-2);
  border-bottom: 0.5px solid var(--rule);
  margin-bottom: var(--s-4);
}

.resume-entry {
  margin-bottom: var(--s-5);
}

.resume-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-bottom: var(--s-1);
}

.resume-role {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: var(--t-body);
}

.resume-company {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--t-body);
  color: var(--meta);
}

.resume-dates {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: var(--t-meta);
  color: var(--meta);
}

.resume-location {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: var(--t-meta);
  color: var(--meta);
}

.resume-description {
  font-size: var(--t-small);
  line-height: 1.6;
  color: var(--ink);
  margin-top: var(--s-2);
}

.resume-education {
  font-family: var(--font-serif);
  font-size: var(--t-body);
  line-height: 1.6;
}

.resume-education .degree {
  font-weight: 500;
}

.resume-education .school-years {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: var(--t-meta);
  color: var(--meta);
  display: block;
  margin-top: var(--s-1);
}

.resume-skills {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--s-2) var(--s-4);
  font-size: var(--t-small);
}

.resume-skills dt {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: var(--t-micro);
  color: var(--meta);
  text-transform: lowercase;
  letter-spacing: 0.1em;
  padding-top: 0.2em;
}

.resume-skills dd {
  font-family: var(--font-serif);
  line-height: 1.5;
}

.resume-list {
  list-style: none;
}

.resume-list li {
  font-family: var(--font-serif);
  font-size: var(--t-small);
  line-height: 1.6;
  padding: var(--s-1) 0;
}

.resume-list li .item-date {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: var(--t-meta);
  color: var(--meta);
}

/* ============================================
   FOOTER — right-aligned corner
   ============================================ */
.site-footer {
  margin-top: 110px;
  padding: 0 0 32px;
  border-top: none;
}

.site-footer p {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: var(--t-micro);
  color: var(--meta);
  letter-spacing: 0.02em;
}

.site-footer a {
  color: var(--meta);
}

.site-footer a:hover {
  color: var(--ink);
}

.footer-socials {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.footer-socials a {
  display: block;
  width: 49px;
  height: 49px;
  color: var(--ink);
  overflow: hidden;
}

.footer-socials a:hover {
  color: var(--meta);
}


.footer-socials svg {
  width: 49px;
  height: 49px;
  display: block;
  stroke-width: 3.5;
}

/* ============================================
   RESPONSIVE — Tablet
   ============================================ */
@media (max-width: 1023px) {
  .project-header {
    margin-top: 8vh;
  }

  .gallery-grid {
    --cols: 2;
  }
}

/* ============================================
   RESPONSIVE — Mobile
   ============================================ */
@media (max-width: 767px) {
  :root {
    --t-display: 2.5rem;
    --t-h1: 1.375rem;
    --t-h2: 1.125rem;
    --max-text: 100%;
  }

  html {
    font-size: 15px;
  }

  .site-header .container {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    padding-top: var(--s-3);
    gap: 0;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    display: block;
    padding: var(--s-3) 0;
    border-bottom: 0.5px solid var(--rule);
  }

  /* Subtitle always visible on mobile */
  .project-subtitle {
    max-height: none;
    opacity: 1;
  }

  /* Project index — mobile stack */
  .project-row {
    grid-template-columns: 36px 1fr;
    grid-template-rows: auto auto auto;
  }

  .project-year {
    grid-column: 2;
    grid-row: 1;
    text-align: left;
    font-size: var(--t-micro);
    margin-bottom: var(--s-1);
  }

  .project-title {
    grid-column: 2;
    grid-row: 2;
  }

  .project-subtitle {
    grid-column: 2;
    grid-row: 3;
  }

  .project-number {
    grid-row: 2 / 4;
  }

  /* Hide thumbnails on mobile */
  .project-thumb {
    display: none;
  }

  /* Project detail — reduce spacing */
  .project-header {
    margin-top: var(--s-6);
    margin-bottom: 0;
  }

  .project-description {
    margin-top: var(--s-6);
  }

  .frameworks-block {
    margin-top: var(--s-6);
  }

  .project-section {
    margin-top: var(--s-7);
  }

  /* Galleries */
  .gallery-grid {
    --cols: 2;
  }

  .gallery-pair {
    grid-template-columns: 1fr;
  }

  .g-pair {
    grid-template-columns: 1fr;
  }

  /* Project split layout */
  .project-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .project-split-text {
    position: static;
  }

  .project-title-art {
    max-width: 100%;
  }

  /* Sketchbook */
  .sketchbook-grid img {
    width: calc(50% - 4px);
  }

  /* Resume */
  .resume-skills {
    grid-template-columns: 1fr;
  }

  .resume-entry-header {
    flex-direction: column;
  }

  /* Meta */
  .meta-row {
    flex-direction: column;
    gap: var(--s-1);
  }

  .meta-label {
    min-width: unset;
  }

  /* About + Resume */
  .about-resume-layout {
    grid-template-columns: 1fr;
    padding-top: 12vh;
  }

  .about-column {
    position: static;
  }

  /* Footer */
  .site-footer {
    margin-top: var(--s-9);
  }

  /* Prev/next nav */
  .project-nav {
    margin-top: var(--s-8);
  }

  .project-nav-next .project-nav-title {
    font-size: 1.125rem;
  }

  /* Full bleed smaller margins on mobile */
  .g-bleed {
    margin-top: 48px;
    margin-bottom: 48px;
  }
}
