:root {
  --ink: #070707;
  --charcoal: #141414;
  --surface: #0d0e0c;
  --paper: #ecebe7;
  --muted: #a09f9a;
  --line: #343432;
  --oxide: #b93a46;
  --page: min(100% - 64px, 1440px);
  --gutter: clamp(18px, 3.2vw, 56px);
  --section: clamp(88px, 13vw, 190px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --type-body: clamp(1rem, .95rem + .18vw, 1.08rem);
  --type-meta: clamp(.82rem, .79rem + .1vw, .88rem);
  --type-label: .8rem;
  --leading-body: 1.58;
  --tracking-display: -.03em;
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: page-cut-out 220ms ease-in both;
}

::view-transition-new(root) {
  animation: page-cut-in 520ms var(--ease) both;
}

::view-transition-group(denoise-wordmark),
::view-transition-group(zixiu-project),
::view-transition-group(dukes-project) {
  animation-duration: 620ms;
  animation-timing-function: var(--ease);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: var(--ink);
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: var(--leading-body);
  letter-spacing: .002em;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  display: block;
  width: 100%;
}

img {
  background: var(--charcoal);
}

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

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--oxide);
  outline-offset: 4px;
}

::selection {
  background: var(--oxide);
  color: var(--paper);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  background: rgba(7, 7, 7, .96);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: var(--page);
  min-height: 68px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.wordmark {
  view-transition-name: denoise-wordmark;
  display: inline-flex;
  align-items: center;
}

.wordmark img {
  width: clamp(116px, 9.6vw, 154px);
  height: auto;
  background: transparent;
}

.site-nav ul {
  display: flex;
  gap: clamp(18px, 2.4vw, 40px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: .8rem;
  transition: color 220ms ease;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 420ms var(--ease);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--paper);
}

.section-shell,
.page-shell {
  width: var(--page);
  margin-inline: auto;
}

.home .site-header {
  position: absolute;
  width: 100%;
  background: transparent;
  border-bottom: 0;
}

.home .site-header::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: rgba(236, 235, 231, .25);
  content: "";
}

.home .site-nav a {
  color: rgba(255, 255, 255, .72);
}

.hero {
  min-height: 100svh;
}

.hero-frame {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: var(--charcoal);
  animation: frame-open 1.05s var(--ease) both;
}

.hero-frame::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 4, 4, .58) 0%, rgba(4, 4, 4, .12) 52%, rgba(4, 4, 4, .22) 100%);
  content: "";
}

.hero-video {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(var(--hero-scale, 1));
  transform-origin: center;
}

.hero-copy {
  position: absolute;
  z-index: 3;
  right: max(32px, calc((100vw - 1440px) / 2));
  bottom: clamp(56px, 8vw, 112px);
  left: max(32px, calc((100vw - 1440px) / 2));
  opacity: var(--hero-opacity, 1);
  transform: translateY(var(--hero-shift, 0));
}

.hero h1,
.page-title,
.statement h2,
.contact-title {
  margin: 0;
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: .98;
  text-wrap: balance;
}

.hero h1 {
  max-width: 10ch;
  font-size: clamp(3.6rem, 7.2vw, 6rem);
  line-height: .9;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .25);
}

.title-line {
  display: block;
  overflow: hidden;
  padding-bottom: .05em;
}

.title-line > span {
  display: block;
  animation: title-cut-in 920ms var(--ease) both;
  animation-delay: 260ms;
}

.title-line + .title-line > span {
  animation-delay: 350ms;
}

.hero-kicker {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, .8);
  font-size: .76rem;
  animation: quiet-arrival 680ms var(--ease) 520ms both;
}

.hero-details {
  width: min(100%, 660px);
  margin-top: clamp(32px, 5vw, 62px);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  border-top: 1px solid rgba(255, 255, 255, .38);
  color: rgba(255, 255, 255, .78);
  font-size: .78rem;
  animation: detail-line-in 760ms var(--ease) 600ms both;
}

.hero-details p {
  margin: 0;
}

.hero-details a {
  align-self: end;
  color: var(--paper);
}

.hero-credit {
  position: absolute;
  z-index: 3;
  right: max(32px, calc((100vw - 1440px) / 2));
  bottom: clamp(56px, 8vw, 112px);
  color: rgba(255, 255, 255, .7);
  font-size: .72rem;
  writing-mode: vertical-rl;
  transform: translateY(-2px) rotate(180deg);
  animation: quiet-arrival 680ms var(--ease) 700ms both;
}

