/* Shared header layout; each concept has its own optical scene and static fallback.
   Movement is controlled by hero-motion.js and stops when the hero is not visible. */
.has-section-hero .section-hero {
  --hero-accent: #c4d8ce;
  --hero-wash: 105, 153, 137;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 448px;
  width: 100%;
  margin: 0 0 40px;
  padding: 44px 48px 68px;
  overflow: hidden;
  border: 1px solid #ffffff1b;
  border-radius: 22px;
  background: #0d1112;
  color: #f1f2ee;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  text-align: left;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}
.has-section-hero .section-hero[data-section="wave"] { --hero-accent: #c2d4e4; --hero-wash: 103, 137, 176; }
.has-section-hero .section-hero[data-section="market"] { --hero-accent: #e0d6b9; --hero-wash: 167, 143, 100; }
.has-section-hero .section-hero[data-section="habitat"] { --hero-accent: #c9d5ae; --hero-wash: 136, 157, 102; }
.has-section-hero .section-hero[data-section="lab"] { --hero-accent: #d4c8e1; --hero-wash: 150, 122, 169; }
.section-hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background: radial-gradient(ellipse at 85% 38%, rgba(var(--hero-wash), .25), transparent 55%), linear-gradient(110deg, #0b0f10 15%, #0c1012 52%, #0d1215);
  pointer-events: none;
}
.section-hero::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  background: url('/shared/heroes/grain.svg');
  opacity: .055;
  pointer-events: none;
}
.section-hero__art {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: -4px;
  width: 590px;
  height: 500px;
  transform: translateY(-50%);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%);
  mask-image: linear-gradient(90deg, transparent, #000 22%);
}
.section-hero__art > svg { display: block; width: 100%; height: 100%; fill: none; stroke: none; opacity: .95; }
.section-hero__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0d1112, transparent 22%, transparent 85%, #0d111255);
}
.section-hero .section-hero__content { position: relative; z-index: 1; width: 62%; max-width: 660px; }
.section-hero .section-hero__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  color: #c0c8c7;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.section-hero__eyebrow span + span { display: inline-flex; align-items: center; gap: 12px; color: var(--hero-accent); }
.section-hero__eyebrow span + span::before { content: ""; width: 20px; height: 1px; background: #c8d0cb66; }
.section-hero h1 {
  margin: 0;
  max-width: 620px;
  font: 500 clamp(36px, 3.65vw, 50px)/1.1 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -1.9px;
  color: #f1f2ee;
  text-wrap: balance;
}
.section-hero .section-hero__description {
  max-width: 510px;
  margin: 22px 0 0;
  color: #b9c3c0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0;
  text-wrap: pretty;
}
.section-hero .section-hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; margin-top: 28px; }
.section-hero a.section-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid #f1f2ee;
  border-radius: 9px;
  background: #eef0e9;
  color: #17221d;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  transition: background .18s, border-color .18s;
}
.section-hero a.section-hero__cta:hover { background: var(--hero-accent); border-color: var(--hero-accent); }
.section-hero__cta > span { font-size: 18px; line-height: 1; }
.section-hero a.section-hero__secondary { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: #dce1dc; font-size: 12px; font-weight: 400; line-height: 1.5; text-decoration: underline; text-decoration-color: #dce1dc55; text-underline-offset: 6px; }
.section-hero a:focus-visible { outline: 2px solid var(--hero-accent); outline-offset: 5px; }
.section-hero .section-hero__note { position: absolute; z-index: 1; bottom: 24px; right: 32px; margin: 0; font-size: 10px; font-weight: 400; letter-spacing: .4px; line-height: 1.5; color: #abb8b3; }
/* Common outer field and navigation on the five section homes only. */
.has-section-hero .site-header { max-width: 1186px; margin-bottom: 0; }
.has-section-hero.academy-catalog-page .catalog,
.has-section-hero.catalog-home .wave-home.library { max-width: 1250px; width: 100%; padding: 28px 32px 0; margin: 0 auto; }
.has-section-hero.market-page .market-main { max-width: 1186px; width: calc(100% - 64px); padding-top: 28px; }
.has-section-hero.lab-page main > .section-hero { max-width: 1186px; width: calc(100% - 64px); margin: 28px auto 0; }
.has-section-hero .section-library-title { margin: 0; color: #f1f2ee; font: 500 25px/1.25 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; letter-spacing: -.65px; }
.has-section-hero .section-library-description { margin: 8px 0 0; color: #aab3b1; font: 400 13px/1.6 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; }
.has-section-hero #explorar, .has-section-hero #catalogo, .has-section-hero #vision, .has-section-hero #portafolio { scroll-margin-top: 24px; }
.has-section-hero.academy-catalog-page .catalog-heading { align-items: center; }
.has-section-hero.academy-catalog-page .search-hint { display: none; }
.has-section-hero.academy-catalog-page .catalog-tools { margin-top: 24px; }
.has-section-hero.lab-page .services { padding-top: 52px; }
/* Habitat uses the same heading field; its future-facing content stays lightweight. */
.habitat-page { background: #0b0e0b; font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; }
.habitat-main { width: calc(100% - 64px); max-width: 1186px; margin: 0 auto; padding-top: 28px; flex: 1; }
.habitat-vision { padding: 24px 0 72px; }
.habitat-vision-heading { display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px 64px; align-items: end; }
.habitat-label { grid-column: 1 / -1; font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: #b0bba3; margin: 0; }
.habitat-vision h2 { margin: 0; font-size: 31px; line-height: 1.25; font-weight: 500; letter-spacing: -.9px; color: #e7ece3; }
.habitat-vision-heading > p:last-child { margin: 0; font-size: 14px; line-height: 1.8; color: #a8b1a1; max-width: 52ch; }
.habitat-scales { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 40px; }
.habitat-scales article { border-top: 1px solid #c8d5b333; padding-top: 24px; }
.habitat-scales article > span { color: #a8b69a; font-size: 11px; }
.habitat-scales h3 { font-weight: 500; font-size: 21px; line-height: 1.4; letter-spacing: -.5px; color: #e0e7d8; margin: 14px 0 12px; }
.habitat-scales p { color: #a9b3a1; font-size: 14px; line-height: 1.8; margin: 0; }
@media (max-width: 1000px) {
  .has-section-hero .section-hero { padding: 36px 32px 64px; min-height: 436px; }
  .section-hero .section-hero__content { width: 70%; }
  .section-hero h1 { font-size: 41px; letter-spacing: -1.5px; }
  .section-hero__art { right: -154px; opacity: .75; }
  .section-hero .section-hero__description { max-width: 450px; font-size: 14px; }
  .habitat-vision-heading { gap: 16px 32px; }
}
@media (max-width: 700px) {
  .has-section-hero.academy-catalog-page .catalog,
  .has-section-hero.catalog-home .wave-home.library { padding: 20px 20px 0; }
  .has-section-hero.market-page .market-main, .habitat-main { width: calc(100% - 40px); padding-top: 20px; }
  .has-section-hero.lab-page main > .section-hero { width: calc(100% - 40px); margin-top: 20px; }
  .has-section-hero .section-hero { padding: 32px 26px 62px; border-radius: 17px; min-height: 432px; margin-bottom: 32px; }
  .section-hero .section-hero__content { width: 100%; }
  .section-hero h1 { font-size: 37px; line-height: 1.1; letter-spacing: -1.3px; max-width: 510px; }
  .section-hero .section-hero__description { font-size: 14px; max-width: 440px; margin-top: 20px; }
  .section-hero .section-hero__eyebrow { font-size: 10px; gap: 10px; margin-bottom: 18px; }
  .section-hero__art { width: 500px; height: 445px; right: -165px; top: 44%; opacity: .36; }
  .section-hero__art::after { background: linear-gradient(90deg, #0d1112 14%, #0d111288 52%, transparent); }
  .section-hero .section-hero__actions { margin-top: 24px; }
  .section-hero .section-hero__note { bottom: 15px; right: 22px; font-size: 9px; }
  .section-hero .section-hero__cta { font-size: 12px; }
  .has-section-hero .section-library-title { font-size: 23px; }
  .habitat-vision { padding: 8px 0 56px; }
  .habitat-vision-heading, .habitat-scales { grid-template-columns: 1fr; gap: 24px; }
  .habitat-vision h2 { font-size: 27px; }
  .habitat-label { margin-bottom: -8px; }
  .habitat-scales { margin-top: 32px; }
}
@media (max-width: 380px) {
  .has-section-hero .section-hero { padding: 28px 20px 60px; }
  .section-hero h1 { font-size: 32px; letter-spacing: -1.05px; }
  .section-hero .section-hero__eyebrow { font-size: 9px; gap: 8px; }
  .section-hero__eyebrow span + span { gap: 8px; }
  .section-hero__eyebrow span + span::before { width: 12px; }
  .section-hero .section-hero__description { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .section-hero a.section-hero__cta { transition: none; }
}

/* The HTML reading plane stays above the decorative optical plane. */
.section-hero__canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; opacity: 0; }
.section-hero[data-renderer="webgl"] .section-hero__canvas { opacity: 1; }
.section-hero[data-renderer="webgl"] .section-hero__art > svg,
.section-hero[data-renderer="webgl"] .section-hero__poster { visibility: hidden; }
.section-hero__poster { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1001px) {
 .section-hero__art { -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%); mask-image: linear-gradient(90deg, transparent, #000 18%); }
 .section-hero__art::after { background: linear-gradient(90deg, #0d1112, transparent 18%); }
}

.has-section-hero .section-hero[data-section="music"]{--hero-accent:#ddd0ec;--hero-wash:145,125,167}
