/* Self-hosted Google Fonts (OFL), latin + latin-ext only. */
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/caveat-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/caveat-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/jetbrains-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/jetbrains-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/source-serif-4-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/source-serif-4-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/source-serif-4-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/source-serif-4-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Kepes landing — built from business/03-marketing/landing/landing.pen (frame "Kepes Landing · Creative").
   Values follow the .pen export; motion is ours: slow ease-out, one action per beat, nothing bounces. */

:root {
  --bg: #FBFAF7;
  --paper-2: #ECEAE4;
  --ink: #1A1C22;
  --ink-2: #4A4E55;
  --ink-3: #666970;
  --line: #D8D5CD;

  --lapis: #1B347A;
  --lapis-2: #CACEDC;
  --lapis-3: #A6AFC8;
  --mustard: #E0AA49;
  --mustard-ink: #463B2B;
  --slate: #303953;
  --slate-2: #CED0D3;
  --terracotta: #B5573A;
  --terracotta-2: #FDF8F5;
  --forest: #264033;
  --forest-2: #CCD1CC;
  --forest-3: #AAB3AD;
  --mat: #F2EEE4;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --hand: Caveat, "Bradley Hand", cursive;

  --gutter: clamp(20px, 8.34vw, 120px);
  --wrap: min(1200px, 100vw - 2 * var(--gutter));

  --ease: cubic-bezier(0.22, 1, 0.36, 1);        /* long, soft landing */
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-swift: cubic-bezier(0.32, 0.72, 0, 1);  /* for layout moves */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }
html.smooth { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
/* selection = a reader marking a passage: highlighter colour plus a thin annotation-pencil underline,
   in the colours Kepes itself marks passages with */
::selection {
  background: #ECD4A9; color: var(--ink);                                   /* paper: the passage highlight */
  text-decoration: underline 2px rgb(181 87 58 / 0.75); text-underline-offset: 0.2em;
}
.hero ::selection, .band--investigate ::selection, .band--extend ::selection, .usecases ::selection,
.footer ::selection, .offer ::selection, .ready ::selection, .lightbox ::selection {
  background: #F2DC8C; color: var(--ink);                                   /* dark grounds: the sticky note */
  text-decoration: underline 2px rgb(181 87 58 / 0.85); text-underline-offset: 0.2em;
}
.band--model ::selection { background: var(--ink); color: #F2DC8C; text-decoration: underline 2px #F2DC8C; text-underline-offset: 0.2em; }  /* mustard: inverted */
img::selection, svg::selection, video::selection { background: transparent; }


:focus-visible { outline: 2px solid var(--mustard); outline-offset: 3px; border-radius: 4px; }

.wrap { width: var(--wrap); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 16px; height: 16px; flex: none; }

.serif { font-family: var(--serif); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.4px; }
em, .it { font-style: italic; }

/* ─── Buttons ─────────────────────────────────────────── */
.btn {
  --btn-bg: var(--bg);
  --btn-fg: var(--lapis);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 15px;
  font-weight: 500;
  line-height: 18px;
  white-space: nowrap;
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), background-color 0.4s var(--ease), color 0.4s var(--ease);
}
.btn::after { /* a slow sheen that passes once on hover */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgb(255 255 255 / 0.55) 50%, transparent 70%);
  transform: translateX(-120%);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgb(8 18 40 / 0.45); }
.btn:hover::after { transform: translateX(120%); transition: transform 0.9s var(--ease); }
.btn:active { transform: translateY(0) scale(0.98); transition-duration: 0.15s; }
.btn--sm { height: 40px; font-size: 14px; line-height: 17px; }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--bg);
  box-shadow: inset 0 0 0 1px rgb(251 250 247 / 0.22);
}
.btn--ghost::after { background: rgb(251 250 247 / 0.08); transform: none; opacity: 0; transition: opacity 0.4s var(--ease); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px rgb(251 250 247 / 0.5); }
.btn--ghost:hover::after { opacity: 1; transform: none; }
.btn--ink { --btn-bg: var(--ink); --btn-fg: var(--bg); }
.btn--ink::after { background: linear-gradient(105deg, transparent 30%, rgb(255 255 255 / 0.14) 50%, transparent 70%); }
.btn--mustard { --btn-bg: var(--mustard); --btn-fg: var(--ink); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
}
.link-arrow .icon { transition: transform 0.5s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.5s var(--ease); padding-bottom: 1px; }
.link-arrow:hover span { background-size: 100% 1px; }

