.page-main {
  overflow: hidden;
}

.page-hero {
  position: relative;
  display: grid;
  min-height: min(760px, 88svh);
  padding: calc(var(--header-height) + 6rem) 0 5rem;
  align-items: end;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 82% 35%, rgba(106, 140, 255, 0.12), transparent 28%),
    radial-gradient(circle at 20% 78%, rgba(255, 139, 92, 0.06), transparent 24%),
    #090a0c;
}

.page-hero::before {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(to bottom, transparent 5%, #000 35%, #000 80%, transparent);
  content: "";
  pointer-events: none;
}

.page-hero .shell {
  position: relative;
}

.breadcrumbs {
  display: flex;
  margin: 0 0 2.5rem;
  flex-wrap: wrap;
  gap: 0.65rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.breadcrumbs a {
  color: var(--paper-soft);
  text-decoration: none;
}

.breadcrumbs span:not(:last-child)::after,
.breadcrumbs a::after {
  margin-left: 0.65rem;
  color: var(--blue-bright);
  content: "/";
}

.page-hero h1 {
  max-width: 1120px;
  margin: 0;
  font-size: clamp(4rem, 8.5vw, 8.5rem);
  font-weight: 450;
  letter-spacing: -0.064em;
  line-height: 0.9;
}

.page-hero h1 em,
.page-section h2 em,
.route-cta h2 em {
  color: var(--blue-bright);
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
}

.page-intro {
  display: grid;
  margin-top: clamp(3rem, 6vw, 5rem);
  grid-template-columns: minmax(0, 0.7fr) minmax(320px, 0.55fr);
  justify-content: space-between;
  gap: 3rem;
}

.page-intro p {
  max-width: 720px;
  margin: 0;
  color: #b4b6bd;
  font-size: clamp(1.05rem, 1.6vw, 1.32rem);
  line-height: 1.75;
}

.page-intro__meta {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 0.7rem;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-align: right;
  text-transform: uppercase;
}

.page-intro__meta span:not(:last-child)::after {
  margin-left: 0.7rem;
  color: var(--blue-bright);
  content: "•";
}

.page-section {
  padding: clamp(5.5rem, 10vw, 10rem) 0;
  border-bottom: 1px solid var(--line);
}

.page-section--tinted {
  background:
    radial-gradient(circle at 18% 48%, rgba(106, 140, 255, 0.065), transparent 26%),
    #0a0b0e;
}

.page-section__heading {
  display: grid;
  margin-bottom: clamp(3.5rem, 7vw, 6rem);
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  align-items: end;
  gap: 3rem;
}

.page-section h2,
.route-cta h2 {
  max-width: 900px;
  margin: 1.35rem 0 0;
  font-size: clamp(2.9rem, 5.6vw, 6rem);
  font-weight: 450;
  letter-spacing: -0.058em;
  line-height: 0.94;
}

.page-section__heading > p {
  max-width: 580px;
  margin: 0;
  color: #9fa1a8;
  line-height: 1.8;
}

.prose-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(3rem, 8vw, 8rem);
}

.prose-grid__aside {
  color: var(--paper-soft);
}

.prose-grid__aside p {
  max-width: 420px;
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.55rem, 2.6vw, 2.4rem);
  line-height: 1.35;
}

.prose {
  max-width: 790px;
}

.prose h2,
.prose h3 {
  margin: 0 0 1rem;
  color: var(--paper);
  font-family: "Fraunces", Georgia, serif;
  font-weight: 450;
}

.prose h2 {
  margin-top: 3.5rem;
  font-size: clamp(2rem, 3vw, 3rem);
}

.prose h3 {
  margin-top: 2.5rem;
  font-size: 1.5rem;
}

.prose h2:first-child,
.prose h3:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: #a6a8af;
  line-height: 1.85;
}

.prose p {
  margin: 0 0 1.35rem;
}

.prose a,
.inline-link {
  color: var(--paper);
  text-decoration-color: var(--blue-bright);
  text-underline-offset: 0.28em;
}

.prose ul {
  display: grid;
  margin: 1.5rem 0 0;
  padding: 0;
  gap: 0.75rem;
  list-style: none;
}

.prose li {
  position: relative;
  padding-left: 1.4rem;
}

.prose li::before {
  position: absolute;
  top: 0.75em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue-bright);
  content: "";
}

.service-grid,
.project-route-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.service-card,
.project-route-card {
  grid-column: span 6;
  position: relative;
  display: flex;
  min-height: 360px;
  padding: clamp(1.6rem, 3vw, 2.5rem);
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0f1014;
  color: var(--paper);
  text-decoration: none;
  transition: border-color 220ms ease, transform 220ms ease, background-color 220ms ease;
}

.service-card:hover,
.project-route-card:hover {
  border-color: rgba(174, 190, 255, 0.42);
  background: #12141a;
  transform: translateY(-4px);
}

.service-card__index,
.project-route-card__meta {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.service-card h2,
.project-route-card h2 {
  margin: auto 0 1.25rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 3.6vw, 3.6rem);
  font-weight: 450;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.service-card p,
.project-route-card p {
  max-width: 620px;
  margin: 0;
  color: #a4a6ad;
  line-height: 1.75;
}

.service-card__link,
.project-route-card__link {
  display: inline-flex;
  margin-top: 2rem;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-route-card {
  min-height: 480px;
  padding: 0;
}

.project-route-card__image {
  position: relative;
  height: 285px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #090a0c;
}

.project-route-card__image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 10, 12, 0.45), transparent 50%);
  content: "";
}

