:root {
  --v4-ink: #050d17;
  --v4-muted: #6c7d8d;
  --v4-accent: #7066ff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  position: relative;
  isolation: isolate;
  display: block;
  min-height: 650px;
  height: 100svh;
  padding: 0;
  overflow: hidden;
  color: var(--v4-ink);
  background: #f4f8fb;
}

.landscape {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.scene-layer {
  position: absolute;
  inset: -2.5%;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.scene-layer img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  image-rendering: auto;
}

.header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 21px 4.7vw;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.header.is-scrolled {
  border-bottom-color: rgba(15, 23, 42, 0.08);
  background: rgba(248, 251, 253, 0.9);
  box-shadow: 0 16px 50px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 10px;
  width: max-content;
  height: 50px;
  text-transform: uppercase;
}

.brand-icon {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  flex: none;
}

.brand-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text strong,
.brand-text small {
  display: block;
  color: #07111b;
  font-family: "Montserrat", system-ui, sans-serif;
  line-height: 1;
  letter-spacing: 0.1em;
}

.brand-text strong {
  font-size: 20px;
  font-weight: 900;
}

.brand-text small {
  margin-top: 5px;
  font-size: 9px;
  font-weight: 800;
}

.navigation {
  display: flex;
  align-items: center;
  gap: clamp(26px, 2.7vw, 52px);
  color: #0c141d;
  font-size: 16px;
  font-weight: 500;
}

.navigation > a:not(.button) {
  position: relative;
  padding: 12px 0;
}

.navigation .language-link {
  font-weight: 800;
  letter-spacing: 0.08em;
}

.navigation > a:not(.button)::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--v4-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s;
}

.navigation > a:not(.button):hover::after,
.navigation > a:not(.button):focus-visible::after {
  transform: scaleX(1);
}

.navigation .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 143px;
  min-height: 49px;
  padding: 13px 26px;
  border-radius: 10px;
  color: #fff;
  background: #060e18;
  font-weight: 600;
  box-shadow: none;
  transition: background 0.2s, transform 0.2s;
}

.navigation .button:hover,
.navigation .button:focus-visible {
  background: #253142;
  transform: translateY(-2px);
}

.navigation .button[aria-disabled="true"],
.navigation .button[aria-disabled="true"]:hover,
.navigation .button[aria-disabled="true"]:focus-visible {
  background: #233044;
  transform: none;
}

.menu-toggle {
  display: none;
}

.hero-copy {
  position: absolute;
  top: 27.4%;
  left: 54.75%;
  width: 35%;
  max-width: 760px;
  padding: 0;
  transform: none;
}