.scroll-progress {
  position: fixed;
  z-index: 80;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: rgba(236, 235, 231, .7);
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

.transition-zixiu {
  view-transition-name: zixiu-project;
}

.transition-dukes {
  view-transition-name: dukes-project;
}

.motion-enabled .motion-copy {
  opacity: 0;
  clip-path: inset(0 0 26% 0);
  transform: translateY(24px);
  transition: opacity 620ms var(--ease) var(--reveal-delay, 0ms),
    clip-path 760ms var(--ease) var(--reveal-delay, 0ms),
    transform 760ms var(--ease) var(--reveal-delay, 0ms);
}

.motion-enabled .motion-copy.is-visible {
  opacity: 1;
  clip-path: inset(0);
  transform: translateY(0);
}

.motion-enabled .motion-frame {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 920ms var(--ease);
}

.motion-enabled .motion-frame.is-visible {
  clip-path: inset(0);
}

.motion-enabled .motion-frame img,
.motion-enabled .motion-frame video {
  transform: scale(1.055);
  transition: transform 1.25s var(--ease), opacity 480ms var(--ease);
}

.motion-enabled .motion-frame.is-visible img,
.motion-enabled .motion-frame.is-visible video {
  transform: scale(1);
}

.statement {
  min-height: 62svh;
  padding-block: clamp(110px, 14vw, 180px);
  display: grid;
  grid-template-columns: 4fr 8fr;
  align-items: start;
  gap: var(--gutter);
  border-bottom: 1px solid var(--line);
}

.statement-label,
.section-number,
.project-index {
  color: var(--muted);
  font-size: .78rem;
  font-variant-numeric: tabular-nums;
}

.statement-label {
  margin: 10px 0 0;
}

.section-number::after,
.project-index::after {
  content: "";
  display: inline-block;
  width: 34px;
  height: 1px;
  margin-left: 16px;
  vertical-align: middle;
  background: var(--line);
}

.statement-copy {
  max-width: 820px;
}

.statement h2 {
  font-size: clamp(2.8rem, 5vw, 5.25rem);
  line-height: .95;
}

.statement p {
  max-width: 52ch;
  margin: 38px 0 0;
  color: var(--muted);
}

.sequence {
  padding-block: clamp(110px, 14vw, 190px);
}

.sequence-heading {
  margin: 0 0 clamp(78px, 10vw, 140px);
  padding-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  border-bottom: 1px solid var(--line);
}

.sequence-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 3.4vw, 3.4rem);
  font-weight: 400;
  letter-spacing: -.03em;
}

.sequence-heading a {
  color: var(--muted);
  font-size: .78rem;
}

.sequence-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
  align-items: start;
}

.sequence-row + .sequence-row {
  margin-top: clamp(110px, 16vw, 230px);
}

