:root {
  --red: #e10600;
  --hot: #ff2a1f;
  --bone: #f4eee8;
  --muted: rgba(244, 238, 232, 0.64);
  --line: rgba(255, 255, 255, 0.12);
  --panel: rgba(8, 8, 8, 0.92);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    #030303;
  background-size: 72px 72px;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), #030303 86%),
    radial-gradient(circle at 50% 8%, rgba(225, 6, 0, 0.25), transparent 34%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(225, 6, 0, 0.08) 52%, transparent);
  mix-blend-mode: screen;
  opacity: 0.55;
  animation: heatSweep 8s ease-in-out infinite;
}

main,
header,
footer,
.toast {
  position: relative;
  z-index: 2;
}

#embers {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.72;
}

.site-grain {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.15;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.65'/%3E%3C/svg%3E");
}

.cursor-light {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1;
  width: 34rem;
  height: 34rem;
  pointer-events: none;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(225, 6, 0, 0.16), transparent 64%);
  transform: translate3d(-50%, -50%, 0);
  opacity: 0;
  transition: opacity 250ms ease;
}

.nav-link {
  position: relative;
  padding: 0.35rem 0;
  transition: color 180ms ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--hot);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-link:hover {
  color: white;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.sound-toggle {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.45);
  padding: 0 0.9rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.sound-toggle:hover,
.sound-toggle[data-on="true"] {
  border-color: rgba(255, 42, 31, 0.55);
  color: white;
  background: rgba(225, 6, 0, 0.12);
}

.sound-toggle__bars {
  display: inline-flex;
  align-items: end;
  gap: 2px;
  height: 14px;
}

.sound-toggle__bars i {
  display: block;
  width: 3px;
  background: var(--hot);
}

.sound-toggle__bars i:nth-child(1) { height: 7px; }
.sound-toggle__bars i:nth-child(2) { height: 13px; }
.sound-toggle__bars i:nth-child(3) { height: 9px; }

.sound-toggle[data-on="true"] .sound-toggle__bars i {
  animation: soundBars 720ms ease-in-out infinite alternate;
}

.sound-toggle[data-on="true"] .sound-toggle__bars i:nth-child(2) {
  animation-delay: 120ms;
}

.sound-toggle[data-on="true"] .sound-toggle__bars i:nth-child(3) {
  animation-delay: 240ms;
}

.hero-shell {
  background:
    linear-gradient(90deg, rgba(3, 3, 3, 0.98) 0%, rgba(3, 3, 3, 0.82) 44%, rgba(3, 3, 3, 0.28) 100%),
    linear-gradient(180deg, transparent 0%, #030303 100%);
}

.hero-bg-mark {
  position: absolute;
  inset: 4rem -8vw -4rem auto;
  width: min(75rem, 92vw);
  opacity: 0.42;
  filter: saturate(1.35) contrast(1.12) drop-shadow(0 0 46px rgba(225, 6, 0, 0.28));
  transform: rotate(-1deg);
}

.hero-bg-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.kicker {
  color: rgba(255, 42, 31, 0.92);
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.section-title {
  font-family: "Archivo", sans-serif;
  font-size: clamp(2.25rem, 7vw, 6.7rem);
  font-weight: 900;
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: 0;
}

.btn {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  padding: 0 1.15rem;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  border-color: rgba(255, 42, 31, 0.75);
  background: var(--red);
  color: white;
  box-shadow: 0 18px 55px rgba(225, 6, 0, 0.24);
}

.btn-primary:hover {
  background: var(--hot);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.78);
}

.btn-ghost:hover {
  border-color: rgba(255, 42, 31, 0.55);
  color: white;
  background: rgba(225, 6, 0, 0.1);
}

.hero-proof article {
  min-height: 8.5rem;
  background: rgba(3, 3, 3, 0.72);
  padding: 1.1rem;
}

.hero-proof span,
.capability span,
.case-row span {
  color: rgba(255, 42, 31, 0.88);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-proof strong {
  display: block;
  margin-top: 1.1rem;
  max-width: 15rem;
  color: white;
  font-size: 1rem;
  line-height: 1.35;
}

.marquee-band {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: #0a0a0a;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 2.4rem;
  padding: 1rem 0;
  animation: marquee 28s linear infinite;
}

.marquee-track span {
  color: rgba(255, 255, 255, 0.76);
  font-family: "Archivo", sans-serif;
  font-size: clamp(1.25rem, 3vw, 2.8rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.studio-band,
.team-band {
  background: linear-gradient(180deg, #030303, #090909);
}

.work-band {
  background:
    linear-gradient(180deg, rgba(225, 6, 0, 0.08), transparent 24%),
    #050505;
}

.contact-band {
  background: #080808;
}

.capability,
.team-unit {
  min-height: 18rem;
  background: rgba(7, 7, 7, 0.92);
  padding: 1.25rem;
  transition: background 200ms ease, transform 200ms ease;
}

.capability:hover,
.team-unit:hover {
  background: rgba(225, 6, 0, 0.14);
  transform: translateY(-2px);
}

.capability h3,
.team-unit h3,
.case-row h3 {
  margin-top: 3.3rem;
  font-family: "Archivo", sans-serif;
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.capability p,
.team-unit p,
.case-row p {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.case-row {
  display: grid;
  grid-template-columns: 4rem minmax(12rem, 0.72fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 0;
}

.case-row h3 {
  margin-top: 0;
}

.case-row p {
  margin-top: 0;
  max-width: 38rem;
}

.team-unit {
  min-height: 14rem;
}

.team-unit h3 {
  margin-top: 0;
}

.contact-layout {
  position: relative;
}

.contact-layout::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: min(22rem, 48vw);
  height: 2px;
  background: var(--hot);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 60;
  transform: translate(-50%, 1rem);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.88);
  padding: 0.75rem 1rem;
  color: white;
  font-size: 0.85rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes heatSweep {
  0%, 100% { transform: translateY(-25%); opacity: 0.28; }
  50% { transform: translateY(28%); opacity: 0.58; }
}

@keyframes soundBars {
  from { transform: scaleY(0.55); }
  to { transform: scaleY(1.1); }
}

@media (max-width: 900px) {
  .hero-bg-mark {
    inset: 5rem -42vw auto auto;
    width: 54rem;
    opacity: 0.26;
  }

  .case-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

@media (max-width: 640px) {
  .hero-bg-mark {
    inset: 4.5rem -58vw auto auto;
    width: 45rem;
  }

  .hero-proof article {
    min-height: auto;
  }

  .section-title {
    font-size: clamp(2.2rem, 16vw, 4.4rem);
  }

  .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
