/* ==========================================================================
   "What's new" carousel (Home) — slides adapted from the Mariama Ford Flipbook
   ========================================================================== */
.wn {
  --wn-ink: #150d00; --wn-muted: #65563f; --wn-gold: #825200; --wn-amber: #a86a00;
  --wn-paper: #f6f1e8; --wn-paper-2: #ece4d4; --wn-line: #d8ccb6; --wn-bg: #fafaf7;
  --serif: "Cormorant Garamond:Light", "Cormorant Garamond", Georgia, serif;
  --serif-i: "Cormorant Garamond:Light Italic", "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans:Light", "DM Sans", system-ui, sans-serif;
  --sans-m: "DM Sans:Medium", "DM Sans", system-ui, sans-serif;
  --mono: "DM Mono:Regular", "DM Mono", ui-monospace, monospace;
  --s: .92;
  position: relative; width: 100%; background: var(--wn-bg); color: var(--wn-ink);
  padding: 64px max(5vw, 24px) 72px; box-sizing: border-box; flex-shrink: 0;
}
.wn *, .wn *::before, .wn *::after { box-sizing: border-box; }
.wn-in { max-width: 1200px; margin: 0 auto; }

/* header: title + View all */
.wn-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.wn-title { margin: 0; font: 300 30px/1.1 var(--serif); letter-spacing: 0; }
.wn-title em { font-family: var(--serif-i); font-style: italic; color: var(--wn-amber); }
.wn-all { font: 400 14px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--wn-ink); text-decoration: underline; text-underline-offset: 4px; }

/* stage: slides stacked in one grid cell so the height never jumps */
.wn-stage { display: grid; background: var(--wn-paper); border-radius: 4px 16px 16px 4px;
  box-shadow: 0 30px 60px -38px rgba(40,25,5,.35), 6px 6px 0 -1px var(--wn-paper-2), 11px 11px 0 -2px var(--wn-line); }
.wn-slide { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 36px;
  padding: 36px 36px 36px 52px; opacity: 0; visibility: hidden; transition: opacity .9s cubic-bezier(.33,0,.2,1), visibility 0s linear .9s; }
.wn-slide.is-current { opacity: 1; visibility: visible; transition: opacity .9s cubic-bezier(.33,0,.2,1), visibility 0s; }

/* copy column */
.wn-copy { display: flex; flex-direction: column; justify-content: center; gap: 14px; min-width: 0; }
.wn-eyebrow { margin: 0; font: 400 11.5px/1.3 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--wn-muted); }
.wn-name { margin: 0; font: 300 clamp(44px, 5vw, 64px)/1 var(--serif); letter-spacing: -.01em; }
.wn-name em { font-family: var(--serif-i); font-style: italic; color: var(--wn-gold); }
.wn-status { display: inline-flex; align-items: center; gap: 8px; width: max-content; font: 400 11.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--wn-gold); }
.wn-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.wn-lede { margin: 0; max-width: 46ch; font: 300 17px/1.55 var(--sans); }
.wn-lede i { font-family: "DM Sans:Light Italic", "DM Sans", sans-serif; }
.wn-fine { margin: 0; font: 400 11.5px/1.5 var(--mono); color: var(--wn-muted); }
.wn-stats { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 2px 0 0; padding: 0; list-style: none; }
.wn-stats li { display: flex; flex-direction: column; }
.wn-stats b { font: 300 36px/1 var(--serif); color: var(--wn-gold); }
.wn-stats span { font: 400 10.5px/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--wn-muted); }
.wn-meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0; padding-top: 14px; border-top: 1px solid var(--wn-line); max-width: 48ch; font: 300 14px/1.5 var(--sans); }
.wn-meta dt { font: 400 10.5px/2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--wn-muted); }
.wn-meta dd { margin: 0; }
.wn-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.wn .mf-btn { min-height: 44px; font-size: 13px; padding: 0 18px; }

/* art column: soft colour wash + device playing the screen recording */
.wn-art { position: relative; overflow: hidden; border-radius: 22px; background: var(--wn-paper-2); min-height: 540px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 18px 12px; }
.wn-blob { position: absolute; border-radius: 50%; filter: blur(46px); opacity: .55; pointer-events: none; }
.wn-blob.a { width: 62%; aspect-ratio: 1; background: var(--b1); left: -12%; top: -8%; }
.wn-blob.b { width: 56%; aspect-ratio: 1; background: var(--b2); right: -12%; bottom: -8%; }
html.motion .wn-slide.is-current .wn-blob.a { animation: wn-driftA 14s ease-in-out infinite alternate; }
html.motion .wn-slide.is-current .wn-blob.b { animation: wn-driftB 17s ease-in-out infinite alternate; }
@keyframes wn-driftA { to { transform: translate(34%, 26%) scale(1.15); } }
@keyframes wn-driftB { to { transform: translate(-30%, -32%) scale(1.1); } }

