:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-strong: #eef3f6;
  --text: #172027;
  --muted: #5d6a73;
  --border: #d9e1e7;
  --accent: #087e8b;
  --accent-strong: #065e68;
  --warm: #b7791f;
  --shadow: 0 18px 45px rgba(23, 32, 39, 0.08);
  --max: 1120px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #11161a;
  --surface: #171f24;
  --surface-strong: #202b31;
  --text: #eef3f6;
  --muted: #a8b4bd;
  --border: #314149;
  --accent: #48b8c5;
  --accent-strong: #7bd4dd;
  --warm: #e4b15c;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.58;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent-strong);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--warm);
}

img,
svg {
  max-width: 100%;
}

.skip-link {
  background: var(--text);
  color: var(--bg);
  left: 1rem;
  padding: 0.65rem 0.85rem;
  position: absolute;
  top: -5rem;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}

.nav-wrap {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max);
  min-height: 72px;
  padding: 0 1.25rem;
  width: 100%;
}

.nav-toggle {
  align-items: center;
  background: var(--text);
  border: 1px solid var(--text);
  border-radius: 6px;
  color: var(--bg);
  cursor: pointer;
  display: none;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  min-height: 42px;
  padding: 0.55rem 0.8rem;
}

.brand {
  color: var(--text);
  display: inline-flex;
  flex-direction: column;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
}

.brand span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 0.4rem;
}

.site-nav a,
.theme-toggle {
  border-radius: 6px;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.55rem 0.7rem;
  text-decoration: none;
}

.site-nav a[aria-current="page"],
.site-nav a:hover,
.theme-toggle:hover {
  background: var(--surface-strong);
  color: var(--text);
}

.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  cursor: pointer;
  min-height: 40px;
}

.nav-toggle:focus-visible,
.site-nav a:focus-visible,
.theme-toggle:focus-visible,
.button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.container {
  margin: 0 auto;
  max-width: var(--max);
  padding: 0 1.25rem;
}

.hero {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  min-height: 560px;
  padding: 3.25rem 1.25rem;
}

.lab-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 4rem 0;
}

.lab-hero-grid {
  align-items: center;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
}

.lab-hero-grid h1 {
  max-width: 12ch;
}

.lab-hero-stack {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(6, 72px);
  min-height: 480px;
}

.lab-hero-stack img {
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.lab-hero-stack img:nth-child(1) {
  grid-column: 2 / 8;
  grid-row: 1 / 5;
  transform: rotate(1deg);
}

.lab-hero-stack img:nth-child(2) {
  grid-column: 1 / 5;
  grid-row: 3 / 7;
  transform: rotate(-3deg);
}

.lab-hero-stack img:nth-child(3) {
  grid-column: 5 / 9;
  grid-row: 4 / 7;
  transform: rotate(2deg);
}

.lab-stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lab-stats div {
  border-left: 3px solid var(--accent);
  padding-left: 0.85rem;
}

.lab-stats strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1;
}

.lab-stats span {
  color: var(--muted);
  display: block;
  font-size: 0.9rem;
  margin-top: 0.35rem;
}

.lab-story {
  align-items: start;
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(220px, 0.32fr) minmax(0, 0.68fr);
}

.lab-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  position: sticky;
  top: 96px;
}

.lab-prose {
  max-width: 780px;
}

.lab-prose h2 {
  margin-bottom: 1.25rem;
}

.lab-prose p {
  color: color-mix(in srgb, var(--text) 88%, var(--muted));
}

.pullquote {
  border-left: 4px solid var(--warm);
  color: var(--text) !important;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 1.5rem 0;
  padding: 0.25rem 0 0.25rem 1rem;
}

