/* Campaign title faces */
@font-face {
  font-family: 'Garamond NI';
  src: url('../assets/fonts/EBGaramond-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Workspace: a fixed scene — project wheel, terminal, blueprint, stats. */

body.ws {
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-rows: 40px minmax(0, 1fr) 26px;
  overflow: clip;
}

/* ── header ─────────────────────────────────────────────────────────── */

.ws-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  border-bottom: 1px solid var(--hair);
  min-width: 0;
}
.ws-path {
  color: var(--dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.ws-ctl {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.ws-ctl kbd {
  color: var(--fg);
}
.ws-campaigns {
  display: none !important;
}

/* ── main grid ──────────────────────────────────────────────────────── */

.ws-main {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 300px;
  min-height: 0;
  min-width: 0;
}
:root.arriving .ws-main > * {
  opacity: 0;
}
.ws-main > * {
  transition: opacity 0.7s var(--ease);
}
:root.arrived .ws-main > *:nth-child(2) {
  transition-delay: 0.08s;
}
:root.arrived .ws-main > *:nth-child(3) {
  transition-delay: 0.16s;
}

/* ── wheel ──────────────────────────────────────────────────────────── */

.wheel-col {
  position: relative;
  min-height: 0;
  border-right: 1px solid var(--hair);
  overflow: hidden;
  contain: paint;
}
.wheel {
  position: absolute;
  inset: 0 0 44px 0;
  overflow: clip;
  touch-action: none;
  user-select: none;
  cursor: grab;
}
.wheel.dragging {
  cursor: grabbing;
}
.wheel:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: -4px;
}
.wheel::before {
  /* the arc's guide line, drawn by the cards' own registration marks */
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px dashed var(--hair);
}
.card {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  transform-origin: 100% 50%;
  will-change: transform, opacity;
  color: var(--dim);
}
.card .thumb {
  position: relative;
  flex: none;
  width: 150px;
  height: 76px;
  border: 1px solid var(--line);
  background: var(--raise);
  overflow: hidden;
  transition: border-color 0.2s;
}
.card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.85);
  pointer-events: none;
  -webkit-user-drag: none;
}
.card .thumb.campaign {
  background:
    linear-gradient(var(--hair) 1px, transparent 1px) 0 0 / 10px 10px,
    linear-gradient(90deg, var(--hair) 1px, transparent 1px) 0 0 / 10px 10px,
    var(--raise);
}
.card .thumb.campaign b {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 7px;
  font: italic 400 24px/0.95 var(--serif);
  color: var(--fg);
}
.card .thumb.campaign .yr {
  position: absolute;
  top: 6px;
  right: 8px;
  color: var(--dim);
}
.card .thumb.campaign .stripe {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  display: flex;
}
.card .thumb.campaign .stripe i {
  flex: 1;
}
.card .thumb.campaign::before {
  /* registration dot, as on the mark */
  content: '';
  position: absolute;
  top: 9px;
  left: 9px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--mark);
}
.card .thumb.main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background:
    linear-gradient(var(--hair) 1px, transparent 1px) 0 0 / 10px 10px,
    linear-gradient(90deg, var(--hair) 1px, transparent 1px) 0 0 / 10px 10px,
    var(--raise);
}
.card .thumb.main .mark {
  --s: 22px;
}
.card .thumb.main b {
  max-width: 96px;
  font: 400 26px/1 var(--brand);
  letter-spacing: 0;
  color: var(--fg);
}
.card .label {
  order: -1;
  width: 96px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 1px;
  white-space: nowrap;
}
.card .label span {
  max-width: 96px;
  white-space: normal;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.card .label i {
  font-style: normal;
  color: var(--faint);
}
.card[aria-selected='true'] {
  color: var(--fg);
}
.card[aria-selected='true'] .thumb {
  border-color: var(--accent);
}
.card[aria-selected='true'] .label i {
  color: var(--mark);
}
.card .tick {
  position: absolute;
  right: -14px;
  top: 50%;
  width: 8px;
  border-top: 1px solid var(--line);
}
.card[aria-selected='true'] .tick {
  border-color: var(--mark);
  width: 12px;
  right: -18px;
}

.wheel-ctl {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--hair);
  color: var(--dim);
}
.wheel-ctl button {
  width: 44px;
  height: 44px;
  color: var(--dim);
}
.wheel-ctl button:hover {
  color: var(--fg);
}

