:root {
  --bg: #ffffff;
  --blue: #1317f2; /* the video's blue as Safari shows it */
  --reel: min(440px, 62vmin); /* kept at or below half the 1080px source so it stays crisp on retina */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: #111;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
  overflow: hidden; /* no scrolling while the loader runs */
}
/* No overflow rules on html/body: on iPhone they make scrolling stutter. Nothing on the page is
   wider than the window; the elements that could stick out clip themselves. */
body.is-ready { overflow: visible; }
/* Blue background: a square-sized blue layer sits hidden behind the video and scales up to
   cover the window while the page is blue (script.js sets --cover). Back to white instantly. */
body.is-blue:not(.is-scrolled) .corner, body.is-blue:not(.is-scrolled) .replay { color: #fff; }
body.is-blue .reel::after { box-shadow: none; }
body.is-scrolled .flood { visibility: hidden; transition: none; }

.flood {
  position: fixed; z-index: 0;
  left: 50%; top: 50%;
  width: var(--reel); height: var(--reel);
  margin: calc(var(--reel) / -2) 0 0 calc(var(--reel) / -2);
  background: var(--blue); /* fallback until the flood video has its frame */
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
  transform: scale(1);
}
/* Shows only source pixels 10–50 of a solid blue frame (1080 / 40 = 27× zoom) */
.flood__video {
  position: absolute; left: 0; top: 0;
  width: 100%; height: 100%;
  transform-origin: 0 0;
  transform: scale(27) translate(-0.926%, -0.926%);
}
body.is-blue .flood {
  visibility: visible;
  transform: scale(var(--cover, 6));
  transition: transform 0.35s cubic-bezier(0.3, 0, 0.2, 1);
}

/* ---------- VIDEO ---------- */
.stage {
  position: fixed; inset: 0; z-index: 1;
  display: grid; place-items: center;
}
.reel {
  position: relative;
  width: var(--reel);
  aspect-ratio: 1;
  opacity: 0;
  transform: scale(0.96);
}
/* Handover: loader fades out (0.8s); as it finishes the reel starts playing and fades in
   while it plays (START_DELAY_MS in script.js matches the 0.8s). */
body.is-ready .reel { animation: in 0.6s ease 0.8s forwards; }
.reel video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  clip-path: inset(2px); /* cut the video's own edge pixels off, 2px on every side */
}

/* White border drawn over the video's outer pixels to hide edge hairlines in some frames */
.reel::after {
  content: ""; position: absolute; inset: -1px;
  box-shadow: inset 0 0 0 5px var(--bg);
  pointer-events: none;
}
@keyframes in { to { opacity: 1; transform: none; } }

/* ---------- GRAIN ---------- */
.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none; z-index: 10;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 1.4 -0.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.6s steps(6) infinite;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-6%, 4%); }
  40%  { transform: translate(4%, -8%); }
  60%  { transform: translate(-8%, -3%); }
  80%  { transform: translate(7%, 6%); }
  100% { transform: translate(-2%, 8%); }
}

/* ---------- CORNERS ---------- */
.corner, .replay {
  position: fixed; z-index: 20;
  color: #111;
  background: none; border: 0; padding: 0; margin: 0;
  font: inherit; letter-spacing: inherit; text-transform: inherit;
  text-decoration: none;
  opacity: 0;
}
body.is-ready .corner { animation: fade 1.2s ease 0.8s forwards; }
.corner--tl { top: 28px; left: 32px; }
.corner--tr { top: 28px; right: 32px; cursor: pointer; }
.corner--bl { bottom: 28px; left: 32px; }
.corner--br { bottom: 28px; right: 32px; }
.corner--tr span { opacity: 0.55; transition: opacity 0.3s; }
.corner--tr:hover span { opacity: 1; }
@keyframes fade { to { opacity: 1; } }

.replay {
  left: 50%; bottom: 28px; transform: translateX(-50%);
  cursor: pointer; animation: none;
  transition: opacity 0.8s var(--ease) 0.6s;
  pointer-events: none;
}
body.is-end .replay { opacity: 0.55; pointer-events: auto; }
body.is-end .replay:hover { opacity: 1; transition-delay: 0s; }

