:root {
  --insideout-ink: #111111;
  --insideout-secondary: #747474;
  --insideout-paper: #ffffff;
  --insideout-width: min(66%, 940px);
  --insideout-grid-gap: clamp(28px, 2.8vw, 40px);
  --insideout-gap: var(--insideout-grid-gap);
  --insideout-cell-gap: clamp(12px, 1.4vw, 20px);
}

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

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: var(--insideout-paper);
  color: var(--insideout-ink);
}

body {
  font-family: "Heebo", Arial, sans-serif;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

p,
figure,
h1 {
  margin: 0;
}

.insideout-width {
  width: var(--insideout-width);
  margin-inline: auto;
}

.flow-labeled {
  position: relative;
}

.flow-label {
  position: absolute;
  top: 50%;
  right: calc(100% + clamp(18px, 2.1vw, 34px));
  width: clamp(92px, 9vw, 138px);
  margin: 0;
  color: var(--insideout-ink);
  font-size: clamp(9px, 0.66vw, 11px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.01em;
  white-space: normal;
  opacity: 0;
  transform: translate(-10px, -50%);
  transition:
    opacity 520ms ease,
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.flow-labeled.is-in-view .flow-label {
  opacity: 1;
  transform: translate(0, -50%);
}

.insideout-opening {
  min-height: calc(100svh - var(--site-header-height));
}

.insideout-hero {
  position: relative;
  display: flex;
  width: 100%;
  height: clamp(250px, 29vw, 440px);
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background: #acd3eb url("/assets/insideout/sky.png") center / cover no-repeat;
}

.insideout-hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  height: 8px;
  background: #efefed;
  pointer-events: none;
}

.insideout-hero__crop {
  display: flex;
  width: var(--insideout-width);
  height: 100%;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.insideout-hero__visual {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.insideout-hero__visual img {
  position: absolute;
  bottom: 0;
  left: 44.5%;
  width: 120%;
  max-width: none;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  transform: translate(-50%, 8.25%);
}

.insideout-hero__caption {
  position: absolute;
  bottom: 12px;
  left: calc((100% - var(--insideout-width)) / 2);
  z-index: 3;
  color: rgba(17, 17, 17, 0.58);
  font-family: "Heebo", Arial, sans-serif;
  font-size: clamp(9px, 0.7vw, 11px);
  font-weight: 300;
  line-height: 1;
}

.insideout-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
  align-items: start;
  gap: clamp(40px, 6vw, 86px);
  padding-top: 16px;
  padding-bottom: 0;
}

.insideout-identity h1 {
  font-size: clamp(38px, 3.6vw, 52px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.insideout-information {
  margin-top: 24px;
  font-size: clamp(15px, 1.2vw, 19px);
  font-weight: 400;
  line-height: 1.45;
}

.insideout-information p + p {
  margin-top: 8px;
}

.insideout-location img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.insideout-location {
  align-self: start;
}

.insideout-location__map {
  position: relative;
}

.insideout-north-arrow {
  position: absolute;
  top: 6%;
  right: 4%;
  display: flex;
  width: 18px;
  height: 48px;
  justify-content: center;
  color: var(--insideout-ink);
  font-size: 9px;
  font-weight: 400;
  line-height: 1;
}

.insideout-north-arrow::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 50%;
  width: 1px;
  height: 31px;
  background: currentColor;
  transform: translateX(-50%);
}

.insideout-north-arrow::after {
  content: "";
  position: absolute;
  top: 11px;
  left: 50%;
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-left: 1px solid currentColor;
  transform: translateX(-50%) rotate(45deg);
}

.insideout-location figcaption,
.insideout-planning figcaption {
  margin-top: 14px;
  color: var(--insideout-secondary);
  font-size: clamp(11px, 0.8vw, 13px);
  font-weight: 300;
  line-height: 1.4;
}

.insideout-description {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(48px, 7vw, 96px);
  margin-top: var(--insideout-gap);
  color: var(--insideout-secondary);
  font-size: clamp(12px, 0.95vw, 14px);
  font-weight: 300;
  line-height: 1.55;
}

.insideout-site-analysis {
  margin-top: var(--insideout-gap);
  margin-bottom: var(--insideout-gap);
}

.insideout-site-analysis > img {
  display: block;
  width: 100%;
  height: auto;
}

.insideout-site-analysis + .insideout-concept {
  margin-top: 0;
}

.insideout-context {
  display: grid;
  grid-template-columns: minmax(0, 87fr) minmax(92px, 13fr);
  align-items: center;
  gap: clamp(14px, 1.7vw, 24px);
  margin-top: var(--insideout-gap);
}

.insideout-context figure {
  min-width: 0;
  overflow: hidden;
}

.insideout-context img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.insideout-context__elevations img {
  object-position: left center;
}

.insideout-context__diagram img {
  object-position: right center;
}

.insideout-planning-gif {
  margin-top: var(--insideout-gap);
}

.insideout-planning-gif__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1.76 / 1;
  overflow: hidden;
  background: var(--insideout-paper);
}

.insideout-planning-gif .insideout-planning-gif__animation {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}

.insideout-planning-gif .insideout-planning-gif__prototype {
  position: absolute;
  right: 2.2%;
  top: 2.5%;
  bottom: auto;
  width: clamp(34px, 5.2vw, 66px);
  height: auto;
  object-fit: contain;
}

.insideout-concept {
  margin-top: clamp(10px, 1vw, 16px);
}

.insideout-concept__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: clamp(20px, 3vw, 46px);
}

.insideout-concept__item {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
}

.insideout-concept__item img {
  width: auto;
  height: clamp(76px, 6.8vw, 104px);
  object-fit: contain;
}

.insideout-concept__item figcaption {
  margin-top: 10px;
  text-align: center;
  text-transform: uppercase;
}

.insideout-concept__item strong,
.insideout-concept__item span {
  display: block;
}

.insideout-concept__item strong {
  color: var(--insideout-ink);
  font-size: clamp(12px, 0.9vw, 15px);
  font-weight: 400;
  line-height: 1.15;
}

.insideout-concept__item span {
  margin-top: 4px;
  color: var(--insideout-secondary);
  font-size: clamp(8px, 0.56vw, 10px);
  font-weight: 300;
  line-height: 1.2;
}

.insideout-concept__caption {
  display: none;
}

.insideout-paired {
  display: grid;
  grid-template-columns: minmax(250px, 0.48fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(16px, 2vw, 28px);
  margin-top: var(--insideout-gap);
  margin-bottom: var(--insideout-gap);
}

.insideout-paired__stages-wrap,
.insideout-paired__stage-content,
.insideout-paired__render {
  min-width: 0;
}

.insideout-paired__stages {
  display: grid;
  gap: clamp(9px, 0.9vw, 14px);
}

.insideout-paired__stage {
  display: grid;
  grid-template-columns: clamp(28px, 2.7vw, 38px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(6px, 0.7vw, 10px);
}

.insideout-paired__number {
  padding-top: 4px;
  color: var(--insideout-ink);
  font-size: clamp(18px, 1.7vw, 25px);
  font-weight: 600;
  line-height: 1;
}

.insideout-paired__visuals {
  display: block;
  width: 100%;
}

.insideout-paired__visuals img,
.insideout-paired__render img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.insideout-paired__details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  margin-top: 5px;
  color: var(--insideout-secondary);
  font-size: clamp(8px, 0.56vw, 10px);
  font-weight: 300;
  line-height: 1.35;
}

.insideout-paired__details strong {
  flex: 0 0 auto;
  color: var(--insideout-ink);
  font-size: clamp(9px, 0.65vw, 11px);
  font-weight: 500;
}

.insideout-paired__details span {
  text-align: left;
}

.insideout-paired__caption {
  margin-top: 12px;
  color: var(--insideout-secondary);
  font-family: "Heebo", Arial, sans-serif;
  font-size: clamp(11px, 0.8vw, 13px);
  font-weight: 300;
  line-height: 1.4;
}

.insideout-circulation {
  display: grid;
  grid-template-columns: minmax(250px, 0.48fr) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(16px, 2vw, 28px);
  margin-bottom: var(--insideout-gap);
}

.insideout-circulation__plans,
.insideout-circulation__visuals,
.insideout-circulation__plan,
.insideout-circulation__section,
.insideout-circulation__renders,
.insideout-circulation__renders figure {
  min-width: 0;
}

.insideout-circulation__plans {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr)) auto;
  gap: clamp(28px, 3vw, 42px);
  height: 100%;
  background: #f4f4f3;
}

.insideout-circulation__visuals {
  display: grid;
  gap: var(--insideout-cell-gap);
}

.insideout-circulation__plan img,
.insideout-circulation__section img,
.insideout-circulation__renders img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.insideout-circulation__plan img {
  height: 100%;
  object-fit: contain;
  image-rendering: auto;
}

.insideout-circulation__plan {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0;
  min-height: 0;
}

.insideout-circulation__plan figcaption {
  display: grid;
  justify-items: start;
  gap: 2px;
  padding: 8px clamp(14px, 1.2vw, 20px) 12px;
  color: var(--insideout-secondary);
  background: #f4f4f3;
  font-family: "Heebo", Arial, sans-serif;
  font-size: clamp(9px, 0.7vw, 12px);
  font-weight: 300;
  line-height: 1.35;
  text-align: left;
}

.insideout-circulation__plan figcaption span {
  color: var(--insideout-ink);
}

.insideout-circulation__plan figcaption small {
  font: inherit;
}

.insideout-circulation__section {
  position: relative;
}

.insideout-circulation__section figcaption {
  position: absolute;
  bottom: 8px;
  left: 10px;
  color: var(--insideout-ink);
  font-size: clamp(9px, 0.68vw, 12px);
  font-weight: 300;
  line-height: 1.2;
}

.insideout-circulation__renders {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--insideout-cell-gap);
}

