/* BRAND-001C — homepage narrative. The shared token and navigation contract
 * remains owned by constellation-1.0.0.css and public-shell.css. */

:root {
  --bg: var(--shell-bg);
  --surface: var(--shell-surface);
  --surface-2: var(--shell-surface-2);
  --text: var(--shell-text);
  --text-muted: var(--shell-muted);
  --link: var(--shell-link);
  --border: var(--shell-border);
  --accent: var(--shell-accent);
  --max-content: 1120px;
  --max-wide: 1320px;
}

body[data-page="home"] {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
}

body[data-page="home"] *,
body[data-page="home"] *::before,
body[data-page="home"] *::after {
  box-sizing: border-box;
}

body[data-page="home"] main {
  padding-top: var(--shell-height);
}

body[data-page="home"] :where(h1, h2, h3, p, ol, dl, figure) {
  margin-top: 0;
}

body[data-page="home"] :where(h1, h2, h3) {
  color: var(--text);
  font-family: var(--font-display);
  text-wrap: balance;
}

body[data-page="home"] h2 {
  max-width: 22ch;
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.6vw, 3.7rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.035em;
}

body[data-page="home"] h3 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.18;
}

.home-container {
  width: min(calc(100% - 40px), var(--max-content));
  margin-inline: auto;
}

.home-container--wide {
  width: min(calc(100% - 40px), var(--max-wide));
}

.home-eyebrow,
.section-eyebrow,
.register-paths__index {
  margin-bottom: 14px;
  color: var(--link) !important;
  font-family: var(--font-ui);
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .105em;
  text-transform: uppercase;
}

.home-hero {
  min-height: min(820px, calc(100vh - var(--shell-height)));
  display: grid;
  align-items: center;
  padding: clamp(72px, 10vw, 132px) 0;
  background: var(--brand-indigo-900);
  color: var(--brand-cream-100);
}

.home-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, .72fr);
  gap: clamp(48px, 8vw, 112px);
  align-items: center;
}

.home-hero__copy,
.home-field-photo {
  min-width: 0;
}

.home-hero .home-eyebrow {
  color: #f0b56e !important;
}

.hero-title {
  margin-bottom: 14px;
  color: var(--brand-cream-100) !important;
  max-width: 12ch;
  font-size: clamp(3.25rem, 6.7vw, 6.4rem);
  font-weight: 700;
  line-height: .91;
  letter-spacing: -.065em;
}

.home-hero__category {
  max-width: 19ch;
  margin-bottom: 18px;
  color: #fffaf0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.03em;
}

.home-hero__tagline {
  max-width: 44ch;
  margin-bottom: 16px;
  color: #f0b56e;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 700;
}

.home-hero__tagline a {
  color: inherit;
  text-underline-offset: .2em;
}

.home-hero__audience {
  max-width: 59ch;
  margin-bottom: 30px;
  color: #e7e2d8;
  font-size: 1.05rem;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 188px;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--brand-radius-sm);
  font-family: var(--font-ui);
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color var(--brand-duration-fast) var(--brand-ease-out-quad),
              border-color var(--brand-duration-fast) var(--brand-ease-out-quad),
              transform var(--brand-duration-fast) var(--brand-ease-out-quad);
}

.hero-cta:hover {
  transform: translateY(-2px);
}

.hero-cta--primary {
  background: var(--brand-amber-500);
  color: var(--brand-neutral-950);
}

.hero-cta--primary:hover {
  background: #e5a151;
}

.hero-cta--secondary {
  border-color: #c7cbe0;
  color: #fffaf0;
}

.hero-cta--secondary:hover {
  border-color: #fffaf0;
  background: rgb(255 250 240 / .08);
}

.home-field-photo {
  margin: 0;
}

.home-field-photo picture,
.home-field-photo img {
  display: block;
  width: 100%;
}

.home-field-photo picture[hidden] {
  display: none;
}

.home-field-photo img {
  height: auto;
  border: 1px solid rgb(255 250 240 / .32);
}

.home-field-photo figcaption {
  max-width: 54ch;
  padding-top: 12px;
  color: #dedfeb;
  font-size: .76rem;
  line-height: 1.5;
}