/* ---------- LOADER ---------- */
.loader {
  position: fixed; inset: 0; z-index: 15;
  display: grid; place-content: center; justify-items: center; gap: 14px;
  transition: opacity 0.8s ease, visibility 0s 0.8s;
}
body.is-ready .loader { opacity: 0; visibility: hidden; }
.loader__num { font-variant-numeric: tabular-nums; font-weight: 500; }
.loader__bar {
  display: block; width: calc(var(--reel) * 0.4); height: 1px;
  background: rgba(17, 17, 17, 0.12); overflow: hidden;
}
.loader__bar i { display: block; height: 100%; background: #111; transform: scaleX(0); transform-origin: left; }

/* ---------- SCROLL ---------- */
.hero-spacer { height: 100vh; height: 100svh; }

/* Logo that travels from the centre of the hero to the top and stays there (script.js) */
.sticky-logo {
  position: fixed; left: 0; top: 0; z-index: 18;
  transform-origin: 0 0;
  opacity: 0; pointer-events: none;
  will-change: transform, opacity;
}
.sticky-logo img { display: block; width: 100%; height: auto; }
.sticky-logo img { transition: filter 0.4s ease; }
body.is-dark .sticky-logo img { filter: brightness(0) invert(1); }
body.is-scrolled .sticky-logo { pointer-events: auto; }

/* Over the photos the corner texts invert so they stay readable */
body.is-scrolled .corner { color: #fff; mix-blend-mode: difference; }
/* Phones: lighter rendering so scrolling stays smooth (no blend modes, no moving grain layers) */
@media (hover: none), (max-width: 600px) {
  body.is-scrolled .corner { color: #111; mix-blend-mode: normal; }
  body.is-dark .corner { color: #fff; }
  .grain { display: none; } /* a fixed layer over the whole page is costly while scrolling */
  .shot__grain { display: none; }
  .pin .shot__grain { display: block; animation: none; }
  .shot, .shot img, .work__title, .band__text { will-change: auto; }
}
body.is-scrolled .replay { opacity: 0; pointer-events: none; }

.work {
  position: relative; z-index: 5;
  background: var(--bg);
  padding: 30vh 32px 0;
}

/* Typography: one family, Poppins (the logo's geometric type). Display text in medium weight,
   tight tracking; emphasis in the brand blue. */
.display {
  margin: 0;
  font-weight: 500;
  text-transform: none;
  letter-spacing: -0.045em;
  line-height: 1;
  font-size: clamp(40px, 6.4vw, 112px);
  color: #111;
}
.display em { font-style: normal; color: var(--blue); }
.eyebrow { margin: 0 0 28px; font-size: 11px; letter-spacing: 0.18em; opacity: 0.55; }
.work__intro { max-width: 1100px; margin: 0 0 34vh 8.33%; }
.work__title { transform-origin: 0 0; will-change: transform; } /* grows in place, see script.js */

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 72px;
  row-gap: 44vh;
  align-items: start;
}
/* Every photo is driven by its scroll position in script.js (parallax, zoom, frame reveal,
   grain, and per-photo negative → positive, grey → colour or blur → sharp). */
.shot {
  grid-column: var(--col);
  margin: var(--mt) -1vw 0; /* a touch wider than its columns */
  will-change: transform;
}
.shot__frame {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #f2f2f2;
}
.shot--tall .shot__frame { aspect-ratio: 2 / 3; } /* the originals are 2:3 portraits */
.shot img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  object-position: 50% 30%; /* keep faces in frame when cropping */
  filter: saturate(1.2) contrast(1.04); /* matches PHOTO_SAT / PHOTO_CONTRAST in script.js */
  will-change: transform, filter;
}
.shot__grain {
  position: absolute; inset: -50%;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 1.8 -0.4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: 0.15; /* still and light on the photos, so nothing flickers */
}
.shot figcaption {
  display: flex; gap: 14px; align-items: baseline;
  margin-top: 14px;
  font-size: 10px; letter-spacing: 0.16em;
}
.shot figcaption span { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--blue); }


/* Text moments between the photos */
.note { grid-column: var(--col); align-self: center; text-transform: none; }
.note .eyebrow { text-transform: uppercase; }
.note__text {
  margin: 0; font-weight: 500; letter-spacing: -0.035em; line-height: 1.08;
  font-size: clamp(30px, 3.6vw, 60px); color: #111;
}
.note__text em, .note__big em { font-style: normal; color: var(--blue); }
.note__list {
  list-style: none; margin: 0; padding: 0;
  font-weight: 500; letter-spacing: -0.045em; line-height: 1.02;
  font-size: clamp(40px, 6.4vw, 104px); color: #d4d4d4;
}
.note--list { height: 380vh; align-self: start; } /* scroll room: about half a screen per discipline */
.list__stick {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
}
.note__list li { transform-origin: 0 60%; transition: color 0.35s ease; }
.note__list li.is-on { color: var(--blue); animation: pop 0.7s cubic-bezier(0.3, 0.7, 0.4, 1) both; }
/* grows, overshoots a little and settles back */
@keyframes pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.16); }
  70% { transform: scale(1.02); }
  100% { transform: scale(1.06); }
}
.note__small {
  margin: 36px 0 0; max-width: 36ch;
  font-size: 15px; letter-spacing: 0.02em; line-height: 1.6; color: #555;
}
.note__big {
  margin: 0; text-align: center;
  font-weight: 500; letter-spacing: -0.045em; line-height: 1;
  font-size: clamp(40px, 6.4vw, 112px); color: #111;
}

