/* ==========================================================================
   M-Type Digital - static site styles
   Light theme: black on white. Original Framer site was white on black.
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subsets) ---------- */
@font-face {
  font-family: "Manometer Sans";
  src: url("../assets/fonts/ManometerSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../assets/fonts/Satoshi-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../assets/fonts/Satoshi-LightItalic.woff2") format("woff2");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../assets/fonts/Satoshi-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../assets/fonts/Satoshi-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../assets/fonts/Satoshi-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../assets/fonts/Satoshi-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("../assets/fonts/GeneralSans-LightItalic.woff2") format("woff2");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("../assets/fonts/GeneralSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("../assets/fonts/GeneralSans-Semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
/* Editorial display face for headlines (Google Fonts, OFL-licensed, self-hosted) */
@font-face {
  font-family: "Instrument Serif";
  src: url("../assets/fonts/InstrumentSerif-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../assets/fonts/InstrumentSerif-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --ink: #0b0b0b;
  --ink-soft: #2e2e2e;
  --muted: #666666;
  --faint: #757575;
  --line: rgba(11, 11, 11, 0.16);
  --line-soft: rgba(11, 11, 11, 0.08);
  --surface: #f3f1ed;
  --surface-2: #e8e4de;
  --accent: #0b0b0b;
  --accent-ink: #ffffff;
  --max: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --header-h: 77px;
  --radius: 2px;
  --radius-sm: 2px;
  --font-body: "Satoshi", "Helvetica Neue", Arial, sans-serif;
  --font-display: "General Sans", "Satoshi", "Helvetica Neue", Arial, sans-serif;
  --font-logo: "Manometer Sans", "General Sans", "Satoshi", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,
video,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea {
  font: inherit;
  color: inherit;
}
h1,
h2,
h3,
h4,
p,
figure,
blockquote {
  margin: 0;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
::selection {
  background: var(--ink);
  color: var(--bg);
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* ---------- Helpers ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
section[id] {
  scroll-margin-top: 88px;
}
.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;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: var(--accent-ink);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 16px;
}
.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}
.eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover {
  background: transparent;
  color: var(--ink);
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(1px);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--accent-ink);
}
.btn__arrow {
  transition: transform 0.25s var(--ease);
}
.btn:hover .btn__arrow {
  transform: translateX(3px);
}
.btn--small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 11px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}
.logo {
  font-family: var(--font-logo);
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}
.logo:hover {
  opacity: 0.7;
}
.logo__dash {
  display: inline-block;
  margin: 0 0.055em;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  padding: 6px 0;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transition: right 0.3s var(--ease);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  right: 0;
}
.nav-meta {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-left: 28px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.02em;
}
.nav-meta span:last-child {
  color: var(--faint);
}
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-toggle span::before {
  top: -5px;
}
.menu-toggle span::after {
  top: 5px;
}
.menu-toggle[aria-expanded="true"] span {
  background: transparent;
}
.menu-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  display: flex;
  overflow: hidden;
  min-height: calc(100svh - var(--header-h));
}
.hero > .container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
  padding: clamp(28px, 3.2vw, 48px) 0 clamp(28px, 3.2vw, 40px);
}
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--ink);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.6vw, 62px);
  font-style: italic;
  font-weight: 300;
  line-height: 1.03;
  letter-spacing: -0.03em;
  max-width: 15ch;
}
.hero-title em {
  font-style: italic;
}
.hero-side {
  text-align: right;
  max-width: 300px;
  padding-top: 14px;
  border-top: 1px solid var(--ink);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  text-wrap: balance;
}
.hero-side__label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero-main {
  display: grid;
  gap: 26px;
  justify-items: start;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.wordmark {
  font-family: var(--font-logo);
  font-size: clamp(72px, 20.6vw, 300px);
  line-height: 0.78;
  letter-spacing: -0.066em;
  text-align: center;
  color: var(--ink);
  white-space: nowrap;
  border-top: 1px solid var(--line);
  padding: clamp(18px, 2.4vw, 28px) 0 clamp(24px, 3.2vw, 40px);
  user-select: none;
}

/* ---------- Section shell ---------- */
.section {
  padding: clamp(56px, 9vw, 128px) 0;
}
.section--tight {
  padding: clamp(40px, 6vw, 84px) 0;
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  align-items: end;
  gap: clamp(24px, 4vw, 56px);
  padding-bottom: clamp(16px, 2vw, 22px);
  border-bottom: 1px solid var(--ink);
  margin-bottom: clamp(32px, 4.4vw, 60px);
}
.section-head h2 {
  font-family: var(--font-body);
  font-size: clamp(34px, 4.6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.98;
}
.section-head p {
  justify-self: end;
  max-width: 38ch;
  color: var(--muted);
  font-size: 14px;
  text-align: right;
}

/* ---------- Poster specialization ---------- */
.specialty {
  border-top: 1px solid var(--line);
  padding: clamp(44px, 7vw, 96px) 0 clamp(32px, 4.6vw, 56px);
}
.specialty__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}
.specialty__title {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: clamp(68px, 13.5vw, 182px);
  font-style: italic;
  font-weight: 300;
  line-height: 0.86;
  letter-spacing: -0.055em;
}
.specialty__body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 64px);
  align-items: start;
  margin-top: clamp(22px, 3.4vw, 44px);
}
.specialty__lead {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 400;
  line-height: 1.26;
  letter-spacing: -0.015em;
}
.specialty__copy {
  max-width: 46ch;
  font-size: 15px;
  color: var(--muted);
}
.specialty__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 40px);
  margin-top: clamp(30px, 4.4vw, 56px);
  padding-top: clamp(18px, 2.4vw, 26px);
  border-top: 1px solid var(--line);
}
.specialty__facts dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.specialty__facts dd {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--ink-soft);
}

