/* Rail architecture: warm mineral surfaces, precise wayfinding, restrained motion. */
:root {
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.intro {
  top: 23%;
  max-width: 38%;
  transition:
    opacity 0.45s,
    transform 0.65s var(--ease-out),
    filter 0.45s;
}
.intro h1 {
  font-size: clamp(64px, 7.15vw, 128px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.07em;
  margin: 25px 0 0;
}
.intro h1 > span,
.intro h1 > em {
  display: block;
}
.intro h1 em {
  color: var(--ink);
}
.hero-period {
  color: var(--accent);
}
.intro .hero-lead {
  color: var(--ink);
  font-size: clamp(16px, 1.3vw, 21px);
  font-weight: 500;
  letter-spacing: -0.025em;
  margin-top: 25px;
}
.intro .hero-description {
  margin-top: 9px;
  font-size: 12px;
  line-height: 1.8;
}
.intro .primary {
  margin-top: 25px;
  min-width: 225px;
}
.intro-note {
  margin-top: 24px;
  font-size: 7px;
  letter-spacing: 0.17em;
}
.small-line {
  position: relative;
  background: var(--accent);
  width: 32px;
}
.small-line:after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  right: 0;
  top: -2px;
}
.primary {
  position: relative;
  overflow: hidden;
  transition:
    background 0.3s,
    box-shadow 0.3s,
    transform 0.4s var(--ease-out);
}
.primary:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent, #ffffff18, transparent);
  transform: translateX(-110%);
  transition: transform 0.7s;
  pointer-events: none;
}
.primary:hover:before {
  transform: translateX(110%);
}
.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px #26352f20;
}
.primary span {
  transition: transform 0.4s var(--ease-out);
}
.primary:hover span {
  transform: translate(3px, -3px);
}
.header nav button {
  transition:
    color 0.25s,
    background 0.3s;
}
.header nav button:not(.contact):hover {
  color: var(--accent);
}
.header-middle > i {
  box-shadow: 0 0 0 4px #b9674412;
}
.brand small {
  font-size: 6.5px;
  letter-spacing: 0.15em;
}
.vignette {
  background: linear-gradient(90deg, #eeece5ed, #eeece580 23%, transparent 47%),
    linear-gradient(0deg, #edece5a6, transparent 20%);
}
.featured-project {
  position: absolute;
  right: 3.6%;
  top: 218px;
  width: 216px;
  padding: 0;
  text-align: left;
  border: 1px solid #ffffffa0;
  border-radius: 5px;
  overflow: hidden;
  background: #f8f6eece;
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 35px #26352f0b;
  z-index: 3;
  transition:
    opacity 0.4s,
    transform 0.6s var(--ease-out),
    filter 0.4s,
    box-shadow 0.4s;
}
.featured-image {
  display: block;
  height: 108px;
  overflow: hidden;
  position: relative;
}
.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}
.featured-code {
  position: absolute;
  bottom: 10px;
  left: 12px;
  background: #26352fe6;
  color: #fff;
  padding: 5px 7px;
  font: 9px "DM Sans";
  letter-spacing: 0.13em;
  border-radius: 2px;
}
.featured-copy {
  display: block;
  padding: 15px 16px 17px;
}
.featured-copy small {
  display: block;
  font-size: 7px;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 8px;
}
.featured-copy strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
}
.featured-copy i {
  float: right;
  font-style: normal;
  color: var(--accent);
}
.featured-copy > span {
  display: block;
  font-size: 10px;
  color: var(--sub);
  margin-top: 6px;
}
.featured-project:hover {
  box-shadow: 0 14px 40px #26352f1a;
}
.featured-project:hover img {
  transform: scale(1.06);
}
.walking .featured-project,
.panel-open .featured-project {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(5px);
  pointer-events: none;
  visibility: hidden;
}
.walking .intro,
.panel-open .intro {
  transform: translateY(-12px);
  filter: blur(7px);
}
.ready:not(.walking):not(.panel-open) .intro > *,
.ready:not(.walking):not(.panel-open) .intro h1 > * {
  animation: reveal-focus 0.95s var(--ease-out) both;
}
.ready .intro > :nth-child(1) {
  animation-delay: 0.08s;
}
.ready .intro h1 > :nth-child(1) {
  animation-delay: 0.12s;
}
.ready .intro h1 > :nth-child(2) {
  animation-delay: 0.24s;
}
.ready .intro > :nth-child(3) {
  animation-delay: 0.35s;
}
.ready .intro > :nth-child(4) {
  animation-delay: 0.43s;
}
.ready .intro > :nth-child(5) {
  animation-delay: 0.5s;
}
.ready .intro > :nth-child(6) {
  animation-delay: 0.6s;
}
.ready .featured-project {
  animation: reveal-focus 1s 0.55s var(--ease-out) backwards;
}
.ready .bottom {
  animation: reveal-focus 0.9s 0.3s var(--ease-out) backwards;
}
@keyframes reveal-focus {
  from {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}
.navigation {
  gap: 11px;
}
.dock-caption {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #5e6b60;
  padding: 0 14px;
}
.dock-caption span {
  color: #8a8f82;
  font-size: 6px;
}
.service-dock {
  position: relative;
  isolation: isolate;
  padding: 7px;
  gap: 0;
  border-radius: 6px;
  box-shadow: 0 8px 32px #20332212;
}
.service-dock:before {
  content: "";
  position: absolute;
  left: 27px;
  right: 27px;
  height: 1px;
  top: 16px;
  background: #a4ae9a4d;
  pointer-events: none;
}
.service-dock button {
  position: relative;
  z-index: 1;
  padding: 22px 20px 13px;
  border: 0;
  transition: color 0.3s;
}
.service-dock button:last-child {
  border: 0;
}
.service-dock button > span {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e9eae0;
  color: #7f8577;
  font-size: 8px;
  transition:
    background 0.3s,
    color 0.3s,
    box-shadow 0.3s;
}
.service-dock button:hover,
.service-dock button.active {
  background: transparent;
}
.service-dock button:hover {
  color: var(--accent);
}
.service-dock button.active > span,
.service-dock button.pending > span {
  background: var(--accent);
  color: white;
  box-shadow: 0 0 0 4px #b9674414;
}
.dock-indicator {
  position: absolute;
  z-index: 0;
  left: 7px;
  top: 7px;
  bottom: 7px;
  width: 0;
  opacity: 0;
  background: #dde3d580;
  border: 1px solid #c2cdb975;
  border-radius: 4px;
  transition:
    transform 0.65s var(--ease-out),
    width 0.65s var(--ease-out),
    opacity 0.3s;
  pointer-events: none;
}
.dock-indicator.visible {
  opacity: 1;
}
.journey {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 195px;
  width: 290px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px 18px;
  border: 1px solid #ffffffa6;
  border-radius: 5px;
  background: #f7f5eded;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 35px #22342c12;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 12px);
  filter: blur(5px);
  pointer-events: none;
  transition:
    opacity 0.25s,
    transform 0.5s var(--ease-out),
    filter 0.35s,
    visibility 0.35s;
}
.journey.visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  filter: blur(0);
}
.journey-number {
  font: 400 27px Manrope;
  color: var(--accent);
  letter-spacing: -0.05em;
}
.journey > div {
  flex: 1;
}
.journey small {
  display: block;
  font-size: 6px;
  letter-spacing: 0.2em;
  color: var(--sub);
  margin-bottom: 5px;
}
.journey strong {
  display: block;
  font-size: 11px;
  font-weight: 500;
}
.journey-arrow {
  color: var(--accent);
  font-size: 18px;
}
.journey-track {
  display: block;
  margin-top: 9px;
  height: 1px;
  background: #cbd0c2;
  overflow: hidden;
}
.journey-track i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
}
.traveling .walk-hint {
  opacity: 0;
}
.traveling #labels {
  opacity: 0;
  pointer-events: none;
}
.traveling #labels button {
  pointer-events: none;
}
#labels {
  transition: opacity 0.2s;
}
.panel {
  animation: none;
  transition:
    opacity 0.22s,
    transform 0.3s var(--ease-out),
    filter 0.25s;
  border-radius: 7px;
  background: #f9f7f0eb;
  backdrop-filter: blur(28px) saturate(1.15);
}
.panel.is-entering {
  animation: panel-focus 0.5s var(--ease-out) both;
}
.panel.is-closing {
  opacity: 0;
  transform: translateX(20px);
  filter: blur(6px);
  pointer-events: none;
}
.panel.is-entering .panel-inner > * {
  animation: reveal-focus 0.65s var(--ease-out) backwards;
}
.panel.is-entering .panel-inner > :nth-child(2) {
  animation-delay: 0.05s;
}
.panel.is-entering .panel-inner > :nth-child(3) {
  animation-delay: 0.1s;
}
.panel.is-entering .panel-inner > :nth-child(4) {
  animation-delay: 0.15s;
}
.panel.is-entering .panel-inner > :nth-child(n + 5) {
  animation-delay: 0.2s;
}
.panel-image {
  transition: filter 0.4s;
}
.panel .eyebrow {
  line-height: 1.6;
  padding-right: 15px;
}
@keyframes panel-focus {
  from {
    opacity: 0;
    transform: translateX(24px) scale(0.985);
    filter: blur(7px);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
  }
}
#loading {
  transition:
    opacity 0.7s,
    filter 0.7s;
}
#loading.depart {
  opacity: 0;
  filter: blur(12px);
  pointer-events: none;
}
.loading-track {
  position: relative;
  height: 8px;
  border-top: 1px solid #b4b9a7;
  border-bottom: 1px solid #b4b9a7;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 13px,
    #b4b9a7 13px 14px
  );
}
.loading-track i {
  width: 30%;
  height: 3px;
  margin-top: 1px;
}
.evening .intro {
  background: #ecece5b8;
  backdrop-filter: blur(16px);
}
@media (min-width: 1600px) {
  .intro {
    top: 24%;
  }
  .intro h1 {
    font-size: 108px;
  }
}
@media (max-height: 850px) and (min-width: 701px) {
  .intro {
    top: 23%;
  }
  .intro h1 {
    font-size: clamp(56px, 6vw, 94px);
    margin-top: 18px;
  }
  .intro .hero-lead {
    margin-top: 20px;
  }
  .intro .hero-description {
    font-size: 11px;
  }
  .intro-note {
    margin-top: 18px;
  }
  .intro .primary {
    margin-top: 20px;
  }
  .featured-project {
    top: 205px;
    width: 190px;
  }
  .featured-image {
    height: 90px;
  }
}
@media (max-width: 1400px) {
  .featured-project {
    display: none;
  }
  .scene-caption {
    display: none;
  }
  .service-dock button {
    padding-left: 14px;
    padding-right: 14px;
  }
}
@media (max-width: 1100px) {
  .intro {
    max-width: 42%;
  }
  .intro h1 {
    font-size: clamp(52px, 7vw, 78px);
  }
  .navigation {
    margin-right: 0;
  }
  .dock-caption {
    font-size: 6px;
  }
  .dock-caption span {
    display: none;
  }
  .intro .hero-lead {
    font-size: 15px;
  }
  .intro-note {
    max-width: 250px;
    font-size: 6px;
    line-height: 1.6;
  }
}
@media (max-width: 700px) {
  .intro {
    top: 124px;
    left: 23px;
    max-width: calc(100% - 46px);
  }
  .intro h1 {
    font-size: clamp(56px, 17vw, 77px);
    margin-top: 15px;
  }
  .intro .hero-lead {
    font-size: 15px;
    margin-top: 16px;
  }
  .intro .hero-description {
    max-width: 260px;
    font-size: 10px;
    margin-top: 5px;
    line-height: 1.6;
  }
  .intro .hero-description br {
    display: none;
  }
  .intro .primary {
    margin-top: 16px;
    min-width: 200px;
    padding: 14px 17px;
  }
  .intro-note {
    display: none;
  }
  .brand small {
    font-size: 5px;
  }
  .navigation {
    gap: 9px;
  }
  .service-dock {
    padding: 4px;
  }
  .service-dock:before {
    top: 13px;
    left: 20px;
    right: 20px;
  }
  .service-dock button {
    padding: 18px 5px 9px;
    gap: 5px;
    font-size: 8px;
    min-height: 49px;
  }
  .service-dock button > span {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    font-size: 7px;
  }
  .dock-caption {
    padding: 0 7px;
  }
  .dock-caption span {
    display: inline;
    font-size: 5px;
  }
  .dock-indicator {
    left: 4px;
    top: 4px;
    bottom: 4px;
  }
  .journey {
    bottom: 183px;
    width: 250px;
    padding: 12px 15px;
  }
  .panel {
    bottom: 153px;
    max-height: 49dvh;
  }
  .walk-hint {
    bottom: 170px;
  }
  .direction-pad {
    bottom: 180px;
  }
  .vignette {
    background: linear-gradient(
      180deg,
      #eeeae3cf 15%,
      #eeeae390 35%,
      transparent 64%,
      #eeeae3a0
    );
  }
  .evening .intro {
    padding: 12px;
    left: 11px;
  }
  .panel .eyebrow {
    font-size: 7px;
  }
}
@media (max-width: 700px) and (max-height: 700px) {
  .intro {
    top: 116px;
  }
  .intro h1 {
    font-size: 50px;
    margin-top: 10px;
  }
  .intro .hero-lead {
    margin-top: 11px;
  }
  .intro .hero-description {
    display: none;
  }
  .intro .primary {
    margin-top: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .intro,
  .panel,
  .journey {
    filter: none !important;
  }
}
.walking .dock-caption {
  background: #f8f6efe3;
  backdrop-filter: blur(12px);
  border: 1px solid #ffffff99;
  border-radius: 3px;
  padding: 6px 10px;
}
@media (max-width: 700px) {
  .walking .dock-caption {
    font-size: 6px;
  }
}
