@font-face {
  font-family: "Bastardo Grotesk Semibold";
  src:
    local("Bastardo Grotesk Semibold"),
    local("BastardoGrotesk-Semibold"),
    local("Bastardo Grotesk SemiBold"),
    local("Bastardo Grotesk"),
    url("../fonts/BastardoGrotesk-Semibold.ttf?v=20260306-1252") format("truetype"),
    url("/fonts/BastardoGrotesk-Semibold.ttf?v=20260306-1252") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --outer-margin: 20px;
  --gutter: 4px;
  --header-height: 0px;
  --bg: #000000;
  --ink: #ffffff;
  --muted: #ffffff;
  --panel: #000000;
  --line: rgba(255, 255, 255, 0.3);
  --surface-soft: rgba(255, 255, 255, 0.05);
  --surface-strong: rgba(255, 255, 255, 0.1);
  --accent: #eb5e3a;
  --accent-dark: #bf482b;
  --accent-soft: #fde7df;
  --radius-lg: 22px;
  --radius-md: 14px;
  --about-overlay-bio-pad-top: 1px;
  --about-overlay-bio-pad-right: -20px;
  --about-overlay-bio-pad-bottom: 0px;
  --about-overlay-bio-pad-left: -25px;
  --about-overlay-bio-line-height: 0.85;
  --about-overlay-link-pad-top: 1px;
  --about-overlay-link-pad-right: -23px;
  --about-overlay-link-pad-bottom: -3px;
  --about-overlay-link-pad-left: -35px;
  --about-overlay-link-line-height: 1.1;
  --about-overlay-image-crop-top: 100px;
  --gallery-intro-pad-top: 0px;
  --gallery-intro-pad-right: 1px;
  --gallery-intro-pad-bottom: 0px;
  --gallery-intro-pad-left: 1px;
  --gallery-intro-baseline-lift: 3px;
  --gallery-intro-line-height: 1;
  --font-body:
    "Bastardo Grotesk Semibold",
    "Bastardo Grotesk",
    "Avenir Next",
    "Segoe UI",
    sans-serif;
  --font-display:
    "Bastardo Grotesk Semibold",
    "Bastardo Grotesk",
    "Avenir Next",
    "Segoe UI",
    sans-serif;
  --tracking-global: -0.05em;
  --module-line-thickness: 2px;
  --module-line-closed-center-distance: clamp(36px, 2.6455vw, 44px);
  --module-line-expanded-center-distance: clamp(400px, 28.4392vw, 520px);
  --module-expand-offset: calc(
    var(--module-line-expanded-center-distance) - var(--module-line-closed-center-distance)
  );
  --module-expanded-text-nudge: clamp(14px, 1.1905vw, 22px);
  --expanded-panel-top-offset: 61px;
  --expanded-panel-bottom-offset: 15px;
  --module-hover-speed: 10ms;
}

:root[data-theme="light"] {
  --bg: #ffffff;
  --ink: #000000;
  --muted: #000000;
  --panel: #ffffff;
  --line: rgba(0, 0, 0, 0.24);
  --surface-soft: rgba(0, 0, 0, 0.03);
  --surface-strong: rgba(0, 0, 0, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  padding-top: var(--header-height);
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: var(--tracking-global);
  color: var(--ink);
  line-height: 1.55;
  background: var(--bg);
}

.page-project-internal {
  overflow-x: hidden;
}

b,
strong {
  font-weight: 600;
}

body::before {
  content: none;
  display: none;
  position: fixed;
  top: 0;
  bottom: 0;
  left: var(--outer-margin);
  right: var(--outer-margin);
  pointer-events: none;
  z-index: 60;
  --column-width: calc((100% - (11 * var(--gutter))) / 12);
  background-image: repeating-linear-gradient(
    to right,
    rgba(255, 0, 0, 0.1) 0,
    rgba(255, 0, 0, 0.1) var(--column-width),
    transparent var(--column-width),
    transparent calc(var(--column-width) + var(--gutter))
  );
}

.project-layout-debug-badge {
  display: none !important;
}

.project-position-tool,
.project-map-tool,
.about-overlay-tool,
.gallery-intro-tool {
  display: none !important;
}

body.is-project-layout-debug .project-entry-media-stack::before,
body.is-project-layout-debug .project-entry-image::after {
  content: none !important;
  display: none !important;
}

body.is-project-layout-debug .project-entry-image {
  outline: 0 !important;
}

.site-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: none;
}

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

p {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.1;
}

.layout-grid {
  width: auto;
  margin-inline: var(--outer-margin);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: clamp(14px, 1.8vw, 26px);
}

[class^="col-"],
[class*=" col-"] {
  grid-column: span 12;
}

@media (min-width: 900px) {
  .col-1 {
    grid-column: span 1;
  }
  .col-2 {
    grid-column: span 2;
  }
  .col-3 {
    grid-column: span 3;
  }
  .col-4 {
    grid-column: span 4;
  }
  .col-5 {
    grid-column: span 5;
  }
  .col-6 {
    grid-column: span 6;
  }
  .col-7 {
    grid-column: span 7;
  }
  .col-8 {
    grid-column: span 8;
  }
  .col-9 {
    grid-column: span 9;
  }
  .col-10 {
    grid-column: span 10;
  }
  .col-11 {
    grid-column: span 11;
  }
  .col-12 {
    grid-column: span 12;
  }
}

.site-header {
  background: transparent;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
}

.header-core {
  align-items: start;
  padding-top: 12px;
  padding-bottom: 12px;
}

.header-item {
  margin: 0;
  font-size: 16px;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--ink);
}

.header-projects {
  grid-column: 1 / span 2;
  justify-self: start;
  text-align: left;
}

.header-views {
  grid-column: 3 / span 2;
  justify-self: start;
  display: grid;
  gap: 0;
}

.page-project-internal .header-views {
  display: none;
}

.view-link {
  display: inline-block;
  color: inherit;
  font: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  opacity: 0.4;
}

.view-link[aria-current="page"] {
  opacity: 1;
}

.view-link:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 3px;
}

.header-time {
  grid-column: 6 / span 3;
  justify-self: start;
  text-align: left;
  white-space: nowrap;
}

.header-colors {
  grid-column: 9 / span 2;
  justify-self: start;
  display: grid;
  gap: 3px;
}

.theme-button {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  text-align: left;
  opacity: 1;
}

.theme-toggle-button {
  white-space: nowrap;
}

.theme-button[data-theme-target="light"] {
  opacity: 0.4;
}

:root[data-theme="light"] .theme-button[data-theme-target="light"] {
  opacity: 1;
}

