/* Shared Inferel navigation and footer, based on the current Figma exports. */
:root {
  --shell-bg: #020000;
  --shell-text: #ffffff;
  --shell-muted: #747474;
  --shell-line: #272727;
  --shell-nav-hover: rgba(255, 255, 255, 0.8);
  --shell-gradient: linear-gradient(90deg, #8b69b5 0%, #c09edb 50%, #f2cfff 100%);
}

html,
body {
  font-family: "Outfit", sans-serif;
}

body.shell-menu-open {
  overflow: hidden;
}

/* Keep action labels consistent across page-specific button styles. */
a:is(.btn, .btn0, .button, .dedicated-button, .about-button, .article-cta__button, .cta-btn, .global-header__action),
button:is(.filter, .tab, .submit, .submit-button, .add-row, .submission-close),
button[role="tab"],
button[type="submit"],
.close-card h3,
.analytics-consent button,
.analytics-settings {
  text-transform: uppercase !important;
}

/* Legacy page headers are replaced by site-shell.js. Keep their space until
   replacement so visitors never see different logo and button sizes flash. */
header.site-header,
header.topbar {
  visibility: hidden;
}

.global-header,
.global-header *,
.global-footer,
.global-footer * {
  box-sizing: border-box;
}

.global-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: 69px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(0, 0, 0, 0.82);
  color: var(--shell-text);
  font-family: "Outfit", sans-serif;
  font-size: 14px;
  line-height: 1;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.global-header__inner {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 1440px;
  height: 69px;
  margin: 0 auto;
  padding: 15px 20px;
  align-items: center;
  justify-content: space-between;
}

.global-header__brand {
  display: inline-flex;
  width: 101px;
  height: 35px;
  flex: 0 0 auto;
  align-items: center;
  color: #fff;
  text-decoration: none;
}

.global-header__brand-logo {
  display: block;
  width: 101px;
  height: 35px;
  flex: 0 0 101px;
  object-fit: contain;
}

.global-nav {
  position: absolute;
  top: 0;
  left: 50%;
  display: flex;
  height: 69px;
  align-items: center;
  gap: 34px;
  transform: translateX(-50%);
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
}

.global-nav a,
.global-nav button,
.global-header__actions a {
  color: #fff;
  font: inherit;
  text-decoration: none;
}

.global-nav > a,
.global-nav__trigger {
  display: inline-flex;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  align-items: center;
  white-space: nowrap;
  transition: color 0.18s ease;
}

.global-nav a[aria-current="page"] {
  color: #fff;
}

.global-nav > a:hover,
.global-nav > a:focus-visible,
.global-nav__trigger:hover,
.global-nav__trigger:focus-visible {
  color: var(--shell-nav-hover);
}

.global-nav__trigger::after {
  width: 7px;
  height: 7px;
  margin: -4px 0 0 8px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  content: "";
  transform: rotate(45deg);
  transition: transform 0.18s ease, margin 0.18s ease;
}

.global-nav__item {
  position: relative;
  display: flex;
  height: 69px;
  align-items: center;
}

.global-nav__item.is-open .global-nav__trigger::after,
.global-nav__item:hover .global-nav__trigger::after,
.global-nav__item:focus-within .global-nav__trigger::after {
  margin-top: 4px;
  transform: rotate(225deg);
}

.global-nav__submenu {
  position: absolute;
  top: 57px;
  left: 50%;
  z-index: 10;
  width: max-content;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #000;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.56);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -7px);
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
}

.global-nav__submenu::before {
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 14px;
  content: "";
}

.global-nav__item:hover .global-nav__submenu,
.global-nav__item:focus-within .global-nav__submenu,
.global-nav__item.is-open .global-nav__submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.global-nav__submenu-image {
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  user-select: none;
  pointer-events: none;
}

.global-nav__submenu-links {
  position: absolute;
  inset: 0;
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.global-nav__submenu-links a {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 7px;
  color: transparent;
  font-size: 0;
}

.global-nav__submenu-links a:hover,
.global-nav__submenu-links a:focus-visible {
  outline: 0;
  background: rgba(255, 255, 255, 0.08);
}

.global-nav__submenu--products,
.global-nav__submenu--company {
  min-width: 178px;
  border: 1px solid #2c2c2c;
}

.global-nav__submenu--products .global-nav__submenu-links,
.global-nav__submenu--company .global-nav__submenu-links {
  position: static;
  grid-template-rows: repeat(3, 31px);
  padding: 12px 3px;
}

.global-nav__submenu--products .global-nav__submenu-links a,
.global-nav__submenu--company .global-nav__submenu-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
}

.global-nav__submenu--products .global-nav__submenu-links a:hover,
.global-nav__submenu--products .global-nav__submenu-links a:focus-visible,
.global-nav__submenu--company .global-nav__submenu-links a:hover,
.global-nav__submenu--company .global-nav__submenu-links a:focus-visible {
  color: var(--shell-nav-hover);
}

.global-nav__submenu-icon {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.global-nav__submenu--models .global-nav__submenu-links {
  grid-template-rows: 45px repeat(4, 35px);
  padding: 3px;
}

.global-header__actions {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: 10px;
}

.global-header__action {
  display: inline-flex;
  height: 38px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 3px;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.global-header__actions .global-header__action {
  font: 500 14px/1 "Outfit", sans-serif;
}


.global-header__action--studio {
  min-width: 99px;
  border: 0;
  background: var(--shell-gradient);
  color: #000 !important;
}

.global-header__action--start {
  min-width: 132px;
  border-color: #fff;
  background: transparent;
}

.global-header__action:hover,
.global-header__action:focus-visible {
  border-color: #fff;
  outline: 0;
  background: #fff;
  color: #000 !important;
}

.global-header__menu-button {
  display: none;
  width: 42px;
  height: 38px;
  padding: 0;
  border: 1px solid #555;
  border-radius: 3px;
  background: transparent;
  color: #fff;
  font-size: 0;
}

.global-header__menu-button::before,
.global-header__menu-button::after,
.global-header__menu-button span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: #fff;
  content: "";
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.global-header__menu-button[aria-expanded="true"]::before {
  transform: translateY(6px) rotate(45deg);
}

.global-header__menu-button[aria-expanded="true"] span {
  opacity: 0;
}

.global-header__menu-button[aria-expanded="true"]::after {
  transform: translateY(-6px) rotate(-45deg);
}

.global-footer {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 567px;
  margin: 0;
  padding: 54px 20px 0;
  overflow: hidden;
  border: 0;
  background: var(--shell-bg);
  color: var(--shell-text);
  font-family: "Outfit", sans-serif;
}

.global-footer__inner {
  position: relative;
  width: min(100%, 1228px);
  min-height: 513px;
  margin: 0 auto;
}

.global-footer__top {
  display: grid;
  grid-template-columns: 300px repeat(4, 140px);
  gap: 80px;
  min-height: 249px;
}

.global-footer__identity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.global-footer__brand-art {
  display: flex;
  width: 146px;
  min-height: 95px;
  flex-direction: column;
  align-items: flex-start;
}

.global-footer__logo {
  display: block;
  width: 146px;
  height: auto;
  aspect-ratio: 101 / 35;
  object-fit: contain;
  object-position: left center;
}

.global-footer__brand-lockup {
  display: flex;
  height: 44px;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.global-footer__brand-mark {
  display: block;
  width: 24px;
  height: 38px;
  flex: 0 0 24px;
}

.global-footer__brand-name {
  font-size: 31px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.65px;
}

.global-footer__social-strip {
  display: flex;
  width: max-content;
  height: 32px;
  margin-top: 26px;
  overflow: visible;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
}

.global-footer__social-strip a {
  display: block;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
}

.global-footer__social-strip a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  border-radius: 50%;
}

.global-footer__social-strip img {
  display: block;
  width: 32px;
  height: 32px;
  max-width: none;
  flex: 0 0 32px;
  object-fit: contain;
}

.global-footer__address {
  margin-top: 42px;
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.32;
}

.global-footer__address p {
  margin: 0 0 14px;
}

.global-footer__column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.global-footer__column h2 {
  margin: 4px 0 28px;
  color: var(--shell-muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
}

.global-footer__column a {
  margin-bottom: 9px;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.15;
  text-decoration: none;
  transition: color 0.18s ease;
}

.global-footer__column a:hover,
.global-footer__column a:focus-visible {
  color: var(--shell-nav-hover);
}

.global-footer__meta {
  position: relative;
  display: flex;
  min-height: 68px;
  padding-top: 14px;
  border-top: 1px solid var(--shell-line);
  align-items: flex-start;
  justify-content: space-between;
}

.global-footer__copyright {
  padding-top: 14px;
  color: #a9a9a9;
  font-size: 12px;
}

.global-footer__certifications {
  position: absolute;
  top: 6px;
  right: 28px;
  display: block;
  width: 243px;
  height: 79px;
  opacity: 1;
}

.global-footer__wordmark {
  display: block;
  width: min(661px, 100%);
  height: auto;
  margin: -2px auto 0;
  pointer-events: none;
  user-select: none;
}

.global-header a:focus-visible,
.global-header button:focus-visible,
.global-footer a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 1219px) {
  .global-footer__top {
    grid-template-columns: 250px repeat(4, minmax(100px, 1fr));
    gap: 34px;
  }
}

@media (max-width: 1024px) {
  .global-header__inner {
    padding-right: 18px;
    padding-left: 18px;
  }

  .global-nav {
    position: absolute;
    top: 69px;
    right: 0;
    left: 0;
    display: none;
    width: 100%;
    height: calc(100vh - 69px);
    height: calc(100dvh - 69px);
    padding: 24px 20px 40px;
    overflow-y: auto;
    background: #050505;
    align-items: stretch;
    flex-direction: column;
    gap: 2px;
    transform: none;
  }

  .global-nav.is-open {
    display: flex;
  }

  .global-nav > a,
  .global-nav__trigger {
    width: 100%;
    height: 48px;
    justify-content: space-between;
    font-size: 16px;
  }

  .global-nav__item {
    display: block;
    width: 100%;
    height: auto;
  }

  .global-nav__submenu,
  .global-nav__submenu--models {
    position: relative;
    top: auto;
    left: auto;
    display: none;
    width: max-content;
    max-width: 100%;
    margin: 4px 0 12px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .global-nav__item.is-open .global-nav__submenu {
    display: block;
  }

  .global-nav__item:hover .global-nav__submenu,
  .global-nav__item:focus-within .global-nav__submenu,
  .global-nav__item.is-open .global-nav__submenu {
    transform: none;
  }

  .global-nav__item:hover .global-nav__submenu:not(:focus-within) {
    display: none;
  }

  .global-nav__item.is-open:hover .global-nav__submenu {
    display: block;
  }

  .global-header__menu-button {
    display: block;
    margin-left: 10px;
    flex: 0 0 42px;
  }

  .global-footer {
    min-height: 0;
    padding: 48px 24px 30px;
  }

  .global-footer__inner {
    min-height: 0;
  }

  .global-footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 42px 48px;
  }

  .global-footer__identity {
    grid-column: 1 / -1;
  }

  .global-footer__address {
    margin-top: 28px;
  }

  .global-footer__meta {
    margin-top: 44px;
  }

  .global-footer__wordmark {
    margin-top: 28px;
  }
}

@media (max-width: 600px) {
  .global-header__action--studio {
    display: none;
  }

  .global-header__action--start {
    min-width: 114px;
    padding: 0 13px;
  }

  .global-footer {
    padding: 42px 20px 28px;
  }

  .global-footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 22px;
  }

  .global-footer__column h2 {
    margin-bottom: 20px;
  }

  .global-footer__column a {
    font-size: 13px;
  }

  .global-footer__meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }

  .global-footer__certifications {
    position: static;
    width: 210px;
    max-width: 100%;
    height: auto;
  }

  .global-footer__wordmark {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .global-header *,
  .global-footer * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
