:root {
  --leaderin-dark: #294485;
  --leaderin-light: #4486ce;
  --leaderin-ink: #101c31;
  --leaderin-paper: #f2f4f7;
}

body[data-leaderin-project='true'] .leaderin-video,
body[data-leaderin-project='true'] .leaderin-media > img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

body[data-leaderin-project='true'] .leaderin-media > img {
  opacity: 0;
  transition: opacity .5s ease;
}

body[data-leaderin-project='true'] .leaderin-media > img.loaded {
  opacity: 1;
}

body[data-leaderin-project='true'] .leaderin-scene {
  background: var(--leaderin-paper);
  color: var(--leaderin-ink);
  overflow: hidden;
  position: relative;
}

body[data-leaderin-project='true'] .leaderin-scene img {
  display: block;
}

.leaderin-scene-head {
  display: flex;
  justify-content: space-between;
  left: clamp(22px, 4.1vw, 70px);
  position: absolute;
  right: clamp(22px, 4.1vw, 70px);
  top: clamp(20px, 3.7vw, 62px);
  z-index: 6;
}

.leaderin-scene-head span,
.leaderin-door-copy > span,
.leaderin-route-grid article > span,
.leaderin-color-panel span,
.leaderin-final > span {
  font-size: clamp(9px, .75vw, 13px);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.leaderin-scene-head strong {
  font-size: clamp(18px, 2vw, 36px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.08;
  text-align: right;
}

/* 01 — exploration */
.leaderin-routes {
  display: block;
  padding: clamp(20px, 3.7vw, 64px);
}

.leaderin-routes .leaderin-scene-head {
  left: 0;
  position: relative;
  right: 0;
  top: 0;
}

.leaderin-route-grid {
  display: grid;
  gap: clamp(14px, 2vw, 32px);
  grid-template-columns: 1fr 1fr;
  margin-top: clamp(30px, 6vw, 105px);
}

.leaderin-route-grid article {
  border-top: 1px solid rgba(16, 28, 49, .28);
  padding-top: clamp(14px, 1.8vw, 28px);
}

.leaderin-route-mark {
  align-items: center;
  background: #fff;
  display: flex;
  height: clamp(100px, 14vw, 245px);
  justify-content: center;
  margin-bottom: clamp(14px, 1.8vw, 28px);
  overflow: hidden;
}

.leaderin-route-mark img {
  height: 58%;
  max-width: 72%;
  object-fit: contain;
  width: auto;
}

.leaderin-route-grid h3 {
  font-size: clamp(20px, 2.25vw, 40px);
  font-weight: 400;
  letter-spacing: -.04em;
  margin: .22em 0 .35em;
}

.leaderin-route-grid p,
.leaderin-verdict p {
  font-size: clamp(11px, 1.05vw, 17px);
  line-height: 1.45;
  max-width: 34em;
}

.leaderin-verdict {
  align-items: center;
  border-top: 1px solid rgba(16, 28, 49, .28);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-top: clamp(16px, 2.3vw, 38px);
  padding-top: clamp(12px, 1.4vw, 22px);
}

.leaderin-verdict span {
  background: var(--leaderin-ink);
  color: #fff;
  font-size: 10px;
  letter-spacing: .1em;
  padding: 6px 9px;
}

/* 02 — open door */
.leaderin-open-door {
  background: var(--leaderin-ink) !important;
  color: #fff !important;
}

.leaderin-door-copy {
  left: clamp(22px, 4.1vw, 70px);
  position: absolute;
  top: clamp(20px, 4vw, 70px);
  z-index: 6;
}

.leaderin-door-copy h3 {
  font-size: clamp(58px, 13vw, 220px);
  font-weight: 400;
  letter-spacing: -.075em;
  line-height: .78;
  margin: clamp(30px, 8vw, 140px) 0 24px;
}

.leaderin-door-copy p {
  font-size: clamp(13px, 1.4vw, 23px);
  line-height: 1.35;
}

.leaderin-door-stage {
  bottom: 0;
  position: absolute;
  right: 0;
  top: 0;
  width: 56%;
}

.leaderin-door-stage img {
  height: 58%;
  left: 42%;
  position: absolute;
  top: 22%;
  transform-origin: left center;
  width: auto;
  z-index: 2;
  animation: leaderinDoorBreath 4.8s cubic-bezier(.65, 0, .35, 1) infinite;
}

.leaderin-door-line {
  background: rgba(68, 134, 206, .3);
  height: 1px;
  left: 0;
  position: absolute;
  right: 0;
  transform-origin: right;
}

.leaderin-door-line.line-a { top: 38%; transform: rotate(-26deg); }
.leaderin-door-line.line-b { top: 66%; transform: rotate(26deg); }
.leaderin-in-label { font-size: clamp(50px, 8vw, 130px); left: 18%; opacity: .08; position: absolute; top: 38%; }
.leaderin-path-label { bottom: 7%; font-size: 10px; letter-spacing: .16em; opacity: .62; position: absolute; right: 8%; }

/* 03 — assembly */
.leaderin-assembly {
  background: #e9edf2 !important;
}

.leaderin-assembly-grid,
.leaderin-geometry-grid {
  background-image: linear-gradient(rgba(41,68,133,.11) 1px, transparent 1px), linear-gradient(90deg, rgba(41,68,133,.11) 1px, transparent 1px);
  background-size: clamp(26px, 3vw, 52px) clamp(26px, 3vw, 52px);
  inset: 0;
  position: absolute;
}

.leaderin-parts {
  align-items: flex-end;
  bottom: 19%;
  display: flex;
  gap: clamp(22px, 5.3vw, 92px);
  justify-content: center;
  left: 9%;
  position: absolute;
  right: 9%;
}

.leaderin-parts figure {
  align-items: center;
  display: flex;
  flex-direction: column;
  height: clamp(100px, 18vw, 300px);
  justify-content: flex-end;
  margin: 0;
  min-width: 15%;
  opacity: 0;
  transform: translateY(30px);
  animation: leaderinPartArrive 5.4s cubic-bezier(.2,.8,.2,1) infinite;
}

.leaderin-parts .part-i { animation-delay: .45s; }
.leaderin-parts .part-a { animation-delay: .9s; }
.leaderin-parts img { max-height: 73%; max-width: 100%; width: auto; }
.leaderin-parts figcaption { font-size: clamp(8px, .72vw, 12px); letter-spacing: .1em; margin-top: 16px; white-space: nowrap; }

.leaderin-datum {
  border-top: 2px solid var(--leaderin-dark);
  bottom: 16%;
  left: 7%;
  position: absolute;
  right: 7%;
}

.leaderin-datum span {
  background: var(--leaderin-dark);
  color: #fff;
  font-size: 9px;
  left: 0;
  letter-spacing: .12em;
  padding: 5px 7px;
  position: absolute;
  top: 0;
}

/* 04 — geometry */
.leaderin-geometry {
  background: #fff !important;
}

.leaderin-geometry-grid {
  inset: 10%;
}

.leaderin-geometry-symbol {
  height: 44%;
  left: 50%;
  position: absolute;
  top: 46%;
  transform: translate(-50%, -50%);
  width: auto;
}

.leaderin-geometry-note {
  font-size: clamp(9px, .8vw, 13px);
  letter-spacing: .08em;
  position: absolute;
  z-index: 2;
}

.note-l { left: 12%; top: 24%; }
.note-i { left: 48%; top: 15%; }
.note-a { right: 12%; top: 65%; }
.leaderin-geometry-caption { bottom: 7%; font-size: clamp(14px, 1.5vw, 24px); left: 0; letter-spacing: -.02em; position: absolute; right: 0; text-align: center; }

/* 05 — color and system */
.leaderin-color {
  background: linear-gradient(90deg, var(--leaderin-dark) 0 50%, var(--leaderin-light) 50% 100%) !important;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.leaderin-color-panel {
  background: transparent !important;
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 3vw, 48px);
  position: relative;
  z-index: 2;
}

.leaderin-color-panel strong { font-size: clamp(25px, 3.2vw, 55px); font-weight: 400; letter-spacing: -.04em; line-height: 1; margin-top: auto; }
.leaderin-color-panel em { font-size: 10px; font-style: normal; letter-spacing: .12em; margin-top: 18px; }
.leaderin-color-panel span,
.leaderin-color-panel strong,
.leaderin-color-panel em { position: relative; z-index: 5; }
.leaderin-color > img { height: 31%; left: 50%; position: absolute; top: 50%; transform: translate(-50%, -50%); width: auto; filter: drop-shadow(0 12px 18px rgba(0,0,0,.15)); z-index: 1; }

.leaderin-signature-system {
  background: #fff !important;
  padding: clamp(18px, 3vw, 48px);
}

.leaderin-signature-system .leaderin-scene-head { left: clamp(18px, 3vw, 48px); right: clamp(18px, 3vw, 48px); top: clamp(18px, 3vw, 48px); }
.leaderin-signature-primary { left: 10%; position: absolute; right: 10%; top: 42%; }
.leaderin-signature-primary img { margin: 0 auto; max-height: clamp(70px, 11vw, 170px); max-width: 82%; width: auto; }
.leaderin-signature-scale { align-items: flex-end; bottom: 13%; display: flex; gap: 10%; left: 10%; position: absolute; right: 10%; }
.leaderin-signature-scale img { width: 14%; }
.leaderin-signature-scale img:nth-child(2) { width: 9%; }
.leaderin-signature-scale img:nth-child(3) { width: 5%; }
.leaderin-signature-system > p { bottom: 5%; font-size: clamp(9px, .75vw, 12px); left: 10%; letter-spacing: .08em; position: absolute; }

.leaderin-facade img { object-position: center 42%; }

.leaderin-final {
  align-items: center;
  background: #fff !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.leaderin-final > span { margin-bottom: 9%; }
.leaderin-final img { max-height: 22%; max-width: 58%; width: auto; }
.leaderin-final p { bottom: 8%; font-size: clamp(9px, .8vw, 13px); letter-spacing: .16em; position: absolute; }

/* project information */
body[data-leaderin-project='true'] .case__study__info__left {
  display: grid;
  gap: var(--pd2);
  grid-column: 1 / 2;
  grid-template-columns: 1fr 1fr;
}

body[data-leaderin-project='true'] .case__study__info__project__information { grid-column: 1 / -1; }
body[data-leaderin-project='true'] .case__study__info__right { display: flex; flex-flow: column; grid-column: 2 / -1; row-gap: var(--pd2); }
body[data-leaderin-project='true'] .case__study__info h2 { color: var(--color-gray50); margin-bottom: 8px; }
body[data-leaderin-project='true'] .case__study__info h2:not(:first-child) { margin-top: 32px; }
body[data-leaderin-project='true'] .case__study__info p:not(:last-child) { margin-bottom: 12px; }

@keyframes leaderinDoorBreath {
  0%, 15% { transform: perspective(900px) rotateY(0deg) translateX(0); }
  45%, 70% { transform: perspective(900px) rotateY(-12deg) translateX(3%); }
  100% { transform: perspective(900px) rotateY(0deg) translateX(0); }
}

@keyframes leaderinPartArrive {
  0%, 7% { opacity: 0; transform: translateY(34px); }
  20%, 73% { opacity: 1; transform: translateY(0); }
  90%, 100% { opacity: 0; transform: translateY(-8px); }
}

@media (max-width: 1024px) {
  body[data-leaderin-project='true'] .case__study__info__left,
  body[data-leaderin-project='true'] .case__study__info__right { grid-column: 1 / -1; }
}

@media (max-width: 656px) {
  body[data-leaderin-project='true'] .leaderin-routes {
    aspect-ratio: auto !important;
    min-height: 640px;
  }

  body[data-leaderin-project='true'] .leaderin-open-door,
  body[data-leaderin-project='true'] .leaderin-assembly,
  body[data-leaderin-project='true'] .leaderin-geometry,
  body[data-leaderin-project='true'] .leaderin-final {
    aspect-ratio: auto !important;
    min-height: 360px;
  }

  .leaderin-scene-head strong { max-width: 58%; }
  .leaderin-routes .leaderin-scene-head {
    display: block;
  }

  .leaderin-routes .leaderin-scene-head strong {
    display: block;
    font-size: 25px;
    margin-top: 18px;
    max-width: none;
    text-align: left;
  }

  .leaderin-route-grid { gap: 10px; margin-top: 30px; }
  .leaderin-route-mark { height: 120px; }
  .leaderin-route-grid p { font-size: 9px; }
  .leaderin-verdict { gap: 10px; margin-top: 24px; }
  .leaderin-verdict p { font-size: 9px; }
  .leaderin-door-stage { opacity: .82; width: 63%; }
  .leaderin-door-copy h3 { margin-top: 20vw; }
  .leaderin-parts { gap: 8vw; }
  .leaderin-parts figure { height: 27vw; }
  .leaderin-parts figcaption { font-size: 7px; }
  .leaderin-signature-system .leaderin-scene-head strong { font-size: 13px; }
  body[data-leaderin-project='true'] .case__study__info__left { grid-template-columns: 1fr; }
  body[data-leaderin-project='true'] .case__study__info__project__information { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .leaderin-door-stage img,
  .leaderin-parts figure { animation: none; opacity: 1; transform: none; }
}