/* Pinned line that grows until "feeling" fills the screen */
.note--grow { grid-column: 1 / -1; margin: 0 -32px -52vh; height: 300vh; align-self: start; }
.note__stick {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  display: grid; place-items: center;
  overflow: hidden;
}
.note--grow .note__big { position: relative; z-index: 1; transform-origin: 50% 50%; } /* grows from the centre out */
/* the next photo sits behind the line and fades in as the line fades out */
.feel__photo {
  position: absolute; left: 50%; top: 50%; margin: 0;
  width: min(30vw, 41vh);
  transform: translate(-50%, -50%);
  opacity: 0;
}
.feel__photo--before { opacity: 1; }
.note--grow .note__big { opacity: 0; }
.feel__frame { aspect-ratio: 2 / 3; overflow: hidden; background: #f2f2f2; }
.feel__frame img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
  filter: saturate(1.2) contrast(1.04);
}
.feel__photo figcaption {
  display: flex; gap: 14px; align-items: baseline; margin-top: 14px;
  font-size: 10px; letter-spacing: 0.16em;
}
.feel__photo figcaption span { font-weight: 600; color: var(--blue); }

/* Huge line that slides sideways with the scroll */
.band {
  grid-column: 1 / -1;
  overflow: hidden;
  margin: 0 -32px;
  pointer-events: none;
}
.band__text {
  display: inline-block; white-space: nowrap;
  font-weight: 500; text-transform: none;
  font-size: clamp(64px, 13vw, 220px);
  letter-spacing: -0.05em; line-height: 1;
  color: #111;
  will-change: transform;
}
.band__text em { font-style: normal; color: var(--blue); }

/* ---------- FINALE ---------- */
/* The last photo pins and grows from a framed photo to full screen, then the closing line rises
   over it. All values are driven by scroll in script.js (--open, --zoom, --shade, --text). */
