/* =========================================================================
   Seigrint — home and projects (index.html, projects.html), built from the
   Figma frames "homepage", "homepage + scroll", "projects page" and
   "projects page extended" (file aLYR2dfE8XcsEy7LqZ994a).

   The frames are 3840 wide, and every size and position here is a Figma
   number times --u, one Figma pixel: the whole page is the frame scaled to
   the window's width, so it matches the design exactly on any 16:9 screen.
   Phones use the "mobile" frame instead (1320 wide).

   The sunlit background, dot cursor and eased scrolling are the site's own
   (styles.css, theme.css, sunlit.js, main.js). Arrivals use the site's
   blur, fade and rise (js/pages.js).
   ========================================================================= */

.pg {
  --u: calc(100vw / 3840);
  --pg-font: "SF Pro Display", "SF Pro", -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  --pg-rounded: "SF Pro Rounded", ui-rounded, "SF Pro Display", -apple-system, "Inter", sans-serif;
  --pg-ink: #000;
  --pg-spring: cubic-bezier(0.3, 1.4, 0.5, 1);
  /* creatoroly.com's curves: the pop (overshoot) for hovers, the settle
     for arrivals. */
  --pg-pop: cubic-bezier(0.34, 1.56, 0.64, 1);
  --pg-in: cubic-bezier(0.22, 0.8, 0.25, 1);
  /* The accent letters, stories, the scroll button and "watch on site"
     turn: chocolate, a warm burnt orange-brown. */
  --pg-accent: #d2691e;
  font-family: var(--pg-font);
  color: var(--pg-ink);
  overflow-x: clip;
}
@supports (transition-timing-function: linear(0, 1)) {
  .pg {
    --pg-spring: linear(0, 0.036 2.5%, 0.127 5%, 0.251 7.5%, 0.388 10%,
      0.527 12.5%, 0.656 15%, 0.771 17.5%, 0.866 20%, 0.943 22.5%, 1 25%,
      1.041 27.5%, 1.066 30%, 1.08 32.5%, 1.084 35%, 1.081 37.5%,
      1.073 40%, 1.063 42.5%, 1.051 45%, 1.04 47.5%, 1.029 50%,
      1.019 52.5%, 1.011 55%, 1.005 57.5%, 1 60%, 0.997 62.5%,
      0.995 65%, 0.993 70%, 0.995 77.5%, 0.997 82.5%, 0.999 90%, 1);
  }
}
.pg img { display: block; max-width: none; }
.pg :where(a) { color: inherit; text-decoration: none; }

/* A Figma frame: a box 3840 units wide, everything inside placed by its
   frame coordinates. */
.pg-stage { position: relative; width: calc(3840 * var(--u)); margin: 0 auto; }
.pg-abs { position: absolute; }

/* The small S at the top centre (Figma 18:34, 83 x 95, 63 down). */
.pg-logo {
  position: absolute;
  top: calc(63 * var(--u)); left: 50%;
  width: calc(83 * var(--u)); height: calc(95 * var(--u));
  translate: -50% 0;
  z-index: 4;
}
.pg-logo img { width: 100%; height: 100%; }

/* The big S (Figma 18:14): black, blended "overlay" as in the design, so
   it reads as a tinted shade of whatever is under it. It lives in the
   hero (clipped there); the footer carries its own copy (below). */
.pg-mark {
  position: absolute;
  top: calc(-41 * var(--u)); left: calc(2041 * var(--u));
  width: calc(2261 * var(--u)); height: calc(2575 * var(--u));
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 3;
}

/* Pills: the black "Request a project" and the white "All projects"
   (Figma 18:10 / 18:27). Hover as on creatoroly.com: a springy lift with a
   band of light sweeping across, and a press on click. Lift and press use
   the translate and scale properties, so they never fight the arrival
   (which animates transform). */
.pg-btn {
  position: absolute;
  display: flex; align-items: center; justify-content: center;
  height: calc(78 * var(--u));
  border-radius: calc(45 * var(--u));
  font-family: var(--pg-font);
  font-size: calc(32 * var(--u));
  font-weight: 600;
  line-height: normal;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: translate 0.45s var(--pg-pop), scale 0.45s var(--pg-pop),
              box-shadow 0.3s ease, background-color 0.15s ease;
}
.pg-btn:hover { translate: 0 -3px; scale: 1.04; }
.pg-btn:active { translate: 0 0; scale: 0.97; transition-duration: 0.12s; }
/* The sweep: a skewed band of light crossing once per hover. */
.pg-btn::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: -60%;
  width: 40%;
  transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  pointer-events: none;
}
.pg-btn:hover::after { animation: pg-sweep 0.75s ease; }
@keyframes pg-sweep { to { left: 130%; } }
.pg-btn--dark { background: #000; color: #fff; letter-spacing: -0.02em; }
.pg-btn--dark:hover { background: #1c1c1c; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28); }
.pg-btn--light {
  background: #fff; color: #363636; letter-spacing: -0.04em;
  box-shadow: 0 0 calc(150 * var(--u)) rgba(0, 0, 0, 0.1);
}
/* On white, the sweep is a faint shade rather than light. */
.pg-btn--light::after { background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.07), transparent); }
.pg-btn--light:hover { box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1), 0 0 calc(150 * var(--u)) rgba(0, 0, 0, 0.12); }
@media (prefers-reduced-motion: reduce) {
  .pg-btn:hover::after { animation: none; }
}

/* ================================= home ================================== */
.pg-hero { position: relative; height: max(100vh, calc(2160 * var(--u))); overflow: hidden; }
.pg-hero__title {
  top: calc(748 * var(--u)); left: 50%;
  translate: -50% 0;
  margin: 0;
  font-size: calc(110 * var(--u));
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: normal;
  white-space: nowrap;
}
.pg-hero__title .cal { font-family: "Averia Serif Libre", Georgia, serif; font-style: normal; font-weight: 400; letter-spacing: -0.02em; }
.pg-hero__lede {
  top: calc(879 * var(--u)); left: 50%;
  translate: -50% 0;
  margin: 0;
  font-size: calc(36 * var(--u));
  font-weight: 400;
  line-height: normal;
  color: rgba(0, 0, 0, 0.75);
  white-space: nowrap;
}
/* 50 apart (Figma had 15): the bubbles lean and swell toward the cursor,
   and need the room so they never touch. Still centred as a pair. */
.pg-hero__go { top: calc(986 * var(--u)); left: calc(1605 * var(--u)); width: calc(322 * var(--u)); }
.pg-hero__all { top: calc(986 * var(--u)); left: calc(1977 * var(--u)); width: calc(258 * var(--u)); }
/* The hero's two buttons are glass too, like the footer's Request a
   project, but made for the light page: the dark one a smoky tint, the
   light one a frosted white, each over the same heavy backdrop blur with
   soft inner glows at top and bottom and a thin light rim (::before).
   They also follow the cursor as bubbles (data-bubble, js/pages.js). */
