:root {
  --ground: #0D0D0B;
  --ink: #F3E8D9;
  --ink-soft: #97907F;
  --mango: #F2A93B;
  --line: rgba(243, 232, 217, 0.16);
  --frame: #1A1914;

  --f-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --f-body: "Figtree", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--mango); outline-offset: 3px; }
[hidden] { display: none !important; }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--ink); color: var(--ground); padding: 10px 16px; border-radius: 999px; text-decoration: none;
}
.skip:focus { left: 16px; }

/* language */
.en { display: none; }
html[data-lang="en"] .is { display: none; }
html[data-lang="en"] .en { display: revert; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.label {
  font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft); margin: 0;
}
.link {
  text-decoration: none; font-weight: 500; font-size: 15px;
  border-bottom: 1px solid var(--mango); padding-bottom: 2px;
}
.link:hover { color: var(--mango); }
.n { font-size: 12px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* header */
.nav { position: sticky; top: 0; z-index: 60; background: var(--ground); }
.nav .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 16px; transition: padding .35s ease;
}
.nav.scrolled { box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(0, 0, 0, 0.45); }
.nav.scrolled .wrap { padding-block: 10px; }
.name { display: inline-flex; text-decoration: none; }
.logo-sm { display: block; width: 150px; aspect-ratio: 1363 / 623; position: relative; }
.logo-sm::before, .logo-sm::after { content: ""; position: absolute; inset: 0; }
.logo-sm::before {
  background: var(--ink);
  -webkit-mask: url("/img/wordmark.png") center / 100% 100% no-repeat;
  mask: url("/img/wordmark.png") center / 100% 100% no-repeat;
  clip-path: polygon(0 0, 78.8% 0, 78.8% 32.1%, 79.7% 32.1%, 79.7% 51.4%, 100% 51.4%, 100% 100%, 0 100%);
}
.logo-sm::after {
  background: url("/img/wordmark.png") center / 100% 100% no-repeat;
  clip-path: polygon(78.8% 0, 100% 0, 100% 51.4%, 79.7% 51.4%, 79.7% 32.1%, 78.8% 32.1%);
}
.nav-right { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); }
.nav ul { list-style: none; display: flex; gap: clamp(16px, 2.5vw, 32px); margin: 0; padding: 0; align-items: baseline; }
.nav ul a { text-decoration: none; font-size: 15px; }
.nav ul a:hover { color: var(--mango); }
.lang { display: flex; gap: 2px; font-size: 13px; font-weight: 500; }
.lang button {
  font: inherit; cursor: pointer; background: none; border: 0; color: var(--ink-soft);
  padding: 4px 5px; letter-spacing: 0.06em;
}
.lang button[aria-pressed="true"] { color: var(--ink); }

