/* ============================================================
   ORDNANCE — logo / header section
   Matte black · brushed stainless steel · target on final "E"
   ============================================================ */

/* ---------- Reset & base ---------- */

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

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

body {
  background: #000000;               /* solid matte black — no texture */
  font-family: "Orbitron", "Arial Black", Arial, sans-serif;
  color: #c8c8c8;
}

/* ---------- Header layout ---------- */

.site-header {
  width: 100%;
  display: flex;
  justify-content: center;           /* center the whole logo */
  align-items: center;
  background: #000000;
  padding: clamp(2.5rem, 7vw, 5.5rem) clamp(1rem, 4vw, 3rem);
  overflow-x: hidden;
}

.logo-block {
  width: fit-content;
  max-width: 100%;
  text-align: center;
}

/* If the finished PNG is used instead of the CSS build */
.logo-image {
  display: block;
  width: 100%;
  max-width: 1500px;
  height: auto;
  object-fit: contain;
  border: none;
  border-radius: 0;
  filter: none;
  background: none;
}

/* ---------- ORDNANCE wordmark ---------- */

.wordmark {
  font-weight: 900;
  font-size: clamp(2rem, 9.5vw, 7rem);
  letter-spacing: 0.10em;
  line-height: 1.15;
  white-space: nowrap;               /* never crop or wrap the word */
  display: inline-block;
  /* room for the crosshair to extend above / below / right */
  padding: 0.28em 0.55em 0.28em 0;
  /* contain the negative z-index ring/bevel layers so they stay
     above the page background instead of vanishing behind it */
  isolation: isolate;
}

/* Brushed stainless-steel letters:
   fine horizontal grain layered over a chrome gradient */
.metal {
  position: relative;
  display: inline-block;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.09) 0px,
      rgba(255, 255, 255, 0.09) 1px,
      rgba(0, 0, 0, 0.10) 2px,
      rgba(0, 0, 0, 0) 3px
    ),
    linear-gradient(
      180deg,
      #ffffff 0%,
      #e8e8e8 14%,
      #c2c2c2 30%,
      #7d7d7d 47%,
      #3a3a3a 51%,
      #6f6f6f 56%,
      #b5b5b5 72%,
      #f2f2f2 88%,
      #8f8f8f 100%
    );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  /* thin bright chrome edge around each letter */
  -webkit-text-stroke: 0.014em rgba(235, 235, 235, 0.45);
}

