:root {
  color-scheme: dark;
  --ink: #050505;
  --ink-soft: #111111;
  --paper: #f7f2e8;
  --muted: #b8b2a8;
  --coral: #ff4c3b;
  --green: #c9ff3d;
  --cyan: #26e8ff;
  --yellow: #ffd166;
  --steel: #c9d1d8;
  --line: rgba(247, 242, 232, 0.18);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 76, 59, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(38, 232, 255, 0.08) 1px, transparent 1px),
    var(--ink);
  background-size: 96px 96px;
  mask-image: linear-gradient(to bottom, transparent, black 22%, black 76%, transparent);
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 2;
}

.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 30;
  width: 220px;
  height: 220px;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0);
  background:
    linear-gradient(135deg, rgba(255, 76, 59, 0.18), transparent 48%),
    linear-gradient(315deg, rgba(38, 232, 255, 0.18), transparent 52%);
  filter: blur(12px);
  transition: opacity 180ms ease;
}

.site-header {
  position: fixed;
  left: 50%;
  top: 18px;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: 64px;
  padding: 10px;
  border: 1px solid rgba(247, 242, 232, 0.22);
  border-radius: 8px;
  background: rgba(5, 5, 5, 0.62);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.brand,
.nav-action,
.button,
.text-link {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 12px;
  min-width: 0;
  padding-left: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.brand-mark {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 2px solid var(--paper);
  background:
    linear-gradient(90deg, transparent 42%, var(--green) 42% 58%, transparent 58%),
    linear-gradient(var(--coral), var(--coral));
  clip-path: polygon(0 0, 100% 0, 76% 100%, 0 100%);
}

nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(247, 242, 232, 0.16);
  border-radius: 8px;
  background: rgba(247, 242, 232, 0.06);
}

nav a {
  min-height: 38px;
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  transition:
    color 160ms ease,
    background 160ms ease;
}

nav a:hover,
nav a:focus-visible {
  background: rgba(247, 242, 232, 0.1);
  color: var(--paper);
  outline: none;
}

.nav-action {
  justify-self: end;
  gap: 10px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--green);
  border-radius: 4px;
  color: var(--green);
  font-weight: 900;
  text-transform: uppercase;
}

.hero {
  position: relative;
  display: grid;
  min-height: 92svh;
  padding: 150px max(24px, calc((100% - 1180px) / 2)) 54px;
  overflow: hidden;
  isolation: isolate;
}

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

.hero-media {
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.9) 0%, rgba(5, 5, 5, 0.55) 38%, rgba(5, 5, 5, 0.18) 100%),
    url("assets/agency-command-room.webp") center / cover no-repeat;
  transform: scale(1.03);
}

.hero-scrim {
  z-index: -2;
  background:
    linear-gradient(to bottom, rgba(5, 5, 5, 0.2), rgba(5, 5, 5, 0.1) 58%, var(--ink) 100%),
    linear-gradient(120deg, rgba(255, 76, 59, 0.16), transparent 34%, rgba(38, 232, 255, 0.16));
}

.hero-content {
  align-self: end;
  max-width: 760px;
}

.eyebrow,
.section-kicker,
.case-type {
  margin: 0 0 18px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 9ch;
  margin-bottom: 22px;
  padding-bottom: 0.08em;
  font-size: 8rem;
  line-height: 1.08;
  font-weight: 950;
  text-transform: uppercase;
}

h2 {
  max-width: 12ch;
  font-size: 4.4rem;
  line-height: 1.12;
  font-weight: 940;
  text-transform: uppercase;
}

h3 {
  font-size: 1.5rem;
  line-height: 1.14;
  font-weight: 920;
}

.hero-copy {
  max-width: 560px;
  color: rgba(247, 242, 232, 0.78);
  font-size: 1.24rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  position: relative;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 16px 20px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-weight: 950;
  overflow: hidden;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    color 180ms ease,
    background 180ms ease;
}

.button-primary {
  background: var(--green);
  color: #080808;
}

.button-ghost {
  background: rgba(5, 5, 5, 0.38);
  color: var(--paper);
  backdrop-filter: blur(16px);
}

.button:hover,
.button:focus-visible,
.nav-action:hover,
.nav-action:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--cyan);
}

.hero-panel {
  position: absolute;
  right: max(24px, calc((100% - 1180px) / 2));
  bottom: 48px;
  display: grid;
  width: 360px;
  border: 1px solid rgba(247, 242, 232, 0.22);
  border-radius: 8px;
  background: rgba(5, 5, 5, 0.62);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-panel div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 84px;
  padding: 18px;
}

.hero-panel div + div {
  border-top: 1px solid var(--line);
}

.stat-value {
  color: var(--coral);
  font-size: 2rem;
  font-weight: 950;
}

.stat-label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background:
    linear-gradient(90deg, var(--coral), var(--yellow) 34%, var(--green) 68%, var(--cyan));
  color: #070707;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.ticker span {
  display: inline-flex;
  align-items: center;
  min-height: 58px;
  padding: 0 28px;
  font-size: 1rem;
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

.section-pad {
  padding: 104px max(24px, calc((100% - 1180px) / 2));
}

.intro {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 64px;
  align-items: end;
  background:
    linear-gradient(180deg, var(--ink) 0%, #0b0b0b 100%),
    var(--ink);
}

.intro .section-kicker {
  grid-column: 1 / -1;
  margin: 0;
}

.intro h2 {
  max-width: 14ch;
  margin-bottom: 0;
}

.intro p {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.2rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 42px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.text-link {
  gap: 10px;
  min-height: 44px;
  color: var(--cyan);
  font-weight: 950;
  text-transform: uppercase;
  transition: transform 180ms ease;
}

.case-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}

.case-card {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink-soft);
}