.timeline {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.timeline article {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.1rem;
}

.timeline span {
  color: var(--accent-strong);
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

.lab-gallery {
  column-count: 3;
  column-gap: 1rem;
}

.lab-gallery figure {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  break-inside: avoid;
  margin: 0 0 1rem;
  overflow: hidden;
}

.lab-gallery img {
  aspect-ratio: 4 / 3;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.lab-gallery figcaption {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  padding: 0.65rem 0.8rem;
}

.lab-case-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 4rem 0;
}

.lab-case-hero-grid {
  align-items: center;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.72fr);
}

.lab-case-intro h1 {
  max-width: 13ch;
}

.lab-highlight-strip {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.lab-highlight-strip span {
  align-items: baseline;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  display: flex;
  gap: 0.55rem;
  padding: 0.65rem 0.75rem;
}

.lab-highlight-strip strong {
  color: var(--text);
}

.lab-influence-note {
  background: color-mix(in srgb, var(--surface-strong) 82%, var(--surface));
  border: 1px solid var(--border);
  border-left: 4px solid var(--warm);
  border-radius: 8px;
  margin-top: 1.25rem;
  padding: 1rem;
}

.lab-influence-note p:last-of-type {
  color: var(--muted);
  margin-bottom: 0.65rem;
}

.lab-influence-note a {
  font-size: 0.92rem;
  font-weight: 800;
}

.lab-notes {
  display: grid;
  gap: 1rem;
  margin: 2rem 0 0;
}

.lab-featured-photo,
.lab-inline-photo {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin: 0;
  overflow: hidden;
}

.lab-featured-photo img,
.lab-inline-photo img {
  aspect-ratio: 4 / 3;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.lab-featured-photo figcaption,
.lab-inline-photo figcaption {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.75rem 0.9rem;
}

.lab-case-layout {
  align-items: start;
  display: grid;
  gap: 2.25rem;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 360px);
}

.lab-main-column {
  max-width: 760px;
}

.lab-main-column p {
  color: color-mix(in srgb, var(--text) 90%, var(--muted));
}

.lab-section-header {
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
}

.lab-section-header p:last-child {
  color: var(--muted);
  margin-bottom: 0;
}

.lab-inline-photo {
  margin: 1.75rem 0;
}

.lab-progression {
  margin-top: 3rem;
}

.lab-progression .timeline {
  grid-template-columns: 1fr;
}

.lab-progression .timeline article {
  background: var(--surface);
  display: grid;
  gap: 0.4rem 1rem;
  grid-template-columns: 120px minmax(0, 1fr);
}

.lab-progression .timeline article span {
  grid-row: span 2;
}

.lab-media-rail {
  min-width: 0;
}

.lab-gallery-panel {
  background: color-mix(in srgb, var(--surface) 96%, var(--surface-strong));
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 1rem;
  position: sticky;
  top: 96px;
}

.lab-gallery-head {
  align-items: start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}

.lab-gallery-head h2 {
  font-size: 1.25rem;
  margin-bottom: 0;
}

.lab-gallery-head span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.lab-gallery-preview {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: zoom-in;
  display: block;
  overflow: hidden;
  padding: 0;
  width: 100%;
}

.lab-gallery-preview:focus-visible,
.lab-thumbs button:focus-visible,
.lab-gallery-controls button:focus-visible,
.lab-lightbox button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.lab-gallery-preview img {
  aspect-ratio: 4 / 3;
  display: block;
  height: auto;
  object-fit: cover;
  transition: opacity 160ms ease;
  width: 100%;
}

.lab-gallery-panel.is-changing .lab-gallery-preview img {
  opacity: 0.42;
}

.lab-gallery-caption {
  display: grid;
  gap: 0.25rem;
  min-height: 64px;
  padding: 0.75rem 0 0.5rem;
}

.lab-gallery-caption strong,
.lab-lightbox figcaption strong {
  display: block;
}

.lab-gallery-caption span,
.lab-lightbox figcaption span {
  color: var(--muted);
  display: block;
  font-size: 0.9rem;
}

.lab-gallery-controls {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 0.8rem;
}

.lab-gallery-controls button,
.lab-lightbox button {
  background: var(--text);
  border: 1px solid var(--text);
  border-radius: 6px;
  color: var(--bg);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  min-height: 40px;
  padding: 0.55rem 0.75rem;
}

.lab-thumbs {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-height: min(35vh, 310px);
  overflow: auto;
  padding: 0.1rem;
}

.lab-thumbs button {
  background: transparent;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
}

.lab-thumbs button.is-active {
  border-color: var(--accent);
}

.lab-thumbs img {
  aspect-ratio: 4 / 3;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.lab-lightbox {
  align-items: center;
  background: rgba(9, 13, 16, 0.88);
  display: grid;
  inset: 0;
  justify-items: center;
  padding: 2rem;
  position: fixed;
  z-index: 100;
}

.lab-lightbox[hidden] {
  display: none;
}

.lab-lightbox figure {
  margin: 0;
  max-width: min(1100px, 82vw);
}

.lab-lightbox img {
  background: #0f1519;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  display: block;
  max-height: 78vh;
  object-fit: contain;
  width: 100%;
}

.lab-lightbox figcaption {
  color: #f7f8fb;
  padding-top: 0.75rem;
}

.lab-lightbox figcaption span {
  color: #c8d1d8;
}

.lab-lightbox-close {
  position: fixed;
  right: 1.25rem;
  top: 1.25rem;
}

.lab-lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
}

.lab-lightbox-nav.prev {
  left: 1.25rem;
}

.lab-lightbox-nav.next {
  right: 1.25rem;
}

.hero-copy {
  align-self: center;
  min-width: 0;
}

.eyebrow {
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.12;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2.25rem, 4.2vw, 3.75rem);
  max-width: 11ch;
}

h2 {
  font-size: clamp(1.55rem, 2.5vw, 2.1rem);
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1.05rem;
  line-height: 1.2;
  margin: 0 0 0.35rem;
}

p {
  margin: 0 0 1rem;
}

.lede {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.45vw, 1.22rem);
  max-width: 680px;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.button {
  align-items: center;
  background: var(--text);
  border: 1px solid var(--text);
  border-radius: 6px;
  color: var(--bg);
  display: inline-flex;
  font-weight: 800;
  min-height: 46px;
  padding: 0.7rem 1rem;
  text-decoration: none;
}

.button.secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.button:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: #ffffff;
}

