*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--paper);
}

body.aviary-human {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  padding: 0 0 calc(var(--s-7) + var(--safe-bottom));
  background:
    radial-gradient(circle at 8% 3%, var(--paper-warm), transparent 34rem),
    linear-gradient(180deg, var(--paper-warm), var(--paper) 32rem, var(--paper-deep));
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.58;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}

body.aviary-human::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  border: var(--s-2) solid var(--paper-warm);
  box-shadow: inset 0 0 0 1px var(--gold-faint);
  content: "";
  pointer-events: none;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: var(--s-3);
  left: var(--s-3);
  min-height: var(--tap);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-soft);
  transform: translateY(-180%);
  background: var(--ink);
  color: var(--paper-warm);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-header__inner,
.cluster-nav,
.page-shell,
.site-footer {
  width: min(calc(100% - var(--s-6)), var(--page));
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  min-height: calc(68px + var(--safe-top));
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding-top: var(--safe-top);
}

.site-brand {
  display: inline-flex;
  min-width: 0;
  min-height: var(--tap);
  align-items: center;
  gap: var(--s-3);
  color: var(--ink);
  text-decoration: none;
}

.site-brand__mark {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: var(--paper-warm);
}

.site-brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-brand__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: 0.025em;
  line-height: 1.05;
}

.site-brand__note {
  display: block;
  margin-top: var(--s-1);
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.menu-toggle,
.motion-toggle {
  display: inline-flex;
  min-height: var(--tap);
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-4);
  border: 1px solid var(--gold);
  border-radius: var(--r-pill);
  background: var(--paper-warm);
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
}

.menu-toggle::before {
  width: 1rem;
  height: 0.7rem;
  border-top: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
}

.cluster-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-3);
  padding: 0 0 var(--s-3);
}

.cluster-nav__group {
  min-width: 0;
  padding: var(--s-2) var(--s-3) var(--s-3);
  border-top: 2px solid var(--cluster-color, var(--gold));
}

.cluster-nav__group[data-cluster="choosing"] {
  --cluster-color: var(--sage);
}

.cluster-nav__group[data-cluster="living"] {
  --cluster-color: var(--slate);
}

.cluster-nav__group[data-cluster="discovering"] {
  --cluster-color: var(--ochre);
}

.cluster-nav__group[data-cluster="experiencing"] {
  --cluster-color: var(--lavender);
}

.cluster-nav__label {
  display: block;
  margin-bottom: var(--s-1);
  color: var(--ink-faint);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.cluster-nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1) var(--s-3);
}

.cluster-nav a {
  display: inline-flex;
  min-height: var(--tap);
  align-items: center;
  border-radius: var(--r-soft);
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 650;
  text-decoration: none;
  text-underline-offset: var(--s-1);
}

.cluster-nav a:hover,
.cluster-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
}

.page-shell {
  padding-top: clamp(var(--s-6), 5vw, var(--s-8));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--ochre);
  font-size: var(--t-eyebrow);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 2.2rem;
  height: 1px;
  background: var(--gold);
  content: "";
}

.guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(350px, 0.96fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--gold-faint);
  border-radius: var(--r-tile);
  background: var(--paper-warm);
  box-shadow: var(--shadow-soft);
}

.guide-hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(var(--s-6), 6vw, var(--s-8));
}

.guide-hero h1,
.hub-hero h1 {
  margin: var(--s-4) 0 var(--s-4);
  font-family: var(--font-display);
  font-size: var(--t-hero);
  font-weight: 560;
  letter-spacing: -0.035em;
  line-height: 0.96;
}

.guide-hero p,
.hub-hero p {
  max-width: 42rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(var(--t-body), 1.8vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-5);
}

.btn {
  display: inline-flex;
  min-height: var(--tap);
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-5);
  border: 1px solid var(--gold);
  border-radius: var(--r-pill);
  background: var(--paper-warm);
  color: var(--ink);
  cursor: pointer;
  font-weight: 750;
  text-decoration: none;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background 180ms var(--ease);
}

.btn--solid {
  background: var(--ink);
  color: var(--paper-warm);
}

.btn:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.guide-hero__media,
.hub-hero__media {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  margin: 0;
  border-left: 1px solid var(--gold-faint);
  background: var(--paper-deep);
}

.guide-hero__media video,
.guide-hero__media img,
.hub-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guide-hero__media::after,
.hub-hero__media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, var(--ink-overlay));
  content: "";
  pointer-events: none;
}