.hero .eyebrow,
.hero .services {
  margin: 0;
  color: var(--v4-muted);
  font-size: clamp(10px, 0.78vw, 16px);
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero .eyebrow {
  margin-bottom: 1.35vw;
}

.hero h1 {
  width: auto;
  margin: 0 0 1.75vw -0.65vw;
  line-height: 1;
}

.wordmark {
  display: block;
  width: 100%;
  aspect-ratio: 596 / 190;
  background-image: url("wordmark-v4-transparent.png");
  background-repeat: no-repeat;
  background-size: contain;
  mix-blend-mode: multiply;
}

.tagline {
  margin: 0;
  color: #6c7b89;
  font-size: clamp(25px, 2.18vw, 48px);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.25;
  white-space: nowrap;
}

.accent {
  width: 7.7vw;
  min-width: 82px;
  height: 5px;
  margin: 1.6vw 0 1.65vw;
  background: var(--v4-accent);
}

.hero .services {
  font-size: clamp(10px, 0.8vw, 16px);
  font-weight: 500;
  letter-spacing: 0.31em;
}

.scroll-cue {
  position: absolute;
  bottom: 23px;
  left: 50%;
  right: auto;
  display: grid;
  justify-items: center;
  gap: 10px;
  color: #627789;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-cue i {
  display: block;
  width: 2px;
  height: 32px;
  background: var(--v4-accent);
}

.service {
  scroll-margin-top: 12px;
}

@media (min-aspect-ratio: 21 / 10) {
  .hero {
    min-height: 600px;
  }

  .hero-copy {
    top: 25%;
  }

  .scene-layer img {
    object-position: center 45%;
  }
}

@media (max-width: 1100px) and (min-width: 761px) {
  .hero {
    min-height: 580px;
  }

  .hero-copy {
    left: 53%;
    width: 43%;
  }

  .hero .eyebrow {
    font-size: 10px;
    letter-spacing: 0.2em;
  }

  .tagline {
    font-size: clamp(23px, 2.4vw, 30px);
  }

  .hero .services {
    font-size: 10px;
    letter-spacing: 0.16em;
  }

  .navigation {
    gap: 25px;
  }

  .scene-layer img {
    object-position: 42% center;
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: 820px;
    height: 100svh;
  }

  .header {
    padding: 20px 24px;
  }

  .brand {
    transform: scale(0.9);
    transform-origin: left center;
  }

  .menu-toggle {
    z-index: 2;
    display: flex;
    width: 46px;
    height: 46px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    border: 1px solid #cbd5df;
    border-radius: 10px;
    background: rgba(249, 252, 255, 0.93);
    cursor: pointer;
  }

  .menu-toggle span {
    width: 20px;
    height: 2px;
    align-self: center;
    background: var(--v4-ink);
    transition: transform 0.2s;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .navigation {
    position: absolute;
    top: 83px;
    right: 24px;
    left: 24px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 22px;
    border: 1px solid #dae2ea;
    border-radius: 14px;
    background: rgba(249, 252, 255, 0.98);
    box-shadow: 0 14px 40px rgba(21, 37, 54, 0.09);
  }

  .navigation.is-open {
    display: flex;
  }

  .navigation a {
    padding: 13px;
  }

  .navigation .button {
    width: 100%;
    margin-top: 8px;
  }

  .hero-copy {
    top: clamp(500px, 59svh, 560px);
    left: 7%;
    width: 86%;
    max-width: none;
    text-align: center;
  }

  .hero .eyebrow {
    max-width: 340px;
    margin: 0 auto 13px;
    font-size: 10px;
    line-height: 1.6;
    letter-spacing: 0.24em;
    white-space: normal;
  }

  .hero h1 {
    width: 85%;
    margin: 0 auto 15px;
  }

  .tagline {
    font-size: clamp(21px, 5.3vw, 32px);
    letter-spacing: 0.025em;
  }

  .accent {
    width: 70px;
    min-width: 0;
    height: 3px;
    margin: 19px auto;
  }

  .hero .services {
    font-size: 9px;
    line-height: 1.8;
    letter-spacing: 0.17em;
    white-space: normal;
  }

  .scene-layer {
    inset: 0;
  }

  .scene-layer img {
    position: absolute;
    top: clamp(82px, 10svh, 112px);
    bottom: auto;
    left: calc(50% - 312px);
    width: 980px;
    max-width: none;
    height: 478px;
    object-fit: fill;
  }

  .scene-layer--middle img,
  .scene-layer--near img {
    filter: brightness(0.92) contrast(1.14) saturate(1.04);
  }

  .scene-layer--far img {
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 75% center;
  }

  .hero::after {
    position: absolute;
    inset: 0 0 auto;
    z-index: -1;
    height: 100%;
    content: "";
    background:
      linear-gradient(
        #f4f8fb 0%,
        rgba(244, 248, 251, 0.1) 12%,
        rgba(244, 248, 251, 0) 50%,
        rgba(244, 248, 251, 0.72) 61%,
        rgba(244, 248, 251, 0.96) 72%,
        #f4f8fb 100%
      );
    pointer-events: none;
  }

  .scroll-cue {
    bottom: 15px;
    font-size: 10px;
  }

  .scroll-cue i {
    height: 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scene-layer {
    transform: none !important;
    will-change: auto;
  }
}
