/* ============ TOKENS ============ */
:root{
  --void: #05070a;
  --void-2: #080b10;
  --cold-deep: #0b1622;
  --cold-mid: #14283d;
  --cold-line: #3a5a78;
  --cold-glow: #6fa8d6;
  --warm-deep: #1c150c;
  --warm-mid: #2e2212;
  --warm-line: #6b4f23;
  --gold: #c9a227;
  --gold-bright: #e8c662;
  --gold-dim: #8a6f2c;
  --steel: #8794a3;
  --bone: #e8e2d4;
  --bone-dim: #b7b1a3;
  --ink: #05070a;

  --display: 'Cinzel', serif;
  --body: 'Space Grotesk', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  background:var(--void);
  color:var(--bone);
  font-family:var(--body);
  overflow-x:hidden;
  line-height:1.6;
}
::selection{ background: var(--gold-dim); color: var(--ink); }

a{color:inherit; text-decoration:none;}
img{display:block; max-width:100%;}

.wrap{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* focus visibility */
a:focus-visible, button:focus-visible{
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ============ BACKDROP: split cold/warm field ============ */
.cosmos-field{
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 70% 50% at 22% 8%, rgba(60,110,160,0.16), transparent 60%),
    radial-gradient(ellipse 70% 50% at 78% 8%, rgba(180,140,50,0.14), transparent 60%),
    linear-gradient(90deg, var(--cold-deep) 0%, var(--void) 49%, var(--void) 51%, var(--warm-deep) 100%);
  opacity: 0.85;
}
.starfield{
  position: fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 34% 64%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 58% 14%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 72% 78%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 88% 38%, rgba(255,255,255,0.55), transparent),
    radial-gradient(1px 1px at 19% 86%, rgba(255,255,255,0.45), transparent),
    radial-gradient(1px 1px at 46% 42%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 95% 60%, rgba(255,255,255,0.4), transparent);
  background-size: 100% 100%;
  opacity:0.6;
}

