/* Cinematic hero language shared by the home page and all inner pages. */
:root {
  --banner-radius: 22px;
  --banner-shadow: 0 28px 80px rgba(26, 26, 26, 0.18);
  --banner-border: rgba(255, 255, 255, 0.16);
}

.hero,
.page-banner {
  position: relative;
}

.hero.wrap,
.page-banner.wrap {
  width: calc(100% - clamp(24px, 3vw, 48px));
  max-width: none;
}

.hero {
  padding-block: clamp(16px, 2vw, 26px) 34px;
}

/* Home: copy and image occupy one cinematic stage, never two columns. */
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  height: clamp(440px, 36vw, 530px);
  min-height: 0;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(100, 90, 100, 0.56);
  border-radius: var(--banner-radius);
  background: var(--ink);
  box-shadow: var(--banner-shadow);
  isolation: isolate;
  animation: none;
}

.hero-grid::before {
  position: absolute;
  z-index: 4;
  top: 0;
  left: clamp(28px, 4.5vw, 66px);
  width: clamp(72px, 9vw, 126px);
  height: 5px;
  background: var(--yellow);
  content: "";
}

.hero-grid::after {
  position: absolute;
  z-index: 3;
  inset: 17px;
  border: 1px solid var(--banner-border);
  border-radius: 14px;
  pointer-events: none;
  content: "";
}

.hero-copy,
.hero-photo {
  grid-area: 1 / 1;
}

.hero-photo {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  overflow: hidden;
  aspect-ratio: auto;
  border-radius: inherit;
  background: var(--charcoal);
}

.hero-photo::before,
.page-banner .banner-media::before {
  position: absolute;
  z-index: 2;
  top: -34%;
  right: -10%;
  width: clamp(260px, 38vw, 520px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 221, 0, 0.32);
  border-radius: 50%;
  box-shadow:
    0 0 0 34px rgba(255, 255, 255, 0.025),
    0 0 0 68px rgba(255, 255, 255, 0.018);
  pointer-events: none;
  content: "";
}

.hero-photo::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 13, 15, 0.95) 0%, rgba(25, 21, 25, 0.82) 34%, rgba(28, 24, 28, 0.3) 68%, rgba(20, 18, 20, 0.08) 100%),
    linear-gradient(0deg, rgba(16, 14, 16, 0.7) 0%, transparent 48%),
    radial-gradient(circle at 72% 38%, transparent 0%, rgba(15, 13, 15, 0.08) 46%, rgba(15, 13, 15, 0.42) 100%);
  pointer-events: none;
  content: "";
}

.hero-photo img,
.page-banner .banner-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.08);
  transform: scale(1.025);
  transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.8s ease;
  animation: hero-image-settle 1.25s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-photo img {
  object-position: center 46%;
}

.hero-grid:hover .hero-photo img,
.page-banner:hover .banner-media img {
  filter: saturate(1) contrast(1.06);
  transform: scale(1.055);
}