.home-field-photo figcaption span {
  color: #fffaf0;
  font-weight: 700;
}

.home-field-photo__fallback {
  display: grid;
  min-height: 180px;
  margin: 0;
  place-items: center;
  border: 1px solid currentColor;
  color: inherit;
}

.home-field-photo__fallback[hidden] {
  display: none;
}

.field-method {
  padding: clamp(84px, 10vw, 144px) 0;
  background: var(--bg);
}

.field-method__grid {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(420px, 1.2fr);
  gap: clamp(34px, 7vw, 96px);
  align-items: center;
}

.home-field-photo--method {
  width: min(100%, 420px);
}

.home-field-photo--method img {
  border-color: var(--border);
}

.home-field-photo--method figcaption {
  color: var(--text-muted);
}

.constellation-plate {
  position: relative;
  padding: clamp(28px, 4.5vw, 48px);
  border: 1px solid rgb(255 250 240 / .32);
  background: var(--brand-indigo-600);
  color: #fffaf0;
  box-shadow: 18px 18px 0 rgb(217 146 61 / .18);
}

.constellation-plate > img {
  margin-bottom: 30px;
}

.constellation-plate__label {
  margin-bottom: 12px;
  color: #f4c58b;
  font-family: var(--font-ui);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.constellation-plate h2 {
  max-width: 12ch;
  margin-bottom: 28px;
  color: #fffaf0 !important;
  font-size: clamp(1.8rem, 3.2vw, 2.75rem);
}

.evidence-route {
  display: grid;
  gap: 0;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.evidence-route li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 0 12px;
  padding: 12px 0;
  border-top: 1px solid rgb(255 250 240 / .24);
}

.evidence-route li:last-child {
  border-bottom: 1px solid rgb(255 250 240 / .24);
}

.evidence-route span {
  grid-row: 1 / span 2;
  color: #f4c58b;
  font-family: var(--font-ui);
  font-size: .72rem;
  font-weight: 700;
}

.evidence-route strong {
  color: #fffaf0;
  font-family: var(--font-ui);
  font-size: .88rem;
}

.evidence-route small {
  color: #dedfeb;
  font-size: .78rem;
}

.constellation-plate__rule {
  margin-bottom: 0;
  color: #fffaf0;
  font-size: .92rem;
  font-weight: 600;
}

.register-paths,
.species-section,
.project-section {
  padding: clamp(84px, 10vw, 144px) 0;
}

.register-paths {
  background: var(--bg);
}

.home-section-heading {
  margin-bottom: clamp(38px, 6vw, 72px);
}

.home-section-heading > p:last-child {
  max-width: 62ch;
  margin-bottom: 0;
  color: var(--text-muted);
}

.home-section-heading--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .58fr);
  gap: 40px;
  align-items: end;
}

.register-paths__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--border);
}

.register-paths__grid article {
  min-height: 320px;
  padding: 30px clamp(22px, 3vw, 36px) 28px 0;
  border-bottom: 1px solid var(--border);
}

.register-paths__grid article + article {
  padding-left: clamp(22px, 3vw, 36px);
  border-left: 1px solid var(--border);
}

.register-paths__grid h3 {
  max-width: 14ch;
  margin-bottom: 16px;
}

.register-paths__grid p:not(.register-paths__index) {
  max-width: 36ch;
  color: var(--text-muted);
}

.register-paths__grid a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 12px;
  color: var(--link);
  font-family: var(--font-ui);
  font-size: .84rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.register-paths__grid a span {
  margin-left: 8px;
}

.register-paths__pilot {
  background: color-mix(in srgb, var(--surface) 74%, transparent);
}

.register-paths__pilot code {
  color: var(--text);
  font-size: .88em;
}

.home-summary {
  padding: clamp(60px, 7vw, 92px) 0;
  background: var(--brand-cream-100);
  color: var(--brand-neutral-900);
}

[data-theme="dark"] .home-summary {
  background: var(--brand-neutral-900);
  color: var(--brand-neutral-100);
}

.home-summary__grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(420px, 1.2fr);
  gap: clamp(44px, 8vw, 100px);
  align-items: end;
}