/* ── terminal ───────────────────────────────────────────────────────── */

.term {
  display: grid;
  grid-template-rows: 28px minmax(0, 1fr) 30px;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
}
.term-bar,
.bp-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  color: var(--faint);
  border-bottom: 1px solid var(--hair);
  white-space: nowrap;
  min-width: 0;
}
.term-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--dim);
}
.term-bar-r {
  flex: none;
  display: inline-flex;
  gap: 14px;
  align-items: center;
}
.term-skip b {
  color: var(--accent);
}
.term-body {
  position: relative;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px 28px 28px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.term-body:focus-visible {
  outline-offset: -2px;
}
.term-out {
  max-width: 680px;
}
.term-more {
  position: sticky;
  bottom: -28px;
  float: right;
  margin-right: -12px;
  padding: 2px 6px;
  background: var(--bg);
  color: var(--faint);
  opacity: 0;
  transition: opacity 0.2s;
}
.term-body.has-more .term-more {
  opacity: 1;
}

/* intro block per project */
.intro {
  margin: 0 0 22px;
  position: relative;
}
.intro-kick {
  color: var(--dim);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.intro-kick i {
  font-style: normal;
  color: var(--mark);
}
.intro h1 {
  margin: 8px 0 6px;
  font: italic 400 clamp(40px, 5.2vw, 64px) / 0.95 var(--serif);
  letter-spacing: -0.01em;
  color: var(--fg);
  text-wrap: balance;
}
.intro p {
  margin: 0;
  color: var(--dim);
  max-width: 56ch;
}
.intro-rule {
  position: relative;
  height: 1px;
  margin: 16px 0 0;
  background: var(--line);
}
.intro-rule::before,
.intro-rule::after {
  content: '';
  position: absolute;
  top: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mark);
  transform: scale(0.6);
}
.intro-rule::before {
  left: -3px;
}
.intro-rule::after {
  right: -3px;
  background: var(--line);
}

/* session lines */
.ln {
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 1.5em;
}
.ln.cmd {
  margin-top: 12px;
  color: var(--fg);
}
.ln.cmd .ps {
  color: var(--dim);
}
.ln.cmd .ps b {
  font-weight: 400;
  color: var(--accent);
}
.ln.out {
  color: var(--dim);
}
.ln.err {
  color: var(--mark);
}
.ln a {
  color: var(--fg);
}
.caret {
  display: inline-block;
  width: 7px;
  height: 13px;
  margin-left: 1px;
  vertical-align: -2px;
  background: var(--cursor);
  animation: caret 1.06s steps(1) infinite;
}
@keyframes caret {
  50% {
    opacity: 0;
  }
}
.k {
  color: var(--faint);
  display: inline-block;
  min-width: 11ch;
}
.v {
  color: var(--fg);
}
.acc {
  color: var(--accent);
}
.mk {
  color: var(--mark);
}

.fetch {
  display: flex;
  gap: 24px;
  margin: 6px 0 2px;
}
.fetch pre {
  margin: 0;
  font: inherit;
  line-height: 1.2;
  color: var(--fg);
}
.fetch pre.mark-art {
  font-size: 9px;
  line-height: 1.2;
  letter-spacing: 0;
}
.fetch pre .mk {
  color: var(--mark);
}
.fetch .rows .ln {
  min-height: 0;
}
.fetch .hd {
  color: var(--fg);
}
.fetch .hd b {
  font-weight: 400;
  color: var(--accent);
}
.swatches {
  display: flex;
  gap: 3px;
  margin-top: 6px;
}
.swatches i {
  width: 14px;
  height: 10px;
  display: block;
}

.looks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin: 8px 0 4px;
}
.looks button {
  display: block;
  text-align: left;
  color: var(--dim);
}
.looks img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--line);
  transition: border-color 0.2s;
}
.looks button:hover img,
.looks button:focus-visible img {
  border-color: var(--accent);
}
.looks span {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ls {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}
.ls button {
  color: var(--fg);
}
.ls button:hover {
  color: var(--accent);
}
.ls button::after {
  content: '/';
  color: var(--faint);
}

.term-prompt {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0 16px 0 28px;
  border-top: 1px solid var(--hair);
}
.term-ps {
  color: var(--dim);
  white-space: nowrap;
}
.term-prompt input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: none;
  color: var(--fg);
  font: inherit;
  caret-color: var(--cursor);
}
.term-prompt input::placeholder {
  color: var(--faint);
}
.term-prompt input:focus-visible {
  outline: none;
}
.term-prompt:focus-within {
  background: var(--raise);
}
.term-hint {
  color: var(--faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 50%;
}

/* ── side: blueprint + camera readout ───────────────────────────────── */

.side {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-columns: minmax(0, 1fr);
  border-left: 1px solid var(--hair);
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}
.side > * {
  min-width: 0;
}
.bp-bar {
  height: 28px;
}
.bp-stage {
  position: relative;
  aspect-ratio: 1;
  max-height: 46vh;
  width: 100%;
}
.bp-stage canvas,
.cam canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.bp-stage canvas {
  cursor: crosshair;
}
.bp-reveal {
  height: auto;
  flex: none;
}
.bp-reveal[aria-pressed='true'] {
  color: var(--fg);
}
.bp-read {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 6px 16px 8px;
  color: var(--dim);
  border-bottom: 1px solid var(--hair);
}
.bp-read span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.side-lower {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
  min-width: 0;
}
/* a campaign with a film: the film takes what it needs, at least half */
.side-lower.split {
  grid-template-rows: minmax(min-content, 1fr) minmax(0, 1fr);
}
.vid {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-bottom: 1px solid var(--hair);
}
.vid[hidden] {
  display: none;
}
.vid .bp-bar {
  height: 28px;
  flex: none;
}
#vid-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--dim);
}
.vid-body {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 12px 16px;
}
.vid-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--line);
}
.vid-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.vid-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* clicks toggle the site's pause, which drives the film */
.vid-hit {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  cursor: pointer;
}
.vid-hit .state {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 3px 10px;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--line);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s;
}
.vid-hit:focus-visible .state {
  opacity: 1;
}
.vid-hit:hover .state {
  opacity: 1;
  border-color: var(--accent);
}
.vid-hit:focus-visible {
  outline-offset: -1px;
}
.vid-sound {
  flex: none;
  height: auto;
}
.vid-sound[hidden] {
  display: none;
}
.vid-sound[aria-pressed='true'] {
  color: var(--fg);
}
.cam {
  position: relative;
  min-height: 92px;
}

