.hero {
  position: relative;
  color: var(--paper);
  background:
    linear-gradient(115deg, rgba(15, 20, 25, 0.94) 0%, rgba(15, 20, 25, 0.78) 42%, rgba(26, 61, 92, 0.62) 100%),
    url("../img/hero.jpg") center / cover no-repeat;
  padding-top: calc(var(--header-h) + 56px);
}

.hero-carousel {
  position: relative;
  height: 100vh;
  height: 100dvh;
  color: var(--paper);
}

.hero-carousel-pin {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform: translate3d(100%, 0, 0);
  transition: transform 0.75s var(--ease);
  z-index: 1;
}

.hero-slide.is-reset {
  transition: none;
}

.hero-slide.is-from-left {
  transform: translate3d(-100%, 0, 0);
}

.hero-slide.is-active {
  pointer-events: auto;
  z-index: 3;
  transform: translate3d(0, 0, 0);
}

.hero-slide.is-leaving {
  z-index: 2;
  transform: translate3d(-100%, 0, 0);
}

.hero-carousel.is-reverse .hero-slide.is-leaving {
  transform: translate3d(100%, 0, 0);
}

.hero-carousel.is-reverse .hero-slide.is-active {
  z-index: 3;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    opacity: 0;
    transform: none;
    transition: none;
  }

  .hero-slide.is-active {
    opacity: 1;
  }

  .hero-slide.is-leaving {
    opacity: 0;
    transform: none;
  }
}

.hero-slide-media {
  position: absolute;
  inset: 0;
  background-color: var(--ink-soft);
  background-image: var(--hero-image);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-slide-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 20, 25, 0.55) 0%, transparent 22%),
    linear-gradient(115deg, rgba(15, 20, 25, 0.92) 0%, rgba(15, 20, 25, 0.62) 46%, rgba(26, 61, 92, 0.42) 100%);
}

.hero-slide-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  max-width: 760px;
  padding-top: calc(var(--header-h) + 24px);
  padding-bottom: 7.5rem;
}

.hero-main {
  display: block;
  max-width: 720px;
  padding-bottom: var(--space-6);
}

.hero-carousel-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2.4rem;
  z-index: 4;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  padding: 0 var(--space-4);
}

.hero-carousel-nav button {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.55);
  padding: 0.75rem 1.35rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--fast), border-color var(--fast);
}

.hero-carousel-nav button.is-active,
.hero-carousel-nav button:hover {
  color: var(--white);
  border-bottom-color: var(--amber);
}