.media-caption {
  position: absolute;
  z-index: 2;
  right: var(--s-4);
  bottom: var(--s-4);
  left: var(--s-4);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--s-3);
  color: var(--paper-warm);
  font-size: var(--t-small);
}

.motion-toggle {
  flex: 0 0 auto;
  border-color: var(--paper-warm);
  background: var(--paper-glass);
  color: var(--ink);
  font-size: 0.84rem;
}

.portal-section,
.content-section {
  margin-top: clamp(var(--s-7), 7vw, var(--s-9));
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1) var(--s-2);
  margin: 0 0 var(--s-4);
  color: var(--ink-soft);
  font-size: var(--t-small);
}

.breadcrumbs a {
  display: inline-flex;
  min-height: var(--tap);
  align-items: center;
  font-weight: 700;
  text-underline-offset: var(--s-1);
}

.breadcrumbs a::after {
  margin-left: var(--s-2);
  color: var(--gold);
  content: "/";
  text-decoration: none;
}

.article-lede {
  max-width: 52rem;
  color: var(--ink-soft);
  font-size: clamp(var(--t-body), 1.6vw, 1.18rem);
}

.prose {
  max-width: 72ch;
}

.prose h2,
.prose h3 {
  font-family: var(--font-display);
  line-height: 1.15;
}

.prose h2 {
  margin-top: var(--s-7);
  font-size: var(--t-h2);
}

.prose h3 {
  margin-top: var(--s-6);
  font-size: var(--t-h3);
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.prose a {
  font-weight: 700;
  text-underline-offset: var(--s-1);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
  align-items: end;
  gap: var(--s-6);
  margin-bottom: var(--s-5);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--gold-faint);
}

.section-heading__index {
  display: block;
  margin-bottom: var(--s-2);
  color: var(--cluster-color, var(--ochre));
  font-size: var(--t-eyebrow);
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.section-heading h2,
.content-section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--t-h2);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.section-heading p {
  margin: 0;
  color: var(--ink-soft);
}

.portal-section[data-cluster="choosing"],
.hub-grid [data-cluster="choosing"] {
  --cluster-color: var(--sage);
}

.portal-section[data-cluster="living"],
.hub-grid [data-cluster="living"] {
  --cluster-color: var(--slate);
}

.portal-section[data-cluster="discovering"],
.hub-grid [data-cluster="discovering"] {
  --cluster-color: var(--ochre);
}

.portal-section[data-cluster="experiencing"],
.hub-grid [data-cluster="experiencing"] {
  --cluster-color: var(--lavender);
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-4);
}

.hubcard {
  position: relative;
  display: flex;
  min-height: 270px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: var(--s-5);
  border: 1px solid var(--line);
  border-left: 4px solid var(--cluster-color, var(--gold));
  border-radius: var(--r-card);
  background: var(--paper-warm);
  box-shadow: var(--shadow-soft);
  color: var(--ink);
  text-decoration: none;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), border-color 180ms var(--ease);
}

.hubcard:hover,
.hubcard:focus-visible {
  border-color: var(--cluster-color, var(--gold));
  box-shadow: var(--shadow-lift);
  transform: translateY(-3px);
}

.plate {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  overflow: hidden;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  background: var(--paper);
}

.plate--lg {
  width: 116px;
  height: 116px;
}

.plate--sm {
  width: 52px;
  height: 52px;
}

.plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hubcard h3,
.topic-card h3,
.guide-card h3 {
  margin: var(--s-4) 0 var(--s-2);
  font-family: var(--font-display);
  font-size: var(--t-h3);
  line-height: 1.16;
}

.hubcard p,
.topic-card p,
.guide-card p,
.guide-card li {
  color: var(--ink-soft);
}

.hubcard p {
  margin: 0;
  font-size: var(--t-small);
}

.card-action {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-4);
  color: var(--cluster-color, var(--ochre));
  font-size: 0.86rem;
  font-weight: 800;
}

.card-action::after {
  content: "→";
}

a.card-action {
  min-height: var(--tap);
}

.utility-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin: var(--s-7) 0 0;
  padding: var(--s-5);
  border-top: 1px solid var(--gold-faint);
  border-bottom: 1px solid var(--gold-faint);
}

.page-shell > .utility-strip:first-child {
  margin-top: 0;
}