/* ── footer stats line ──────────────────────────────────────────────── */

.ws-foot {
  display: flex;
  align-items: stretch;
  background: var(--hair);
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
}
.ws-foot > span {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
}
.ws-mode {
  background: var(--accent);
  color: var(--bg);
  font-weight: 500;
  letter-spacing: 0.06em;
}
:root[data-ws-mode='INSERT'] .ws-mode {
  background: var(--mark);
}
:root[data-ws-mode='TYPING'] .ws-mode {
  background: var(--dim);
}
.ws-stats {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block !important;
  line-height: 26px;
}
.ws-stats b {
  font-weight: 400;
  color: var(--fg);
}

/* ── dialogs ────────────────────────────────────────────────────────── */

.zoom {
  padding: 0;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
  max-width: min(1200px, 94vw);
  max-height: 92vh;
}
.zoom::backdrop,
.sheet::backdrop {
  background: color-mix(in srgb, var(--bg) 80%, transparent);
}
.zoom figure {
  margin: 0;
}
.zoom-media {
  display: flex;
  justify-content: center;
  background: var(--raise);
}
/* the film, large: the whole frame, never cropped, with the site's own
   controls (site/player.js) in a status-line bar beneath it */
.player {
  display: flex;
  flex-direction: column;
  width: min(1280px, 94vw);
  background: var(--bg);
}
.player:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: -1px;
}
.player-frame {
  position: relative;
  background: #000;
  cursor: pointer;
}
.player video {
  display: block;
  width: 100%;
  max-height: calc(92vh - 32px - 34px);
  aspect-ratio: 16 / 9;
  object-fit: contain;
}
.player-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 3px 10px;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--line);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.player.is-paused .player-badge,
.player-frame:hover .player-badge {
  opacity: 1;
}
.player:not(.is-paused) .player-badge {
  opacity: 0;
}
.player-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 34px;
  padding: 0 12px;
  border-top: 1px solid var(--line);
  background: var(--hair);
  color: var(--dim);
  white-space: nowrap;
}
.player-bar button {
  color: var(--fg);
  height: 100%;
}
.player-bar button:hover,
.player-bar button:focus-visible {
  color: var(--accent);
  outline: none;
}
.player-play {
  min-width: 8ch;
  text-align: left;
}
.player-time {
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.player-time i {
  font-style: normal;
  color: var(--faint);
}
.player-scrub {
  --done: 0;
  --buf: 0;
  --hover: 0;
  position: relative;
  flex: 1;
  height: 100%;
  cursor: pointer;
  touch-action: none;
}
.player-scrub::before,
.player-scrub .buf,
.player-scrub .done {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  height: 1px;
  transform: translateY(-50%);
}
.player-scrub::before {
  right: 0;
  background: var(--line);
}
.player-scrub .buf {
  width: calc(var(--buf) * 100%);
  background: var(--faint);
}
.player-scrub .done {
  width: calc(var(--done) * 100%);
  height: 2px;
  background: var(--accent);
}
.player-scrub .head {
  position: absolute;
  top: 50%;
  left: calc(var(--done) * 100%);
  width: 2px;
  height: 11px;
  transform: translate(-50%, -50%);
  background: var(--accent);
}
.player-scrub .tip {
  position: absolute;
  bottom: calc(50% + 9px);
  left: calc(var(--hover) * 100%);
  transform: translateX(-50%);
  padding: 1px 6px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--fg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}
.player-scrub:hover .tip {
  opacity: 1;
}
.player-scrub:focus-visible {
  outline: none;
}
.player-scrub:focus-visible .head {
  width: 3px;
  height: 14px;
}
/* fullscreen: the frame fills, the bar stays */
.player.is-full {
  width: 100vw;
  height: 100vh;
}
.player.is-full .player-frame {
  flex: 1;
  min-height: 0;
}
.player.is-full video {
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
}
@media (max-width: 820px) {
  .player {
    width: 100vw;
  }
  .player-bar {
    gap: 12px;
  }
  .player-bar button {
    min-height: 40px;
  }
}
.zoom-media img,
.zoom-media .piece-media {
  max-width: 100%;
  max-height: calc(92vh - 32px);
  object-fit: contain;
}
.zoom-media .piece-media {
  width: min(560px, 90vw);
  aspect-ratio: 400 / 440;
  border: 0;
}
.zoom-media .piece-media.photo {
  width: auto;
  /* photos are 800×1066 (2× of the 400px originals, edges re-matted) */
  height: min(720px, calc(92vh - 32px));
  aspect-ratio: 400 / 533;
}
.zoom figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  height: 30px;
  padding: 0 10px;
  color: var(--dim);
  border-top: 1px solid var(--line);
}