.insideout-circulation__caption {
  color: var(--insideout-secondary);
  background: #ffffff;
  font-family: "Heebo", Arial, sans-serif;
  font-size: clamp(11px, 0.8vw, 13px);
  font-weight: 300;
  line-height: 1.4;
  padding: 10px 0 0;
}

.insideout-external {
  display: grid;
  grid-template-columns: minmax(250px, 0.48fr) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(16px, 2vw, 28px);
  margin-bottom: var(--insideout-gap);
}

.insideout-external__plans,
.insideout-external__rows {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: var(--insideout-cell-gap);
  min-width: 0;
}

.insideout-external__plans {
  background: #f4f4f3;
}

.insideout-external__plan,
.insideout-external__axon,
.insideout-external__facade {
  min-width: 0;
}

.insideout-external__plan,
.insideout-external__facade {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: stretch;
}

.insideout-external__plan {
  overflow: hidden;
}

.insideout-external__plan img,
.insideout-external__facade img,
.insideout-external__axon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.insideout-external__plan img {
  transform: rotate(90deg) scale(0.95);
  transform-origin: center;
}

.insideout-external__plan figcaption,
.insideout-external__facade figcaption,
.insideout-external__axon figcaption,
.insideout-external__caption {
  color: var(--insideout-secondary);
  font-family: "Heebo", Arial, sans-serif;
  font-size: clamp(9px, 0.68vw, 11px);
  font-weight: 300;
  line-height: 1.35;
  text-align: left;
}

