:root {
  --page-bg: #ffffff;
  --panel-bg: #ffffff;
  --text-main: #3a3737;
  --line: #8b8b8b;
  --white: #ffffff;
  --fade-ms: 380ms;
  --slide-ms: 500ms;
  --list-slide-ms: 250ms;
  --fade-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dimmed-opacity: 0.28;
  --line-dim: rgba(139, 139, 139, 0.36);
  --grid-line-cut: 10px;
  --hole-size: 20px;
  --hole-left: 14px;
  --hole-bottom: 18px;
  --desktop-bio-to-controls-gap: clamp(120px, 17vh, 252px);
  --right-panel-ratio: 1;
  --selection-bg: #000000;
  --selection-text: #ffffff;
  --case-study-footer-clearance: 72px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: Helvetica, Arial, sans-serif;
  color: var(--text-main);
  background: var(--page-bg);
}

body.is-lightbox-open {
  overflow: hidden;
}

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

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

.app-shell,
.app-shell * {
  -webkit-tap-highlight-color: transparent;
}

.left-projects,
.left-projects *,
.view-toggle,
.view-toggle *,
.project-item,
.project-item *,
.image-stage,
.case-image-stack,
.hero-image,
.case-study-image,
.mobile-case-image {
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.intro-copy,
.case-study-footer-text,
.mobile-case-footer-text {
  user-select: text;
  -webkit-user-select: text;
}

body.is-locked {
  overflow: hidden;
}

.password-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 8, 10, 0.92);
}

.password-gate.is-hidden {
  display: none;
}

.password-panel {
  width: min(92vw, 360px);
  padding: 24px;
  background: #f1f1f1;
  border: 1px solid #9a9a9a;
  display: grid;
  gap: 10px;
}

.password-title {
  margin: 0 0 6px;
  font-size: 16px;
}

.password-input {
  width: 100%;
  border: 1px solid #8f8f8f;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 15px;
  padding: 10px 12px;
}

.password-button {
  border: 1px solid #111;
  background: #111;
  color: #fff;
  font: inherit;
  font-size: 15px;
  padding: 10px 12px;
  cursor: pointer;
}

.password-error {
  margin: 0;
  min-height: 18px;
  font-size: 13px;
  color: #8f1212;
}

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

a:hover {
  text-decoration: underline;
}

button {
  font: inherit;
}

.app-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: minmax(0, 1fr);
  height: 100vh;
  overflow: hidden;
}

.app-shell.is-desktop {
  grid-template-rows: minmax(0, 1fr);
}

.app-shell.is-desktop::after {
  content: "";
  position: absolute;
  left: 0;
  right: min(100%, calc(100vh * var(--right-panel-ratio)));
  bottom: 0;
  height: 56px;
  pointer-events: none;
  z-index: 9999;
  background: linear-gradient(to top, var(--panel-bg) 0%, rgba(255, 255, 255, 0) 100%);
}

