/* ==========================================================
   Kingdom Wars — recruitment site
   Palette: soot black + blood crimson + Nephesh gold,
   matching the crimson-grunge look of the in-game UI
   ========================================================== */

/* Fonts are self-hosted: no requests to Google, visitor IPs stay on this server */
@font-face { font-family: "Cinzel"; src: url("/fonts/cinzel.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("/fonts/as-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("/fonts/as-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("/fonts/as-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --night: #0c0908;      /* page background: warm soot black */
  --deep: #161110;       /* raised surfaces */
  --deep-2: #201716;     /* hover / inputs */
  --crimson: #7d1a17;    /* secondary accent: banners, borders, glow */
  --crimson-hi: #a8291f;
  --line: rgba(212, 162, 76, 0.18);
  --line-strong: rgba(212, 162, 76, 0.45);
  --gold: #d4a24c;
  --gold-hi: #f0cf7a;
  --gold-lo: #9c6f25;
  --ink: #e6e1d6;        /* body text */
  --ash: #9b8f85;        /* secondary text */
  --ember: #d0553a;      /* errors / warnings only */

  --font-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-body: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;

  --measure: 68ch;
  --wrap: 1120px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 68px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .8 0 0 0 0 .7 0 0 0 0 .6 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }

a { color: var(--gold-hi); text-underline-offset: 3px; }
a:hover { color: #fff; }

:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--gold);
  color: var(--night);
  padding: .5rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 8px; }

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .6em;
  color: var(--ink);
}
h2 { font-size: clamp(1.75rem, 4vw, 2.6rem); letter-spacing: .02em; }
h3 { font-size: 1.25rem; letter-spacing: .02em; }
p { margin: 0 0 1em; max-width: var(--measure); }

.gold-text {
  background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 55%, var(--gold-lo) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .75rem 1.6rem;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-decoration: none;
  border: 1px solid var(--gold);
  border-radius: 2px;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--gold); color: var(--night); }
.btn-primary:hover { background: var(--gold-hi); border-color: var(--gold-hi); color: var(--night); }
.btn-ghost { background: transparent; color: var(--gold-hi); }
.btn-ghost:hover { background: rgba(212, 162, 76, .1); color: var(--gold-hi); }

/* ---------- Header / nav ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 50;
  transition: background-color .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid,
.site-header.is-open {
  background: rgba(12, 9, 8, .92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--line);
}
.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: .12em;
  font-size: 1rem;
}
.brand img { width: 30px; height: 30px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ash);
  text-decoration: none;
  font-size: 1rem;
  transition: color .2s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--gold-hi); }
.nav-links .btn { min-height: 40px; padding: .5rem 1.1rem; font-size: .85rem; color: var(--night); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--gold-hi);
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  margin: 0 auto;
  position: relative;
  transition: transform .25s, opacity .25s;
}
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.is-open .nav-toggle span { background: transparent; }
.is-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.is-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem var(--gutter) 1.5rem;
    background: rgba(12, 9, 8, .97);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .is-open .nav-links { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border-bottom: 0; padding-top: 1rem; }
  .nav-links a { display: block; padding: .9rem 0; font-size: 1.1rem; }
  .nav-links .btn { width: 100%; min-height: 48px; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 10rem;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  /* the glow behind the emblem, as in the studio logo */
  content: "";
  position: absolute;
  left: 50%;
  top: 38%;
  width: min(900px, 140vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle, rgba(212, 162, 76, .17) 0%, rgba(212, 162, 76, .05) 28%, transparent 55%),
    radial-gradient(circle, rgba(125, 26, 23, .35) 0%, rgba(125, 26, 23, .12) 40%, transparent 68%);
  z-index: -1;
}
.hero::after {
  /* vignette so the edges fall into night */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 70%, rgba(125, 26, 23, .18) 100%),
    radial-gradient(ellipse at 50% 40%, transparent 40%, var(--night) 95%);
  z-index: -1;
  pointer-events: none;
}

#embers {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-inner { max-width: 1040px; }

.hero-emblem {
  width: clamp(88px, 14vw, 128px);
  height: auto;
  margin: 0 auto 2rem;
  filter: drop-shadow(0 0 28px rgba(212, 162, 76, .45));
}

