.home-page {
  overflow-x: clip;
}

.home-page .site-header {
  position: fixed;
  inset: 0 0 auto;
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(7, 14, 18, 0.48), rgba(7, 14, 18, 0));
  backdrop-filter: none;
  transition:
    color 500ms ease,
    background-color 500ms ease,
    border-color 500ms ease,
    backdrop-filter 500ms ease;
}

.home-page .site-header .brand img {
  filter: brightness(0) invert(1);
  transition: filter 500ms ease;
}

.home-page .site-header .nav a::after {
  background: currentColor;
}

.home-page .site-header .header-cta {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.46);
  background: rgba(8, 17, 22, 0.18);
}

.home-page .site-header .menu-toggle {
  color: inherit;
}

.home-page .site-header.is-scrolled {
  color: var(--ink);
  border-bottom-color: var(--line);
  background: rgba(252, 252, 250, 0.9);
  backdrop-filter: blur(18px);
}

.home-page .site-header.is-scrolled .brand img {
  filter: none;
}

.home-page .site-header.is-scrolled .header-cta {
  color: #fff;
  border-color: var(--deep);
  background: var(--deep);
}

.home-page .hero {
  --hero-object-position-desktop: center center;
  --hero-object-position-mobile: 43% center;
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  height: 100vh;
  height: 100svh;
  min-height: 720px;
  display: block;
  overflow: hidden;
  padding: 0;
  color: #fbfaf6;
  background: #101a20;
}

.home-page .hero::before {
  content: none;
}

.home-page .hero-media,
.home-page .hero-poster,
.home-page .hero-video,
.home-page .hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-page .hero-media {
  z-index: 0;
  overflow: hidden;
  background: #101a20;
}

.home-page .hero-poster,
.home-page .hero-video {
  object-fit: cover;
  object-position: var(--hero-object-position-desktop);
}

.home-page .hero-poster {
  opacity: 1;
  animation: hero-poster-in 800ms ease-out both;
}

.home-page .hero-video {
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 900ms ease;
}

.home-page .hero.is-video-ready .hero-video {
  opacity: 1;
}

.home-page .hero-shade {
  z-index: 2;
  pointer-events: none;
}

.home-page .hero-shade-base {
  background: rgba(6, 13, 17, 0.17);
}

.home-page .hero-shade-bottom {
  background: linear-gradient(
    0deg,
    rgba(4, 10, 14, 0.84) 0%,
    rgba(5, 12, 16, 0.47) 26%,
    rgba(6, 13, 17, 0.1) 62%,
    rgba(6, 13, 17, 0.16) 100%
  );
}

.home-page .hero-shade-side {
  background: linear-gradient(
    90deg,
    rgba(5, 11, 15, 0.69) 0%,
    rgba(5, 11, 15, 0.39) 34%,
    rgba(5, 11, 15, 0.08) 64%,
    rgba(5, 11, 15, 0) 82%
  );
}

.home-page .hero-inner {
  position: relative;
  z-index: 3;
  width: min(100%, var(--max));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  padding:
    clamp(136px, 17vh, 210px)
    var(--pad)
    clamp(76px, 10vh, 118px);
}

.home-page .hero-copy {
  max-width: 920px;
  padding: 0;
  align-self: auto;
}

.home-page .hero .kicker {
  margin: 0 0 24px;
  color: rgba(251, 250, 246, 0.78);
  font-size: 11px;
  font-weight: 620;
  letter-spacing: 0.24em;
}

.home-page .hero h1 {
  max-width: 920px;
  margin: 0;
  color: #fbfaf6;
  font-size: clamp(64px, 7.1vw, 116px);
  font-weight: 430;
  letter-spacing: -0.065em;
  line-height: 0.94;
  text-wrap: balance;
  text-shadow: 0 2px 28px rgba(4, 10, 14, 0.2);
}

.home-page .hero-lead {
  max-width: 760px;
  margin: 30px 0 0;
  color: rgba(251, 250, 246, 0.8);
  font-size: clamp(16px, 1.25vw, 19px);
  font-weight: 420;
  line-height: 1.58;
}

.home-page .hero-actions {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 44px);
  margin-top: 36px;
}

.home-page .hero .button.primary {
  min-height: 52px;
  padding: 0 24px;
  color: #162229;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 2px;
  background: #fbfaf6;
  font-weight: 620;
  transition:
    color 240ms ease,
    background-color 240ms ease,
    border-color 240ms ease,
    transform 240ms ease;
}

.home-page .hero .button.primary:hover {
  color: #fbfaf6;
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(9, 19, 24, 0.44);
  transform: translateY(-1px);
}

.home-page .hero-projects-link {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(251, 250, 246, 0.9);
  font-size: 13px;
  font-weight: 570;
}

.home-page .hero-projects-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  background: rgba(251, 250, 246, 0.52);
  transform: scaleX(0.42);
  transform-origin: left;
  transition: transform 280ms ease;
}

.home-page .hero-projects-link:hover::after {
  transform: scaleX(1);
}

.home-page .hero-video-toggle {
  z-index: 4;
  right: max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad)));
  bottom: max(28px, env(safe-area-inset-bottom));
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  padding: 0 14px;
  border-color: rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(6, 13, 17, 0.34);
}

.home-page .hero-video-toggle[hidden] {
  display: none;
}

.home-page .site-header a:focus-visible,
.home-page .site-header button:focus-visible,
.home-page .hero a:focus-visible,
.home-page .hero button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
  box-shadow: 0 0 0 5px rgba(7, 16, 21, 0.48);
}

.home-page .site-header.is-scrolled a:focus-visible,
.home-page .site-header.is-scrolled button:focus-visible {
  outline-color: var(--deep);
  box-shadow: 0 0 0 5px rgba(252, 252, 250, 0.9);
}