.hero-scroll-cue {
  position: absolute;
  right: 2rem;
  bottom: 2.35rem;
  z-index: 4;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  background: none;
  border: 0;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

.hero-scroll-cue::after {
  content: "";
  width: 1px;
  height: 42px;
  background: linear-gradient(var(--amber), transparent);
  animation: hero-scroll-line 1.6s var(--ease) infinite;
}

@keyframes hero-scroll-line {
  0%,
  100% { transform: scaleY(0.45); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

.hero-clients {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  width: 100%;
  padding: 0.75rem 0 0.9rem;
  border-top: 1px solid rgba(245, 184, 0, 0.2);
  background: linear-gradient(180deg, rgba(8, 12, 18, 0.12), rgba(8, 12, 18, 0.82) 42%, rgba(8, 12, 18, 0.96));
  backdrop-filter: blur(10px);
}

.hero-clients .eyebrow {
  margin: 0 0 0.55rem;
  justify-content: center;
  width: 100%;
}

.hero-clients .client-marquee {
  width: 100%;
}

.hero-carousel.has-clients .hero-slide-copy {
  padding-bottom: 11.5rem;
}

.hero-carousel.has-clients .hero-carousel-nav,
.hero-carousel.has-clients .hero-scroll-cue {
  bottom: 7rem;
}

.hero-title {
  font-size: var(--fs-hero);
  color: var(--white);
  max-width: 16ch;
}

.hero-slide-copy .hero-title {
  margin-top: var(--space-3);
  max-width: 18ch;
}

.hero-title em {
  font-style: normal;
  color: var(--amber);
}

.hero-sub {
  margin-top: var(--space-4);
  max-width: 34rem;
  color: var(--slate-light);
  font-size: 1.12rem;
}

.hero-actions {
  margin-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.hero-stats {
  border-top: 1px solid rgba(245, 184, 0, 0.28);
  background: rgba(0, 0, 0, 0.28);
  padding: var(--space-5) 0;
}

.hero-stats--after {
  background: var(--ink);
  border-top: 1px solid var(--ink-line);
}

.stats-grid {
  --stat-count: 4;
  display: grid;
  grid-template-columns: repeat(var(--stat-count), minmax(0, 1fr));
  justify-content: center;
  gap: var(--space-4);
  width: 100%;
}

.stats-grid[data-stat-count="1"] {
  grid-template-columns: minmax(0, 20rem);
}

.stat-plate {
  border-top: 2px solid var(--amber);
  padding-top: var(--space-3);
  min-width: 0;
}

.stat-plate .value {
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.1;
  color: var(--white);
}

.stat-plate .label {
  margin-top: var(--space-2);
  color: var(--slate-light);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.4;
}

.section--dim .stat-plate .value {
  color: var(--ink);
}

.section--dim .stat-plate .label {
  color: var(--slate);
}

.section--ink .stat-plate .value {
  color: var(--white);
}

.section--ink .stat-plate .label {
  color: var(--slate-light);
}

.section--leaders {
  background: var(--paper);
}

.section-head--center {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  text-align: center;
  margin-bottom: var(--space-5);
}

.section-head--center .section-title {
  max-width: none;
}

.section-head--center .section-sub {
  max-width: none;
}

.leader-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  align-items: stretch;
}

.leader-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--paper-line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 20, 25, 0.06);
}

.leader-photo {
  position: relative;
  height: 240px;
  background: var(--paper-dim);
  overflow: hidden;
}

.leader-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.leader-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: var(--font-display);
  font-size: 2.4rem;
  letter-spacing: 0.08em;
  color: var(--steel);
  background: linear-gradient(160deg, #e8eef3, #d5dde4);
}

.leader-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: var(--space-4);
  flex: 1;
}

.leader-body h3 {
  font-size: 1.25rem;
  line-height: 1.25;
}

.leader-role {
  color: var(--orange);
  font-weight: 600;
  font-size: 0.95rem;
}

.leader-meta span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0.2rem;
}

.leader-meta p,
.leader-background {
  color: var(--slate);
  line-height: 1.6;
  font-size: 0.95rem;
}

.leader-background {
  margin-top: 0.25rem;
}

.leader-in {
  margin-top: auto;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #0a66c2;
  color: #fff;
}

.leader-in:hover {
  background: #084d92;
  color: #fff;
}

.leader-in svg {
  width: 16px;
  height: 16px;
}

.page-header {
  padding: calc(var(--header-h) + 48px) 0 var(--space-6);
  color: var(--paper);
  background:
    linear-gradient(115deg, rgba(15, 20, 25, 0.94) 0%, rgba(15, 20, 25, 0.8) 50%, rgba(26, 61, 92, 0.7) 100%),
    var(--page-header-image, url("../img/hero.jpg")) center / cover no-repeat;
}

.page-header--banner {
  display: flex;
  align-items: center;
  min-height: clamp(240px, 28vw, 420px);
  padding-top: calc(var(--header-h) + 28px);
  padding-bottom: 2rem;
}

.page-header--contact {
  background-color: #0b1018;
  background-image:
    linear-gradient(90deg, rgba(8, 12, 18, 0.28) 0%, rgba(8, 12, 18, 0.08) 28%, transparent 46%),
    var(--page-header-image, url("../img/contact-hero.jpg"));
  background-position: center right;
  background-size: cover;
  background-repeat: no-repeat;
}

