/* ===== Iron Dragon — Kinetic Industrialism design system ===== */

:root {
  --carbon: #050505;
  --white: #FFFFFF;
  --steel: #A1A1AA;
  --amber: #FF5C00;
  --hairline: rgba(255, 255, 255, 0.1);

  --font-head: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--carbon);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

.coord-label {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--steel);
}

.hairline {
  width: 100%;
  height: 1px;
  background: var(--hairline);
  border: none;
}

.section-headline {
  font-family: var(--font-head);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-top: 12px;
}

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 28px;
  border: 1px solid var(--white);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--carbon);
}

/* ===== Nav ===== */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.nav.scrolled {
  background: rgba(5, 5, 5, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--hairline);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
}

.mark {
  width: 11px;
  height: 11px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 32px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links a { color: var(--steel); transition: color 0.2s ease; }
.nav-links a:hover { color: var(--white); }

.btn-nav { padding: 10px 20px; font-size: 11px; }

/* ===== Hero ===== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--carbon) 5%, rgba(5,5,5,0.55) 55%, rgba(5,5,5,0.25) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 140px 32px 64px;
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber);
}

.dot.online {
  background: #2ecc55;
  box-shadow: 0 0 6px #2ecc55, 0 0 14px rgba(46, 204, 85, 0.7);
  animation: dot-pulse 2.2s ease-in-out infinite;
}

.dot.offline {
  background: #e0362b;
  box-shadow: 0 0 6px #e0362b, 0 0 14px rgba(224, 54, 43, 0.6);
  animation: none;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.hero-headline {
  font-family: var(--font-head);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.9;
  font-size: clamp(3.5rem, 12vw, 9rem);
}

.hero-bottom { margin-top: 40px; }

.hero-bottom .hairline { margin-bottom: 24px; }

.hero-tagline {
  max-width: 640px;
  color: var(--steel);
  font-size: 16px;
}

/* ===== Section shell ===== */

section {
  padding: 120px 32px;
  max-width: 1400px;
  margin: 0 auto;
  border-top: 1px solid var(--hairline);
}

.hero { border-top: none; padding-left: 0; padding-right: 0; max-width: none; }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.section-summary {
  max-width: 380px;
  color: var(--steel);
  font-size: 15px;
  text-align: right;
}

/* ===== Capability Matrix ===== */

.capability-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
}

.capability-tile {
  position: relative;
  padding: 32px 28px 40px;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
}

.tile-number {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--amber);
  margin-bottom: 24px;
}

.capability-tile h3 {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 16px;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
  line-height: 1.3;
}

.capability-tile p {
  color: var(--steel);
  font-size: 13.5px;
}

.tile-underline {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--amber);
  transition: width 0.35s ease;
}

.capability-tile:hover .tile-underline { width: 100%; }

/* ===== Manifesto ===== */

.manifesto {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding-left: 0;
  padding-right: 0;
  max-width: none;
  align-items: stretch;
}

.manifesto-media {
  position: relative;
  min-height: 560px;
}

.manifesto-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85);
}

.fig-label {
  position: absolute;
  bottom: 24px; left: 24px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  background: rgba(5,5,5,0.6);
  padding: 6px 10px;
}

.manifesto-text {
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.manifesto-text .section-headline { margin-bottom: 28px; }

.manifesto-text p {
  color: var(--steel);
  font-size: 15.5px;
  margin-bottom: 20px;
  max-width: 520px;
}

.pull-quote {
  margin-top: 24px;
  padding-left: 20px;
  border-left: 2px solid var(--amber);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 20px;
  color: var(--white);
  font-style: normal;
  max-width: 480px;
}

/* ===== Certifications ===== */

.carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.carousel-arrow {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.carousel-arrow:hover { border-color: var(--amber); color: var(--amber); }

.carousel-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  perspective: 1200px;
}

.badge-flip {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition: transform 0.14s ease, opacity 0.14s ease;
}

/* Quick slide-out / slide-in swap (replaces the flip spin) */
.badge-flip.slide-out { opacity: 0; transform: translateX(-36px); }
.badge-flip.slide-in  { opacity: 0; transform: translateX(36px); transition: none; }

.badge-flip img { width: 100%; height: 100%; object-fit: contain; }

/* Self-contained badges (e.g. the official AWS hexagon) sit on the dark
   background without the white disc, sized a little larger */
.badge-flip.badge-plain { background: transparent; padding: 10px; }

.cert-info { text-align: center; }

.cert-info h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 6px;
}