.hero-copy {
  position: relative;
  z-index: 2;
  align-self: end;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: min(720px, 58%);
  min-width: 0;
  padding: clamp(44px, 5vw, 70px);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--white);
  animation: hero-copy-rise 0.85s 0.12s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-copy::after {
  position: absolute;
  left: clamp(44px, 5vw, 70px);
  bottom: clamp(25px, 3vw, 40px);
  width: 42px;
  height: 1px;
  background: rgba(255, 221, 0, 0.78);
  content: "";
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin-bottom: 18px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(26, 26, 26, 0.28);
  color: var(--yellow);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.17em;
  line-height: 1;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.hero-copy h1 {
  max-width: 14ch;
  color: var(--white);
  font-size: clamp(38px, 4vw, 56px);
  font-weight: 610;
  letter-spacing: -0.052em;
  line-height: 1.04;
  text-wrap: balance;
}

.hero-copy h1 span {
  color: var(--yellow);
}

.hero-copy p {
  max-width: 50ch;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-top: 26px;
}

.hero-actions .text-link {
  color: var(--white);
}

.hero-media-label {
  position: absolute;
  z-index: 4;
  right: clamp(34px, 4vw, 58px);
  bottom: clamp(32px, 4vw, 54px);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 260px;
}

.hero-media-label span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(26, 26, 26, 0.42);
  color: var(--white);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.11em;
  line-height: 1;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.hero-disciplines {
  position: relative;
  z-index: 5;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: calc(100% - clamp(44px, 6vw, 88px));
  margin: -25px auto 0;
  padding: 7px 18px;
  border: 1px solid rgba(168, 150, 160, 0.46);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 42px rgba(26, 26, 26, 0.14);
  backdrop-filter: blur(14px);
}

.hero-disciplines > div {
  min-height: 52px;
  padding-inline: 18px;
  border-color: rgba(168, 150, 160, 0.48);
}

/* Inner pages: the image becomes the canvas; copy is editorially anchored over it. */
.page-banner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  height: clamp(310px, 27vw, 390px);
  min-height: 0;
  margin-block: clamp(18px, 2.3vw, 30px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(100, 90, 100, 0.5);
  border-radius: var(--banner-radius);
  background:
    radial-gradient(circle at 82% 14%, rgba(255, 221, 0, 0.1), transparent 25%),
    linear-gradient(135deg, var(--ink), var(--charcoal));
  box-shadow: var(--banner-shadow);
  isolation: isolate;
}

.page-banner::before {
  position: absolute;
  z-index: 4;
  top: 0;
  left: clamp(28px, 4.5vw, 62px);
  width: clamp(64px, 8vw, 108px);
  height: 5px;
  background: var(--yellow);
  content: "";
}

.page-banner::after {
  position: absolute;
  z-index: 3;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 15px;
  pointer-events: none;
  content: "";
}

.page-banner .banner-copy,
.page-banner .banner-media {
  grid-area: 1 / 1;
}

.page-banner .banner-media,
.page-banner .photo {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  overflow: hidden;
  aspect-ratio: auto;
  border-radius: inherit;
  background: var(--charcoal);
}

.page-banner .banner-media::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 14, 16, 0.96) 0%, rgba(25, 21, 25, 0.78) 38%, rgba(28, 24, 28, 0.25) 70%, rgba(20, 18, 20, 0.1) 100%),
    linear-gradient(0deg, rgba(15, 13, 15, 0.7) 0%, transparent 52%);
  pointer-events: none;
  content: "";
}

.page-banner .banner-copy {
  position: relative;
  z-index: 2;
  align-self: end;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: min(680px, 60%);
  min-width: 0;
  max-width: none;
  padding: clamp(38px, 4.5vw, 60px);
  animation: hero-copy-rise 0.8s 0.08s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.page-banner .breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin: 0 0 18px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(26, 26, 26, 0.24);
  color: rgba(255, 255, 255, 0.62);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.11em;
  line-height: 1;
  text-transform: uppercase;
  backdrop-filter: blur(9px);
}

.page-banner .breadcrumb a {
  color: var(--yellow);
}

.page-banner .breadcrumb a:hover {
  color: var(--white);
}

.page-banner .breadcrumb > span:first-of-type {
  color: rgba(255, 255, 255, 0.34);
}

.page-banner h1,
.contact-opening h1 {
  max-width: 15ch;
  color: var(--white);
  font-size: clamp(32px, 3.5vw, 46px);
  font-weight: 610;
  letter-spacing: -0.048em;
  line-height: 1.08;
  text-wrap: balance;
}

.page-banner .banner-copy > p,
.contact-opening > p {
  max-width: 52ch;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13.5px;
  line-height: 1.75;
}

.banner-about .banner-media img { object-position: center 42%; }
.banner-services .banner-media img { object-position: center 54%; }
.banner-work .banner-media img { object-position: center 48%; }
.banner-contact .banner-media img { object-position: center 56%; }

/* Text-only system pages keep the same premium visual grammar. */
.page-banner.banner-text {
  display: grid;
  align-items: end;
  height: auto;
  min-height: clamp(245px, 27vw, 330px);
  padding: 0;
}

.page-banner.banner-text > div {
  position: relative;
  z-index: 2;
  width: min(820px, 78%);
  max-width: none;
  padding: clamp(44px, 5.5vw, 70px);
}

.page-banner.banner-text::after {
  right: 14px;
  bottom: 14px;
}

.page-banner.banner-text > div::after {
  position: absolute;
  right: clamp(-160px, -12vw, -70px);
  bottom: -30px;
  width: clamp(110px, 15vw, 190px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 221, 0, 0.28);
  border-radius: 50%;
  box-shadow:
    0 0 0 25px rgba(255, 255, 255, 0.025),
    0 0 0 50px rgba(255, 255, 255, 0.018);
  content: "";
}

.page-banner.banner-text .cta { margin-top: 22px; }

