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

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: 'Inter', sans-serif; color: #333333; overflow-x: hidden; }

::selection { background: rgba(242,193,46,0.35); color: #1F3A68; }

/* ── Shadow system ──────────────────────────────────────────────── */
.shadow-nav  { box-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 4px 24px rgba(10,22,45,0.55); }
.shadow-card { box-shadow: 0 1px 3px rgba(31,58,104,0.06), 0 8px 32px rgba(31,58,104,0.10); }
.shadow-card-hover { box-shadow: 0 2px 8px rgba(31,58,104,0.10), 0 20px 60px rgba(31,58,104,0.16); }

/* ── Nav ────────────────────────────────────────────────────────── */
.nav-link {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.065em;
  text-transform: uppercase;
  color: rgba(244,246,250,0.65);
  padding-bottom: 2px;
  border-bottom: 1.5px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-link:hover        { color: #F2C12E; border-bottom-color: rgba(242,193,46,0.6); }
.nav-link:focus-visible { outline: 2px solid #F2C12E; outline-offset: 4px; border-radius: 2px; }
.nav-link.active       { color: #F4F6FA; }

/* ── Buttons ────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F2C12E;
  color: #1F3A68;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.065em;
  text-transform: uppercase;
  padding: 0.875rem 1.875rem;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(242,193,46,0.32);
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary:hover        { background: #e8b826; transform: translateY(-1px); box-shadow: 0 5px 20px rgba(242,193,46,0.42); }
.btn-primary:active       { transform: translateY(0); box-shadow: 0 1px 6px rgba(242,193,46,0.22); }
.btn-primary:focus-visible { outline: 2px solid #F2C12E; outline-offset: 3px; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: #1F3A68;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.065em;
  text-transform: uppercase;
  padding: 0.875rem 1.875rem;
  border: 1.5px solid #1F3A68;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-outline:hover        { background: #1F3A68; color: #F4F6FA; }
.btn-outline:active       { background: #162e55; }
.btn-outline:focus-visible { outline: 2px solid #1F3A68; outline-offset: 3px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: rgba(244,246,250,0.82);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.065em;
  text-transform: uppercase;
  padding: 0.875rem 1.875rem;
  border: 1.5px solid rgba(244,246,250,0.32);
  border-radius: 8px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-ghost:hover        { background: rgba(244,246,250,0.09); border-color: rgba(244,246,250,0.6); color: #F4F6FA; }
.btn-ghost:active       { background: rgba(244,246,250,0.15); }
.btn-ghost:focus-visible { outline: 2px solid rgba(244,246,250,0.6); outline-offset: 3px; }

/* ── Project cards ──────────────────────────────────────────────── */
.project-card { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 8px rgba(31,58,104,0.10), 0 20px 60px rgba(31,58,104,0.16);
}
.project-card:hover .card-img-overlay { opacity: 0; }

.card-img-overlay {
  position: absolute; inset: 0;
  background: rgba(31,58,104,0.08);
  transition: opacity 0.2s ease;
}

.card-link {
  color: #1F3A68;
  font-weight: 600;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease, gap 0.15s ease;
}
.card-link:hover        { color: #F2C12E; gap: 10px; }
.card-link:focus-visible { outline: 1px solid #1F3A68; outline-offset: 2px; border-radius: 2px; }

/* ── Trust stat accent line ─────────────────────────────────────── */
.stat-block::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: #F2C12E;
  margin-bottom: 12px;
}
.stat-block-cred::before { display: none; }

/* ── Footer links ───────────────────────────────────────────────── */
.footer-link {
  color: rgba(244,246,250,0.5);
  transition: color 0.15s ease;
}
.footer-link:hover        { color: #F2C12E; }
.footer-link:focus-visible { outline: 2px solid #F2C12E; outline-offset: 2px; border-radius: 2px; }

/* ── Fade-in animation (hero content) ──────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-content         { animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero-content-delay   { animation: fadeUp 0.7s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero-content-delay-2 { animation: fadeUp 0.7s 0.24s cubic-bezier(0.22, 1, 0.36, 1) both; }

/* ── Service list (services.html) ───────────────────────────────── */
.service-num {
  font-family: 'Inter', sans-serif;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #F2C12E;
  text-transform: uppercase;
  flex-shrink: 0;
  width: 2.25rem;
  padding-top: 0.35rem;
}

/* ── Boom-lift parallax column ──────────────────────────────────── */
.lift-sticky {
  position: sticky;
  top: 100px;
  /* min() caps at whichever is smaller: viewport-relative ideal height,
     or 100% of the lift column's actual rendered height (set by items-stretch
     on the parent flex row). Prevents overflow at low browser zoom levels. */
  height: min(calc(100vh - 120px), 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

#boom-lift {
  width: 260px;
  will-change: transform;
  transform: translateY(0);
  user-select: none;
  pointer-events: none;
}