.utility-strip a {
  display: inline-flex;
  min-height: var(--tap);
  align-items: center;
  padding: var(--s-2) var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--paper-warm);
  font-weight: 700;
  text-decoration: none;
}

.hub-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
  overflow: hidden;
  border: 1px solid var(--gold-faint);
  border-radius: var(--r-tile);
  background: var(--paper-warm);
  box-shadow: var(--shadow-soft);
}

.hub-hero__copy {
  padding: clamp(var(--s-6), 5vw, var(--s-8));
}

.hub-hero__copy:only-child {
  grid-column: 1 / -1;
  width: min(100%, 72rem);
}

.hub-hero h1 {
  font-size: var(--t-h1);
}

.hub-hero__media {
  min-height: 350px;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-3);
}

.topic-card,
.guide-card {
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--paper-warm);
  box-shadow: var(--shadow-soft);
}

.topic-card {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  padding: var(--s-4);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 180ms var(--ease), transform 180ms var(--ease);
}

.topic-card:hover,
.topic-card:focus-visible {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.topic-card:not(a):hover {
  border-color: var(--line);
  transform: none;
}

.topic-card__number {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--ochre);
  font-family: var(--font-display);
  font-weight: 700;
}

.topic-card h3 {
  margin-top: auto;
}

.topic-card p {
  margin: 0;
  font-size: 0.9rem;
}

.guide-card {
  padding: clamp(var(--s-5), 4vw, var(--s-7));
}

.guide-card > :first-child {
  margin-top: 0;
}

.guide-card a {
  font-weight: 700;
  text-underline-offset: var(--s-1);
}

.guide-card--tint {
  background: var(--paper-deep);
}

.guide-card--caution {
  border-color: var(--caution);
  background: var(--caution-bg);
}

.guide-card h3:first-child,
.guide-card h2:first-child {
  margin-top: 0;
}

.guide-card p:last-child,
.guide-card ul:last-child,
.guide-card ol:last-child {
  margin-bottom: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4);
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--s-3);
  margin-top: var(--s-5);
}

.pillar {
  padding: var(--s-4);
  border-top: 2px solid var(--gold);
  background: var(--paper-warm);
}

.pillar__index {
  color: var(--ochre);
  font-family: var(--font-display);
  font-size: 1.55rem;
}

.pillar h3 {
  margin: var(--s-2) 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.pillar p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
  margin-top: var(--s-4);
}

.check-item {
  position: relative;
  padding: var(--s-4) var(--s-4) var(--s-4) calc(var(--s-6) + var(--s-1));
  border: 1px solid var(--line);
  border-radius: var(--r-soft);
  background: var(--paper-warm);
  color: var(--ink-soft);
}

.check-item::before {
  position: absolute;
  top: var(--s-4);
  left: var(--s-4);
  width: 17px;
  height: 17px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  content: "";
}

.check-item strong {
  display: block;
  margin-bottom: var(--s-1);
  color: var(--ink);
}

.source-note,
.status-note {
  margin-top: var(--s-5);
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--r-soft);
  background: var(--paper-warm);
  color: var(--ink-soft);
  font-size: var(--t-small);
}

.status-note {
  border-left-color: var(--sage);
  background: var(--paper-deep);
}

.source-note strong,
.status-note strong {
  color: var(--ink);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4);
}

.field {
  display: grid;
  gap: var(--s-2);
}

.field label,
.field-label {
  color: var(--ink);
  font-weight: 750;
}

.aviary-human input,
.aviary-human select,
.aviary-human textarea {
  width: 100%;
  min-height: var(--tap);
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-soft);
  background: var(--paper-warm);
  color: var(--ink);
}

.aviary-human textarea {
  min-height: 8rem;
  resize: vertical;
}

.aviary-human input:hover,
.aviary-human select:hover,
.aviary-human textarea:hover {
  border-color: var(--gold);
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--paper-warm);
  box-shadow: var(--shadow-soft);
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: var(--s-4);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: var(--paper-deep);
  color: var(--ink);
  font-family: var(--font-display);
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.metric-grid,
.timeline {
  display: grid;
  gap: var(--s-3);
}

.metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.metric,
.timeline__item {
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-soft);
  background: var(--paper-warm);
}

.metric strong,
.timeline__item strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
}

.metric span,
.timeline__item p {
  color: var(--ink-soft);
}