/* ============ TOP NAV ============ */
.topbar{
  position: sticky;
  top:0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(5,7,10,0.72);
  border-bottom: 1px solid rgba(201,162,39,0.18);
}
.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 32px;
  max-width:1180px;
  margin:0 auto;
}
.brand-mini{
  display:flex;
  align-items:center;
  gap:12px;
}
.brand-mini img{
  width:38px; height:38px;
  border-radius:50%;
}
.brand-mini .name{
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--bone);
}
.brand-mini .ticker{
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.08em;
}
.navlinks{
  display:flex;
  gap: 28px;
  font-family: var(--body);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.navlinks a{ position:relative; padding: 4px 0; transition: color .25s; }
.navlinks a:hover{ color: var(--gold-bright); }
.navlinks a::after{
  content:'';
  position:absolute; left:0; bottom:-2px;
  width:0; height:1px; background: var(--gold);
  transition: width .25s;
}
.navlinks a:hover::after{ width:100%; }
.nav-cta{
  font-family: var(--mono);
  font-size: 12px;
  border: 1px solid var(--gold-dim);
  padding: 8px 16px;
  letter-spacing: 0.05em;
  color: var(--gold-bright);
  transition: all .25s;
}
.nav-cta:hover{ background: var(--gold); color: var(--ink); border-color: var(--gold); }
.navlinks-mobile-toggle{ display:none; }

@media (max-width: 860px){
  .navlinks{ display:none; }
  .nav-cta{ display:none; }
}

/* ============ HERO ============ */
.hero{
  position: relative;
  padding: 88px 32px 70px;
  display:flex;
  flex-direction: column;
  align-items:center;
  text-align:center;
  min-height: 86vh;
  justify-content:center;
}
.hero-seal-wrap{
  position:relative;
  width: 400px;
  height:400px;
  margin-bottom: 38px;
}
.hero-seal-wrap img{
  width:100%;
  height:100%;
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(201,162,39,0.3),
    0 0 60px rgba(201,162,39,0.18),
    0 0 120px rgba(60,110,160,0.12),
    0 20px 60px rgba(0,0,0,0.6);
  animation: seal-breathe 7s ease-in-out infinite;
}
@keyframes seal-breathe{
  0%,100%{ filter: drop-shadow(0 0 18px rgba(201,162,39,0.25)); }
  50%{ filter: drop-shadow(0 0 34px rgba(201,162,39,0.45)); }
}
.hero-seal-ring{
  position:absolute;
  inset:-22px;
  border-radius:50%;
  border: 1px dashed rgba(201,162,39,0.35);
  animation: spin-slow 60s linear infinite;
}
@keyframes spin-slow{ to{ transform: rotate(360deg); } }

.hero-eyebrow{
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 18px;
}
.hero-eyebrow .dot{ color: var(--gold); margin: 0 8px; }

.hero h1{
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 5rem);
  letter-spacing: 0.02em;
  line-height: 1.05;
  background: linear-gradient(90deg, var(--cold-glow) 0%, var(--bone) 35%, var(--bone) 65%, var(--gold-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}
.hero .ticker-line{
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 26px;
}
.hero .motto{
  font-family: var(--display);
  font-style: normal;
  font-size: clamp(0.95rem, 1.6vw, 1.25rem);
  letter-spacing: 0.16em;
  color: var(--bone-dim);
  max-width: 640px;
  margin: 0 auto 38px;
  position:relative;
  padding: 18px 0;
}
.hero .motto::before, .hero .motto::after{
  content:'';
  display:block;
  width:60px;
  height:1px;
  margin: 0 auto 14px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hero .motto::after{ margin: 14px auto 0; }

.hero-actions{
  display:flex;
  gap:18px;
  flex-wrap:wrap;
  justify-content:center;
}
.btn{
  font-family: var(--body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 15px 32px;
  cursor:pointer;
  border: none;
  transition: all .3s;
  text-transform: uppercase;
}
.btn-primary{
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-dim));
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(201,162,39,0.25);
}
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 12px 30px rgba(201,162,39,0.4); }
.btn-ghost{
  background: transparent;
  border: 1px solid var(--cold-line);
  color: var(--bone);
}
.btn-ghost:hover{ border-color: var(--cold-glow); background: rgba(111,168,214,0.08); }

/* ============ SECTION GENERIC ============ */
section{
  position:relative;
  padding: 100px 0;
}
.section-head{
  text-align:center;
  margin-bottom: 60px;
}
.section-head .eyebrow{
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.section-head h2{
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 600;
  color: var(--bone);
  letter-spacing: 0.01em;
}
.section-head p{
  max-width: 600px;
  margin: 16px auto 0;
  color: var(--bone-dim);
  font-size: 15px;
}
.divider{
  width:100%;
  height:1px;
  background: linear-gradient(90deg, transparent, rgba(201,162,39,0.4), transparent);
}

/* ============ ACTIVITIES (signature: forge/charts split) ============ */
.activities{
  background: linear-gradient(180deg, transparent, rgba(20,40,61,0.18), rgba(46,34,18,0.18), transparent);
}
.activity-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(201,162,39,0.15);
  border: 1px solid rgba(201,162,39,0.15);
}
.activity-card{
  background: var(--void-2);
  padding: 44px 36px;
  position:relative;
  transition: background .3s;
}
.activity-card:hover{ background: rgba(201,162,39,0.045); }
.activity-num{
  font-family: var(--mono);
  font-size: 12px;
  color: var(--gold-dim);
  letter-spacing: 0.1em;
  margin-bottom: 22px;
  display:block;
}
.activity-icon{
  width: 46px; height: 46px;
  margin-bottom: 22px;
}
.activity-card h3{
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--bone);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.activity-card p{
  color: var(--bone-dim);
  font-size: 14px;
  margin-bottom: 18px;
}
.activity-tags{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
}
.activity-tags span{
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--steel);
  border: 1px solid rgba(135,148,163,0.3);
  padding: 4px 9px;
  text-transform: uppercase;
}

@media (max-width: 860px){
  .activity-grid{ grid-template-columns: 1fr; }
}