.home-summary h2 {
  color: currentColor;
  font-size: clamp(1.8rem, 3.6vw, 3rem);
}

.home-summary p {
  max-width: 56ch;
  color: #5f594f;
}

[data-theme="dark"] .home-summary p {
  color: var(--brand-neutral-200);
}

.home-summary__status {
  margin-bottom: 0;
  padding-top: 12px;
  border-top: 1px solid #c8c0b2;
  font-family: var(--font-ui);
  font-size: .82rem;
  font-weight: 700;
}

.home-summary__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-block: 1px solid #c8c0b2;
}

.home-summary__metrics div {
  padding: clamp(18px, 2vw, 24px);
}

.home-summary__metrics div + div {
  border-left: 1px solid #c8c0b2;
}

.home-summary__metrics dt {
  min-height: 46px;
  color: #5f594f;
  font-family: var(--font-ui);
  font-size: .74rem;
  font-weight: 700;
  line-height: 1.35;
}

.home-summary__metrics dd {
  margin: 12px 0 0;
  color: var(--brand-indigo-900);
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

[data-theme="dark"] :is(.home-summary__status, .home-summary__metrics) {
  border-color: var(--brand-neutral-600);
}

[data-theme="dark"] .home-summary__metrics div + div {
  border-color: var(--brand-neutral-600);
}

[data-theme="dark"] .home-summary__metrics dt {
  color: var(--brand-neutral-200);
}

[data-theme="dark"] .home-summary__metrics dd {
  color: var(--brand-cream-100);
}

.statement-video {
  padding: clamp(84px, 10vw, 132px) 0;
  background: var(--surface);
}

.statement-video__grid {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  gap: clamp(44px, 8vw, 96px);
  align-items: center;
}

.statement-video__copy p:not(.home-eyebrow),
.statement-video__copy details {
  max-width: 56ch;
  color: var(--text-muted);
}

.statement-video__copy summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--link);
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: .84rem;
  font-weight: 700;
}

.statement-video__frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--brand-neutral-950);
}

.statement-video__frame > img,
.statement-video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
}

.statement-video-player[hidden],
.statement-video__frame > img[hidden] {
  display: none;
}

.statement-video-play {
  position: absolute;
  inset: 50% auto auto 50%;
  min-width: 154px;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid #fffaf0;
  border-radius: var(--brand-radius-sm);
  background: rgb(22 19 16 / .82);
  color: #fffaf0;
  cursor: pointer;
  font-family: var(--font-ui);
  font-weight: 700;
  transform: translate(-50%, -50%);
}

.statement-video-play[hidden] {
  display: none;
}

.statement-video__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  padding: 10px 14px;
  background: var(--brand-neutral-950);
  color: #e7e2d8;
}

.statement-video__actions p {
  margin: 0;
  font-size: .76rem;
}

.statement-video-stop {
  min-width: 112px;
  min-height: 44px;
  border: 1px solid #b9b4aa;
  border-radius: var(--brand-radius-sm);
  background: transparent;
  color: #fffaf0;
  cursor: pointer;
  font-family: var(--font-ui);
  font-weight: 700;
}

.statement-video-stop[hidden] {
  display: none;
}

.species-section {
  background: var(--bg);
}

.species-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 32px);
}

.species-card {
  min-width: 0;
}

.species-img-wrap {
  min-height: 360px;
}

.species-info {
  min-height: 290px;
}

.species-info :where(p, h3) {
  margin-top: 0;
}

.species-name {
  margin-bottom: 10px;
  font-style: italic;
}

.species-taxonomy {
  margin-bottom: 8px;
  font-family: var(--font-ui);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.species-common,
.species-desc {
  margin-bottom: 12px;
  font-size: .88rem;
}

.species-card-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-ui);
  font-size: .82rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.species-card-link span {
  margin-left: 8px;
}

.method-section {
  padding: clamp(84px, 9vw, 128px) 0;
  background: var(--brand-indigo-900);
  color: #fffaf0;
}

.method-section__grid {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(420px, 1.25fr);
  gap: clamp(50px, 9vw, 120px);
}