.page-header--photo,
.page-header--blog {
  background-color: #0b1018;
  background-image:
    linear-gradient(115deg, rgba(15, 20, 25, 0.88) 0%, rgba(15, 20, 25, 0.58) 48%, rgba(26, 61, 92, 0.42) 100%),
    var(--page-header-image, url("../img/hero.jpg"));
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.page-header + .section--catalog {
  padding-top: var(--space-5);
}

.page-header--contact .eyebrow,
.page-header--contact .page-title,
.page-header--contact .breadcrumb-row {
  max-width: min(22rem, 34vw);
}

.page-header--contact .page-title {
  font-size: clamp(1.55rem, 2.4vw, 2.35rem);
  line-height: 1.18;
}

@media (max-width: 768px) {
  .page-header--banner {
    min-height: 210px;
  }

  .page-header--contact {
    background-position: 78% center;
    background-image:
      linear-gradient(90deg, rgba(8, 12, 18, 0.82) 0%, rgba(8, 12, 18, 0.38) 58%, transparent 84%),
      var(--page-header-image, url("../img/contact-hero.jpg"));
  }

  .page-header--contact .eyebrow,
  .page-header--contact .page-title,
  .page-header--contact .breadcrumb-row {
    max-width: 18rem;
  }
}

.page-header .page-title {
  color: var(--white);
}

.page-header--light {
  color: var(--ink);
  background: var(--paper);
}

.page-header--light .page-title {
  color: var(--ink);
}

.page-header--light .breadcrumb-row {
  color: var(--slate);
}

.page-header--light .eyebrow--light {
  color: var(--orange);
}

.breadcrumb-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--slate-light);
}

.breadcrumb-row a:hover {
  color: var(--amber);
}

.tile {
  display: block;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--paper-line);
  border-top: 3px solid var(--amber);
  padding: var(--space-4);
  color: inherit;
  transition: transform var(--med) var(--ease), box-shadow var(--med) var(--ease), border-color var(--med);
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--amber);
}

.tile--static:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--paper-line);
}

.icon-wrap {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
  background: var(--paper-dim);
  color: var(--steel);
  border-radius: var(--radius);
  transition: background var(--med), color var(--med);
}

.icon-wrap svg {
  width: 24px;
  height: 24px;
}

.tile:hover .icon-wrap {
  background: var(--ink);
  color: var(--amber);
}

.tile h3 {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-2);
}

.tile p {
  color: var(--slate);
  font-size: 0.95rem;
}

.tile-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-3);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
}

.tile-link svg {
  width: 14px;
  height: 14px;
}

.tile--photo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #f7f7f5;
  background: var(--ink-soft);
  border-color: rgba(255, 255, 255, 0.12);
}

.tile-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.04);
  transition: transform var(--med) var(--ease);
}

.tile-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 20, 25, 0.45) 0%, rgba(15, 20, 25, 0.92) 72%);
}

.tile-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.tile.tile--photo h3 {
  color: #ffffff;
}

.tile.tile--photo p {
  color: rgba(255, 255, 255, 0.92);
}

.tile--photo .icon-wrap {
  background: rgba(247, 247, 245, 0.16);
  color: var(--amber);
}

.tile--photo:hover {
  border-color: var(--amber);
}

.tile--photo:hover .tile-media {
  transform: scale(1.08);
}

.tile--photo:hover .icon-wrap {
  background: rgba(15, 20, 25, 0.55);
  color: var(--amber);
}

.tile.tile--photo .tile-link {
  color: var(--amber);
  text-shadow: none;
}

.other-cat-grid {
  align-items: stretch;
}

.other-cat-card {
  min-height: 280px;
  padding: 1.15rem 1.2rem 1.25rem;
  box-shadow: 0 16px 36px rgba(15, 20, 25, 0.12);
  transition: transform var(--med) var(--ease), border-color var(--fast), box-shadow var(--med) var(--ease);
}

.other-cat-card .tile-copy {
  padding: 0;
  gap: 0.35rem;
  max-width: 36ch;
}

.other-cat-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.35rem;
  padding: 0.22rem 0.55rem;
  border: 1px solid rgba(245, 184, 0, 0.45);
  background: rgba(15, 20, 25, 0.45);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: none;
}

.other-cat-card h3 {
  font-size: 1.28rem;
  line-height: 1.2;
}

.other-cat-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
}

.other-cat-card .tile-link {
  margin-top: 0.55rem;
}

.other-cat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 48px rgba(15, 20, 25, 0.2);
}

.other-cat-card .tile-link svg {
  transition: transform 0.35s var(--ease);
}

.other-cat-card:hover .tile-link svg {
  transform: translateX(5px);
}

