/* ============================================================
   sections.css — hero, mission, robot, team, journey,
   members, sponsors, join, footer
   ============================================================ */

/* ============================================================
   HERO
   ============================================================ */
.hero{
  position:relative;
  min-height:100svh;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  padding-block:calc(var(--nav-h) + 30px) clamp(26px, 4vh, 46px);
}
.hero-top{ width:100%; max-width:var(--maxw); margin-inline:auto; padding-inline:var(--gutter); }
.hero-mid{ width:100%; max-width:var(--maxw); margin-inline:auto; padding-inline:var(--gutter); }
.hero-bot{ width:100%; max-width:var(--maxw); margin-inline:auto; padding-inline:var(--gutter); }

.hero-badge{
  display:inline-flex; align-items:center; gap:12px;
  padding:8px 14px;
  border:1px solid var(--line-2);
  background:rgba(0,0,0,.35);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  font-family:var(--mono);
  font-size:.65rem;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--muted);
}
.hero-badge b{ color:var(--lime); font-weight:600; }
.hero-badge .sep{ width:1px; height:11px; background:var(--line-2); }

/* the wordmark: solid over outlined, bleeding to the edges */
.hero-title{ margin-block:clamp(14px,2.4vh,30px); }
.hero-title .l2{ margin-left:clamp(20px, 8vw, 180px); }

.hero-sub{
  font-size:clamp(1rem, 1.18vw, 1.2rem);
  color:var(--paper-2);
  max-width:min(44ch, 100%);
  line-height:1.62;
}
.hero-sub strong{ color:var(--lime); font-weight:600; }

.hero-ctas{ display:flex; gap:12px; flex-wrap:wrap; margin-top:clamp(22px,3vh,34px); }

.hero-bot{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:clamp(20px,4vw,60px);
  flex-wrap:wrap;
}
.hero-stats{
  display:flex;
  gap:clamp(24px, 4vw, 62px);
}
.hstat .k{
  display:block;
  font-family:var(--mono);
  font-size:.58rem;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:var(--muted-2);
  margin-bottom:6px;
}
.hstat .v{
  font-family:var(--display);
  font-weight:700;
  font-size:clamp(1.3rem, 2.1vw, 1.85rem);
  line-height:1;
  font-variant-numeric:tabular-nums;
}
.hstat .v.accent{ color:var(--lime); }

.scroll-cue{
  display:flex; align-items:center; gap:12px;
  font-family:var(--mono);
  font-size:.6rem;
  letter-spacing:.24em;
  text-transform:uppercase;
  color:var(--muted-2);
}
.scroll-cue .bar{ width:54px; height:1px; background:var(--line-2); position:relative; overflow:hidden; }
.scroll-cue .bar::after{
  content:""; position:absolute; inset:0;
  background:var(--lime);
  transform:translateX(-100%);
  animation:cue 2.4s var(--ease-io) infinite;
}
@keyframes cue{ 0%{ transform:translateX(-100%);} 55%,100%{ transform:translateX(100%);} }

@media (max-width:900px){
  .hero-title .l2{ margin-left:0; }
  .hero-bot{ flex-direction:column; align-items:flex-start; }
}

/* ============================================================
   MISSION
   ============================================================ */
.vcard{
  padding:clamp(26px,3vw,44px);
  display:flex;
  flex-direction:column;
  min-height:clamp(240px, 30vw, 330px);
}
.vcard .axis{
  position:absolute; top:18px; right:20px;
  font-family:var(--mono); font-size:.78rem; color:var(--muted-2);
}
.vcard .vlabel{
  font-family:var(--mono);
  font-size:.63rem;
  letter-spacing:.24em;
  text-transform:uppercase;
  color:var(--lime);
  margin-bottom:auto;
}
.vcard h3{ margin-block:22px 14px; }
.vcard p{ color:var(--muted); font-size:.95rem; max-width:44ch; }
.vcard .glyph{ margin-top:26px; width:100%; height:44px; overflow:visible; }