:root[data-theme="light"] .theme-button[data-theme-target="dark"] {
  opacity: 0.4;
}

.theme-button:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 3px;
}

body:not(.has-expanded-module):not(.is-collapsing-module):has(
    .page-index-modular .project-module:not(.is-expanded):is(:hover, :focus-within)
  )
  .header-item,
body:not(.has-expanded-module):not(.is-collapsing-module):has(
    .page-index-modular .project-module:not(.is-expanded):is(:hover, :focus-within)
  )
  .view-link,
body:not(.has-expanded-module):not(.is-collapsing-module):has(
    .page-index-modular .project-module:not(.is-expanded):is(:hover, :focus-within)
  )
  .theme-button {
  mix-blend-mode: difference;
  color: #ffffff;
}

:root[data-theme="light"]
  body:not(.has-expanded-module):not(.is-collapsing-module):has(
    .page-index-modular .project-module:not(.is-expanded):is(:hover, :focus-within)
  )
  .header-item,
:root[data-theme="light"]
  body:not(.has-expanded-module):not(.is-collapsing-module):has(
    .page-index-modular .project-module:not(.is-expanded):is(:hover, :focus-within)
  )
  .view-link,
:root[data-theme="light"]
  body:not(.has-expanded-module):not(.is-collapsing-module):has(
    .page-index-modular .project-module:not(.is-expanded):is(:hover, :focus-within)
  )
  .theme-button {
  mix-blend-mode: normal;
  color: #000000;
}

.header-about {
  grid-column: 12 / span 1;
  justify-self: end;
  text-align: right;
}

.header-about.is-about-trigger {
  cursor: pointer;
  user-select: none;
}

.header-about.is-about-trigger:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 3px;
}

main {
  padding-block: 32px 70px;
}

.page-shell {
  padding-top: 34px;
  padding-bottom: 80px;
}