/* ─── Nav ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 72px;
  color: var(--bg);
  transition: transform 0.6s var(--ease), color 0.4s var(--ease);
}
.nav::before { /* the paper that slides under the nav once scrolled */
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(251 250 247 / 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.nav.is-solid { color: var(--ink); }
.nav.is-solid::before { opacity: 1; transform: none; }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { position: relative; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav__left { display: flex; align-items: center; gap: 40px; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo svg { width: 22px; height: 22px; transition: transform 0.8s var(--ease); }
.logo:hover svg { transform: rotate(-12deg) scale(1.06); }
.logo span { font-family: var(--serif); font-size: 22px; line-height: 24px; letter-spacing: -0.3px; }
.nav__links { display: flex; gap: 28px; font-size: 14px; font-weight: 500; line-height: 17px; }
.nav__links a {
  position: relative;
  color: color-mix(in srgb, currentColor 78%, transparent);
  transition: color 0.3s var(--ease);
}
.nav:not(.is-solid) .nav__links a { color: var(--lapis-2); }
.nav__links a:hover, .nav__links a[aria-current] { color: inherit; }
.nav:not(.is-solid) .nav__links a:hover, .nav:not(.is-solid) .nav__links a[aria-current] { color: var(--bg); }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { --btn-bg: var(--bg); --btn-fg: var(--lapis); }
.nav.is-solid .btn { --btn-bg: var(--lapis); --btn-fg: var(--bg); }

/* ─── Hero ────────────────────────────────────────────── */
.hero {
  position: relative;
  background: var(--lapis);
  color: var(--bg);
  padding-top: calc(72px + 88px);
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 65% 55% at 50% 100%, rgb(74 103 184 / 0.67) 0%, rgb(27 52 122 / 0) 100%);
  pointer-events: none;
  animation: glow 14s var(--ease-io) infinite alternate;
}
@keyframes glow {
  from { transform: translateY(0) scale(1); opacity: 0.85; }
  to { transform: translateY(-3%) scale(1.06); opacity: 1; }
}
.hero__copy { position: relative; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.hero__title {
  max-width: 1000px;
  font-family: var(--serif);
  font-size: clamp(42px, 5.4vw + 6px, 72px);
  line-height: 1.042;
  letter-spacing: -0.02em;
}
.hero__sub { max-width: 680px; color: var(--lapis-2); font-size: clamp(16px, 1vw + 4px, 18px); line-height: 1.5; }
.hero__actions { display: flex; gap: 10px; padding-top: 8px; }

.film-stage { position: relative; margin-top: 60px; perspective: 1600px; perspective-origin: 50% 0; }
.film {
  --tilt: 0;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 40px 80px -24px rgb(8 16 44 / 0.55), 0 2px 8px rgb(11 22 56 / 0.12), 0 0 0 1px rgb(26 28 34 / 0.08);
  transform-origin: 50% 0;
  transform: rotateX(calc(var(--tilt) * 14deg)) scale(calc(1 - var(--tilt) * 0.05));
  will-change: transform;
}
.film__bar {
  display: flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px;
  background: var(--bg);
  border-bottom: 1px solid rgb(26 28 34 / 0.08);
  color: var(--ink-2);
  font-size: 12px; font-weight: 500;
}
.film__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.film__bar span { margin-left: 4px; }
.film__screen { position: relative; aspect-ratio: 2400 / 1428; background: #F7F6F2; }

/* ─── Media (videos with poster and quiet controls) ───── */
.media { position: relative; overflow: hidden; background: #F7F6F2; }
.media video, .media img.poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media img.poster { transition: opacity 0.8s var(--ease); }
.media.is-playing img.poster { opacity: 0; }
.media__progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: rgb(26 28 34 / 0.06);
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.media__progress i { display: block; height: 100%; background: var(--accent, var(--mustard)); transform-origin: left; transform: scaleX(var(--p, 0)); }
.media:hover .media__progress, .media.is-paused .media__progress { opacity: 1; }
.media__toggle {
  position: absolute; right: 16px; bottom: 16px;
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgb(26 28 34 / 0.72);
  color: #fff;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(6px) scale(0.92);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), background-color 0.3s;
}
.media__toggle:hover { background: rgb(26 28 34 / 0.9); }
.media:hover .media__toggle, .media.is-paused .media__toggle, .media__toggle:focus-visible { opacity: 1; transform: none; }
.media__toggle svg { width: 14px; height: 14px; }
.media__toggle .i-play { display: none; }
.media.is-paused .media__toggle .i-play { display: block; }
.media.is-paused .media__toggle .i-pause { display: none; }
.media.is-paused.is-idle .media__toggle { /* nothing played yet (mobile, reduced motion): a big centred play */
  right: 50%; bottom: 50%; width: 64px; height: 64px;
  transform: translate(50%, 50%);
}
.media.is-paused.is-idle .media__toggle svg { width: 20px; height: 20px; }

/* touch: no hover to reveal controls, so a quiet "Expand" pill says the frame opens full screen */
.media__expand {
  position: absolute; right: 12px; bottom: 12px; z-index: 3;   /* right: where a right thumb rests */
  display: none; align-items: center; gap: 6px;
  height: 30px; padding: 0 12px 0 10px; border-radius: 15px;
  background: rgb(26 28 34 / 0.72); color: #fff;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 12px; font-weight: 500;
  opacity: 0; transform: translateY(4px);
  transition: opacity 0.5s var(--ease) 0.8s, transform 0.6s var(--ease) 0.8s;
}
.media__expand svg { width: 13px; height: 13px; }
.media.is-playing .media__expand, .media.is-idle .media__expand { opacity: 1; transform: none; }
.media video::-webkit-media-controls { display: none; }
video:fullscreen { object-fit: contain !important; background: #000; }
@media (hover: none) {
  .media__expand { display: inline-flex; }
  .media__toggle { display: none; }
  .media { cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .media:active { opacity: 0.94; }
}

/* iPhone full screen: the video lies on its side in portrait, stands up in landscape */
.theatre { position: fixed; inset: 0; z-index: 100; background: #000; overflow: hidden; opacity: 0; transition: opacity 0.3s var(--ease); }
.theatre.is-on { opacity: 1; }
.theatre__stage {
  position: absolute; left: 50%; top: 50%;
  width: 100vh; width: 100dvh; height: 100vw; height: 100dvw;
  transform: translate(-50%, -50%) rotate(90deg) scale(0.86);
  transition: transform 0.6s var(--ease);
}
.theatre.is-on .theatre__stage { transform: translate(-50%, -50%) rotate(90deg); }
.theatre video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.theatre__close {
  position: absolute; top: 14px; right: 14px;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgb(255 255 255 / 0.16); color: #fff; font-size: 24px; line-height: 1;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
@media (orientation: landscape) {
  .theatre__stage, .theatre.is-on .theatre__stage { width: 100vw; width: 100dvw; height: 100vh; height: 100dvh; transform: translate(-50%, -50%); }
}
html.is-theatre, html.is-theatre body { overflow: hidden; }

/* ─── Formats: the closing line of the hero, still on lapis ── */
.formats { position: relative; margin-top: clamp(56px, 6vw, 88px); }
.formats__inner { display: flex; align-items: center; gap: 48px; padding: 32px 0 clamp(48px, 5vw, 64px); border-top: 1px solid rgb(251 250 247 / 0.14); }
.formats__label { flex: none; color: var(--lapis-3); font-family: var(--mono); font-size: 11px; letter-spacing: 1px; }
.formats__list { flex: 1; min-width: 0; display: flex; }
.formats__track { flex: 1; display: flex; justify-content: space-between; list-style: none; margin: 0; padding: 0; }
.formats__track[aria-hidden] { display: none; }
.formats__list li { display: flex; align-items: center; gap: 8px; color: var(--lapis-2); font-size: 15px; font-weight: 500; white-space: nowrap; transition: color 0.3s; }
.formats__list svg { width: 18px; height: 18px; transition: transform 0.6s var(--ease); }
.formats__list li:hover { color: var(--bg); }
.formats__list li:hover svg { transform: translateY(-2px) rotate(-6deg); }

/* ─── Problem ─────────────────────────────────────────── */
.problem { padding: 128px 0 160px; overflow-x: clip; }
.problem__row { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.problem__copy { width: 500px; flex: none; display: flex; flex-direction: column; gap: 36px; }
.display-2 { font-family: var(--serif); font-size: clamp(38px, 3.2vw + 10px, 56px); line-height: 1.054; letter-spacing: -0.025em; }
.display-2 .muted { color: var(--ink-3); font-style: italic; }
.page-lapis .included .lines .ln.muted { color: var(--ink-3); }
.problem__body { display: flex; flex-direction: column; gap: 20px; font-size: 18px; line-height: 28px; color: var(--ink-2); }
.problem__body p + p { color: var(--ink); }

.pile { position: relative; width: 620px; height: 560px; flex: none; }
.pile > * { position: absolute; transform-origin: top left; }
.pile__card {
  --r: 0deg; --y: 0px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgb(26 28 34 / 0.1), 0 0 0 1px var(--line);
  transform: translateY(var(--y)) rotate(var(--r));
  transition: box-shadow 0.6s var(--ease);
  will-change: transform;
}
.pile__tabs { left: 10px; top: 24px; z-index: 0; --r: -2deg; display: flex; gap: 2px; padding: 8px 8px 0; background: var(--paper-2); }
.pile__tab { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 6px 6px 0 0; color: var(--ink-2); font-size: 11px; white-space: nowrap; }
.pile__tab svg { width: 12px; height: 12px; }
.pile__tab.is-on { background: #fff; color: var(--ink); }
.pile__pdf { left: 24px; top: 112px; z-index: 1; --r: 3deg; width: 290px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.pile__meta { color: var(--ink-3); font-family: var(--mono); font-size: 10px; letter-spacing: 0.4px; }
.pile__pdf h4 { font-family: var(--serif); font-size: 17px; line-height: 20px; }
.pile__authors { color: var(--ink-3); font-size: 10px; }
.pile__pdf p { color: var(--ink-2); font-size: 11px; line-height: 17px; }
.pile__pdf mark {
  display: block; padding: 2px 4px; border-radius: 2px; color: var(--ink); font-size: 11px; line-height: 17px;
  background: linear-gradient(#ECD4A9, #ECD4A9) 0 0 / 0% 100% no-repeat;
  transition: background-size 1.2s var(--ease) 0.9s;
}
.is-in .pile__pdf mark, .pile__pdf mark.is-in { background-size: 100% 100%; }
.pile__ai { left: 318px; top: 150px; z-index: 2; --r: -3deg; width: 280px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.pile__ai-head { display: flex; align-items: center; gap: 6px; color: var(--ink-3); }
.pile__ai-head svg { width: 12px; height: 12px; }
.pile__ai p { font-size: 13px; line-height: 19px; }
.pile__warn { color: #B3261E; font-family: var(--mono); font-size: 10px; letter-spacing: 0.4px; }
.pile__notes { left: 190px; top: 372px; z-index: 3; --r: 2deg; width: 250px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.pile__notes p { color: var(--ink-2); font-size: 12px; line-height: 17px; }
.pile__sticky {
  left: 440px; top: 340px; z-index: 4; --r: 6deg;
  width: 160px; height: 150px; padding: 16px;
  background: #F2DC8C;
  border-radius: 1px;
  box-shadow: 0 8px 18px rgb(26 28 34 / 0.12);
}
.pile__sticky p { font-family: var(--hand); font-size: 24px; line-height: 25px; }
.pile__sticky p span { /* handwriting: each line is uncovered left to right */
  display: inline;
  -webkit-mask-image: linear-gradient(90deg, #000 45%, transparent 55%);
  mask-image: linear-gradient(90deg, #000 45%, transparent 55%);
  -webkit-mask-size: 240% 100%; mask-size: 240% 100%;
  -webkit-mask-position: 100% 0; mask-position: 100% 0;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  transition: -webkit-mask-position 0.9s linear, mask-position 0.9s linear;
}
.pile.is-settled .pile__sticky p span { -webkit-mask-position: 0 0; mask-position: 0 0; }
.pile.is-settled .pile__sticky p span:nth-child(2) { transition-delay: 0.75s; }
.pile.is-settled .pile__sticky p span:nth-child(3) { transition-delay: 1.5s; }
.pile:hover .pile__card { box-shadow: 0 16px 36px rgb(26 28 34 / 0.12), 0 0 0 1px var(--line); }

.method { margin-top: 136px; display: flex; flex-direction: column; gap: 56px; }
.method__kicker { color: var(--ink-2); font-family: var(--serif); font-size: 28px; font-style: italic; letter-spacing: -0.4px; }
.method__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.chapter { display: flex; flex-direction: column; gap: 20px; }
.chapter__band { height: 10px; border-radius: 2px; background: var(--c); transform-origin: left; transition: transform 1.1s var(--ease), height 0.5s var(--ease); }
.chapter__head { display: flex; align-items: flex-end; justify-content: space-between; }
.chapter__word { font-family: var(--serif); font-size: clamp(48px, 3vw + 20px, 64px); line-height: 1; letter-spacing: -0.028em; transition: transform 0.6s var(--ease); }
.chapter__no { color: var(--ink-3); }
.chapter__line { color: var(--ink-2); font-size: 16px; line-height: 24px; }
.chapter:hover .chapter__band { height: 14px; }
.chapter:hover .chapter__word { transform: translateX(6px); }
.chapter__word .dot { display: inline-block; transition: transform 0.6s var(--ease), color 0.4s; }
.chapter:hover .chapter__word .dot { color: var(--c); transform: translateX(4px); }

/* ─── Movement bands (Model · Investigate · Extend) ───── */
.band { position: relative; padding: 144px 0; background: var(--band); color: var(--band-ink); overflow: hidden; }
.band--model { --band: var(--mustard); --band-ink: var(--ink); --band-2: var(--mustard-ink); --accent: var(--ink); }
.band--investigate { --band: var(--slate); --band-ink: var(--bg); --band-2: var(--slate-2); --accent: var(--mustard); }
.band--extend { --band: var(--terracotta); --band-ink: var(--bg); --band-2: #fff; --accent: var(--mustard); }
.band__copy { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.marker { display: flex; align-items: center; gap: 14px; color: var(--band-2); }
.marker__rule { width: 28px; height: 1px; background: currentColor; transform-origin: left; }
.marker__word { color: var(--band-ink); font-family: var(--serif); font-size: 24px; font-style: italic; line-height: 24px; letter-spacing: -0.3px; }
.display-1 { font-family: var(--serif); font-size: clamp(40px, 3.6vw + 10px, 60px); line-height: 1.083; letter-spacing: -0.027em; }
.band__para { max-width: 660px; color: var(--band-2); font-size: 18px; line-height: 29px; }
.band__stage { padding: 64px 72px 0; }
.recording {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 32px rgb(26 28 34 / 0.12), 0 2px 6px rgb(26 28 34 / 0.05), 0 0 0 1px var(--line);
  --lift: 0;
  transform: translateY(calc(var(--lift) * 64px)) scale(calc(1 - var(--lift) * 0.06));
  transform-origin: 50% 0;
  will-change: transform;
}
.band--model .recording { box-shadow: 0 30px 60px -20px rgb(90 60 10 / 0.4), 0 2px 6px rgb(26 28 34 / 0.05), 0 0 0 1px rgb(26 28 34 / 0.08); }
.band--investigate .recording, .band--extend .recording { box-shadow: 0 30px 70px -20px rgb(10 12 24 / 0.55), 0 2px 6px rgb(0 0 0 / 0.1); }
.recording .media { position: absolute; inset: 0; }

/* ─── Toolkit plates ──────────────────────────────────── */
.toolkit { padding: 160px 0; overflow-x: clip; } /* clip, not hidden: hidden would stop the phone prints sticking */
.toolkit__head { display: flex; flex-direction: column; gap: 22px; margin-bottom: 112px; }
.toolkit__head p { max-width: 1040px; color: var(--ink-2); font-size: 17px; line-height: 26px; }
.plates { position: relative; height: 2600px; }
.plate {
  position: absolute;
  width: 52%;
  height: 416px;
  padding: 48px 56px;
  z-index: 1;
}
.plate.l, .caption.l { left: 0; }
.plate.r, .caption.r { right: 0; }
.plate__window {
  height: 100%;
  display: flex; flex-direction: column;
  padding: 14px 16px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgb(26 28 34 / 0.14);
  transition: transform 0.8s var(--ease), box-shadow 0.8s var(--ease);
}
.plate:hover .plate__window { transform: translateY(-6px) rotate(-0.4deg); box-shadow: 0 22px 44px rgb(26 28 34 / 0.2); }
.plate.r:hover .plate__window { transform: translateY(-6px) rotate(0.4deg); }
.plate__lights { display: flex; gap: 6px; flex: none; }
.plate__lights i { width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); }
.plate__shot { position: relative; flex: 1; overflow: hidden; margin-top: 10px; }
.plate__shot img { position: absolute; object-fit: cover; }
.plate__shot .main { inset: 0; width: 100%; height: 100%; transition: transform 1.4s var(--ease); }
.plate:hover .plate__shot .main { transform: scale(1.035); }
.plate__shot .contain { object-fit: contain; }
.plate__shot .detail {
  border-radius: 4px;
  box-shadow: 0 3px 10px rgb(26 28 34 / 0.25), 0 0 0 3px #fff;
  transition: transform 0.9s var(--ease);
}
.plate:hover .plate__shot .detail { transform: translate(-6px, -6px); }
.overprint {
  position: absolute;
  left: 48%;
  width: 4%;
  height: 104px;
  z-index: 3;
  background: var(--c);
  display: flex;
  align-items: center;
  justify-content: center;
}
.overprint span {
  color: #fff;
  font-family: var(--serif); font-size: 14px; font-style: italic;
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.overprint.on-light span { color: var(--ink); }
.caption {
  position: absolute;
  width: 44%;
  display: flex; flex-direction: column; justify-content: center; gap: 12px;
  z-index: 2;
}
.caption h3 { font-family: var(--serif); font-size: 30px; line-height: 35px; letter-spacing: -0.5px; }
.caption p { max-width: 480px; color: var(--ink-2); font-size: 15px; line-height: 23px; }

/* each step wraps its caption, plate and overprint; on desktop the wrapper vanishes and they hang absolutely */
.step { display: contents; }
.step__meta { display: none; }

/* ─── Use cases: the gallery wall ─────────────────────── */
.usecases { position: relative; background: var(--forest); color: var(--bg); overflow: hidden; }
.usecases__room-wrap { position: relative; }
.gallery, .room { padding: 160px 0; }
.gallery__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.gallery__head h2 { max-width: 620px; font-family: var(--serif); font-size: clamp(36px, 2.4vw + 14px, 48px); line-height: 1.083; letter-spacing: -0.025em; }
.gallery__head p { max-width: 440px; color: var(--forest-2); font-size: 17px; line-height: 27px; }
.wall { display: flex; justify-content: space-between; gap: 48px; margin-top: 80px; list-style: none; padding: 0; }
.work { width: 264px; display: flex; flex-direction: column; gap: 40px; }
.work__hang {
  position: relative;
  height: 352px;
  display: flex; align-items: center; justify-content: center;
  cursor: none;
}
.work__hang::before { /* the picture light */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 50% at 50% 40%, rgb(251 250 247 / 0.14) 0%, rgb(251 250 247 / 0) 100%);
  opacity: 0.62;
  transition: opacity 0.6s var(--ease), transform 0.8s var(--ease);
  pointer-events: none;
}
.work:hover .work__hang::before, .work.is-hover .work__hang::before { opacity: 1; transform: scale(1.04); }
.frame {
  --fp: 10px;     /* frame moulding */
  --mp: 24px;     /* mat */
  position: relative;
  padding: var(--fp);
  background: var(--frame);
  border-radius: 1px;
  box-shadow: 0 18px 36px rgb(8 18 13 / 0.45), 0 2px 4px rgb(8 18 13 / 0.3);
}
.frame__mat { padding: var(--mp); background: var(--mat); box-shadow: inset 0 2px 6px rgb(0 0 0 / 0.12); }
.frame__paint { width: var(--pw); height: var(--ph); background: var(--img) center / cover no-repeat; }
.wall .frame { padding: calc(var(--fp) * var(--s, 1)); }
.wall .frame__mat { padding: calc(var(--mp) * var(--s, 1)); }
.wall .frame__paint { width: calc(var(--pw) * var(--s, 1)); height: calc(var(--ph) * var(--s, 1)); }
.work__hang { height: calc(352px * var(--s, 1)); }
.work .frame { transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease); }
.work:hover .frame, .work.is-hover .frame { transform: translateY(-8px); box-shadow: 0 34px 60px rgb(8 18 13 / 0.5), 0 2px 4px rgb(8 18 13 / 0.3); }
.work__label { position: relative; display: flex; flex-direction: column; gap: 14px; }
.cat { color: var(--mustard); font-family: var(--mono); font-size: 12px; letter-spacing: 0.4px; }
.work__q { font-family: var(--serif); font-size: 22px; line-height: 27px; letter-spacing: -0.3px; }
.work__q + .work__medium { margin-top: -8px; }
.work__medium { color: var(--forest-2); font-family: var(--serif); font-size: 16px; font-style: italic; line-height: 22px; }
.work__short { color: var(--forest-3); font-size: 14px; line-height: 21px; }
.work__step { display: inline-flex; align-items: center; gap: 6px; padding-top: 6px; font-size: 14px; font-weight: 500; transition: color 0.35s var(--ease); align-self: flex-start; }
.work__step .icon { transition: transform 0.5s var(--ease); }
.work:hover .work__step, .work.is-hover .work__step { color: var(--mustard); }
.work:hover .work__step .icon, .work.is-hover .work__step .icon { transform: translateX(4px); }
.work__hit { position: absolute; inset: 0; z-index: 2; cursor: none; }
.work__label .work__hit { cursor: pointer; }

.enter-cursor {
  position: fixed;
  left: 0; top: 0;
  z-index: 60;
  width: 64px; height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--mustard);
  color: var(--ink);
  font-size: 12px; font-weight: 500;
  pointer-events: none;
  opacity: 0;
  transform: translate(var(--x, -100px), var(--y, -100px));
  scale: 0.3;
  transition: opacity 0.3s var(--ease), scale 0.35s var(--ease);
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.25);
}
.enter-cursor.is-on { opacity: 1; scale: 1; }
.enter-cursor.is-down { scale: 0.86; }

/* the room (a work stepped into).
   States on .usecases: is-room (room laid out and visible) · is-away (gallery gone) · is-moving (ghost frames in flight)
   · is-leaving (gallery labels out) · is-open (room labels in) · is-landed (room frames shown). */
.room { position: absolute; inset: 0; visibility: hidden; padding: 160px 0 125px; }
.usecases.is-room .room { visibility: visible; }
.usecases.is-away .gallery { visibility: hidden; }
.room__back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.room__back .icon { transition: transform 0.5s var(--ease); }
.room__back:hover .icon { transform: translateX(-4px); }
.room__intro { display: flex; align-items: flex-end; gap: 48px; margin-top: 48px; }
.room__title { flex: 1; display: flex; flex-direction: column; gap: 14px; }
.room__meta { display: flex; align-items: center; gap: 12px; }
.room__meta .it { color: var(--forest-2); font-family: var(--serif); font-size: 18px; }
.room__q { font-family: var(--serif); font-size: clamp(34px, 2.4vw + 12px, 48px); line-height: 1.083; letter-spacing: -0.025em; }
.room__side { width: 400px; flex: none; display: flex; flex-direction: column; gap: 24px; }
.room__detail { color: var(--forest-2); font-size: 16px; line-height: 26px; }
.room__enter { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.room__enter .note { color: var(--forest-3); font-size: 13px; line-height: 20px; }
.room__enter .note a { color: var(--bg); text-decoration: underline; text-underline-offset: 3px; }
.room__main { display: flex; gap: 56px; margin-top: 48px; }
.room__stage { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.stage-frame { --frame: #2B241C; --fp: 16px; --mp: 32px; width: 100%; box-shadow: 0 32px 64px rgb(8 18 13 / 0.45), 0 2px 4px rgb(8 18 13 / 0.3); }
.stage-frame .frame__screen { position: relative; aspect-ratio: 16 / 10; background: #fff; box-shadow: 0 12px 32px rgb(26 28 34 / 0.12), 0 0 0 1px var(--line); overflow: hidden; }
.stage-frame .frame__screen .still {
  position: absolute; inset: 0;
  background: var(--img) center / cover no-repeat;
  animation: kenburns 24s var(--ease-io) infinite alternate;
}
@keyframes kenburns { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.12) translate(-2%, -1.5%); } }
.stage-frame .frame__screen .media { position: absolute; inset: 0; }
.path { display: flex; align-items: center; gap: 20px; list-style: none; margin: 0; padding: 0; }
.path li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; white-space: nowrap; }
.path .badge { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--mustard); color: var(--mustard); font-family: var(--mono); font-size: 12px; }
.path .conn { flex: 1; height: 1px; background: rgb(251 250 247 / 0.22); transform-origin: left; }
.rail { width: 296px; flex: none; display: flex; flex-direction: column; }
.rail__head { padding-bottom: 18px; color: var(--forest-3); font-family: var(--mono); font-size: 12px; letter-spacing: 0.4px; }
.rail__list { list-style: none; margin: 0; padding: 0; }
.rail__item { position: relative; display: flex; align-items: center; gap: 16px; padding: 22px 0; border-top: 1px solid rgb(251 250 247 / 0.22); cursor: pointer; }
.rail__item .work__hang { height: auto; width: 92px; flex: none; cursor: pointer; }
.rail__item .work__hang::before { display: none; }
.rail__item .frame { box-shadow: 0 8px 18px rgb(8 18 13 / 0.4), 0 1px 2px rgb(8 18 13 / 0.3); transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease); }
.rail__item:hover .frame { transform: translateY(-4px) rotate(-1deg); box-shadow: 0 16px 28px rgb(8 18 13 / 0.5), 0 1px 2px rgb(8 18 13 / 0.3); }
.rail__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rail__text .q { font-family: var(--serif); font-size: 18px; line-height: 23px; letter-spacing: -0.2px; transition: color 0.3s; }
.rail__item:hover .rail__text .q { color: var(--mustard); }
.rail__text .it { color: var(--forest-2); font-family: var(--serif); font-size: 14px; line-height: 19px; }


/* room choreography */
.room [data-beat] { opacity: 0; transform: translateY(12px); transition: opacity 0.3s var(--ease), transform 0.5s var(--ease); }
.usecases.is-open .room [data-beat] { opacity: 1; transform: none; transition: opacity 0.5s var(--ease), transform 0.7s var(--ease); transition-delay: calc(var(--beat, 0) * 1ms); }
.usecases.no-anim .room [data-beat] { transition: none !important; }
.room .stage-frame, .room .rail .frame { visibility: hidden; }
.usecases.is-landed .room .stage-frame, .usecases.is-landed .room .rail .frame { visibility: visible; }
.usecases.is-moving .wall .frame, .usecases.is-moving .room .stage-frame, .usecases.is-moving .room .rail .frame { visibility: hidden; }
.room .frame__screen .cover { position: absolute; inset: 0; z-index: 2; background: var(--img) center / cover no-repeat; transition: opacity 0.5s var(--ease); }
.usecases.is-landed .room .frame__screen .cover { opacity: 0; transition-delay: 0.1s; }
.gallery [data-beat] { transition: opacity 0.25s var(--ease), transform 0.4s var(--ease); }
.usecases.is-leaving .gallery [data-beat], .usecases.is-leaving .gallery [data-beat] [data-reveal] { transition-duration: 0.15s, 0.3s !important; }
.rail__item { border-top-color: transparent !important; transition: border-color 0.5s var(--ease); }
.usecases.is-open .rail__item { border-top-color: rgb(251 250 247 / 0.22) !important; transition-delay: 0.2s; }
.usecases.is-leaving .gallery [data-beat], .usecases.is-leaving .gallery [data-beat] [data-reveal] { opacity: 0 !important; transform: translateY(-8px) !important; transition-delay: 0s !important; }
.usecases.is-leaving .gallery .lines > .ln > span { transition: none; }
.ghost { position: absolute; z-index: 40; margin: 0; pointer-events: none; display: flex; }
.ghost .frame__mat { flex: 1; display: flex; }
.ghost .frame__paint { flex: 1; width: auto; height: auto; }

/* ─── Closing ─────────────────────────────────────────── */
.closing { padding: 176px 0 150px; text-align: center; overflow: hidden; }
.closing__copy { display: flex; flex-direction: column; align-items: center; gap: 28px; max-width: 1120px; margin-inline: auto; }
.closing h2 { font-family: var(--serif); font-size: clamp(42px, 4.6vw + 10px, 76px); line-height: 1.03; letter-spacing: -0.032em; }
.closing p { max-width: 640px; color: var(--ink-2); font-size: 18px; line-height: 28px; }
.closing__ctas { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 40px; }

/* ─── Footer ──────────────────────────────────────────── */
.footer { background: var(--lapis); color: var(--bg); padding: 72px 0 40px; }
.footer__top { display: flex; justify-content: space-between; gap: 48px; }
.footer__brand { width: 320px; display: flex; flex-direction: column; gap: 12px; }
.footer__brand .logo svg { width: 20px; height: 20px; }
.footer__brand .logo span { font-size: 20px; letter-spacing: 0; }
.footer__brand p { color: var(--lapis-2); font-size: 14px; line-height: 21px; }
.footer__cols { display: flex; gap: 64px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col .footer__h { margin: 0; color: var(--lapis-3); font-family: var(--mono); font-size: 11px; letter-spacing: 0.4px; line-height: 17px; }
.footer__col a { color: var(--lapis-2); font-size: 14px; line-height: 18px; transition: color 0.3s, transform 0.4s var(--ease); }
.footer__col a:hover { color: var(--bg); transform: translateX(2px); }
.footer__bottom { display: flex; justify-content: space-between; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgb(251 250 247 / 0.22); color: var(--lapis-3); font-size: 12px; line-height: 16px; }

/* ─── Lightbox ────────────────────────────────────────── */
.lightbox {
  width: min(1200px, 100vw - 48px, (100vh - 190px) * 1.6);
  max-width: none; max-height: none;
  padding: 0; border: 0;
  background: transparent;
  color: var(--bg);
  overflow: visible;
}
.lightbox::backdrop { background: rgb(12 20 44 / 0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); transition: background-color 0.5s var(--ease), backdrop-filter 0.5s var(--ease); }
.lightbox.is-open::backdrop { background: rgb(12 20 44 / 0.78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lightbox__panel { opacity: 0; transform: translateY(24px) scale(0.965); transition: opacity 0.45s var(--ease), transform 0.6s var(--ease); }
.lightbox.is-open .lightbox__panel { opacity: 1; transform: none; }
.lightbox__screen { position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: #F7F6F2; box-shadow: 0 40px 120px rgb(0 0 0 / 0.5); }
.lightbox__screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.4s var(--ease); }
.lightbox__screen video.is-swapping { opacity: 0; }
.lightbox__chapters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; list-style: none; padding: 0; }
.lightbox__chapters button { width: 100%; text-align: left; display: flex; flex-direction: column; gap: 10px; color: rgb(251 250 247 / 0.6); transition: color 0.3s; }
.lightbox__chapters button:hover, .lightbox__chapters button[aria-current] { color: var(--bg); }
.lightbox__chapters .bar { height: 2px; background: rgb(251 250 247 / 0.2); border-radius: 1px; overflow: hidden; }
.lightbox__chapters .bar i { display: block; height: 100%; background: var(--mustard); transform-origin: left; transform: scaleX(var(--p, 0)); }
.lightbox__chapters .t { display: flex; gap: 10px; align-items: baseline; font-size: 14px; font-weight: 500; }
.lightbox__chapters .t .mono { font-size: 11px; opacity: 0.7; }
.lightbox__close {
  position: absolute; top: -52px; right: 0;
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px; border-radius: 18px;
  background: rgb(251 250 247 / 0.1);
  font-size: 13px; font-weight: 500;
  transition: background-color 0.3s;
}
.lightbox__close:hover { background: rgb(251 250 247 / 0.2); }

/* ─── Reveal system ───────────────────────────────────── */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 1ms); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="scale"] { transform: translateY(32px) scale(0.97); }
.js [data-reveal="band"] { opacity: 1; transform: scaleX(0); transform-origin: left; }
.js [data-reveal="rule"] { opacity: 1; transform: scaleX(0); transform-origin: left; transition-duration: 0.9s; }
.js [data-reveal].is-in { opacity: 1; transform: none; }
/* the hero film is the page's largest paint: it rises into place but is never invisible */
.js .film-stage[data-reveal] { opacity: 1; }

/* headline lines rise out of a mask */
.lines { display: block; }
.lines > .ln { display: block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; position: relative; z-index: calc(3 - var(--i, 0)); }
/* the upper line paints over the one below, so its selection underline isn't covered by the next line's highlight */
.lines > .ln > span { display: inline-block; text-wrap: balance; }
.hero__sub, .band__para, .closing p, .problem__body p, .caption p, .room__detail { text-wrap: pretty; }
.js .lines > .ln > span { transform: translateY(108%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 1ms + var(--i, 0) * 90ms); }
.js .lines.is-in > .ln > span { transform: none; }
.lines .it { font-style: italic; }

/* the pile falls onto the desk */
.js .pile .pile__card { opacity: 0; transform: translate(var(--fx, 0), calc(var(--y) - 60px)) rotate(calc(var(--r) * 3)); transition: opacity 0.7s var(--ease), transform 1.2s var(--ease); transition-delay: calc(var(--k) * 110ms); }
.js .pile.is-in .pile__card { opacity: 1; transform: translateY(var(--y)) rotate(var(--r)); }
.js .pile.is-settled .pile__card { transition: box-shadow 0.6s var(--ease), opacity 0.7s; transition-delay: 0s; }

/* ─── Responsive ──────────────────────────────────────── */
/* below the full grid the row keeps its single line and drifts slowly, looping seamlessly;
   a touch or hover holds it still */
@media (max-width: 1199px) {
  .formats__inner { gap: 32px; }
  .formats__list {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  }
  .formats__track, .formats__track[aria-hidden] { flex: none; display: flex; gap: 36px; padding-right: 36px; animation: drift 34s linear infinite; }
  .formats__list:hover .formats__track, .formats__list:active .formats__track { animation-play-state: paused; }
}
@keyframes drift { to { transform: translateX(-100%); } }

@media (max-width: 1279px) {
  .problem__row { flex-direction: column; align-items: flex-start; gap: 72px; }
  .problem__copy { width: min(620px, 100%); }
  .pile { align-self: center; }
  .band__stage { padding-inline: 0; }
  .wall { gap: 24px; }
  .work { width: auto; flex: 1; }
}

/* Below this width the plates stack, the gallery opens in place (no rehang). */
@media (max-width: 1099px) {
  /* the prints stack: each step is a full-bleed colour print that sticks and is covered by the next,
     leaving a sliver of every colour above it — the overprint, rebuilt for a narrow screen */
  .plates { height: auto; display: block; }
  .step {
    position: sticky; top: calc(20px + var(--i) * 11px);
    display: flex; flex-direction: column; gap: 14px;
    margin: 0 calc(-1 * var(--gutter)) 9vh;
    padding: 26px var(--gutter) 30px;
    background: var(--c); color: #fff;
    transform-origin: 50% 0;
    transform: scale(calc(1 - var(--cover, 0) * 0.05));
    box-shadow: 0 -10px 30px rgb(10 12 20 / 0.14);
  }
  .step:last-child { margin-bottom: 0; }
  .step::after { content: ""; position: absolute; inset: 0; background: #0B0D14; opacity: calc(var(--cover, 0) * 0.35); pointer-events: none; }
  .step.on-light { color: var(--ink); }
  .step__meta { display: flex; align-items: baseline; justify-content: space-between; margin: 0; }
  .step__meta .mono { font-size: 11px; letter-spacing: 1px; }
  .step__meta em { font-family: var(--serif); font-size: 16px; }
  .step__meta em::before { content: "↳ "; font-style: normal; }
  .step .overprint { display: none; }
  .step .caption, .step .plate { top: auto !important; left: auto !important; right: auto !important; }
  .step .caption { position: static; width: auto; height: auto !important; margin: 0; gap: 8px; }
  .step .caption h3 { color: inherit; font-size: 26px; line-height: 30px; }
  .step .caption p { color: inherit; opacity: 0.82; max-width: 52ch; }
  .step .plate { position: relative; width: auto; height: auto; margin-top: 10px; padding: 0; aspect-ratio: 512 / 320; }
  .step .plate::before { display: none; }
  .step .plate__window { box-shadow: 0 18px 40px rgb(10 12 20 / 0.28); }

  .wall { display: grid; grid-template-columns: 1fr 1fr; gap: 72px 32px; }
  .usecases.is-room .gallery { display: none; }
  .room { position: relative; inset: auto; display: none; padding: 120px 0; }
  .usecases.is-room .room { display: block; }
  .room__intro { flex-direction: column; align-items: flex-start; gap: 24px; }
  .room__side { width: 100%; }
  .room__main { flex-direction: column; }
  .rail { width: 100%; }
  /* narrow screens: no rehang; the gallery fades out around the chosen painting, the room fades in */
  .gallery { transition: opacity 0.45s var(--ease); }
  .usecases.is-returning .gallery { opacity: 0; }
  .usecases.is-fading .gallery__head, .usecases.is-fading .wall-progress,
  .usecases.is-fading .work:not(.is-chosen), .usecases.is-fading .work.is-chosen .work__label {
    opacity: 0; transition: opacity 0.3s var(--ease);
  }
  .usecases.is-fading .work.is-chosen .frame { transform: translateY(-6px) scale(1.04); transition: transform 0.45s var(--ease); }
  .room .stage-frame, .room .rail .frame { opacity: 0; transform: translateY(16px); transition: opacity 0.45s var(--ease), transform 0.7s var(--ease); }
  .usecases.is-open .room .stage-frame { opacity: 1; transform: none; transition-delay: 0.16s; }
  .usecases.is-open .room .rail .frame { opacity: 1; transform: none; transition-delay: 0.3s; }
  .usecases.no-anim .gallery, .usecases.no-anim .room .stage-frame, .usecases.no-anim .room .rail .frame { transition: none !important; }
}

@media (max-width: 860px) {
  .nav__links { display: none; }
  .hero { padding-top: calc(72px + 56px); }
  .hero__actions { flex-direction: column; width: 100%; max-width: 360px; }
  .hero__actions .btn { width: 100%; }
  .film-stage { margin-top: 44px; }
  .film__bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .formats { margin-top: 44px; }
  .formats__inner { padding: 24px 0 40px; }
  .formats__inner { flex-direction: column; align-items: stretch; gap: 16px; padding-bottom: 36px; }
  .formats__list { margin-inline: calc(-1 * var(--gutter)); }
  .formats__track, .formats__track[aria-hidden] { gap: 30px; padding-right: 30px; animation-duration: 30s; }
  .formats__list li { font-size: 14.5px; }
  .film { border-radius: 12px; }
  .problem { padding: 96px 0; }
  .pile { width: 620px; transform: scale(var(--pile-scale, 1)); transform-origin: top left; margin-bottom: calc((var(--pile-scale, 1) - 1) * 560px); align-self: flex-start; }
  .method { margin-top: 96px; }
  .method__row { grid-template-columns: 1fr; gap: 40px; }
  .band { padding: 96px 0; }
  .band__stage { padding-top: 44px; }
  .band__para { font-size: 17px; line-height: 27px; }
  .recording { border-radius: 10px; }
  .toolkit { padding: 96px 0; }
  .toolkit__head { margin-bottom: 56px; }
  .caption h3 { font-size: 26px; line-height: 31px; }
  .gallery, .room { padding: 96px 0; }
  .gallery__head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .wall {
    display: flex; gap: 20px; margin-top: 48px;
    margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    scrollbar-width: none; overscroll-behavior-x: contain;
  }
  .wall::-webkit-scrollbar { display: none; }
  .work { flex: 0 0 78%; scroll-snap-align: start; gap: 28px; }
  .work__hang { height: auto; padding: 24px 0; cursor: pointer; }
  .work__hit { cursor: pointer; }
  .path { flex-direction: column; align-items: flex-start; gap: 14px; }
  .path .conn { display: none; }
  .closing { padding: 112px 0; }
  .closing__ctas { flex-direction: column; gap: 20px; }
  .footer__top { flex-direction: column; }
  .footer__cols { flex-wrap: wrap; gap: 40px; }
  .lightbox__chapters { gap: 10px; }
  .lightbox__chapters .t span:last-child { display: none; }
}

/* ─── Phone craft ─────────────────────────────────────
   Phones get their own composition instead of a shrunk desktop: headlines reflow and rise as one block,
   demos bleed nearly edge to edge and crop into the part of the app that proves the line above them,
   copy is set flush left (centred paragraphs read slowly at this width), and swipe rows show where you are. */
@media (max-width: 860px) {
  :root { --gutter: 20px; }
  .lines { text-wrap: balance; }
  .lines > .ln, .lines > .ln > span { display: inline; overflow: visible; padding: 0; margin: 0; }
  .lines > .ln + .ln::before { content: " "; }
  .lines > .ln.muted { display: block; }            /* the grey answer line keeps its own line */
  .lines > .ln.muted::before { content: none; }
  .js .lines > .ln > span { transform: none; transition: none; }
  .js .lines { opacity: 0; transform: translateY(22px); filter: blur(6px); transition: opacity 0.9s var(--ease), transform 1.1s var(--ease), filter 0.9s var(--ease); }
  .js .lines.is-in { opacity: 1; transform: none; filter: none; }

  /* hero: one promise, one button, the film large and alive */
  .hero { padding-top: calc(72px + 40px); }
  .hero__copy { gap: 20px; }
  .hero__title { font-size: clamp(40px, 11vw, 48px); line-height: 1.04; letter-spacing: -0.025em; }
  .hero__sub { font-size: 16.5px; line-height: 1.55; max-width: 34ch; }
  .hero__actions { gap: 6px; padding-top: 4px; max-width: none; }
  .hero__actions .btn { height: 52px; font-size: 16px; border-radius: 12px; }
  .hero__actions .btn--ghost { height: 44px; width: auto; margin-inline: auto; box-shadow: none; color: var(--lapis-2); }
  .film-stage { margin: 40px -8px 0; }
  .film { border-radius: 14px; }
  .film__bar { height: 30px; padding: 0 12px; font-size: 11px; }
  .film__bar i { width: 8px; height: 8px; }
  .film__screen { aspect-ratio: 4 / 5; }
  .film__screen video, .film__screen img.poster { object-position: var(--focus, 64% 50%); }

  /* movement bands: flush-left editorial copy, the recording bleeds and crops square */
  .band { padding: 88px 0 72px; }
  .band__copy { align-items: flex-start; text-align: left; gap: 20px; }
  .display-1 { font-size: clamp(36px, 9.6vw, 42px); line-height: 1.08; }
  .band__para { font-size: 16.5px; line-height: 26px; }
  .band__stage { padding-top: 40px; margin-inline: -8px; }
  .recording { aspect-ratio: 1 / 1 !important; border-radius: 14px; }
  .recording .media video, .recording .media img.poster { object-position: var(--focus, 50% 50%); }

  /* problem + method: tighter, the pile fills the width */
  .display-2 { font-size: clamp(34px, 9.2vw, 40px); }
  .problem__body { font-size: 16.5px; line-height: 26px; }
  .problem__row { gap: 48px; }
  .pile { margin-left: calc(4px - var(--gutter)); }
  .method { margin-top: 80px; gap: 32px; }
  .method__kicker { font-size: 22px; line-height: 1.25; }
  .method__row { gap: 28px; }
  .chapter { gap: 12px; }
  .chapter__band { height: 6px; }
  .chapter__word { font-size: 44px; }
  .chapter__line { font-size: 15px; }

  /* toolkit: the stacked prints (see the 1099 block) */
  .toolkit__head p { font-size: 16px; line-height: 25px; }
  .step { padding: 22px var(--gutter) 26px; }
  .step .caption h3 { font-size: 24px; line-height: 29px; }
  .step .caption p { font-size: 15px; line-height: 22px; }

  /* gallery: swipe row with a quiet progress line */
  .wall-progress { display: block; height: 2px; margin-top: 28px; background: rgb(251 250 247 / 0.14); border-radius: 1px; overflow: hidden; }
  .wall-progress i { display: block; height: 100%; width: 25%; background: var(--mustard); transform: translateX(calc(var(--p, 0) * 300%)); transition: transform 0.2s linear; }
  .work__q { font-size: 21px; line-height: 26px; }
  .work:active .frame { transform: scale(0.98); transition-duration: 0.15s; }

  .closing { padding: 104px 0 96px; }
  .closing h2 { font-size: clamp(36px, 10vw, 44px); }
  .closing p { font-size: 16.5px; line-height: 26px; }
  .closing__ctas .btn { width: 100%; height: 52px; font-size: 16px; }
}
.wall-progress { display: none; }

/* Reduced motion: nothing travels, things only appear. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js .lines > .ln > span, .js .pile .pile__card { transform: none !important; transition: opacity 0.4s linear !important; }
  .js [data-reveal="band"], .js [data-reveal="rule"] { transform: none !important; }
  .js .pile .pile__card { transform: translateY(var(--y)) rotate(var(--r)) !important; }
  .film, .recording { transform: none !important; }
  .room [data-beat] { transform: none !important; }
  .js .lines { transform: none !important; filter: none !important; }
  .step { transform: none !important; }
  .formats__track, .formats__track[aria-hidden] { animation: none !important; }
  .formats__list { overflow-x: auto; scrollbar-width: none; }
  .formats__track[aria-hidden] { display: none !important; }
}

/* ─── Pricing & Download (lapis pages) ────────────────── */
.page-lapis { background: var(--lapis); }
.page-lapis main { background: var(--bg); }
.kicker { display: flex; align-items: center; gap: 12px; color: var(--lapis-3); }
.kicker .mono { font-size: 11px; letter-spacing: 1px; }
.kicker i { width: 32px; height: 1px; background: currentColor; }
.kicker em { color: var(--lapis-2); font-family: var(--serif); font-size: 20px; }
.page-lapis .lines .ln.muted { color: var(--lapis-3); }

.offer { background: var(--lapis); color: var(--bg); padding: calc(72px + 112px) 0 112px; position: relative; overflow: hidden; }
.offer::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 60% at 85% 40%, rgb(224 170 73 / 0.12), transparent 70%); pointer-events: none; }
.offer__lead { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; }
.offer__copy { width: 600px; display: flex; flex-direction: column; gap: 36px; }
.offer__title { font-family: var(--serif); font-size: clamp(52px, 4.4vw + 16px, 80px); line-height: 1.025; letter-spacing: -0.03em; }
.offer__body { color: var(--lapis-2); font-size: 18px; line-height: 28px; }
.price { display: flex; flex-direction: column; align-items: flex-end; gap: 20px; }
.price__figure { display: flex; align-items: flex-start; color: var(--mustard); font-family: var(--serif); }
.price__cur { font-size: 120px; line-height: 168px; }
.price__amt { display: block; height: 320px; overflow: hidden; font-size: 400px; line-height: 320px; }
.price__reel { display: flex; flex-direction: column; transform: translateY(0); }
.price__reel span { display: block; height: 320px; }
.js .price__amt[data-reveal] { opacity: 1; transform: none; }
.price__amt .price__reel { transition: transform 2.2s cubic-bezier(0.16, 1, 0.3, 1) 0.35s; }
.price__amt.is-in .price__reel { transform: translateY(-1280px); }
.no-js .price__reel, html:not(.js) .price__reel { transform: translateY(-1280px); }
.price__cap { font-family: var(--serif); font-size: 28px; font-style: italic; }
.offer__terms { position: relative; margin-top: 88px; padding-top: 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.offer__rule { position: absolute; top: 0; left: 0; right: 0; height: 1px; background: rgb(251 250 247 / 0.22); }
.offer__ctas { display: flex; align-items: center; gap: 24px; }
.offer__fine { color: var(--lapis-2); font-size: 15px; }

.included { padding: 144px 0 160px; }
.included__row { display: flex; justify-content: space-between; gap: 64px; }
.included__intro { width: 440px; flex: none; display: flex; flex-direction: column; gap: 32px; align-self: flex-start; position: sticky; top: 120px; }
.included__intro .lines .muted { color: var(--ink-3); font-style: italic; }
.included__intro p { color: var(--ink-2); font-size: 18px; line-height: 28px; }
.index { width: 640px; margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.index__row, .install__steps li { position: relative; display: flex; gap: 32px; padding: 28px 0 32px; }
.index__rule { position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line); transform-origin: left; transform: scaleX(0); transition: transform 1s var(--ease); transition-delay: calc(var(--d, 0) * 1ms); }
.is-in > .index__rule { transform: scaleX(1); }
.index__row .mono { color: var(--ink-3); line-height: 26px; }
.index__row h3 { font-family: var(--serif); font-size: 26px; line-height: 30px; letter-spacing: -0.4px; transition: transform 0.6s var(--ease); }
.index__row p { margin-top: 8px; color: var(--ink-2); font-size: 16px; line-height: 24px; }
.index__row:hover h3 { transform: translateX(6px); }

.ready { background: var(--lapis); color: var(--bg); padding: calc(72px + 112px) 0 120px; min-height: 717px; }
.ready__row { display: flex; justify-content: space-between; gap: 64px; }
.ready__copy { width: 600px; display: flex; flex-direction: column; gap: 36px; }
.ready__title { font-family: var(--serif); font-size: clamp(48px, 3.8vw + 16px, 72px); line-height: 1.014; letter-spacing: -0.028em; }
.ready__body { color: var(--lapis-2); font-size: 18px; line-height: 28px; }
.ready__actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.ready__actions .btn { overflow: hidden; }
.dl-bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--mustard); transform-origin: left; transform: scaleX(0); animation: dl 1.6s var(--ease) 0.9s forwards; }
@keyframes dl { 0% { transform: scaleX(0); } 70% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.retry { color: var(--lapis-2); font-size: 15px; }
.retry a { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; color: var(--bg); font-weight: 500; }
.retry .icon { width: 14px; height: 14px; }
.retry a.is-spin .icon { animation: spin 0.8s var(--ease); }
@keyframes spin { to { transform: rotate(-360deg); } }
.install { width: 480px; flex: none; display: flex; flex-direction: column; gap: 24px; padding-top: 8px; }
.install h2 { font-family: var(--serif); font-size: 28px; font-style: italic; letter-spacing: -0.4px; }
.install__steps { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid rgb(251 250 247 / 0.22); }
.install__steps li { gap: 24px; padding: 20px 0 22px; }
.install__steps .index__rule { background: rgb(251 250 247 / 0.22); }
.install__steps .mono { color: var(--lapis-3); line-height: 23px; }
.install__steps h3 { font-size: 15px; font-weight: 600; line-height: 23px; }
.install__steps p { margin-top: 4px; color: var(--lapis-2); font-size: 15px; line-height: 23px; }
.install__fine { color: var(--lapis-3); font-size: 13px; line-height: 20px; }

@media (max-width: 1099px) {
  .offer__lead, .ready__row, .included__row { flex-direction: column; align-items: flex-start; }
  .offer__copy, .ready__copy, .included__intro, .index, .install { width: 100%; max-width: 640px; }
  .included__intro { position: static; }
  .price { align-items: flex-start; }
}
@media (max-width: 860px) {
  .offer { padding: calc(72px + 64px) 0 80px; }
  .price__cur { font-size: 72px; line-height: 100px; }
  .price__amt { height: 200px; font-size: 250px; line-height: 200px; }
  .price__reel span { height: 200px; }
  .price__amt.is-in .price__reel { transform: translateY(-800px); }
  .offer__ctas { flex-direction: column; align-items: flex-start; }
  .included { padding: 96px 0; }
  .ready { padding: calc(72px + 64px) 0 96px; }
}

/* plates are printed one by one: the colour field wipes in from its own side, the window settles onto it,
   then the overprint where two plates meet, then the caption */
/* the wipe lives on ::before: a clip-path on the observed plate itself zeroes its area,
   and Chrome's IntersectionObserver then never reports it on screen */
.plate { isolation: isolate; }
.plate::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--c); }
.js [data-plate]::before { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s var(--ease-io); }
.js [data-plate].r::before { clip-path: inset(0 0 0 100%); }
.js [data-plate].is-in::before { clip-path: inset(0 0 0 0); }
.js [data-plate] .plate__window { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease) 0.45s, transform 1.1s var(--ease) 0.45s, box-shadow 0.8s var(--ease); }
.js [data-plate].is-in .plate__window { opacity: 1; transform: none; }
.js [data-plate].is-in .plate__window:hover { transition-delay: 0s; }
.js [data-over] { transform: scaleY(0); transform-origin: top; transition: transform 0.7s var(--ease) 0.7s; }
.js [data-over] span { opacity: 0; transition: opacity 0.6s var(--ease) 1.2s; }
.js [data-over].is-in { transform: none; }
.js [data-over].is-in span { opacity: 1; }
.js [data-caption] > * { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 1s var(--ease); }
.js [data-caption] > p { transition-delay: 0.12s; }
.js [data-caption].is-in > * { opacity: 1; transform: none; }
@media (max-width: 1099px) { .js [data-over] { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .js [data-plate]::before, .js [data-plate].r::before { clip-path: none; }
  .js [data-plate] .plate__window, .js [data-caption] > *, .js [data-over] { transform: none !important; }
}

@media print { .js [data-reveal], .js .lines > .ln > span, .js [data-plate] .plate__window, .js [data-caption] > * { opacity: 1 !important; transform: none !important; } .js [data-plate]::before { clip-path: none !important; } }