.hero-studio {
  font-family: var(--font-display);
  font-size: .8rem;
  letter-spacing: .45em;
  color: var(--ash);
  margin: 0 auto 1rem;
  max-width: none;
}

.hero-title {
  font-size: clamp(2.9rem, 7.6vw, 5.75rem);
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.05;
  padding-bottom: .12em; /* keeps descenders inside the gradient clip */
  margin: 0 0 1.25rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .4rem .9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: .9rem;
  color: var(--gold-hi);
  background: rgba(12, 9, 8, .6);
  margin-bottom: 1.75rem;
}
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(212, 162, 76, .6);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(212, 162, 76, .55); }
  70% { box-shadow: 0 0 0 9px rgba(212, 162, 76, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 162, 76, 0); }
}

@media (max-width: 600px) { .hero-title { font-size: 13vw; } }

.hero-pitch {
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  color: var(--ink);
  margin: 0 auto 2.25rem;
  max-width: 32em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .9rem;
}
@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; }
}

.scroll-cue {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: block;
  width: 30px;
  opacity: .9;
  filter: drop-shadow(0 0 10px rgba(212, 162, 76, .45));
  animation: sword-bob 2.6s ease-in-out infinite;
}
.scroll-cue svg { display: block; width: 100%; height: auto; }
.scroll-cue:hover { opacity: 1; }
@keyframes sword-bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 12px); }
}
@media (max-width: 600px) { .scroll-cue { width: 22px; bottom: .75rem; } }

/* ---------- Sections ---------- */

.section {
  padding: clamp(4.5rem, 10vw, 7.5rem) 0;
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, rgba(168, 41, 31, .5) 30%, var(--line-strong) 50%, rgba(168, 41, 31, .5) 70%, transparent) 1;
}
.section-head { margin-bottom: 2.5rem; }
.section-head p { color: var(--ash); }

.placeholder-note {
  border: 1px dashed var(--line-strong);
  padding: 1.25rem 1.5rem;
  color: var(--ash);
  max-width: var(--measure);
}

/* ---------- Image slots (drop your own screenshots later) ---------- */

.img-slot {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px dashed var(--line-strong);
  background:
    repeating-linear-gradient(135deg, rgba(212, 162, 76, .035) 0 12px, transparent 12px 24px),
    var(--deep);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
  color: var(--ash);
  font-size: .9rem;
}
.img-slot code {
  display: block;
  margin-top: .3rem;
  color: var(--gold);
  font-size: .8rem;
  word-break: break-all;
}

/* ---------- Page header (gallery / team) ---------- */

.page-head {
  padding: calc(var(--header-h) + clamp(3rem, 8vw, 5rem)) 0 2.5rem;
  position: relative;
}
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(212, 162, 76, .1), transparent 60%);
  pointer-events: none;
}
.page-head h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
.page-head p { color: var(--ash); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 2.5rem;
  color: var(--ash);
  font-size: 1rem;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: .9rem;
}
.footer-brand img { width: 44px; height: 44px; }
.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  letter-spacing: .3em;
  color: var(--gold);
  font-weight: 600;
}
.footer-brand span { font-size: .85rem; letter-spacing: .25em; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.footer-links a { color: var(--ink); text-decoration: none; }
.footer-links a:hover { color: var(--gold-hi); }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: .9rem;
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Gallery grid ---------- */

.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1rem;
}

/* ==========================================================
   Step 2 — content sections
   ========================================================== */

.lead { font-size: 1.3rem; color: var(--ink); }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

.facts { margin: 0; border-top: 1px solid var(--line); }
.facts > div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
}
.facts dt { color: var(--gold); font-family: var(--font-display); font-size: .9rem; letter-spacing: .04em; padding-top: .15rem; }
.facts dd { margin: 0; }
.facts-wide { max-width: 40rem; }
@media (max-width: 480px) { .facts > div { grid-template-columns: 1fr; gap: .2rem; } }

