:root {
  --site-font: 'Inter', sans-serif;
  --blue: #005470;
  --gray: #5a5b5b;
  --ink: #17191a;
  --line: #dfe3e5;
  --text-primary: var(--ink);
  --text-secondary: var(--gray);
  --border-color: var(--line);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  min-width: 320px;
  width: 100%;
  height: 100%;
  overflow-y: scroll;
}
body { min-width: 320px; width: 100%; height: 100%; }
body.gateway {
  overflow: hidden;
  background: #fff;
  color: var(--text-primary);
  font-family: var(--site-font);
  font-weight: 400;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  text-align: center;
}
img { display: block; }
button, a { font: inherit; }

body.gateway main {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100svh;
  margin: 0;
  padding: 0;
}
body.gateway .ek-hero,
body.gateway .ek-inner {
  width: 100vw;
  height: 100svh;
  min-height: 100svh;
  margin: 0;
  padding: 0;
  background: #fff;
}
body.gateway .ek-inner { gap: 0; }

body.gateway .ek-intro {
  position: fixed;
  z-index: 5;
  left: 50vw;
  top: 50svh;
  width: 100vw;
  margin: 0;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
}
.ek-flip-lockup {
  width: 100vw;
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  transition: transform .7s cubic-bezier(.22,1,.36,1), opacity .45s ease;
}
.original-logo-lockup { width: 100%; max-width: none; gap: 0; }
.original-logo-stage {
  --motion-height: clamp(42px, 10.5vw, 145px);
  position: relative;
  left: 0;
  width: 100vw;
  height: clamp(145px, 22vw, 245px);
  overflow: visible;
  transform: none;
}
.motion-lockup {
  --suffix-line: clamp(55.46px, 13.865vw, 191.47px);
  --suffix-travel: clamp(-1148.82px, -83.19vw, -332.76px);
  --visible-center-correction: clamp(-3.95px, -0.286vw, -1.15px);
  --final-center-shift: clamp(36.2px, 9.04vw, 124.9px);
  position: absolute;
  z-index: 2;
  left: calc(50% + var(--visible-center-correction));
  top: 50%;
  display: flex;
  align-items: flex-start;
  width: max-content;
  gap: clamp(4px, 1.02vw, 14px);
  opacity: 1;
  transform: translate(-50%, -50%);
  transform-origin: center;
  transition: opacity .22s ease, transform .65s cubic-bezier(.22,1,.36,1);
}
.motion-ek {
  display: block;
  flex: 0 0 auto;
  width: auto;
  height: var(--motion-height);
  min-height: var(--motion-height);
  max-height: var(--motion-height);
  transform: none !important;
  transition: none !important;
  animation: none !important;
}
.motion-wordmark {
  display: flex;
  align-items: flex-start;
  flex: 0 0 auto;
  width: max-content;
  height: var(--motion-height);
  transform: scale(1);
  transform-origin: left top;
  transition: transform .7s cubic-bezier(.22,1,.36,1);
}
.motion-en-prefix {
  position: static;
  display: block;
  flex: 0 0 auto;
  width: auto;
  height: var(--motion-height);
  transform: none !important;
  transition: none !important;
  animation: none !important;
}
.logo-suffix-mask {
  position: relative;
  display: flex;
  align-items: flex-start;
  flex: 0 0 auto;
  width: clamp(149.27px, 37.317vw, 515.33px);
  height: var(--suffix-line);
  margin-top: clamp(-1.45px, -.105vw, -.42px);
  overflow: hidden;
  background: transparent;
  opacity: 1;
}
.logo-suffix-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  transform: translateY(0);
  transition: transform 1.05s cubic-bezier(.55,0,.85,.55);
  will-change: transform;
}
.logo-suffix-item {
  display: flex;
  align-items: flex-start;
  flex: 0 0 var(--suffix-line);
  width: 100%;
  height: var(--suffix-line);
}
.logo-suffix {
  position: relative;
  display: block;
  width: auto;
  max-width: none;
  height: var(--suffix-line);
  object-fit: contain;
  object-position: left top;
  opacity: 1;
  transform: none;
  transition: none;
}
.logo-suffix-item:last-child .logo-suffix {
  height: var(--motion-height);
}
.ek-intro.is-rolling .logo-suffix-wrap { transform: translateY(var(--suffix-travel)); }

