:root {
  --black: #030303;
  --coal: #0b0a08;
  --panel: rgba(10, 9, 7, 0.72);
  --gold: #d7a33d;
  --gold-hot: #ffd06b;
  --amber: #a66018;
  --cream: #f8edd0;
  --muted: rgba(248, 237, 208, 0.72);
  --line: rgba(255, 208, 107, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--black);
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100svh;
  overflow-x: hidden;
  font-family: "Manrope", Arial, sans-serif;
  color: var(--cream);
  background: radial-gradient(circle at 50% 10%, #2b1b08 0, #050505 48%, #000 100%);
}

button,
a {
  font: inherit;
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 100vw;
  min-height: 100svh;
  padding: 34px 18px;
  isolation: isolate;
  overflow: hidden;
}

.bull-bg {
  position: absolute;
  inset: -8vh -6vw;
  z-index: -5;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), #050403 84%),
    radial-gradient(circle at 50% 28%, rgba(255, 190, 82, 0.18), transparent 32%),
    url("/assets/blackbuffalo-logo.jpg") center 24% / min(920px, 118vw) auto no-repeat;
  filter: contrast(1.16) saturate(0.86);
  transform: scale(1.03);
}

.bull-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 42%, transparent 0 26%, rgba(0, 0, 0, 0.5) 55%, #000 95%),
    linear-gradient(90deg, #000 0%, transparent 22% 78%, #000 100%);
}

