/* ============================================================
   OrgSense — About page
   Builds on orgsense.css + sections.css (shared nav, footer,
   buttons, proof-band, reveals). About-specific sections only.
   ============================================================ */

/* ============================================================
   ABOUT HERO
   ============================================================ */
.about-hero .scroll-cue { bottom: -18px; }
.about-hero {
  position: relative;
  min-height: 86svh;
  display: flex;
  align-items: center;
  padding-top: 132px;
  padding-bottom: 72px;
  overflow: hidden;
}
.about-hero .hero-canvas {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%;
}
.about-hero .hero-canvas::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(78% 70% at 50% 36%, transparent 28%, var(--hero-fade) 100%);
  pointer-events: none;
}
.about-hero-inner { position: relative; z-index: 2; width: 100%; max-width: 920px; }
.about-hero h1 { margin: 22px 0 0; max-width: 15ch; }
.about-hero .lead { margin-top: 26px; max-width: 60ch; }

.ah-meta {
  margin-top: 46px;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  width: fit-content;
  max-width: 100%;
}
.ahm {
  padding: 18px 26px;
  border-right: 1px solid var(--line);
}
.ahm:last-child { border-right: 0; }
.ahm-v {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--text);
}
.ahm-v .u { color: var(--accent); }
.ahm-l {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-top: 9px;
}

/* ============================================================
   MISSION — large statement
   ============================================================ */
.mission .wrap-narrow { text-align: center; }
.mission-statement {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 50px);
  line-height: 1.14;
  letter-spacing: -.025em;
  text-wrap: balance;
  margin: 22px auto 0;
  max-width: 20ch;
}
.mission-statement .hl { color: var(--accent); }
.mission-sub {
  margin: 30px auto 0;
  max-width: 56ch;
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--text-soft);
  line-height: 1.62;
  text-wrap: pretty;
}

/* ============================================================
   TEAM — node constellation
   ============================================================ */
.team-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px 40px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.team-head .sec-head { max-width: 620px; }
.team-hint {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-mute);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 6px;
}
.team-hint .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
[data-team="grid"] .team-hint { opacity: 0; pointer-events: none; }

.team-main {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: clamp(28px, 4vw, 60px);
  /* anchor to the top so the square stage (and the OrgSense hub) stays put
     when switching between bios of different heights */
  align-items: start;
}

/* ---- stage ---- */
.team-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
}
.team-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }

.tnode {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  background: none;
  border: 0;
  padding: 0;
  transition: opacity .45s var(--ease);
  will-change: left, top;
}
.tn-photo {
  position: relative;
  width: clamp(94px, 14.5vw, 128px);
  height: clamp(94px, 14.5vw, 128px);
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: 0 0 0 1.5px var(--line-strong), var(--shadow-card);
  transition: box-shadow .45s var(--ease), transform .45s var(--ease);
}
.tn-photo img { width: 100%; height: 100%; object-fit: cover; }
.tn-photo .tn-mono {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 36px);
  letter-spacing: -.02em;
  color: #fff;
  background: linear-gradient(150deg, var(--accent), #b94e28);
}
.tn-ring {
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  opacity: 0;
  transform: scale(.86);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
  pointer-events: none;
}
.tn-label {
  text-align: center;
  transition: opacity .45s var(--ease);
}
.tn-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: -.01em;
  color: var(--text);
  white-space: nowrap;
}
.tn-role {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-top: 3px;
  white-space: nowrap;
}
/* person nodes interactive */
.tnode.is-person { cursor: pointer; }
.tnode.is-person:hover .tn-photo,
.tnode.is-person.active .tn-photo { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--accent), var(--shadow-float); }
.tnode.is-person.active .tn-ring { opacity: 1; transform: scale(1); animation: tn-pulse 2.6s var(--ease) infinite; }
@keyframes tn-pulse {
  0%, 100% { transform: scale(1); opacity: .9; }
  50% { transform: scale(1.12); opacity: .35; }
}
[data-motion="off"] .tnode.is-person.active .tn-ring { animation: none; }
/* dim non-active persons when one is active */
.team-main.has-active .tnode.is-person:not(.active) { opacity: .5; }

