/* ────────────────────────────────────────────────────────────────
   OVERITE — inner pages (Ecosystem / Community / About / Resources)
   Extends css/home.css (tokens, topbar, reveals, motion props, reduced-motion).
   ──────────────────────────────────────────────────────────────── */

/* inner topbar — sits inside the page flow with a hairline under it */
.topbar--inner {
  border-bottom: 1px solid var(--ink-line);
  padding: clamp(18px, 2.4vw, 30px) var(--gutter);
}
.topbar--inner .topbar__links a[aria-current] {
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 3px;
}

/* page head — breadcrumb, oversized heading, lede */
.pagehead {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(48px, 7vh, 90px) var(--gutter) clamp(26px, 4vw, 60px);
}

.pagehead__crumbs {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.pagehead__crumbs a { color: var(--ink-faint); transition: color 0.3s var(--ease); }
.pagehead__crumbs a:hover { color: var(--accent); }
.pagehead__crumbs .sep { opacity: 0.6; }

.pagehead h1 {
  margin-top: 26px;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.6vw, 5rem);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.035em;
  text-wrap: balance;
  max-width: 20ch;
}
.pagehead h1 em {
  font-family: var(--font-accent);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
  color: var(--accent);
}
.pagehead .lede { max-width: 640px; margin-top: 24px; }

/* hairline status line under the head */
.pagehead__rule {
  height: 1px;
  margin: clamp(40px, 6vw, 70px) var(--gutter) 0;
  max-width: none;
  background: linear-gradient(90deg, var(--accent) 0%, var(--ink-line) 220px, var(--ink-line) 100%);
}

/* generic content wrap (below head) */
.sheet {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(56px, 7vw, 96px) var(--gutter);
}
.sheet--tight { padding-top: 0; }

/* section label rows */
.sheet .eyebrow { margin-bottom: 0; }
.sheet-head { margin-bottom: clamp(34px, 4.6vw, 60px); max-width: 780px; }
.sheet-head .heading { margin-top: 18px; font-size: clamp(1.9rem, 3.6vw, 3.3rem); }
.sheet-head .lede { margin-top: 16px; }

/* platform rows reuse .tracks/.track from home.css */

/* step / grid blocks reuse .challenges/.challenge from home.css */

/* editorial cards (audiences, beyond, values) */
.cards {
  display: grid;
  gap: clamp(26px, 3.4vw, 46px);
}
@media (min-width: 760px) {
  .cards--2 { grid-template-columns: 1fr 1fr; }
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .cards--4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  position: relative;
  padding: 26px 0 0;
  border-top: 1px solid var(--ink-line);
}
.card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 52px;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}
.card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.015em;
}
.card h4 {
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.card p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.card ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.card ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.card ul li::before {
  content: '·';
  color: var(--accent);
  font-weight: 700;
  line-height: 1.5;
}
.card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.card .card-link svg { width: 14px; height: 14px; color: var(--accent); transition: transform 0.35s var(--ease); }
.card .card-link:hover svg { transform: translateX(4px); }
.card .card-handle {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}

/* statement panel (CTA / closing) */
.panel {
  position: relative;
  margin-top: clamp(50px, 6.6vw, 90px);
  padding: clamp(36px, 5vw, 72px) clamp(22px, 4vw, 64px);
  text-align: center;
  border: 1px solid var(--ink-line);
  background:
    radial-gradient(60rem 22rem at 50% 0%, var(--accent-soft) 0%, transparent 70%),
    var(--bg);
  overflow: hidden;
}
.panel h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.9vw, 3.4rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
  max-width: 26ch;
  margin: 0 auto;
}
.panel p {
  margin: 18px auto 0;
  max-width: 52ch;
  font-size: 15px;
  line-height: 1.68;
  color: var(--ink-soft);
}
.panel__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 18px;
  margin-top: 30px;
}