.sheet {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--bg);
  color: var(--fg);
}
.sheet-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid var(--hair);
  color: var(--dim);
}
.sheet-slot {
  position: relative;
  height: calc(100% - 44px);
}
.sheet-slot .wheel-col {
  position: absolute;
  inset: 0;
  border: 0;
}

/* ── arrival ────────────────────────────────────────────────────────── */

.arrive {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 60;
  display: none;
}
:root.arriving .arrive,
:root.arrived .arrive {
  display: block;
}

.nojs h1 {
  font: 400 64px/1 var(--brand);
  margin: 0 0 12px;
}
.nojs li {
  margin: 4px 0;
}

/* ── responsive ─────────────────────────────────────────────────────── */

@media (max-width: 1180px) {
  .ws-main {
    grid-template-columns: 270px minmax(0, 1fr);
  }
  .side {
    display: none;
  }
}
@media (max-width: 820px) {
  .ws-main {
    grid-template-columns: minmax(0, 1fr);
  }
  .ws-main > .wheel-col {
    display: none;
  }
  .sheet .wheel-col {
    display: block;
  }
  .ws-campaigns {
    display: inline-flex !important;
    color: var(--fg) !important;
  }
  .ws-hide-sm,
  .ws-path {
    display: none !important;
  }
  .ws-head {
    padding: 0 14px;
    gap: 12px;
  }
  .ws-ctl {
    gap: 14px;
  }
  .term-body {
    padding: 18px 16px 24px;
  }
  .term-prompt {
    padding: 0 12px 0 16px;
  }
  .term-prompt input {
    font-size: 16px;
  }
  body.ws {
    font-size: 12px;
  }
  .ctl {
    height: 32px;
  }
}
@media (max-width: 400px) {
  .ws-head {
    gap: 8px;
    padding: 0 12px;
  }
  .ws-ctl {
    gap: 10px;
  }
  .wordmark {
    font-size: 12px;
    gap: 7px;
  }
}