.method-section h2,
.method-section h3 {
  color: #fffaf0 !important;
}

.method-section .home-eyebrow {
  color: #f4c58b !important;
}

.method-section > .home-container > div:first-child > p:last-child {
  max-width: 52ch;
  color: #dedfeb;
}

.method-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid rgb(255 250 240 / .28);
  list-style: none;
}

.method-list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid rgb(255 250 240 / .28);
}

.method-list > li > span {
  color: #f4c58b;
  font-family: var(--font-ui);
  font-size: .75rem;
  font-weight: 700;
}

.method-list h3 {
  margin-bottom: 6px;
  font-size: 1.15rem;
}

.method-list p {
  margin-bottom: 0;
  color: #dedfeb;
  font-size: .9rem;
}

.project-section {
  background: var(--surface);
}

.project-section__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr);
  gap: clamp(48px, 9vw, 120px);
  align-items: start;
}

.project-section__grid > div > p:not(.home-eyebrow) {
  max-width: 68ch;
  color: var(--text-muted);
}

.project-section .authority-card {
  margin-top: 0;
}

.anatomy-plate figcaption h3 {
  margin-bottom: 16px;
}

.anatomy-plate figcaption p {
  color: var(--text-muted);
}

.collaboration-section {
  padding: clamp(68px, 8vw, 100px) 0;
  background: var(--brand-amber-500);
  color: var(--brand-neutral-950);
}

.collaboration-section__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
}

.collaboration-section h2 {
  max-width: 19ch;
  color: var(--brand-neutral-950) !important;
}

.collaboration-section p:not(.home-eyebrow) {
  max-width: 68ch;
  margin-bottom: 0;
  color: #3d2d1f;
}

.collaboration-section .home-eyebrow {
  color: #332011 !important;
}

.collaboration-section .hero-cta--primary {
  min-width: 220px;
  background: var(--brand-indigo-900);
  color: #fffaf0;
}

.collaboration-section .hero-cta--primary:hover {
  background: var(--brand-indigo-600);
}

@media (max-width: 1024px) {
  .home-hero {
    min-height: auto;
  }

  .home-hero__grid,
  .field-method__grid,
  .statement-video__grid,
  .method-section__grid,
  .project-section__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .constellation-plate {
    width: min(100%, 620px);
  }

  .home-field-photo--method {
    width: min(72%, 420px);
  }

  .register-paths__grid,
  .species-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .register-paths__grid article:nth-child(3),
  .species-card:nth-child(3) {
    grid-column: 1 / -1;
  }

  .home-summary__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .species-card:nth-child(3) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr);
  }
}

@media (max-width: 720px) {
  .home-container,
  .home-container--wide {
    width: min(calc(100% - 28px), var(--max-content));
  }

  .home-hero {
    padding: 64px 0 72px;
  }

  .home-hero__grid {
    gap: 44px;
  }

  .hero-title {
    max-width: 14ch;
    font-size: clamp(2.75rem, 10vw, 4.5rem);
  }

  .home-actions,
  .home-actions .hero-cta {
    width: 100%;
  }

  .register-paths__grid,
  .species-grid,
  .home-section-heading--split,
  .collaboration-section__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .register-paths__grid article,
  .register-paths__grid article + article {
    min-height: 0;
    padding: 28px 0;
    border-left: 0;
  }

  .register-paths__grid article:nth-child(3),
  .species-card:nth-child(3) {
    grid-column: auto;
  }

  .home-summary__metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-summary__metrics div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 18px 0;
  }

  .home-summary__metrics div + div {
    border-top: 1px solid #c8c0b2;
    border-left: 0;
  }

  .home-summary__metrics dt {
    min-height: 0;
  }

  .home-summary__metrics dd {
    margin: 0;
    font-size: 2.5rem;
  }

  .statement-video__actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .statement-video-stop {
    width: 100%;
  }

  .species-card:nth-child(3) {
    display: block;
  }

  .species-img-wrap {
    min-height: 0;
  }

  .species-info {
    min-height: 0;
  }

  .collaboration-section .hero-cta {
    width: 100%;
  }
}

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

  .hero-cta:hover {
    transform: none;
  }
}
