/* ─── RESET & VARIABLES ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #07090f;
  --dark: #0c1019;
  --blue: #4a7fe0;
  --blue-bright: #6b9fff;
  --blue-dim: #2d5aad;
  --amber: #d4922a;
  --amber-bright: #e8a44a;
  --white: #eceef5;
  --muted: #374060;
  --muted-light: #5a6590;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Space Mono', monospace;
  overflow-x: hidden;
  cursor: crosshair;
}

/* noise */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.45;
}

/* grid */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(74,127,224,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74,127,224,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  z-index: 0;
}

/* scanline */
.scanline {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0.1;
  animation: scan 10s linear infinite;
  z-index: 100;
  pointer-events: none;
}
@keyframes scan {
  0% { top: -2px; }
  100% { top: 100vh; }
}

/* ─── HERO ─── */
header {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(2rem, 8vw, 6rem);
  z-index: 1;
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  opacity: 0.22;
  filter: saturate(0.7) contrast(1.1);
}

.hero-img-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, var(--black) 45%, transparent 100%),
    linear-gradient(to top, var(--black) 10%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.signal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.58rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 1.5rem;
}

.signal-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue-bright);
  animation: pulse-dot 2.5s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(107,159,255,0.9);
}
@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 4px rgba(107,159,255,0.8); transform: scale(1); }
  50% { box-shadow: 0 0 18px rgba(107,159,255,1); transform: scale(1.4); }
}

.tag {
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  color: var(--blue-bright);
  text-transform: uppercase;
  border: 1px solid rgba(107,159,255,0.22);
  padding: 0.35em 0.9em;
  margin-bottom: 2rem;
  display: inline-block;
  animation: fadeUp 1s ease both;
  position: relative;
}
.tag::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--blue-bright);
  animation: pulse-bar 2.5s ease-in-out infinite;
}
@keyframes pulse-bar {
  0%,100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.6rem, 10.5vw, 9.5rem);
  line-height: 0.88;
  letter-spacing: 0.025em;
  color: var(--white);
  animation: fadeUp 1s 0.2s ease both;
  text-transform: uppercase;
}
.hero-title em {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  color: var(--blue-bright);
  text-shadow: 0 0 90px rgba(107,159,255,0.55);
  text-transform: none;
  font-size: 0.82em;
  letter-spacing: -0.01em;
  display: block;
}

.ticker {
  font-size: clamp(0.7rem, 1.6vw, 0.9rem);
  color: var(--amber-bright);
  letter-spacing: 0.28em;
  margin-top: 1.6rem;
  animation: fadeUp 1s 0.4s ease both;
}

.cursor {
  display: inline-block;
  width: 0.5em; height: 1em;
  background: var(--amber-bright);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-narrative {
  max-width: 500px;
  margin-top: 2rem;
  font-size: clamp(0.73rem, 1.3vw, 0.84rem);
  line-height: 1.95;
  color: rgba(236,238,245,0.45);
  animation: fadeUp 1s 0.6s ease both;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2.2rem;
  animation: fadeUp 1s 0.8s ease both;
}
.hero-badge {
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-light);
  border: 1px solid rgba(90,101,144,0.3);
  padding: 0.4em 0.9em;
}

.scroll-hint {
  position: absolute;
  bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column;
  align-items: center; gap: 0.5rem;
  animation: fadeUp 1s 1.2s ease both;
  opacity: 0.3;
}
.scroll-hint span { font-size: 0.56rem; letter-spacing: 0.3em; text-transform: uppercase; }
.scroll-arrow {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--blue), transparent);
  animation: grow-down 1.8s ease-in-out infinite;
}
@keyframes grow-down {
  0% { transform: scaleY(0); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: top; opacity: 0; }
}

/* ─── COMMON SECTION ─── */
section {
  position: relative;
  z-index: 1;
  padding: clamp(4rem, 10vw, 8rem) clamp(2rem, 8vw, 6rem);
}

.section-label {
  font-size: 0.56rem;
  letter-spacing: 0.48em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.section-label::after {
  content: '';
  flex: 1; max-width: 80px;
  height: 1px; background: var(--muted);
}

/* ─── WHAT IS GRIT ─── */
.what-is-grit {
  border-top: 1px solid rgba(255,255,255,0.05);
}
.wig-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
@media (max-width: 750px) {
  .wig-inner { grid-template-columns: 1fr; gap: 3rem; }
}

.narrative-text {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.5rem, 3.8vw, 2.8rem);
  line-height: 1.38;
  color: var(--white);
  margin-bottom: 1.8rem;
}
.highlight { color: var(--blue-bright); }
.dim { color: rgba(236,238,245,0.28); }

