:root {
  --red: #d32235;
  --red-deep: #8e1020;
  --blue: #163d78;
  --blue-deep: #07162d;
  --white: #f7f9ff;
  --ink: #101827;
  --gold: #f0c96b;
  --glass: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.22);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--white);
  background: var(--blue-deep);
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: clamp(22px, 5vw, 54px);
  isolation: isolate;
  background: #07162d;
}

.hero-media,
.shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -3;
  background:
    url("https://upload.wikimedia.org/wikipedia/commons/thumb/a/a3/United_States_Capitol_west_front_edit2.jpg/1920px-United_States_Capitol_west_front_edit2.jpg")
      center / cover no-repeat;
  transform: scale(1.04);
  filter: saturate(0.82) contrast(1.08) brightness(0.82);
}

.shade {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(3, 8, 18, 0.18), rgba(3, 8, 18, 0.8)),
    radial-gradient(circle at 50% 42%, rgba(211, 34, 53, 0.28), transparent 32%),
    linear-gradient(90deg, rgba(5, 20, 43, 0.9), rgba(6, 18, 38, 0.48), rgba(5, 20, 43, 0.92));
}

.shade::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, #000, transparent 72%);
}

.center {
  position: relative;
  z-index: 4;
  width: min(1040px, calc(100vw - 36px));
  text-align: center;
  display: grid;
  justify-items: center;
  padding: clamp(24px, 4vw, 40px) clamp(14px, 4vw, 44px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
    rgba(5, 15, 32, 0.18);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.brand-logo {
  width: clamp(118px, 15vw, 190px);
  height: auto;
  margin: -4px 0 10px;
  object-fit: contain;
  filter:
    drop-shadow(0 18px 34px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 28px rgba(240, 201, 107, 0.2));
  animation: logoFloat 3.6s ease-in-out infinite;
}

.eyebrow,
.modal-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: clamp(12px, 1.4vw, 14px);
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 900;
}

h1 {
  max-width: 100%;
  margin: 0;
  font-size: clamp(54px, 7.2vw, 94px);
  line-height: 0.86;
  letter-spacing: 0;
  font-weight: 900;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.72), rgba(255,255,255,0.08) 45%, rgba(0,0,0,0.28)),
    url("/us-flag.svg") center 46% / 118% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.28);
  filter:
    drop-shadow(0 0 12px rgba(240, 201, 107, 0.16))
    drop-shadow(0 20px 38px rgba(0, 0, 0, 0.76));
}

h1 span {
  display: block;
}

.welcome {
  position: relative;
  margin: clamp(12px, 2vw, 18px) 0 clamp(22px, 3vw, 30px);
  display: inline-grid;
  place-items: center;
  min-height: 42px;
  padding: 0 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(17px, 2.1vw, 26px);
  font-style: italic;
  font-weight: 800;
  color: #fff4d8;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.35),
    0 0 18px rgba(240, 201, 107, 0.34),
    0 10px 28px rgba(0, 0, 0, 0.72);
}

.welcome::before,
.welcome::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 201, 107, 0.92));
}

.welcome::before {
  right: 100%;
}

.welcome::after {
  left: 100%;
  transform: scaleX(-1);
}

.welcome span {
  position: relative;
}

.welcome span::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -8px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #f0c96b, transparent);
  box-shadow: 0 0 18px rgba(240, 201, 107, 0.55);
}

.work-button,
.pulse-link {
  min-height: 56px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  color: var(--white);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
  touch-action: manipulation;
}

.work-button {
  position: relative;
  width: min(650px, 100%);
  min-height: 112px;
  padding: 24px 28px;
  border-radius: 8px;
  font-size: clamp(22px, 2.5vw, 34px);
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 10%, rgba(255,255,255,0.42), transparent 24%),
    linear-gradient(135deg, #ff4459 0%, #e1162d 44%, #8a0619 100%);
  box-shadow:
    0 34px 74px rgba(211, 34, 53, 0.46),
    0 0 0 1px rgba(255,255,255,0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
  animation: ctaBreathe 1.8s ease-in-out infinite;
}

.work-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.24), transparent);
  transform: translateX(-120%);
  animation: shine 3.4s ease-in-out infinite;
}

.work-button:hover,
.work-button:focus-visible {
  transform: translateY(-4px) scale(1.015);
  filter: brightness(1.05);
  box-shadow:
    0 34px 72px rgba(211, 34, 53, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.work-button-hiring {
  display: grid;
  place-items: center;
  gap: 3px;
  line-height: 1.08;
}

.work-button-hiring span,
.work-button-hiring strong {
  position: relative;
  z-index: 1;
}

.work-button-hiring span {
  max-width: 100%;
  font-size: clamp(18px, 2.1vw, 28px);
  text-wrap: balance;
}

.work-button-hiring strong {
  font-size: clamp(28px, 3.5vw, 46px);
}

.work-button-hiring em {
  display: inline-block;
  padding: 0 8px 2px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: #ff1735;
  font-style: normal;
  -webkit-text-stroke: 0;
  text-shadow:
    0 0 12px rgba(255, 23, 53, 0.45),
    0 2px 0 rgba(0, 0, 0, 0.12);
}

.pulse-grid {
  width: min(800px, 100%);
  margin: clamp(24px, 4vw, 36px) auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.pulse-link {
  position: relative;
  min-width: 0;
  display: grid;
  place-items: center;
  padding: 0 14px;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    rgba(12, 47, 99, 0.76);
  border: 1px solid var(--line);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.28),
    0 0 0 0 rgba(240, 201, 107, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
  font-size: 16px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
  animation: pulse 2.2s ease-out infinite;
}

.pulse-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.16), transparent);
  transform: translateX(-130%);
  transition: transform 420ms ease;
}