/* ---------- Poster carousel ---------- */
.posters-section {
  border-top: 1px solid var(--line);
}
.posters-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.carousel {
  min-width: 0;
}
.carousel__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  padding-block: clamp(10px, 1.8vw, 18px);
}
.carousel__viewport::-webkit-scrollbar {
  display: none;
}
.carousel__viewport:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}
.carousel__track {
  display: flex;
  gap: clamp(16px, 2.4vw, 30px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.carousel__slide {
  flex: 0 0 100%;
  display: grid;
  place-items: center;
  scroll-snap-align: center;
}
.carousel__poster {
  display: grid;
  place-items: center;
  width: min(100%, 500px);
  aspect-ratio: 8 / 11;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  background: #ffffff;
  cursor: zoom-in;
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
  transition: transform 0.6s var(--ease), border-color 0.4s var(--ease);
}
.carousel__poster.is-tilting {
  transition-duration: 0.18s, 0.4s;
}
.carousel__poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.carousel__poster--matted {
  padding: clamp(8px, 1.4vw, 16px);
}
.carousel__poster:hover {
  --lift: -4px;
  border-color: var(--ink);
}
.carousel__poster:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 5px;
}
.carousel__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(18px, 2.4vw, 28px);
}
.carousel__arrow {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.carousel__arrow:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.carousel__arrow:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.carousel__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.carousel__dot {
  position: relative;
  width: 34px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.carousel__dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--line);
  transform: translateY(-50%);
  transition: background 0.25s var(--ease);
}
.carousel__dot.is-active::before {
  background: var(--ink);
}
.carousel__dot:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.carousel-detail {
  border-top: 1px solid var(--ink);
  padding-top: clamp(20px, 2.4vw, 28px);
  min-height: 380px;
}
.carousel-detail__index {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--faint);
}
.carousel-detail h3 {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 50px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.02;
}
.carousel-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-top: 16px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.carousel-detail__desc {
  max-width: 46ch;
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.62;
  color: var(--ink-soft);
}
.carousel-detail__tags {
  margin-top: 22px;
}

/* ---------- Poster lightbox ---------- */
body.is-locked {
  overflow: hidden;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(8px, 1.6vw, 18px);
  padding: clamp(16px, 3vw, 34px);
  background: rgba(8, 8, 8, 0.97);
  color: #ffffff;
}
.lightbox[hidden] {
  display: none;
}
.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.lightbox__count {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.66);
}
.lightbox__close {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: var(--radius-sm);
  background: transparent;
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.lightbox__close:hover {
  background: #ffffff;
  color: #0b0b0b;
}
.lightbox__close:focus-visible,
.lightbox__nav:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}
.lightbox__stage {
  position: relative;
  min-height: 0;
}
.lightbox__stage img {
  position: absolute;
  inset: 0;
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.55));
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: var(--radius-sm);
  background: rgba(8, 8, 8, 0.5);
  color: #ffffff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.lightbox__nav:hover {
  background: #ffffff;
  color: #0b0b0b;
}
.lightbox__nav--prev {
  left: clamp(4px, 1.4vw, 18px);
}
.lightbox__nav--next {
  right: clamp(4px, 1.4vw, 18px);
}
.lightbox__caption {
  text-align: center;
}
.lightbox__caption h2 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.lightbox__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}

/* ---------- Misc work ---------- */
.misc {
  border-top: 1px solid var(--line);
}
.misc .section-head h2 {
  font-family: var(--font-logo);
  font-size: clamp(44px, 14vw, 136px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.8;
}
#services-title {
  font-family: var(--font-logo);
  font-weight: 400;
  letter-spacing: 0;
}
.misc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
}
.misc-card {
  position: relative;
  display: block;
  overflow: hidden;
}
.misc-card__media {
  display: block;
  overflow: hidden;
}
.misc-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.misc-card:hover .misc-card__media img {
  transform: scale(1.03);
}
/* An odd card out on the two-column wall sits centred under the last pair. */
@media (min-width: 701px) {
  .misc-grid > .misc-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - clamp(16px, 2.4vw, 28px) / 2);
  }
}
@media (min-width: 1441px) {
  .misc-grid > .misc-card:last-child:nth-child(odd) {
    width: calc(50% - 14 * var(--u));
  }
}
/* Sliding preview for cards that open a project (built by main.js). */
.misc-card__media {
  position: relative;
}
.misc-card__track {
  display: flex;
  transition: transform 0.75s var(--ease);
  will-change: transform;
}
.misc-card__track img {
  flex: 0 0 100%;
  min-width: 0;
}
.misc-card[data-slides]:hover .misc-card__media img {
  transform: none;
}
.misc-card__bars {
  position: absolute;
  top: clamp(10px, 1.2vw, 16px);
  left: clamp(10px, 1.2vw, 16px);
  right: clamp(10px, 1.2vw, 16px);
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.misc-card__bars i {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 0.5px rgba(11, 11, 11, 0.25);
}
.misc-card__bars i.is-on {
  background: #ffffff;
}
.misc-card.is-playing .misc-card__bars {
  opacity: 1;
}
.misc-card:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 6px;
}
.misc-card__caption {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: clamp(16px, 2.2vw, 22px);
  color: #fff;
  background: var(--ink);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
  pointer-events: none;
}
.misc-card:hover .misc-card__caption,
.misc-card:focus-visible .misc-card__caption {
  transform: none;
}
@media (hover: none) {
  .misc-card__caption {
    transform: none;
  }
}
.misc-card__title {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.misc-card__tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}
.misc-card__credit {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.94);
}

