:root {
  --black: #000000;
  --white: #ffffff;
  --red: #ff1b1c;
  --lime: #b6ff00;
  --cobalt: #0047ff;
  --ink-soft: #151515;
  --border: 4px solid var(--black);
  --hero-pad-top: 120px;
  --hero-pad-bottom: 80px;
  --font-heavy: Impact, Anton, Oswald, "Arial Black", sans-serif;
  --font-body: Oswald, Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  margin: 0;
  color: var(--black);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.35;
  overflow-x: hidden;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

li {
  margin-bottom: 0.45rem;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: 72px;
  background: var(--white);
  border-bottom: var(--border);
}

.brand {
  display: flex;
  align-items: center;
  padding: 0 1rem;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-heavy);
  font-size: clamp(1.7rem, 4vw, 3.5rem);
  line-height: 0.9;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: -0.05em;
}

.menu-toggle {
  display: none;
  border: 0;
  border-left: var(--border);
  background: var(--lime);
  color: var(--black);
  padding: 0 1rem;
  font-family: var(--font-heavy);
  font-size: 1.4rem;
  text-transform: uppercase;
  cursor: pointer;
}

.main-nav {
  display: flex;
  align-items: stretch;
  margin-left: auto;
}

.main-nav a {
  display: flex;
  align-items: center;
  padding: 0 1.15rem;
  border-left: var(--border);
  font-family: var(--font-heavy);
  font-size: 1.15rem;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 120ms linear, color 120ms linear;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: var(--red);
  color: var(--white);
  outline: none;
}

.hero-section {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: var(--hero-pad-top) 1rem var(--hero-pad-bottom);
  background: var(--black);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.hero-poster {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.55);
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(255, 27, 28, 0.78), rgba(0, 0, 0, 0.35) 38%, rgba(0, 71, 255, 0.78)),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.12) 0 2px, transparent 2px 14px);
  mix-blend-mode: hard-light;
}

.hero-section::after {
  content: "LIVE SLOT FLOOR";
  position: absolute;
  left: -5vw;
  bottom: -2vw;
  z-index: -1;
  color: rgba(182, 255, 0, 0.55);
  font-family: var(--font-heavy);
  font-size: clamp(5rem, 18vw, 18rem);
  line-height: 0.75;
  letter-spacing: -0.09em;
  white-space: nowrap;
  animation: rawCut 3.5s steps(2, end) infinite;
}

@keyframes rawCut {
  0%, 48% {
    transform: translateX(0);
  }
  50%, 100% {
    transform: translateX(1.25rem);
  }
}

.hero-content {
  width: min(1080px, 100%);
  text-align: center;
  padding: 1rem;
  border: 5px solid var(--white);
  background: rgba(0, 0, 0, 0.68);
  box-shadow: 16px 16px 0 var(--red);
}

.kicker,
.card-label,
.subsection-title {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.65rem;
  background: var(--lime);
  color: var(--black);
  border: var(--border);
  font-family: var(--font-heavy);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-heavy);
  text-transform: uppercase;
  letter-spacing: -0.06em;
  line-height: 0.88;
}

h1 {
  max-width: 1050px;
  margin: 0 auto 1.2rem;
  font-size: clamp(4rem, 12vw, 10rem);
}

h2 {
  font-size: clamp(3rem, 8vw, 7.8rem);
}

h3 {
  font-size: clamp(2rem, 4vw, 4.2rem);
}

h4 {
  font-size: clamp(1.45rem, 3vw, 2.5rem);
}

.hero-content p:not(.kicker) {
  max-width: 900px;
  margin-inline: auto;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  margin-top: 1.5rem;
}

.brutal-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 58px;
  padding: 0.75rem 1.1rem;
  border: var(--border);
  color: var(--black);
  font-family: var(--font-heavy);
  font-size: 1.2rem;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 80ms linear, filter 80ms linear;
}

.brutal-link:hover,
.brutal-link:focus-visible {
  transform: translate(-4px, -4px);
  filter: contrast(1.35);
  outline: none;
}

.red {
  background: var(--red);
  color: var(--white);
}

.lime {
  background: var(--lime);
}

.cobalt {
  background: var(--cobalt);
  color: var(--white);
}

