:root {
  --paper: #f1f2ef;
  --ink: #202321;
  --wall: #555a57;
  --urban: #61a57f;
  --orange: #bf7832;
  --indigo: #4336d7;
  --blue: #0075ff;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --page-pad: clamp(1.5rem, 4.5vw, 5.25rem);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  background: #292c2a;
}

body {
  margin: 0;
  min-width: 20rem;
  background: #292c2a;
  color: #f7f7f3;
  font-family: var(--sans);
  overflow-x: hidden;
}

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

.lobby { position: relative; }

.wall {
  position: relative;
  display: grid;
  grid-template-columns: minmax(19rem, .72fr) minmax(32rem, 1.28fr);
  align-items: center;
  gap: clamp(1.5rem, 2.25vw, 3rem);
  min-height: 100svh;
  scroll-snap-align: start;
  padding: clamp(5rem, 8vh, 8rem) max(var(--page-pad), 5.5vw);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 73% 45%, rgba(255,255,255,.07), transparent 39%),
    linear-gradient(112deg, #626764 0%, #4b504d 52%, #3d413f 100%);
  box-shadow: inset 0 0 8rem rgba(12,15,13,.16);
}

.wall::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .38;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.017) 0, rgba(255,255,255,.017) 1px, transparent 1px, transparent 4px);
  pointer-events: none;
}

.urban-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  max-width: 34rem;
}

.urban-wordmark {
  width: min(100%, 28rem);
  margin: 0 0 clamp(2.25rem, 5vh, 4.25rem);
  filter: none;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.12));
}

.urban-copy h1 {
  max-width: 10.8ch;
  margin: 0;
  font-size: clamp(3rem, 4.55vw, 5.85rem);
  font-weight: 300;
  line-height: .98;
  letter-spacing: -.058em;
}

.urban-copy p {
  max-width: 29rem;
  margin: clamp(1.7rem, 2.6vw, 2.65rem) 0 0;
  font-size: clamp(.92rem, .96vw, 1.08rem);
  font-weight: 300;
  line-height: 1.55;
  letter-spacing: .008em;
  color: rgba(255,255,255,.58);
}

.urban-system {
  position: relative;
  z-index: 1;
  align-self: center;
  justify-self: center;
  width: min(108%, 84rem);
  margin: 0;
}

.urban-system::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.055), transparent 68%);
  transform: translate(-50%, -50%);
}

.urban-system img {
  width: 100%;
  max-height: 86svh;
  object-fit: contain;
}

.hero-floor {
  position: absolute;
  z-index: 3;
  right: max(var(--page-pad), 5.5vw);
  bottom: clamp(1.4rem, 2.5vh, 2.25rem);
  left: max(var(--page-pad), 5.5vw);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-top: .85rem;
  border-top: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.43);
  font-size: .59rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.hero-floor a {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: rgba(255,255,255,.58);
  text-decoration: none;
  transition: color .4s ease;
}

.hero-floor a:hover,
.hero-floor a:focus-visible { color: #fff; }

.hero-floor b { font-size: .85rem; }

.doors-section {
  min-height: 100svh;
  scroll-snap-align: start;
  background: #d1d3d0;
  color: var(--ink);
}

.portfolio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 100svh;
  background: #d1d3d0;
}

.business {
  --accent: #6f7471;
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
  padding: clamp(1.5rem, 2.3vw, 2.65rem);
  border-right: 1px solid rgba(50,54,51,.2);
  color: #343735;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  background: #d7d9d6;
  transition: color .7s ease, background .7s ease;
}

.business:last-child { border-right: 0; }
.perceptive { --accent: var(--orange); }
.tessera { --accent: var(--indigo); }
.groundworx { --accent: var(--blue); }

.business::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0 0 auto;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .55s var(--ease);
}

.business:hover::before,
.business:focus-visible::before { transform: scaleX(1); }

.business:focus-visible {
  z-index: 3;
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.business-image {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .29;
  filter: grayscale(1) contrast(.96);
  transform: scale(1.045);
  transition: opacity .8s ease, filter .8s ease, transform 1.15s var(--ease);
}

.perceptive .business-image {
  inset: 0;
  width: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: 52% 50%;
  background: #fff;
  transform: scale(1.24);
}

.tessera .business-image {
  object-fit: cover;
  object-position: center 31%;
}

.groundworx .business-image {
  inset: 0;
  width: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
  background: #f2f3f0;
  transform: scale(1.07);
}

.business-shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(216,218,215,.42), rgba(216,218,215,.86) 76%);
  transition: background .8s ease;
}

.business:hover,
.business:focus-visible {
  color: #303330;
  background: #f2f3f0;
}

.business:hover .business-image,
.business:focus-visible .business-image {
  opacity: .51;
  filter: grayscale(1) contrast(1.02);
  transform: scale(1);
}

.perceptive:hover .business-image,
.perceptive:focus-visible .business-image {
  filter: grayscale(1) contrast(1.02);
  transform: scale(1.16);
}

.groundworx:hover .business-image,
.groundworx:focus-visible .business-image {
  filter: grayscale(1) contrast(1.02);
  transform: scale(1.02);
}