/* numbered index */
.index { padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 104px); }
.intro-line {
  margin: 0 0 clamp(64px, 9vw, 140px); max-width: 54ch;
  font-size: clamp(16px, 1.5vw, 19px); line-height: 1.5; text-wrap: pretty;
}
/* headline lede beside the rail */
.lede { margin: 0 0 clamp(48px, 7vw, 96px); }
.lede-title {
  margin: 0; font-family: var(--f-display); font-weight: 400;
  font-size: clamp(34px, 5vw, 62px); line-height: 1.02; letter-spacing: -0.025em;
  max-width: 15ch; text-wrap: balance;
}
.lede-title em { font-style: italic; color: var(--mango); }
.lede-sub {
  margin: clamp(18px, 2vw, 26px) 0 0; max-width: 42ch; color: var(--ink-soft);
  font-size: clamp(14px, 1.1vw, 16px); line-height: 1.6; text-wrap: pretty;
}
.works { list-style: none; margin: 0; padding: 0; }
.work-item { margin-bottom: clamp(56px, 7vw, 120px); }
.work-item {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px clamp(12px, 2vw, 24px); align-items: end;
}
.num { grid-column: 1 / 2; font-size: 12px; letter-spacing: 0.14em; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.cover {
  grid-column: 2 / 10; position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--frame); padding: 0; border: 0; width: 100%; display: block; cursor: pointer; color: inherit;
}
.cover.trio { display: flex; gap: 3px; }
.cover .cell {
  position: relative; flex: 1 1 0; min-width: 0; padding: 0; border: 0;
  background: var(--frame); cursor: pointer; overflow: hidden;
}
.cover .cell img { width: 100%; height: 100%; object-fit: cover; }
.cover .cell .play { width: 52px; height: 52px; margin: -26px 0 0 -26px; }
.cover .cell .play svg { width: 16px; height: 16px; }
.cover iframe, .cover .cell iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cover.playing { cursor: default; }
.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.cover:hover img, .cover .cell:hover img { transform: scale(1.03); }
.cover:hover > .play, .cover .cell:hover .play { transform: scale(1.08); background: var(--mango); }
.item-meta a { text-decoration: none; }
.item-meta a:hover { color: var(--mango); }
.item-meta { grid-column: 10 / 13; }
.item-meta h2 {
  font-family: var(--f-display); font-weight: 400; font-size: clamp(20px, 1.9vw, 30px);
  line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 6px; transition: color .3s ease;
}
/* the logo stands where the brand's name was, with the rest of the title under it */
.item-meta img.title-logo {
  display: inline-block; width: auto; max-width: 160px; margin: 0 0 12px;
  filter: brightness(0) invert(1); opacity: .92; transition: opacity .3s ease;
}
.item-meta img.title-logo.wb { filter: invert(1); mix-blend-mode: screen; opacity: 1; }
.item-meta img.title-logo.asis { filter: none; }
.item-meta h2 .t-rest { display: block; }
.item-meta a:hover img.title-logo { opacity: 1; }
.item-meta .meta { font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); }
.works li:nth-child(even) { direction: rtl; }
.works li:nth-child(even) > * { direction: ltr; }
.works li:nth-child(even) .num,
.works li:nth-child(even) .item-meta { text-align: right; }

.play {
  position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px;
  border-radius: 50%; display: grid; place-items: center;
  background: rgba(243, 232, 217, 0.92); color: #0D0D0B;
  transition: transform .3s ease, background-color .3s ease;
}
.play svg { width: 22px; height: 22px; margin-left: 3px; }

.btn-big {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  border: 1.5px solid var(--ink); border-radius: 999px; padding: 16px 30px;
  font-weight: 500; font-size: 16px; transition: background-color .2s ease, color .2s ease;
}
.btn-big svg { width: 16px; height: 16px; }
.btn-big:hover { background: var(--ink); color: var(--ground); }

/* clients marquee */
.clients { border-block: 1px solid var(--line); overflow: hidden; }
.clients .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px; align-items: center; padding-block: 18px; }
.clients .label { white-space: nowrap; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.marquee-track { display: flex; width: max-content; animation: slide 52s linear infinite; }
.marquee ul { display: flex; list-style: none; margin: 0; padding: 0; }
.marquee li { font-family: var(--f-display); font-size: 24px; white-space: nowrap; display: flex; align-items: center; }
.marquee li img.cl-logo { width: auto; display: block; filter: brightness(0) invert(1); opacity: .9; }
.marquee li img.cl-logo.wb { filter: invert(1); mix-blend-mode: screen; opacity: 1; }
/* a logo that is already white: leave its colours alone */
.marquee li img.cl-logo.asis, .vcard img.vcard-logo.asis, .cover img.item-logo.asis { filter: none; }
.marquee li::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mango); margin-inline: 24px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* contact */
.contact { padding-block: clamp(72px, 9vw, 136px); }
.contact h2 {
  font-family: var(--f-display); font-weight: 400; font-size: clamp(44px, 6.4vw, 92px);
  line-height: 0.98; letter-spacing: -0.02em; max-width: 14ch; margin: 22px 0 40px; text-wrap: balance;
}
.contact h2 em { font-style: italic; color: var(--mango); }
.contact-links { display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: baseline; }
.contact-links .big { font-family: var(--f-display); font-size: clamp(22px, 2.2vw, 30px); text-decoration: none; border-bottom: 1px solid var(--mango); }