.sequence-meta {
  grid-column: 1 / span 3;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.sequence-meta h3 {
  max-width: 15ch;
  margin: 24px 0 12px;
  font-size: clamp(1.25rem, 1.8vw, 1.8rem);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.08;
}

.sequence-meta p {
  margin: 0;
  color: var(--muted);
  font-size: .83rem;
}

.sequence-media {
  position: relative;
  grid-column: 5 / -1;
  min-width: 0;
  overflow: hidden;
  background: var(--charcoal);
}

.sequence-media img {
  height: min(72svh, 820px);
  object-fit: cover;
  transform-origin: center;
  transition: transform 1.1s var(--ease), opacity 420ms ease;
}

[data-project-media]::after {
  position: absolute;
  z-index: 4;
  top: var(--pointer-y, 50%);
  left: var(--pointer-x, 50%);
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  content: "View project";
  font-size: .7rem;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(.72);
  transition: opacity 180ms ease, transform 360ms var(--ease);
}

[data-project-media].is-hovering::after,
[data-project-media]:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.motion-enabled .motion-frame.is-visible[data-project-media].is-hovering img,
[data-project-media].is-hovering img {
  transform: scale(1.035) translate(var(--pan-x, 0), var(--pan-y, 0));
}

.sequence-row--portrait .sequence-media {
  grid-column: 5 / span 7;
}

.sequence-row--portrait .sequence-media img {
  height: min(78svh, 900px);
  object-position: center 26%;
}

.sequence-row--scripted .sequence-meta {
  grid-column: 10 / -1;
  grid-row: 1;
}

.sequence-row--scripted .sequence-media {
  grid-column: 1 / span 8;
  grid-row: 1;
}

.sequence-row--scripted .sequence-media img {
  object-position: center 46%;
}

.sequence-row--bts .sequence-meta {
  grid-column: 1 / span 3;
}

.sequence-row--bts .sequence-media {
  grid-column: 4 / -1;
}

.sequence-row--bts .sequence-media img {
  filter: grayscale(1);
}

.capability-strip {
  padding-block: var(--section);
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: var(--gutter);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.capability-strip h2 {
  max-width: 8ch;
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 400;
  letter-spacing: -.03em;
  line-height: .98;
}

.capability-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.capability-grid article {
  padding-block: 22px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 2fr;
  gap: 32px;
  border-top: 1px solid var(--line);
}

.capability-grid article:last-child {
  border-bottom: 1px solid var(--line);
}

.capability-grid h3 {
  margin: 0;
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  font-weight: 400;
  letter-spacing: -.02em;
}

.capability-grid p {
  max-width: 38ch;
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
}

.closing-cta {
  padding-block: clamp(100px, 13vw, 180px);
}

.closing-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: end;
}

.closing-link span:first-child {
  max-width: 14ch;
  font-size: clamp(2.6rem, 5.5vw, 5.8rem);
  line-height: .98;
  letter-spacing: -.04em;
}

.arrow {
  color: var(--oxide);
  font-size: clamp(2.5rem, 6vw, 6rem);
  font-weight: 200;
  line-height: .7;
  transition: transform 350ms var(--ease);
}

.closing-link:hover .arrow,
.project-link:hover .arrow-inline {
  transform: translateX(12px);
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  width: var(--page);
  margin-inline: auto;
  padding-block: 36px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr auto auto;
  gap: 30px;
  color: var(--muted);
  font-size: .78rem;
}

.footer-inner p {
  margin: 0;
}

.footer-legal {
  display: flex;
  gap: 18px;
}

.footer-inner a:hover {
  color: var(--paper);
}

.page-intro {
  min-height: 44svh;
  padding-block: clamp(76px, 9vw, 126px) clamp(56px, 7vw, 96px);
  display: grid;
  grid-template-columns: 2fr 7fr 3fr;
  align-items: end;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  grid-column: 2;
  max-width: 10ch;
  font-size: clamp(3.8rem, 7vw, 6rem);
}

.page-intro p {
  grid-column: 3;
  max-width: 34ch;
  margin: 0;
  color: var(--muted);
}

.legal-page {
  padding-bottom: clamp(96px, 12vw, 170px);
}

.legal-intro {
  min-height: 36svh;
}

.legal-copy {
  display: grid;
  grid-template-columns: 2fr 7fr 3fr;
  gap: 28px;
  padding-top: clamp(64px, 8vw, 108px);
}

.legal-copy-inner {
  grid-column: 2;
  max-width: 72ch;
}

.legal-copy section + section {
  margin-top: clamp(48px, 6vw, 76px);
}

.legal-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.16;
}

.legal-copy p,
.legal-copy li {
  color: #c8c7c2;
  font-size: var(--type-body);
}

.legal-copy p {
  margin: 0 0 18px;
}

.legal-copy ul {
  margin: 0;
  padding-left: 1.2em;
}

.legal-copy li + li {
  margin-top: 10px;
}

.legal-copy a {
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
}

.legal-copy a:hover {
  text-decoration-color: var(--oxide);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding-block: 30px;
  border-bottom: 1px solid var(--line);
}

.filter-button {
  min-height: 44px;
  padding: 10px 0 5px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: .86rem;
}

.filter-button:hover,
.filter-button[aria-pressed="true"] {
  border-color: var(--oxide);
  color: var(--paper);
}

.work-list {
  padding-block: clamp(60px, 8vw, 120px);
}

.work-feature {
  display: grid;
  grid-template-columns: 7.5fr 4.5fr;
  min-height: 66svh;
}

.work-feature + .work-feature {
  margin-top: clamp(70px, 10vw, 150px);
}

.work-feature-media {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: var(--charcoal);
}

.work-feature-media img {
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease), opacity 420ms ease;
}

.project-preview {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.025);
  transition: opacity 480ms ease, transform 1.1s var(--ease);
}

[data-preview].is-hovering .project-preview {
  opacity: 1;
  transform: scale(1);
}

[data-preview].is-hovering > img {
  opacity: 0;
}

