/* Layer Consulting, Franco Puppo.
   World: an industrial-design monograph. Black-and-white plates on neutral paper,
   Inter Tight display, Inter text. The Layer gradient lives only in the mark and in
   the top layer of the stack. Radius rule: controls are pills, plates and panels 22px.
   Motion: CSS scroll-driven timelines where supported, IntersectionObserver reveals
   elsewhere; everything collapses to the static end state under reduced motion. */

:root {
  --paper: #f3f3f2;
  --paper-2: #e9e9e7;
  --sheet: #fbfbfa;
  --ink: #131316;
  --ink-2: #4f5057;
  --ink-3: #74757c;
  --line: #d9d9dc;
  --accent: #7c3fc4;
  --grad: linear-gradient(90deg, #38e0dc, #7a7cf0 55%, #c04ae8);
  --bar-1: #a3a3aa; --bar-2: #8e8e96; --bar-3: #77777f; --bar-4: #606068;
  --shadow: 0 1px 2px rgba(19,19,22,.05), 0 18px 50px -12px rgba(19,19,22,.18);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --display: "Inter Tight", "SF Pro Display", -apple-system, system-ui, sans-serif;
  --text: "Inter", "SF Pro Text", -apple-system, system-ui, sans-serif;
  --r: 22px;
  --pad: clamp(20px, 4vw, 56px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #111113; --paper-2: #1d1d21; --sheet: #1b1b1e;
    --ink: #f2f2f3; --ink-2: #b3b3ba; --ink-3: #8d8d95; --line: #2c2c31;
    --accent: #c08bf0;
    --bar-1: #6a6a72; --bar-2: #5a5a62; --bar-3: #4a4a52; --bar-4: #3d3d44;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 18px 50px -12px rgba(0,0,0,.6);
  }
}
:root[data-theme="dark"] {
  --paper: #111113; --paper-2: #1d1d21; --sheet: #1b1b1e;
  --ink: #f2f2f3; --ink-2: #b3b3ba; --ink-3: #8d8d95; --line: #2c2c31;
  --accent: #c08bf0;
  --bar-1: #6a6a72; --bar-2: #5a5a62; --bar-3: #4a4a52; --bar-4: #3d3d44;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 18px 50px -12px rgba(0,0,0,.6);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--ink-3) var(--paper); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body { background: var(--paper); }
body { margin: 0; color: var(--ink); font: 400 17px/1.6 var(--text); font-feature-settings: "cv11", "ss01"; overflow-x: clip; caret-color: var(--accent); }
::selection { background: color-mix(in oklab, var(--accent) 26%, transparent); color: var(--ink); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; text-wrap: balance; letter-spacing: -0.035em; }
h2 { font-size: clamp(2.2rem, 4.6vw, 4rem); line-height: 1.02; }
h3 { font-size: 1.2rem; letter-spacing: -0.015em; line-height: 1.25; }
p { margin: 0 0 1em; text-wrap: pretty; }
.wrap { width: min(1280px, 100% - 2 * var(--pad)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 30; background: var(--sheet); padding: 8px 14px; border-radius: 99px; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 14px 0 auto; z-index: 20; pointer-events: none; }
.nav .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.nav-pill { pointer-events: auto; display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 99px; background: color-mix(in oklab, var(--sheet) 72%, transparent); backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6); border: 1px solid color-mix(in oklab, var(--line) 70%, transparent); transition: box-shadow .4s var(--ease); }
.nav.stuck .nav-pill { box-shadow: var(--shadow); }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 14px 4px 8px; text-decoration: none; font: 600 .98rem/1 var(--display); letter-spacing: -0.02em; white-space: nowrap; }
.mark .b1 { fill: var(--bar-1); } .mark .b2 { fill: var(--bar-2); } .mark .b3 { fill: var(--bar-3); } .mark .b4 { fill: var(--bar-4); }
.nav-links a { text-decoration: none; font-size: .9rem; font-weight: 500; color: var(--ink-2); padding: 8px 12px; border-radius: 99px; transition: color .2s, background-color .2s; white-space: nowrap; }
.nav-links a:hover { color: var(--ink); background: var(--paper-2); }
.nav-links .lang { font-size: .8rem; letter-spacing: .04em; }
.nav-links .btn-ink, .nav-links .btn-ink:hover { color: var(--paper); background: var(--ink); }
@media (max-width: 900px) { .nav-links .hide-s { display: none; } }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 99px; font: 600 .98rem/1 var(--text); text-decoration: none; white-space: nowrap; transition: transform .5s var(--ease), background-color .25s, color .25s, box-shadow .4s var(--ease); }
.btn svg { width: 16px; height: 16px; transition: transform .5s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { box-shadow: 0 14px 34px -10px color-mix(in oklab, var(--ink) 55%, transparent); }
.btn-line { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); background: color-mix(in oklab, var(--sheet) 55%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-line:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.nav .btn { padding: 11px 18px; font-size: .9rem; }

/* ---------- hero ---------- */
.hero { min-height: 100dvh; display: grid; align-items: center; padding: 112px 0 56px; }
.hero { position: relative; isolation: isolate; overflow: clip; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
/* Layer light: the gradient of the mark falls on the photographs as colour, never as a shape.
   It follows the pointer and drifts on its own when nobody is steering it. */
@property --mx { syntax: "<percentage>"; inherits: true; initial-value: 68%; }
@property --my { syntax: "<percentage>"; inherits: true; initial-value: 34%; }
.hero { --mx: 68%; --my: 34%; transition: --mx 1.1s var(--ease), --my 1.1s var(--ease); }
.hero .wrap { position: relative; z-index: 1; }
.hero-bg::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(115deg, #38e0dc 8%, #7a7cf0 48%, #c04ae8 88%); background-size: 160% 160%; mix-blend-mode: color; opacity: .6;
  -webkit-mask-image: radial-gradient(85% 90% at 60% 28%, #000 10%, transparent 78%); mask-image: radial-gradient(85% 90% at 60% 28%, #000 10%, transparent 78%); }
.hero-bg::after { z-index: 2; }
.hero-light { opacity: 0; transition: opacity .8s var(--ease); }
.hero.live .hero-light { opacity: .95; }
.hero-light { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(115deg, #38e0dc 12%, #7a7cf0 50%, #c04ae8 88%); mix-blend-mode: color; opacity: .95;
  -webkit-mask-image: radial-gradient(clamp(240px, 30vw, 480px) circle at var(--mx) var(--my), #000 0%, rgba(0,0,0,.55) 38%, transparent 72%);
  mask-image: radial-gradient(clamp(240px, 30vw, 480px) circle at var(--mx) var(--my), #000 0%, rgba(0,0,0,.55) 38%, transparent 72%); }
:root[data-theme="dark"] .hero-light { mix-blend-mode: soft-light; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero-light { mix-blend-mode: soft-light; } }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: grayscale(1) contrast(1.15); opacity: .34; mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in oklab, var(--paper) 70%, transparent) 0%, color-mix(in oklab, var(--paper) 30%, transparent) 45%, transparent 100%); }
:root[data-theme="dark"] .hero-bg img { opacity: .26; mix-blend-mode: normal; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero-bg img { opacity: .26; mix-blend-mode: normal; } }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; }
.h-hero { font-size: clamp(2.5rem, 7.4vw, 7.2rem); line-height: 1; letter-spacing: -0.045em; }
@media (min-width: 861px) { .h-hero .ln { white-space: nowrap; } }
.h-hero .ln { display: block; }
.h-hero .ln + .ln { color: var(--ink-3); }
.h-hero .ln.gt { padding-bottom: .06em; }
.h-hero .w { display: inline-block; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.35rem); color: var(--ink-2); max-width: 46ch; margin: 30px 0 38px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.plate { margin: 0; border-radius: var(--r); overflow: hidden; background: var(--paper-2); position: relative; }
.plate img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1); }
@media (max-width: 860px) {
  .hero { padding-top: 104px; }
  .hero .wrap { grid-template-columns: 1fr; }
  }

/* ---------- five layers (signature) ---------- */
.layers { position: relative; height: 320vh; view-timeline: --layers block; }
.layers-stage { position: sticky; top: 0; height: 100dvh; display: grid; align-items: center; }
.layers-stage .wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.layers-copy h2 { font-size: clamp(2rem, 3.4vw, 3.1rem); }
.layers-copy p { color: var(--ink-2); font-size: 1.1rem; max-width: 40ch; margin-top: 22px; }
.stack { --shift: 64px; list-style: none; margin: 0; padding: 0; display: grid; }
.stack li { display: grid; grid-template-columns: minmax(120px, 42%) 1fr; gap: 28px; align-items: center; min-height: 92px; }
.stack .bar { height: 22px; border-radius: 99px; }
.stack li:nth-child(1) .bar { background: var(--grad); width: 84%; }
.stack li:nth-child(2) .bar { background: var(--bar-1); }
.stack li:nth-child(3) .bar { background: var(--bar-2); }
.stack li:nth-child(4) .bar { background: var(--bar-3); }
.stack li:nth-child(5) .bar { background: var(--bar-4); }
.stack h3 { font-size: 1.35rem; }
.stack p { color: var(--ink-2); font-size: .97rem; margin: 4px 0 0; max-width: 36ch; }
@media (max-width: 860px) {
  .layers { height: 300vh; }
  .layers-stage { align-items: start; padding-top: 92px; }
  .layers-stage h2 { font-size: clamp(1.9rem, 8vw, 2.4rem); }
  .layers-copy p { font-size: 1rem; margin-top: 14px; }
  .layers-stage .wrap { grid-template-columns: 1fr; gap: 20px; }
  .stack { --shift: 52px; }
  .stack li { grid-template-columns: 26% 1fr; gap: 16px; min-height: 70px; }
  .stack .bar { height: 14px; }
  .stack h3 { font-size: 1.1rem; }
  .stack p { font-size: .84rem; line-height: 1.45; }
}

/* ---------- when to call: expanding index ---------- */
.block { padding: clamp(96px, 14vw, 180px) 0; }
.block h2 { max-width: 22ch; }
h2 .dim, .row h3 .dim { color: var(--ink-3); }
/* gradient type: the Layer gradient, deepened in light mode so large text keeps 3:1 on paper */
:root { --grad-type: linear-gradient(100deg, #0e9e9a 0%, #4f63e0 35%, #9b3fd0 65%, #0e9e9a 100%); }
:root[data-theme="dark"] { --grad-type: linear-gradient(100deg, #38e0dc 0%, #7a7cf0 35%, #c66bf0 65%, #38e0dc 100%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --grad-type: linear-gradient(100deg, #38e0dc 0%, #7a7cf0 35%, #c66bf0 65%, #38e0dc 100%); } }
.gt, h2 .dim { background: var(--grad-type); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.index { margin-top: 56px; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--line); outline: none; }
.row h3 { font-size: clamp(1.5rem, 3vw, 2.4rem); letter-spacing: -0.035em; transition: transform .6s var(--ease); }
.row .more { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .6s var(--ease), opacity .4s; }
.row .more > div { overflow: hidden; }
.row .more p { color: var(--ink-2); max-width: 60ch; margin: 14px 0 0; font-size: 1.04rem; }
.row .arrow { width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; transition: transform .6s var(--ease), background-color .3s, color .3s; }
.row .arrow svg { width: 18px; height: 18px; }
.row:hover h3, .row:focus-visible h3 { transform: translateX(10px); }
.row:hover .more, .row:focus-visible .more { grid-template-rows: 1fr; opacity: 1; }
.row:hover .arrow, .row:focus-visible .arrow { transform: rotate(-45deg); background: var(--ink); color: var(--paper); box-shadow: none; }
.row:focus-visible { box-shadow: inset 3px 0 0 var(--accent); }
@media (hover: none) { .row .more { grid-template-rows: 1fr; opacity: 1; } .row .arrow { display: none; } }

/* ---------- manifesto ---------- */
.manifesto { height: 200vh; view-timeline: --quote block; }
.manifesto-stage { position: sticky; top: 0; height: 100dvh; display: grid; place-content: center; padding-inline: var(--pad); }
.manifesto blockquote { margin: 0 auto; font: 600 clamp(2.2rem, 6.2vw, 5.4rem)/1.04 var(--display); letter-spacing: -0.045em; max-width: 17ch; text-align: center; text-wrap: balance; }
.manifesto .attr { text-align: center; margin-top: 28px; color: var(--ink-3); font-size: .95rem; }

/* ---------- engagements: tabs ---------- */
.formats { margin-top: 56px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.tabs { display: grid; gap: 8px; }
.tab { all: unset; box-sizing: border-box; cursor: pointer; display: block; padding: 22px 24px; border-radius: var(--r); transition: background-color .35s, box-shadow .35s; }
.tab b { display: block; font: 600 clamp(1.35rem, 2.4vw, 1.9rem)/1.15 var(--display); letter-spacing: -0.03em; color: var(--ink-3); transition: color .3s; }
.tab span { display: block; color: var(--ink-3); font-size: .92rem; margin-top: 6px; }
.tab:hover b { color: var(--ink-2); }
.tab[aria-selected="true"] { background: var(--sheet); box-shadow: var(--shadow); }
.tab[aria-selected="true"] b { color: var(--ink); }
.tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.panels { display: grid; gap: 16px; }
.panel { background: var(--sheet); border-radius: var(--r); padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow); }
.panel h3 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); letter-spacing: -0.035em; margin-top: 28px; }
.panel > p { color: var(--ink-2); font-size: 1.05rem; margin: 14px 0 0; max-width: 52ch; }
.panel dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 28px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.panel dt { font-size: .85rem; color: var(--ink-3); }
.panel dd { margin: 4px 0 0; font-weight: 500; }
.mini { display: grid; gap: 7px; width: min(220px, 60%); }
.mini i { display: block; height: 10px; border-radius: 99px; background: var(--paper-2); transform-origin: left; }
.mini i.on { background: var(--bar-2); }
.mini i.on:first-child { background: var(--grad); }
.mini i:first-child { width: 84%; }
.mini-cap { font-size: .85rem; color: var(--ink-3); margin-top: 12px; }
.tabs { display: none; }
.js .tabs { display: grid; }
.js .panel[hidden] { display: none; }
@media (max-width: 860px) {
  .formats { grid-template-columns: 1fr; }
  .js .tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .tab { padding: 14px 12px; text-align: center; }
  .tab b { font-size: 1rem; }
  .tab span { display: none; }
  .panel dl { grid-template-columns: 1fr; }
}

/* ---------- about ---------- */
.about .wrap { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.plate-studio { box-shadow: var(--shadow); }
.about-copy > p { color: var(--ink-2); font-size: 1.1rem; max-width: 54ch; }
.about-copy h2 { margin-bottom: 28px; }
.rules { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 22px; }
.rules li { display: grid; grid-template-columns: 22px 1fr; gap: 16px; }
.rules li::before { content: ""; width: 22px; height: 6px; margin-top: 10px; border-radius: 99px; background: var(--bar-2); }
.rules li:first-child::before { background: var(--grad); }
.rules b { display: block; font: 600 1.1rem/1.3 var(--display); letter-spacing: -0.02em; }
.rules span { color: var(--ink-2); font-size: .98rem; }
@media (max-width: 860px) { .about .wrap { grid-template-columns: 1fr; } .plate-studio { max-width: 420px; } }

/* ---------- gallery: abstract plates that pan sideways on scroll ---------- */
.gallery { padding: 24px 0 clamp(72px, 10vw, 140px); overflow-x: auto; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery-track { display: flex; align-items: flex-start; gap: 16px; width: max-content; padding-inline: var(--pad); }
.gallery-track img { width: clamp(220px, 27vw, 400px); height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); filter: grayscale(1); box-shadow: var(--shadow); }
.gallery-track img:nth-child(even) { margin-top: clamp(32px, 6vw, 88px); }

/* ---------- contact ---------- */
.contact { padding: clamp(110px, 16vw, 200px) 0 clamp(80px, 10vw, 120px); }
.contact h2 { font-size: clamp(3.4rem, 11vw, 6rem); line-height: .94; letter-spacing: -0.05em; max-width: none; }
.contact-row { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-top: 40px; }
.contact-row p { color: var(--ink-2); font-size: 1.1rem; max-width: 46ch; margin: 0; }
.mail { font: 500 clamp(1.15rem, 2.4vw, 1.6rem)/1.3 var(--display); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 32px 0 44px; color: var(--ink-3); font-size: .88rem; }
.foot .wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 22px; }
.foot a { text-decoration: none; color: var(--ink-2); }
.foot a:hover { color: var(--ink); }

/* ---------- 404 ---------- */
.notfound { min-height: 100dvh; display: grid; place-items: center; text-align: center; }
.notfound h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: 1; letter-spacing: -0.045em; margin-bottom: 18px; }
.notfound p { color: var(--ink-2); margin-bottom: 30px; }
.notfound .cta { justify-content: center; }

/* =================== motion =================== */
@media (prefers-reduced-motion: no-preference) {
  /* hero: words rise out of blur */
  .h-hero .w { animation: rise 1.2s var(--ease) both; animation-delay: calc(.08s * var(--i) + .1s); }
  .hero .lede, .hero .cta { animation: rise 1.2s var(--ease) both; }
  .hero .lede { animation-delay: .55s; }
  .hero .cta { animation-delay: .68s; }
  .nav-pill { animation: drop .9s var(--ease) .1s both; }
  .hero-bg img { animation: bgIn 2.6s var(--ease) both; }
  .hero-bg::before { animation: wash 18s ease-in-out infinite alternate; }
  @keyframes wash { from { background-position: 0% 40%; } to { background-position: 100% 60%; } }
  .gt, h2 .dim { animation: shimmer 9s ease-in-out infinite alternate; }
  .h-hero .w.gt { animation: rise 1.2s var(--ease) both, shimmer 9s ease-in-out 1.4s infinite alternate; animation-delay: calc(.08s * var(--i) + .1s), 1.4s; }
  @keyframes shimmer { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
  @keyframes bgIn { from { scale: 1.16; opacity: 0; } }
  @keyframes rise { from { opacity: 0; transform: translateY(.45em); filter: blur(10px); } }
  @keyframes drop { from { opacity: 0; transform: translateY(-16px); } }

  /* generic reveal (IntersectionObserver adds .in) */
  .js .reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
  .js .reveal.in { opacity: 1; transform: none; filter: none; }

  /* engagement panel swap */
  .js .panel.enter { animation: panel .7s var(--ease) both; }
  @keyframes panel { from { opacity: 0; transform: translateY(14px) scale(.985); filter: blur(4px); } }
  .js .panel.enter .mini i { animation: lit .8s var(--ease) both; animation-delay: calc(var(--k) * 70ms + .15s); }
  @keyframes lit { from { transform: scaleX(.15); opacity: .3; } }

  @supports (animation-timeline: view()) {
    /* the Layer mark opens into its five layers, bottom first */
    .stack li { animation: gather linear both; animation-timeline: --layers; animation-range: contain 0% contain 40%; }
    .stack li:nth-child(1) { --g: 2; } .stack li:nth-child(2) { --g: 1; } .stack li:nth-child(3) { --g: 0; }
    .stack li:nth-child(4) { --g: -1; } .stack li:nth-child(5) { --g: -2; }
    @keyframes gather { from { transform: translateY(calc(var(--g) * var(--shift))); } }
    .stack .txt { animation: label linear both; animation-timeline: --layers; }
    .stack li:nth-child(5) .txt { animation-range: contain 30% contain 42%; }
    .stack li:nth-child(4) .txt { animation-range: contain 40% contain 52%; }
    .stack li:nth-child(3) .txt { animation-range: contain 50% contain 62%; }
    .stack li:nth-child(2) .txt { animation-range: contain 60% contain 72%; }
    .stack li:nth-child(1) .txt { animation-range: contain 70% contain 84%; }
    @keyframes label { from { opacity: 0; transform: translateX(-18px); filter: blur(6px); } }
    .stack li:nth-child(1) .bar { animation: glow linear both; animation-timeline: --layers; animation-range: contain 70% contain 86%; }
    @keyframes glow { from { filter: saturate(0) brightness(1.15); } }

    /* manifesto: words light up as you read */
    .manifesto .wd { animation: word linear both; animation-timeline: --quote; animation-range: contain calc(var(--i) * var(--step)) contain calc(var(--i) * var(--step) + 12%); }
    @keyframes word { from { opacity: .14; } }

    .hero-bg { animation: bgOut linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    @keyframes bgOut { to { translate: 0 22vh; opacity: .2; } }

    /* abstract plates pan sideways while the strip crosses the viewport */
    .gallery { overflow: clip; }
    .gallery-track { animation: pan linear both; animation-timeline: view(); animation-range: cover; }
    @keyframes pan { from { transform: translateX(6vw); } to { transform: translateX(calc(-100% + 94vw)); } }

    /* the portrait drifts against the scroll */
    .plate-studio img { animation: drift linear both; animation-timeline: view(); animation-range: cover; }
    @keyframes drift { from { transform: scale(1.14) translateY(-4%); } to { transform: scale(1.14) translateY(4%); } }
  }
}