.wn-dev { position: relative; flex: none; width: calc(var(--w) * 1px * var(--s)); height: calc(var(--h) * 1px * var(--s)); }
.wn-dev .frame { position: absolute; left: 0; top: 0; width: calc(var(--w) * 1px); height: calc(var(--h) * 1px); transform: scale(var(--s)); transform-origin: top left;
  border-radius: 40px; background: #0d0b09; padding: 9px; box-shadow: 0 30px 50px -22px rgba(0,0,0,.55), inset 0 0 0 1.5px #3a352e; }
.wn-dev .screen { position: relative; width: 100%; height: 100%; border-radius: 31px; overflow: hidden; background: #fff; }
.wn-dev.phone .screen::after { content: ""; position: absolute; top: 7px; left: 50%; width: 62px; height: 17px; border-radius: 99px; background: #0d0b09; transform: translateX(-50%); z-index: 2; }
.wn-dev.tablet .frame { border-radius: 28px; padding: 13px; } .wn-dev.tablet .screen { border-radius: 15px; }
.wn-dev.wide .frame { border-radius: 30px; } .wn-dev.wide .screen { border-radius: 22px; }
.wn-dev video, .wn-dev img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wn-cap { position: relative; font: 400 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--wn-muted); }

/* controls */
.wn-controls { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 14px; margin-top: 26px; }
.wn-turn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--wn-ink); background: transparent; color: var(--wn-ink);
  display: grid; place-items: center; font: 400 18px/1 var(--sans); cursor: pointer; transition: background-color .4s, color .4s; }
.wn-turn:hover { background: var(--wn-ink); color: var(--wn-bg); }
.wn-picker { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.wn-pick { position: relative; overflow: hidden; min-height: 36px; padding: 0 13px; border-radius: 99px; border: 1px solid var(--wn-line); background: transparent;
  font: 400 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--wn-muted); cursor: pointer; }
.wn-pick[aria-current="true"] { border-color: var(--wn-ink); color: var(--wn-ink); }
/* time-left bar on the current slide's button while autoplaying */
.wn-pick::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--wn-amber); transform: scaleX(0); transform-origin: left; }
.wn.is-playing .wn-pick[aria-current="true"]::after { animation: wn-time var(--wn-interval, 7000ms) linear forwards; }
.wn.is-held .wn-pick[aria-current="true"]::after { animation-play-state: paused; }
@keyframes wn-time { to { transform: scaleX(1); } }
.wn-count { display: none; font: 400 12px/1 var(--mono); letter-spacing: .16em; text-align: center; }
.wn-play { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--wn-ink);
  background: transparent; color: var(--wn-ink); font: 400 11.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.wn-play .ico { width: 10px; height: 12px; position: relative; }
.wn-play .ico::before, .wn-play .ico::after { content: ""; position: absolute; top: 0; width: 3px; height: 12px; background: currentColor; }
.wn-play .ico::before { left: 1px; } .wn-play .ico::after { right: 1px; }
.wn-play[data-state="paused"] .ico::before { left: 1px; width: 0; height: 0; background: none; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.wn-play[data-state="paused"] .ico::after { display: none; }
.wn button:focus-visible, .wn a:focus-visible { outline: 2px solid var(--wn-gold); outline-offset: 3px; }
.wn-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* tablet / phone: device on top, copy centred below */
@media (max-width: 1023.98px) {
  .wn-slide { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 22px 20px 30px 28px; align-content: start; }
  .wn-art { order: -1; min-height: 0; padding: 18px 10px; }
  .wn { --s: .72; }
  .wn-copy { align-items: center; text-align: center; }
  .wn-lede { margin-inline: auto; }
  .wn-stats { justify-content: center; }
  .wn-meta { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 2px; max-width: none; width: 100%; }
  .wn-meta dt { margin-top: 6px; }
  .wn-links { justify-content: center; }
}
@media (max-width: 799.98px) {
  .wn { padding: 48px 16px 56px; --s: .62; }
  .wn-head { margin-bottom: 20px; }
  .wn-title { font-size: 28px; }
  .wn-name { font-size: 44px; }
  .wn-lede { font-size: 16px; }
  .wn-controls { grid-template-columns: auto 1fr auto; row-gap: 14px; }
  .wn-picker { display: none; }
  .wn-count { display: block; }
  .wn-play { grid-column: 1 / -1; justify-self: center; }
}

@media (prefers-reduced-motion: reduce) {
  .wn-slide, .wn-slide.is-current { transition: none; }
  .wn-blob { animation: none !important; }
  .wn.is-playing .wn-pick[aria-current="true"]::after { animation: none; }
}
[data-wn-anc] { height: auto !important; min-height: 0 !important; }
