:root {
  color-scheme: light;
  --ink: #101010;
  --muted: #615f58;
  --paper: #f2eee3;
  --white: #fffaf0;
  --line: rgba(16, 16, 16, 0.12);
  --blue: #064fb2;
  --green: #159457;
  --yellow: #f9d84c;
  --coral: #ef6542;
  --plum: #52306f;
  --cyan: #bde8ec;
  --radius: 8px;
  --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: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

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, 241, 234, 0.82);
  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: 900;
  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: 900;
}

.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(242, 238, 227, 0.99) 0%, rgba(242, 238, 227, 0.96) 54%, rgba(242, 238, 227, 0.76) 100%),
    linear-gradient(180deg, rgba(255, 250, 240, 0.22) 0%, rgba(6, 79, 178, 0.05) 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;
  right: clamp(-330px, -17vw, -105px);
  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%;
}

.eyebrow,
.section-label {
  margin: 0 0 14px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 1000px;
  margin-bottom: 24px;
  font-size: clamp(42px, 7.2vw, 92px);
  line-height: 0.9;
  letter-spacing: 0;
  color: var(--blue);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4.5vw, 60px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 18px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 0.96;
  letter-spacing: 0;
  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: 900;
  white-space: nowrap;
}

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

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

.button,
.filter,
.tag-filter {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 900;
  cursor: pointer;
}

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

.button.ghost {
  color: var(--blue);
  border-color: rgba(6, 79, 178, 0.28);
  background: rgba(255, 250, 240, 0.72);
}

.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: #dfd4c6;
  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 var(--line);
  background: var(--paper);
}

.brief a:nth-child(2) {
  background: #e9f7f3;
}

.brief a:nth-child(3) {
  background: #fff7d5;
  border-right: 0;
}

.brief a:hover h3 {
  color: var(--blue);
}

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

.brief-icon {
  position: absolute;
  right: clamp(14px, 2vw, 28px);
  bottom: clamp(10px, 1.5vw, 18px);
  z-index: 1;
  width: clamp(56px, 5.2vw, 86px);
  aspect-ratio: 1.34;
  opacity: 0.9;
  pointer-events: none;
  transform: rotate(-3deg);
  transition: opacity 220ms ease, transform 220ms ease;
}

.brief-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 24px rgba(12, 12, 12, 0.08));
}

.brief a:nth-child(2) .brief-icon {
  width: clamp(50px, 4.9vw, 80px);
  aspect-ratio: 0.9;
  opacity: 0.92;
  transform: rotate(2deg);
}

.brief a:nth-child(3) .brief-icon {
  width: clamp(58px, 5.4vw, 88px);
  aspect-ratio: 1.28;
  opacity: 0.92;
  transform: rotate(-2deg);
}

.brief a:hover .brief-icon {
  opacity: 1;
  transform: translate3d(-4px, -4px, 0) rotate(0deg) scale(1.03);
}

.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;
}

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

.capabilities {
  position: relative;
  display: grid;
  gap: 32px;
  overflow: hidden;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255, 250, 240, 0.94), rgba(233, 247, 243, 0.82)),
    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(--blue);
  --cap-soft: rgba(6, 79, 178, 0.1);
  position: relative;
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 0;
  overflow: hidden;
  padding: clamp(20px, 2.1vw, 28px);
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.98), rgba(255, 250, 240, 0.82)),
    var(--white);
  border: 1px solid rgba(16, 16, 16, 0.06);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(16, 16, 16, 0.065);
}

.capability-card::after {
  content: "";
  position: absolute;
  right: -26px;
  bottom: -34px;
  width: 104px;
  height: 104px;
  border: 1px solid var(--cap-soft);
  border-radius: 50%;
  opacity: 0.8;
  pointer-events: none;
}

.capability-card.tone-coral {
  --cap-color: var(--coral);
  --cap-soft: rgba(239, 101, 66, 0.16);
}

.capability-card.tone-green {
  --cap-color: var(--green);
  --cap-soft: rgba(21, 148, 87, 0.14);
}

.capability-card.tone-plum {
  --cap-color: var(--plum);
  --cap-soft: rgba(82, 48, 111, 0.15);
}

.capability-card.tone-yellow {
  --cap-color: #d2a900;
  --cap-soft: rgba(249, 216, 76, 0.34);
}

.capability-card.tone-cyan {
  --cap-color: #17899a;
  --cap-soft: rgba(189, 232, 236, 0.55);
}

.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: 900;
  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: 900;
  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);
}

.capability-card.tone-yellow .capability-action.primary {
  color: var(--ink);
}

