/* ---------- Tokens (from Powerhouse brandbook) ---------- */
:root {
  --c-primary:   #0E285D;  /* dark blue */
  --c-primary-2: #0C2455;
  --c-secondary: #0561B1;  /* blue */
  --c-accent:    #E50008;  /* red */
  --c-white:     #FFFFFF;
  --c-off:       #FAFAFA;
  --c-ink:       #1A1A1A;

  --c-text:      rgba(255, 255, 255, 0.92);
  --c-text-dim:  rgba(255, 255, 255, 0.66);
  --c-line:      rgba(255, 255, 255, 0.14);

  --ff: 'Onest', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;

  --maxw: 1240px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--ff);
  font-weight: 500;
  color: var(--c-text);
  background: radial-gradient(120% 80% at 50% 0%, #11306b 0%, var(--c-primary) 45%, #091c44 100%);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; }
img { display: block; }

/* ---------- Background (clean, no repeating pattern) ---------- */
.bg-pattern { display: none; }

/* ---------- Decorative geometric shapes ---------- */
.shape {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
  will-change: transform;
}
/* Slide 1:2001 — blue parallelogram TL + dark parallelogram BL,
   blue parallelogram BR + dark parallelogram TR */
.shape--tl {
  top: -120px; left: -140px;
  width: 520px; height: 300px;
  background: var(--c-secondary);
  transform: skewX(-22deg);
  border-radius: 18px;
  opacity: 0.95;
  animation: floatA 18s ease-in-out infinite;
}
.shape--tr {
  top: -160px; right: -180px;
  width: 560px; height: 320px;
  background: #0a1f4a;
  transform: skewX(-22deg);
  border-radius: 18px;
  animation: floatB 22s ease-in-out infinite;
}
.shape--bl {
  bottom: -160px; left: -200px;
  width: 500px; height: 320px;
  background: #0a1f4a;
  transform: skewX(-22deg);
  border-radius: 18px;
  animation: floatB 24s ease-in-out infinite reverse;
}
.shape--br {
  bottom: -120px; right: -140px;
  width: 520px; height: 300px;
  background: var(--c-secondary);
  transform: skewX(-22deg);
  border-radius: 18px;
  opacity: 0.95;
  animation: floatA 20s ease-in-out infinite reverse;
}
@keyframes floatA {
  0%, 100% { transform: skewX(-22deg) translate(0, 0); }
  50%      { transform: skewX(-22deg) translate(14px, -12px); }
}
@keyframes floatB {
  0%, 100% { transform: skewX(-22deg) translate(0, 0); }
  50%      { transform: skewX(-22deg) translate(-16px, 10px); }
}

/* ---------- Floating chevron accents ---------- */
.float-chev {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  width: 34px; height: auto;
  opacity: 0;
  animation: chevIn 1.2s var(--ease) forwards, chevFloat 7s ease-in-out infinite;
  will-change: transform, opacity;
}
.float-chev--1,
.float-chev--2,
.float-chev--3 { display: none; }
@keyframes chevIn {
  from { opacity: 0; transform: translateY(14px) scale(.85); }
  to   { opacity: .85; transform: translateY(0) scale(1); }
}
@keyframes chevFloat {
  0%, 100% { transform: translateY(0)    rotate(0deg); }
  50%      { transform: translateY(-10px) rotate(-2deg); }
}

/* ---------- Layout shell ---------- */
.page {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 40px 48px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* ---------- Reveal (entrance) animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal .9s var(--ease) forwards;
  animation-delay: var(--reveal-delay, 0ms);
}
@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Topbar ---------- */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  transition: transform .3s var(--ease);
}
.brand:hover { transform: translateY(-1px); }
.logo {
  width: clamp(220px, 26vw, 320px);
  height: auto;
}
.topbar__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  color: var(--c-text);
  font-size: 14px;
  font-weight: 500;
  transition: border-color .25s, background .25s, transform .25s;
  backdrop-filter: blur(6px);
}
.topbar__link:hover {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.04);
  transform: translateY(-1px);
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 0 0 rgba(229,0,8,0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(229,0,8,0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(229,0,8,0); }
  100% { box-shadow: 0 0 0 0 rgba(229,0,8,0); }
}