.pg-glass {
  -webkit-backdrop-filter: blur(24px) saturate(160%);
          backdrop-filter: blur(24px) saturate(160%);
  font-weight: 500;
}
.pg-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  padding: 1px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}
.pg-glass--dark {
  background: rgba(16, 16, 16, 0.62);
  box-shadow: inset 0 6px 8px -6px rgba(255, 255, 255, 0.22),
              inset 0 -6px 8px -6px rgba(255, 255, 255, 0.1),
              0 10px 30px rgba(0, 0, 0, 0.12);
}
.pg-glass--dark::before {
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.14) 14%,
    rgba(255, 255, 255, 0.05) 38%, rgba(255, 255, 255, 0.05) 62%,
    rgba(255, 255, 255, 0.14) 86%, rgba(255, 255, 255, 0.3) 100%);
}
.pg-glass--dark:hover {
  background: rgba(16, 16, 16, 0.7);
  box-shadow: inset 0 6px 8px -6px rgba(255, 255, 255, 0.26),
              inset 0 -6px 8px -6px rgba(255, 255, 255, 0.12),
              0 14px 34px rgba(0, 0, 0, 0.18);
}
.pg-glass--light {
  background: rgba(255, 255, 255, 0.42);
  color: #262626;
  box-shadow: inset 0 6px 8px -6px rgba(255, 255, 255, 0.95),
              inset 0 -6px 8px -6px rgba(255, 255, 255, 0.6),
              0 10px 30px rgba(0, 0, 0, 0.06);
}
.pg-glass--light::before {
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.55) 14%,
    rgba(255, 255, 255, 0.25) 38%, rgba(255, 255, 255, 0.25) 62%,
    rgba(255, 255, 255, 0.5) 86%, rgba(255, 255, 255, 0.85) 100%);
}
.pg-glass--light:hover {
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 6px 8px -6px rgba(255, 255, 255, 1),
              inset 0 -6px 8px -6px rgba(255, 255, 255, 0.7),
              0 14px 34px rgba(0, 0, 0, 0.09);
}
.pg-glass::after { display: none; }   /* no light sweep on glass */
@media (prefers-reduced-transparency: reduce) {
  .pg-glass { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .pg-glass--dark { background: #1c1c1e; }
  .pg-glass--light { background: #fff; }
}

/* The black footer (Figma "homepage + scroll", Frame 3): 744 high, the S,
   the closing line and the button on the left, the copyright centred. */
.pg-foot {
  position: relative;
  height: calc(744 * var(--u));
  background: #000;
  color: #fff;
  overflow: hidden;
}
/* The copy of the big S inside the footer, lined up with the one on the
   page (Figma 19:71), so the curve carries on into the black. In the frame
   it's grey with the big S's overlay darkening it to rgb(9, 9, 9); drawn
   here as a single layer already that dark, since stacking the two left a
   thin grey rim where their edges didn't quite meet. */
.pg-foot__mark {
  position: absolute;
  top: calc(-41 * var(--u) - var(--pg-foot-top, calc(2160 * var(--u))));
  left: calc(2041 * var(--u));
  width: calc(2261 * var(--u)); height: calc(2575 * var(--u));
  filter: brightness(0.068);   /* the asset's #848484 to rgb(9, 9, 9) */
  pointer-events: none;
}
.pg-foot__logo { top: calc(113 * var(--u)); left: calc(221 * var(--u)); width: calc(97 * var(--u)); height: calc(112 * var(--u)); }
.pg-foot__logo img { width: 100%; height: 100%; }
.pg-foot__title {
  top: calc(319 * var(--u)); left: calc(196 * var(--u));
  margin: 0;
  font-size: calc(64 * var(--u));
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: normal;
  white-space: nowrap;
}
/* The footer's "Request a project" is glass, as in the Figma and on
   creatoroly.com: a faint white tint over a heavy backdrop blur, a soft
   glow at its top and bottom edges, and a thin light rim (::before). */
.pg-foot__go {
  top: calc(510 * var(--u)); left: calc(196 * var(--u)); width: calc(322 * var(--u));
  color: #fff; letter-spacing: -0.02em;
  background: rgba(255, 255, 255, 0.09);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
          backdrop-filter: blur(24px) saturate(160%);
  box-shadow: inset 0 6px 8px -6px rgba(255, 255, 255, 0.16),
              inset 0 -6px 8px -6px rgba(255, 255, 255, 0.08);
}
.pg-foot__go::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.12) 14%,
    rgba(255, 255, 255, 0.04) 38%, rgba(255, 255, 255, 0.04) 62%,
    rgba(255, 255, 255, 0.12) 86%, rgba(255, 255, 255, 0.28) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}
.pg-foot__go:hover {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 6px 8px -6px rgba(255, 255, 255, 0.2),
              inset 0 -6px 8px -6px rgba(255, 255, 255, 0.1),
              0 8px 26px rgba(255, 255, 255, 0.08);
}
@media (prefers-reduced-transparency: reduce) {
  .pg-foot__go { -webkit-backdrop-filter: none; backdrop-filter: none; background: #1c1c1e; }
}
/* The bubble (js/pages.js) moves it with the cursor frame by frame, so it
   doesn't also take the other buttons' hover lift, and once arrived its
   transform isn't eased by CSS on top of the script's own easing. */
.pg-btn[data-bubble]:hover { translate: 0 0; scale: none; }
/* No light sweep on the glass button, as on creatoroly. */
.pg-foot__go::after { display: none; }
/* Sized and set as creatoroly's (measured at 1920 wide: 151.8 x 39.6,
   13.6px Medium, -0.02em), still at the Figma position. */
@media (min-width: 768px) {
  .pg-foot .pg-foot__go {
    width: calc(303.6 * var(--u)); height: calc(79.2 * var(--u));
    border-radius: calc(39.6 * var(--u));
    font-size: calc(27.2 * var(--u));
  }
}
.pg-foot .pg-foot__go { font-weight: 500; letter-spacing: -0.02em; }
.rs-js .pg .pg-btn[data-bubble].is-done { transition: box-shadow 0.3s ease, background-color 0.15s ease; }
.pg-foot__copy {
  top: calc(669 * var(--u)); left: 50%;
  translate: -50% 0;
  margin: 0;
  font-size: calc(32 * var(--u));
  font-weight: 500;
  letter-spacing: -0.015em;
  color: rgba(255, 255, 255, 0.25);
  white-space: nowrap;
}

/* =============================== projects =============================== */
.pg-work { position: relative; height: calc(2160 * var(--u)); overflow: hidden; }
/* The hero is exactly one screen: the Figma frame scaled to fit the window
   by whichever of width or height runs out first, centred, so "work that
   moves", the phone, the art and "scroll" are all on the first screen and
   nothing of the projects below shows until you scroll. The art and the
   side fades still reach the screen edges. */
@media (min-width: 768px) {
  .pg-work {
    --u: min(calc(100vw / 3840), calc(100svh / 2160));
    height: 100svh;
  }
  .pg-work > .pg-stage {
    position: absolute;
    left: 50%; top: 50%;
    translate: -50% -50%;
    width: calc(3840 * var(--u)); height: calc(2160 * var(--u)) !important;
    margin: 0;
  }
  /* "scroll" sits near the bottom of the screen whatever its shape (the
     stage is centred, so this undoes its offset), with all of it and its
     arrow on screen. */
  .pg-work .pg-scroll { top: calc(50svh + 905 * var(--u) - var(--pad)); }
  /* The side fades hug the real screen edges, full height, even when the
     fitted frame is narrower than the window. */
  .pg-work .pg-work__side { top: calc(50% - 50svh); height: 100svh; width: calc(669 * 100vw / 3840); }
  .pg-work .pg-work__side--l { left: calc(50% - 50vw); }
  .pg-work .pg-work__side--r { right: calc(50% - 50vw); }
  /* A clear break before the projects: their title starts well below the
     fold, so it and the windows arrive only once you scroll down. */
  .pg-latest { margin-top: calc(220 * var(--u)); }
}
/* Phones: the hero fills the screen too, its art and phone centred, with
   "scroll" near the bottom and the projects only below it. */
@media (max-width: 767px) {
  .pg-work { height: 100svh; }
  .pg-work > .pg-stage { position: absolute; top: 50%; translate: 0 -50%; height: calc(2160 * var(--u)) !important; }
  .pg-work .pg-scroll { top: calc(50svh + 1080 * var(--u) - 90px - var(--pad)); }
  .pg-latest { margin-top: 48px; }
}
.pg-work__strip { top: calc(-428 * var(--u)); width: calc(5989 * var(--u)); height: calc(3891 * var(--u)); }
/* The two strips mirror each other: each runs 588 past its screen edge
   (so the art reaches the edge on any window shape), and the small gap
   between them in the middle sits behind the phone. */
.pg-work__strip--a { left: calc(328 * var(--u)); }
.pg-work__strip--b { left: calc(-2477 * var(--u)); transform: scaleX(-1); }
.pg-work__strip img { width: 100%; height: 100%; object-fit: cover; }
.pg-work__flowers-l {
  left: calc(868.55 * var(--u)); top: calc(493.4 * var(--u));
  width: calc(1192 * var(--u)); height: calc(1199 * var(--u));
  transform: rotate(-16.76deg);
}
.pg-work__flowers-r {
  left: calc(2039.15 * var(--u)); top: calc(485.51 * var(--u));
  width: calc(701.85 * var(--u)); height: calc(1343.92 * var(--u));
  transform: rotate(-157.18deg) scaleY(-1);
}
.pg-work__flowers-l img, .pg-work__flowers-r img { width: 100%; height: 100%; object-fit: cover; }
/* The ASCII art as real characters (js/ascii.js): a canvas laid over the
   area the PNG's art covered. The PNG is the fallback without JavaScript. */
.pg-ascii { position: absolute; display: block; pointer-events: none; }
.has-ascii > img { visibility: hidden; }
/* Depth for the phone's tilt toward the cursor (js/pages.js), seen from
   straight in front of it. */
.pg-work > .pg-stage { perspective: 1800px; perspective-origin: 50% 56%; }
.pg-work__phone {
  left: calc(1616 * var(--u)); top: calc(581 * var(--u));
  width: calc(609 * var(--u)); height: calc(1258 * var(--u));
  border-radius: calc(100 * var(--u));
  transform-style: preserve-3d;
}
.pg-work__phone img { position: relative; display: block; width: 100%; height: 100%; object-fit: cover; transform: translateZ(0.5px); }
/* The phone's depth: fourteen slabs, 3.6 apart (about 50 deep, a real
   phone's proportions), just inside its outline, fading in with the tilt
   so nothing shows round it when it sits flat. Each slab's tone (--tone, set by js/pages.js) shades the band
   by depth; across it, the sides fall darker than the middle. The back
   one carries the soft shadow, which shifts against the tilt. */
.pg-phone-slab {
  position: absolute;
  inset: calc(5 * var(--u));
  border-radius: calc(125 * var(--u));     /* inside the frame's squircle corners */
  opacity: var(--lit, 0);                  /* only there while it turns: nothing behind it at rest */
  background: linear-gradient(90deg, color-mix(in srgb, var(--tone, #333) 70%, #000) 0%, var(--tone, #333) 12%, var(--tone, #333) 88%, color-mix(in srgb, var(--tone, #333) 70%, #000) 100%);
  transform: translateZ(calc(var(--i) * -3.6 * var(--u)));
  pointer-events: none;
}
/* The back one only casts the shadow (no fill), so it's always on. */
.pg-phone-slab.pg-phone-slab--back { background: none; opacity: 1; }
.pg-phone-slab--back {
  box-shadow: calc(var(--sx, 0) * 40 * var(--u)) calc(30 * var(--u) + var(--sy, 0) * 40 * var(--u)) calc(150 * var(--u)) rgba(0, 0, 0, 0.17);
}
/* The light on the glass: a soft glow where the tilt points, plus a faint
   sheen across it, both growing as it turns and gone when it's flat. */
.pg-phone-light {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  transform: translateZ(1px);
  opacity: var(--lit, 0);
  background:
    radial-gradient(60% 45% at var(--lx, 50%) var(--ly, 42%), rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 70%),
    linear-gradient(calc(115deg + var(--sx, 0) * 20deg), rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, 0.14) 48%, rgba(255, 255, 255, 0) 62%);
}
.pg-work__title {
  top: calc(297 * var(--u)); left: 50%;
  translate: -50% 0;
  margin: 0;
  font-size: calc(110 * var(--u));
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: normal;
  white-space: nowrap;
  z-index: 2;
}
/* The soft fades down each side (Figma Group 12). The blur is progressive:
   five layers, each twice as strong as the last and each fading out
   sooner, so it is heaviest at the screen edge and thins smoothly to
   nothing toward the middle, with no line where it stops. The colour wash
   sits on top of them. */
.pg-work__side {
  top: 0; width: calc(669 * var(--u)); height: 100%;
  z-index: 2;
  pointer-events: none;
}
.pg-work__side span {
  position: absolute; inset: 0;
  -webkit-backdrop-filter: blur(var(--b)); backdrop-filter: blur(var(--b));
  -webkit-mask-image: linear-gradient(var(--dir), #000 var(--from), transparent var(--to));
          mask-image: linear-gradient(var(--dir), #000 var(--from), transparent var(--to));
}
.pg-work__side--l span { --dir: to right; }
.pg-work__side--r span { --dir: to left; }
.pg-work__side span:nth-child(1) { --b: 1px;  --from: 0%; --to: 100%; }
.pg-work__side span:nth-child(2) { --b: 2px;  --from: 0%; --to: 78%; }
.pg-work__side span:nth-child(3) { --b: 4px;  --from: 0%; --to: 56%; }
.pg-work__side span:nth-child(4) { --b: 8px;  --from: 0%; --to: 36%; }
.pg-work__side span:nth-child(5) { --b: 16px; --from: 0%; --to: 18%; }
.pg-work__side::after { content: ""; position: absolute; inset: 0; }
.pg-work__side--l { left: 0; }
.pg-work__side--r { right: 0; }
.pg-work__side--l::after { background: linear-gradient(-90deg, rgba(255, 255, 255, 0) 0%, rgb(225, 224, 220) 122.65%); }
.pg-work__side--r::after { background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgb(222, 221, 213) 122.65%); }
/* "scroll" and its arrow (Figma Group 13), now a button. The link is
   padded out (and moved up by the same) so the cursor is "on" it a little
   before reaching the word; js/pages.js leans the inside toward the cursor
   (data-magnet), like the footer's Request a project. On hover it pops up
   a touch and takes the accent. At rest the arrow is still; on hover it
   sinks away (blurring, fading), comes back from behind the word
   (unblurring) and settles a touch closer and bigger. One progress value
   drives it, so leaving mid-way simply reverses it (js/pages.js). */
.pg-scroll {
  --pad: calc(44 * var(--u));
  top: calc(2042.15 * var(--u) - var(--pad)); left: 50%;
  translate: -50% 0;
  padding: var(--pad) calc(70 * var(--u)) calc(20 * var(--u));
  font-family: var(--pg-rounded);
  font-size: calc(33.6 * var(--u));
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: normal;
  color: rgba(0, 0, 0, 0.5);
  text-decoration: none;
  z-index: 3;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.pg-scroll__in {
  display: flex; flex-direction: column; align-items: center;
  transition: scale 0.5s var(--pg-pop), color 0.3s ease;
  will-change: transform;
}
.pg-scroll__txt { position: relative; z-index: 1; display: block; }
.pg-scroll__track {
  position: relative;
  display: block;
  width: calc(40 * var(--u)); height: calc(110 * var(--u));
  margin-top: calc(-8 * var(--u));
  margin-bottom: calc(-34 * var(--u));   /* the longer fall overlaps, not pushes */
  /* The arrow only shows in the middle band: it slips out of sight under
     the word at the top and fades away below. */
  -webkit-mask: linear-gradient(to bottom, transparent 0, #000 calc(18 * var(--u)), #000 calc(46 * var(--u)), transparent 100%);
          mask: linear-gradient(to bottom, transparent 0, #000 calc(18 * var(--u)), #000 calc(46 * var(--u)), transparent 100%);
}
.pg-scroll__arrow {
  position: absolute;
  left: 50%; top: calc(16 * var(--u));
  width: calc(21 * var(--u)); height: calc(26 * var(--u));
  margin-left: calc(-10.5 * var(--u));
  overflow: visible;
  transform-origin: 50% 50%;
  will-change: transform, opacity, filter;
}
.pg-scroll:hover .pg-scroll__in,
.pg-scroll:focus-visible .pg-scroll__in { scale: 1.1; color: var(--pg-accent); }
.pg-scroll:active .pg-scroll__in { scale: 1.03; transition-duration: 0.15s; }
.pg-scroll:focus { outline: none; }

/* Latest projects (Figma "projects page extended", from 2141 down). The
   section starts where the hero ends, so its coordinates are the frame's
   minus 2160. */
/* Sideways overflow (the windows' shadows) is clipped, so phones never
   zoom the page out to fit it. */
.pg-latest { position: relative; height: calc((7502 - 2160) * var(--u)); overflow-x: clip; }
.pg-latest__title {
  top: calc((2141 - 2160) * var(--u)); left: calc(194 * var(--u));
  margin: 0;
  font-size: calc(100 * var(--u));
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: normal;
  white-space: nowrap;
}
/* The browser window, built as creatoroly's (his 939 x 615 at a 1920
   screen, so twice that here): a #f6f6f6 card rounded 29, his soft
   shadow (8 across, 22 down, 21 blur, 6%), the red, amber and green dots
   21 in and 18 down (16 wide, 6 apart), and the film 21 in and 50 down,
   896 x 543, rounded 17. Windows sit at his page margin (97) and his
   spacing (220 between projects), the story 56 beside them. */
.pg-win {
  width: calc(1878 * var(--u)); height: calc(1230 * var(--u));
  border-radius: calc(58 * var(--u));
  background: #f6f6f6;
  box-shadow: calc(16 * var(--u)) calc(44 * var(--u)) calc(42 * var(--u)) rgba(0, 0, 0, 0.06);
}
.pg-win__dots {
  position: absolute;
  left: calc(42 * var(--u)); top: calc(36 * var(--u));
  display: flex; gap: calc(12 * var(--u));
}
.pg-win__dots i { display: block; width: calc(32 * var(--u)); height: calc(32 * var(--u)); border-radius: 50%; }
.pg-win__dots i:nth-child(1) { background: #ff4e4e; }
.pg-win__dots i:nth-child(2) { background: #ffb84e; }
.pg-win__dots i:nth-child(3) { background: #1dc51d; }
.pg-win__screen {
  position: absolute;
  left: calc(42 * var(--u)); top: calc(100 * var(--u));
  width: calc(1792 * var(--u)); height: calc(1086 * var(--u));
  padding: 0;
  border: 0;               /* a button: no default border round the film */
  border-radius: calc(34 * var(--u));
  overflow: hidden;
  background: #fff;
}
.pg-win__screen:focus { outline: none; }
.pg-win__screen:focus-visible { outline: 2px solid rgba(0, 0, 0, 0.55); outline-offset: 4px; }
.pg-win__screen video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pg-win--kamelo { left: calc(194 * var(--u)); top: calc((2437 - 2160) * var(--u)); }
.pg-win--qwezy { left: calc(1768 * var(--u)); top: calc((4107 - 2160) * var(--u)); }
/* Brainelle repeats Kamelo's layout one step (1670) further down. */
.pg-win--brainelle { left: calc(194 * var(--u)); top: calc((5777 - 2160) * var(--u)); }

/* Project names as creatoroly's: 27 at a 1920 screen, Medium, -0.02em, #1c1c1c. */
.pg-pj__name {
  margin: 0;
  font-size: calc(54 * var(--u));
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #1c1c1c;
  line-height: normal;
  white-space: nowrap;
}
.pg-pj__body {
  margin: 0;
  font-size: calc(40 * var(--u));
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: normal;
  white-space: nowrap;
}
/* Hovering a story paints the letters under the cursor in the accent,
   which then fade back, as creatoroly's (js/pages.js wraps the letters). */
.pg-pj__body .pg-c { transition: color 0.9s ease; }
.pg-pj__body .pg-c.lit { color: var(--pg-accent); transition: color 0s; }
/* Text whose letters react to the cursor (the stories, and every [data-rise]
   title) shows the hover cursor, across the whole block so it doesn't
   flicker back to the arrow in the gaps between words. */
.pg-pj__body, .pg [data-rise] { cursor: var(--cur-h), pointer; }
/* The footer copyright does the same, lighting up white on the black. */
.pg-foot__copy .pg-c { transition: color 0.9s ease; }
.pg-foot__copy .pg-c.lit { color: #fff; transition: color 0s; }
.pg-foot__copy { cursor: var(--cur-h), pointer; }
/* The home page's line under the headline does the same: letters under
   the cursor go fully black at once and fade back to 75%. */
.pg-hero__lede { cursor: var(--cur-h), pointer; }
.pg-hero__lede .pg-c { transition: color 0.9s ease; }
.pg-hero__lede .pg-c.lit { color: #000; transition: color 0s; }
.pg-kamelo__logo {
  left: calc(2206 * var(--u)); top: calc((2470 - 2160) * var(--u));
  width: calc(77 * var(--u)); height: calc(68 * var(--u));
}
/* The logo's shape as a mask, so it can change colour: black at rest,
   Kamelo's blue while hovered. Flipped top to bottom in Figma (36:36);
   the exported file is not. */
.pg-kamelo__logo { cursor: var(--cur-h), pointer; }
.pg-kamelo__mark {
  display: block; width: 100%; height: 100%;
  background: #000;
  -webkit-mask: url(/assets/figma/kamelo-logo.svg) center / contain no-repeat;
          mask: url(/assets/figma/kamelo-logo.svg) center / contain no-repeat;
  transform: scaleY(-1);
  transition: background-color 0.9s ease;     /* like the letters: on at once, fading back */
}
.pg-kamelo__logo:hover .pg-kamelo__mark { background: #1a8cff; transition: background-color 0s; }
/* Kamelo's blue is its accent: the name's and story's letters on hover
   and "watch on site". */
.pg-kamelo__name { cursor: var(--cur-h), pointer; }
.pg-kamelo__name .pg-c { transition: color 0.9s ease; }
.pg-kamelo__name .pg-c.lit { color: #1a8cff; transition: color 0s; }
.pg-kamelo__body, .pg-tags--kamelo { --pg-accent: #1a8cff; }
.pg-kamelo__name { left: calc(2317 * var(--u)); top: calc((2475 - 2160) * var(--u)); }
.pg-kamelo__body { left: calc(2184 * var(--u)); top: calc((2610 - 2160) * var(--u)); }
.pg-qwezy__name { left: calc(422 * var(--u)); top: calc((4431 - 2160) * var(--u)); }
/* Qwezy's icon, lined up with the story's left edge, its name 18 after it, 68 square with app-icon
   rounding. At rest it's black; hovered, it fades to Qwezy's green. The
   name lights up on its own: the letters under the cursor flash that green
   and fade back, like the stories. */
.pg-qwezy__logo {
  left: calc(336 * var(--u)); top: calc((4426 - 2160) * var(--u));
  width: calc(68 * var(--u)); height: calc(68 * var(--u));
  cursor: var(--cur-h), pointer;
}
.pg-qwezy__logo svg { display: block; width: 100%; height: 100%; }
/* Like the letters: on at once, fading back over 0.9s. */
.pg-qwezy__sq { fill: #000; transition: fill 0.9s ease; }
.pg-qwezy__logo:hover .pg-qwezy__sq { fill: #0c3b2c; transition: fill 0s; }
.pg-qwezy__name { cursor: var(--cur-h), pointer; }
.pg-qwezy__name .pg-c { transition: color 0.9s ease; }
.pg-qwezy__name .pg-c.lit { color: #0c3b2c; transition: color 0s; }
/* Everything of Qwezy's takes its green as the accent instead of the
   site's orange: the story's letters on hover and "watch on site". */
.pg-qwezy__body, .pg-tags--qwezy { --pg-accent: #0c3b2c; }
.pg-qwezy__body { left: calc(336 * var(--u)); top: calc((4566 - 2160) * var(--u)); }
.pg-brainelle__name { left: calc(2317 * var(--u)); top: calc((5815 - 2160) * var(--u)); }
/* Brainelle AI's brain mark, where Kamelo's logo sits in the same layout
   (77 x 68). It and the name take Brainelle's orange, a more saturated
   take on the film's: the mark on hover (on at once, fading back), the
   name's and story's letters under the cursor, and "watch on site". */
.pg-brainelle__logo {
  left: calc(2206 * var(--u)); top: calc((5810 - 2160) * var(--u));
  width: calc(77 * var(--u)); height: calc(68 * var(--u));
  cursor: var(--cur-h), pointer;
}
/* The colour lives on the mark itself: the box's own transition belongs to
   its arrival, which would cut this fade short. */
.pg-brainelle__logo svg { display: block; width: 100%; height: 100%; color: #000; transition: color 0.9s ease; }
.pg-brainelle__logo:hover svg { color: #f26419; transition: color 0s; }
.pg-brainelle__name { cursor: var(--cur-h), pointer; }
.pg-brainelle__name .pg-c { transition: color 0.9s ease; }
.pg-brainelle__name .pg-c.lit { color: #f26419; transition: color 0s; }
.pg-brainelle__body, .pg-tags--brainelle { --pg-accent: #f26419; }
.pg-brainelle__body { left: calc(2184 * var(--u)); top: calc((5950 - 2160) * var(--u)); }

/* The black tags under each project (Figma 36:12 / 36:10): the days it
   took, and "watch on site", which opens the film in the player. Each pair
   sits 81 under its story, 50 apart. */
.pg-tags { display: flex; gap: calc(50 * var(--u)); }
.pg-tags--kamelo { left: calc(2191 * var(--u)); top: calc((3219 - 2160) * var(--u)); }
.pg-tags--qwezy { left: calc(336 * var(--u)); top: calc((4935 - 2160) * var(--u)); }
.pg-tags--brainelle { left: calc(2191 * var(--u)); top: calc((6463 - 2160) * var(--u)); }
.pg-tag {
  position: relative;
  flex: none;
  padding: 0;
  border: 0;
  font-family: var(--pg-font);
  height: calc(78 * var(--u));
  border-radius: calc(45 * var(--u));
  background: #000;
  color: #fff;
  font-size: calc(40 * var(--u));
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: normal;
  white-space: nowrap;
}
.pg-tag img, .pg-tag span { position: absolute; }
/* Both tags are glass bubbles like the home page's Request a project: the
   same smoky glass, leaning and swelling toward the cursor, popping on
   hover and bouncing back on leaving (data-bubble="pop", js/bubble.js).
   The old magnet, lift, accent fill and light sweep are gone. */
.pg-tag.pg-glass { isolation: isolate; }
.pg-tag.pg-glass--dark { background: rgba(16, 16, 16, 0.62); color: #fff; }
/* "watch on site" keeps the accent: the same glass, tinted chocolate. */
.pg-tag--site.pg-glass--dark { background: color-mix(in srgb, var(--pg-accent) 78%, transparent); }
.pg-tag--site.pg-glass--dark:hover { background: color-mix(in srgb, var(--pg-accent) 88%, transparent); }
.pg-tag--days { width: calc(232 * var(--u)); }
.pg-tag--days img { left: calc(40 * var(--u)); top: calc(23 * var(--u)); width: calc(28 * var(--u)); height: calc(31 * var(--u)); }
.pg-tag--days span { left: calc(81 * var(--u)); top: calc(15 * var(--u)); }
.pg-tag--site { width: calc(322 * var(--u)); cursor: pointer; transition: box-shadow 0.3s ease, background-color 0.15s ease; }
.pg-tag--site img { left: calc(34 * var(--u)); top: calc(26 * var(--u)); width: calc(31 * var(--u)); height: calc(31 * var(--u)); }
.pg-tag--site span { left: calc(75 * var(--u)); top: calc(15 * var(--u)); }

/* More work (js/more.js): creatoroly's "a lot more projects" template. An
   endless row of panels (545 x 748, drawn at 90%) drifts across the whole
   width, slowing on hover; the hovered panel widens, at the same height,
   to its film's shape and plays it while the others step back behind a
   veil; near the edges panels stretch, turn away and blur. Each panel is
   a poster with a black name tab hooked under its corner. Panel sizes
   are in panel pixels; js/more.js scales and places each one. */
.pg-msec { position: relative; padding: 0 0 calc(360 * var(--u)); overflow: hidden; }
.pg-more__title {
  margin: 0 0 0 calc(194 * var(--u));
  font-size: calc(100 * var(--u));
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: normal;
  white-space: nowrap;
}
.pg-mrow { position: relative; width: 100%; height: calc(673 * 2 * var(--u)); margin-top: calc(152 * var(--u)); }
.pg-mcard {
  position: absolute;
  left: 0; top: 0;
  display: block;
  width: 545px; height: 748px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  transform-origin: 0 0;
  will-change: transform, filter;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  -webkit-tap-highlight-color: transparent;
}
.pg-mcard:focus { outline: none; }
.pg-mcard:focus-visible .pg-mshape { outline: 2px solid rgba(0, 0, 0, 0.55); outline-offset: 4px; }
.pg-mshape {
  position: absolute;
  left: 0; top: 0;
  z-index: 1;
  display: block;
  width: 100%; height: 663px;
  border-radius: 41.59px;
  overflow: hidden;
  background: #e7e6e1;
}
.pg-mposter, .pg-mshape video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.pg-mshape video { opacity: 0; }
.pg-mcard.is-playing video { opacity: 1; }
.pg-mcard.is-playing .pg-mposter { opacity: 0; }
/* Hover: the others step back behind a veil in the page colour. */
.pg-mshape::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(243, 242, 238, 0.65);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.pg-mrow.has-hover .pg-mcard:not(.is-hover) .pg-mshape::after { opacity: 1; }
/* The name tab, as creatoroly's: a light tab from 613 to 745.6 hooked
   under the panel's bottom-left corner (square there, 37 round elsewhere),
   holding just the name in the film's own colour (--c on the panel):
   Medium, 36.8, tracking -2.18, baseline at 723.2, 41.8 in. Drawn at 82%
   from that corner. */
.pg-mlabel {
  position: absolute;
  left: 0; top: 613px;
  z-index: 0;
  display: block;
  height: 132.6px;
  padding: 78.4px 37px 0 41.8px;
  border-radius: 0 37px 37px 37px;
  background: #f5f5f5;
  color: var(--c, #000);
  font-family: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;   /* his tabs' type */
  font-size: 36.8px;
  font-weight: 500;
  letter-spacing: -2.18px;
  line-height: 1;
  white-space: nowrap;
  transform: scale(0.82);
  transform-origin: 0 0;
  transition: opacity 0.4s ease;
}
.pg-mrow.has-hover .pg-mcard:not(.is-hover) .pg-mlabel { opacity: 0.35; }
/* Entrance: the panels rise in one after another, left to right. */
.pg-mrow.is-in .pg-mcard { animation: pg-more-in 1s cubic-bezier(0.22, 0.9, 0.25, 1) backwards; animation-delay: calc(0.12s + var(--i, 0) * 0.08s); }
@keyframes pg-more-in { from { opacity: 0; translate: 0 70px; scale: 0.94; } }
@media (prefers-reduced-motion: reduce) { .pg-mrow.is-in .pg-mcard { animation: none; } }

/* ================================ the player ==============================
   As on creatoroly.com (js/player.js). Over a screen the film turns into
   big pixels (an 80x48 copy redrawn every frame, scaled up unsmoothed),
   and a 👀 takes the cursor's place, trailing it softly. A click flies the
   film to the middle of the screen while everything behind blurs, with
   glass controls: close, volume (the slider opens on hover) and progress. */
.pg-win__screen,
.pg-win__screen * { cursor: none !important; }
.pg-win__screen video { transition: transform 0.6s var(--pg-in), opacity 0.15s ease; }
.pg-win__screen:hover video { transform: scale(1.03); opacity: 0; }
.pg-pixels {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.pg-win__screen:hover .pg-pixels { opacity: 0.88; transition-duration: 0.3s; }
.pg-eyes {
  position: absolute;
  left: 0; top: 0;
  width: 64px; height: 64px;
  margin: -32px 0 0 -32px;
  display: grid;
  place-items: center;
  font-size: 46px;
  line-height: 1;
  pointer-events: none;
  opacity: 0;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.18));
  will-change: transform;
}
.pg-eyes.is-in  { opacity: 1; animation: pg-eyes-in 0.6s var(--pg-pop) both; }
.pg-eyes.is-out { animation: pg-eyes-out 0.16s ease-in both; }
@keyframes pg-eyes-in {
  0%   { opacity: 0; transform: scale(0.2) rotate(-18deg); filter: blur(6px) drop-shadow(0 10px 18px rgba(0, 0, 0, 0.18)); }
  45%  { opacity: 1; transform: scale(1.22) rotate(8deg); filter: blur(0) drop-shadow(0 10px 18px rgba(0, 0, 0, 0.18)); }
  72%  { transform: scale(0.92) rotate(-4deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes pg-eyes-out {
  0%   { opacity: 1; transform: scale(1) rotate(0); }
  100% { opacity: 0; transform: scale(0.4) rotate(20deg); filter: blur(6px); }
}

.qv { position: fixed; inset: 0; z-index: 100; visibility: hidden; pointer-events: none; }
.qv.is-open { visibility: visible; pointer-events: auto; }
.qv-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 18, 0.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
          backdrop-filter: blur(22px) saturate(1.2);
  opacity: 0;
  transition: opacity 0.45s ease;
}
.qv.is-shown .qv-backdrop { opacity: 1; }
/* The player, as Figma's "iOS 26 Video Player (Liquid Glass)". Every size
   below is a design pixel (the frame is 852 wide) times --k, which
   js/player.js sets from the player's width (0.6 to 1.25), so the controls
   keep the design's proportions on any screen. */
.qv-player {
  --k: 1;
  position: fixed;
  overflow: hidden;
  background: #000;
  border-radius: calc(64px * var(--k));
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45);
  transform-origin: 0 0;
}
.qv-player video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* The design's thin light edge round the film, and its 40% dimming under
   the controls (which goes with them when they hide). */
.qv-player::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 1.2px 1.2px 0.75px rgba(255, 255, 255, 0.65), inset -1.2px -1.2px 0.75px rgba(255, 255, 255, 0.65);
  pointer-events: none;
}
.qv-dim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.qv.is-shown .qv-player.is-hot .qv-dim { opacity: 1; }
.qv-ui { position: absolute; inset: 0; pointer-events: none; }

/* Liquid glass: a light, blurred and brightened view of the film behind,
   with the design's thin white rim on its top-left and bottom-right edges.
   Each piece pops in on the spring once the flight has landed, and grows a
   touch under the mouse. */
.qv-g {
  position: absolute;
  pointer-events: auto;
  padding: 0;
  border: 0;
  border-radius: calc(90px * var(--k));
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(10px) saturate(1.5) brightness(1.3);
          backdrop-filter: blur(10px) saturate(1.5) brightness(1.3);
  box-shadow: inset 0.75px 0.75px 0.75px rgba(255, 255, 255, 0.65), inset -0.75px -0.75px 0.75px rgba(255, 255, 255, 0.65);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.3s ease, transform 0.5s var(--pg-pop), scale 0.4s var(--pg-pop), background-color 0.2s ease;
}
/* The time bar is up as soon as the player lands; the rest only while the
   player is hovered (js/player.js: .is-hot), popping in and out. */
/* Unhovered, the bar sits low against the bottom edge (59 lower) at 82%;
   hovered it rises to its design spot at full size; left alone a while it
   fades out (.is-faded). */
.qv-bar { transform-origin: 50% 100%; }
.qv.is-shown .qv-bar { opacity: 1; transform: translateY(calc(59px * var(--k))) scale(0.82); transition-delay: 0.35s, 0.35s, 0s, 0s; }
.qv.is-shown.is-landed .qv-g { transition-delay: 0s; }
.qv.is-shown .qv-player.is-faded .qv-bar { opacity: 0; transition-duration: 0.6s; }
.qv.is-shown .qv-player.is-hot .qv-g { opacity: 1; transform: none; pointer-events: auto; }
.qv-g:not(.qv-bar) { pointer-events: none; }
button.qv-g:hover { background: rgba(255, 255, 255, 0.22); scale: 1.06; }
button.qv-g:active { scale: 0.94; transition-duration: 0.12s; }
.qv-g:focus { outline: none; }
.qv-g:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.8); outline-offset: 3px; }
/* The icons are Apple's own (SF Symbols outlined in Figma, at Regular,
   a step lighter than the design's Medium), filled, each placed where the design puts its ink inside the button. */
.qv-g svg, .qv-sound svg { position: absolute; display: block; overflow: visible; }

/* Close, top left: 44, 59 in and 24 down; the xmark 20. */
.qv-close { left: calc(59px * var(--k)); top: calc(24px * var(--k)); width: calc(44px * var(--k)); height: calc(44px * var(--k)); }
.qv-close svg { left: round(calc(14.1px * var(--k)), 1px); top: round(calc(14.2px * var(--k)), 1px); width: calc(16px * var(--k)); height: calc(16px * var(--k)); }

/* Volume, top right: a 184 x 44 pill, 70 in from the right; its bar 121
   wide and 8 high at 13, 18; the speaker 24 at 144, 10. */
.qv-vol {
  right: calc(70px * var(--k)); top: calc(24px * var(--k));
  width: calc(184px * var(--k)); height: calc(44px * var(--k));
  display: block;
}
.qv-vbar {
  position: absolute;
  left: calc(13px * var(--k)); top: calc(18px * var(--k));
  width: calc(121px * var(--k)); height: calc(8px * var(--k));
}
.qv-sound {
  position: absolute;
  left: round(calc(144.34px * var(--k)), 1px); top: round(calc(13.95px * var(--k)), 1px);
  width: calc(23px * var(--k)); height: calc(17px * var(--k));
  padding: 0; border: 0; background: none; color: #fff;
  transition: scale 0.4s var(--pg-pop);
}
.qv-sound::before { content: ""; position: absolute; inset: -10px; }
.qv-sound:hover { scale: 1.12; }
.qv-sound svg { left: 0; top: 0; width: 100%; height: 100%; }
.qv-sound .off { display: none; }
.qv-sound.is-muted .on { display: none; }
.qv-sound.is-muted .off { display: block; }

/* Play / pause (90) in the middle, 25.5 above centre; the skips (64) 137
   either side of it. Glyphs 40 and 36. */
.qv-play, .qv-skip { top: calc(50% - 25.5px * var(--k)); }
.qv-play {
  left: 50%;
  width: calc(90px * var(--k)); height: calc(90px * var(--k));
  margin: calc(-45px * var(--k)) 0 0 calc(-45px * var(--k));
}
.qv-play .i-pause { left: round(calc(31.27px * var(--k)), 1px); top: round(calc(26.72px * var(--k)), 1px); width: calc(27px * var(--k)); height: calc(36px * var(--k)); }
/* play.fill sits in the same spot, its weight centred a touch right, as
   SF Symbols draws it. */
.qv-play .i-play { display: none; left: round(calc(31.27px * var(--k)), 1px); top: round(calc(26.44px * var(--k)), 1px); width: calc(33px * var(--k)); height: calc(37px * var(--k)); }
.qv-play.is-paused .i-play { display: block; }
.qv-play.is-paused .i-pause { display: none; }
.qv-skip {
  width: calc(64px * var(--k)); height: calc(64px * var(--k));
  margin: calc(-32px * var(--k)) 0 0 calc(-32px * var(--k));
}
.qv-back { left: calc(50% - 137px * var(--k)); }
.qv-fwd { left: calc(50% + 137px * var(--k)); }
.qv-skip svg { top: round(calc(13.68px * var(--k)), 1px); width: calc(31px * var(--k)); height: calc(34px * var(--k)); }
.qv-back svg { left: round(calc(15.85px * var(--k)), 1px); }
.qv-fwd svg { left: round(calc(16.85px * var(--k)), 1px); }

/* The time bar: a 44-high pill 59 in from each side and 75 up from the
   bottom; elapsed time 16 in on the left, time left 16 in on the right
   (11, white), and the bar between them (8 high, from 46.25 to 53.25 from
   the right): white for what's played, grey for what's left. */
.qv-bar {
  left: calc(59px * var(--k)); right: calc(59px * var(--k));
  bottom: calc(75px * var(--k));
  height: calc(44px * var(--k));
  display: block;
}
.qv-t {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", sans-serif;
  font-size: calc(11px * var(--k));
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #fff;
  white-space: nowrap;
  pointer-events: none;
}
.qv-el { left: calc(16px * var(--k)); }
.qv-rem { right: calc(16px * var(--k)); }
.qv-progress, .qv-vbar {
  overflow: visible;
  border-radius: calc(21px * var(--k));
  background: rgba(133, 133, 133, 0.7);
  box-shadow: inset 0.75px 0.75px 0.75px rgba(255, 255, 255, 0.65), inset -0.75px -0.75px 0.75px rgba(255, 255, 255, 0.65);
  cursor: var(--cur-h), pointer;
  touch-action: none;
  transition: transform 0.25s var(--pg-pop);
}
.qv-progress {
  position: absolute;
  left: calc(46.25px * var(--k)); right: calc(53.25px * var(--k));
  top: calc(18px * var(--k));
  height: calc(8px * var(--k));
}
/* A taller invisible grab area round each thin bar. */
.qv-progress::before, .qv-vbar::before { content: ""; position: absolute; inset: -12px -4px; }
.qv-progress i, .qv-vbar i {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  border-radius: calc(21px * var(--k)) 0 0 calc(21px * var(--k));
  background: rgba(255, 255, 255, 0.85);
  box-shadow: inset 0.75px 0.75px 0.75px rgba(255, 255, 255, 0.65), inset -0.75px -0.75px 0.75px rgba(255, 255, 255, 0.65);
  pointer-events: none;
}
.qv-vbar i { width: 100%; }
/* Grabbed or hovered, the bar thickens a little, as on iOS. */
.qv-progress:hover, .qv-progress.is-scrubbing, .qv-vbar:hover { transform: scaleY(1.5); }
.qv-progress:focus, .qv-vbar:focus { outline: none; }
.qv-progress:focus-visible, .qv-vbar:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.8); outline-offset: 4px; }
.qv-backdrop, .qv-player video { cursor: var(--cur-h), pointer; }
@media (max-width: 767px) {
  .qv-player { border-radius: 0; }
}

/* ================================ arrivals ===============================
   Timed and eased as on creatoroly.com. Only once the motion is on
   (html.rs-js, set in the head unless reduced motion).
   [data-in]: blur, fade and rise, 1.1s, starting at --d.
   [data-rise]: a title word by word, a tenth of a second apart; its
   letters pop and turn the accent on hover (js/pages.js splits them).
   [data-type]: revealed left to right through a soft edge, like typing. */
.rs-js .pg [data-in] {
  opacity: 0;
  filter: blur(14px);
  transform: translate3d(0, 14px, 0);
  transition: opacity 1.1s var(--pg-in), filter 1.1s var(--pg-in), transform 1.1s var(--pg-in);
  transition-delay: var(--d, 0ms);
}
.rs-js .pg [data-in].is-in { opacity: 1; filter: blur(0); transform: none; }
.rs-js .pg [data-in].is-done { filter: none; }
/* Buttons arrive the same way but keep their own hover transitions, with
   no arrival delay on those. */
.rs-js .pg .pg-btn[data-in] {
  transition: opacity 1.1s var(--pg-in), filter 1.1s var(--pg-in), transform 1.1s var(--pg-in),
              translate 0.45s var(--pg-pop), scale 0.45s var(--pg-pop),
              box-shadow 0.3s ease, background-color 0.15s ease;
  transition-delay: var(--d, 0ms), var(--d, 0ms), var(--d, 0ms), 0s, 0s, 0s, 0s;
}
.rs-js .pg .pg-btn[data-in].is-done { transition-delay: 0s; }
.rs-js .pg .pg-btn[data-in]:active { transition-duration: 1.1s, 1.1s, 1.1s, 0.12s, 0.12s, 0.3s, 0.15s; }
/* Bubble buttons rise in on the translate property instead of transform,
   so the bubble (which moves them with transform, js/bubble.js) works
   from the first moment, on top of the arrival, instead of waiting for
   it to finish. Their translate and scale are never eased by CSS, so the
   bubble's own frame-by-frame easing stays crisp. */
.rs-js .pg [data-in][data-bubble] { transform: none; translate: 0 14px; }
.rs-js .pg [data-in][data-bubble].is-in { transform: none; translate: 0 0; }
.rs-js .pg .pg-btn[data-in][data-bubble] {
  transition: opacity 1.1s var(--pg-in), filter 1.1s var(--pg-in), translate 1.1s var(--pg-in),
              box-shadow 0.3s ease, background-color 0.15s ease;
  transition-delay: var(--d, 0ms), var(--d, 0ms), var(--d, 0ms), 0s, 0s;
}
.rs-js .pg .pg-btn[data-in][data-bubble]:active { transition-duration: 1.1s, 1.1s, 1.1s, 0.3s, 0.15s; }
/* The big S doesn't move in: it fades up from a blur (creatoroly's OLY). */
.rs-js .pg .pg-mark[data-in] { transform: none; filter: blur(10px); transition: opacity 1.6s ease, filter 1.6s ease; transition-delay: var(--d, 0ms); }
.rs-js .pg .pg-mark[data-in].is-in { filter: blur(0); }

.pg [data-rise] .pg-w { display: inline-block; white-space: nowrap; }
.rs-js .pg [data-rise] .pg-w {
  opacity: 0;
  filter: blur(14px);
  translate: 0 14px;
  transition: opacity 1.1s var(--pg-in), filter 1.1s var(--pg-in), translate 1.1s var(--pg-in);
  transition-delay: calc(var(--d, 0ms) + var(--wi, 0) * 100ms);
}
.rs-js .pg [data-rise].is-in .pg-w { opacity: 1; filter: blur(0); translate: 0 0; }
.rs-js .pg [data-rise].is-done .pg-w { filter: none; }
/* Each letter pops up and takes the accent while the pointer is on it. */
.pg [data-rise] .pg-l {
  display: inline-block;
  transition: transform 0.35s var(--pg-pop), color 0.25s ease;
}
.pg [data-rise] .pg-l:hover {
  transform: translateY(-2px) scale(1.18);
  color: var(--pg-accent);
  transition-duration: 0.2s, 0.15s;
}

.rs-js .pg [data-type] {
  opacity: 0;
  filter: blur(6px);
  -webkit-mask: linear-gradient(90deg, #000 45%, transparent 55%) 100% 0 / 260% 100% no-repeat;
          mask: linear-gradient(90deg, #000 45%, transparent 55%) 100% 0 / 260% 100% no-repeat;
}
.rs-js .pg [data-type].is-in { animation: pg-type 1.6s cubic-bezier(0.3, 0.6, 0.3, 1) var(--d, 0ms) forwards; }
@keyframes pg-type {
  0%   { opacity: 1; -webkit-mask-position: 100% 0; mask-position: 100% 0; filter: blur(6px); }
  100% { opacity: 1; -webkit-mask-position: 0 0;    mask-position: 0 0;    filter: blur(0); }
}
/* Elements that already carry a transform keep it while they arrive. */
.rs-js .pg .pg-work__flowers-l[data-in]:not(.is-in) { transform: rotate(-16.76deg) translate3d(0, calc(30 * var(--u)), 0); }
.rs-js .pg .pg-work__flowers-l[data-in].is-in { transform: rotate(-16.76deg); }
.rs-js .pg .pg-work__flowers-r[data-in]:not(.is-in) { transform: rotate(-157.18deg) scaleY(-1) translate3d(0, calc(-30 * var(--u)), 0); }
.rs-js .pg .pg-work__flowers-r[data-in].is-in { transform: rotate(-157.18deg) scaleY(-1); }
.rs-js .pg .pg-work__strip--b[data-in]:not(.is-in) { transform: scaleX(-1) translate3d(0, calc(30 * var(--u)), 0); }
.rs-js .pg .pg-work__strip--b[data-in].is-in { transform: scaleX(-1); }


/* ================================ phones =================================
   The "mobile" frame is 1320 wide: the hero's stack sits a third of the
   way down, buttons a fifth larger, and the big S swings in from the left.
   Everything else keeps the desktop layout, framed on its centre. */
@media (max-width: 767px) {
  .pg { --u: calc(100vw / 1320); }
  .pg-stage { margin-left: calc(50% - 1920 * var(--u)); }
  .pg-hero { height: 100svh; min-height: calc(2000 * var(--u)); }
  .pg-hero .pg-logo { top: calc(274 * var(--u)); }
  .pg-hero__title { top: 33.2svh; }
  .pg-hero__lede { top: calc(33.2svh + 131 * var(--u)); font-size: calc(40 * var(--u)); }
  .pg-hero__go, .pg-hero__all {
    top: calc(33.2svh + 248 * var(--u));
    height: calc(93.6 * var(--u)); font-size: calc(38.4 * var(--u)); border-radius: calc(54 * var(--u));
  }
  .pg-hero__go { left: calc(1920 * var(--u) - 374 * var(--u)); width: calc(386.4 * var(--u)); }
  .pg-hero__all { left: calc(1920 * var(--u) + 64.4 * var(--u)); width: calc(309.6 * var(--u)); }
  .pg-mark--home { left: calc(50% - 888 * var(--u)); top: calc(212 * var(--u)); }

  .pg-foot { height: calc(900 * var(--u)); }
  .pg-foot .pg-stage { margin-left: 0; }
  .pg-foot__logo { left: calc(96 * var(--u)); }
  .pg-foot__title { left: calc(71 * var(--u)); top: calc(300 * var(--u)); font-size: calc(80 * var(--u)); }
  .pg-foot__go { left: calc(71 * var(--u)); top: calc(540 * var(--u)); width: calc(386.4 * var(--u)); height: calc(93.6 * var(--u)); font-size: calc(38.4 * var(--u)); }
  .pg-foot__copy { left: calc(660 * var(--u)); top: calc(780 * var(--u)); font-size: calc(36 * var(--u)); }
  .pg-foot__mark { display: none; }

  /* Projects: the hero framed on its centre, the case studies stacked. */
  .pg-page--work { --u: calc(100vw / 1700); }
  .pg-latest { height: auto; padding: calc(120 * var(--u)) 0 calc(260 * var(--u)); }
  .pg-latest .pg-stage { margin: 0; width: auto; display: flex; flex-direction: column; padding: 0 calc(60 * var(--u)); }
  .pg-latest .pg-abs, .pg-latest .pg-tag { position: relative; left: auto; top: auto; }
  .pg-latest__title { margin-bottom: calc(80 * var(--u)); }
  /* creatoroly's phone window: rounded 20, smaller dots, the film inset 3%. */
  .pg-latest .pg-win { width: 100%; height: auto; aspect-ratio: 939 / 615; order: 0; border-radius: 20px; }
  .pg-latest .pg-win__dots { position: absolute; left: 14px; top: 12px; gap: 5px; }
  .pg-latest .pg-win__dots i { width: 11px; height: 11px; }
  .pg-latest .pg-win__screen { position: absolute; left: 3%; right: 3%; top: 32px; bottom: 3.5%; width: auto; height: auto; border-radius: 12px; }
  .pg-kamelo__logo { margin-top: calc(90 * var(--u)); }
  .pg-kamelo__name { margin-top: calc(-60 * var(--u)); margin-left: calc(111 * var(--u)); }
  .pg-pj__body { white-space: normal; margin-top: calc(50 * var(--u)); }
  .pg-pj__body br { display: none; }
  .pg-pj__body br.keep { display: inline; }
  .pg-tags { display: flex; gap: calc(50 * var(--u)); margin-top: calc(60 * var(--u)); }
  .pg-latest .pg-tag img, .pg-latest .pg-tag span { position: absolute; }
  .pg-win--qwezy { margin-top: calc(200 * var(--u)); }
  .pg-qwezy__logo { margin-top: calc(90 * var(--u)); }
  .pg-qwezy__name { margin-top: calc(-60 * var(--u)); margin-left: calc(86 * var(--u)); }
  .pg-qwezy__body { margin-bottom: 0; }
  .pg-win--brainelle { margin-top: calc(200 * var(--u)); }
  .pg-brainelle__logo { margin-top: calc(90 * var(--u)); }
  .pg-brainelle__name { margin-top: calc(-60 * var(--u)); margin-left: calc(111 * var(--u)); }
  .pg-msec { padding-bottom: 90px; }
  .pg-more__title { margin-left: calc(60 * var(--u)); }
  .pg-mrow { height: 411px; margin-top: 36px; }   /* 748 x 0.55, the phone panel scale in js/more.js */
}