.about-section,
.features-section,
.gallery-section,
.highlights-section,
.more-section {
  border-top: var(--border);
}

.about-image-wrap {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: end;
  background: var(--black);
}

.about-image-wrap img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.35);
}

.text-overlay {
  position: relative;
  width: min(980px, calc(100% - 1rem));
  margin: 0 0 0.5rem 0.5rem;
  padding: 1rem;
  background: var(--white);
  border: var(--border);
  box-shadow: 20px -20px 0 var(--cobalt);
}

.text-overlay h2 {
  margin-bottom: 1rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: var(--border);
}

.about-panel {
  padding: 1rem;
  border-right: var(--border);
  background: var(--red);
  color: var(--white);
}

.about-panel:last-child {
  border-right: 0;
}

.cobalt-panel {
  background: var(--cobalt);
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: var(--border);
}

.stat-strip li {
  min-height: 160px;
  margin: 0;
  padding: 1rem;
  border-right: var(--border);
  background: var(--lime);
}

.stat-strip li:last-child {
  border-right: 0;
}

.stat-strip strong {
  display: block;
  font-family: var(--font-heavy);
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: 0.8;
  letter-spacing: -0.08em;
}

.stat-strip span {
  display: block;
  margin-top: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.section-intro {
  padding: 1rem;
  border-bottom: var(--border);
  background: var(--white);
}

.section-intro h2 {
  max-width: 1150px;
  margin-bottom: 1rem;
}

.section-intro p:not(.kicker) {
  max-width: 980px;
  font-size: 1.15rem;
}

.split-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.feature-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.feature-card,
.contact-card {
  min-height: 420px;
  padding: 1rem;
  border-right: var(--border);
  background: var(--white);
}

.feature-card:last-child,
.contact-card:last-child {
  border-right: 0;
}

.feature-card h3,
.contact-card h4 {
  margin-bottom: 1rem;
}

.feature-card p,
.contact-card p {
  font-size: 1.05rem;
}

.lime-card {
  background: var(--lime);
  color: var(--black);
}

.cobalt-card {
  background: var(--cobalt);
  color: var(--white);
}

.masonry-gallery {
  column-count: 3;
  column-gap: 0;
  background: var(--black);
}

.masonry-item {
  break-inside: avoid;
  margin: 0;
  border-right: var(--border);
  border-bottom: var(--border);
  background: var(--white);
}

.masonry-item img {
  object-fit: cover;
  filter: grayscale(100%) contrast(1.25);
}

.masonry-item.tall img {
  aspect-ratio: 7 / 10;
}

.masonry-item.wide img {
  aspect-ratio: 9 / 6;
}

.masonry-item figcaption {
  padding: 1rem;
  background: var(--white);
}

.masonry-item:nth-child(2) figcaption {
  background: var(--red);
  color: var(--white);
}

.masonry-item:nth-child(3) figcaption {
  background: var(--lime);
}

.showcase-stack {
  display: grid;
  gap: 0;
}

.showcase-item {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  min-height: 520px;
  border-bottom: var(--border);
  background: var(--black);
}

.showcase-item.reverse {
  grid-template-columns: 0.75fr 1.25fr;
}

.showcase-item.reverse img {
  order: 2;
}

.showcase-item img {
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.35);
}

.showcase-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem;
  background: var(--red);
  color: var(--white);
  border-left: var(--border);
}

.showcase-item.reverse .showcase-copy {
  border-left: 0;
  border-right: var(--border);
  background: var(--cobalt);
}

.showcase-item:nth-child(3) .showcase-copy {
  background: var(--lime);
  color: var(--black);
}

.showcase-copy h3 {
  margin-bottom: 1rem;
}

.more-section {
  background: var(--white);
}

.team-section,
.faq-section,
.newsletter-section,
.contact-section {
  border-bottom: var(--border);
}

.subsection-copy {
  padding: 1rem;
  border-bottom: var(--border);
}

.subsection-copy p:not(.subsection-title) {
  max-width: 980px;
  font-size: 1.12rem;
}

.team-carousel {
  position: relative;
  background: var(--black);
  overflow: hidden;
  border-bottom: var(--border);
}