/* ---------- Hero ---------- */
.hero { flex: 1; display: flex; flex-direction: column; gap: 36px; padding-top: 24px; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  align-self: flex-start;
  color: var(--c-text-dim);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.eyebrow-chev { width: 12px; height: auto; transform: rotate(90deg); }

.hero__title {
  font-size: clamp(34px, 4.6vw, 64px);
  font-weight: 800;
  line-height: 1.08;
  max-width: 22ch;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero__title--accent {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.title-chev {
  width: 0.7em;
  height: auto;
  transform: rotate(90deg);
  animation: chevNudge 3s ease-in-out infinite;
}
@keyframes chevNudge {
  0%, 100% { transform: rotate(90deg) translateY(0); }
  50%      { transform: rotate(90deg) translateY(-4px); }
}

.hero__lead {
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.6;
  color: var(--c-text-dim);
  max-width: 68ch;
  margin: 0;
  font-weight: 400;
}

/* ---------- Industries ---------- */
.industries {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.industries li {
  padding: 9px 16px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
  background: rgba(255,255,255,0.02);
  transition: border-color .25s, transform .25s, background .25s;
}
.industries li:hover {
  border-color: var(--c-accent);
  background: rgba(229,0,8,0.08);
  transform: translateY(-2px);
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 12px;
}
.stat {
  position: relative;
  padding: 28px 24px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  overflow: hidden;
  transition: border-color .3s var(--ease), transform .3s var(--ease), background .3s var(--ease);
}
.stat::before {
  content: "";
  position: absolute;
  top: 18px; right: 18px;
  width: 14px; height: 10px;
  background-image: url("assets/chevron.svg");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: .85;
  transform: rotate(0deg);
  transition: transform .35s var(--ease);
}
.stat:hover {
  border-color: rgba(255,255,255,0.28);
  transform: translateY(-3px);
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
}
.stat:hover::before { transform: rotate(-8deg) translateY(-2px); }
.stat__value {
  font-size: clamp(26px, 2.4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--c-white);
  display: inline-flex;
  align-items: baseline;
  line-height: 1.1;
}
.stat__prefix { color: var(--c-accent); margin-right: 2px; }
.stat__suffix { font-size: 0.6em; font-weight: 700; color: var(--c-text); margin-left: 4px; letter-spacing: -0.02em; }
.stat__num    { font-variant-numeric: tabular-nums; }
.plus         { color: var(--c-accent); margin-left: 2px; }
.stat__label {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--c-text-dim);
  font-weight: 500;
}

/* ---------- Contacts ---------- */
.contacts {
  margin-top: 16px;
  padding: 40px 36px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(5,97,177,0.22) 0%, transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
}
.contacts__title {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  color: var(--c-white);
}
.contacts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 24px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.03);
  transition: border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
  overflow: hidden;
}
.contact-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 120% at 100% 0%, rgba(229,0,8,0.18) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.contact-card:hover {
  border-color: var(--c-accent);
  background: rgba(229,0,8,0.06);
  transform: translateY(-3px);
}
.contact-card:hover::after { opacity: 1; }
.contact-card__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-dim);
  position: relative;
  z-index: 1;
}
.contact-card__value {
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 700;
  color: var(--c-white);
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}
.contact-card__arrow {
  position: absolute;
  top: 22px; right: 22px;
  width: 22px; height: 22px;
  color: var(--c-accent);
  transition: transform .35s var(--ease);
  z-index: 1;
}
.contact-card:hover .contact-card__arrow { transform: translate(4px, -4px); }

/* ---------- Footer ---------- */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid var(--c-line);
  font-size: 13px;
  color: var(--c-text-dim);
  font-weight: 500;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal, .float-chev, .bg-pattern, .shape, .title-chev, .dot {
    animation: none !important;
  }
  .reveal { opacity: 1; transform: none; }
  .float-chev { opacity: .7; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .page { padding: 24px 24px 36px; gap: 36px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .contacts__grid { grid-template-columns: 1fr; }
  .contacts { padding: 28px 24px; }
  .float-chev { display: none; }

  /* Scale down corner shapes so they don't dominate */
  .shape--tl { width: 320px; height: 200px; top: -100px; left: -120px; }
  .shape--tr { width: 340px; height: 220px; top: -120px; right: -140px; }
  .shape--bl { width: 320px; height: 220px; bottom: -120px; left: -140px; }
  .shape--br { width: 320px; height: 200px; bottom: -100px; right: -120px; }
}
@media (max-width: 560px) {
  .page { padding: 20px 18px 28px; }
  .topbar__text { display: none; }
  .hero__title { letter-spacing: -0.03em; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 20px 18px; }
  .footer { flex-direction: column; align-items: flex-start; gap: 8px; }

  /* Smaller still on phones, keep only a hint in corners */
  .shape--tl { width: 220px; height: 140px; top: -70px; left: -90px; opacity: .8; }
  .shape--tr { width: 240px; height: 150px; top: -90px; right: -100px; }
  .shape--bl { width: 220px; height: 150px; bottom: -90px; left: -100px; }
  .shape--br { width: 220px; height: 140px; bottom: -70px; right: -90px; opacity: .8; }
}
