/* Manrope, self-hosted: one family for the whole interface, Latin and Cyrillic.
   No external font request, so text paints on the first response. */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* One interface palette: paper, ink and a single blue accent.
   Colour in this site comes from the work, not from the chrome. */
:root {
  color-scheme: light;
  --ink: #0d0d0f;
  --muted: #6a6a72;
  --paper: #f4f2ee;
  --white: #ffffff;
  --line: rgba(13, 13, 15, 0.1);
  --blue: #1f47e6;
  --accent: var(--blue);
  --accent-soft: rgba(31, 71, 230, 0.07);
  --accent-line: rgba(31, 71, 230, 0.28);
  --accent-on-dark: #9db4ff;
  /* Legacy names kept so nothing falls back to an undefined colour;
     they all resolve to the single accent. */
  --green: var(--blue);
  --yellow: var(--blue);
  --coral: var(--blue);
  --plum: var(--blue);
  --cyan: var(--blue);
  --radius: 8px;
  --radius-pill: 999px;
  --shadow: 0 26px 80px rgba(16, 16, 16, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Anchored sections stop below the sticky bar instead of under it. */
  scroll-padding-top: 92px;
}

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

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.lightbox-open {
  overflow: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

video[controls] {
  object-fit: contain;
  background: #050505;
}

video::-webkit-media-controls,
video::-webkit-media-controls-enclosure,
video::-webkit-media-controls-panel {
  display: none !important;
}

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

button {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(244, 242, 238, 0.86);
  backdrop-filter: blur(18px);
}

.back-to-top {
  position: fixed;
  top: 76px;
  left: clamp(12px, 2.8vw, 42px);
  z-index: 45;
  min-height: 36px;
  padding: 8px 12px;
  color: var(--white);
  background: var(--ink);
  border: 1px solid rgba(16, 16, 16, 0.12);
  border-radius: 999px;
  box-shadow: 0 14px 28px rgba(16, 16, 16, 0.14);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    background 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--blue);
}

.brand,
.nav,
.hero-actions,
.hero-stats,
.filters,
.tag-filters,
.project-tags,
.meta,
footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 34px;
  place-items: center;
  color: var(--white);
  background: var(--ink);
  border-radius: 50%;
  font-size: 12px;
}

.nav {
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

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

.nav a.is-current {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--blue);
}

.hero {
  position: relative;
  min-height: calc(100svh - 67px);
  display: block;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(72px, 10vh, 118px) clamp(18px, 5vw, 68px) clamp(54px, 8vh, 88px);
  background: var(--paper);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(244, 242, 238, 0.99) 0%,
    rgba(244, 242, 238, 0.96) 54%,
    rgba(244, 242, 238, 0.7) 100%
  );
}