/* ---------- Tags ---------- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tags li {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

/* ---------- Services ---------- */
.services {
  border-top: 1px solid var(--line);
}
.service {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 48px minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: clamp(16px, 3vw, 40px);
  align-items: start;
  padding: clamp(22px, 3vw, 30px) 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.35s var(--ease);
}
/* Ink rises from the bottom rule and bleeds a little into the gutter. */
.service::before {
  content: "";
  position: absolute;
  inset: 0 calc(var(--gutter) * -0.5);
  z-index: -1;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform 0.45s var(--ease);
}
.service:hover {
  color: var(--bg);
}
.service:hover::before {
  transform: scaleY(1);
}
.service__name {
  transition: transform 0.45s var(--ease);
}
.service:hover .service__name {
  transform: translateX(10px);
}
.service__num {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--faint);
  padding-top: 6px;
  transition: color 0.25s var(--ease);
}
.service__name {
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1.25;
}
.service__desc {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.4vw, 20px);
  font-style: italic;
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
  max-width: 56ch;
  transition: color 0.25s var(--ease);
}
.service:hover .service__num,
.service:hover .service__desc {
  color: rgba(255, 255, 255, 0.68);
}

/* ---------- Process ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}
.process li {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.process__num {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
.process h3 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.3;
}
.process p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* ---------- Contact ---------- */
.contact-band {
  background: var(--ink);
  color: var(--bg);
  border-radius: 0;
  padding: clamp(28px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.contact-band h2 {
  font-family: var(--font-body);
  font-size: clamp(44px, 7vw, 104px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.92;
}
.contact-band__intro {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 34ch;
  font-size: 15px;
}
.contact-band__meta {
  margin-top: 32px;
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}
.contact-band__meta a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 6px;
  width: fit-content;
  color: var(--bg);
}
.contact-band__meta a:hover {
  border-color: var(--bg);
}

.form {
  display: grid;
  gap: 18px;
}
.field {
  display: grid;
  gap: 8px;
}
.field label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 12px 0;
  font-size: 15px;
  transition: border-color 0.2s;
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--faint);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
  box-shadow: none;
}
.contact-band .field label {
  color: rgba(255, 255, 255, 0.6);
}
.contact-band .field input,
.contact-band .field textarea {
  color: var(--bg);
  border-bottom-color: rgba(255, 255, 255, 0.35);
}
.contact-band .field input::placeholder,
.contact-band .field textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}
.contact-band .field input:focus,
.contact-band .field textarea:focus {
  border-bottom-color: var(--bg);
}
.contact-band .form .btn {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--bg);
}
.contact-band .form .btn:hover {
  background: transparent;
  color: var(--bg);
  border-color: var(--bg);
}
.contact-band .form-note {
  color: rgba(255, 255, 255, 0.6);
}
.form .btn {
  justify-self: start;
  min-width: 160px;
}
.form-note {
  font-size: 12px;
  color: var(--muted);
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  padding-top: clamp(56px, 8vw, 112px);
}
.footer-words {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.footer-words span {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: color 0.35s var(--ease);
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 50px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  padding: clamp(16px, 2.6vw, 32px) clamp(10px, 1.4vw, 20px);
  border-right: 1px solid var(--line);
  min-width: 0;
}
.footer-words span:last-child {
  border-right: 0;
}
.footer-words span:nth-child(even) {
  background: var(--ink);
  color: var(--bg);
}
/* Each cell flips to its opposite on hover, filled from the bottom. */
.footer-words span::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform 0.45s var(--ease);
}
.footer-words span:nth-child(even)::after {
  background: var(--bg);
}
.footer-words span:hover {
  color: var(--bg);
}
.footer-words span:nth-child(even):hover {
  color: var(--ink);
}
.footer-words span:hover::after {
  transform: scaleY(1);
}
.footer-cta {
  display: grid;
  gap: 16px;
  justify-items: start;
  padding: clamp(36px, 6vw, 72px) 0;
}
.footer-cta__line {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.footer-cta__mail {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.4vw, 30px);
  font-style: italic;
  font-weight: 300;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  position: relative;
}
.footer-cta__mail::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.5s var(--ease);
}
.footer-cta__mail:hover {
  color: var(--ink);
}
.footer-cta__mail:hover::after {
  transform: scaleX(1);
}
.to-top {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.to-top:hover {
  color: var(--ink);
}
.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding: clamp(28px, 4vw, 48px) 0;
  border-top: 1px solid var(--line);
}
.footer-main h2 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
}
.footer-main ul {
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-soft);
}
.footer-main a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-brand .logo {
  font-size: 26px;
  display: inline-block;
  margin-bottom: 14px;
}
.footer-brand p {
  color: var(--muted);
  font-size: 14px;
  max-width: 30ch;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 0 28px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 12px;
  letter-spacing: 0.02em;
}