.glyph line{
  stroke-dasharray:260; stroke-dashoffset:260;
  transition:stroke-dashoffset 1.2s var(--ease) .25s;
}
.glyph path{ opacity:0; transition:opacity .35s var(--ease) 1.15s; }
.is-in .glyph line{ stroke-dashoffset:0; }
.is-in .glyph path{ opacity:1; }

.resultant{
  display:flex; align-items:center; justify-content:center;
  gap:16px; flex-wrap:wrap;
  padding:clamp(22px,3vw,34px);
  border:1px solid var(--line);
  background:linear-gradient(90deg, rgba(92,200,255,.06), transparent 45%, rgba(198,255,61,.07));
  font-family:var(--mono);
  font-size:.85rem;
  color:var(--muted);
  text-align:center;
}
.resultant b{ color:var(--lime); font-weight:600; letter-spacing:.08em; }

/* ============================================================
   ROBOT — the 3D takes the whole viewport here, so the chapter
   is mostly empty on purpose: content hugs the edges.
   ============================================================ */
.robot-bay{
  min-height:190vh;            /* long enough for the explode to play out */
  padding-block:var(--bay);
}
.robot-sticky{
  position:sticky;
  top:0;
  min-height:100svh;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  padding-block:calc(var(--nav-h) + 24px) clamp(24px,4vh,44px);
  pointer-events:none;
}
.robot-sticky > *{ pointer-events:auto; }

.robot-head{ max-width:min(46ch, 46vw); }
.robot-head .label{ margin-bottom:20px; }
.robot-head h2{ margin-bottom:18px; }

/* drag surface sits over the whole sticky frame */
.orbit-zone{
  position:absolute; inset:0;
  z-index:1;
  pointer-events:auto;
  touch-action:pan-y;
}
.robot-head, .specs, .stage-meta{ position:relative; z-index:2; }

.specs{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(160px, 1fr));
  gap:0 clamp(18px,2.4vw,40px);
  border-top:1px solid var(--line);
  padding-top:20px;
  max-width:min(720px, 92vw);
  margin-left:auto;
}
.spec{
  display:flex; flex-direction:column; gap:5px;
  padding-block:13px;
  border-bottom:1px solid var(--line);
}
.spec .k{
  font-family:var(--mono);
  font-size:.57rem;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:var(--muted-2);
}
.spec .v{ font-size:.92rem; color:var(--paper); }
.spec .v.ok{ color:var(--lime); }

.stage-meta{
  display:flex; justify-content:space-between; align-items:flex-end;
  gap:20px; flex-wrap:wrap;
  font-family:var(--mono);
  font-size:.6rem;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--muted-2);
}
.stage-hint{ transition:opacity .5s var(--ease); }
.stage-hint.is-off{ opacity:0; }

.no-webgl .robot-bay{ min-height:0; }
.no-webgl .robot-sticky{ position:static; min-height:0; }
.webgl-note{ display:none; }
.no-webgl .webgl-note{
  display:block;
  margin-block:26px;
  padding:20px;
  border:1px solid var(--line);
  color:var(--muted);
  font-family:var(--mono);
  font-size:.75rem;
}

@media (max-width:900px){
  .robot-bay{ min-height:150vh; }
  .robot-head{ max-width:none; }
  .specs{ margin-left:0; }
}

/* ============================================================
   TEAM
   ============================================================ */
.teams{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);
  gap:clamp(24px,4vw,70px);
  align-items:start;
}
.team-list{ display:flex; flex-direction:column; border-top:1px solid var(--line); }
.team-btn{
  position:relative;
  display:flex; align-items:baseline; gap:16px;
  width:100%; text-align:left;
  padding:clamp(16px,2vw,24px) 8px;
  border-bottom:1px solid var(--line);
  color:var(--muted);
  transition:color .4s var(--ease), padding-left .4s var(--ease);
}
.team-btn .n{ font-family:var(--mono); font-size:.63rem; letter-spacing:.16em; color:var(--muted-2); transition:color .4s var(--ease); }
.team-btn .t{
  font-family:var(--display);
  font-weight:700;
  font-size:clamp(1.05rem, 1.8vw, 1.5rem);
  letter-spacing:-.025em;
  text-transform:uppercase;
}
.team-btn .mark{
  margin-left:auto; width:18px; height:1px; background:currentColor;
  opacity:0; transform:translateX(-10px);
  transition:opacity .4s var(--ease), transform .4s var(--ease);
}
.team-btn:hover{ color:var(--paper); padding-left:14px; }
.team-btn.is-on{ color:var(--lime); padding-left:14px; }
.team-btn.is-on .n{ color:var(--lime); }
.team-btn.is-on .mark{ opacity:1; transform:translateX(0); }