.pin {
  position: relative; z-index: 5;
  height: 340vh;
  background: var(--bg);
}
.finale { margin-top: 34vh; }
/* the strip variant sits inside the collage: full-bleed and a little shorter */
.pin--strip { grid-column: 1 / -1; margin: 0 -32px; height: 300vh; }
.pin--strip .pin__media img { object-position: 50% 50%; }
.pin--strip .pin__text { place-content: end start; justify-items: start; text-align: left; padding: 0 6vw 13vh; }
.pin__sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100lvh; /* the large viewport: no white band when the phone's toolbar hides */
  overflow: hidden;
}
.pin__media {
  /* starts as a centred 2:3 frame showing the whole photo, grows to the full window */
  position: absolute; left: 50%; top: 50%;
  width: var(--w, 54.7vh); height: var(--h, 82vh);
  transform: translate(-50%, -50%);
  overflow: hidden;
}
.pin__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%;
  transform: scale(var(--zoom, 1.1));
  filter: invert(var(--neg, 0)) brightness(var(--bright, 1.5)) saturate(1.2) contrast(1.04);
  will-change: transform, filter;
}
/* Phones: each photo reveals once by itself (no per-frame scroll effects, so nothing stutters) */
.is-touch .shot__frame { clip-path: inset(30% 0 0 0); transition: clip-path 1.1s var(--ease); }
.is-touch .shot img { transform: scale(1.18); transition: transform 1.6s var(--ease), filter 1.2s var(--ease); }
.is-touch .shot[data-fx="blur"] img { filter: blur(12px) saturate(1.2) contrast(1.04); }
.is-touch .shot.is-in .shot__frame { clip-path: inset(0 0 0 0); }
.is-touch .shot.is-in img { transform: scale(1.04); filter: saturate(1.2) contrast(1.04); }
.pin--clip .pin__media {
  left: 0; top: 0; width: 100%; height: 100%;
  transform: none;
  clip-path: var(--clip, inset(50% 0));
}
.pin__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.55));
  opacity: var(--shade, 0);
}
.pin .shot__grain { opacity: var(--grain, 0.8); animation: grain 0.5s steps(5) infinite; }
.pin__text {
  position: absolute; inset: 0;
  display: grid; place-content: center; justify-items: center;
  text-align: center; padding: 0 24px;
  opacity: var(--text, 0);
  transform: translateY(calc((1 - var(--text, 0)) * 60px));
}
.pin__text .display { color: #fff; font-size: clamp(44px, 8vw, 150px); }
.pin__text .display em { color: #fff; }
.outro__mail {
  display: inline-block; margin-top: 48px;
  color: #fff; text-decoration: none;
  font-size: 12px; letter-spacing: 0.18em;
  border-bottom: 1px solid currentColor; padding-bottom: 4px;
}
.outro__mail:hover { opacity: 0.7; }
.outro__replay {
  margin-top: 44px; padding: 0 0 4px;
  background: none; border: 0; border-bottom: 1px solid currentColor;
  color: #fff; font: inherit; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  cursor: pointer;
}
.outro__replay:hover { opacity: 0.7; }
.outro__address {
  margin: 28px 0 0;
  font-style: normal; font-size: 11px; letter-spacing: 0.18em; line-height: 1.9;
  color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 600px) {
  body { font-size: 10px; }
  :root { --reel: min(340px, 78vw); }
  .corner--tl, .corner--tr { top: 20px; }
  .corner--bl, .corner--br, .replay { bottom: 20px; }
  .corner--tl, .corner--bl { left: 16px; }
  .corner--tr, .corner--br { right: 16px; }
  .replay { bottom: 52px; }
  .work { padding: 20vh 16px 0; }
  .work__intro { margin: 0 0 20vh; }
  .gallery { grid-template-columns: repeat(6, 1fr); column-gap: 12px; row-gap: 24vh; }
  .shot { grid-column: 1 / span 4; margin: 0; }
  .shot:nth-of-type(even) { grid-column: 3 / span 4; }
  .shot:nth-of-type(3n) { grid-column: 2 / span 4; }
  .band { margin: 4vh -16px; }
  .pin--strip { margin: 0 -16px; }
  .gallery .shot--m3 { grid-column: 2 / span 3; }
  .gallery .note { grid-column: 1 / -1; }
  .note--grow { margin: 0 -16px -14vh; }
  .note--list { text-align: center; }
  .note--list .note__list li { transform-origin: 50% 60%; }
  .note--list .note__small { margin-left: auto; margin-right: auto; }
  .feel__photo { width: 62vw; }
}

@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .reel, .corner { animation-duration: 0.01ms; }
  .shot__grain { animation: none; }
  .pin__media { --w: 100vw; --h: 100vh; }
  .pin__media img { --zoom: 1; --bright: 1; --neg: 0; }
  .pin { --shade: 1; --text: 1; --grain: 0.15; }
  .note--grow { height: auto; }
  .note--list { height: auto; }
  .list__stick { position: static; height: auto; }
  .note__stick { position: static; height: auto; }
  .feel__photo { position: static; transform: none; opacity: 1; margin: 10vh auto 0; }
  .note--grow .note__big { opacity: 1; }
}

/* Phones: the opening line grows once as it comes into view, the band slides on its own */
.is-touch .work__title { transform: scale(0.72); transition: transform 1.6s var(--ease); }
.is-touch .work__title.is-in { transform: scale(1); }
.is-touch .band__text { animation: band 26s linear infinite alternate; }
@keyframes band { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-45%, 0, 0); } }

/* ---------- PHONES: scroll-driven versions (iOS 26+) ----------
   The browser runs these with the scroll itself. Only transform and opacity are animated, so the
   GPU moves finished layers around and nothing has to be repainted while the finger moves. */