.grain {
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

.gold-rings {
  position: absolute;
  width: min(840px, 112vw);
  aspect-ratio: 1;
  z-index: -2;
  border: 1px solid rgba(255, 214, 116, 0.18);
  border-radius: 50%;
  box-shadow:
    inset 0 0 80px rgba(215, 163, 61, 0.11),
    0 0 120px rgba(215, 163, 61, 0.18);
  animation: breathe 7s ease-in-out infinite;
}

.ra-animation {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ra-mark {
  position: absolute;
  width: clamp(86px, 12vw, 160px);
  aspect-ratio: 1;
  border-radius: 28%;
  background: url("/assets/ra-drug-logo.jpg") center / cover no-repeat;
  opacity: 0.28;
  filter: saturate(1.35) contrast(1.12) drop-shadow(0 0 26px rgba(255, 119, 25, 0.55));
  mix-blend-mode: screen;
  animation: floatMark 11s ease-in-out infinite;
}

.ra-one {
  left: 8%;
  top: 16%;
}

.ra-two {
  right: 10%;
  top: 18%;
  animation-delay: -3s;
  transform: scale(0.8);
}

.ra-three {
  left: 50%;
  bottom: 6%;
  width: clamp(70px, 9vw, 116px);
  animation-delay: -6s;
}

.spark {
  position: absolute;
  width: 5px;
  height: 24px;
  border-radius: 99px;
  background: linear-gradient(#fff0b7, #ff9d28 45%, transparent);
  box-shadow: 0 0 18px rgba(255, 133, 34, 0.85);
  animation: riseSpark 5.6s linear infinite;
}

.s1 { left: 17%; bottom: -10%; animation-delay: -0.5s; }
.s2 { left: 31%; bottom: -12%; animation-delay: -2.1s; }
.s3 { left: 66%; bottom: -10%; animation-delay: -1.3s; }
.s4 { left: 78%; bottom: -13%; animation-delay: -3.5s; }
.s5 { left: 48%; bottom: -10%; animation-delay: -4.4s; }

.center {
  width: min(760px, 100%);
  max-width: calc(100vw - 36px);
  display: grid;
  position: relative;
  z-index: 2;
  justify-items: center;
  text-align: center;
  padding: clamp(20px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(13, 11, 8, 0.7), rgba(0, 0, 0, 0.48)),
    radial-gradient(circle at 50% 0, rgba(255, 205, 100, 0.15), transparent 38%);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.brand-logo {
  width: clamp(118px, 19vw, 174px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 218, 132, 0.32);
  box-shadow:
    0 0 0 6px rgba(215, 163, 61, 0.07),
    0 20px 56px rgba(0, 0, 0, 0.58),
    0 0 42px rgba(255, 174, 55, 0.2);
}

.kicker {
  margin: 20px 0 8px;
  color: var(--gold-hot);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-family: "Russo One", Impact, sans-serif;
  font-size: 88px;
  line-height: 0.94;
  letter-spacing: 0;
  text-transform: uppercase;
  color: transparent;
  background:
    linear-gradient(180deg, #fff8dc 0%, #e0b15a 32%, #765019 54%, #ffd978 78%, #fff7dc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 16px 34px rgba(0, 0, 0, 0.74);
}

.welcome {
  margin: 12px 0 24px;
  font-size: 30px;
  font-weight: 800;
  color: #fff3c9;
  text-shadow: 0 0 22px rgba(255, 185, 70, 0.5);
}

.work-button {
  position: relative;
  display: inline-grid;
  gap: 5px;
  min-width: min(520px, 100%);
  min-height: 76px;
  padding: 13px 34px 13px 112px;
  border: 1px solid rgba(255, 226, 153, 0.48);
  border-radius: 8px;
  color: #160e02;
  background:
    radial-gradient(circle at 18% 50%, rgba(255, 92, 24, 0.32), transparent 24%),
    linear-gradient(100deg, #3c1304, #a84e10 18%, #f0a92e 43%, #7a2608 72%, #1a0802),
    linear-gradient(#f5c960, #ad6d1b);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.5),
    0 0 34px rgba(255, 176, 56, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  cursor: pointer;
  overflow: hidden;
  animation: ctaPulse 2.15s ease-in-out infinite;
}

.work-button::before {
  content: "";
  position: absolute;
  inset: -80% -30%;
  background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, 0.75), transparent 58%);
  transform: translateX(-40%);
  animation: shine 3.2s ease-in-out infinite;
}

.work-button::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(12, 4, 0, 0.58), rgba(255, 193, 83, 0.22) 48%, rgba(12, 4, 0, 0.52)),
    radial-gradient(circle at 50% 100%, rgba(255, 50, 20, 0.34), transparent 38%);
  mix-blend-mode: multiply;
}

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

.cta-ra {
  position: absolute;
  left: 18px;
  top: 50%;
  width: 78px;
  height: 78px;
  border: 2px solid rgba(255, 218, 129, 0.76);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 232, 170, 0.22), rgba(0, 0, 0, 0.18)),
    url("/assets/ra-drug-logo.jpg") center / cover no-repeat;
  box-shadow:
    0 0 0 5px rgba(255, 156, 38, 0.12),
    0 0 28px rgba(255, 92, 24, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
  transform: translateY(-50%);
}

.work-button span {
  font-size: 20px;
  font-weight: 900;
  color: #fff1c2;
  text-shadow:
    0 2px 0 rgba(45, 11, 0, 0.7),
    0 0 16px rgba(255, 119, 25, 0.5);
}

.work-button strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: "Russo One", Impact, sans-serif;
  font-size: 42px;
  letter-spacing: 0;
  color: #fff6ce;
  text-shadow:
    0 2px 0 rgba(58, 15, 0, 0.88),
    0 10px 22px rgba(75, 36, 0, 0.42),
    0 0 24px rgba(255, 117, 22, 0.52);
}

.work-button em {
  color: #c80013;
  font-style: normal;
  text-shadow:
    0 1px 0 rgba(255, 220, 190, 0.55),
    0 0 14px rgba(255, 0, 28, 0.64);
  animation: redBang 1s ease-in-out infinite;
}

.quick-links {
  width: min(650px, 100%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.quick-link {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 58px;
  padding: 10px;
  border: 1px solid rgba(255, 213, 122, 0.26);
  border-radius: 8px;
  color: #ffe9af;
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 15px;
  background:
    linear-gradient(180deg, rgba(255, 204, 103, 0.13), rgba(255, 204, 103, 0.04)),
    rgba(0, 0, 0, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.quick-link::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 214, 116, 0.12);
  border-radius: 6px;
}

.quick-link:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 221, 143, 0.58);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.32), 0 0 22px rgba(255, 179, 48, 0.16);
}

.quick-link.disabled {
  opacity: 0.4;
  pointer-events: 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, 216, 120, 0.26);
  border-radius: 8px;
  color: #f9edcd;
  text-align: left;
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(255, 216, 120, 0.14), rgba(49, 148, 227, 0.1)),
    rgba(0, 0, 0, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 32px rgba(0, 0, 0, 0.32);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.washme-badge:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 216, 120, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 18px 38px rgba(0, 0, 0, 0.42),
    0 0 24px rgba(59, 154, 238, 0.12);
}

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

.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(248, 237, 208, 0.72);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.18;
}

.modal[hidden] {
  display: none;
}

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

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

