:root {
  --accent: #ef1b12;
  --accent-dark: #b8120c;
  --text: #111111;
  --page-text: #111111;
  --muted: #6e6e73;
  --soft: #f5f5f7;
  --ghost: #f2f2f3;
  --line: rgba(17, 17, 17, 0.1);
  --white: #ffffff;
  --black: #050505;
  --gutter: clamp(24px, 5.5vw, 104px);
  --section-y: clamp(80px, 8vw, 120px);
  --label-gap: clamp(12px, 1.1vw, 16px);
  --title-gap: clamp(16px, 1.6vw, 24px);
  --media-gap: clamp(32px, 4vw, 56px);
  --radius-media: clamp(28px, 3vw, 40px);
  --system: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--white);
  color: var(--page-text);
  font-family: var(--system);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body.modal-open {
  overflow: hidden;
}

a,
button {
  font: inherit;
}

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

button {
  border: 0;
  cursor: pointer;
}

a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

img,
video,
svg {
  display: block;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  height: 88px;
  padding: 34px var(--gutter) 0;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}

.site-header a,
.outro a,
.modal-actions a {
  min-width: 148px;
  min-height: 44px;
  padding: 10px 24px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  font-size: 18px;
  font-weight: 720;
  pointer-events: auto;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.site-header a {
  background: var(--black);
}

.site-header a:focus-visible {
  outline-color: var(--white);
}

.site-header a:hover,
.outro a:hover,
.modal-actions a:hover {
  transform: translateY(-1px);
  background: var(--accent-dark);
}

.hero {
  position: relative;
  min-height: 100svh;
  padding: 0;
  display: block;
  overflow: hidden;
  background: var(--accent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-video {
  width: 100%;
  height: 100svh;
  object-fit: cover;
  object-position: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.work-head span,
.clients > div:first-child > span,
.modal-panel > span {
  color: var(--accent);
  font-size: 15px;
  font-weight: 680;
  line-height: 1;
}

.work {
  padding: var(--section-y) var(--gutter);
  border-top: 1px solid var(--line);
  background: var(--white);
}

.work:first-of-type {
  border-top: 0;
}

.work-head {
  max-width: 1000px;
  margin-bottom: var(--media-gap);
}

.work-head h2 {
  margin: var(--label-gap) 0 0;
  font-size: clamp(76px, 9.2vw, 132px);
  font-weight: 800;
  line-height: 0.88;
}

.work-head p {
  max-width: 720px;
  margin: var(--title-gap) 0 0;
  color: var(--muted);
  font-size: clamp(22px, 2vw, 29px);
  line-height: 1.16;
}

.media-slot {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-media);
  background: var(--soft);
  box-shadow: none;
  transform-style: preserve-3d;
}

.video-slot {
  aspect-ratio: 16 / 9;
  background: #050505;
  cursor: pointer;
}

.video-slot::after {
  display: none;
}

.video-slot video,
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-carousel {
  overflow: visible;
  border: 0;
  background: transparent;
  border-radius: 0;
}

.carousel-track {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-media);
  background: #e9f9f8;
  box-shadow: none;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.015);
  transition:
    opacity 360ms ease,
    transform 520ms ease;
}

.carousel-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.carousel-controls {
  position: relative;
  width: fit-content;
  margin: 20px auto 0;
  z-index: 2;
  padding: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  background: var(--white);
  backdrop-filter: blur(18px);
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 0;
}

.carousel-dot {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 999px;
  background: transparent;
}

.carousel-dot::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: inherit;
  background: rgba(17, 17, 17, 0.24);
  transform: translate(-50%, -50%);
  transition:
    width 180ms ease,
    background 180ms ease;
}

.carousel-dot.is-active::before {
  width: 22px;
  background: var(--accent);
}

.carousel-arrow {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
}

.carousel-arrow svg {
  width: 20px;
  height: 20px;
}

.carousel-arrow path,
.modal-close path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.clients {
  padding: var(--section-y) var(--gutter) calc(var(--section-y) + 18px);
  display: block;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.clients > div:first-child > span {
  display: block;
  margin-bottom: var(--label-gap);
}

.clients > div,
.brand-marquee {
  min-width: 0;
}

.clients h2 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(72px, 8vw, 116px);
  font-weight: 800;
  line-height: 0.91;
}

.clients p {
  max-width: 690px;
  margin: var(--title-gap) 0 0;
  color: var(--muted);
  font-size: clamp(22px, 1.95vw, 28px);
  line-height: 1.18;
}

.brand-marquee {
  position: relative;
  margin: var(--media-gap) calc(var(--gutter) * -1) 0;
  padding: clamp(22px, 3vw, 40px) 0;
  display: grid;
  gap: clamp(18px, 2vw, 26px);
  overflow: hidden;
  background: var(--accent);
  color: var(--white);
}

.brand-lane {
  overflow: hidden;
}

.brand-track {
  width: max-content;
  display: flex;
  align-items: center;
  animation: brand-marquee 46s linear infinite;
  will-change: transform;
}

.brand-set {
  display: flex;
  align-items: center;
  gap: clamp(54px, 7vw, 132px);
  padding-right: clamp(54px, 7vw, 132px);
}

