:root {
  --ink: #050505;
  --ink-2: #0b0c0c;
  --paper: #f6f0e6;
  --muted: #b8b1a7;
  --dim: #726d65;
  --acid: #b8f24b;
  --amber: #d6ad58;
  --cyan: #70d7ff;
  --red: #e8503a;
  --rule: rgba(246, 240, 230, 0.14);
  --max: 1180px;
  color-scheme: dark;
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: var(--ink);
  color: var(--paper);
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--ink);
}

body {
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

.grain {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0.17;
  mix-blend-mode: soft-light;
  background-image: repeating-radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 3px);
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 54px);
  color: var(--paper);
  transition: background 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}

.site-nav.is-scrolled {
  background: rgba(5, 5, 5, 0.82);
  border-color: var(--rule);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.site-nav nav {
  display: flex;
  gap: clamp(14px, 2.2vw, 30px);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.site-nav nav a {
  transition: color 0.2s ease;
}

.site-nav nav a:hover {
  color: var(--acid);
}

section {
  position: relative;
  padding: clamp(82px, 10vw, 132px) clamp(20px, 4.6vw, 64px);
  scroll-margin-top: 84px;
}

.section-dark {
  background: var(--ink);
}

.hero {
  min-height: 100vh;
  display: grid;
  align-items: end;
  padding-top: 108px;
  overflow: hidden;
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9) contrast(1.05) brightness(0.72);
  transform: scale(1.04);
  animation: slowPush 14s ease-in-out infinite alternate;
}

.hero::after,
.ai-system::after,
.why::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.96) 0%, rgba(5, 5, 5, 0.82) 36%, rgba(5, 5, 5, 0.25) 68%, rgba(5, 5, 5, 0.8) 100%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.38) 0%, rgba(5, 5, 5, 0.9) 100%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(820px, 100%);
  padding-bottom: clamp(70px, 10vw, 112px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--acid);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  font-family: "Avenir Next Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  font-weight: 900;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(58px, 7.5vw, 112px);
  line-height: 0.85;
}

h1::after,
.section-heading h2::after,
.copy-column h2::after,
.ai-content h2::after,
.why-copy h2::after,
.contact h2::after {
  content: "";
  display: block;
  width: 124px;
  height: 3px;
  margin-top: 22px;
  background: var(--acid);
}

.hero-copy p:not(.eyebrow),
.copy-column p,
.section-heading p,
.ai-content p,
.why-copy p,
.contact p {
  max-width: 570px;
  color: var(--muted);
  font-size: clamp(17px, 1.45vw, 22px);
  line-height: 1.28;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-actions a {
  min-width: 156px;
  padding: 14px 18px;
  border: 1px solid rgba(246, 240, 230, 0.22);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hero-actions a:first-child {
  background: var(--acid);
  border-color: var(--acid);
  color: #071004;
}

.hero-actions a:hover {
  transform: translateY(-2px);
  border-color: var(--acid);
}

.hero-strip {
  position: absolute;
  z-index: 3;
  left: clamp(20px, 4.6vw, 64px);
  right: clamp(20px, 4.6vw, 64px);
  bottom: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  color: rgba(246, 240, 230, 0.62);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-strip span {
  border-top: 1px solid var(--rule);
  padding-top: 12px;
}

.showreel {
  border-top: 1px solid var(--rule);
}

.showreel-frame {
  width: min(var(--max), 100%);
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(246, 240, 230, 0.14);
  background: #000;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.showreel-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: center;
  max-width: calc(var(--max) + 128px);
  margin: 0 auto;
  background: #080808;
}

.copy-column h2,
.section-heading h2,
.ai-content h2,
.why-copy h2,
.motion-heading h2,
.contact h2 {
  max-width: 760px;
  margin-bottom: 26px;
  font-size: clamp(48px, 6vw, 86px);
  line-height: 0.88;
}

.image-stack {
  position: relative;
  margin: 0;
  min-height: 560px;
  overflow: hidden;
}

.image-stack img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  filter: grayscale(1) contrast(1.07);
}

.image-stack figcaption {
  position: absolute;
  right: 22px;
  bottom: 20px;
  color: var(--acid);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.capabilities,
.work,
.network,
.motion-wall {
  border-top: 1px solid var(--rule);
}

.section-heading {
  width: min(var(--max), 100%);
  margin: 0 auto 46px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(330px, 0.7fr);
  gap: 52px;
  align-items: end;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

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

.section-heading p {
  margin-bottom: 8px;
}

.capability-grid {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.media-card,
.work-card,
.case-card {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  background: var(--ink-2);
  isolation: isolate;
}

.media-card img,
.work-card img,
.case-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.04) brightness(0.74);
  transition: transform 0.55s ease, filter 0.55s ease;
}

.media-card::after,
.work-card::after,
.case-card::after,
.work-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.1) 0%, rgba(5, 5, 5, 0.72) 74%, rgba(5, 5, 5, 0.94) 100%);
}

