/* ARSENALS — design system
   Ground : warm cream  #F6F3EC
   Ink    : naval navy  #13243D
   Type   : IBM Plex Mono
*/

:root {
  --cream:  #F6F3EC;
  --ink:    #13243D;
  --ink-60: rgba(19, 36, 61, 0.60);
  --ink-45: rgba(19, 36, 61, 0.45);
  --ink-30: rgba(19, 36, 61, 0.30);
  --hair:   rgba(19, 36, 61, 0.16);
  --card:   #FBFAF4;
  --logo-filter: none;
  --grid: transparent;

  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

/* ---- moods (toggled via html[data-mood]) ---- */
html[data-mood="deepsea"] {
  --cream:  #0B1422;
  --ink:    #EAF0F7;
  --ink-60: rgba(234, 240, 247, 0.60);
  --ink-45: rgba(234, 240, 247, 0.46);
  --ink-30: rgba(234, 240, 247, 0.30);
  --hair:   rgba(234, 240, 247, 0.16);
  --card:   rgba(255, 255, 255, 0.035);
  --logo-filter: brightness(0) invert(1);
  --grid: transparent;
}
html[data-mood="blueprint"] {
  --cream:  #DEE5EC;
  --ink:    #16263F;
  --ink-60: rgba(22, 38, 63, 0.60);
  --ink-45: rgba(22, 38, 63, 0.46);
  --ink-30: rgba(22, 38, 63, 0.30);
  --hair:   rgba(22, 38, 63, 0.18);
  --card:   rgba(255, 255, 255, 0.45);
  --logo-filter: none;
  --grid: rgba(22, 38, 63, 0.07);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--cream);
}

/* ---- entrance animations ---- */
@keyframes fxRise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fxWipe {
  from { clip-path: inset(0 100% 0 0); opacity: 0.25; }
  to   { clip-path: inset(0 0 0 0);   opacity: 1; }
}
.fx-rise { animation: fxRise .85s cubic-bezier(.2,.7,.2,1) both .5s; }
.fx-wipe { animation: fxWipe 1.05s cubic-bezier(.45,0,.18,1) both .08s; }
@media (prefers-reduced-motion: reduce) {
  .fx-rise, .fx-wipe { animation: none; }
}

/* ---- page ---- */
.page {
  width: 100%;
  min-height: 100dvh;
  background-color: var(--cream);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 44px 44px;
  color: var(--ink);
  font-family: var(--mono);
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  transition: background-color .45s, color .45s;
}

.tag {
  font-weight: 400;
  color: var(--ink-60);
  letter-spacing: 0.01em;
  margin: 0;
  cursor: default;
}

.flag {
  display: inline-block;
  vertical-align: -0.16em;
  border: 0.5px solid var(--hair);
  border-radius: 1px;
  overflow: hidden;
  flex: none;
  line-height: 0;
}

/* ---- footer ---- */
.footer {
  width: 100%;
  margin-top: auto;
  border-top: 1px solid var(--hair);
  font-size: 13px;
  color: var(--ink-60);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px 40px;
}
.footer .left  { justify-self: start; white-space: nowrap; }
.footer .mid   { justify-self: center; }
.footer .right { justify-self: end; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }

/* ---- supporter logos ---- */
.support { display: inline-flex; align-items: center; }
.support .logos {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 26px;
}
.support .lbl {
  position: absolute;
  right: 100%;
  margin-right: 22px;
  color: var(--ink-45);
  white-space: nowrap;
}
.support .logos > a:nth-child(1) { justify-self: end; }
.support .logos > a:nth-child(2) { justify-self: center; }
.support .logos > a:nth-child(3) { justify-self: start; }
.support img {
  display: block;
  opacity: 0.74;
  transition: opacity .2s;
  filter: brightness(0) saturate(100%) invert(10%) sepia(40%) saturate(900%) hue-rotate(184deg) brightness(96%) contrast(95%);
}
.support .sup-link { display: inline-flex; align-items: center; text-decoration: none; }
.support .sup-link:hover img { opacity: 1; }
html[data-mood="deepsea"] .support img { filter: brightness(0) invert(0.86); }