.carousel-viewport {
  width: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 180ms steps(2, end);
}

.team-card {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  min-height: 560px;
  background: var(--white);
}

.team-card img {
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  border-right: var(--border);
  filter: grayscale(100%) contrast(1.35);
}

.team-card h3,
.team-card .role,
.team-card p:last-child {
  grid-column: 2;
  padding-inline: 1rem;
}

.team-card h3 {
  align-self: end;
  margin-top: auto;
}

.team-card .role {
  display: inline-block;
  width: max-content;
  max-width: calc(100% - 2rem);
  margin: 1rem;
  padding: 0.35rem 0.6rem;
  background: var(--red);
  color: var(--white);
  border: var(--border);
  font-family: var(--font-heavy);
  text-transform: uppercase;
}

.team-card p:last-child {
  max-width: 720px;
  font-size: 1.25rem;
}

.carousel-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  transform: translateY(-50%);
  min-width: 86px;
  min-height: 86px;
  border: var(--border);
  background: var(--lime);
  color: var(--black);
  font-family: var(--font-heavy);
  font-size: 1.2rem;
  text-transform: uppercase;
  cursor: pointer;
}

.prev-control {
  left: 0;
}

.next-control {
  right: 0;
}

.carousel-control:hover,
.carousel-control:focus-visible,
.dot-button:hover,
.dot-button:focus-visible,
.faq-question:hover,
.faq-question:focus-visible,
.menu-toggle:hover,
.menu-toggle:focus-visible {
  background: var(--red);
  color: var(--white);
  outline: none;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0;
  background: var(--black);
  border-top: var(--border);
}

.dot-button {
  width: 72px;
  height: 52px;
  border: 0;
  border-left: var(--border);
  background: var(--white);
  color: var(--black);
  font-family: var(--font-heavy);
  cursor: pointer;
}

.dot-button:last-child {
  border-right: var(--border);
}

.dot-button.active {
  background: var(--cobalt);
  color: var(--white);
}

.faq-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.faq-category {
  border-right: var(--border);
  background: var(--white);
}

.faq-category:last-child {
  border-right: 0;
}

.faq-category h4 {
  min-height: 130px;
  padding: 1rem;
  border-bottom: var(--border);
  background: var(--black);
  color: var(--white);
}

.faq-item {
  padding: 0;
}

.faq-question {
  width: 100%;
  min-height: 96px;
  padding: 1rem;
  border: 0;
  border-bottom: var(--border);
  background: var(--lime);
  color: var(--black);
  font-family: var(--font-heavy);
  font-size: 1.35rem;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  background: var(--white);
  transition: max-height 180ms linear;
}

.faq-answer p {
  padding: 1rem;
  margin: 0;
  border-bottom: var(--border);
}

.newsletter-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  background: var(--red);
  color: var(--white);
}

.newsletter-block div {
  max-width: 940px;
}

.newsletter-block .subsection-title {
  background: var(--black);
  color: var(--white);
  border-color: var(--white);
}

.newsletter-block .brutal-link {
  flex: 0 0 auto;
  margin-inline: auto 0;
  border-color: var(--white);
}

.contact-grid {
  border-top: var(--border);
}

.contact-card {
  min-height: 260px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  background: var(--black);
  color: var(--white);
  border-top: var(--border);
}

.site-footer p {
  max-width: 850px;
  margin: 0;
}

.site-footer a {
  align-self: start;
  padding: 0.4rem 0.7rem;
  background: var(--lime);
  color: var(--black);
  border: 3px solid var(--white);
  font-family: var(--font-heavy);
  text-transform: uppercase;
  text-decoration: none;
}