.media-card:hover img,
.work-card:hover img,
.case-card:hover img,
.work-feature:hover img {
  transform: scale(1.05);
  filter: saturate(1) contrast(1.06) brightness(0.86);
}

.media-card div,
.work-card,
.case-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
}

.media-card span {
  width: max-content;
  margin-bottom: 14px;
  padding-bottom: 8px;
  color: var(--acid);
  border-bottom: 2px solid var(--acid);
  font-size: 12px;
  font-weight: 900;
}

.media-card h3,
.work-card h3,
.case-card h3,
.pipeline h3,
.principles h3,
.team-card h3 {
  margin-bottom: 10px;
  font-size: 30px;
  line-height: 0.96;
}

.media-card p,
.work-card p,
.case-card p,
.pipeline p,
.principles p,
.team-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.22;
}

.has-video {
  cursor: pointer;
}

.has-video:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 4px;
}

.watch-pill {
  display: inline-flex;
  width: max-content;
  margin-top: 16px;
  padding: 8px 10px;
  border: 1px solid rgba(246, 240, 230, 0.2);
  background: rgba(5, 5, 5, 0.46);
  color: var(--acid);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.ai-system {
  min-height: 900px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(450px, 1fr);
  grid-template-areas:
    "copy metrics"
    "copy pipeline";
  gap: 34px 54px;
  align-items: start;
  align-content: center;
}

.ai-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ai-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.08) brightness(0.62);
}

.ai-content,
.metric-rail,
.pipeline {
  position: relative;
  z-index: 2;
}

.ai-content {
  grid-area: copy;
  max-width: 560px;
}

.metric-rail {
  grid-area: metrics;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.metric-rail div {
  border-top: 2px solid var(--acid);
  padding-top: 16px;
}

.metric-rail div:nth-child(2) {
  border-color: var(--cyan);
}

.metric-rail div:nth-child(3) {
  border-color: var(--amber);
}

.metric-rail div:nth-child(4) {
  border-color: var(--red);
}

.metric-rail strong {
  display: block;
  margin-bottom: 8px;
  color: var(--paper);
  font-family: "Avenir Next Condensed", "Arial Narrow", sans-serif;
  font-size: 44px;
  line-height: 0.9;
}

.metric-rail span {
  display: block;
  color: var(--dim);
  font-size: 13px;
  line-height: 1.18;
}

.pipeline {
  grid-area: pipeline;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.pipeline article {
  padding: 4px 0 0;
}

.pipeline span,
.principles article::before {
  display: block;
  width: 64px;
  height: 2px;
  margin-bottom: 16px;
  background: var(--acid);
  content: "";
}

.pipeline article:nth-child(2) span,
.principles article:nth-child(2)::before {
  background: var(--amber);
}

.pipeline article:nth-child(3) span,
.principles article:nth-child(3)::before {
  background: var(--cyan);
}

.work-grid {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(300px, auto);
  gap: 18px;
}

.work-feature {
  position: relative;
  grid-column: span 2;
  grid-row: span 2;
  overflow: hidden;
  min-height: 616px;
  isolation: isolate;
}

.work-feature img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) brightness(0.76);
  transition: transform 0.55s ease, filter 0.55s ease;
}

.work-feature div {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 28px;
}

.work-feature h3 {
  max-width: 520px;
  margin-bottom: 16px;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 0.88;
}

.work-feature h3::after {
  content: "";
  display: block;
  width: 106px;
  height: 3px;
  margin-top: 18px;
  background: var(--acid);
}

.work-feature p:not(.eyebrow) {
  max-width: 460px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.24;
}

.work-card,
.case-card {
  min-height: 300px;
}

.ai-films {
  background: #070707;
  border-top: 1px solid var(--rule);
}

.case-grid {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

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

.network .section-heading {
  align-items: start;
}

.team-grid {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.team-card {
  padding: 0;
}

.team-card img {
  width: 100%;
  aspect-ratio: 1 / 1.16;
  object-fit: cover;
  filter: grayscale(0.4) contrast(1.05) brightness(0.86);
}

.team-card h3 {
  margin: 18px 0 8px;
}

.team-card p {
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.why {
  min-height: 840px;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(390px, 0.78fr);
  gap: 80px;
  align-items: center;
  overflow: hidden;
}

.why-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.why-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8) brightness(0.56) contrast(1.1);
}

.why-copy,
.principles {
  position: relative;
  z-index: 2;
}

.why-copy h2 {
  max-width: 560px;
}

.principles {
  display: grid;
  gap: 26px;
}

.principles article {
  max-width: 430px;
}

.principles article:nth-child(4)::before {
  background: var(--red);
}

.motion-wall {
  overflow: hidden;
  padding-bottom: 0;
}

.motion-heading {
  width: min(var(--max), 100%);
  margin: 0 auto 42px;
}

.motion-heading h2 {
  max-width: 760px;
}

.gif-board {
  width: min(var(--max), 100%);
  margin: 0 auto 56px;
  display: grid;
  grid-template-columns: 0.82fr 1fr 1.2fr 1fr 0.82fr;
  grid-auto-rows: 270px;
  gap: 14px;
}

.gif-cell {
  position: relative;
  overflow: hidden;
  background-image: var(--frame);
  background-size: cover;
  background-position: center;
  filter: saturate(0.92) contrast(1.06);
  animation: frameDrift 5.4s ease-in-out infinite alternate;
}

.gif-cell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(5, 5, 5, 0.32) 100%);
}