.left-pane {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 0;
  overflow-y: auto;
  background: var(--panel-bg);
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.left-pane::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.left-top {
  flex: 0 0 auto;
  padding: 18px 20px 10px;
  background: var(--panel-bg);
  overflow: visible;
  display: flex;
  flex-direction: column;
}

.left-bottom {
  flex: 0 0 auto;
  min-height: 0;
  padding: 0 20px 0;
  background: var(--panel-bg);
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.intro-and-links {
  display: grid;
  gap: 20px;
}

.intro-copy {
  margin: 0;
  white-space: pre-line;
  max-width: 100%;
  flex: none;
  min-width: 0;
  font-size: 15px;
  line-height: 1.36;
}

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  font-size: 15px;
  line-height: 1.2;
  white-space: normal;
}

.view-toggle {
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  line-height: 1;
}

.app-shell.is-desktop .view-toggle {
  margin-top: 0;
}

.app-shell.is-desktop .left-top {
  padding-bottom: calc(var(--desktop-bio-to-controls-gap) * 0.75);
}

.app-shell.is-desktop .intro-copy {
  max-width: 50%;
}

@media (max-width: 1516px) {
  .app-shell.is-desktop .intro-copy {
    max-width: 75%;
  }
}

.app-shell.is-desktop .left-projects {
  margin-top: 20px;
  height: auto;
  max-height: none;
  min-height: 0;
  flex: 0 0 auto;
  overflow: visible;
}

.toggle-option {
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 15px;
}

.toggle-separator {
  font-size: 15px;
}

.toggle-box {
  width: 13px;
  height: 13px;
  border: 1px dashed #787878;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.toggle-dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--text-main);
  opacity: 0;
  transition: opacity 0.16s ease;
}

.toggle-option.is-active .toggle-dot {
  opacity: 1;
}

.left-projects {
  position: relative;
  height: auto;
  min-height: 0;
  overflow: visible;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding: 0;
  background: transparent;
  container-type: inline-size;
}

.left-projects::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.projects-list {
  border-top: 1px dashed var(--line);
}

.app-shell.is-desktop .left-pane {
  overflow-y: auto;
}

.app-shell.is-desktop .left-bottom {
  position: relative;
  flex: 0 0 auto;
  min-height: 0;
  overflow: visible;
  padding-bottom: 56px;
}

.project-item {
  width: 100%;
  border: 0;
  margin: 0;
  text-align: left;
  color: var(--text-main);
  background: transparent;
  cursor: pointer;
}

.project-item:focus-visible {
  outline: 1px solid var(--text-main);
  outline-offset: -1px;
}

.project-item--list {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 60px;
  align-items: start;
  min-height: 0;
  font-size: 15px;
  line-height: 1.2;
  border-bottom: 1px dashed var(--line);
  padding: 12px 0;
  transition: padding-left var(--list-slide-ms) var(--fade-ease);
}

.project-main {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(0, 1.55fr) minmax(0, 1.35fr);
  gap: 16px;
  align-items: start;
  transition: opacity var(--fade-ms) var(--fade-ease);
}

.project-col {
  min-width: 0;
}

.project-year {
  min-width: 56px;
  justify-self: end;
  align-self: start;
  text-align: right;
  transition: opacity var(--fade-ms) var(--fade-ease);
}

.projects-grid {
  --grid-gap: 20px;
  --grid-min-cell: 240px;
  display: grid;
  position: relative;
  width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--grid-min-cell)), 1fr));
  gap: var(--grid-gap);
  padding: 0;
}

.project-item--grid {
  position: relative;
  border: 0;
  padding: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  z-index: 2;
}

.app-shell.is-desktop .project-item--grid {
  display: flex;
  aspect-ratio: auto;
}

.app-shell.is-desktop .projects-grid {
  --grid-gap: 20px;
  --grid-line-cut: calc(var(--grid-gap) / 2);
  padding-block: calc(var(--grid-gap) / 2);
  overflow: hidden;
}

.app-shell.is-desktop .projects-grid::before {
  content: none;
  display: none;
}

.app-shell.is-desktop .project-item--grid::before {
  content: "";
  position: absolute;
  left: calc((var(--grid-gap) / -2) + var(--grid-line-cut));
  right: calc((var(--grid-gap) / -2) + var(--grid-line-cut));
  top: calc(var(--grid-gap) / -2);
  bottom: calc(var(--grid-gap) / -2);
  --grid-top-line-size: 0px;
  background-image:
    repeating-linear-gradient(to right, var(--line) 0 3px, transparent 3px 6px),
    repeating-linear-gradient(to right, var(--line) 0 3px, transparent 3px 6px);
  background-repeat: no-repeat;
  background-position: left bottom, left top;
  background-size: 100% 1px, 100% var(--grid-top-line-size);
  pointer-events: none;
  z-index: 2;
}

.app-shell.is-desktop .project-item--grid.grid-item--is-top-row::before {
  --grid-top-line-size: 1px;
}