/* The loop: a real cycle, so it's numbered and arrows point to the next step */
.loop-title { margin-top: clamp(3rem, 7vw, 5rem); color: var(--gold-hi); }
.loop {
  list-style: none;
  counter-reset: loop;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.75rem;
  position: relative;
}
.loop li {
  counter-increment: loop;
  position: relative;
  padding-top: 3.25rem;
}
.loop li::before {
  content: counter(loop);
  position: absolute;
  top: 0;
  left: 0;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-family: var(--font-display);
  color: var(--gold-hi);
  background: var(--night);
  z-index: 1;
}
.loop li::after {
  /* line to the next step */
  content: "";
  position: absolute;
  top: 1.2rem;
  left: 2.4rem;
  right: -1.75rem;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), var(--line));
}
.loop li:last-child::after {
  /* last step curls back to the first: shown as a return mark */
  content: "↺";
  background: none;
  right: auto;
  left: 2.9rem;
  top: .35rem;
  height: auto;
  color: var(--gold);
  font-size: 1.3rem;
}
.loop strong { display: block; font-family: var(--font-display); font-size: 1.1rem; margin-bottom: .35rem; }
.loop span { color: var(--ash); font-size: 1rem; line-height: 1.5; display: block; }

@media (max-width: 860px) {
  .loop { grid-template-columns: 1fr; gap: 0; }
  .loop li { padding: 0 0 1.75rem 3.5rem; }
  .loop li::after { top: 2.4rem; bottom: 0; left: 1.2rem; right: auto; width: 1px; height: auto; background: var(--line-strong); }
  .loop li:last-child::after { top: 2.7rem; left: .75rem; bottom: auto; width: auto; }
}

/* What's built: a ledger of systems with status */
.legend { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-top: 1rem; }
.status {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .8rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--ash);
}
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; flex: none; }
.status-done { color: var(--gold-hi); }
.status-done::before { background: var(--gold); box-shadow: 0 0 8px rgba(212, 162, 76, .6); }
.status-wip { color: #d9897c; }
.status-wip::before { border: 1.5px solid var(--crimson-hi); background: rgba(168, 41, 31, .35); }

.ledger {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--deep), rgba(22, 17, 16, .4));
}
.ledger-group { padding: clamp(1.25rem, 3vw, 2rem); border-bottom: 1px solid var(--line); }
.ledger-group:nth-child(odd) { border-right: 1px solid var(--line); }
.ledger-group:nth-last-child(-n+2) { border-bottom: 0; }
.ledger-group h3 { color: var(--gold-hi); margin-bottom: 1rem; }
.ledger ul { list-style: none; margin: 0; padding: 0; }
.ledger li {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: .75rem;
  align-items: baseline;
  padding: .5rem 0;
  border-top: 1px solid rgba(212, 162, 76, .08);
}
.ledger li:first-child { border-top: 0; }
@media (max-width: 760px) {
  .ledger { grid-template-columns: 1fr; }
  .ledger-group:nth-child(odd) { border-right: 0; }
  .ledger-group:nth-last-child(2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 420px) {
  .ledger li { grid-template-columns: 1fr; gap: .15rem; }
}

.next-up { margin-top: clamp(2.5rem, 6vw, 4rem); max-width: 44rem; }
.next-up h3 { color: var(--gold-hi); }
.next-up > p { color: var(--ash); }
.next-up ol { margin: 0; padding-left: 1.4rem; }
.next-up li { padding: .3rem 0 .3rem .4rem; }
.next-up li::marker { color: var(--gold); font-family: var(--font-display); }

/* Roles */
.roles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 980px) { .roles { grid-template-columns: 1fr; max-width: 44rem; } }
.role {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--deep);
  border: 1px solid var(--line);
  border-top: 3px solid var(--crimson-hi);
}
.role h3 { font-size: 1.5rem; margin-bottom: .2rem; }
.role-sub { color: var(--gold); margin-bottom: 1.25rem; }
.role-now {
  font-size: 1rem;
  color: var(--ink);
  padding: .8rem 1rem;
  background: rgba(125, 26, 23, .16);
  border-left: 2px solid var(--crimson-hi);
  margin-bottom: 1.25rem;
}
.role-now strong { color: var(--gold-hi); font-weight: 500; }
.role h4 {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink);
  margin: .5rem 0 .6rem;
}
.role ul { margin: 0 0 1.25rem; padding-left: 1.1rem; font-size: 1rem; color: var(--ash); }
.role li { margin-bottom: .4rem; }
.role li::marker { color: var(--gold-lo); }
.role .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 480px) { .role .btn { align-self: stretch; } }

