.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  background: #172841;
  color: #fff;
  min-height: clamp(32rem, 73svh, 52rem);
  overflow: clip;
}
.hero-image, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { z-index: -2; object-fit: cover; object-position: center 55%; }
.hero::after {
  content: "";
  z-index: -1;
  background: linear-gradient(90deg, #0a172bf5 0%, #0a172bc9 28%, #0a172b45 66%, transparent 100%),
    linear-gradient(0deg, #0a172bb5, transparent 27%);
}
.hero-inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding-block: clamp(3rem, 7vw, 6.5rem) 2rem;
  gap: 2rem;
}
.hero-copy { align-self: center; }
.hero h1 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: clamp(4rem, 7.3vw, 7.8rem);
  letter-spacing: -.072em;
  line-height: .94;
}
.hero-copy > p { max-width: 28ch; font-size: clamp(1rem, 1.6vw, 1.25rem); line-height: 1.6; margin-top: 1.4rem; color: #f0f3f6; }
.hero-action {
  display: inline-block;
  margin-top: 1.6rem;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  padding: .9rem 1.2rem;
  font-weight: 650;
}
.hero-action:hover { background: #d5e5f3; }
.hero-caption { text-align: right; text-decoration: none; font-weight: 650; white-space: nowrap; line-height: 1.45; }
.hero-caption span { display: block; font-size: .875rem; font-weight: 400; color: #e0e8ee; }
.hero-caption:hover { text-decoration: underline; }
.section-heading {
  padding-block: clamp(3rem, 7vw, 6rem) clamp(1.6rem, 3vw, 3rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 1rem 2rem;
}
.section-heading h2, .contacts h2 {
  font: 400 clamp(3rem, 6vw, 6rem)/.96 Georgia, serif;
  letter-spacing: -.064em;
}
.section-heading p { max-width: 43ch; color: var(--muted); line-height: 1.6; font-size: 1.06rem; }
.project-track { background: var(--navy); }
.showcase { padding-block: 1.45rem 1.6rem; }
.showcase-toolbar, .stepper, .project-picker { display: flex; align-items: center; }
.showcase-toolbar { justify-content: space-between; gap: .85rem 1.1rem; margin-bottom: .9rem; color: #e7edf4; }
.project-picker { gap: .75rem; min-width: 0; font-size: .9rem; }
.project-picker select, .stepper button, dialog button {
  background: transparent; color: inherit; border: 1px solid #8493a7;
  padding: .58rem .75rem; min-height: 2.65rem; border-radius: .2rem;
}
.project-picker select { max-width: 100%; min-width: 0; color-scheme: dark; background-color: var(--navy); }
.stepper { gap: .45rem; }
.stepper button { font-size: .88rem; }
.stepper button:hover:not(:disabled), dialog button:hover { background: #344962; }
.stepper button:disabled { opacity: .48; cursor: default; }
#project-position { margin-inline: .35rem; color: #d3dfeb; white-space: nowrap; font-variant-numeric: tabular-nums; font-size: .85rem; }
.project {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(17rem, 1fr);
  min-height: 28rem;
  background: var(--paper);
}
.project + .project { margin-top: 1rem; }
.project-visual { background: #233851; position: relative; overflow: clip; min-height: 17rem; }
.project-image-link { display: flex; align-items: center; justify-content: center; position: absolute; inset: 0; overflow: clip; }
.project-image-link:focus-visible { outline-offset: -5px; }
.project-image {
  width: 100%; height: 100%; object-fit: contain;
}
.enlarge {
  position: absolute; right: .8rem; bottom: .8rem; background: #0c192ae8; color: #fff; border: 1px solid #ffffff62;
  padding: .45rem .65rem; font-size: .82rem;
}
.project-image-link:hover .enlarge { background: #244d71; }
.project-visual--text {
  background: linear-gradient(135deg,#253b54,#10223d 77%);
  color: #f4f7fa; padding: clamp(1.5rem, 5vw, 5rem); display: flex; flex-direction: column; justify-content: end;
}
.project-visual--text span { font-size: .85rem; letter-spacing: .18em; text-transform: uppercase; }
.project-visual--text p { font: 400 clamp(2rem, 4.6vw, 5.2rem)/1 Georgia, serif; margin-top: .6rem; letter-spacing: -.055em; }
.project-info { padding: clamp(1.15rem, 2.7vw, 2.9rem); display: flex; flex-direction: column; justify-content: center; min-width: 0; background: var(--paper); }
.eyebrow { font-size: .8rem; color: var(--blue); letter-spacing: .105em; text-transform: uppercase; font-weight: 650; }
.eyebrow span { margin-inline: .14rem; }
.project-info h3 { font: 400 clamp(2rem, 3.4vw, 3.85rem)/.99 Georgia, serif; letter-spacing: -.054em; margin: .6rem 0 .85rem; }
.project-summary { line-height: 1.48; color: #344458; }
.facts { margin-block: .95rem 0; border-top: 1px solid var(--rule); }
.facts div { display: flex; justify-content: space-between; gap: .7rem; border-bottom: 1px solid var(--rule); padding-block: .46rem; font-size: .89rem; }
.facts dt { color: var(--muted); }
.facts dd { text-align: right; font-weight: 650; }
.showcase-hint { color: #cbd7e4; font-size: .88rem; margin-top: .8rem; }
.contacts { background: #e7edf1; }
.contacts-inner { padding-block: clamp(3.2rem, 8vw, 7rem); display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; }
.contacts address { font-style: normal; border-top: 1px solid #adb9c5; }
.contacts address div { display: grid; grid-template-columns: 5rem 1fr; gap: .5rem; padding-block: 1rem; border-bottom: 1px solid #adb9c5; }
.contacts address span { font-size: .9rem; color: var(--muted); }
.contacts address a { font-size: clamp(1rem, 1.5vw, 1.2rem); text-underline-offset: .22rem; line-height: 1.4; }

.gallery-link {
  align-self: start;
  margin-top: .85rem;
  font-size: .9rem;
  font-weight: 650;
  color: var(--blue);
  text-underline-offset: .22rem;
}
.showcase-ready .project-deck {
  display: grid;
  isolation: isolate;
  overflow: clip;
  background: #233851;
}
.showcase-ready .project {
  grid-area: 1 / 1;
  margin: 0;
  background: transparent;
}
.showcase-ready .project:not(.is-visible) { visibility: hidden; pointer-events: none; }
.showcase-ready .project[inert] { pointer-events: none; }
.showcase-ready .project-visual { opacity: var(--image-opacity, 1); }
.showcase-ready .project-info {
  opacity: var(--panel-opacity, 1);
  transform: translateY(var(--panel-shift, 0%));
}
.showcase-ready .project-deck:not(.is-pinned) .is-visible .project-info {
  animation: panel-enter .35s ease-out both;
}
@keyframes panel-enter {
  from { opacity: 0; transform: translateY(1rem); }
  to { opacity: 1; transform: translateY(0); }
}
.showcase-ready .project-track.is-pinned {
  min-height: calc(var(--stage-height) + var(--project-count) * var(--scroll-step));
}
.showcase-ready .is-pinned > .showcase {
  position: sticky;
  top: var(--header-height);
  min-height: var(--stage-height);
  display: grid;
  align-content: center;
}
@media (min-width: 48rem) {
  .showcase-ready .project { min-height: clamp(23rem, 58svh, 44rem); }
}
@media (max-width: 47.99rem) {
  .project { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .project-visual { min-height: min(29svh, 16rem); }
  .project-info { justify-content: start; }
  .showcase { padding-block: .9rem; }
  .showcase-hint { margin-top: .55rem; }
}
@media (max-width: 38rem) {
  .hero-inner { flex-direction: column; align-items: start; justify-content: space-between; }
  .hero-copy { align-self: start; }
  .hero-caption { text-align: left; }
  .section-heading, .contacts-inner { grid-template-columns: 1fr; }
  .showcase-toolbar { flex-wrap: wrap; }
  .project-picker { flex: 1 0 100%; }
  .project-picker select { flex: 1; }
  .stepper { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .showcase-ready .project-deck:not(.is-pinned) .is-visible .project-info { animation: none; }
}