/* hub */
.tnode.is-hub { cursor: default; }
.tn-hub-disc {
  width: clamp(72px, 11vw, 98px);
  height: clamp(72px, 11vw, 98px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  box-shadow: 0 0 0 1px var(--line-strong), 0 24px 60px -26px rgba(16,42,51,.55);
}
[data-theme="dark"] .tn-hub-disc { background: var(--surface); box-shadow: 0 0 0 1px var(--line-strong), var(--shadow-float); }
.tn-hub-disc svg { width: 56%; height: 56%; }
.tn-hub-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-top: 2px;
}

/* ---- readout (active bio) ---- */
.team-people { position: relative; }
.person {
  display: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: clamp(28px, 3.4vw, 42px);
}
.person.active { display: block; animation: bio-in .6s var(--ease) both; }
[data-motion="off"] .person.active { animation: none; }
@keyframes bio-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.person-node { display: none; } /* avatar lives on the stage in constellation/orbit */
.person-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
.person-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 2.8vw, 38px);
  letter-spacing: -.03em;
  line-height: 1.04;
  margin: 14px 0 0;
}
.person-name em { font-style: normal; color: var(--text-mute); font-size: .62em; font-weight: 500; }
.person-role {
  font-size: 15px;
  color: var(--text-soft);
  margin-top: 10px;
}
.person-tagline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.4;
  letter-spacing: -.01em;
  color: var(--text);
  margin-top: 22px;
  text-wrap: pretty;
}
.person-body {
  font-size: 16px;
  color: var(--text-soft);
  line-height: 1.65;
  margin-top: 16px;
  max-width: 50ch;
  text-wrap: pretty;
}
.person-tags { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }

/* density */
[data-bio-density="condensed"] .person-body { display: none; }

/* ---- card grid layout (tweak) ---- */
.team-grid { display: none; }
[data-team="grid"] .team-main { display: block; }
[data-team="grid"] .team-stage { display: none; }
[data-team="grid"] .team-people {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: start;
}
[data-team="grid"] .person {
  display: block;
  animation: none;
}
[data-team="grid"] .person.active { animation: none; }
[data-team="grid"] .person-node {
  display: block;
  width: 92px; height: 92px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: 0 0 0 1.5px var(--line-strong);
  margin-bottom: 22px;
}
[data-team="grid"] .person-node img { width: 100%; height: 100%; object-fit: cover; }
[data-team="grid"] .person-node .tn-mono {
  width: 100%; height: 100%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 32px; color: #fff;
  background: linear-gradient(150deg, var(--accent), #b94e28);
}
[data-team="grid"] .person-name { font-size: clamp(22px, 2vw, 27px); }
[data-team="grid"] .person-tagline { font-size: 17px; }
[data-team="grid"] .person-body { max-width: none; font-size: 15px; }

/* ============================================================
   VALUES
   ============================================================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-top: clamp(36px, 5vw, 60px);
}
.value {
  background: var(--surface);
  padding: clamp(28px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.value-top { display: flex; align-items: center; gap: 16px; }
.value-ic {
  width: 46px; height: 46px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  display: grid; place-items: center;
  color: var(--accent);
  flex: none;
}
.value-ic svg { width: 22px; height: 22px; }
.value-idx {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--text-mute);
  margin-left: auto;
}
.value h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 1.9vw, 25px);
  letter-spacing: -.02em;
}
.value p { font-size: 15.5px; color: var(--text-soft); line-height: 1.6; max-width: 44ch; }

/* ============================================================
   RESEARCH — evidence band
   ============================================================ */
.research-band {
  background: var(--ink);
  color: var(--on-ink);
  border-radius: var(--radius-xl);
  padding: clamp(40px, 5.5vw, 76px);
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .research-band { background: var(--surface); border: 1px solid var(--line); }
.research-band .rb-glow {
  position: absolute; width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 65%);
  opacity: .22; bottom: -180px; left: -120px; filter: blur(18px);
}
.research-inner { position: relative; z-index: 1; }
.research-head { max-width: 640px; }
.research-band .eyebrow { color: rgba(244,241,233,.6); }
.research-band h2 { color: var(--on-ink); margin: 18px 0 0; }
.research-band .r-sub { color: rgba(244,241,233,.72); font-size: 17px; max-width: 54ch; margin-top: 18px; line-height: 1.6; }

.studies {
  margin-top: clamp(36px, 4vw, 52px);
  display: grid;
  gap: 1px;
  background: rgba(244,241,233,.13);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.study {
  background: var(--ink);
  display: grid;
  grid-template-columns: 168px 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 26px clamp(20px, 3vw, 36px);
}
[data-theme="dark"] .study { background: var(--surface); }
.study-n {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 3.4vw, 44px);
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--on-ink);
}
.study-n .u { color: var(--accent); font-size: .5em; }
.study-main .st-name { font-family: var(--font-display); font-weight: 500; font-size: 18.5px; color: var(--on-ink); letter-spacing: -.01em; }
.study-main .st-desc { font-size: 14px; color: rgba(244,241,233,.62); margin-top: 6px; line-height: 1.5; max-width: 52ch; }
.study-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(244,241,233,.7);
  border: 1px solid rgba(244,241,233,.22);
  border-radius: 999px;
  padding: 6px 12px;
  white-space: nowrap;
}
.study-tag.confidential { color: var(--accent); border-color: color-mix(in oklch, var(--accent) 50%, transparent); }
.research-total {
  margin-top: 30px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: rgba(244,241,233,.55);
}
.research-total b { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -.02em; color: var(--on-ink); }