/* ============ OPERATIONS MAP (signature element) ============ */
.ops{
  background: var(--void-2);
  border-top: 1px solid rgba(201,162,39,0.1);
  border-bottom: 1px solid rgba(201,162,39,0.1);
}
.ops-rail{
  position: relative;
  margin-top: 70px;
  padding: 0 10px;
}
.ops-track{
  position:relative;
  height: 3px;
  background: linear-gradient(90deg, var(--cold-glow), var(--steel) 35%, var(--gold-dim) 65%, var(--gold-bright));
  border-radius: 2px;
  margin: 0;
  width: 100%;
}
.ops-stations{
  display:flex;
  justify-content: space-between;
  margin-top: -9px;
}
.ops-station{
  display:flex;
  flex-direction:column;
  align-items:center;
  width: 20%;
  text-align:center;
}
.ops-dot{
  width: 19px; height:19px;
  border-radius:50%;
  background: var(--void);
  border: 2px solid var(--gold);
  margin-bottom: 18px;
  position:relative;
  z-index:2;
  box-shadow: 0 0 14px rgba(201,162,39,0.5);
}
.ops-station:nth-child(1) .ops-dot{ border-color: var(--cold-glow); box-shadow: 0 0 14px rgba(111,168,214,0.6); }
.ops-station:nth-child(2) .ops-dot{ border-color: var(--steel); box-shadow: 0 0 14px rgba(135,148,163,0.5); }
.ops-label{
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--bone);
  margin-bottom: 6px;
}
.ops-desc{
  font-family: var(--body);
  font-size: 12.5px;
  color: var(--bone-dim);
  max-width: 160px;
  line-height: 1.5;
}
.ops-risk{
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  margin-top: 10px;
  padding: 3px 8px;
  border-radius: 2px;
  text-transform: uppercase;
}

@media (max-width: 860px){
  .ops-rail{ overflow-x:auto; padding-bottom: 10px; }
  .ops-track{ width: 720px; }
  .ops-stations{ width: 720px; }
}

/* ============ DOCTRINE / STATS STRIP ============ */
.stats{
  display:grid;
  grid-template-columns: repeat(4,1fr);
  border-top: 1px solid rgba(201,162,39,0.15);
  border-bottom: 1px solid rgba(201,162,39,0.15);
  background: linear-gradient(90deg, rgba(20,40,61,0.25), rgba(8,11,16,0.4) 50%, rgba(46,34,18,0.25));
}
.stat{
  padding: 38px 20px;
  text-align:center;
  border-right: 1px solid rgba(201,162,39,0.1);
  position:relative;
}
.stat::before{
  content:'';
  position:absolute;
  top:0; left:50%;
  transform: translateX(-50%);
  width: 26px; height: 1px;
  background: var(--gold);
  opacity:0.6;
}
.stat:last-child{ border-right:none; }
.stat .num{
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--gold-bright);
  display:block;
  margin-bottom: 6px;
}
.stat .lbl{
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
}
@media (max-width: 700px){
  .stats{ grid-template-columns: repeat(2,1fr); }
  .stat:nth-child(2){ border-right:none; }
}

/* ============ DOCTRINE TEXT SECTION ============ */
.doctrine{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items:center;
}
.doctrine-art{
  position: relative;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow:hidden;
  border: 1px solid rgba(201,162,39,0.25);
  max-width: 360px;
  margin: 0 auto;
}
.doctrine-art img{ width:100%; height:100%; object-fit:cover; }
.doctrine-copy .eyebrow{
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.doctrine-copy h2{
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 22px;
  line-height: 1.2;
}
.doctrine-copy p{
  color: var(--bone-dim);
  margin-bottom: 16px;
  font-size: 15.5px;
}
.doctrine-copy p strong{ color: var(--bone); font-weight: 600; }

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

/* ============ RECRUITMENT ============ */
.recruit{
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201,162,39,0.08), transparent 70%);
  text-align:center;
}
.recruit-panel{
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid rgba(201,162,39,0.25);
  padding: 60px 44px;
  position:relative;
  background: linear-gradient(135deg, rgba(20,40,61,0.25), rgba(46,34,18,0.25));
}
.recruit-panel::before, .recruit-panel::after{
  content:'';
  position:absolute;
  width: 22px; height: 22px;
  border: 1px solid var(--gold);
}
.recruit-panel::before{ top:-1px; left:-1px; border-right:none; border-bottom:none; }
.recruit-panel::after{ bottom:-1px; right:-1px; border-left:none; border-top:none; }
.recruit-panel h2{
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 18px;
}
.recruit-panel p{
  color: var(--bone-dim);
  font-size: 15.5px;
  max-width: 540px;
  margin: 0 auto 32px;
}
.req-list{
  display:flex;
  justify-content:center;
  gap: 36px;
  margin: 32px 0 38px;
  flex-wrap:wrap;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--steel);
  letter-spacing: 0.04em;
}
.req-list span{ color: var(--gold-bright); margin-right: 6px; }