.motion-tagline {
  position: absolute;
  z-index: 3;
  left: clamp(38.1px, 9.51vw, 131.4px);
  top: clamp(34.5px, 8.63vw, 119.2px);
  width: clamp(145.5px, 36.13vw, 500px);
  display: block;
  height: auto;
  opacity: 0;
  transition: opacity .3s ease;
}
.final-divider { display: block; width: 1px; height: .9em; background: currentColor; }

.ek-intro.is-rolling:not(.is-divided) .motion-lockup { transform: translate(-50%, -50%) !important; }
.ek-intro.is-rolling:not(.is-divided) .motion-wordmark { transform: none !important; }
.ek-intro.is-rolling .motion-ek,
.ek-intro.is-divided .motion-ek {
  width: auto !important;
  height: var(--motion-height) !important;
  min-height: var(--motion-height) !important;
  max-height: var(--motion-height) !important;
  transform: none !important;
  transition: none !important;
  animation: none !important;
}

@keyframes motionLockupSettle {
  from { transform: translate(-50%, -50%); }
  to { transform: translate(calc(-50% + var(--final-center-shift)), -50%); }
}
@keyframes motionWordmarkSettle {
  from { transform: scale(1); }
  to { transform: scale(.7077); }
}
.ek-intro.is-divided .ek-flip-lockup,
.ek-intro.is-divided .original-logo-lockup { transform: none; }
.ek-intro.is-divided .motion-lockup {
  opacity: 1;
  transform: translate(calc(-50% + var(--final-center-shift)), -50%);
  transition: none;
  animation: motionLockupSettle .95s cubic-bezier(.22,1,.36,1) both;
  pointer-events: none;
}
.ek-intro.is-divided .motion-wordmark {
  transform: scale(.7077);
  animation: motionWordmarkSettle .95s cubic-bezier(.22,1,.36,1) both;
}
.ek-intro.is-divided .motion-tagline { opacity: 1; transition-delay: .55s; }
.ek-intro.is-divided { pointer-events: none; }