/* ---------- Case study pages ---------- */
.case-hero {
  padding: clamp(40px, 6vw, 88px) 0 clamp(28px, 4vw, 48px);
}
.case-brand {
  margin-bottom: 28px;
  line-height: 0;
}
.case-brand img {
  height: clamp(54px, 6vw, 84px);
  width: auto;
  max-width: 100%;
}
.case-brand--puree img {
  height: clamp(76px, 8.5vw, 124px);
}
.case-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}.case-hero__meta span {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.case-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.4vw, 76px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.02;
  max-width: 20ch;
}
.case-hero p {
  margin-top: 24px;
  max-width: 62ch;
  font-family: var(--font-display);
  font-size: clamp(17px, 1.7vw, 23px);
  font-style: italic;
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink-soft);
}
.case-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 40px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(20px, 3vw, 32px) 0;
  margin-top: clamp(28px, 4vw, 44px);
}
.case-facts dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 6px;
}
.case-facts dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(15px, 1.4vw, 19px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 18px);
}
.gallery figure {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 4 / 5;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.gallery figure:hover img {
  transform: scale(1.04);
}
.gallery--wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.gallery--wide figure {
  aspect-ratio: 4 / 3;
}
.photo-grid {
  columns: 3;
  column-gap: clamp(14px, 2vw, 26px);
}
.photo-grid figure {
  break-inside: avoid;
  margin: 0 0 clamp(14px, 2vw, 26px);
}
.photo-grid img {
  display: block;
  width: 100%;
  height: auto;
}
.photo-grid figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 14px;
  margin-top: 9px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.photo-grid figcaption span:first-child {
  font-weight: 700;
  color: var(--ink);
}
.case-text {
  max-width: 68ch;
  margin-inline: auto;
  display: grid;
  gap: 20px;
}
.case-text h2 {
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.case-text p {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.6vw, 21px);
  font-style: italic;
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink-soft);
}
.case-text em {
  font-style: italic;
}
.video-block {
  max-width: 460px;
  margin: clamp(28px, 4vw, 48px) auto 0;
}
.video-block video {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: #000;
}
.case-media {
  max-width: 1100px;
  margin: clamp(28px, 4vw, 48px) auto 0;
}
.case-media--narrow {
  max-width: 620px;
}
.case-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: var(--surface);
}
.case-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--line);
  margin-top: clamp(40px, 6vw, 72px);
}
.case-nav a {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.case-nav a:hover {
  opacity: 0.6;
}

/* ---------- Contact page ---------- */
.contact-page {
  padding: clamp(40px, 6vw, 88px) 0 clamp(56px, 8vw, 112px);
}
.contact-page__intro {
  display: grid;
  gap: 8px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.contact-page__intro p:first-child {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.02em;
}
.contact-page__intro p:last-child {
  color: var(--muted);
  font-size: 15px;
}
.contact-display {
  font-family: var(--font-display);
  font-size: clamp(52px, 12vw, 180px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.86;
  margin-bottom: clamp(36px, 6vw, 72px);
  white-space: nowrap;
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: clamp(28px, 4vw, 48px);
}
.contact-details {
  display: grid;
  gap: 22px;
}
.contact-details dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 4px;
}
.contact-details dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.9vw, 26px);
  font-style: italic;
  font-weight: 300;
  line-height: 1.3;
}
.contact-details dd a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Thank you / 404 ---------- */
.center-page {
  min-height: 60vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: clamp(64px, 10vw, 140px) var(--gutter);
  gap: 20px;
}
.center-page h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 9vw, 128px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.92;
}
.center-page p {
  color: var(--muted);
  max-width: 40ch;
  margin-inline: auto;
}
.center-page .btn {
  justify-self: center;
  margin-top: 8px;
}