/* ============ FOOTER ============ */
footer{
  border-top: 1px solid rgba(201,162,39,0.15);
  padding: 50px 0 30px;
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  flex-wrap:wrap;
  gap: 30px;
}
.footer-brand{
  display:flex;
  align-items:center;
  gap: 14px;
}
.footer-brand img{ width: 44px; height:44px; border-radius:50%; }
.footer-brand .fname{ font-family: var(--display); font-size: 16px; color:var(--bone); }
.footer-brand .fmotto{ font-family: var(--mono); font-size: 10.5px; color: var(--steel); letter-spacing: 0.08em; margin-top: 3px; }
.footer-links{
  display:flex;
  gap: 40px;
  font-size: 13px;
}
.footer-links div h4{
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gold-dim);
  text-transform:uppercase;
  margin-bottom: 12px;
}
.footer-links div a{
  display:block;
  color: var(--bone-dim);
  margin-bottom: 8px;
  font-size: 13px;
  transition: color .2s;
}
.footer-links div a:hover{ color: var(--bone); }
.footer-bottom{
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--steel);
  letter-spacing: 0.04em;
}

@media (max-width: 700px){
  .footer-links{ gap: 24px; flex-wrap:wrap; }
}

/* ============ MEET THE FOUNDER ============ */
.founder{
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(111,168,214,0.07), transparent 70%);
}
.founder-panel{
  border: 1px solid rgba(201,162,39,0.25);
  background: linear-gradient(135deg, rgba(20,40,61,0.22), rgba(46,34,18,0.22));
  padding: 56px;
  position:relative;
  display:grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items:center;
}
.founder-panel::before, .founder-panel::after{
  content:'';
  position:absolute;
  width: 22px; height: 22px;
  border: 1px solid var(--gold);
}
.founder-panel::before{ top:-1px; left:-1px; border-right:none; border-bottom:none; }
.founder-panel::after{ bottom:-1px; right:-1px; border-left:none; border-top:none; }

.founder-portrait{
  position:relative;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow:hidden;
  border: 1px solid rgba(201,162,39,0.35);
  box-shadow:
    0 0 0 1px rgba(201,162,39,0.15),
    0 0 40px rgba(201,162,39,0.12),
    0 0 80px rgba(60,110,160,0.1);
  flex-shrink:0;
  justify-self:center;
}
.founder-portrait img{
  width:100%;
  height:100%;
  object-fit:contain;
}

.founder-copy .eyebrow{
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.founder-copy h2{
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-bottom: 6px;
  color: var(--bone);
}
.founder-copy .founder-title{
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--steel);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.founder-copy p{
  color: var(--bone-dim);
  margin-bottom: 14px;
  font-size: 15px;
}
.founder-copy p strong{ color: var(--bone); font-weight: 600; }
.founder-copy p:last-child{ margin-bottom: 0; }

@media (max-width: 700px){
  .founder-panel{
    grid-template-columns: 1fr;
    text-align:center;
    padding: 44px 28px;
  }
  .founder-copy .eyebrow{ text-align:center; }
}
.reveal{
  opacity:0;
  transform: translateY(22px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.is-visible{
  opacity:1;
  transform: translateY(0);
}