.timeline__item {
  border-left: 3px solid var(--gold);
}

.timeline__item p {
  margin-bottom: 0;
}

.site-footer {
  margin-top: var(--s-8);
  padding: var(--s-5) 0 calc(var(--s-6) + var(--safe-bottom));
  border-top: 1px solid var(--gold-faint);
  color: var(--ink-soft);
  font-size: var(--t-small);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}

.site-footer a {
  display: inline-flex;
  min-height: var(--tap);
  align-items: center;
  font-weight: 700;
  text-underline-offset: var(--s-1);
}

.contextbar,
.context-bar {
  position: fixed;
  z-index: 50;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-2);
  padding: var(--s-2) max(var(--s-3), calc((100vw - var(--page)) / 2)) calc(var(--s-2) + var(--safe-bottom));
  border-top: 1px solid var(--gold-faint);
  background: var(--paper-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.contextbar a,
.context-bar a {
  display: grid;
  min-height: 50px;
  place-items: center;
  padding: var(--s-2);
  border: 1px solid var(--line);
  border-radius: var(--r-soft);
  background: var(--paper-warm);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}

.contextbar a:hover,
.contextbar a[aria-current="page"],
.context-bar a:hover,
.context-bar a[aria-current="page"] {
  border-color: var(--gold);
  color: var(--ink);
}

@media (max-width: 920px) {
  body.aviary-human {
    padding-bottom: calc(84px + var(--safe-bottom));
  }

  .page-shell {
    padding-top: var(--s-4);
  }

  .site-header__inner,
  .cluster-nav,
  .page-shell,
  .site-footer {
    width: min(calc(100% - var(--s-5)), var(--page));
  }

  .cluster-nav {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-bottom: var(--s-4);
  }

  .site-header[data-menu-open="true"] .cluster-nav {
    display: grid;
  }

  .no-js .site-header .cluster-nav {
    display: grid;
  }

  .no-js .menu-toggle {
    display: none;
  }

  .guide-hero,
  .hub-hero {
    grid-template-columns: 1fr;
  }

  .guide-hero__media,
  .hub-hero__media {
    min-height: 330px;
    border-top: 1px solid var(--gold-faint);
    border-left: 0;
  }

  .hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pillar-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contextbar,
  .context-bar {
    display: grid;
  }
}

@media (min-width: 921px) {
  .menu-toggle {
    display: none;
  }
}

@media (max-width: 650px) {
  body.aviary-human::before {
    border-width: var(--s-1);
  }

  .site-header__inner,
  .cluster-nav,
  .page-shell,
  .site-footer {
    width: min(calc(100% - var(--s-4)), var(--page));
  }

  .site-brand__mark {
    width: 42px;
    height: 42px;
  }

  .site-brand__name {
    font-size: 1.08rem;
  }

  .cluster-nav {
    grid-template-columns: 1fr;
    gap: var(--s-2);
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
  }

  .cluster-nav__group {
    padding-inline: var(--s-2);
  }

  .guide-hero__copy,
  .hub-hero__copy {
    padding: var(--s-6) var(--s-5);
  }

  .guide-hero h1 {
    max-width: 9ch;
  }

  .guide-hero__media,
  .hub-hero__media {
    min-height: 245px;
  }

  .media-caption {
    align-items: center;
    font-size: 0.78rem;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: var(--s-3);
  }

  .hub-grid,
  .topic-grid,
  .card-grid,
  .pillar-grid,
  .check-grid,
  .field-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .hubcard {
    min-height: 220px;
  }

  .topic-card {
    min-height: 160px;
  }

  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}


/* Doorway Branching Switcher in Site Header */
.doorway-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  margin-right: 12px;
}