/* ---------- Hero entrance ---------- */
@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes word-rise {
  from {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}
.js .hero-kicker {
  animation: hero-rise 0.6s var(--ease) both;
}
.js .hero-title {
  animation: hero-rise 0.7s var(--ease) 0.08s both;
}
.js .hero-actions {
  animation: hero-rise 0.7s var(--ease) 0.16s both;
}
.js .hero-side {
  animation: hero-rise 0.7s var(--ease) 0.22s both;
}
.js .wordmark {
  animation: word-rise 0.9s var(--ease) 0.18s both;
}

/* Letters are stamped in one by one, then spread apart as the hero scrolls away.
   `translate` carries the scroll spread so it never fights the entrance `transform`. */
@keyframes stamp {
  0% {
    opacity: 0;
    transform: translateY(0.42em) scaleY(1.35);
    clip-path: inset(0 0 100% 0);
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: none;
    clip-path: inset(-0.2em -0.2em -0.2em -0.2em);
  }
}
.js .wordmark.is-split {
  animation: none;
}
.wordmark .wm-l {
  display: inline-block;
  transform-origin: 50% 100%;
  translate: calc(var(--o, 0) * var(--p, 0) * 0.16em) calc(var(--p, 0) * -0.06em);
  will-change: translate;
}
.wordmark.is-split .wm-l {
  animation: stamp 0.95s var(--ease) calc(0.22s + var(--i, 0) * 0.07s) both;
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* ---------- Type tape ---------- */
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  user-select: none;
}
.ticker__row {
  display: flex;
  width: max-content;
  background: var(--ink);
  color: var(--bg);
  will-change: transform;
}
.ticker__row--alt {
  background: var(--bg);
  color: var(--ink);
  border-top: 1px solid var(--ink);
}
.ticker__set {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.ticker__set span {
  font-family: var(--font-display);
  font-size: clamp(30px, 5.2vw, 76px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  padding: 0.2em 0 0.24em;
  white-space: nowrap;
}
.ticker__row--alt .ticker__set span {
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.03em;
}
.ticker__mark {
  display: block;
  flex: 0 0 auto;
  width: clamp(10px, 1.1vw, 16px);
  height: clamp(10px, 1.1vw, 16px);
  margin: 0 clamp(18px, 2.4vw, 36px);
  background: currentColor;
}
.ticker__row--alt .ticker__mark {
  background: transparent;
  border: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.ticker + .specialty {
  border-top: 0;
}
.specialty {
  overflow-x: clip;
}

/* ---------- Heading reveals: words rise out of their own slot ---------- */
.split .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.12em 0.06em 0.18em;
  margin: -0.12em -0.06em -0.18em;
}
.split .w__i {
  display: inline-block;
}
.rv.split .w__i,
.rv .split .w__i {
  transform: translateY(125%);
  transition: transform 1s var(--ease) calc(var(--i, 0) * 75ms);
}
.rv.is-in.split .w__i,
.rv.is-in .split .w__i {
  transform: none;
}

/* The rule under each section head draws left to right. */
.section-head.rv {
  position: relative;
  border-bottom-color: transparent;
}
.section-head.rv::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 1.2s var(--ease) 0.1s;
}
.section-head.rv.is-in::after {
  transform: scaleX(1);
}
.section-head.rv p {
  opacity: 0;
  translate: 0 10px;
  transition: opacity 0.8s var(--ease) 0.35s, translate 0.8s var(--ease) 0.35s;
}
.section-head.rv.is-in p {
  opacity: 1;
  translate: none;
}

/* Misc wall: each image is pulled out like a sheet off the press. */
.misc-card.rv .misc-card__media {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.1s var(--ease) calc(var(--d, 0) * 110ms);
}
.misc-card.rv .misc-card__media img {
  scale: 1.16;
  transition: transform 0.6s var(--ease), scale 1.5s var(--ease) calc(var(--d, 0) * 110ms);
}
.misc-card.rv.is-in .misc-card__media {
  clip-path: inset(0 0 0 0);
}
.misc-card.rv.is-in .misc-card__media img {
  scale: 1;
}

/* Process: the four rules draw in sequence, numbers follow. */
.process.rv li {
  position: relative;
  border-top-color: transparent;
}
.process.rv li::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.9s var(--ease);
}
.process.rv li > * {
  opacity: 0;
  translate: 0 14px;
  transition: opacity 0.7s var(--ease), translate 0.7s var(--ease);
}
.process.rv li:nth-child(2)::before,
.process.rv li:nth-child(2) > * {
  transition-delay: 0.15s;
}
.process.rv li:nth-child(3)::before,
.process.rv li:nth-child(3) > * {
  transition-delay: 0.3s;
}
.process.rv li:nth-child(4)::before,
.process.rv li:nth-child(4) > * {
  transition-delay: 0.45s;
}
.process.rv.is-in li::before {
  transform: scaleX(1);
}
.process.rv.is-in li > * {
  opacity: 1;
  translate: none;
}

/* Poster details swap in when the carousel moves. */
@keyframes detail-swap {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.carousel-detail.is-swap h3,
.carousel-detail.is-swap .carousel-detail__meta,
.carousel-detail.is-swap .carousel-detail__desc,
.carousel-detail.is-swap .carousel-detail__tags {
  animation: detail-swap 0.55s var(--ease) both;
}
.carousel-detail.is-swap .carousel-detail__meta {
  animation-delay: 0.05s;
}
.carousel-detail.is-swap .carousel-detail__desc {
  animation-delay: 0.1s;
}
.carousel-detail.is-swap .carousel-detail__tags {
  animation-delay: 0.15s;
}

/* ---------- Cursor label (fine pointers only, set up by main.js) ---------- */
.cursor-tag {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 110;
  pointer-events: none;
}
.cursor-tag span {
  display: block;
  padding: 9px 13px 8px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--bg);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translate(16px, 16px) scale(0);
  transform-origin: 0 0;
  transition: transform 0.35s var(--ease);
}
.cursor-tag.is-on span {
  transform: translate(16px, 16px) scale(1);
}

/* ---------- Mobile menu drops open ---------- */
@keyframes menu-drop {
  from {
    clip-path: inset(0 0 100% 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}
@keyframes menu-link {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wordmark .wm-l,
  .ticker__row {
    translate: none;
    transform: none;
  }
  .service::before,
  .service__name,
  .footer-words span,
  .footer-words span::after,
  .footer-cta__mail::after {
    transition: none;
  }
  .site-header.is-open .nav-links,
  .site-header.is-open .nav-links a,
  .carousel-detail.is-swap * {
    animation: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .hero-kicker,
  .js .hero-title,
  .js .hero-actions,
  .js .hero-side,
  .js .wordmark {
    animation: none;
  }
  .gallery img {
    transition: none;
  }
  .misc-card__media img,
  .misc-card__caption,
  .carousel__poster,
  .carousel__poster img,
  .carousel__dot::before,
  .carousel__arrow,
  .carousel-detail,
  .service,
  .lightbox__close,
  .lightbox__nav {
    transition: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-meta {
    display: none;
  }
  .photo-grid {
    columns: 2;
  }
  .service {
    grid-template-columns: 48px minmax(0, 0.8fr) minmax(0, 1.2fr);
  }
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .nav-links,
  .nav-cta {
    display: none;
  }
  .process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .case-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .menu-toggle {
    display: inline-flex;
  }
  .site-header.is-open .nav-links {
    display: flex;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 16px var(--gutter) 24px;
    animation: menu-drop 0.45s var(--ease) both;
  }
  .site-header.is-open .nav-links a {
    font-size: 20px;
    padding: 10px 0;
    width: 100%;
    animation: menu-link 0.45s var(--ease) both;
  }
  .site-header.is-open .nav-links a:nth-child(2) {
    animation-delay: 0.05s;
  }
  .site-header.is-open .nav-links a:nth-child(3) {
    animation-delay: 0.1s;
  }
  .site-header.is-open .nav-links a:nth-child(4) {
    animation-delay: 0.15s;
  }
  .hero-head {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .hero {
    min-height: auto;
  }
  .hero-side {
    text-align: left;
    max-width: 460px;
  }
  .section-head {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 14px;
  }
  .section-head p {
    justify-self: start;
    text-align: left;
  }
  .contact-band,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-words {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-words span:nth-child(2) {
    border-right: 0;
  }
  .footer-words span:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .posters-layout {
    grid-template-columns: 1fr;
    gap: clamp(28px, 5vw, 44px);
  }
  .carousel-detail {
    min-height: 0;
  }
}

@media (max-width: 700px) {
  .specialty__body {
    grid-template-columns: 1fr;
  }
  .misc-grid {
    grid-template-columns: 1fr;
  }
  .photo-grid {
    columns: 1;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .section-head p {
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  .process {
    grid-template-columns: 1fr;
  }
  .service {
    grid-template-columns: 40px 1fr;
    row-gap: 10px;
  }
  .service__desc {
    grid-column: 2;
  }
  .footer-main {
    grid-template-columns: 1fr;
  }
  .contact-display {
    white-space: normal;
    word-break: break-word;
  }
  .specialty__facts {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .carousel__poster {
    width: min(100%, 340px);
  }
  .carousel__arrow {
    width: 42px;
    height: 42px;
  }
  .lightbox__nav {
    top: clamp(16px, 3vw, 34px);
    width: 40px;
    height: 40px;
    transform: none;
  }
  .lightbox__nav--prev {
    left: auto;
    right: calc(clamp(16px, 3vw, 34px) + 104px);
  }
  .lightbox__nav--next {
    right: calc(clamp(16px, 3vw, 34px) + 52px);
  }
  .lightbox__close {
    width: 42px;
    height: 42px;
  }
}

/* ---------- Large screens ----------
   Below 1440 the design is fluid: type, art, and spacing all key off the
   viewport and settle into a 1208px content column. Above 1440 that column
   used to freeze, which left a narrow strip in the middle of a big monitor.
   Here one unit (--u) stands for one pixel of the 1440 design and grows to
   1.57px by 3440px. The column and every fixed size are multiplied by it, so
   a 27 inch or ultrawide display gets the same composition, just larger. */
@media (min-width: 1441px) {
  :root {
    --u: clamp(1px, calc(0.0285vw + 0.5896px), 1.8px);
    --max: calc(1320 * var(--u));
    --gutter: calc(56 * var(--u));
    --header-h: calc(77 * var(--u));
    --radius: calc(2 * var(--u));
    --radius-sm: calc(2 * var(--u));
  }
  body {
    font-size: calc(16 * var(--u));
  }
  section[id] {
    scroll-margin-top: calc(88 * var(--u));
  }

  /* Header and controls */
  .nav {
    min-height: calc(76 * var(--u));
    gap: calc(24 * var(--u));
  }
  .logo {
    font-size: calc(22 * var(--u));
  }
  .nav-right {
    gap: calc(56 * var(--u));
  }
  .nav-links {
    gap: calc(22 * var(--u));
  }
  .nav-links a {
    font-size: calc(13 * var(--u));
    padding: calc(6 * var(--u)) 0;
  }
  .nav-meta {
    gap: calc(28 * var(--u));
    padding-left: calc(28 * var(--u));
    font-size: calc(12 * var(--u));
  }
  .btn {
    min-height: calc(44 * var(--u));
    padding: 0 calc(22 * var(--u));
    font-size: calc(12 * var(--u));
    gap: calc(10 * var(--u));
  }
  .btn--small {
    min-height: calc(38 * var(--u));
    padding: 0 calc(16 * var(--u));
    font-size: calc(11 * var(--u));
  }

  /* Hero */
  .hero-head {
    padding: calc(40 * var(--u)) 0 calc(40 * var(--u));
    gap: calc(32 * var(--u));
  }
  .hero-kicker {
    margin-bottom: calc(20 * var(--u));
    gap: calc(12 * var(--u));
    font-size: calc(11 * var(--u));
  }
  .hero-kicker::before {
    width: calc(34 * var(--u));
  }
  .hero-title {
    font-size: calc(62 * var(--u));
  }
  .hero-side {
    max-width: calc(300 * var(--u));
    padding-top: calc(14 * var(--u));
    font-size: calc(13 * var(--u));
  }
  .hero-side__label {
    margin-bottom: calc(8 * var(--u));
    font-size: calc(11 * var(--u));
  }
  .hero-actions {
    gap: calc(12 * var(--u));
  }
  .wordmark {
    font-size: calc(296.64 * var(--u));
    padding: calc(28 * var(--u)) 0 calc(32 * var(--u));
  }

  /* Type tape */
  .ticker__set span {
    font-size: calc(76 * var(--u));
  }
  .ticker__mark {
    width: calc(16 * var(--u));
    height: calc(16 * var(--u));
    margin: 0 calc(36 * var(--u));
  }
  .scroll-progress {
    height: calc(2 * var(--u));
  }
  .cursor-tag span {
    font-size: calc(11 * var(--u));
  }

  /* Section shells */
  .section {
    padding: calc(128 * var(--u)) 0;
  }
  .section--tight {
    padding: calc(84 * var(--u)) 0;
  }
  .section-head {
    padding-bottom: calc(22 * var(--u));
    margin-bottom: calc(60 * var(--u));
    gap: calc(56 * var(--u));
  }
  .section-head h2 {
    font-size: calc(64 * var(--u));
  }
  .misc .section-head h2 {
    font-size: calc(136 * var(--u));
  }
  .section-head p {
    font-size: calc(14 * var(--u));
  }
  .eyebrow {
    font-size: calc(12 * var(--u));
  }

  /* Specialization */
  .specialty {
    padding: calc(96 * var(--u)) 0 calc(56 * var(--u));
  }
  .specialty__eyebrow {
    font-size: calc(12 * var(--u));
  }
  .specialty__title {
    font-size: calc(182 * var(--u));
  }
  .specialty__body {
    margin-top: calc(44 * var(--u));
    gap: calc(64 * var(--u));
  }
  .specialty__lead {
    font-size: calc(30 * var(--u));
  }
  .specialty__copy,
  .specialty__facts dd {
    font-size: calc(15 * var(--u));
  }
  .specialty__facts {
    margin-top: calc(56 * var(--u));
    padding-top: calc(26 * var(--u));
    gap: calc(40 * var(--u));
  }
  .specialty__facts dt {
    font-size: calc(11 * var(--u));
  }

  /* Poster carousel */
  .posters-layout {
    gap: calc(96 * var(--u));
  }
  .carousel__viewport {
    padding-block: calc(18 * var(--u));
  }
  .carousel__track {
    gap: calc(30 * var(--u));
  }
  .carousel__poster {
    width: min(100%, calc(500 * var(--u)));
  }
  .carousel__poster--matted {
    padding: calc(16 * var(--u));
  }
  .carousel__nav {
    margin-top: calc(28 * var(--u));
    gap: calc(16 * var(--u));
  }
  .carousel__arrow {
    width: calc(46 * var(--u));
    height: calc(46 * var(--u));
    font-size: calc(18 * var(--u));
  }
  .carousel__dot {
    width: calc(34 * var(--u));
    height: calc(24 * var(--u));
  }
  .carousel__dot::before {
    height: calc(2 * var(--u));
  }
  .carousel-detail {
    padding-top: calc(28 * var(--u));
    min-height: calc(380 * var(--u));
  }
  .carousel-detail__index,
  .carousel-detail__meta {
    font-size: calc(12 * var(--u));
  }
  .carousel-detail h3 {
    margin-top: calc(12 * var(--u));
    font-size: calc(48.96 * var(--u));
  }
  .carousel-detail__meta {
    margin-top: calc(16 * var(--u));
    gap: calc(6 * var(--u)) calc(22 * var(--u));
  }
  .carousel-detail__desc {
    margin-top: calc(18 * var(--u));
    font-size: calc(15 * var(--u));
  }
  .carousel-detail__tags {
    margin-top: calc(22 * var(--u));
  }
  .tags {
    gap: calc(8 * var(--u));
  }
  .tags li {
    padding: calc(7 * var(--u)) calc(14 * var(--u));
    font-size: calc(12 * var(--u));
  }

  /* Misc work */
  .misc-grid {
    gap: calc(28 * var(--u));
  }
  .misc-card__caption {
    gap: calc(6 * var(--u));
    padding: calc(22 * var(--u));
  }
  .misc-card__title {
    font-size: calc(20 * var(--u));
  }
  .misc-card__tag {
    font-size: calc(10 * var(--u));
  }
  .misc-card__credit {
    font-size: calc(10 * var(--u));
  }

  /* Services */
  .service {
    grid-template-columns: calc(48 * var(--u)) minmax(0, 0.9fr) minmax(0, 1.3fr);
    gap: calc(40 * var(--u));
    padding: calc(30 * var(--u)) 0;
  }
  .service__num {
    font-size: calc(11 * var(--u));
    padding-top: calc(6 * var(--u));
  }
  .service__name {
    font-size: calc(20 * var(--u));
  }
  .service__desc {
    font-size: calc(20 * var(--u));
  }

  /* Process */
  .process {
    gap: calc(40 * var(--u));
  }
  .process li {
    padding-top: calc(18 * var(--u));
    gap: calc(10 * var(--u));
  }
  .process__num {
    font-size: calc(42 * var(--u));
  }
  .process h3 {
    font-size: calc(13 * var(--u));
  }
  .process p {
    font-size: calc(13 * var(--u));
  }

  /* Contact band and forms */
  .contact-band {
    padding: calc(64 * var(--u));
    gap: calc(72 * var(--u));
  }
  .contact-band h2 {
    font-size: calc(104 * var(--u));
  }
  .contact-band__intro {
    margin-top: calc(20 * var(--u));
    font-size: calc(15 * var(--u));
  }
  .contact-band__meta {
    margin-top: calc(32 * var(--u));
    gap: calc(10 * var(--u));
    font-size: calc(14 * var(--u));
  }
  .form {
    gap: calc(18 * var(--u));
  }
  .field {
    gap: calc(8 * var(--u));
  }
  .field label {
    font-size: calc(11 * var(--u));
  }
  .field input,
  .field textarea {
    padding: calc(12 * var(--u)) 0;
    font-size: calc(15 * var(--u));
  }
  .field textarea {
    min-height: calc(120 * var(--u));
  }
  .form .btn {
    min-width: calc(160 * var(--u));
  }
  .form-note {
    font-size: calc(12 * var(--u));
  }

  /* Footer */
  .site-footer {
    padding-top: calc(112 * var(--u));
  }
  .footer-words span {
    padding: calc(32 * var(--u)) calc(20 * var(--u));
    font-size: calc(46.08 * var(--u));
  }
  .footer-cta {
    padding: calc(72 * var(--u)) 0;
    gap: calc(16 * var(--u));
  }
  .footer-cta__line {
    font-size: calc(64 * var(--u));
  }
  .footer-cta__mail {
    font-size: calc(30 * var(--u));
  }
  .to-top {
    font-size: calc(11 * var(--u));
  }
  .footer-main {
    padding: calc(48 * var(--u)) 0;
    gap: calc(32 * var(--u));
  }
  .footer-main h2 {
    font-size: calc(12 * var(--u));
  }
  .footer-main ul {
    gap: calc(8 * var(--u));
    font-size: calc(14 * var(--u));
  }
  .footer-brand .logo {
    font-size: calc(26 * var(--u));
  }
  .footer-brand p {
    font-size: calc(14 * var(--u));
  }
  .footer-bottom {
    padding: calc(20 * var(--u)) 0 calc(28 * var(--u));
    gap: calc(16 * var(--u));
    font-size: calc(12 * var(--u));
  }

  /* Contact page */
  .contact-page {
    padding: calc(86.4 * var(--u)) 0 calc(112 * var(--u));
  }
  .contact-page__intro {
    margin-bottom: calc(56 * var(--u));
  }
  .contact-page__intro p:first-child {
    font-size: calc(44 * var(--u));
  }
  .contact-page__intro p:last-child {
    font-size: calc(15 * var(--u));
  }
  .contact-display {
    margin-bottom: calc(72 * var(--u));
    font-size: calc(172.8 * var(--u));
  }
  .contact-grid {
    gap: calc(72 * var(--u));
    padding-top: calc(48 * var(--u));
  }
  .contact-details {
    gap: calc(22 * var(--u));
  }
  .contact-details dt {
    font-size: calc(11 * var(--u));
  }
  .contact-details dd {
    font-size: calc(26 * var(--u));
  }

  /* Case study and project pages */
  .case-hero {
    padding: calc(88 * var(--u)) 0 calc(48 * var(--u));
  }
  .case-brand img {
    height: calc(84 * var(--u));
  }
  .case-brand--puree img {
    height: calc(124 * var(--u));
  }
  .case-hero__meta span {
    padding: calc(6 * var(--u)) calc(12 * var(--u));
    font-size: calc(11 * var(--u));
  }
  .case-hero h1 {
    font-size: calc(76 * var(--u));
  }
  .case-hero p {
    margin-top: calc(24 * var(--u));
    font-size: calc(23 * var(--u));
  }
  .case-facts {
    gap: calc(40 * var(--u));
    padding: calc(32 * var(--u)) 0;
    margin-top: calc(44 * var(--u));
  }
  .case-facts dt {
    font-size: calc(11 * var(--u));
  }
  .case-facts dd {
    font-size: calc(19 * var(--u));
  }
  .case-text {
    gap: calc(20 * var(--u));
  }
  .case-text h2 {
    font-size: calc(34 * var(--u));
  }
  .case-text p {
    font-size: calc(21 * var(--u));
  }
  .case-media {
    max-width: calc(1100 * var(--u));
    margin-top: calc(48 * var(--u));
  }
  .case-media--narrow {
    max-width: calc(620 * var(--u));
  }
  .video-block {
    max-width: calc(460 * var(--u));
    margin-top: calc(48 * var(--u));
  }
  .case-nav {
    padding-top: calc(72 * var(--u));
    margin-top: calc(72 * var(--u));
    gap: calc(16 * var(--u));
  }
  .case-nav a {
    font-size: calc(13 * var(--u));
  }
  .gallery {
    gap: calc(18 * var(--u));
  }
  .photo-grid {
    column-gap: calc(26 * var(--u));
  }
  .photo-grid figure {
    margin-bottom: calc(26 * var(--u));
  }
  .photo-grid figcaption {
    margin-top: calc(9 * var(--u));
    gap: calc(4 * var(--u)) calc(14 * var(--u));
    font-size: calc(11 * var(--u));
  }

  /* Thank you and 404 */
  .center-page {
    padding: calc(140 * var(--u)) calc(56 * var(--u));
    gap: calc(20 * var(--u));
  }
  .center-page h1 {
    font-size: calc(128 * var(--u));
  }
  .center-page p {
    font-size: calc(16 * var(--u));
  }
  .center-page .btn {
    margin-top: calc(8 * var(--u));
  }
}
