/* Shubham Nagar, portfolio. Direction: the contact sheet (frames from real rollouts, set in strict rows). */

:root {
  --bg: #dedad3;
  --surface: #d3cec6;
  --ink: #0a0a0a;
  --muted: #5c5852;
  --accent: #256f82;
  --accent-ink: #ffffff;
  --dark: #0a0a0a;
  --dark-ink: #e4e3e0;
  --dark-muted: #a8a39b;
  --dark-surface: #1a1918;

  --font: "Work Sans", system-ui, sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(2.75rem, 0.9rem + 6.4vw, 7rem);

  --margin: clamp(1.25rem, 3.6vw, 4.5rem);
  --gutter: clamp(1rem, 1.6vw, 1.5rem);
  --section: clamp(7.5rem, 13vw, 15rem);
  --reel-h: clamp(13.75rem, 34vw, 31rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--step-body); font-weight: 400; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:target { scroll-margin-top: 2rem; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-weight: 300; text-wrap: balance; }
p { max-width: 62ch; text-wrap: pretty; }
p + p { margin-top: 0.9em; }
.nums { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip-link { position: fixed; z-index: 20; top: 0.75rem; left: 0.75rem; padding: 0.7rem 1rem; background: var(--bg); color: var(--ink); transform: translateY(-160%); transition: transform var(--t-ui) var(--ease-out); }
.skip-link:focus { transform: none; }

/* ---------- controls ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0 1.5rem; background: var(--accent); color: var(--accent-ink); font-weight: 500; text-decoration: none; white-space: nowrap; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.button:hover { background: #1d5a6a; }
.button:active { transform: scale(0.97); }
.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.25em; text-decoration-thickness: 0.07em; transition: text-decoration-color var(--t-hover) ease; }
.link:hover, .link:focus-visible { text-decoration-color: currentColor; }
.link-plain { text-decoration: underline; text-underline-offset: 0.22em; text-decoration-thickness: 0.07em; transition: color var(--t-hover) ease, text-decoration-color var(--t-hover) ease; }
.link-plain:hover { color: var(--accent); }

/* ---------- hero: lit strip, four corners ---------- */
.hero { overflow-x: clip; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; min-height: 100svh; padding: clamp(1.25rem, 3vw, 2.75rem) 0; background: var(--dark); color: var(--dark-ink); }
.hero__top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: var(--gutter); padding: 0 var(--margin); font-size: var(--step-small); font-weight: 500; }
.wordmark { text-decoration: none; }
.hero__nav, .profiles { display: flex; gap: 1.5rem; }
.profiles { justify-self: end; }

.strip { min-width: 0; align-self: center; padding: clamp(2rem, 5vh, 3.5rem) 0 0; --strip-h: clamp(16rem, 44vh, 26rem); }
.strip__track { display: flex; gap: 10px; margin: 0 var(--margin); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; }
.strip__track::-webkit-scrollbar { display: none; }
.strip__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.strip__frame { flex: none; scroll-snap-align: start; }
.strip__frame a { display: block; height: var(--strip-h); }
.strip__frame img, .strip__frame video { width: auto; height: 100%; max-width: 82vw; object-fit: cover; background: var(--dark-surface); filter: brightness(0.5); transition: filter 500ms var(--ease-soft); user-select: none; -webkit-user-drag: none; }
.strip__frame--clip video, .strip__frame:hover img, .strip__frame a:focus-visible img { filter: none; }
.strip__cap { width: 0; min-width: 100%; margin-top: 0.75rem; color: var(--dark-muted); font-size: var(--step-small); line-height: 1.4; }
.strip__frame--clip .strip__cap { color: var(--dark-ink); }

.hero__foot { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: var(--gutter); padding: clamp(2rem, 4.5vh, 3.5rem) var(--margin) 0; }
.hero__intro h1 { max-width: 9em; font-size: clamp(2.75rem, 0.9rem + 5.4vw, 6.25rem); line-height: 0.95; letter-spacing: -0.045em; }
.hero__intro p { margin-top: 1.25rem; color: var(--dark-ink); font-size: var(--step-lead); line-height: 1.35; max-width: 46ch; }
.hero__actions { display: flex; align-items: center; gap: 1.5rem; font-size: var(--step-small); font-weight: 500; }

/* ---------- work: one slide, two neighbours ---------- */
.work { padding: var(--section) 0 0; }
.work__title { padding: 0 var(--margin); margin-bottom: clamp(3rem, 7vw, 6rem); font-size: var(--step-head); line-height: 1.02; letter-spacing: -0.03em; }
.project + .project { margin-top: var(--section); }

.reel { display: flex; gap: 20px; height: var(--reel-h); padding: 0 var(--margin); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; }
.reel::-webkit-scrollbar { display: none; }
.reel.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.reel > li { position: relative; flex: none; height: 100%; scroll-snap-align: center; }
.reel img, .reel video { width: auto; height: 100%; max-width: min(84vw, 70rem); object-fit: cover; background: var(--surface); user-select: none; -webkit-user-drag: none; }
.reel img[width="630"], .reel img[width="1380"] { object-fit: contain; background: var(--dark); }
.reel video.is-composite { object-fit: contain; background: #0f1a24; }
.project--minor .reel { height: calc(var(--reel-h) * 0.68); }
.project--minor + .project--minor { margin-top: calc(var(--section) * 0.75); }

.facts { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 0.75rem; margin-top: 1.75rem; padding: 0 var(--margin); align-items: baseline; }
.facts__name { grid-column: 1 / 4; }
.facts__name h3 { font-size: var(--step-lead); font-weight: 400; line-height: 1.2; letter-spacing: -0.01em; }
.facts__name p { color: var(--muted); font-size: var(--step-small); margin-top: 0.3rem; }
.facts__result { grid-column: 4 / 7; font-size: var(--step-lead); line-height: 1.2; }
.facts__year { grid-column: 7 / 10; color: var(--muted); }
.facts__stack { grid-column: 10 / 13; color: var(--muted); }

.project__body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); margin-top: 2rem; padding: 0 var(--margin); }
.project__body > p:first-child { grid-column: 4 / 10; grid-row: 1 / span 2; }
.project__body > p + p { grid-column: 10 / 13; grid-row: 1; margin-top: 0; }
.project__body > .project__links { grid-column: 10 / 13; grid-row: 2; align-self: start; }
.project__body > p:only-of-type + .project__links { grid-row: 1; margin-top: 0.2rem; }
.project__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; margin-top: 1.5rem; font-weight: 500; }
.project__body--two > p:first-child { grid-column: 4 / 8; }
.project__body--two > p + p { grid-column: 9 / 13; }
.project__body--two > .project__links { grid-column: 9 / 13; }
.project__body--split > div:first-child { grid-column: 4 / 8; }
.project__body--split > .ckpt { grid-column: 9 / 13; }