.insideout-external__plan figcaption {
  padding: 6px 10px 10px;
  background: #f4f4f3;
}

.insideout-external__row {
  display: grid;
  grid-template-columns: minmax(110px, 0.34fr) minmax(0, 0.66fr);
  align-items: stretch;
  gap: var(--insideout-cell-gap);
  min-width: 0;
}

.insideout-external__axon {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: stretch;
}

.insideout-external__axon img {
  mix-blend-mode: multiply;
}

.insideout-external__axon figcaption {
  display: grid;
  gap: 3px;
  padding-top: 6px;
  font-size: clamp(7px, 0.52vw, 9px);
}

.insideout-external__axon figcaption span {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  align-items: start;
  gap: 4px;
}

.insideout-external__swatch {
  display: block;
  width: 7px;
  height: 7px;
  margin-top: 2px;
  border: 1px solid rgba(17, 17, 17, 0.46);
}

.insideout-external__swatch--public {
  background: #765749;
}

.insideout-external__swatch--shared {
  background: #e67b28;
}

.insideout-external__facade figcaption {
  padding-top: 6px;
}

.insideout-external__facade {
  overflow: hidden;
  background: #9ccbe7;
}

.insideout-external__facade img {
  object-position: center bottom;
}

.insideout-external__caption {
  grid-column: 1 / -1;
  padding-top: 2px;
  font-size: clamp(11px, 0.8vw, 13px);
}