/* How we work */
.how-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 860px) { .how-grid { grid-template-columns: 1fr; } }
.steps-title { color: var(--gold-hi); margin-top: .6rem; }
.steps { list-style: none; counter-reset: step; margin: 1.5rem 0 0; padding: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.5rem 3.25rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-family: var(--font-display);
  color: var(--gold-hi);
  font-size: .95rem;
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.1rem;
  top: 2.2rem;
  bottom: 0;
  width: 1px;
  background: var(--line-strong);
}
.steps strong { display: block; font-family: var(--font-display); font-weight: 600; margin-bottom: .2rem; }
.steps span { color: var(--ash); font-size: 1rem; }

/* Apply (form arrives in step 3) */
.apply-box {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 3rem);
  border: 1px solid var(--line-strong);
  background: radial-gradient(ellipse at 50% 0%, rgba(212, 162, 76, .12), transparent 70%), radial-gradient(ellipse at 50% 100%, rgba(125, 26, 23, .28), transparent 70%), var(--deep);
}
.apply-box p { margin-left: auto; margin-right: auto; color: var(--ash); }
.apply-actions { margin-top: 1.75rem; }

/* Team page */
.members { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 1.5rem; }
.members-open { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .members, .members-open { grid-template-columns: 1fr; } }
.member {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--deep);
  border: 1px solid var(--line);
}
.member h3 { margin-bottom: .15rem; }
.member p { font-size: 1rem; }
.member-role { color: var(--gold); margin-bottom: .75rem; }
.member-tools { color: var(--ash); margin: 0; }
.monogram {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gold-hi);
  background: radial-gradient(circle, rgba(212, 162, 76, .18), transparent 70%);
}
.member-open {
  text-decoration: none;
  color: var(--ink);
  border-style: dashed;
  border-color: var(--line-strong);
  background: transparent;
  align-items: center;
  transition: border-color .2s, background-color .2s;
}
.member-open:hover { border-color: var(--gold); background: rgba(212, 162, 76, .05); color: var(--ink); }
.member-open .member-role { margin: 0; }
.member-open .monogram { border-style: dashed; color: var(--ash); background: none; }
.team-cta { margin-top: 2rem; }

/* ==========================================================
   Apply page — form
   ========================================================== */

.apply-section { border-top: 0; padding-top: 0; }

.form { max-width: 52rem; }

.form fieldset {
  border: 1px solid var(--line);
  background: var(--deep);
  margin: 0 0 1.25rem;
  padding: clamp(1.25rem, 3vw, 2rem);
}
.form legend {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--gold-hi);
  padding: 0 .6rem;
  margin-left: -.6rem;
}

.field { margin-bottom: 1.25rem; min-width: 0; }
.field:last-child { margin-bottom: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
.field-row-3 { grid-template-columns: 5.5rem 1fr 1.3fr; }
.field-row .field { margin-bottom: 1.25rem; }
.field-half { max-width: calc(50% - .625rem); }
@media (max-width: 680px) {
  .field-row, .field-row-3 { grid-template-columns: 1fr; }
  .field-half { max-width: none; }
}

.form label {
  display: block;
  font-weight: 500;
  margin-bottom: .4rem;
  font-size: 1rem;
}
.optional { color: var(--ash); font-weight: 400; font-size: .9rem; margin-left: .3rem; }

.form input[type="text"],
.form input[type="email"],
.form input[type="url"],
.form input[type="number"],
.form select,
.form textarea {
  width: 100%;
  min-height: 48px;
  padding: .7rem .85rem;
  font: inherit;
  font-size: 1rem; /* 16px+ keeps iOS from zooming in */
  color: var(--ink);
  background: var(--night);
  border: 1px solid rgba(212, 162, 76, .28);
  border-radius: 2px;
  transition: border-color .15s, box-shadow .15s;
}
.form textarea { resize: vertical; min-height: 8rem; line-height: 1.5; }
.form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.25rem;
}
.form select option { background: var(--deep); color: var(--ink); }
.form ::placeholder { color: #6a5f58; }
.form input:hover, .form select:hover, .form textarea:hover { border-color: var(--line-strong); }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 162, 76, .18);
}