.doorway-switch a {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-ink, #2C2621);
  text-decoration: none;
  background: rgba(44, 38, 33, 0.06);
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(44, 38, 33, 0.12);
  white-space: nowrap;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.doorway-switch a:hover {
  background: rgba(197, 155, 39, 0.15);
  border-color: var(--color-gold, #c59b27);
  color: var(--text-ink, #2C2621);
}

@media (max-width: 600px) {
  .doorway-switch {
    display: none; /* Accessible in expanded cluster-nav mobile menu */
  }
}


/* Human Field Guide navigation v3
   A single touch-first menu and page-aware bottom toolbar. */

body.aviary-human {
  padding-bottom: calc(92px + var(--safe-bottom));
}

body.menu-is-open {
  overflow: hidden;
}

.site-header[data-nav-enhanced="true"] {
  z-index: 80;
}

.site-header[data-nav-enhanced="true"] .site-header__inner {
  position: relative;
  z-index: 84;
}

.site-header[data-nav-enhanced="true"] .doorway-switch {
  display: none !important;
}

.site-header[data-nav-enhanced="true"] .menu-toggle {
  position: relative;
  display: inline-flex !important;
  min-width: 94px;
  padding-inline: var(--s-4);
  box-shadow: 0 6px 18px rgba(78, 62, 41, 0.08);
}

.site-header[data-menu-open="true"] .menu-toggle {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper-warm);
}

.site-menu-scrim {
  position: fixed;
  z-index: 81;
  inset: var(--site-header-height, 68px) 0 0;
  visibility: hidden;
  border: 0;
  opacity: 0;
  background: rgba(44, 38, 33, 0.34);
  cursor: pointer;
  transition: opacity 180ms var(--ease), visibility 180ms var(--ease);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.site-header[data-menu-open="true"] .site-menu-scrim {
  visibility: visible;
  opacity: 1;
}

.site-header[data-nav-enhanced="true"] .cluster-nav--enhanced {
  position: fixed;
  z-index: 83;
  top: calc(var(--site-header-height, 68px) + var(--s-2));
  right: max(var(--s-3), calc((100vw - var(--page)) / 2));
  display: block;
  width: min(780px, calc(100vw - (2 * var(--s-3))));
  max-height: calc(100dvh - var(--site-header-height, 68px) - var(--s-4) - var(--safe-bottom));
  margin: 0;
  padding: var(--s-4);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--gold-faint);
  border-radius: var(--r-tile);
  visibility: hidden;
  opacity: 0;
  background: var(--paper-warm);
  box-shadow: 0 30px 80px rgba(44, 38, 33, 0.24);
  pointer-events: none;
  transform: translateY(-10px) scale(0.985);
  transform-origin: top right;
  transition: opacity 180ms var(--ease), transform 180ms var(--ease), visibility 180ms var(--ease);
}

.site-header[data-menu-open="true"] .cluster-nav--enhanced {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.cluster-nav__heading {
  position: sticky;
  z-index: 2;
  top: calc(-1 * var(--s-4));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  margin: calc(-1 * var(--s-4)) calc(-1 * var(--s-4)) var(--s-3);
  padding: var(--s-4);
  border-bottom: 1px solid var(--gold-faint);
  background: rgba(251, 247, 237, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.cluster-nav__title-wrap {
  min-width: 0;
}

.cluster-nav__eyebrow,
.cluster-nav__title {
  display: block;
}

.cluster-nav__eyebrow {
  margin-bottom: 2px;
  color: var(--leaf);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.cluster-nav__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 2.3vw, 1.42rem);
  line-height: 1.2;
}

.cluster-nav__close {
  min-width: 72px;
  min-height: var(--tap);
  padding: var(--s-2) var(--s-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--paper-deep);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 750;
}

.cluster-nav__quick {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s-2);
  margin-bottom: var(--s-3);
}

.cluster-nav__quick-link,
.cluster-nav__branch-link {
  display: inline-flex;
  min-height: var(--tap);
  align-items: center;
  justify-content: center;
  padding: var(--s-2) var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--r-soft);
  background: var(--paper-deep);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}

.cluster-nav__quick-link--urgent {
  border-color: color-mix(in srgb, var(--danger) 42%, var(--line));
  color: var(--danger);
}

.cluster-nav__quick-link {
  gap: var(--s-2);
}

.cluster-nav__quick-link img {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 10px;
}

.cluster-nav__sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
}

.site-header[data-nav-enhanced="true"] .cluster-nav__group {
  min-width: 0;
  padding: var(--s-3);
  border: 1px solid var(--line);
  border-top: 3px solid var(--cluster-color, var(--gold));
  border-radius: var(--r-soft);
  background: var(--paper-deep);
}

.site-header[data-nav-enhanced="true"] .cluster-nav__group[data-cluster="supporting"] {
  --cluster-color: var(--gold);
  grid-column: 1 / -1;
}

.cluster-nav__group-heading {
  position: relative;
  display: grid;
  width: 100%;
  min-height: var(--tap);
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: var(--s-2);
  margin: 0 0 var(--s-2);
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: default;
  font: inherit;
  text-align: left;
}

.cluster-nav__group-icon {
  display: block;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border: 1px solid var(--gold-faint);
  border-radius: 50%;
  background: var(--paper-warm);
}

.cluster-nav__group-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cluster-nav__group-copy {
  display: block;
  min-width: 0;
}

.site-header[data-nav-enhanced="true"] .cluster-nav__label {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-transform: none;
}

.cluster-nav__note {
  display: block;
  margin: 3px 0 0;
  color: var(--ink-faint);
  font-size: 0.72rem;
  line-height: 1.35;
}

.site-header[data-nav-enhanced="true"] .cluster-nav__links {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-1);
}

