/* Recent work — one-page case collection.
   Tokens, type and surfaces follow dlc-web-v3 (src/styles/tokens.css, design/first-pass/DESIGN.md). */

@font-face {
  font-family: "Gilroy";
  src: url("fonts/gilroy-regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Gilroy";
  src: url("fonts/gilroy-black.otf") format("opentype");
  font-weight: 900;
  font-display: swap;
}

:root {
  --red: #ed1d24;
  --ink: #111110;
  --paper: #fafaf7;
  --yellow: #f9e262;
  --muted: #b9b9b3;
  --rule: #42423e;
  --gutter: clamp(24px, 4.2vw, 72px);
  --radius: 20px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
  font-family: "Gilroy", sans-serif;
  font-synthesis: none;
  background: var(--ink);
  color: var(--paper);
}
@media (max-width: 767px) {
  :root {
    --gutter: 24px;
    --radius: 17px;
  }
}

* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 24px;
  scrollbar-color: var(--red) var(--ink);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--ink);
  overflow-x: clip;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
}
img,
video {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
p,
figure,
dl,
dd,
ul {
  margin: 0;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
h1,
h2,
h3,
strong {
  font-weight: 900;
}
::selection {
  background: var(--yellow);
  color: var(--ink);
}
:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 6px;
}
.wrap {
  width: min(100%, 1600px);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.skip {
  position: fixed;
  left: 24px;
  top: 16px;
  z-index: 10;
  padding: 16px;
  background: var(--yellow);
  color: #000;
  transform: translateY(-180%);
}
.skip:focus {
  transform: none;
}
.underline {
  border-bottom: 1px solid currentColor;
  padding-block: 6px;
}
.underline:hover {
  border-bottom-width: 2px;
}

/* ---------- Opening (red, black type: the site's corrected red-surface contrast) */

.opening {
  background: var(--red);
  color: #000;
  min-height: min(100svh, 980px);
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.top {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 104px;
}
.top .brand {
  margin-right: auto;
}
.top .brand img {
  width: 76px;
  height: 50px;
  filter: brightness(0);
}
.top a:not(.brand) {
  font-size: 16px;
}
.opening-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 40px;
  padding-block: 40px 56px;
}
.opening h1 {
  font-size: clamp(84px, 13.4vw, 220px);
  line-height: 0.86;
  letter-spacing: -0.04em;
}
.opening .eye {
  width: clamp(150px, 19vw, 300px);
  height: auto;
  margin-bottom: 0.6em;
  filter: brightness(0);
}
.opening-foot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: end;
  padding-bottom: 36px;
  font-size: 16px;
  line-height: 1.35;
}
.opening-foot p:nth-child(2) {
  justify-self: center;
  text-align: center;
}
.opening-foot p:last-child {
  justify-self: end;
  text-align: right;
}
.lede {
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1.25;
  max-width: 24ch;
}

/* ---------- Index posters */

.index {
  padding-block: clamp(72px, 9vw, 140px) clamp(56px, 6vw, 96px);
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.section-head h2 {
  font-size: clamp(56px, 7.5vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.section-head p {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.3;
  text-align: right;
  max-width: 22ch;
}
.posters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 28px);
}
.poster {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: #1d1d1b;
  isolation: isolate;
}
.poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 650ms var(--ease);
}
.poster::after {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(to top, rgb(0 0 0 / 0.78), rgb(0 0 0 / 0));
  z-index: 1;
}
.poster:hover img {
  transform: scale(1.04);
}
.poster-text {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: clamp(18px, 2vw, 28px);
  display: grid;
  gap: 6px;
}
.poster-num {
  position: absolute;
  top: clamp(16px, 1.6vw, 24px);
  left: clamp(18px, 2vw, 28px);
  z-index: 2;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 12px rgb(0 0 0 / 0.5);
}
.poster-text strong {
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.poster-text span {
  font-size: 14px;
  color: #e6e6e1;
}

/* ---------- Case */

.case {
  border-top: 1px solid var(--rule);
  padding-top: clamp(56px, 6vw, 96px);
}
.case-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 40px;
  align-items: end;
  margin-bottom: clamp(28px, 3vw, 44px);
}
.case-meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 14px;
  color: var(--muted);
}
.case-meta .num {
  color: var(--yellow);
  font-variant-numeric: tabular-nums;
}
.case-head h2 {
  font-size: clamp(52px, 7vw, 112px);
  line-height: 0.92;
  letter-spacing: -0.04em;
}
.case-head .client {
  display: block;
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 400;
  letter-spacing: 0;
  margin-bottom: 14px;
}
.case-head .tags {
  font-size: 14px;
  text-align: right;
  line-height: 1.5;
}

