/* Approved Cloudline hero: the star, cloudscape and small wolf plush stay unchanged. */
.siteHeader {
  position: fixed;
  inset: 0 0 auto;
  min-height: 88px;
  padding: 0 clamp(24px, 3.4vw, 64px);
  border: 0;
  background: transparent;
  backdrop-filter: none;
  transition: background-color 180ms ease, box-shadow 180ms ease;
}

.siteHeader.is-scrolled {
  background: rgba(7, 13, 23, 0.94);
  box-shadow: 0 1px 0 rgba(212, 216, 222, 0.08);
  backdrop-filter: blur(16px);
}

.siteHeader__brand {
  gap: 0;
  color: #e6dbc7;
  font-family: Baskerville, "Times New Roman", serif;
  font-size: clamp(23px, 1.7vw, 28px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.siteHeader__brand::before {
  display: none;
}

.siteHeader__nav {
  gap: clamp(14px, 2vw, 32px);
  color: #d2c9b9;
  font-size: clamp(14px, 1.2vw, 18px);
}

.siteHeader__nav a {
  min-height: 44px;
  padding: 0 4px;
}

.hero {
  --hero-anchor-x: 50%;
  min-height: 100svh;
  color: #e6dbc7;
  background: #0a1622 url("../assets/img/cloudline-hero-wolf-v4.jpg") var(--hero-anchor-x) center / cover no-repeat;
  scroll-margin-top: 0;
}

.hero__parallax {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__layer {
  position: absolute;
  top: 50%;
  left: var(--hero-anchor-x);
  width: var(--camera-width);
  height: var(--camera-height);
  max-width: none;
  transform: translate3d(calc(var(--camera-x, 0px) * var(--layer-depth) - var(--hero-anchor-x)), -50%, 0);
}

.hero__layer--sky { --layer-depth: 0.22; }
.hero__layer--clouds { --layer-depth: 0.56; }
.hero__layer--ridge { --layer-depth: 1; }

.hero::before,
.hero__content::before {
  display: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: clamp(96px, 12svh, 144px);
  background: linear-gradient(to bottom, transparent, var(--page-night));
  pointer-events: none;
}

.hero__inner {
  display: flex;
  align-items: center;
  width: auto;
  min-height: 100svh;
  margin: 0;
  padding: 136px 8.6vw 112px;
}

.hero__content {
  max-width: min(800px, 66vw);
  transform: translateY(1.3vh);
}

.hero .eyebrow {
  margin: 0;
  color: #bd9e78;
  font-size: clamp(14px, 1.32vw, 21px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-shadow: none;
}

.hero h1 {
  color: #e6dbc7;
  font-family: Baskerville, "Times New Roman", serif;
  font-size: clamp(68px, 7.35vw, 120px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: none;
}

.hero__summary {
  width: max-content;
  max-width: 100%;
  margin: 24px 0 0;
  color: #c5c4c1;
  font-size: clamp(15px, 1.25vw, 20px);
  font-weight: 400;
  line-height: 1.95;
  letter-spacing: 0.015em;
  overflow-wrap: normal;
  word-break: normal;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.hero__scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  z-index: 3;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  transform: translateX(-50%);
  opacity: 0.8;
  transition: opacity 160ms ease;
}

.hero__scroll img {
  filter: invert(81%) sepia(13%) saturate(582%) hue-rotate(355deg) brightness(87%) contrast(88%);
}

.hero__scroll:hover {
  opacity: 1;
}

.siteHeader a:focus-visible,
.hero__scroll:focus-visible {
  outline: 2px solid #dac792;
  outline-offset: 6px;
  border-radius: 2px;
}

#apps,
#inspiration,
#contact {
  scroll-margin-top: 88px;
}

@media (min-aspect-ratio: 2/1) {
  .hero {
    min-height: max(660px, 100svh);
  }

  .hero__inner {
    min-height: max(660px, 100svh);
  }
}

@media (max-width: 760px), (max-width: 1020px) and (orientation: portrait) {
  .siteHeader {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    min-height: 76px;
    padding: 0 24px;
  }

  .siteHeader__brand {
    font-size: 23px;
  }

  .siteHeader__nav {
    width: auto;
    gap: 14px;
    overflow: visible;
    padding: 0;
    font-size: 13px;
  }

  .siteHeader__nav a {
    padding: 0;
  }

  .hero {
    --hero-anchor-x: 65%;
    min-height: max(760px, 100svh);
  }

  .hero__inner {
    align-items: flex-start;
    min-height: max(760px, 100svh);
    padding: max(270px, 35svh) 24px 115px;
  }

  .hero__content {
    max-width: 100%;
    transform: none;
  }

  .hero .eyebrow {
    margin-bottom: 10px;
    font-size: 13px;
    color: #cfb68e;
  }

  .hero h1 {
    font-size: clamp(52px, 12.5vw, 76px);
    line-height: 1.1;
  }

  .hero__summary {
    position: relative;
    isolation: isolate;
    width: auto;
    margin-top: 24px;
    font-size: 14px;
    line-height: 1.95;
    color: #dedbd5;
    text-shadow: 0 1px 8px #07101d;
  }

  .hero__summary::before {
    content: "";
    position: absolute;
    inset: -20px -26px;
    z-index: -1;
    background: radial-gradient(ellipse, rgb(7 16 29 / 68%) 33%, rgb(7 16 29 / 46%) 59%, transparent 90%);
    pointer-events: none;
  }

  #apps,
  #inspiration,
  #contact {
    scroll-margin-top: 76px;
  }
}

@media (max-width: 370px) {
  .siteHeader {
    gap: 10px;
    padding: 0 18px;
  }

  .siteHeader__brand {
    font-size: 21px;
  }

  .siteHeader__nav {
    gap: 10px;
    font-size: 12px;
  }

  .hero__inner {
    padding-right: 20px;
    padding-left: 20px;
  }

  .hero h1 {
    font-size: 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .siteHeader,
  .hero__scroll {
    transition: none;
  }
}