.field-hint { color: var(--ash); font-size: .9rem; margin: .4rem 0 0; }
.field-error { color: #ef7a5f; font-size: .9rem; margin: .35rem 0 0; min-height: 0; }
.field-error:empty { display: none; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--ember); }

.field-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .75rem;
  align-items: start;
  margin-top: 1.5rem;
}
.field-check input {
  width: 22px;
  height: 22px;
  margin: .15rem 0 0;
  accent-color: var(--gold);
}
.field-check label { font-weight: 400; color: var(--ash); margin: 0; }
.field-check .field-error { grid-column: 2; }

/* honeypot: off-screen, not display:none (some bots skip hidden fields) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-error {
  border: 1px solid var(--ember);
  background: rgba(208, 85, 58, .1);
  color: #f3b3a3;
  padding: .9rem 1.1rem;
  margin-bottom: 1.25rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 1.75rem;
}
.form-actions .field-hint { margin: 0; }
.form-actions .btn:disabled { opacity: .6; cursor: wait; }
@media (max-width: 480px) { .form-actions .btn { width: 100%; } }

.form-success {
  max-width: 40rem;
  text-align: center;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 3.5rem) clamp(1.25rem, 4vw, 3rem);
  border: 1px solid var(--line-strong);
  background: radial-gradient(ellipse at 50% 0%, rgba(212, 162, 76, .14), transparent 70%), radial-gradient(ellipse at 50% 100%, rgba(125, 26, 23, .28), transparent 70%), var(--deep);
}
.form-success:focus { outline: none; }
.form-success img { margin: 0 auto 1.25rem; filter: drop-shadow(0 0 18px rgba(212, 162, 76, .45)); }
.form-success p { margin-left: auto; margin-right: auto; color: var(--ash); }
.form-success strong { color: var(--ink); font-weight: 500; }
.form-success .hero-actions { margin-top: 1.75rem; }

/* ==========================================================
   Admin panel
   ========================================================== */

.btn-sm { min-height: 38px; padding: .45rem 1rem; font-size: .8rem; }
.btn-danger { background: transparent; color: #e7917e; border-color: rgba(208, 85, 58, .6); }
.btn-danger:hover { background: rgba(208, 85, 58, .12); color: #f3b3a3; }

.admin-body { min-height: 100vh; }
.admin-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem var(--gutter);
  border-bottom: 1px solid var(--line);
  background: rgba(12, 9, 8, .92);
  position: sticky;
  top: 0;
  z-index: 20;
}
.admin-bar-actions { display: flex; gap: .6rem; }
.admin-main { max-width: 1280px; margin: 0 auto; padding: clamp(1.5rem, 4vw, 2.5rem) var(--gutter) 4rem; }

.admin-login {
  max-width: 24rem;
  margin: 8vh auto 0;
  text-align: center;
}
.admin-login img { margin: 0 auto 1rem; filter: drop-shadow(0 0 18px rgba(212, 162, 76, .45)); }
.admin-login p { color: var(--ash); margin-left: auto; margin-right: auto; }
.admin-login .form { text-align: left; margin-top: 1.5rem; }
.admin-login .btn { width: 100%; margin-top: 1rem; }

.admin-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 1.25rem; }
.admin-head h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0; }

.status-tabs { display: flex; flex-wrap: wrap; gap: .4rem; }
.tab {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 36px;
  padding: .35rem .8rem;
  font: inherit;
  font-size: .9rem;
  color: var(--ash);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}
.tab:hover { color: var(--ink); border-color: var(--line-strong); }
.tab.is-active { color: var(--night); background: var(--gold); border-color: var(--gold); }
.tab-count { font-size: .8rem; opacity: .8; }