.hero-panel {
  align-self: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-width: 0;
  overflow: hidden;
}

.signal-map {
  background: var(--surface-strong);
  display: block;
  min-height: 300px;
  width: 100%;
}

.panel-body {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 1.1rem;
}

.metric {
  border-left: 3px solid var(--accent);
  padding-left: 0.8rem;
}

.metric strong {
  display: block;
  font-size: 1.15rem;
  line-height: 1;
}

.metric span {
  color: var(--muted);
  display: block;
  font-size: 0.85rem;
  line-height: 1.35;
  margin-top: 0.35rem;
}

.section {
  padding: 3.25rem 0;
}

.section.alt {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
}

.section-head {
  margin-bottom: 2rem;
  max-width: 760px;
}

.grid {
  display: grid;
  gap: 1rem;
}

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

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
}

.card h2,
.post-content h2 {
  font-size: 1.25rem;
}

.project-grid {
  align-items: stretch;
}

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

.project-card.featured {
  border-left: 4px solid var(--accent);
}

.project-card h3 {
  margin-bottom: 0.65rem;
}

.project-card .button-row {
  margin-top: auto;
  padding-top: 1rem;
}

.project-kicker {
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin-bottom: 0.55rem;
  text-transform: uppercase;
}

.privacy-note {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 700;
  padding: 0.9rem 1rem;
}

.case-study-list {
  display: grid;
  gap: 1rem;
}

.case-study dl,
.compact-case {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 0;
}

.case-study dl div,
.compact-case div {
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}

.case-study dt,
.compact-case dt {
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
}

.case-study dd,
.compact-case dd {
  color: var(--muted);
  margin: 0;
}

.alt .card {
  background: var(--bg);
}

.card p:last-child,
.resume-item p:last-child,
.post-content p:last-child {
  margin-bottom: 0;
}

.profile-card {
  align-items: center;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 170px minmax(0, 1fr);
}

