/* ==========================================================================
   EXPERIMENT overrides — loaded after styles.css.
   Same tokens, type scale and motion; new structure for the Works page.
   ========================================================================== */

/* ---------- Intro: word-by-word reveal ---------------------------------- */
.intro { padding-bottom: 128px; }
.rw {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  /* room inside the mask on every side: descenders (g, p, y, commas) below,
     and the Medium-emulation outline on the left/right. Negative margins cancel
     the padding so spacing and line height stay exactly the same. */
  padding: .06em .08em .28em;
  margin: -.06em -.08em -.28em;
}
.rw > span { display: inline-block; transform: translateY(135%); }
.is-revealed .rw > span {
  transform: none;
  transition: transform .9s var(--ease);
  transition-delay: calc(var(--i) * 28ms + 120ms);
}
/* once every word is in, drop the mask entirely so nothing can ever be clipped */
.is-reveal-done .rw { overflow: visible; }
.intro__aside { opacity: 0; transform: translateY(8px); animation: asideIn .8s var(--ease) 1.1s forwards; }
@keyframes asideIn { to { opacity: 1; transform: none; } }

/* ---------- Retro halftone eyeball ----------------------------------------
   One printed-look eyeball in the empty space above the side text (never
   under any text). The iris rolls over the ball toward the cursor — main.js
   moves it and squashes it into an ellipse near the edge, like a real sphere.
   Shading + halftone stay fixed, so the light doesn't move with the eye. */
