:root {
  --blue: #1f3cff;
  --black: #000;
  --white: #fff;
  --hdr: var(--white);       /* header text */
  --hdr-on: #000;            /* text on the filled button: black on black pages, blue on the blue scene */
  --gutter: 24px;
  --sans: "Manrope", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* the site's two voices: every name (a section, a case, a direction) is set like the home's sentences, every
     description like the story on About */
  --title: min(5.2vw, 9vh, 86px);
  --body: clamp(13px, min(1.08vw, 1.9vh), 19px);
}
@media (max-width: 760px) { :root { --title: min(8.8vw, 40px); } }
@media (max-width: 900px) { :root { --body: 14px; } }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--black); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
.mono { font-family: var(--mono); font-weight: 400; font-size: 10px; letter-spacing: 0.02em; text-transform: uppercase; }
.dim { opacity: .5; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 100vh, not the window: on a phone the window grows and shrinks as the address bar slides in and out while
   scrolling, and the canvases would be resized (cleared, laid out anew) every time — the scene stuttering */
#ink, #ui { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; display: block; }
#ink { z-index: 0; }
#ui { z-index: 2; pointer-events: none; }

/* film grain: a pixel-exact noise tile that jumps around a few times a second */
.grain {
  position: fixed; z-index: 90; top: -50%; left: -50%; width: 200%; height: 200%;
  pointer-events: none; animation: grain .5s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  17% { transform: translate(-5%, -10%); }
  33% { transform: translate(3%, -15%); }
  50% { transform: translate(12%, 9%); }
  67% { transform: translate(9%, 4%); }
  83% { transform: translate(-1%, 7%); }
}
@media (prefers-reduced-motion: reduce) { .grain { animation: none; } }

/* ---------------- the smear under the menu ----------------
   Three stacked strips smear what is behind them vertically (an SVG blur that only runs up and down), each one
   stronger and shorter than the last, so content streaks progressively as it slides toward the top edge. The menu
   sits above them and stays sharp. Browsers that can't use an SVG filter as a backdrop get a plain soft blur. */
.smear { position: fixed; z-index: 25; left: 0; right: 0; top: 0; height: 130px; pointer-events: none; transition: opacity .4s ease; }
.smear i { position: absolute; left: 0; right: 0; top: 0; display: block; }
.smear i:nth-child(1) { height: 130px; backdrop-filter: url(#smear1); -webkit-mask: linear-gradient(#000 40%, transparent); mask: linear-gradient(#000 40%, transparent); }
.smear i:nth-child(2) { height: 92px;  backdrop-filter: url(#smear2); -webkit-mask: linear-gradient(#000 35%, transparent); mask: linear-gradient(#000 35%, transparent); }
.smear i:nth-child(3) { height: 56px;  backdrop-filter: url(#smear3); -webkit-mask: linear-gradient(#000 30%, transparent); mask: linear-gradient(#000 30%, transparent); }
html.no-svg-backdrop .smear i:nth-child(1) { backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
html.no-svg-backdrop .smear i:nth-child(2) { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
html.no-svg-backdrop .smear i:nth-child(3) { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

/* ---------------- page transition: to black with the point in the middle, and back ---------------- */
.pt { position: fixed; inset: 0; z-index: 250; background: #000; opacity: 0; pointer-events: none; transition: opacity .45s ease; }
.pt i { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; background: #fff; transform: scale(0); transition: transform .5s cubic-bezier(.19, 1, .22, 1) .1s; }
.pt.on { opacity: 1; pointer-events: auto; }
.pt.on i { transform: scale(1); }

/* ---------------- header ---------------- */
.hdr {
  position: fixed; z-index: 30; top: 0; left: 0; right: 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 18px var(--gutter);
  color: var(--hdr);
}
.hdr::before {                   /* a soft black fade so scrolled content never fights the menu */
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: 120px; pointer-events: none;
  background: linear-gradient(#000 35%, rgba(0,0,0,0)); opacity: 0; transition: opacity .4s ease;
}
.hdr.has-bg::before { opacity: 1; }
/* the header: one line, one height. The logo (CHE over PRODUCTIONS), the menu as a row of framed cells and the
   two buttons are all 32px tall, framed alike and set in the same small mono capitals */
.logo { justify-self: start; position: relative; display: block; height: 32px; aspect-ratio: 641 / 300; }
.logo i {
  position: absolute; inset: 0; background: currentColor;
  -webkit-mask: url("../assets/logo-new.png") center / contain no-repeat; mask: url("../assets/logo-new.png") center / contain no-repeat;
  transition: opacity .6s ease, transform 1s cubic-bezier(.19, 1, .22, 1);
}

/* ---------------- loading (home) ---------------- */
.loader { position: fixed; inset: 0; z-index: 200; background: #000; transition: opacity .5s ease; }
.loader.is-out { opacity: 0; pointer-events: none; }
/* the home's marks and readout wait until the loader has handed over */
.cc-ui { transition: opacity .8s ease; }
html.intro .cc-ui { opacity: 0; }
.ld-num {
  position: absolute; left: var(--gutter); bottom: 20px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 400; letter-spacing: .04em; line-height: 1; font-variant-numeric: tabular-nums;
  transition: opacity .5s ease;
}
.ld-num::after { content: "%"; }
.loader.is-fade .ld-num, .loader.is-done .ld-num { opacity: 0; }
.ld-sq {
  position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; background: #fff;
  transform: scale(var(--s, 1)); opacity: 0;
}
/* on the way back: not the white square but a thin outline, from beyond the screen's edges down to the point */
.ld-ring {
  position: absolute; left: 50%; top: 50%; width: var(--r, 7px); height: var(--r, 7px); border: 1px solid #fff;
  transform: translate(-50%, -50%); opacity: 0; pointer-events: none;
}
.loader.is-done .ld-sq { opacity: 1; transform: scale(1); transition: transform 1.3s cubic-bezier(.76, 0, .24, 1); }

/* the loader's mark: an outlined square in the middle that spells C, H, E as white washes through it */
.ld-mark { --b: 34px; position: absolute; left: 50%; top: 50%; width: var(--b); height: var(--b); margin: calc(var(--b) / -2) 0 0 calc(var(--b) / -2); z-index: 3; mix-blend-mode: difference; }
.ld-box {
  position: absolute; z-index: 2; inset: 0; border: 1px solid #fff;   /* the outline stays on top: the square is always visible */
  transform: scale(0); opacity: 0; transition: transform 1s cubic-bezier(.19, 1, .22, 1), opacity .6s ease;
}
.ld-mark.s1 .ld-box { transform: none; opacity: 1; }
.ld-mark.s2 .ld-box { transform: rotate(180deg); transition: transform 1.1s cubic-bezier(.65, 0, .35, 1); }
/* the letters: each glyph fitted to the square, touching all four sides */
.ld-g { position: absolute; inset: 1px; overflow: hidden; pointer-events: none; }   /* strictly inside the outline: nothing crosses its edges */
/* the white washes in and out of the square, carrying the letters: up from the bottom with a black C; draining
   away to the right, leaving a white H in the empty square; down from the top with a black E; then white all over */
.ld-g .f { position: absolute; inset: 0; background: #fff; transition: clip-path .85s cubic-bezier(.76, 0, .24, 1); }
.ld-g .f1 { clip-path: inset(100% 0 0 0); }
.ld-g .f2 { clip-path: inset(0 0 100% 0); }
.ld-g .f3 { clip-path: inset(0 100% 0 0); transition-duration: .6s; }
.ld-mark.c .f1 { clip-path: inset(0 0 0 0); }
.ld-mark.h .f1 { clip-path: inset(0 0 0 100%); }
.ld-mark.e .f2 { clip-path: inset(0 0 0 0); }
.ld-mark.w .f3 { clip-path: inset(0 0 0 0); }
.ld-g i {
  position: absolute; inset: 0; display: block; background: #000;
  -webkit-mask: var(--logo) no-repeat; mask: var(--logo) no-repeat;
  -webkit-mask-size: var(--ms); mask-size: var(--ms); -webkit-mask-position: var(--mp); mask-position: var(--mp);
}
.ld-g > i.gh { background: #fff; opacity: 0; }        /* white H, in the empty square, uncovered as the white drains */
.ld-mark.h .ld-g > i.gh { opacity: 1; }
.ld-g .gc { --ms: 287.5% 101.34%;  --mp: 0% 0%; }          /* each glyph's own box (from the 736×227 artwork) fitted to the square */
.ld-g .gh { --ms: 100% 100%; --mp: 0 0; -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 500'%3E%3Crect x='-20' y='-20' width='68' height='540'/%3E%3Crect x='-20' y='228' width='540' height='50'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 500'%3E%3Crect x='-20' y='-20' width='68' height='540'/%3E%3Crect x='-20' y='228' width='540' height='50'/%3E%3C/svg%3E"); }   /* drawn to the reference: stem + bar */
.ld-g .ge { --ms: 100% 100%; --mp: 0 0; -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 500'%3E%3Crect x='-20' y='-20' width='72' height='540'/%3E%3Crect x='-20' y='-20' width='540' height='67'/%3E%3Crect x='-20' y='220' width='315' height='50'/%3E%3Crect x='-20' y='460' width='540' height='60'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 500'%3E%3Crect x='-20' y='-20' width='72' height='540'/%3E%3Crect x='-20' y='-20' width='540' height='67'/%3E%3Crect x='-20' y='220' width='315' height='50'/%3E%3Crect x='-20' y='460' width='540' height='60'/%3E%3C/svg%3E"); }   /* stem, full top and bottom bars, short middle bar */

/* the intro: hidden until the point is in place, then logo (C first), then the menu and the rest */
html.intro .logo i { opacity: 0; transform: translateY(8px); }
html.intro.show-logo .logo i { opacity: 1; transform: none; }
html.intro .nav li, html.intro .hdr-right > * { opacity: 0; transform: translateY(-10px); }
.nav li, .hdr-right > * { transition: opacity .6s ease calc(var(--i, 0) * 70ms), transform .9s cubic-bezier(.19, 1, .22, 1) calc(var(--i, 0) * 70ms); }
html.intro.show-menu .nav li, html.intro.show-menu .hdr-right > * { opacity: 1; transform: none; }
/* the corner marks, SCROLL and the bar scale only fade (they are positioned with transforms of their own) */
html.intro .hero-ui > * { opacity: 0; }
.hero-ui > * { transition: opacity .8s ease .3s; }
html.intro.show-menu .hero-ui > * { opacity: 1; }
.nav ul { display: flex; border: 1px solid currentColor; }
.nav li + li { border-left: 1px solid currentColor; }
.nav a {
  position: relative; display: flex; align-items: center; height: 30px; padding: 0 14px; overflow: hidden; isolation: isolate; white-space: nowrap;
  font: 400 10.5px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; transition: color .45s cubic-bezier(.19, 1, .22, 1);
}
/* as on the buttons: a fill rises from the bottom on hover; the page you are on is filled */
.nav a::before { content: ""; position: absolute; z-index: -1; inset: 0; background: var(--hdr, #fff); transform: scaleY(0); transform-origin: bottom; transition: transform .55s cubic-bezier(.19, 1, .22, 1); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--hdr-on, #000); }
.nav a:hover::before, .nav a[aria-current="page"]::before { transform: scaleY(1); }
/* each letter turns over once on its horizontal axis, a few ms after its neighbour */
.nav a { perspective: 400px; }
.nav .fl { display: inline-block; transform-origin: 50% 55%; backface-visibility: visible;
  transition: transform .55s cubic-bezier(.2, .7, .2, 1) calc(var(--i) * 22ms); }
.nav a:hover .fl { transform: rotateX(360deg); }
@media (prefers-reduced-motion: reduce) { .nav .fl { transition: none; } .nav a:hover .fl { transform: none; } }
.hdr-right { justify-self: end; display: flex; align-items: center; gap: 8px; }
/* buttons: a square-cornered frame with small mono capitals (after ref.digital's "Contact"); on hover a fill rises
   from the bottom and the text turns over to the background colour */
.btn-project, .btn-sq {
  position: relative; display: inline-flex; align-items: center; gap: 10px; overflow: hidden; isolation: isolate;
  padding: 9px 12px 8px; border: 1px solid currentColor; border-radius: 0;
  font-family: var(--mono); font-size: 10.5px; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; line-height: 1;
  transition: color .45s cubic-bezier(.19, 1, .22, 1);
}
.btn-project::before, .btn-sq::before {
  content: ""; position: absolute; z-index: -1; inset: 0; background: var(--hdr, #fff);
  transform: scaleY(0); transform-origin: bottom; transition: transform .55s cubic-bezier(.19, 1, .22, 1);
}
.btn-project:hover, .btn-sq:hover { color: var(--hdr-on, #000); }
.btn-project:hover::before, .btn-sq:hover::before { transform: scaleY(1); }
.btn-project i, .btn-sq i { font-style: normal; font-family: var(--sans); font-size: 12px; transition: transform .35s; }
.btn-project:hover i, .btn-sq:hover i { transform: translate(2px, -2px); }
.btn-sq { --hdr: #fff; --hdr-on: #000; color: #fff; }
/* Close and Start a Project: one height, whatever glyph sits in them */
.btn-sq, .hdr .btn-project { height: 32px; padding-top: 0; padding-bottom: 0; }
/* the header's sound square is exactly as tall as Start a Project beside it, at every width */
.hdr .btn-sq.hdr-snd { width: 32px; height: 32px; }
.btn-sq i { line-height: 1; display: inline-block; }
/* the menu button (phones): two strings that cross into an × */
.menu-btn { display: none; position: relative; width: 32px; height: 32px; margin-right: -6px; color: inherit; }
.menu-btn i { position: absolute; left: 6px; right: 6px; height: 1px; background: currentColor;
  transition: top .3s var(--ease) .25s, transform .45s cubic-bezier(.76, 0, .24, 1) 0s; }
.menu-btn i:nth-child(1) { top: 12px; }
.menu-btn i:nth-child(2) { top: 19px; left: 12px; }
html.menu-open .menu-btn i { top: 15.5px; left: 6px; transition: top .3s var(--ease) 0s, left .3s var(--ease) 0s, transform .45s cubic-bezier(.76, 0, .24, 1) .25s; }
html.menu-open .menu-btn i:nth-child(1) { transform: rotate(45deg); }
html.menu-open .menu-btn i:nth-child(2) { transform: rotate(-45deg); }
/* sound toggle: four little bars that dance while the sound is on */
.snd { display: inline-flex; align-items: center; gap: 8px; padding: 8px 2px; white-space: nowrap; transition: opacity .25s; }
.snd:hover { opacity: .6; }
.snd-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 10px; }
.snd-bars i { display: block; width: 2px; height: 100%; background: currentColor; transform-origin: bottom; transform: scaleY(.25); }
.snd[aria-pressed="true"] .snd-bars i { animation: snd 1s ease-in-out infinite; }
.snd[aria-pressed="true"] .snd-bars i:nth-child(2) { animation-delay: -.3s; animation-duration: .8s; }
.snd[aria-pressed="true"] .snd-bars i:nth-child(3) { animation-delay: -.6s; animation-duration: 1.2s; }
.snd[aria-pressed="true"] .snd-bars i:nth-child(4) { animation-delay: -.15s; animation-duration: .9s; }
@keyframes snd { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .snd-bars i { animation: none !important; transform: scaleY(.6) !important; } }

/* the phone menu: a black circle opens out of the menu button; the rows' lines are drawn, and the names rise out
   of their lines one after another. Closing, the letters are drawn back into the button and the circle closes on it */
.mnav { position: fixed; z-index: 29; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; pointer-events: none;
  background: var(--black); clip-path: circle(0px at var(--bx, 90%) var(--by, 40px)); transition: clip-path .7s cubic-bezier(.76, 0, .24, 1) .45s; }
.mnav.is-open { pointer-events: auto; clip-path: circle(var(--br, 150vmax) at var(--bx, 90%) var(--by, 40px)); transition-delay: 0s; transition-duration: .8s; }
.mn-list { position: relative; z-index: 2; display: flex; flex-direction: column; padding: 0 var(--gutter) 36px; }   /* down by the bottom line */
.mn-list a { position: relative; display: grid; grid-template-columns: 34px 1fr auto; align-items: baseline; padding: 14px 0 12px; color: var(--white); }
.mn-list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(255,255,255,.28);
  transform: scaleX(0); transform-origin: 100% 50%; transition: transform .35s ease; }
.mnav.is-open .mn-list a::after { transform: scaleX(1); transform-origin: 0 50%; transition: transform .7s cubic-bezier(.65, 0, .35, 1) var(--t); }
.mn-n { opacity: 0; transition: opacity .2s; align-self: center; }
.mnav.is-open .mn-n { opacity: .5; transition: opacity .6s ease calc(var(--t) + .3s); }
.mn-w { position: relative; display: block; padding-bottom: .06em; }
/* the names: set like the home's sentences on a phone (heavy, tight, the same size) */
.mn-t { display: block; font-size: min(8.8vw, 40px); font-weight: 700; line-height: 1; letter-spacing: -0.06em; white-space: nowrap; }
.mn-t .ch { display: inline-block; white-space: pre; opacity: 0; transform: translate(var(--dx, 0), var(--dy, 0)) scale(0);
  transition: transform .5s cubic-bezier(.55, 0, .9, .4) var(--cd, 0s), opacity .2s ease calc(var(--cd, 0s) + .3s); }
/* opening, each name rises out of its line (the line's edge hides it until then) */
.mnav.is-open:not(.is-set) .mn-w { overflow: hidden; }
.mnav.is-open .mn-t .ch { opacity: 1; transform: none; transition: none; animation: mnRise .8s cubic-bezier(.16, 1, .3, 1) var(--od, 0s) both; }
.mnav.is-open.is-set .mn-t .ch { animation: none; }
@keyframes mnRise { 0% { opacity: 1; transform: translateY(115%); } 100% { opacity: 1; transform: none; } }

.mnav.is-measuring .mn-t .ch { transition: none !important; transform: none !important; }
.mn-sq { align-self: center; opacity: 0; transform: scale(0); transition: transform .3s, opacity .3s; }
.mn-list a[aria-current="page"] .mn-sq { background: #fff; }
.mnav.is-open .mn-list a[aria-current="page"] .mn-sq { opacity: 1; transform: none; transition: transform .5s var(--ease) calc(var(--t) + .6s), opacity .3s calc(var(--t) + .6s); }
.mn-foot { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 0 var(--gutter) 28px; opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s; }
.mnav.is-open .mn-foot { opacity: 1; transform: none; transition: opacity .7s ease .9s, transform .9s var(--ease) .9s; }
.mnav[hidden] { display: none; }
html.menu-open .hdr { --hdr-on: #000 !important; }
.hdr.is-blend { mix-blend-mode: difference; --hdr: #fff; --hdr-on: #000; }
html.menu-open .hdr { mix-blend-mode: normal; }

/* ---------------- home: fixed copy layers over the canvas ---------------- */
.layer { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
.hero-ui, #ui { mix-blend-mode: difference; color: #fff; }
.intro-copy { font-size: 19px; line-height: 1.12; letter-spacing: -0.025em; }
.fig { position: absolute; left: 50%; top: 56px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.sq { display: inline-block; width: 5px; height: 5px; background: currentColor; }
.reg { position: absolute; font-family: var(--mono); font-size: 16px; line-height: 1; font-weight: 300; transform: translate(-50%, 0); }
.reg[style*="right"] { transform: translate(50%, 0); }
.scroll-label { position: absolute; left: 50%; bottom: 64px; transform: translateX(-50%); }
.scale { position: absolute; right: var(--gutter); bottom: 64px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.scale i { display: block; width: 54px; height: 5px; border: 1px solid currentColor; border-top: 0; }
.footnote { position: absolute; right: var(--gutter); bottom: 22px; text-align: right; max-width: 60vw; }


.che-word {
  position: fixed; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; pointer-events: none;
  font-size: 19px; line-height: 1.12; letter-spacing: -0.025em; font-weight: 500; text-transform: uppercase;
  color: transparent; white-space: nowrap; opacity: 0;
}

/* ---------------- home: sections ---------------- */
main { position: relative; z-index: 4; }
/* the philosophy is pinned for the whole track: the flood condenses into "At", the rest is set around it, then the
   release covers orbit it */
.track { position: relative; height: 420vh; }
.after-track { height: 70vh; }
.about-anchor { position: absolute; left: 0; top: 260vh; height: 1px; }
.about {
  position: sticky; top: 0; height: 100vh; padding: 0 var(--gutter); overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  text-align: center; pointer-events: none;
}
.about.is-live { pointer-events: auto; }
.about-head { position: relative; z-index: 2; will-change: transform; display: flex; flex-direction: column; align-items: center; gap: 6px; opacity: 0; transition: opacity .5s ease; }
.about-head .dim { opacity: .55; }
.about-body { position: relative; z-index: 2; max-width: min(64vw, 1080px); }
.about-body p { text-wrap: balance; font-size: clamp(24px, 2.75vw, 48px); line-height: 1.04; letter-spacing: -0.045em; font-weight: 500; }
.about-body .w { opacity: 0; }
/* the covers: square, uncropped, floating on an ellipse around the text */
.orbit { position: absolute; inset: 0; z-index: 1; pointer-events: none; visibility: hidden; }
.orbit .cv {
  position: absolute; left: 0; top: 0; width: clamp(140px, 16vw, 320px); aspect-ratio: 1;
  will-change: transform, opacity; opacity: 0;
}
.orbit .cv img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }
.orbit .cv-b { filter: blur(14px); transform: scale(1.04); opacity: 0; }    /* shows only where the sharp copy fades */
.orbit .cv-s {                                                                /* its outer edge fades into the blur */
  -webkit-mask: linear-gradient(var(--ang, 90deg), #000 var(--m0, 200%), transparent var(--m1, 210%));
          mask: linear-gradient(var(--ang, 90deg), #000 var(--m0, 200%), transparent var(--m1, 210%));
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
}

/* ---------------- section pages: a canvas scene on the first screen, threads all the way down ---------------- */
.page { position: relative; z-index: 3; }
.p-hero { position: relative; height: 100vh; min-height: 560px; pointer-events: none; mix-blend-mode: difference; }
.p-hero a, .p-hero .p-intro { pointer-events: auto; }
.p-meta { position: absolute; left: var(--gutter); top: 96px; display: flex; flex-direction: column; gap: 6px; }
.p-hint { position: absolute; left: var(--gutter); bottom: 64px; display: flex; align-items: center; gap: 8px; }
.p-hint .sq { animation: hintBlink 1.6s steps(2, jump-none) infinite; }
@keyframes hintBlink { 50% { opacity: .2; } }
.p-intro { position: absolute; right: var(--gutter); top: 96px; max-width: min(430px, 34vw); }
.p-intro p { font-size: 15px; line-height: 1.3; letter-spacing: -0.01em; opacity: .85; }
.p-hero .scroll-label { position: absolute; left: 50%; bottom: 64px; transform: translateX(-50%); }

.svc, .works { padding: 16vh var(--gutter) 0; }
.svc-head { display: flex; justify-content: space-between; padding-bottom: 18px; }
.svc-list { list-style: none; }
.svc-row {
  position: relative; display: grid; grid-template-columns: 80px minmax(0, 6fr) minmax(0, 5fr); column-gap: 20px; align-items: baseline;
  padding: 30px 0 34px;
}
/* each row hangs on a hairline that draws itself across as the row arrives, and burns white under the cursor */
.svc-line { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgba(255,255,255,.25); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease) calc(var(--d, 0ms) + 150ms), background .4s; }
.svc-row.is-in .svc-line { transform: none; }
.svc-row:last-child { border-bottom: 1px solid rgba(255,255,255,.25); }
.svc-dot { position: absolute; left: 0; top: -2px; width: 5px; height: 5px; background: #fff; transition: left .9s var(--ease); }
.svc-row:hover .svc-line { background: #fff; }
.svc-row:hover .svc-dot { left: calc(100% - 5px); }
.svc-n { padding-left: 2px; transition: opacity .4s; opacity: .6; }
.svc-row:hover .svc-n { opacity: 1; }
.svc-t { font-size: clamp(28px, 3.6vw, 60px); line-height: .98; letter-spacing: -0.045em; font-weight: 500; transition: transform .6s var(--ease); }
.svc-row:hover .svc-t { transform: translateX(10px); }
.svc-d { font-size: 15px; line-height: 1.35; letter-spacing: -0.01em; opacity: .62; max-width: 520px; transition: opacity .4s; }
.svc-row:hover .svc-d { opacity: 1; }

.works-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; border-top: 1px solid rgba(255,255,255,.25); padding-top: 20px; }
.work figure { display: flex; flex-direction: column; gap: 10px; }
.work-img { position: relative; aspect-ratio: 1; overflow: hidden; background: #111; }
.work-img img {                  /* black and white at rest, the real cover on hover */
  width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08);
  transform: scale(1.04); transition: filter .6s ease, transform .9s var(--ease);
}
.work:hover .work-img img { filter: none; transform: scale(1); }
.work figcaption { display: grid; grid-template-columns: 28px 1fr; column-gap: 6px; font-size: 13px; }
.work figcaption .mono { grid-row: span 2; padding-top: 2px; }
.work-next a {
  display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 1; padding: 16px;
  border: 1px solid rgba(255,255,255,.3); transition: background .4s, color .4s, border-color .4s;
}
.work-next a:hover { background: #fff; color: #000; border-color: #fff; }
.work-next-t { font-size: clamp(26px, 2.6vw, 44px); line-height: .98; letter-spacing: -0.045em; }

.cta { padding: 22vh var(--gutter) 24vh; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.cta-link {
  position: relative; display: inline-flex; align-items: flex-start; gap: .12em;
  font-size: clamp(56px, 11vw, 190px); line-height: .86; letter-spacing: -0.06em; font-weight: 500;
}
.cta-link i { font-style: normal; font-size: .45em; line-height: 1; transition: transform .5s var(--ease); }
.cta-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.08em; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease);
}
.cta-link:hover::after { transform: scaleX(1); }
.cta-link:hover i { transform: translate(.08em, -.08em); }
.cta-note { max-width: 420px; font-size: 15px; line-height: 1.35; opacity: .7; }

/* ---------------- Start a Project ---------------- */
.pj { position: relative; min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 10vw; padding: 96px var(--gutter) 80px; }
.pj-side { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; min-height: calc(100vh - 176px); }
.pj-meta { position: static; }
.pj-title { font-size: clamp(40px, 5.4vw, 96px); line-height: .92; letter-spacing: -0.055em; font-weight: 500; max-width: 9.5em; }
.pj-w { display: inline-block; opacity: 0; transform: translateY(.35em); filter: blur(6px); transition: opacity .9s ease, transform 1.1s var(--ease), filter .9s ease; }
.pj-page.is-ready .pj-w { opacity: 1; transform: none; filter: none; }
.pj-w:nth-child(2) { transition-delay: .08s; } .pj-w:nth-child(3) { transition-delay: .16s; } .pj-w:nth-child(4) { transition-delay: .24s; }
.pj-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; column-gap: 40px; row-gap: 14px; }
.pj-facts div { display: flex; flex-direction: column; gap: 6px; }
.pj-facts dt { opacity: .55; }
.pj-facts dd { font-size: 15px; letter-spacing: -0.01em; }

.pj-form { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 44px; padding: 40px 0; }
.pj-field { position: relative; border: 0; margin: 0; padding: 0; min-width: 0; opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform 1s var(--ease); }
.pj-page.is-ready .pj-field { opacity: 1; transform: none; }
.pj-page.is-ready .pj-field:nth-child(2) { transition-delay: .1s; } .pj-page.is-ready .pj-field:nth-child(3) { transition-delay: .2s; } .pj-page.is-ready .pj-field:nth-child(4) { transition-delay: .3s; }
.pj-label { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; padding: 0; opacity: .6; transition: opacity .3s; }
.pj-label span { opacity: .6; }
.pj-label em { font-style: normal; opacity: .5; margin-left: auto; }
.pj-field:focus-within .pj-label { opacity: 1; }
.pj-field input, .pj-field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.25); border-radius: 0; color: #fff;
  font: 500 clamp(22px, 2vw, 34px) / 1.15 var(--sans); letter-spacing: -0.035em; padding: 0 0 14px; outline: none; resize: none;
}
.pj-field textarea { min-height: 3.6em; field-sizing: content; max-height: 40vh; }
.pj-field ::placeholder { color: rgba(255,255,255,.22); }
/* focus: the underline burns white from the left */
.pj-bar { position: relative; display: block; margin-top: -1px; height: 1px; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); pointer-events: none; }
.pj-field:focus-within .pj-bar { transform: none; }
.pj-field.is-bad input, .pj-field.is-bad textarea { border-bottom-color: #ff5a3c; }
.pj-err { min-height: 14px; margin-top: 8px; color: #ff7a5c; }
.pj-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pj-chip { position: relative; cursor: pointer; }
.pj-chip input { position: absolute; opacity: 0; pointer-events: none; }
.pj-chip span {
  position: relative; display: inline-flex; align-items: center; height: 32px; padding: 0 12px; overflow: hidden; isolation: isolate;
  border: 1px solid rgba(255,255,255,.35); font: 400 10.5px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; transition: color .45s var(--ease), border-color .3s;
}
.pj-chip span::before { content: ""; position: absolute; z-index: -1; inset: 0; background: #fff; transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); }
.pj-chip:hover span { border-color: #fff; }
.pj-chip input:checked + span { color: #000; border-color: #fff; }
.pj-chip input:checked + span::before { transform: none; }
.pj-chip input:focus-visible + span { outline: 1px solid #fff; outline-offset: 3px; }

.pj-send-row { display: flex; align-items: center; gap: 24px; opacity: 0; transition: opacity .8s ease .45s; }
.pj-page.is-ready .pj-send-row { opacity: 1; }
.pj-send {
  position: relative; display: inline-flex; align-items: center; justify-content: space-between; gap: 40px; height: 56px; padding: 0 20px; min-width: 220px;
  background: #fff; color: #000; border: 1px solid #fff; overflow: hidden; isolation: isolate; cursor: pointer;
  font: 400 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; transition: color .45s var(--ease);
}
.pj-send::before { content: ""; position: absolute; z-index: -1; inset: 0; background: #000; transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease); }
.pj-send:hover { color: #fff; }
.pj-send:hover::before { transform: none; }
.pj-send i { font-style: normal; font-family: var(--sans); font-size: 16px; transition: transform .35s; }
.pj-send:hover i { transform: translate(3px, -3px); }
.pj-send[disabled] { opacity: .5; pointer-events: none; }
.pj-note { font-size: 13px; opacity: .5; max-width: 260px; line-height: 1.35; }
/* after sending: the fields go, a thank-you stays */
.pj-done { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 16px; opacity: 0; pointer-events: none; transition: opacity .8s ease .5s; }
.pj-done-t { font-size: clamp(30px, 3.2vw, 54px); line-height: 1; letter-spacing: -0.045em; font-weight: 500; }
.pj-form.is-sent .pj-field, .pj-form.is-sent .pj-send-row { opacity: 0 !important; pointer-events: none; transition: opacity .5s ease; }
.pj-form.is-sent .pj-done { opacity: 1; pointer-events: auto; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease var(--d, 0ms), transform 1.1s var(--ease) var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------------- about page ---------------- */
.ab-scene { position: relative; }
/* About is a still screen, not a page to scroll: the portrait opens into the left half, the story fills the right */
html.about-still, html.about-still body { overflow: hidden; height: 100%; }
.ab-stage { position: fixed; inset: 0; overflow: hidden; }
.ab-right {
  position: fixed; z-index: 5; top: 0; bottom: 0; left: 50vw; right: 0;
  padding: 92px var(--gutter) 34px clamp(28px, 3.4vw, 64px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 2.2vh; overflow-y: auto;
}
.ab-right p { margin: 0; font-size: clamp(13px, min(1.08vw, 1.9vh), 19px); line-height: 1.24; letter-spacing: -0.02em; font-weight: 500; text-wrap: pretty; }
.ab-copy { display: flex; flex-direction: column; }
.ab-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.hdr-about { grid-template-columns: 1fr auto 1fr; }
.ab-line { opacity: 0; transform: translateY(14px); transition: opacity .8s ease, transform 1s cubic-bezier(.19, 1, .22, 1); }
.ab-line.is-in { opacity: 1; transform: none; }
.ab-cta { opacity: 0; transition: opacity .8s ease, color .45s cubic-bezier(.19, 1, .22, 1); }
.ab-cta.is-in { opacity: 1; }
.ab-half {                       /* the Start a Project type: small mono capitals */
  position: absolute; top: 50%; margin: 0; white-space: nowrap; transform: translateY(-50%);
  font-family: var(--mono); font-size: 10.5px; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; line-height: 1;
  will-change: transform; padding: 0 2px;
  transition: clip-path 1s steps(18, end) .25s;
}
/* printed out of the point: each half is uncovered from the point outward, a character at a time */
.ab-l { clip-path: inset(0 0 0 100%); } .ab-r { clip-path: inset(0 100% 0 0); }
html.ab-print .ab-l, html.ab-print .ab-r { clip-path: inset(0 0 0 0); }
.ab-l { right: 50%; } .ab-r { left: 50%; }
.ab-photo { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.ab-photo .tile { position: absolute; background-image: url(../assets/about/nataliya.jpg); background-repeat: no-repeat; will-change: transform, opacity; }
.ab-photo .mk { position: absolute; left: 0; top: 0; width: 5px; height: 5px; background: #fff; z-index: 300; opacity: 0; pointer-events: none; }
.ab-photo .dot {
  position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; background: #fff; z-index: 400;
  transform: scale(0); transition: transform .6s cubic-bezier(.19, 1, .22, 1), background .5s ease;
}
html.ab-dot .ab-photo .dot { transform: scale(1); }
.ab-photo .dot.is-blue { background: var(--blue); }

@media (max-width: 900px) {
  /* phones: the portrait on top, the story below it on black */
  .ab-right { left: 0; top: 46vh; padding: 18px var(--gutter) 28px; background: #000; justify-content: flex-start; }
  .ab-right p { font-size: 14px; }
  .ab-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------------- footer: one to one with baseline.agency's (sizes in --u, 1/1728 of the width) ---------------- */
.ftr { --u: calc(100vw / 1728); position: relative; z-index: 4; overflow: hidden; background: #101010; color: var(--white); }
.ftr-inner { position: relative; height: calc(var(--u) * 628); font-size: calc(var(--u) * 20); will-change: transform; }
.ftr-col {
  position: absolute; top: calc(var(--u) * 24);
  display: grid; grid-template-columns: calc(var(--u) * 141) auto; align-items: start;
}
.ftr-col:nth-child(1) { left: 26px; }
.ftr-col:nth-child(2) { left: calc(25% + var(--u) * 18); }
.ftr-col:nth-child(3) { left: calc(50% + var(--u) * 10); }
.ftr-col:nth-child(4) { left: 75%; }
.ftr-label { font-family: var(--mono); font-size: 10px; font-weight: 400; letter-spacing: 0.02em; text-transform: uppercase; line-height: 1.6; white-space: nowrap; }
.ftr-list, .ftr-body { font-family: var(--sans); font-weight: 500; letter-spacing: -0.04em; line-height: 1.3; }
.ftr-list { display: flex; flex-direction: column; align-items: flex-start; gap: calc(var(--u) * 4); white-space: nowrap; }
.ftr-list > li { display: flex; }
.ftr-item, .ftr-body { opacity: .5; }
.ftr-link {
  display: inline-flex; align-items: center; opacity: .5;
  transition: opacity .25s, background-color .25s, color .25s, padding .45s cubic-bezier(.19, 1, .22, 1);
}
.ftr-arrow {
  display: block; flex: 0 0 auto; width: 0; height: .5em; margin-right: 0; opacity: 0; overflow: hidden;
  transition: width .45s cubic-bezier(.19, 1, .22, 1), margin .45s cubic-bezier(.19, 1, .22, 1), opacity .25s;
}
.ftr-arrow svg { display: block; width: .5em; height: .5em; }
.ftr-link:hover, .ftr-link:focus-visible { opacity: 1; color: #000; background: #fff; padding: 0 .4em 0 .5em; outline: none; }
.ftr-link:hover .ftr-arrow, .ftr-link:focus-visible .ftr-arrow { opacity: 1; width: .5em; margin-right: .5em; overflow: visible; }
.ftr-phil {
  position: absolute; left: 26px; top: calc(var(--u) * 447); width: calc(var(--u) * 424);
  display: flex; flex-direction: column; gap: calc(var(--u) * 23);
}
/* the CHE logo where baseline sets its wordmark: bottom right, revealed by three bars sliding off */
.ftr-form {                       /* the newsletter: set like the philosophy beside it, same size and type */
  position: absolute; right: 31px; top: calc(var(--u) * 447); width: calc(var(--u) * 480);
  display: flex; flex-direction: column; gap: calc(var(--u) * 23);
}
.ftr-field {
  display: flex; align-items: center; height: calc(var(--u) * 50); padding: calc(var(--u) * 5);
  padding-left: calc(var(--u) * 22); border-radius: 999px; background: #1e1e21; transition: background .3s;
}
.ftr-field:focus-within { background: #26262a; }
.ftr-field input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: #fff;
  font-family: var(--sans); font-weight: 500; font-size: .85em; letter-spacing: -0.03em;
}
.ftr-field input::placeholder { color: rgba(255,255,255,.5); }
/* Send: the same square button, filled white; on hover a black fill rises */
.ftr-field { border-radius: 0; }
.ftr-send {
  position: relative; height: 100%; display: inline-flex; align-items: center; gap: 10px; padding: 0 12px; overflow: hidden; isolation: isolate;
  border: 1px solid #fff; border-radius: 0; background: #fff; color: #000;
  font-family: var(--mono); font-size: 10.5px; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
  transition: color .45s cubic-bezier(.19, 1, .22, 1);
}
.ftr-send::before { content: ""; position: absolute; z-index: -1; inset: 0; background: #000; transform: scaleY(0); transform-origin: bottom; transition: transform .55s cubic-bezier(.19, 1, .22, 1); }
.ftr-send:hover { color: #fff; }
.ftr-send:hover::before { transform: scaleY(1); }
.ftr-send i { font-style: normal; font-family: var(--sans); font-size: 12px; transition: transform .35s; }
.ftr-send:hover i { transform: translate(2px, -2px); }
.ftr-note { font-size: 1em; line-height: 1.3; letter-spacing: -0.04em; font-weight: 500; opacity: .5; }
.ftr-form.is-bad .ftr-field { box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); }
.ftr-form.is-sent .ftr-field { opacity: .5; pointer-events: none; }
.ftr-mark { position: absolute; right: 31px; top: calc(var(--u) * 319); height: calc(var(--u) * 286); aspect-ratio: 736 / 227; mix-blend-mode: difference; }
.ftr-logo { position: absolute; inset: 0; background: #fff; -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }
.ftr-bar {
  position: absolute; left: 0; right: 0; height: 33.4%; top: calc(var(--i) * 33.3%); background: #fff;
  transform-origin: right; transition: transform .9s cubic-bezier(.19, 1, .22, 1) calc(var(--i) * 110ms + 150ms);
}
.ftr-mark.is-in .ftr-bar { transform: scaleX(0); }

/* footer entrance: labels open left to right, each line rises out of its own slot (column after column, line after
   line), the philosophy comes into focus, the newsletter field unrolls */
.ftr-list > li { overflow: hidden; padding-bottom: .08em; }
.ftr-list > li > * { transform: translateY(110%); transition: transform 1s cubic-bezier(.19, 1, .22, 1) calc(var(--c, 0) * 120ms + var(--i, 0) * 70ms + 100ms), opacity .25s, background-color .25s, color .25s, padding .45s cubic-bezier(.19, 1, .22, 1); }
.ftr-label { clip-path: inset(0 100% 0 0); transition: clip-path .9s cubic-bezier(.19, 1, .22, 1) calc(var(--c, 0) * 120ms); }
.ftr-body { opacity: 0; filter: blur(8px); transform: translateY(14px); transition: opacity 1s ease .5s, filter 1.2s ease .5s, transform 1.2s cubic-bezier(.19, 1, .22, 1) .5s; }
.ftr-field { transform: scaleX(0); transform-origin: left center; transition: transform 1.1s cubic-bezier(.19, 1, .22, 1) .6s, background .3s; }
.ftr-note { opacity: 0; transition: opacity 1s ease .9s; }
.ftr.is-in .ftr-list > li > * { transform: none; }
.ftr.is-in .ftr-label { clip-path: inset(0); }
.ftr.is-in .ftr-body { opacity: .5; filter: none; transform: none; }
.ftr.is-in .ftr-field { transform: none; }
.ftr.is-in .ftr-note { opacity: .55; }
@media (prefers-reduced-motion: reduce) {
  .ftr-list > li > *, .ftr-label, .ftr-body, .ftr-field, .ftr-note { transition: none !important; transform: none !important; clip-path: none !important; filter: none !important; opacity: 1; }
}

/* ---------------- cursor: a small square; over anything clickable it opens into "View" ---------------- */
@media (hover: hover) and (pointer: fine) {
  html.has-cursor, html.has-cursor * { cursor: none !important; }
}
.cursor { position: fixed; z-index: 100; left: 0; top: 0; pointer-events: none; opacity: 0; transition: opacity .2s; }
.cursor.is-on { opacity: 1; }
.cursor-sq {
  position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; background: #fff; mix-blend-mode: difference;
  transition: transform .3s cubic-bezier(.19, 1, .22, 1);
}
.cursor-view {
  position: absolute; left: 10px; top: 10px; padding: 7px 10px 6px; background: #fff; color: #000;
  font-family: var(--mono); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; line-height: 1; white-space: nowrap;
  transform: scale(.4); transform-origin: 0 0; opacity: 0; transition: transform .35s cubic-bezier(.19, 1, .22, 1), opacity .2s;
}
.cursor.is-view .cursor-sq { transform: scale(.6); }
.cursor.is-view .cursor-view { transform: none; opacity: 1; }

/* ---------------- small screens ---------------- */
@media (max-width: 1100px) {
  .nav a { padding: 0 9px; }
  .works-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .hdr { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .menu-btn { display: block; }
  .btn-project { padding: 7px 12px; }
  .hdr .btn-project { height: 28px; }
  .logo { height: 28px; }
  .hdr .btn-sq.hdr-snd { width: 28px; height: 28px; }
  .reg, .scale, .footnote { display: none; }
  .intro-copy { font-size: 16px; }
  .scroll-label { bottom: 18px; left: calc(50% + 12px); transform: none; }
  .about { grid-template-columns: 1fr; row-gap: 4vh; padding-top: 80px; }
  .about-body p { text-wrap: pretty; font-size: clamp(22px, 6.2vw, 30px); }
  .svc-row { grid-template-columns: 40px 1fr; row-gap: 14px; }
  .p-meta { top: 128px; }
  .p-intro { position: absolute; left: var(--gutter); right: var(--gutter); top: auto; bottom: 96px; max-width: none; }
  .p-hint { bottom: 40px; }
  .pj { grid-template-columns: 1fr; row-gap: 40px; padding-top: 128px; }
  .pj-side { min-height: 0; }
  .pj-facts { grid-template-columns: 1fr 1fr; }
  .svc-d { grid-column: 2; }
  .works-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .ftr-inner { height: auto; font-size: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px 16px; padding: 28px var(--gutter) 24px; }
  .ftr-col, .ftr-phil, .ftr-mark { position: relative; left: auto !important; top: auto; right: auto; }
  .ftr-col { grid-template-columns: 1fr; gap: 10px; }
  .ftr-list { gap: 4px; }
  .ftr-phil { grid-column: 1 / -1; width: auto; gap: 10px; padding-top: 24px; }
  .ftr-mark { grid-column: 1 / -1; height: auto; width: 100%; }
  .ftr-form { position: relative; right: auto; top: auto; grid-column: 1 / -1; width: 100%; gap: 14px; padding-top: 12px; }
  .ftr-field { height: 42px; padding: 4px 4px 4px 16px; }
}
@media (max-width: 560px) {
  .snd-t { display: none; }
  :root { --gutter: 16px; }
  .btn-project { padding: 6px 10px; font-size: 12px; }
  .hdr .btn-project { height: 26px; }
  .logo { height: 26px; }
  .hdr .btn-sq.hdr-snd { width: 26px; height: 26px; }
}

/* ---------------- Music: the cases, in three chapters (after othersidemusiclabs.com's work list) ---------------- */
.p-jump { pointer-events: auto; white-space: nowrap; transition: opacity .3s; }
.p-jump:hover { opacity: .6; }
.cases { position: relative; display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 4fr); column-gap: 20px; padding: 14vh var(--gutter) 0; }
.cs-nav { position: sticky; top: 96px; align-self: start; display: flex; flex-direction: column; gap: 14px; }
.cs-nav ol { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.cs-nav a {
  position: relative; display: inline-grid; grid-template-columns: 5px auto auto auto; align-items: center; column-gap: 8px; height: 28px; padding: 0 10px;
  border: 1px solid rgba(255,255,255,.25); font: 400 10.5px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase;
  overflow: hidden; isolation: isolate; transition: color .45s var(--ease), border-color .3s;
}
.cs-nav a::before { content: ""; position: absolute; z-index: -1; inset: 0; background: #fff; transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); }
.cs-nav a .sq { opacity: .35; transition: opacity .3s; }
.cs-nav a em { font-style: normal; opacity: .5; }
.cs-nav-n { opacity: .5; }
.cs-nav a:hover { border-color: #fff; }
.cs-nav a.is-on { color: #000; border-color: #fff; }
.cs-nav a.is-on::before { transform: none; }
.cs-nav a.is-on .sq { opacity: 1; }
.cs-nav-total { margin-top: 6px; }

/* (one chapter shown at a time: each starts right under the filters, the first as the others) */
.cs-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 20px; row-gap: 14px; align-items: end; padding-bottom: 28px; }
.cs-head .mono { grid-column: 1 / -1; }
.cs-title { font-size: clamp(48px, 7vw, 124px); line-height: .88; letter-spacing: -0.06em; font-weight: 500; }
.cs-intro { font-size: 15px; line-height: 1.35; letter-spacing: -0.01em; opacity: .7; max-width: 520px; justify-self: end; }
.cs-list { list-style: none; border-top: 1px solid rgba(255,255,255,.25); }
.cs-item { border-bottom: 1px solid rgba(255,255,255,.12); }
.cs-row {
  position: relative; width: 100%; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; column-gap: 16px; align-items: baseline;
  padding: 14px 0 12px; text-align: left; color: inherit; background: none; border: 0; cursor: pointer;
}
.cs-n { opacity: .45; transition: opacity .3s; }
.cs-name { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 14px; row-gap: 4px; min-width: 0; }
.cs-t { font-size: clamp(26px, 3.1vw, 52px); line-height: 1; letter-spacing: -0.045em; font-weight: 500; color: rgba(255,255,255,.42); transition: color .35s ease, transform .6s var(--ease); }
.cs-a { opacity: .5; transition: opacity .3s; }
.cs-tags { display: flex; gap: 6px; align-self: center; }
.cs-tags span { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border: 1px solid rgba(255,255,255,.22); font-size: 9.5px; opacity: .7; }
.cs-tags .cs-soon { border-color: #fff; opacity: 1; }
/* hovering the list: the row under the cursor lights white, the rest stay grey */
.cs-row:hover .cs-t, .cs-row:focus-visible .cs-t, .cs-row.is-open .cs-t { color: #fff; transform: translateX(8px); }
.cs-row:hover .cs-n, .cs-row:hover .cs-a { opacity: 1; }
.cs-row:focus-visible { outline: 1px solid #fff; outline-offset: 2px; }
.cs-row::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.cs-row:hover::after { transform: none; }

.cs-peek {
  position: fixed; z-index: 6; left: 0; top: 0; width: 240px; aspect-ratio: 1; pointer-events: none; overflow: hidden;
  clip-path: inset(50% 50% 50% 50%); transition: clip-path .5s var(--ease); background: #111;
}
.cs-peek.is-on { clip-path: inset(0 0 0 0); }
.cs-peek img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* a cover drawn in lines instead of shown */
.cs-peek .cs-art { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.cs-peek.is-art .cs-art { display: block; }
.cs-peek.is-art img { visibility: hidden; }
@media (hover: none) { .cs-peek { display: none; } }

/* the case panel: the right half of the screen, its video behind, the story at the bottom */
.cp { position: fixed; inset: 0; z-index: 90; }   /* over the header; the cursor and grain stay above */
.cp[hidden] { display: none; }
.cp-shade { position: absolute; inset: 0; background: rgba(0,0,0,.72); opacity: 0; transition: opacity .7s ease; cursor: pointer; }
.cp-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: 50vw; background: #000; overflow: hidden auto; overscroll-behavior: contain;
  transform: translateX(100%); transition: transform .9s cubic-bezier(.76, 0, .24, 1);
  display: flex; flex-direction: column; justify-content: space-between;
}
.cp.is-open .cp-shade { opacity: 1; }
.cp.is-open .cp-panel { transform: none; }
.cp-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; clip-path: inset(0 0 0 100%); transition: clip-path 1.1s cubic-bezier(.76, 0, .24, 1) .25s; }
.cp.is-open .cp-media { clip-path: inset(0 0 0 0); }
/* the words over the picture turn over against it (white on dark, dark on light), so no shade is laid on the picture */
.cp-media::after { content: none; }
.cp-top, .cp-main { mix-blend-mode: difference; }
.cp-video, .cp-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-video[hidden], .cp-img[hidden] { display: none; }
/* a case with a photo and no video: the photo slowly comes closer and draws back again */
.cp-img { animation: cpBreathe 11s ease-in-out infinite alternate; }
@keyframes cpBreathe { from { transform: scale(1); } to { transform: scale(1.2); } }
/* between cases: the last frame of the case before (held on a canvas) glides off to the left while the next case's
   picture glides in from the right; then its words come in from the right, line after line */
.cp-ghost { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }
.cp.is-glide .cp-video, .cp.is-glide .cp-img { translate: 100% 0; transition: none; }
.cp.is-glide.is-gliding .cp-video, .cp.is-glide.is-gliding .cp-img { translate: 0 0; transition: translate .95s cubic-bezier(.65, 0, .25, 1); }
.cp.is-gliding .cp-ghost { translate: -100% 0; filter: brightness(.6); transition: translate .95s cubic-bezier(.65, 0, .25, 1), filter .95s ease; }
.cp.is-words .cp-l { animation: cpWord .9s cubic-bezier(.16, 1, .3, 1) both; transition: none; animation-delay: .3s; }
.cp.is-words .cp-l:nth-child(2) { animation-delay: .38s; } .cp.is-words .cp-l:nth-child(3) { animation-delay: .46s; }
.cp.is-words .cp-l:nth-child(4) { animation-delay: .54s; } .cp.is-words .cp-l:nth-child(5) { animation-delay: .62s; }
.cp.is-words .cp-l:nth-child(6) { animation-delay: .7s; } .cp.is-words .cp-l:nth-child(7) { animation-delay: .78s; }
@keyframes cpWord { from { opacity: 0; transform: translateX(70px); } to { opacity: 1; transform: none; } }
.cp-top { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; }
.cp-top-r { display: flex; align-items: center; gap: 8px; }
/* the sound: a square of its own beside Close, a speaker with its waves while on, with a cross when off */
.btn-sq.cp-snd { width: 32px; padding: 0; justify-content: center; }
.cp-snd .snd-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cp-snd .vol { display: block; }
.cp-snd .vol-off, .cp-snd[aria-pressed="false"] .vol-on { display: none; }
.cp-snd[aria-pressed="false"] .vol-off { display: inline; }
.cp-snd[hidden] { display: none; }
.cp-trailer { align-self: flex-start; height: 44px; padding: 0 16px; gap: 28px; }
.cp-trailer[hidden] { display: none; }
.cp-trailer i { font-size: 9px; }
/* a case without pictures (coming soon): just the words on black */
.cp.is-bare .cp-main { padding-top: 34vh; }
.cp.is-bare .cp-media::after { display: none; }

/* the trailer over the whole screen */
.tr { position: fixed; inset: 0; z-index: 95; background: #000; display: grid; place-items: center; opacity: 0; transition: opacity .5s ease; }
.tr[hidden] { display: none; }
.tr.is-open { opacity: 1; }
.tr-v { width: 100%; height: 100%; object-fit: contain; background: #000; }
.tr-close { position: absolute; top: 22px; right: 24px; z-index: 2; }
.cp-case { display: flex; align-items: center; gap: 8px; }
.cp-main { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 18px; padding: 40vh 24px 26px; }
.cp-artist { opacity: .75; }
.cp-title { font-size: clamp(44px, 5.4vw, 104px); line-height: .88; letter-spacing: -0.06em; font-weight: 500; text-transform: uppercase; overflow-wrap: anywhere; }
.cp-desc { font-size: 15px; line-height: 1.35; letter-spacing: -0.01em; max-width: 560px; opacity: .85; }
.cp-desc:empty, .cp-note:empty { display: none; }
.cp-credits { font-size: 15px; line-height: 1.35; letter-spacing: -0.01em; max-width: 560px; opacity: .85; }
.cp-credits:empty { display: none; }
.cp-tracks { list-style: none; display: flex; flex-direction: column; border-top: 1px solid rgba(255,255,255,.2); }
.cp-tracks:empty { display: none; }
.cp-tracks button { width: 100%; display: grid; grid-template-columns: 34px 1fr auto; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.12); background: none; color: rgba(255,255,255,.6); text-align: left; font-size: 14px; letter-spacing: -0.01em; cursor: pointer; transition: color .3s; }
.cp-tracks button:hover, .cp-tracks button.is-on { color: #fff; }
.cp-tracks .mono { opacity: .6; }
.cp-tracks button.is-on .sq { opacity: 1; }
.cp-tracks .sq { opacity: 0; }
.cp-nav { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.2); }
.cp-nav button { background: none; border: 0; color: #fff; cursor: pointer; padding: 6px 0; transition: opacity .3s; }
.cp-nav button:hover { opacity: .6; }
.cp-nav-r { display: flex; align-items: center; gap: 22px; }   /* Listen now, and Next case a little apart from it */
.cp-listen[hidden] { display: none; }
/* the story arrives line by line once the panel is in */
.cp-l { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .9s var(--ease); }
.cp.is-open .cp-l { opacity: 1; transform: none; }
.cp.is-open .cp-l:nth-child(1) { transition-delay: .55s; } .cp.is-open .cp-l:nth-child(2) { transition-delay: .62s; }
.cp.is-open .cp-l:nth-child(3) { transition-delay: .69s; } .cp.is-open .cp-l:nth-child(4) { transition-delay: .76s; }
.cp.is-open .cp-l:nth-child(5) { transition-delay: .83s; } .cp.is-open .cp-l:nth-child(6) { transition-delay: .9s; }
.cp.is-open .cp-l:nth-child(7) { transition-delay: .97s; } .cp.is-open .cp-l:nth-child(8) { transition-delay: 1.04s; }
.cp.is-swap .cp-l { opacity: 0; transform: translateY(10px); transition-duration: .25s; transition-delay: 0s !important; }
html.cp-open { overflow: hidden; }

@media (max-width: 900px) {
  .cases { grid-template-columns: 1fr; row-gap: 28px; }
  .cs-nav { position: sticky; top: 64px; z-index: 4; flex-direction: row; flex-wrap: wrap; align-items: center; background: rgba(0,0,0,.85); padding: 10px 0; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); }
  .cs-nav > .mono { display: none; }
  .cs-nav ol { flex-direction: row; flex-wrap: wrap; }
  .cs-head { grid-template-columns: 1fr; }
  .cs-intro { justify-self: start; }
  .cs-row { grid-template-columns: 44px minmax(0, 1fr); }
  .cs-tags { display: none; }
  .cp-panel { width: 100vw; border-left: 0; }
  .cp-main { padding-top: 46vh; }
}

/* ---------------- home concept: the web, folded into threads, written on ---------------- */
.cc-track { position: relative; }
.cc-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.cc-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cc-ui { position: absolute; inset: 0; pointer-events: none; }
/* the home on white (the sentences written after the grid): the header and the marks turn over, the black fade goes */
.cc-ui { mix-blend-mode: difference; }
html.cc-white .hdr { mix-blend-mode: difference; --hdr: #fff; --hdr-on: #000; }
html.cc-white .hdr::before { opacity: 0 !important; }
.cc-scroll { position: absolute; left: 50%; bottom: 64px; transform: translateX(-50%); }
.cc-hud { position: absolute; right: var(--gutter); bottom: 64px; display: flex; align-items: center; gap: 10px; }
.cc-bar { position: relative; display: block; width: 90px; height: 1px; background: rgba(255,255,255,.25); }
.cc-bar b { position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.cc-final {
  position: absolute; left: 50%; top: 50%; width: var(--fw, 80vw); max-width: calc(100vw - 32px); transform: translate(-50%, -50%);
  padding: clamp(24px, 4vw, 56px); display: flex; flex-direction: column; justify-content: space-between; align-items: center; text-align: center; aspect-ratio: 1; max-height: 78vh;
  pointer-events: none;
}
.cc-final-t span { display: block; white-space: nowrap; }
.cc-final-t { font-size: clamp(20px, min(3.1vw, 4.6vh), 50px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 500; }
.cc-final > * { opacity: 0; transform: translateY(18px); filter: blur(6px); transition: opacity .9s ease, transform 1.1s var(--ease), filter .9s ease; }
.cc-final.is-in { pointer-events: auto; }
.cc-final.is-in > * { opacity: 1; transform: none; filter: none; }
.cc-final.is-in > :nth-child(2) { transition-delay: .12s; }
.cc-final.is-in > :nth-child(3) { transition-delay: .28s; }
.cc-final-b { align-self: center; }
@media (max-width: 760px) { .cc-hud { left: var(--gutter); right: auto; bottom: 40px; } 
  /* the last frame keeps its square on a phone: label at the top, the two lines in the middle, the button at the bottom */
  .cc-final { aspect-ratio: 1; padding: 22px 18px; }
  .cc-final-l { max-width: 92%; line-height: 1.6; }
  /* the last words set like the sentences before them: the same weight and tightness, sized so each sentence is one line */
  .cc-final-t { font-size: min(8.2vw, 40px); font-weight: 700; letter-spacing: -0.06em; line-height: 1.08; }
  .cc-final-t span { white-space: nowrap; } }   /* each sentence on a line of its own */

/* ---------------- one type for names, one for descriptions (overrides the older sizes above) ---------------- */
.cs-title, .cs-t, .cp-title, .svc-t, .pj-title, .cta-link {
  font-size: var(--title); font-weight: 700; letter-spacing: -0.06em; line-height: 1.04; text-transform: none;
}
.cs-intro, .cp-desc, .cp-credits, .svc-d, .p-intro p, .cta-note, .ab-right p {
  font-size: var(--body); line-height: 1.24; letter-spacing: -0.02em; font-weight: 500;
}

/* the open case on a computer: the artist and the song larger — the song's name the biggest words on the page */
@media (min-width: 901px) {
  .cp-title { font-size: min(7.4vw, 13vh, 140px); line-height: .98; }
  .cp .cp-artist { font-family: var(--sans); font-size: clamp(20px, 1.7vw, 30px); font-weight: 600; letter-spacing: -0.03em; text-transform: none; opacity: .9; }
}
/* the artist close over the song's name, and every line of the case on one left edge: big letters stand a little in
   from where they begin (their side bearing), so they are drawn back by it */
.cp .cp-artist { margin-bottom: -12px; }
/* (the left edge is evened out letter by letter in js/main.js: alignInk) */

/* the last words: room below the line for the tails of g, y, p, so Safari doesn't clip them while the words come in */
.cc-final-t span { padding-bottom: .14em; margin-bottom: -.14em; }

/* ---------------- the way on at the foot of a page: label, a line drawn right across, the button at its end ---- */
.cta.cta-in { padding: 20vh var(--gutter) 22vh; display: block; }
.cta-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 22px; }
.cta-line { position: relative; height: 1px; }
.cta-line::before { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: 0 50%; }
.cta-run { position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; opacity: 0; }
.cta-btn { clip-path: inset(0 100% 0 0); }
.cta-x { opacity: 0; transform: translateX(-16px); }
.cta-in .cta-note { margin-top: 26px; max-width: 460px; }
.cta-in.is-in .cta-lab { opacity: 1; transform: none; transition: opacity .6s ease, transform .9s var(--ease); }
.cta-in.is-in .cta-line::before { transform: scaleX(1); transition: transform 1.2s cubic-bezier(.65, 0, .35, 1) .2s; }
.cta-in.is-in .cta-run { animation: ctaRun 1.2s cubic-bezier(.65, 0, .35, 1) .2s both; }
@keyframes ctaRun { 0% { left: 0; opacity: 1; } 92% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.cta-in.is-in .cta-btn { clip-path: inset(0 0 0 0); transition: clip-path .6s cubic-bezier(.65, 0, .35, 1) 1.3s, color .45s cubic-bezier(.19, 1, .22, 1); }
.cta-in.is-in .cta-note { opacity: .8; transform: none; transition: opacity .9s ease 1.6s, transform 1s var(--ease) 1.6s; }
@media (max-width: 760px) {
  .cta-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 18px; }
  .cta-lab { grid-column: 1 / -1; }
}

/* ---------------- the SCROLL drops (every page): a square, and drops swelling under it, breaking off, falling ---- */
.scroll-label, .cc-scroll { overflow: visible; }
.drip { position: absolute; left: 50%; top: calc(100% + 6px); width: 30px; height: 90px; margin-left: -15px; pointer-events: none; filter: url(#goo); }
.drip i, .drip b { position: absolute; left: 50%; top: 0; width: 8px; height: 8px; margin-left: -4px; background: #fff; }
.drip b { animation: drip 2.6s infinite; }
.drip b:nth-of-type(2) { animation-delay: -.867s; } .drip b:nth-of-type(3) { animation-delay: -1.733s; }
@keyframes drip {
  0% { transform: translateY(1px) scale(.3); opacity: 1; }
  50% { transform: translateY(7px) scale(1); animation-timing-function: cubic-bezier(.55, 0, 1, .45); }
  96% { opacity: 1; }
  100% { transform: translateY(76px) scale(.28); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .drip b { animation: none; opacity: 0; } }

/* phones: no SCROLL (and no drops) — it would sit on the words, and on a phone scrolling goes without saying */
@media (max-width: 900px) { .p-hero .scroll-label, .cc-scroll, .scroll-label { display: none !important; } }

/* ---------------- Start a Project: the form alone in the middle, its threads coming from the left of the screen ---- */
.pj { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; padding: 120px var(--gutter) 80px; column-gap: 0; }
.pj .pj-meta { position: absolute; left: var(--gutter); top: 96px; }
.pj-form { width: min(560px, 100%); gap: 40px; }
.pj-interest { width: 100%; }
.pj-interest .pj-label { width: 100%; justify-content: center; }
.pj-interest .pj-label em { margin-left: 0; }
.pj-chips { justify-content: center; }
.pj-send-row { justify-content: flex-start; }
@media (max-width: 900px) {
  /* a phone: the form spread over the whole first screen (the browser's bars counted in), Send at its foot */
  .pj { padding-top: 136px; padding-bottom: 40px; justify-content: flex-start; min-height: 100svh; }
  .pj .pj-meta { top: 84px; }
  .pj-form { flex: 1; justify-content: space-between; gap: 18px; padding: 18px 0 0; }
  .pj-field textarea { min-height: 2.4em; }
  .pj-err { min-height: 0; }
}

/* ---------------- the footer (after kodeimmersive.com): black, the web behind, columns, newsletter, the name ---- */
.ft { position: relative; background: #050505; }
.ft-waves { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.ft-inner { position: relative; z-index: 1; min-height: 100vh; padding: 12vh var(--gutter) 22px; display: flex; flex-direction: column; will-change: transform; }
.ft-label { opacity: .45; margin-bottom: 18px; }
.ft-grid { display: flex; justify-content: space-between; gap: 32px; }
.ft-block { display: flex; flex-direction: column; min-width: 0; }
.ft-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.ft-a { position: relative; display: inline-flex; align-items: center; gap: 0; color: #fff; text-decoration: none;
  font-size: var(--body); font-weight: 500; letter-spacing: -0.02em; opacity: .82; transition: opacity .3s, gap .45s var(--ease); }
.ft-a i { display: block; width: 0; height: 6px; background: #fff; transition: width .45s var(--ease); }
.ft-a:hover, .ft-a[aria-current="page"] { opacity: 1; gap: 10px; }
.ft-a:hover i, .ft-a[aria-current="page"] i { width: 6px; }
.ft-text { font-size: var(--body); font-weight: 500; letter-spacing: -0.02em; line-height: 1.35; }
/* the newsletter: low on the right, one line in brackets */
.ft-sign { align-self: flex-end; margin-top: auto; margin-bottom: 6vh; width: min(460px, 100%); display: flex; flex-direction: column; gap: 14px; position: static; }
.ft-sign-t { opacity: .8; }
.ft-field { display: flex; align-items: center; gap: 8px; height: 32px; }
.ft-br { opacity: .7; font-size: 12px; }
.ft-field input { flex: 1; min-width: 0; height: 32px; padding: 0 4px; border: 0; background: transparent; color: #fff; font: 400 10.5px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; outline: none; }
.ft-field input::placeholder { color: rgba(255,255,255,.55); }
.ft-sub { margin-left: 10px; }
.ftr-form.is-bad .ft-br { color: #ff5a3c; opacity: 1; }
.ft-note { min-height: 12px; }
/* the name, across the whole width (its size is fitted to the width in js/main.js) */
.ft-word { font-weight: 700; letter-spacing: -0.06em; line-height: .8; white-space: nowrap; font-size: 11vw; margin: 0 0 2vh -0.04em; color: #fff; }
.ft-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); }
.ft-up { color: inherit; text-decoration: none; transition: opacity .3s; }
.ft-up:hover { opacity: .6; }
/* coming in */
.ft .ft-block, .ft .ft-sign { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform 1.1s var(--ease); }
.ft.is-in .ft-block, .ft.is-in .ft-sign { opacity: 1; transform: none; }
.ft.is-in .ft-block:nth-child(2) { transition-delay: .07s; } .ft.is-in .ft-block:nth-child(3) { transition-delay: .14s; }
.ft.is-in .ft-block:nth-child(4) { transition-delay: .21s; } .ft.is-in .ft-sign { transition-delay: .3s; }
.ft-word { clip-path: inset(0 0 100% 0); transform: translateY(20%); transition: clip-path 1.4s cubic-bezier(.65, 0, .35, 1) .2s, transform 1.4s cubic-bezier(.65, 0, .35, 1) .2s; }
.ft.is-in .ft-word { clip-path: inset(-10% 0 -10% 0); transform: none; }
@media (max-width: 900px) {
  .ft-inner { min-height: 0; padding-top: 10vh; }
  .ft-grid { display: grid; grid-template-columns: 1fr 1fr; row-gap: 38px; }
  .ft-sign { align-self: stretch; margin-top: 8vh; width: 100%; }
  .ft-word { margin-top: 6vh; }
}

/* Music, phone: the three chapter filters as equal full-width bars */
@media (max-width: 900px) {
  .cs-nav { padding-right: var(--gutter); }
  .cs-nav ol { flex-direction: column; flex-wrap: nowrap; width: 100%; gap: 6px; }
  .cs-nav a { display: grid; grid-template-columns: 5px auto 1fr auto; width: 100%; height: 32px; }
  .cs-nav-total { display: none; }
}

/* a phone: the first screen's scene drawn on the page, scrolling with it (see main.js drawScene) */
html.scene-on-page #ui { position: absolute; }

/* Music: air after the last case, before the footer (the list used to run straight into it) */
.cases { padding-bottom: clamp(140px, 26vh, 300px); }
@media (max-width: 900px) { .cases { padding-bottom: 120px; } }

/* the footer without the big name: shorter, the © line and Back to the top raised off the very bottom */
.ft-inner { min-height: 78vh; padding-bottom: 6vh; }
.ft-sign { margin-bottom: 7vh; }
@media (max-width: 900px) { .ft-inner { min-height: 0; padding-bottom: 40px; } .ft-sign { margin-bottom: 48px; } }
/* a narrow phone: the right column a little wider, so the email fits whole */
@media (max-width: 900px) { .ft-grid { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); column-gap: 16px; } }

/* the case before, gliding off (the element itself: see makeGhost in main.js); no grey flash under a tap on a phone */
.cp-ghost { object-fit: cover; display: block; background: #000; }
a, button, label, .cs-row { -webkit-tap-highlight-color: transparent; }

/* "Coming Soon": the frame and type of Watch Trailer, but nothing to press */
.cp-soon { pointer-events: none; cursor: default; }
.cp-soon[hidden] { display: none; }

/* Close and the sound stay on top when the case's words and track list scroll up under them */
.cp-top { z-index: 5; }
.cp-nav-r [data-step][hidden] { display: none; }

/* a case with no picture (Blue Escape): a soft blue gradient, drifting slowly (main.js: linesShow) */
.cp-glow {
  position: absolute; inset: -20%; pointer-events: none; opacity: 0; transition: opacity 1.4s ease;
  background:
    radial-gradient(60% 45% at 30% 35%, rgba(70, 130, 255, .38), transparent 70%),
    radial-gradient(55% 50% at 75% 70%, rgba(40, 90, 220, .32), transparent 70%),
    radial-gradient(40% 35% at 60% 20%, rgba(120, 170, 255, .22), transparent 70%);
  filter: blur(30px); animation: cpGlow 18s ease-in-out infinite alternate;
}
.cp.is-lines .cp-glow { opacity: 1; }
@keyframes cpGlow {
  0% { transform: translate3d(-4%, -3%, 0) scale(1); }
  50% { transform: translate3d(5%, 4%, 0) scale(1.08); }
  100% { transform: translate3d(-2%, 6%, 0) scale(1.02); }
}

/* the case's top line (Close, the sound) on the line of the site's header: its padding, and buttons as tall as the logo */
.cp-top { padding: 18px var(--gutter); }
@media (max-width: 900px) { .cp-top .btn-sq { height: 28px; } .btn-sq.cp-snd { width: 28px; } }
@media (max-width: 560px) { .cp-top .btn-sq { height: 26px; } .btn-sq.cp-snd { width: 26px; } }
/* over the blue glow the words stay white (turned over against blue they would come out yellow) */
.cp.is-lines .cp-top, .cp.is-lines .cp-main { mix-blend-mode: normal; }
.cp-top { box-sizing: border-box; min-height: 68px; }   /* a row as tall as the header's (18 + 32 + 18), centred alike */
/* About on a phone: the story scrolls under the portrait, by finger */
.ab-right { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
/* About on a phone: the story's panel covers the whole screen and scrolls; above the words it is clear, so the
   portrait shows through, and the portrait's foot fades into black (the way the header's soft fade does) instead of
   ending in a hard line. The portrait goes up with the words (main.js). */
@media (max-width: 900px) {
  .ab-right {
    top: 0; padding-top: calc(46svh + 10px);   /* svh: the screen between the browser's bars, as the portrait is sized */
    background: linear-gradient(to bottom, transparent 0, transparent calc(46svh - 150px), rgba(0,0,0,.65) calc(46svh - 60px), #000 calc(46svh + 4px)) local;
  }
  .ab-stage { will-change: transform; }
}
/* the loading screen, already seen this visit: never shown (main.js removes it) */
html.seen .loader { display: none; }
/* About's header on a phone: the logo, (the empty middle), Close — on one row, Close as tall as the logo */
@media (max-width: 900px) { .hdr.hdr-about { grid-template-columns: 1fr auto 1fr; } .hdr-about .ab-close { height: 28px; } }
@media (max-width: 560px) { .hdr-about .ab-close { height: 26px; } }
/* a phone: the story's panel lies over the middle of the screen, where the point and the phrase play — so it stays
   away until the portrait is opening, then comes in (else the whole opening plays hidden under its black) */
@media (max-width: 900px) {
  .ab-right { transition: opacity .9s ease; }
  html:not(.ab-story) .ab-right { opacity: 0; visibility: hidden; }
}
/* the footer's last line: © on the left, who made the site in the middle, Back to the top on the right */
.ft-bottom { align-items: center; }
.ft-dev { transition: color .3s ease, opacity .3s ease; }
.ft-dev:hover { color: #fff; opacity: 1; }
@media (max-width: 560px) { .ft-bottom { flex-wrap: wrap; row-gap: 10px; } .ft-dev { order: 3; width: 100%; } }
/* desktop: Back to the top in the middle, Dev by Otherside on the right (the phone keeps Dev on its own line below) */
.ft-bottom > span { order: 1; } .ft-up { order: 2; } .ft-dev { order: 3; }
/* footer links: no square, no shift — the words roll over (the line slides up, the same words roll in from below) */
.ft-a { gap: 0 !important; opacity: .82; }
.ft-a > i { display: none; }
.ft-roll { position: relative; display: inline-block; overflow: hidden; vertical-align: top; line-height: 1.2; height: 1.2em; }
.ft-roll > span { display: block; transition: transform .55s cubic-bezier(.76, 0, .24, 1); }
.ft-a:hover .ft-roll > span { transform: translateY(-100%); }
.ft-a:hover { opacity: 1; }
.ft-a[aria-current="page"] { opacity: 1; }
/* the case's words on the same left edge as its top line and the site's logo (the page margin, 16px on a phone) */
.cp-main { padding-left: var(--gutter); padding-right: var(--gutter); }
/* a phone: the footer plain, no strings — a quiet grey ground, as before */
@media (max-width: 759px) { .ft-waves { display: none; } .ft { background: #101010; } }