.site-header[data-nav-enhanced="true"] .cluster-nav__group[data-cluster="supporting"] .cluster-nav__links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-header[data-nav-enhanced="true"] .cluster-nav__link {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2);
  border: 1px solid transparent;
  border-radius: var(--r-soft);
  color: var(--ink-soft);
  text-decoration: none;
}

.site-header[data-nav-enhanced="true"] .cluster-nav__link:hover,
.site-header[data-nav-enhanced="true"] .cluster-nav__link:focus-visible,
.site-header[data-nav-enhanced="true"] .cluster-nav__link[aria-current="page"],
.site-header[data-nav-enhanced="true"] .cluster-nav__link[aria-current="location"] {
  border-color: var(--gold-faint);
  background: var(--paper-warm);
  color: var(--ink);
  text-decoration: none;
}

.cluster-nav__icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  overflow: hidden;
  border: 1px solid var(--gold-faint);
  border-radius: 50%;
  background: var(--paper-warm);
}

.cluster-nav__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cluster-nav__copy,
.cluster-nav__destination,
.cluster-nav__description {
  display: block;
  min-width: 0;
}

.cluster-nav__destination {
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.2;
}

.cluster-nav__description {
  margin-top: 2px;
  color: var(--ink-faint);
  font-size: 0.69rem;
  font-weight: 600;
  line-height: 1.25;
}

.cluster-nav__branches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--gold-faint);
}

.cluster-nav__branches-label {
  margin-right: auto;
  color: var(--ink-faint);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contextbar,
.context-bar {
  z-index: 70;
  right: auto;
  bottom: var(--s-3);
  left: 50%;
  display: grid;
  width: min(760px, calc(100vw - (2 * var(--s-3))));
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-1);
  padding: var(--s-1);
  border: 1px solid var(--gold-faint);
  border-radius: calc(var(--r-soft) + var(--s-1));
  background: rgba(251, 247, 237, 0.94);
  box-shadow: 0 16px 40px rgba(44, 38, 33, 0.16);
  transform: translateX(-50%);
  transition: opacity 150ms var(--ease), transform 150ms var(--ease), visibility 150ms var(--ease);
}

body.menu-is-open .contextbar,
body.menu-is-open .context-bar {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
}

.contextbar .contextbar__control,
.context-bar .contextbar__control {
  display: flex;
  min-width: 0;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 6px 5px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-soft);
  background: var(--paper-warm);
  box-shadow: 0 1px 3px rgba(61, 52, 40, 0.08);
  color: var(--ink-soft);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1;
  text-align: center;
  text-decoration: none;
}

.contextbar .contextbar__control:hover,
.contextbar .contextbar__control:focus-visible,
.contextbar .contextbar__control[aria-current="page"],
.contextbar .contextbar__control[aria-current="location"],
.contextbar .contextbar__control[aria-pressed="true"],
.context-bar .contextbar__control:hover,
.context-bar .contextbar__control:focus-visible,
.context-bar .contextbar__control[aria-current="page"],
.context-bar .contextbar__control[aria-current="location"],
.context-bar .contextbar__control[aria-pressed="true"] {
  border-color: var(--gold);
  background: var(--paper-deep);
  color: var(--ink);
  text-decoration: none;
}

.contextbar__marker {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: var(--paper-deep);
  box-shadow: inset 0 0 0 3px var(--paper-warm);
}

.contextbar__icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 9px;
  object-fit: contain;
}

.contextbar__control[aria-current="page"] .contextbar__icon,
.contextbar__control[aria-current="location"] .contextbar__icon,
.contextbar__control[aria-pressed="true"] .contextbar__icon {
  filter: drop-shadow(0 2px 4px rgba(61, 52, 40, 0.14));
}