.page-index-modular {
  min-height: calc(100dvh - var(--header-height));
  padding-top: 0;
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.project-internal-main {
  --project-header-gap: 200px;
  --project-first-image-offset: 200px;
  --project-title-center-offset: 100px;
  --project-transition-gap: calc(var(--header-height) + 32px);
  --project-title-x: 50vw;
  --project-title-y: var(--project-title-center-offset);
  --project-title-page-x: 756px;
  --project-title-page-y: 182px;
  --project-title-font-size: 28px;
  --project-title-box-height: 27px;
  --project-title-pad-top: 2px;
  --project-title-pad-right: 2px;
  --project-title-pad-bottom: -38px;
  --project-title-pad-left: 0px;
  --project-map-top: var(--project-title-y);
  --project-map-pad-top: 2px;
  --project-map-pad-right: 3px;
  --project-map-pad-bottom: 2px;
  --project-map-pad-left: 3px;
  padding-block: 0;
}

.project-loop {
  min-height: calc(100dvh - var(--header-height));
  display: flex;
  flex-direction: column;
}

.project-loop-item {
  position: relative;
  width: 100%;
  background: var(--bg);
}

.project-loop-item + .project-loop-item {
  margin-top: var(--project-transition-gap);
}

.project-entry-shell {
  margin-inline: var(--outer-margin);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: stretch;
}

.project-entry-left {
  grid-column: 1 / span 3;
  position: relative;
  align-self: stretch;
  padding-top: var(--project-first-image-offset);
  padding-right: 8px;
}

.project-loop-item:not(:first-child) .project-entry-left {
  padding-top: var(--project-first-image-offset);
}

.project-entry-description {
  margin: 0;
  text-align: left;
  line-height: 0.9;
  position: sticky;
  top: calc(var(--header-height) + var(--project-first-image-offset));
}

.project-entry-description-chip {
  display: block;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  background: none;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 17px;
  line-height: inherit;
  letter-spacing: -0.05em;
  white-space: pre-line;
  padding: 0;
}

.project-entry-description-link {
  display: block;
  margin-top: 30px;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 17px;
  line-height: 1;
  letter-spacing: -0.05em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.project-entry-description-link + .project-entry-description-link {
  margin-top: 8px;
}

.project-entry-description-link[hidden] {
  display: none;
}

.project-entry-right {
  grid-column: 4 / span 9;
  min-width: 0;
}

.project-entry-header {
  position: relative;
  height: var(--project-first-image-offset);
  background: var(--bg);
}

.project-loop-item:not(:first-child) .project-entry-header {
  height: var(--project-first-image-offset);
}

.project-entry-title-badge {
  position: absolute;
  left: 0;
  top: var(--project-title-y);
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  height: var(--project-title-box-height);
  padding-top: var(--project-title-pad-top);
  padding-right: var(--project-title-pad-right);
  padding-bottom: var(--project-title-pad-bottom);
  padding-left: var(--project-title-pad-left);
  background: #ff0100;
  color: #000000;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--project-title-font-size);
  line-height: 1;
  letter-spacing: -0.05em;
  white-space: nowrap;
  z-index: 1;
}

.project-loop-item:not(:first-child) .project-entry-title-badge {
  top: var(--project-title-y);
}

.project-map-nav {
  --project-map-pad-top: 0px;
  --project-map-pad-right: 0px;
  --project-map-pad-bottom: 0px;
  --project-map-pad-left: 0px;
  --project-map-line-height: 1.34;
  --project-map-item-gap: -5px;
  --project-map-baseline-lift: 3px;
  position: fixed;
  left: var(--outer-margin);
  top: 0;
  transform: translateY(-50%);
  z-index: 35;
  display: grid;
  gap: 0;
}

.project-map-nav[data-gallery-step-nav="true"] {
  left: var(--outer-margin);
  right: auto;
  justify-items: start;
}

.project-map-link + .project-map-link {
  margin-top: var(--project-map-item-gap, -5px);
}

.project-map-link {
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  display: inline-block;
  position: relative;
  padding: 0;
  width: max-content;
  background: transparent;
  color: #000000;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  line-height: var(--project-map-line-height, 1);
  letter-spacing: -0.05em;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  z-index: 0;
}

.project-map-link::before {
  content: "";
  position: absolute;
  top: calc(-1 * var(--project-map-pad-top, 2px));
  right: calc(-1 * var(--project-map-pad-right, 3px));
  bottom: calc((-1 * var(--project-map-pad-bottom, 2px)) + var(--project-map-baseline-lift, 3px));
  left: calc(-1 * var(--project-map-pad-left, 3px));
  background: #ff0100;
  pointer-events: none;
  z-index: -1;
}

.project-map-link.is-current {
  margin-left: 40px;
}

.project-map-tool {
  position: fixed;
  left: var(--outer-margin);
  bottom: var(--outer-margin);
  z-index: 120;
  width: min(240px, calc(100% - (2 * var(--outer-margin))));
  padding: 8px;
  border: 1px solid var(--ink);
  background: var(--bg);
  color: var(--ink);
  display: grid;
  gap: 6px;
  max-height: calc(100dvh - (2 * var(--outer-margin)));
  overflow-y: auto;
}

.project-map-tool-label,
.project-map-tool-output {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.project-map-tool input[type="range"] {
  width: 100%;
  accent-color: #ff0100;
}

.project-map-tool-row {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 8px;
  align-items: center;
}

.project-map-tool-row span {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.project-position-tool {
  position: fixed;
  right: var(--outer-margin);
  bottom: var(--outer-margin);
  z-index: 120;
  width: min(340px, calc(100% - (2 * var(--outer-margin))));
  padding: 10px;
  border: 1px solid var(--ink);
  background: var(--bg);
  color: var(--ink);
  display: grid;
  gap: 8px;
  max-height: calc(100dvh - (2 * var(--outer-margin)));
  overflow-y: auto;
}

.draggable-tool-handle {
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.is-tool-dragging .draggable-tool-handle {
  cursor: grabbing;
}

.project-position-tool-title,
.project-position-tool-coords {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.project-position-tool-row {
  display: grid;
  grid-template-columns: 20px 1fr 86px auto;
  gap: 8px;
  align-items: center;
}

.project-position-tool-row.is-slider-only {
  grid-template-columns: 28px 1fr auto;
}

.project-position-tool-row span,
.project-position-tool-row output {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.project-position-tool-row input[type="range"] {
  width: 100%;
  accent-color: #ff0100;
}

.project-position-tool-row input[type="number"] {
  width: 100%;
  margin: 0;
  padding: 2px 4px;
  border: 1px solid var(--ink);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.project-entry-image {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  overflow: hidden;
  grid-column: var(--media-col-start, 1) / span var(--media-col-span, 9);
  grid-row: span var(--media-row-span, 1);
  aspect-ratio: var(--media-ratio, 3 / 2);
  background: var(--bg);
}

.project-entry-image.is-placeholder {
  background:
    linear-gradient(145deg, rgba(127, 127, 127, 0.24), rgba(127, 127, 127, 0.08)),
    rgba(127, 127, 127, 0.04);
}

.project-entry-media {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: var(--media-fit, cover);
  object-position: var(--media-position, center center);
  background: transparent;
}

video.project-entry-media {
  pointer-events: none;
}

video.project-entry-media::-webkit-media-controls,
video.project-entry-media::-webkit-media-controls-panel,
video.project-entry-media::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
}

.project-entry-media-stack {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: var(--gutter);
  padding-bottom: 0;
}

.page-project-internal .project-entry-media-stack {
  column-gap: 2px;
  row-gap: 2px;
}

.project-entry-description-inline {
  grid-column: 1 / -1;
  margin: 0;
}

.project-layout-debug-badge {
  position: fixed;
  right: var(--outer-margin);
  top: calc(var(--header-height) + 12px);
  z-index: 130;
  border: 1px solid var(--ink);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
  letter-spacing: -0.04em;
  padding: 6px 8px;
  cursor: pointer;
}

body.is-project-layout-debug .project-entry-media-stack {
  position: relative;
}

body.is-project-layout-debug .project-entry-media-stack::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  --debug-col-width: calc((100% - (11 * var(--gutter))) / 12);
  background-image: repeating-linear-gradient(
    to right,
    rgba(255, 0, 0, 0.12) 0,
    rgba(255, 0, 0, 0.12) var(--debug-col-width),
    transparent var(--debug-col-width),
    transparent calc(var(--debug-col-width) + var(--gutter))
  );
}

body.is-project-layout-debug .project-entry-image {
  outline: 1px dashed #ff0100;
  outline-offset: -1px;
}

body.is-project-layout-debug .project-entry-image::after {
  content: attr(data-debug-label);
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 3;
  background: #ff0100;
  color: #000000;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
  letter-spacing: -0.04em;
  padding: 2px 3px;
  pointer-events: none;
}

.page-gallery-zoom {
  --gallery-start-offset: 100px;
  padding-top: 0;
  padding-bottom: 40px;
}

.gallery-zoom-stage {
  padding-top: var(--gallery-start-offset);
  --gallery-cols: 6;
  --gallery-gap: 4px;
  --gallery-project-label-size: 24px;
  --gallery-project-stroke-match: 1px;
  --gallery-project-stroke-target: 4px;
}

.gallery-intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(0, 0, 0, 0.8);
  color: #000000;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 20px;
  line-height: var(--gallery-intro-line-height, 1);
  letter-spacing: -0.05em;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.gallery-intro-overlay-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  position: relative;
  padding: 0;
  z-index: 0;
  color: #000000;
  line-height: 1;
  letter-spacing: -0.05em;
  text-align: center;
  max-width: calc(100vw - (2 * var(--outer-margin)));
}

.gallery-intro-overlay-line {
  display: inline-block;
  position: relative;
  z-index: 0;
}

.gallery-intro-overlay-label::before {
  content: "";
  position: absolute;
  top: calc(-1 * var(--gallery-intro-pad-top, 2px));
  right: calc(-1 * var(--gallery-intro-pad-right, 3px));
  bottom: calc((-1 * var(--gallery-intro-pad-bottom, 2px)) + var(--gallery-intro-baseline-lift, 3px));
  left: calc(-1 * var(--gallery-intro-pad-left, 3px));
  background: #ff0100;
  pointer-events: none;
  z-index: -1;
}

.gallery-intro-tool {
  display: none;
}

.has-gallery-intro-overlay .site-header {
  z-index: 100;
}

.about-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.9);
  transition: opacity 220ms ease-out, visibility 0s linear 220ms;
}

.has-about-overlay {
  overflow: hidden;
}

.has-about-overlay .site-header {
  z-index: 100;
}

.has-about-overlay .about-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0ms;
}

.has-about-overlay .project-position-tool,
.has-about-overlay .project-map-tool {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.about-overlay-layout {
  min-height: 100dvh;
  margin-inline: var(--outer-margin);
  padding-top: calc(var(--header-height) + 70px);
  padding-bottom: 40px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
}

.about-overlay-content {
  grid-column: 10 / span 3;
  width: 100%;
  text-align: left;
  line-height: max(var(--about-overlay-bio-line-height, 1), 0);
}

.about-overlay-image-crop {
  width: 100%;
  overflow: hidden;
  margin: 0 0 14px;
}

.about-overlay-image {
  display: block;
  width: 100%;
  height: auto;
  margin: calc(-1 * var(--about-overlay-image-crop-top, 0px)) 0 0;
}

.about-overlay-bio {
  margin: 0;
  display: inline;
  width: auto;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  border: 0;
  background: #ff0100;
  color: #000000;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 20px;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
  line-height: inherit;
  letter-spacing: -0.05em;
  padding-top: max(var(--about-overlay-bio-pad-top, 1px), 0px);
  padding-right: max(var(--about-overlay-bio-pad-right, 2px), 0px);
  padding-bottom: max(calc(var(--about-overlay-bio-pad-bottom, 0px) + 4px), 0px);
  padding-left: max(var(--about-overlay-bio-pad-left, 2px), 0px);
}

.about-overlay-actions {
  margin-top: 14px;
  padding-top: 0;
  border-top: 0;
  display: grid;
  gap: 8px;
  justify-items: start;
}

.about-overlay-link {
  display: inline-block;
  border: 0;
  background: #ff0100;
  color: #000000;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 20px;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
  line-height: max(var(--about-overlay-link-line-height, 1), 0);
  letter-spacing: -0.05em;
  padding-top: max(var(--about-overlay-link-pad-top, 1px), 0px);
  padding-right: max(var(--about-overlay-link-pad-right, 2px), 0px);
  padding-bottom: max(calc(var(--about-overlay-link-pad-bottom, 0px) + 4px), 0px);
  padding-left: max(var(--about-overlay-link-pad-left, 2px), 0px);
}

.about-overlay-link:focus-visible {
  outline: 1px solid #ffffff;
  outline-offset: 2px;
}

.about-overlay-tool {
  position: fixed;
  right: var(--outer-margin);
  top: 38%;
  bottom: auto;
  left: auto;
  transform: translateY(-50%);
  z-index: 120;
  width: min(280px, calc(100% - (2 * var(--outer-margin))));
  padding: 8px;
  border: 1px solid var(--ink);
  background: var(--bg);
  color: var(--ink);
  display: grid;
  gap: 6px;
  max-height: calc(100dvh - (2 * var(--outer-margin)));
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 160ms ease-out, visibility 0s linear 160ms;
}

.about-overlay-tool.is-links-tool {
  top: calc(38% + 210px);
}

.has-about-overlay .about-overlay-tool {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0ms;
}

.about-overlay-tool-title,
.about-overlay-tool output,
.about-overlay-tool span {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.about-overlay-tool-row {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 8px;
  align-items: center;
}

.about-overlay-tool input[type="range"] {
  width: 100%;
  accent-color: #ff0100;
}

.gallery-zoom-grid {
  margin-inline: var(--outer-margin);
  display: grid;
  grid-template-columns: repeat(var(--gallery-cols), minmax(0, 1fr));
  gap: var(--gallery-gap);
  align-items: flex-start;
  contain: layout paint;
}

.gallery-zoom-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  width: 100%;
  min-width: 0;
  aspect-ratio: 3 / 2;
  background-color: var(--bg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  transition: transform 120ms ease-out;
  contain: paint;
  isolation: isolate;
  content-visibility: auto;
  contain-intrinsic-size: 300px 200px;
}

.gallery-zoom-project-label {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  display: none;
  max-width: min(200px, calc(100% - 8px));
  padding-top: 2px;
  padding-right: 4px;
  padding-bottom: 0px;
  padding-left: 4px;
  background: transparent;
  color: #000000;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--gallery-project-label-size, 20px);
  line-height: 1;
  letter-spacing: -0.05em;
  white-space: normal;
  word-break: break-word;
  pointer-events: none;
}

.gallery-zoom-project-label::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 2px;
  left: 0;
  background: #ff0100;
  z-index: -1;
}

.gallery-zoom-item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  box-sizing: border-box;
  background: #000000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease-out;
}

.gallery-zoom-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  box-sizing: border-box;
  pointer-events: none;
  border: 0 solid #ff0100;
  transition: border-width 80ms ease-out;
}

.gallery-zoom-stage.has-project-hover .gallery-zoom-item::after {
  opacity: 0.7;
}

.gallery-zoom-stage.has-project-hover .gallery-zoom-item.is-photo-hover-target::after {
  opacity: 0;
}

.gallery-zoom-stage.has-project-hover .gallery-zoom-item.is-project-hover-match::after {
  opacity: 0;
}

.gallery-zoom-stage.has-project-hover .gallery-zoom-item.is-project-hover-match::before {
  border-width: var(--gallery-project-stroke-match, 1px);
}

.gallery-zoom-stage.has-project-hover .gallery-zoom-item.is-photo-hover-target::before {
  border-width: var(--gallery-project-stroke-target, 3px);
}

.gallery-zoom-stage.has-project-hover .gallery-zoom-item.is-photo-hover-target .gallery-zoom-project-label {
  display: inline-block;
}

.gallery-zoom-item.is-placeholder {
  background:
    linear-gradient(145deg, rgba(127, 127, 127, 0.24), rgba(127, 127, 127, 0.08)),
    rgba(127, 127, 127, 0.04);
}

.module-stack {
  display: flex;
  flex-direction: column-reverse;
  gap: 0;
}

.project-module {
  position: relative;
  width: 100%;
  height: var(--module-line-closed-center-distance);
  min-height: var(--module-line-closed-center-distance);
  cursor: pointer;
}

.project-module.is-expanded {
  z-index: 9;
}

.module-content {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0;
  right: 0;
  grid-template-rows: 1fr;
  row-gap: 0;
  align-content: center;
  align-items: center;
  z-index: 1;
  transform: translateY(0);
  transition: transform 300ms ease-out;
}

.project-module.is-raised .module-content {
  transform: translateY(calc(-1 * var(--module-expand-offset)));
}

.module-content::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--outer-margin));
  right: calc(-1 * var(--outer-margin));
  top: -10px;
  bottom: -8px;
  background: #ff0000;
  opacity: 0;
  z-index: -1;
  pointer-events: none;
  transition: opacity var(--module-hover-speed) ease-out;
}

