/* ============================================================
   VanguardOphir — Components
   ============================================================ */

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 17, 20, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 68px;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand__mark { width: 34px; height: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6)); }
.brand__word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--bone);
  line-height: 1;
}
.brand__word b { color: var(--brass); font-weight: 800; }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ash);
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.nav a:hover { color: var(--bone); }
.nav a[aria-current="page"] { color: var(--brass-bright); border-bottom-color: var(--brass); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 0.8rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--void-2);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.25rem;
    transform: translateY(-130%);
    transition: transform 0.35s var(--ease);
    z-index: 49;
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { padding: 0.9rem 0; border-bottom: 1px solid var(--line-soft); }
  .nav a[aria-current="page"] { border-bottom-color: var(--line-soft); }
}

/* ---------- Classification bar ---------- */
.classbar {
  border-block: 1px solid var(--line-soft);
  background:
    repeating-linear-gradient(45deg, rgba(154,43,49,0.05) 0 10px, transparent 10px 20px),
    var(--void-2);
}
.classbar__inner {
  max-width: var(--container-wide);
  margin-inline: auto;
  padding: 0.6rem var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ash);
}
.classbar__item { display: inline-flex; align-items: center; gap: 0.55rem; }
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brass); box-shadow: 0 0 8px var(--brass);
  animation: pulse 2.4s ease-in-out infinite;
}
.dot--warn { background: var(--oxblood); box-shadow: 0 0 8px var(--oxblood); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: clamp(3rem, 7vw, 5rem); overflow: hidden; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero__title { margin-block: 1.2rem 1.4rem; }
.hero__title .accent { color: var(--brass); }
.hero__emblem-wrap {
  position: relative;
  display: grid;
  place-items: center;
}
.hero__emblem {
  width: min(100%, 440px);
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.7));
  animation: floaty 9s ease-in-out infinite;
}
.hero__ring {
  position: absolute;
  width: min(96%, 430px);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  opacity: 0.5;
}
.hero__ring::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px dashed var(--brass-dim);
  border-radius: 50%;
  opacity: 0.5;
  animation: spin 60s linear infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__emblem-wrap { order: -1; }
  .hero__emblem { width: min(72%, 300px); }
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--void-2));
  overflow: hidden;
}
.stat { padding: clamp(1.4rem, 3vw, 2.2rem); border-right: 1px solid var(--line-soft); }
.stat:last-child { border-right: 0; }
.stat__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--brass);
  line-height: 1;
}
.stat__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ash);
  margin-top: 0.7rem;
}
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
}

/* ---------- Pillars / feature grid ---------- */
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--void-2));
  padding: clamp(1.5rem, 3vw, 2.1rem);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
  height: 100%;
}
.card:hover { border-color: var(--brass-dim); transform: translateY(-4px); }
.card__code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--brass);
}
.card h3 { margin-top: 0.8rem; margin-bottom: 0.6rem; }
.card__tag {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--copper);
  font-size: 1.05rem;
  margin-bottom: 0.7rem;
}
.card p { color: var(--ash); font-size: 0.98rem; }
.card__detail {
  list-style: none;
  padding: 0;
  margin-top: 1.1rem;
  border-top: 1px solid var(--line-soft);
  padding-top: 1rem;
}
.card__detail li {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ash-dim);
  padding-left: 1.1rem;
  position: relative;
  margin-top: 0.5rem;
  line-height: 1.5;
}
.card__detail li::before { content: "›"; position: absolute; left: 0; color: var(--brass-dim); }

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

/* ---------- Eras ---------- */
.era {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-block: clamp(2rem, 4vw, 2.8rem);
  border-top: 1px solid var(--line-soft);
}
.era__meta { position: sticky; top: 100px; }
.era__range {
  font-family: var(--font-mono);
  color: var(--brass);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}
.era__title { font-size: 1.5rem; margin-top: 0.5rem; }
.era__body p { color: var(--bone-dim); }
.era__body p + p { margin-top: 1rem; }
@media (max-width: 760px) {
  .era { grid-template-columns: 1fr; gap: 1rem; }
  .era__meta { position: static; }
}