/* ── campaign: stripes, catalogue, film ─────────────────────────────── */

.intro-stripes {
  display: flex;
  height: 4px;
  margin: 16px 0 0;
}
.intro-stripes i {
  flex: 1;
}
.swatches.inline {
  display: inline-flex;
  margin: 0;
  vertical-align: -1px;
}
.swatches.inline i {
  width: 10px;
}

.shop {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
  margin: 10px 0 4px;
}
.piece {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  color: var(--dim);
}
.piece-media {
  display: block;
  aspect-ratio: 400 / 440;
  background: var(--raise);
  border: 1px solid var(--line);
  transition: border-color 0.2s;
  overflow: hidden;
}
.piece-media.photo {
  aspect-ratio: 400 / 533;
}
.piece-media img,
.piece-media svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.piece:hover .piece-media,
.piece:focus-visible .piece-media {
  border-color: var(--accent);
}
.piece:focus-visible {
  outline: none;
}
.piece-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--fg);
}
.piece-meta .k {
  min-width: 0;
}
.piece-meta .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 7px;
  vertical-align: 0;
}
.piece-finish {
  color: var(--dim);
}
.film {
  display: block;
  width: 100%;
  margin: 8px 0 4px;
  background: #000;
  border: 1px solid var(--line);
}
.zoom figcaption > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── apply to buy (beside a piece's photo) ──────────────────────────── */

.zoom-body {
  display: block;
}
.zoom.has-side {
  max-width: min(1120px, 96vw);
}
.zoom.has-side .zoom-body {
  display: grid;
  grid-template-columns: minmax(0, auto) 340px;
}
.zoom-side {
  border-left: 1px solid var(--line);
  background: var(--bg);
  max-height: 92vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.zoom-side[hidden] {
  display: none;
}

.apply {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 22px 20px;
  min-height: 100%;
}
.apply-kick {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--dim);
}
.apply-kick span:first-of-type {
  color: var(--mark);
}
.apply-kick span + span::before {
  content: '·';
  margin-right: 8px;
  color: var(--faint);
}
.apply-kick .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.apply-head h2 {
  margin: 10px 0 6px;
  font: italic 400 36px / 1 var(--serif);
  color: var(--fg);
}
.apply-head p {
  margin: 0;
  color: var(--dim);
}

.apply-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--hair);
}
.field label {
  display: flex;
  justify-content: space-between;
  color: var(--faint);
}
.field .opt {
  color: var(--faint);
  opacity: 0.8;
}
.field .row {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.15s;
}
.field .row::before {
  content: '❯';
  color: var(--faint);
  transition: color 0.15s;
}
.field input {
  flex: 1;
  min-width: 0;
  height: 30px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--fg);
  font: 400 12px / 1 var(--mono);
  caret-color: var(--cursor);
}
.field input::placeholder {
  color: var(--faint);
}
.field input:focus-visible {
  outline: none;
}
.field:focus-within label > span:first-child {
  color: var(--fg);
}
.field:focus-within .row {
  border-color: var(--accent);
}
.field:focus-within .row::before {
  color: var(--accent);
}
.field.bad .row {
  border-color: var(--mark);
}
.field.bad .row::before,
.field .err {
  color: var(--mark);
}
.field .err {
  display: block;
  min-height: 1.5em;
  margin-top: 3px;
}
.field .err:empty {
  min-height: 0;
  margin: 0;
}
/* keep autofill from repainting the fields in the browser's colors */
.field input:-webkit-autofill {
  -webkit-text-fill-color: var(--fg);
  -webkit-box-shadow: 0 0 0 40px var(--bg) inset;
  transition: background-color 9999s;
}
/* the decoy field only bots fill in */
.apply-form .trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.apply-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.apply-submit {
  height: 32px;
  padding: 0 16px;
  border: 1px solid var(--line);
  color: var(--fg);
  transition: border-color 0.15s, color 0.15s;
}
.apply-submit b {
  font-weight: 400;
  color: var(--accent);
}
.apply-submit:hover,
.apply-submit:focus-visible {
  border-color: var(--accent);
  outline: none;
}
.apply-submit:disabled {
  color: var(--dim);
  cursor: progress;
}
.apply-status {
  margin: 0;
  color: var(--dim);
}
.apply-status.bad {
  color: var(--mark);
}
.apply-note {
  margin: 0;
  color: var(--faint);
}
.apply-done {
  padding-top: 14px;
  border-top: 1px solid var(--hair);
  color: var(--dim);
}
.apply-done p {
  margin: 0 0 4px;
}
.apply-done .ok {
  color: var(--fg);
}
.apply-done .ok b {
  font-weight: 400;
  color: var(--accent);
}