.work-feature-copy {
  padding: 20px 0 20px clamp(32px, 5vw, 76px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.work-feature-copy h2 {
  max-width: 12ch;
  margin: 30px 0 14px;
  font-size: clamp(2rem, 3.5vw, 3.9rem);
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: .98;
}

.work-feature-copy p {
  margin: 0;
  color: var(--muted);
}

.project-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: .86rem;
}

.arrow-inline {
  color: var(--oxide);
  font-size: 1.7rem;
  transition: transform 350ms var(--ease);
}

.archive-heading {
  margin: var(--section) 0 44px;
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -.035em;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(42px, 5vw, 76px) clamp(14px, 2vw, 28px);
}

.project-card[hidden],
.work-feature[hidden] {
  display: none;
}

.project-card img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  filter: saturate(.82);
  transition: filter 300ms ease, transform 700ms var(--ease);
}

.project-card:hover img {
  filter: saturate(1);
  transform: translateY(-5px);
}

.project-card h3 {
  margin: 16px 0 5px;
  font-size: 1rem;
  font-weight: 400;
}

.project-card p {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
}

.about-lead {
  padding-block: var(--section);
  display: grid;
  grid-template-columns: 2fr 6fr 4fr;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}

.about-lead h2 {
  grid-column: 2;
  max-width: 13ch;
  margin: 0;
  font-size: clamp(2.5rem, 4.7vw, 5rem);
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: 1;
}

.about-lead-copy {
  grid-column: 3;
}

.about-lead-copy p {
  max-width: 42ch;
  margin: 0 0 22px;
  color: var(--muted);
}

.about-visual {
  margin: 0;
  padding-block: var(--gutter) clamp(84px, 11vw, 150px);
  border-bottom: 1px solid var(--line);
}

.about-visual img {
  height: min(76svh, 900px);
  object-fit: cover;
}

.proof-grid {
  padding-block: var(--section);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 6vw, 96px);
  border-top: 1px solid var(--line);
}

.proof-grid article {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.proof-grid h3 {
  margin: 0 0 18px;
  font-size: 1.5rem;
  font-weight: 400;
}

.proof-grid p {
  margin: 0;
  color: var(--muted);
}

.contact-layout {
  min-height: calc(100svh - 75px);
  display: grid;
  grid-template-columns: 5fr 7fr;
}

.contact-intro {
  padding: clamp(72px, 10vw, 150px) clamp(28px, 6vw, 96px) 70px 0;
  border-right: 1px solid var(--line);
}

.contact-title {
  max-width: 9ch;
  font-size: clamp(3.5rem, 6vw, 5.8rem);
}

.contact-intro > p {
  max-width: 40ch;
  margin: 34px 0 70px;
  color: var(--muted);
}

.contact-details {
  display: grid;
  gap: 18px;
  font-size: .87rem;
}

.contact-details p {
  margin: 0;
}

.contact-details span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
}

.enquiry-form {
  padding: clamp(72px, 10vw, 150px) 0 70px clamp(28px, 6vw, 96px);
}

.enquiry-form h2 {
  margin: 0 0 50px;
  font-size: 1rem;
  font-weight: 400;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px 28px;
}

.field {
  display: grid;
  gap: 10px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--muted);
  font-size: .78rem;
  transition: color 180ms ease, transform 260ms var(--ease);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #777671;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--paper);
  outline: 0;
}

.field:focus-within label {
  color: var(--paper);
  transform: translateY(-3px);
}

.form-action {
  margin-top: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.submit-button {
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--oxide);
  background: none;
  cursor: pointer;
}

.submit-button:hover {
  color: var(--oxide);
}

.form-note,
.form-status {
  max-width: 38ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: .78rem;
}

.form-status {
  min-height: 1.2em;
  color: var(--paper);
}

.case-hero {
  padding-block: clamp(70px, 10vw, 150px) clamp(52px, 7vw, 100px);
  display: grid;
  grid-template-columns: 2fr 7fr 3fr;
  gap: 28px;
  align-items: end;
}

.case-hero h1 {
  grid-column: 2;
  max-width: 11ch;
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.8rem);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .95;
}

.case-meta {
  grid-column: 3;
  color: var(--muted);
  font-size: .86rem;
}

.case-meta p {
  margin: 0 0 8px;
}

.case-film {
  padding-bottom: var(--section);
}

.case-film video,
.case-film img {
  max-height: 86svh;
  object-fit: cover;
  background: var(--charcoal);
}

.case-gallery {
  padding-block: var(--section);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
  border-top: 1px solid var(--line);
}

.case-gallery figure {
  margin: 0;
}