.team-panel{ position:relative; min-height:clamp(300px, 38vw, 420px); padding:clamp(26px,3vw,46px); }
.team-body{ opacity:0; transform:translateY(16px); transition:opacity .5s var(--ease), transform .5s var(--ease); }
.team-body.is-on{ opacity:1; transform:none; }
.team-body:not(.is-on){ position:absolute; inset:clamp(26px,3vw,46px); pointer-events:none; }
.team-body .idx{
  display:block;
  font-family:var(--display);
  font-weight:700;
  font-size:clamp(3.4rem, 9vw, 7rem);
  line-height:.78;
  letter-spacing:-.05em;
  color:transparent;
  -webkit-text-stroke:1px var(--line-2);
  margin-bottom:22px;
}
.team-body h3{ margin-bottom:14px; }
.team-body p{ color:var(--muted); max-width:48ch; margin-bottom:24px; }
.chips{ display:flex; flex-wrap:wrap; gap:8px; }
.chip{
  font-family:var(--mono);
  font-size:.6rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--cyan);
  border:1px solid rgba(92,200,255,.28);
  background:rgba(92,200,255,.07);
  padding:6px 11px;
}
@media (max-width:900px){
  .teams{ grid-template-columns:1fr; }
  .team-panel{ min-height:0; }
  .team-body:not(.is-on){ display:none; }
}

/* ============================================================
   JOURNEY — vertical timeline whose spine fills as you scroll
   ============================================================ */
.timeline{
  position:relative;
  padding-left:clamp(26px, 4vw, 54px);
}
/* the unfilled track */
.timeline::before{
  content:"";
  position:absolute;
  left:0; top:9px; bottom:9px;
  width:1px;
  background:var(--line);
}
/* the filled portion, driven by js/scroll.js */
.timeline .spine{
  position:absolute;
  left:0; top:9px;
  width:1px;
  height:0;
  background:linear-gradient(180deg, var(--cyan), var(--lime));
  box-shadow:0 0 14px rgba(198,255,61,.45);
  will-change:height;
}

.tl-item{
  position:relative;
  padding-bottom:clamp(42px, 5.5vw, 78px);
}
.tl-item:last-child{ padding-bottom:0; }

/* node on the spine */
.tl-item::before{
  content:"";
  position:absolute;
  left:calc(-1 * clamp(26px, 4vw, 54px) - 5px);
  top:9px;
  width:11px; height:11px;
  border-radius:50%;
  background:var(--black);
  border:1px solid var(--line-2);
  transition:border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.tl-item.is-in::before{
  border-color:var(--lime);
  box-shadow:0 0 0 4px rgba(198,255,61,.13);
}

.tl-coord{
  display:inline-block;
  font-family:var(--mono);
  font-size:.65rem;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--lime);
  margin-bottom:12px;
}
.tl-item h3{ margin-bottom:12px; }
.tl-item p{ color:var(--muted); font-size:.95rem; max-width:60ch; }

/* ============================================================
   MEMBERS
   ============================================================ */
.members{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(160px,1fr));
  gap:1px;
  background:var(--line);
  border:1px solid var(--line);
}
.member{
  background:var(--void);
  padding:clamp(16px,1.6vw,22px);
  display:flex; flex-direction:column; gap:16px;
  transition:background .4s var(--ease);
}
.member:hover{ background:var(--surface-2); }
.member-photo{
  aspect-ratio:1/1;
  overflow:hidden;
  background:var(--surface-2);
  border:1px solid var(--line-2);
}
.member-photo img{
  width:100%; height:100%; object-fit:cover;
  transition:transform .5s var(--ease);
}
.member:hover .member-photo img{ transform:scale(1.04); }
.member-meta{ display:flex; flex-direction:column; gap:4px; }
.member-meta h4{ text-transform:uppercase; transition:color .4s var(--ease); }
.member:hover .member-meta h4{ color:var(--lime); }