.ek-department-split {
  position: fixed;
  z-index: 1;
  inset: 0;
  display: grid;
  grid-template-columns: 50% 50%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .65s ease 1.02s, visibility 0s linear 1.02s;
}
.ek-intro.is-divided + .ek-department-split {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 1.02s, 1.02s;
}
.ek-selection-prompt {
  position: absolute;
  z-index: 3;
  top: clamp(2.1rem, 4vw, 4.5rem);
  left: 50%;
  margin: 0;
  color: var(--gray);
  font-family: var(--site-font);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .18em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  transform: translateX(-50%);
}
.ek-department-panel {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: clamp(2rem, 4vw, 5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--text-primary);
  text-align: left;
  text-decoration: none;
  font-family: var(--site-font);
  background: #f3f5f5;
  transform: translateX(-4%);
  transition: background-color .45s ease, transform .8s cubic-bezier(.22, 1, .36, 1) 1.02s;
}
.ek-department-construction {
  align-items: flex-end;
  background: #f3f5f5;
  color: var(--text-primary);
  text-align: right;
  transform: translateX(4%);
}
.ek-intro.is-divided + .ek-department-split .ek-department-panel { transform: translateX(0); }
.ek-department-architects:hover,
.ek-department-architects:focus-visible { background: #e7edef; }
.ek-department-construction:hover,
.ek-department-construction:focus-visible { background: #e7edef; }
.ek-department-panel:focus-visible { outline: 2px solid #86bfd2; outline-offset: -8px; }
.ek-panel-heading {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.ek-department-construction .ek-panel-heading { align-items: flex-end; }
.ek-panel-label {
  position: relative;
  z-index: 1;
  font-family: var(--site-font);
  font-size: clamp(1.4rem, 1.8vw, 2.15rem);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.05;
  text-transform: none;
  opacity: 1;
  transition: color .25s ease;
}
.ek-department-panel:hover .ek-panel-label,
.ek-department-panel:focus-visible .ek-panel-label { color: var(--blue); }
.ek-panel-copy {
  position: relative;
  z-index: 1;
  width: min(30rem, 38vw);
  margin-bottom: clamp(4rem, 14vh, 10rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}
.ek-department-construction .ek-panel-copy { align-items: flex-end; }
.ek-department-panel:hover .ek-panel-copy,
.ek-department-panel:focus-visible .ek-panel-copy { transform: translateY(-.55rem); }
.ek-panel-meta,
.ek-panel-enter {
  font-family: var(--site-font);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .15em;
  line-height: 1.35;
  text-transform: uppercase;
}
.ek-panel-copy strong {
  max-width: 11ch;
  font-size: clamp(2rem, 3.5vw, 4.4rem);
  font-weight: 300;
  letter-spacing: -.06em;
  line-height: .97;
  transition: color .3s ease;
}
.mobile-slogan-break { display: none; }
.ek-panel-meta { margin-top: 1.35rem; opacity: .58; transition: color .3s ease, opacity .3s ease; }
.ek-panel-enter {
  position: relative;
  margin-top: 1rem;
  padding-bottom: .45rem;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--gray);
  font-family: var(--site-font);
  font-size: clamp(.95rem, 1.05vw, 1.15rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: color .25s ease, opacity .25s ease, transform .35s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .35s;
}
.ek-panel-enter::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--blue);
  transform: scaleX(.22);
  transform-origin: left;
  transition: transform .4s cubic-bezier(.22, 1, .36, 1);
}
.ek-department-construction .ek-panel-enter::after { transform-origin: right; }
.ek-department-panel:hover .ek-panel-enter,
.ek-department-panel:focus-visible .ek-panel-enter {
  color: var(--blue);
  opacity: 1;
  visibility: visible;
  transform: translateY(-2px);
  transition-delay: 0s;
}
.ek-department-panel:hover .ek-panel-copy strong,
.ek-department-panel:focus-visible .ek-panel-copy strong,
.ek-department-panel:hover .ek-panel-meta,
.ek-department-panel:focus-visible .ek-panel-meta { color: var(--blue); }
.ek-department-panel:hover .ek-panel-meta,
.ek-department-panel:focus-visible .ek-panel-meta { opacity: 1; }
.ek-department-panel:hover .ek-panel-enter::after,
.ek-department-panel:focus-visible .ek-panel-enter::after { transform: scaleX(1); }
.ek-panel-enter span { font-size: 1rem; transition: transform .25s ease; }
.ek-department-panel:hover .ek-panel-enter span,
.ek-department-panel:focus-visible .ek-panel-enter span { transform: translateX(.35rem); }
.ek-department-architects::after,
.ek-department-construction::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}
.ek-department-construction::after { background: var(--blue); transform-origin: right; }
.ek-department-panel:hover::after,
.ek-department-panel:focus-visible::after { transform: scaleX(1); }

/* Restrained handoff: selection stays still while everything else falls away. */
body.gateway.is-navigating .ek-intro {
  pointer-events: none;
}
body.gateway.is-navigating .ek-skip { opacity: 0; pointer-events: none; }
.ek-department-split.is-transitioning {
  pointer-events: none;
  transition-delay: 0s;
}
.ek-department-split.is-transitioning .ek-selection-prompt { opacity: 1; }
.ek-department-split.is-transitioning .ek-department-panel {
  transform: none;
  transition: background-color .25s ease, color .25s ease, opacity .28s ease;
}
.ek-department-split.is-transitioning .ek-department-panel:not(.is-selected) { opacity: 1; }
.ek-department-split.is-transitioning .ek-department-panel.is-selected {
  z-index: 2;
  background: #f3f5f5;
  color: var(--text-primary);
}
.ek-department-split.is-transitioning .ek-department-panel.is-selected::after { transform: scaleX(1); }
.ek-department-split.is-transitioning .ek-department-panel.is-selected .ek-panel-label,
.ek-department-split.is-transitioning .ek-department-panel.is-selected .ek-panel-enter {
  color: var(--blue);
}
.ek-department-split.is-transitioning .ek-department-panel.is-selected .ek-panel-enter {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.ek-curtain {
  position: fixed;
  z-index: 100;
  top: 0;
  bottom: 0;
  width: 0;
  overflow: hidden;
  background: var(--blue);
  visibility: hidden;
  pointer-events: none;
  will-change: width;
}
.ek-curtain.from-left { right: auto; left: 0; }
.ek-curtain.from-right { right: 0; left: auto; }
.ek-curtain.is-ready {
  visibility: visible;
  transition: width 1.05s cubic-bezier(.65, 0, .35, 1);
}
.ek-curtain.is-active { width: 100vw; }
.ek-curtain-logo {
  position: absolute;
  bottom: clamp(1.5rem, 4vw, 4.5rem);
  width: clamp(76px, 9vw, 132px);
  height: auto;
  filter: brightness(0) invert(1);
}
.ek-curtain.from-left .ek-curtain-logo { right: clamp(1.5rem, 4vw, 4.5rem); }
.ek-curtain.from-right .ek-curtain-logo { left: clamp(1.5rem, 4vw, 4.5rem); }

.ek-skip {
  position: fixed;
  right: 1.4rem;
  bottom: 1.2rem;
  padding: .4rem;
  border: 0;
  background: none;
  color: var(--text-secondary);
  font: 500 .58rem/1 var(--site-font);
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
}
.ek-skip:hover,
.ek-skip:focus-visible { color: #005470; outline: 1px solid currentColor; outline-offset: 4px; }
.ek-skip[hidden] { display: none; }

@media (max-width: 700px) {
  body.gateway .ek-intro { --entry-center-correction: 0px; }
  .original-logo-stage { height: clamp(125px, 34vw, 175px); }
  .ek-flip-lockup { min-height: 145px; gap: .8rem; }
  .ek-department-split {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    transition-property: opacity, visibility;
  }
  .ek-department-panel { padding: 1.35rem 1.4rem; }
  .ek-department-architects {
    justify-content: flex-start;
    background: #f3f5f5;
  }
  .ek-department-construction {
    justify-content: flex-end;
    background: #f3f5f5;
  }
  .ek-department-architects .ek-panel-copy { margin-top: 1.35rem; }
  .ek-department-construction .ek-panel-heading { order: 2; margin-top: 1.15rem; }
  .ek-selection-prompt { display: none; }
  .ek-panel-label { font-size: clamp(1.2rem, 5.2vw, 1.65rem); }
  .ek-panel-copy { width: min(82vw, 340px); margin-bottom: 0; }
  .ek-panel-copy strong { max-width: 13ch; font-size: clamp(1.45rem, 7.5vw, 2.25rem); line-height: 1; }
  .mobile-slogan-break { display: block; }
  .ek-panel-meta { display: none; }
  .ek-department-panel { touch-action: manipulation; }
  .ek-panel-enter {
    margin-top: .55rem;
    color: var(--blue);
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .ek-panel-enter::after { transform: scaleX(1); }
  .ek-panel-enter span { transform: translateX(.18rem); }
  .ek-department-split.is-transitioning .ek-department-panel.is-selected::after {
    opacity: 0;
    transform: scaleX(0);
    transition: none;
  }
  .ek-curtain {
    --curtain-viewport-width: 100vw;
    --curtain-viewport-height: 100dvh;
    --curtain-overscan: 144px;
    top: calc(0px - var(--curtain-overscan));
    right: auto;
    bottom: auto;
    left: -2px;
    width: calc(var(--curtain-viewport-width) + 4px);
    height: calc(var(--curtain-viewport-height) + var(--curtain-overscan) + var(--curtain-overscan));
    clip-path: none;
    -webkit-clip-path: none;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }
  .ek-curtain.from-left,
  .ek-curtain.from-right {
    left: -2px;
    right: auto;
  }
  .ek-curtain.from-left {
    transform: translate3d(calc(-100% - 4px), 0, 0);
  }
  .ek-curtain.from-right {
    transform: translate3d(calc(100% + 4px), 0, 0);
  }
  .ek-curtain.is-ready {
    transition: none;
  }
  .ek-curtain.is-active {
    width: calc(var(--curtain-viewport-width) + 4px);
    transform: translate3d(0, 0, 0);
  }
  .ek-curtain.from-left.is-active {
    animation: mobileCurtainFromLeft 1.05s cubic-bezier(.65, 0, .35, 1) both;
  }
  .ek-curtain.from-right.is-active {
    animation: mobileCurtainFromRight 1.05s cubic-bezier(.65, 0, .35, 1) both;
  }
  .ek-curtain-logo {
    bottom: calc(var(--curtain-overscan) + 1.5rem);
    transition: none;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }
  .ek-curtain.from-left .ek-curtain-logo {
    right: clamp(1.5rem, 4vw, 4.5rem);
    left: auto;
  }
  .ek-curtain.from-right .ek-curtain-logo {
    right: auto;
    left: clamp(1.5rem, 4vw, 4.5rem);
  }
  @keyframes mobileCurtainFromLeft {
    from { transform: translate3d(calc(-100% - 4px), 0, 0); }
    to { transform: translate3d(0, 0, 0); }
  }
  @keyframes mobileCurtainFromRight {
    from { transform: translate3d(calc(100% + 4px), 0, 0); }
    to { transform: translate3d(0, 0, 0); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-lockup,
  .motion-wordmark,
  .logo-suffix,
  .motion-tagline,
  .ek-department-split,
  .ek-department-panel,
  .ek-panel-copy,
  .ek-panel-enter,
  .ek-curtain { transition: none !important; animation: none !important; }
}