footer { border-top: 1px solid var(--line); }
footer .wrap {
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  padding-block: 28px; font-size: 14px; color: var(--ink-soft);
}
footer a { text-decoration: none; }
footer a:hover { color: var(--mango); }

/* all work */
.allwork { padding-block: clamp(32px, 4vw, 56px) clamp(64px, 8vw, 112px); }
.sec-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px;
  padding-bottom: 20px; margin-bottom: clamp(28px, 3vw, 40px); border-bottom: 1px solid var(--line);
}
.all-head h1 {
  font-family: var(--f-display); font-weight: 400; font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.05; letter-spacing: -0.02em; margin: 0;
}
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(36px, 4vw, 56px) clamp(16px, 2vw, 28px); }
.grid-all { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile { text-decoration: none; display: flex; flex-direction: column; gap: 14px; }
div.tile { cursor: default; }
.frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--frame); }
button.frame { position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer; }
button.frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
button.frame.playing { aspect-ratio: 16 / 9; cursor: default; background: #000; }
button.frame .play { width: 56px; height: 56px; margin: -28px 0 0 -28px; z-index: 2; }
button.frame .play svg { width: 18px; height: 18px; }
button.frame:hover .play { transform: scale(1.08); background: var(--mango); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cap strong { font-weight: 500; font-size: 16px; }
.cap span { color: var(--ink-soft); font-size: 14px; font-variant-numeric: tabular-nums; }
.cap .has-film { width: 16px; height: 16px; flex: none; color: var(--ink-soft); align-self: center; }
a.tile:hover .has-film { color: var(--mango); }

/* project page */
.project .wrap { padding-block: clamp(24px, 4vw, 48px) clamp(72px, 9vw, 136px); }
.back { display: inline-flex; gap: 8px; font-size: 15px; text-decoration: none; color: var(--ink-soft); }
.back:hover { color: var(--mango); }
.p-head {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px clamp(28px, 5vw, 80px);
  align-items: end; padding-block: clamp(32px, 5vw, 64px) clamp(28px, 3vw, 40px);
}
.p-head h1 {
  font-family: var(--f-display); font-weight: 400; font-size: clamp(44px, 6vw, 88px);
  line-height: 1.02; letter-spacing: -0.02em; margin: 0;
}
.p-meta { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 0; }
.p-meta dt { font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.p-meta dd { margin: 2px 0 0; font-size: 16px; font-variant-numeric: tabular-nums; }

.p-film, .frame916 {
  display: block; position: relative; width: 100%; padding: 0; border: 0; cursor: pointer;
  background: var(--frame); overflow: hidden; color: inherit;
}
.p-film { aspect-ratio: 16 / 9; }
.p-film img, .frame916 img { width: 100%; height: 100%; object-fit: cover; }
.p-film .play { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
.p-film .play svg { width: 26px; height: 26px; margin-left: 4px; }
.p-film:hover .play, .frame916:hover .play { transform: scale(1.08); background: var(--mango); }
.p-film iframe, .frame916 iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.gallery { display: flex; flex-direction: column; gap: clamp(12px, 1.6vw, 24px); margin-top: clamp(12px, 1.6vw, 24px); }
.row { display: flex; gap: clamp(12px, 1.6vw, 24px); }
.row figure { margin: 0; min-width: 0; background: var(--frame); }
.row img { width: 100%; height: auto; }
.row-film .frame916 { height: 100%; }
.g-group + .g-group { margin-top: clamp(40px, 5vw, 72px); }
.g-head {
  font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft); margin: 0;
}
.g-head + .gallery { margin-top: 14px; }

.reels { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); max-width: calc(var(--n, 5) * 360px); }
.reel { display: flex; flex-direction: column; gap: 10px; }
.reels.many { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: none; }
@media (max-width: 900px) { .reels, .reels.many { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.reel .frame916 { aspect-ratio: 9 / 16; }
.reel .cap strong { font-weight: 500; font-size: 15px; }

.next {
  display: flex; flex-direction: column; gap: 10px; text-decoration: none;
  margin-top: clamp(72px, 9vw, 136px); padding-top: 28px; border-top: 1px solid var(--line);
}
.next-title { font-family: var(--f-display); font-size: clamp(36px, 5vw, 72px); line-height: 1; letter-spacing: -0.02em; }
.next:hover .next-title { color: var(--mango); }

.notfound h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(64px, 12vw, 160px); margin: 0 0 16px; }
.notfound a { color: var(--mango); }

/* motion — applied only once JS marks the page */
html.js-anim .reveal { opacity: 0; transform: translateY(22px); }
html.js-anim .reveal.in { opacity: 1; transform: none; transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
html.js-anim .cover img, html.js-anim .frame img { transform: scale(1.07); }
html.js-anim .in .cover img, html.js-anim .work-item.in .cover img, html.js-anim .tile.in .frame img { transform: scale(1); transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }

/* every tile answers to the pointer. These sit after the reveal rule above,
   and carry its weight, or the reveal would win and nothing would move. */
.tile { transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.tile:hover { transform: translateY(-6px); }
.frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(13, 13, 11, .62), rgba(13, 13, 11, 0) 58%);
  opacity: 0; transition: opacity .45s ease;
}
.tile:hover .frame::after { opacity: 1; }
button.frame.playing::after { opacity: 0; }
html.js-anim .tile:hover .frame img, .tile:hover .frame img { transform: scale(1.06); }
/* the hover preview, sized to cover its frame rather than letterbox inside it.
   These beat the plain `iframe { inset: 0 }` rules for the click-to-play
   player, which would otherwise drag the preview off its own frame. */
.preview { border: 0; pointer-events: none; opacity: 0; transition: opacity .55s ease; }
a.tile .frame { position: relative; }
.vcard iframe.preview, button.frame iframe.preview, a.tile iframe.preview,
.cover iframe.preview, .cover .cell iframe.preview, .p-film iframe.preview,
.frame916 iframe.preview {
  position: absolute; top: 50%; left: 50%; right: auto; bottom: auto;
  transform: translate(-50%, -50%);
}
.vcard iframe.preview, button.frame iframe.preview, a.tile iframe.preview,
.cover iframe.preview, .cover .cell iframe.preview, .p-film iframe.preview,
.frame916 iframe.preview { width: 100%; height: 100%; }
.previewing .preview { opacity: 1; }
.previewing .play { opacity: 0; transition: opacity .3s ease; }
.cap strong { transition: color .3s ease; }
.tile:hover .cap strong { color: var(--mango); }
.tile:hover .has-film { color: var(--mango); }
.tile:hover .play, button.frame:hover .play { transform: scale(1.1); background: var(--mango); }
.open {
  position: absolute; right: 14px; bottom: 14px; z-index: 2; width: 38px; height: 38px;
  border-radius: 50%; display: grid; place-items: center; color: var(--ink);
  background: rgba(13, 13, 11, .5); border: 1px solid rgba(243, 232, 217, .35);
  opacity: 0; transform: translateY(10px);
  transition: opacity .4s ease, transform .4s cubic-bezier(.2,.7,.2,1),
              background-color .3s ease, border-color .3s ease, color .3s ease;
}
.open svg { width: 15px; height: 15px; }
.tile:hover .open { opacity: 1; transform: translateY(0); }
.tile:hover .open { background: var(--mango); border-color: var(--mango); color: #0D0D0B; }
html.js-anim .nav .wrap > * { opacity: 0; transform: translateY(-10px); }
html.js-anim .nav.in .wrap > * { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }
html.js-anim .nav.in .wrap > *:nth-child(2) { transition-delay: .08s; }

@media (max-width: 900px) {
  .work-item { grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: start; }
  .cover { grid-column: 1 / -1; grid-row: 2; }
  .item-meta { grid-column: 1 / -1; grid-row: 3; text-align: left !important; }
  .item-meta img.title-logo { max-width: 128px; }
  .works li:nth-child(even) .num { text-align: left; }
  .grid, .grid-all { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clients .wrap { grid-template-columns: 1fr; gap: 12px; }
  .p-head { grid-template-columns: 1fr; }
  .reels {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  }
  .reel { flex: 0 0 38%; scroll-snap-align: start; }
}
@media (max-width: 600px) {
  .nav ul { gap: 14px; }
  .logo-sm { width: 116px; }
  .cover { aspect-ratio: 4 / 3; }
  .cover.trio { aspect-ratio: 16 / 9; }
  .grid { grid-template-columns: 1fr; }
  .grid-all { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .grid-all .cap strong { font-size: 14px; }
  .row { flex-direction: column; }
  .row figure { flex: none !important; }
  .row-film .frame916 { aspect-ratio: 9 / 16; height: auto; }
  .reel { flex-basis: 62%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .cover img, .frame img, .play, .nav .wrap, .tile, .open, .frame::after { transition: none; }
  .tile:hover { transform: none; }
  html.js-anim .reveal, html.js-anim .nav .wrap > * { opacity: 1; transform: none; }
  html.js-anim .cover img, html.js-anim .frame img { transform: none; }
}

/* contact form */
.form-page { padding-block: clamp(32px, 4vw, 56px) clamp(72px, 9vw, 120px); }
.form-page h1 {
  font-family: var(--f-display); font-weight: 400; font-size: clamp(40px, 6vw, 84px);
  line-height: 1; letter-spacing: -0.025em; margin: clamp(24px, 3vw, 40px) 0 0; max-width: 14ch;
}
.form-page h1 em { font-style: italic; color: var(--mango); }
.form-lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-soft); max-width: 46ch; margin: 22px 0 clamp(40px, 5vw, 64px); }
.form-page form { display: flex; flex-direction: column; gap: 28px; max-width: 600px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field label { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.field .opt { letter-spacing: 0; text-transform: none; opacity: .75; }
.field input, .field textarea {
  font: inherit; font-size: 17px; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--line); padding: 12px 2px; border-radius: 0;
  transition: border-color .2s ease;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.field input:hover, .field textarea:hover { border-bottom-color: var(--ink-soft); }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--mango); }
.btn-send {
  align-self: flex-start; font: inherit; font-weight: 500; font-size: 16px; cursor: pointer;
  background: var(--mango); color: var(--ground); border: 0; border-radius: 999px; padding: 16px 30px;
  transition: filter .2s ease;
}
.btn-send:hover { filter: brightness(1.1); }
.hidden-field { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
.form-foot { margin-top: clamp(40px, 5vw, 64px); color: var(--ink-soft); }
.thanks h1 { max-width: none; }

/* vertical rail on the front page */
.strip { margin: clamp(26px, 3.5vw, 44px) 0 clamp(44px, 5vw, 72px); }
.strip-head { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin-bottom: 14px; }
.strip-nav { display: flex; gap: 8px; }
.strip-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  background: transparent; color: var(--ink); cursor: pointer; display: grid; place-items: center;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease, transform .3s ease;
}
.strip-btn svg { width: 16px; height: 16px; }
.strip-btn:hover { background: var(--mango); border-color: var(--mango); color: #0D0D0B; transform: scale(1.06); }
.strip-rail {
  display: flex; gap: clamp(10px, 1.3vw, 18px); overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; scroll-behavior: smooth; padding-bottom: 4px;
  scrollbar-width: none; -ms-overflow-style: none; cursor: grab;
}
.strip-rail::-webkit-scrollbar { display: none; }
.strip-rail.dragging { cursor: grabbing; scroll-behavior: auto; scroll-snap-type: none; }
.vcard {
  position: relative; flex: 0 0 clamp(158px, 18vw, 224px); aspect-ratio: 9 / 16;
  padding: 0; border: 0; background: var(--frame); cursor: pointer; overflow: hidden;
  scroll-snap-align: start; transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.vcard img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.vcard:hover { transform: translateY(-4px); }
.vcard:hover img { transform: scale(1.06); }
.vcard-fade { position: absolute; inset: auto 0 0 0; height: 46%; background: linear-gradient(to top, rgba(13,13,11,.88), rgba(13,13,11,0)); pointer-events: none; }
.vcard-brand {
  position: absolute; left: 13px; bottom: 13px; font-size: 11px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink);
}
.vcard img.vcard-logo {
  position: absolute; left: 13px; bottom: 13px; width: auto; max-width: 64%;
  object-fit: contain; object-position: left bottom; transition: none;
  filter: brightness(0) invert(1); opacity: .96; pointer-events: none;
}
.vcard:hover img.vcard-logo { transform: none; }
/* a logo supplied as black on a solid white plate: invert it and screen the plate away */
.vcard img.vcard-logo.wb { filter: invert(1); mix-blend-mode: screen; }
.vcard.playing img.vcard-logo { opacity: 0; transition: opacity .3s ease; }
.vcard .play { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
.vcard .play svg { width: 15px; height: 15px; }
.vcard:hover .play { transform: scale(1.1); background: var(--mango); }
.vcard iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vcard.playing { cursor: default; transform: none; }
@property --veil-l { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --veil-r { syntax: "<number>"; inherits: true; initial-value: 0; }
.vcard-edge {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  -webkit-backdrop-filter: blur(11px); backdrop-filter: blur(11px);
}
.vcard-edge.r {
  opacity: var(--veil-r, 0);
  background: linear-gradient(90deg, rgba(13,13,11,0) 14%, rgba(13,13,11,.55) 58%, rgba(13,13,11,.96) 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 10%, #000 88%);
          mask-image: linear-gradient(90deg, transparent 10%, #000 88%);
}
.vcard-edge.l {
  opacity: var(--veil-l, 0);
  background: linear-gradient(270deg, rgba(13,13,11,0) 14%, rgba(13,13,11,.55) 58%, rgba(13,13,11,.96) 100%);
  -webkit-mask-image: linear-gradient(270deg, transparent 10%, #000 88%);
          mask-image: linear-gradient(270deg, transparent 10%, #000 88%);
}
.vcard.playing .vcard-fade, .vcard.playing .vcard-brand { opacity: 0; transition: opacity .3s ease; }
.vcard.playing .vcard-edge { opacity: 0 !important; animation: none !important; }
@media (max-width: 600px) {
  .vcard { flex-basis: 54vw; }
  .strip-nav { display: none; }
}

/* intro and rail side by side, with the rail focused in the middle */
.top-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(22px, 3vw, 44px); align-items: center; margin-bottom: clamp(40px, 5vw, 76px); }
@media (min-width: 900px) { .top-split { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); } }
.top-split .lede { margin: 0; }
.top-split .strip { margin: 0; }
.top-split .strip { width: 100%; max-width: 500px; justify-self: end; --card: clamp(176px, 17vw, 224px); }
.top-split .strip-rail {
  scroll-snap-type: x mandatory;
  padding-inline: calc(50% - var(--card) / 2);
  scroll-padding-inline: calc(50% - var(--card) / 2);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 11%, #000 89%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 11%, #000 89%, transparent 100%);
}
.top-split .vcard { flex: 0 0 var(--card); scroll-snap-align: center; }
@media (max-width: 899px) {
  .top-split .strip { max-width: none; --card: min(58vw, 240px); }
}

@supports (animation-timeline: view()) {
  .strip-rail .vcard {
    animation: card-focus linear both;
    animation-timeline: view(inline);
    animation-range: entry 0% exit 100%;
  }
  .strip-rail .vcard:hover { transform: none; }
  .strip-rail .vcard.playing { animation: none; opacity: 1; }
  @keyframes card-focus {
    0%   { opacity: .92; transform: scale(.9); --veil-r: 1; --veil-l: 0; }
    50%  { opacity: 1;   transform: scale(1);  --veil-r: 0; --veil-l: 0; }
    100% { opacity: .92; transform: scale(.9); --veil-r: 0; --veil-l: 1; }
  }
}