@keyframes hero-image-settle {
  from { transform: scale(1.07); }
  to { transform: scale(1.025); }
}

@keyframes hero-copy-rise {
  from { transform: translateY(10px); }
  to { transform: translateY(0); }
}

@media (max-width: 991px) {
  .hero.wrap,
  .page-banner.wrap {
    width: calc(100% - 32px);
  }
  .hero { padding-block: 14px 28px; }
  .hero-grid {
    height: clamp(450px, 58vw, 530px);
    min-height: 0;
  }
  .hero-copy {
    width: min(660px, 74%);
    padding: clamp(40px, 6vw, 58px);
  }
  .hero-copy::after { left: clamp(40px, 6vw, 58px); }
  .hero-photo,
  .page-banner .banner-media,
  .page-banner .photo {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
  }
  .hero-photo::after,
  .page-banner .banner-media::after {
    background:
      linear-gradient(90deg, rgba(16, 14, 16, 0.92) 0%, rgba(25, 21, 25, 0.64) 48%, rgba(20, 18, 20, 0.16) 100%),
      linear-gradient(0deg, rgba(15, 13, 15, 0.78) 0%, transparent 62%);
  }
  .hero-disciplines {
    width: calc(100% - 34px);
    margin-top: -20px;
  }
  .page-banner {
    height: clamp(330px, 43vw, 390px);
    min-height: 0;
  }
  .page-banner .banner-copy {
    width: min(620px, 74%);
    padding: clamp(34px, 5.5vw, 50px);
  }
}

@media (max-width: 575px) {
  :root { --banner-radius: 15px; }
  .hero.wrap,
  .page-banner.wrap {
    width: calc(100% - 20px);
  }
  .hero { padding-top: 12px; }
  .hero-grid {
    height: 500px;
    min-height: 0;
  }
  .hero-grid::after,
  .page-banner::after {
    inset: 9px;
    border-radius: 10px;
  }
  .hero-photo img { object-position: 62% center; }
  .hero-photo::after,
  .page-banner .banner-media::after {
    background:
      linear-gradient(0deg, rgba(14, 12, 14, 0.96) 0%, rgba(22, 19, 22, 0.78) 47%, rgba(20, 18, 20, 0.2) 100%),
      linear-gradient(90deg, rgba(14, 12, 14, 0.38), transparent 75%);
  }
  .hero-copy {
    width: 100%;
    padding: 38px 24px 48px;
  }
  .hero-copy::after {
    left: 24px;
    bottom: 26px;
  }
  .hero-kicker {
    margin-bottom: 15px;
    font-size: 8px;
  }
  .hero-copy h1,
  .page-banner h1,
  .contact-opening h1 {
    max-width: 16ch;
    font-size: clamp(31px, 9vw, 39px);
    line-height: 1.08;
  }
  .page-banner h1,
  .contact-opening h1 {
    max-width: 18ch;
    font-size: clamp(29px, 8.2vw, 33px);
    overflow-wrap: break-word;
  }
  .hero-copy p,
  .page-banner .banner-copy > p {
    margin-top: 16px;
    font-size: 12.5px;
  }
  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    margin-top: 22px;
  }
  .hero-actions .cta { width: auto; }
  .hero-media-label {
    top: 24px;
    right: 22px;
    bottom: auto;
    max-width: 170px;
  }
  .hero-media-label span:nth-child(2) { display: none; }
  .hero-disciplines {
    width: calc(100% - 20px);
    padding: 6px 16px;
  }
  .page-banner {
    height: 360px;
    min-height: 0;
    margin-block: 12px 22px;
  }
  .page-banner .banner-copy {
    width: 100%;
    padding: 32px 24px 36px;
  }
  .page-banner .breadcrumb {
    margin-bottom: 15px;
    padding: 6px 9px;
    font-size: 7.5px;
  }
  .page-banner .banner-media img { object-position: 58% center; }
  .page-banner.banner-text {
    height: auto;
    min-height: 245px;
  }
  .page-banner.banner-text > div {
    width: 100%;
    padding: 38px 27px;
  }
  .page-banner.banner-text > div::after {
    right: -55px;
    opacity: 0.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy,
  .page-banner .banner-copy,
  .hero-photo img,
  .page-banner .banner-media img {
    animation: none;
    transition: none;
  }
  .hero-grid:hover .hero-photo img,
  .page-banner:hover .banner-media img {
    transform: scale(1.025);
  }
}
