/* ─── Human Page — Steel Blue redesign ─── */

/* ─── Color palette ─── */
/* --hbg:      #F5F0E8  warm ivory background  */
/* --htext:    #0A1628  near navy primary text  */
/* --hblue:    #185FA5  steel blue accent       */
/* --hblue-lt: #5B9BD5  electric blue highlight */
/* --hcard:    #FDFAF5  card background         */
/* --hborder:  #D4CFC8  card border             */

/* ─── Base page ─── */
body.page-human {
  background: #F5F0E8;
  color: #0A1628;
  min-height: 100vh;
}

/* ─── Top nav: THE HUMAN title (active, underlined) ─── */
.page-human .hum-nav__title {
  display: inline-flex;
  align-items: center;
  margin-right: auto;
  margin-left: 16px;
  padding-bottom: 3px;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #185FA5;
  white-space: nowrap;
  border-bottom: 2px solid #185FA5;
}

/* ─── Top nav: THE CATALYST → link (inactive, far right) ─── */
.page-human .hum-nav__catalyst {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(10, 22, 40, 0.55);
  white-space: nowrap;
  transition: color 0.2s;
}
.page-human .hum-nav__catalyst:hover { color: #0A1628; }

/* ─── Circular nav photo (mirrors catalyst structure) ─── */
.page-human .cat-nav__home {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  transition: opacity 0.2s;
}
.page-human .cat-nav__home__img {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid rgba(201, 169, 110, 0.35);
  transition: opacity 0.2s, transform 0.2s;
}
.page-human .cat-nav__home__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}
.page-human .cat-nav__home:hover .cat-nav__home__img { opacity: 0.78; transform: scale(1.05); }

/* ─── Section sub-nav ─── */
.human-subnav {
  position: fixed;
  top: 54px;
  left: 0; right: 0;
  height: 42px;
  background: rgba(245, 240, 232, 0.96);
  border-bottom: 1px solid #D4CFC8;
  display: flex;
  align-items: center;
  padding: 0 48px;
  z-index: 99;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.human-subnav::-webkit-scrollbar { display: none; }

.hsn-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: #8a7d6e;
  padding: 0 18px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.hsn-link:hover          { color: #0A1628; }
.hsn-link.active         { color: #185FA5; border-bottom-color: #185FA5; }

/* ─── Page layout ─── */
.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 118px 48px 120px;
}

/* ─── Page header ─── */
.page-header {
  margin-bottom: 72px;
  scroll-margin-top: 108px;
}

.page-eyebrow {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #185FA5;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.page-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: #185FA5;
  flex-shrink: 0;
}

.page-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 72px;
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: #0A1628;
  margin-bottom: 16px;
}
.page-name br { display: none; }

.page-sub {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #185FA5;
  line-height: 1.65;
  margin-bottom: 26px;
}

.human-intro {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.78;
  color: #0A1628;
  max-width: 660px;
}

/* ─── Sections ─── */
section {
  margin-bottom: 76px;
  scroll-margin-top: 108px;
}

/* ─── Section heading ─── */
.sh {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #185FA5;
  padding-bottom: 14px;
  margin-bottom: 28px;
  border-bottom: 1px solid #D4CFC8;
}

/* ─── Purpose: cause tags ─── */
.causes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.cause {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 400;
  padding: 7px 16px;
  border-radius: 20px;
  border: 1px solid #185FA5;
  color: #185FA5;
  background: rgba(24, 95, 165, 0.04);
  letter-spacing: 0.02em;
}

/* ─── Org cards ─── */
.org-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.org-card {
  display: block;
  text-decoration: none;
  background: #FDFAF5;
  border: 0.5px solid #D4CFC8;
  border-radius: 3px;
  padding: 20px 18px;
  transition: border-color 0.25s;
}
.org-card:hover { border-color: #5B9BD5; }
.org-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  font-weight: 500;
  color: #5B9BD5;
  margin-bottom: 7px;
}
.org-desc {
  font-size: 12px;
  color: rgba(10, 22, 40, 0.65);
  line-height: 1.6;
}

/* ─── Thinking: first principles block ─── */
.principles {
  background: #FDFAF5;
  border: 0.5px solid #D4CFC8;
  border-left: 2px solid #185FA5;
  border-radius: 3px;
  padding: 24px 28px;
  margin-bottom: 20px;
}
.principles p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-style: italic;
  font-weight: 400;
  color: #0A1628;
  line-height: 1.78;
}

.thinking-placeholder {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-style: italic;
  color: rgba(10, 22, 40, 0.38);
  padding-left: 4px;
}

