:root {
  --red: #e60410;
  --red-dim: #b0030d;
  --bg: #e6ebf1;
  --bg-2: #dce4ec;
  --card: #ffffff;
  --line: rgba(18, 24, 32, 0.16);
  --text: #121820;
  --muted: #4b5663;
  --body: #2f3844;
  --max: 1160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Outfit, "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

p {
  color: var(--body);
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  font-size: 0.82rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.topbar-certs a {
  color: var(--body);
}

.topbar-certs a:hover,
.topbar a:hover {
  color: var(--text);
}

header.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

.brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  display: block;
  height: 58px;
  width: auto;
  background: #fff;
  padding: 5px 8px;
  border-radius: 12px;
}

nav.links {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  font-size: 0.86rem;
}

nav.links a {
  position: relative;
  color: var(--body);
  transition: color 0.2s ease;
}

nav.links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

nav.links a:hover,
nav.links a.active {
  color: var(--text);
  font-weight: 700;
}

nav.links a:hover:not(.btn)::after,
nav.links a.active:not(.btn)::after {
  transform: scaleX(1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.75rem 1.2rem;
  font-weight: 700;
  background: var(--red);
  color: #fff !important;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  background: var(--red-dim);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(230, 4, 16, 0.28);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text) !important;
}

.btn-ghost:hover {
  background: #fff;
  border-color: rgba(18, 24, 32, 0.28);
  box-shadow: 0 10px 22px rgba(18, 24, 32, 0.1);
}

.hero {
  position: relative;
  padding: 5.2rem 0 4.6rem;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(244, 246, 248, 0.55) 0%, rgba(244, 246, 248, 0.18) 48%, rgba(244, 246, 248, 0.28) 100%),
    url("../img/hero-bg.jpg") center 58% / cover no-repeat;
  z-index: -1;
}

.hero-video,
.band-video {
  background: #d7dee6 url("../img/hero-bg.jpg") center 58% / cover no-repeat;
}

.hero-video::before {
  z-index: 1;
  background: linear-gradient(105deg, rgba(244, 246, 248, 0.42) 0%, rgba(244, 246, 248, 0.12) 55%, rgba(244, 246, 248, 0.22) 100%);
}

.hero-panel {
  background: #fff;
  border: 1px solid rgba(18, 24, 32, 0.12);
  border-radius: 20px;
  padding: 1.5rem 1.6rem 1.6rem;
  box-shadow: 0 18px 40px rgba(18, 24, 32, 0.16);
  max-width: 62ch;
  animation: rise-in 0.85s ease both;
}

.hero-panel .lead,
.hero-panel p {
  color: var(--body);
}

.media-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.media-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
  opacity: 0;
  transition: opacity 1.25s ease-in-out;
  will-change: opacity;
}

.media-bg video.is-on {
  opacity: 1;
}

.hero-video > :not(.media-bg),
.band-video > :not(.media-bg) {
  position: relative;
  z-index: 2;
}

.band-video {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.band-video::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(244, 246, 248, 0.55), rgba(244, 246, 248, 0.62));
}

.credit {
  font-size: 0.75rem;
  color: var(--muted);
  max-width: 70ch;
}

.hero-home {
  min-height: 78vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.2rem;
  align-items: center;
}

.kicker {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.12;
  margin: 0.35rem 0 0.8rem;
  color: var(--text);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.35rem);
  max-width: 18ch;
  font-weight: 800;
}

.lead {
  font-size: 1.15rem;
  color: var(--body);
  max-width: 54ch;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.4rem 0 1.8rem;
}

.chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  color: var(--body);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.chip:hover {
  border-color: rgba(230, 4, 16, 0.45);
  color: var(--text);
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(18, 24, 32, 0.08);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

section {
  padding: 4.2rem 0;
}

.band {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  margin-bottom: 1.8rem;
}

.muted {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--card);
  border: 1px solid rgba(18, 24, 32, 0.14);
  border-radius: 18px;
  padding: 1.25rem 1.3rem;
  box-shadow: 0 14px 34px rgba(18, 24, 32, 0.1);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 44px rgba(18, 24, 32, 0.14);
  border-color: rgba(230, 4, 16, 0.28);
}

.card h3 {
  font-size: 1.12rem;
  margin-bottom: 0.45rem;
}

.icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(230, 4, 16, 0.14);
  color: var(--red);
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
  transition: transform 0.28s ease, background 0.28s ease;
}

.card:hover .icon {
  transform: scale(1.08) rotate(-4deg);
  background: rgba(230, 4, 16, 0.2);
}

.icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.num {
  color: var(--red);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
}

.quote {
  border-left: 3px solid var(--red);
  padding-left: 1rem;
  color: var(--body);
  font-size: 1.15rem;
  margin: 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.step {
  position: relative;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(230, 4, 16, 0.28);
  background: rgba(230, 4, 16, 0.08);
  color: var(--red-dim);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  transition: opacity 0.8s ease;
}

.mosaic .card {
  min-height: 108px;
  background: #fff;
  border: 1px solid rgba(18, 24, 32, 0.12);
  box-shadow: 0 16px 36px rgba(18, 24, 32, 0.18);
  animation: rise-in 0.7s ease both;
}

.mosaic .card:nth-child(1) { animation-delay: 0.12s; }
.mosaic .card:nth-child(2) { animation-delay: 0.2s; }
.mosaic .card:nth-child(3) { animation-delay: 0.28s; }
.mosaic .card:nth-child(4) { animation-delay: 0.36s; }

.job {
  margin-bottom: 1rem;
}

.career-openings {
  margin: 0 0 1rem;
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 600;
}

.career-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.career-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 220px;
  padding: 0.95rem 1.15rem;
  background: #fff;
  border: 1px solid rgba(18, 24, 32, 0.14);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(18, 24, 32, 0.1);
  color: var(--text);
  font-weight: 600;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.career-link img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.career-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(18, 24, 32, 0.14);
  border-color: rgba(230, 4, 16, 0.28);
}