/* ---------- Timeline ---------- */
.timeline { list-style: none; padding: 0; position: relative; margin-top: 1rem; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px;
  width: 1px; background: linear-gradient(var(--brass-dim), transparent);
}
.timeline li { position: relative; padding-left: 2.4rem; padding-bottom: 1.9rem; }
.timeline li::before {
  content: ""; position: absolute; left: 3px; top: 6px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--void); border: 2px solid var(--brass);
}
.timeline__year { font-family: var(--font-display); font-weight: 800; color: var(--brass); font-size: 1.1rem; }
.timeline__title { color: var(--bone); font-weight: 600; margin-top: 0.1rem; }
.timeline__text { color: var(--ash); font-size: 0.95rem; margin-top: 0.2rem; }

/* ---------- Quote / philosophy plate ---------- */
.plate {
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--void-2));
  padding: clamp(1.8rem, 4vw, 3rem);
}
.plate h3 { color: var(--brass-bright); margin-bottom: 1rem; }
.plate p { color: var(--bone-dim); }
.plate p + p { margin-top: 1rem; }

/* ---------- Officers ---------- */
.officer {
  display: flex; justify-content: space-between; gap: 1.5rem;
  padding: 1.1rem 0; border-top: 1px solid var(--line-soft);
  flex-wrap: wrap;
}
.officer__role { color: var(--bone); font-weight: 600; }
.officer__note { color: var(--ash); font-size: 0.9rem; }
.officer__name { font-family: var(--font-mono); color: var(--brass); white-space: nowrap; }

/* ---------- Directives ---------- */
.directive {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: clamp(1.4rem, 3vw, 2rem);
  transition: border-color 0.3s var(--ease);
}
.directive:hover { border-color: var(--oxblood); }
.directive__head { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.directive__code {
  font-family: var(--font-display); font-weight: 800;
  color: var(--oxblood); font-size: 1.4rem; letter-spacing: 0.02em;
}
.chip {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--copper);
  border: 1px solid var(--copper); border-radius: 999px;
  padding: 0.25em 0.75em; white-space: nowrap;
}
.directive h3 { font-size: 1.15rem; margin: 0.7rem 0 0.6rem; color: var(--bone); }
.directive__summary { color: var(--bone-dim); }
.directive__detail { color: var(--ash); font-size: 0.92rem; margin-top: 0.7rem; }

/* ---------- Notices / warning strips ---------- */
.notice {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--bone-dim);
  border-left: 3px solid var(--oxblood);
  background: repeating-linear-gradient(45deg, rgba(154,43,49,0.06) 0 12px, transparent 12px 24px);
  padding: 0.9rem 1.1rem;
}
.notice + .notice { margin-top: 0.75rem; }
.notice b { color: var(--copper); }

.hazard-rule {
  height: 10px;
  background: repeating-linear-gradient(45deg, var(--copper) 0 14px, var(--void) 14px 28px);
  opacity: 0.7;
  border-radius: 2px;
}

/* ---------- Exemptions ---------- */
.exemption {
  border: 1px dashed var(--copper);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  background: rgba(181,113,60,0.05);
}
.exemption__code { font-family: var(--font-mono); color: var(--copper); letter-spacing: 0.1em; }
.exemption h3 { font-size: 1.1rem; margin: 0.4rem 0 0.6rem; }
.exemption p { color: var(--ash); font-size: 0.95rem; }

/* ---------- Roles (personnel) ---------- */
.role {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
  height: 100%;
}
.role:hover { border-color: var(--brass-dim); transform: translateY(-4px); }
.role__title { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--bone); }
.role__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; font-family: var(--font-mono); font-size: 0.74rem; color: var(--ash); }
.role__meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.role__meta .clearance { color: var(--brass); }
.role__blurb { color: var(--ash); font-size: 0.95rem; }
.role__req { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass-dim); }
.role__spec { margin-top: 0.4rem; border-top: 1px solid var(--line); padding-top: 0.9rem; display: grid; gap: 0.4rem; }
.role__spec > div { display: grid; grid-template-columns: 8rem 1fr; gap: 0.75rem; font-family: var(--font-mono); font-size: 0.72rem; line-height: 1.4; }
.role__spec .k { color: var(--ash); text-transform: uppercase; letter-spacing: 0.05em; }
.role__spec .v { color: var(--bone); }
.role__spec .v--air { color: var(--brass); }
.role__spec .v--warn { color: var(--oxblood); }
@media (max-width: 480px) { .role__spec > div { grid-template-columns: 1fr; gap: 0.1rem; } }

