/* 7YA core-page upgrade — 2026-07-26
   Shared clarity, mobile navigation, image discipline and accessible focus. */

:root {
  --upgrade-accent: #e0bd80;
  --upgrade-surface: rgba(255, 255, 255, .055);
  --upgrade-line: rgba(255, 255, 255, .16);
  --upgrade-shadow: 0 24px 80px rgba(0, 0, 0, .28);
}

html { scroll-padding-top: 88px; }
body { padding-bottom: 0; }

:is(a, button):focus-visible {
  outline: 3px solid var(--upgrade-accent);
  outline-offset: 4px;
  border-radius: 8px;
}

:is(.hero h1, .section-head h2, .final-copy h2, .cta-band h2) {
  text-wrap: balance;
}

:is(.hero-lead, .section-head p, .card p, .identity-card p, .source-card b) {
  text-wrap: pretty;
}

/* Never stretch editorial or portrait assets. */
:is(.hero-image, .hero-media > img, .portrait img, .evidence-image img, .starton-image, .final-cta > img, .media-card img) {
  object-fit: cover;
  object-repeat: no-repeat;
}

.hero-media,
.portrait,
.evidence-image,
.media-card {
  background: #0b0d11;
}

/* Clear first-fold routes. */
.page-paths {
  width: min(1240px, calc(100% - 36px));
  margin: -1px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--upgrade-line);
  border-radius: 24px;
  overflow: hidden;
  background: rgba(8, 10, 13, .86);
  box-shadow: var(--upgrade-shadow);
}

.page-paths a {
  min-height: 112px;
  padding: 23px 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  border-inline-start: 1px solid var(--upgrade-line);
  text-decoration: none;
  background: linear-gradient(145deg, var(--upgrade-surface), rgba(255, 255, 255, .012));
  transition: transform .2s ease, background .2s ease;
}

.page-paths a:first-child { border-inline-start: 0; }
.page-paths a:hover { background: rgba(224, 189, 128, .09); }
.page-paths small {
  color: var(--upgrade-accent);
  font-size: .63rem;
  font-weight: 900;
  letter-spacing: .14em;
  direction: ltr;
}
.page-paths b { font-size: clamp(1.25rem, 2.2vw, 2rem); }
.page-paths span { color: #aaa59d; font-size: .78rem; line-height: 1.55; }

/* Homepage: replace stale dashboard feel with a useful decision layer. */
.impact.route-impact { padding: 34px clamp(18px, 5vw, 72px); }
.impact.route-impact .page-paths { width: min(1180px, 100%); }

/* More intentional density and card rhythm. */
:is(.source-card, .identity-card, .ecosystem-grid a, .card, .evidence-row, .media-card) {
  content-visibility: auto;
  contain-intrinsic-size: 320px;
}

:is(.source-card, .identity-card, .ecosystem-grid a, .card, .media-card):hover {
  box-shadow: 0 18px 54px rgba(0, 0, 0, .22);
}

/* Fixed mobile wayfinding: no hidden navigation dead end. */
.mobile-dock { display: none; }

@media (max-width: 980px) {
  .page-paths { grid-template-columns: 1fr; }
  .page-paths a {
    min-height: 92px;
    border-inline-start: 0;
    border-top: 1px solid var(--upgrade-line);
  }
  .page-paths a:first-child { border-top: 0; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 72px; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }

  .topbar { backdrop-filter: blur(20px); }
  .hero { min-height: auto; }
  .hero-content,
  .hero-copy { padding-top: 112px; }

  .hero h1 { line-height: .9; }
  .hero-lead { max-width: 42rem; }

  .hero-image { object-position: 62% center; }
  .hero-media > img { object-position: center 16%; }
  .portrait img,
  .evidence-image img { object-position: center 18%; }

  .actions,
  .hero-actions { gap: 9px; }
  .actions .button,
  .hero-actions .button,
  .actions .btn { min-height: 50px; }

  .page-paths {
    width: calc(100% - 24px);
    margin-top: 12px;
    border-radius: 18px;
  }

  .mobile-dock {
    position: fixed;
    z-index: 1900;
    right: 10px;
    left: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    min-height: 58px;
    padding: 6px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 19px;
    background: rgba(7, 9, 12, .92);
    backdrop-filter: blur(22px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, .42);
  }

  .mobile-dock a {
    min-height: 46px;
    display: grid;
    place-items: center;
    padding: 5px;
    border-radius: 13px;
    color: #d6d1c8;
    font-size: .72rem;
    font-weight: 850;
    text-decoration: none;
    text-align: center;
  }

  .mobile-dock a[aria-current="page"],
  .mobile-dock a.mobile-dock-cta {
    background: linear-gradient(135deg, #e0bd80, #c7a266);
    color: #080a0d;
  }

  .section-head h2,
  .command-copy h2,
  .final-copy h2,
  .cta-band h2 { letter-spacing: -.045em; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: clamp(3.25rem, 18vw, 4.8rem); }
  .page-paths a { padding: 18px; }
  .mobile-dock a { font-size: .66rem; }
}

@media (prefers-reduced-motion: reduce) {
  .page-paths a { transition: none; }
}
