/* ==========================================================================
   Front-page reference hero
   ========================================================================== */

:root {
  --hero-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

body:not(.has-light-page) {
  font-family: "Hanken Grotesk", system-ui, sans-serif;
}

body:not(.has-light-page) .site-header {
  top: 14px;
  right: 14px;
  left: 14px;
  grid-template-columns: 230px minmax(420px, 1fr) auto;
  gap: 18px;
  min-height: 64px;
  padding: 0 14px 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  color: #0b0b0a;
  background: rgba(248, 244, 240, 0.42);
  box-shadow:
    0 18px 50px -22px rgba(20, 20, 40, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  animation: navDrop 1000ms var(--hero-ease) 150ms both;
}

body:not(.has-light-page) .site-header.is-scrolled {
  top: 14px;
  right: 14px;
  left: 14px;
  padding: 0 14px 0 22px;
  border-radius: 999px;
  background: rgba(248, 244, 240, 0.48);
  box-shadow:
    0 18px 50px -22px rgba(20, 20, 40, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

body:not(.has-light-page) .brand {
  min-height: 44px;
  gap: 12px;
}

body:not(.has-light-page) .brand-mark {
  width: 34px;
  height: 34px;
  filter: none;
}

body:not(.has-light-page) .brand-wordmark,
body:not(.has-light-page) .site-header.is-scrolled .brand-wordmark {
  color: #0b0b0a;
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.14em;
}

body:not(.has-light-page) .primary-nav,
body:not(.has-light-page) .site-header.is-scrolled .primary-nav {
  justify-self: end;
  gap: 40px;
  margin-right: 28px;
  color: #0b0b0a;
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-shadow: none;
}

body:not(.has-light-page) .primary-nav a {
  min-height: 44px;
  opacity: 0.85;
}

body:not(.has-light-page) .primary-nav a::after {
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
}

body:not(.has-light-page) .nav-cta,
body:not(.has-light-page) .site-header.is-scrolled .nav-cta {
  min-height: 44px;
  gap: 14px;
  padding: 0 6px 0 22px;
  border: 0;
  border-radius: 999px;
  color: #0b0b0a;
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 6px 16px -6px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  transition:
    transform 240ms var(--hero-ease),
    background 240ms var(--hero-ease);
}

body:not(.has-light-page) .nav-cta:hover {
  background: rgba(255, 255, 255, 0.96);
  transform: translate3d(0, -1px, 0);
}

body:not(.has-light-page) .nav-cta span:last-child,
body:not(.has-light-page) .site-header.is-scrolled .nav-cta span:last-child {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #ffffff;
  background: #121212;
  transition: transform 260ms var(--hero-ease);
}

body:not(.has-light-page) .nav-cta:hover span:last-child {
  transform: rotate(45deg);
}

body:not(.has-light-page) .hero {
  width: 100%;
  height: 100dvh;
  min-height: 720px;
  aspect-ratio: auto;
  overflow: hidden;
  background: #f1d5bd;
}

body:not(.has-light-page) .hero-image {
  object-position: 62% center;
  filter: saturate(1.05) contrast(1.02);
  transform: scale(1.06);
  animation: homeBgIn 2200ms var(--hero-ease) both;
  will-change: transform;
}

body:not(.has-light-page) .hero-wash {
  background:
    linear-gradient(90deg, rgba(255, 226, 191, 0.12), rgba(255, 255, 255, 0) 44%, rgba(0, 89, 155, 0.02)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(19, 9, 3, 0.1) 100%);
}

body:not(.has-light-page) .hero-grain {
  display: none;
}

body:not(.has-light-page) .hero-copy {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: auto;
  padding-top: 2vh;
  padding-left: clamp(20px, 3.2vw, 56px);
  overflow: visible;
  pointer-events: none;
}

body:not(.has-light-page) .hero-copy .eyebrow,
body:not(.has-light-page) .hero-copy > p,
body:not(.has-light-page) .hero-actions {
  display: none;
}

body:not(.has-light-page) .hero-display {
  display: block;
  width: min(94vw, 1240px);
  margin: 0;
  overflow: visible;
  color: inherit;
  text-transform: none;
  opacity: 1;
  filter: drop-shadow(0 12px 30px rgba(12, 18, 48, 0.28));
  mix-blend-mode: normal;
  transform: none;
  user-select: none;
  animation: headlineIn 1200ms var(--hero-ease) 250ms both;
}

.headline-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.headline-line {
  font-family: "Hanken Grotesk", "Plus Jakarta Sans", system-ui, sans-serif;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

[data-headline-base] {
  fill-opacity: 0.98;
}

[data-headline-motion] {
  fill-opacity: 1;
}

.mobile-menu-visual {
  display: none;
}

body:not(.has-light-page) .quote-card {
  right: clamp(56px, 8vw, 106px);
  bottom: clamp(42px, 8vh, 72px);
  width: 220px;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 2px 18px rgba(2, 21, 42, 0.32);
}

body:not(.has-light-page) .quote-card p {
  font-family: "Inter Tight", "Plus Jakarta Sans", sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.22;
}

body:not(.has-light-page) .quote-card .stars {
  margin: 0 0 9px;
  font-size: 11px;
  letter-spacing: 0.24em;
}

body:not(.has-light-page) .quote-card cite {
  margin-top: 9px;
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

body.has-light-page .nav-cta,
body.has-light-page .site-header.is-scrolled .nav-cta {
  min-height: 44px;
  gap: 14px;
  padding: 0 6px 0 22px;
  border: 0;
  border-radius: 999px;
  color: #0b0b0a;
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 6px 16px -6px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  font-family: "Hanken Grotesk", "Inter Tight", system-ui, sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

body.has-light-page .nav-cta span:last-child,
body.has-light-page .site-header.is-scrolled .nav-cta span:last-child {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #ffffff;
  background: #121212;
}

.crunch-section,
.starter-section,
.monthly-pack-section {
  margin-top: clamp(44px, 6vw, 84px);
}

.crunch-section .work-intro-media {
  min-height: clamp(360px, 38vw, 560px);
}

.crunch-section .work-grid {
  margin-top: clamp(20px, 3vw, 36px);
}

.crunch-section .work-card {
  min-height: clamp(280px, 28vw, 360px);
}

.crunch-section .work-card.large {
  min-height: clamp(584px, 58vw, 734px);
}

.starter-section .section-lead {
  margin-top: 20px;
}

.starter-section .hero-actions {
  margin-top: 28px;
}

.monthly-pack-section .compact-offer-grid,
#pricing-path .starter-pricing-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#pricing-path .pricing-grid.preview {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#pricing-path .starter-pricing-grid .pricing-card {
  min-height: 380px;
  margin-top: 0;
}

.monthly-pack-section .pricing-card {
  min-height: 300px;
}

@keyframes navDrop {
  from {
    opacity: 0;
    transform: translate3d(0, -26px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes homeBgIn {
  from {
    opacity: 0.4;
    filter: saturate(0.6) brightness(0.85);
    transform: scale(1.16);
  }
  to {
    opacity: 1;
    filter: saturate(1.05) contrast(1.02);
    transform: scale(1.06);
  }
}

@keyframes headlineIn {
  from {
    opacity: 0;
    transform: translate3d(0, 26px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 960px) {
  body:not(.has-light-page) .site-header,
  body:not(.has-light-page) .site-header.is-scrolled {
    grid-template-columns: 1fr auto;
    right: 10px;
    left: 10px;
  }

  body:not(.has-light-page) .primary-nav {
    display: none;
  }

  body:not(.has-light-page) .hero {
    min-height: 100dvh;
  }

  body:not(.has-light-page) .hero-copy {
    top: 24vh;
    right: 18px;
    left: 18px;
    width: calc(100vw - 36px);
  }

  .monthly-pack-section .compact-offer-grid,
  #pricing-path .starter-pricing-grid,
  #pricing-path .pricing-grid.preview {
    grid-template-columns: 1fr;
  }

  #pricing-path .starter-pricing-grid .pricing-card,
  .monthly-pack-section .pricing-card {
    min-height: 0;
  }

  body:not(.has-light-page) .quote-card {
    right: 22px;
    bottom: 34px;
    width: 190px;
  }
}

@media (max-width: 640px) {
  body.has-mobile-funnel-bar:not(.has-light-page) {
    padding-bottom: 0;
  }

  body:not(.has-light-page) {
    width: 100%;
    overflow-x: clip;
  }

  body.has-light-page .site-header,
  body.has-light-page .site-header.is-scrolled {
    grid-template-columns: 1fr auto;
  }

  .mobile-funnel-bar {
    grid-template-columns: 1fr;
    right: auto;
    left: 18px;
    width: calc(100vw - 36px);
    max-width: calc(100vw - 36px);
    box-sizing: border-box;
    overflow: hidden;
  }

  .mobile-funnel-secondary {
    display: none !important;
  }

  body.has-light-page .primary-nav {
    display: none;
  }

  body.has-light-page .nav-cta,
  body.has-light-page .site-header.is-scrolled .nav-cta {
    width: 36px;
    min-height: 36px;
    padding: 0;
    justify-content: center;
  }

  body.has-light-page .nav-cta span:first-child {
    display: none;
  }

  body.has-light-page .nav-cta span:last-child,
  body.has-light-page .site-header.is-scrolled .nav-cta span:last-child {
    width: 32px;
    height: 32px;
  }

  body.has-light-page .page-mast .hero-actions {
    width: 100%;
    max-width: 100%;
  }

  body.has-light-page .page-mast .primary-button {
    width: min(100%, 320px);
  }

  body.has-light-page .page-mast .hero-actions .text-link {
    justify-self: start;
  }

  body:not(.has-light-page) .mobile-funnel-bar {
    display: none;
  }

  body:not(.has-light-page) .site-header,
  body:not(.has-light-page) .site-header.is-scrolled {
    position: fixed;
    z-index: 90;
    top: max(24px, env(safe-area-inset-top));
    right: 22px;
    left: 22px;
    display: flex;
    width: auto;
    min-height: 62px;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    box-sizing: border-box;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    animation: none;
    opacity: 1;
  }

  body:not(.has-light-page) .site-header::after {
    display: none;
  }

  body:not(.has-light-page) .brand {
    gap: 12px;
    min-height: 54px;
  }

  body:not(.has-light-page) .brand-mark {
    width: 44px;
    height: 44px;
  }

  body:not(.has-light-page) .brand-wordmark {
    color: rgba(255, 255, 255, 0.96);
    font-size: 14px;
    letter-spacing: 0.16em;
    line-height: 1.08;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.28);
  }

  body:not(.has-light-page) .nav-cta,
  body:not(.has-light-page) .site-header.is-scrolled .nav-cta {
    position: fixed;
    top: max(26px, calc(env(safe-area-inset-top) + 10px));
    right: 24px;
    z-index: 91;
    display: none;
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    background: rgba(24, 35, 56, 0.68);
    box-shadow:
      0 18px 42px rgba(0, 0, 0, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    margin-left: 0;
  }

  body:not(.has-light-page) .nav-cta span {
    display: none;
  }

  body:not(.has-light-page) .nav-cta::before {
    display: block;
    width: 26px;
    height: 2px;
    border-radius: 2px;
    content: "";
    background: #ffffff;
    box-shadow:
      0 -8px 0 #ffffff,
      0 8px 0 #ffffff;
  }

  body:not(.has-light-page) .mobile-menu-visual {
    position: fixed;
    top: max(26px, calc(env(safe-area-inset-top) + 10px));
    right: auto;
    left: clamp(232px, calc(100vw - 80px), 318px);
    z-index: 100;
    display: block;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    pointer-events: none;
    background:
      linear-gradient(#ffffff, #ffffff) center calc(50% - 8px) / 26px 2px no-repeat,
      linear-gradient(#ffffff, #ffffff) center / 26px 2px no-repeat,
      linear-gradient(#ffffff, #ffffff) center calc(50% + 8px) / 26px 2px no-repeat,
      rgba(24, 35, 56, 0.68);
    box-shadow:
      0 18px 42px rgba(0, 0, 0, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  body:not(.has-light-page) .hero {
    display: block;
    height: 100svh;
    min-height: 760px;
    padding: 0;
    overflow: hidden;
    background: #051225;
  }

  body:not(.has-light-page) .hero picture {
    position: absolute;
    inset: 0;
    height: 100%;
    min-height: 0;
    border-radius: 0;
  }

  body:not(.has-light-page) .hero-image {
    position: absolute;
    inset: 0;
    height: 100%;
    object-position: center center;
    border-radius: 0;
    transform: none;
    filter: saturate(1.08) contrast(1.04);
    animation: none;
    opacity: 1;
  }

  body:not(.has-light-page) .hero-wash {
    display: block;
    background:
      linear-gradient(180deg, rgba(1, 8, 22, 0.06) 0%, rgba(1, 8, 22, 0.1) 42%, rgba(1, 6, 18, 0.88) 100%),
      linear-gradient(90deg, rgba(255, 109, 42, 0.08), rgba(255, 255, 255, 0) 42%, rgba(0, 30, 82, 0.26));
  }

  body:not(.has-light-page) .hero-copy {
    position: absolute;
    top: auto;
    right: 24px;
    bottom: max(34px, env(safe-area-inset-bottom));
    left: 24px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    width: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    pointer-events: auto;
    animation: none;
    opacity: 1;
  }

  body:not(.has-light-page) .hero-display {
    order: 1;
    position: relative;
    z-index: 8;
    display: block !important;
    width: min(86vw, 370px);
    max-width: none;
    overflow: hidden;
    opacity: 1 !important;
    visibility: visible;
    filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.32));
    animation: none;
  }

  body:not(.has-light-page) .headline-svg {
    display: block !important;
    width: 100%;
    height: auto;
    min-height: 120px;
    overflow: hidden;
    visibility: visible;
  }

  body:not(.has-light-page) [data-headline-base],
  body:not(.has-light-page) [data-headline-motion] {
    fill-opacity: 1;
  }

  body:not(.has-light-page) .hero-copy > p {
    order: 2;
    display: block;
    max-width: 330px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.94);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.36;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.32);
  }

  body:not(.has-light-page) .hero-actions {
    order: 3;
    display: flex;
    margin-top: 26px;
    pointer-events: auto;
  }

  body:not(.has-light-page) .hero-actions .primary-button {
    width: min(86vw, 326px);
    min-height: 64px;
    justify-content: space-between;
    padding: 0 14px 0 28px;
    color: #121212;
    background: rgba(255, 255, 255, 0.94);
    box-shadow:
      0 16px 42px rgba(0, 0, 0, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.86);
    font-family: "Hanken Grotesk", system-ui, sans-serif;
    font-size: 13px;
    letter-spacing: 0.1em;
  }

  body:not(.has-light-page) .hero-actions .primary-button span {
    width: 42px;
    height: 42px;
    color: #ffffff;
    background: #121212;
  }

  body:not(.has-light-page) .hero-actions .text-link {
    display: none;
  }

  body:not(.has-light-page) .quote-card {
    display: none;
  }
}

@media (max-width: 640px) and (max-height: 880px) {
  body:not(.has-light-page) .hero-copy {
    bottom: max(18px, env(safe-area-inset-bottom));
  }

  body:not(.has-light-page) .hero-display {
    width: min(84vw, 360px);
  }

  body:not(.has-light-page) .hero-copy > p {
    max-width: 315px;
    margin-top: 12px;
    font-size: 18px;
    line-height: 1.3;
  }

  body:not(.has-light-page) .hero-actions {
    margin-top: 16px;
  }

  body:not(.has-light-page) .hero-actions .primary-button {
    min-height: 58px;
  }

  body:not(.has-light-page) .hero-actions .primary-button span {
    width: 38px;
    height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body:not(.has-light-page) .site-header,
  body:not(.has-light-page) .hero-display,
  body:not(.has-light-page) .hero-image,
  body:not(.has-light-page) .nav-cta,
  body:not(.has-light-page) .nav-cta span:last-child {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  body:not(.has-light-page) .hero-display {
    opacity: 1;
  }
}
