/* CoverFlow work block. v20261006c */
#more-work.cf-on {
  --cf-paper: #D9D9D9;
  --cf-ink: #0A0B0F;
  --cf-muted: #4A4E57;   /* 5.9:1 on the grey */
  --cf-line: #B8BBC1;
  --cf-accent: #FF5A3C;  /* graphics and hover only */
  --cf-accent-text: #A82E18; /* 4.85:1, for small orange text */
  background: var(--cf-paper);
  color: var(--cf-ink);
}
#more-work.cf-on .section-head h2,
#more-work.cf-on .section-head p { color: var(--cf-ink); }
#more-work.cf-on .section-head p { color: var(--cf-muted); }
#more-work.cf-on .section-head .tag { color: var(--cf-accent-text); }
#more-work.cf-on { --accent-2: #A82E18; } /* keyboard focus ring readable on grey */
#more-work.cf-on .work-list { display: none; }

.cf { position: relative; margin-top: clamp(24px, 4vw, 56px); }

.cf-stage {
  position: relative;
  height: calc(var(--cf-w, 360px) * 0.75 * 1.15 + 120px);
  perspective: 1400px;
  perspective-origin: 50% 40%;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  outline: none;
  -webkit-user-select: none;
  user-select: none;
}
.cf-stage.is-dragging { cursor: grabbing; }

.cf-track { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }

.cf-card {
  position: absolute;
  left: 50%;
  top: 36px;
  width: var(--cf-w, 360px);
  margin-left: calc(var(--cf-w, 360px) / -2);
  aspect-ratio: 4 / 3;
  transform-style: preserve-3d;
  transition: transform 520ms cubic-bezier(.23, 1, .32, 1), opacity 400ms ease;
  will-change: transform;
}
.cf-stage.is-dragging .cf-card { transition: none; }

.cf-hit {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: #1a1c22;
  cursor: inherit;
  position: relative;
  box-shadow: 0 30px 60px -24px rgba(10, 11, 15, .45);
}
.cf-hit img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  pointer-events: none;
}

.cf-reflect {
  position: absolute;
  left: 0; top: 100%;
  width: 100%; height: 100%;
  margin-top: 4px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  transform: scaleY(-1);
  opacity: .22;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 45%);
          mask-image: linear-gradient(to top, #000 0%, transparent 45%);
  pointer-events: none;
}

.cf-card.is-active .cf-hit::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
  pointer-events: none;
}