[data-context-kind="home"] .contextbar__marker {
  border-color: var(--sage);
  background: var(--sage);
}

[data-context-kind="care"] .contextbar__marker {
  border-color: var(--safe);
  background: var(--safe);
}

[data-context-kind="choose"] .contextbar__marker {
  border-color: var(--sage);
  background: var(--sage);
}

[data-context-kind="learn"] .contextbar__marker {
  border-color: var(--ochre);
  background: var(--ochre);
}

[data-context-kind="watch"] .contextbar__marker {
  border-color: var(--lavender);
  background: var(--lavender);
}

[data-context-kind="listen"] .contextbar__marker {
  border-color: var(--slate);
  background: var(--slate);
}

[data-context-kind="urgent"] .contextbar__marker {
  border-color: var(--danger);
  background: var(--danger);
}

[data-context-kind="back"] .contextbar__marker {
  border-radius: 2px;
  transform: rotate(45deg);
}

[data-context-kind="menu"] .contextbar__marker {
  width: 14px;
  height: 10px;
  border: 0;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  border-radius: 0;
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
  box-shadow: none;
}

.contextbar__label {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editorial-visual {
  overflow: hidden;
  margin: var(--s-5) 0 0;
  border: 1px solid var(--gold-faint);
  border-radius: var(--r-tile);
  background: var(--paper-warm);
  box-shadow: var(--shadow-soft);
}

.editorial-visual img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 680px;
  object-fit: cover;
}

@media (max-width: 720px) {
  .site-header[data-nav-enhanced="true"] .cluster-nav--enhanced {
    top: var(--site-header-height, 68px);
    right: 0;
    left: 0;
    width: 100%;
    max-height: calc(100dvh - var(--site-header-height, 68px) - var(--safe-bottom));
    border-right: 0;
    border-left: 0;
    border-radius: 0 0 var(--r-tile) var(--r-tile);
    transform: translateY(-12px);
  }

  .site-header[data-menu-open="true"] .cluster-nav--enhanced {
    transform: translateY(0);
  }

  .cluster-nav__sections {
    grid-template-columns: 1fr;
  }

  .cluster-nav__group-heading {
    padding-right: 32px;
    cursor: pointer;
  }

  .cluster-nav__group-heading::after {
    position: absolute;
    top: 50%;
    right: 4px;
    width: 9px;
    height: 9px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    content: "";
    transform: translateY(-70%) rotate(45deg);
    transition: transform 150ms var(--ease);
  }

  .cluster-nav__group[data-menu-expanded="true"] .cluster-nav__group-heading::after {
    transform: translateY(-25%) rotate(225deg);
  }

  .cluster-nav__group[data-menu-expanded="false"] .cluster-nav__links {
    display: none;
  }

  .site-header[data-nav-enhanced="true"] .cluster-nav__group[data-cluster="supporting"] {
    grid-column: auto;
  }

  .site-header[data-nav-enhanced="true"] .cluster-nav__group[data-cluster="supporting"] .cluster-nav__links {
    grid-template-columns: 1fr;
  }

  .cluster-nav__branches-label {
    width: 100%;
    margin-right: 0;
  }

  .cluster-nav__branch-link {
    flex: 1 1 140px;
  }

  .contextbar,
  .context-bar {
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--s-1) max(var(--s-1), var(--safe-left)) calc(var(--s-1) + var(--safe-bottom)) max(var(--s-1), var(--safe-right));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
    transform: none;
  }

  body.menu-is-open .contextbar,
  body.menu-is-open .context-bar {
    transform: translateY(8px);
  }

  .contextbar .contextbar__control,
  .context-bar .contextbar__control {
    min-height: 62px;
    font-size: 0.68rem;
  }

  .contextbar__label {
    display: -webkit-box;
    min-height: 2.2em;
    overflow: hidden;
    line-height: 1.1;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}