.case-card:first-child {
  grid-row: span 2;
}

.case-art {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(5, 5, 5, 0.02), rgba(5, 5, 5, 0.78)),
    url("assets/agency-command-room.webp") center / cover no-repeat;
  transition: transform 700ms ease;
}

.case-one .case-art {
  background-position: center;
}

.case-two .case-art {
  background-position: 72% 28%;
  filter: hue-rotate(24deg) saturate(1.18);
}

.case-three .case-art {
  background-position: 38% 64%;
  filter: hue-rotate(170deg) saturate(1.16);
}

.case-card:hover .case-art {
  transform: scale(1.06);
}

.case-copy {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 12px;
  padding: 28px;
}

.case-copy p {
  max-width: 520px;
  margin-bottom: 0;
  color: rgba(247, 242, 232, 0.74);
}

.case-copy strong {
  width: fit-content;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(201, 255, 61, 0.48);
  color: var(--green);
  font-size: 0.86rem;
  text-transform: uppercase;
}

.method {
  border-block: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 76, 59, 0.12), transparent 36%),
    linear-gradient(315deg, rgba(201, 255, 61, 0.08), transparent 42%),
    #090909;
}

.method h2 {
  margin-bottom: 42px;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.method-grid article,
.service-list article {
  min-height: 260px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(247, 242, 232, 0.07), rgba(247, 242, 232, 0.02)),
    rgba(5, 5, 5, 0.46);
}

.method-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 30px;
  border: 1px solid var(--coral);
  color: var(--coral);
  font-weight: 950;
}

.method-grid p,
.service-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-list article {
  min-height: 310px;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.service-list article:hover {
  border-color: rgba(38, 232, 255, 0.6);
  background:
    linear-gradient(180deg, rgba(38, 232, 255, 0.12), rgba(247, 242, 232, 0.02)),
    rgba(5, 5, 5, 0.46);
  transform: translateY(-5px);
}

.contact {
  padding: 120px max(24px, calc((100% - 1180px) / 2));
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.88), rgba(5, 5, 5, 0.3)),
    url("assets/agency-command-room.webp") center 40% / cover no-repeat;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 30px 60px;
  align-items: end;
}

.contact h2 {
  max-width: 10ch;
  margin-bottom: 0;
}

.contact p {
  color: rgba(247, 242, 232, 0.82);
  font-size: 1.16rem;
}

.contact .button {
  justify-self: start;
  grid-column: 2;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px max(24px, calc((100% - 1180px) / 2));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
}

footer p {
  margin: 0;
}

.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.js-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 1050px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    display: none;
  }

  h1 {
    font-size: 6rem;
  }

  h2 {
    font-size: 3.5rem;
  }

  .hero-panel {
    position: relative;
    right: auto;
    bottom: auto;
    align-self: end;
    width: 100%;
    max-width: 560px;
    margin-top: 44px;
  }

  .intro,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .case-grid,
  .method-grid,
  .service-list {
    grid-template-columns: 1fr 1fr;
  }

  .case-card:first-child {
    grid-column: 1 / -1;
  }

  .contact .button {
    grid-column: auto;
  }
}

@media (max-width: 700px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    min-height: 56px;
  }

  .brand {
    font-size: 0.88rem;
  }

  .brand-mark {
    width: 28px;
    height: 28px;
  }

  .nav-action {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 0.84rem;
  }

  .hero {
    min-height: 94svh;
    padding: 112px 18px 34px;
  }

  .hero-media {
    background:
      linear-gradient(90deg, rgba(5, 5, 5, 0.94) 0%, rgba(5, 5, 5, 0.72) 58%, rgba(5, 5, 5, 0.38) 100%),
      url("assets/agency-command-room.webp") 58% center / cover no-repeat;
  }

  h1 {
    max-width: 7ch;
    font-size: 4rem;
  }

  h2 {
    max-width: 100%;
    font-size: 2.55rem;
  }

  h3 {
    font-size: 1.28rem;
  }

  .hero-copy,
  .intro p,
  .contact p {
    font-size: 1.05rem;
  }

  .hero-actions,
  footer {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-panel div {
    grid-template-columns: 74px 1fr;
    min-height: 74px;
    padding: 14px;
  }

  .stat-value {
    font-size: 1.65rem;
  }

  .section-pad,
  .contact {
    padding: 76px 18px;
  }

  .section-heading {
    display: grid;
  }

  .intro,
  .method-grid,
  .service-list,
  .case-grid {
    gap: 14px;
  }

  .case-grid,
  .method-grid,
  .service-list {
    grid-template-columns: 1fr;
  }

  .case-card {
    min-height: 440px;
  }

  .case-copy {
    padding: 22px;
  }

  .method-grid article,
  .service-list article {
    min-height: auto;
    padding: 22px;
  }

  .contact {
    background-position: 58% center;
  }
}

@media (max-width: 390px) {
  .brand span:last-child {
    max-width: 84px;
  }

  h1 {
    font-size: 3.45rem;
  }

  h2 {
    font-size: 2.15rem;
  }

  .button,
  .nav-action {
    font-size: 0.8rem;
  }
}

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

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

  .js-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .cursor-glow {
    display: none;
  }
}