/* 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: 900;
  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,
.case-project {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(360px, 0.54fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: start;
  overflow: visible;
}

.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);
}

.spotlight h3 {
  color: var(--blue);
}

.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: 900;
  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(213, 90, 62, 0.32);
  border-radius: 0;
}

.client-card span {
  color: var(--coral);
  font-size: 11px;
  font-weight: 900;
  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: 900;
}

.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: 900;
}

/* 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: 8px;
  min-height: 46px;
  border-radius: 999px;
  padding: 12px 20px;
  color: var(--white);
  background: var(--ink);
  font-size: 13px;
  font-weight: 900;
  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 14px 26px rgba(16, 16, 16, 0.18);
}

.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, 250, 240, 0.72);
  font-size: 12px;
  font-weight: 900;
  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;
}

.cover-frame {
  overflow: hidden;
  min-height: 340px;
  background: rgba(255, 250, 240, 0.52);
  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: 900;
}

.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%;
  max-height: 620px;
  border-radius: inherit;
  object-fit: contain;
  background: #f8f3e8;
}

.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: #050505;
}

.spotlight .cover-frame {
  min-height: clamp(320px, 38vw, 560px);
  border: 0;
}

.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(--coral);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

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

.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: #f8f3e8;
  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: #f8f3e8;
}

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

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: dense;
  align-items: start;
  gap: 10px;
}

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

.gallery-grid .slide-card {
  width: 100%;
  aspect-ratio: var(--ratio, 1 / 1);
}

.gallery-grid .slide-card:nth-child(1) {
  grid-row: span 2;
  aspect-ratio: var(--ratio, 3 / 4);
}

.gallery-slideshow {
  position: relative;
  display: block;
  width: 100%;
  height: clamp(320px, 44vw, 520px);
  overflow: hidden;
  background: #f8f3e8;
  border-radius: var(--radius);
}

.gallery-slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  object-fit: contain;
  background: #f8f3e8;
  animation: gallery-slide calc(var(--slide-count) * 2.8s) infinite;
  animation-delay: calc(var(--slide-index) * 2.8s);
}

.gallery-slideshow img:first-child {
  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;
}

.preview-gallery .slide-card img,
.preview-gallery .slide-card video {
  object-fit: contain;
  background: #f8f3e8;
}

@keyframes gallery-slide {
  0%,
  28% {
    opacity: 1;
  }

  36%,
  100% {
    opacity: 0;
  }
}

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

  .gallery-slideshow img:first-child {
    opacity: 1;
  }

  .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: #f8f3e8;
  border: 0;
  border-radius: var(--radius);
}

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

.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;
}

.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: 900;
  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: 900;
}

.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: 900;
}

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

.accent-clean .pill.strong {
  background: var(--green);
  border-color: var(--green);
}

.accent-bold .pill.strong,
.accent-sweet .pill.strong {
  background: var(--coral);
  border-color: var(--coral);
}

.accent-spark .pill.strong {
  background: var(--plum);
  border-color: var(--plum);
}

.accent-mineral .pill.strong {
  background: var(--blue);
  border-color: var(--blue);
}

.accent-motion .pill.strong,
.accent-soft .pill.strong,
.accent-mixed .pill.strong,
.accent-deck .pill.strong {
  background: var(--ink);
  border-color: var(--ink);
}

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

.contact .section-label {
  color: var(--yellow);
}

.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: 900;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

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

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

.contact-actions a:first-child:hover {
  background: #f5d878;
}

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(64vw, 340px);
    margin: 30px calc(clamp(18px, 5vw, 68px) * -1) 0;
    overflow: hidden;
  }

  .hero-face {
    right: -18vw;
    bottom: auto;
    top: -6vw;
    height: auto;
    width: min(150vw, 760px);
  }

  .profile-easter-egg {
    right: clamp(18px, 6vw, 44px);
    bottom: clamp(18px, 5vw, 38px);
    width: min(112px, 28vw);
  }

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

  .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: clamp(62px, 20vw, 92px);
  }

  .brief-icon,
  .brief a:nth-child(2) .brief-icon,
  .brief a:nth-child(3) .brief-icon {
    right: 18px;
    bottom: 16px;
    width: clamp(54px, 18vw, 78px);
    opacity: 0.88;
  }

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

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

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

  .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(86vw, 360px);
  }

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

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

  .profile-easter-egg {
    display: none;
  }

  .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 {
    grid-template-columns: 1fr;
  }

  .gallery-grid .slide-card:nth-child(1) {
    grid-row: span 1;
    aspect-ratio: var(--ratio, 1 / 1);
  }

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