/* Layered hero built from Andrew's separated reference artwork. */
.hero-art {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 1983 / 793;
  background: url("../images/office.png") center / cover no-repeat;
}

.hero-layer {
  position: absolute;
  display: block;
  max-width: none;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.hero-etf {
  z-index: 1;
  top: 0;
  left: 36%;
  width: 64%;
}

.hero-woman {
  z-index: 2;
  top: 12%;
  right: max(18px, calc(50% - 680px));
  width: min(38vw, 510px);
}

.hero-title-layer {
  z-index: 3;
  top: 10%;
  left: max(-15px, calc(50% - 710px));
  width: min(44vw, 600px);
}

.hero-tag {
  position: absolute;
  z-index: 4;
  top: calc(10% + min(26vw, 352px) + 20px);
  left: max(8px, calc(50% - 690px));
  width: min(29vw, 430px);
  height: auto;
}

.hero-guide-mobile {
  display: none;
}

.mobile-menu-toggle,
.mobile-nav {
  display: none;
}

.back-to-top {
  display: none;
}

.hero-scroll-cue {
  display: none;
}

.hero-animate .hero-etf {
  animation: hero-etf-drop 1.05s cubic-bezier(.22, 1, .36, 1) .05s both;
}

.hero-animate .hero-woman {
  animation: hero-woman-rise 1.05s cubic-bezier(.22, 1, .36, 1) .27s both;
}

.hero-animate .hero-title-layer,
.hero-animate .hero-mobile-copy {
  animation: hero-title-enter .95s cubic-bezier(.22, 1, .36, 1) .49s both;
}

@keyframes hero-etf-drop {
  from { opacity: 0; transform: translate3d(0, -110px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes hero-woman-rise {
  from { opacity: 0; transform: translate3d(0, 110px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes hero-title-enter {
  from { opacity: 0; transform: translate3d(-100px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@media (max-width: 900px) {
  .hero-title-layer {
    display: none;
  }

  .hero-tag {
    position: relative;
    top: auto;
    left: auto;
    width: min(80%, 460px);
    margin: 0 auto 18px;
  }

  .hero-mobile-copy {
    position: relative;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
    padding: 23px 20px 25px;
    background: #fff;
    text-align: center;
  }

  .hero-mobile-copy .eyebrow {
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 14px;
  }

  .hero-mobile-copy h1 {
    margin: 0;
    font-size: clamp(29px, 5vw, 42px);
    line-height: 1.3;
    letter-spacing: -.05em;
  }

  .hero-mobile-copy strong {
    font-weight: 900;
  }
}

@media (max-width: 680px) {
  .header-inner {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
    transition: background .3s ease, border-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
  }

  .site-header.is-scrolled .header-inner {
    border-color: rgba(255, 255, 255, .72);
    background: rgba(255, 255, 255, .8);
    box-shadow: 0 12px 35px rgba(30, 34, 43, .09), 0 1px 4px rgba(30, 34, 43, .05);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .header-cta {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 79px;
    min-height: 40px;
    margin-left: auto;
    padding: 7px 12px;
    border: 1px solid #e7dedd;
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: background .22s ease, border-color .22s ease, color .22s ease, transform .22s ease;
  }

  .mobile-menu-toggle:active {
    transform: scale(.94);
  }

  .mobile-menu-toggle[aria-expanded="true"] {
    border-color: var(--red);
    background: #fff4f3;
    color: var(--red);
  }

  .menu-icon {
    display: grid;
    gap: 4px;
    width: 15px;
  }

  .menu-icon i {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .25s ease;
  }

  .mobile-menu-toggle[aria-expanded="true"] .menu-icon i:first-child {
    transform: translateY(3px) rotate(45deg);
  }

  .mobile-menu-toggle[aria-expanded="true"] .menu-icon i:last-child {
    transform: translateY(-3px) rotate(-45deg);
  }

  .mobile-nav {
    position: absolute;
    top: 76px;
    right: 10px;
    left: 10px;
    z-index: 31;
    padding: 8px 18px;
    border: 1px solid #e7e0da;
    border-radius: 20px;
    background: rgba(255, 253, 250, .98);
    box-shadow: 0 16px 36px rgba(30, 34, 43, .16);
    pointer-events: auto;
  }

  .mobile-nav:not([hidden]) {
    display: grid;
    transform-origin: top right;
    animation: mobile-nav-enter .3s cubic-bezier(.22, 1, .36, 1) both;
  }

  .mobile-nav.is-closing:not([hidden]) {
    animation: mobile-nav-exit .22s ease-in both;
  }

  .mobile-nav a {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 56px;
    border-bottom: 1px solid #eee8e3;
    font-size: 17px;
    font-weight: 800;
  }

  .mobile-nav a:last-child {
    border-bottom: 0;
  }

  .mobile-nav a span {
    color: var(--red);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
  }

  @keyframes mobile-nav-enter {
    from { opacity: 0; transform: translateY(-10px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }

  @keyframes mobile-nav-exit {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(-7px) scale(.98); }
  }

  body {
    padding-bottom: calc(82px + env(safe-area-inset-bottom));
  }

  .back-to-top:not([hidden]) {
    position: fixed;
    right: 16px;
    bottom: calc(94px + env(safe-area-inset-bottom));
    z-index: 28;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(200, 25, 32, .22);
    border-radius: 50%;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 8px 24px rgba(30, 34, 43, .16);
    color: var(--red);
    font-size: 27px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    animation: back-to-top-enter .25s ease-out both;
  }

  .back-to-top:active {
    transform: scale(.94);
  }

  @keyframes back-to-top-enter {
    from { opacity: 0; transform: translateY(9px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .hero-actions {
    position: fixed;
    z-index: 29;
    inset: auto 0 0;
    border-top: 1px solid #e7e0da;
    border-bottom: 0;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 -10px 28px rgba(30, 34, 43, .12);
    backdrop-filter: blur(14px);
  }

  .hero-actions-inner {
    width: calc(100% - 24px);
    min-height: 0;
    padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
  }

  .hero-action-buttons .button {
    min-height: 52px;
    font-size: 15px;
  }

  .hero-guide-desktop {
    display: none;
  }

  .hero-guide-mobile {
    display: inline-flex;
  }

  .toast {
    bottom: calc(96px + env(safe-area-inset-bottom));
  }

  .hero-art {
    height: calc(100vh - 150px);
    height: clamp(540px, calc(100svh - 150px), 760px);
    max-height: none;
    aspect-ratio: auto;
    background-image: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, .9) 13%, rgba(255, 255, 255, .72) 30%, rgba(255, 255, 255, 0) 48%), url("../images/office.png");
    background-size: 100% 100%, auto 100%;
    background-position: center, 59% center;
    background-repeat: no-repeat;
  }

  .hero-etf {
    top: 0%;
    left: -10%;
    width: 120%;
    rotate: none;
  }

  .hero-woman {
    top: auto;
    right: auto;
    bottom: -2%;
    left: 50%;
    width: min(74%, 340px);
    translate: -50% 0;
  }

  .hero-title-layer {
    display: block;
    top: 8%;
    left: 50%;
    width: min(88%, 420px);
    translate: -50% 0;
  }

  .hero-tag {
    position: absolute;
    top: auto;
    bottom: 48px;
    left: 50%;
    width: min(94vw, 420px);
    margin: 0;
    transform: translateX(-50%);
  }

  .hero-mobile-copy {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .hero-scroll-cue {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 52px;
    margin: 0;
    background: #fff;
    color: var(--red);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .06em;
  }
}

/* Reserve space for the mobile header and the model's face in short viewports. */
@media (max-width: 680px) and (max-height: 780px) {
  .hero-title-layer {
    top: 80px;
    width: min(70%, 285px);
  }

  .hero-woman {
    bottom: -10%;
    width: min(62%, 260px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-inner {
    transition: none;
  }

  .mobile-menu-toggle,
  .menu-icon i {
    transition: none;
  }

  .mobile-nav:not([hidden]),
  .mobile-nav.is-closing:not([hidden]) {
    animation: none;
  }

  .back-to-top:not([hidden]) {
    animation: none;
  }

  .hero-animate .hero-etf,
  .hero-animate .hero-woman,
  .hero-animate .hero-title-layer,
  .hero-animate .hero-mobile-copy {
    animation: none;
  }
}
