:root {
  --text-main: #181818;
  --text-soft: rgba(24, 24, 24, 0.62);
  --pill-bg: #141414;
  --pill-text: #f7f5ef;
  --hero-radius: 0;
  --content-width: 38rem;
  --section-height: 100svh;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f2f0eb;
  color: var(--text-main);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

.page-shell {
  padding: 0;
}

.hero {
  position: relative;
  min-height: var(--section-height);
  overflow: hidden;
  border-radius: var(--hero-radius);
  background-image: url("../images/hero.png");
  background-repeat: no-repeat;
  background-position: 50% 48%;
  background-size: cover;
  isolation: isolate;
}

.hero::after {
  content: none;
}

.hero__grid,
.hero__reveal,
.hero__mask-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__grid {
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
}

.hero__reveal {
  z-index: 1;
  background: url("../images/hero1.png") center center / cover no-repeat;
  opacity: 0;
  transition: opacity 220ms ease;
  mask-repeat: no-repeat;
  mask-position: 0 0;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: 0 0;
  -webkit-mask-size: 100% 100%;
}

.hero.is-interactive .hero__reveal {
  opacity: 1;
}

.hero__mask-canvas {
  display: none;
}

.hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: inherit;
  width: min(100%, var(--content-width));
  margin-left: clamp(2.5rem, 5.5vw, 5rem);
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
  z-index: 2;
}

.hero__content::before {
  content: none;
}

.hero__authority {
  position: absolute;
  right: clamp(1.5rem, 4vw, 3rem);
  top: 50%;
  display: grid;
  gap: 0.8rem;
  transform: translateY(-42%);
  z-index: 2;
}

.hero__authority-item {
  position: relative;
  padding-top: 0.7rem;
}

.hero__authority-item::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 2rem;
  height: 1px;
  background: rgba(24, 24, 24, 0.18);
  content: "";
}

.hero__authority-number,
.hero__authority-label {
  margin: 0;
}

.hero__authority-number {
  color: rgba(24, 24, 24, 0.84);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 0.88;
  letter-spacing: -0.06em;
  font-weight: 500;
}

.hero__authority-label {
  margin-top: 0.18rem;
  color: rgba(24, 24, 24, 0.46);
  font-size: 0.62rem;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero__eyebrow {
  margin: 0 0 1.1rem;
  color: var(--text-soft);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero__title {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(3rem, 4.1vw, 4.5rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
  font-weight: 500;
  text-wrap: balance;
}

.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.85rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.7rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: transform 180ms ease, opacity 180ms ease, background-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  padding: 0.55rem 1.2rem;
  background: var(--pill-bg);
  color: var(--pill-text);
  box-shadow: 0 10px 25px rgba(17, 17, 17, 0.16);
}

.button--ghost {
  padding: 0.55rem 0;
  color: rgba(24, 24, 24, 0.72);
}

.button__icon {
  width: 0.68rem;
  height: 0.68rem;
  border: 1.25px solid currentColor;
  border-radius: 50%;
  opacity: 0.6;
}

.hero__content,
.button {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 550ms ease,
    transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.is-ready .hero__content,
body.is-ready .button {
  opacity: 1;
  transform: translateY(0);
}

body.is-ready .button:nth-child(2) {
  transition-delay: 80ms;
}

@media (max-width: 900px) {
  :root {
    --content-width: 31rem;
  }

  .hero {
    background-position: 55% center;
  }

  .hero__reveal {
    background-position: 55% center;
  }

  .hero__authority {
    right: 1.25rem;
    gap: 0.65rem;
    transform: translateY(-40%);
  }
}

@media (max-width: 768px) {
  :root {
    --content-width: min(calc(100% - 1.5rem), 24rem);
  }

  .hero {
    min-height: 100svh;
    background-position: center center;
  }

  .hero__reveal {
    background-position: center center;
  }

  .hero::after {
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.34) 0%, rgba(0, 0, 0, 0.16) 42%, rgba(0, 0, 0, 0.32) 100%),
      radial-gradient(circle at 50% 46%, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.3) 78%);
    z-index: 1;
    content: "";
  }

  .hero__content {
    justify-content: flex-end;
    align-items: center;
    width: min(calc(100% - 1.5rem), 24rem);
    padding-top: 1.5rem;
    padding-bottom: 7.25rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    z-index: 3;
  }

  .hero__content::before {
    content: none;
  }

  .hero__eyebrow {
    margin-bottom: 0.85rem;
    max-width: none;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
  }

  .hero__title {
    max-width: 18rem;
    color: #ffffff;
    font-size: 2.45rem;
    line-height: 0.98;
    letter-spacing: 0;
    text-wrap: balance;
    text-shadow: 0 3px 24px rgba(0, 0, 0, 0.58);
  }

  .hero__actions {
    justify-content: center;
    margin-top: 1.35rem;
    gap: 0.8rem;
  }

  .button {
    min-height: 2.7rem;
    font-size: 0.88rem;
  }

  .button--ghost {
    color: rgba(255, 255, 255, 0.86);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.42);
  }

  .button__icon {
    opacity: 0.82;
  }

  .hero__authority {
    left: 1rem;
    right: 1rem;
    top: auto;
    bottom: 0.9rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    transform: none;
    z-index: 3;
  }

  .hero__authority-item {
    padding-top: 0.4rem;
    text-align: center;
  }

  .hero__authority-item::before {
    width: 1.25rem;
    left: 50%;
    background: rgba(255, 255, 255, 0.36);
    transform: translateX(-50%);
  }

  .hero__authority-number {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.12rem;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
  }

  .hero__authority-label {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.48rem;
    letter-spacing: 0.12em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.38);
  }

  .button--primary {
    padding-inline: 1rem;
  }
}

@media (max-width: 420px) {
  :root {
    --content-width: min(calc(100% - 1rem), 20rem);
  }

  .hero {
    background-position: center center;
  }

  .hero__reveal {
    background-position: center center;
  }

  .hero__content {
    width: min(calc(100% - 1rem), 20rem);
    padding-top: 1rem;
    padding-bottom: 6.65rem;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__eyebrow {
    font-size: 0.56rem;
  }

  .hero__title {
    max-width: 18rem;
    font-size: 2rem;
    line-height: 1;
  }

  .hero__actions {
    margin-top: 1rem;
    gap: 0.65rem;
  }

  .button {
    min-height: 2.55rem;
    font-size: 0.84rem;
  }

  .hero__authority {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.7rem;
    gap: 0.5rem;
  }

  .hero__authority-number {
    font-size: 1rem;
  }

  .hero__authority-label {
    font-size: 0.44rem;
  }
}

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

  .hero__reveal {
    transition: none;
  }

  .hero__content,
  .button {
    transition: none;
    opacity: 1;
    transform: none;
  }
}