.pulse-link::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 18%;
  right: 18%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(240, 201, 107, 0.9), transparent);
  opacity: 0.9;
}

.pulse-link:hover,
.pulse-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(240, 201, 107, 0.6);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.06)),
    rgba(18, 62, 128, 0.9);
}

.pulse-link:hover::before,
.pulse-link:focus-visible::before {
  transform: translateX(130%);
}

.pulse-link:nth-child(2) { animation-delay: 160ms; }
.pulse-link:nth-child(3) { animation-delay: 320ms; }
.pulse-link:nth-child(4) { animation-delay: 480ms; }

.pulse-link.disabled {
  display: none;
}

.washme-badge {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 12px;
  width: min(430px, 100%);
  min-height: 72px;
  margin-top: 16px;
  padding: 9px 14px 9px 9px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  color: #fff;
  text-align: left;
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(22, 64, 148, 0.24)),
    rgba(5, 15, 32, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 16px 34px rgba(6, 18, 48, 0.28),
    0 0 24px rgba(25, 84, 190, 0.16);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.washme-badge:hover,
.washme-badge:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 20px 42px rgba(6, 18, 48, 0.34),
    0 0 30px rgba(25, 84, 190, 0.22);
}

.washme-badge img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(94, 180, 255, 0.22);
}

.washme-badge span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.washme-badge strong {
  font-size: 17px;
  font-weight: 900;
  text-transform: uppercase;
}

.washme-badge small {
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.18;
}

@keyframes pulse {
  0% { box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28), 0 0 0 0 rgba(240, 201, 107, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
  70% { box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28), 0 0 0 14px rgba(240, 201, 107, 0), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
  100% { box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28), 0 0 0 0 rgba(240, 201, 107, 0), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
}

@keyframes shine {
  0%, 45% { transform: translateX(-120%); }
  70%, 100% { transform: translateX(120%); }
}

@keyframes ctaBreathe {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow:
      0 34px 74px rgba(211, 34, 53, 0.46),
      0 0 0 1px rgba(255,255,255,0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.32);
  }
  50% {
    transform: translateY(-3px) scale(1.018);
    box-shadow:
      0 42px 90px rgba(211, 34, 53, 0.62),
      0 0 0 8px rgba(255, 255, 255, 0.045),
      inset 0 1px 0 rgba(255, 255, 255, 0.38);
  }
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.falling-flags {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.showcase-flags {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.showcase-flag {
  position: absolute;
  top: clamp(42px, 8vw, 86px);
  width: clamp(104px, 13vw, 172px);
  aspect-ratio: 1.9;
  opacity: 0.96;
  filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.42));
}

.showcase-flag-left {
  left: clamp(18px, 6vw, 86px);
  transform: rotate(-8deg);
}

.showcase-flag-right {
  right: clamp(18px, 6vw, 86px);
  transform: rotate(8deg);
}

.drop-flag {
  position: absolute;
  top: -120px;
  width: 132px;
  aspect-ratio: 1.9;
  opacity: 0.95;
  transform-origin: 50% 50%;
  animation: flagFall 8.8s linear infinite;
}

.drop-flag i,
.showcase-flag i {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  border-radius: 5px;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.42));
  transform-origin: left center;
  background: url("/us-flag.svg") center / cover no-repeat;
  animation: flagWave 1.05s ease-in-out infinite alternate;
}

.drop-flag i::before,
.showcase-flag i::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.24), transparent 18%, rgba(255,255,255,0.32) 34%, transparent 52%, rgba(0,0,0,0.2) 74%, transparent),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.12) 0 10px, rgba(0,0,0,0.1) 10px 20px);
  mix-blend-mode: soft-light;
}

.drop-flag i::after,
.showcase-flag i::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: inherit;
}

.showcase-flag-left i {
  animation-duration: 1.2s;
}

.showcase-flag-right i {
  animation-duration: 1.2s;
  animation-delay: -0.55s;
}