.case-gallery figure:nth-child(3n + 1) {
  grid-column: 1 / span 7;
}

.case-gallery figure:nth-child(3n + 2) {
  grid-column: 8 / span 5;
  margin-top: 20%;
}

.case-gallery figure:nth-child(3n) {
  grid-column: 3 / span 8;
}

.case-gallery img {
  max-height: 90svh;
  object-fit: cover;
}

@supports (animation-timeline: view()) {
  .case-gallery figure img {
    animation: gallery-drift linear both;
    animation-range: entry 5% exit 95%;
    animation-timeline: view();
  }
}

.case-gallery figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: .75rem;
}

/* A restrained editorial type system shared across every page. */
.hero h1,
.page-title,
.statement h2,
.contact-title,
.about-lead h2,
.case-hero h1,
.closing-link span:first-child {
  letter-spacing: var(--tracking-display);
}

.statement h2 {
  font-size: clamp(2.75rem, 4.6vw, 4.8rem);
  line-height: .98;
}

.page-title {
  font-size: clamp(3.6rem, 6.5vw, 5.5rem);
  line-height: .94;
}

.contact-title {
  font-size: clamp(3.4rem, 5.4vw, 5rem);
  line-height: .94;
}

.about-lead h2 {
  font-size: clamp(2.5rem, 4.3vw, 4.5rem);
  line-height: 1;
}

.case-hero h1 {
  font-size: clamp(3rem, 5.5vw, 5.2rem);
  line-height: .95;
  letter-spacing: var(--tracking-display);
}

.closing-link span:first-child {
  font-size: clamp(2.6rem, 5vw, 5.25rem);
  line-height: .96;
}

.sequence-heading h2,
.archive-heading {
  letter-spacing: -.025em;
  line-height: 1;
}

.work-feature-copy h2 {
  letter-spacing: -.03em;
  line-height: 1;
}

.statement p,
.page-intro > p,
.capability-grid p,
.about-lead-copy p,
.proof-grid p,
.contact-intro > p {
  font-size: var(--type-body);
  line-height: var(--leading-body);
  letter-spacing: .005em;
}

.statement p {
  max-width: 58ch;
}

.sequence-meta h3 {
  font-size: clamp(1.35rem, 1.7vw, 1.65rem);
  line-height: 1.12;
}

.capability-grid h3 {
  font-size: clamp(1.08rem, 1.35vw, 1.25rem);
  line-height: 1.25;
}

.proof-grid h3 {
  font-size: clamp(1.3rem, 1.7vw, 1.55rem);
  line-height: 1.2;
}

.project-card h3 {
  font-size: 1.05rem;
  line-height: 1.25;
}