@media (pointer: coarse) {
  .field input {
    font-size: 16px; /* stops iOS zooming into the field */
    height: 38px;
  }
  .apply-submit {
    height: 40px;
  }
}
@media (max-width: 820px) {
  .zoom.has-side {
    width: 100vw;
    max-width: 100vw;
    max-height: 100dvh;
    height: 100dvh;
    margin: 0;
    overflow-y: auto;
  }
  .zoom.has-side .zoom-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .zoom.has-side .zoom-media .piece-media.photo {
    height: min(56vh, 520px);
  }
  .zoom-side {
    border-left: 0;
    border-top: 1px solid var(--line);
    max-height: none;
    overflow: visible;
  }
  .apply {
    padding: 20px 16px 28px;
  }
}

/* the house wordmark, set in the handwritten brand face */
.intro h1.t-brand {
  font: 400 clamp(48px, 6.6vw, 88px) / 1 var(--brand);
  letter-spacing: 0;
}

/* 'garamond': the shirts' Apple Garamond, approximated with EB Garamond,
   condensed and set tight (Apple's face is ITC Garamond Condensed, tracked in) */
.t-garamond {
  font-family: 'Garamond NI', Garamond, 'Times New Roman', serif !important;
  font-style: normal !important;
  letter-spacing: -0.045em;
  word-spacing: -0.05em;
  display: inline-block;
  transform: scaleX(0.76);
  transform-origin: left bottom;
}
.intro h1.t-garamond {
  font-size: clamp(48px, 6.6vw, 82px);
  line-height: 0.95;
}
.card .thumb.campaign b.t-garamond {
  right: auto;
  font-size: 30px;
}

.shop-head {
  margin-top: 10px;
}
.shop-head button {
  color: var(--fg);
}
.shop-head button:hover {
  color: var(--accent);
}
.shop-head span {
  color: var(--dim);
}