.is-sd .note--list { view-timeline: --list block; }
.is-sd .note__list li { position: relative; }
.is-sd .note__list li::after {
  content: attr(data-t);
  position: absolute; left: 0; top: 0; width: 100%;
  color: var(--blue);
}
.is-sd .note__list li,
.is-sd .note__list li::after {
  animation-timing-function: linear; animation-fill-mode: both;
  animation-timeline: --list;
}
.is-sd .note__list li { animation-name: lit-size; }
.is-sd .note__list li::after { animation-name: lit-blue; }
.is-sd .note__list li:nth-child(6) { animation-name: lit-size-last; }
.is-sd .note__list li:nth-child(6)::after { animation-name: lit-blue-last; }
.is-sd .note__list li:nth-child(1), .is-sd .note__list li:nth-child(1)::after { animation-range: contain 0% contain 16.6%; }
.is-sd .note__list li:nth-child(2), .is-sd .note__list li:nth-child(2)::after { animation-range: contain 16.6% contain 33.3%; }
.is-sd .note__list li:nth-child(3), .is-sd .note__list li:nth-child(3)::after { animation-range: contain 33.3% contain 50%; }
.is-sd .note__list li:nth-child(4), .is-sd .note__list li:nth-child(4)::after { animation-range: contain 50% contain 66.6%; }
.is-sd .note__list li:nth-child(5), .is-sd .note__list li:nth-child(5)::after { animation-range: contain 66.6% contain 83.3%; }
.is-sd .note__list li:nth-child(6), .is-sd .note__list li:nth-child(6)::after { animation-range: contain 83.3% contain 100%; }
@keyframes lit-size {
  0% { transform: scale(1); }
  12% { transform: scale(1.16); }
  30%, 88% { transform: scale(1.06); }
  100% { transform: scale(1); }
}
@keyframes lit-size-last { 0% { transform: scale(1); } 12% { transform: scale(1.16); } 30%, 100% { transform: scale(1.06); } }
@keyframes lit-blue { 0% { opacity: 0; } 12%, 88% { opacity: 1; } 100% { opacity: 0; } }
@keyframes lit-blue-last { 0% { opacity: 0; } 12%, 100% { opacity: 1; } }

/* "feeling": the line is drawn 5x bigger once and scaled DOWN, so growing it never needs a
   repaint and it stays sharp */
