/* Tactical Mind Technologies — coming soon
   Palette is strictly monochrome: black, white, charcoal. No other colors. */

@font-face {
  font-family: "Rajdhani";
  src: url("assets/fonts/Rajdhani-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Rajdhani";
  src: url("assets/fonts/Rajdhani-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/JetBrainsMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/JetBrainsMono-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

:root {
  --black: #000000;
  --white: #ffffff;
  --charcoal: #2b2a2a;
  --gray: #8c8c8c;

  --sans: "Rajdhani", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --grid: 72px;
  --edge: clamp(20px, 5vw, 64px);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 500;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Faint technical grid + vignette, fading toward the edges */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: var(--grid) var(--grid);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 20%, transparent 78%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 20%, transparent 78%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 42%, rgba(140, 140, 140, .16), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Chevron corner marks — brand frame */
.corner {
  position: fixed;
  width: clamp(56px, 9vw, 116px);
  height: auto;
  opacity: .16;
  pointer-events: none;
  z-index: 1;
}
.corner--tl { top: var(--edge); left: var(--edge); }
.corner--br { bottom: var(--edge); right: var(--edge); transform: rotate(180deg); }

.stage {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(48px, 10vh, 96px);
  padding: calc(var(--edge) + clamp(56px, 9vw, 116px) * .9) var(--edge) var(--edge);
  text-align: center;
}

/* Slow sweep across the hero */
.scan {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.scan::before {
  content: "";
  position: absolute;
  left: -20%;
  right: -20%;
  height: 34vh;
  top: -40vh;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, .045), transparent);
  animation: sweep 11s linear infinite;
}
@keyframes sweep {
  to { transform: translateY(180vh); }
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 660px;
  width: 100%;
}

/* ---- Logo -------------------------------------------------------------- */

.logo { width: 100%; }

.logo__primary {
  width: min(100%, 520px);
  height: auto;
  display: block;
  margin-inline: auto;
}
.logo__wordmark { display: none; }
.logo__descriptor { display: none; }

/* Below the primary lockup's minimum legible size, drop to the wordmark
   and set the descriptor separately (brand guideline). */
@media (max-width: 620px) {
  .logo__primary { display: none; }
  .logo__wordmark {
    display: block;
    width: min(62%, 220px);
    height: auto;
    margin-inline: auto;
  }
  .logo__descriptor {
    display: block;
    margin: 22px 0 0;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--gray);
  }
}

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

.rule {
  width: 100%;
  max-width: 380px;
  height: 1px;
  border: 0;
  margin: clamp(32px, 6vh, 56px) 0 clamp(28px, 5vh, 44px);
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, .28), transparent);
}

.headline {
  margin: 0;
  font-size: clamp(2.4rem, 9vw, 4.6rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-indent: .12em; /* balance the trailing letter-spacing */
}

.lede {
  margin: clamp(20px, 3.5vh, 30px) 0 0;
  max-width: 46ch;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  line-height: 1.65;
  color: var(--gray);
  text-wrap: pretty;
}

.lede--sub {
  margin-top: clamp(14px, 2.2vh, 20px);
  max-width: 42ch;
  font-size: clamp(.9rem, 2vw, 1.02rem);
  color: rgba(140, 140, 140, .78);
}

.contact {
  margin: clamp(30px, 5vh, 46px) 0 0;
  font-family: var(--mono);
  font-size: clamp(12px, 3vw, 14px);
  letter-spacing: .04em;
  word-break: break-word;
}
.contact a {
  color: var(--white);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, .3);
  transition: border-color .2s ease, opacity .2s ease;
}
.contact a:hover,
.contact a:focus-visible {
  border-color: var(--white);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gray);
}
.footer__sep { opacity: .5; }

:focus-visible {
  outline: 1px solid var(--white);
  outline-offset: 4px;
}

/* ---- Entrance ---------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: reveal .8s cubic-bezier(.2, .7, .3, 1) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes reveal {
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  .scan::before { animation: none; display: none; }
}

/* Short / landscape phones: keep everything on one screen */
@media (max-height: 620px) {
  .stage { gap: 32px; }
  .rule { margin: 22px 0 20px; }
}
