:root {
  --hero-background: #122417;
  --hero-header: #102219;
  --hero-accent: #f4e5c8;
  --hero-ink: #142219;
}

:root[data-theme="night"] {
  --hero-background: #070f1b;
  --hero-header: #070b11;
  --hero-accent: #ddbd7c;
  --hero-ink: #111923;
}

header {
  background: var(--hero-header);
}

header .shell {
  max-width: 1580px;
}

.links {
  gap: clamp(10px, 1.6vw, 25px);
}

.theme-toggle {
  min-height: 42px;
  padding: 7px 13px;
  border: 1px solid #b2a68a;
  border-radius: 3px;
  background: transparent;
  color: var(--hero-accent);
  font-size: 13px;
  font-weight: 700;
}

.theme-toggle:hover {
  background: var(--hero-accent);
  color: var(--hero-ink);
}

.theme-toggle:focus-visible,
.hero-action:focus-visible {
  outline: 2px solid #fff2d2;
  outline-offset: 4px;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--hero-background);
}

.hero-scenes {
  position: absolute;
  z-index: -1;
  inset: 0;
}

.hero-scenes::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(8 20 13 / 76%), rgb(8 20 13 / 46%) 34%, transparent 63%);
  content: "";
}

[data-theme="night"] .hero-scenes::after {
  background: linear-gradient(90deg, rgb(4 8 16 / 82%), rgb(4 8 16 / 52%) 34%, transparent 66%);
}

.hero-scene {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.hero-night,
[data-theme="night"] .hero-day {
  display: none;
}

[data-theme="night"] .hero-night {
  display: block;
}

.hero-layout {
  display: grid;
  align-items: center;
  max-width: 1580px;
  width: 100%;
  min-height: clamp(525px, 54vw, 890px);
  padding-block: 75px;
}

.hero-content {
  color: #fff2d8;
  width: max-content;
  max-width: 60%;
}

.hero h1 {
  margin: 0;
  font-size: clamp(57px, 7.1vw, 122px);
  line-height: 1.03;
  text-wrap: balance;
  text-shadow: 0 3px 24px rgb(0 0 0 / 36%);
}

.hero-tagline {
  margin: 12px 0 0;
  font: 400 clamp(20px, 2.4vw, 33px)/1.25 var(--display);
}

.hero-action {
  margin-top: clamp(22px, 3vw, 34px);
  padding: 16px 25px;
  background: var(--hero-accent);
  color: var(--hero-ink);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}

[data-theme="night"] .ticker {
  background: #101c2c;
  border-color: #39495d;
}

#process {
  scroll-margin-top: 85px;
}

@media (min-width: 761px) and (max-width: 1150px) {
  .nav-actions > .btn {
    display: none;
  }

  header .shell {
    gap: 12px;
  }
}

@media (min-width: 761px) and (max-width: 1000px) {
  .links {
    display: none;
    position: absolute;
    inset: 85px 0 auto;
    padding: 24px 32px;
    background: var(--hero-header);
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
    gap: 20px 30px;
  }

  .links.open {
    display: flex;
  }

  .menu {
    display: block;
  }
}

@media (max-width: 760px) {
  .hero-layout {
    min-height: 0;
    padding-block: 42px 28px;
  }

  .hero-content {
    width: auto;
    max-width: none;
  }

  .hero h1 {
    font-size: clamp(48px, 9.5vw, 72px);
  }

  .hero-scenes {
    position: relative;
    aspect-ratio: 1.5;
    max-height: 410px;
  }

  .hero {
    display: flex;
    flex-direction: column-reverse;
  }

  .hero-scenes::after,
  [data-theme="night"] .hero-scenes::after {
    background: linear-gradient(180deg, var(--hero-background), transparent 20%);
  }

  .links.open {
    background: var(--hero-header);
  }
}

@media (max-width: 380px) {
  header .shell {
    gap: 8px;
    padding-inline: 12px;
  }

  .logo {
    gap: 6px;
  }

  .mark {
    width: 34px;
    height: 34px;
  }

  .wordmark {
    font-size: 16px;
  }

  .brand-under {
    letter-spacing: 1.3px;
  }

  .menu {
    padding-inline: 10px;
  }
}

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

  .hero-action {
    transition: none;
  }
}

.process .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 700px) { .process .steps { grid-template-columns: 1fr; } }