/* ============================================================
   STORY — timeline
   ============================================================ */
.story-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.timeline { position: relative; margin-top: 8px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 13px; top: 8px; bottom: 8px;
  width: 1px;
  background: repeating-linear-gradient(var(--line-strong) 0 6px, transparent 6px 12px);
}
.tl-item { position: relative; padding: 0 0 36px 52px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute;
  left: 6px; top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--accent);
  display: grid; place-items: center;
}
.tl-dot::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.tl-year {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}
.tl-item h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(19px, 1.9vw, 24px);
  letter-spacing: -.02em;
  margin: 7px 0 8px;
}
.tl-item p { font-size: 15.5px; color: var(--text-soft); line-height: 1.6; max-width: 52ch; }

/* ============================================================
   LOCATION
   ============================================================ */
.location-band {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(36px, 4.5vw, 64px);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.location-copy h2 { margin: 18px 0 0; }
.location-copy p { color: var(--text-soft); font-size: 17px; line-height: 1.62; margin-top: 18px; max-width: 46ch; }
.location-coords {
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--text-mute);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
}
.location-coords .pin { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.location-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(60% 60% at 50% 50%, var(--accent-soft) 0%, transparent 70%),
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 30px 30px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 30px 30px,
    var(--surface-2);
  border: 1px solid var(--line);
  overflow: hidden;
}
.location-visual::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, var(--node-dim) 1.4px, transparent 1.5px);
  background-size: 30px 30px;
  opacity: .5;
  mask-image: radial-gradient(70% 70% at 50% 50%, #000 30%, transparent 80%);
}
.tt-map-wrap {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  height: 80%;
  aspect-ratio: 268 / 249;
  z-index: 1;
}
.tt-shape {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: fill;
}
.tt-shape.tt-dark { display: none; }
[data-theme="dark"] .tt-shape.tt-light { display: none; }
[data-theme="dark"] .tt-shape.tt-dark { display: block; }
.tt-marker-pin {
  position: absolute;
  left: 30%; top: 49%;
  width: 11px; height: 11px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  z-index: 2;
}
.tt-marker-pin::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .35;
  animation: tt-ping 2.4s var(--ease) infinite;
}
@keyframes tt-ping {
  0% { transform: scale(.7); opacity: .5; }
  70%, 100% { transform: scale(2.6); opacity: 0; }
}
[data-motion="off"] .tt-marker-pin::after { animation: none; opacity: 0; }
.tt-caption {
  position: absolute;
  left: clamp(16px, 5%, 26px);
  bottom: clamp(14px, 5%, 22px);
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .team-main { grid-template-columns: 1fr; gap: 40px; }
  .team-stage { max-width: 440px; }
  [data-team="grid"] .team-people { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .values-grid { grid-template-columns: 1fr; }
  .study { grid-template-columns: 96px 1fr; row-gap: 14px; }
  .study-tag { grid-column: 2; justify-self: start; }
  .story-grid { grid-template-columns: 1fr; gap: 32px; }
  .location-band { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ah-meta { width: 100%; }
  .ahm { flex: 1; padding: 16px; }
  .study { grid-template-columns: 1fr; }
  .study-tag { grid-column: 1; }
}