/* ============================================================
   SPONSORS
   ============================================================ */
.sponsor-slots{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(150px,1fr));
  gap:1px;
  background:var(--line);
  border:1px solid var(--line);
  margin-bottom:clamp(30px,4vw,58px);
}
.slot{
  background:var(--void);
  aspect-ratio:16/9;
  display:grid; place-items:center;
  padding:14px; text-align:center;
  font-family:var(--mono); font-size:.62rem;
  letter-spacing:.14em; color:var(--muted-2);
  transition:background .4s var(--ease), color .4s var(--ease);
}
.slot:hover{ background:var(--surface-2); color:var(--lime); }
.slot img{ max-width:100%; max-height:100%; object-fit:contain; }

.tiers{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.tier{ padding:clamp(26px,2.6vw,36px); display:flex; flex-direction:column; }
.tier .lvl{
  font-family:var(--mono); font-size:.61rem;
  letter-spacing:.22em; text-transform:uppercase;
  color:var(--lime); margin-bottom:14px;
}
.tier h4{
  font-family:var(--display); font-weight:700;
  font-size:clamp(1.3rem,2vw,1.7rem);
  text-transform:uppercase; letter-spacing:-.03em;
  margin-bottom:20px;
}
.tier ul{ display:flex; flex-direction:column; gap:10px; }
.tier li{ color:var(--muted); font-size:.88rem; display:flex; gap:11px; align-items:flex-start; }
.tier li::before{
  content:""; width:5px; height:5px; margin-top:.55em; flex-shrink:0;
  background:var(--lime); transform:rotate(45deg);
}
.tier-3{ border-color:var(--lime-soft); background:linear-gradient(168deg, rgba(100,181,27,.11), rgba(6,7,11,.7)); }
@media (max-width:860px){ .tiers{ grid-template-columns:1fr; } }

/* ============================================================
   JOIN
   ============================================================ */
.contact-line{
  display:flex; align-items:baseline; justify-content:space-between; gap:18px;
  padding:18px 0;
  border-bottom:1px solid var(--line);
  font-size:.95rem;
}
.contact-line .k{
  font-family:var(--mono); font-size:.61rem;
  letter-spacing:.2em; text-transform:uppercase; color:var(--muted-2);
}
.contact-line .v{ text-align:right; color:var(--paper-2); }
.join-card{ padding:clamp(26px,3vw,40px); }
.join-card p{ color:var(--muted); font-size:.92rem; margin-bottom:24px; }
.join-actions{ display:flex; flex-direction:column; gap:12px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer{
  position:relative;
  border-top:1px solid var(--line);
  padding-top:clamp(40px,5vw,72px);
  margin-top:var(--bay);
  overflow:hidden;
}
.footer-word{
  font-family:var(--display);
  font-weight:700;
  font-size:clamp(3.4rem, 19vw, 19rem);
  line-height:.76;
  letter-spacing:-.055em;
  text-transform:uppercase;
  color:transparent;
  -webkit-text-stroke:1px var(--line-2);
  text-align:center;
  user-select:none;
  margin-bottom:clamp(22px,3vw,40px);
  transition:-webkit-text-stroke-color .7s var(--ease);
}
.footer:hover .footer-word{ -webkit-text-stroke-color:var(--lime-soft); }
.footer-bar{
  display:flex; align-items:center; justify-content:space-between;
  flex-wrap:wrap; gap:16px;
  padding-block:24px;
  border-top:1px solid var(--line);
  font-family:var(--mono);
  font-size:.65rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--muted-2);
}
.footer-bar a{ transition:color .25s var(--ease); }
.footer-bar a:hover{ color:var(--lime); }
.footer-links{ display:flex; gap:22px; flex-wrap:wrap; }