.is-sd .note--grow { view-timeline: --feel block; }
.is-sd .note--grow .note__big {
  position: absolute; left: 50%; top: 50%;
  font-size: calc(5 * clamp(40px, 6.4vw, 112px));
  white-space: nowrap;
}
.is-sd .note--grow .note__big,
.is-sd .feel__photo--before,
.is-sd .feel__photo--after {
  animation-timing-function: linear; animation-fill-mode: both;
  animation-timeline: --feel;
  animation-range: contain 0% contain 100%;
}
.is-sd .note--grow .note__big { animation-name: feel-text; }
.is-sd .feel__photo--before { animation-name: feel-before; }
.is-sd .feel__photo--after { animation-name: feel-after; }
@keyframes feel-text {
  0%, 6% { opacity: 0; transform: translate(-50%, -50%) scale(0.2); }
  20% { opacity: 1; transform: translate(-50%, -50%) scale(0.2); }
  40% { opacity: 1; transform: translate(-50%, -50%) scale(0.38); }
  55% { opacity: 1; transform: translate(-50%, -50%) scale(0.82); }
  66% { opacity: 1; transform: translate(-50%, -50%) scale(1.34); }
  75% { opacity: 0.5; transform: translate(-50%, -50%) scale(1.88); }
  84%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(2.4); }
}
@keyframes feel-before {
  0%, 6% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  26%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.94); }
}
@keyframes feel-after {
  0%, 66% { opacity: 0; transform: translate(-50%, -50%) scale(1.12); }
  90%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Pinned photos: white curtains slide away (the strip opens from a line, the finale from a
   frame), tone layers fade (negative, overexposure) */
.is-sd .pin { view-timeline: --pin block; }
.is-sd .pin--clip .pin__media { clip-path: none; }
.cur { position: absolute; background: var(--bg); z-index: 2; }
.cur--t { left: 0; right: 0; top: 0; height: 50%; }
.cur--b { left: 0; right: 0; bottom: 0; height: 50%; }
.cur--l, .cur--r { display: none; }
.finale .cur--t, .finale .cur--b { height: calc(50% - 52.5vw); }
.finale .cur--l, .finale .cur--r { display: block; top: 0; bottom: 0; width: 15vw; }
.finale .cur--l { left: 0; }
.finale .cur--r { right: 0; }
.pin__tone { position: absolute; inset: 0; pointer-events: none; }
.pin--strip .pin__tone { background: #fff; mix-blend-mode: difference; opacity: 0; } /* = invert */
.finale .pin__tone { background: #fff; opacity: 0; }                     /* = overexposed */
.is-sd .pin .pin__media img { filter: saturate(1.2) contrast(1.04); }
.is-sd .pin .cur,
.is-sd .pin .pin__tone,
.is-sd .pin .pin__media img,
.is-sd .pin .pin__shade,
.is-sd .pin .pin__text,
.is-sd .pin .shot__grain {
  animation-fill-mode: both;
  animation-timing-function: linear;
  animation-timeline: --pin;
  animation-range: contain 0% contain 100%;
}
/* the strip starts opening while still sliding in (its top at 40% of the screen) */
.is-sd .pin--strip .cur,
.is-sd .pin--strip .pin__tone,
.is-sd .pin--strip .pin__media img,
.is-sd .pin--strip .pin__shade,
.is-sd .pin--strip .pin__text,
.is-sd .pin--strip .shot__grain { animation-range: entry 60% contain 100%; }
.is-sd .pin .cur--t { animation-name: cur-up; }
.is-sd .pin .cur--b { animation-name: cur-down; }
.is-sd .pin .cur--l { animation-name: cur-left; }
.is-sd .pin .cur--r { animation-name: cur-right; }
.is-sd .pin .pin__tone { animation-name: tone-out; }
.is-sd .finale .pin__tone { animation-name: tone-out-soft; }
.is-sd .pin--strip .pin__media img { animation-name: zoom-strip; }
.is-sd .finale .pin__media img { animation-name: zoom-frame; }
.is-sd .pin .pin__shade { animation-name: pin-shade; }
.is-sd .pin .pin__text { animation-name: pin-text; }
.is-sd .pin .shot__grain { animation-name: pin-grain; }
@keyframes cur-up    { 0% { transform: translateY(0); animation-timing-function: ease-in-out; } 50%, 100% { transform: translateY(-101%); } }
@keyframes cur-down  { 0% { transform: translateY(0); animation-timing-function: ease-in-out; } 50%, 100% { transform: translateY(101%); } }
@keyframes cur-left  { 0% { transform: translateX(0); animation-timing-function: ease-in-out; } 50%, 100% { transform: translateX(-101%); } }
@keyframes cur-right { 0% { transform: translateX(0); animation-timing-function: ease-in-out; } 50%, 100% { transform: translateX(101%); } }
@keyframes tone-out-soft { 0% { opacity: 0.35; animation-timing-function: ease-in-out; } 50%, 100% { opacity: 0; } }
@keyframes tone-out  { 0% { opacity: 1; animation-timing-function: ease-in-out; } 50%, 100% { opacity: 0; } }
@keyframes zoom-strip { 0% { transform: scale(1.35); animation-timing-function: ease-in-out; } 50%, 100% { transform: scale(1); } }
@keyframes zoom-frame { 0% { transform: scale(1.1); animation-timing-function: ease-in-out; } 50%, 100% { transform: scale(1); } }
@keyframes pin-shade { 0%, 45% { opacity: 0; } 70%, 100% { opacity: 1; } }
@keyframes pin-text {
  0%, 55% { opacity: 0; transform: translateY(60px); animation-timing-function: ease-in-out; }
  80%, 100% { opacity: 1; transform: translateY(0); }
}
@keyframes pin-grain { 0% { opacity: 0.8; } 50%, 100% { opacity: 0.15; } }

/* ---------- TEST SWITCHES (temporary, see top of script.js) ---------- */
html.t-ov, html.t-ov body.is-ready, html.t-ov .work { overflow: visible !important; }
html.t-fixed .corner, html.t-fixed .sticky-logo, html.t-fixed .grain { display: none !important; }
html.t-anim *, html.t-anim *::before, html.t-anim *::after { animation: none !important; transition: none !important; }
html.t-anim .reel { opacity: 1; transform: none; }
html.t-img .shot img, html.t-img .pin__media img, html.t-img .feel__frame img { visibility: hidden; }
