.shell {
  --ease-out-strong: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out-strong: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-editorial: cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 100dvh;
  display: block;
  padding: 0;
  background: var(--outer);
}

.frame {
  width: 100vw;
  height: 100dvh;
  min-height: 640px;
  display: grid;
  grid-template-columns: 94.4px 1fr;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--panel);
  transform-origin: center;
}

.sidebar {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  justify-items: center;
  border-right: 1px solid var(--line);
  cursor: pointer;
}

.sidebar:hover .menuButton span {
  background: var(--ink);
}

.menuButton,
.closeButton,
.backButton {
  width: 94.4px;
  height: 118px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.menuButton {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 74px;
}

.backButton {
  position: relative;
  align-self: start;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 83px;
}

.backButton span {
  position: relative;
  width: 28px;
  height: 4px;
  display: block;
  background: var(--ink);
  transition: transform 220ms var(--ease-out-strong);
}

.backButton span::before,
.backButton span::after {
  content: "";
  position: absolute;
  left: -2px;
  width: 15px;
  height: 4px;
  background: var(--ink);
  transform-origin: 2px 50%;
}

.backButton span::before {
  transform: rotate(-42deg);
}

.backButton span::after {
  transform: rotate(42deg);
}

.backButton:hover span {
  transform: translateX(-4px);
}

.backButton:active {
  transform: scale(0.97);
}

.menuButton span {
  width: 24px;
  height: 4px;
  display: block;
  background: var(--ink);
  transition: transform 220ms var(--ease-out-strong), background 220ms var(--ease-out-strong);
}

.menuButton span + span {
  margin-top: 5px;
}

.menuButton:hover span:nth-child(1) {
  transform: translateX(-2px);
}

.menuButton:hover span:nth-child(2) {
  transform: translateX(2px);
}

.menuButton:focus-visible {
  outline: none;
}

.menuButton:focus-visible span {
  background: var(--ink);
}

.brandMark {
  width: 26.775px;
  align-self: end;
  margin-bottom: 58px;
  opacity: 0.86;
  transform: none;
  transition: opacity 260ms var(--ease-out-strong), transform 260ms var(--ease-out-strong);
}

.brandMark:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.brandMark img {
  width: 100%;
  height: auto;
  display: block;
}

.brandMark::after {
  content: none;
}

.stage {
  --desktop-image-width: clamp(84px, min(8.15vw, 15.6dvh), 172px);
  --desktop-gap: clamp(16px, 2vw, 44px);
  position: relative;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.service {
  --image-width: var(--desktop-image-width);
  --image-height: 611px;
  position: absolute;
  display: flex;
  align-items: var(--item-align, flex-start);
  justify-content: var(--item-justify, center);
  gap: var(--item-gap, var(--desktop-gap));
  min-width: max-content;
  height: auto;
  color: var(--muted);
  outline-offset: 8px;
  transform: translateY(var(--offset-y, 0));
  transition: color 260ms var(--ease-out-strong), transform 260ms var(--ease-out-strong);
}

.imageWrap {
  position: relative;
  width: var(--image-width);
  height: var(--image-height);
  flex: 0 0 auto;
  overflow: hidden;
  background: var(--panel-soft);
  clip-path: inset(0);
  transform-origin: 50% 100%;
}

.imageWrap img {
  object-fit: fill;
  transform-origin: center;
  transition: filter 620ms var(--ease-editorial), transform 620ms var(--ease-editorial);
}

.serviceLabel {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  margin-top: var(--label-shift, 0);
  overflow: hidden;
  font-size: clamp(32px, min(2.9vw, 5.7dvh), 62px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0;
}

.serviceLabel span {
  display: inline-block;
  transform: rotate(180deg);
  transform-origin: center;
}

.serviceTall {
  --image-height: calc(var(--image-width) * 5.3712);
  --label-shift: clamp(176px, 34.2dvh, 370px);
  --offset-y: 0px;
  --item-align: flex-start;
  --item-justify: flex-start;
  left: clamp(118px, 11.8%, 232px);
  top: clamp(46px, 8.1dvh, 88px);
}

.serviceHigh {
  --image-height: calc(var(--image-width) * 3.7594);
  --label-shift: 0px;
  --offset-y: 0px;
  --item-align: flex-start;
  --item-justify: center;
  left: clamp(310px, 31.6%, 610px);
  top: clamp(118px, 18.7dvh, 202px);
}

.serviceLow {
  --image-height: calc(var(--image-width) * 3.5489);
  --label-shift: clamp(315px, 55.8dvh, 603px);
  --offset-y: 0px;
  --item-align: flex-start;
  --item-justify: center;
  left: clamp(526px, 51.2%, 970px);
  top: clamp(48px, 8.3dvh, 90px);
}

.serviceMid {
  --image-height: calc(var(--image-width) * 3.5758);
  --label-shift: clamp(-35px, -3.2dvh, -18px);
  --offset-y: clamp(78px, 10dvh, 124px);
  --item-align: flex-start;
  --item-justify: flex-end;
  --item-gap: clamp(18px, 2.1vw, 46px);
  left: clamp(630px, 70%, 1296px);
  right: auto;
  top: clamp(220px, 29dvh, 314px);
  flex-direction: row-reverse;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(220px, 0.52fr);
  align-items: end;
  gap: 40px;
  padding: clamp(28px, 5.6vw, 82px);
  background: var(--panel);
  color: var(--ink);
  transition: clip-path 780ms var(--ease-in-out-strong), opacity 780ms var(--ease-editorial);
}

.overlayOpen {
  clip-path: inset(0 0 0 0);
  opacity: 1;
}

.overlayClosed {
  clip-path: inset(0 100% 0 0);
  opacity: 0.98;
}

.closeButton {
  position: absolute;
  top: clamp(18px, 3vw, 42px);
  left: clamp(18px, 3vw, 42px);
  outline: none;
}

.closeButton:focus-visible {
  outline: none;
}

.menuButton:active,
.closeButton:active,
.service:active,
.overlayLink:active {
  transform: scale(0.97);
}

.closeButton span {
  position: absolute;
  width: 24px;
  height: 3px;
  background: var(--ink);
}

.closeButton span:first-child {
  transform: rotate(45deg);
}

.closeButton span:last-child {
  transform: rotate(-45deg);
}

.overlayNav {
  display: grid;
  gap: clamp(18px, 2vw, 28px);
  align-self: center;
  margin-left: clamp(34px, 5.6vw, 96px);
}

.overlayLink {
  width: max-content;
  display: block;
  color: var(--ink);
  font-size: clamp(33.6px, 5.36vw, 76.8px);
  font-weight: 300;
  line-height: 0.88;
  letter-spacing: 0;
  opacity: 0;
  filter: blur(6px);
  transform: translateY(18px);
  animation: menuItemIn 720ms var(--ease-editorial) forwards;
  animation-delay: calc(170ms + var(--link-index, 0) * 70ms);
  transition: color 180ms var(--ease-out-strong), transform 180ms var(--ease-out-strong), filter 180ms var(--ease-out-strong);
}

.overlayClosed .overlayLink {
  animation: menuItemOut 240ms var(--ease-out-strong) forwards;
  animation-delay: calc(var(--link-index, 0) * 20ms);
}

.overlayLink:nth-child(1) {
  --link-index: 0;
}

.overlayLink:nth-child(2) {
  --link-index: 1;
}

.overlayLink:nth-child(3) {
  --link-index: 2;
}

.overlayLink:nth-child(4) {
  --link-index: 3;
}

.overlayLink:nth-child(5) {
  --link-index: 4;
}

.overlayLink:nth-child(6) {
  --link-index: 5;
}

.overlayLink:nth-child(7) {
  --link-index: 6;
}

.overlayLabelSr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.weightHoverText {
  display: inline-flex;
  align-items: baseline;
}

.weightHoverLetter {
  display: inline-block;
  white-space: pre;
  font-variation-settings: "wght" 300;
  font-weight: 300;
  transition:
    color 180ms var(--ease-out-strong),
    font-variation-settings 560ms var(--ease-editorial),
    font-weight 560ms var(--ease-editorial),
    transform 560ms var(--ease-editorial);
  transition-delay: calc(var(--letter-index, 0) * 18ms);
  will-change: font-variation-settings, font-weight, transform;
}

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

.overlayLink:hover .weightHoverLetter,
.overlayLink:focus-visible .weightHoverLetter {
  font-variation-settings: "wght" 620;
  font-weight: 500;
  transform: translateY(-0.012em);
}

.overlayLink:focus-visible .weightHoverLetter {
  color: var(--ink);
}

.contactBlock {
  display: grid;
  gap: 13px;
  align-self: end;
  justify-self: end;
  width: min(280px, 100%);
  margin-bottom: clamp(42px, 6.2vw, 78px);
  color: var(--muted);
  font-style: normal;
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.5;
  opacity: 0;
  transform: translateY(14px);
  animation: contactIn 620ms var(--ease-editorial) 660ms forwards;
}

.overlayClosed .contactBlock {
  animation: contactOut 220ms var(--ease-out-strong) forwards;
}

.contactLogo {
  width: min(190px, 100%);
  height: auto;
  margin-bottom: 12px;
}

.socialLinks {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  color: var(--ink);
}

.contactBlock a {
  width: max-content;
  display: inline-flex;
  align-items: center;
}

.socialLinks a {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  color: var(--ink);
  transform-origin: center;
  transition: color 180ms var(--ease-out-strong), transform 180ms var(--ease-out-strong);
}

.socialLinks a:hover,
.socialLinks a:focus-visible {
  color: var(--ink);
  transform: scale(1.1);
}

.socialLinks svg {
  display: block;
  color: currentColor;
  fill: currentColor;
}

.contactBlock a:hover {
  color: var(--ink);
}

@keyframes menuItemIn {
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes menuItemOut {
  from {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }

  to {
    opacity: 0;
    filter: blur(4px);
    transform: translateY(8px);
  }
}

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

@keyframes contactOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(8px);
  }
}

@keyframes frameIn {
  from {
    opacity: 0;
    transform: scale(0.985);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes imageCutIn {
  from {
    clip-path: inset(100% 0 0 0);
    transform: translateY(18px);
  }

  to {
    clip-path: inset(0);
    transform: translateY(0);
  }
}

@keyframes imageSettle {
  from {
    transform: scale(1.06);
    filter: brightness(0.92);
  }

  to {
    transform: scale(1);
    filter: brightness(1);
  }
}

@keyframes verticalTextIn {
  from {
    opacity: 0;
    filter: blur(5px);
    transform: rotate(180deg) translateY(18px);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: rotate(180deg) translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .frame {
    opacity: 0;
    transform: scale(0.985);
    animation: frameIn 760ms var(--ease-editorial) 90ms forwards;
  }

  .imageWrap {
    animation: imageCutIn 920ms var(--ease-in-out-strong) forwards;
    animation-delay: calc(180ms + var(--index, 0) * 95ms);
  }

  .imageWrap img {
    animation: imageSettle 980ms var(--ease-editorial);
    animation-delay: calc(180ms + var(--index, 0) * 95ms);
  }

  .serviceLabel span {
    opacity: 0;
    filter: blur(5px);
    animation: verticalTextIn 760ms var(--ease-editorial) forwards;
    animation-delay: calc(360ms + var(--index, 0) * 85ms);
  }

}

.skipIntro .frame,
.skipIntro .imageWrap,
.skipIntro .imageWrap img,
.skipIntro .serviceLabel span {
  animation: none;
  animation-delay: 0ms;
}

.skipIntro .frame {
  opacity: 1;
  transform: none;
}

.skipIntro .imageWrap {
  clip-path: inset(0);
  transform: none;
}

.skipIntro .imageWrap img {
  filter: none;
  transform: none;
}

.skipIntro .serviceLabel span {
  opacity: 1;
  filter: none;
  transform: rotate(180deg);
}

.service:hover {
  color: var(--ink);
  transform: translateY(calc(var(--offset-y, 0) - 6px));
}

.service:hover .imageWrap img {
  filter: blur(5.95px) brightness(0.75);
  transform: scale(1.03);
}

.service:focus-visible {
  color: var(--ink);
  transform: translateY(calc(var(--offset-y, 0) - 6px));
}

.service:focus-visible .imageWrap img {
  filter: blur(5.95px) brightness(0.75);
  transform: scale(1.03);
}

@media (max-width: 1280px) and (min-width: 821px) {
  .stage {
    --desktop-image-width: clamp(72px, min(8.1vw, 14dvh), 108px);
    --desktop-gap: clamp(12px, 1.45vw, 20px);
  }

  .serviceLabel {
    font-size: clamp(28px, min(3.45vw, 5dvh), 42px);
  }

  .serviceTall {
    --label-shift: clamp(170px, 33dvh, 256px);
    left: 9.2%;
  }

  .serviceHigh {
    left: 29.2%;
  }

  .serviceLow {
    --label-shift: clamp(282px, 52dvh, 420px);
    left: 47.4%;
  }

  .serviceMid {
    --offset-y: clamp(64px, 8.5dvh, 90px);
    left: 70%;
    right: auto;
  }
}

@media (max-width: 820px) {
  .shell {
    min-height: 100dvh;
    padding: 12px;
    place-items: start center;
  }

  .frame {
    width: min(100%, 560px);
    height: auto;
    min-height: calc(100dvh - 24px);
    grid-template-columns: 1fr;
    grid-template-rows: 58px 1fr;
    overflow: visible;
  }

  .sidebar {
    grid-template-columns: 58px 1fr;
    grid-template-rows: 1fr;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .brandMark {
    width: 82px;
    align-self: center;
    justify-self: end;
    margin: 0 22px 0 0;
    transform: rotate(90deg);
  }

  .brandMark:hover {
    transform: rotate(90deg);
  }

  .brandMark img {
    width: 100%;
    height: auto;
    display: block;
  }

  .brandMark::after {
    content: none;
  }

  .stage {
    display: grid;
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 36px clamp(22px, 8vw, 44px) 44px;
  }

  .service {
    --image-width: clamp(104px, 35vw, 148px);
    --image-height: clamp(280px, 54vh, 440px);
    --label-shift: 0px;
    --offset-y: 0;
    position: relative;
    inset: auto;
    width: 100%;
    justify-self: stretch;
    justify-content: space-between;
    flex-direction: row;
  }

  .service:hover,
  .service:focus-visible {
    transform: translateY(-3px);
  }

  .overlay {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 34px;
    overflow-y: auto;
    padding: 92px 28px 34px;
  }

  .closeButton {
    top: 14px;
    left: 15px;
  }

  .overlayLink {
    font-size: clamp(38px, 13vw, 68px);
  }

  .contactBlock {
    justify-self: start;
    align-self: start;
  }
}

@media (max-width: 440px) {
  .serviceLabel {
    font-size: 24.2px;
  }

  .imageWrap {
    width: min(42vw, 132px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .menuButton span,
  .brandMark,
  .service,
  .imageWrap img,
  .overlay,
  .overlayLink,
  .contactBlock {
    transition: none;
    animation: none;
  }

  .overlayLink,
  .contactBlock {
    opacity: 1;
    filter: none;
    transform: none;
  }

  .service:hover .imageWrap img,
  .service:focus-visible .imageWrap img {
    filter: brightness(0.82);
    transform: none;
  }
}

/* Mobile home: keep the four disciplines visible as one editorial row. */
@media (max-width: 820px) {
  .home .stage {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    align-items: center;
    padding: 24px 10px 38px;
    overflow: hidden;
  }

  .home .service,
  .home .serviceTall,
  .home .serviceHigh,
  .home .serviceLow,
  .home .serviceMid {
    position: relative;
    inset: auto;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    min-width: 0;
    margin: 0;
    gap: 4px;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    transform: none;
  }

  .home .service {
    --image-width: clamp(44px, 14vw, 62px);
    --label-shift: 0px;
    --offset-y: 0px;
  }

  .home .serviceLabel {
    flex: 0 0 auto;
    margin: 0;
    font-size: clamp(13px, 3.8vw, 17px);
    line-height: 1;
  }

  .home .imageWrap {
    width: var(--image-width);
    max-width: 100%;
    height: clamp(220px, 48vw, 270px);
  }

  .home .imageWrap img {
    object-fit: cover;
  }

  .home .serviceTall,
  .home .serviceLow {
    transform: translateY(-26px);
  }

  .home .serviceHigh,
  .home .serviceMid {
    transform: translateY(26px);
  }
}