.gif-cell.tall {
  grid-row: span 2;
}

.gif-cell.wide {
  grid-column: span 1;
}

.reel-row {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.reel-track {
  display: flex;
  width: max-content;
  animation: reelMove 44s linear infinite;
}

.reel-track img {
  width: 280px;
  height: 156px;
  object-fit: cover;
  border-right: 1px solid rgba(246, 240, 230, 0.1);
  filter: saturate(0.8) brightness(0.78);
}

.contact {
  min-height: 680px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.contact img {
  width: 66px;
  height: 66px;
  object-fit: contain;
  margin-bottom: 36px;
}

.contact h2 {
  max-width: 620px;
  font-size: clamp(72px, 10vw, 150px);
}

.contact p:not(.eyebrow) {
  max-width: 620px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 15px;
  border: 1px solid rgba(246, 240, 230, 0.2);
  color: var(--paper);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.contact-links a:hover {
  border-color: var(--acid);
  color: var(--acid);
  transform: translateY(-2px);
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 42px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.video-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.video-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(18px);
}

.video-dialog {
  position: relative;
  width: min(1120px, 100%);
  max-height: min(92vh, 850px);
  overflow: hidden;
  border: 1px solid rgba(246, 240, 230, 0.16);
  background: #080808;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

.video-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 22px 18px;
  border-bottom: 1px solid var(--rule);
}

.video-topline .eyebrow {
  margin-bottom: 8px;
}

.video-topline h2 {
  margin: 0 0 8px;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 0.92;
}

.video-topline h2::after {
  display: none;
}

.video-topline p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.video-topline button {
  min-width: 82px;
  padding: 10px 12px;
  border: 1px solid rgba(246, 240, 230, 0.2);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.video-dialog video {
  display: block;
  width: 100%;
  max-height: calc(92vh - 138px);
  background: #000;
}

.reveal {
  transform: translateY(24px);
  opacity: 0;
  transition: transform 0.7s ease, opacity 0.7s ease;
}

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

@keyframes slowPush {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.2%, 0.6%, 0);
  }
}

@keyframes frameDrift {
  from {
    background-position: center center;
    transform: scale(1);
  }
  to {
    background-position: 58% 44%;
    transform: scale(1.018);
  }
}

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

@media (max-width: 980px) {
  .site-nav nav {
    display: none;
  }

  .hero-strip,
  .capability-grid,
  .section-heading,
  .split-section,
  .ai-system,
  .work-grid,
  .case-grid,
  .team-grid,
  .why,
  .gif-board {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-bottom: 140px;
  }

  .hero-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .split-section,
  .why {
    gap: 36px;
  }

  .image-stack,
  .image-stack img {
    min-height: 420px;
  }

  .capability-grid,
  .case-grid,
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .media-card {
    min-height: 340px;
  }

  .ai-system {
    grid-template-areas:
      "copy"
      "metrics"
      "pipeline";
    min-height: auto;
  }

  .metric-rail,
  .pipeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-feature {
    grid-column: span 1;
    min-height: 520px;
  }

  .work-card {
    min-height: 340px;
  }

  .gif-cell.tall {
    grid-row: span 1;
  }
}

@media (max-width: 640px) {
  section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .brand span {
    max-width: 150px;
  }

  h1 {
    font-size: 58px;
  }

  .copy-column h2,
  .section-heading h2,
  .ai-content h2,
  .why-copy h2,
  .motion-heading h2 {
    font-size: 48px;
  }

  .hero-strip,
  .capability-grid,
  .case-grid,
  .team-grid,
  .metric-rail,
  .pipeline {
    grid-template-columns: 1fr;
  }

  .media-card,
  .work-card,
  .case-card {
    min-height: 360px;
  }

  .gif-board {
    grid-auto-rows: 210px;
  }

  .reel-track img {
    width: 220px;
    height: 124px;
  }

  .contact-links {
    width: 100%;
  }

  .contact-links a {
    width: 100%;
    justify-content: center;
  }

  .video-topline {
    flex-direction: column;
    gap: 16px;
  }

  .video-topline button {
    width: 100%;
  }
}

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