.inner-page .site-header {
  background: rgba(7, 27, 21, 0.94);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(16px);
}

.brand > span {
  grid-template-columns: auto 23px auto;
  column-gap: 7px;
}

.brand i {
  margin: 0;
}

.page-hero h1,
.contact-intro h1 {
  line-height: 0.98;
}

.intro-section {
  grid-template-columns: 0.65fr 2.35fr;
}

.arrow-icon {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  flex: 0 0 auto;
  overflow: visible;
  vertical-align: -0.14em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button .arrow-icon {
  width: 18px;
  height: 18px;
}

.text-link .arrow-icon {
  width: 17px;
  height: 17px;
  transition: transform 0.25s;
}

.text-link:hover .arrow-icon {
  transform: translateX(5px);
}

.service-list b .arrow-icon {
  width: 24px;
  height: 24px;
}

.project-card span {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 1000px) {
  .intro-section {
    grid-template-columns: 1fr;
  }
}

.featured-cases {
  display: grid;
  gap: 110px;
}

.featured-case {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr;
  gap: 70px;
  align-items: center;
}

.featured-case-reverse {
  grid-template-columns: 0.8fr 1.35fr;
}

.featured-case-reverse .featured-case-image {
  order: 2;
}

.featured-case-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ink);
}

.featured-case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}

.featured-case-image:hover img {
  transform: scale(1.035);
}

.featured-case-image span {
  position: absolute;
  top: 22px;
  right: 22px;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--green-bright);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.featured-case h2,
.case-study-intro h2,
.next-case h2 {
  margin: 0 0 24px;
  font: 700 clamp(38px, 4.6vw, 68px) / 1 var(--display);
  letter-spacing: -0.055em;
}

.featured-case > div > p:not(.eyebrow) {
  margin: 0 0 28px;
  color: #58665f;
  font-size: 19px;
}

.project-index-more {
  padding-top: 40px;
}

.case-study-hero {
  position: relative;
  min-height: 850px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
  color: white;
}

.case-study-hero > img,
.case-study-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.case-study-hero > img {
  object-fit: cover;
}

.case-study-shade {
  background: linear-gradient(0deg, rgba(4, 21, 15, 0.94), rgba(4, 21, 15, 0.08) 70%);
}

.case-study-hero .wrap {
  position: relative;
  padding-bottom: 80px;
}

.case-study-hero h1 {
  max-width: 1000px;
  margin: 0;
  font: 700 clamp(58px, 7.2vw, 112px) / 0.91 var(--display);
  letter-spacing: -0.065em;
}

.case-study-hero h1 em {
  color: var(--green-bright);
  font-style: normal;
}

.case-study-hero .wrap > p:last-child {
  max-width: 660px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 20px;
}

.case-study-hero-railway > img {
  object-position: center 58%;
}

.case-study-intro {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 90px;
}

.case-facts {
  border-top: 1px solid var(--line);
}

.case-facts div {
  display: grid;
  gap: 4px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.case-facts span {
  color: #708079;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

.case-facts b {
  font: 600 18px / 1.4 var(--display);
}

.case-study-intro > div:last-child > p:last-child {
  max-width: 770px;
  color: #53615b;
  font-size: 20px;
}

.case-study-intro > div:last-child > p:not(.eyebrow) {
  max-width: 770px;
  color: #53615b;
  font-size: 20px;
}

.case-narrative {
  padding-bottom: 130px;
  border-top: 1px solid var(--line);
}

.case-narrative article {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 70px;
  padding: 75px 0;
  border-bottom: 1px solid var(--line);
}

.case-narrative article > span {
  padding-top: 8px;
  color: #77847e;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

.case-narrative h2 {
  margin: 0 0 28px;
  font: 700 clamp(36px, 4vw, 58px) / 1.02 var(--display);
  letter-spacing: -0.05em;
}

.case-narrative p {
  max-width: 790px;
  margin: 0 0 18px;
  color: #53615b;
  font-size: 19px;
}

.case-gallery-section {
  padding-bottom: 130px;
}

.case-gallery-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 38px;
}

.case-gallery-heading h2 {
  margin: 0;
  font: 700 clamp(40px, 5vw, 72px) / 1 var(--display);
  letter-spacing: -0.055em;
}

.case-gallery-heading > p {
  margin: 0 0 7px;
  color: #738079;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.case-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: dense;
  gap: 16px;
}

.case-gallery.seo-gallery {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  grid-auto-flow: row;
}

.case-card > a.case-image {
  display: block;
}

.case-gallery figure {
  height: 330px;
  margin: 0;
  overflow: hidden;
  background: var(--ink);
}

.gallery-open {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: white;
  cursor: pointer;
}

.case-gallery figure.gallery-wide {
  grid-column: span 2;
}

.case-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease;
}

.case-gallery figure:hover img {
  transform: scale(1.035);
}

.gallery-expand {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(255,255,255,.7);
  background: rgba(7,27,21,.62);
  color: white;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.9);
  transition: opacity 0.25s, transform 0.25s, background 0.25s;
}