/* Film: poster first; the video loads only after the viewer asks for it */
.film {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}
.film > img,
.film > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.film > video {
  object-fit: contain;
  background: #000;
}
.film-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: end;
  padding: clamp(18px, 2.4vw, 36px);
  text-align: left;
  background: linear-gradient(to top, rgb(0 0 0 / 0.66), rgb(0 0 0 / 0) 55%);
}
.film-play-inner {
  display: flex;
  align-items: center;
  gap: 18px;
}
.film-play .ring {
  flex: none;
  display: grid;
  place-items: center;
  width: clamp(56px, 5.4vw, 80px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  transition: transform 300ms var(--ease);
}
.film-play:hover .ring {
  transform: scale(1.06);
}
.film-play .ring svg {
  width: 30%;
  margin-left: 6%;
}
.film-play strong {
  display: block;
  font-size: clamp(20px, 1.8vw, 28px);
  line-height: 1.1;
}
.film-play small {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: #e6e6e1;
}
.film-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgb(17 17 16 / 0.72);
  font-size: 14px;
  backdrop-filter: blur(6px);
}
.film-note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

.story {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 96px);
  padding-block: clamp(48px, 5.4vw, 88px);
}
.story h3 {
  font-size: 14px;
  font-weight: 400;
  color: var(--yellow);
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}
.story p,
.story li {
  font-size: clamp(18px, 1.45vw, 22px);
  line-height: 1.45;
}
.story p + p,
.story p + ul,
.story ul + p {
  margin-top: 1em;
}
.story .steps {
  display: grid;
  gap: 0.9em;
  margin-top: 1em;
}
.story .steps strong {
  font-weight: 900;
}
.story .pull {
  font-weight: 900;
  font-size: clamp(22px, 1.9vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* Impact: full-bleed client field, as in the homepage results bands */
.impact {
  background: var(--field, var(--paper));
  color: var(--on-field, var(--ink));
  padding-block: clamp(48px, 5.6vw, 92px);
}
.impact-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 3vw, 48px);
}
.impact-head h3 {
  font-size: clamp(28px, 2.6vw, 40px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.impact-head span {
  font-size: 14px;
}
.lead {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: 12px clamp(24px, 3vw, 56px);
  padding-bottom: clamp(28px, 3vw, 44px);
  border-bottom: 1px solid currentColor;
}
.lead .value {
  font-weight: 900;
  font-size: clamp(82px, 11vw, 176px);
  line-height: 0.82;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
.lead .label {
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.3;
  max-width: 30ch;
  padding-bottom: 0.3em;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  gap: 28px clamp(20px, 2.4vw, 40px);
  padding-top: clamp(24px, 2.6vw, 40px);
}
.metrics li {
  display: grid;
  align-content: start;
  gap: 10px;
}
.metrics .value {
  font-weight: 900;
  font-size: clamp(36px, 3.6vw, 58px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.metrics .label {
  font-size: 16px;
  line-height: 1.35;
}
.metrics-group + .metrics-group {
  margin-top: clamp(28px, 3vw, 44px);
}
.metrics-group > h4 {
  font-size: 14px;
  font-weight: 400;
  margin: 0;
  padding-top: clamp(20px, 2vw, 28px);
}
.impact-note {
  margin-top: clamp(28px, 3vw, 44px);
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.3;
  font-weight: 900;
}

.recognition {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 24px clamp(32px, 5vw, 96px);
  padding-block: clamp(40px, 4.4vw, 72px) clamp(64px, 7vw, 112px);
}
.recognition h3 {
  font-size: clamp(28px, 2.6vw, 40px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.recognition ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
}
.recognition li {
  font-size: 18px;
  line-height: 1.3;
  padding-block: 14px;
  border-bottom: 1px solid var(--rule);
}
.recognition li:first-child strong {
  color: var(--yellow);
}
.case-end {
  height: clamp(56px, 6vw, 96px);
}

/* ---------- Close (red, as on the site) */

.close {
  background: var(--red);
  color: #000;
  padding-block: clamp(80px, 10vw, 160px) 36px;
}
.close p {
  font-size: clamp(20px, 1.8vw, 28px);
  line-height: 1.25;
}
.close .talk {
  display: inline-block;
  margin-top: 20px;
  font-weight: 900;
  font-size: clamp(84px, 13vw, 210px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  border-bottom: clamp(4px, 0.5vw, 8px) solid currentColor;
}
.close .talk:hover {
  border-bottom-color: transparent;
}
.close-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  margin-top: clamp(64px, 8vw, 128px);
  font-size: 14px;
}
.close-foot img {
  width: 65px;
  height: 43px;
  filter: brightness(0);
  margin-right: auto;
}

/* ---------- Responsive */

@media (max-width: 1000px) {
  .posters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metrics {
    --cols: 2 !important;
  }
  .recognition ul {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 767px) {
  .top {
    min-height: 84px;
  }
  .top .brand img {
    width: 61px;
    height: 40px;
  }
  .opening {
    min-height: 0;
  }
  .opening-body {
    grid-template-columns: 1fr;
    padding-block: 56px 40px;
  }
  .opening h1 {
    font-size: clamp(64px, 19vw, 96px);
    line-height: 0.9;
  }
  .opening .eye {
    order: -1;
    width: 140px;
    margin-bottom: 0;
  }
  .opening-foot {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .opening-foot p:nth-child(2),
  .opening-foot p:last-child {
    justify-self: start;
    text-align: left;
  }
  .section-head {
    display: grid;
  }
  .section-head h2 {
    font-size: 64px;
  }
  .section-head p {
    text-align: left;
  }
  .posters {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .poster-text {
    padding: 14px;
  }
  .poster-text strong {
    font-size: 19px;
  }
  .poster-text span {
    font-size: 12px;
  }
  .poster-num {
    top: 12px;
    left: 14px;
    font-size: 12px;
  }
  .case-head {
    grid-template-columns: 1fr;
  }
  .case-head h2 {
    font-size: clamp(44px, 13vw, 64px);
  }
  .case-head .tags {
    text-align: left;
  }
  .film {
    margin-inline: calc(var(--gutter) * -1 + 8px);
  }
  .film-play-inner {
    gap: 14px;
  }
  .story {
    grid-template-columns: 1fr;
  }
  .lead {
    grid-template-columns: 1fr;
  }
  .lead .value {
    font-size: clamp(76px, 25vw, 112px);
  }
  .metrics {
    --cols: 1 !important;
    gap: 0;
    padding-top: 0;
  }
  .metrics li {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
    align-items: baseline;
    gap: 16px;
    padding-block: 18px;
    border-bottom: 1px solid color-mix(in srgb, currentColor 35%, transparent);
  }
  .metrics .value {
    font-size: 40px;
  }
  .recognition {
    grid-template-columns: 1fr;
  }
  .close .talk {
    font-size: clamp(64px, 19vw, 96px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .poster img,
  .film-play .ring {
    transition: none;
  }
  .poster:hover img {
    transform: none;
  }
}