/* ---------- live thing: checkpoint comparison ---------- */
.ckpt { align-self: start; padding: 1.75rem; background: var(--surface); }
.ckpt__title { font-size: var(--step-body); font-weight: 500; }
.ckpt__switch { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 1.25rem; }
.ckpt__switch button { min-height: 2.75rem; padding: 0 0.9rem; background: var(--bg); font-size: var(--step-small); transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.ckpt__switch button:hover { background: #c7c1b8; }
.ckpt__switch button:active { transform: scale(0.97); }
.ckpt__switch button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.ckpt__bars { display: grid; gap: 1rem; margin-top: 1.75rem; }
.ckpt__row { display: grid; grid-template-columns: 8.5rem 1fr 3rem; align-items: center; gap: 0.75rem; font-size: var(--step-small); }
.ckpt__row b { font-weight: 500; font-size: var(--step-body); text-align: right; font-variant-numeric: tabular-nums; }
.ckpt__track { height: 14px; background: var(--bg); }
.ckpt__track i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--v, 0)); transition: transform 700ms var(--ease-out); }
.ckpt__note { min-height: 3em; margin-top: 1.25rem; font-size: var(--step-small); }
.ckpt__table { width: 100%; margin-top: 1.25rem; border-collapse: collapse; font-size: var(--step-small); }
.ckpt__table th, .ckpt__table td { padding: 0.5rem 0.4rem; text-align: right; font-weight: 400; font-variant-numeric: tabular-nums; }
.ckpt__table th:first-child { text-align: left; }
.ckpt__table tbody tr:nth-child(odd) { background: var(--bg); }
html:not(.js) .ckpt__switch, html:not(.js) .ckpt__bars { display: none; }
.js .ckpt__table { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ---------- results: a table without lines ---------- */
.results { padding: var(--section) var(--margin) 0; }
.results__title { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); font-size: var(--step-display); line-height: 0.95; letter-spacing: -0.045em; }
.results__title span { grid-column: 1 / -1; }
.results__title span + span { grid-column: 3 / -1; }
.results__wrap { margin-top: clamp(3rem, 5vw, 4.5rem); }
.results__table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.results__table thead th { padding: 0 1rem 0.9rem; color: var(--muted); font-size: var(--step-small); font-weight: 400; text-align: left; }
.results__table td { padding: 0.9rem 1rem; vertical-align: baseline; }
.results__table th:nth-child(1), .results__table td:nth-child(1) { width: 16.66%; font-variant-numeric: tabular-nums; }
.results__table th:nth-child(2), .results__table td:nth-child(2) { width: 33.33%; }
.results__table th:nth-child(3), .results__table td:nth-child(3) { width: 33.33%; color: var(--muted); }
.results__table th:nth-child(4), .results__table td:nth-child(4) { width: 16.66%; text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.results__table tbody tr:nth-child(odd):not(.results__gap) { background: var(--surface); }
.results__gap td { padding: 0.9rem 0; }

/* ---------- data: a dark band of two-ended rows ---------- */
.data { margin-top: var(--section); padding: clamp(4.5rem, 7vw, 6.5rem) var(--margin); background: var(--dark); color: var(--dark-ink); }
.data__col { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.data__head { grid-column: 1 / 5; grid-row: 1 / span 6; }
.data__head h2 { font-size: var(--step-head); line-height: 1.02; letter-spacing: -0.03em; }
.data__head a { display: inline-block; margin-top: 1.5rem; font-weight: 500; }
.data__group { grid-column: 6 / 13; color: var(--dark-muted); font-size: var(--step-small); }
.data__group:not(:first-of-type) { margin-top: 2.5rem; }
.data .rows { grid-column: 6 / 13; margin-top: 0.5rem; }
.rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; min-height: 2.75rem; padding: 0.55rem 0; }
.rows li > :last-child { flex: none; color: var(--muted); font-size: var(--step-small); text-align: right; }
.data .rows li > :last-child { color: var(--dark-muted); }
.rows a { display: inline-flex; align-items: baseline; gap: 0.6rem; text-decoration: none; overflow-wrap: anywhere; transition: color var(--t-hover) ease; }
.rows a:hover { color: #7fc3d4; }
.dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #ffcf3f; transform: translateY(-1px); }
.dot--ink { background: var(--dark-ink); }

/* ---------- intro: photo with facts, then the story ---------- */
.intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding: var(--section) var(--margin) 0; }
.intro__side { grid-column: 1 / 6; }
.intro__photo { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--surface); }
.intro__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem var(--gutter); margin-top: 1.75rem; font-size: var(--step-small); }
.intro__facts dt { color: var(--muted); }
.intro__facts dd { margin-top: 0.15rem; }
.intro__text { grid-column: 7 / 13; }
.intro__text h2 { font-size: var(--step-head); line-height: 1.02; letter-spacing: -0.03em; }
.intro__lead { margin-top: 2rem; font-size: var(--step-lead); line-height: 1.4; }
.intro__text div p { margin-top: 0.9em; }
.intro__text div { margin-top: 1.5rem; }
.intro__sub { margin-top: 3rem; font-size: var(--step-body); font-weight: 500; }
.intro .rows { margin-top: 0.5rem; }
.rows b { font-weight: 500; }