.intro { position: relative; }
.intro > h1, .intro > p {
  position: relative; z-index: 1;
  /* "difference" blend: looks unchanged on the dark page, flips to dark ink
     where the text passes over the cream eyeball, so it's always readable.
     Colours are pre-compensated so on #0d0d0d they render as the usual
     #e5e5e5 / #7c7c7c. */
  mix-blend-mode: difference;
  color: #f2f2f2;
}
.intro > h1 .c-2, .intro > p.c-2 { color: #898989; }
.intro > p b { color: #f2f2f2; }
/* "see" — the payoff word, back in full white (renders #e5e5e5 under the blend) */
.intro > h1 .hl { color: #f2f2f2; }
.nowrap { white-space: nowrap; }   /* keeps "see" and its full stop on the same line */
.intro.is-over-ball { cursor: pointer; }
.eyeball {
  --size: clamp(80px, 8.6vw, 190px);          /* ~124px at 1440 wide, scales with the window */
  position: absolute;
  z-index: 0;
  top: 0;
  right: calc(var(--layout-page-margin) + 6.25vw);
  width: var(--size);
  aspect-ratio: 1;
  container-type: inline-size;              /* children size in cqw = % of ball width */
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 42% 30%, #f1ebde 0%, #e4ddcd 40%, #cdc6b5 72%, #a8a090 100%);
  opacity: 0;
  animation: eyeballIn 1s var(--ease) .15s forwards;   /* starts with the headline words (they begin at 120ms) */
  /* main.js moves it with the `translate` property (follow) and `scale` (squish) */
  transition: scale .35s cubic-bezier(.34, 1.56, .64, 1);
  will-change: translate;
}
.eyeball.is-pressed { scale: .95; }
@keyframes eyeballIn { from { opacity: 0; transform: translateY(14px) scale(.94); } to { opacity: 1; transform: none; } }

/* Iris: grey-cream disc, hatched ring, thick dark outline */
.eyeball__iris {
  position: absolute;
  left: 50%; top: 50%;
  width: 58cqw; aspect-ratio: 1;
  margin: -29cqw 0 0 -29cqw;
  border-radius: 50%;
  background: #d6cfc0;
  box-shadow: 0 0 0 2.2cqw #141414;          /* thick printed outline */
  will-change: transform;
}
.eyeball__iris::before {                     /* thick hatched band, strokes of uneven weight like ink */
  content: "";
  position: absolute; inset: 3%;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 1deg, #161616 0 1.6deg, rgba(0,0,0,0) 1.6deg 4.4deg),
    repeating-conic-gradient(from 3deg, rgba(22,22,22,.55) 0 .8deg, rgba(0,0,0,0) .8deg 9deg);
  -webkit-mask: radial-gradient(circle, transparent 0 63%, #000 65% 97%, transparent 99%);
          mask: radial-gradient(circle, transparent 0 63%, #000 65% 97%, transparent 99%);
}
/* Pupil with two cream catch-lights */
.eyeball__pupil {
  position: absolute;
  left: 50%; top: 50%;
  width: 60%; aspect-ratio: 1;
  margin: -30% 0 0 -30%;
  border-radius: 50%;
  background: #0b0b0b;
  box-shadow: 0 0 0 1.4cqw #141414;
  transition: scale .5s cubic-bezier(.34, 1.56, .64, 1);   /* springy overshoot */
}
/* Press & hold: big dilated "cute" pupil */
.eyeball.is-pressed .eyeball__pupil { scale: 1.36; }
.eyeball__pupil::before, .eyeball__pupil::after {
  content: ""; position: absolute; border-radius: 50%; background: #ece6d9;
}
.eyeball__pupil::before { width: 24%; aspect-ratio: 1; left: 52%; top: 20%; }
.eyeball__pupil::after  { width: 11%; aspect-ratio: 1; left: 34%; top: 50%; }

/* Fixed shading: halftone shadow gathering at the bottom (small dots fading in,
   bigger dots in the deepest part), clean on top like the reference */
.eyeball__shade, .eyeball__shade::before {
  position: absolute; inset: 0;
  border-radius: 50%;
  pointer-events: none;
}
.eyeball__shade {
  background: radial-gradient(circle, #141414 0 30%, rgba(20,20,20,0) 36%) 0 0 / 2.4cqw 2.4cqw;
  -webkit-mask: radial-gradient(ellipse 80% 75% at 46% 22%, transparent 0 58%, rgba(0,0,0,.55) 74%, #000 92%);
          mask: radial-gradient(ellipse 80% 75% at 46% 22%, transparent 0 58%, rgba(0,0,0,.55) 74%, #000 92%);
}
.eyeball__shade::before {
  content: "";
  background: radial-gradient(circle, #141414 0 44%, rgba(20,20,20,0) 50%) 1.2cqw 1.2cqw / 2.4cqw 2.4cqw;
  -webkit-mask: radial-gradient(ellipse 80% 70% at 46% 14%, transparent 0 76%, #000 100%);
          mask: radial-gradient(ellipse 80% 70% at 46% 14%, transparent 0 76%, #000 100%);
}
.eyeball::after {                            /* paper grain */
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
  opacity: .35;
}

@media (max-width: 900px) {
  /* stacks under the side text, right-aligned and smaller */
  .eyeball { --size: clamp(85px, 25vw, 130px); position: relative; top: auto; right: auto; justify-self: end; margin-top: 12px; }
}

/* ---------- Works header + filter tabs ---------------------------------- */
.works { padding-bottom: 160px; }
.works__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: baseline;
  padding-top: 16px;
  padding-bottom: 72px;
}
.works__head h2 { font-weight: 400; }
.works__head sup, .ftab__n { font-size: 10px; line-height: 0; vertical-align: super; margin-left: 2px; letter-spacing: 0; }
.works__filters { position: relative; display: flex; flex-wrap: wrap; gap: 14px 22px; padding-bottom: 12px; }
.ftab { opacity: .4; transition: opacity .2s; }
.ftab:hover { opacity: .75; }
.ftab[aria-pressed="true"] { opacity: 1; }

/* Active-tab dot: jumps between tabs with squash, stretch and a little splash (main.js) */
.ftab-dot, .ftab-splash {
  position: absolute; left: 0; top: 0;
  border-radius: 50%;
  background: var(--color-text-primary);
  pointer-events: none;
  will-change: transform;
}
.ftab-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; }       /* centred on its position */
.ftab-splash { width: 3px; height: 3px; margin: -1.5px 0 0 -1.5px; }
.ftab__n { color: var(--color-text-tertiary); }

/* ---------- Uneven editorial grid --------------------------------------- */
.mosaic {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--layout-grid-gap);
  row-gap: 96px;
  align-items: start;
}
.tile {
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
  text-align: left;
  margin-top: var(--drop, 0px);
  cursor: none;
}
.tile__frame {
  position: relative;
  display: block;
  aspect-ratio: var(--ratio, 4 / 3);
  border-radius: var(--radius-md);
  overflow: hidden;
  clip-path: inset(0 round var(--radius-md));
  transition: clip-path .6s var(--ease);
}
.tile__img { position: absolute; inset: 0; transition: transform .9s var(--ease); }
/* Hover: frame tightens slightly, image pushes in — reads as a camera move */
.tile:hover .tile__frame { clip-path: inset(10px round var(--radius-md)); }
.tile:hover .tile__img { transform: scale(1.06); }

.tile__meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr);       /* title, description, then the category tag underneath */
  column-gap: 12px;
  align-items: baseline;
}
.tile__text { display: flex; flex-direction: column; gap: 4px; }
.tile__tag { white-space: nowrap; margin-top: 6px; }
.tile--feature .tile__text .t-card { font-size: 26px; line-height: 30px; letter-spacing: calc(-.6px + .015em); }
.tile.is-entering { animation: cardIn .5s var(--ease) both; }

/* "All": justified rows, every image in a row the same height, rows edge to edge */
.mosaic[data-layout="all"] { display: flex; flex-direction: column; align-items: stretch; row-gap: 72px; }
.mosaic__row { display: flex; gap: var(--layout-grid-gap); align-items: flex-start; }
.mosaic__row .tile { min-width: 0; margin-top: 0; }
.mosaic__pad { display: block; }

/* Per-tab rhythm */
.mosaic[data-layout="long-form"] { row-gap: 120px; }
.mosaic[data-layout="long-form"] .tile:not(.tile--feature) .t-card { font-size: 25px; line-height: 28px; letter-spacing: calc(-.5px + .015em); }
.mosaic[data-layout="short-form"] { row-gap: 72px; }
.mosaic[data-layout="stills"] { row-gap: 56px; }
/* Narrow tiles (9:16 at 3 cols): stack the tag under the title so nothing squeezes */
.tile:focus-visible { outline-offset: 6px; border-radius: var(--radius-md); }
/* Tile alone on its row: text moves into the empty columns beside the image, top-aligned */
.tile--side {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--layout-grid-gap); align-items: start;
}
/* the link spans the whole row, so only the image and the text react to the mouse — not the empty space */
.tile--side { pointer-events: none; }
.tile--side .tile__frame, .tile--side .tile__meta { pointer-events: auto; }
.tile--side .tile__frame { grid-column: var(--frame-col); grid-row: 1; }
.tile--side .tile__meta  { grid-column: var(--meta-col); grid-row: 1; grid-template-columns: minmax(0, 1fr); row-gap: 10px; }
.tile--side .tile__tag   { margin-top: 4px; }
.tile--side-left .tile__meta { text-align: right; }
.tile--side-left .tile__text { align-items: flex-end; }

/* "View case" pill that follows the cursor over images */
.view-cursor {
  position: fixed; left: 0; top: 0; z-index: 25;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  background: var(--color-bg-inverse);
  color: var(--color-text-inverse);
  pointer-events: none;
  opacity: 0;
  scale: .6;
  transition: opacity .2s ease, scale .35s var(--ease);
  will-change: transform;
}
.view-cursor.is-on { opacity: 1; scale: 1; }

/* ---------- About: flat 2D carousel (temporary, replaces the 3D ring) ---- */
.flat-carousel {
  position: absolute; inset: 0;
  z-index: 0;
  display: flex; align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}
.flat-carousel__track {
  display: flex; gap: 16px;
  width: max-content;
  animation: marquee 80s linear infinite;
}
.flat-carousel:hover .flat-carousel__track { animation-play-state: paused; }
.flat-card {
  flex: none;
  height: 320px;
  width: calc(320px * var(--ar, 1.7778));
  border-radius: var(--radius-md);
}
@media (max-width: 900px) {
  .flat-card { height: 170px; width: calc(170px * var(--ar, 1.7778)); }
  .flat-carousel__track { gap: 10px; }
}

/* ---------- Case page: Moments (clips in our own player) ----------------- */
.moments { padding-top: 56px; padding-bottom: 160px; }   /* no label: a little more air under the line */
.moments__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 40px; }
.moments .gallery { padding-bottom: 0; }
.moments__row { display: grid; gap: var(--layout-grid-gap); align-items: start; }
.moment { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.moment__media { border-radius: var(--radius-md); }
.moment[data-format="16:9"] .moment__media { aspect-ratio: 16 / 9; }
.moment[data-format="9:16"] .moment__media { aspect-ratio: 9 / 16; }
.moment[data-format="1:1"]  .moment__media { aspect-ratio: 1 / 1; }

/* The player: poster + big glass play button; once started, a slim glass bar along the bottom
   (play/pause · time · seek track · sound · full screen) that fades out while you watch. */
.vp { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; background: #000; color: #fff; }
.vp video { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; }
.vp:fullscreen { border-radius: 0; }
.vp:fullscreen video { object-fit: contain; }
.vp svg { width: 100%; height: 100%; display: block; }
.vp button { color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }

.vp__big {                                        /* same glass circle as the grid tiles */
  position: absolute; left: 50%; top: 50%; z-index: 2;
  width: clamp(52px, 11%, 76px); aspect-ratio: 1; translate: -50% -50%;
  display: grid; place-items: center; border-radius: 50% !important;
  background: rgba(10,10,10,.38) !important; border: 1px solid rgba(255,255,255,.35) !important;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
  transition: opacity .3s ease, scale .35s var(--ease);
}
.vp__big svg { width: 50%; height: 50%; }   /* the triangle path is already optically centred (its centroid sits in the middle) */
.vp__big:hover { scale: 1.06; }
.vp.is-playing .vp__big, .vp.is-started:not(.is-ended) .vp__big { opacity: 0; scale: .85; pointer-events: none; }

.vp__bar {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2;
  display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px 0 6px;
  border-radius: 999px;
  background: rgba(14,14,14,.5); border: 1px solid rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  opacity: 0; translate: 0 6px; pointer-events: none;
  transition: opacity .3s ease, translate .35s var(--ease);
}
.vp.is-started.is-awake .vp__bar, .vp.is-started:not(.is-playing) .vp__bar, .vp.is-seeking .vp__bar,
.vp.is-started:focus-within .vp__bar { opacity: 1; translate: 0 0; pointer-events: auto; }
.vp.is-playing:not(.is-awake) video { cursor: none; }

.vp__btn { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; transition: background .2s ease; }
.vp__btn:hover { background: rgba(255,255,255,.12); }
.vp__btn svg { width: 20px; height: 20px; }
.vp__toggle svg:last-child, .vp.is-playing .vp__toggle svg:first-child { display: none; }
.vp.is-playing .vp__toggle svg:last-child { display: block; }
.vp__toggle svg:first-child { width: 16px; height: 16px; margin-left: 2px; }
.vp__x { display: none; }
.vp.is-muted .vp__wave { display: none; }
.vp.is-muted .vp__x { display: block; }
/* Sound button on a case hero that plays with sound (heroSound) */
.hero-sound {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px;
  border-radius: 999px; color: #fff; cursor: pointer; font: inherit; font-size: 14px;
  background: rgba(14,14,14,.5); border: 1px solid rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  transition: background .2s ease, scale .35s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.hero-sound:hover { background: rgba(30,30,30,.6); scale: 1.04; }
.hero-sound svg { width: 20px; height: 20px; flex: none; }
.hero-sound__label { display: none; padding-right: 4px; }
.case-hero__img.is-muted .hero-sound__label { display: inline; }
.case-hero__img.is-muted .hero-sound .vp__wave { display: none; }
.case-hero__img.is-muted .hero-sound .vp__x { display: block; }
.vp__time { flex: none; font-variant-numeric: tabular-nums; color: rgba(255,255,255,.75); white-space: nowrap; }
.vp__now { color: #fff; }

.vp__track { position: relative; flex: 1; height: 24px; cursor: pointer; touch-action: none; outline: none; }
.vp__track::before {                              /* the rail */
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; translate: 0 -50%;
  border-radius: 2px; background: rgba(255,255,255,.22); transition: height .2s ease;
}
.vp__fill {
  position: absolute; left: 0; top: 50%; height: 3px; width: 0; translate: 0 -50%;
  border-radius: 2px; background: #fff; transition: height .2s ease;
}
.vp__knob {
  position: absolute; top: 50%; left: 0; width: 12px; height: 12px; translate: -50% -50%;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4);
  scale: 0; transition: scale .2s var(--ease);
}
.vp__track:hover::before, .vp__track:hover .vp__fill, .vp.is-seeking .vp__track::before, .vp.is-seeking .vp__fill { height: 5px; }
.vp__track:hover .vp__knob, .vp.is-seeking .vp__knob, .vp__track:focus-visible .vp__knob { scale: 1; }
.vp button:focus-visible, .vp__track:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 600px) {                       /* phones: no time readout, so the track keeps room */
  .vp__bar { left: 8px; right: 8px; bottom: 8px; height: 36px; gap: 6px; }
  .vp__time { display: none; }
}
@media (max-width: 900px) {
  .moments { padding-bottom: 80px; }
  .moments__row { grid-template-columns: 1fr !important; }
  .moment[data-format="9:16"] .moment__media { width: 70%; margin: 0 auto; }
}

/* Story blocks: clip(s) with text beside them */
.mblock {
  display: grid; grid-template-columns: repeat(12, 1fr);
  column-gap: var(--layout-grid-gap); row-gap: 24px;
  padding: 56px 0; border-top: 1px solid var(--color-border-default);
}
.mblock:first-child { border-top: 0; padding-top: 0; }
.mblock__text { display: flex; flex-direction: column; gap: 12px; }
.mblock__num { font-variant-numeric: tabular-nums; }
.mblock__body { display: flex; flex-direction: column; gap: 12px; max-width: 44ch; }
.mblock__body p { margin: 0; }
.mblock__note {
  display: inline-block; vertical-align: middle; margin-left: 6px;
  padding: 3px 10px; border-radius: var(--radius-full);
  border: 1px solid var(--color-border-default); color: var(--color-text-secondary);
}
.mblock__media { display: grid; gap: var(--layout-grid-gap); align-items: start; }

/* single: clip 8 cols, text 4 cols bottom-aligned with the clip; sides alternate */
.mblock--single .mblock__media { grid-column: 1 / span 8; grid-row: 1; }
.mblock--single .mblock__text  { grid-column: 9 / span 4; grid-row: 1; align-self: end; padding-bottom: 32px; }
.mblock--single.mblock--flip .mblock__media { grid-column: 5 / span 8; }
.mblock--single.mblock--flip .mblock__text  { grid-column: 1 / span 4; }
/* vertical clips are narrower */
.mblock--single[data-format="9:16"] .mblock__media { grid-column: 3 / span 4; }
.mblock--single[data-format="9:16"] .mblock__text  { grid-column: 8 / span 4; }
.mblock--single[data-format="9:16"].mblock--flip .mblock__media { grid-column: 7 / span 4; }
.mblock--single[data-format="9:16"].mblock--flip .mblock__text  { grid-column: 2 / span 4; }

/* pair: title left, text right, then two clips side by side */
.mblock--pair .mblock__text { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--layout-grid-gap); }
.mblock--pair .mblock__num  { grid-column: 1 / span 4; }
.mblock--pair .t-h4         { grid-column: 1 / span 4; }
.mblock--pair .mblock__body { grid-column: 7 / span 6; grid-row: 1 / span 2; }
.mblock--pair .mblock__media { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
.mblock--pair[data-format="9:16"] .mblock__media { grid-column: 3 / span 8; }

/* aside: a smaller extra image under the text (e.g. research beside the final piece) */
.mblock__aside { margin-top: 12px; }
.mblock__aside .moment { cursor: default; }
.mblock__aside { display: flex; flex-direction: column; gap: 20px; }
.mblock__logo { width: 160px; height: auto; display: block; }
.mblock__aside-text { margin: 0; max-width: 46ch; }

/* steps: one screen with a small switcher under it */
.mblock--steps .steps__stage { grid-column: 1 / span 8; grid-row: 1; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.mblock--steps .mblock__text { grid-column: 9 / span 4; grid-row: 1; align-self: end; padding-bottom: 54px; }
.steps__screen { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.mblock--steps[data-format="9:16"] .steps__stage { grid-column: 3 / span 4; }
.mblock--steps[data-format="9:16"] .steps__screen { aspect-ratio: 9 / 16; }
.mblock--steps[data-format="1:1"]  .steps__screen { aspect-ratio: 1 / 1; }
.steps__shot { position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.steps__shot.is-active { opacity: 1; pointer-events: auto; }
.steps__shot .moment { height: 100%; cursor: default; }
.steps__shot .moment__media { height: 100%; aspect-ratio: auto !important; width: 100% !important; }
.steps__shot video, .steps__shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.steps__shot figcaption { display: none; }

/* the switcher: ‹ Duo 3  03 / 06 › */
.steps__ctrl {
  display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 4px;
  border-radius: var(--radius-full); border: 1px solid var(--color-border-default);
  background: var(--color-bg-surface);
}
.steps__count { display: flex; gap: 10px; min-width: 112px; justify-content: center; font-variant-numeric: tabular-nums; white-space: nowrap; }
.steps__arrow {
  width: 32px; height: 32px; border-radius: 50%; border: 0; padding: 0;
  display: grid; place-items: center; cursor: pointer;
  background: transparent; color: var(--color-text-primary); transition: background .2s ease;
}
.steps__arrow:hover { background: var(--color-bg-control); }
.steps__arrow:active { transform: scale(.92); }


.moment--still { cursor: default; }
.moment--still img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 900px) {
  .mblock { padding: 40px 0; row-gap: 16px; }
  .mblock .mblock__text, .mblock .mblock__media, .mblock--steps .steps__stage,
  .mblock--pair .mblock__num, .mblock--pair .t-h4, .mblock--pair .mblock__body { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .mblock--single .mblock__text, .mblock--steps .mblock__text { padding-bottom: 0; }
  .mblock .mblock__text { order: -1; display: flex; }
  .mblock--pair .mblock__media { grid-template-columns: 1fr; }
  .mblock__aside { max-width: 70%; }
}

/* ---------- Case hero keeps the real format ------------------------------ */
.case-hero__img[data-format="16:9"] { aspect-ratio: 16 / 9; }
.case-hero__img[data-format="9:16"],
.case-hero__img[data-format="1:1"] {
  margin: 0 auto;
  border-radius: var(--radius-md);
}
.case-hero__img[data-format="9:16"] { aspect-ratio: 9 / 16; width: min(calc(82vh * 9 / 16), calc(100% - 2 * var(--layout-page-margin))); }
.case-hero__img[data-format="1:1"]  { aspect-ratio: 1 / 1;  width: min(82vh, calc(100% - 2 * var(--layout-page-margin))); }

/* Touch devices: keep the normal cursor/no hover effects */
@media (hover: none) {
  .tile { cursor: pointer; }
  .view-cursor { display: none; }
}

/* ---------- Mobile: single column, simpler ratios ----------------------- */
@media (max-width: 900px) {
  .intro { padding-bottom: 72px; }
  .works { padding-bottom: 96px; }
  .works__head { grid-template-columns: 1fr; gap: 16px; padding-bottom: 32px; }
  /* 2 columns: wide (16:9) spans both, vertical and square sit side by side */
  .mosaic, .mosaic[data-layout] { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; row-gap: 36px; }
  .mosaic[data-layout="all"] { display: grid; }                    /* rows dissolve into the 2-column grid */
  .mosaic__row { display: contents; }
  .mosaic__pad { display: none; }
  .tile { grid-column: auto !important; grid-row: auto !important; margin-top: 0; }
  .tile--side { display: flex; align-items: stretch; }             /* phones: text back under the image */
  .tile--side .tile__meta { text-align: left; row-gap: 0; }
  .tile--side-left .tile__text { align-items: stretch; }
  .tile[data-format="16:9"] { grid-column: 1 / -1 !important; }
  .mosaic[data-layout="short-form"] .tile:nth-child(even) { margin-top: 48px; }
  .tile__tag { margin-top: 4px; }
  .mosaic .tile .t-card { font-size: 17px; line-height: 21px; }
  .mosaic .tile[data-format="16:9"] .t-card { font-size: 20px; line-height: 24px; }
  .view-cursor { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .eyeball { opacity: 1; animation: none; }
  .rw > span { transform: none; }
  .intro__aside { opacity: 1; transform: none; }
}

/* Tiles with a custom still: the still covers the video until hover */
.ph__still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .3s var(--ease); pointer-events: none; }
.ph--hover.is-hover .ph__still { opacity: 0; }
/* Play button on tiles whose video waits for the cursor: glass circle + triangle, centred */
.ph__play {
  position: absolute; left: 50%; top: 50%; z-index: 1;
  width: clamp(52px, 11%, 72px); aspect-ratio: 1; translate: -50% -50%;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(10,10,10,.38); color: #fff;
  border: 1px solid rgba(255,255,255,.35);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
  pointer-events: none;
  transition: opacity .35s ease, scale .45s var(--ease);
}
.ph__play svg { width: 58%; height: 58%; }   /* path is already optically centred */
/* soft ring that breathes outward so the button gets noticed */
.ph__play::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.5);
  animation: playRing 2.4s ease-out infinite;
}
@keyframes playRing { 0% { scale: 1; opacity: .7; } 70%, 100% { scale: 1.55; opacity: 0; } }
.ph--hover.is-hover .ph__play { opacity: 0; scale: .8; }
@media (hover: none) { .ph__play { display: none; } }
@media (prefers-reduced-motion: reduce) { .ph__play::after { animation: none; opacity: 0; } }

/* ---------- Dopamine molecule: the eyeball's snack ----------------------- */
.molecule {
  position: absolute; z-index: 0; width: clamp(56px, 5.9vw, 130px);
  transform: translate(-50%, -50%) rotate(var(--rot, 0deg));
  color: #e4ddcd; pointer-events: none;
  opacity: 0; scale: .6;
}
.molecule svg { display: block; width: 100%; height: auto; overflow: visible; animation: molFloat 4.5s ease-in-out infinite; }
.molecule.is-in { opacity: .9; scale: 1; transition: opacity .5s ease, scale .7s cubic-bezier(.34, 1.56, .64, 1); }
.molecule.is-gone { transition: none; }
@keyframes molFloat { 0%, 100% { transform: translateY(-5px) rotate(-3deg); } 50% { transform: translateY(5px) rotate(3deg); } }
/* absorbed: quick gulp + dilated pupil */
.eyeball.is-fed { scale: 1.08; }
.eyeball.is-fed .eyeball__pupil { scale: 1.45; }
@media (max-width: 900px), (prefers-reduced-motion: reduce) { .molecule { display: none; } }

/* Hint under the eyeball's resting spot: grey hand + "catch dopamine" */
.eye-hint {
  position: absolute; z-index: 0;
  top: calc(var(--eye-size) + 26px);                         /* just under the eyeball */
  right: calc(var(--layout-page-margin) + 6.25vw); width: var(--eye-size);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--color-text-tertiary);
  pointer-events: none;
  transition: opacity .35s ease;                             /* fade for steering on/off */
}
.eye-hint > * { opacity: 0; animation: eyeballIn 1s var(--ease) .5s forwards; }   /* page-load entrance */
.eye-hint svg { width: 26px; height: 26px; }
.eye-hint svg path { animation: hintTap 2.4s ease-in-out infinite; transform-box: fill-box; }
@keyframes hintTap { 0%, 60%, 100% { translate: 0 0; } 70% { translate: 0 -2px; } 82% { translate: 0 .5px; } }
.intro.is-steering .eye-hint { opacity: 0; }
@media (max-width: 900px), (hover: none), (prefers-reduced-motion: reduce) { .eye-hint { display: none; } }

/* ---------- Case page: scroll hint lower third --------------------------- */
.scroll-hint {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
  height: 260px; padding-bottom: 34px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 16px;
  background: linear-gradient(to top, rgba(10,10,10,.92) 0%, rgba(10,10,10,.7) 35%, rgba(10,10,10,.3) 70%, rgba(10,10,10,0) 100%);
  color: #fff;
  pointer-events: none;
  opacity: 0; translate: 0 14px;
  transition: opacity .7s var(--ease), translate .9s var(--ease);
}
.scroll-hint.is-on { opacity: 1; translate: 0 0; }
.scroll-hint__label { font-size: 15px; font-weight: 500; line-height: 1; letter-spacing: .28em; text-transform: uppercase; padding-left: .28em; }
/* thin track with a light that slides down it */
.scroll-hint__track { position: relative; width: 2px; height: 48px; background: rgba(255,255,255,.25); overflow: hidden; }
.scroll-hint__track i {
  position: absolute; left: 0; top: 0; width: 2px; height: 40%;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
  animation: scrollDrop 1.9s cubic-bezier(.6, 0, .3, 1) infinite;
}
@keyframes scrollDrop { 0% { translate: 0 -100%; } 70%, 100% { translate: 0 260%; } }
@media (max-width: 900px) { .scroll-hint { height: 180px; padding-bottom: 24px; gap: 12px; } .scroll-hint__label { font-size: 13px; } .scroll-hint__track { height: 38px; } }
@media (prefers-reduced-motion: reduce) { .scroll-hint__track i { animation: none; translate: 0 75%; } }

/* ---------- Case page: back button --------------------------------------- */
.case-back {
  position: fixed; z-index: 20;
  left: var(--layout-page-margin); top: calc(var(--header-h) + 18px);
  display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 16px 0 11px; border-radius: var(--radius-full);
  background: rgba(10,10,10,.42); color: #fff;
  border: 1px solid rgba(255,255,255,.22);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: 13px; line-height: 1; letter-spacing: .01em;
  transition: top .45s var(--ease), background .25s ease, border-color .25s ease;
}
.case-back svg { width: 16px; height: 16px; transition: translate .3s var(--ease); }
.case-back:hover { background: rgba(10,10,10,.62); border-color: rgba(255,255,255,.4); }
.case-back:hover svg { translate: -3px 0; }
.case-back.is-stuck { top: 18px; }              /* header scrolled away: slide up to the corner */
.case-back:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 900px) {
  .case-back { height: 34px; padding: 0 13px 0 9px; top: calc(var(--header-h) + 12px); }
  .case-back.is-stuck { top: 12px; }
}

/* ---------- Page transition: grid tile ⇄ case hero ------------------------
   Same-origin page changes animate (Chrome / Edge / Safari; others just navigate).
   The clicked tile's image and the case hero share the name "case-hero", so the
   browser morphs one into the other: position, size and corner radius. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
.case-hero__img { view-transition-name: case-hero; }
::view-transition-group(case-hero) {
  animation-duration: .25s;
  animation-timing-function: cubic-bezier(.32, .72, 0, 1);   /* iOS-style: quick launch, soft settle */
}
::view-transition-old(case-hero), ::view-transition-new(case-hero) {
  height: 100%; object-fit: cover;          /* keep the picture's shape while it grows */
}
::view-transition-old(case-hero) { animation: vtFadeOut .14s ease .03s both; }
::view-transition-new(case-hero) { animation: vtFadeIn .14s ease .03s both; }
/* everything else: a quick fade so the hero is the star */
::view-transition-old(root) { animation: vtFadeOut .12s ease both; }
::view-transition-new(root) { animation: vtFadeIn .16s ease .08s both; }
@keyframes vtFadeOut { to { opacity: 0; } }
@keyframes vtFadeIn { from { opacity: 0; } }

/* ---------- Intro scales with the window ---------------------------------
   Same look as before at 1440px wide; grows on bigger screens, shrinks on smaller ones. */
:root { --eye-size: clamp(80px, 8.6vw, 190px); }   /* keep in sync with .eyeball --size */
.intro .t-display-xl {
  font-size: clamp(27px, 3.04vw, 70px);             /* ~44px at 1440 */
  line-height: 1;
  letter-spacing: calc(-.034em + .015em);           /* the old -2.2px, as a share of the size */
}
.intro h1 { max-width: 14.1em; }                     /* the old 900px, scaled with the text */
@media (max-width: 900px) {
  .intro .t-display-xl { font-size: clamp(24px, 6.4vw, 32px); line-height: 1.12; letter-spacing: calc(-.024em + .015em); }
}

/* ---------- Eyeball + hint: one unit, centred in the right column -------
   Sits centred above the side text with even space around it, so it stays
   balanced at every window width (no fixed offset from the edge). */
@media (min-width: 901px) {
  .intro { grid-template-rows: 1fr auto; row-gap: 36px; }
  .intro > h1 { grid-column: 1; grid-row: 1 / span 2; align-self: start; }   /* headline sits up top, level with the eyeball */
  .intro > .intro__aside { grid-column: 2; grid-row: 2; justify-self: center; width: fit-content; text-align: center; }
  .eye-zone {
    grid-column: 2; grid-row: 1; align-self: center; justify-self: center;
    display: flex; flex-direction: column; align-items: center; gap: 22px;
  }
  .eye-zone .eyeball { position: relative; top: auto; right: auto; }
  .eye-zone .eye-hint { position: static; width: auto; }
}
@media (max-width: 900px) {
  .eye-zone { justify-self: end; }
}

/* Side text + hint scale with the window too (same as now at 1440 px) */
@media (min-width: 901px) {
  .intro { grid-template-columns: 1fr clamp(220px, 25vw, 560px); }   /* 360px column at 1440 */
  .intro > .intro__aside { font-size: clamp(11px, .8vw, 18px); line-height: 1.32;          /* 11.5px at 1440 */
    margin-bottom: -100px; }                                  /* sits just above the divider line */
  .eye-hint { font-size: clamp(10px, .76vw, 17px); }                                  /* 11px at 1440 */
  .eye-hint svg { width: clamp(18px, 1.5vw, 34px); height: auto; aspect-ratio: 1; }    /* 22px at 1440 */
}

/* "real" gets underlined: the line draws in once the headline has landed */
.intro > h1 .hl { position: relative; display: inline-block; }
.intro > h1 .hl::after {
  content: ""; position: absolute; left: -.02em; right: -.02em; top: 1.04em;   /* just under the baseline */
  height: .075em; border-radius: .04em;
  background: currentColor;
  transform: scaleX(0); transform-origin: left center;
  transition: transform .55s cubic-bezier(.65, 0, .35, 1) .15s;
}
.intro > h1.is-reveal-done .hl::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .intro > h1 .hl::after { transform: scaleX(1); transition: none; } }
@media (max-width: 900px) { .intro > h1 .hl::after { top: 1.1em; } }   /* taller line-height on phones shifts the baseline */

/* ---------- Tool badges under the headline --------------------------------
   Each app's original logo colours, in a circle instead of its rounded square; full name on hover.
   Desktop: bottom-left of the intro, level with the side text. */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tools {
  --tool: clamp(30px, 2.8vw, 64px);                  /* 40px at 1440 */
  display: flex; gap: calc(var(--tool) * .22); list-style: none; margin: 0; padding: 0;
}
.tools li {
  width: var(--tool); height: var(--tool); border-radius: 50%;
  display: grid; place-items: center;
  background: #00005b; color: #99f;                  /* Ae / Pr / Au: Adobe's video-and-audio navy + lilac */
  cursor: default; user-select: none;
  animation: toolIn .8s var(--ease) both;            /* enters with the side text, one after another */
  animation-delay: calc(1.1s + var(--n, 0) * 70ms);
  transition: transform .25s var(--ease), filter .25s ease;
}
.tools li[title="Photoshop"] { background: #001e36; color: #31a8ff; }
.tools li[title="Unreal Engine 5"] { background: #000; color: #fff; }   /* Unreal: white mark + ring on black */
.tools li:nth-child(2) { --n: 1; } .tools li:nth-child(3) { --n: 2; }
.tools li:nth-child(4) { --n: 3; } .tools li:nth-child(5) { --n: 4; }
.tools svg { width: 68%; height: auto; display: block; }
.tools li[title="Unreal Engine 5"] svg { width: 100%; }  /* its own ring sits on the circle's edge */
@keyframes toolIn { from { opacity: 0; translate: 0 8px; } }
.tools li:hover { transform: translateY(-3px); filter: brightness(1.25); }
@media (prefers-reduced-motion: reduce) { .tools li { animation: none; } }
@media (min-width: 901px) {
  .intro > h1 { grid-row: 1; }
  .tools { grid-column: 1; grid-row: 1 / span 2; align-self: end; margin-bottom: -1.25vw; }   /* bottom lines up with the side text */
}
@media (max-width: 900px) { .tools { --tool: 36px; } }

/* Desktop intro keeps its proportions: all spacing scales with the window width (values = the
   1440px layout), so a narrower window gives a shorter section instead of a taller one.
   Below 900px it switches to the stacked phone layout (eyeball under the text). */
@media (min-width: 901px) {
  .intro { padding-top: 6.67vw; padding-bottom: 3.2vw; column-gap: 4.45vw; row-gap: 1.1vw; }
  .eye-zone { gap: 1.53vw; }
  .eye-hint { gap: .56vw; }
  .intro > .intro__aside { margin-bottom: -1.25vw; white-space: nowrap; }   /* one line, ~28px above the divider at 1440 */
}

/* Platform icons under a stat (YouTube / Instagram / TikTok) */
.stat__on { display: flex; gap: 12px; margin-top: 8px; color: #fff; }
.stat__on span { display: block; width: 24px; height: 24px; }
.stat__on svg { width: 100%; height: 100%; display: block; }
.stat__note { font-size: 14px; line-height: 1; letter-spacing: 0; margin-left: 10px; color: rgba(255,255,255,.6); white-space: nowrap; }

/* No lone word on the last line of any text (site-wide). Browsers without support just wrap normally. */
p, li, figcaption, blockquote { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; }

/* ---------- Privacy & credits page --------------------------------------- */
.legal { padding-top: calc(var(--header-h, 72px) + 64px); padding-bottom: 160px; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--layout-grid-gap); }
.legal__head { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 12px; padding-bottom: 64px; }
.legal__sec { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; padding: 28px 0; border-top: 1px solid rgba(255,255,255,.1); }
.legal__sec h2 { grid-column: 1 / span 4; }
.legal__body { grid-column: 5 / span 6; display: flex; flex-direction: column; gap: 14px; max-width: 62ch; }
.legal__body p { margin: 0; }
@media (max-width: 900px) {
  .legal { padding-top: calc(var(--header-h, 64px) + 32px); padding-bottom: 96px; }
  .legal__head { padding-bottom: 40px; }
  .legal__sec h2, .legal__body { grid-column: 1 / -1; }
  .legal__sec { row-gap: 12px; }
}

/* ---------- 4:5 format (posters) ----------------------------------------- */
.moment[data-format="4:5"] .moment__media { aspect-ratio: 4 / 5; }
.mblock--single[data-format="4:5"] .mblock__media { grid-column: 2 / span 5; }
.mblock--single[data-format="4:5"] .mblock__text  { grid-column: 8 / span 4; }
.case-hero__img[data-format="4:5"] {
  margin: 0 auto; border-radius: var(--radius-md); overflow: hidden;
  width: min(calc(82vh * .72), calc(100% - 2 * var(--layout-page-margin)));
}
/* an image hero (stills) always shows its real shape, whatever the format */
.case-hero__img[data-format]:has(> img) { aspect-ratio: auto; }

/* ---------- Raw assets (stills case pages) -------------------------------- */
.raw { display: flex; flex-direction: column; gap: 32px; padding-top: 48px; padding-bottom: 120px; }
.raw__head { display: flex; flex-direction: column; gap: 8px; }
.raw__rows { display: flex; flex-direction: column; gap: var(--layout-grid-gap); }
.raw__row { display: flex; gap: var(--layout-grid-gap); align-items: flex-start; }
.raw__item, .raw__spacer { flex: var(--ar) 1 0; min-width: 0; }
.raw__item { margin: 0; aspect-ratio: var(--ar); border-radius: var(--radius-md); overflow: hidden; background: #161616; }
.raw__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.raw__item--cutout { background: #1c1c1c; }
.raw__item--cutout img { object-fit: contain; padding: 6%; }
@media (max-width: 900px) {
  .raw { padding-bottom: 72px; }
  .raw__row { flex-wrap: wrap; gap: 12px; }
  .raw__item { flex: 1 1 calc(50% - 6px); }
  .raw__spacer { display: none; }
  .mblock--single[data-format="4:5"] .mblock__media { grid-column: 1 / -1; }
}

/* ---------- Contacts popover: glass, springy open, mini eyeball, copy email ---------- */
.popover {
  width: 272px;
  background: rgba(20,20,20,.62);
  border: 1px solid rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 24px 70px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06);
  animation: popIn .5s cubic-bezier(.34, 1.56, .64, 1);
}
.popover > * { animation: popItem .45s var(--ease) both; }
.popover > :nth-child(2) { animation-delay: .07s; }
.popover.is-closing { animation: popOut .18s ease-in forwards; }
@keyframes popIn  { 0% { opacity: 0; transform: translateY(-10px) scale(.92); filter: blur(6px); } 60% { opacity: 1; filter: blur(0); } }
@keyframes popItem { 0% { opacity: 0; transform: translateY(6px); } }
@keyframes popOut { to { opacity: 0; transform: translateY(-6px) scale(.96); filter: blur(4px); } }
@media (prefers-reduced-motion: reduce) { .popover, .popover > *, .popover.is-closing { animation-duration: .01s; animation-delay: 0s; } }

/* mini version of the landing eyeball; the iris follows the cursor, it blinks when the popover opens */
.mini-eye {
  --s: 34px; position: relative; width: var(--s); aspect-ratio: 1; border-radius: 50%; overflow: hidden; flex: none;
  background: radial-gradient(circle at 42% 30%, #f1ebde 0%, #e4ddcd 40%, #cdc6b5 72%, #a8a090 100%);
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
.mini-eye--lg { --s: 48px; }
.mini-eye__iris {
  position: absolute; left: 50%; top: 50%; width: 58%; aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%; background: #d6cfc0; box-shadow: 0 0 0 calc(var(--s) * .05) #141414;
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1);
}
.mini-eye__pupil {
  position: absolute; inset: 20%; border-radius: 50%; background: #0b0b0b;
}
.mini-eye__pupil::before { content: ""; position: absolute; width: 30%; aspect-ratio: 1; left: 52%; top: 18%; border-radius: 50%; background: #ece6d9; }
.mini-eye__lid {                                 /* eyelid that sweeps down and back up */
  position: absolute; inset: 0; background: #b9b19f; transform: translateY(-101%);
}
.mini-eye.is-blinking .mini-eye__lid { animation: blink .32s ease-in-out; }
@keyframes blink { 45%, 55% { transform: translateY(0); } }

/* email + copy button */
.email-row { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.copy-btn {
  position: relative; display: inline-grid; padding: 3px 12px 5px; /* the font sits low in its line box: nudge the text up so the capitals are centered */ border-radius: 999px; cursor: pointer;
  color: #f2f2f2; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  font: inherit; line-height: 1.4; transition: background .2s ease, scale .3s cubic-bezier(.34, 1.56, .64, 1);
}
.copy-btn:hover { background: rgba(255,255,255,.16); }
.copy-btn:active { scale: .94; }
.copy-btn > span { grid-area: 1 / 1; transition: opacity .2s ease, translate .25s var(--ease); }
.copy-btn__done { opacity: 0; translate: 0 6px; }
.copy-btn.is-copied .copy-btn__label { opacity: 0; translate: 0 -6px; }
.copy-btn.is-copied .copy-btn__done { opacity: 1; translate: 0 0; }
.mmenu .copy-btn { font-size: 14px; }

/* ---------- Contact card (popover + mobile menu) ---------- */
.popover.ccard { width: 340px; padding: 14px; gap: 14px; border-radius: 22px; }
.ccard__top { display: flex; align-items: center; justify-content: space-between; }
.ccard__title { padding: 4px 4px 6px; }
.ccard__mail {
  display: flex; align-items: center; gap: 10px; flex-wrap: nowrap;
  padding: 12px 12px 12px 14px; border-radius: 14px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
}
.ccard__mail-link { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; color: inherit; text-decoration: none; }
.ccard__addr { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; line-height: 22px; transition: opacity .2s ease; }
.ccard__mail-link:hover .ccard__addr { opacity: .7; }
.ccard__socials { display: grid; grid-template-columns: 1fr; gap: 8px; }
.ccard__social {
  display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 14px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: inherit; text-decoration: none;
  font-size: 15px; line-height: 20px; transition: background .2s ease, translate .3s cubic-bezier(.34, 1.56, .64, 1);
}
.ccard__social:hover { background: rgba(255,255,255,.12); translate: 0 -2px; }
.ccard__social span:last-child { transition: translate .25s var(--ease); }
.ccard__social:hover span:last-child { translate: 2px -2px; }
.ccard__foot { padding: 2px 4px 0; }
.popover.ccard > :nth-child(3) { animation-delay: .1s; }
.popover.ccard > :nth-child(4) { animation-delay: .13s; }
.popover.ccard > :nth-child(5) { animation-delay: .16s; }
.ccard--menu { gap: 10px; }
.ccard--menu .ccard__addr { font-size: 18px; line-height: 24px; }
.ccard--menu .ccard__social { padding: 16px; font-size: 17px; }
/* smaller single moment (e.g. a Figma board): media 5 columns instead of 8 */
@media (min-width: 901px) {
  .mblock--single.mblock--small .mblock__media { grid-column: 2 / span 5; }
  .mblock--single.mblock--small .mblock__text  { grid-column: 8 / span 4; }
  .mblock--single.mblock--small.mblock--flip .mblock__media { grid-column: 7 / span 5; }
  .mblock--single.mblock--small.mblock--flip .mblock__text  { grid-column: 2 / span 4; }
}
/* vertical clip (tall: true): a phone-sized player, not a full-width one */
@media (min-width: 901px) {
  .mblock--single.mblock--tall .mblock__media { grid-column: 2 / span 3; }
  .mblock--single.mblock--tall .mblock__text  { grid-column: 6 / span 5; }
  .mblock--single.mblock--tall.mblock--flip .mblock__media { grid-column: 8 / span 3; }
  .mblock--single.mblock--tall.mblock--flip .mblock__text  { grid-column: 2 / span 5; }
  /* text column as tall as the clip: top aside level with its top, title + the rest at its bottom */
  .mblock--single.mblock--tall .mblock__text:has(.mblock__aside--top) { align-self: stretch; display: flex; flex-direction: column; padding-bottom: 0; }
  .mblock__aside--top { margin: 0 0 auto; padding-bottom: 32px; }
}
@media (max-width: 900px) { .mblock--tall .mblock__media { max-width: 360px; } }
/* three clips in one row */
@media (min-width: 901px) { .mblock--pair:not(.mblock--bento) .mblock__media:has(> .moment ~ .moment ~ .moment) { grid-template-columns: repeat(3, 1fr); } }
/* a single clip with no title or text: full width */
.mblock--single:not(:has(.mblock__text)) .mblock__media { grid-column: 1 / -1; }
/* bento (bento: true): first clip is vertical and runs down the left; the rest form a 2x2 grid.
   Left column = 9/16 of two stacked 16:9 rows plus the gap between them, so the short fits without cropping. */
.mblock--bento .mblock__media { --g: var(--layout-grid-gap); grid-column: 1 / -1; align-items: stretch;
  grid-template-columns: 1fr repeat(2, calc((100% - 2.5625 * var(--g)) / 2.6328)); }   /* gap-exact: short stays 9:16 */
.mblock--bento .moment:first-child { grid-row: 1 / span 2; }
/* very light glow behind the clips */
.mblock--bento .moment__media { box-shadow: 0 0 48px 2px rgba(255,255,255,.07); }
.mblock--bento .moment:first-child .moment__media { aspect-ratio: auto; flex: 1; }
@media (max-width: 900px) {
  .mblock--bento .mblock__media { grid-template-columns: 1fr; }   /* phones: short on top, then each clip full width */
  .mblock--bento .moment:first-child { grid-row: auto; width: min(100%, 360px); justify-self: center; }
  .mblock--bento .moment:first-child .moment__media { aspect-ratio: 9 / 16; flex: none; }
}

/* synced pair: only the first clip shows controls; the second follows it */
.vp--follower .vp__big, .vp--follower .vp__bar { display: none; }

/* synced pair: one bar under both clips, always visible */
.sync-bar { grid-column: 1 / -1; position: relative; height: 44px; color: #fff; }
.sync-bar .vp__bar { left: 0; right: 0; bottom: 0; top: 0; height: auto; opacity: 1; translate: 0 0; pointer-events: auto; background: rgba(255,255,255,.06); }
.sync-bar button { color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.sync-bar svg { width: 100%; height: 100%; display: block; }
.sync-bar .vp__btn svg { width: 20px; height: 20px; }
.sync-bar .vp__toggle svg:first-child { width: 16px; height: 16px; }
.sync-bar.is-playing .vp__toggle svg:first-child { display: none; }
.sync-bar.is-playing .vp__toggle svg:last-child { display: block; }
.sync-bar.is-muted .vp__wave { display: none; }
.sync-bar.is-muted .vp__x { display: block; }
.sync-bar .vp__track:hover .vp__knob, .sync-bar .vp__track:focus-visible .vp__knob { scale: 1; }
.mblock[data-sync] .vp__big { display: none; }   /* synced pair: no play circle, the bar below and a click on either clip play both */

/* steps (e.g. hints): clips play by themselves; only a sound button on the screen */
.vp--bare .vp__big, .vp--bare .vp__bar { display: none; }
.vp--bare video { cursor: default; pointer-events: none; }
.steps__sound { z-index: 3; }
/* loop clips with their own sound button (loopSound: true) */
.loop__sound { z-index: 3; }
.loop__restart { z-index: 3; right: auto; left: 12px; width: 40px; padding: 0; justify-content: center; }
/* sound on = icon only: a perfect circle instead of a squashed pill */
.vp:not(.is-muted) .loop__sound, .steps__screen:not(.is-muted) .steps__sound { width: 40px; padding: 0; justify-content: center; }
.vp.is-muted .loop__sound .hero-sound__label { display: inline; }
.vp .loop__sound .vp__x { display: none; }
.vp.is-muted .loop__sound .vp__wave { display: none; }
.vp.is-muted .loop__sound .vp__x { display: block; }
.steps__screen.is-muted .hero-sound__label { display: inline; }
.steps__screen .hero-sound .vp__x { display: none; }
.steps__screen.is-muted .hero-sound .vp__wave { display: none; }
.steps__screen.is-muted .hero-sound .vp__x { display: block; }
.mblock[data-silent] .vp__mute { display: none; }   /* clip without sound (silent: true) */
.mblock__link { display: inline-block; margin-top: 12px; justify-self: start; }   /* link under a block title */
.mblock--pair .mblock__link { grid-column: 1 / span 4; }
/* pair with textUnder: the text sits under the title (above the link) instead of on the right */
.mblock--pair.mblock--under .mblock__body { grid-column: 1 / span 6; grid-row: auto; order: 1; margin-top: 8px; }
.mblock--pair.mblock--under .mblock__link { order: 2; }
