:root {
  color-scheme: dark;
  --ink: #f8fbff;
  --muted: #c7d1dc;
  --soft: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.24);
  --charcoal: #071015;
  --green: #12c684;
  --green-dark: #077e57;
  --gold: #f3be4e;
  --blue: #5db7ff;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--charcoal);
}

body {
  min-height: 100%;
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--charcoal);
  color: var(--ink);
  animation: page-fade 700ms ease-out both;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: center;
  padding: 104px 6vw 64px;
  isolation: isolate;
}

.hero__media,
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media {
  background-image: url("assets/wdg-hero.png");
  background-size: cover;
  background-position: center right;
  transform: scale(1.01);
  animation: hero-drift 18s ease-in-out infinite alternate;
}

.hero__shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 16, 21, 0.97) 0%, rgba(7, 16, 21, 0.82) 42%, rgba(7, 16, 21, 0.24) 100%),
    linear-gradient(180deg, rgba(7, 16, 21, 0.3) 0%, rgba(7, 16, 21, 0.92) 100%);
}

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 6vw;
  animation: slide-down 700ms 120ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.brand,
.topbar__links,
.actions,
.services {
  display: flex;
  align-items: center;
}

.brand {
  min-width: 0;
  gap: 0;
  font-weight: 800;
  transition:
    transform 220ms ease,
    filter 220ms ease;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 184px;
  height: 58px;
  overflow: hidden;
  border-radius: 8px;
  background: none;
}

.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px 8px;
}

.brand__name {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.topbar__links {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.topbar__links a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 15px;
  background: rgba(7, 16, 21, 0.38);
  color: #edf5ff;
  font-size: 0.9rem;
  font-weight: 700;
  backdrop-filter: blur(16px);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease,
    box-shadow 220ms ease;
}

.hero__content {
  width: min(720px, 100%);
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 18px;
  border-left: 4px solid var(--gold);
  padding-left: 14px;
  color: #ffe1a1;
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
  animation: rise-in 700ms 260ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

h1 {
  margin: 0;
  max-width: 13ch;
  color: #ffffff;
  font-size: clamp(3rem, 5.7vw, 5.4rem);
  line-height: 0.92;
  letter-spacing: 0;
  animation: rise-in 800ms 360ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.lede {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  line-height: 1.58;
  animation: rise-in 800ms 480ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.actions {
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
  animation: rise-in 800ms 600ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 20px;
  font-weight: 900;
  line-height: 1.1;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease;
}

.button span {
  min-width: 38px;
  min-height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  font-size: 0.72rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0;
}

.button--primary {
  background: var(--green);
  color: #03120d;
  box-shadow: 0 18px 46px rgba(18, 198, 132, 0.26);
}

.button--primary span {
  background: rgba(3, 18, 13, 0.12);
}

.button--ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  backdrop-filter: blur(16px);
}

.button--ghost span {
  background: rgba(255, 255, 255, 0.12);
  color: var(--gold);
}

.button:focus-visible,
.topbar__links a:focus-visible,
.brand:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.button:hover,
.topbar__links a:hover,
.brand:hover {
  transform: translateY(-2px);
}

.button--primary:hover {
  box-shadow: 0 22px 56px rgba(18, 198, 132, 0.34);
}

.button--ghost:hover,
.topbar__links a:hover {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.14);
}

.service-band {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(320px, 1.4fr);
  gap: 32px;
  align-items: center;
  padding: 34px 6vw 42px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: #f7faf8;
  color: #071015;
  animation: lift-band 800ms 760ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.service-band__intro p,
.service-band__intro strong {
  margin: 0;
}

.service-band__intro p {
  color: #477063;
  font-size: 0.94rem;
  font-weight: 800;
}

.service-band__intro strong {
  display: block;
  margin-top: 7px;
  font-size: 1.18rem;
  line-height: 1.35;
}

.services {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.services li {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(7, 16, 21, 0.12);
  border-radius: 8px;
  padding: 0 13px;
  background: #ffffff;
  color: #10211d;
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(19, 50, 42, 0.08);
  transition:
    transform 200ms ease,
    box-shadow 200ms ease,
    border-color 200ms ease;
}

.services li:hover {
  border-color: rgba(18, 198, 132, 0.45);
  box-shadow: 0 16px 34px rgba(19, 50, 42, 0.12);
  transform: translateY(-2px);
}

@media (max-width: 840px) {
  .hero {
    min-height: 86vh;
    padding: 124px 22px 54px;
  }

  .hero__media {
    background-position: 62% center;
  }

  .hero__shade {
    background:
      linear-gradient(90deg, rgba(7, 16, 21, 0.98) 0%, rgba(7, 16, 21, 0.78) 72%, rgba(7, 16, 21, 0.36) 100%),
      linear-gradient(180deg, rgba(7, 16, 21, 0.2) 0%, rgba(7, 16, 21, 0.96) 100%);
  }

  .topbar {
    align-items: flex-start;
    padding: 18px 22px;
  }

  .brand__name {
    white-space: normal;
  }

  .brand__mark {
    width: 174px;
    height: 52px;
  }

  .topbar__links a {
    min-height: 36px;
    padding: 0 10px;
    font-size: 0.82rem;
  }

  h1 {
    max-width: 12ch;
    font-size: clamp(2.75rem, 12vw, 4.75rem);
  }

  .service-band {
    grid-template-columns: 1fr;
    padding: 28px 22px 34px;
  }

  .services {
    justify-content: flex-start;
  }
}

@media (max-width: 540px) {
  .topbar {
    position: relative;
    margin: -106px -22px 34px;
    flex-direction: column;
    gap: 16px;
  }

  .topbar__links {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
    padding-top: 124px;
  }

  .actions,
  .button {
    width: 100%;
  }

  .button {
    padding-inline: 14px;
  }

  .lede {
    font-size: 1rem;
  }

  .services li {
    width: 100%;
  }
}

@keyframes page-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slide-down {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lift-band {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-drift {
  from {
    transform: scale(1.01) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.06) translate3d(-12px, -8px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