/* ---------- contact: sentence, portrait, links ---------- */
.contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; padding: var(--section) var(--margin) clamp(5rem, 8vw, 7.5rem); }
.contact__sentence { grid-column: 1 / 8; font-size: clamp(1.5rem, 1rem + 1.6vw, 2.25rem); line-height: 1.15; letter-spacing: -0.02em; font-weight: 300; max-width: 24ch; }
.contact__links { grid-column: 9 / 13; display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; font-size: var(--step-body); }
.contact__links h2 { margin-bottom: 0.9rem; font-size: var(--step-body); font-weight: 500; }
.contact__links p { margin-top: 0.6rem; color: var(--muted); font-size: var(--step-small); }

/* ---------- footer: one quiet line ---------- */
.foot { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.5rem; padding: 0 var(--margin) 2rem; font-size: var(--step-small); color: var(--muted); }
.foot nav { display: flex; gap: 1.5rem; }
.foot a { color: var(--ink); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot p:last-child { justify-self: end; }

/* ---------- deep pages ---------- */
.page-top { display: grid; grid-template-columns: 1fr auto; gap: var(--gutter); padding: clamp(1.25rem, 3vw, 2.75rem) var(--margin); font-size: var(--step-small); font-weight: 500; }
.page-hero { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 1.5rem; padding: clamp(2rem, 6vw, 5rem) var(--margin) clamp(2.5rem, 4vw, 3.5rem); }
.page-hero h1 { grid-column: 1 / 9; font-size: clamp(2.25rem, 1rem + 4.4vw, 5.25rem); line-height: 0.98; letter-spacing: -0.04em; }
.page-hero p { grid-column: 1 / 8; font-size: var(--step-lead); line-height: 1.35; }
.page-hero dl { grid-column: 9 / 13; grid-row: 1 / span 2; align-self: end; display: grid; gap: 1rem; font-size: var(--step-small); }
.page-hero dt { color: var(--muted); }
.page-media { padding: 0 var(--margin); }
.page-media video, .page-media img { width: 100%; height: auto; max-height: 82svh; object-fit: contain; background: var(--dark); }
.page-media figcaption { margin-top: 0.75rem; color: var(--muted); font-size: var(--step-small); }
.chapter { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding: clamp(5rem, 9vw, 8rem) var(--margin) 0; }
.chapter > h2 { grid-column: 1 / 4; font-size: var(--step-lead); font-weight: 400; line-height: 1.2; }
.chapter > :not(h2) { grid-column: 4 / 11; }
.chapter > p + ul, .chapter > ul + p, .chapter > p + table, .chapter > table + p, .chapter > p + figure, .chapter > figure + p { margin-top: 1.5rem; }
.chapter--dark { margin-top: clamp(5rem, 9vw, 8rem); padding-bottom: clamp(5rem, 9vw, 8rem); background: var(--dark); color: var(--dark-ink); }
.spec { display: grid; grid-template-columns: minmax(8rem, 0.4fr) 1fr; column-gap: var(--gutter); }
.spec dt, .spec dd { padding: 0.7rem 0; }
.spec dt { color: var(--muted); font-size: var(--step-small); padding-top: 0.85rem; }
.spec dd { margin: 0; }
.chapter--dark .spec dt { color: var(--dark-muted); }
.plain-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.plain-table th, .plain-table td { padding: 0.8rem 1rem; text-align: right; font-weight: 400; }
.plain-table th:first-child, .plain-table td:first-child { text-align: left; }
.plain-table thead th { color: var(--muted); font-size: var(--step-small); }
.plain-table tbody tr:nth-child(odd) { background: var(--surface); }
.failures li { padding: 1rem 0; }
.failures li + li { margin-top: 0.5rem; }
.failures b { display: block; font-weight: 500; }
.stages { padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.stages li { min-height: 7.5rem; padding: 1rem; background: var(--dark-surface); }
.stages b { display: block; font-weight: 500; color: var(--dark-ink); }
.stages span { display: block; margin-top: 0.4rem; color: var(--dark-muted); font-size: var(--step-small); }
.page-reel { height: calc(var(--reel-h) * 0.72); margin-top: clamp(5rem, 9vw, 8rem); }
.table-note { margin-top: 1.25rem; color: var(--muted); font-size: var(--step-small); }
.chapter--dark .table-note, .chapter--dark .plain-table thead th { color: var(--dark-muted); }
.plain-table--dark tbody tr:nth-child(odd) { background: var(--dark-surface); }
.ckpt--page { max-width: 40rem; }
.page-next { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: var(--gutter); padding: var(--section) var(--margin) clamp(4rem, 7vw, 6rem); }
.page-next a.big { font-size: var(--step-head); font-weight: 300; line-height: 1.05; letter-spacing: -0.03em; text-decoration: none; }
.page-next a.big:hover { color: var(--accent); }

/* ---------- motion (content stays visible without JavaScript) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0.3; transform: translateY(28px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .hero__top, .js .strip, .js .hero__foot { animation: rise var(--t-reveal) var(--ease-out) both; }
  .js .strip { animation-delay: 120ms; }
  .js .page-hero > *, .js .page-media, .js .page-top { animation: rise var(--t-reveal) var(--ease-out) both; }
  .js .page-hero > p { animation-delay: 90ms; }
  .js .page-hero > dl { animation-delay: 180ms; }
  .js .page-media { animation-delay: 260ms; }
  .js .hero__foot { animation-delay: 240ms; }
  .js .strip__frame { animation: slide-in 1100ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms + 200ms); }
  .reel img, .reel video { transition: transform 900ms var(--ease-soft); }
  .reel > li:hover img { transform: scale(1.015); }
}
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }
@keyframes slide-in { from { opacity: 0; transform: translateX(48px); } }
@media (prefers-reduced-motion: reduce) {
  .ckpt__track i { transition: none; }
}

/* ---------- tablet ---------- */
@media (max-width: 960px) {
  .hero__top { grid-template-columns: 1fr auto; }
  .hero__nav { display: none; }
  .facts__name { grid-column: 1 / 7; }
  .facts__result { grid-column: 7 / 13; }
  .facts__year { grid-column: 1 / 7; }
  .facts__stack { grid-column: 7 / 13; }
  .project__body > p:first-child, .project__body > p + p, .project__body > .project__links { grid-column: 1 / 11; grid-row: auto; }
  .project__body > p + p { margin-top: 0.9em; }
  .project__body > p:only-of-type + .project__links { grid-row: auto; margin-top: 1.5rem; }
  .project__body--split > div:first-child { grid-column: 1 / 7; }
  .project__body--split > .ckpt { grid-column: 7 / 13; }
  .data__head { grid-column: 1 / -1; grid-row: auto; margin-bottom: 3rem; }
  .data__group, .data .rows { grid-column: 1 / -1; }
  .intro__side { grid-column: 1 / 6; }
  .intro__text { grid-column: 7 / 13; }
  .intro__facts { grid-template-columns: 1fr; }
  .contact__sentence { grid-column: 1 / -1; max-width: 26ch; margin-bottom: 3rem; }
  .contact__links { grid-column: 1 / -1; }
  .chapter > h2 { grid-column: 1 / -1; margin-bottom: 1.5rem; }
  .chapter > :not(h2) { grid-column: 1 / -1; }
  .page-hero h1, .page-hero p { grid-column: 1 / -1; }
  .page-hero dl { grid-column: 1 / -1; grid-row: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- phone ---------- */
@media (max-width: 640px) {
  :root { --margin: 1.25rem; --section: 6rem; --reel-h: 15rem; }
  .profiles { gap: 1rem; }
  .profiles a:first-child { display: none; }
  .strip { --strip-h: 40svh; }
  .hero__foot { grid-template-columns: 1fr; gap: 1.75rem; }
  .project + .project { margin-top: 4.5rem; }
  .reel { gap: 10px; }
  .facts__name, .facts__result, .facts__year, .facts__stack { grid-column: 1 / -1; }
  .facts__year, .facts__stack { grid-column: span 6; font-size: var(--step-small); }
  .project__body--split > div:first-child, .project__body--split > .ckpt { grid-column: 1 / -1; }
  .project__body--split > .ckpt { margin-top: 2rem; padding: 1.25rem; }
  .ckpt__row { grid-template-columns: 6.5rem 1fr 2.75rem; }
  .results__title { font-size: 11vw; }
  .results__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .results__table, .results__table tbody, .results__table tr { display: block; }
  .results__table tr { display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; padding: 0.85rem 0.75rem; }
  .results__table td { display: block; width: auto !important; padding: 0; }
  .results__table td:nth-child(1) { grid-column: 1 / -1; font-size: 1.375rem; }
  .results__table td:nth-child(1):empty { display: none; }
  .results__table td:nth-child(2) { grid-column: 1; }
  .results__table td:nth-child(3) { grid-column: 1; font-size: var(--step-small); }
  .results__table td:nth-child(4) { grid-column: 2; grid-row: span 2; align-self: start; }
  .rows li { flex-wrap: wrap; gap: 0.15rem 1rem; }
  .rows li > :last-child { text-align: left; }
  .intro__side, .intro__text { grid-column: 1 / -1; }
  .intro__side { display: contents; }
  .intro__photo { grid-column: 1 / -1; order: -2; }
  .intro__text { order: -1; margin-top: 2.5rem; }
  .intro__facts { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 2.5rem; }
  .intro__lead { font-size: var(--step-body); }
  .contact__sentence { font-size: 1.5rem; }
  .foot { grid-template-columns: 1fr; gap: 0.5rem; }
  .foot p:last-child { justify-self: start; }
  .page-hero dl { grid-template-columns: 1fr; }
  .stages { grid-template-columns: 1fr; }
  .page-next { grid-template-columns: 1fr; }
}
