/* ============================================================
   WOGD PORTAL — control-deck stylesheet
   Palette and vernacular taken from the brand art.
   ============================================================ */

:root{
  --void:      #030811;
  --deep:      #0a1526;
  --panel:     #0c1830;
  --line:      #16304f;
  --signal:    #2e9bff;
  --ice:       #bfe9ff;
  --ink:       #d7e3f2;
  --ink-dim:   #7e93ac;
  --chrome-hi: #f2f6fa;
  --chrome-lo: #8fa3b8;
  --font-display: "Michroma", "Arial Black", sans-serif;
  --font-body:    "Saira", "Segoe UI", sans-serif;
  --font-hud:     "IBM Plex Mono", "Consolas", monospace;
}

*{ box-sizing: border-box; }

html{
  background: var(--void);
  scroll-behavior: smooth;
}

body{
  margin: 0;
  background:
    radial-gradient(1200px 800px at 70% -10%, #0a1a33 0%, transparent 60%),
    radial-gradient(900px 700px at 10% 110%, #081426 0%, transparent 55%),
    var(--void);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}

::selection{ background: rgba(46,155,255,.35); color: #fff; }

a{ color: var(--ice); }

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

/* ---------- utilities ---------- */

.hud{
  font-family: var(--font-hud);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.chrome{
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  color: var(--chrome-hi);
  background: linear-gradient(
    168deg,
    #ffffff 0%, #dfe7ef 22%, #8fa3b8 45%,
    #e8eef5 52%, #6d8299 70%, #cfd9e4 100%
  );
  background-size: 100% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 14px rgba(46,155,255,.22));
}

@keyframes chrome-sweep{
  0%, 60%  { background-position: 0% 0%; }
  100%     { background-position: 0% 100%; }
}

.eyebrow{ color: var(--signal); margin: 0 0 18px; }

.col{
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

.col-wide{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- boot overlay ---------- */

#boot{
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--void);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .5s ease;
}
#boot.lifting{ opacity: 0; pointer-events: none; }
#boot.off{ display: none; }

.boot-inner{ text-align: left; }

#boot-text{
  margin: 0;
  min-height: 8em;
  font-size: 12px;
  line-height: 1.9;
  color: var(--signal);
  white-space: pre;
}
#boot-text .dim{ color: var(--ink-dim); }

#boot-skip{
  margin-top: 24px;
  padding: 8px 0;
  background: none;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--ink-dim);
  cursor: pointer;
  font-size: 10px;
  letter-spacing: .18em;
}
#boot-skip:hover{ color: var(--ice); border-color: var(--signal); }

/* ---------- viewport frame ---------- */