.project-route-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.project-route-card:hover img {
  transform: scale(1.025);
}

.project-route-card__body {
  display: flex;
  min-height: 220px;
  padding: 1.75rem;
  flex-direction: column;
}

.project-route-card h2 {
  margin: 1rem 0 0.8rem;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.project-route-card__link {
  margin-top: auto;
  padding-top: 1.4rem;
}

.case-hero-media {
  display: grid;
  margin-top: clamp(4rem, 8vw, 7rem);
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.26fr);
  align-items: end;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.case-hero-media figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #0f1014;
}

.case-hero-media img {
  display: block;
  width: 100%;
  height: auto;
}

.case-hero-media__mobile {
  max-width: 310px;
  justify-self: end;
}

.case-facts {
  display: grid;
  margin: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.case-facts div {
  padding: 1.5rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.case-facts dt {
  margin-bottom: 0.55rem;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-facts dd {
  margin: 0;
  color: var(--paper);
  line-height: 1.5;
}

.route-cta {
  padding: clamp(5.5rem, 10vw, 9rem) 0;
  text-align: center;
}

.route-cta h2 {
  margin-inline: auto;
}

.route-cta p {
  max-width: 650px;
  margin: 2rem auto 0;
  color: #a6a8af;
  line-height: 1.8;
}

.route-cta__actions {
  display: flex;
  margin-top: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.route-button {
  display: inline-flex;
  min-height: 48px;
  padding: 0.85rem 1.15rem;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--paper);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.route-button:hover {
  border-color: rgba(174, 190, 255, 0.6);
  background: rgba(174, 190, 255, 0.08);
}

.route-button--primary {
  border-color: var(--paper);
  background: var(--paper);
  color: #0b0c0f;
}

.route-button--primary:hover {
  border-color: var(--blue-bright);
  background: var(--blue-bright);
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: clamp(3.5rem, 8vw, 8rem);
}

.profile-layout figure {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #101116;
}

.profile-layout figure img {
  display: block;
  width: 100%;
  height: auto;
}

.location-note {
  display: grid;
  padding: 1.5rem;
  grid-template-columns: 10px 1fr;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0e1014;
  color: #b2b4bb;
  line-height: 1.7;
}

.location-note::before {
  width: 7px;
  height: 7px;
  margin-top: 0.55rem;
  border-radius: 50%;
  background: var(--blue-bright);
  box-shadow: 0 0 18px rgba(174, 190, 255, 0.65);
  content: "";
}

.contact-route-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(380px, 0.85fr);
  align-items: start;
  gap: clamp(3.5rem, 8vw, 8rem);
}

.contact-route-details {
  display: grid;
  gap: 1rem;
}

.contact-route-details a {
  color: var(--paper);
  text-underline-offset: 0.3em;
}

.form-privacy {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.65;
}

.form-privacy a {
  color: var(--paper-soft);
}

.footer-inner--routes {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
}

.footer-route-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.7rem 1.25rem;
}

.footer-route-links a {
  color: var(--muted);
  font-size: 0.7rem;
  text-decoration: none;
}

.footer-route-links a:hover {
  color: var(--paper);
}

.route-footer-meta {
  color: var(--muted);
  font-size: 0.68rem;
  text-align: right;
}

@media (max-width: 980px) {
  .page-intro,
  .page-section__heading,
  .prose-grid,
  .profile-layout,
  .contact-route-grid {
    grid-template-columns: 1fr;
  }

  .page-intro__meta {
    justify-content: flex-start;
    text-align: left;
  }

  .profile-layout figure {
    position: relative;
    top: auto;
    width: min(100%, 520px);
  }

  .footer-inner--routes {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .footer-route-links {
    justify-content: flex-start;
  }

  .route-footer-meta {
    text-align: left;
  }
}

@media (max-width: 720px) {
  .page-hero {
    min-height: 680px;
    padding-top: calc(var(--header-height) + 4.5rem);
  }

  .page-hero h1 {
    font-size: clamp(3.3rem, 14vw, 5.2rem);
  }

  .page-intro {
    margin-top: 2.5rem;
  }

  .service-card,
  .project-route-card {
    grid-column: 1 / -1;
  }

  .service-card {
    min-height: 310px;
  }

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

  .case-hero-media__mobile {
    width: min(76%, 300px);
    justify-self: start;
  }

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

  .contact-route-grid {
    gap: 3rem;
  }
}

@media (max-width: 560px) {
  .page-hero {
    min-height: 650px;
    padding-bottom: 3.5rem;
  }

  .breadcrumbs {
    margin-bottom: 2rem;
  }

  .page-intro__meta {
    display: block;
    line-height: 1.8;
  }

  .page-intro__meta span {
    display: block;
  }

  .page-intro__meta span:not(:last-child)::after {
    content: none;
  }

  .page-section {
    padding-block: 5.5rem;
  }

  .project-route-card__image {
    height: 230px;
  }

  .route-cta {
    text-align: left;
  }

  .route-cta__actions {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-card,
  .project-route-card,
  .project-route-card img {
    transition: none;
  }
}
