/* Home: the seven-brand run. On a desktop it is pinned and moves sideways, the ground turning into each
   brand's own colour; on a phone and without script it is a stack of brand cards. Builds on site.css. */

.run { --run-bg: #EAE7E3; --run-ink: #121317; --run-hi: #B63C0F; position: relative; }
.run__pin { background: var(--run-bg); color: var(--run-ink); transition: background-color .7s var(--ease-pull), color .7s var(--ease-pull); }
.run__track { display: grid; }
.run__panel { position: relative; padding: clamp(88px, 12vw, 140px) var(--pad) clamp(64px, 9vw, 120px); }

/* ---- the proof sheet of marks ---- */
.run__panel--sheet { color: var(--ink); }
.sheet__kicker { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sheet__sticker, .run__concept {
  display: inline-block; padding: 4px 9px 3px; background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-label), monospace; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  transform: rotate(-3deg);
}
.sheet__title {
  font-family: var(--font-display), system-ui, sans-serif; font-weight: 700; letter-spacing: -.045em; line-height: .9;
  font-size: clamp(46px, 7.2vw, 128px); max-width: 11ch; margin-top: 22px;
}
.sheet__body { margin-top: 28px; max-width: 52ch; font-size: clamp(17px, 1.25vw, 19px); line-height: 1.5; color: var(--muted); }
.sheet {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0;
  border-top: 1px solid var(--rule); border-left: 1px solid var(--rule);
}
.sheet__cell {
  position: relative; aspect-ratio: 1; display: grid; place-items: center;
  border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: rgba(244, 242, 239, .55);
}
.sheet__cell img { width: 46%; height: 46%; object-fit: contain; }
.sheet__name { position: absolute; left: 12px; bottom: 10px; color: var(--muted); font-size: 11px; }
/* crop marks at the four corners of each cell, like a printer's sheet */
.sheet__crop, .sheet__crop::before, .sheet__crop::after { position: absolute; pointer-events: none; }
.sheet__crop { inset: 10px; }
.sheet__crop::before, .sheet__crop::after {
  content: ""; width: 14px; height: 14px; border: 0 solid var(--ink); opacity: .55;
}
.sheet__crop::before { left: 0; top: 0; border-left-width: 1px; border-top-width: 1px; }
.sheet__crop::after { right: 0; top: 0; border-right-width: 1px; border-top-width: 1px; }
.sheet__hint { display: none; }

/* ---- a brand panel ---- */
.run__meta { display: grid; gap: 18px; align-content: start; }
.run__count { display: flex; align-items: center; gap: 14px; opacity: .8; }
.run__name {
  font-family: var(--font-display), system-ui, sans-serif; font-weight: 700; letter-spacing: -.055em; line-height: .82;
  font-size: clamp(72px, 13vw, 220px);
}
.run__what { opacity: .8; }
.run__idea { font-size: clamp(24px, 2.6vw, 40px); line-height: 1.06; letter-spacing: -.025em; font-weight: 500; max-width: 16ch; }
.run__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.run__chips li {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border: 1px solid currentColor;
  border-radius: 999px; font-size: 11px; opacity: .9;
}
.run__chips li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px rgba(0,0,0,.18); }
.run__chips .mono { font-size: 11px; }
.run__film, .run__photo, .run__phone { margin: 0; }
.run__film video, .run__photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.run__film { aspect-ratio: 4 / 5; margin-top: 28px; }
.run__film figcaption, .run__phone figcaption { margin-top: 10px; font-size: 11px; opacity: .75; }
.run__photo { display: none; }
.run__phone { display: none; }
.run__screen { width: 100%; height: 100%; border-radius: 30px; overflow: hidden; background: #000;
  box-shadow: 0 0 0 7px #0d0e10, 0 0 0 8px rgba(255,255,255,.18), 0 30px 60px -20px rgba(0,0,0,.45); }
.run__screen video { width: 100%; height: 100%; object-fit: cover; }

/* ---- the last panel ---- */
.run__panel--end { display: grid; align-content: center; gap: 28px; min-height: 80svh; }
.run__end { font-family: var(--font-display), system-ui, sans-serif; font-weight: 700; letter-spacing: -.045em; line-height: .92;
  font-size: clamp(44px, 7vw, 120px); max-width: 13ch; }
.run__panel--end .btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Phone and no-script: every brand panel carries its own colour. */
.run__panel[data-run-panel][data-bg] { background: var(--pbg); color: var(--pink); }

/* ---- the pinned horizontal run, fine pointers on wide screens ---- */
@media (min-width: 960px) {
  .sheet { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .run.is-run .run__pin { height: 100svh; overflow: hidden; }
  .run.is-run .run__track { display: flex; height: 100%; width: max-content; will-change: transform; }
  .run.is-run .run__panel { flex: none; height: 100%; background: transparent !important; color: inherit; padding-top: calc(var(--header-h) + clamp(28px, 4vh, 56px)); padding-bottom: clamp(28px, 5vh, 56px); }
  .run.is-run .run__panel--sheet {
    width: 100vw; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(32px, 4vw, 72px); align-content: center;
    background-image: linear-gradient(to right, rgba(18,19,23,.07) 1px, transparent 1px), linear-gradient(to bottom, rgba(18,19,23,.07) 1px, transparent 1px) !important;
    background-size: 12.5vw 12.5vw; background-position: -1px -1px;
  }
  .run.is-run .sheet { margin-top: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); align-self: center; }
  .run.is-run .sheet__cell:nth-child(5) { grid-column: 2; }
  .run.is-run .sheet__hint { display: flex; gap: 10px; position: absolute; right: var(--pad); bottom: clamp(24px, 4vh, 40px); color: var(--muted); }
  .run.is-run .sheet__hint span { color: var(--accent); }
  .run.is-run .run__panel:not(.run__panel--sheet):not(.run__panel--end) {
    width: min(92vw, 1500px);
    display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px);
    align-items: center;
  }
  .run.is-run .run__meta { grid-column: 1 / 6; align-self: center; }
  .run.is-run .run__film { grid-column: 6 / 10; grid-row: 1; margin: 0; height: min(68svh, 760px); width: auto; aspect-ratio: 4 / 5; justify-self: center; }
  .run.is-run .run__photo { display: block; grid-column: 9 / 12; grid-row: 1; align-self: start; width: 100%; aspect-ratio: 3 / 4; height: auto; margin-top: -2svh; z-index: 0; opacity: .96; }
  .run.is-run .run__phone { display: block; grid-column: 11 / 13; grid-row: 1; align-self: end; z-index: 2; height: min(54svh, 560px); aspect-ratio: 9 / 16; width: auto; justify-self: end; margin-bottom: 1svh; }
  .run.is-run .run__film { z-index: 1; }
  .run.is-run .run__panel--end { width: 72vw; padding-left: clamp(48px, 6vw, 120px); }
}
@media (min-width: 960px) and (max-height: 760px) {
  .run.is-run .run__name { font-size: clamp(64px, 10vw, 150px); }
  .run.is-run .run__idea { font-size: clamp(22px, 2.2vw, 32px); }
}