.frame{ position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.fc{
  position: absolute;
  width: 26px; height: 26px;
  border: 1px solid rgba(46,155,255,.55);
  opacity: .8;
}
.fc-tl{ top: 10px;    left: 10px;   border-right: none; border-bottom: none; }
.fc-tr{ top: 10px;    right: 10px;  border-left: none;  border-bottom: none; }
.fc-bl{ bottom: 10px; left: 10px;   border-right: none; border-top: none; }
.fc-br{ bottom: 10px; right: 10px;  border-left: none;  border-top: none; }

/* ---------- top bar ---------- */

.topbar{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 36px;
  background: linear-gradient(180deg, rgba(3,8,17,.92), rgba(3,8,17,.72) 70%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img{ display: block; border-radius: 6px; }
.brand-name{
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: .22em;
  color: var(--chrome-hi);
}

.topbar nav{
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.topbar nav a{
  font-family: var(--font-hud);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-dim);
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.topbar nav a:hover{ color: var(--ice); border-color: var(--signal); }

.sysline{
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--signal);
}
.pulse{
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 10px var(--signal);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse{
  0%, 100%{ opacity: 1; }
  50%     { opacity: .25; }
}

@media (max-width: 720px){
  .topbar{ padding: 12px 18px; gap: 14px; }
  .topbar nav{ gap: 14px; }
  .sysline{ display: none; }
}
@media (max-width: 460px){
  .topbar nav{ display: none; }
}

/* ---------- hero ---------- */

.hero{
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

#forge{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-hud{
  position: absolute;
  top: 84px; left: 36px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  color: rgba(126,147,172,.75);
  font-size: 10px;
}

.hero-content{
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero h1{
  margin: 0 0 30px;
  font-size: clamp(34px, 7.2vw, 84px);
  line-height: 1.08;
  letter-spacing: .04em;
  animation: chrome-sweep 7s ease-in-out infinite;
}

.thesis{
  max-width: 620px;
  margin: 0 auto 42px;
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 300;
  color: var(--ink);
}

.cta-row{
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn{
  display: inline-block;
  padding: 14px 34px;
  font-family: var(--font-hud);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--signal);
  transition: background .2s, color .2s, box-shadow .2s;
}
.btn-primary{
  background: var(--signal);
  color: #04101f;
  font-weight: 500;
  box-shadow: 0 0 24px rgba(46,155,255,.35);
}
.btn-primary:hover{
  background: var(--ice);
  border-color: var(--ice);
  box-shadow: 0 0 34px rgba(191,233,255,.5);
}
.btn-ghost{
  color: var(--ice);
  background: rgba(46,155,255,.06);
}
.btn-ghost:hover{ background: rgba(46,155,255,.16); }

.scroll-cue{
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: rgba(126,147,172,.6);
  animation: cue 3s ease-in-out infinite;
}
@keyframes cue{
  0%, 100%{ transform: translate(-50%, 0);   opacity: .6; }
  50%     { transform: translate(-50%, 6px); opacity: 1; }
}

/* ---------- sections (shared) ---------- */

.section{ padding: 130px 0; }

.section h2{
  margin: 0 0 34px;
  font-size: clamp(24px, 3.6vw, 40px);
  line-height: 1.22;
  letter-spacing: .03em;
  text-wrap: balance;
}

.section p{ margin: 0 0 18px; }

/* ---------- mission ---------- */

.mission .mission-body{
  border-left: 1px solid var(--line);
  padding-left: 28px;
}
.mission p{ max-width: 62ch; }

/* ---------- modules ---------- */

.module-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 54px;
}

.module{
  position: relative;
  padding: 30px 32px 26px;
  background: linear-gradient(165deg, rgba(12,24,48,.75), rgba(6,13,26,.9));
  border: 1px solid var(--line);
  transition: border-color .25s, box-shadow .25s;
}
.module::before,
.module::after{
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border-color: var(--signal);
  border-style: solid;
  opacity: 0;
  transition: opacity .25s;
}
.module::before{ top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.module::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.module:hover{
  border-color: rgba(46,155,255,.6);
  box-shadow: 0 0 34px rgba(46,155,255,.12), inset 0 0 24px rgba(46,155,255,.05);
}
.module:hover::before,
.module:hover::after{ opacity: 1; }

.mod-tag{ margin: 0 0 16px; color: var(--signal); }

.module h3,
.fab h3,
.prin h3{
  margin: 0 0 10px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: .01em;
  color: var(--chrome-hi);
}

.module p:last-child{ margin-bottom: 0; }

.module-flagship{ grid-column: 1 / -1; }
.module-core{
  grid-column: 1 / -1;
  border-color: rgba(46,155,255,.45);
  background: linear-gradient(90deg, rgba(46,155,255,.10), rgba(6,13,26,.9) 55%);
}

/* suite dock inside flagship */
.suite{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 26px;
}
.app{
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: rgba(3,8,17,.55);
  transition: border-color .25s, background .25s, transform .25s;
}
.app:hover{
  border-color: var(--signal);
  background: rgba(46,155,255,.08);
  transform: translateY(-2px);
}
.app-name{ margin: 0 0 6px; color: var(--ice); font-size: 12px; }
.app p:last-child{
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-dim);
}

@media (max-width: 900px){
  .module-grid{ grid-template-columns: 1fr; }
  .suite{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px){
  .suite{ grid-template-columns: 1fr; }
}

/* ---------- world band ---------- */

.world{
  position: relative;
  height: 72vh;
  min-height: 420px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.world-media{
  position: absolute;
  inset: -12% 0;
}
.world-media img,
.world-media video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}
.world::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3,8,17,.82) 0%, rgba(3,8,17,.12) 40%, rgba(3,8,17,.85) 100%);
}
.world-caption{
  position: absolute;
  left: 0; right: 0; bottom: 54px;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
}
.world-line{
  margin: 0;
  font-size: clamp(20px, 3vw, 32px);
  letter-spacing: .05em;
}

/* ---------- factory ---------- */

.factory p{ max-width: 62ch; }

.fab-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 54px;
}
.fab{
  padding: 26px 24px 22px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--signal);
  background: linear-gradient(180deg, rgba(12,24,48,.6), rgba(6,13,26,.85));
  transition: box-shadow .25s, border-color .25s;
}
.fab:hover{
  border-color: rgba(46,155,255,.55);
  box-shadow: 0 0 30px rgba(46,155,255,.12);
}
.fab .mod-tag{ margin-bottom: 8px; }
.fab-stat{
  margin: 0 0 16px;
  font-size: 10px;
  color: var(--ice);
  opacity: .8;
}
.fab h3{ font-size: 18px; }
.fab p:last-child{
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-dim);
}

