* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  background: #000;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.hero-grid {
  --logo-shell-width: min(100%, 345.6vw, 5376px);
  --emil-left-ratio: 0.3013;
  --emil-word-ratio: 0.4413;
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-logo-shell {
  width: var(--logo-shell-width);
  max-width: 100%;
  margin-inline: auto;
}

.hero-logo-mask {
  position: relative;
  width: 100%;
  aspect-ratio: 1500 / 1150;
  --outline-opacity: 1;
  contain: layout paint;
  overflow: hidden;
  cursor: default;
  isolation: isolate;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: none) and (pointer: coarse) {
  .hero-logo-mask {
    touch-action: auto;
  }
}

.hero-logo-mask * {
  cursor: default;
}

.hero-logo-svg {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.hero-logo-svg image {
  image-rendering: auto;
}

.hero-logo-white {
  fill: #fff;
  opacity: 1;
  visibility: visible;
  transition: none;
}

.hero-logo-outline-white {
  opacity: var(--outline-opacity, 1);
  visibility: visible;
  transition: none;
}

.hero-logo-slideshow-wrap {
  opacity: 0;
  visibility: hidden;
  transition: none;
  pointer-events: none;
}

.hero-logo-slideshow-outline {
  transition: none;
}

.hero-logo-mask.is-active .hero-logo-slideshow-letters {
  opacity: 1;
  visibility: visible;
}

.hero-logo-mask.is-active .hero-logo-slideshow-outline {
  opacity: var(--outline-opacity, 1);
  visibility: visible;
}

.hero-logo-mask.is-active .hero-logo-white {
  opacity: 0;
  visibility: hidden;
}

.hero-logo-mask.is-active .hero-logo-outline-white {
  opacity: 0;
  visibility: hidden;
}

.slide-frame {
  opacity: 0;
  pointer-events: none;
}

.slide-frame.is-visible {
  opacity: 1;
}

.hero-copy {
  width: calc(var(--logo-shell-width) * var(--emil-word-ratio));
  max-width: calc(var(--logo-shell-width) * var(--emil-word-ratio));
  margin-inline: auto;
  margin-left: auto;
  margin-right: auto;
  align-self: center;
  transform: translateY(-50%);
}

.hero-copy-primary {
  margin-top: calc(2.25rem - 200px);
}

.hero-copy-secondary {
  margin-top: 2.25rem;
  overflow: visible;
}

.hero-copy-tertiary {
  margin-top: 1.5rem;
}

.hero-copy p {
  margin: 0;
  color: #fff;
  font-size: 1rem;
  line-height: 1.42;
  font-weight: 700;
  text-align: center;
}

.hero-copy a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.cred-line {
  display: block;
  width: var(--cred-line-base-width, max-content);
  max-width: none;
  margin-inline: auto;
  overflow: visible;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap !important;
  word-spacing: 0;
}

.cred-line.is-compact {
  width: min(100%, calc(100vw - 2rem));
  max-width: 100%;
  left: auto;
  transform: none;
  text-align: center;
  white-space: normal !important;
}

.cred-row {
  display: block;
  width: var(--cred-row-base-width, max-content);
  max-width: none;
  margin-inline: auto;
  overflow: visible;
  text-align: left;
  white-space: nowrap !important;
}

.cred-line.is-compact .cred-row {
  display: inline;
  width: auto !important;
  max-width: 100%;
  margin: 0;
  text-align: center;
  white-space: normal !important;
}

.cred-line.is-compact .cred-row.is-expanding {
  white-space: normal !important;
}

.cred-line.is-compact .cred-wrap,
.cred-line.is-compact .cred-trigger,
.cred-line.is-compact .cred-expand {
  display: inline;
  white-space: normal !important;
}

.cred-line.is-compact .cred-wrap.is-open .cred-expand {
  width: auto !important;
  max-width: none;
  overflow: visible;
  position: static;
  top: auto;
  transform: none !important;
}

.cred-line.is-compact .cred-row + .cred-row::before {
  content: " ";
}

.cred-row.is-expanding {
  white-space: nowrap !important;
}

.cred-wrap {
  display: inline-block;
  max-width: none;
  vertical-align: baseline;
  line-height: 1;
  white-space: nowrap !important;
}

.cred-trigger {
  display: inline;
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-decoration: underline;
  text-underline-offset: 0.14em;
  cursor: pointer;
  white-space: nowrap !important;
}

.cred-expand {
  display: inline-block;
  width: 0;
  max-width: none;
  overflow: visible;
  margin-left: 0;
  clip-path: inset(0 100% 0 0);
  -webkit-clip-path: inset(0 100% 0 0);
  transition:
    width 760ms cubic-bezier(0.19, 1, 0.22, 1),
    transform 760ms cubic-bezier(0.19, 1, 0.22, 1),
    clip-path 760ms cubic-bezier(0.19, 1, 0.22, 1),
    -webkit-clip-path 760ms cubic-bezier(0.19, 1, 0.22, 1);
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  font: inherit;
  white-space: nowrap !important;
  pointer-events: none;
  will-change: width, transform;
  backface-visibility: hidden;
  box-sizing: content-box;
  position: relative;
  top: 0;
  vertical-align: baseline;
  transform: translateX(-0.55ch);
}

.cred-wrap.is-open .cred-expand {
  width: var(--cred-expand-width, 0px);
  transform: translateX(0);
  clip-path: inset(0 -0.2em 0 0);
  -webkit-clip-path: inset(0 -0.2em 0 0);
}

@media (max-width: 960px) {
  .hero {
    min-height: 100svh;
    padding: 1rem;
    align-items: flex-start;
  }

  .hero-grid {
    --logo-shell-width: min(100%, 460.8vw, 5376px);
    justify-content: flex-start;
    padding-top: max(5vh, 1rem);
    padding-bottom: max(5vh, 1rem);
  }

  .hero-logo-shell {
    width: min(460.8vw, 5376px);
    margin-bottom: 1.5rem;
  }

  .hero-copy {
    width: min(86vw, calc(var(--logo-shell-width) * var(--emil-word-ratio)));
    max-width: min(86vw, calc(var(--logo-shell-width) * var(--emil-word-ratio)));
    align-self: center !important;
    margin: 0 auto;
    transform: none !important;
  }

  .hero-copy-primary {
    margin-top: 0 !important;
  }

  .hero-copy-secondary {
    margin-top: 1.25rem !important;
  }

  .hero-copy-tertiary {
    margin-top: 1.25rem !important;
  }

  .hero-copy p {
    font-size: 0.95rem;
    line-height: 1.38;
  }

  .cred-line {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    left: auto;
    transform: none;
    white-space: normal !important;
  }

  .cred-row {
    display: inline;
    width: auto !important;
    max-width: 100%;
    margin: 0;
    text-align: center;
    white-space: normal !important;
  }

  .cred-row + .cred-row::before {
    content: " ";
  }
}

/* iPhone/iPad Safari fallback: enforce mobile flow even in "Request Desktop Website" mode */
@media (hover: none) and (pointer: coarse) {
  .hero {
    min-height: 100svh;
    padding: 1rem;
    align-items: flex-start;
  }

  .hero-grid {
    --logo-shell-width: min(100%, 460.8vw, 5376px);
    justify-content: flex-start;
    padding-top: max(5vh, 1rem);
    padding-bottom: max(5vh, 1rem);
  }

  .hero-logo-shell {
    width: min(460.8vw, 5376px);
    margin-bottom: 1.5rem;
  }

  .hero-copy {
    width: min(86vw, calc(var(--logo-shell-width) * var(--emil-word-ratio)));
    max-width: min(86vw, calc(var(--logo-shell-width) * var(--emil-word-ratio)));
    align-self: center !important;
    margin: 0 auto;
    transform: none !important;
  }

  .hero-copy-primary {
    margin-top: 0 !important;
  }

  .hero-copy-secondary {
    margin-top: 1.25rem !important;
  }

  .hero-copy-tertiary {
    margin-top: 1.25rem !important;
  }

  .cred-line {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    left: auto;
    transform: none;
    white-space: normal !important;
  }

  .cred-row {
    display: inline;
    width: auto !important;
    max-width: 100%;
    margin: 0;
    text-align: center;
    white-space: normal !important;
  }

  .cred-row + .cred-row::before {
    content: " ";
  }
}

/* iPhone Safari-only tuning:
   - make logo/outline 50% visually larger
   - move copy stack higher on the page */
@media (hover: none) and (pointer: coarse) and (max-width: 480px) and (-webkit-touch-callout: none) {
  .hero-grid {
    padding-top: 0 !important;
    padding-bottom: 2vh !important;
  }

  .hero-logo-shell {
    width: 150% !important;
    max-width: 150% !important;
    margin-left: -25% !important;
    margin-right: -25% !important;
    transform: none !important;
    margin-bottom: clamp(0.25rem, 1.2vw, 0.6rem) !important;
  }

  .hero-copy-primary {
    margin-top: -42vh !important;
  }

  .hero-copy-secondary {
    margin-top: 0 !important;
  }

  .hero-copy-tertiary {
    margin-top: 1rem !important;
  }
}