.app-shell.is-desktop .project-item--grid::after {
  content: "";
  position: absolute;
  top: calc((var(--grid-gap) / -2) + var(--grid-line-cut));
  bottom: calc((var(--grid-gap) / -2) + var(--grid-line-cut));
  right: calc(var(--grid-gap) / -2);
  width: 1px;
  background-image: repeating-linear-gradient(to bottom, var(--line) 0 3px, transparent 3px 6px);
  pointer-events: none;
  z-index: 2;
  display: none;
}

.app-shell.is-desktop .project-item--grid.grid-item--has-right-divider::after {
  display: block;
}

.grid-thumb {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background-color: #c6c6c6;
  background-image: var(--grid-thumb-image, none);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transition: opacity var(--fade-ms) var(--fade-ease);
}

.app-shell.is-desktop .grid-thumb {
  min-height: 0;
}

.grid-meta {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  transition: opacity var(--fade-ms) var(--fade-ease);
}

.grid-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 16px;
  align-items: start;
  min-width: 0;
}

.grid-title {
  font-size: 15px;
  line-height: 1.1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.grid-year {
  font-size: 15px;
  line-height: 1.1;
  text-align: right;
  white-space: nowrap;
}

.grid-client,
.grid-type {
  font-size: 15px;
  line-height: 1.1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.project-mobile-head,
.project-mobile-sub,
.project-mobile-accordion,
.grid-accordion {
  display: none;
}

.project-item.is-selected {
  opacity: 1;
}

.app-shell.has-hover-dim.is-desktop .project-item--list .project-main,
.app-shell.has-hover-dim.is-desktop .project-item--list .project-year {
  opacity: var(--dimmed-opacity);
}

.app-shell.has-hover-dim.is-desktop .project-item--grid .grid-thumb,
.app-shell.has-hover-dim.is-desktop .project-item--grid .grid-meta {
  opacity: var(--dimmed-opacity);
}

.app-shell.has-hover-dim.is-desktop.is-hovering-project .project-item--list.is-hovered .project-main,
.app-shell.has-hover-dim.is-desktop.is-hovering-project .project-item--list.is-hovered .project-year {
  opacity: 1;
}

.app-shell.has-hover-dim.is-desktop.is-hovering-project .project-item--grid.is-hovered .grid-thumb,
.app-shell.has-hover-dim.is-desktop.is-hovering-project .project-item--grid.is-hovered .grid-meta {
  opacity: 1;
}

.app-shell.has-selection.is-desktop .project-item--list {
  border-bottom-color: var(--line-dim);
}

.app-shell.has-selection.is-desktop .project-item--list:not(.is-selected) .project-main,
.app-shell.has-selection.is-desktop .project-item--list:not(.is-selected) .project-year {
  opacity: var(--dimmed-opacity);
}

.app-shell.has-selection.is-desktop .project-item--list.is-before-selected {
  border-bottom-color: var(--line);
}

.app-shell.has-selection.is-desktop .project-item--list.is-selected {
  border-bottom-color: var(--line);
  padding-left: 22px;
}

.app-shell.has-selection.is-desktop .project-item--list.is-selected::after {
  content: "\2767";
  position: absolute;
  left: 1px;
  top: 50%;
  color: #111;
  font-size: 20px;
  line-height: 1;
  transform: translateY(-50%);
  opacity: 1;
  pointer-events: none;
  transition: opacity var(--list-slide-ms) var(--fade-ease);
}

.app-shell.has-selection.is-desktop .project-item--list:not(.is-selected)::after {
  content: "\2767";
  position: absolute;
  left: 1px;
  top: 50%;
  color: #111;
  font-size: 20px;
  line-height: 1;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--list-slide-ms) var(--fade-ease);
}

.app-shell.has-selection.is-desktop .project-item--grid:not(.is-selected) .grid-thumb,
.app-shell.has-selection.is-desktop .project-item--grid:not(.is-selected) .grid-meta {
  opacity: var(--dimmed-opacity);
}

.app-shell.has-selection.is-desktop .project-item--grid.is-selected {
  background-image: none;
}

.app-shell.has-selection.is-desktop .projects-list {
  border-top-color: var(--line-dim);
}

.app-shell.has-selection.is-desktop .projects-list.is-first-selected {
  border-top-color: var(--line);
}

.right-panel {
  grid-column: 2;
  grid-row: 1;
  width: calc(100vh * var(--right-panel-ratio));
  max-width: 100vw;
  height: 100vh;
  min-height: 0;
  background: #090d16;
  position: relative;
  overflow: hidden;
}

.image-stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  transition: none;
  z-index: 1;
}