@media (max-width: 1020px){ .fab-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){  .fab-grid{ grid-template-columns: 1fr; } }

/* ---------- principles ---------- */

.prin-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 30px;
}
.prin-tag{ margin: 0 0 14px; color: var(--signal); }
.prin p{
  margin: 0;
  color: var(--ink-dim);
  font-size: 15.5px;
}
@media (max-width: 820px){ .prin-grid{ grid-template-columns: 1fr; gap: 30px; } }

/* ---------- contact ---------- */

.contact{
  text-align: center;
  padding-bottom: 150px;
}
.contact .col p{
  max-width: 46ch;
  margin-left: auto;
  margin-right: auto;
}
.contact .cta-row{ margin-top: 36px; }

/* ---------- footer status bar ---------- */

.statusbar{
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 36px;
  border-top: 1px solid var(--line);
  background: rgba(3,8,17,.9);
  font-size: 10px;
  color: var(--ink-dim);
}

/* ---------- reveal animation ---------- */

.reveal{
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in{
  opacity: 1;
  transform: none;
}

/* stagger the suite tiles when flagship reveals */
.module-flagship .app{ opacity: 0; transition: opacity .5s ease, border-color .25s, background .25s, transform .25s; }
.module-flagship.in .app{ opacity: 1; }
.module-flagship.in .app:nth-child(1){ transition-delay: .15s; }
.module-flagship.in .app:nth-child(2){ transition-delay: .27s; }
.module-flagship.in .app:nth-child(3){ transition-delay: .39s; }
.module-flagship.in .app:nth-child(4){ transition-delay: .51s; }
.module-flagship.in .app:nth-child(5){ transition-delay: .63s; }
.module-flagship.in .app:nth-child(6){ transition-delay: .75s; }
.module-flagship.in .app:nth-child(7){ transition-delay: .87s; }

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .reveal,
  .module-flagship .app{
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero h1{ animation: none; }
  .pulse, .scroll-cue{ animation: none; }
  #boot{ display: none; }
}

.statusbar a{
  color: var(--signal);
  text-decoration: none;
}
.statusbar a:hover{ color: var(--ice); }

/* ============================================================
   AIRLOCK — sealed manifests & access panels
   ============================================================ */

/* redaction bars — details classified */
.redact{
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 4px 0 18px;
}
.redact span{
  display: block;
  height: 11px;
  background: repeating-linear-gradient(
    90deg,
    rgba(126,147,172,.28) 0 26px,
    rgba(126,147,172,.10) 26px 32px
  );
  border-radius: 1px;
}
.redact span:nth-child(1){ width: 84%; }
.redact span:nth-child(2){ width: 62%; }
.redact span:nth-child(3){ width: 73%; }
.app .redact{ margin: 2px 0 4px; gap: 7px; }
.app .redact span{ height: 9px; }
.app .redact span:nth-child(2){ width: 48%; }

.seal{
  margin: 0;
  color: #ffb37a;
  font-size: 10px;
  letter-spacing: .22em;
}
.module-sealed:hover .seal{ text-shadow: 0 0 12px rgba(255,179,122,.45); }

/* ---------- access section ---------- */

.access{ padding-bottom: 150px; }

.access-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 54px;
  max-width: 980px;
}

.access-panel{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 30px 32px 26px;
  background: linear-gradient(165deg, rgba(12,24,48,.75), rgba(6,13,26,.9));
  border: 1px solid var(--line);
}
.access-panel .mod-tag{ margin: 0 0 6px; }
.access-panel .btn{ margin-top: 10px; cursor: pointer; }

.field-label{ font-size: 10px; color: var(--ink-dim); }

.access-panel input[type="text"],
.access-panel input[type="email"],
.access-panel textarea{
  width: 100%;
  padding: 12px 14px;
  background: rgba(3,8,17,.7);
  border: 1px solid var(--line);
  color: var(--ice);
  font-family: var(--font-hud);
  font-size: 13px;
  letter-spacing: .08em;
}
.access-panel input:focus,
.access-panel textarea:focus{
  outline: none;
  border-color: var(--signal);
  box-shadow: 0 0 18px rgba(46,155,255,.18);
}
.access-panel textarea{ resize: vertical; font-family: var(--font-body); letter-spacing: .01em; }

.key-input{
  text-transform: uppercase;
  letter-spacing: .28em !important;
  font-size: 14px !important;
}