/* Focus: the marks start soft and snap sharp, one after another (site.js sets the soft state only when it can animate). */
.sheet__cell img { transition: filter .5s var(--ease-pull), transform .5s var(--ease-pull); }
.sheet__cell:hover img { transform: scale(1.06); }

@media (max-width: 959px) {
  .run__panel { padding-top: 72px; padding-bottom: 64px; }
  .run__panel:not(.run__panel--sheet):not(.run__panel--end) { display: grid; gap: 0; }
  .run__panel--end { min-height: auto; }
}
.run__key { color: var(--accent); }
.run__panel--end .btn--ghost { --btn-fill: var(--night-ink); color: var(--night-ink); border-color: rgba(234,231,227,.5); }
.run__panel--end .btn--ghost:hover { color: var(--ink); }
@media (min-width: 960px) {
  .run.is-run .run__name { font-size: min(13vw, 210px, calc(34vw / (var(--len) * .58))); }
}
/* Wide screens without the run (reduced motion, no script): each brand is a two-column card. */
@media (min-width: 960px) {
  .run:not(.is-run) .run__panel:not(.run__panel--sheet):not(.run__panel--end) {
    display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: 5vw; align-items: center; min-height: 90svh;
  }
  .run:not(.is-run) .run__film { margin-top: 0; height: min(76svh, 760px); width: auto; justify-self: end; }
  .run:not(.is-run) .run__name { font-size: min(13vw, 200px, calc(48vw / (var(--len) * .58))); }
}

/* The Instagram section follows the promises closely. */
#instagram.sec { padding-top: clamp(48px, 6vw, 96px); }