.business:hover .business-shade,
.business:focus-visible .business-shade {
  background: linear-gradient(180deg, rgba(247,248,245,.12), rgba(247,248,245,.84) 80%);
}

.business-index {
  position: relative;
  z-index: 2;
  font-size: .59rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(48,52,49,.44);
  transition: color .55s ease;
}

.business:hover .business-index,
.business:focus-visible .business-index { color: var(--accent); }

.enter {
  position: relative;
  z-index: 2;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.business-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  justify-items: center;
  display: grid;
  gap: 1.45rem;
  width: 100%;
  padding-bottom: clamp(1.25rem, 2vh, 2rem);
  text-align: center;
}

.business-copy > strong { display: block; font-weight: 400; line-height: 1; }

.business-description {
  max-width: 28rem;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.3vw, 1.36rem);
  font-style: italic;
  line-height: 1.35;
  color: rgba(36,39,37,.78);
  opacity: 0;
  transform: translateY(.7rem);
  transition: color .45s ease, opacity .45s ease, transform .55s var(--ease);
}

.business:hover .business-description,
.business:focus-visible .business-description {
  color: rgba(36,39,37,.78);
  opacity: 1;
  transform: translateY(0);
}

.perceptive-wordmark {
  width: min(100%, 18rem);
  height: auto;
  opacity: .68;
  filter: grayscale(1) contrast(.9);
  mix-blend-mode: multiply;
  transition: opacity .5s ease, filter .5s ease;
}

.perceptive:hover .perceptive-wordmark,
.perceptive:focus-visible .perceptive-wordmark {
  opacity: 1;
  filter: none;
  mix-blend-mode: normal;
}

.tessera-wordmark {
  width: min(100%, 22rem);
  opacity: .68;
  filter: grayscale(1) contrast(.9);
  transition: opacity .5s ease, filter .5s ease;
}

.tessera:hover .tessera-wordmark,
.tessera:focus-visible .tessera-wordmark {
  opacity: 1;
  filter: none;
}

.groundworx-wordmark {
  width: min(112%, 27rem);
  max-width: none;
  opacity: .7;
  filter: grayscale(1) contrast(.88);
  transition: opacity .5s ease, filter .5s ease;
}

.groundworx:hover .groundworx-wordmark,
.groundworx:focus-visible .groundworx-wordmark {
  opacity: 1;
  filter: none;
}

.enter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(47,51,48,.24);
  color: #747976;
  opacity: 0;
  transform: translateY(.4rem);
  overflow-wrap: anywhere;
  transition: color .45s ease, border-color .45s ease, opacity .45s ease, transform .55s var(--ease);
}

.enter b {
  flex: 0 0 auto;
  font-size: 1rem;
  transition: color .45s ease, transform .4s var(--ease);
}

.business:hover .enter,
.business:focus-visible .enter {
  border-color: rgba(36,39,37,.28);
  color: rgba(36,39,37,.66);
  opacity: 1;
  transform: translateY(0);
}

.business:hover .enter b,
.business:focus-visible .enter b {
  color: var(--accent);
  transform: translate(.2rem, -.2rem);
}

.copyright {
  position: absolute;
  z-index: 10;
  right: 1rem;
  top: 50svh;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  color: rgba(255,255,255,.42);
  font-size: .62rem;
  line-height: 1;
  letter-spacing: .15em;
  text-transform: uppercase;
}

@media (min-width: 1000px) {
  .portfolio:has(.business:hover) .business:not(:hover) .business-image { opacity: .09; }
}

@media (max-width: 999px) {
  .wall {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    align-content: center;
    gap: 2.5rem;
    padding-bottom: 6rem;
  }

  .urban-copy { max-width: 44rem; }
  .urban-wordmark { width: min(76vw, 28rem); margin-bottom: 2.5rem; }
  .urban-copy h1 { max-width: 11ch; font-size: clamp(3rem, 9vw, 6rem); }
  .urban-system { width: min(100%, 52rem); }
  .urban-system img { max-height: 46svh; }

  .portfolio { grid-template-columns: 1fr; }
  .business {
    min-height: 27rem;
    border-right: 0;
    border-bottom: 1px solid rgba(50,54,51,.24);
  }
  .business:last-child { border-bottom: 0; }
}

@media (max-width: 600px) {
  .wall { padding: 4.5rem 1.35rem 6rem; }
  .urban-wordmark { width: min(86vw, 24rem); margin-bottom: 2rem; }
  .urban-copy h1 { font-size: clamp(2.8rem, 14vw, 4.6rem); }
  .urban-copy p { font-size: 1rem; }
  .urban-system { width: 114%; margin-left: -7%; }
  .business { min-height: 24rem; padding: 1.35rem; }
  .business-description { font-size: 1.05rem; }

  .copyright { right: .45rem; font-size: .56rem; }
}

@media (hover: none) {
  .business::before { transform: scaleX(1); opacity: .7; }
  .business-image { opacity: .4; }
  .perceptive-wordmark,
  .tessera-wordmark,
  .groundworx-wordmark { opacity: 1; filter: none; mix-blend-mode: normal; }
  .business-description,
  .enter { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