.form-status{ min-height: 1.4em; margin: 4px 0 0; font-size: 10px; }
.form-status.ok{ color: #7fe0a8; }
.form-status.err{ color: #ffb37a; }

/* honeypot — invisible to people, tempting to bots */
.hp{
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
}

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

/* ============================================================
   DECK — inside the gate
   ============================================================ */

.deck-hero{
  min-height: 62svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 60px;
}
.deck-hero h1{
  margin: 0 0 24px;
  font-size: clamp(30px, 5.6vw, 64px);
  letter-spacing: .05em;
  animation: chrome-sweep 7s ease-in-out infinite;
}
.deck-hero .thesis{ max-width: 640px; margin: 0 auto; }

.clearance-line{ color: #7fe0a8; }
.clearance-line .pulse{ background: #7fe0a8; box-shadow: 0 0 10px #7fe0a8; }

.board-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 54px;
}
.board{
  padding: 24px 24px 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(12,24,48,.6), rgba(6,13,26,.85));
}
.board .mod-tag{ margin: 0 0 10px; }
.board h3{
  margin: 0 0 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 17px;
  color: var(--chrome-hi);
}
.board p:last-child{ margin: 0; font-size: 14px; color: var(--ink-dim); }
.board-live{ border-top: 2px solid #7fe0a8; }
.board-live .mod-tag{ color: #7fe0a8; }
.board-building{ border-top: 2px solid var(--signal); }
.board-queued{ border-top: 2px solid rgba(126,147,172,.5); }
.board-queued .mod-tag{ color: var(--ink-dim); }

@media (max-width: 1020px){ .board-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){  .board-grid{ grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce){
  .deck-hero h1{ animation: none; }
}

/* ---------- world band: ambient loop + soundtrack ---------- */

.world-media video{
  position: absolute;
  inset: 0;
}

.sound-toggle{
  margin-top: 18px;
  padding: 9px 18px;
  background: rgba(3,8,17,.55);
  border: 1px solid var(--line);
  color: var(--ink-dim);
  cursor: pointer;
  font-size: 10px;
  letter-spacing: .2em;
  transition: color .2s, border-color .2s, box-shadow .2s;
}
.sound-toggle:hover{
  color: var(--ice);
  border-color: var(--signal);
}
.sound-toggle[aria-pressed="true"]{
  color: var(--ice);
  border-color: var(--signal);
  box-shadow: 0 0 18px rgba(46,155,255,.25);
}

@media (prefers-reduced-motion: reduce){
  .world-media video{ display: none; }
}

/* ---------- hero: transmission video ---------- */

.sr-only{
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.hero-video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-scrim{
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(3,8,17,.62) 0%,
    rgba(3,8,17,.10) 30%,
    rgba(3,8,17,.10) 55%,
    rgba(3,8,17,.90) 100%
  );
}

/* content rides the lower third — the transmission's own mark carries the center */
.hero{
  justify-content: flex-end;
  padding-bottom: 110px;
}
.hero .thesis{ margin-bottom: 30px; }
.hero .sound-toggle{ margin-top: 22px; }

@media (prefers-reduced-motion: reduce){
  .hero-video{ display: none; }
  .hero{
    background:
      linear-gradient(180deg, rgba(3,8,17,.5), rgba(3,8,17,.75)),
      url("/assets/wogd-city-1920.webp") center / cover no-repeat;
  }
}

/* ---------- deck hero: forge core ---------- */

.deck-hero{
  position: relative;
  overflow: hidden;
}
.deck-hero #forge{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.deck-hero .hero-content{
  position: relative;
  z-index: 2;
}
.deck-hero .hero-hud{
  position: absolute;
  top: 84px; left: 36px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  color: rgba(126,147,172,.75);
  font-size: 10px;
}

/* ---------- sealed manifests: declassified teaser lines ---------- */

.module-sealed .tease{
  margin: 0 0 16px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink);
  max-width: 56ch;
}

.app-hint{
  margin: 0 0 10px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-dim);
}

/* ---------- hero: clean transmission (text lives below) ---------- */

.hero .sound-toggle{
  position: absolute;
  right: 36px;
  bottom: 24px;
  margin: 0;
  z-index: 2;
}
@media (max-width: 640px){
  .hero .sound-toggle{ right: 16px; bottom: 64px; }
}

/* the video carries its own mark — scrim only guards the topbar and the cue */
.hero-scrim{
  background: linear-gradient(
    180deg,
    rgba(3,8,17,.55) 0%,
    rgba(3,8,17,0) 26%,
    rgba(3,8,17,0) 72%,
    rgba(3,8,17,.72) 100%
  ) !important;
}

.hail{
  text-align: center;
  padding: 120px 0 130px;
}
.hail .thesis{
  max-width: 620px;
  margin: 0 auto 42px;
  font-size: clamp(16px, 2vw, 19px);
}