.brand-mark {
  min-height: clamp(44px, 5vw, 66px);
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.brand-mark img {
  width: 100%;
  max-width: clamp(138px, 16vw, 300px);
  max-height: clamp(30px, 3.4vw, 54px);
  height: auto;
  object-fit: contain;
  object-position: center;
  filter: brightness(0) invert(1);
  opacity: 0.96;
  transition:
    filter 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.brand-mark:hover img {
  filter: brightness(0);
  opacity: 1;
  transform: translateY(-1px);
}

@keyframes brand-marquee {
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

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

  .site-header a,
  .outro a,
  .modal-actions a,
  .media-slot,
  .carousel-slide,
  .carousel-dot,
  .carousel-dot::before,
  .brand-mark,
  .brand-mark img,
  .copy-toast {
    transition: none;
  }

  .brand-track {
    animation: none;
    transform: none;
  }
}

.outro {
  position: relative;
  min-height: 76svh;
  padding: var(--section-y) var(--gutter);
  display: grid;
  align-content: center;
  gap: clamp(30px, 4vw, 46px);
  overflow: hidden;
  color: var(--accent);
  background: var(--white);
}

.ghost {
  position: absolute;
  margin: 0;
  color: var(--ghost);
  font-weight: 800;
  line-height: 0.82;
  white-space: nowrap;
  user-select: none;
}

.ghost-outro {
  top: 5%;
  right: -2%;
  font-size: 360px;
}

.outro h2 {
  position: relative;
  z-index: 1;
  max-width: 1260px;
  margin: 0;
  font-size: clamp(72px, 8.2vw, 118px);
  font-weight: 800;
  line-height: 0.92;
}

.outro-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.outro a {
  width: fit-content;
  max-width: 100%;
}

.outro a + a {
  background: #f5f5f7;
  color: var(--text);
}

.video-modal[hidden] {
  display: none;
}

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

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

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(650px, 100%);
  padding: 42px;
  border-radius: 38px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
}

.modal-panel h2 {
  margin: 18px 0 0;
  font-size: 58px;
  line-height: 0.94;
}

.modal-panel p {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 24px;
  line-height: 1.2;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f5f5f7;
  color: var(--text);
}

.modal-close:focus-visible {
  outline-color: var(--accent);
  background: var(--white);
}

.modal-close svg {
  width: 20px;
  height: 20px;
}

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

.modal-actions a:last-child {
  background: #f5f5f7;
  color: var(--text);
}

.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  padding: 12px 18px 14px;
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  font-size: 16px;
  font-weight: 720;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-50%, 14px, 0);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translate3d(-50%, 0, 0);
}

@media (max-width: 720px) {
  .site-header {
    height: 72px;
    padding-top: 18px;
  }

  .site-header a {
    min-width: 116px;
    min-height: 38px;
    padding: 8px 18px 10px;
    font-size: 15px;
  }

  .hero {
    min-height: 60svh;
    padding: 0;
  }

  .hero-video {
    height: 60svh;
    object-position: center;
  }

  .work-head p,
  .clients p,
  .modal-panel p {
    font-size: 21px;
  }

  .work {
    padding-top: 82px;
    padding-bottom: 82px;
  }

  .work-head {
    margin-bottom: 34px;
  }

  .work-head h2,
  .clients h2,
  .outro h2 {
    font-size: 54px;
    line-height: 0.96;
  }

  .clients h2 {
    max-width: 100%;
    font-size: 46px;
  }

  .clients p {
    max-width: 100%;
  }

  .media-slot {
    width: 100%;
    min-height: 0;
    border-radius: 28px;
  }

  .carousel-controls {
    gap: 0;
    margin-top: 12px;
  }

  .carousel-dots {
    padding: 0 4px;
  }

  .clients {
    padding-top: 86px;
    padding-bottom: 96px;
    gap: 42px;
  }

  .clients p {
    margin-top: 22px;
  }

  .brand-marquee {
    min-height: 0;
    margin-top: 36px;
    padding-top: 22px;
    padding-bottom: 24px;
    gap: 16px;
  }

  .brand-set {
    gap: 44px;
    padding-right: 44px;
  }

  .brand-mark {
    flex: 0 0 auto;
    min-height: 42px;
  }

  .brand-mark img {
    max-width: 132px;
    max-height: 34px;
  }

  .outro {
    min-height: 68svh;
    padding-top: 92px;
    padding-bottom: 92px;
  }

  .ghost-outro {
    top: 8%;
    right: -48%;
    font-size: 190px;
  }

  .outro a {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    font-size: 14px;
    overflow-wrap: anywhere;
  }

  .outro-actions {
    display: grid;
  }

  .modal-panel {
    padding: 32px 22px 24px;
    border-radius: 30px;
  }

  .modal-panel h2 {
    font-size: 42px;
  }

  .modal-actions {
    display: grid;
  }

  .modal-actions a {
    width: 100%;
  }

  .copy-toast {
    bottom: 18px;
    max-width: calc(100% - 32px);
    white-space: nowrap;
  }
}