.cert-info p {
  color: var(--steel);
  font-size: 13.5px;
  margin-bottom: 8px;
}

.cert-level {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
}

.carousel-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 48px;
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  border: none;
  background: var(--hairline);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.carousel-dots button.active {
  width: 24px;
  background: var(--amber);
}

.carousel-counter {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--steel);
  letter-spacing: 0.1em;
}

/* ===== Contact / Footer ===== */

.contact-headline { font-size: clamp(2.8rem, 7vw, 6rem); }

.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  margin-top: 64px;
}

#contact-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

#contact-form label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 10px;
}

#contact-form input,
#contact-form textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hairline);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 10px 0;
  resize: vertical;
  transition: border-color 0.2s ease;
}

#contact-form input:focus,
#contact-form textarea:focus {
  outline: none;
  border-bottom-color: var(--amber);
}

.btn-transmit { width: 100%; text-align: center; margin-top: 8px; }

.success-card {
  border: 1px solid var(--hairline);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.success-card[hidden] { display: none; }

.success-card p { color: var(--steel); font-size: 14px; }

.contact-details p {
  font-size: 14.5px;
  color: var(--white);
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hairline);
}

.contact-details p span {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 6px;
}

.contact-details a:hover { color: var(--amber); }

.chassis {
  margin-top: 120px;
  padding-top: 40px;
  border-top: 1px solid var(--hairline);
}

.chassis-numbers {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(1.3rem, 3vw, 2.2rem);
}

.site-footer {
  margin-top: 64px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px 40px;
  flex-wrap: wrap;
}

.footer-chassis {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-align: right;
}

.footer-num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  letter-spacing: 0.06em;
  color: var(--white);
}

.copyright {
  color: var(--steel);
  font-size: 12px;
  padding-top: 24px;
}

/* ===== Bottom split: Certifications + Logistics Command side by side ===== */

.bottom-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  max-width: 1400px;
  margin: 0 auto;
  border-top: 1px solid var(--hairline);
}

.bottom-split > section {
  max-width: none;
  margin: 0;
  border-top: none;
}

.bottom-split > section + section {
  border-left: 1px solid var(--hairline);
}

.bottom-split .section-header {
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.bottom-split .section-summary { text-align: left; max-width: 460px; }

/* Contact headline scaled to fit the half-column (its long "CONSULTATION" word
   would otherwise overflow and unbalance the 50/50 split) */
.bottom-split .contact-headline { font-size: clamp(2.4rem, 5vw, 3.6rem); }

/* Stack the form and details within the narrower Logistics column */
.bottom-split .contact-grid { grid-template-columns: 1fr; gap: 40px; }

.footer-bar {
  max-width: 1400px;
  margin: 0 auto;
  padding: 48px 32px 64px;
  border-top: 1px solid var(--hairline);
}

.footer-bar .site-footer { margin-top: 0; }

/* ===== Responsive ===== */

@media (max-width: 900px) {
  .nav-links { display: none; }
  section { padding: 80px 24px; }
  .bottom-split { grid-template-columns: 1fr; }
  .bottom-split > section + section { border-left: none; border-top: 1px solid var(--hairline); }
  .capability-grid { grid-template-columns: 1fr 1fr; }
  .manifesto { grid-template-columns: 1fr; }
  .manifesto-media { min-height: 320px; }
  .manifesto-text { padding: 56px 24px; }
  .contact-grid { grid-template-columns: 1fr; }
  .carousel { gap: 16px; }
  .badge-flip { width: 140px; height: 140px; }
}

@media (max-width: 560px) {
  .capability-grid { grid-template-columns: 1fr; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .section-summary { text-align: left; }
}