.modal-panel {
  position: relative;
  width: min(760px, 100%);
  max-height: min(760px, calc(100svh - 36px));
  overflow: auto;
  border: 1px solid rgba(255, 214, 116, 0.26);
  border-radius: 8px;
  padding: clamp(22px, 5vw, 36px);
  background:
    radial-gradient(circle at 20% 0, rgba(255, 176, 58, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(19, 15, 9, 0.96), rgba(5, 5, 5, 0.98));
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.7), 0 0 70px rgba(255, 164, 44, 0.15);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 214, 116, 0.24);
  border-radius: 8px;
  color: var(--cream);
  background: rgba(0, 0, 0, 0.38);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.modal-kicker {
  margin: 0 0 8px;
  color: var(--gold-hot);
  font-weight: 900;
  text-transform: uppercase;
}

.modal h2 {
  margin: 0 46px 22px 0;
  font-family: "Russo One", Impact, sans-serif;
  font-size: 48px;
}

.vacancy-list {
  display: grid;
  gap: 14px;
  max-height: min(520px, 56svh);
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-color: rgba(255, 216, 120, 0.44) rgba(255, 255, 255, 0.06);
}

.vacancy {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 214, 116, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.vacancy h3 {
  margin: 0 0 7px;
  color: #ffe7ad;
}

.vacancy p {
  margin: 0;
  color: var(--muted);
  white-space: pre-line;
  line-height: 1.5;
}

.vacancy-apply {
  display: grid;
  place-items: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  color: #160d02;
  background: linear-gradient(180deg, #ffdd87, #bc741b);
  text-decoration: none;
  font-weight: 900;
}

@keyframes breathe {
  50% {
    transform: scale(1.04);
    opacity: 0.62;
  }
}

@keyframes floatMark {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(-5deg);
  }
  50% {
    transform: translate3d(18px, -24px, 0) rotate(5deg);
  }
}

@keyframes riseSpark {
  0% {
    transform: translateY(0) rotate(16deg) scale(0.7);
    opacity: 0;
  }
  15%,
  70% {
    opacity: 0.86;
  }
  100% {
    transform: translateY(-105vh) rotate(-12deg) scale(1.1);
    opacity: 0;
  }
}

@keyframes ctaPulse {
  50% {
    transform: translateY(-3px) scale(1.025);
    box-shadow:
      0 24px 50px rgba(0, 0, 0, 0.55),
      0 0 52px rgba(255, 183, 56, 0.52),
      inset 0 1px 0 rgba(255, 255, 255, 0.75);
  }
}

@keyframes shine {
  0%, 36% {
    transform: translateX(-55%) rotate(10deg);
  }
  62%, 100% {
    transform: translateX(55%) rotate(10deg);
  }
}

@keyframes redBang {
  50% {
    transform: scale(1.18);
    filter: saturate(1.45);
  }
}

@media (max-width: 680px) {
  .hero {
    align-items: start;
    justify-items: center;
    width: 100vw;
    max-width: 100vw;
    padding: 10px 8px 18px;
    overflow-x: clip;
  }

  .bull-bg {
    inset: 0;
    width: 100vw;
    background-size: 110vw auto;
    background-position: center 5%;
    transform: none;
  }

  .gold-rings {
    width: 96vw;
  }

  .center {
    margin-top: 0;
    width: 100%;
    max-width: calc(100vw - 16px);
    padding: 14px 10px;
  }

  .brand-logo {
    width: min(29vw, 112px);
  }

  .welcome {
    margin: 8px 0 14px;
    font-size: 21px;
  }

  .kicker {
    font-size: 11px;
  }

  h1 {
    font-size: 40px;
  }

  .work-button {
    width: 100%;
    min-width: 0;
    min-height: 72px;
    padding: 12px 10px 12px 76px;
    background-size: auto, auto, auto;
  }

  .cta-ra {
    left: 10px;
    width: 56px;
    height: 56px;
    border-width: 1px;
  }

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

  .work-button strong {
    font-size: 31px;
    gap: 8px;
  }

  .quick-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
  }

  .quick-link {
    min-height: 54px;
    font-size: 13px;
  }

  .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;
  }

  .ra-mark {
    width: 94px;
    opacity: 0.68;
    filter: saturate(1.45) contrast(1.15) drop-shadow(0 0 20px rgba(255, 119, 25, 0.72));
  }

  .ra-one {
    left: 8px;
    top: 8px;
  }

  .ra-two {
    right: 8px;
    top: 8px;
  }

  .ra-three {
    display: block;
    left: auto;
    right: 18px;
    bottom: 14px;
    width: 76px;
    opacity: 0.4;
  }

  .modal {
    padding: 10px;
  }

  .modal-panel {
    max-height: calc(100svh - 20px);
    padding: 22px 14px 16px;
  }

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

  .vacancy {
    grid-template-columns: 1fr;
  }

  .vacancy-apply {
    width: 100%;
  }

  .modal h2 {
    font-size: 32px;
  }
}

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