/* The opening fills the viewport with the navigation included in its height. */
.hero {
  --hero-header-height: 93px;
  --hero-admin-height: 0px;
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - var(--hero-header-height) - var(--hero-admin-height));
  min-height: calc(100dvh - var(--hero-header-height) - var(--hero-admin-height));
}
.hero-inner {
  z-index: 1;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  padding-top: clamp(24px, 4vh, 54px);
}
.hero-topline { position: relative; z-index: 2; margin-bottom: 32px; }
.hero-main { position: relative; z-index: 1; margin-block: auto; padding-bottom: clamp(28px, 5vh, 68px); }
/* Reference typography, enlarged by 5px at each breakpoint. */
.hero-title > :is(h1, h2) { font-size: 91px; line-height: 1.2; letter-spacing: normal; font-weight: 500; max-width: 1150px; margin-bottom: clamp(24px, 4vh, 48px); }
.hero-bottom { margin-bottom: 0; }
.hero-foot { position: relative; z-index: 2; align-items: center; margin-top: auto; }
.hero-foot-end { display: flex; align-items: center; justify-content: flex-end; gap: 28px; }
.hero-media { top: 50%; bottom: auto; right: 0; transform: translateY(-50%); width: 45%; }
.hero-visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  color: var(--lime);
  pointer-events: none;
  opacity: .95;
}
.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #141712ab 0%, #141712d9 24%, #14171299 43%, #14171205 67%, #14171280 100%),
    linear-gradient(0deg, #141712 0%, #14171200 20%, #14171200 78%, #141712c9 100%);
}
.hero-particles, .hero-neural-fallback { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.hero-neural-fallback { opacity: .25; }
.hero-visual.is-ready .hero-neural-fallback { display: none; }
.hero-motion-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 4px;
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: var(--muted-light);
  font-size: 10px;
  line-height: 1.4;
}
.hero-motion-control:hover { color: var(--lime); }
.motion-symbol { width: 14px; font-size: 13px; text-align: center; }
body.admin-bar .hero { --hero-admin-height: 32px; }
@media (max-width: 1400px) { .hero-title > :is(h1, h2) { font-size: 79px; } }
@media (max-width: 1200px) { .hero-title > :is(h1, h2) { font-size: 77px; } }
@media (max-width: 992px) {
  .hero-title > :is(h1, h2) { font-size: 63px; }
  .hero-visual { opacity: .75; }
  .hero-foot-end { gap: 18px; }
}
@media (max-width: 900px) {
  .hero-foot { align-items: flex-start; }
  .hero-foot-end { width: 100%; justify-content: space-between; }
}
@media (max-width: 782px) { body.admin-bar .hero { --hero-admin-height: 46px; } }
@media (max-width: 768px) { .hero-title > :is(h1, h2) { font-size: 39px; } }
@media (max-width: 650px) {
  .hero { --hero-header-height: 85px; }
  .hero-topline { margin-bottom: 30px; }
  .hero-main { padding-block: 18px 30px; }
  .hero-title > :is(h1, h2) { margin-bottom: 28px; }
  .hero-visual { opacity: .55; }
  .hero-visual::after { background: linear-gradient(90deg, #141712dc, #14171288 70%, #14171222), linear-gradient(0deg, #141712 0%, #14171200 22%, #14171200 80%, #141712b0); }
  .hero-foot { padding-block: 16px; gap: 5px; }
  .hero-foot-end { gap: 10px; align-items: center; }
  .hero-motion-control { font-size: 9px; }
}
@media (max-height: 700px) and (min-width: 769px) {
  .hero-inner { padding-top: 20px; }
  .hero-topline { margin-bottom: 20px; }
  .hero-title > :is(h1, h2) { margin-bottom: 22px; }
  .hero-main { padding-bottom: 24px; }
  .hero-copy { font-size: 16px; }
  .hero-bottom .actions { margin-top: 20px; }
  .hero-foot { padding-block: 12px; }
}
@media (max-height: 700px) and (max-width: 650px) {
  .hero-inner { padding-top: 20px; }
  .hero-topline { margin-bottom: 20px; }
  .hero-main { padding-block: 0 22px; }
  .hero-title > :is(h1, h2) { margin-bottom: 22px; }
  .hero-copy { max-width: 100%; line-height: 1.5; }
  .hero-bottom .actions { margin-top: 20px; gap: 12px; }
  .hero-bottom .button { font-size: 10px; gap: 10px; padding-left: 16px; min-height: 52px; }
  .hero-bottom .text-button { padding-left: 0; }
  .hero-bottom .button-arrow { width: 32px; height: 32px; }
  .hero-foot { padding-block: 10px; }
}
@media (prefers-reduced-motion: reduce) { .hero-motion-control { display: none; } }

/* Match the reference hero's bottom anchor, content width and 60px text rhythm. */
.hero { scroll-margin-top: 0; }
.hero-inner { max-width: 1200px; width: 100%; padding: 0 30px; }
.hero-main { margin: auto 0 0; padding: 32px 0 120px; }
.hero-topline { margin-bottom: 24px; }
.hero-title > h1 { margin-bottom: 60px; }
.hero-bottom { gap: 30px; }
.hero-bottom > div { width: calc((100% + 30px) * 5 / 12 - 30px + 80px); }
.hero-copy { max-width: none; font-size: 21px; line-height: 1.5; }
.hero-bottom .actions { margin-top: 60px; flex-wrap: nowrap; width: max-content; }
.hero-bottom .button { min-height: 70px; }
.hero-foot { position: absolute; bottom: 0; left: 30px; right: 30px; margin: 0; }
@media (min-width: 1200px) and (max-width: 1399px) { .hero-inner { max-width: 1000px; } }
@media (max-width: 992px) {
  .hero-main { padding-bottom: 90px; }
  .hero-bottom > div { width: calc((100% + 30px) * 7 / 12 - 30px + 80px); }
  .hero-bottom .button { min-height: 60px; padding-block: 8px; }
  .hero-foot { padding-block: 2px; }
}
@media (max-width: 768px) {
  .hero-copy { font-size: 20px; }
  .hero-bottom > div { width: 100%; }
  .hero-bottom .actions { flex-wrap: wrap; width: 100%; }
  .hero-foot { padding-block: 4px; }
}
@media (max-height: 800px) {
  .hero-main { padding-top: 10px; }
  .hero-topline { margin-bottom: 12px; }
}

/* Feedback refinements keep the lower hero layout legible at the larger sizes. */
.hero-foot > span { font-size: calc(1em + 2px); }
@media (max-width: 768px) {
  .hero-title > h1 { margin-bottom: 32px; }
  .hero-bottom .actions { margin-top: 32px; }
}
@media (max-height: 800px) and (min-width: 769px) {
  .hero-title > h1 { margin-bottom: 36px; }
  .hero-bottom .actions { margin-top: 36px; }
  .hero-main { padding-bottom: 90px; }
}
/* The AI, Applied section shares the neural renderer without inheriting hero layout. */
.neural-section { position: relative; isolation: isolate; overflow: hidden; }
.neural-section > .container { position: relative; z-index: 1; }
.neural-section .hero-visual { opacity: .85; }
.neural-section .hero-visual::after {
  background: linear-gradient(90deg, #141712b3, #14171266 48%, #14171299),
    linear-gradient(0deg, #14171299, #14171200 25%, #14171200 78%, #14171288);
}
@media (max-width: 768px) { .neural-section .hero-visual { opacity: .6; } }

/* Preserve readable controls and heritage text at compact hero breakpoints. */
.hero-bottom .button { font-size:14px; }
.hero-foot > span { font-size:13px; }