.insideout-planning {
  display: grid;
  grid-template-columns: minmax(0, 4.6fr) minmax(96px, 1fr);
  align-items: stretch;
  gap: clamp(16px, 2vw, 28px);
  margin-top: var(--insideout-gap);
  margin-bottom: var(--insideout-gap);
}

.insideout-planning__site-figure {
  min-width: 0;
}

.insideout-planning__site {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.insideout-planning__site-figure > figcaption {
  text-align: left;
}

.insideout-prototypes {
  display: grid;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 20px);
}

.insideout-prototype {
  display: flex;
  min-height: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.insideout-prototype__icon {
  position: relative;
  width: clamp(42px, 4.15vw, 62px);
  aspect-ratio: 64 / 142;
  overflow: hidden;
}

.insideout-prototype__icon img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-width: none;
  height: auto;
}

.insideout-prototype:nth-child(2) .insideout-prototype__icon img {
  transform: translateY(-24.9%);
}

.insideout-prototype:nth-child(3) .insideout-prototype__icon img {
  transform: translateY(-49.8%);
}

.insideout-prototype:nth-child(4) .insideout-prototype__icon img {
  transform: translateY(-75.1%);
}

.insideout-prototype figcaption {
  margin-top: 5px;
  text-align: left;
}

.insideout-prototype figcaption strong,
.insideout-prototype figcaption span {
  display: block;
}

.insideout-prototype figcaption strong {
  color: var(--insideout-ink);
  font-size: clamp(11px, 0.85vw, 14px);
  font-weight: 400;
  line-height: 1.1;
  text-transform: uppercase;
}

.insideout-prototype figcaption span {
  margin-top: 3px;
  color: var(--insideout-secondary);
  font-size: clamp(8px, 0.58vw, 10px);
  font-weight: 300;
  line-height: 1.2;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  :root {
    --insideout-width: 86%;
    --insideout-grid-gap: clamp(22px, 5vw, 30px);
  }

  .flow-labeled {
    padding-top: 24px;
  }

  .flow-label {
    top: 0;
    right: auto;
    left: 0;
    width: auto;
    font-size: 9px;
  }

  .flow-labeled.is-in-view .flow-label {
    transform: translate(0, 0);
  }

  .insideout-opening {
    min-height: auto;
  }

  .insideout-hero {
    height: clamp(210px, 52vw, 350px);
  }

  .insideout-hero__visual {
    width: 100%;
  }

  .insideout-hero__visual img {
    bottom: 0;
    left: 60%;
    width: 100%;
    max-width: none;
    height: auto;
    max-height: calc(100% - 44px);
    transform: translateX(-50%);
  }

  .insideout-hero__caption {
    bottom: 12px;
    left: calc((100% - var(--insideout-width)) / 2);
  }

  .insideout-intro,
  .insideout-description {
    grid-template-columns: 1fr;
  }

  .insideout-intro {
    align-items: start;
    gap: var(--insideout-gap);
  }

  .insideout-location {
    width: min(74%, 420px);
  }

  .insideout-planning {
    grid-template-columns: 1fr;
    gap: var(--insideout-gap);
  }

  .insideout-context {
    grid-template-columns: 1fr;
    gap: calc(var(--insideout-gap) * 0.6);
  }

  .insideout-context__diagram {
    width: min(36%, 150px);
    justify-self: end;
  }

  .insideout-concept__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: calc(var(--insideout-gap) * 0.75);
  }

  .insideout-concept__item img {
    height: clamp(108px, 30vw, 148px);
  }

  .insideout-paired {
    grid-template-columns: 1fr;
    gap: var(--insideout-gap);
  }

  .insideout-circulation {
    grid-template-columns: 1fr;
    gap: calc(var(--insideout-gap) * 0.75);
  }

  .insideout-external {
    display: flex;
    flex-direction: column;
    gap: calc(var(--insideout-gap) * 0.55);
  }

  .insideout-external__plans,
  .insideout-external__rows {
    display: contents;
  }

  .insideout-external__plan:nth-child(1) {
    order: 1;
  }

  .insideout-external__row:nth-child(1) {
    order: 2;
  }

  .insideout-external__plan:nth-child(2) {
    order: 3;
  }

  .insideout-external__row:nth-child(2) {
    order: 4;
  }

  .insideout-external__caption {
    order: 5;
  }

  .insideout-external__row {
    grid-template-columns: minmax(96px, 0.34fr) minmax(0, 0.66fr);
  }

  .insideout-paired__stage {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .insideout-paired__details {
    grid-template-columns: 1fr;
    gap: 2px;
    font-size: 9px;
  }

  .insideout-paired__details strong {
    font-size: 10px;
  }

  .insideout-paired__details span {
    text-align: left;
  }

  .insideout-prototypes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    gap: var(--insideout-gap);
  }

  .insideout-prototype__icon {
    width: clamp(48px, 13vw, 62px);
  }
}

