/* Ser + Arquitectos — edition 05. Architecture stays in the foreground. */
.home .desktop-nav {
  background: rgba(16, 22, 18, 0.42);
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(14px);
}

.byte-hero-slides {
  bottom: 88px;
}
.byte-hero-slide {
  grid-template-columns: minmax(0, 70%) minmax(0, 30%);
  opacity: 1;
  clip-path: inset(0 100% 0 0);
  transition:
    clip-path 1000ms cubic-bezier(0.72, 0, 0.18, 1),
    visibility 0s linear 1000ms;
}
.byte-hero-slide.is-active {
  clip-path: inset(0);
  z-index: 3;
  transition: clip-path 1000ms cubic-bezier(0.72, 0, 0.18, 1);
}
.byte-hero-slide.is-leaving {
  clip-path: inset(0);
  visibility: visible;
  pointer-events: none;
  z-index: 2;
  transition: none;
}
.byte-hero-main-image {
  transform: scale(1.035);
  transition: none;
}
.byte-hero-slide:is(.is-active, .is-leaving) .byte-hero-main-image {
  animation: v5-camera 7.6s linear both;
}
@keyframes v5-camera {
  from {
    transform: scale(1.045) translate3d(0.4%, 0, 0);
  }
  to {
    transform: scale(1.005) translate3d(-0.4%, 0, 0);
  }
}
.byte-hero.is-paused .byte-hero-main-image {
  animation-play-state: paused !important;
}
.byte-hero-shade {
  background:
    linear-gradient(180deg, rgba(7, 13, 10, 0.43), transparent 23%),
    linear-gradient(
      0deg,
      rgba(4, 9, 6, 0.82),
      rgba(4, 9, 6, 0.4) 22%,
      transparent 58%
    );
}
.byte-hero-main::after {
  inset: 15px;
  opacity: 0.22;
}
.byte-hero-overline {
  top: 119px;
}
.byte-hero-copy {
  bottom: 35px;
}
.byte-hero-copy h2 {
  font-size: clamp(76px, 8.9vw, 132px);
  line-height: 0.88;
}
.byte-hero-type {
  margin-bottom: 17px;
}
.byte-hero-deck {
  margin-top: 20px;
  font-size: clamp(16px, 1.45vw, 21px);
}
.byte-hero-explore {
  margin-top: 14px;
}
.byte-hero-aside {
  grid-template-rows: 32% 68%;
}
.byte-hero-aside-note {
  padding: 95px 9% 12px 10%;
  background: #1c231e;
}
.byte-hero-aside-note p {
  font-size: clamp(22px, 2.1vw, 33px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}
.byte-hero-aside-cross {
  display: none;
}
.byte-hero-aside figure img {
  transition: transform 1.2s cubic-bezier(0.22, 0.7, 0.2, 1);
}
.byte-hero-controls {
  height: 88px;
  grid-template-columns: 82px minmax(0, 1fr) 145px;
  gap: 15px;
  padding: 7px 4vw;
}
.byte-hero-current {
  gap: 3px;
}
.byte-hero-tab {
  min-height: 72px;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 8px;
}
.byte-hero-tab img {
  width: 40px;
  height: 46px;
}
.byte-hero-tab b {
  font-size: 13px;
}
.byte-hero-tab small {
  font-size: 9px;
}
.byte-hero-scroll {
  bottom: 110px;
  right: 31%;
}

/* A photographic narrative, keyed to a built project rather than service steps. */
.v5-material-story {
  grid-template-columns: minmax(0, 54%) minmax(0, 46%);
  min-height: 900px;
  --v5-story-progress: 0.25;
}
.v5-material-story .v2-method-photo {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100svh;
  min-height: 760px;
}
.v5-material-story .v2-method-content {
  padding: 64px clamp(28px, 4vw, 70px) 70px;
}
.v5-material-story .v2-method-content h2 {
  font-size: clamp(56px, 5.2vw, 84px);
  margin: 34px 0 18px;
}
.v5-material-story .v2-method-content h2 em {
  font:
    italic 0.9em Georgia,
    serif;
  color: #d5b39b;
}
.v5-material-story .v3-method-intro {
  margin-bottom: 40px;
  font-size: 18px;
  line-height: 1.5;
}
.v5-material-story .v3-method-steps {
  position: relative;
  padding-left: 18px !important;
  margin-bottom: 45px !important;
}
.v5-material-story .v3-method-steps::before,
.v5-material-story .v3-method-steps::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  pointer-events: none;
}
.v5-material-story .v3-method-steps::before {
  background: rgba(255, 255, 255, 0.19);
}
.v5-material-story .v3-method-steps::after {
  background: #d2a385;
  transform: scaleY(var(--v5-story-progress));
  transform-origin: top;
  transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.v5-material-story .v3-method-step {
  min-height: 98px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 5px;
  align-content: center;
  padding: 16px 0;
}
.v5-material-story .v3-method-step strong {
  grid-column: 1;
  grid-row: 1;
  font-size: clamp(22px, 2vw, 30px);
}
.v5-material-story .v3-method-step small {
  display: block;
  grid-column: 1;
  grid-row: 2;
  font:
    400 12px/1.4 PlexMono,
    monospace;
  color: #aeb6aa;
}
.v5-material-story .v3-method-step.is-active strong {
  color: #fff;
}
.v5-material-story .v3-method-step.is-active small {
  color: #e8d4c4;
}
.v5-material-story .v3-method-photo-meta {
  inset: auto 20px 20px;
}
.v5-material-story .v3-method-photo-meta span {
  font-size: 11px;
}
.archive-page .work-category {
  margin-left: auto;
}
.process-v2-sequence li {
  grid-template-columns: minmax(0, 1fr) minmax(250px, 33%);
  gap: 6%;
}
.process-v2-sequence li .process-v2-step-copy {
  grid-column: 2;
}

@media (max-width: 1100px) and (min-width: 761px) {
  .byte-hero-controls {
    grid-template-columns: 62px minmax(0, 1fr) 137px;
    gap: 9px;
  }
  .byte-hero-tab {
    grid-template-columns: 1fr;
  }
  .byte-hero-tab img {
    display: none;
  }
  .v5-material-story {
    grid-template-columns: 48% 52%;
  }
  .v5-material-story .v2-method-content h2 {
    font-size: clamp(50px, 5.4vw, 72px);
  }
}
@media (max-height: 720px) and (min-width: 761px) {
  .byte-hero-overline {
    top: 108px;
  }
  .byte-hero-aside-note {
    padding-top: 91px;
  }
  .byte-hero-aside-note p {
    font-size: clamp(20px, 1.9vw, 27px);
  }
  .byte-hero-copy h2 {
    font-size: clamp(72px, 8vw, 115px);
  }
  .byte-hero-deck {
    margin-top: 14px;
  }
  .byte-hero-explore {
    margin-top: 10px;
  }
}
@media (max-width: 760px) {
  .byte-hero {
    min-height: 640px;
  }
  .byte-hero-slides {
    bottom: 88px;
  }
  .byte-hero-main-image {
    object-position: center;
  }
  .byte-hero-slide:first-child .byte-hero-main-image {
    object-position: 52% center;
  }
  .byte-hero-shade {
    background:
      linear-gradient(180deg, rgba(7, 13, 10, 0.49), transparent 31%),
      linear-gradient(
        0deg,
        rgba(4, 9, 6, 0.86),
        rgba(4, 9, 6, 0.28) 39%,
        transparent 68%
      );
  }
  .byte-hero-overline {
    top: 98px;
  }
  .byte-hero-copy {
    bottom: 29px;
  }
  .byte-hero-copy h2 {
    font-size: clamp(66px, 16.5vw, 110px);
  }
  .byte-hero-aside {
    top: 145px;
    height: 166px;
  }
  .byte-hero-controls {
    height: 88px;
    padding: 7px 6vw;
    grid-template-columns: minmax(0, 1fr) 137px;
  }
  .byte-hero-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
  }
  .byte-hero-tab {
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 68px;
    padding: 0 0 10px;
  }
  .byte-hero-tab > span {
    display: none;
  }
  .byte-hero-tab img {
    display: block;
    width: min(30px, 100%);
    height: 39px;
    object-fit: cover;
  }
  .byte-hero-tab i {
    left: 2px;
    right: 2px;
  }
  .v5-material-story {
    display: grid;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
  }
  .v5-material-story .v2-method-photo {
    grid-column: 1;
    grid-row: 1;
    position: sticky;
    top: 0;
    align-self: start;
    z-index: 2;
    height: 35svh;
    min-height: 250px;
    max-height: 350px;
  }
  .v5-material-story .v2-method-content {
    grid-column: 1;
    grid-row: 1;
    z-index: 1;
    padding: calc(clamp(250px, 35svh, 350px) + 42px) var(--pad) 72px;
  }
  .v5-material-story .v2-method-content h2 {
    font-size: clamp(53px, 10vw, 77px);
    margin: 28px 0 18px;
  }
  .v5-material-story .v3-method-intro {
    font-size: 16px;
    margin-bottom: 27px;
  }
  .v5-material-story .v3-method-steps {
    padding-left: 13px !important;
    margin-bottom: 34px !important;
  }
  .v5-material-story .v3-method-step {
    min-height: 102px;
    grid-template-columns: minmax(0, 1fr);
  }
  .v5-material-story .v3-method-step strong {
    font-size: 24px;
  }
  .v5-material-story .v3-method-step small {
    font-size: 12px;
  }
  .v5-material-story .v3-method-photo-meta {
    inset: auto 12px 12px;
  }
  .v5-material-story .v3-method-photo-meta span {
    font-size: 9px;
  }
  .process-v2-sequence li {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .process-v2-sequence li .process-v2-step-copy {
    grid-column: 1;
  }
}
@media (prefers-reduced-motion: no-preference) {
  html.v3-home-motion .v3-entrance {
    transform: translate3d(0, 18px, 0);
    transition-duration: 600ms, 700ms;
  }
  html.motion-pages-active .mp-reveal,
  html.motion-pages-active .mp-reveal.mp-image {
    transform: translate3d(0, 18px, 0);
    transition-duration: 580ms, 680ms;
  }
  html.motion-pages-active .mp-reveal.mp-image {
    transform: translate3d(0, 18px, 0) scale(0.99);
  }
}
@media (prefers-reduced-motion: reduce) {
  .byte-hero-slide,
  .byte-hero-slide.is-active,
  .byte-hero-slide.is-leaving {
    clip-path: none;
    transition: none;
  }
  .byte-hero-slide:not(.is-active) {
    visibility: hidden;
  }
  .byte-hero-slide:is(.is-active, .is-leaving) .byte-hero-main-image {
    animation: none;
    transform: none;
  }
  .v5-material-story .v3-method-steps::after {
    transition: none;
  }
}