.admin-filters { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1rem; }
.admin-filters input, .admin-filters select {
  min-height: 44px;
  padding: .55rem .85rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--deep);
  border: 1px solid rgba(212, 162, 76, .28);
  border-radius: 2px;
}
.admin-filters input { flex: 1 1 18rem; }
.admin-filters select { flex: 0 1 12rem; }
.admin-filters input:focus, .admin-filters select:focus { outline: none; border-color: var(--gold); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--deep); }
.apps-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.apps-table th {
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .04em;
  color: var(--gold);
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}
.apps-table td { padding: .8rem 1rem; border-bottom: 1px solid rgba(212, 162, 76, .08); vertical-align: middle; }
.apps-table tbody tr { cursor: pointer; transition: background-color .15s; }
.apps-table tbody tr:hover, .apps-table tbody tr:focus-visible { background: var(--deep-2); outline: none; }
.apps-table tbody tr.is-new .td-name { color: var(--gold-hi); font-weight: 700; }
.apps-table td:first-child, .apps-table td:nth-child(2) { color: var(--ash); white-space: nowrap; }

.pill {
  display: inline-block;
  padding: .15rem .6rem;
  border-radius: 999px;
  font-size: .8rem;
  border: 1px solid currentColor;
  white-space: nowrap;
}
.pill-new { color: var(--gold-hi); background: rgba(212, 162, 76, .12); }
.pill-reviewed { color: var(--ash); }
.pill-contacted { color: #e2b56a; }
.pill-accepted { color: #93c27c; background: rgba(147, 194, 124, .1); }
.pill-rejected { color: #d9897c; background: rgba(168, 41, 31, .15); }

.admin-empty { text-align: center; color: var(--ash); padding: 3rem 1rem; margin: 0 auto; }

/* table becomes stacked cards on phones */
@media (max-width: 760px) {
  .table-wrap { border: 0; background: none; }
  .apps-table thead { display: none; }
  .apps-table, .apps-table tbody, .apps-table tr, .apps-table td { display: block; width: 100%; }
  .apps-table tr { background: var(--deep); border: 1px solid var(--line); margin-bottom: .75rem; padding: .6rem 0; }
  .apps-table td { display: grid; grid-template-columns: 6.5rem 1fr; gap: .75rem; padding: .3rem 1rem; border: 0; }
  .apps-table td::before { content: attr(data-label); color: var(--ash); font-size: .85rem; }
}

/* detail dialog */
.app-dialog {
  width: min(760px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  padding: clamp(1.25rem, 4vw, 2rem);
  color: var(--ink);
  background: var(--deep);
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--crimson-hi);
  border-radius: 2px;
}
.app-dialog::backdrop { background: rgba(0, 0, 0, .7); backdrop-filter: blur(2px); }
.dialog-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.dialog-head h2 { font-size: 1.6rem; margin: 0 0 .2rem; }
.dialog-sub { color: var(--gold); margin: 0; }
.dialog-close {
  flex: none;
  width: 40px;
  height: 40px;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ash);
  background: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
}
.dialog-close:hover { color: var(--ink); border-color: var(--line-strong); }
.dialog-links { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.25rem 0 1.5rem; }
.app-dialog .facts dd { word-break: break-word; }
.app-dialog h3 { font-size: 1rem; color: var(--gold-hi); margin: 1.5rem 0 .5rem; }
.d-text { white-space: pre-wrap; color: var(--ink); font-size: 1rem; max-width: none; }
.d-edit { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.d-edit .field { margin-bottom: 1rem; }
.d-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.d-actions .btn-danger { margin-left: auto; }
.d-saved { color: var(--gold-hi); font-size: .95rem; }
.app-dialog .facts { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.5rem; }
.app-dialog .facts > div { grid-template-columns: 6.5rem 1fr; padding: .55rem 0; font-size: .95rem; }
@media (max-width: 640px) { .app-dialog .facts { grid-template-columns: 1fr; } }
.admin-bar .brand { white-space: nowrap; }
.admin-bar-actions .btn { white-space: nowrap; }
@media (max-width: 760px) {
  .apps-table td .pill { justify-self: start; }
  .apps-table td::before { font-weight: 400; }
}
@media (max-width: 480px) {
  .admin-bar .brand { font-size: 0; gap: 0; } /* emblem only on small phones */
  .admin-bar-actions { gap: .4rem; }
}

/* ---------- Privacy / text pages ---------- */
.prose-section { border-top: 0; padding-top: 0; }
.prose p { max-width: 44rem; }
.prose h2 { font-size: 1.35rem; color: var(--gold-hi); margin-top: 2.25rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink); }
.field-check label a { color: var(--gold-hi); }