/* metrics row */
.metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(26px, 3.4vw, 46px);
  border-top: 1px solid var(--ink-line);
}
@media (min-width: 760px) {
  .metrics { grid-template-columns: repeat(4, 1fr); }
}
.metric {
  padding: clamp(24px, 3vw, 40px) 0 0;
  text-align: left;
}
.metric__num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.4vw, 4.4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 247, 250, 0.3);
}
.metric:hover .metric__num { color: var(--accent); -webkit-text-stroke-color: transparent; text-shadow: 0 0 30px var(--accent-glow); }
.metric p {
  margin-top: 12px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* community channels board */
.board {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  border: 1px solid var(--ink-line);
  border-left: 0;
  border-right: 0;
  background: var(--ink-line);
}
@media (min-width: 700px) {
  .board { grid-template-columns: repeat(3, 1fr); }
}
.board__cell {
  display: grid;
  gap: 6px;
  padding: clamp(22px, 2.6vw, 34px);
  background: var(--bg-raise);
  transition: background-color 0.4s var(--ease);
}
a.board__cell { text-decoration: none; color: inherit; }
.board__cell:hover { background: var(--slate); }
.board__cell h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.board__cell span { font-size: 12.5px; color: var(--ink-faint); }
.board__cell small {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.board__cell--info {
  gap: 8px;
}
.board__cell--info p { font-size: 13px; line-height: 1.6; color: var(--ink-soft); }

/* form fields (dark editorial) */
.field {
  flex: 1;
  min-width: 0;
  padding: 0.85em 1.1em;
  border: 1px solid var(--ink-line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field::placeholder { color: var(--ink-faint); }
.field:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* resources table */
.res-browser {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.res-browser input {
  width: min(280px, 100%);
  background: var(--bg);
}

.res-wrap {
  margin-top: 26px;
  border: 1px solid var(--ink-line);
  overflow-x: auto;
}
.res-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.res-table th {
  padding: 16px 22px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--ink-line);
}
.res-table td {
  padding: 18px 22px;
  border-bottom: 1px solid rgba(244, 247, 250, 0.06);
  font-size: 14px;
  color: var(--ink-soft);
  vertical-align: top;
}
.res-table tr:last-child td { border-bottom: 0; }
.res-table tbody tr { transition: background-color 0.35s var(--ease); }
.res-table tbody tr:hover { background: rgba(244, 247, 250, 0.025); }
.res-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.res-cat { font-size: 12.5px; letter-spacing: 0.06em; color: var(--ink-soft); }
.res-link { color: var(--accent); font-weight: 600; font-size: 13.5px; }
.res-link:hover { color: var(--accent-lit); }
.res-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0.4em 0.9em;
  border-radius: 999px;
  border: 1px solid var(--ink-line);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.res-status--active { border-color: rgba(0, 166, 255, 0.35); color: var(--accent); }
.res-status--active::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 9px var(--accent-glow);
}
.res-status--soon { color: var(--ink-faint); }
.res-status--soon::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  border: 1px solid var(--ink-faint);
}
.res-status--gone { color: var(--ink-faint); text-decoration: line-through; }

.res-empty { padding: 56px 22px; text-align: center; }
.res-empty h3 { font-family: var(--font-display); font-size: 17px; color: var(--ink); }
.res-empty p { margin-top: 8px; font-size: 13.5px; color: var(--ink-soft); }

.skeleton {
  height: 14px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(244, 247, 250, 0.05), rgba(244, 247, 250, 0.11), rgba(244, 247, 250, 0.05));
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}
@keyframes shimmer {
  from { background-position: 180% 0; }
  to { background-position: -80% 0; }
}

/* filter pills */
.pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
}
.pills > span {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-right: 6px;
}
.pill {
  padding: 0.55em 1.15em;
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  background: none;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 550;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.pill:hover { border-color: var(--accent); color: var(--ink); }
.pill.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink, #04213a);
}

/* org structure — inverted tree, dark editorial */
.org-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 560px;
  margin: 0 auto;
}
.org-level { display: flex; justify-content: center; }
.org-node {
  width: min(340px, 100%);
  padding: 18px 24px;
  text-align: center;
  background: var(--bg-raise);
  border: 1px solid var(--ink-line);
  transition: border-color 0.4s var(--ease), background-color 0.4s var(--ease);
}
.org-node:hover { border-color: var(--accent); }
.org-node--crown {
  border-color: rgba(0, 166, 255, 0.4);
  background:
    radial-gradient(20rem 8rem at 50% 0%, var(--accent-soft) 0%, transparent 70%),
    var(--bg-raise);
}
.org-node--base {
  border-color: rgba(0, 166, 255, 0.55);
  background: var(--accent-soft);
}
.org-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.org-desc {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--ink-faint);
}
.org-node--base .org-desc { color: var(--ink-soft); }
.org-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.org-branch-line {
  width: 1px;
  height: 26px;
  background: var(--ink-line);
}
.org-branch-line::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 50%;
  translate: -50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}
.org-branch-line { position: relative; }

.org-note {
  margin: 30px auto 0;
  max-width: 56ch;
  font-size: 13.5px;
  line-height: 1.7;
  font-style: italic;
  color: var(--ink-faint);
  text-align: center;
}

/* inline marquee on About (real names in use) */
.marq-section { padding-left: 0; padding-right: 0; }
.marq-section .mq__label { margin-left: var(--gutter); }

/* reversed reveal for numbers grid */
.metric.reveal { will-change: opacity, transform; }