/* Apply / application form */
.apply { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); padding: 1.75rem; }
.apply-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ash); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 0.95rem; color: var(--bone);
  background: var(--void-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.7rem 0.85rem; width: 100%; transition: border-color 0.2s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--ash-dim); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brass); }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.consent { grid-column: 1 / -1; display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.82rem; line-height: 1.55; color: var(--ash); }
.consent input { margin-top: 0.2rem; width: auto; flex: 0 0 auto; accent-color: var(--oxblood); }
.consent b { color: var(--bone-dim); }
.apply__actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.form-status { font-family: var(--font-mono); font-size: 0.8rem; margin: 0; }
.form-status.is-pending { color: var(--ash); }
.form-status.is-ok { color: var(--brass); }
.form-status.is-err { color: var(--oxblood); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
@media (max-width: 560px) { .apply-grid { grid-template-columns: 1fr; } }

/* ---------- Showcase (identity kit) ---------- */
.showcase { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.plate-img {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 120% at 50% 0%, var(--panel-3), var(--void-2) 70%);
  padding: 1.4rem;
  text-align: center;
}
.plate-img img {
  margin-inline: auto;
  border-radius: var(--radius);
  max-height: 210px;
  width: auto;
  filter: drop-shadow(0 14px 30px rgba(0,0,0,0.6));
}
.plate-img h4 { margin-top: 1.1rem; color: var(--bone); }
.plate-img p { color: var(--ash); font-size: 0.86rem; margin-inline: auto; max-width: 34ch; margin-top: 0.4rem; }
@media (max-width: 860px) { .showcase { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.office {
  border-top: 1px solid var(--line-soft);
  padding: 1.3rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 1rem;
  align-items: baseline;
}
.office__name { font-family: var(--font-display); font-weight: 800; color: var(--bone); font-size: 1.15rem; }
.office__desig { font-family: var(--font-mono); font-size: 0.78rem; color: var(--brass); text-transform: uppercase; letter-spacing: 0.06em; }
.office__sector { color: var(--ash); font-size: 0.92rem; }
.office__note { color: var(--ash-dim); font-size: 0.86rem; }
@media (max-width: 760px) { .office { grid-template-columns: 1fr; gap: 0.3rem; } }

.channels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1.5rem; }
.channel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  background: var(--panel);
}
.channel__label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ash); }
.channel__value { color: var(--brass-bright); font-family: var(--font-mono); font-size: 0.95rem; margin-top: 0.4rem; word-break: break-all; }
@media (max-width: 620px) { .channels { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(198,161,91,0.12), transparent 55%),
    linear-gradient(180deg, var(--panel), var(--void-2));
  padding: clamp(2.2rem, 5vw, 3.6rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); max-width: 18ch; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--void-2);
  position: relative;
  z-index: 2;
  margin-top: var(--section-y);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5rem;
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.footer__brand { display: flex; gap: 1rem; align-items: flex-start; }
.footer__seal { width: 96px; height: auto; border-radius: 50%; filter: drop-shadow(0 6px 16px rgba(0,0,0,0.7)); }
.footer__word { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; color: var(--bone); font-size: 1.15rem; letter-spacing: 0.02em; }
.footer__word b { color: var(--brass); }
.footer__tag { font-family: var(--font-display); font-style: italic; color: var(--copper); margin-top: 0.3rem; }
.footer__slogan { color: var(--ash); font-size: 0.9rem; margin-top: 0.7rem; max-width: 32ch; }

.footer__col h4 { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ash); font-weight: 500; margin-bottom: 1rem; }
.footer__col ul { list-style: none; padding: 0; }
.footer__col li { margin-bottom: 0.6rem; }
.footer__col a { color: var(--bone-dim); font-size: 0.95rem; }
.footer__col a:hover { color: var(--brass); }

.footer__legal {
  border-top: 1px solid var(--line-soft);
  padding-block: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ash-dim);
}
.footer__fine { color: var(--ash-dim); font-family: var(--font-mono); font-size: 0.7rem; line-height: 1.7; padding-bottom: 2rem; max-width: 90ch; }
.footer__fine b { color: var(--copper); }

@media (max-width: 860px) {
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}