/* Reordered project composition.
   These rules only place the existing rows in their new sequence; the
   established project grid, widths, and image proportions stay unchanged. */
.insideout-facade-study {
  display: grid;
  width: var(--insideout-width);
  gap: 0;
  margin-top: var(--insideout-gap);
  margin-inline: auto;
  background: #cfe7f4 url("/assets/insideout/facade-blue-background.png") center / cover no-repeat;
}

.insideout-facade-study > figure {
  position: relative;
}

.insideout-facade-study > .insideout-context__elevations {
  aspect-ratio: auto;
  overflow: visible;
}

.insideout-facade-labels {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(7px, 0.52vw, 9px);
  font-weight: 300;
  line-height: 1;
  pointer-events: none;
}

.insideout-facade-labels span {
  position: absolute;
  bottom: 0;
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.insideout-facade-labels--existing {
  top: 71.4%;
  bottom: auto;
  height: 15.4%;
}

.insideout-facade-labels--existing span:nth-child(1) {
  left: 0;
  width: 22.08%;
  background: #d5d9d4;
}

.insideout-facade-labels--existing span:nth-child(2) {
  left: 25.15%;
  width: 47.09%;
  background: #939e90;
}

.insideout-facade-labels--existing span:nth-child(3) {
  left: 74.61%;
  width: 25.39%;
  background: #d5d9d4;
}

.insideout-facade-labels--proposal {
  height: 7.7%;
}

.insideout-facade-labels--proposal span:nth-child(1) {
  left: 0;
  width: 23.02%;
  background: #d5d9d4;
}

.insideout-facade-labels--proposal span:nth-child(2) {
  left: 24.78%;
  width: 47.83%;
  background: #939e90;
}

.insideout-facade-labels--proposal span:nth-child(3) {
  left: 74.46%;
  width: 25.54%;
  background: #d5d9d4;
}

.insideout-facade-study > .insideout-context__elevations,
.insideout-facade-study > .insideout-facade-study__proposal {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.insideout-facade-study__proposal {
  display: block;
  width: 100%;
}

.insideout-facade-study .insideout-context__elevations > img,
.insideout-facade-study .insideout-facade-study__proposal > img {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: none;
  height: auto;
  object-fit: contain;
}

.insideout-facade-study__proposal-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4096 / 1222;
  overflow: hidden;
}

.insideout-facade-study__proposal-image::before,
.insideout-facade-study__proposal-image::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  background: #e2e2e2;
  pointer-events: none;
}

.insideout-facade-study__proposal-image::before {
  left: 23.02%;
  width: 1.76%;
}

.insideout-facade-study__proposal-image::after {
  left: 72.61%;
  width: 1.85%;
}

.insideout-facade-study__existing-image {
  width: 100%;
  aspect-ratio: 2151 / 250;
  overflow: hidden;
}

.insideout-facade-study .insideout-facade-study__existing-image img {
  display: block;
  width: 100%;
  height: auto;
}

.insideout-facade-study .insideout-facade-study__proposal-image img {
  display: block;
  width: 100%;
  max-height: none;
  height: auto;
}