.gallery-expand svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.gallery-open:hover .gallery-expand,
.gallery-open:focus-visible .gallery-expand {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  background: rgba(7,27,21,.82);
}

.gallery-open:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: -3px;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 80px;
  align-items: center;
  padding: 70px 24px 24px;
  background: rgba(3, 13, 10, 0.96);
  color: white;
  backdrop-filter: blur(12px);
}

.lightbox button {
  padding: 7px 0;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.45);
  border-radius: 0;
  background: transparent;
  color: white;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.lightbox button:hover,
.lightbox button:focus-visible {
  border-color: var(--green-bright);
  color: var(--green-bright);
  outline: none;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
}

.lightbox-nav {
  justify-self: center;
}

.lightbox-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: calc(100vh - 100px);
  margin: 0;
  min-width: 0;
}

.lightbox-content img {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  object-fit: contain;
}

.lightbox-content figcaption {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-top: 15px;
  color: rgba(255,255,255,.68);
  font-size: 13px;
}

.lightbox-content figcaption b {
  flex: 0 0 auto;
  color: var(--green-bright);
  letter-spacing: 0.08em;
}

.case-outcome {
  background: var(--green);
  color: var(--ink);
}

.case-outcome .wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 100px;
}

.case-outcome .eyebrow.light {
  color: var(--ink);
}

.case-outcome h2 {
  margin: 0;
  font: 700 clamp(42px, 5vw, 74px) / 0.98 var(--display);
  letter-spacing: -0.055em;
}

.case-outcome p {
  margin: 0 0 20px;
  font-size: 19px;
}

.case-story .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,.16);
  border-left: 1px solid rgba(255,255,255,.16);
}

.case-story article {
  min-height: 390px;
  padding: 38px;
  border-right: 1px solid rgba(255,255,255,.16);
  border-bottom: 1px solid rgba(255,255,255,.16);
}

.case-story span {
  color: var(--green-bright);
  font-size: 12px;
  font-weight: 700;
}

.case-story h2 {
  margin: 95px 0 18px;
  font: 600 28px / 1.1 var(--display);
  letter-spacing: -0.035em;
}

.case-story p {
  margin: 0;
  color: rgba(255,255,255,.6);
}

.railway-detail {
  background: var(--ink-2);
  color: white;
}

.railway-detail .wrap {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
  align-items: center;
}

.railway-detail h2 {
  margin: 0 0 25px;
  font: 700 clamp(38px, 4.5vw, 67px) / 1.02 var(--display);
  letter-spacing: -0.05em;
}

.railway-detail p:not(.eyebrow) {
  color: rgba(255,255,255,.62);
  font-size: 19px;
}

.railway-detail img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.next-case {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
}

.next-case .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -15px;
}

.next-case h2 {
  margin: 0;
}

@media (max-width: 900px) {
  .featured-case,
  .featured-case-reverse,
  .case-study-intro,
  .case-outcome .wrap,
  .railway-detail .wrap {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .featured-case-reverse .featured-case-image {
    order: 0;
  }

  .case-study-hero {
    min-height: 760px;
  }

  .case-story .wrap {
    grid-template-columns: 1fr;
  }

  .case-story article {
    min-height: 280px;
  }

  .case-story h2 {
    margin-top: 60px;
  }

  .case-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .case-gallery figure.gallery-wide {
    grid-column: span 2;
  }

  .case-narrative article {
    grid-template-columns: 0.4fr 1.6fr;
    gap: 40px;
  }
}

@media (max-width: 700px) {
  .case-gallery.seo-gallery {
    grid-template-columns: 1fr;
  }
  .featured-cases {
    gap: 80px;
  }

  .case-study-hero {
    min-height: 690px;
  }

  .case-study-hero .wrap {
    padding-bottom: 65px;
  }

  .case-study-hero h1 {
    font-size: clamp(48px, 14vw, 70px);
  }

  .case-gallery-section {
    padding-bottom: 85px;
  }

  .case-gallery-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .case-gallery {
    grid-template-columns: 1fr;
  }

  .case-gallery figure,
  .case-gallery figure.gallery-wide {
    grid-column: auto;
    height: 330px;
  }

  .gallery-expand {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  .lightbox {
    grid-template-columns: 56px minmax(0, 1fr) 56px;
    padding: 64px 6px 12px;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
  }

  .lightbox-content {
    height: calc(100vh - 80px);
  }

  .lightbox-content figcaption span {
    display: none;
  }

  .case-narrative {
    padding-bottom: 85px;
  }

  .case-narrative article {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 55px 0;
  }

  .next-case {
    grid-template-columns: 1fr;
    align-items: start;
  }
}