.enquiry-form h2 {
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.statement-label,
.section-number,
.project-index,
.hero-kicker,
.hero-details,
.sequence-heading a,
.sequence-meta p,
.filter-button,
.project-link,
.project-card p,
.case-meta,
.case-gallery figcaption,
.site-nav a,
.footer-inner,
.contact-details,
.form-note,
.form-status {
  font-size: var(--type-meta);
  line-height: 1.5;
  letter-spacing: .01em;
}

.hero-credit {
  font-size: .75rem;
  letter-spacing: .015em;
}

.field label {
  font-size: var(--type-label);
  line-height: 1.4;
  letter-spacing: .01em;
}

.field input,
.field select,
.field textarea {
  font-size: 1rem;
  line-height: 1.5;
}

.contact-details {
  line-height: 1.55;
}

.contact-details span {
  letter-spacing: .015em;
}

.sequence-heading h2,
.sequence-meta h3,
.capability-grid h3,
.work-feature-copy h2,
.project-card h3,
.archive-heading,
.proof-grid h3,
.enquiry-form h2 {
  text-wrap: balance;
}

@keyframes frame-open {
  from {
    clip-path: inset(0 0 100% 0);
  }
  to {
    clip-path: inset(0);
  }
}

@keyframes title-cut-in {
  from {
    transform: translateY(112%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes quiet-arrival {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes detail-line-in {
  from {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
  }
  to {
    opacity: 1;
    clip-path: inset(0);
  }
}

@keyframes page-cut-out {
  to {
    opacity: 0;
    transform: scale(.992);
  }
}

@keyframes page-cut-in {
  from {
    opacity: 0;
    clip-path: inset(0 0 8% 0);
  }
  to {
    opacity: 1;
    clip-path: inset(0);
  }
}

@keyframes gallery-drift {
  from {
    transform: scale(1.025) translateY(-.75%);
  }
  to {
    transform: scale(1.025) translateY(.75%);
  }
}

@media (max-width: 900px) {
  :root {
    --page: min(100% - 32px, 1540px);
  }

  .frame-index {
    grid-template-columns: 54px 1fr;
  }

  .frame-index span:last-child {
    display: none;
  }

  .statement,
  .sequence-row,
  .capability-strip,
  .page-intro,
  .about-lead,
  .contact-layout,
  .case-hero {
    grid-template-columns: 1fr;
  }

  .section-number {
    margin-bottom: 48px;
  }

  .sequence-heading {
    margin-left: 0;
  }

  .sequence-row .sequence-meta {
    position: static;
    grid-column: 1;
    grid-row: auto;
    padding: 22px 0 28px;
  }

  .sequence-row .sequence-media {
    grid-column: 1;
    grid-row: auto;
  }

  .sequence-meta h3 {
    max-width: none;
    margin-top: 16px;
  }

  .sequence-row--portrait .sequence-media {
    margin-left: 0;
  }

  .capability-strip h2 {
    margin-bottom: 58px;
  }

  .capability-grid,
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .page-title,
  .page-intro p,
  .about-lead h2,
  .about-lead-copy,
  .case-hero h1,
  .case-meta {
    grid-column: 1;
  }

  .page-intro p,
  .case-meta {
    margin-top: 24px;
  }

  .work-feature {
    grid-template-columns: 1fr;
  }

  .work-feature-media {
    min-height: 58svh;
  }

  .work-feature-copy {
    min-height: 340px;
    padding-left: 0;
  }

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

  [data-project-media]::after {
    display: none;
  }

  .contact-intro {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .enquiry-form {
    padding-left: 0;
  }

  .case-gallery {
    grid-template-columns: 1fr;
  }

  .case-gallery figure:nth-child(n) {
    grid-column: 1;
    margin-top: 0;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .legal-copy {
    grid-template-columns: 1fr;
  }

  .legal-copy-inner {
    grid-column: 1;
  }
}

@media (max-width: 600px) {
  .header-inner {
    min-height: 64px;
    gap: 16px;
  }

  .site-nav ul {
    gap: 14px;
  }

  .site-nav a {
    font-size: .78rem;
  }

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

  .hero-frame {
    min-height: 100svh;
  }

  .hero-frame::after {
    background: linear-gradient(180deg, rgba(4, 4, 4, .08) 30%, rgba(4, 4, 4, .78) 100%);
  }

  .hero-video {
    object-position: center;
  }

  .hero-copy {
    right: 16px;
    bottom: 34px;
    left: 16px;
    width: auto;
    padding: 0;
    background: none;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 15vw, 4.4rem);
    line-height: .9;
  }

  .hero-kicker {
    margin: 0 0 18px;
  }

  .hero-details {
    margin-top: 30px;
    padding-top: 14px;
    gap: 18px;
  }

  .hero-credit {
    display: none;
  }

  .statement {
    min-height: 0;
    padding-block: 96px;
  }

  .statement h2 {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .sequence-media img,
  .sequence-row--portrait .sequence-media img {
    height: 58svh;
  }

  .sequence-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .closing-link span:first-child {
    font-size: clamp(2.4rem, 12vw, 4.2rem);
  }

  .page-title,
  .contact-title,
  .case-hero h1 {
    font-size: clamp(3.2rem, 16vw, 5rem);
  }

  .project-grid {
    grid-template-columns: 1fr 1fr;
    gap: 34px 14px;
  }

  .capability-grid article {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .project-card h3 {
    font-size: .95rem;
    line-height: 1.25;
  }

  .work-feature-media {
    min-height: 62svh;
  }

  .about-visual img {
    height: 64svh;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .field--full {
    grid-column: 1;
  }

  .form-action {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-inner p:last-child {
    grid-column: 1;
  }
}

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

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

  ::view-transition-old(root),
  ::view-transition-new(root),
  ::view-transition-group(denoise-wordmark),
  ::view-transition-group(zixiu-project),
  ::view-transition-group(dukes-project) {
    animation-duration: .01ms !important;
  }

  .hero-frame,
  .title-line > span,
  .hero-kicker,
  .hero-details,
  .hero-credit,
  .case-gallery figure img {
    animation: none !important;
  }

  .hero-video,
  .hero-copy {
    opacity: 1 !important;
    transform: none !important;
  }

  .scroll-progress,
  [data-project-media]::after {
    display: none !important;
  }
}