@media (max-width: 980px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    background: var(--white);
    border-bottom: var(--border);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    min-height: 60px;
    border-left: 0;
    border-top: var(--border);
  }

  .split-intro,
  .about-grid,
  .showcase-item,
  .showcase-item.reverse,
  .team-card {
    grid-template-columns: 1fr;
  }

  .showcase-item.reverse img {
    order: initial;
  }

  .showcase-copy,
  .showcase-item.reverse .showcase-copy {
    border-left: 0;
    border-right: 0;
    border-top: var(--border);
  }

  .feature-grid,
  .faq-groups,
  .contact-grid,
  .stat-strip {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .contact-card,
  .faq-category,
  .stat-strip li,
  .about-panel {
    border-right: 0;
    border-bottom: var(--border);
  }

  .masonry-gallery {
    column-count: 1;
  }

  .team-card img,
  .team-card h3,
  .team-card .role,
  .team-card p:last-child {
    grid-column: 1;
  }

  .team-card img {
    border-right: 0;
    border-bottom: var(--border);
    min-height: 380px;
  }

  .carousel-control {
    top: 190px;
    min-width: 72px;
    min-height: 72px;
  }

  .newsletter-block {
    flex-direction: column;
    align-items: flex-start;
  }

  .newsletter-block .brutal-link {
    margin-inline: 0 auto;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  :root {
    --hero-pad-top: 104px;
    --hero-pad-bottom: 48px;
  }

  body {
    font-size: 16px;
  }

  .site-header {
    min-height: 64px;
  }

  .brand {
    font-size: 1.8rem;
  }

  .menu-toggle {
    font-size: 1.05rem;
  }

  .main-nav {
    top: 64px;
  }

  .hero-content {
    padding: 0.75rem;
    box-shadow: 8px 8px 0 var(--red);
  }

  .hero-actions,
  .brutal-link {
    width: 100%;
  }

  .text-overlay {
    width: calc(100% - 0.75rem);
    margin: 0 0 0.375rem 0.375rem;
    box-shadow: 10px -10px 0 var(--cobalt);
  }

  .about-image-wrap {
    min-height: 760px;
  }

  .section-intro,
  .subsection-copy,
  .feature-card,
  .contact-card,
  .showcase-copy,
  .newsletter-block {
    padding: 0.8rem;
  }

  .showcase-item img,
  .team-card img {
    min-height: 320px;
  }

  .team-card {
    min-height: auto;
  }

  .carousel-control {
    top: 160px;
    min-width: 64px;
    min-height: 64px;
    font-size: 1rem;
  }
}

/* Visible state helpers */
+ .animate-fade-in-up.visible,
+ .animate-fade-in-left.visible,
+ .animate-fade-in-right.visible,
+ .animate-bounce-y.visible,
+ .section-scroll-animate.visible,
+ .text-animate-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Universal Icon Fixes for Buttons */
button svg, .carousel-next svg, .carousel-prev svg, .slider-next svg, .slider-prev svg,
.next svg, .prev svg, .tab-button svg, .tab-btn svg {
    display: inline-block;
    vertical-align: middle;
    pointer-events: none;
    width: 1em;
    height: 1em;
    fill: currentColor;
}

button i, .carousel-next i, .carousel-prev i, .slider-next i, .slider-prev i,
.next i, .prev i, .tab-button i, .tab-btn i {
    display: inline-block;
    vertical-align: middle;
    pointer-events: none;
    font-style: normal;
}

button .icon, .carousel-next .icon, .carousel-prev .icon,
.slider-next .icon, .slider-prev .icon, .tab-button .icon {
    display: inline-block;
    vertical-align: middle;
    pointer-events: none;
}

/* Ensure carousel buttons are clickable even with icons */
.carousel-next, .carousel-prev, .slider-next, .slider-prev,
.next, .prev, .next-btn, .prev-btn {
    cursor: pointer;
    position: relative;
}

.carousel-next *, .carousel-prev *, .slider-next *, .slider-prev *,
.next *, .prev *, .next-btn *, .prev-btn * {
    pointer-events: none;
}

/* Tab button icon fixes */
.tab-button, .tab-btn, .tab {
    cursor: pointer;
    position: relative;
}

.tab-button *, .tab-btn *, .tab * {
    pointer-events: none;
}

/* Ensure icons don't block clicks */
button > svg, button > i, button > .icon,
.carousel-next > svg, .carousel-prev > svg,
.tab-button > svg, .tab-button > i {
    pointer-events: none !important;
}

/* Enhanced: Missing animation classes from JS */
.reveal-on-scroll {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Safe visibility overrides (auto-added) */
:root, html, body, main, header, footer, section, .container, .content {
  opacity: 1 !important;
  visibility: visible !important;
}