.hero::before {
  content: none;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.hero-media::before {
  content: none;
}

.hero-face {
  position: absolute;
  /* Shifted left so the ear and the earring stay inside the frame. */
  right: clamp(-250px, -12vw, -80px);
  bottom: clamp(-246px, -15vw, -132px);
  z-index: 1;
  width: auto;
  max-width: none;
  height: min(126svh, 1230px);
  filter: drop-shadow(-32px 34px 46px rgba(16, 16, 16, 0.16));
}

.hero-content {
  position: relative;
  z-index: 5;
  width: min(950px, 62vw);
  color: var(--ink);
}

.profile-easter-egg {
  position: absolute;
  right: clamp(260px, 26vw, 500px);
  bottom: clamp(70px, 8vh, 118px);
  z-index: 6;
  display: block;
  width: clamp(82px, 7.2vw, 124px);
  aspect-ratio: 3.8;
  transform: rotate(-2deg);
  transform-origin: center;
  cursor: default;
  pointer-events: auto;
}

.profile-word {
  display: block;
  max-width: none;
  user-select: none;
  pointer-events: none;
  filter: drop-shadow(0 10px 16px rgba(16, 16, 16, 0.1));
}

.profile-word-main {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
}

.profile-hover-zone {
  position: absolute;
  inset: -48% -44% -132%;
  z-index: 2;
}

.profile-reveal {
  position: absolute;
  top: 138%;
  left: 56%;
  z-index: 1;
  display: block;
  width: 58%;
  opacity: 0;
  transform: translate3d(0, -8px, 0) rotate(1deg);
  transition:
    opacity 240ms ease,
    transform 240ms ease;
  pointer-events: none;
}

.profile-easter-egg:hover .profile-reveal,
.profile-hover-zone:hover ~ .profile-reveal,
.profile-easter-egg:focus-visible .profile-reveal {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(1deg);
}

.profile-word-literally {
  width: 100%;
}

/* One label style everywhere: small, quiet, wide-tracked. */
.eyebrow,
.section-label {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

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

/* Display sizes get tighter tracking, body sizes stay neutral —
   one scale used consistently across the whole site. */
h1 {
  max-width: 1000px;
  margin-bottom: 24px;
  font-size: clamp(42px, 7vw, 88px);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.035em;
  text-wrap: balance;
  color: var(--accent);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4.2vw, 56px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h3 {
  margin-bottom: 18px;
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  overflow-wrap: normal;
  text-wrap: balance;
  word-break: normal;
}

.spotlight h3 {
  font-size: clamp(34px, 3.8vw, 54px);
  overflow-wrap: normal;
  word-break: normal;
}

h4 {
  margin-bottom: 0;
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.1;
}

.lead {
  max-width: 740px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.48;
}

.hero-subline {
  max-width: 760px;
  margin: -6px 0 22px;
  color: var(--ink);
  font-size: clamp(19px, 2.2vw, 27px);
  font-weight: 700;
  line-height: 1.2;
}

.hero-stats {
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.hero-stats span,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.hero-stats span {
  color: var(--white);
  background: var(--blue);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
}

/* Every pill-shaped control shares one size, weight and transition. */
.button,
.filter,
.tag-filter {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.button:hover,
.filter:hover,
.tag-filter:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: var(--white);
  background: var(--accent);
}

.button.primary:hover {
  box-shadow: 0 12px 24px rgba(31, 71, 230, 0.24);
}

.button.ghost {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--white);
}

.button.ghost:hover {
  border-color: var(--accent);
}

.creator,
.capabilities,
.projects-section,
.contact {
  padding: clamp(58px, 8vw, 112px) clamp(18px, 5vw, 68px);
}

.creator {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.46fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.portrait {
  position: relative;
  order: 2;
  overflow: hidden;
  min-height: 500px;
  background: #e2ded6;
  border: 0;
  border-radius: var(--radius);
  box-shadow: 14px 16px 0 rgba(6, 79, 178, 0.05);
}

.portrait::before {
  display: none;
}

.portrait::after {
  display: none;
}

.portrait img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  border-radius: inherit;
  object-fit: cover;
  object-position: center 38%;
}

.creator-copy {
  order: 1;
  max-width: 820px;
}

.creator-copy p:last-child,
.contact p {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.brief {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}

.brief a {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  min-height: clamp(96px, 10vw, 122px);
  padding: clamp(16px, 1.8vw, 24px);
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--white);
  background: var(--accent);
  transition: background 200ms ease;
}

.brief a:last-child {
  border-right: 0;
}

.brief a:hover {
  background: #1a3cc4;
}

.brief-copy {
  position: relative;
  z-index: 2;
  max-width: 350px;
  padding-right: clamp(74px, 8vw, 108px);
}

/* One icon language: same 32px grid, same 1.6px stroke. */
.brief-icon {
  position: absolute;
  right: clamp(16px, 2vw, 28px);
  bottom: 50%;
  z-index: 1;
  width: clamp(38px, 3.4vw, 52px);
  aspect-ratio: 1;
  color: var(--white);
  opacity: 0.82;
  pointer-events: none;
  transform: translateY(50%);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.brief-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.brief a:hover .brief-icon {
  opacity: 1;
  transform: translate3d(-3px, 50%, 0);
}

.brief h3 {
  margin-bottom: 6px;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 0.96;
}

.brief p {
  font-size: clamp(12px, 0.9vw, 14px);
  line-height: 1.36;
}

.project-copy p,
.project-copy li,
.more-note {
  color: var(--muted);
  line-height: 1.58;
}

.brief p {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

.capabilities {
  position: relative;
  display: grid;
  gap: 32px;
  overflow: hidden;
  color: var(--ink);
  background: var(--white);
}

.capabilities .section-head {
  align-items: start;
}

.capabilities .section-head > p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.capability-card {
  --cap-color: var(--accent);
  --cap-soft: var(--accent-soft);
  position: relative;
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 0;
  padding: clamp(20px, 2.1vw, 28px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition:
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.capability-card:hover {
  border-color: var(--accent-line);
  box-shadow: 0 16px 30px rgba(16, 16, 16, 0.08);
}

/* Every capability card uses the same surface and the same accent.
   The cards differ by what they say, not by colour. */

.capability-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.capability-card p {
  position: relative;
  z-index: 1;
  color: var(--cap-color);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.capability-card p {
  max-width: none;
  margin: 0;
}

.capability-card h3 {
  position: relative;
  z-index: 1;
  margin: 4px 0 0;
  max-width: 440px;
  font-size: clamp(25px, 2.55vw, 36px);
  line-height: 0.98;
}

.capability-card small {
  display: block;
  position: relative;
  z-index: 1;
  max-width: 460px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.capability-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}

.capability-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 15px;
  font-size: 13px;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.capability-action.primary {
  color: var(--white);
  background: var(--cap-color);
  box-shadow: 0 12px 24px var(--cap-soft);
}

/* Quiet second step: one filled action per card, the rest reads as a link. */
.capability-action.secondary {
  min-height: auto;
  padding: 10px 4px;
  color: var(--muted);
  background: none;
  border-color: transparent;
  font-weight: 700;
}

.capability-action.secondary:hover {
  color: var(--cap-color);
}

.capability-action:hover {
  transform: translateY(-2px);
}

.capability-action.secondary:hover {
  transform: none;
}

.capability-action.primary:hover {
  box-shadow: 0 16px 30px var(--cap-soft);
}

.projects-section {
  display: grid;
  gap: clamp(42px, 6vw, 82px);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.filters {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filter {
  color: var(--muted);
  background: var(--white);
  border-color: var(--line);
}

.filter.is-active {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.tag-panel {
  display: grid;
  gap: 12px;
  margin-top: -22px;
  padding: 18px 0 4px;
  border-top: 1px solid rgba(16, 16, 16, 0.08);
}

.tag-panel p {
  margin: 0;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.tag-filters {
  flex-wrap: wrap;
  gap: 8px;
}

.tag-filter {
  min-height: 38px;
  padding: 9px 13px;
  color: var(--blue);
  background: rgba(6, 79, 178, 0.07);
  border-color: rgba(6, 79, 178, 0.2);
  font-size: 13px;
}

.tag-filter.is-active {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
}

.tag-filters [data-tag-overflow] {
  display: none;
}

.tag-filters.is-expanded [data-tag-overflow] {
  display: inline-flex;
}

.tag-toggle {
  color: var(--muted);
  background: none;
  border-color: rgba(16, 16, 16, 0.16);
}

.tag-toggle:hover {
  color: var(--ink);
  border-color: rgba(16, 16, 16, 0.36);
}

.projects {
  display: grid;
  gap: clamp(52px, 7vw, 96px);
}

.spotlight,
.project {
  position: relative;
  isolation: isolate;
  display: grid;
  /* The work gets the room; the copy stays a narrow, sticky column. */
  grid-template-columns: minmax(300px, 0.4fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: start;
  overflow: visible;
}

/* Inside a case the copy reads once at the top and the media runs full width,
   so no column is left with a hole under it. */
.case-project {
  position: relative;
  isolation: isolate;
  display: block;
  overflow: visible;
}

.case-project .project-copy {
  position: static;
  max-width: 780px;
  margin-bottom: clamp(34px, 4.5vw, 60px);
}

.case-project .project-visual {
  width: 100%;
}

/* Folded detail text: a quiet tab, open by default on desktop. */
.case-details {
  margin: 26px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.case-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 2px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.case-details summary::-webkit-details-marker {
  display: none;
}

.case-details summary::after {
  content: "+";
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
}

.case-details[open] summary::after {
  content: "–";
}

.case-details summary:hover {
  color: var(--accent);
}

.case-details-body {
  padding-bottom: 22px;
}

.case-details-body .role-card {
  margin-top: 4px;
}

.spotlight {
  padding: clamp(28px, 5vw, 62px);
  color: var(--ink);
  background: var(--white);
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.project {
  padding-top: clamp(42px, 6vw, 74px);
  border-top: 1px solid var(--line);
}

.project-copy {
  position: sticky;
  top: 96px;
  min-width: 0;
  z-index: 4;
}

.project-parallax {
  position: absolute;
  inset: 0;
  z-index: 7;
  overflow: visible;
  pointer-events: none;
}

.project-parallax .parallax-asset {
  position: absolute;
  left: var(--px);
  top: var(--py);
  width: var(--pw);
  max-width: none;
  opacity: 1;
  transform: rotate(var(--pr));
  transform-origin: center;
  will-change: transform;
  filter: drop-shadow(0 24px 42px rgba(16, 16, 16, 0.24));
  transform-style: preserve-3d;
}

.project-parallax.is-preview .parallax-asset {
  opacity: 1;
}

.spotlight .project-parallax.is-preview .parallax-asset {
  opacity: 1;
}

.case-project .project-parallax .parallax-asset {
  opacity: 1;
}

.hero > .hero-parallax {
  z-index: 2;
}

.hero > .hero-parallax .parallax-asset {
  opacity: 1;
  filter: drop-shadow(0 28px 46px rgba(16, 16, 16, 0.24));
}

.case-project .project-copy h3 {
  font-size: clamp(40px, 4.6vw, 62px);
}

.meta {
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.pill {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(16, 16, 16, 0.07);
}

.pill.strong {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.spotlight .pill {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
}

.spotlight .pill.strong {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
}

.spotlight .project-copy p,
.spotlight .project-copy li {
  color: var(--muted);
}

/* Titles: page level is accent, everything below is ink. */
.spotlight h3 {
  color: var(--ink);
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

/* Detail blocks read as indented notes, not as cards stacked inside a card. */
.role-card {
  display: grid;
  gap: 8px;
  margin: 26px 0 0;
  padding: 2px 0 2px 18px;
  color: var(--ink);
  background: none;
  border-left: 2px solid rgba(6, 79, 178, 0.32);
  border-radius: 0;
}

.role-card span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.role-card strong {
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.1;
}

.role-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.52;
}

.role-card ul {
  display: grid;
  gap: 6px;
  margin: 6px 0 0;
  padding-left: 18px;
}

.role-card li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.42;
}

.client-card {
  display: grid;
  gap: 8px;
  margin: 22px 0 0;
  padding: 2px 0 2px 18px;
  background: none;
  border: 0;
  border-left: 2px solid rgba(16, 16, 16, 0.18);
  border-radius: 0;
}

.client-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.client-card strong {
  font-size: 18px;
  line-height: 1.15;
}

.client-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.client-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.client-card a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--blue);
  background: rgba(6, 79, 178, 0.08);
  font-size: 12px;
  font-weight: 700;
}

.project-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid rgba(6, 79, 178, 0.24);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--blue);
  background: rgba(6, 79, 178, 0.08);
  font-size: 13px;
  font-weight: 700;
}

/* The single strong action of a project block, kept right under the summary. */
.project-actions {
  margin-top: 22px;
}

.case-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  border-radius: var(--radius-pill);
  padding: 15px 26px;
  color: var(--white);
  background: var(--accent);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 22px rgba(31, 71, 230, 0.22);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.case-link::after {
  content: "→";
  font-size: 15px;
  transition: transform 180ms ease;
}

.case-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(31, 71, 230, 0.3);
}

.case-link:hover::after {
  transform: translateX(3px);
}

.project-tags {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.project-tag {
  min-height: 32px;
  border: 1px solid rgba(16, 16, 16, 0.1);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.project-tag:hover {
  color: var(--blue);
  border-color: rgba(6, 79, 178, 0.26);
}

.project-copy ul {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  padding-left: 18px;
}

.project-copy > ul {
  margin-top: 28px;
}

.project-copy .role-card ul {
  gap: 6px;
  margin: 6px 0 0;
  padding-left: 18px;
}

.case-next {
  display: grid;
  gap: clamp(22px, 3vw, 34px);
  padding: clamp(48px, 7vw, 92px) clamp(18px, 5vw, 68px) clamp(56px, 8vw, 104px);
  border-top: 1px solid var(--line);
}

.case-next .work-index {
  margin-top: 0;
}

.case-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-top: 8px;
}

.case-contact p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

/* Work index: a compact map of every case, shown before the long project list. */
.work-index {
  margin-top: -18px;
}

.work-index-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.work-index-card {
  display: grid;
  align-content: start;
  gap: 10px;
  height: 100%;
  padding: 10px 10px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.work-index-card:hover,
.work-index-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(6, 79, 178, 0.34);
  box-shadow: 0 16px 30px rgba(16, 16, 16, 0.1);
}

.work-index-card.is-active {
  border-color: var(--ink);
}

.work-index-thumb {
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
  background: rgba(16, 16, 16, 0.05);
  border-radius: calc(var(--radius) - 4px);
}

.work-index-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-index-copy {
  display: grid;
  gap: 3px;
  padding: 0 4px;
}

.work-index-copy strong {
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.work-index-copy small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.project-visual {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 18px;
  min-width: 0;
}

/* The frame takes the proportions of the cover, so nothing is padded out
   with grey to the sides. */
/* The frame takes the proportions of the cover, so nothing is padded out
   with grey to the sides. Tall covers are capped by width, not letterboxed. */
.cover-frame {
  overflow: hidden;
  width: 100%;
  aspect-ratio: var(--ratio, 4 / 3);
  max-width: var(--frame-max-width, 100%);
  margin-inline: auto;
  background: transparent;
  border-radius: var(--radius);
}

.cover-placeholder {
  display: grid;
  align-content: space-between;
  min-height: 340px;
  padding: clamp(22px, 4vw, 42px);
  color: var(--white);
  background: var(--blue);
  border-radius: inherit;
}

.cover-placeholder span,
.cover-placeholder small {
  color: rgba(255, 253, 248, 0.72);
  font-size: 13px;
  font-weight: 700;
}

.cover-placeholder strong {
  max-width: 720px;
  font-size: clamp(34px, 5vw, 72px);
  line-height: 0.92;
}

.cover-frame img,
.cover-frame video {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: contain;
  background: transparent;
}

.media-button {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: inherit;
  overflow: hidden;
  cursor: zoom-in;
}

.media-button img {
  display: block;
}

.media-button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: -3px;
}

.cover-frame video {
  object-fit: contain;
  background: transparent;
}

.spotlight .cover-frame {
  border: 0;
}

/* Surface colour of the block a media frame sits in. Slides use it as their
   own background, so letterboxed edges blend into the card. */
.spotlight,
.project {
  --surface: var(--white);
}

.case-project {
  --surface: var(--paper);
}

.series-zone {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.series {
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.spotlight .series {
  background: transparent;
}

.series-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  color: var(--ink);
}

.series-head p {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.series-head span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.carousel-track,
.stories-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--ink) transparent;
}

.slide-card,
.story-card {
  position: relative;
  flex: 0 0 auto;
  margin: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  scroll-snap-align: start;
}

.carousel-slide {
  width: min(var(--slide-width, 310px), 76vw);
  aspect-ratio: var(--ratio, 4 / 5);
}

.story-card {
  width: min(210px, 58vw);
  aspect-ratio: 9 / 16;
  box-shadow: 0 18px 38px rgba(16, 16, 16, 0.08);
}

.slide-card img,
.slide-card video,
.story-card img,
.story-card video {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.slide-card video {
  object-fit: contain;
  background: #050505;
}

.story-card::before {
  display: none;
}

.carousel-slide img,
.carousel-slide video {
  object-fit: contain;
  background: transparent;
}

.story-card img,
.story-card video {
  object-fit: contain;
  background: transparent;
}

/* Masonry columns: every work keeps its own proportions and the columns stay
   flush, so mixed vertical and horizontal pieces leave no holes between them. */
.gallery-grid {
  columns: clamp(200px, 17vw, 300px);
  column-gap: 12px;
}

.gallery-grid.compact {
  columns: clamp(180px, 14vw, 260px);
  column-gap: 12px;
}

.gallery-grid .slide-card {
  display: block;
  width: 100%;
  margin: 0 0 12px;
  aspect-ratio: var(--ratio, 1 / 1);
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
}

/* The frame takes the proportions of the work itself, so there are no grey
   bars left and right of a square image. */
.gallery-slideshow {
  position: relative;
  background: var(--surface, var(--white));
  display: block;
  width: 100%;
  aspect-ratio: var(--ratio, 1 / 1);
  max-width: var(--frame-max-width, 100%);
  margin-inline: auto;
  overflow: hidden;
  background: transparent;
  border-radius: var(--radius);
}

.gallery-slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0;
  object-fit: contain;
  /* Each slide carries the surface colour, so the incoming image covers the
     previous one completely instead of letting its edges show through. */
  background: var(--surface, var(--white));
  transition: opacity 420ms ease;
}

.gallery-slideshow img.is-active {
  z-index: 2;
  opacity: 1;
}

.preview-gallery {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--ink) transparent;
}

.preview-gallery .slide-card,
.preview-gallery .slide-card:nth-child(1) {
  flex: 0 0 auto;
  width: min(var(--slide-width, 300px), 72vw);
  max-height: 460px;
  aspect-ratio: var(--ratio, 1 / 1);
  scroll-snap-align: start;
}



@media (prefers-reduced-motion: reduce) {
  .gallery-slideshow img {
    transition: none;
  }

  .project-parallax .parallax-asset {
    transform: rotate(var(--pr)) !important;
    will-change: auto;
  }
}

video:fullscreen,
video:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  object-fit: contain !important;
  background: #000;
}

.pdf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.pdf-tile {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
  padding: 24px;
  color: var(--ink);
  background: #f0eeea;
  border: 0;
  border-radius: var(--radius);
}

.pdf-tile span {
  color: var(--blue);
  font-size: 46px;
  font-weight: 700;
}

.pdf-tile strong {
  margin-top: 28px;
  font-size: 18px;
}

.pdf-tile small {
  max-width: 100%;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdf-tile--request {
  opacity: 0.72;
  cursor: default;
}

/* A deck should show its own cover, not a grey box with a label. */
.pdf-grid:has(.pdf-tile.has-cover) {
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
}

.pdf-tile.has-cover {
  display: grid;
  align-items: stretch;
  gap: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.pdf-tile.has-cover:hover,
.pdf-tile.has-cover:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(6, 79, 178, 0.34);
  box-shadow: 0 16px 30px rgba(16, 16, 16, 0.1);
}

.pdf-cover {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #eceae5;
}

.pdf-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.pdf-meta {
  display: grid;
  gap: 4px;
  padding: 14px 16px 16px;
}

.pdf-tile.has-cover .pdf-meta > span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.pdf-tile.has-cover strong {
  margin-top: 0;
  font-size: 16px;
  line-height: 1.24;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  grid-template-columns: minmax(72px, 0.12fr) minmax(0, 1fr) minmax(72px, 0.12fr);
  align-items: center;
  gap: 18px;
  padding: 72px clamp(18px, 4vw, 54px) 34px;
  background: rgba(8, 8, 8, 0.92);
}

.lightbox.is-open {
  display: grid;
}

.lightbox-close,
.lightbox-nav {
  border: 1px solid rgba(255, 253, 248, 0.2);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 253, 248, 0.08);
  font-weight: 700;
  cursor: pointer;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: clamp(18px, 4vw, 54px);
  min-height: 42px;
  padding: 10px 14px;
}

.lightbox-nav {
  min-height: 48px;
  padding: 12px 14px;
}

.lightbox-prev {
  justify-self: end;
}

.lightbox-next {
  justify-self: start;
}

.lightbox-figure {
  display: grid;
  justify-items: center;
  gap: 14px;
  min-width: 0;
  margin: 0;
}

.lightbox-figure img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #050505;
}

.more-note {
  margin: 4px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.more-note a {
  color: var(--blue);
  font-weight: 700;
}

.empty-state {
  margin: 0;
  padding: 28px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-weight: 800;
}

.case-main {
  background: var(--paper);
}

.case-hero {
  min-height: 0;
  padding: clamp(56px, 7vw, 96px) clamp(18px, 5vw, 68px) clamp(42px, 6vw, 76px);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.case-hero h1 {
  max-width: 1120px;
  text-wrap: balance;
}

/* Comfortable measure: long lines are the main reason case intros feel heavy. */
.case-hero .lead {
  max-width: 62ch;
  text-wrap: pretty;
}

.back-link {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.case-project {
  padding: clamp(42px, 6vw, 74px) clamp(18px, 5vw, 68px) clamp(70px, 9vw, 120px);
}

/* The project kind pill looks the same in every case. */
.pill.strong {
  background: var(--ink);
  border-color: var(--ink);
}

.contact {
  color: var(--white);
  background: var(--ink);
}

.contact .section-label {
  color: var(--accent-on-dark);
}

.contact p {
  max-width: 760px;
  color: rgba(255, 253, 248, 0.72);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* One primary contact (email), everything else stays secondary. */
.contact-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  border: 1px solid rgba(255, 253, 248, 0.28);
  border-radius: 999px;
  padding: 13px 18px;
  color: var(--paper);
  background: transparent;
  font-weight: 700;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.contact-actions a:first-child {
  color: var(--ink);
  background: var(--white);
  border-color: var(--white);
}

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

footer {
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(18px, 5vw, 68px);
  color: rgba(255, 253, 248, 0.58);
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 1120px) {
  .spotlight,
  .project,
  .case-project,
  .creator {
    grid-template-columns: 1fr;
  }

  .project-copy {
    position: static;
  }

  .project-parallax .parallax-asset {
    max-width: 158px;
    opacity: 1;
  }

  .cover-frame {
    min-height: 300px;
  }

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

  .capability-card {
    min-height: auto;
  }

  .capability-card:nth-child(3n),
  .capability-card:nth-child(2n) {
    border-right: 0;
  }
}

@media (max-width: 820px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  /* On phones the copy comes first and the portrait follows as a tight band,
     instead of opening the page with half a screen of empty background. */
  .hero {
    display: flex;
    flex-direction: column;
    min-height: auto;
    padding-top: clamp(30px, 6vh, 52px);
    padding-bottom: 0;
  }

  .hero-content {
    order: 1;
    width: 100%;
  }

  .hero-media {
    order: 2;
    position: relative;
    inset: auto;
    min-height: 0;
    height: min(66vw, 350px);
    margin: clamp(34px, 8vw, 52px) calc(clamp(18px, 5vw, 68px) * -1) clamp(20px, 5vw, 32px);
    overflow: hidden;
  }

  .hero-face {
    right: -16vw;
    bottom: auto;
    top: -4vw;
    height: auto;
    width: min(120vw, 620px);
  }

  /* On touch there is no hover, so the whole joke is shown at once,
     sitting next to the portrait instead of over it. */
  .profile-easter-egg {
    right: auto;
    left: clamp(18px, 5vw, 40px);
    bottom: clamp(22px, 6vw, 46px);
    width: min(124px, 32vw);
  }

  .profile-reveal {
    top: 116%;
    left: 44%;
    width: 62%;
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(1deg);
  }

  .hero::after {
    background: linear-gradient(0deg, rgba(244, 242, 238, 0.99), rgba(244, 242, 238, 0.9));
  }

  .project-parallax .parallax-asset {
    max-width: 122px;
    opacity: 1;
  }

  .project-parallax .parallax-asset:nth-child(n+4) {
    display: none;
  }

  /* Hero objects float over the portrait band only, never over the copy. */
  .hero > .hero-parallax {
    top: auto;
    bottom: 0;
    height: min(64vw, 340px);
  }

  .hero > .hero-parallax .parallax-asset {
    max-width: 92px;
  }

  .hero > .hero-parallax .parallax-asset:nth-child(n+3) {
    display: none;
  }

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

  .brief a {
    min-height: 112px;
    padding: 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .brief-copy {
    max-width: none;
    padding-right: 64px;
  }

  /* Icon keeps a fixed size and stays vertically centred, so it can never
     run into the copy on a narrow screen. */
  .brief-icon {
    right: 18px;
    bottom: 50%;
    width: 34px;
    opacity: 0.85;
    transform: translateY(50%);
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .filters {
    justify-content: flex-start;
  }

  .gallery-grid,
  .gallery-grid.compact {
    columns: 2;
  }

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

  .capability-card {
    min-height: auto;
    border-right: 0;
  }

  .capability-card:nth-child(3n),
  .capability-card:nth-child(2n) {
    border-right: 0;
  }

  .lightbox {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding-top: 76px;
  }

  .lightbox-figure {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .lightbox-prev,
  .lightbox-next {
    grid-row: 2;
    justify-self: stretch;
  }
}

@media (max-width: 560px) {
  .back-to-top {
    top: auto;
    bottom: 16px;
    left: 16px;
  }

  .nav {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 2px;
  }

  h1 {
    font-size: clamp(38px, 13vw, 62px);
  }

  .hero-media {
    height: min(104vw, 410px);
  }

  .hero-face {
    right: -16vw;
    top: -4vw;
    bottom: auto;
    height: auto;
    width: min(122vw, 470px);
  }

  .hero-actions .button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .profile-easter-egg {
    left: 16px;
    bottom: 54px;
    width: min(108px, 29vw);
  }

  .profile-reveal {
    top: 104%;
    left: 38%;
    width: 64%;
  }

  .portrait,
  .portrait img {
    min-height: 340px;
  }

  .spotlight {
    padding: 18px;
  }

  .project-parallax {
    display: none;
  }

  .series {
    padding: 12px;
  }

  .series-head {
    flex-direction: column;
    gap: 6px;
  }

  .gallery-grid,
  .gallery-grid.compact {
    columns: 2;
    column-gap: 10px;
  }

  .gallery-grid .slide-card {
    margin-bottom: 10px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Scale of a collaboration: how long it ran and how much was made, set apart
   from the case summary without shouting. */
.project-scope {
  margin: 14px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--accent-line);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.case-hero .project-scope {
  max-width: 62ch;
  font-size: 16px;
}
