/* Homepage finishing and responsive safeguards. */
#portfolio,
#model,
#talent {
  scroll-margin-top: 28px;
}

a {
  transition: color 0.2s ease, background-color 0.2s ease,
    border-color 0.2s ease, transform 0.2s ease;
}

header nav a:not(.nav-cta):hover,
footer nav a:hover,
.text-link:hover,
.company a:hover {
  color: var(--purple);
}

.nav-cta:hover {
  background: var(--purple);
  color: #fff !important;
}

.button {
  align-items: center;
  justify-content: center;
  min-height: 46px;
}

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

.primary:hover {
  background: #4d43dc;
}

.text-link {
  font-size: 13px;
  padding: 4px 0;
}

.brand:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(98, 87, 245, 0.32);
  outline-offset: 4px;
}

.hero h1,
.statement h2,
.section-intro h2,
.partner h2,
.closing h2 {
  text-wrap: balance;
}

.hero-bottom p {
  text-wrap: pretty;
}

.statement .shell {
  align-items: start;
  column-gap: 110px;
  grid-template-columns: 220px minmax(0, 1fr);
  row-gap: 30px;
}

.statement h2 {
  max-width: 900px;
}

.statement p {
  font-size: 18px;
  grid-column: 2;
  line-height: 1.75;
  margin: 0;
  max-width: 760px;
}

.company {
  transition: border-color 0.2s ease, transform 0.2s ease,
    box-shadow 0.2s ease;
}

.company-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.company:hover {
  border-color: #c9c5ff;
  box-shadow: 0 14px 34px rgba(23, 25, 34, 0.06);
  position: relative;
  transform: translateY(-2px);
  z-index: 1;
}

footer nav {
  flex-wrap: wrap;
  justify-content: center;
}

.menu-toggle {
  background: transparent;
  border: 0;
  cursor: pointer;
  display: none;
  height: 44px;
  padding: 10px;
  position: relative;
  width: 44px;
  z-index: 20;
}

.menu-toggle span {
  background: var(--ink);
  display: block;
  height: 2px;
  margin: 5px 0;
  transform-origin: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
  width: 24px;
}

.menu-toggle:focus-visible {
  outline: 3px solid rgba(98, 87, 245, 0.32);
  outline-offset: 2px;
}

@media (max-width: 850px) {
  header {
    position: relative;
  }

  .menu-toggle {
    display: block;
  }

  header nav {
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 18px 32px rgba(23, 25, 34, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0;
    left: calc((100vw - 100%) / -2);
    opacity: 0;
    padding: 18px max(20px, calc((100vw - 1180px) / 2));
    pointer-events: none;
    position: absolute;
    right: calc((100vw - 100%) / -2);
    top: 100%;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    visibility: hidden;
    z-index: 15;
  }

  header nav a:not(.nav-cta) {
    border-bottom: 1px solid var(--rule);
    display: block;
  }

  header nav a {
    font-size: 16px;
    padding: 16px 0;
  }

  header nav .nav-cta {
    margin-top: 16px;
    text-align: center;
  }

  header.menu-open nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
  }

  header.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  header.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  header.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  body.menu-open {
    overflow: hidden;
  }

  .hero {
    padding: 82px 0 78px;
  }

  .hero h1 {
    margin: 32px 0 44px;
  }

  .hero-bottom {
    gap: 32px;
  }

  .statement .shell {
    gap: 26px;
    grid-template-columns: 1fr;
  }

  .statement p {
    font-size: 17px;
    grid-column: 1;
  }

  footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 580px) {
  .shell {
    width: min(100% - 28px, 1180px);
  }

  header {
    height: 76px;
  }

  .brand {
    font-size: 18px;
  }

  .brand span {
    height: 31px;
    width: 31px;
  }

  .nav-cta {
    padding: 9px 14px;
  }

  .hero {
    padding: 60px 0 68px;
  }

  .hero h1 {
    font-size: clamp(44px, 14.2vw, 66px);
    letter-spacing: -0.07em;
    line-height: 0.94;
    margin: 28px 0 38px;
  }

  .hero-bottom {
    padding-top: 24px;
  }

  .hero-bottom p {
    font-size: 17px;
    line-height: 1.55;
  }

  .hero-bottom > div,
  .hero-bottom .button {
    width: 100%;
  }

  .statement,
  .partner,
  .closing {
    padding: 72px 0;
  }

  .statement .shell {
    gap: 30px;
  }

  .statement h2 br,
  .partner h2 br,
  .closing h2 br {
    display: none;
  }

  .section-intro {
    gap: 18px;
    margin-bottom: 34px;
  }

  .company:hover {
    transform: none;
  }

  .model-grid article,
  .talent-grid article {
    padding: 24px;
  }

  footer {
    padding: 38px 0;
  }

  footer nav {
    gap: 18px;
  }

  footer small {
    line-height: 1.5;
  }
}

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

  a,
  .company,
  .menu-toggle span,
  header nav {
    transition: none;
  }

  .button:hover,
  .company:hover {
    transform: none;
  }
}