.wig-body {
  font-size: 0.78rem;
  line-height: 1.95;
  color: rgba(236,238,245,0.42);
  border-left: 2px solid rgba(74,127,224,0.25);
  padding-left: 1.2rem;
}

.wig-img {
  position: relative;
}
.wig-img img {
  width: 100%;
  border-radius: 2px;
  display: block;
  filter: saturate(0.9) contrast(1.05);
  transition: filter 0.4s;
}
.wig-img:hover img { filter: saturate(1.1) contrast(1.1); }
.img-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(7,9,15,0.85), transparent);
  padding: 1.5rem 1rem 0.8rem;
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  color: var(--blue-bright);
  text-align: center;
}

/* ─── FULL BANNER ─── */
.full-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  z-index: 1;
  max-height: 420px;
}
.full-banner img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(0.85) contrast(1.05);
}
.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(7,9,15,0.6) 0%, transparent 60%);
  display: flex;
  align-items: center;
  padding: 0 clamp(2rem, 8vw, 6rem);
}
.banner-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 5.5vw, 5rem);
  letter-spacing: 0.03em;
  color: var(--white);
  line-height: 1.05;
  text-shadow: 0 2px 20px rgba(0,0,0,0.6);
}
.banner-text span { color: var(--blue-bright); display: block; }

/* ─── VALUES ─── */
.values-section {
  border-top: 1px solid rgba(255,255,255,0.05);
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.05);
}
@media (max-width: 800px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 450px) {
  .values-grid { grid-template-columns: 1fr; }
}

.value-card {
  background: var(--black);
  padding: 2.5rem 1.8rem;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}
.value-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.value-card:hover::after { transform: scaleX(1); }
.value-card:hover { background: rgba(74,127,224,0.04); }

.v-icon {
  display: block;
  font-size: 1.4rem;
  color: var(--blue);
  margin-bottom: 1rem;
  opacity: 0.7;
}
.value-card h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.value-card p {
  font-size: 0.7rem;
  color: var(--muted-light);
  line-height: 1.6;
}

/* ─── IMAGE TRIO ─── */
.image-trio {
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 2px;
  z-index: 1;
  position: relative;
}
@media (max-width: 650px) {
  .image-trio { grid-template-columns: 1fr; }
}

.trio-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.trio-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.8) contrast(1.05);
  transition: filter 0.5s, transform 0.5s;
}
.trio-item:hover img {
  filter: saturate(1.1) contrast(1.1);
  transform: scale(1.03);
}
.trio-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(7,9,15,0.88), transparent);
  padding: 2rem 1rem 0.9rem;
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  color: rgba(236,238,245,0.6);
  text-align: center;
  transition: color 0.3s;
}
.trio-item:hover .trio-caption { color: var(--blue-bright); }
.trio-main { aspect-ratio: 1 / 1.15; }

/* ─── BELIEFS ─── */
.beliefs-section {
  border-top: 1px solid rgba(255,255,255,0.05);
}
.beliefs-list { display: flex; flex-direction: column; }
.belief-item {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.25s;
  cursor: default;
}
.belief-item:hover { background: rgba(74,127,224,0.025); padding-left: 1rem; }
.belief-num {
  font-size: 0.56rem;
  color: var(--blue);
  letter-spacing: 0.2em;
  opacity: 0.55;
  min-width: 2.2rem;
  flex-shrink: 0;
}
.belief-item p {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1rem, 2.8vw, 1.7rem);
  color: rgba(236,238,245,0.35);
  line-height: 1.25;
  transition: color 0.25s;
}
.belief-item:hover p { color: rgba(236,238,245,0.55); }
.belief-item p strong {
  color: var(--white);
  font-weight: 400;
}