.app-shell.is-desktop .image-stage {
  height: 100%;
  aspect-ratio: auto;
}

.hero-image {
  position: absolute;
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
}

.case-study-indicator {
  position: absolute;
  right: 18px;
  top: 18px;
  padding: 4px 8px;
  font-size: 20px;
  line-height: 1;
  color: #111;
  background: rgba(255, 255, 255, 0.78);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--fade-ms) var(--fade-ease);
}

.app-shell.has-selection .case-study-indicator {
  opacity: 1;
}

.app-shell.has-selection .image-stage {
  opacity: 0;
  pointer-events: none;
}

.case-study-panel {
  position: absolute;
  inset: 0;
  background: #ffffff;
  color: #1f1f1f;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: none;
}

.image-stage.is-transition-exit,
.case-study-panel.is-transition-exit {
  opacity: 0 !important;
  filter: blur(9px);
}

.image-stage.is-transition-enter,
.case-study-panel.is-transition-enter {
  opacity: 0 !important;
  filter: blur(9px);
}

.app-shell.has-selection .case-study-panel {
  opacity: 1;
  pointer-events: auto;
}

.case-study-scroll {
  height: 100%;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding: 0 0 var(--case-study-footer-clearance);
  scroll-padding-bottom: var(--case-study-footer-clearance);
}

.case-study-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.case-image-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.case-study-image {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  background: #d3d3d3;
}

.case-study-image.case-media--native-ratio,
.app-shell.is-mobile .mobile-case-image.case-media--native-ratio,
.project-item.is-expanded .mobile-case-image.case-media--native-ratio {
  aspect-ratio: auto;
  height: auto;
  object-fit: cover;
  background: #d3d3d3;
}

.case-study-image.case-media--portrait {
  width: min(50%, 520px);
  align-self: center;
}

.case-study-image.case-media--square {
  width: min(66%, 640px);
  align-self: center;
}

.case-study-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  padding: 10px 12px 12px 0;
  background: #ffffff;
}

.case-study-footer-text {
  margin: 0;
  color: #1f1f1f;
  font-size: 14px;
  line-height: 1.35;
}

.hole-punch {
  display: none;
}

.right-transition-fade {
  position: absolute;
  inset: 0;
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
  z-index: 6;
}