.insideout-facade-study .insideout-facade-study__proposal > img {
  display: block;
  width: 100%;
  max-height: none;
  height: auto;
}

.insideout-facade-study .insideout-facade-study__street-strip {
  display: grid;
  width: 100%;
  grid-template-columns:
    minmax(0, 22.08fr)
    minmax(0, 3.07fr)
    minmax(0, 47.09fr)
    minmax(0, 2.37fr)
    minmax(0, 25.39fr);
  gap: 0;
  min-height: clamp(12px, 1.2vw, 18px);
  margin-top: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(7px, 0.52vw, 9px);
  line-height: 1;
  text-align: center;
  direction: ltr;
}

/* The proposed composite has different built-in street gaps than the
   existing elevation. Keep the image fixed and align only its strip. */
.insideout-facade-study__proposal .insideout-facade-study__street-strip {
  grid-template-columns:
    minmax(0, 23.02fr)
    minmax(0, 1.76fr)
    minmax(0, 47.83fr)
    minmax(0, 1.85fr)
    minmax(0, 25.54fr);
}

.insideout-facade-study__street-strip span {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #d7dcd6;
}

.insideout-facade-study__street-strip span:nth-of-type(2) {
  background: #9fa89a;
}

.insideout-facade-study__street-strip i {
  display: block;
  background: #b7b9b6;
}

.insideout-street-facade {
  display: grid;
  min-width: 0;
  grid-template-rows: 1fr auto;
  align-self: stretch;
  align-items: end;
}

.insideout-facade-study__proposal .insideout-street-facade img {
  width: 100%;
  max-height: none;
  height: auto;
  align-self: end;
}

.insideout-facade-study .insideout-street-facade figcaption {
  width: 100%;
  min-height: clamp(12px, 1.2vw, 18px);
  margin-top: 0;
  padding: 2px 4px;
  background: #aeb3aa;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(7px, 0.52vw, 9px);
  line-height: 1;
  text-align: center;
  direction: rtl;
}

.insideout-facade-study figure,
.insideout-feature,
.insideout-final {
  min-width: 0;
}

.insideout-facade-study img,
.insideout-feature img,
.insideout-final img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.insideout-facade-study__proposal img {
  max-height: clamp(170px, 19vw, 272px);
  object-position: center bottom;
}

.insideout-facade-study figcaption,
.insideout-feature figcaption,
.insideout-final figcaption {
  margin-top: 7px;
  color: var(--insideout-secondary);
  font-size: clamp(10px, 0.7vw, 12px);
  font-weight: 300;
  line-height: 1.35;
  text-align: left;
}

.insideout-facade-study figcaption.insideout-facade-study__state {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  display: grid;
  align-items: center;
  justify-items: start;
  height: auto;
  margin: 0;
  padding: 0 clamp(10px, 1vw, 16px);
  background: transparent;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(6px, 0.65vw, 11px);
  line-height: 1;
  text-align: left;
}

.insideout-facade-study .insideout-context__elevations .insideout-facade-study__state {
  right: auto;
  width: 22.08%;
  height: 28.57%;
  padding-left: clamp(8px, 0.8vw, 14px);
  padding-right: 0;
  justify-items: start;
  text-align: left;
}

.insideout-facade-study .insideout-facade-study__proposal .insideout-facade-study__state {
  right: auto;
  width: 23.02%;
  height: 7.7%;
  padding-left: clamp(8px, 0.8vw, 14px);
  padding-right: 0;
  justify-items: start;
  text-align: left;
}

.insideout-feature {
  margin-top: var(--insideout-gap);
}

.insideout-feature--paired {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  column-gap: var(--insideout-cell-gap);
  row-gap: var(--insideout-cell-gap);
}

.insideout-feature--paired figure:nth-of-type(1) {
  grid-column: 1 / span 2;
}

.insideout-feature--paired figure:nth-of-type(2) {
  grid-column: 3;
}

.insideout-feature--paired figure:nth-of-type(3) {
  grid-column: 1;
}

.insideout-feature--paired figure:nth-of-type(4) {
  grid-column: 2 / span 2;
}

.insideout-feature--paired figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  margin: 0;
}