/* ─── Community: gathering photo ─── */
.gathering-photo {
  margin: 0 0 32px;
  border-radius: 3px;
  overflow: hidden;
  line-height: 0;
}
.gathering-photo img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 3px;
}

/* ─── Events list ─── */
.events-list { list-style: none; }
.ev-item {
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 0 18px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid #D4CFC8;
}
.ev-item:last-child { border-bottom: none; }
.ev-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #185FA5;
  margin-top: 9px;
  flex-shrink: 0;
}
.ev-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  font-weight: 500;
  color: #0A1628;
  line-height: 1.25;
  margin-bottom: 3px;
}
.ev-detail {
  font-size: 11.5px;
  color: rgba(10, 22, 40, 0.58);
  letter-spacing: 0.02em;
  line-height: 1.55;
}

/* ─── Community: intro paragraph ─── */
.community-intro {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.75;
  color: rgba(10, 22, 40, 0.68);
  margin-bottom: 28px;
}

/* ─── Community: tier labels ─── */
.ev-tier-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(10, 22, 40, 0.40);
  margin-bottom: 4px;
}

/* ─── Community: tier divider ─── */
.ev-tier-divider {
  height: 1px;
  background: #D4CFC8;
  margin: 28px 0 32px;
}

/* ─── Community: name + role tag row ─── */
.ev-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 3px;
}
.ev-name-row .ev-name { margin-bottom: 0; }

/* ─── Community: role pill badge ─── */
.ev-role-tag {
  display: inline-flex;
  align-items: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #185FA5;
  background: rgba(24, 95, 165, 0.07);
  border: 1px solid rgba(24, 95, 165, 0.22);
  border-radius: 20px;
  padding: 3px 10px;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.4;
}

/* ─── Community: desktop/mobile content toggles ─── */
.ev-name--mobile  { display: none; }

/* ─── Community: inline year / location meta ─── */
.ev-meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: rgba(10, 22, 40, 0.40);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ─── Movement: activity grid ─── */
.activity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 10px;
}

.activity-card {
  background: #FDFAF5;
  border: 0.5px solid #D4CFC8;
  border-radius: 3px;
  overflow: hidden;
  transition: border-color 0.25s;
  padding: 20px 18px;
}
.activity-card:hover { border-color: #5B9BD5; }

/* Photo card (Aerial Silks, Snowboarder) */
.activity-card--photo {
  padding: 0;
}
.ac-photo {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
.ac-body {
  padding: 16px 18px 18px;
}

/* Globe-Trotter card (stacked column layout) */
.activity-card--globe {
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.ac-body--map-title {
  padding: 18px 20px 8px;
}
.ac-body--map {
  padding: 0 20px 18px;
}
#world-map {
  width: 100%;
  padding: 0 12px 12px;
}

/* Piano card (horizontal layout) */
.activity-card--piano {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
}
.activity-card--piano .ac-icon {
  font-size: 26px;
  flex-shrink: 0;
  margin-bottom: 0;
}

/* Wild Encounters card */
.activity-card--wild { display: flex; flex-direction: column; padding: 0; }

/* Aerial Silks card */
.activity-card--silks { display: flex; flex-direction: column; padding: 0; }

.ac-split-photos {
  display: flex;
}
.ac-split-photo {
  width: 50%;
  height: 100px;
  object-fit: cover;
  object-position: center;
  display: block;
  flex-shrink: 0;
}
.activity-card--silks .ac-split-photo:last-child { object-position: top; }

.ac-icon { font-size: 22px; margin-bottom: 10px; display: block; }

.ac-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  font-weight: 500;
  color: #5B9BD5;
  margin-bottom: 5px;
}
.ac-desc {
  font-size: 12px;
  color: rgba(10, 22, 40, 0.62);
  line-height: 1.6;
}

/* ─── Frames: side-by-side photos ─── */
.frames-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.frame-figure {
  margin: 0;
  border-radius: 3px;
  overflow: hidden;
  line-height: 0;
}
.frame-figure img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 3px;
  transition: transform 0.45s ease;
}
.frame-figure:hover img { transform: scale(1.025); }

/* ─── Contact links ─── */
.contact-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.cl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  max-width: 220px;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 40px;
  border: 1px solid rgba(24, 95, 165, 0.28);
  color: #185FA5;
  background: rgba(24, 95, 165, 0.07);
  white-space: nowrap;
  transition: background 0.22s, border-color 0.22s;
}
.cl:hover { background: rgba(24, 95, 165, 0.13); border-color: rgba(24, 95, 165, 0.45); }