.drop-flag-a { left: 4%; animation-delay: -2.2s; animation-duration: 9.4s; }
.drop-flag-b { left: 17%; width: 92px; animation-delay: -5.8s; animation-duration: 8.6s; opacity: 0.7; }
.drop-flag-c { left: 31%; width: 112px; animation-delay: -3.8s; animation-duration: 10.2s; opacity: 0.78; }
.drop-flag-d { left: 65%; width: 82px; animation-delay: -6.6s; animation-duration: 8.2s; opacity: 0.7; }
.drop-flag-e { left: 80%; width: 138px; animation-delay: -2.9s; animation-duration: 9.8s; }
.drop-flag-f { left: 92%; width: 96px; animation-delay: -4.8s; animation-duration: 8.9s; opacity: 0.7; }

@keyframes flagFall {
  0% { transform: translate3d(0, -130px, 0) rotate(-18deg); }
  42% { transform: translate3d(28px, 42vh, 0) rotate(12deg); }
  100% { transform: translate3d(-24px, calc(100vh + 140px), 0) rotate(-10deg); }
}

@keyframes flagWave {
  0% {
    transform: perspective(260px) rotateY(-18deg) skewY(-2deg) scaleX(0.96);
    clip-path: polygon(0 2%, 100% 0, 96% 92%, 0 100%);
  }
  100% {
    transform: perspective(260px) rotateY(18deg) skewY(2deg) scaleX(1.04);
    clip-path: polygon(0 0, 97% 8%, 100% 100%, 0 94%);
  }
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 9, 18, 0.78);
  backdrop-filter: blur(10px);
}

.modal-panel {
  position: relative;
  width: min(720px, 100%);
  max-height: min(760px, 88svh);
  overflow: auto;
  border-radius: 8px;
  padding: 34px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(236, 241, 250, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  font-size: 30px;
  cursor: pointer;
  background: #e8edf7;
  color: #14294e;
}

.modal-panel h2 {
  margin: 0 0 22px;
  font-size: clamp(30px, 5vw, 48px);
  color: #14294e;
}

.vacancy-list {
  display: grid;
  gap: 14px;
  max-height: min(520px, 56svh);
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-color: rgba(20, 41, 78, 0.32) rgba(220, 228, 241, 0.8);
}

.vacancy {
  padding: 18px;
  border-radius: 8px;
  border: 1px solid #dce4f1;
  border-left: 5px solid var(--red);
  background: #fff;
}

.vacancy h3 {
  margin: 0 0 8px;
  color: #14294e;
}

.vacancy p {
  margin: 0;
  color: #465166;
  line-height: 1.55;
  white-space: pre-line;
}

.vacancy-apply {
  min-height: 48px;
  margin-top: 16px;
  display: inline-grid;
  place-items: center;
  padding: 0 22px;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 900;
  background: linear-gradient(135deg, #ff4054, #c90f25);
  box-shadow: 0 16px 34px rgba(201, 15, 37, 0.28);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.vacancy-apply:hover,
.vacancy-apply:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(201, 15, 37, 0.38);
}

@media (max-width: 720px) {
  .hero {
    align-items: center;
    padding: 88px 12px 18px;
  }

  .hero-media {
    background-position: center top;
  }

  .center {
    width: min(390px, calc(100vw - 24px));
    padding: 14px 14px 16px;
    background: rgba(5, 15, 32, 0.28);
  }

  .brand-logo {
    width: clamp(96px, 30vw, 118px);
    margin-bottom: 4px;
  }

  h1 {
    font-size: clamp(32px, 9.6vw, 38px);
    line-height: 0.96;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.78), rgba(255,255,255,0.08) 46%, rgba(0,0,0,0.34)),
      url("/us-flag.svg") center 48% / 145% auto;
    -webkit-background-clip: text;
    background-clip: text;
  }

  .welcome {
    margin: 10px 0 14px;
    min-height: 34px;
    padding: 0 18px;
    font-size: clamp(16px, 5.2vw, 20px);
  }

  .welcome::before,
  .welcome::after {
    width: 36px;
  }

  .work-button {
    width: 100%;
    min-height: 100px;
    padding: 14px 12px;
  }

  .work-button-hiring span {
    font-size: 16px;
  }

  .work-button-hiring strong {
    font-size: 28px;
  }

  .pulse-grid {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 18px;
  }

  .pulse-link {
    min-height: 58px;
    padding: 0 8px;
    font-size: 14px;
  }

  .washme-badge {
    grid-template-columns: 48px 1fr;
    min-height: 64px;
    margin-top: 14px;
    padding: 8px 12px 8px 8px;
  }

  .washme-badge img {
    width: 48px;
    height: 48px;
  }

  .drop-flag {
    display: none;
  }

  .showcase-flag {
    top: 24px;
    width: 92px;
    opacity: 0.96;
  }

  .showcase-flag-left {
    left: 18px;
  }

  .showcase-flag-right {
    right: 18px;
  }

  .modal-panel {
    padding: 28px 18px 22px;
  }

  .vacancy-list {
    max-height: 52svh;
    padding-right: 4px;
  }
}

@media (max-width: 380px) {
  .center {
    padding-left: 12px;
    padding-right: 12px;
  }

  h1 {
    font-size: 33px;
  }

  .pulse-grid {
    gap: 8px;
  }

  .pulse-link {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