@media (max-width: 390px) {
  .site-brand__note {
    display: none;
  }

  .site-header[data-nav-enhanced="true"] .menu-toggle {
    min-width: 82px;
  }

  .cluster-nav__description {
    display: none;
  }

  .site-header[data-nav-enhanced="true"] .cluster-nav__link {
    min-height: 52px;
  }

  .contextbar .contextbar__control,
  .context-bar .contextbar__control {
    font-size: 0.64rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-menu-scrim,
  .site-header[data-nav-enhanced="true"] .cluster-nav--enhanced {
    transition: none;
  }
}

/* Human home visitor pathways */
.welcome-gateway {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(440px, 1.14fr);
  align-items: stretch;
  gap: var(--s-4);
  overflow: hidden;
  padding: var(--s-4);
  border: 1px solid var(--gold-faint);
  border-radius: var(--r-tile);
  background: var(--paper-warm);
  box-shadow: var(--shadow-soft);
}

.welcome-gateway::before,
.welcome-gateway::after {
  position: absolute;
  width: 280px;
  height: 86px;
  border: 1px solid var(--gold-faint);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 55%, var(--paper) 0 28%, transparent 29%),
    radial-gradient(circle at 53% 38%, var(--paper) 0 34%, transparent 35%),
    radial-gradient(circle at 75% 58%, var(--paper) 0 25%, transparent 26%),
    var(--paper-quiet);
  content: "";
  opacity: 0.34;
  pointer-events: none;
  animation: welcome-cloud-drift 24s linear infinite;
}

.welcome-gateway::before {
  top: 9%;
  left: -150px;
}

.welcome-gateway::after {
  right: -130px;
  bottom: 8%;
  animation-delay: -12s;
  animation-duration: 31s;
}

@keyframes welcome-cloud-drift {
  0% { transform: translate3d(-18px, 0, 0); }
  50% { transform: translate3d(58px, -5px, 0); }
  100% { transform: translate3d(128px, 0, 0); }
}

.welcome-gateway__copy,
.audience-grid {
  position: relative;
  z-index: 1;
}

.welcome-gateway__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(var(--s-5), 4vw, var(--s-7));
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--paper-glass);
}

.welcome-gateway h1 {
  max-width: 12ch;
  margin: var(--s-4) 0;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 5.4vw, 4.4rem);
  font-weight: 560;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.welcome-gateway__copy p {
  max-width: 38rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(var(--t-body), 1.7vw, 1.18rem);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
}

.audience-card {
  --path-color: var(--gold);
  display: grid;
  min-width: 0;
  min-height: 190px;
  align-content: center;
  justify-items: start;
  gap: var(--s-2);
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-top: 3px solid var(--path-color);
  border-radius: var(--r-card);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease), transform 180ms var(--ease);
}

.audience-card[data-cluster="choosing"] { --path-color: var(--sage); }
.audience-card[data-cluster="living"] { --path-color: var(--slate); }
.audience-card[data-cluster="discovering"] { --path-color: var(--ochre); }
.audience-card[data-cluster="experiencing"] { --path-color: var(--lavender); }

.audience-card:hover,
.audience-card:focus-visible {
  border-color: var(--path-color);
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.audience-card:active {
  transform: scale(0.985);
}

.audience-card__icon {
  display: block;
  width: 62px;
  height: 62px;
  overflow: hidden;
  border: 1.5px solid var(--gold);
  border-radius: 18%;
  background: var(--paper-warm);
}

.audience-card__icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.audience-card strong {
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 1.8vw, 1.24rem);
  font-weight: 650;
  line-height: 1.12;
}

.audience-card > span:last-child {
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.3;
}

.portal-section {
  scroll-margin-top: 92px;
}

.section-heading > p {
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-soft);
  background: var(--paper-warm);
}

@media (max-width: 920px) {
  .welcome-gateway {
    grid-template-columns: 1fr;
  }

  .welcome-gateway__copy {
    min-height: 240px;
  }

  .welcome-gateway h1 {
    max-width: 14ch;
  }
}

@media (max-width: 650px) {
  .welcome-gateway {
    gap: var(--s-2);
    padding: var(--s-2);
  }

  .welcome-gateway__copy {
    min-height: 0;
    padding: var(--s-5);
  }

  .welcome-gateway h1 {
    max-width: 11ch;
    margin-block: var(--s-3);
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .audience-grid {
    gap: var(--s-2);
  }

  .audience-card {
    min-height: 176px;
    padding: var(--s-3);
  }

  .audience-card__icon {
    width: 54px;
    height: 54px;
  }
}

@media (max-width: 360px) {
  .audience-card {
    min-height: 140px;
    aspect-ratio: 1;
  }

  .audience-card > span:last-child {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .welcome-gateway::before,
  .welcome-gateway::after {
    animation: none;
  }
}
