.hero {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  color: var(--text-main);
}

.hero__container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-height-desktop) + env(safe-area-inset-top, 0px) + 40px) var(--site-gutter) 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__content {
  width: 100%;
  max-width: 900px;
  text-align: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 auto 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.hero__eyebrow-brace {
  flex: none;
}

.hero__eyebrow-label {
  white-space: nowrap;
}

.hero__title {
  width: 100%;
  margin: 0 auto 20px;
  font-size: clamp(48px, 4vw, 72px);
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: -0.055em;
  color: var(--text-main);
}

.hero__title span {
  display: block;
  white-space: nowrap;
}

.hero__desc {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(18px, 1.2vw, 22px);
  line-height: 1.55;
  color: var(--text-muted);
}

.hero__desc span {
  display: block;
}

.hero__desc span + span {
  margin-top: 4px;
}

/* Desktop hero: USP only. CTA lives in the header / mobile hero. */
.hero__button {
  display: none;
}

.hero__button-tg {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero__desert {
  display: none;
}

.hero__desert-socials {
  display: none;
}

.hero__bottom {
  position: absolute;
  left: var(--site-gutter);
  right: var(--site-gutter);
  bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero__socials {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__social,
.hero__status {
  height: 38px;
  border: 1px solid var(--divider-strong);
  border-radius: var(--radius-md);
  background: var(--bg-card);
}

.hero__social {
  width: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: opacity .2s ease;
}

.hero__social:hover {
  opacity: .65;
}

.hero__social svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero__status {
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
}

.hero__status-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-soft);
}

.hero__status-time {
  font-variant-numeric: tabular-nums;
}

/* Falling stack cubes sit under the content; the container lets clicks through to them. */

.hero__container {
  z-index: 1;
  pointer-events: none;
}

.hero__title,
.hero__desc,
.hero__button,
.hero__bottom {
  pointer-events: auto;
}

.hero__cubes {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__cube {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--divider);
  border-radius: 22%;
  background: var(--bg-card);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.05);
  color: var(--cube-color, var(--text-main));
  pointer-events: auto;
  cursor: grab;
  user-select: none;
  will-change: transform;
  transition: border-color .25s ease;
}

.hero__cube svg {
  width: 44%;
  height: 44%;
  fill: currentColor;
}

.hero__cube:hover,
.hero__cube.is-dragging {
  border-color: var(--divider-strong);
}

.hero__cube.is-dragging {
  cursor: grabbing;
}

html[data-theme="dark"] .hero__cube {
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

html.is-ready .hero__eyebrow,
html.is-ready .hero__title span,
html.is-ready .hero__desc,
html.is-ready .hero__button,
html.is-ready .hero__bottom > * {
  animation: fade-up .7s var(--ease-out) backwards;
}

html.is-ready .hero__title span { animation-delay: .06s; }
html.is-ready .hero__title span:nth-child(2) { animation-delay: .12s; }
html.is-ready .hero__desc { animation-delay: .18s; }
html.is-ready .hero__button { animation-delay: .24s; }
html.is-ready .hero__bottom > * { animation-delay: .3s; }

@media (min-width: 1920px) {
  .hero__content {
    max-width: 980px;
  }

  .hero__title {
    font-size: clamp(64px, 4vw, 88px);
  }

  .hero__desc {
    max-width: 820px;
    font-size: clamp(20px, 1.1vw, 24px);
  }
}

@media (max-width: 1359px) {
  .hero__container {
    padding: calc(var(--header-height-tablet) + env(safe-area-inset-top, 0px) + 32px) var(--site-gutter-tablet) 96px;
  }

  .hero__title {
    font-size: clamp(38px, 5vw, 52px);
  }

  .hero__desc {
    max-width: 720px;
    font-size: clamp(15px, 2vw, 18px);
  }

  .hero__bottom {
    left: var(--site-gutter-tablet);
    right: var(--site-gutter-tablet);
  }
}

@media (max-width: 767px) {
  /*
    Mobile split screen: USP on page bg (top), dune mountain photo (bottom).
    No overlap — text stays fully readable above the image.
    Light → graphite sand. Dark → white sand.
  */
  .hero__cubes {
    display: none !important;
  }

  .hero {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    overflow: hidden;
    background: var(--bg-page);
  }

  .hero__desert {
    position: relative;
    z-index: 0;
    display: block;
    flex: 1 1 auto;
    width: 100%;
    min-height: 50%;
    margin: 0;
    overflow: hidden;
    background: var(--bg-page);
  }

  .hero__desert-media {
    position: absolute;
    inset: 0;
  }

  .hero__desert-img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 45%;
  }

  .hero__desert-img--white {
    display: none;
  }

  html[data-theme="dark"] .hero__desert-img--graphite {
    display: none;
  }

  html[data-theme="dark"] .hero__desert-img--white {
    display: block;
  }

  .hero__desert-socials {
    position: absolute;
    left: var(--site-gutter-mobile);
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  /* Same chip style as desktop hero — theme tokens keep contrast on both sands */
  .hero__desert-socials .hero__social {
    width: 40px;
    height: 40px;
    border: 1px solid var(--divider-strong);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    color: var(--text-main);
  }

  .hero__desert-socials .hero__social:hover {
    opacity: .75;
  }

  .hero__desert-socials .hero__social svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
  }

  .hero__container {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    width: 100%;
    min-height: 0;
    /* USP lower under the header, still above the dune */
    padding:
      calc(var(--header-height-mobile) + env(safe-area-inset-top, 0px) + 56px)
      var(--site-gutter-mobile)
      24px;
    align-items: flex-start;
    justify-content: flex-start;
    pointer-events: auto;
    background: var(--bg-page);
  }

  .hero__content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    text-align: left;
  }

  .hero__eyebrow {
    justify-content: flex-start;
    margin: 0 0 12px;
    font-size: 12px;
  }

  .hero__title {
    margin: 0 0 14px;
    max-width: none;
    font-size: clamp(36px, 4vw, var(--fs-page-title));
    line-height: 1.05;
    letter-spacing: -0.045em;
    font-weight: 600;
    text-wrap: balance;
  }

  .hero__title span {
    display: inline;
    white-space: normal;
  }

  .hero__title span + span::before {
    content: " ";
  }

  .hero__desc {
    max-width: 36em;
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    text-wrap: pretty;
  }

  .hero__desc span {
    display: inline;
  }

  .hero__desc span + span::before {
    content: " ";
  }

  .hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 22px;
    min-height: 48px;
    padding: 0 18px 0 20px;
    border: 1px solid var(--header-cta-border);
    border-radius: var(--radius-md);
    background: var(--header-cta-bg);
    background-origin: border-box;
    box-shadow: var(--green-button-shadow);
    color: var(--header-cta-text);
    font-size: 15.5px;
    font-weight: 500;
    gap: 8px;
    text-decoration: none;
    letter-spacing: var(--letter-button);
    transition:
      background var(--motion-fast),
      border-color var(--motion-fast),
      opacity var(--motion-fast);
  }

  .hero__button:visited,
  .hero__button:hover,
  .hero__button:focus {
    color: var(--header-cta-text);
    text-decoration: none;
  }

  .hero__button:hover {
    background: var(--header-cta-bg-hover);
    border-color: var(--header-cta-border-hover);
  }

  .hero__bottom {
    display: none;
  }
}

@media (max-width: 390px) {
  .hero__container {
    padding-top: calc(var(--header-height-mobile) + env(safe-area-inset-top, 0px) + 44px);
    padding-left: var(--site-gutter-mobile-sm);
    padding-right: var(--site-gutter-mobile-sm);
  }

  .hero__desert-socials {
    left: var(--site-gutter-mobile-sm);
  }

  .hero__title {
    font-size: var(--fs-page-title);
  }

  .hero__desc {
    font-size: 14.5px;
  }

  .hero__button {
    font-size: 15px;
  }
}

@media (max-width: 360px) {
  .hero__desc {
    font-size: 14px;
  }
}