/* ─── ROADMAP ─── */
.roadmap {
  border-top: 1px solid rgba(255,255,255,0.05);
}
.roadmap-sub {
  font-size: 0.73rem;
  color: var(--muted-light);
  letter-spacing: 0.12em;
  margin-bottom: 3rem;
  font-style: italic;
}
.roadmap-track {
  position: relative;
  padding-left: 2px;
}
.roadmap-track::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--blue), var(--amber-bright), transparent);
}
.phase {
  padding: 2.5rem 0 2.5rem 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  position: relative;
  transition: background 0.3s;
}
.phase:hover { background: rgba(74,127,224,0.025); }
.phase-dot {
  position: absolute;
  left: -5px; top: 2.8rem;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--black);
  border: 2px solid var(--blue);
  transition: background 0.3s, box-shadow 0.3s;
}
.phase:hover .phase-dot {
  background: var(--blue);
  box-shadow: 0 0 14px rgba(74,127,224,0.7);
}
.phase-num {
  font-size: 0.54rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.8rem;
  opacity: 0.65;
}
.phase-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--white);
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.phase-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.56rem;
  color: var(--amber-bright);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.75;
  font-weight: 400;
}
.phase-vibe {
  font-size: 0.76rem;
  font-style: italic;
  color: rgba(236,238,245,0.28);
  margin-bottom: 1.2rem;
  line-height: 1.5;
}
.phase-items { list-style: none; display: flex; flex-direction: column; gap: 0.45rem; }
.phase-items li {
  font-size: 0.74rem;
  color: rgba(236,238,245,0.38);
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.5;
}
.phase-items li::before {
  content: '→';
  position: absolute; left: 0;
  color: var(--blue-dim);
  font-size: 0.68rem;
}

/* ─── ARMY SECTION ─── */
.army-section {
  border-top: 1px solid rgba(255,255,255,0.05);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 500px;
}
@media (max-width: 750px) {
  .army-section { grid-template-columns: 1fr; }
}
.army-img {
  position: relative;
  overflow: hidden;
}
.army-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(0.85);
}
.army-content {
  background: var(--dark);
  padding: clamp(3rem, 6vw, 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid rgba(255,255,255,0.05);
}
.army-pre {
  font-size: 0.6rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 1rem;
}
.army-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 0.9;
  letter-spacing: 0.03em;
  color: var(--white);
  margin-bottom: 1rem;
}
.army-title span { color: var(--blue-bright); }
.army-sub {
  font-size: 0.78rem;
  color: rgba(236,238,245,0.4);
  letter-spacing: 0.1em;
  margin-bottom: 2.5rem;
}
.army-btns { display: flex; flex-direction: column; gap: 0.8rem; max-width: 260px; }

.link-btn {
  font-family: 'Space Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--blue);
  text-decoration: none;
  padding: 0.9em 1.8em;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  transition: background 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}
.link-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.15);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}
.link-btn:hover::before { transform: translateX(0); }
.link-btn:hover { box-shadow: 0 0 35px rgba(74,127,224,0.5); }

.link-btn.outline {
  background: transparent;
  color: var(--amber-bright);
  border: 1px solid rgba(212,146,42,0.35);
}
.link-btn.outline:hover {
  background: rgba(212,146,42,0.06);
  box-shadow: 0 0 30px rgba(212,146,42,0.2);
  border-color: var(--amber-bright);
}

/* ─── CLOSING ─── */
.closing {
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center;
  min-height: 65vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 10vw, 8rem) clamp(2rem, 8vw, 6rem);
}
.closing-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(74,127,224,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.closing-sub {
  font-size: 0.6rem;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
  animation: fadeUp 1s ease both;
  position: relative;
}
.closing-main {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.8rem, 9vw, 8rem);
  line-height: 0.93;
  letter-spacing: 0.03em;
  color: var(--white);
  text-transform: uppercase;
  animation: fadeUp 1s 0.15s ease both;
  position: relative;
}
.closing-main em {
  display: block;
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  color: var(--blue-bright);
  text-shadow: 0 0 100px rgba(107,159,255,0.6);
  text-transform: none;
  font-size: 0.8em;
  letter-spacing: -0.01em;
}
.closing-caption {
  font-size: 0.68rem;
  color: rgba(236,238,245,0.22);
  margin-top: 2.5rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: fadeUp 1s 0.3s ease both;
  position: relative;
}

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 2rem clamp(2rem, 8vw, 6rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
  z-index: 1;
  text-transform: uppercase;
}
.footer-mid a {
  color: var(--muted-light);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-mid a:hover { color: var(--blue-bright); }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@keyframes flicker {
  0%,96%,98%,100% { opacity: 1; }
  97% { opacity: 0.3; }
}
.flicker { animation: flicker 9s infinite; }