/* navbar, about us and how it works */
:root { --brand: #28F1D6; --brand-ink: #062b24; }

/* navbar */
.topbar { gap: 16px; }
.brand { text-decoration: none; color: inherit; flex: none; }
.brand-logo { height: 34px; width: auto; display: block; }
.tabs { display: flex; gap: 4px; margin-left: auto; }
.tabs a { color: var(--muted); text-decoration: none; font-weight: 600; padding: 6px 12px; border-radius: 99px; white-space: nowrap; }
.tabs a:hover { color: var(--text); background: var(--line); }
.tabs a.on { color: var(--brand-ink); background: var(--brand); }
.tabs a:focus-visible, .brand:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* pages sit over the explorer */
.stage { flex: 1; display: flex; position: relative; min-height: 0; }
.page-wrap { position: absolute; inset: 0; z-index: 2000; overflow-y: auto; background: var(--bg); }
.page { max-width: 1120px; margin: 0 auto; padding: 32px 24px 40px; }
.page-hero { padding: 24px 0 8px; }
.page-hero h1 { font-size: clamp(28px, 4.5vw, 44px); line-height: 1.15; margin: 6px 0 14px; }
.hl { color: var(--brand); }
.page-lead { font-size: 17px; line-height: 1.6; color: #c7d3e6; max-width: 760px; margin: 0 0 18px; }
.page-section { padding: 28px 0 8px; }
.section-title { font-size: 24px; margin: 4px 0 18px; }
.page-footer { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 16px; }
.text-link { color: var(--brand); font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.page code { background: var(--panel); border: 1px solid var(--line); padding: 1px 6px; border-radius: 4px; }

.btn-primary, .btn-ghost { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 99px; font-weight: 700; text-decoration: none; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-primary svg, .btn-ghost svg { width: 18px; height: 18px; }

/* event + challenge cards */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 28px; }
.info-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.info-card h2 { margin: 6px 0 10px; font-size: 21px; }
.info-card p { color: #c7d3e6; line-height: 1.6; }
.info-card.accent { border-color: rgba(40, 241, 214, .45); background: linear-gradient(140deg, rgba(40, 241, 214, .12), var(--panel) 60%); }

.answer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.answer-grid > div { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.answer-grid strong { display: block; font-size: 16px; margin: 8px 0 4px; }
.answer-grid p { margin: 0; color: var(--muted); line-height: 1.55; }
.answer-icon { font-size: 26px; }

/* team cards */
.team-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.member { flex: 1 1 190px; max-width: 240px; display: flex; flex-direction: column; border-radius: 16px; outline: none; transition: transform .25s ease; }
.member-photo { position: relative; aspect-ratio: 1; margin: 0 10px -18px; z-index: 1; }
.member-blob { position: absolute; inset: 4% -2% -2% 8%; background: linear-gradient(135deg, var(--brand), #2563eb);
  opacity: .85; transition: transform .45s ease, opacity .3s; }
.member-photo img { position: relative; width: 88%; height: 88%; object-fit: cover; display: block; margin: 0 auto;
  filter: grayscale(1) contrast(1.05); transition: filter .35s ease, transform .35s ease, border-radius .45s ease; }
.member-card { flex: 1; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 28px 16px 16px;
  transition: background .3s ease, border-color .3s ease, color .3s ease; display: flex; flex-direction: column; }
.member-role { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--brand); transition: color .3s; }
.member-card h3 { margin: 4px 0 8px; font-size: 18px; }
.member-card p { margin: 0 0 14px; color: var(--muted); font-size: 13.5px; line-height: 1.55; flex: 1; transition: color .3s; }
.member-links { display: flex; gap: 8px; }
.member-links a { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px;
  background: var(--line); color: var(--text); transition: background .2s, color .2s, transform .2s; }
.member-links a:hover, .member-links a:focus-visible { transform: translateY(-2px); outline: none; }
.member-links svg { width: 17px; height: 17px; }

.member:hover, .member:focus-within { transform: translateY(-6px); }
.member:hover .member-photo img, .member:focus-within .member-photo img { filter: none; transform: scale(1.04); border-radius: 50% !important; }
.member:hover .member-blob, .member:focus-within .member-blob { transform: rotate(18deg) scale(1.06); opacity: 1; }
.member:hover .member-card, .member:focus-within .member-card { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.member:hover .member-role, .member:focus-within .member-role,
.member:hover .member-card p, .member:focus-within .member-card p { color: var(--brand-ink); }
.member:hover .member-links a, .member:focus-within .member-links a { background: var(--brand-ink); color: var(--brand); }
@media (hover: none) { .member-photo img { filter: none; } }
@media (prefers-reduced-motion: reduce) { .member, .member * { transition: none !important; } }

.reach p { color: #c7d3e6; max-width: 700px; line-height: 1.6; }
.reach p svg { width: 14px; height: 14px; vertical-align: -2px; color: var(--brand); }
.reach-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

/* how it works */
.quick-steps { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.quick-steps li { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 99px; padding: 6px 16px 6px 6px; font-weight: 600; }
.quick-steps span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); }

.how-steps { display: flex; flex-direction: column; gap: 22px; }
.how-step { display: grid; grid-template-columns: 5fr 7fr; gap: 26px; align-items: center; background: var(--panel);
  border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.how-step.flip .how-text { order: 2; }
.how-num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand);
  color: var(--brand-ink); font-weight: 800; font-size: 17px; }
.how-text h3 { font-size: 21px; margin: 10px 0 8px; }
.how-text p { color: #c7d3e6; line-height: 1.6; margin: 0 0 10px; }
.how-text ul { margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.55; }
.how-text li { margin-bottom: 6px; }
.how-shots { display: grid; gap: 12px; }
.how-shots.n2 { grid-template-columns: 1fr 1fr; }
.how-shots figure { margin: 0; text-align: center; }
.how-shots img { max-width: 100%; max-height: 480px; width: auto; display: block; margin: 0 auto; border-radius: 10px;
  border: 1px solid var(--line); background: #0b1325; }
.how-overview { display: block; width: 100%; margin-top: 26px; border-radius: 14px; border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45); }
.how-shots figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; }

@media (max-width: 900px) {
  .info-grid, .answer-grid { grid-template-columns: 1fr; }
  .how-step { grid-template-columns: 1fr; padding: 16px; }
  .how-step.flip .how-text { order: 0; }
}
@media (max-width: 700px) {
  .topbar { flex-wrap: wrap; gap: 8px; padding: 8px 16px; }
  .brand-logo { height: 28px; }
  .tabs { margin-left: 0; order: 3; width: 100%; overflow-x: auto; }
  .tabs a { padding: 6px 10px; }
  .page { padding: 20px 16px 32px; }
  .how-shots.n2 { grid-template-columns: 1fr; }
  .member { flex-basis: 150px; }
}