.card ul,
.job ul {
  margin: 0.4rem 0 0;
  padding-left: 1.15rem;
  color: var(--body);
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
}

.form-status.is-ok {
  color: #1f6b3a;
}

.form-status.is-err {
  color: var(--red-dim);
}

form {
  display: grid;
  gap: 0.75rem;
}

label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.88rem;
  color: var(--muted);
}

input,
textarea,
select {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(230, 4, 16, 0.45);
  box-shadow: 0 0 0 4px rgba(230, 4, 16, 0.12);
}

footer {
  border-top: 1px solid var(--line);
  padding: 2.2rem 0 2.4rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 1.5rem;
  padding-bottom: 1.6rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.footer-grid h3 {
  font-size: 0.92rem;
  margin: 0 0 0.55rem;
}

.footer-grid a {
  display: block;
  color: var(--muted);
  padding: 0.18rem 0;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-grid a:hover {
  color: var(--text);
  padding-left: 0.25rem;
}

.foot-social {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.85rem;
}

.foot-social a {
  display: flex;
  padding: 0;
}

.foot-social a:hover {
  padding-left: 0;
  opacity: 0.82;
}

.foot-social img {
  width: 28px;
  height: 28px;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.15rem;
  border-left: 3px solid var(--red);
}

.timeline li {
  position: relative;
  padding: 0 0 1.85rem 1.35rem;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -1.28rem;
  top: 0.35rem;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(230, 4, 16, 0.16);
}

.timeline time {
  display: block;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.28rem;
}

.timeline h3 {
  margin: 0 0 0.35rem;
  font-size: 1.12rem;
}

.timeline p {
  margin: 0;
}

.timeline-brand {
  display: flex;
  align-items: center;
  margin: 0.45rem 0 0.7rem;
}

.timeline-brand img {
  display: block;
  height: 52px;
  width: auto;
  max-width: min(260px, 100%);
  background: #121820;
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
}

.press-list {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
}

.press-list li {
  margin: 0.45rem 0;
}

.press-list a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.press-list a:hover {
  color: var(--red);
}

video::-webkit-media-controls-overflow-button,
video::-internal-media-controls-overflow-button {
  display: none;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.foot-logo {
  height: 64px;
  margin-bottom: 0.75rem;
}

.cert-code {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--text);
  margin: 0 0 0.35rem;
}

.cert .muted {
  margin-top: 0;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.legal {
  color: var(--body);
  max-width: 78ch;
}

.legal h1 {
  max-width: none;
  font-size: 2rem;
}

.legal h2 {
  margin-top: 2rem;
}

.legal h3 {
  margin-top: 1.25rem;
}

.legal ul {
  padding-left: 1.2rem;
  color: var(--body);
}

.banner {
  font-size: 0.8rem;
  color: var(--muted);
  background: #eceff3;
  border-bottom: 1px solid var(--line);
  padding: 0.45rem 0;
  text-align: center;
}

.seals {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 1.35rem 0 1.5rem;
}

.seals img {
  display: block;
  width: min(100%, 1080px);
  height: auto;
  margin-inline: auto;
  border-radius: 14px;
}

.cta {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.map-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.map-card {
  position: relative;
  padding: 0 0 0.2rem;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

.map-card:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
}

.map-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 28px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 24px 50px rgba(18, 24, 32, 0.14);
}

.map-meta {
  position: absolute;
  z-index: 2;
  top: 1.05rem;
  left: 1.05rem;
  right: 1.05rem;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  pointer-events: none;
}

.map-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(18, 24, 32, 0.1);
  box-shadow: 0 8px 20px rgba(18, 24, 32, 0.1);
  color: var(--body);
  font-size: 0.78rem;
  font-weight: 700;
}

.map-pill-dark {
  background: #121820;
  border-color: #121820;
  color: #fff;
}

.map-caption {
  margin: 0.85rem 0 0;
  text-align: center;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  color: var(--muted);
}

@media (max-width: 900px) {
  .grid-4,
  .grid-3,
  .grid-2,
  .hero-grid,
  .steps,
  .footer-grid,
  .map-grid {
    grid-template-columns: 1fr;
  }

  .nav-inner {
    flex-wrap: wrap;
    padding: 0.45rem 0 0.7rem;
  }

  .nav-toggle {
    display: flex;
  }

  .brand-logo {
    height: 46px;
  }

  nav.links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    font-size: 0.95rem;
  }

  nav.links.is-open {
    display: flex;
  }

  nav.links a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
  }

  nav.links a:not(.btn)::after {
    display: none;
  }

  nav.links a.btn {
    margin-top: 0.85rem;
    align-self: flex-start;
    border-bottom: 0;
  }

  .topbar-certs {
    display: none;
  }

  h1 {
    max-width: none;
  }

  .hero-home {
    min-height: 0;
  }

  .hero::before,
  .hero-video::before {
    background: linear-gradient(180deg, rgba(244, 246, 248, 0.45), rgba(244, 246, 248, 0.28) 50%, rgba(244, 246, 248, 0.5));
  }
}

body.story .seals {
  border-top-color: rgba(18, 24, 32, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .media-bg {
    display: none;
  }

  .reveal,
  .reveal.is-in,
  .hero-panel,
  .mosaic .card {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }

  .card:hover,
  .btn:hover,
  .chip:hover,
  .career-link:hover,
  .card:hover .icon {
    transform: none;
  }
}