.home-page .hero-eyebrow {
  animation: hero-copy-in 650ms 160ms ease-out both;
}

.home-page .hero h1 {
  animation: hero-copy-in 760ms 280ms ease-out both;
}

.home-page .hero-lead,
.home-page .hero-actions {
  animation: hero-copy-in 780ms 430ms ease-out both;
}

@keyframes hero-poster-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes hero-copy-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1360px) {
  .home-page .site-header {
    grid-template-columns: 150px 1fr auto auto;
    gap: 18px;
  }

  .home-page .site-header .nav {
    display: none;
    position: absolute;
    top: 76px;
    right: 0;
    left: 0;
    padding: 25px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(9, 18, 23, 0.94);
    backdrop-filter: blur(18px);
    flex-direction: column;
  }

  .home-page .site-header .nav.is-open {
    display: flex;
  }

  .home-page .site-header .menu-toggle {
    display: block;
    justify-self: end;
    border: 0;
    background: transparent;
  }

  .home-page .site-header .header-cta {
    display: none;
  }

  .home-page .site-header.is-scrolled .nav {
    color: var(--ink);
    border-bottom-color: var(--line);
    background: rgba(252, 252, 250, 0.97);
  }
}

@media (max-width: 980px) {
  .home-page .hero {
    min-height: 680px;
  }

  .home-page .hero-inner {
    padding-top: 132px;
    padding-bottom: clamp(64px, 9vh, 104px);
  }

  .home-page .hero-copy {
    max-width: 760px;
  }

  .home-page .hero h1 {
    font-size: clamp(56px, 8.4vw, 86px);
  }
}

@media (max-width: 900px) and (orientation: portrait) {
  .home-page .hero-poster,
  .home-page .hero-video {
    object-position: var(--hero-object-position-mobile);
  }
}

@media (max-width: 620px) {
  .home-page .site-header {
    grid-template-columns: 118px 1fr auto;
    gap: 10px;
    padding-inline: 16px;
  }

  .home-page .hero {
    height: 100svh;
    min-height: 640px;
  }

  .home-page .hero-shade-base {
    background: rgba(6, 13, 17, 0.2);
  }

  .home-page .hero-shade-bottom {
    background: linear-gradient(
      0deg,
      rgba(4, 10, 14, 0.93) 0%,
      rgba(5, 12, 16, 0.7) 34%,
      rgba(6, 13, 17, 0.14) 68%,
      rgba(6, 13, 17, 0.22) 100%
    );
  }

  .home-page .hero-shade-side {
    background: linear-gradient(
      90deg,
      rgba(5, 11, 15, 0.42),
      rgba(5, 11, 15, 0.06) 86%
    );
  }

  .home-page .hero-inner {
    align-items: flex-end;
    padding:
      118px
      20px
      calc(42px + env(safe-area-inset-bottom));
  }

  .home-page .hero .kicker {
    margin-bottom: 18px;
    font-size: 10px;
  }

  .home-page .hero h1 {
    max-width: 390px;
    font-size: clamp(44px, 13.2vw, 58px);
    line-height: 0.98;
  }

  .home-page .hero-lead {
    max-width: 390px;
    margin-top: 22px;
    font-size: 15px;
    line-height: 1.5;
  }

  .home-page .hero-actions {
    display: grid;
    justify-items: start;
    gap: 12px;
    margin-top: 28px;
  }

  .home-page .hero .button.primary {
    width: auto;
    min-width: 210px;
  }

  .home-page .hero-projects-link {
    padding: 0 2px;
  }

  .home-page .hero-video-toggle {
    right: 16px;
    bottom: max(18px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 380px) {
  .home-page .site-header {
    width: 100%;
    max-width: 100vw;
    grid-template-columns: 106px minmax(0, 1fr) auto;
    gap: 7px;
    padding-inline: 12px;
  }
}

@media (max-height: 720px) and (min-width: 621px) {
  .home-page .hero-inner {
    padding-top: 116px;
    padding-bottom: 48px;
  }

  .home-page .hero h1 {
    font-size: clamp(54px, 6.3vw, 76px);
  }

  .home-page .hero-lead {
    margin-top: 22px;
  }

  .home-page .hero-actions {
    margin-top: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .hero-poster,
  .home-page .hero-eyebrow,
  .home-page .hero h1,
  .home-page .hero-lead,
  .home-page .hero-actions {
    animation: none;
  }

  .home-page .hero-video {
    display: none;
  }
}

.home-page .hero-actions {
  flex-wrap: nowrap;
  gap: 12px;
}

.home-page .hero-actions .button {
  min-width: 0;
  min-height: 52px;
  padding-inline: 18px;
  border-radius: 2px;
  font-size: 12px;
  white-space: nowrap;
}

.home-page .hero .button.secondary {
  background: rgba(9, 20, 27, 0.34);
  border-color: rgba(255, 255, 255, 0.42);
  transition:
    color 240ms ease,
    background-color 240ms ease,
    border-color 240ms ease,
    transform 240ms ease;
}

.home-page .hero .button.secondary:hover {
  color: #162229;
  border-color: rgba(255, 255, 255, 0.76);
  background: #fbfaf6;
  transform: translateY(-1px);
}

@media (max-width: 780px) and (min-width: 621px) {
  .home-page .hero-actions {
    gap: 8px;
  }

  .home-page .hero-actions .button {
    padding-inline: 12px;
    font-size: 10px;
  }
}

@media (max-width: 620px) {
  .home-page .hero-actions {
    width: 100%;
  }

  .home-page .hero-actions .button,
  .home-page .hero .button.primary {
    width: 100%;
    min-width: 0;
  }
}