/* Slight beveled 3-D edge: dark duplicate offset just behind the face */
.metal::before {
  content: attr(data-text);
  position: absolute;
  left: 0.035em;
  top: 0.035em;
  z-index: -1;
  background: linear-gradient(180deg, #2e2e2e 0%, #161616 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Target / crosshair around the final "E" ---------- */

.target-letter {
  position: relative;
  display: inline-block;
}

.ring,
.tick {
  position: absolute;
  pointer-events: none;
}

/* Stainless rings, centered on the E, sitting BEHIND the letter
   (in the reference logo the E overlaps the rings) */
.ring {
  left: 58%;
  top: 44%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border-style: solid;
  z-index: -2;
}

.ring-outer {
  width: 1.56em;
  height: 1.56em;
  border-width: 0.042em;
  border-color: #c9c9c9;
  box-shadow:
    inset 0 0.02em 0.03em rgba(255, 255, 255, 0.4),
    inset 0 -0.02em 0.03em rgba(0, 0, 0, 0.6);
}

.ring-inner {
  width: 1.14em;
  height: 1.14em;
  border-width: 0.026em;
  border-color: #9a9a9a;
}

/* Four crosshair marks on the outer ring */
.tick {
  background: linear-gradient(180deg, #efefef 0%, #8c8c8c 100%);
}

.tick-top,
.tick-bottom {
  width: 0.045em;
  height: 0.26em;
  left: 58%;
  transform: translateX(-50%);
}

.tick-top    { top: calc(44% - 0.91em); }
.tick-bottom { top: calc(44% + 0.65em); }

.tick-left,
.tick-right {
  width: 0.26em;
  height: 0.045em;
  top: 44%;
  transform: translateY(-50%);
  background: linear-gradient(90deg, #efefef 0%, #8c8c8c 100%);
}

.tick-left  { left: calc(58% - 0.91em); }

/* right mark is longer, poking out past the ring like the reference */
.tick-right {
  width: 0.42em;
  left: calc(58% + 0.65em);
}

/* ---------- Header animation ----------
   One shared 9s timeline, plays ONCE and holds its final state:
   0%  → 22% : target glows red, peaks at 22%
   22% → 30% : detonation — cracks, shockwave, shake
   45% → 70% : white halo blooms around ORDNANCE and STAYS lit
   76% → 92% : target (rings + crosshair marks) fades out for good
*/

.ring-outer {
  animation: ring-outer-glow 9s ease-in-out 1 forwards;
}

.ring-inner {
  animation: ring-inner-glow 9s ease-in-out 1 forwards;
}

.tick {
  animation: tick-glow 9s ease-in-out 1 forwards;
}

/* halo goes on the wordmark container, NOT on .metal itself —
   a filter on .metal would create a stacking context that lifts the
   dark bevel (::before) above the silver fill and darken the letters */
.wordmark {
  animation: word-halo 9s ease-in-out 1 forwards;
}

@keyframes ring-outer-glow {
  0%, 45% {
    border-color: #c9c9c9;
    box-shadow:
      inset 0 0.02em 0.03em rgba(255, 255, 255, 0.4),
      inset 0 -0.02em 0.03em rgba(0, 0, 0, 0.6),
      0 0 0 rgba(255, 0, 0, 0);
    opacity: 1;
  }
  22% {
    border-color: #ff4b3a;
    box-shadow:
      inset 0 0.02em 0.03em rgba(255, 255, 255, 0.4),
      inset 0 -0.02em 0.03em rgba(0, 0, 0, 0.6),
      0 0 0.22em rgba(255, 45, 30, 0.85),
      0 0 0.55em rgba(255, 0, 0, 0.45);
    opacity: 1;
  }
  76% { opacity: 1; }
  92%, 100% { opacity: 0; }
}

@keyframes ring-inner-glow {
  0%, 45% {
    border-color: #9a9a9a;
    box-shadow: 0 0 0 rgba(255, 0, 0, 0);
    opacity: 1;
  }
  22% {
    border-color: #ff5c47;
    box-shadow:
      0 0 0.16em rgba(255, 45, 30, 0.8),
      0 0 0.4em rgba(255, 0, 0, 0.4);
    opacity: 1;
  }
  76% { opacity: 1; }
  92%, 100% { opacity: 0; }
}

@keyframes tick-glow {
  0%, 45% {
    filter: drop-shadow(0 0 0 rgba(255, 0, 0, 0));
    opacity: 1;
  }
  22% {
    filter:
      drop-shadow(0 0 0.06em rgba(255, 60, 40, 0.9))
      drop-shadow(0 0 0.18em rgba(255, 0, 0, 0.55));
    opacity: 1;
  }
  76% { opacity: 1; }
  92%, 100% { opacity: 0; }
}

/* White halo blooms after the blast and stays lit permanently */
@keyframes word-halo {
  0%, 45% {
    filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0));
  }
  70%, 100% {
    filter:
      drop-shadow(0 0 0.1em rgba(255, 255, 255, 0.55))
      drop-shadow(0 0 0.34em rgba(235, 235, 235, 0.38));
  }
}

/* ---------- Impact: concrete smash at the red peak (~22%) ---------- */

/* Radial fracture cracks bursting out from behind the target */
.impact-cracks {
  position: absolute;
  left: 58%;
  top: 44%;
  width: 7.5em;
  height: 7.5em;
  transform: translate(-50%, -50%) scale(0.5);
  z-index: -3;                       /* behind rings and letters */
  pointer-events: none;
  opacity: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cg fill='none' stroke='%23a8a8a8' stroke-width='3' stroke-linejoin='miter'%3E%3Cpath d='M235,197 L262,188 L286,196 L318,182 L352,190'/%3E%3Cpath d='M228,178 L248,158 L246,138 L270,116 L282,92'/%3E%3Cpath d='M204,165 L196,140 L208,118 L200,88'/%3E%3Cpath d='M176,180 L152,164 L138,142 L112,130'/%3E%3Cpath d='M165,202 L138,208 L114,198 L84,208 L58,200'/%3E%3Cpath d='M175,224 L156,244 L158,266 L136,288'/%3E%3Cpath d='M198,238 L206,262 L194,286 L204,316'/%3E%3Cpath d='M226,222 L250,240 L254,264 L280,282 L292,308'/%3E%3C/g%3E%3Cg fill='none' stroke='%236e6e6e' stroke-width='1.5'%3E%3Cpath d='M262,188 L268,172'/%3E%3Cpath d='M152,164 L146,146'/%3E%3Cpath d='M206,262 L222,270'/%3E%3Cpath d='M250,240 L262,232'/%3E%3Cpath d='M196,140 L182,128'/%3E%3Cpath d='M114,198 L104,184'/%3E%3Cpath d='M254,264 L240,276'/%3E%3Cpath d='M286,196 L296,210'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  animation: cracks-smash 9s ease-out 1 forwards;
}

@keyframes cracks-smash {
  0%, 20.5% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.45);
  }
  22% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  30% {
    opacity: 0.85;
    transform: translate(-50%, -50%) scale(1.03);
  }
  42%, 100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.06);
  }
}