.insideout-feature--paired figure > img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.insideout-feature--paired figure[data-photo-open] {
  cursor: zoom-in;
}

.insideout-feature--paired figure[data-photo-open]:focus-visible {
  outline: 1px solid var(--insideout-ink);
  outline-offset: 4px;
}

.insideout-feature--paired figure:nth-of-type(1) > img {
  aspect-ratio: 2.1;
}

.insideout-feature--paired figure:nth-of-type(2) > img {
  aspect-ratio: 1.13;
  object-fit: contain;
  object-position: center bottom;
  background: #74a9d1;
}

.insideout-feature--paired figure:nth-of-type(3) > img {
  aspect-ratio: 1.19;
}

.insideout-feature--paired figure:nth-of-type(4) > img {
  aspect-ratio: 2.03;
  object-fit: contain;
  object-position: center bottom;
  background: #75add3;
}

.insideout-feature--paired figcaption {
  margin-top: 7px;
  color: var(--insideout-secondary);
  font-size: clamp(10px, 0.7vw, 12px);
  font-weight: 300;
  line-height: 1.35;
}

.insideout-feature__caption-placeholder {
  visibility: hidden;
}

.insideout-feature[hidden] {
  display: none;
}

.insideout-concept[hidden] {
  display: none;
}

.insideout-circulation[hidden] {
  display: none;
}

.insideout-external[hidden] {
  display: none;
}

.insideout-floor-plans {
  margin-top: var(--insideout-cell-gap);
}

.insideout-floor-plans__grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--insideout-cell-gap);
  align-items: stretch;
}

.insideout-floor-plans__grid figure {
  min-width: 0;
  margin: 0;
}

.insideout-floor-plans__stack {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: var(--insideout-cell-gap);
  min-height: 0;
  aspect-ratio: 0.68;
  align-self: start;
  box-sizing: border-box;
  padding-bottom: 0;
}

.insideout-floor-plans__stack-item {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
}

.insideout-floor-plans__panel {
  display: grid;
  aspect-ratio: 0.68;
  place-items: center;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(45, 45, 42, 0.09);
  box-shadow: 0 2px 8px rgba(30, 30, 28, 0.025);
  box-sizing: border-box;
}

.insideout-floor-plans__grid figure:nth-child(3) .insideout-floor-plans__panel {
  aspect-ratio: auto;
  min-height: 0;
  padding: clamp(14px, 1.25vw, 20px);
  background: #ffffff;
}

.insideout-floor-plans__panel img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform: none;
}

.insideout-floor-plans__grid figure:nth-child(3) .insideout-floor-plans__panel img {
  width: 84%;
  height: 84%;
  max-width: 84%;
  max-height: 84%;
  object-fit: contain;
  object-position: center;
  transform: none;
}

.insideout-floor-plans__grid figure:nth-child(3) .insideout-floor-plans__panel--axon img {
  max-width: 84%;
  max-height: 84%;
  transform: none;
}

.insideout-floor-plans figcaption {
  margin-top: 7px;
  color: var(--insideout-secondary);
  font-size: clamp(10px, 0.7vw, 12px);
  font-weight: 300;
  line-height: 1.35;
}

@media (max-width: 760px) {
  .insideout-floor-plans__grid {
    grid-template-columns: 1fr;
  }

  .insideout-floor-plans__stack {
    aspect-ratio: auto;
    align-self: stretch;
    padding-bottom: 0;
  }
}

@media (max-width: 760px) {
  .insideout-feature--paired {
    grid-template-columns: 1fr;
  }

  .insideout-feature--paired figure:nth-of-type(n) {
    grid-column: 1;
    aspect-ratio: auto;
    margin-inline: 0;
  }
}

.insideout-photos {
  margin-top: var(--insideout-gap);
  margin-bottom: var(--insideout-gap);
  padding-bottom: 0;
}

.insideout-photos__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #ffffff;
}

.insideout-photos__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
  cursor: zoom-in;
  transition: opacity 420ms ease;
}

.insideout-photos__slide.is-active {
  z-index: 1;
  opacity: 1;
  pointer-events: auto;
}

.insideout-photos__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease, filter 220ms ease;
}