.module-meta {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(24px, 1.9841vw, 33px);
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--ink);
  white-space: nowrap;
  transform: translateY(1px);
  transition:
    color var(--module-hover-speed) ease-out,
    transform 300ms ease-out;
}

.project-module.is-expanded .module-meta {
  transform: translateY(
    calc(1px - var(--module-expand-offset) + var(--module-expanded-text-nudge))
  );
}

.project-preview {
  position: fixed;
  top: 0;
  bottom: 0;
  left: var(--outer-margin);
  right: var(--outer-margin);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 6;
  will-change: opacity;
  contain: paint;
  transition:
    opacity var(--module-hover-speed) ease-out,
    visibility 0s linear var(--module-hover-speed);
  --shot-1: linear-gradient(145deg, #2a2a2a, #8f8f8f);
  --shot-2: linear-gradient(145deg, #3b3b3b, #a9a9a9);
  --shot-3: linear-gradient(145deg, #2f2f2f, #9d9d9d);
  --shot-4: linear-gradient(145deg, #1f1f1f, #7d7d7d);
}

.preview-image {
  grid-column: 6 / span 3;
  width: calc(100% - 25px);
  justify-self: end;
  height: 100%;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

.preview-image:nth-child(1) {
  background-image: var(--shot-1);
}

.preview-image:nth-child(2) {
  background-image: var(--shot-2);
}

.preview-image:nth-child(3) {
  background-image: var(--shot-3);
}

.preview-image:nth-child(4) {
  background-image: var(--shot-4);
}

.project-preview-1 {
  --shot-1: linear-gradient(140deg, #2f223f, #d65f2f);
  --shot-2: linear-gradient(140deg, #1f2f59, #e29a4d);
  --shot-3: linear-gradient(140deg, #4b1f2d, #c85f42);
  --shot-4: linear-gradient(140deg, #2a2a52, #f0b36a);
}

.project-preview-2 {
  --shot-1: linear-gradient(140deg, #1b2f4f, #5ea0c7);
  --shot-2: linear-gradient(140deg, #24364f, #77b3d9);
  --shot-3: linear-gradient(140deg, #1d2545, #5c85bb);
  --shot-4: linear-gradient(140deg, #14365a, #88c1dd);
}

.project-preview-3 {
  --shot-1: linear-gradient(140deg, #4f1f3f, #bd7fd6);
  --shot-2: linear-gradient(140deg, #2f1f52, #8a7fe2);
  --shot-3: linear-gradient(140deg, #4f2d1f, #d6997a);
  --shot-4: linear-gradient(140deg, #1f3a52, #7fc0e2);
}

.project-preview-4 {
  --shot-1: linear-gradient(140deg, #1f3f2a, #6db88a);
  --shot-2: linear-gradient(140deg, #223f4f, #6ba8c9);
  --shot-3: linear-gradient(140deg, #2f4a1f, #9dca67);
  --shot-4: linear-gradient(140deg, #1f2f4f, #6d88c4);
}

.project-preview-5 {
  --shot-1: linear-gradient(140deg, #1f1f1f, #c9a35f);
  --shot-2: linear-gradient(140deg, #2d2d2d, #d4b874);
  --shot-3: linear-gradient(140deg, #202020, #a07a3f);
  --shot-4: linear-gradient(140deg, #1f1f1f, #e0c88b);
}

.project-preview-6 {
  --shot-1: linear-gradient(140deg, #0f2f2f, #4fd1c5);
  --shot-2: linear-gradient(140deg, #122f4f, #5f9ee6);
  --shot-3: linear-gradient(140deg, #0f2f3b, #5fc7e6);
  --shot-4: linear-gradient(140deg, #1f2f3f, #6dd2c2);
}

.project-preview-7 {
  --shot-1: linear-gradient(140deg, #3f1f1f, #d06b6b);
  --shot-2: linear-gradient(140deg, #2f1f3f, #b07fd6);
  --shot-3: linear-gradient(140deg, #3f2f1f, #d6a67f);
  --shot-4: linear-gradient(140deg, #1f2f3f, #8fb0d6);
}

.project-preview-8 {
  --shot-1: linear-gradient(140deg, #1f1f1f, #636363);
  --shot-2: linear-gradient(140deg, #1a1a1a, #7a7a7a);
  --shot-3: linear-gradient(140deg, #232323, #5f5f5f);
  --shot-4: linear-gradient(140deg, #151515, #8a8a8a);
}

.project-expanded {
  position: absolute;
  left: 0;
  right: 0;
  top: calc((-1 * var(--module-expand-offset)) + var(--expanded-panel-top-offset));
  bottom: var(--expanded-panel-bottom-offset);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 300ms ease-out;
  transition-delay: 0ms;
}

.project-module.is-expanded .project-expanded {
  transition-delay: 200ms;
  opacity: 1;
  pointer-events: auto;
  z-index: 8;
}

.project-expanded-slider {
  --expanded-col: calc((100vw - (2 * var(--outer-margin)) - (11 * var(--gutter))) / 12);
  height: 100%;
  margin-inline: 0;
  overflow-x: auto;
  overflow-y: hidden;
}

@media (min-width: 900px) {
  .project-expanded-slider {
    cursor: grab;
  }

  .project-expanded-slider.is-drag-scrolling,
  .project-expanded-slider.is-drag-scrolling * {
    cursor: grabbing;
    user-select: none;
  }
}

.project-expanded-slider::-webkit-scrollbar {
  height: 0;
}

.project-expanded-track {
  --expanded-span-4: calc((4 * var(--expanded-col)) + (3 * var(--gutter)));
  display: flex;
  align-items: stretch;
  gap: var(--gutter);
  height: 100%;
  min-width: max-content;
  padding-left: var(--outer-margin);
  padding-right: var(--outer-margin);
}

.project-expanded-item {
  flex: 0 0 var(--expanded-span-4);
  width: var(--expanded-span-4);
  max-width: var(--expanded-span-4);
  height: 100%;
}

.project-expanded-photo {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

.project-expanded-photo.is-placeholder {
  background:
    linear-gradient(145deg, rgba(127, 127, 127, 0.24), rgba(127, 127, 127, 0.08)),
    rgba(127, 127, 127, 0.04);
}

.project-expanded-description,
.project-expanded-discover {
  display: flex;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(18px, 1.3228vw, 22px);
  line-height: 0.92;
  letter-spacing: -0.05em;
  color: var(--ink);
}

.project-expanded-description {
  align-items: flex-start;
  font-size: 17px;
}

.project-expanded-discover {
  align-items: flex-end;
}

.project-expanded-description p {
  margin: 0;
}

.project-expanded-discover-link {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}

.module-number {
  grid-column: 1 / span 1;
  justify-self: start;
}

.module-title {
  grid-column: 2 / span 4;
  justify-self: start;
}

.module-type {
  grid-column: 9 / span 3;
  justify-self: start;
}

.module-year {
  grid-column: 12 / span 1;
  justify-self: end;
  text-align: right;
}

.project-module::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: calc(-0.5 * var(--module-line-thickness));
  height: var(--module-line-thickness);
  background: var(--ink);
  transform: translateY(0);
  transition:
    opacity var(--module-hover-speed) ease-out,
    transform 300ms ease-out;
}

.project-module::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: calc(-0.5 * var(--module-line-thickness));
  height: var(--module-line-thickness);
  background: var(--ink);
  opacity: 0;
  transform: translateY(0);
  pointer-events: none;
  transition:
    opacity var(--module-hover-speed) ease-out,
    transform 300ms ease-out;
}

.project-module.is-raised::after,
.project-module.is-raised::before {
  transform: translateY(calc(-1 * var(--module-expand-offset)));
}

.project-module:last-child::before {
  opacity: 1;
}

.project-module.is-expanded::before {
  opacity: 1;
  transform: translateY(
    calc(-1 * var(--module-expand-offset) + var(--module-expanded-text-nudge))
  );
}

@media (min-width: 900px) {
  .project-module.is-raised .module-content {
    transform: translateY(
      calc(-1 * var(--module-expand-offset) + var(--module-expanded-text-nudge))
    );
  }

  .project-module.is-raised::after,
  .project-module.is-raised::before {
    transform: translateY(
      calc(-1 * var(--module-expand-offset) + var(--module-expanded-text-nudge))
    );
  }
}

.project-module:is(:hover, :focus-within) {
  background: transparent;
}

body:not(.has-expanded-module):not(.is-collapsing-module)
  .project-module:not(.is-expanded):is(:hover, :focus-within)
  .module-content::before {
  opacity: 1;
}

body:not(.has-expanded-module):not(.is-collapsing-module)
  .project-module:not(.is-expanded):is(:hover, :focus-within)
  .project-preview {
  opacity: 1;
  visibility: visible;
  transition:
    opacity var(--module-hover-speed) ease-out,
    visibility 0s linear 0s;
}

body:not(.has-expanded-module):not(.is-collapsing-module)
  .project-module:not(.is-expanded):is(:hover, :focus-within)
  .module-meta {
  color: #000000;
}

:root[data-theme="light"]
  body:not(.has-expanded-module):not(.is-collapsing-module)
  .project-module:not(.is-expanded):is(:hover, :focus-within)
  .module-meta {
  color: #ffffff;
}

body:not(.has-expanded-module):not(.is-collapsing-module)
  .project-module:not(.is-expanded):is(:hover, :focus-within)::after {
  opacity: 0;
}

body:not(.has-expanded-module):not(.is-collapsing-module)
  .project-module:last-child:not(.is-expanded):is(:hover, :focus-within)::before {
  opacity: 0;
}

body:not(.has-expanded-module):not(.is-collapsing-module)
  .project-module:not(.is-expanded):is(:hover, :focus-within)
  + .project-module::after {
  opacity: 0;
}

.page-index {
  display: grid;
  gap: clamp(22px, 3vw, 44px);
}

.index-hero .layout-grid {
  align-items: end;
}

.index-kicker {
  font-size: 16px;
  opacity: 0.62;
}

.index-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 5.2rem);
  line-height: 0.92;
  max-width: 14ch;
}

.index-hero-side {
  display: grid;
  gap: 14px;
}

.index-note {
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  line-height: 1.25;
  opacity: 0.72;
}

.index-link {
  width: fit-content;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

.index-link:hover,
.index-link:focus-visible {
  opacity: 0.66;
}

.index-chip {
  min-height: 94px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.index-chip span {
  font-size: 14px;
  opacity: 0.5;
}

.index-chip:hover,
.index-chip:focus-visible {
  background: var(--surface-strong);
}

.index-chip-static {
  opacity: 0.48;
}

.index-card {
  min-height: 300px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 14px;
  border: 1px solid var(--line);
  padding: 16px;
  background: var(--surface-soft);
}

.index-card-kicker {
  font-size: 14px;
  opacity: 0.58;
}

.index-card-title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.9;
}

.index-card-text {
  opacity: 0.76;
}

.index-card-link {
  width: fit-content;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

.index-card-link:hover,
.index-card-link:focus-visible {
  opacity: 0.66;
}

.section {
  margin-block: clamp(24px, 4vw, 52px);
}

.eyebrow {
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.hero-title,
.page-title {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.2vw, 4.2rem);
}

.lede {
  max-width: 52ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.stack {
  display: grid;
  gap: 14px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.62rem 1.1rem;
  font-size: 0.93rem;
  font-weight: 600;
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--ink);
}

.project-description {
  letter-spacing: 0;
}

.button:hover,
.button:focus-visible {
  background: var(--accent-dark);
}

.button-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  background: #ffffff;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  padding: clamp(18px, 2vw, 30px);
  box-shadow: 0 10px 28px rgba(28, 31, 44, 0.08);
}

.panel h3 {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
}

.clean-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.clean-list li {
  display: flex;
}

.clean-list a {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  color: var(--muted);
}

.clean-list a:hover,
.clean-list a:focus-visible {
  color: var(--ink);
  border-color: rgba(28, 31, 44, 0.28);
}

.info-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem;
  background: linear-gradient(180deg, #fff, #fffaf5);
}

.info-card strong {
  font-size: 1.7rem;
  line-height: 1;
}

.muted {
  color: var(--muted);
}

.section-title {
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.home-index-hero .hero-title {
  max-width: 18ch;
}

.index-status {
  border-left: 4px solid var(--accent);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.metric-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.72rem 0.8rem;
  background: linear-gradient(180deg, #fffef9, #fffaf2);
}

.metric-item strong {
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  line-height: 1;
}

.route-card {
  min-height: 100%;
  background: linear-gradient(145deg, #fffef8, #fff8f2 65%, #f7f9f6);
}

.featured-project {
  min-height: 100%;
}

.featured-visual {
  min-height: 220px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(235, 94, 58, 0.22), rgba(255, 255, 255, 0)),
    linear-gradient(210deg, #fff, #fff2ea 60%, #eef6f3);
}

.featured-visual.alt {
  background:
    linear-gradient(145deg, rgba(112, 196, 170, 0.3), rgba(255, 255, 255, 0)),
    linear-gradient(210deg, #fff, #f5fffb 60%, #fff1e8);
}

.gallery-item {
  display: grid;
  gap: 12px;
}

.thumb {
  min-height: 210px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #f2d8ce, #f8f5ef 62%, #dcece8);
}

.thumb.alt {
  background: linear-gradient(145deg, #d2ece5, #f8f5ef 62%, #ffe6d5);
}

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

.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.78rem;
  color: var(--muted);
  background: #fff;
}

.kpi {
  display: grid;
  gap: 6px;
}

.kpi strong {
  font-size: 1.95rem;
  font-family: var(--font-display);
}

.project-media {
  min-height: 350px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    linear-gradient(130deg, rgba(235, 94, 58, 0.18), rgba(216, 236, 230, 0.56)),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.48) 0,
      rgba(255, 255, 255, 0.48) 16px,
      rgba(255, 255, 255, 0.16) 16px,
      rgba(255, 255, 255, 0.16) 32px
    );
}

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 18px 26px;
  color: var(--muted);
}

.site-footer p {
  font-size: 0.9rem;
}

@media (max-width: 899px) {
  :root {
    --outer-margin: 10px;
    --module-expand-offset: 254px;
  }

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

  [class^="col-"],
  [class*=" col-"] {
    grid-column: span 6;
  }

  body::before {
    --column-width: calc((100% - (5 * var(--gutter))) / 6);
  }

  .header-core {
    padding-bottom: 16px;
    row-gap: 10px;
  }

  .header-item {
    font-size: 14px;
  }

  .header-projects {
    grid-column: 1 / span 2;
    grid-row: 1;
  }

  .header-views {
    grid-column: 3 / span 2;
    grid-row: 1;
  }

  .header-time {
    display: none;
  }

  .header-colors {
    grid-column: 5 / span 1;
    grid-row: 1;
    justify-self: end;
  }

  .header-colors .theme-button {
    text-align: right;
  }

  .header-about {
    grid-column: 6 / span 1;
    grid-row: 1;
  }

  .about-overlay-layout {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    padding-top: calc(var(--header-height) + 40px);
  }

  .about-overlay-content {
    grid-column: 1 / span 6;
  }

  .about-overlay-bio,
  .about-overlay-link {
    font-size: 20px;
  }

  .page-shell {
    padding-top: 20px;
    padding-bottom: 48px;
  }

  .gallery-zoom-stage {
    padding-top: var(--gallery-start-offset);
    --gallery-gap: 2px;
  }

  .gallery-intro-overlay-label {
    display: grid;
    gap: 0;
    justify-items: center;
    align-items: start;
  }

  .gallery-intro-overlay-line + .gallery-intro-overlay-line {
    margin-top: -5px;
  }

  .gallery-intro-overlay-label::before {
    content: none;
  }

  .gallery-intro-overlay-line::before {
    content: "";
    position: absolute;
    top: calc(-1 * var(--gallery-intro-pad-top, 2px));
    right: calc(-1 * var(--gallery-intro-pad-right, 3px));
    bottom: calc((-1 * var(--gallery-intro-pad-bottom, 2px)) + var(--gallery-intro-baseline-lift, 3px));
    left: calc(-1 * var(--gallery-intro-pad-left, 3px));
    background: #ff0100;
    pointer-events: none;
    z-index: -1;
  }

  .has-gallery-intro-overlay .gallery-intro-tool {
    position: fixed;
    right: var(--outer-margin);
    top: 50%;
    transform: translateY(-50%);
    z-index: 120;
    width: min(240px, calc(100vw - (2 * var(--outer-margin))));
    padding: 8px;
    border: 1px solid var(--ink);
    background: var(--bg);
    color: var(--ink);
    display: grid;
    gap: 6px;
  }

  .gallery-intro-tool-title,
  .gallery-intro-tool-row span,
  .gallery-intro-tool-row output {
    margin: 0;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 13px;
    line-height: 1;
    letter-spacing: -0.05em;
  }

  .gallery-intro-tool-row {
    display: grid;
    grid-template-columns: 24px 1fr auto;
    gap: 8px;
    align-items: center;
  }

  .gallery-intro-tool input[type="range"] {
    width: 100%;
    accent-color: #ff0100;
  }

  .project-entry-shell {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .project-entry-left {
    grid-column: 1 / span 6;
    position: relative;
    top: auto;
    padding-top: 12px;
    padding-right: 0;
    padding-bottom: 18px;
  }

  .project-entry-right {
    grid-column: 1 / span 6;
  }

  .project-module {
    height: 55px;
    min-height: 55px;
    max-height: 55px;
    isolation: isolate;
  }

  .project-expanded {
    top: calc((-1 * var(--module-expand-offset)) + 53.5px);
    bottom: auto;
    height: 240px;
    transition-duration: 320ms;
  }

  .project-module.is-expanded .project-expanded {
    transition-delay: 140ms;
  }

  .project-expanded-slider {
    --expanded-col: calc((100vw - (2 * var(--outer-margin)) - (5 * var(--gutter))) / 6);
  }

  .project-expanded-track {
    --expanded-span-4: calc((5 * var(--expanded-col)) + (4 * var(--gutter)));
  }

  .project-expanded-description,
  .project-expanded-discover {
    font-size: 14px;
  }

  .project-expanded-description p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 10;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .project-expanded-discover-link {
    text-decoration-line: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
  }

  .project-module::before,
  .project-module::after {
    left: 5px;
    right: 5px;
    height: 2px;
    z-index: 0;
  }

  .project-module::before {
    top: 0;
  }

  .project-module::after {
    bottom: 0;
  }

  .project-preview {
    position: absolute;
    top: 50%;
    bottom: auto;
    left: var(--outer-margin);
    right: auto;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 4px;
    width: auto;
    height: 45px;
    grid-template-columns: none;
    grid-template-rows: none;
    opacity: 1;
    visibility: visible;
    pointer-events: none;
    z-index: 2;
    transition: none;
  }

  @keyframes mobile-preview-fade-in {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  body.is-collapsing-module .project-module.is-mobile-preview-fading .project-preview {
    visibility: visible;
    opacity: 1;
    animation: mobile-preview-fade-in 400ms cubic-bezier(0.42, 0, 1, 1) both;
  }

  .project-module.is-expanded .project-preview,
  .project-module.is-mobile-preview-hidden .project-preview {
    opacity: 0;
    visibility: hidden;
  }

  .preview-image {
    position: relative;
    overflow: hidden;
    grid-column: auto;
    width: 45px;
    height: 45px;
    flex: 0 0 45px;
    justify-self: auto;
  }

  .preview-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    pointer-events: none;
  }

  .module-content {
    top: 0;
    bottom: 0;
    align-items: center;
    align-content: center;
    z-index: 3;
  }

  .module-content::before {
    top: -2px;
    bottom: -2px;
  }

  .module-meta {
    font-size: 24px;
    transform: translateY(0);
    color: var(--ink);
    mix-blend-mode: overlay;
    position: relative;
    z-index: 1;
  }

  :root[data-theme="light"] .page-index-modular .module-meta {
    color: var(--ink);
    mix-blend-mode: normal;
    -webkit-text-fill-color: currentColor;
  }

  .project-module.is-expanded .module-meta {
    transform: translateY(calc(-1 * var(--module-expand-offset)));
  }

  .module-number {
    display: none;
  }

  .module-title {
    grid-column: 1 / span 5;
  }

  .module-type {
    display: none;
  }

  .module-year {
    grid-column: 6 / span 1;
  }

  body:not(.has-expanded-module):not(.is-collapsing-module)
    .project-module:not(.is-expanded):is(:hover, :focus-within)
    .module-content::before {
    opacity: 0;
  }

  body:not(.has-expanded-module):not(.is-collapsing-module)
    .project-module:not(.is-expanded):is(:active, .is-mobile-pressing)
    .module-content::before {
    opacity: 0;
  }

  body:not(.has-expanded-module):not(.is-collapsing-module)
    .project-module:not(.is-expanded):is(:active, .is-mobile-pressing) {
    background: #ff0000;
    z-index: 10;
  }

  body:not(.has-expanded-module):not(.is-collapsing-module)
    .project-module:not(.is-expanded):is(:active, .is-mobile-pressing)
    .module-content {
    z-index: 8;
  }

  body:not(.has-expanded-module):not(.is-collapsing-module)
    .project-module:not(.is-expanded):is(:active, .is-mobile-pressing)
    .module-meta {
    z-index: 9;
  }

  body:not(.has-expanded-module):not(.is-collapsing-module)
    .project-module:not(.is-expanded):is(:hover, :focus-within)
    .project-preview {
    opacity: 1;
    visibility: visible;
  }

  body:not(.has-expanded-module):not(.is-collapsing-module)
    .project-module:not(.is-expanded):is(:active, .is-mobile-pressing)
    .project-preview {
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 6;
  }

  body:not(.has-expanded-module):not(.is-collapsing-module)
    .project-module:not(.is-expanded):is(:hover, :focus-within)
    .module-meta {
    color: var(--ink);
  }

  :root[data-theme="light"]
    body:not(.has-expanded-module):not(.is-collapsing-module)
    .project-module:not(.is-expanded):is(:hover, :focus-within)
    .module-meta {
    color: var(--ink);
    mix-blend-mode: normal;
    -webkit-text-fill-color: currentColor;
  }

  body:not(.has-expanded-module):not(.is-collapsing-module)
    .project-module:not(.is-expanded):is(:active, .is-mobile-pressing)
    .module-meta {
    color: #000000;
    mix-blend-mode: normal;
    -webkit-text-fill-color: #000000;
  }

  :root[data-theme="light"]
    body:not(.has-expanded-module):not(.is-collapsing-module)
    .project-module:not(.is-expanded):is(:active, .is-mobile-pressing)
    .module-meta {
    color: var(--ink);
    mix-blend-mode: normal;
    -webkit-text-fill-color: currentColor;
  }

  body:not(.has-expanded-module):not(.is-collapsing-module)
    .project-module:not(.is-expanded):is(:hover, :focus-within)::after,
  body:not(.has-expanded-module):not(.is-collapsing-module)
    .project-module:last-child:not(.is-expanded):is(:hover, :focus-within)::before,
  body:not(.has-expanded-module):not(.is-collapsing-module)
    .project-module:not(.is-expanded):is(:hover, :focus-within)
    + .project-module::after {
    opacity: 1;
  }

  body:not(.has-expanded-module):not(.is-collapsing-module)
    .project-module:not(.is-expanded):is(:active, .is-mobile-pressing)::before,
  body:not(.has-expanded-module):not(.is-collapsing-module)
    .project-module:not(.is-expanded):is(:active, .is-mobile-pressing)::after {
    opacity: 0 !important;
  }

  .project-module.is-expanded::before {
    transform: translateY(calc(-1 * var(--module-expand-offset)));
  }

  .project-module.is-expanded + .project-module::after {
    opacity: 0;
  }

  .project-entry-description {
    position: relative;
    top: auto;
    line-height: 0.8;
  }

  .project-internal-main {
    --project-transition-gap: 0px;
    --project-mobile-header-first: min(280px, var(--project-first-image-offset));
    --project-mobile-next-title-offset: 200px;
    --project-mobile-next-title-nudge: 25px;
    --project-mobile-header-rest: calc(
      var(--project-mobile-header-first) + var(--project-mobile-next-title-offset)
    );
  }

  .project-entry-header {
    height: var(--project-mobile-header-first);
  }

  .project-loop-item:not(:first-child) .project-entry-header {
    height: var(--project-mobile-header-rest);
  }

  .project-loop-item:not(:first-child) .project-entry-title-badge {
    top: calc(
      var(--project-title-y) + (var(--project-mobile-header-rest) - var(--project-mobile-header-first)) +
        var(--project-mobile-next-title-nudge)
    );
  }

  .project-entry-title-badge {
    font-size: 24px;
  }

  .project-entry-description-chip {
    font-size: 17px;
  }

  .project-entry-description-inline .project-entry-description-chip {
    line-height: 1;
  }

  .project-entry-description-link {
    font-size: 17px;
  }

  .project-entry-left.is-mobile-description-reserved {
    visibility: hidden;
    pointer-events: none;
  }

  .project-loop-item:not(:first-child) .project-entry-left.is-mobile-description-reserved {
    display: none;
    padding: 0;
    margin: 0;
  }

  .project-entry-media-stack {
    margin-top: -160px;
    padding-bottom: 0;
  }

  .page-project-internal .project-map-nav {
    left: calc(
      var(--outer-margin) + (4 * ((100vw - (2 * var(--outer-margin)) - (5 * var(--gutter))) / 6)) +
        (4 * var(--gutter))
    );
    right: auto;
    justify-items: start;
  }

  .project-map-link {
    font-size: 12px;
    text-align: left;
  }

  .project-map-link.is-current {
    margin-left: 40px;
    margin-right: 0;
  }

  .project-map-tool {
    width: min(220px, calc(100% - (2 * var(--outer-margin))));
  }

  .page-index-modular {
    padding-top: 25px;
    padding-bottom: 40px;
  }

  .index-hero-side {
    gap: 10px;
  }

  .index-chip {
    min-height: unset;
  }

  .hero-title,
  .page-title {
    font-size: clamp(1.9rem, 9vw, 3rem);
  }

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

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(10px);
    animation: rise 520ms ease forwards;
  }

  .reveal:nth-child(2) {
    animation-delay: 120ms;
  }

  .reveal:nth-child(3) {
    animation-delay: 220ms;
  }

  @keyframes rise {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