/* Expanding blast shockwave ring */
.shockwave {
  position: absolute;
  left: 58%;
  top: 44%;
  width: 2em;
  height: 2em;
  border-radius: 50%;
  border: 0.06em solid rgba(255, 235, 230, 0.85);
  transform: translate(-50%, -50%) scale(0.3);
  z-index: -3;
  pointer-events: none;
  opacity: 0;
  animation: shockwave-blast 9s ease-out 1 forwards;
}

@keyframes shockwave-blast {
  0%, 21% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3);
  }
  23% {
    opacity: 0.7;
  }
  32%, 100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(3.4);
  }
}

/* Whole logo block jolts like the detonation rocked it */
.logo-block {
  animation: impact-shake 9s linear 1 forwards;
}

@keyframes impact-shake {
  0%, 21.8% { transform: translate(0, 0) rotate(0deg); }
  22.1%     { transform: translate(-7px, 4px) rotate(-0.45deg); }
  22.5%     { transform: translate(6px, -5px) rotate(0.4deg); }
  22.9%     { transform: translate(-5px, 3px) rotate(-0.3deg); }
  23.3%     { transform: translate(4px, -2px) rotate(0.22deg); }
  23.7%     { transform: translate(-3px, 2px) rotate(-0.15deg); }
  24.2%     { transform: translate(2px, -1px) rotate(0.08deg); }
  24.8%, 100% { transform: translate(0, 0) rotate(0deg); }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ring-outer,
  .ring-inner,
  .tick,
  .wordmark,
  .impact-cracks,
  .shockwave,
  .logo-block {
    animation: none;
  }
}

/* ---------- Service tagline ---------- */