.insideout-photos__slide:hover img,
.insideout-photos__slide:focus-visible img {
  transform: scale(1.015);
  filter: brightness(0.96);
}

.insideout-photos__slide:focus-visible {
  outline: 1px solid var(--insideout-ink);
  outline-offset: -4px;
}

.insideout-photos .carousel-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 0;
  background: rgba(0, 0, 0, 0.26);
  color: #ffffff;
  font: 400 20px / 1 "Heebo", Arial, sans-serif;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transform: translateY(-50%);
  transition: opacity 180ms ease;
}

.insideout-photos .previous {
  left: clamp(10px, 1.2vw, 18px);
}

.insideout-photos .next {
  right: clamp(10px, 1.2vw, 18px);
}

.insideout-photos__stage:hover .carousel-control,
.insideout-photos .carousel-control:focus-visible {
  opacity: 1;
  pointer-events: auto;
}

.insideout-photos .carousel-indicators {
  position: absolute;
  bottom: clamp(10px, 1.4vw, 18px);
  left: 50%;
  z-index: 3;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 180ms ease;
}

.insideout-photos__stage:hover .carousel-indicators,
.insideout-photos:focus-within .carousel-indicators {
  opacity: 1;
  pointer-events: auto;
}

.insideout-photos .carousel-indicator {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.62);
  cursor: pointer;
}

.insideout-photos .carousel-indicator.is-active {
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(0, 0, 0, 0.72);
  transform: scale(1.12);
}

.photo-lightbox {
  width: min(96vw, 1500px);
  max-width: none;
  height: 94vh;
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  color: #ffffff;
}

.photo-lightbox::backdrop {
  background: rgba(12, 12, 12, 0.92);
  backdrop-filter: blur(3px);
}

.photo-lightbox figure {
  display: grid;
  width: 100%;
  height: 100%;
  margin: 0;
  place-items: center;
  grid-template-rows: minmax(0, 1fr) auto;
  background: transparent;
}

.photo-lightbox figure img {
  display: block;
  max-width: calc(100% - 110px);
  max-height: calc(94vh - 54px);
  border: 0;
  outline: 0;
  box-shadow: none;
  clip-path: inset(1px);
  object-fit: contain;
}

.photo-lightbox figcaption {
  min-height: 24px;
  padding-top: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.03em;
}

.photo-lightbox__close,
.photo-lightbox__nav {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.photo-lightbox__close:hover,
.photo-lightbox__nav:hover,
.photo-lightbox__close:focus-visible,
.photo-lightbox__nav:focus-visible {
  background: rgba(0, 0, 0, 0.58);
  outline: 1px solid rgba(255, 255, 255, 0.65);
}

.photo-lightbox__close {
  top: 8px;
  right: 8px;
  font-size: 30px;
  font-weight: 200;
  line-height: 1;
}

.photo-lightbox__nav {
  top: 50%;
  translate: 0 -50%;
  font-size: 38px;
  font-weight: 200;
  line-height: 1;
}

.photo-lightbox__nav--previous {
  left: 8px;
}

.photo-lightbox__nav--next {
  right: 8px;
}

@media (max-width: 760px) {
  .insideout-photos__stage {
    aspect-ratio: 4 / 3;
  }

  .photo-lightbox {
    width: 100vw;
    height: 100dvh;
  }

  .photo-lightbox figure img {
    max-width: calc(100% - 24px);
    max-height: calc(100dvh - 86px);
  }

  .photo-lightbox__nav {
    top: auto;
    bottom: 16px;
    translate: 0;
  }
}

.insideout-final {
  margin-bottom: var(--insideout-gap);
}

/* The three development stages now form one complete row. */
.insideout-paired {
  display: block;
  margin-top: var(--insideout-cell-gap);
  margin-bottom: 0;
}

.insideout-paired__stages {
  width: 100%;
  box-sizing: border-box;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--insideout-cell-gap);
  padding: clamp(10px, 1vw, 16px);
  border: 1px solid rgba(74, 74, 74, 0.11);
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(35, 35, 35, 0.025);
}

@media (max-width: 760px) {
  .insideout-paired__stages {
    grid-template-columns: 1fr;
    gap: calc(var(--insideout-gap) * 0.7);
  }
}