.profile-photo {
  aspect-ratio: 1;
  border-radius: 8px;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.tag-list,
.clean-list,
.social-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-list li {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
}

.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.social-list a {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 0.35rem 0.6rem;
  text-decoration: none;
}

.clean-list li {
  border-top: 1px solid var(--border);
  padding: 0.85rem 0;
}

.resume-item {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
}

.role-stack {
  border-left: 3px solid var(--accent);
  display: grid;
  gap: 1.25rem;
  margin-top: 1.25rem;
  padding-left: 1.1rem;
}

.role-entry {
  position: relative;
}

.role-entry::before {
  background: var(--accent);
  border: 3px solid var(--bg);
  border-radius: 50%;
  content: "";
  height: 12px;
  left: calc(-1.1rem - 7.5px);
  position: absolute;
  top: 0.25rem;
  width: 12px;
}

.alt .role-entry::before {
  border-color: var(--surface);
}

.resume-meta,
.post-meta {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.resume-item ul,
.post-content ul {
  margin-bottom: 0;
  padding-left: 1.2rem;
}

.resume-item li,
.post-content li {
  margin: 0.45rem 0;
}

.page-hero {
  padding: 3.25rem 0 2rem;
}

.page-hero h1 {
  font-size: clamp(2.1rem, 3.6vw, 3.15rem);
  max-width: 14ch;
}

.narrow {
  max-width: 820px;
}

.post-list {
  display: grid;
  gap: 1rem;
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: block;
  padding: 1.25rem;
  text-decoration: none;
}

.post-card h2 {
  color: var(--text);
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.post-card p {
  color: var(--muted);
}

.post-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.protected-contact {
  display: inline-flex;
  font-weight: 800;
  margin-left: 0.75rem;
}

.button-row .protected-contact {
  align-items: center;
}

label {
  color: var(--muted);
  display: grid;
  font-size: 0.92rem;
  font-weight: 800;
  gap: 0.35rem;
}

input,
textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font: inherit;
  padding: 0.75rem;
  width: 100%;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  padding: 2rem 0;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

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

@media (max-width: 860px) {
  .nav-wrap {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 64px;
    padding-bottom: 0.7rem;
    padding-top: 0.7rem;
  }

  .nav-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .site-nav {
    background: color-mix(in srgb, var(--surface) 96%, var(--bg));
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 0.35rem;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0.5rem;
    width: 100%;
  }

  [data-nav-ready] .site-nav {
    display: none;
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a,
  .theme-toggle {
    justify-content: center;
    min-height: 44px;
  }

  .hero,
  .lab-hero-grid,
  .lab-case-hero-grid,
  .lab-story,
  .lab-case-layout,
  .grid.two,
  .grid.three,
  .profile-card {
    grid-template-columns: 1fr;
  }

  .lab-sidebar {
    position: static;
  }

  .lab-media-rail {
    order: -1;
  }

  .lab-gallery-panel {
    position: static;
  }

  .lab-thumbs {
    display: flex;
    max-height: none;
    overflow-x: auto;
  }

  .lab-thumbs button {
    flex: 0 0 86px;
  }

  .lab-stats,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lab-gallery {
    column-count: 2;
  }

  .profile-photo {
    max-width: 220px;
  }

  .hero {
    min-height: auto;
    padding-top: 2.75rem;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .site-nav {
    gap: 0.45rem;
    grid-template-columns: 1fr;
  }

  .site-nav a,
  .theme-toggle {
    justify-content: center;
    padding: 0.48rem 0.56rem;
  }

  .panel-body {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 2.75rem 0;
  }

  .lab-hero {
    padding: 3rem 0;
  }

  .lab-case-hero {
    padding: 3rem 0;
  }

  .lab-hero-stack {
    grid-template-rows: repeat(6, 48px);
    min-height: 330px;
  }

  .lab-stats,
  .timeline {
    grid-template-columns: 1fr;
  }

  .lab-gallery {
    column-count: 1;
  }

  .lab-progression .timeline article {
    grid-template-columns: 1fr;
  }

  .lab-progression .timeline article span {
    grid-row: auto;
  }

  .lab-lightbox {
    padding: 4.5rem 1rem 1rem;
  }

  .lab-lightbox figure {
    max-width: 100%;
  }

  .lab-lightbox-nav {
    bottom: 1rem;
    top: auto;
    transform: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .button-row,
  .theme-toggle {
    display: none;
  }

  body {
    background: #ffffff;
    color: #111111;
    font-size: 12px;
  }

  .container {
    max-width: none;
    padding: 0;
  }

  .page-hero,
  .section {
    padding: 0 0 1rem;
  }
}