.services {
  margin-top: clamp(0.8rem, 2vw, 1.3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;    /* stretch across the logo width */
  width: 100%;
  font-family: "Rajdhani", "Segoe UI", Arial, sans-serif;
  font-weight: 600;
  font-size: clamp(0.72rem, 2.1vw, 1.35rem);
  text-transform: uppercase;
  letter-spacing: 0.34em;
  color: #c4c4c4;
  white-space: nowrap;
}

.service {
  background: linear-gradient(180deg, #eaeaea 0%, #b9b9b9 55%, #838383 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  /* compensate trailing letter-spacing so items sit balanced */
  margin-right: -0.34em;
}

/* Thin vertical divider lines between the three services */
.service-sep {
  width: 1px;
  height: 1.05em;
  background: linear-gradient(180deg, #dedede 0%, #7c7c7c 100%);
  flex: 0 0 1px;
  margin: 0 clamp(0.6rem, 2vw, 1.5rem);
}

/* ============================================================
   PAGE SECTIONS
   ============================================================ */

main {
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* ---------- Hero ---------- */

.hero {
  text-align: center;
  padding: clamp(1rem, 4vw, 3rem) 0 clamp(3rem, 7vw, 5.5rem);
}

.hero-headline {
  font-family: "Orbitron", "Arial Black", Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(1.4rem, 3.6vw, 2.6rem);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background: linear-gradient(180deg, #f4f4f4 0%, #bdbdbd 55%, #7e7e7e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 1.2rem;
}

.hero-sub {
  font-family: "Rajdhani", "Segoe UI", Arial, sans-serif;
  font-weight: 500;
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: #a9a9a9;
  max-width: 46em;
  margin: 0 auto 2.2rem;
}

/* ---------- Steel buttons ---------- */

.btn {
  display: inline-block;
  font-family: "Orbitron", "Arial Black", Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  text-decoration: none;
  color: #0a0a0a;
  background: linear-gradient(180deg, #f2f2f2 0%, #bfbfbf 48%, #8d8d8d 52%, #c9c9c9 100%);
  border: 1px solid #6f6f6f;
  padding: 0.9em 2.2em;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.btn:hover,
.btn:focus-visible {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.btn-large {
  font-size: clamp(0.9rem, 1.8vw, 1.15rem);
  padding: 1em 2.8em;
}

/* ---------- Section rules ---------- */

.section-rule {
  height: 1px;
  width: min(1100px, 92%);
  margin: 0 auto;
  background: linear-gradient(
    90deg,
    rgba(160, 160, 160, 0) 0%,
    #9c9c9c 18%,
    #d6d6d6 50%,
    #9c9c9c 82%,
    rgba(160, 160, 160, 0) 100%
  );
}

/* ---------- Arsenal / services section ---------- */

.arsenal,
.cta {
  text-align: center;
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.section-title {
  font-family: "Orbitron", "Arial Black", Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(1.2rem, 3vw, 2.1rem);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  background: linear-gradient(180deg, #f4f4f4 0%, #bdbdbd 55%, #7e7e7e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 0.7rem;
}

.section-sub {
  font-family: "Rajdhani", "Segoe UI", Arial, sans-serif;
  font-weight: 500;
  font-size: clamp(0.95rem, 1.9vw, 1.2rem);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #8d8d8d;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  text-align: left;
}

.card {
  border: 1px solid #333333;
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, #7c7c7c, #e0e0e0, #7c7c7c) 1;
  background: #050505;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.card:hover {
  background: #0a0a0a;
}

.card-icon {
  width: 3rem;
  height: 3rem;
  color: #c0c0c0;
  margin-bottom: 1.2rem;
}

.card-title {
  font-family: "Orbitron", "Arial Black", Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(1rem, 2vw, 1.25rem);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  background: linear-gradient(180deg, #f0f0f0 0%, #b3b3b3 60%, #7f7f7f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 0.9rem;
}

.card-copy {
  font-family: "Rajdhani", "Segoe UI", Arial, sans-serif;
  font-weight: 500;
  font-size: clamp(0.95rem, 1.7vw, 1.1rem);
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: #a2a2a2;
}

/* ---------- CTA ---------- */

.cta-alt {
  font-family: "Rajdhani", "Segoe UI", Arial, sans-serif;
  font-weight: 500;
  font-size: clamp(0.9rem, 1.7vw, 1.05rem);
  letter-spacing: 0.06em;
  color: #8d8d8d;
  margin-top: 1.8rem;
}

.cta-mail {
  color: #d0d0d0;
  text-decoration: none;
  border-bottom: 1px solid #6f6f6f;
  padding-bottom: 1px;
}

.cta-mail:hover,
.cta-mail:focus-visible {
  color: #ffffff;
  border-bottom-color: #d0d0d0;
}

/* ---------- Footer ---------- */

.site-footer {
  text-align: center;
  padding: 0 0 2.5rem;
}

.footer-rule {
  height: 1px;
  width: min(1100px, 92%);
  margin: 0 auto 1.6rem;
  background: linear-gradient(
    90deg,
    rgba(160, 160, 160, 0) 0%,
    #6e6e6e 50%,
    rgba(160, 160, 160, 0) 100%
  );
}

.footer-line {
  font-family: "Rajdhani", "Segoe UI", Arial, sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #6f6f6f;
}

/* ---------- Responsive ---------- */

/* Tablets */
@media (max-width: 820px) {
  .wordmark {
    letter-spacing: 0.07em;
  }

  .services {
    letter-spacing: 0.22em;
  }

  .service {
    margin-right: -0.22em;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }
}

/* Phones */
@media (max-width: 520px) {
  .wordmark {
    font-size: clamp(1.5rem, 10.5vw, 3rem);
    letter-spacing: 0.05em;
  }

  .services {
    font-size: clamp(0.58rem, 2.9vw, 0.85rem);
    letter-spacing: 0.14em;
  }

  .service {
    margin-right: -0.14em;
  }
}

/* Very small screens — shrink, never crop */
@media (max-width: 360px) {
  .wordmark {
    font-size: clamp(1.2rem, 10vw, 1.9rem);
    letter-spacing: 0.03em;
  }

  .services {
    font-size: clamp(0.5rem, 3vw, 0.7rem);
    letter-spacing: 0.1em;
  }

  .service {
    margin-right: -0.1em;
  }

  .service-sep {
    margin: 0 0.4rem;
  }
}