.built-with {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(10, 22, 40, 0.30);
  text-align: center;
  margin-top: 40px;
  margin-bottom: 24px;
}

/* ─── Entrance animations ─── */
.page-header,
section,
.contact-links {
  animation: fadeUp 0.55s ease both;
}
.page-header           { animation-delay: 0.04s; }
section:nth-of-type(1) { animation-delay: 0.10s; }
section:nth-of-type(2) { animation-delay: 0.16s; }
section:nth-of-type(3) { animation-delay: 0.22s; }
section:nth-of-type(4) { animation-delay: 0.28s; }
section:nth-of-type(5) { animation-delay: 0.34s; }
.contact-links         { animation-delay: 0.40s; }

/* ─── Desktop ─── */
@media (min-width: 768px) {
  /* Contact buttons: full tile width, equal size */
  .contact-links { flex-wrap: nowrap; }
  .cl { flex: 1; max-width: none; }

  /* Match catalyst tabbar left alignment */
  .human-subnav { padding-left: 48px; }

  /* Uniform card photo heights */
  .ac-photo {
    height: 220px;
    max-height: none;
    object-fit: cover;
    object-position: center;
  }
  .ac-photo.ac-photo--snow  { object-position: center 60%; }

  /* Flex column so body fills remaining card height */
  .activity-card--photo { display: flex; flex-direction: column; }
  .activity-card--photo .ac-body { flex: 1; }

  /* Split photo heights (Aerial Silks + Wild Encounters) */
  .ac-split-photo { height: 220px; }

  /* Globe-Trotter: map fills card top like a photo header */
  #world-map { height: 220px; min-height: 220px; max-height: 220px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; margin: 0; padding: 0; background: #E8F0F8; border-bottom: 0.5px solid #D4CFC8; }
  #world-map svg { width: 100%; height: auto; max-height: 220px; display: block; }

  /* Globe-Trotter body matches Wild Encounters exactly */
  .activity-card--globe { display: flex; flex-direction: column; justify-content: flex-start; }
  .activity-card--globe .ac-body { flex: 1; padding: 16px 18px 18px; }


  /* Piano hidden on desktop */
  .activity-card--piano { display: none; }

  /* Frames hidden */
  #frames { display: none; }
}

/* ─── Mobile (≤767px) ─── */
@media (max-width: 767px) {
  /* Top nav: inline-block so underline only spans text width; add left spacing from photo */
  .page-human .hum-nav__title {
    display: inline-block;
    margin-left: 20px;
    vertical-align: middle;
    padding-bottom: 3px;
  }

  /* Top nav: match THE HUMAN's font style and vertical offset exactly */
  .page-human .hum-nav__catalyst {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.28em;
    padding-bottom: 3px;
  }

  /* Horizontally scrollable sub-nav */
  .human-subnav { padding: 0 16px; -webkit-overflow-scrolling: touch; }

  /* Contact buttons: one row, equal width, aligned with cards above */
  .contact-links { justify-content: flex-start; flex-wrap: nowrap; }
  .cl { flex: 1; max-width: none; }

  /* Community: meta always on its own line; pills stay beside the name */
  .ev-meta { display: block; width: 100%; }

  /* Community: swap event names only */
  .ev-name--desktop { display: none; }
  .ev-name--mobile  { display: inline; }

  /* Piano replaced by Wild Encounters on mobile */
  .activity-card--piano { display: none; }

  /* Split photo heights on mobile */
  .ac-split-photo { height: 180px; }

  /* Globe-Trotter map height matches split photos on mobile */
  #world-map { height: 180px; min-height: 180px; max-height: 180px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; margin: 0; padding: 0; }
  #world-map svg { width: 100%; height: auto; max-height: 180px; display: block; }

  /* Life in Frames redundant on mobile (photos live in Wild Encounters card) */
  #frames { display: none; }

  /* Single-column movement grid */
  .activity-grid { grid-template-columns: 1fr; }
}

/* ─── Mobile (≤640px) ─── */
@media (max-width: 640px) {
  .human-subnav { padding: 0 16px; }
  .page-content { padding: 108px 24px 80px; }
  .page-name    { font-size: 46px; }
  .page-name br { display: none; }

  .org-grid     { grid-template-columns: 1fr; }
  .activity-grid { grid-template-columns: 1fr; }
  .frames-grid  { grid-template-columns: 1fr; }

  /* Globe and Piano: un-span on mobile (single column) */
  .activity-card--globe { grid-column: auto; }
  .activity-card--piano { grid-column: auto; }

  .gathering-photo img  { height: 220px; }
}