.right-transition-fade.is-active {
  animation: right-panel-white-fade 840ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes right-panel-white-fade {
  0% {
    opacity: 0;
  }
  36% {
    opacity: 1;
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.hole-punch--top {
  top: 18px;
}

.hole-punch--middle {
  top: 50%;
  transform: translateY(-50%);
}

.hole-punch--bottom {
  bottom: var(--hole-bottom);
}

.meta-bar {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: calc(var(--hole-bottom) + (var(--hole-size) * 0.5) - 9px);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 24px;
  line-height: 1.2;
  mix-blend-mode: difference;
}

.meta-title,
.meta-description {
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
}

.meta-description {
  text-align: right;
}

.meta-divider {
  height: 1px;
  flex: 1;
  min-width: 12px;
  background: currentColor;
}

.app-shell.is-desktop .meta-bar {
  justify-content: space-between;
}

.app-shell.is-desktop .meta-divider {
  display: none;
}

.app-shell.is-mobile {
  --mobile-section-gap: 20px;
  display: flex;
  flex-direction: column;
  height: auto;
  overflow: visible;
}

.app-shell.is-mobile .left-pane {
  display: contents;
  overflow: visible;
}

.app-shell.is-mobile .left-top {
  order: 1;
  padding: 18px 20px var(--mobile-section-gap);
}

.app-shell.is-mobile .left-bottom {
  order: 3;
  padding: var(--mobile-section-gap) 20px 20px;
  overflow: visible;
}

.app-shell.is-mobile .intro-copy {
  max-width: 100%;
  flex: 1 1 auto;
}

.app-shell.is-mobile .right-panel {
  order: 2;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  height: min(62vh, 760px);
}

.app-shell.is-mobile-cutoff .intro-copy {
  max-width: 50%;
}

.app-shell.is-mobile-cutoff .right-panel {
  height: auto;
  aspect-ratio: var(--right-panel-ratio);
}

.app-shell.is-mobile .case-study-panel {
  display: none;
}

.app-shell.has-selection.is-mobile .image-stage {
  opacity: 1;
  pointer-events: auto;
}

.app-shell.has-selection.is-mobile .case-study-indicator {
  opacity: 0;
}

.app-shell.is-mobile .left-projects {
  margin-top: var(--mobile-section-gap);
  overflow: visible;
  padding: 0;
  height: auto;
  max-height: none;
  flex: 0 0 auto;
}

.app-shell.is-mobile .project-mobile-head,
.app-shell.is-mobile .project-mobile-sub,
.app-shell.is-mobile .project-mobile-accordion {
  display: none;
}

.app-shell.is-mobile .grid-accordion {
  display: block;
}

.app-shell.is-mobile .mobile-case-inline {
  display: none;
  grid-column: 1 / -1;
  margin-top: 8px;
  height: 450px;
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

.app-shell.is-mobile .project-item.is-expanded .mobile-case-inline {
  display: block;
}

.app-shell.is-mobile .mobile-case-scroll {
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding: 0 0 94px;
  cursor: grab;
}

.app-shell.is-mobile .mobile-case-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.app-shell.is-mobile .mobile-case-image {
  flex: 0 0 100%;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
  scroll-snap-align: start;
  object-fit: cover;
  display: block;
  background: #d3d3d3;
}

.app-shell.is-mobile .project-item.is-expanded .mobile-case-scroll.is-auto-flash {
  animation: mobile-case-flash 120ms ease-out;
}

.app-shell.is-mobile .mobile-case-scroll.is-dragging {
  cursor: grabbing;
}

.app-shell.is-mobile .mobile-case-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 0 10px;
  background: #ffffff;
}

.app-shell.is-mobile .mobile-case-footer-text {
  display: block;
  font-size: 12px;
  line-height: 1.32;
  color: var(--text-main);
  text-wrap: balance;
}

.app-shell.is-mobile .project-mobile-accordion,
.app-shell.is-mobile .grid-accordion {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.3;
  border-top: 1px dashed var(--line);
  margin-top: 4px;
  padding-top: 0;
  transition: max-height var(--fade-ms) ease, opacity var(--fade-ms) ease, padding-top var(--fade-ms) ease;
}

.app-shell.is-mobile .project-item.is-expanded .project-mobile-accordion,
.app-shell.is-mobile .project-item.is-expanded .grid-accordion {
  max-height: 120px;
  opacity: 1;
  padding-top: 6px;
}

.app-shell.is-mobile .project-item--grid {
  min-height: 210px;
}

.app-shell.is-mobile .grid-title,
.app-shell.is-mobile .grid-year,
.app-shell.is-mobile .grid-client,
.app-shell.is-mobile .grid-type {
  font-size: 14px;
}

.app-shell.is-mobile .meta-bar {
  left: calc(var(--hole-left) + var(--hole-size) + 20px);
  right: 12px;
  bottom: calc(var(--hole-bottom) + (var(--hole-size) * 0.5) - 9px);
}

.app-shell.is-mobile .meta-title,
.app-shell.is-mobile .meta-description {
  max-width: 40%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-shell.has-selection.is-mobile .project-item:not(.is-selected) {
  opacity: 1;
}

@media (max-width: 1023px) {
  .app-shell {
    --mobile-section-gap: 20px;
    display: flex;
    flex-direction: column;
    height: auto;
    overflow: visible;
  }

  .left-pane {
    display: contents;
    overflow: visible;
  }

  .left-top {
    order: 1;
    padding: 18px 20px var(--mobile-section-gap);
  }

  .left-bottom {
    order: 3;
    padding: var(--mobile-section-gap) 20px 20px;
    overflow: visible;
  }

  .intro-copy {
    max-width: 100%;
    flex: 1 1 auto;
  }

  .right-panel {
    order: 2;
    min-height: 0;
    height: min(62vh, 760px);
  }

  .case-study-panel {
    display: none;
  }

  .left-projects {
    margin-top: var(--mobile-section-gap);
    overflow: visible;
    padding: 0;
    height: auto;
    max-height: none;
    flex: 0 0 auto;
  }

  .project-mobile-head,
  .project-mobile-sub,
  .project-mobile-accordion {
    display: none;
  }

  .grid-accordion {
    display: block;
  }

  .mobile-case-inline {
    display: none;
    grid-column: 1 / -1;
    margin-top: 8px;
    height: 450px;
    position: relative;
    overflow: hidden;
    background: #ffffff;
  }

  .project-item.is-expanded .mobile-case-inline {
    display: block;
  }

  .mobile-case-scroll {
    height: 100%;
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    display: grid;
    gap: 8px;
    padding: 0 0 94px;
  }

  .mobile-case-scroll::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
  }

  .mobile-case-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    background: #d3d3d3;
  }

  .mobile-case-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 8px 0 10px;
    background: #ffffff;
  }

  .mobile-case-footer-text {
    display: block;
    font-size: 12px;
    line-height: 1.32;
    color: var(--text-main);
    text-wrap: balance;
  }

  .project-mobile-accordion,
  .grid-accordion {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.3;
    border-top: 1px dashed var(--line);
    margin-top: 4px;
    padding-top: 0;
    transition: max-height var(--fade-ms) ease, opacity var(--fade-ms) ease, padding-top var(--fade-ms) ease;
  }

  .project-item.is-expanded .project-mobile-accordion,
  .project-item.is-expanded .grid-accordion {
    max-height: 120px;
    opacity: 1;
    padding-top: 6px;
  }

  .project-item--grid {
    min-height: 210px;
  }

  .grid-title,
  .grid-year,
  .grid-client,
  .grid-type {
    font-size: 14px;
  }

  .meta-bar {
    left: calc(var(--hole-left) + var(--hole-size) + 20px);
    right: 12px;
    bottom: calc(var(--hole-bottom) + (var(--hole-size) * 0.5) - 9px);
  }

  .meta-title,
  .meta-description {
    max-width: 40%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .app-shell.has-selection.is-mobile .project-item:not(.is-selected) {
    opacity: 1;
  }
}

@keyframes mobile-case-flash {
  0% {
    opacity: 1;
  }
  40% {
    opacity: 0.84;
  }
  100% {
    opacity: 1;
  }
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.44);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.image-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.image-lightbox-frame {
  position: relative;
  max-width: min(92vw, 1280px);
  max-height: 86vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-lightbox-media {
  width: auto;
  max-width: 100%;
  max-height: 86vh;
  display: block;
  object-fit: contain;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.16);
}

.image-lightbox-media.is-hidden {
  display: none;
}

.image-lightbox-close {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 28px;
  height: 28px;
  border: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.image-lightbox-close::before,
.image-lightbox-close::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 3px;
  width: 1px;
  height: 22px;
  background: rgba(20, 20, 20, 0.92);
}

.image-lightbox-close::before {
  transform: rotate(45deg);
}

.image-lightbox-close::after {
  transform: rotate(-45deg);
}

@container (max-width: 760px) {
  .project-item--list {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 14px;
    align-items: start;
    min-height: 0;
    padding: 9px 0;
  }

  .project-item--list .project-main {
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.1fr);
    gap: 12px;
    align-items: baseline;
  }

  .project-item--list .project-main .project-col:nth-child(3) {
    display: none;
  }

  .project-item--list .project-col,
  .project-item--list .project-year {
    display: block;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .project-item.is-expanded .mobile-case-inline {
    overflow: hidden;
  }

  .project-item.is-expanded .mobile-case-scroll {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    padding: 0 0 94px;
  }

  .project-item.is-expanded .mobile-case-image {
    flex: 0 0 100%;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
    scroll-snap-align: start;
    object-fit: cover;
  }

  .project-item.is-expanded .mobile-case-scroll.is-auto-flash {
    animation: mobile-case-flash 120ms ease-out;
  }
}

/* Portfolio Cleanup Overrides */
.app-shell {
  --ui-font-size: 13px;
  --ui-font-weight: 400;
  --ui-line-height: 1.2;
}

.app-shell :is(
    .intro-copy,
    .contact-links,
    .contact-links a,
    .toggle-option,
    .toggle-label,
    .toggle-separator,
    .project-item--list,
    .project-col,
    .project-year,
    .grid-title,
    .grid-year,
    .grid-client,
    .grid-type,
    .grid-accordion,
    .project-mobile-accordion,
    .meta-title,
    .meta-description,
    .case-study-footer-text,
    .mobile-case-footer-text,
    .case-study-indicator
  ) {
  font-size: var(--ui-font-size) !important;
  font-weight: var(--ui-font-weight) !important;
  line-height: var(--ui-line-height) !important;
}

.app-shell.is-desktop .case-image-stack {
  gap: 12px;
}

.app-shell.is-desktop .case-study-image {
  width: 100%;
  max-width: 100%;
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
  background: transparent;
}

.app-shell.is-desktop .case-study-image.case-media--portrait {
  width: min(50%, 520px);
}

.app-shell.is-desktop .case-study-image.case-media--square {
  width: min(66%, 640px);
}

.app-shell.is-mobile {
  --mobile-carousel-media-height: clamp(170px, calc(((100vw - 40px) * 9 / 16) + 24px), 350px);
}

.app-shell.is-mobile .meta-bar {
  left: 20px;
  right: auto;
  top: 14px;
  bottom: 14px;
  width: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
}

.app-shell.is-mobile .meta-title,
.app-shell.is-mobile .meta-description {
  min-width: auto;
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.app-shell.is-mobile .meta-divider {
  width: 1px;
  min-width: 1px;
  height: auto;
  min-height: 0;
  margin-block: 12px;
  flex: 1 1 auto;
  align-self: center;
}

.app-shell.is-mobile .meta-description {
  margin-top: auto;
}

.app-shell.is-mobile .project-item--list .project-main,
.app-shell.is-mobile .project-item--list .project-year {
  transform: translateX(0);
  transition: opacity var(--fade-ms) var(--fade-ease);
}

.app-shell.has-selection.is-mobile .project-item--list.is-selected {
  padding-left: 0;
  border-bottom-color: var(--line);
}

.app-shell.has-selection.is-mobile .project-item--list.is-selected .project-main,
.app-shell.has-selection.is-mobile .project-item--list.is-selected .project-year {
  opacity: 1;
  transform: translateX(0);
}

.app-shell.has-selection.is-mobile .project-item--list {
  border-bottom-color: var(--line-dim);
}

.app-shell.has-selection.is-mobile .projects-list {
  border-top-color: var(--line-dim);
}

.app-shell.has-selection.is-mobile .projects-list.is-first-selected,
.app-shell.has-selection.is-mobile .project-item--list.is-before-selected {
  border-color: var(--line);
}

.app-shell.has-selection.is-mobile .project-item--list:not(.is-selected) .project-main,
.app-shell.has-selection.is-mobile .project-item--list:not(.is-selected) .project-year,
.app-shell.has-selection.is-mobile .project-item--grid:not(.is-selected) .grid-thumb,
.app-shell.has-selection.is-mobile .project-item--grid:not(.is-selected) .grid-meta {
  opacity: var(--dimmed-opacity);
}

.app-shell.has-selection.is-mobile .project-item--list.is-selected::after,
.app-shell.has-selection.is-mobile .project-item--list:not(.is-selected)::after {
  content: none;
  display: none;
  position: absolute;
  left: 1px;
  top: 50%;
  color: #111;
  font-size: 20px;
  line-height: 1;
  transform: translateY(-50%);
  pointer-events: none;
  transition: opacity var(--list-slide-ms) var(--fade-ease);
}

.app-shell.has-selection.is-mobile .project-item--list.is-selected::after {
  opacity: 1;
}

.app-shell.has-selection.is-mobile .project-item--list:not(.is-selected)::after {
  opacity: 0;
}

.app-shell.is-mobile .mobile-case-inline {
  display: grid;
  grid-template-rows: auto auto auto;
  margin-top: 0;
  max-height: 0;
  height: auto;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  padding-block: 0;
  background: #ffffff;
  row-gap: 0;
  transition:
    max-height 360ms var(--fade-ease),
    opacity 220ms ease,
    padding-block 360ms var(--fade-ease);
}

.app-shell.is-mobile .project-item.is-expanded .mobile-case-inline {
  max-height: 1400px;
  opacity: 1;
  pointer-events: auto;
  padding-block: 8px;
}

.app-shell.is-mobile .mobile-case-footer {
  position: static;
  padding: 0;
  background: transparent;
}

.app-shell.is-mobile .mobile-case-footer-text {
  text-wrap: pretty;
}

.app-shell.is-mobile .mobile-case-scroll {
  height: auto;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: auto;
  padding: 0;
  cursor: grab;
  margin-top: 8px;
}

.app-shell.is-mobile .project-item.is-expanded .mobile-case-scroll {
  height: auto;
  gap: 0;
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: auto;
}

.app-shell.is-mobile .mobile-case-image {
  flex: 0 0 100%;
  width: 100%;
  height: auto;
  max-width: 100%;
  min-height: 0;
  aspect-ratio: 16 / 9;
  scroll-snap-align: start;
  object-fit: cover;
  display: block;
  background: #ffffff;
}

.app-shell.is-mobile .project-item.is-expanded .mobile-case-image {
  flex: 0 0 100%;
  width: 100%;
  height: auto;
  min-height: 0;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.app-shell.is-mobile .mobile-case-image.case-media--native-ratio,
.app-shell.is-mobile .project-item.is-expanded .mobile-case-image.case-media--native-ratio {
  aspect-ratio: 16 / 9;
  height: auto;
  background: #ffffff;
}

.app-shell.is-mobile .mobile-case-image.case-media--portrait,
.app-shell.is-mobile .project-item.is-expanded .mobile-case-image.case-media--portrait {
  object-fit: contain;
  object-position: center;
}

.app-shell.is-mobile .mobile-case-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  padding: 0 10px;
}

.app-shell.is-mobile .mobile-case-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #d1d1d1;
  transition: background-color 140ms ease;
}

.app-shell.is-mobile .mobile-case-dot.is-active {
  background: #111111;
}

.app-shell.is-mobile .grid-thumb {
  aspect-ratio: 4 / 5;
  background-size: contain;
  background-repeat: no-repeat;
  background-color: #ffffff;
}

.app-shell.is-mobile .projects-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: 0;
  border-top: 1px dashed var(--line);
}

.app-shell.is-mobile .project-item--grid {
  min-height: 0;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}

.app-shell.is-mobile .project-item--grid .grid-accordion {
  display: none;
}

.app-shell.is-mobile .project-item--grid .grid-thumb {
  aspect-ratio: 16 / 9;
  background-size: cover;
}

@container (max-width: 760px) {
  .project-item--list .project-col,
  .project-item--list .project-year {
    font-size: var(--ui-font-size);
  }
}