/* Caption */
.cf-caption {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 32px;
  align-items: end;
  max-width: 1080px;
  margin: 0 auto;
  padding-top: 8px;
  border-top: 1px solid var(--cf-line);
}
.cf-count {
  grid-column: 1 / -1;
  font: 500 13px/1 Inter, system-ui, sans-serif;
  color: var(--cf-muted);
  font-variant-numeric: tabular-nums;
  padding-top: 16px;
}
.cf-name {
  margin: 0;
  font-family: dharma-gothic-c, "Dharma Gothic C", "Big Shoulders Display", Impact, sans-serif;
  font-size: clamp(40px, 6vw, 84px);
  line-height: .92;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--cf-ink);
}
.cf-role {
  grid-column: 1;
  margin: 6px 0 0;
  max-width: 60ch;
  font: 400 16px/1.5 Inter, system-ui, sans-serif;
  color: var(--cf-muted);
}
.cf-actions {
  grid-column: 2;
  grid-row: 2 / span 2;
  display: flex;
  gap: 8px;
  align-items: center;
}
.cf-btn {
  font: 600 15px/1 Inter, system-ui, sans-serif;
  border-radius: 999px;
  border: 1px solid var(--cf-ink);
  background: transparent;
  color: var(--cf-ink);
  height: 48px;
  padding: 0 22px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.cf-btn--solid { background: var(--cf-ink); color: #fff; }
.cf-btn--solid:hover { background: var(--cf-accent); border-color: var(--cf-accent); }
.cf-btn--icon { width: 48px; padding: 0; justify-content: center; font-size: 20px; }
.cf-btn:hover { border-color: var(--cf-accent); }
.cf-btn[disabled] { opacity: .3; cursor: default; }

/* Focus rings: keyboard only, the site's own accent-2 ring.
   Nothing shows on touch or mouse. */
.cf-stage:focus,
.cf-hit:focus,
.cf-btn:focus,
.cf-fbtn:focus,
.cf-close:focus { outline: none; }
.cf-stage:focus-visible { box-shadow: inset 0 0 0 2px var(--accent-2, #E5FF53); border-radius: 12px; }
.cf-btn:focus-visible,
.cf-fbtn:focus-visible,
.cf-close:focus-visible,
.cf-hit:focus-visible { outline: 2px solid var(--accent-2, #E5FF53); outline-offset: 3px; }

/* Project view: full-screen dialog, same pattern as the Current thinking
   player. Dark, so existing project content keeps its contrast. */
html.cf-locked { overflow: hidden; }
.cf-modal {
  /* Project view uses the same grey as the work section, so it reads as
     the same space. The site's own colour variables are remapped here,
     so every project component re-colours itself. Contrast on #D9D9D9:
     text 13.9:1, body 10:1, dim 5.9:1, small orange text 4.85:1. */
  --bg: #D9D9D9;
  --bg-alt: #D1D1D2;
  --surface: #E4E4E5;
  --surface-2: #ECECED;
  --border: #B8BBC1;
  --text: #0A0B0F;
  --text-body: #2E3138;
  --text-dim: #4A4E57;
  --text-faint: #50545C;
  --accent-2: #A82E18;
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--bg);
  color: var(--text);
}
.cf-modal::backdrop { background: rgba(10, 11, 15, .6); }
.cf-modal[open] { display: flex; flex-direction: column; animation: cfIn .28s cubic-bezier(.2, .7, .2, 1); }
@keyframes cfIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.cf-modal__bar {
  position: relative;
  z-index: 2;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: max(14px, env(safe-area-inset-top)) clamp(16px, 3vw, 40px) 14px;
  border-bottom: 1px solid var(--border, #272c38);
  background: var(--bg, #0A0B0F);
}
.cf-modal__title { display: flex; align-items: baseline; gap: 14px; min-width: 0; }
.cf-modal__count {
  color: var(--text-dim, #9aa0ad);
  font: 500 13px/1 Inter, system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}
.cf-modal__name {
  font-family: dharma-gothic-c, "Dharma Gothic C", "Big Shoulders Display", Impact, sans-serif;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cf-modal__scroll {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 96px; /* room under the foot bar */
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  outline: none;
}
.cf-detail {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) clamp(16px, 3vw, 40px) clamp(40px, 6vw, 72px);
}
.cf-detail .work-item { background: transparent; border: 0; margin: 0; padding: 0; }
.cf-detail .work-item__head { display: none; }
.cf-detail .work-item__body { max-height: none; overflow: visible; transition: none; }
.cf-detail .work-item__body-in { opacity: 1; transform: none; max-height: none; }
.cf-detail .reveal { opacity: 1; transform: none; }

/* Foot bar: previous / next project, always in reach */
.cf-modal__foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px clamp(16px, 3vw, 40px) max(14px, env(safe-area-inset-bottom));
  background: rgba(217, 217, 217, .75);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  border-top: 1px solid rgba(10, 11, 15, .12);
}
.cf-modal__pos {
  color: var(--text-dim);
  font: 500 13px/1 Inter, system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}
.cf-fbtn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  padding: 10px 18px;
  border: 1px solid rgba(10, 11, 15, .25);
  border-radius: 14px;
  background: rgba(255, 255, 255, .35);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  justify-self: start;
  transition: background .2s ease, border-color .2s ease;
}
.cf-fbtn--next { align-items: flex-end; text-align: right; justify-self: end; }
.cf-fbtn:hover:not(:disabled) { background: rgba(255, 255, 255, .6); border-color: var(--text); }
.cf-fbtn:disabled { visibility: hidden; }
.cf-fbtn__dir { font: 600 15px/1 Inter, system-ui, sans-serif; }
.cf-fbtn__name {
  max-width: 34ch;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--text-dim);
  font: 400 13px/1.2 Inter, system-ui, sans-serif;
}
@media (max-width: 640px) {
  .cf-fbtn { padding: 10px 14px; }
  .cf-fbtn__name { display: none; }
}

/* Full case study pulled into the view: show it instead of the summary */
.cf-detail .work-item__body-in.has-full { display: block; max-width: none; }
.cf-detail .work-item__body-in.has-full > :not(.cf-full) { display: none; }
.cf-full .proj-main { max-width: 860px; margin-left: auto; margin-right: auto; }
.cf-inline-video { display: block; width: 100%; height: auto; object-fit: contain; background: #000; border-radius: 12px; }

/* Scrubber under the covers: drag the dot or click the line */
.cf-scrub {
  --p: 0;
  position: relative;
  max-width: 1080px;
  height: 28px;
  margin: 4px auto 8px;
  cursor: pointer;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
.cf-scrub::before,
.cf-scrub::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  border-radius: 1px;
  pointer-events: none;
}
.cf-scrub::before { right: 0; background: var(--cf-line); }
.cf-scrub::after { width: calc(var(--p) * (100% - 14px) + 7px); background: var(--cf-muted); }
.cf-scrub__dot {
  position: absolute;
  top: 50%;
  left: calc(var(--p) * (100% - 14px));
  z-index: 1;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  background: var(--cf-ink);
  box-shadow: 0 0 0 4px var(--cf-paper);
  transition: left .45s cubic-bezier(.23, 1, .32, 1), scale .15s ease;
  cursor: grab;
}
.cf-scrub:hover .cf-scrub__dot { scale: 1.15; }
.cf-scrub.is-scrubbing .cf-scrub__dot { scale: 1.25; cursor: grabbing; transition: scale .15s ease; }
.cf-caption { border-top: 0; }

/* "View project" hint on the front cover */
.cf-hint {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(10, 11, 15, .78);
  color: #fff;
  font: 600 13px/1 Inter, system-ui, sans-serif;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.cf-card.is-active .cf-hit { cursor: pointer; }
.cf-card.is-active .cf-hint { opacity: .92; }
@media (hover: hover) {
  .cf-card.is-active .cf-hint { opacity: 0; }
  .cf-card.is-active .cf-hit:hover .cf-hint { opacity: 1; }
}

/* Every open project reads top to bottom: copy at a comfortable measure,
   then the media full width so it has impact (was squeezed into a side
   column). The flagship already works this way. */
.cf-detail .work-item:not(.work-item--flagship) .work-item__body-in {
  grid-template-columns: 1fr;
  gap: 36px;
  max-width: 980px;
  margin: 0 auto;
}
.cf-detail .work-item__copy { max-width: 68ch; }
.cf-detail .work-item__gallery { width: 100%; }

/* No green rule beside captions in the open project */
.cf-detail .proj-gallery__caption,
.cf-detail .proj-hero + .proj-hero__caption,
.cf-detail .work-item__hero-caption {
  border-left: 0;
  padding-left: 0;
  min-height: 0;
}

/* Same close button as the rest of the site (.reel-lightbox__close) */
.cf-close {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .35);
  border: 1px solid rgba(10, 11, 15, .25);
  color: var(--text);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.cf-close:hover { background: rgba(255, 255, 255, .6); border-color: var(--text); }

.cf-sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

@media (max-width: 720px) {
  .cf-caption { grid-template-columns: 1fr; }
  .cf-actions { grid-column: 1; grid-row: auto; flex-wrap: wrap; margin-top: 12px; }
  .cf-modal__count { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cf-card { transition: none; }
}

/* Film player on top of the project view. Dark, whatever the project
   view colours are, so the shared foot bar reads correctly. */
.cf-player {
  --bg: #0a0b0f;
  --surface: #171a22;
  --surface-2: #1d212b;
  --border: #272c38;
  --text: #f2f1ee;
  --text-body: #adb3c0;
  --text-dim: #9aa0ad;
  --text-faint: #666d7d;
  --accent-2: #E5FF53;
  color: var(--text);
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  grid-template-rows: 1fr auto;
  padding: clamp(56px, 7vh, 80px) clamp(12px, 3vw, 40px) 104px;
  background: rgba(5, 6, 9, .94);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  animation: cfIn .22s ease;
}
.cf-player[hidden] { display: none; }
.cf-player__stage { width: 100%; height: 100%; display: grid; place-items: center; min-height: 0; }
.cf-player__stage video {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 12px;
  background: #000;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
}
.cf-player__close {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  right: clamp(14px, 3vw, 40px);
  background: rgba(16, 18, 24, .5) !important;
  border-color: rgba(255, 255, 255, .16) !important;
  color: #f2f1ee !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2);
}

.cf-player__label {
  margin: 12px 0 0;
  max-width: 70ch;
  color: var(--text-dim);
  font: 400 14px/1.4 Inter, system-ui, sans-serif;
  text-align: center;
}
.cf-player.is-single .th-rail__fbtn { visibility: hidden; }
@media (max-width: 640px) {
  .cf-player { padding-bottom: 92px; }
}

/* Document viewer on top of the project view */
.cf-doc {
  position: absolute;
  inset: 0;
  z-index: 11;
  display: flex;
  flex-direction: column;
  background: rgba(5, 6, 9, .94);
  animation: cfIn .22s ease;
}
.cf-doc[hidden] { display: none; }
.cf-doc__bar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: max(12px, env(safe-area-inset-top)) clamp(14px, 3vw, 40px) 12px;
  color: #f2f1ee;
  background: rgba(16, 18, 24, .5);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
          backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.cf-doc__title {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font: 600 15px/1.2 Inter, system-ui, sans-serif;
}
.cf-doc__actions { display: flex; align-items: center; gap: 10px; flex: none; }
.cf-doc__btn {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: #f2f1ee;
  font: 600 13.5px/1 Inter, system-ui, sans-serif;
  text-decoration: none;
}
.cf-doc__btn:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); }
.cf-doc__close {
  background: rgba(255, 255, 255, .06) !important;
  border-color: rgba(255, 255, 255, .16) !important;
  color: #f2f1ee !important;
}
.cf-doc__frame { flex: 1; min-height: 0; padding: clamp(8px, 2vw, 24px); }
.cf-doc__frame iframe {
  display: block;
  width: 100%;
  max-width: 1100px;
  height: 100%;
  margin: 0 auto;
  border: 0;
  border-radius: 10px;
  background: #fff;
}
@media (max-width: 640px) {
  .cf-doc__open { display: none; }
  .cf-doc__frame { padding: 0; }
  .cf-doc__frame iframe { border-radius: 0; }
}

/* Embedded films (Vimeo / YouTube) in the project player. 16:9, as large
   as the stage allows on any screen. v20261007a */
.cf-player__embed {
  display: block;
  width: min(100%, calc((100vh - 220px) * 16 / 9));
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: 12px;
  background: #000;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
}
@supports (height: 100dvh) {
  .cf-player__embed { width: min(100%, calc((100dvh - 220px) * 16 / 9)); }
}

/* Document as page images (phones / tablets). v20261007a */
.cf-doc__pages {
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-x pan-y pinch-zoom;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 0 max(24px, env(safe-area-inset-bottom));
  outline: none;
}
.cf-doc__pages img {
  display: block;
  width: 100%;
  max-width: 1100px;
  height: auto;
  margin: 0 auto;
  border-radius: 6px;
  background: #1a1c22;
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .7);
}
.cf-doc--pages .cf-doc__frame { padding: 0 clamp(10px, 3vw, 24px); }
@media (max-width: 640px) {
  .cf-doc--pages .cf-doc__frame { padding: 0 8px; }
  .cf-doc__pages { gap: 8px; }
  .cf-doc__pages img { border-radius: 4px; }
}