/* =====================================================================
   VARIATION A — Anchored
   ===================================================================== */
.vA { align-items: center; }

.vA .stage {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 5vh, 56px) 40px 0;
}

.vA .hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.vA .recruit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding-bottom: 28px;
}

.vA .wordmark-img {
  width: clamp(240px, 40vw, 560px);
  max-width: 84%;
  height: auto;
  display: block;
  filter: var(--logo-filter);
  transition: filter .45s;
}

.vA .tag {
  font-size: clamp(13px, 1.45vw, 18px);
  margin-top: clamp(4px, 1.4vh, 16px);
  text-align: center;
  white-space: nowrap;
}

.vA .cards { display: flex; flex-direction: column; gap: 18px; max-width: 92%; }

.vA-card {
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: 10px;
  padding: 22px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  font-size: 16px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 1px 0 rgba(19,36,61,.03);
  transition: transform .24s cubic-bezier(.2,.7,.2,1), box-shadow .24s, border-color .24s, background-color .45s;
}
.vA-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px -26px rgba(19,36,61,.5);
  border-color: var(--ink-30);
}

.vA-card-head { display: inline-flex; align-items: center; gap: 13px; width: 32ch; justify-content: space-between; }
.vA-card-meta { display: inline-flex; align-items: center; gap: 13px; }
.vA-card .rt   { font-weight: 500; }
.vA-card .pipe { color: var(--ink-30); }
.vA-card .loc  { display: inline-flex; align-items: center; gap: 9px; color: var(--ink-60); }
.vA-card .arrow {
  opacity: 0.4;
  color: var(--ink-60);
  font-size: 18px;
  margin-left: 2px;
  transition: opacity .24s, transform .24s, color .24s;
}
.vA-card:hover .arrow { opacity: 1; transform: translateX(5px); color: var(--ink); }

.vA .mailto {
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--ink-60);
  text-decoration: none;
  position: relative;
  transition: color .22s;
}
.vA .mailto::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -3px;
  height: 1px;
  background: var(--ink);
  transition: right .3s cubic-bezier(.2,.7,.2,1);
}
.vA .mailto:hover { color: var(--ink); }
.vA .mailto:hover::after { right: 0; }

/* ---- stance: manifest ---- */
html[data-stance="manifest"] .vA .stage {
  align-items: flex-start;
  padding-left: clamp(40px, 9vw, 140px);
  padding-right: clamp(40px, 9vw, 140px);
}
html[data-stance="manifest"] .vA .tag   { text-align: left; white-space: normal; }
html[data-stance="manifest"] .vA .cards { align-items: stretch; }
html[data-stance="manifest"] .vA-card  { justify-content: flex-start; }
html[data-stance="manifest"] .vA-card .arrow,
html[data-stance="manifest"] .vA-card:hover .arrow { margin-left: auto; }

/* ---- mobile ---- */
@media (max-width: 760px) {
  .vA .stage   { padding-bottom: 12px; }
  .vA .recruit { gap: 16px; padding-bottom: 18px; }
  .vA .tag     { white-space: normal; padding: 0 24px; }
  .vA .cards   { width: 100%; }

  .vA-card {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    font-size: 15px;
    padding: 18px 20px;
  }
  .vA-card-head, .vA-card-meta { justify-content: center; }
  .vA-card .loc  { font-size: 12.5px; gap: 7px; }
  .vA-card .locsep { margin: 0 1px; }
  .vA-card .flag { height: 14px !important; width: 21px !important; }
  .vA-card .arrow { opacity: 0.55; }

  .footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 14px;
    padding: 24px 24px 26px;
  }
  .footer .mid   { order: 1; justify-self: center; }
  .footer .right { order: 2; justify-self: center; white-space: nowrap; }
  .footer .left  { order: 3; justify-self: center; white-space: nowrap; color: var(--ink-45); }

  .support { justify-content: center; }
  .support .logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
  .support .lbl { position: static; margin: 0 0 4px; display: block; width: 100%; text-align: center; }
}
