/* ==========================================================================
   Tokens
   ========================================================================== */
@font-face { font-family: "Bebas Neue"; src: url("../fonts/bebas-neue-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #dededa;                        /* grey base; the white ball of the ambient layer moves over it */
  --blob: #ffffff; --blob2: #f1f1ee;
  --fg: #141414;
  --muted: #52524d;
  --line: rgb(20 20 20 / 0.12);
  --intro-bg: #141414;                 /* the intro is dark; the page it opens onto is white */
  --radius: 10px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);   /* gentle in-out */
  --ease-focus: cubic-bezier(0.37, 0, 0.63, 1); /* sine in-out: no snap at either end, used for the card focus effect */
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --nav-h: 4rem;
  --tw: 44px;                           /* width of the Follow and theme controls */
  --edge: var(--gutter);
  --card-bg: #e8e8e4;
  --dh: 46px;                           /* height of the glass controls */
  color-scheme: light;
}
/* Dark theme: the page inverts (toggled by the tab on the right edge, remembered in localStorage). */
html[data-theme="dark"] {
  --bg: #0d0d0d; --blob: #3a3a3a; --blob2: #262626; --fg: #f2f2ef; --muted: #a5a5a1; --line: rgb(255 255 255 / 0.12); --card-bg: #1d1d1d;
  color-scheme: dark;
}
/* fallback for browsers without view transitions: a short cross-fade of the colours */
html.theme-fade, html.theme-fade * { transition: background-color .55s ease, color .55s ease, border-color .55s ease, fill .55s ease !important; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 1; } ::view-transition-new(root) { z-index: 2; }

*, *::before, *::after { box-sizing: border-box; }
html { overscroll-behavior: none; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
html.has-intro:not(.is-ready) { background: var(--intro-bg); }
body {
  margin: 0;
  background: transparent;
  color: var(--fg);
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, p, figure { margin: 0; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; border-radius: 2px; }

.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 100;
  background: var(--fg); color: var(--bg); padding: .6rem 1rem; border-radius: var(--radius);
  transition: top .2s var(--ease);
}
.skip:focus { top: 1rem; }

/* Scroll is locked only while the intro runs (class is removed by JS). */
html.has-intro.is-intro { overflow: hidden; height: 100%; }

/* ==========================================================================
   Ambient background: a very blurry ball of white drifting over grey (compositor-only transforms, soft radial falloff instead of a blur filter)
   ========================================================================== */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.ambient i { position: absolute; border-radius: 50%; will-change: transform; }
.ambient__b1 {
  width: 95vmax; height: 95vmax; left: -25vmax; top: -35vmax;
  background: radial-gradient(closest-side, var(--blob) 0%, color-mix(in srgb, var(--blob) 70%, transparent) 30%, color-mix(in srgb, var(--blob) 28%, transparent) 62%, transparent 100%);
  animation: roam1 31s ease-in-out infinite alternate;
}
.ambient__b2 {
  width: 70vmax; height: 70vmax; right: -25vmax; bottom: -30vmax;
  background: radial-gradient(closest-side, var(--blob2) 0%, color-mix(in srgb, var(--blob2) 60%, transparent) 38%, transparent 100%);
  animation: roam2 41s ease-in-out infinite alternate;
}
@keyframes roam1 { 0% { transform: translate3d(0, 0, 0) scale(1); } 33% { transform: translate3d(48vw, 18vh, 0) scale(1.12); } 66% { transform: translate3d(14vw, 62vh, 0) scale(.94); } 100% { transform: translate3d(70vw, 40vh, 0) scale(1.08); } }
@keyframes roam2 { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(-55vw, -30vh, 0) scale(1.15); } 100% { transform: translate3d(-18vw, -65vh, 0) scale(.9); } }

/* ==========================================================================
   Intro overlay
   ========================================================================== */
.intro { display: none; }
html.has-intro .intro {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 50;
  background: var(--intro-bg);
  contain: layout paint;
}
.intro__flash { position: absolute; inset: 0; }
/* Each frame is sized from the reference recording: height as a share of the viewport, width capped to the screen. */
.intro__flash img {
  position: absolute;
  left: calc(var(--cx) * 100%); top: calc(var(--cy) * 100%);
  translate: -50% -50%;
  width: min(calc(var(--hf) * var(--hs, 100dvh) * var(--ar)), 94vw);
  height: auto;
  visibility: hidden;
}

.logo3d {
  --ls: clamp(150px, 42vmin, 320px);
  position: absolute; left: 50%; top: 50%;
  width: 0; height: 0;
  perspective: 1100px;
  will-change: filter;
}
.logo3d__body {
  position: absolute; left: calc(var(--ls) / -2); top: calc(var(--ls) * -0.49);
  width: var(--ls); height: calc(var(--ls) * 0.979);
  transform-style: preserve-3d;
  will-change: transform, opacity;
}
/* The logo is first drawn as strokes (pathLength 1, dash offset animated), then swapped for an extruded stack of the same shape. */
.logo-draw {
  position: absolute; left: calc(var(--ls) / -2); top: calc(var(--ls) * -0.49);
  width: var(--ls); height: calc(var(--ls) * 0.979); overflow: visible;
}
.logo-draw path { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.logo3d__body { opacity: 0; }
.logo3d__body img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  transform: translateZ(calc(var(--z) * var(--ls) * 0.0068));
}

/* Full-screen bar that takes over from the folded logo. Same colour as the page, so the hand-over is seamless. */
.shutter {
  position: absolute; inset: -2px;
  background: #fbfbf9;
  opacity: 0;
  transform-origin: 50% 50%;
  will-change: transform;
}

/* ==========================================================================
   Project field: a pinned stage. Scrolling down pans the cards sideways; three depth layers pan at different speeds.
   ========================================================================== */
:root {
  --travel: 220vw;
  --hs: 100dvh;                         /* home height: JS locks it to the height at load on touch screens, so a hiding browser toolbar never resizes the home */
  --u: min(1vw, calc(var(--hs) * .016));                /* card size unit: follows the width on normal screens, the height on short/wide ones */
}              /* scroll distance of the horizontal pan (the middle layer moves exactly this far) */
.field {
  position: relative;
  height: calc(var(--hs) + var(--travel));
}
.stage {
  position: sticky; top: 0;
  height: var(--hs);
  overflow: clip;
  isolation: isolate;
}
.layer {
  position: absolute; inset: 0;
  pointer-events: none;                 /* only the cards take clicks */
  --s: 1;                               /* pan speed of the layer: back < 1 < front */
}
.layer[data-layer="0"] { --s: .6; z-index: 1; }
.layer[data-layer="1"] { --s: 1;  z-index: 2; }
.layer[data-layer="2"] { --s: 1.4; z-index: 3; }
.track {
  position: absolute; left: 0; top: 0; height: 100%;
  width: calc(100vw + var(--s) * var(--travel));
}
.track > ul { position: absolute; inset: 0; }
.travel-probe { position: fixed; left: 0; top: 0; visibility: hidden; width: var(--travel); height: 0; pointer-events: none; }   /* lets JS read the pan distance in px */

.card {
  position: absolute;
  left: calc(var(--x) * 1vw); top: calc(var(--y) * 1% - var(--yo, 0px));
  width: calc(var(--w) * var(--u));
  translate: -50% -50%;
  pointer-events: auto;
  transition: opacity 2.4s var(--ease-focus) .15s, filter 2.4s var(--ease-focus) .15s;   /* leaving a card: a very slow fade back to normal */
}
.card__ph { display: block; position: relative; cursor: default; }
.card a { display: block; position: relative; transition: scale 2.2s var(--ease-focus) .15s; }
/* Idle float: each card drifts a few pixels on its own period, started once the field has settled. */
html.is-settled .card a { animation: float var(--fd, 7s) ease-in-out var(--fdel, 0s) infinite alternate; }
@keyframes float { from { translate: 0 0; } to { translate: var(--fx, 0px) var(--fy, -8px); } }
.card__media { display: block; overflow: hidden; border-radius: var(--radius); background: var(--card-bg); }
.card__media img { width: 100%; }
.card__title {
  position: absolute; left: 0; top: calc(100% + .9rem);
  display: grid; gap: .6rem; width: max-content; max-width: min(30rem, 90vw);
  opacity: 0; transform: translateY(-6px);
  transition: opacity 1.2s var(--ease-focus) .15s, transform 1.2s var(--ease-focus) .15s;
}
.card__name { display: block; font-size: clamp(1.5rem, 2.1vw, 2.4rem); font-weight: 650; letter-spacing: -.035em; line-height: 1; white-space: nowrap; }
.card__title small { display: grid; grid-template-columns: repeat(2, max-content); gap: .15rem 1.6rem; width: max-content; font-size: .875rem; font-weight: 400; letter-spacing: -.012em; line-height: 1.3; color: var(--muted); }
.card__title small i {
  position: relative; font-style: normal; display: flex; align-items: center; gap: .7rem; padding: .2rem 0; white-space: nowrap;
  opacity: 0; transform: translateY(6px);
  transition: opacity .5s var(--ease-focus), transform .5s var(--ease-focus);
}
.card__title small i::before { content: ""; flex: none; width: 4px; height: 4px; border-radius: 50%; background: var(--fg); opacity: .85; }
/* motion: the name rises into place and the tags fade up one after another */
.card__name { transform: translateY(14px) scale(.96); transform-origin: 0 100%; filter: blur(8px); opacity: 0; transition: transform .5s var(--ease-focus), opacity .5s var(--ease-focus), filter .5s var(--ease-focus); }
/* Focus on a project (classes set by initFocus in main.js, with a short hover-intent delay so it never flickers).
   Entering is slow and smooth; leaving is slower still, back to exactly the resting state. */
.card a:focus-visible .card__title { opacity: 1; transform: none; }
.card a:focus-visible .card__name { opacity: 1; transform: none; filter: none; }
.card a:focus-visible .card__title small i { opacity: 1; transform: none; }
.cards.is-focusing .card, .cards.is-releasing .card { will-change: filter; }
/* the other cards are never transparent: a white veil sits over them instead (see the end of this file) */
.field.is-zone { cursor: pointer; }
.cards.is-focusing .card.is-focus a { scale: 1.09; transition: scale 1.6s var(--ease-focus); }
.cards.is-focusing .card.is-focus .card__title { opacity: 1; transform: none; transition: opacity .6s var(--ease-focus) .2s, transform .9s var(--ease-focus) .2s; }
.cards.is-focusing .card.is-focus .card__name { opacity: 1; transform: none; filter: blur(0); transition: transform 1s cubic-bezier(.22, 1, .36, 1) .3s, opacity .7s var(--ease-focus) .3s, filter .8s var(--ease-focus) .3s; }
.cards.is-focusing .card.is-focus .card__title small i { opacity: 1; transform: none; color: var(--fg); transition: color .6s var(--ease-focus) calc(.6s + var(--n, 0) * .09s), opacity .6s var(--ease-focus) calc(.6s + var(--n, 0) * .09s), transform .8s cubic-bezier(.22, 1, .36, 1) calc(.6s + var(--n, 0) * .09s); }
.card__title small i:nth-child(2) { --n: 1; } .card__title small i:nth-child(3) { --n: 2; } .card__title small i:nth-child(4) { --n: 3; }
.cards.is-releasing .card { filter: brightness(1) saturate(1) blur(0px); }          /* an explicit end value, so nothing pops when the filter is finally dropped */

/* The name stays pinned while the cards pan. It is white with mix-blend-mode: difference, so it reads dark on the light page, light on the dark page,
   and inverts wherever a card passes under it. When a project is in focus it blurs and fades exactly like the cards (the classes are set on .field). */
.field__intro {
  position: fixed; left: var(--gutter); bottom: calc(5.75rem + env(safe-area-inset-bottom));
  z-index: 5; pointer-events: none;
  color: #fff; mix-blend-mode: difference;
  transition: opacity 2.4s var(--ease-focus) .15s, filter 2.4s var(--ease-focus) .15s;
}
.field__intro h1 {
  font-size: clamp(2rem, 5vw, 6.5rem);
  font-weight: 650; letter-spacing: -.03em; line-height: .95;
}
.field__intro p { margin-top: .85rem; font-size: clamp(.9375rem, 1.2vw, 1.125rem); opacity: .75; }
.field.is-focusing .field__intro, .field.is-releasing .field__intro { will-change: opacity, filter; }
.field.is-focusing .field__intro { opacity: .08; transition: opacity 1.2s var(--ease-focus); }
.field.is-releasing .field__intro { filter: blur(0px); }

/* Thin progress line along the bottom while the pan runs */
.progress {
  position: fixed; left: 0; bottom: 0; z-index: 15;
  width: 100%; height: 2px; background: var(--fg);
  transform: scaleX(0); transform-origin: 0 50%;
  pointer-events: none;
}

/* Scroll-driven pan (compositor only). Browsers without scroll timelines get a small JS fallback in main.js. */
@supports (animation-timeline: scroll()) {
  .track {
    animation: pan linear both;
    animation-timeline: scroll(root);
    animation-range: 0 var(--travel);
  }
  @keyframes pan { to { translate: calc(var(--s) * var(--travel) * -1) 0; } }
  .progress {
    animation: progress linear both;
    animation-timeline: scroll(root);
    animation-range: 0 var(--travel);
  }
  @keyframes progress { 0% { transform: scaleX(0); opacity: 1; } 94% { opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
}

/* Before the intro hands over, nothing of the field shows. */
html.has-intro:not(.is-ready) .layer,
html.has-intro:not(.is-ready) [data-in],
html.has-intro:not(.is-ready) .progress { opacity: 0; }

/* Portrait screens (phones, portrait tablets) get their own spread-out card layout (--mx/--my), larger cards and a longer pan. */
@media (max-aspect-ratio: 1/1) {
  :root { --travel: 540vw; --u: calc(min(1vw, calc(var(--hs) * .016)) * 2.2); }
  .card { left: calc(var(--mx) * 1vw); top: calc(var(--my) * 1% - var(--yo, 0px)); }
}
@media (min-width: 701px) and (max-aspect-ratio: 1/1) {
  :root { --u: calc(min(1vw, calc(var(--hs) * .016)) * 1.9); }
}
@media (max-width: 560px) {
}

/* ==========================================================================
   Liquid glass, built the way rdev/liquid-glass-react builds it (https://github.com/rdev/liquid-glass-react), with these settings:
   mode standard, displacement scale 140 (halved by over-light = 70), blur 0, saturation 210%, chromatic aberration 7, elasticity 0.35,
   corner radius 100, over-light on. Layer stack, bottom to top (the layers are created by initGlass in main.js):
     shade   black 20% (the "over light" tint; the library's second, overlay-blended black layer needs the page to blend with, so it is left out)
     warp    backdrop-filter: blur(12px) saturate(210%) + the SVG filter (3 displacement passes, one per colour channel = aberration)
     content the icons and text, sharp
     rim 1/2 two gradient borders (screen + overlay) whose angle and stops follow the cursor
   The SVG refraction is Chromium-only (as in the library); other browsers get the blur + saturation + shade + rim.
   ========================================================================== */
:root { --pad: calc(var(--dh) * .12); --ih: calc(var(--dh) * .76); }
@media (pointer: coarse) { :root { --dh: 54px; } }
@media (max-width: 380px) { :root { --dh: 44px; } }      /* keeps the widest open label inside a 320px screen */

.glass {
  isolation: isolate; overflow: hidden;
  box-shadow: 0 12px 40px rgb(0 0 0 / calc(.28 * var(--d, 1)));
  transition: transform .2s ease-out;
  will-change: transform;
}
.glass__shade, .glass__warp, .glass__rim { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.glass__shade { z-index: -2; background: rgb(0 0 0 / .2); opacity: var(--d, 1); }
.glass__warp {
  z-index: -1;
  -webkit-backdrop-filter: blur(var(--gb, 12px)) saturate(var(--gs, 140%));
  backdrop-filter: blur(var(--gb, 12px)) saturate(var(--gs, 140%));
}
html.lg-refract .glass__warp { filter: var(--lens); }
.glass__rim {
  z-index: 2; padding: 1.5px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  box-shadow: 0 0 0 .5px rgb(255 255 255 / .5) inset, 0 1px 3px rgb(255 255 255 / .25) inset, 0 1px 4px rgb(0 0 0 / .35);
}
.glass__rim--a { opacity: calc(.2 * var(--rim, 1));
  background: linear-gradient(var(--ang, 135deg), rgb(255 255 255 / 0) 0%, rgb(255 255 255 / var(--a1, .12)) var(--p1, 33%), rgb(255 255 255 / var(--a2, .4)) var(--p2, 66%), rgb(255 255 255 / 0) 100%); }
.glass__rim--b { opacity: calc(.6 * var(--rim, 1));      /* the library blends this one with overlay; a blend mode here would hide the page from the glass, so it is plain alpha */
  background: linear-gradient(var(--ang, 135deg), rgb(255 255 255 / 0) 0%, rgb(255 255 255 / var(--b1, .32)) var(--p1, 33%), rgb(255 255 255 / var(--b2, .6)) var(--p2, 66%), rgb(255 255 255 / 0) 100%); }
/* not shown until it materializes (initGlass reveal) */
html.has-intro:not(.dock-in) .glass { visibility: hidden; pointer-events: none; }
.glass:active { transform: scale(.97); }

/* ---------- the dock ---------- */
.dock {
  --lens: url(#lg-dock);
  position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); translate: -50% 0; z-index: 70;   /* above the intro and the panels */
  width: max-content;                   /* left:50% would otherwise cap the width at half the screen and squeeze the items */
  padding: var(--pad); border-radius: 999px;
}
.dock__list { position: relative; z-index: 1; display: flex; margin: 0; padding: 0; list-style: none; }
/* the active pill: flat translucent grey, no outline (as in the reference) */
.dock__pill {
  position: absolute; left: var(--pad); top: var(--pad); width: 0; height: var(--ih); z-index: 0;
  border-radius: 999px; background: rgb(255 255 255 / .2); box-shadow: inset 0 0 0 .5px rgb(255 255 255 / .35), inset 0 1px 3px rgb(255 255 255 / .2);
  will-change: transform, width;
}
.dock__item {
  --icon: calc(var(--dh) * .45);
  flex: none; position: relative; display: inline-flex; align-items: center; justify-content: center;
  height: var(--ih); padding: 0 calc((var(--dh) * 1.1 - var(--icon)) / 2);          /* every cell is 1.1 x the bar height */
  border: 0; border-radius: 999px; background: none; cursor: pointer; text-decoration: none;
  color: rgb(255 255 255 / .78); font: inherit; -webkit-tap-highlight-color: transparent;
  transition: color .35s var(--ease);
}
/* icon sizes measured per glyph on the reference */
.dock__item[data-go="home"] { --icon: calc(var(--dh) * .45); }
.dock__item[data-go="about"] { --icon: calc(var(--dh) * .43); }
.dock__item[data-go="mail"] { --icon: calc(var(--dh) * .42); }
.dock__item::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgb(255 255 255 / 0); transition: background-color .35s var(--ease); }
.dock__item:not(.is-active):hover { color: #fff; }
.dock__item:not(.is-active):hover::before { background: rgb(255 255 255 / .07); }
.dock__item:focus-visible { outline: 1.5px solid rgb(255 255 255 / .55); outline-offset: -1px; }      /* keyboard only, kept light */
.dock__item.is-active { color: #fff; }

.dock__icon { position: relative; display: grid; place-items: center; width: var(--icon); height: var(--icon); filter: drop-shadow(0 1px 2px rgb(0 0 0 / .35)); }
.dock__icon .ic { grid-area: 1 / 1; width: 100%; height: 100%; overflow: visible; transition: opacity .35s var(--ease), filter .45s var(--ease), transform .55s var(--ease); }
.dock__icon .ic--on { opacity: 0; transform: scale(.78); filter: blur(3px); }
.is-active .ic--on { opacity: 1; transform: none; filter: blur(0); }
.is-active .ic--off { opacity: 0; transform: scale(1.18); filter: blur(3px); }
.u-body { stroke-dasharray: 1 1; }

/* At rest the active item is just its icon in the pill, as in the reference. A tap opens its label next to the icon
   (0fr to 1fr, soft blur-in); a moment later initDock removes .is-labeled and the label closes again, leaving only the icon. */
.dock__label { display: grid; grid-template-columns: 0fr; transition: grid-template-columns .7s cubic-bezier(.3, 1.2, .4, 1); }
.dock__label > span { min-width: 0; overflow: hidden; }
.dock__text {
  display: block; white-space: nowrap; padding-left: calc(var(--dh) * .17);
  font-size: calc(var(--dh) * .285); font-weight: 560; letter-spacing: .005em; line-height: 1; color: #fff;
  opacity: 0; filter: blur(5px); transition: opacity .3s ease, filter .45s ease;
}
.dock.is-labeled .is-active .dock__label { grid-template-columns: 1fr; }
.dock.is-labeled .is-active .dock__text { opacity: 1; filter: blur(0); transition: opacity .45s ease .14s, filter .55s ease .14s; }

/* ---------- Follow (bottom right, no background, the same white-on-page tone as the theme toggle) ----------
   The behaviour is the Follow block of mthomaz.com: the "Follow" text and the buttons trade places with a .3s ease slide.
   At rest only the share icon shows. On hover the container (anchored to the right) widens, so the icon glides to the left and the word
   is revealed to its right, on a smooth ease-out with no overshoot. ---------- */
.follow {
  position: fixed; right: calc(var(--edge) + var(--tw)); bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 70;
  height: var(--dh); color: #fff; mix-blend-mode: difference;
}
.follow__inner { display: flex; align-items: center; height: 100%; }
.follow__toggle {
  flex: none; display: grid; place-items: center; width: var(--tw); height: 100%; padding: 0; margin: 0;
  border: 0; background: none; color: inherit; cursor: pointer; opacity: .55; transition: opacity .35s var(--ease);
}
.follow:hover .follow__toggle, .follow.is-hover .follow__toggle, .follow.is-open .follow__toggle, .follow__toggle:focus-visible { opacity: 1; }
.follow__toggle .fa, .follow__btn .fa { width: 15px; height: 15px; fill: currentColor; }
.follow__toggle .fa { transition: transform .8s cubic-bezier(.3, .7, .2, 1); }
.follow__cell { display: grid; grid-template-columns: 0fr; transition: grid-template-columns .9s cubic-bezier(.3, .7, .2, 1); }
.follow__clip { min-width: 0; overflow: hidden; display: grid; align-items: center; }
.follow__clip > * { grid-area: 1 / 1; }
.follow__text {
  justify-self: start; padding: 0 6px 0 2px; white-space: nowrap; font-size: 15px; line-height: 1; cursor: pointer;
  opacity: 0; transform: translate3d(-18px, 0, 0); filter: blur(5px);
  transition: opacity .5s ease .08s, transform .9s cubic-bezier(.3, .7, .2, 1), filter .6s ease .08s;
}
.follow__list { display: flex; margin: 0; padding: 0; list-style: none; opacity: 0; visibility: hidden; transform: translate3d(0, 60%, 0); transition: all .3s ease; }
.follow__btn { display: flex; justify-content: center; align-items: center; width: 34px; height: var(--dh); color: #eaeaea; transition: opacity .2s; }
.follow__list:hover .follow__btn { opacity: .5; }
.follow__list .follow__btn:hover, .follow__list .follow__btn:focus-visible { opacity: 1; }
.follow.is-hover .follow__cell, .follow.is-open .follow__cell { grid-template-columns: 1fr; }
.follow.is-hover .follow__text { opacity: 1; transform: none; filter: blur(0); }
/* the mthomaz.com swap: text goes up and out, buttons rise in */
.follow.is-open .follow__text { opacity: 0; visibility: hidden; transform: translate3d(0, -50%, 0); filter: blur(0); transition: all .3s ease; }
.follow.is-open .follow__list { opacity: 1; visibility: visible; transform: none; }
.follow__btn:focus-visible, .follow__toggle:focus-visible { outline: 1.5px solid #fff; outline-offset: -4px; border-radius: 50%; }
/* narrow screens: the buttons rise above the share icon instead of growing sideways, so Follow never runs into the dock */
@media (max-width: 899px) {
  .follow { height: auto; }
  .follow__inner { flex-direction: column-reverse; height: auto; }
  .follow__toggle { height: var(--dh); }
  .follow__cell { grid-template-columns: 1fr; grid-template-rows: 0fr; transition: grid-template-rows .6s cubic-bezier(.3, .7, .2, 1); }
  .follow.is-hover .follow__cell, .follow.is-open .follow__cell { grid-template-rows: 1fr; grid-template-columns: 1fr; }
  .follow__text { display: none; }
  .follow__list { flex-direction: column; }
  .follow__btn { width: var(--tw); height: var(--dh); }
}

/* ---------- Theme inversion: a quiet half-filled circle at the right edge, level with the dock and Follow ---------- */
.theme-toggle {
  position: fixed; right: var(--edge); bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 70;
  display: grid; place-items: center; width: var(--tw); height: var(--dh); padding: 0; margin: 0;
  border: 0; background: none; cursor: pointer; color: #fff; mix-blend-mode: difference; opacity: .55;
  transition: opacity .35s var(--ease);
}
.theme-toggle__dot {
  width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid currentColor;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
  transition: transform .8s var(--ease);
}
.theme-toggle:hover, .theme-toggle:focus-visible { opacity: 1; }
.theme-toggle:hover .theme-toggle__dot { transform: rotate(90deg); }
html[data-theme="dark"] .theme-toggle__dot { transform: rotate(180deg); }
html[data-theme="dark"] .theme-toggle:hover .theme-toggle__dot { transform: rotate(270deg); }
.theme-toggle:focus-visible { outline: 1.5px solid #fff; outline-offset: -4px; border-radius: 50%; }
/* Scroll cue (project pages, bottom left): the mirror image of Follow and the theme toggle. A quiet capsule with a dot that drifts down and
   dissolves, on a slow loop, no text. It appears 3s after a project opens, stays while you scroll, and fades out when the last section arrives. */
.scrollcue {
  position: fixed; left: var(--edge); bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 70;
  width: var(--tw); height: var(--dh); display: grid; place-items: center; pointer-events: none;
  color: #fff; mix-blend-mode: difference; opacity: 0; transition: opacity 1.4s var(--ease-soft);
}
.scrollcue::before { content: ""; width: 20px; height: 32px; border: 1.5px solid currentColor; border-radius: 12px; opacity: .6; }
.scrollcue i { position: absolute; left: 50%; top: 50%; width: 3.5px; height: 3.5px; margin: -13px 0 0 -1.75px; border-radius: 50%; background: currentColor; animation: cue 3.6s cubic-bezier(.45, 0, .2, 1) infinite; }
@keyframes cue { 0% { transform: translateY(0) scale(.6); opacity: 0; } 18% { opacity: 1; transform: translateY(2px) scale(1); } 62% { opacity: 1; transform: translateY(15px) scale(1); } 85%, 100% { opacity: 0; transform: translateY(21px) scale(.6); } }
html.dock-in.pv-open.pv-cue:not(.pv-end) .scrollcue { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .scrollcue i { animation: none; opacity: 1; } .scrollcue { transition: none; } }

/* both controls arrive just after the dock has materialized */
html.has-intro:not(.dock-in) .follow, html.has-intro:not(.dock-in) .theme-toggle { visibility: hidden; pointer-events: none; }
/* their bubble entrance is played from revealGlass in main.js */
.follow__toggle, .theme-toggle { position: relative; }
.theme-toggle { position: fixed; }
.follow__toggle::after, .theme-toggle::after {            /* the ring of a bubble expanding as it appears */
  content: ""; position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border-radius: 50%; border: 1px solid currentColor; opacity: 0; pointer-events: none;
}
@media (max-width: 560px) { :root { --tw: 36px; } }
@media (max-width: 380px) { :root { --tw: 32px; --edge: 12px; } }

@media (prefers-reduced-transparency: reduce) {
  .glass__warp { -webkit-backdrop-filter: none; backdrop-filter: none; filter: none !important; background: rgb(60 62 66 / .92); }
}

/* ==========================================================================
   Project pages (top section), in the split layout of the reference. Left half: title, categories, the lead image small, a "Scroll now" line.
   Right half: a full-bleed feature image with a centred line. Opening is a speed-ramp zoom from the clicked card into the small image
   (openProject in main.js); the X at the top and the dock at the bottom are the navigation.
   ========================================================================== */
:root { --panel: #f6f5f1; }
html[data-theme="dark"] { --panel: #161616; }
.pv { position: fixed; inset: 0; z-index: 60; background: var(--panel); overflow: hidden auto; overscroll-behavior: contain; }
.pv:not(.is-open) { display: none; }
html.pv-open { overflow: hidden; }
.pv__view { display: none; }
.pv__view.is-current { display: block; }
.pv__view[data-layout="split"] .pv__top { display: grid; grid-template-columns: 1fr 1fr; height: 100dvh; }
.pv__left {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 0;
  padding: clamp(4.5rem, 9dvh, 6rem) 2rem 6.5rem; background: var(--panel);
}
.pv__title { font-size: clamp(2.6rem, 5.6vw, 6.4rem); font-weight: 600; letter-spacing: -.035em; line-height: .95; text-wrap: balance; overflow-wrap: anywhere; }
.pv__cats { display: grid; grid-template-columns: repeat(2, minmax(0, 11rem)); gap: 0 clamp(1.5rem, 4vw, 3.5rem); margin-top: clamp(1.4rem, 4.4dvh, 2.8rem); }
.pv__cats p, .pv__more, .pv__bigtext .pv__more { font-size: .6875rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; line-height: 1.9; }
.pv__small { margin: clamp(1.4rem, 4.4dvh, 2.8rem) 0 0; height: clamp(170px, 33dvh, 430px); aspect-ratio: var(--ar, 4 / 5); max-width: 78%; }
.pv__small img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); background: var(--card-bg); }
.pv__caption { margin-top: clamp(.9rem, 2.4dvh, 1.5rem); font-size: .9375rem; }
.pv__more { margin-top: .35rem; padding: .35rem .2rem; border: 0; background: none; color: inherit; cursor: pointer; font-family: inherit; transition: opacity .3s var(--ease), letter-spacing .5s var(--ease); }
.pv__more:hover, .pv__more:focus-visible { letter-spacing: .22em; }
.pv__more span { display: inline-block; margin-right: .3em; }
.pv__right { position: relative; overflow: hidden; min-height: 0; background: #161616; }
.pv__big { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pv__right::after { content: ""; position: absolute; inset: 0; background: radial-gradient(62% 42% at 50% 50%, rgb(0 0 0 / .52), transparent 78%); pointer-events: none; }
.pv__bigtext { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; justify-items: center; gap: .6rem; padding: 2rem; text-align: center; color: #fff; text-shadow: 0 1px 14px rgb(0 0 0 / .55); }
.pv__bigtext p { font-size: clamp(1.1rem, 1.6vw, 1.6rem); font-weight: 450; letter-spacing: -.01em; max-width: 22ch; }
/* Rolex is a single dark case study: one page colour, readable in either site theme */
#project-6 { --panel: #0a0a0a; --fg: #f2f2ef; --muted: #9b9b96; --card-bg: #161616; }
/* ── Rolex hero: editorial dark layout — a brand word, lead + CTA, a selected frame and the capabilities along the base ── */
#project-6 .pv__top.rx-hero { display: grid; grid-template-columns: 53% 47%; height: 100dvh; background: var(--panel); }
#project-6 .rx-panel { display: flex; flex-direction: column; justify-content: space-between; min-height: 0; padding: clamp(2.2rem, 5dvh, 4rem) clamp(1.6rem, 3.2vw, 3.6rem) clamp(5rem, 9dvh, 6.5rem); background: var(--panel); color: #fff; text-align: left; }
#project-6 .rx-brand { margin: 0; font-size: clamp(4rem, 13.5vw, 14rem); font-weight: 300; line-height: .9; letter-spacing: -.01em; text-transform: uppercase; color: #fff; }
#project-6 .rx-lead { display: flex; align-items: flex-start; gap: clamp(2rem, 6vw, 6rem); margin-top: clamp(1rem, 2.6dvh, 2.2rem); }
#project-6 .rx-desc { margin: 0; max-width: 32ch; font-size: clamp(.82rem, .95vw, 1.02rem); line-height: 1.55; color: #8c8c8c; }
#project-6 .rx-cta { align-self: center; display: inline-flex; align-items: center; gap: .85em; padding: 1em 1.8em; border: 1px solid rgb(255 255 255 / .32); background: none; color: #fff; font: 500 .72rem/1 inherit; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; cursor: pointer; transition: background .3s var(--ease), border-color .3s var(--ease), gap .4s var(--ease); }
#project-6 .rx-cta:hover, #project-6 .rx-cta:focus-visible { background: rgb(255 255 255 / .08); border-color: #fff; gap: 1.2em; outline: none; }
#project-6 .rx-foot { display: flex; align-items: flex-end; gap: clamp(1.5rem, 4vw, 3.5rem); }
#project-6 .rx-thumb { margin: 0; flex: none; display: flex; flex-direction: column; gap: .7rem; }
#project-6 .rx-thumb figcaption { font-size: .62rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: #8c8c8c; }
#project-6 .rx-thumb-img { display: block; width: clamp(150px, 15vw, 240px); aspect-ratio: 16 / 10; object-fit: cover; object-position: center; background: #161616; border-radius: 3px; }
#project-6 .rx-caps { flex: 1; display: flex; justify-content: space-around; gap: 1rem; margin: 0; font-size: .62rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: #8c8c8c; }
#project-6 .pv__right.rx-img { background: var(--panel); }
#project-6 .pv__right::after { display: none; }
#project-6 .pv__big { object-position: 55% center; }
/* entrance: the clicked cover lands on the small frame (same picture); the big image slides in from the right; the type rises */
#project-6.is-current .pv__big { animation: rxSlideIn 1.2s cubic-bezier(.22, 1, .36, 1) .1s both; }
#project-6.is-current .rx-brand { animation: rxRise 1s cubic-bezier(.22, 1, .36, 1) .3s both; }
#project-6.is-current .rx-lead { animation: rxRise 1s cubic-bezier(.22, 1, .36, 1) .48s both; }
#project-6.is-current .rx-caps { animation: rxRise 1s cubic-bezier(.22, 1, .36, 1) .62s both; }
@keyframes rxSlideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes rxRise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { #project-6.is-current :is(.pv__big, .rx-brand, .rx-lead, .rx-caps) { animation: none; } }
@media (max-width: 760px) {
  #project-6 .pv__top.rx-hero { grid-template-columns: 1fr; height: auto; padding-top: clamp(4.2rem, 9svh, 5.4rem); }
  #project-6 .rx-panel { min-height: auto; padding: 1.6rem 1.4rem 2.4rem; }
  #project-6 .rx-brand { font-size: clamp(3.6rem, 22vw, 7rem); }
  #project-6 .rx-lead { flex-direction: column; gap: 1.4rem; margin-top: 1.4rem; }
  #project-6 .rx-cta { align-self: flex-start; }
  #project-6 .rx-foot { flex-direction: column; align-items: flex-start; gap: 1.6rem; margin-top: 2.6rem; }
  #project-6 .rx-caps { flex-wrap: wrap; justify-content: flex-start; gap: .5rem 1.4rem; }
  #project-6 .pv__right.rx-img { aspect-ratio: 16 / 10; order: -1; }
}
/* ── Rolex /01 About: built in parts, on the page's own background and gutter ── */
/* full page width (same gutter as the rest of the body), not a centred 1280 block */
#project-6 .rx-about { max-width: none; display: grid; gap: clamp(3.5rem, 9vh, 8rem); color: var(--fg); text-align: left; }
#project-6 .rx-ab-part { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 2vw, 2.2rem); row-gap: clamp(1.6rem, 4vh, 3rem); }
/* Part 1 — the statement: label top-left, meta beneath, statement filling the right */
#project-6 .rx-ab-intro { align-items: stretch; }
#project-6 .rx-ab-head { grid-column: 1 / 5; display: flex; flex-direction: column; justify-content: space-between; gap: clamp(2.5rem, 12vh, 9rem); }
#project-6 .rx-ab-label { margin: 0; font-size: .64rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
#project-6 .rx-ab-label span { opacity: .55; }
#project-6 .rx-ab-meta { margin: 0; font-size: .62rem; line-height: 1.85; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
#project-6 .rx-ab-statement { grid-column: 5 / 13; margin: 0; font-weight: 300; font-size: clamp(1.5rem, 2.85vw, 3.25rem); line-height: 1.2; letter-spacing: -.015em; color: var(--fg); text-wrap: pretty; }
#project-6 .rx-ab-statement i { font-style: normal; color: var(--muted); }
/* Part 2 — the still and the notes */
#project-6 .rx-ab-fig { grid-column: 5 / 9; align-self: center; margin: 0; }
#project-6 .rx-ab-fig img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--card-bg); }
#project-6 .rx-ab-copy { grid-column: 9 / 13; align-self: center; display: grid; gap: 1.1rem; max-width: 40ch; }
#project-6 .rx-ab-copy p { margin: 0; font-size: clamp(.78rem, .85vw, .95rem); line-height: 1.72; color: var(--muted); }
@media (max-width: 760px) {
  #project-6 .rx-ab-part { grid-template-columns: 1fr; }
  #project-6 .rx-ab-part > * { grid-column: 1 / -1 !important; }
  #project-6 .rx-ab-head { flex-direction: row; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
  #project-6 .rx-ab-statement { font-size: clamp(1.5rem, 6.4vw, 2.2rem); margin-top: 1.4rem; }
  #project-6 .rx-ab-fig { max-width: 360px; }
  #project-6 .rx-ab-copy { margin-top: 1.4rem; }
}
/* ── Rolex /02 Material: a pinned list; scrolling moves the highlight down the five qualities ── */
#project-6 .rx-mat { max-width: none; width: calc(100% + 2 * var(--gutter)); margin-inline: calc(-1 * var(--gutter)); position: relative; height: 360vh; }
#project-6 .rx-mat-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
/* the reference backdrop: the titanium render, present but faded, a soft dark wash for legibility */
#project-6 .rx-mat-bg { position: absolute; inset: 0; z-index: 0; background: url(../img/hi/rolex-ti-bg.webp) center / cover no-repeat; opacity: .42; }
#project-6 .rx-mat-stage::after { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(92% 82% at 50% 50%, rgb(from var(--panel) r g b / .3), rgb(from var(--panel) r g b / .8) 94%); pointer-events: none; }
#project-6 .rx-mat-kicker { position: absolute; z-index: 1; top: clamp(2.2rem, 6vh, 4.5rem); right: var(--gutter); margin: 0; font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
#project-6 .rx-mat-kicker span { opacity: .55; }
/* one characteristic at a time, dead-centred: the front face flips on its axis to the next as the scroll advances */
#project-6 .rx-mat-wheel { position: absolute; z-index: 1; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(92%, 62rem); height: clamp(5rem, 16vh, 9rem); perspective: 760px; }
#project-6 .rx-mat-list { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; transform-style: preserve-3d; }
#project-6 .rx-mat-item { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; transform-origin: center; backface-visibility: hidden; will-change: transform, opacity; }
#project-6 .rx-mat-face { display: inline-flex; align-items: baseline; gap: clamp(.6rem, 1.2vw, 1.3rem); font-weight: 200; font-size: clamp(2rem, 5.4vw, 5.6rem); line-height: 1; letter-spacing: -.012em; color: var(--fg); white-space: nowrap; will-change: filter; }
#project-6 .rx-mat-n { font-size: .28em; font-weight: 400; letter-spacing: .1em; color: var(--muted); }
#project-6 .rx-mat-foot { position: absolute; z-index: 1; left: var(--gutter); right: var(--gutter); bottom: clamp(2.2rem, 6vh, 4.5rem); display: flex; justify-content: space-between; align-items: flex-end; gap: clamp(2rem, 5vw, 5rem); }
#project-6 .rx-mat-index { margin: 0; flex: none; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
#project-6 .rx-mat-combined { max-width: 54ch; }
#project-6 .rx-mat-dlabel { margin: 0 0 .5rem; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg); }
#project-6 .rx-mat-ddesc { margin: 0; font-size: clamp(.82rem, .9vw, 1rem); line-height: 1.6; color: var(--fg); }
#project-6 .rx-mat-study { margin: .85rem 0 0; font-size: clamp(.78rem, .85vw, .95rem); line-height: 1.72; color: var(--muted); }
@media (max-width: 760px) {
  #project-6 .rx-mat { height: 280vh; }
  #project-6 .rx-mat-stage { grid-template-rows: auto 1fr auto; gap: 1.2rem; padding: 4.5rem var(--gutter) 2.4rem; }
  #project-6 .rx-mat-wheel { height: clamp(3.6rem, 13vh, 6.5rem); }
  #project-6 .rx-mat-item { font-size: clamp(1.7rem, 9.5vw, 3.1rem); }
  #project-6 .rx-mat-foot { flex-direction: column; align-items: flex-start; gap: 1.1rem; }
  #project-6 .rx-mat-index { order: 2; }
}
@media (prefers-reduced-motion: reduce) {
  #project-6 .rx-mat-item { transition: none; }
}
/* ── Rolex /03 Gallery: an asymmetric editorial grid of beauty frames and clay passes ── */
#project-6 .rx-gal { max-width: none; color: var(--fg); text-align: left; }
#project-6 .rx-gal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; margin-bottom: clamp(2.5rem, 6vh, 5rem); }
#project-6 .rx-gal-title { margin: 0; max-width: 26ch; font-weight: 300; font-size: clamp(1.7rem, 3vw, 3.4rem); line-height: 1.14; letter-spacing: -.02em; text-wrap: balance; color: var(--fg); }
#project-6 .rx-gal-title i { font-style: normal; color: var(--muted); }
#project-6 .rx-gal-meta { flex: none; margin: .5rem 0 0; font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
#project-6 .rx-gal-meta span { opacity: .55; }
#project-6 .rx-gal-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(20px, 2.5vw, 44px); column-gap: clamp(14px, 1.8vw, 36px); }
#project-6 .rx-gal-fig { margin: 0; display: flex; flex-direction: column; min-height: 0; min-width: 0; }
#project-6 .rx-gal-fig img { width: 100%; flex: 1 1 auto; min-height: 0; object-fit: cover; background: var(--card-bg); display: block; }
#project-6 [data-rx-zoom] { transition: opacity .4s var(--ease); }
#project-6 [data-rx-zoom]:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; }
@media (hover: hover) { #project-6 .rx-gal-fig:hover img { opacity: .82; } }
#project-6 .rx-gal-fig figcaption { flex: none; display: flex; justify-content: space-between; gap: 1rem; margin-top: .7rem; font-size: .6rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
#project-6 .rx-g1 { grid-column: 5 / 13; grid-row: 1 / 13; }
#project-6 .rx-g2 { grid-column: 1 / 4; grid-row: 2 / 10; }
#project-6 .rx-g3 { grid-column: 2 / 6; grid-row: 14 / 21; }
#project-6 .rx-g4 { grid-column: 7 / 10; grid-row: 15 / 21; }
#project-6 .rx-g5 { grid-column: 10 / 13; grid-row: 14 / 20; }
#project-6 .rx-g6 { grid-column: 1 / 7; grid-row: 23 / 33; }
@media (max-width: 760px) {
  #project-6 .rx-gal-head { flex-direction: column; gap: .7rem; margin-bottom: 2.2rem; }
  #project-6 .rx-gal-grid { grid-template-columns: 1fr; grid-auto-rows: auto; row-gap: 2.2rem; }
  #project-6 .rx-gal-fig { grid-column: 1 / -1 !important; grid-row: auto !important; }
  #project-6 .rx-gal-fig img { aspect-ratio: 16 / 11; flex: none; }
}
/* phones and narrow windows: the left panel first, the feature image underneath */
@media (max-width: 899px) {
  .pv__view[data-layout="split"] .pv__top { grid-template-columns: 1fr; height: auto; }
  .pv__left { padding: 5.2rem 1.5rem 3rem; }
  .pv__title { font-size: clamp(2.8rem, 14vw, 5rem); }
  .pv__small { height: auto; width: min(48vw, 240px); max-width: none; }
  .pv__left { padding-bottom: 2.2rem; }
  .pv__right { aspect-ratio: 4 / 5; margin-bottom: 6rem; }
}
/* ---------- the rest of a project page: challenge, four visuals, next project ---------- */
.pv__body { background: var(--panel); padding: clamp(4rem, 10vw, 9rem) var(--gutter) 0; display: grid; gap: clamp(4.5rem, 11vw, 10rem); }
.pvs { max-width: 1280px; width: 100%; margin-inline: auto; }
.pvs__kind { font-size: .6875rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.pvs--intro { display: grid; justify-items: center; text-align: center; gap: 1.4rem; max-width: 52rem; }
.pvs__lead { font-size: clamp(1.9rem, 4.4vw, 4rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.02; text-wrap: balance; }
.pvs__text { color: var(--muted); font-size: clamp(1rem, 1.25vw, 1.2rem); max-width: 46ch; }
.pvs__note { font-size: .8125rem; max-width: 52ch; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--muted); }
.pvs--l, .pvs--r { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.pvs--l .pvs__fig { order: 2; }
.pvs--l { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.pvs--l .pvs__copy { order: 1; }
.pvs__fig { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--card-bg); }
.pvs__fig img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.pvs__fig:hover img { transform: scale(1.04); }
.pvs__copy { display: grid; gap: 1.1rem; align-content: center; }
.pvs__title { font-size: clamp(1.6rem, 3vw, 2.8rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.05; text-wrap: balance; }
.pvs__head { font-size: clamp(1.05rem, 1.5vw, 1.4rem); font-weight: 500; letter-spacing: -.01em; }
.pvs__proves { font-size: .8125rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.pvs__proves span { font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-right: .6em; }
/* three random other projects, as full-width bands; the image grows on hover */
/* ---------- more projects: the Rico Supply list from the Pinterest pin, sideways ---------- */
.pvs--next { display: block; max-width: none; width: calc(100% + 2 * var(--gutter)); margin-inline: calc(var(--gutter) * -1); padding: 0; }
.nx { --w0: 300px; position: relative; height: clamp(520px, 88dvh, 820px); overflow: hidden; background: inherit; isolation: isolate; user-select: none; touch-action: pan-y; cursor: grab; }
.nx:active { cursor: grabbing; }
.nx__lab { position: absolute; left: var(--gutter); top: 2rem; z-index: 30; font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.nx__idx { position: absolute; right: var(--gutter); top: 2rem; z-index: 30; font-size: .75rem; letter-spacing: .1em; font-variant-numeric: tabular-nums; color: var(--muted); }
.nx__title { position: absolute; left: 0; right: 0; top: 52%; translate: 0 -50%; z-index: 0; text-align: center; white-space: nowrap; font-weight: 600; letter-spacing: -.055em; line-height: .9; color: var(--fg); pointer-events: none; }
.nx__strip { position: absolute; inset: 0; z-index: 1; }
.nx__i { position: absolute; left: 50%; top: 52%; height: calc(var(--w0) * 1.12); color: var(--fg); will-change: transform, width, opacity; }
.nx__img { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 3px; background: #161616; }
.nx__img img { position: absolute; left: 50%; top: 0; height: 100%; object-fit: cover; translate: -50% 0; max-width: none; }
.nx__cap { position: absolute; left: 0; right: 0; bottom: 100%; margin-bottom: .55rem; display: flex; justify-content: space-between; gap: .6rem; overflow: hidden; white-space: nowrap; font-size: .625rem; letter-spacing: .04em; border-bottom: 1px solid var(--line); padding-bottom: .35rem; }
.nx__cap em { font-style: normal; color: var(--muted); }
.nx__i:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; }
@media (max-width: 899px) { .nx { height: 150vw; min-height: 520px; } .nx__title { font-size: min(18vw, 15rem) !important; white-space: normal; padding: 0 .5rem; line-height: .95; } }

/* ---------- gallery (Mercedes, additional work) ---------- */
.ga-title { padding: 4.8rem var(--gutter) 0; text-align: center; font-size: clamp(3rem, 11vw, 12rem); font-weight: 600; letter-spacing: -.055em; line-height: .88; }
.pv__view[data-layout="gallery"] .pv__top { height: 100dvh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 1.4rem; padding-bottom: 6.2rem; overflow: hidden; background: var(--panel); }
.ga-row { display: grid; grid-template-columns: .7fr 1fr .7fr; gap: clamp(.8rem, 2vw, 2rem); padding: 0 var(--gutter); align-items: center; min-height: 0; }
.ga-row figure { margin: 0; overflow: hidden; border-radius: 4px; height: 100%; }
.ga-s { height: 70% !important; }
.ga-row img { width: 100%; height: 100%; object-fit: cover; }
.ga-foot { display: flex; justify-content: space-between; align-items: end; padding: 0 var(--gutter); }
.ga-foot .pv__cats { margin: 0; }
.ga-intro { max-width: 40rem; margin-inline: auto; text-align: center; display: grid; gap: 1.2rem; justify-items: center; }
.ga-intro h3 { font-size: clamp(1.8rem, 4vw, 3.4rem); font-weight: 600; letter-spacing: -.035em; }
.ga-intro p:not(.pvs__kind) { color: var(--muted); }
.ga-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2.4vw, 2.2rem); max-width: 1200px; margin-inline: auto; width: 100%; }
.ga-g { margin: 0; display: grid; gap: .6rem; }
.ga-g img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.ga-g:nth-child(even) { margin-top: 4rem; }
.ga-g figcaption { font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 899px) { .pv__view[data-layout="gallery"] .pv__top { height: auto; overflow: visible; } .ga-row { grid-template-columns: 1fr; } .ga-s { display: none; } .ga-row figure.ga-m { height: 70vw; } .ga-grid { grid-template-columns: 1fr; } .ga-g:nth-child(even) { margin-top: 0; } }

[data-rv] { opacity: 0; transform: translateY(34px); filter: blur(8px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease); }
[data-rv].is-in { opacity: 1; transform: none; filter: none; }
@media (max-width: 899px) {
  .pvs--l, .pvs--r { grid-template-columns: 1fr; gap: 1.4rem; }
  .pvs--l .pvs__fig, .pvs--l .pvs__copy { order: 0; }
}
@media (prefers-reduced-motion: reduce) { .mp__in, .mp img, .mp__n, .mp__t, .mp__in::before { transition: none; } [data-rv] { opacity: 1; transform: none; filter: none; transition: none; } .pvs__fig img { transition: none; } }


/* ==========================================================================
   Project page layouts (data-layout on each .pv__view): split (Fori), journal (Aimie Clinic), deck (Gombessa), poster (AFTER HOURS),
   shop (Alba de Caliz), cinema (Rolex Titanium), strip (Karisma / Porta Rai). Dark layouts re-point the colour variables.
   ========================================================================== */
.pv__view[data-layout="deck"], .pv__view[data-layout="poster"], .pv__view[data-layout="cinema"] {
  --panel: #0b0e0f; --fg: #f2f2ef; --muted: #9b9d99; --line: rgb(255 255 255 / .16); --card-bg: #1b1f20; background: var(--panel); color: var(--fg);
}
.pv__view[data-layout="strip"] { --panel: #efece6; background: var(--panel); }
.pv__view[data-layout="journal"] { --wine: #3b0a0a; }
html[data-theme="dark"] .pv__view[data-layout="strip"] { --panel: #1a1815; }
.pv__view:not([data-layout="split"]) .pv__top { position: relative; }
.pv__view[data-layout] .pvs__kind { margin: 0; }

/* ---------- journal (Aimie Clinic) ---------- */
.jr-name { text-align: left; padding-left: var(--gutter) !important; font-size: .8125rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; padding: 1.15rem 0 .9rem; }
.jr-top, .pv__view[data-layout="journal"] .pv__top { min-height: 100dvh; display: flex; flex-direction: column; background: var(--panel); }
.jr-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 0; height: 44dvh; margin-inline: var(--gutter); }
.jr-hero figure { margin: 0; overflow: hidden; }
.jr-hero img { width: 100%; height: 100%; object-fit: cover; }
.jr-statement { flex: 1; display: grid; justify-items: center; align-content: center; gap: .9rem; text-align: center; padding: 1.2rem var(--gutter) 6rem; }
.jr-lead { font-size: clamp(1.4rem, 2.7vw, 2.5rem); font-weight: 350; letter-spacing: -.02em; line-height: 1.12; max-width: 24ch; text-wrap: balance; }
.jr-sub { color: var(--muted); font-size: .9rem; max-width: 62ch; line-height: 1.55; }
.jr-bar { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--wine); color: #f3e6e2; width: calc(100% + 2 * var(--gutter)); margin-inline: calc(var(--gutter) * -1); }
.jr-bar button { border: 0; background: none; color: inherit; font: inherit; padding: 1rem; font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; transition: background-color .5s var(--ease); }
.jr-bar button:hover { background: rgb(255 255 255 / .08); }
.jr-offer { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 7rem); align-items: end; max-width: 1400px; margin-inline: auto; width: 100%; }
.jr-oh { font-size: clamp(1.4rem, 2.2vw, 2.1rem); font-weight: 400; letter-spacing: -.02em; line-height: 1.1; margin: .9rem 0 .8rem; }
.jr-or { font-size: 1rem; font-weight: 500; margin-bottom: .8rem; }
.jr-op { color: var(--muted); font-size: .9rem; line-height: 1.6; max-width: 46ch; }
.jr-ps { margin-top: 1.2rem; font-size: .8125rem; max-width: 46ch; }
.jr-ps span { font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-right: .6em; }
.jr-ni { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; height: min(62vh, 520px); }
.jr-n { position: relative; margin: 0; overflow: hidden; }
.jr-n img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.jr-n:hover img { transform: scale(1.06); }
.jr-n figcaption { position: absolute; left: .8rem; bottom: .8rem; color: #fff; font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; text-shadow: 0 1px 8px rgb(0 0 0 / .5); }
.jr-about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 7vw, 8rem); align-items: center; max-width: 1400px; margin-inline: auto; width: 100%; }
.jr-about figure { margin: 0; aspect-ratio: 1 / 1; overflow: hidden; }
.jr-about img { width: 100%; height: 100%; object-fit: cover; }
.jr-quote { text-align: center; max-width: 52rem; margin-inline: auto; display: grid; gap: 1.2rem; justify-items: center; }
.jr-quote h3 { font-size: clamp(1.6rem, 3.4vw, 3.1rem); font-weight: 350; letter-spacing: -.02em; line-height: 1.1; text-wrap: balance; }
.jr-trio { display: grid; grid-template-columns: 1fr 1.5fr 1fr; width: calc(100% + 2 * var(--gutter)); margin-inline: calc(var(--gutter) * -1); min-height: min(76vh, 640px); }
.jr-trio figure { margin: 0; overflow: hidden; }
.jr-trio img { width: 100%; height: 100%; object-fit: cover; }
.jr-wine { background: var(--wine); color: #f3e6e2; display: grid; align-content: center; justify-items: center; text-align: center; gap: 1.1rem; padding: 2.5rem clamp(1.5rem, 5vw, 5rem); }
.jr-wine h3 { font-size: clamp(1.4rem, 2.6vw, 2.4rem); font-weight: 350; letter-spacing: -.02em; line-height: 1.12; }
.jr-wine p { font-size: .9rem; line-height: 1.6; max-width: 40ch; color: #e3cfca; }
.jr-wine .pvs__kind, .jr-wine .jr-ps span { color: #c9a9a2; }
.jr-cards { max-width: 1400px; margin-inline: auto; width: 100%; display: grid; gap: 2.5rem; }
.jr-cg { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2.4vw, 2.2rem); }
.jr-card { display: grid; align-content: start; gap: .6rem; position: relative; }
.jr-card figure { margin: 0 0 .5rem; aspect-ratio: 4 / 5; overflow: hidden; }
.jr-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.jr-card:hover img { transform: scale(1.05); }
.jr-ck { font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.jr-card h4 { font-size: 1.05rem; font-weight: 500; letter-spacing: -.01em; line-height: 1.2; }
.jr-card p:not(.jr-ck) { font-size: .8125rem; color: var(--muted); line-height: 1.5; }
.jr-cb { display: none; }

/* ---------- deck (Gombessa): stacked rounded slides ---------- */
.pv__view[data-layout="deck"] .pv__top { padding: 4.6rem 0 0; }
.pv__view[data-layout="deck"] .pv__body { gap: clamp(1rem, 2.4vw, 2rem); padding-top: clamp(1rem, 2.4vw, 2rem); }
.dk-slide { position: relative; margin: 0 auto; width: min(100%, 168dvh); aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; isolation: isolate; }
.dk-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.dk-slide--title::after, .dk-slide--story::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(7 14 20 / .35), rgb(7 14 20 / .1) 40%, rgb(7 14 20 / .55)); }
.dk-title { position: absolute; left: 50%; top: 18%; translate: -50% 0; font-size: clamp(2.6rem, 8.2vw, 9rem); font-weight: 800; letter-spacing: -.035em; text-transform: uppercase; line-height: .9; color: #f5e9e4; text-align: center; white-space: nowrap; }
.dk-brand, .dk-tag { position: absolute; bottom: 1.6rem; font-size: .6875rem; letter-spacing: .08em; opacity: .85; color: #fff; }
.dk-brand { left: 2rem; } .dk-tag { right: 2rem; }
.dk-more { position: absolute; left: 50%; bottom: 1.5rem; translate: -50% 0; color: #fff; }
.dk-story { position: absolute; left: 6%; top: 11%; width: 24%; }
.dk-h { font-size: clamp(1rem, 1.7vw, 1.7rem); font-weight: 800; letter-spacing: -.01em; text-transform: uppercase; line-height: .95; color: #f5e9e4; }
.dk-h--s { font-size: clamp(1.2rem, 2.2vw, 2.2rem); margin: .6rem 0; }
.dk-em { margin-top: 1.1rem; font-size: clamp(.82rem, 1.1vw, 1.05rem); font-weight: 700; font-style: italic; line-height: 1.45; color: #f3ece8; }
.dk-cols { position: absolute; left: 36%; right: 5%; top: 11%; display: grid; grid-template-columns: 1fr 1fr; gap: 2.2rem; font-size: clamp(.72rem, .88vw, .92rem); line-height: 1.55; font-weight: 500; color: #eaf0f1; }
.dk-k { font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.dk-slide--black .dk-a { position: absolute; left: 11%; top: 8%; width: 24%; margin: 0; }
.dk-i1 { position: absolute; right: 12%; top: 8%; width: 46%; height: 36%; object-fit: cover; border-radius: 2px; }
.dk-i2 { position: absolute; left: 10%; bottom: 8%; width: 34%; height: 40%; object-fit: cover; border-radius: 2px; }
.dk-b { position: absolute; right: 13%; bottom: 8%; width: 36%; font-size: clamp(.72rem, .88vw, .92rem); line-height: 1.6; color: #d9dedf; }
.dk-ps { margin-top: .7rem; font-size: .7em; }
.dk-ps span { letter-spacing: .14em; text-transform: uppercase; opacity: .65; margin-right: .5em; }

/* ---------- poster (AFTER HOURS) ---------- */
.pv__view[data-layout="poster"] .pv__top { height: 100dvh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; padding: 4.6rem var(--gutter) 6.2rem; gap: 1.2rem; overflow: hidden; }
.po-title { font-size: clamp(3rem, 11.5vw, 14rem); font-weight: 800; letter-spacing: -.05em; line-height: .82; text-transform: uppercase; }
.po-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.6rem, 1.6vw, 1.6rem); min-height: 0; }
.po-row figure { position: relative; margin: 0; overflow: hidden; border-radius: 4px; min-height: 0; }
.po-row img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.po-row figure:hover img { transform: scale(1.05); }
.po-row figcaption { position: absolute; left: .9rem; top: .8rem; font-size: .75rem; letter-spacing: .14em; color: #fff; mix-blend-mode: difference; }
.po-foot { display: grid; grid-template-columns: 1fr auto auto; gap: 2rem; align-items: end; }
.po-tag { font-size: clamp(1.1rem, 2vw, 1.8rem); font-weight: 600; letter-spacing: -.02em; }
.po-foot .pv__cats { margin: 0; }
.po-intro { max-width: 52rem; margin-inline: auto; display: grid; gap: 1.2rem; justify-items: center; text-align: center; }
.po-intro h3 { font-size: clamp(2rem, 5vw, 4.6rem); font-weight: 800; letter-spacing: -.04em; line-height: .95; text-transform: uppercase; text-wrap: balance; }
.po-intro p:not(.pvs__kind):not(.pvs__note) { color: var(--muted); max-width: 46ch; }
.po-sec { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: end; max-width: 1400px; margin-inline: auto; width: 100%; }
.po-num { position: absolute; left: -.04em; top: -.62em; font-size: clamp(6rem, 17vw, 17rem); font-weight: 800; letter-spacing: -.06em; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgb(255 255 255 / .22); pointer-events: none; z-index: 0; }
.po-sec figure { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 4px; position: relative; z-index: 1; }
.po-sec img { width: 100%; height: 100%; object-fit: cover; }
.po-tx { display: grid; gap: .9rem; position: relative; z-index: 1; padding-bottom: .5rem; }
.po-tx h3 { font-size: clamp(1.6rem, 3vw, 2.8rem); font-weight: 800; letter-spacing: -.035em; line-height: .98; text-transform: uppercase; }
.po-sec:nth-child(odd) figure { order: 2; }

/* ---------- shop (Alba de Caliz) ---------- */
.pv__view[data-layout="shop"] .pv__top { display: grid; grid-template-columns: 1.1fr .9fr; height: 100dvh; }
.sh-img { margin: 0; min-height: 0; overflow: hidden; }
.sh-img img { width: 100%; height: 100%; object-fit: cover; }
.sh-info { display: flex; flex-direction: column; justify-content: center; gap: 1.4rem; padding: 5rem clamp(1.5rem, 5vw, 5.5rem) 6.5rem; background: var(--panel); }
.sh-info .pv__title { font-size: clamp(2.4rem, 5.2vw, 5.8rem); font-weight: 600; letter-spacing: -.04em; line-height: .95; text-wrap: balance; }
.sh-info .pv__cats { margin: 0; justify-content: start; grid-template-columns: repeat(2, minmax(0, 11rem)); }
.sh-info .pv__cats p { text-align: left; }
.sh-tag { font-size: 1.1rem; color: var(--muted); max-width: 26ch; }
.sh-info .pv__more { justify-self: start; padding-left: 0; }
.sh-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: clamp(2rem, 6vw, 6rem); max-width: 1400px; margin-inline: auto; width: 100%; align-items: start; }
.sh-side { position: sticky; top: 6rem; display: grid; gap: 1rem; }
.sh-side h3 { font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.02; }
.sh-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 3vw, 3rem) clamp(1rem, 2.4vw, 2.2rem); }
.sh-card { display: grid; gap: .6rem; align-content: start; transition: transform .8s var(--ease); }
.sh-card:nth-child(even) { margin-top: 3.5rem; }
.sh-card figure { margin: 0 0 .5rem; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--card-bg); }
.sh-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.sh-card:hover img { transform: scale(1.06); }
.sh-card h4 { font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }

/* ---------- cinema (Rolex Titanium) ---------- */
.pv__view[data-layout="cinema"] .pv__top { height: 100dvh; }
.cn-hero { position: relative; margin: 0; width: 100%; height: 100%; overflow: hidden; }
.cn-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cn-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(0 0 0 / .72), rgb(0 0 0 / 0) 55%); }
.cn-ov { position: absolute; z-index: 1; left: var(--gutter); right: var(--gutter); bottom: 6.5rem; display: flex; justify-content: space-between; align-items: end; gap: 2rem; color: #fff; }
.cn-title { font-size: clamp(2.8rem, 9vw, 10rem); font-weight: 300; letter-spacing: -.05em; line-height: .9; }
.cn-meta { display: grid; gap: .9rem; justify-items: end; text-align: right; }
.cn-meta .pv__cats { margin: 0; }
.cn-intro { max-width: 46rem; margin-inline: auto; text-align: center; display: grid; gap: 1.2rem; justify-items: center; padding-block: 3rem; }
.cn-intro h3 { font-size: clamp(1.8rem, 4vw, 3.6rem); font-weight: 300; letter-spacing: -.035em; line-height: 1.02; }
.cn-intro p:not(.pvs__kind):not(.pvs__note) { color: var(--muted); }
.cn-sec { position: relative; height: min(92dvh, 900px); width: calc(100% + 2 * var(--gutter)); margin-inline: calc(var(--gutter) * -1); overflow: hidden; }
.cn-sec > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cn-sec::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(0 0 0 / .62), rgb(0 0 0 / 0) 60%); }
.cn-tx { position: absolute; z-index: 1; left: var(--gutter); bottom: 4rem; max-width: 30rem; display: grid; gap: .8rem; color: #fff; }
.cn-tx h3 { font-size: clamp(1.8rem, 3.6vw, 3.4rem); font-weight: 300; letter-spacing: -.035em; line-height: 1; }
.cn-tx .pvs__kind, .cn-tx .pvs__text, .cn-tx .pvs__proves span { color: rgb(255 255 255 / .75); }
.cn-tx .pvs__proves { border-color: rgb(255 255 255 / .25); }

/* ---------- strip (Karisma / Porta Rai) ---------- */
.st-top { }
.pv__view[data-layout="strip"] .pv__top { height: 100dvh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; padding: 4.6rem var(--gutter) 6.2rem; gap: 1.4rem; overflow: hidden; }
.st-title { font-size: clamp(2.4rem, 7vw, 8rem); font-weight: 500; letter-spacing: -.05em; line-height: .88; max-width: 14ch; }
.st-row { display: grid; grid-template-columns: 1.1fr .8fr 1.1fr; gap: clamp(.8rem, 2vw, 2rem); align-items: end; min-height: 0; }
.st-row figure { margin: 0; overflow: hidden; border-radius: 3px; }
.st-a { height: 100%; } .st-b { height: 72%; } .st-c { height: 86%; }
.st-row img { width: 100%; height: 100%; object-fit: cover; }
.st-foot { display: grid; grid-template-columns: auto 1fr auto; gap: 2.5rem; align-items: end; }
.st-foot .pv__cats { margin: 0; }
.st-tag { font-size: clamp(1rem, 1.6vw, 1.5rem); font-weight: 500; letter-spacing: -.02em; justify-self: center; }
.st-intro { max-width: 46rem; margin-inline: auto; text-align: center; display: grid; gap: 1.2rem; justify-items: center; }
.st-intro h3 { font-size: clamp(1.8rem, 4vw, 3.6rem); font-weight: 500; letter-spacing: -.04em; line-height: 1; text-wrap: balance; }
.st-intro p:not(.pvs__kind):not(.pvs__note) { color: var(--muted); }
.st-sec { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem; align-items: center; max-width: 1400px; margin-inline: auto; width: 100%; }
.st-sec figure { margin: 0; grid-column: 2 / 7; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 3px; }
.st-sec img { width: 100%; height: 100%; object-fit: cover; }
.st-tx { grid-column: 8 / 12; display: grid; gap: .9rem; position: relative; }
.st-sec--1 figure { grid-column: 7 / 12; order: 2; margin-top: 5rem; }
.st-sec--1 .st-tx { grid-column: 2 / 6; order: 1; }
.st-num { font-size: clamp(3rem, 7vw, 7rem); font-weight: 300; letter-spacing: -.06em; line-height: .8; color: var(--muted); opacity: .55; }
.st-tx h3 { font-size: clamp(1.5rem, 2.8vw, 2.6rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.02; }

/* ---------- narrow screens: every layout collapses to one column ---------- */
@media (max-width: 899px) {
  .jr-hero { grid-template-columns: 1fr; height: auto; } .jr-hero figure { aspect-ratio: 4 / 3; } .jr-statement { padding-bottom: 3rem; } .pv__view[data-layout="journal"] .pv__top { min-height: 0; }
  .jr-offer, .jr-about { grid-template-columns: 1fr; } .jr-ni { height: 56vh; } .jr-trio { grid-template-columns: 1fr; } .jr-trio figure { aspect-ratio: 4 / 3; } .jr-cg { grid-template-columns: 1fr 1fr; }
  .jr-bar button { padding: .85rem .3rem; font-size: .5625rem; }
  .dk-slide { width: 100%; aspect-ratio: auto; min-height: 120vw; } .dk-slide--title { aspect-ratio: 4 / 5; min-height: 0; } .dk-title { white-space: normal; font-size: 15vw; top: 12%; width: 90%; }
  .dk-story, .dk-cols, .dk-slide--black .dk-a, .dk-b { position: relative; inset: auto; width: auto; left: auto; right: auto; top: auto; bottom: auto; margin: 1.4rem; font-size: .8rem; } .dk-cols { grid-template-columns: 1fr; font-size: .8rem; }
  .dk-i1, .dk-i2 { position: relative; inset: auto; width: calc(100% - 2.8rem); height: 42vw; margin: 0 1.4rem; display: block; }
  .pv__view[data-layout="poster"] .pv__top { height: auto; overflow: visible; } .po-row { height: 70vw; } .po-foot { grid-template-columns: 1fr; gap: 1rem; } .po-sec { grid-template-columns: 1fr; } .po-sec:nth-child(odd) figure { order: 0; } .po-num { top: -.5em; }
  .pv__view[data-layout="shop"] .pv__top { grid-template-columns: 1fr; height: auto; } .sh-img { height: 70vw; } .sh-info { padding: 2rem var(--gutter) 3rem; } .sh-wrap { grid-template-columns: 1fr; } .sh-side { position: static; } .sh-grid { grid-template-columns: 1fr; } .sh-card:nth-child(even) { margin-top: 0; }
  .pv__view[data-layout="cinema"] .pv__top { height: 100dvh; } .cn-ov { flex-direction: column; align-items: start; bottom: 6rem; } .cn-meta { justify-items: start; text-align: left; } .cn-sec { height: 80dvh; } .cn-tx { bottom: 5.5rem; }
  .pv__view[data-layout="strip"] .pv__top { height: auto; overflow: visible; } .st-row { height: 80vw; } .st-foot { grid-template-columns: 1fr; gap: 1rem; } .st-tag { justify-self: start; } .st-sec { display: grid; grid-template-columns: 1fr; } .st-sec figure, .st-sec--1 figure { grid-column: 1; order: 0; margin-top: 0; } .st-tx, .st-sec--1 .st-tx { grid-column: 1; order: 1; }
}
@media (prefers-reduced-motion: reduce) { .jr-n img, .jr-card img, .po-row img, .sh-card, .sh-card img { transition: none; } }


/* ---------- depth and reveals on the project pages ---------- */
.pv__body figure, .pv__body .dk-slide > img, .pv__body .cn-sec { overflow: hidden; }
[data-rv] figure, figure[data-rv] { clip-path: inset(9% 6% 9% 6% round 10px); transition: clip-path 1.7s cubic-bezier(.22, 1, .36, 1); }
[data-rv].is-in figure, figure[data-rv].is-in { clip-path: inset(0 0 0 0 round 0); }
@supports (animation-timeline: view()) {
  .pvs__fig img, .po-sec figure img, .sh-card figure img, .st-sec figure img, .jr-about img, .jr-n img, .jr-card img, .jr-trio img, .ga-g img, .dk-bg, .cn-sec > img {
    scale: 1.16; animation: pv-par linear both; animation-timeline: view(); animation-range: cover 0% cover 100%;
  }
  @keyframes pv-par { from { translate: 0 -6%; } to { translate: 0 6%; } }
}
.pvs__text, .jr-op, .jr-sub { font-size: clamp(1rem, 1.15vw, 1.125rem); line-height: 1.65; }
.pvs__head { font-size: clamp(1.15rem, 1.7vw, 1.6rem); line-height: 1.3; letter-spacing: -.015em; }
@media (prefers-reduced-motion: reduce) { [data-rv] figure, figure[data-rv] { clip-path: none; transition: none; } .pvs__fig img, .po-sec figure img, .sh-card figure img, .st-sec figure img, .jr-about img, .jr-n img, .jr-card img, .jr-trio img, .ga-g img, .dk-bg, .cn-sec > img { animation: none; scale: 1; } }


/* ---------- About: a welcome sequence, like the setup screens of a new Mac. One slide at a time, an orb that listens, Continue ---------- */
.panel--about { background: var(--bg); overflow: hidden; }
dialog.panel > .panel__close { position: fixed; z-index: 66; }
.ag__amb { position: absolute; inset: 0; z-index: 0; }
.ag { position: relative; z-index: 1; height: 100dvh; overflow: hidden; }
.ag { --ow: clamp(160px, 25vh, 260px); --oh: calc(var(--ow) * .5); }
.ag__orb { position: absolute; left: 50%; top: 34%; width: var(--ow); height: var(--oh); margin: calc(var(--oh) / -2) 0 0 calc(var(--ow) / -2); opacity: 0; filter: drop-shadow(0 20px 28px rgb(0 0 0 / .26));
  transition: top 1.5s cubic-bezier(.22, 1, .36, 1), transform 1.5s cubic-bezier(.22, 1, .36, 1); }
.ag.is-intro .ag__orb { top: 50%; transform: scale(2.1); }
.ag.is-small .ag__orb { top: 13%; transform: scale(.55); }
.ag__orb svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ag__orb.pulse { animation: ag-pop .9s cubic-bezier(.22, 1, .36, 1); }
@keyframes ag-pop { 0% { scale: 1; } 30% { scale: 1.07 .93; } 100% { scale: 1; } }
.ag__stage { position: absolute; inset: 0; }
.ag__s { position: absolute; left: 50%; top: 50%; width: min(38rem, 88vw); max-height: 62dvh; display: grid; gap: 1.1rem; justify-items: center; text-align: center; transform: translate(-50%, -50%); pointer-events: none; visibility: hidden;
  opacity: 0; filter: blur(16px); translate: 0 22px; transition: opacity .8s ease, filter .8s ease, translate .9s cubic-bezier(.22, 1, .36, 1), visibility 0s .9s; }
.ag__s.is-cur { visibility: visible; opacity: 1; filter: none; translate: 0 0; pointer-events: auto; transition-delay: .35s, .35s, .35s, 0s; overflow: auto; }
.ag__s.is-out { opacity: 0; filter: blur(16px); translate: 0 -22px; }
.ag__s:not(.ag__s--big) { top: 23%; height: 47dvh; max-height: none; align-content: center; transform: translate(-50%, 0); }
.ag__s--big { top: calc(34% + var(--oh) / 2 + 1.4rem); width: min(96vw, 84rem); transform: translate(-50%, 0); max-height: none; }
.ag__k { margin: 0; font-size: .6875rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.ag__h { margin: 0; font-size: clamp(1.9rem, 4.2vw, 3.6rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.04; color: var(--fg); text-wrap: balance; }
.ag__s--big .ag__h { font-size: clamp(1.5rem, min(6.4vw, 10.5vh), 6.4rem); letter-spacing: -.05em; white-space: nowrap; text-wrap: nowrap; }
/* the welcome line: one line, words arrive one by one and the line re-centres as it grows (after the Apple notification loop) */
.ag__s--big .ag__h .ag__w { max-width: 0; padding-right: 0; overflow: visible; transform: translateY(.42em) scale(.96); filter: blur(14px);
  transition: max-width 1s cubic-bezier(.22, 1, .36, 1), padding 1s cubic-bezier(.22, 1, .36, 1), opacity .7s ease, filter .9s ease, transform 1.1s cubic-bezier(.34, 1.4, .64, 1); }
.ag__s--big .ag__h .ag__w.on { max-width: 12em; padding-right: .24em; transform: none; filter: none; }
.ag__s--big .ag__h .ag__w:last-child.on { padding-right: 0; }
.ag__p { margin: 0; font-size: clamp(.98rem, 1.15vw, 1.1rem); line-height: 1.62; letter-spacing: -.005em; color: var(--muted); text-wrap: pretty; }
.ag__s--big .ag__p { font-size: clamp(1rem, min(1.8vw, 2.6vh), 1.6rem); color: var(--fg); }
.ag__s--lead .ag__p { font-size: clamp(1.25rem, 2.2vw, 2rem); line-height: 1.32; letter-spacing: -.025em; color: var(--fg); }
.ag__w { display: inline-block; opacity: 0; filter: blur(10px); transform: translateY(.3em); transition: opacity .7s ease, filter .7s ease, transform .8s cubic-bezier(.22, 1, .36, 1); white-space: pre; }
.ag__w.on { opacity: 1; filter: none; transform: none; }
.ag__act { margin-top: .6rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; }
.ag__btn--ghost { background: none; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
.ag__btn--ghost:hover { background: color-mix(in srgb, var(--fg) 8%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 40%, transparent); }
.ag__btn, .ag__next { display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem; padding: 0 2rem; border: 0; border-radius: 999px; background: var(--fg); color: var(--bg); font: inherit; font-size: .9375rem; font-weight: 500; letter-spacing: -.005em; cursor: pointer; text-decoration: none; transition: transform .5s var(--ease), opacity .5s ease; }
.ag__btn:hover, .ag__next:hover { transform: scale(1.04); } .ag__btn:active, .ag__next:active { transform: scale(.97); }
.ag__note { margin: .4rem 0 0; font-size: .75rem; line-height: 1.7; color: var(--muted); }
.ag__nav { position: absolute; left: 0; right: 0; bottom: max(7.4rem, 15dvh); display: grid; justify-items: center; gap: 1.2rem; opacity: 0; transform: translateY(14px); transition: opacity 1s ease, transform 1s cubic-bezier(.22, 1, .36, 1); pointer-events: none; }
.ag.is-nav .ag__nav { opacity: 1; transform: none; pointer-events: auto; }
.ag__row { display: flex; align-items: center; gap: 1.2rem; }
.ag__back { border: 0; background: none; color: var(--muted); font: inherit; font-size: .875rem; cursor: pointer; padding: .6rem .4rem; transition: opacity .4s; }
.ag__back:hover { color: var(--fg); } .ag.is-first .ag__back { opacity: 0; pointer-events: none; }
.ag__dots { display: flex; gap: .45rem; }
.ag__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--fg); opacity: .22; transition: opacity .5s ease, transform .5s cubic-bezier(.22, 1, .36, 1); }
.ag__dots i.on { opacity: 1; transform: scale(1.3); }
.ag.is-end .ag__next { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* ---- areas of expertise: six rows to click; each opens its own story in place ---- */
.ag__s--exp { width: min(46rem, 90vw); }
.ag__s--exp .ag__h { font-size: clamp(1.7rem, 3.3vw, 2.8rem); }
.ag__exp { list-style: none; margin: .5rem 0 0; padding: 0; width: 100%; display: grid; grid-template-columns: 1fr 1fr; column-gap: 2.4rem; text-align: left; transition: opacity .6s ease, filter .6s ease; }
.ag__xb { display: grid; grid-template-columns: 2rem 1fr auto; align-items: center; gap: .5rem; width: 100%; padding: .95rem .2rem; background: none; border: 0; border-top: 1px solid var(--line); color: var(--fg); font: inherit; font-size: 1rem; letter-spacing: -.012em; text-align: left; cursor: pointer; transition: padding .55s var(--ease), color .4s; }
.ag__exp li:nth-last-child(-n+2) .ag__xb { border-bottom: 1px solid var(--line); }
.ag__xb:hover { padding-left: .75rem; } .ag__xb:active { opacity: .6; }
.ag__xn { font-size: .6875rem; letter-spacing: .08em; color: var(--muted); }
.ag__xb svg { width: 1rem; height: 1rem; opacity: .3; transition: opacity .4s, transform .55s var(--ease); }
.ag__xb:hover svg { opacity: 1; transform: translate(2px, -2px); }
.ag__xb:focus-visible, .ag__xall:focus-visible, .ag__xnext:focus-visible, .ag__jump:focus-visible, .ag__ask button:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.ag__xd { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 1.1rem; padding: 0 .2rem; text-align: center; opacity: 0; visibility: hidden; filter: blur(14px); translate: 0 18px; transition: opacity .6s ease, filter .6s ease, translate .8s var(--ease), visibility 0s .8s; }
.ag__s--exp.is-detail .ag__xd { opacity: 1; visibility: visible; filter: none; translate: 0 0; transition-delay: .3s, .3s, .3s, 0s; }
.ag__s--exp.is-detail > .ag__k, .ag__s--exp.is-detail > .ag__h, .ag__s--exp.is-detail > .ag__p, .ag__s--exp.is-detail > .ag__exp { opacity: 0 !important; filter: blur(12px); pointer-events: none; transition: opacity .5s ease, filter .5s ease; }
.ag__xa { display: none; gap: 1rem; justify-items: center; } .ag__xa.is-on { display: grid; }
.ag__dh { margin: 0; font-size: clamp(1.7rem, 3.3vw, 2.8rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.06; color: var(--fg); text-wrap: balance; }
.ag__dp { margin: 0; font-size: clamp(.95rem, 1.1vw, 1.05rem); line-height: 1.62; color: var(--muted); text-wrap: pretty; }
.ag__xnav { display: flex; gap: 1.4rem; margin-top: .3rem; }
.ag__xall, .ag__xnext { border: 0; background: none; font: inherit; font-size: .875rem; cursor: pointer; padding: .4rem .2rem; color: var(--muted); transition: color .4s; }
.ag__xnext { color: var(--fg); } .ag__xall:hover, .ag__xnext:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 4px; }
.ag__xnav { visibility: hidden; } .ag__s--exp.is-detail .ag__xnav { visibility: visible; }
.ag__aux { display: flex; align-items: center; gap: 1.2rem; }
.ag__jump { color: var(--fg); } .ag__jump:hover { text-decoration: underline; text-underline-offset: 4px; }
.ag.is-first .ag__jump, .ag.is-chat .ag__jump { display: none; }
@media (max-width: 899px) { .ag__exp { grid-template-columns: 1fr; } .ag__exp li:nth-last-child(2) .ag__xb { border-bottom: 0; } .ag__xb { padding: .7rem .2rem; font-size: .95rem; } }
/* ---- the chat (last slide): the capsule listens, the composer replaces the dots and Continue ---- */
.ag__ask { display: none; width: min(36rem, 88vw); align-items: center; gap: .5rem; padding: .35rem .35rem .35rem 1.2rem; border-radius: 999px; background: color-mix(in srgb, var(--fg) 7%, transparent); border: 1px solid var(--line); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); transition: border-color .4s; }
.ag__ask:focus-within { border-color: color-mix(in srgb, var(--fg) 45%, transparent); }
.ag__ask input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--fg); font: inherit; font-size: 1rem; padding: .55rem 0; }
.ag__ask input::placeholder { color: var(--muted); }
.ag__ask button { flex: none; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%; background: var(--fg); color: var(--bg); cursor: pointer; transition: transform .4s var(--ease), opacity .3s; }
.ag__ask button svg { width: 1.1rem; height: 1.1rem; } .ag__ask button:hover { transform: scale(1.06); } .ag__ask button:disabled { opacity: .35; cursor: default; }
.ag.is-chat .ag__ask { display: flex; } .ag.is-chat .ag__dots, .ag.is-chat .ag__snd { display: none; }
.ag__s--chat { align-content: start; gap: .8rem; height: calc(100dvh - 23% - 16rem) !important; }
.ag__s--chat .ag__h { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
.ag__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: .3rem; transition: opacity .6s, max-height .6s; max-height: 8rem; }
.ag__chips button { font: inherit; font-size: .8125rem; color: var(--fg); background: none; border: 1px solid var(--line); border-radius: 999px; padding: .5rem .95rem; cursor: pointer; transition: background-color .35s, border-color .35s; }
.ag__chips button:hover { background: color-mix(in srgb, var(--fg) 8%, transparent); border-color: color-mix(in srgb, var(--fg) 40%, transparent); }
.ag__s--chat.has-msgs .ag__chips, .ag__s--chat.has-msgs .ag__p { opacity: 0; max-height: 0; overflow: hidden; margin: 0; pointer-events: none; }
.ag__msgs { width: 100%; display: grid; gap: 1rem; margin-top: .6rem; text-align: left; overflow: auto; max-height: 100%; scrollbar-width: thin; padding-bottom: .3rem; align-content: start; }
.ag__m { max-width: 92%; font-size: 1rem; line-height: 1.58; animation: ag-in .6s cubic-bezier(.22, 1, .36, 1) backwards; }
.ag__m--u { justify-self: end; background: var(--fg); color: var(--bg); padding: .6rem 1rem; border-radius: 18px 18px 4px 18px; }
.ag__m--a { justify-self: start; color: var(--fg); }
@keyframes ag-in { from { opacity: 0; transform: translateY(10px); filter: blur(6px); } }

.ag__snd { border: 0; background: none; color: var(--muted); font: inherit; font-size: .75rem; letter-spacing: .02em; cursor: pointer; padding: .3rem .5rem; transition: color .4s; }
.ag__snd:hover { color: var(--fg); } .ag__snd[aria-pressed="false"] { text-decoration: line-through; opacity: .7; }
.ag__btn:focus-visible, .ag__next:focus-visible, .ag__back:focus-visible, .ag__snd:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
@media (max-height: 640px) { .ag__dots { display: none; } .ag__nav { bottom: 6.2rem; gap: .5rem; } .ag__s:not(.ag__s--big) { height: calc(100dvh - 21% - 11rem); } }
@media (max-width: 899px) { .ag.is-small .ag__orb { top: 12%; } .ag__s:not(.ag__s--big) { top: 21%; height: calc(79dvh - 15rem); } .ag__nav { bottom: 7.6rem; } }
@media (prefers-reduced-motion: reduce) { .ag__s, .ag__orb, .ag__w, .ag__nav, .ag__dots i { transition: none !important; } .ag__orb.pulse { animation: none; } }

/* the zoom element that flies from the card to the page */
.zoomer { position: fixed; z-index: 65; overflow: hidden; margin: 0; pointer-events: none; will-change: left, top, width, height; border-radius: var(--radius); }
.zoomer img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .zoomer { display: none; } }

/* ==========================================================================
   Panels (About, Contact)
   ========================================================================== */
html:has(dialog[open]) { overflow: hidden; }
dialog.panel {
  position: fixed; inset: 0; z-index: 60;
  border: 0; padding: 0; margin: 0;
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  background: var(--bg); color: var(--fg);
  overflow: auto;
}
dialog.panel[open] { animation: panel-in .65s var(--ease) backwards; }
dialog.panel.is-closing { animation: panel-out .35s cubic-bezier(.55, 0, .9, .4) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes panel-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(16px); } }
.panel__inner {
  position: relative;
  display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-content: center;
  min-height: 100dvh; max-width: 1600px; margin-inline: auto;
  padding: calc(var(--nav-h) + 2rem) var(--gutter) 7rem;       /* room for the dock underneath */
}
.panel__close {
  --lens: url(#lg-close);
  position: absolute; top: 1rem; left: 50%; translate: -50% 0; z-index: 3;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; color: #fff;      /* white, like the dock icons */
}
.pv > .panel__close { position: fixed; top: 1rem; left: 50%; z-index: 66; }     /* stays put while the project scrolls */
.panel__x { position: relative; z-index: 1; display: grid; place-items: center; width: 100%; height: 100%; }
.panel__x svg { width: 22px; height: 22px; filter: drop-shadow(0 1px 2px rgb(0 0 0 / .35)); transition: transform .7s var(--ease); }
.panel__close:hover .panel__x svg { transform: rotate(90deg); }
.panel__close:focus-visible { outline: 1.5px solid var(--fg); outline-offset: 3px; }
dialog.panel:focus { outline: none; }
.section-title { font-size: clamp(2rem, 4.6vw, 4.25rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.05; }
.panel__text { display: grid; gap: 1.25rem; align-content: center; }
.panel__text .section-title { margin-bottom: .75rem; }
.panel__text p { color: var(--muted); font-size: clamp(1.0625rem, 1.5vw, 1.375rem); max-width: 42ch; }
.panel__media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 5; max-height: 76dvh; object-fit: cover; object-position: 50% 38%; }
@media (min-width: 900px) {
  .panel__inner:not(.panel__inner--solo):not(.panel__inner--wide) { grid-template-columns: 1.1fr .9fr; gap: clamp(3rem, 8vw, 8rem); align-items: center; }
}
.contact__mail {
  justify-self: start;
  font-size: clamp(1.75rem, 6.2vw, 6rem);
  font-weight: 600; letter-spacing: -.03em; line-height: 1.05;
  overflow-wrap: anywhere;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size .6s var(--ease);
}
.contact__mail:hover { background-size: 100% 2px; }
.panel__legal { color: var(--muted); font-size: .875rem; }
.panel__text .contact__mail { font-size: clamp(1.25rem, 2.4vw, 2rem); margin-top: 1.5rem; }
.panel__inner--wide { grid-template-columns: 1fr; align-content: start; }
.playground { columns: 2; column-gap: 1rem; }
.playground li { break-inside: avoid; margin-bottom: 1rem; }
.playground img { width: 100%; border-radius: var(--radius); transition: opacity .6s var(--ease-focus); }
.playground a { display: block; }
.playground a:hover img { opacity: .8; }
@media (min-width: 700px) { .playground { columns: 3; } }
@media (min-width: 1100px) { .playground { columns: 4; } }

/* ==========================================================================
   Reduced motion: no intro, no drift, no elastic ends
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .intro { display: none !important; }
  .card a { animation: none !important; }
  .layer { transform: none !important; }
  .card, .card a { transition: none !important; }
  .glass, .glass *, .follow, .follow *, .theme-toggle { transition: none !important; }
  .panel__x svg, .panel__close:hover .panel__x svg { transition: none; transform: none; }
  .field__intro { transition: none !important; }
  .glass::after { display: none; }
  dialog.panel[open], dialog.panel.is-closing { animation: none !important; }
}
@media (max-height: 560px) { .ag { --ow: clamp(110px, 22vh, 160px); } .ag__s--big .ag__h { font-size: clamp(1.5rem, min(6.4vw, 8.5vh), 4rem); } .ag__s--big .ag__p { display: none; } }

/* About, first slide: the welcome line alone, then "Creative Lead" melts in above it (goo filter, blur shrinking to 0) and the paragraph opens below. */
.ag__s--big.ag__s--intro { top: 50%; transform: translate(-50%, -50%); gap: 0; width: min(96vw, 84rem); }
.ag__lw, .ag__pw { display: grid; grid-template-rows: 0fr; justify-items: center; transition: grid-template-rows 1.4s cubic-bezier(.22, 1, .36, 1); }
.ag__lw.on, .ag__pw.on { grid-template-rows: 1fr; }
.ag__lw > *, .ag__pw > * { min-height: 0; overflow: hidden; }
.ag__lead { margin: 0; padding: .5rem 1rem; font-size: clamp(1rem, min(1.8vw, 2.6vh), 1.6rem); letter-spacing: -.01em; color: var(--fg); opacity: 0; transform: translateY(.9em) scale(.94); filter: url(#ag-liq);
  transition: opacity .5s ease, transform 1.7s cubic-bezier(.22, 1, .36, 1); }
.ag__lead.on { opacity: 1; transform: none; }
.ag__lead.done { filter: none; }
.ag__pin { display: grid; justify-items: center; }
.ag__pin > .ag__p { grid-area: 1 / 1; opacity: 0; transition: opacity .7s ease; }
.ag__pin > .ag__p.is-on { opacity: .82; }
.ag__s--big.ag__s--intro .ag__pin > .ag__p { display: block; max-width: 56rem; font-size: clamp(.95rem, min(1.25vw, 2.2vh), 1.15rem); line-height: 1.62; color: var(--fg); }
.ag.is-first .ag__back { display: none; }
.ag.is-first .ag__orb { opacity: 0 !important; }
.ag__orb { transition: top 1.5s cubic-bezier(.22, 1, .36, 1), transform 1.5s cubic-bezier(.22, 1, .36, 1), opacity .9s ease; }

/* the welcome line, after the "Text Animations" recording: the line is laid out whole; each letter rises out of a clip line below it, one after another, softening in as it lands */
.ag__s--big.ag__s--intro .ag__h { overflow: hidden; padding: .06em .12em .24em; margin: -.06em -.12em -.24em; }
.ag__s--big.ag__s--intro .ag__h .ag__w, .ag__s--big.ag__s--intro .ag__h .ag__w.on { max-width: none; padding: 0 .24em 0 0; opacity: 1; filter: none; transform: none; transition: none; }
.ag__s--big.ag__s--intro .ag__h .ag__w:last-child { padding-right: 0; }
.ag__c { display: inline-block; opacity: 0; filter: blur(6px); transform: translateY(125%);
  transition: transform .8s cubic-bezier(.16, 1, .3, 1), opacity .5s ease-out, filter .65s ease-out; will-change: transform; }
.ag__c.on { opacity: 1; filter: none; transform: none; }

/* the nav arrives in order: dots pop in one after another, then Continue rises in */
.ag.is-nav .ag__nav { transition: opacity .4s ease; transform: none; }
.ag:not(.is-dots) .ag__dots i { opacity: 0; transform: scale(.2) translateY(6px); filter: blur(4px); }
.ag__dots i { transition: opacity .6s ease, transform .8s cubic-bezier(.34, 1.56, .64, 1), filter .6s ease; }
.ag__next, .ag__back, .ag__aux { opacity: 0; transform: translateY(10px); filter: blur(6px); pointer-events: none; transition: opacity .8s ease, transform 1s cubic-bezier(.22, 1, .36, 1), filter .8s ease; }
.ag.is-cont .ag__next, .ag.is-cont .ag__back, .ag.is-cont .ag__aux { opacity: 1; transform: none; filter: none; pointer-events: auto; }

.ag__fp { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* narration: the mute button (liquid glass, like the close bubble) sits to the right of Continue and is there from the first word */
.ag.is-voice .ag__nav { opacity: 1; transform: none; pointer-events: auto; }
.ag__row { position: relative; }
.ag__mute { --lens: url(#lg-close); position: absolute; left: calc(100% + .9rem); top: calc(50% - 20px); width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; color: #fff; opacity: 0; scale: .6; filter: blur(6px);
  transition: opacity .8s ease, scale 1s cubic-bezier(.34, 1.56, .64, 1), filter .8s ease; pointer-events: none; }
.ag.is-voice .ag__mute { opacity: 1; scale: 1; filter: none; pointer-events: auto; }
.ag__mi { position: relative; z-index: 1; display: grid; place-items: center; width: 100%; height: 100%; }
.ag__mi svg { width: 19px; height: 19px; grid-area: 1 / 1; filter: drop-shadow(0 1px 2px rgb(0 0 0 / .35)); transition: opacity .35s ease, transform .5s cubic-bezier(.22, 1, .36, 1); }
.ag__off, .ag__mute[aria-pressed="true"] .ag__on { opacity: 0; transform: scale(.6); }
.ag__mute[aria-pressed="true"] .ag__off { opacity: 1; transform: none; }
.ag__mute:focus-visible { outline: 1.5px solid var(--fg); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .ag__pin { display: block; } .ag__pin > .ag__p { opacity: .82; margin-bottom: 1rem; } }

/* the narration stays on screen: every paragraph opens below the last (the block re-centres as it grows) and none is removed */
.ag__s--big.ag__s--intro { top: 47%; }
.ag__pin { display: block; width: min(60rem, 92vw); }
.ag__pin > .ag__p { display: block; grid-area: auto; max-height: 0; margin: 0 auto; overflow: hidden; opacity: 0;
  transition: max-height 1.2s cubic-bezier(.22, 1, .36, 1), margin .9s cubic-bezier(.22, 1, .36, 1), opacity .8s ease; }
.ag__pin > .ag__p.is-on { opacity: .82; margin-top: .75rem; }
.ag__s--big.ag__s--intro .ag__pin > .ag__p { max-width: 60rem; padding-bottom: 0; font-size: clamp(.86rem, min(1.08vw, 2vh), 1.02rem); line-height: 1.55; }
.ag__s--big.ag__s--intro { top: 41%; }
.ag.is-first .ag__nav { bottom: max(5.6rem, 11dvh); }

/* continuous text: the paragraphs run on as one block (words appear in place, so the block is laid out from the start) */
.ag__pin { display: block; width: min(62rem, 92vw); text-align: center; font-size: clamp(.86rem, min(1.08vw, 2vh), 1.02rem); line-height: 1.58; }
.ag__s--big.ag__s--intro .ag__pin > .ag__p { display: inline; max-width: none; max-height: none; margin: 0; opacity: 1; overflow: visible; font-size: inherit; line-height: inherit; }
.ag__s--big.ag__s--intro .ag__pin > .ag__p::after { content: ' '; }
.ag__pin > .ag__p.is-on { margin: 0; }
.ag__s--big.ag__s--intro { top: 44%; }
/* nav row: the mute button is alone and centred while the voice speaks; when Continue arrives it opens in from the left and pushes the button to the right */
.ag__row { gap: 0; justify-content: center; }
.ag__row::before { content: ''; flex: none; width: 0; transition: width 1.1s cubic-bezier(.22, 1, .36, 1); }
.ag.is-cont .ag__row::before { width: calc(40px + .9rem); }
.ag__next { flex: none; max-width: 0; padding-inline: 0; overflow: hidden; white-space: nowrap; transition: max-width 1.1s cubic-bezier(.22, 1, .36, 1), padding 1.1s cubic-bezier(.22, 1, .36, 1), opacity .8s ease .1s, transform 1s cubic-bezier(.22, 1, .36, 1), filter .8s ease .1s; }
.ag.is-cont .ag__next { max-width: 14rem; padding-inline: 2rem; }
.ag__back { flex: none; }
.ag.is-cont .ag__back { margin-right: 1.2rem; }
.ag__mute { position: relative; left: auto; top: auto; flex: none; margin-left: 0; transition: opacity .8s ease, scale 1s cubic-bezier(.34, 1.56, .64, 1), filter .8s ease, margin .9s cubic-bezier(.22, 1, .36, 1); }
.ag.is-cont .ag__mute { margin-left: .9rem; }

.ag__orb { display: none !important; }

.ag__gap { display: block; height: .8rem; }

/* tidy layout: the narration reads as short paragraphs in two even columns under the welcome line (single column on narrow screens) */
.ag__pin { display: block; width: min(64rem, 92vw); text-align: left; column-count: 2; column-gap: 3.6rem; font-size: clamp(.9rem, min(1.1vw, 2.1vh), 1.04rem); line-height: 1.62; text-wrap: pretty; }
.ag__s--big.ag__s--intro .ag__pin > .ag__p { display: block; margin: 0 0 .95rem; font-size: inherit; line-height: inherit; }
.ag__s--big.ag__s--intro .ag__pin > .ag__p::after { content: none; }
.ag__s--big.ag__s--intro .ag__pin > .ag__p.is-on { margin: 0 0 .95rem; }
.ag__s--big.ag__s--intro .ag__pin > .ag__p:first-child { font-size: 1.14em; font-weight: 500; letter-spacing: -.01em; line-height: 1.5; }
.ag__gap { display: none; }
.ag__s--big.ag__s--intro { top: 45%; }
@media (max-width: 760px) { .ag__pin { column-count: 1; } }
/* Continue + mute are one module, centred on the screen (no spacer to keep Continue alone in the middle) */
.ag.is-cont .ag__row::before { width: 0; }
.ag__pin { padding-top: 1.6rem; }

/* final layout: two centred paragraphs, one column, with room to breathe */
.ag__pin { width: min(48rem, 92vw); column-count: 1; text-align: center; font-size: clamp(.95rem, min(1.18vw, 2.2vh), 1.08rem); line-height: 1.72; padding-top: 1.7rem; }
.ag__s--big.ag__s--intro .ag__pin > .ag__p, .ag__s--big.ag__s--intro .ag__pin > .ag__p.is-on { margin: 0 0 1.35rem; }
.ag__s--big.ag__s--intro .ag__pin > .ag__p:last-child { margin-bottom: 0; }
.ag__s--big.ag__s--intro .ag__pin > .ag__p:first-child { font-size: inherit; font-weight: inherit; letter-spacing: inherit; line-height: inherit; }
.ag__s--big.ag__s--intro { top: 44%; }
.ag__s--big.ag__s--intro { top: 41%; }

/* wider measure, about 120 characters per line, two paragraphs with a clear gap */
.ag__pin { width: min(64rem, 92vw); font-size: clamp(.95rem, min(1.2vw, 2.25vh), 1.1rem); line-height: 1.7; }
.ag__s--big.ag__s--intro .ag__pin > .ag__p, .ag__s--big.ag__s--intro .ag__pin > .ag__p.is-on { margin: 0 0 1.7rem; }
.ag__s--big.ag__s--intro .ag__pin > .ag__p:last-child { margin-bottom: 0; }

/* wider measure: about 150 characters a line (the first line runs on to "...how I see creativity.") */
.ag__pin { width: min(78rem, 92vw); font-size: clamp(.9rem, min(1.1vw, 2.1vh), 1.04rem); }
/* the Continue / Back / mute row keeps one height on every slide, and the three buttons are the same height */
.ag.is-first .ag__nav { bottom: max(7.4rem, 15dvh); }
.ag__mute { width: 2.9rem; height: 2.9rem; top: auto; }
.ag.is-cont .ag__row::before { width: 0; }
.ag.is-first .ag__jump { display: inline-block; visibility: hidden; }

/* ---------- The end of the work: a soft tab on the right edge, turned 90 degrees. Click it and the field rushes back to the start. ---------- */
.endtab {
  position: fixed; right: var(--edge); top: 50%; z-index: 69; translate: 14px -50%; padding: 1rem .55rem; margin: 0; border: 0; background: none; cursor: pointer;
  color: #fff; mix-blend-mode: difference; display: flex; flex-direction: column; align-items: center; gap: .9rem;
  writing-mode: vertical-rl; font: inherit; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap;
  opacity: 0; filter: blur(8px); pointer-events: none; transition: opacity 1.1s var(--ease-soft), filter 1.1s var(--ease-soft), translate 1.3s var(--ease);
}
.endtab__t { font-weight: 600; letter-spacing: .26em; }
.endtab__d { width: 1px; height: 2.2rem; background: currentColor; opacity: .5; }
.endtab__s { opacity: .72; transition: opacity .4s ease; }
.endtab svg { width: 18px; height: 18px; writing-mode: horizontal-tb; opacity: .8; transition: transform .6s var(--ease); }
html.at-end.dock-in:not(.pv-open) .endtab { opacity: 1; filter: none; translate: 0 -50%; pointer-events: auto; }
body:has(dialog[open]) .endtab { opacity: 0 !important; pointer-events: none !important; }
.endtab:hover .endtab__s, .endtab:focus-visible .endtab__s { opacity: 1; }
.endtab:hover svg { transform: translateX(-5px); }
.endtab:focus-visible { outline: 1.5px solid #fff; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .endtab { transition: opacity .01s; filter: none; translate: 0 -50%; } }
/* the end tab is a frosted vertical pill (readable over photos), not a blend-mode label */
.endtab { mix-blend-mode: normal; color: var(--fg); padding: 1.15rem .7rem; border-radius: 999px; background: color-mix(in srgb, var(--bg) 70%, transparent); border: 1px solid rgb(127 127 127 / .2);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 10px 30px rgb(0 0 0 / .08); }
.endtab:focus-visible { outline: 1.5px solid var(--fg); }

/* the end tab, final: bare text, no bubble. "THE END" stands on the right edge (turned 90 degrees); after a beat it flips in 3D into "Scroll back to review the work" */
.endtab { mix-blend-mode: difference; color: #fff; padding: .8rem .5rem; border: 0; border-radius: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  display: grid; perspective: 700px; writing-mode: vertical-rl; gap: 0; }
.endtab__f { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; gap: .9rem; font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; white-space: nowrap; backface-visibility: hidden;
  transition: transform 1.35s cubic-bezier(.7, 0, .2, 1), opacity .9s ease; }
.endtab__a { font-weight: 600; font-size: .9rem; letter-spacing: .5em; transform: rotateY(0); opacity: 1; }
.endtab__b { transform: rotateY(90deg); opacity: 0; }
.endtab__b span { writing-mode: vertical-rl; }
.endtab.is-flip .endtab__a { transform: rotateY(-90deg); opacity: 0; }
.endtab.is-flip .endtab__b { transform: rotateY(0); opacity: 1; transition-delay: .25s; }
.endtab svg { writing-mode: horizontal-tb; width: 18px; height: 18px; transition: transform .6s var(--ease); }
.endtab:hover svg { transform: translateX(-5px); }
.endtab .endtab__s, .endtab .endtab__t, .endtab .endtab__d { all: unset; }
@media (prefers-reduced-motion: reduce) { .endtab__f { transition: none; } }
.endtab { mix-blend-mode: normal; color: var(--fg); right: calc(var(--edge) - .15rem); text-shadow: 0 0 10px color-mix(in srgb, var(--bg) 85%, transparent), 0 0 2px color-mix(in srgb, var(--bg) 70%, transparent); }
.endtab:focus-visible { outline: 1.5px solid var(--fg); outline-offset: 2px; }

/* page two: the title and the voice first, then the area buttons open one after another as the last sentence begins */
.ag__s--exp { width: min(52rem, 92vw); }
.ag__s--exp .ag__p { font-size: clamp(.98rem, 1.15vw, 1.1rem); line-height: 1.7; max-width: 46rem; }
.ag__s--exp .ag__exp { opacity: 0; filter: blur(10px); translate: 0 14px; pointer-events: none; transition: opacity .9s ease, filter .9s ease, translate 1s cubic-bezier(.22, 1, .36, 1); }
.ag__s--exp .ag__exp.is-in { opacity: 1; filter: none; translate: 0 0; pointer-events: auto; }
.ag__s--exp .ag__exp li { opacity: 0; translate: 0 10px; transition: opacity .7s ease, translate .9s cubic-bezier(.22, 1, .36, 1); }
.ag__s--exp .ag__exp.is-in li { opacity: 1; translate: 0 0; }
.ag__s--exp .ag__exp.is-in li:nth-child(1) { transition-delay: .05s; } .ag__s--exp .ag__exp.is-in li:nth-child(2) { transition-delay: .15s; } .ag__s--exp .ag__exp.is-in li:nth-child(3) { transition-delay: .25s; }
.ag__s--exp .ag__exp.is-in li:nth-child(4) { transition-delay: .35s; } .ag__s--exp .ag__exp.is-in li:nth-child(5) { transition-delay: .45s; } .ag__s--exp .ag__exp.is-in li:nth-child(6) { transition-delay: .55s; }
.ag__s--exp .ag__p { color: color-mix(in srgb, var(--fg) 82%, transparent); }

/* page two: two paragraphs with a clear gap ("My experience…" / "These are the disciplines…") */
.ag__nar { display: grid; gap: 1.15rem; justify-items: center; }
.ag__s--exp .ag__nar > .ag__p { margin: 0; }

/* the end tab flip, made robust: each face carries its own perspective() (no parent perspective needed, works in Safari too) */
.endtab { perspective: none; }
.endtab__f { -webkit-backface-visibility: hidden; backface-visibility: hidden; transition: transform 1.1s cubic-bezier(.7, 0, .2, 1), opacity .8s ease, filter .8s ease; font-size: .82rem; letter-spacing: .3em; }
.endtab__a { font-size: 1rem; letter-spacing: .55em; transform: perspective(600px) rotateY(0deg); }
.endtab__b { transform: perspective(600px) rotateY(95deg); opacity: 0; filter: blur(3px); }
.endtab.is-flip .endtab__a { transform: perspective(600px) rotateY(-95deg); opacity: 0; filter: blur(3px); }
.endtab.is-flip .endtab__b { transform: perspective(600px) rotateY(0deg); opacity: 1; filter: none; transition-delay: .3s; }

/* "Scroll back": the letters are pulled to the left, one after another, like something is tugging the word; they stretch toward the pull, snap back and settle, then it repeats.
   When it is clicked the pull gets much stronger while the field rushes back. */
.endtab__w { display: block; }
.endtab__w i { display: inline-block; font-style: normal; transform-origin: 100% 50%; will-change: transform; animation: endpull 2.6s cubic-bezier(.45, 0, .2, 1) infinite; animation-delay: calc(var(--i, 0) * 90ms); animation-play-state: paused; }
.endtab__w i.sp { width: .7em; height: .7em; animation: none !important; will-change: auto; background: none; visibility: hidden; }
.endtab.is-flip .endtab__w i { animation-play-state: running; }
@keyframes endpull {
  0%, 100% { transform: translateX(0) scaleX(1); }
  18% { transform: translateX(-7px) scaleX(2.3); }
  34% { transform: translateX(-2px) scaleX(.72); }
  48% { transform: translateX(1px) scaleX(1.12); }
  62% { transform: translateX(0) scaleX(1); }
}
.endtab.is-go .endtab__w i { animation: endgo .6s cubic-bezier(.55, 0, .25, 1) infinite; animation-delay: calc(var(--i, 0) * 28ms); animation-play-state: running; }
@keyframes endgo { 0%, 100% { transform: translateX(0) scaleX(1); } 45% { transform: translateX(-14px) scaleX(3.4); } 70% { transform: translateX(2px) scaleX(.6); } }
@media (prefers-reduced-motion: reduce) { .endtab__w i, .endtab.is-go .endtab__w i { animation: none; } }

/* area detail: the intro paragraphs now live inside .ag__nar, so they have to fade out with the rest */
.ag__s--exp.is-detail > .ag__nar { opacity: 0 !important; filter: blur(12px); pointer-events: none; transition: opacity .5s ease, filter .5s ease; }

/* "Scroll back": after the one-time flip from THE END, the word idles in place: it stretches to both sides, is pulled back in like an elastic, overshoots a little and settles; then it repeats */
.endtab__w { transform-origin: 50% 50%; will-change: transform; }
.endtab__w i { animation: none; }
.endtab.is-flip .endtab__w { animation: endelastic 2.8s infinite 1.5s; }
.endtab.is-go .endtab__w { animation: none; }
.endtab.is-go .endtab__w i { animation: endgo .6s cubic-bezier(.55, 0, .25, 1) infinite; animation-delay: calc(var(--i, 0) * 28ms); animation-play-state: running; }
@keyframes endelastic {
  0%   { transform: scale(1, 1);       animation-timing-function: cubic-bezier(.2, .7, .3, 1); }
  26%  { transform: scale(1.7, .93);   animation-timing-function: cubic-bezier(.5, 0, .3, 1); }
  42%  { transform: scale(.78, 1.04);  animation-timing-function: ease-in-out; }
  56%  { transform: scale(1.14, .99);  animation-timing-function: ease-in-out; }
  70%  { transform: scale(.96, 1);     animation-timing-function: ease-in-out; }
  82%, 100% { transform: scale(1, 1); }
}
@media (prefers-reduced-motion: reduce) { .endtab.is-flip .endtab__w { animation: none; } }

/* "Scroll back" idle, final: sideways only (no vertical change), slow like a real elastic, and a long rest (about 5s) between stretches. One 8s cycle: a slow stretch, a fast snap back, two small swings, then still. */
.endtab.is-flip .endtab__w { animation: endelastic 8s infinite 1.5s; }
/* Don't pin the letters to the compositor while idle — the browser promotes them automatically
   while they animate, so the rest of the page scrolls with fewer permanent GPU layers. */
.endtab__w, .endtab__w i { will-change: auto; }
@keyframes endelastic {
  0%   { transform: scaleX(1);    animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
  14%  { transform: scaleX(1.75); animation-timing-function: cubic-bezier(.6, 0, .25, 1); }
  22%  { transform: scaleX(.8);   animation-timing-function: ease-in-out; }
  29%  { transform: scaleX(1.12); animation-timing-function: ease-in-out; }
  35%  { transform: scaleX(.97);  animation-timing-function: ease-in-out; }
  40%, 100% { transform: scaleX(1); }
}

/* ==========================================================================
   Fori project page: animated visuals (all drawn in HTML/CSS, scaled with container units).
   The script adds .is-play while a figure is on screen, so each one replays when it comes back into view.
   ========================================================================== */
.fx {
  container-type: inline-size; position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  --ink: #141518; --warm: #f6f3ee; --cob: #2f5bff; --e: cubic-bezier(.22, 1, .36, 1);
  background: radial-gradient(120% 90% at 30% 0%, #2a2d34 0%, #17181c 70%); color: var(--warm);
}
.fx-lbl { font-size: 1.9cqw; color: rgb(20 21 24 / .6); line-height: 1.2; margin: 0; }
.fx-big { font-size: 6cqw; font-weight: 600; letter-spacing: -.04em; line-height: 1; margin: 0; color: var(--ink); }
.fx-sub { font-size: 1.9cqw; color: rgb(20 21 24 / .6); margin: 0; line-height: 1.2; }
.fx-bar { height: 1.4cqw; border-radius: 99px; background: rgb(20 21 24 / .1); overflow: hidden; }
.fx-bar i { display: block; height: 100%; width: 50%; border-radius: inherit; background: var(--cob); transform: scaleX(0); transform-origin: 0 50%; }
.fx.is-play .fx-bar i { animation: fxfill 1.4s var(--e) .5s forwards; }
@keyframes fxfill { to { transform: none; } }
@keyframes fxup { from { opacity: 0; transform: translateY(3cqw); } to { opacity: 1; transform: none; } }

/* 01 hero */
.fx--hero { background: radial-gradient(110% 90% at 70% 10%, #30343d 0%, #16171b 70%); }
.fx-desk { position: absolute; left: 5cqw; top: 14cqw; width: 64cqw; height: 46cqw; border-radius: 2cqw; background: #24262b; box-shadow: 0 2cqw 6cqw rgb(0 0 0 / .4); opacity: 0; }
.fx.is-play .fx-desk { animation: fxup 1s var(--e) forwards; }
.fx-desk > i { position: absolute; top: 2cqw; width: 1cqw; height: 1cqw; border-radius: 50%; background: #50535c; } .fx-desk > i:nth-child(1) { left: 2.4cqw; } .fx-desk > i:nth-child(2) { left: 4.4cqw; } .fx-desk > i:nth-child(3) { left: 6.4cqw; }
.fx-desk__bars { position: absolute; left: 5cqw; right: 22cqw; top: 10cqw; bottom: 5cqw; display: flex; align-items: flex-end; gap: 2cqw; }
.fx-desk__bars b { flex: 1; height: var(--h); border-radius: .8cqw .8cqw 0 0; background: linear-gradient(#5a7dff, #2f5bff 70%, #1f3fc2); transform: scaleY(0); transform-origin: 50% 100%; }
.fx.is-play .fx-desk__bars b { animation: fxgrow 1.3s var(--e) forwards; }
.fx-desk__bars b:nth-child(1) { animation-delay: .5s; } .fx-desk__bars b:nth-child(2) { animation-delay: .62s; } .fx-desk__bars b:nth-child(3) { animation-delay: .74s; } .fx-desk__bars b:nth-child(4) { animation-delay: .86s; } .fx-desk__bars b:nth-child(5) { animation-delay: .98s; } .fx-desk__bars b:nth-child(6) { animation-delay: 1.1s; }
@keyframes fxgrow { to { transform: none; } }
.fx-phone {
  position: absolute; left: 51cqw; top: 6cqw; width: 34cqw; height: 66cqw; border-radius: 5cqw; background: var(--warm); color: var(--ink);
  border: .9cqw solid #0a0a0c; box-shadow: 0 3cqw 8cqw rgb(0 0 0 / .55); padding: 6cqw 3.6cqw; display: flex; flex-direction: column; gap: 1.6cqw; opacity: 0;
}
.fx.is-play .fx-phone { animation: fxup 1s var(--e) .25s forwards, fxfloat 6s ease-in-out 1.4s infinite alternate; }
@keyframes fxfloat { to { translate: 0 -1.2cqw; } }
.fx-phone .fx-big { font-size: 8.5cqw; margin-top: 1.5cqw; }
.fx-row { display: grid; gap: 1.2cqw; font-size: 1.9cqw; margin-top: 1.4cqw; justify-items: start; }
.fx-pill { background: var(--cob); color: #fff; padding: .7cqw 1.6cqw; border-radius: 99px; font-size: 1.7cqw; }

/* 02 wireflow */
.fx--flow { aspect-ratio: 5 / 4; padding: 4cqw; display: flex; flex-direction: column; justify-content: space-between; }
.fx-flow { display: flex; align-items: flex-start; justify-content: space-between; }
.fx-fr { width: 14cqw; display: grid; gap: 1.4cqw; opacity: 0; }
.fx.is-play .fx-fr { animation: fxup .8s var(--e) calc(var(--i) * .3s) forwards; }
.fx-fr__s { height: 22cqw; border-radius: 1.6cqw; background: #2a2c32; border: 1px solid #3b3e47; padding: 2cqw; display: grid; align-content: start; gap: 1.2cqw; }
.fx-fr__s b { display: block; height: 1.3cqw; width: 55%; background: #9b9ea8; border-radius: 99px; }
.fx-fr__s u { display: block; height: 2.6cqw; border-radius: .8cqw; background: #3d4048; }
.fx-fr__s em { display: block; height: 6cqw; border-radius: 1cqw; background: repeating-linear-gradient(90deg, #4a4e58 0 .5cqw, transparent .5cqw 1.6cqw); }
.fx-fr__s s { display: block; justify-self: center; width: 5cqw; height: 5cqw; margin-top: 3cqw; border-radius: 50%; background: #3d4048; }
.fx-fr span { font-size: 1.45cqw; color: #a8abb4; text-align: center; line-height: 1.25; }
.fx-ar { align-self: flex-start; margin-top: 11cqw; width: 5.5cqw; height: 1px; background: #7b7e88; position: relative; transform: scaleX(0); transform-origin: 0 50%; }
.fx-ar::after { content: ""; position: absolute; right: 0; top: -.4cqw; width: .8cqw; height: .8cqw; border-top: 1px solid #7b7e88; border-right: 1px solid #7b7e88; transform: rotate(45deg); }
.fx.is-play .fx-ar { animation: fxgrow .5s var(--e) calc(var(--i) * .3s + .4s) forwards; }
.fx.is-play .fx-flow .fx-fr__s { animation: fxhl 5s linear calc(2.2s + var(--i) * 1s) infinite; }
@keyframes fxhl { 0%, 16% { border-color: var(--cob); box-shadow: 0 0 0 .35cqw rgb(47 91 255 / .55); } 22%, 100% { border-color: #3b3e47; box-shadow: none; } }
.fx-alt p { margin: 0 0 1.6cqw; font-size: 1.8cqw; } .fx-alt small { color: #8d909a; font-size: inherit; }
.fx-alt__f { position: relative; display: inline-flex; gap: 2cqw; }
.fx-alt .fx-fr__s { width: 10cqw; height: 11cqw; border-style: dashed; opacity: .65; }
.fx-strike { position: absolute; left: -1cqw; right: -1cqw; top: 50%; height: 2px; background: #ff6b5e; transform: scaleX(0) rotate(-4deg); transform-origin: 0 50%; }
.fx.is-play .fx-strike { animation: fxstrike .7s var(--e) 2.2s forwards; }
@keyframes fxstrike { to { transform: scaleX(1) rotate(-4deg); } }
.fx-notes { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.2cqw 3cqw; }
.fx-notes li { font-size: 1.7cqw; color: #cfd2d9; display: flex; align-items: center; gap: 1cqw; opacity: 0; }
.fx-notes li::before { content: ""; width: 1cqw; height: 1cqw; border-radius: 50%; background: var(--cob); }
.fx.is-play .fx-notes li { animation: fxup .8s var(--e) calc(2.6s + var(--i) * .3s) forwards; }

/* 03 screens */
.fx--screens { aspect-ratio: 5 / 4.4; padding: 4cqw; display: flex; flex-direction: column; gap: 4cqw; }
.fx-trio { display: flex; gap: 3cqw; justify-content: center; }
.fx-scr { width: 26cqw; height: 42cqw; border-radius: 3.5cqw; background: var(--warm); color: var(--ink); padding: 4cqw 3cqw; display: flex; flex-direction: column; gap: 1.2cqw; opacity: 0; }
.fx.is-play .fx-scr { animation: fxup .9s var(--e) calc(var(--i, 0) * .18s + .1s) forwards; }
.fx-scr .fx-big { font-size: 5.6cqw; margin: .6cqw 0; }
.fx-scr--sm { height: auto; padding: 2.4cqw; border-radius: 1.8cqw; }
.fx-scr--ok { align-items: center; justify-content: center; text-align: center; }
.fx-scr--ok .fx-bar { width: 80%; margin-top: 1.4cqw; }
.fx-check { width: 8cqw; height: 8cqw; border-radius: 50%; background: var(--cob); margin: 0 0 1.4cqw; position: relative; transform: scale(0); }
.fx.is-play .fx-check { animation: fxpop .6s cubic-bezier(.34, 1.56, .64, 1) 1s forwards; }
@keyframes fxpop { to { transform: none; } }
.fx-check::after { content: ""; position: absolute; left: 2.7cqw; top: 1.6cqw; width: 1.7cqw; height: 3.4cqw; border: solid #fff; border-width: 0 .6cqw .6cqw 0; transform: rotate(45deg); }
.fx-resp { display: flex; gap: 4cqw; flex: 1; align-items: flex-start; }
.fx-resp .fx-scr--sm { width: 24cqw; flex: none; }
.fx-wide { flex: 1; border-radius: 1.8cqw; background: var(--warm); color: var(--ink); display: grid; grid-template-columns: 1fr 1fr; gap: 3cqw; padding: 2.4cqw; opacity: 0; }
.fx.is-play .fx-wide { animation: fxup .9s var(--e) .8s forwards; }
.fx-wide .fx-big { font-size: 5cqw; }
.fx-swap { display: grid; } .fx-swap > span { grid-area: 1 / 1; } .fx-swap > span:last-child { opacity: 0; }
.fx.is-play .fx-swap > span:first-child { animation: fxswa 6s ease-in-out 1.6s infinite; } .fx.is-play .fx-swap > span:last-child { animation: fxswb 6s ease-in-out 1.6s infinite; }
@keyframes fxswa { 0%, 40% { opacity: 1; transform: none; } 50%, 90% { opacity: 0; transform: translateY(-1cqw); } 100% { opacity: 1; transform: none; } }
@keyframes fxswb { 0%, 40% { opacity: 0; transform: translateY(1cqw); } 50%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(1cqw); } }
.fx-slide { position: relative; height: .8cqw; border-radius: 99px; background: rgb(20 21 24 / .12); margin: 2.4cqw 0 1.6cqw; }
.fx-slide i { position: absolute; top: 50%; left: 78%; width: 2.6cqw; height: 2.6cqw; border-radius: 50%; background: var(--cob); transform: translate(-50%, -50%); box-shadow: 0 .4cqw 1cqw rgb(47 91 255 / .5); }
.fx.is-play .fx-slide i { animation: fxknob 6s ease-in-out 1.6s infinite; }
@keyframes fxknob { 0%, 40% { left: 78%; } 50%, 90% { left: 56%; } 100% { left: 78%; } }
.fx-tl { height: 1.6cqw; border-radius: 99px; background: rgb(20 21 24 / .1); margin: 1.4cqw 0; overflow: hidden; }
.fx-tl i { display: block; height: 100%; width: 80%; border-radius: inherit; background: var(--cob); }
.fx.is-play .fx-tl i { animation: fxtl 6s ease-in-out 1.6s infinite; }
@keyframes fxtl { 0%, 40% { width: 80%; } 50%, 90% { width: 100%; } 100% { width: 80%; } }

/* 04 system */
.fx--system { padding: 4cqw; display: flex; flex-direction: column; gap: 4cqw; }
.fx-board { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 3cqw; flex: 1; }
.fx-col { border-radius: 1.6cqw; background: #25272c; padding: 2.4cqw; opacity: 0; }
.fx.is-play .fx-col { animation: fxup .9s var(--e) calc(var(--i) * .2s + .1s) forwards; }
.fx-col h4 { margin: 0 0 2cqw; font-size: 1.4cqw; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #8d909a; }
.fx-type { margin: 0; font-size: 9cqw; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.fx-sw { display: flex; gap: 1cqw; margin-top: 2cqw; } .fx-sw i { width: 3cqw; height: 3cqw; border-radius: 50%; }
.fx-sw i:nth-child(1) { background: var(--warm); } .fx-sw i:nth-child(2) { background: var(--cob); } .fx-sw i:nth-child(3) { background: #0f1013; box-shadow: inset 0 0 0 1px #4a4d56; } .fx-sw i:nth-child(4) { background: #8d909a; }
.fx-sp { display: flex; align-items: flex-end; gap: 1cqw; margin-top: 2cqw; } .fx-sp i { width: 1.4cqw; background: #8d909a; border-radius: 2px; } .fx-sp i:nth-child(1) { height: 2cqw; } .fx-sp i:nth-child(2) { height: 4cqw; } .fx-sp i:nth-child(3) { height: 7cqw; }
.fx-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1cqw; }
.fx-col li { font-size: 1.65cqw; padding: 1.1cqw 1.5cqw; border-radius: 1cqw; background: #32353c; }
.fx.is-play .fx-col li { animation: fxlit 5s linear calc(1.8s + var(--k, 0) * 1s) infinite; }
.fx-col li:nth-child(2) { --k: 1; } .fx-col li:nth-child(3) { --k: 2; } .fx-col li:nth-child(4) { --k: 3; } .fx-col li:nth-child(5) { --k: 4; }
@keyframes fxlit { 0%, 16% { background: var(--cob); } 22%, 100% { background: #32353c; } }
.fx .fx-col .fx-scr--sm, .fx.is-play .fx-col .fx-scr--sm { width: 100%; opacity: 1; animation: none; }
.fx-col .fx-scr--sm .fx-big { font-size: 4.2cqw; } .fx-col .fx-scr--sm .fx-lbl { font-size: 1.5cqw; }
.fx-states { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3cqw; }
.fx-st span { display: block; font-size: 1.4cqw; color: #8d909a; margin-bottom: .8cqw; }
.fx-st i { display: block; font-style: normal; padding: 1.5cqw 2cqw; border-radius: 1.2cqw; background: var(--warm); color: var(--ink); font-size: 2cqw; border: .3cqw solid transparent; transition: none; }
.fx-st:nth-child(3) i { color: #d92d3a; }
.fx.is-play .fx-st i { animation: fxst 6s ease-in-out calc(1.4s + var(--s, 0) * 2s) infinite; }
.fx-st:nth-child(2) { --s: 1; } .fx-st:nth-child(3) { --s: 2; }
.fx-st:nth-child(1) i { --c: #b9b4a8; } .fx-st:nth-child(2) i { --c: var(--cob); } .fx-st:nth-child(3) i { --c: #d92d3a; }
@keyframes fxst { 0%, 28% { border-color: var(--c); box-shadow: 0 0 0 .5cqw color-mix(in srgb, var(--c) 35%, transparent); transform: translateY(-.5cqw); } 34%, 100% { border-color: transparent; box-shadow: none; transform: none; } }

/* 05 working demo */
.fx--demo { aspect-ratio: auto; padding: clamp(1rem, 5cqw, 2.4rem); background: radial-gradient(120% 90% at 20% 0%, #323640 0%, #17181c 70%); }
.fx-win { background: var(--warm); color: var(--ink); border-radius: 12px; overflow: hidden; box-shadow: 0 1.6rem 3rem rgb(0 0 0 / .4); opacity: 0; }
.fx.is-play .fx-win { animation: fxup 1s var(--e) forwards; }
.fx-win__bar { display: flex; align-items: center; gap: .4rem; padding: .7rem .9rem; background: #e7e3da; font-size: .75rem; color: #6a675f; }
.fx-win__bar i { width: .6rem; height: .6rem; border-radius: 50%; background: #c9c4b8; } .fx-win__bar span { margin-left: .6rem; }
.fx-app { padding: clamp(1rem, 4cqw, 1.6rem); display: grid; gap: 1rem; font-size: .9rem; }
.fx-app .fx-lbl { font-size: .8rem; } .fx-app .fx-big { font-size: clamp(1.8rem, 7cqw, 2.8rem); } .fx-app .fx-big small { font-size: .9rem; font-weight: 400; color: rgb(20 21 24 / .55); letter-spacing: 0; }
.fx-app__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; } .fx-app__out { margin: 0; font-size: .85rem; color: rgb(20 21 24 / .6); }
.fx-app__out b { font-size: clamp(1.6rem, 6cqw, 2.4rem); font-weight: 600; letter-spacing: -.03em; color: var(--cob); display: inline-block; }
.fx-app__out b.is-pop { animation: fxnum .5s var(--e); } @keyframes fxnum { from { transform: translateY(.5rem); opacity: 0; } to { transform: none; opacity: 1; } }
.fx-bar--lg { height: .5rem; }
.fx-field { display: grid; gap: .45rem; } .fx-field > span { font-size: .8rem; color: rgb(20 21 24 / .6); }
.fx-step { display: flex; align-items: stretch; border: 1.5px solid #cfcac0; border-radius: 10px; background: #fff; overflow: hidden; transition: border-color .25s, box-shadow .25s; }
.fx-step:focus-within { border-color: var(--cob); box-shadow: 0 0 0 3px rgb(47 91 255 / .2); }
.fx-step.is-bad { border-color: #d92d3a; box-shadow: 0 0 0 3px rgb(217 45 58 / .15); }
.fx-step input { flex: 1; min-width: 0; border: 0; outline: 0; text-align: center; font: inherit; font-size: 1.15rem; font-weight: 600; padding: .65rem .4rem; background: transparent; color: var(--ink); }
.fx-step button { width: 2.8rem; border: 0; background: #f0ede6; font-size: 1.2rem; cursor: pointer; color: var(--ink); transition: background .2s; } .fx-step button:hover { background: #e4e0d6; }
.fx-msg { margin: 0; min-height: 1.3em; font-size: .8rem; color: rgb(20 21 24 / .6); transition: color .25s; } .fx-msg.is-bad { color: #d92d3a; } .fx-msg.is-ok { color: #1f8a4c; }
.fx-btns { display: flex; gap: .6rem; }
.fx-btns button { border: 0; font: inherit; font-weight: 550; font-size: .85rem; padding: .7rem 1.2rem; border-radius: 99px; background: var(--ink); color: #fff; cursor: pointer; transition: transform .25s var(--e), opacity .2s; } .fx-btns button:hover { transform: translateY(-1px); } .fx-btns button.is-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px #cfcac0; }

/* 06 brand */
.fx--brand { padding: 4cqw; display: grid; grid-template-columns: 58fr 31fr; grid-template-rows: 36fr 26fr; gap: 3cqw; background: #101115; }
.fx--brand > div { position: relative; border-radius: 1.6cqw; overflow: hidden; padding: 3cqw; opacity: 0; }
.fx.is-play.fx--brand > div { animation: fxup .9s var(--e) forwards; } .fx.is-play .fx-port { animation-delay: .15s; } .fx.is-play .fx-cover { animation-delay: .3s; } .fx.is-play .fx-motion { animation-delay: .45s; }
.fx-hero2 { background: linear-gradient(135deg, #1b2a78, #2f5bff); color: #fff; } .fx-hero2 p { margin: 0; font-size: 4.4cqw; font-weight: 600; letter-spacing: -.035em; line-height: 1.02; max-width: 70%; }
.fx-port { background: var(--warm); color: var(--ink); } .fx-port p { margin: 0; font-size: 3cqw; font-weight: 600; letter-spacing: -.03em; line-height: 1.05; }
.fx-cover { background: #ece8df; color: var(--ink); display: flex; flex-direction: column; justify-content: space-between; } .fx-cover p { margin: 0; font-size: 3cqw; font-weight: 600; letter-spacing: -.03em; line-height: 1.05; max-width: 80%; } .fx-cover small { font-size: 1.5cqw; letter-spacing: .16em; text-transform: uppercase; }
.fx-units { position: absolute; left: 3cqw; right: 3cqw; bottom: 3cqw; display: flex; gap: 1cqw; } .fx-units i { flex: 1; height: 2.6cqw; border-radius: 99px; background: #fff; opacity: 0; transform: scale(.3); }
.fx-port .fx-units { left: auto; right: 3cqw; bottom: 3cqw; width: 4cqw; flex-direction: column-reverse; } .fx-port .fx-units i { flex: none; height: 1.6cqw; background: var(--cob); }
.fx.is-play .fx-units i { animation: fxunit 7s var(--e) calc(var(--i) * .22s + .8s) infinite; }
@keyframes fxunit { 0% { opacity: 0; transform: scale(.3); } 8%, 78% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; transform: scale(.3); } }
.fx-motion { background: #15161a; display: grid; align-content: center; gap: 2cqw; }
.fx-m__u { display: flex; gap: 1cqw; } .fx-m__u i { width: 2.2cqw; height: 2.2cqw; border-radius: 50%; background: #fff; opacity: 0; transform: scale(.2); }
.fx.is-play .fx-m__u i { animation: fxunit 8s var(--e) infinite; } .fx-m__u i:nth-child(2) { animation-delay: .25s !important; } .fx-m__u i:nth-child(3) { animation-delay: .5s !important; } .fx-m__u i:nth-child(4) { animation-delay: .75s !important; } .fx-m__u i:nth-child(5) { animation-delay: 1s !important; } .fx-m__u i:nth-child(6) { animation-delay: 1.25s !important; }
.fx-m__bar { height: 1.4cqw; border-radius: 99px; background: #2a2c33; overflow: hidden; } .fx-m__bar i { display: block; height: 100%; width: 100%; background: var(--cob); transform: scaleX(0); transform-origin: 0 50%; }
.fx.is-play .fx-m__bar i { animation: fxmbar 8s var(--e) infinite; } @keyframes fxmbar { 0%, 18% { transform: scaleX(0); } 40%, 80% { transform: scaleX(.5); } 92%, 100% { transform: scaleX(0); } }
.fx-m__ui { display: flex; align-items: baseline; justify-content: space-between; opacity: 0; } .fx-m__ui b { font-size: 3.4cqw; letter-spacing: -.03em; } .fx-m__ui span { font-size: 1.6cqw; color: #a8abb4; }
.fx.is-play .fx-m__ui { animation: fxmui 8s var(--e) infinite; } @keyframes fxmui { 0%, 38% { opacity: 0; transform: translateY(1cqw); } 50%, 80% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .fx *, .fx { animation: none !important; transition: none !important; }
  .fx-desk, .fx-phone, .fx-fr, .fx-notes li, .fx-scr, .fx-wide, .fx-col, .fx-win, .fx--brand > div, .fx-m__ui, .fx-units i, .fx-m__u i { opacity: 1 !important; transform: none !important; }
  .fx-desk__bars b, .fx-bar i, .fx-ar, .fx-m__bar i, .fx-check { transform: none !important; }
}

/* Fori: the feature image carries its own dashboard in the middle, so the caption sits at the bottom instead of over it */
#project-1 .pv__bigtext { place-content: end center; padding-bottom: clamp(3.2rem, 8.5dvh, 5.2rem); }
#project-1 .pv__bigtext p { max-width: none; font-size: clamp(1.3rem, 2vw, 2rem); font-weight: 550; letter-spacing: -.025em; }
/* Apple-style reveal for the title and the caption: word by word, each rising out of a blur (replays every time the project opens) */
#project-1 .w { display: inline-block; padding: .06em 0 .28em; margin: -.06em 0 -.28em; opacity: 0; transform: translateY(.38em) scale(.97); filter: blur(10px); transform-origin: 0 100%; }
#project-1.is-current .pv__title .w { animation: fwrise 1.1s cubic-bezier(.22, 1, .36, 1) calc(.45s + var(--i) * .1s) forwards; }
#project-1.is-current .pv__bigtext .w { animation: fwrise 1.1s cubic-bezier(.22, 1, .36, 1) calc(1.3s + var(--i) * .08s) forwards; }
@keyframes fwrise { to { opacity: 1; transform: none; filter: none; } }
@media (prefers-reduced-motion: reduce) { #project-1 .w { opacity: 1; transform: none; filter: none; animation: none !important; } }

/* ==========================================================================
   Fori feature panel, built in code: an organic blue / black / silver background that drifts, blurs and parallaxes,
   with the liquid-glass card as a separate layer above it. 1u = 1% of the panel height, so everything scales together.
   ========================================================================== */
.fg { position: absolute; inset: 0; container-type: size; overflow: hidden; background: #c3cbd9; }
.fg__stage { position: absolute; inset: 0; --u: min(1cqh, 1.18cqw); }
.fg__bg { position: absolute; inset: -22%; }
.fg__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(75% 75% at 50% 50%, transparent 40%, rgb(210 217 230 / .55) 100%); pointer-events: none; }
.fg__l { position: absolute; inset: 0; will-change: translate;
  translate: calc(var(--px, 0) * var(--d) * -5 * var(--u)) calc((var(--py, 0) + var(--sy, 0)) * var(--d) * -5 * var(--u)); }
.fg__l i {
  position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); border-radius: 99px; background: var(--c);
  filter: blur(calc(var(--b) * var(--u))); transform: rotate(var(--r)); animation: fgdrift var(--t) ease-in-out infinite alternate;
}
.fg__l:nth-child(2) i { animation-direction: alternate-reverse; filter: blur(calc(3.6 * var(--u))); }
.fg__l:nth-child(3) i { filter: blur(calc(1.4 * var(--u))); }
@keyframes fgdrift { to { transform: translate(var(--dx), var(--dy)) rotate(calc(var(--r) + 4deg)) scaleX(1.14); } }

.fg__card {
  position: absolute; left: 50%; top: 50%; width: calc(41.9 * var(--u)); height: calc(54 * var(--u)); border-radius: calc(6.2 * var(--u));
  color: #fff; font-weight: 300; letter-spacing: -.01em; text-shadow: 0 0 calc(1.2 * var(--u)) rgb(0 5 30 / .4);
  background: radial-gradient(70% 38% at 18% 0%, rgb(255 255 255 / .34), transparent 70%), radial-gradient(55% 30% at 95% 100%, rgb(140 175 255 / .28), transparent 70%), linear-gradient(155deg, rgb(255 255 255 / .22), rgb(255 255 255 / .03) 36%, rgb(6 10 30 / .5) 100%);
  -webkit-backdrop-filter: blur(calc(1.4 * var(--u))) saturate(1.5) brightness(.7); backdrop-filter: blur(calc(1.4 * var(--u))) saturate(1.5) brightness(.7);
  box-shadow: inset 0 calc(.7 * var(--u)) calc(1.6 * var(--u)) rgb(255 255 255 / .4), inset 0 calc(-.6 * var(--u)) calc(1.6 * var(--u)) rgb(150 185 255 / .25), 0 0 0 1px rgb(255 255 255 / .22), 0 calc(4 * var(--u)) calc(11 * var(--u)) rgb(0 4 28 / .55), 0 0 calc(7 * var(--u)) rgb(120 160 255 / .35);
  translate: calc(-50% + var(--px, 0) * 1.2 * var(--u)) calc(-50% + (var(--py, 0) + var(--sy, 0)) * 1.2 * var(--u));
  transform: perspective(calc(90 * var(--u))) rotateY(calc(var(--px, 0) * 4deg)) rotateX(calc(var(--py, 0) * -4deg));
  animation: fgbreathe 9s ease-in-out infinite alternate;
}
@keyframes fgbreathe { to { border-radius: calc(6.8 * var(--u)) calc(5.8 * var(--u)) calc(6.6 * var(--u)) calc(6 * var(--u)); } }
.fg__card::before {                                   /* the rim: bright on the upper left and lower right, like light bending at a glass edge */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px;
  background: linear-gradient(135deg, #fff, rgb(255 255 255 / .12) 28%, rgb(255 255 255 / 0) 60%, rgb(255 255 255 / .85));
  -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);
}
.fg__card::after {                                    /* a slow sheen sweeping across the glass */
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / .24) 48%, transparent 60%);
  background-size: 260% 100%; background-position: 120% 0; animation: fgsheen 8s ease-in-out infinite; pointer-events: none;
}
@keyframes fgsheen { 0% { background-position: 120% 0; } 55%, 100% { background-position: -40% 0; } }
.fg__card > * { position: absolute; margin: 0; }
.fg__t1 { left: calc(4.3 * var(--u)); top: calc(5.2 * var(--u)); translate: 0 -50%; font-size: calc(1.8 * var(--u)); display: flex; align-items: center; gap: .5em; }
.fg__min { right: calc(3.4 * var(--u)); top: calc(5.2 * var(--u)); width: calc(2.4 * var(--u)); height: calc(2.4 * var(--u)); translate: 0 -50%; }
.fg__amt { left: calc(4.3 * var(--u)); top: calc(12.4 * var(--u)); translate: 0 -50%; font-size: calc(6 * var(--u)); line-height: 1; white-space: nowrap; }
.fg__amt small { font-size: calc(2 * var(--u)); color: #86a4ff; margin-left: .5em; }
.fg__sl { left: calc(4.3 * var(--u)); right: calc(4.3 * var(--u)); top: calc(18.7 * var(--u)); height: 1px; background: rgb(255 255 255 / .75); }
.fg__fill { position: absolute; left: calc(var(--kp, 34) * 1%); right: 0; top: -.5px; height: 2px; background: #7f9fff; }
.fg__knob { position: absolute; left: calc(var(--kp, 34) * 1%); top: 50%; width: calc(2.3 * var(--u)); height: calc(2.3 * var(--u)); border-radius: 50%; background: #fff; box-shadow: 0 0 0 calc(.15 * var(--u)) rgb(255 255 255 / .4), 0 0 calc(1.4 * var(--u)) rgb(95 135 255 / .7); translate: -50% -50%; }
.fg__knob::after { content: ""; position: absolute; inset: 36%; border-radius: 50%; background: #3d63f0; }
.fg__chips { left: calc(4.3 * var(--u)); right: calc(4.3 * var(--u)); top: calc(24.7 * var(--u)); translate: 0 -50%; list-style: none; padding: 0; display: flex; justify-content: space-between; align-items: center; font-size: calc(1.7 * var(--u)); color: rgb(255 255 255 / .72); }
.fg__chips li { padding: calc(.9 * var(--u)) calc(1.6 * var(--u)); border-radius: 99px; }
.fg__chips li.is-on { background: rgb(255 255 255 / .13); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12); }
.fg__t2 { left: calc(4.3 * var(--u)); top: calc(31.2 * var(--u)); translate: 0 -50%; font-size: calc(1.5 * var(--u)); color: rgb(255 255 255 / .62); }
.fg__wk { left: calc(4.3 * var(--u)); top: calc(35.2 * var(--u)); translate: 0 -50%; font-size: calc(3.7 * var(--u)); line-height: 1; }
.fg__pill { right: calc(4.3 * var(--u)); top: calc(35.2 * var(--u)); translate: 0 -50%; font-size: calc(1.45 * var(--u)); padding: calc(1 * var(--u)) calc(1.6 * var(--u)); border-radius: 99px; background: rgb(70 110 255 / .26); color: #cfe0ff; display: flex; align-items: center; gap: .5em; white-space: nowrap; }
.fg__pill svg { color: #7fa0ff; }
.fg__ch { left: calc(4.3 * var(--u)); top: calc(41.4 * var(--u)); width: calc(33.3 * var(--u)); height: calc(9.8 * var(--u)); overflow: visible; }
.fg__grid path { stroke: rgb(255 255 255 / .16); stroke-width: .6; }
.fg__line { stroke-dasharray: 1; stroke-dashoffset: 1; } .fg__area { opacity: 0; } .fg__drop, .fg__end, .fg__halo { opacity: 0; }
.fg.is-play .fg__line { animation: fgdraw 2.2s cubic-bezier(.5, 0, .2, 1) .6s forwards; }
.fg.is-play .fg__area { animation: fgfade 1.4s ease-out 1.6s forwards; }
.fg.is-play .fg__drop, .fg.is-play .fg__end, .fg.is-play .fg__halo { animation: fgfade .6s ease-out 2.5s forwards; }
.fg.is-play .fg__halo { animation: fgfade .6s ease-out 2.5s forwards, fgpulse 2.4s ease-in-out 3.1s infinite; transform-origin: 270px 14px; }
@keyframes fgdraw { to { stroke-dashoffset: 0; } } @keyframes fgfade { to { opacity: 1; } } @keyframes fgpulse { 50% { transform: scale(1.35); opacity: .55; } }
.fg__lo { left: calc(4.3 * var(--u)); top: calc(47.6 * var(--u)); translate: 0 -50%; font-size: calc(1.5 * var(--u)); }
.fg__hi { right: calc(4.2 * var(--u)); top: calc(41.2 * var(--u)); translate: 0 -50%; font-size: calc(1.5 * var(--u)); }
@media (prefers-reduced-motion: reduce) { .fg__l i, .fg__card, .fg__card::after, .fg__knob, .fg__fill, .fg__halo { animation: none !important; } .fg__line { stroke-dashoffset: 0; } .fg__area, .fg__drop, .fg__end, .fg__halo { opacity: 1; } }

/* Fori sections: the visual and its "Shows" line travel together (the line sits under the image), the visual stays in view while the long copy scrolls past */
#project-1 .pvs--l, #project-1 .pvs--r { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); align-items: start; gap: clamp(2.5rem, 7vw, 7rem); padding-block: clamp(2rem, 6dvh, 4rem); }
#project-1 .pvs--l { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); }
.pvs--l .pvs__vis { order: 2; } .pvs--l .pvs__copy { order: 1; }
.pvs__vis { display: grid; gap: 1.1rem; position: sticky; top: clamp(1.5rem, 10dvh, 6rem); align-self: start; }
.pvs__vis .pvs__proves { padding-top: .9rem; display: flex; gap: .6rem; align-items: baseline; }
#project-1 .pvs__copy { align-content: start; gap: 1.2rem; padding-top: .2rem; }
#project-1 .pvs__kind { margin: 0 0 -.5rem; }
#project-1 .pvs__title { margin: 0 0 .4rem; }
#project-1 .pvs__title { font-size: clamp(1.8rem, 3.1vw, 3.2rem); text-wrap: balance; }
#project-1 .pvs--r:first-of-type .pvs__title, #project-1 .pv__body > .pvs:first-child .pvs__title { white-space: nowrap; }
#project-1 .pvs__title + .pvs__text { font-size: clamp(1rem, 1.2vw, 1.2rem); line-height: 1.55; color: var(--fg); letter-spacing: -.01em; max-width: none; }
#project-1 .pvs__title + .pvs__text ~ .pvs__text { max-width: none; font-size: clamp(.95rem, 1.05vw, 1.05rem); line-height: 1.7; }
@media (max-width: 900px) { .pvs__vis { position: static; } .pvs--l .pvs__vis, .pvs--l .pvs__copy { order: 0; } }

/* link buttons on the Fori page */
.pvs__links { margin: .4rem 0 0; display: flex; gap: .6rem; flex-wrap: wrap; }
.pvs__btn { display: inline-flex; align-items: center; gap: .6rem; padding: .8rem 1.25rem .8rem 1.4rem; border-radius: 99px; background: var(--fg); color: #f6f3ee; font-size: .875rem; font-weight: 550; letter-spacing: -.01em; transition: transform .5s var(--ease), box-shadow .5s var(--ease), gap .5s var(--ease); }
.pvs__btn svg { transition: transform .5s var(--ease); }
.pvs__btn:hover { transform: translateY(-2px); box-shadow: 0 .7rem 1.6rem rgb(0 0 0 / .18); }
.pvs__btn:hover svg { transform: translate(2px, -2px); }
.pvs__btn:focus-visible { outline: 2px solid var(--cob, #2f5bff); outline-offset: 3px; }
.pvs__btn { } html[data-theme="dark"] .pvs__btn { color: #141414; }

.pvs__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding-top: .8rem; }
.pvs__row .pvs__proves { border: 0; padding: 0; }
.pvs__btn--sm { padding: .6rem 1rem .6rem 1.15rem; font-size: .8125rem; flex: none; }
/* Fori: the cover image is shown whole, with no parallax zoom or hover crop */
#project-1 .pvs__fig img { scale: 1; translate: none; animation: none; transform: none; object-fit: contain; }
#project-1 .pvs__fig:hover img { transform: none; }

/* ==========================================================================
   Fori: the tablet render as a camera move. One 15 s loop: wide, then in on the goal, the amount and the timeline, and back out.
   Each stop has its own caption that rises in as the camera arrives. (translate = (0.5 - focus * scale) of the frame.)
   ========================================================================== */
.fx--cam { background: #e9e8e4; --T: 15s; }
.fm__cam { position: absolute; inset: 0; transform-origin: 0 0; will-change: transform; }
.fm__cam img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fx--cam .fm__cam img { scale: 1 !important; translate: none !important; animation: none !important; }
.fx.is-play .fm__cam { animation: fmcam var(--T) infinite; }
@keyframes fmcam {
  0%, 7% { transform: translate(0, 0) scale(1); filter: blur(0); animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  11% { filter: blur(2.5px); }
  15%, 31% { transform: translate(-33.6%, -18.4%) scale(1.9); filter: blur(0); animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  34% { filter: blur(2.5px); }
  38%, 60% { transform: translate(-9.4%, -46.8%) scale(2.2); filter: blur(0); animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  63% { filter: blur(2.5px); }
  67%, 88% { transform: translate(-7%, -90.6%) scale(1.9); filter: blur(0); animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  95%, 100% { transform: translate(0, 0) scale(1); filter: blur(0); }
}
.fm__vig { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 50%, transparent 55%, rgb(10 14 30 / .18) 100%); }
.fm__hud { position: absolute; left: 4cqw; bottom: 4cqw; right: 4cqw; height: 15cqw; pointer-events: none; }
.fm__p {
  position: absolute; left: 0; bottom: 0; display: grid; gap: .8cqw; padding: 2cqw 3cqw; border-radius: 2.4cqw; color: #fff; opacity: 0; transform: translateY(2.4cqw) scale(.98); filter: blur(8px);
  background: linear-gradient(150deg, rgb(255 255 255 / .22), rgb(20 40 110 / .45)); border: 1px solid rgb(255 255 255 / .35);
  -webkit-backdrop-filter: blur(2.2cqw) saturate(1.5); backdrop-filter: blur(2.2cqw) saturate(1.5);
  box-shadow: inset 0 .3cqw .8cqw rgb(255 255 255 / .35), 0 2cqw 5cqw rgb(10 20 60 / .35); min-width: 30cqw;
}
.fm__p small { font-size: 1.5cqw; letter-spacing: .16em; text-transform: uppercase; opacity: .8; }
.fm__p b { font-size: 4cqw; font-weight: 500; letter-spacing: -.03em; line-height: 1; display: flex; align-items: center; gap: 1.2cqw; white-space: nowrap; }
.fm__p em { font-style: normal; font-size: 2cqw; font-weight: 400; opacity: .78; letter-spacing: 0; }
.fm__bar { height: .9cqw; border-radius: 99px; background: rgb(255 255 255 / .28); overflow: hidden; margin-top: .4cqw; }
.fm__bar i { display: block; height: 100%; width: 50%; border-radius: inherit; background: #fff; transform: scaleX(0); transform-origin: 0 50%; }
.fm__wk { display: grid; grid-template-columns: repeat(12, 1fr); gap: .9cqw; margin-top: .6cqw; }
.fm__wk i { height: 1.6cqw; border-radius: 99px; background: rgb(255 255 255 / .25); }
.fx.is-play .fm__p1 { animation: fmp1 var(--T) infinite; } .fx.is-play .fm__p2 { animation: fmp2 var(--T) infinite; } .fx.is-play .fm__p3 { animation: fmp3 var(--T) infinite; }
@keyframes fmp1 { 0%, 10% { opacity: 0; transform: translateY(2.4cqw) scale(.98); filter: blur(8px); } 14%, 28% { opacity: 1; transform: none; filter: blur(0); } 32%, 100% { opacity: 0; transform: translateY(-1.4cqw) scale(.99); filter: blur(8px); } }
@keyframes fmp2 { 0%, 34% { opacity: 0; transform: translateY(2.4cqw) scale(.98); filter: blur(8px); } 38%, 57% { opacity: 1; transform: none; filter: blur(0); } 61%, 100% { opacity: 0; transform: translateY(-1.4cqw) scale(.99); filter: blur(8px); } }
@keyframes fmp3 { 0%, 63% { opacity: 0; transform: translateY(2.4cqw) scale(.98); filter: blur(8px); } 67%, 86% { opacity: 1; transform: none; filter: blur(0); } 91%, 100% { opacity: 0; transform: translateY(-1.4cqw) scale(.99); filter: blur(8px); } }
.fx.is-play .fm__bar i { animation: fmbar var(--T) infinite; }
@keyframes fmbar { 0%, 37% { transform: scaleX(0); } 47%, 60% { transform: scaleX(1); animation-timing-function: ease; } 62%, 100% { transform: scaleX(0); } }
.fx.is-play .fm__wk i { animation: fmwk var(--T) infinite; animation-delay: calc(var(--k) * .14s); }
@keyframes fmwk { 0%, 68% { background: rgb(255 255 255 / .25); transform: none; } 70%, 93% { background: #fff; transform: scaleY(1.3); } 96%, 100% { background: rgb(255 255 255 / .25); transform: none; } }
@media (prefers-reduced-motion: reduce) { .fx.is-play .fm__cam, .fm__cam { animation: none !important; } .fm__p1 { opacity: 1 !important; transform: none !important; filter: none !important; } .fm__p2, .fm__p3 { display: none; } }

/* the goal icon, as in the render: an outlined plane inside a thin ring with a soft glow */
.fm__ic { flex: none; display: grid; place-items: center; width: 6cqw; height: 6cqw; border-radius: 50%; border: .2cqw solid rgb(255 255 255 / .9); background: radial-gradient(circle at 35% 25%, rgb(255 255 255 / .28), rgb(255 255 255 / .04) 70%); box-shadow: inset 0 0 1cqw rgb(255 255 255 / .3), 0 0 1.4cqw rgb(120 160 255 / .45); }
.fm__ic svg { width: 3.2cqw; height: 3.2cqw; }

/* ==========================================================================
   Fori 02: three questions as isometric layers (a line-drawing of stacked cards), the two starting points beside them.
   The layers lift apart, a highlight walks up the stack, and the amount swaps €50 / €40 with the weeks following (12 / 15).
   ========================================================================== */
.fx--iso { background: #fbfaf7; color: #141414; box-shadow: inset 0 0 0 1px rgb(20 20 20 / .08); }
.iso { position: absolute; inset: 0; }
.iso__stage { position: absolute; left: 56%; top: 55%; width: 0; height: 0; transform-style: preserve-3d; transform: scale(1.12) rotateX(58deg) rotateZ(-38deg); }
.iso__c { position: absolute; left: -15cqw; top: -9.5cqw; width: 30cqw; height: 19cqw; padding: 2cqw 2.2cqw; border: 1px solid #1b1b1b; border-radius: 1.5cqw; background: #fff; box-shadow: 1.6cqw 1.6cqw 3.4cqw rgb(20 20 20 / .09); }
.iso__c h5 { margin: 0 0 1.6cqw; font-size: 1.45cqw; font-weight: 600; letter-spacing: -.01em; }
.iso__n { margin: 0; font-size: 4.4cqw; font-weight: 600; letter-spacing: -.04em; line-height: 1; white-space: nowrap; }
.iso__n em { font-style: normal; font-size: 1.5cqw; font-weight: 400; letter-spacing: 0; color: rgb(20 20 20 / .55); }
.iso__l { translate: 0 0 0; opacity: 0; }
.iso__l2 { left: -7cqw; top: -12cqw; } .iso__l3 { left: 1cqw; top: -15cqw; }
.fx.is-play .iso__l { animation: isorise 1.4s cubic-bezier(.22, 1, .36, 1) forwards, isohl 9s linear infinite; }
.fx.is-play .iso__l1 { animation-delay: .1s, 2.4s; } .fx.is-play .iso__l2 { animation-delay: .35s, 5.4s; } .fx.is-play .iso__l3 { animation-delay: .6s, 8.4s; }
@keyframes isorise { from { opacity: 0; translate: 0 0 0; } to { opacity: 1; translate: 0 0 var(--z); } }
@keyframes isohl { 0%, 30% { border-color: #2f5bff; box-shadow: 1.6cqw 1.6cqw 3.4cqw rgb(47 91 255 / .22), 0 0 0 .3cqw rgb(47 91 255 / .25); } 36%, 100% { border-color: #1b1b1b; box-shadow: 1.6cqw 1.6cqw 3.4cqw rgb(20 20 20 / .09); } }
.iso__bar { height: 1.2cqw; border-radius: 99px; background: rgb(20 20 20 / .1); margin-top: 2.4cqw; overflow: hidden; } .iso__bar i { display: block; height: 100%; width: 50%; background: #141414; border-radius: inherit; transform: scaleX(0); transform-origin: 0 50%; }
.fx.is-play .iso__bar i { animation: fxfill 1.6s cubic-bezier(.22, 1, .36, 1) 1.2s forwards; }
.iso__sl { position: relative; height: .3cqw; background: rgb(20 20 20 / .2); margin-top: 3cqw; } .iso__sl i { position: absolute; top: 50%; left: 78%; width: 2.2cqw; height: 2.2cqw; border-radius: 50%; background: #141414; transform: translate(-50%, -50%); }
.fx.is-play .iso__sl i { animation: fxknob 6s ease-in-out 2.6s infinite; }
.iso__swap { display: grid; } .iso__swap > span { grid-area: 1 / 1; } .iso__swap > span:last-child { opacity: 0; }
.fx.is-play .iso__swap > span:first-child { animation: fxswa 6s ease-in-out 2.6s infinite; } .fx.is-play .iso__swap > span:last-child { animation: fxswb 6s ease-in-out 2.6s infinite; }
.iso__bars { display: flex; align-items: flex-end; gap: .7cqw; height: 5cqw; margin-top: 1.8cqw; }
.iso__bars i { flex: 1; background: #141414; border-radius: .2cqw; height: calc(30% + var(--k) * 5%); }
.fx.is-play .iso__bars i:nth-child(n + 13) { animation: isob 6s ease-in-out 2.6s infinite; }
@keyframes isob { 0%, 38% { opacity: .14; } 50%, 90% { opacity: 1; } 100% { opacity: .14; } }
.iso__bars i:nth-child(n + 13) { opacity: .14; }
.iso__rod { position: absolute; width: 0; height: 22cqw; border-left: 1px dashed rgb(20 20 20 / .35); transform-origin: 0 0; transform: rotateX(-90deg); opacity: 0; }
.iso__rod--1 { left: 15cqw; top: 9.5cqw; } .iso__rod--2 { left: -15cqw; top: 9.5cqw; }
.fx.is-play .iso__rod { animation: isofade .8s ease-out 1.4s forwards; } @keyframes isofade { to { opacity: 1; } }
.iso__side { width: 22cqw; height: 14cqw; opacity: 0; }
.iso__side .iso__n { font-size: 2.6cqw; } .iso__ln { height: .9cqw; border-radius: 99px; background: rgb(20 20 20 / .1); margin-top: 1.8cqw; } .iso__ln--s { width: 60%; margin-top: 1cqw; }
.iso__side--no { left: -40cqw; top: 8cqw; border-style: dashed; border-color: rgb(20 20 20 / .4); background: rgb(255 255 255 / .6); }
.iso__side--yes { left: -34cqw; top: -27cqw; }
.fx.is-play .iso__side { animation: isoin 1.2s cubic-bezier(.22, 1, .36, 1) 1.6s forwards; } .fx.is-play .iso__side--yes { animation-delay: 2s; }
@keyframes isoin { from { opacity: 0; translate: 0 0 -5cqw; } to { opacity: 1; translate: 0 0 0; } }
.iso__side--no .iso__n { color: rgb(20 20 20 / .5); text-decoration: line-through; text-decoration-thickness: .15cqw; }
.iso__tag { position: absolute; left: 1.6cqw; bottom: -1.5cqw; padding: .6cqw 1.3cqw; background: #141414; color: #fff; font-size: 1.3cqw; font-weight: 600; border-radius: .5cqw; } .iso__tag--no { background: #d9d6ce; color: #141414; }
.iso__side--yes { border-color: #141414; } .fx.is-play .iso__side--yes { animation: isoin 1.2s cubic-bezier(.22, 1, .36, 1) 2s forwards, isopulse 3s ease-in-out 3.4s infinite; }
@keyframes isopulse { 50% { box-shadow: 1.6cqw 1.6cqw 3.4cqw rgb(47 91 255 / .3), 0 0 0 .4cqw rgb(47 91 255 / .3); border-color: #2f5bff; } }
@media (prefers-reduced-motion: reduce) { .iso__l, .iso__side, .iso__rod { opacity: 1 !important; animation: none !important; } .iso__l { translate: 0 0 var(--z) !important; } }

.pvs__vis .pvs__fig { order: 0; }

/* ==========================================================================
   Fori 02: the glass goal card on a parallax background, being filled in by a pointer (see the script at the end of main.js).
   All sizes are in cqw of the .fg container so the card scales with its frame.
   ========================================================================== */
.fx--pk { background: #dfe6f3; }
.fg--blue { background: #dfe6f3; }
.fg--blue .fg__bg::after { background: radial-gradient(80% 80% at 50% 50%, transparent 45%, rgb(225 232 246 / .55) 100%); }
.pk__card { width: 54cqw; height: 48.2cqw; border-radius: 6.4cqw; color: #fff; font-weight: 300; letter-spacing: -.01em;
  background: radial-gradient(70% 40% at 15% 0%, rgb(255 255 255 / .3), transparent 70%), linear-gradient(155deg, rgb(255 255 255 / .22), rgb(255 255 255 / .03) 36%, rgb(8 18 70 / .5) 100%);
  -webkit-backdrop-filter: blur(1.4cqw) saturate(1.5) brightness(.8); backdrop-filter: blur(1.4cqw) saturate(1.5) brightness(.8);
  box-shadow: inset 0 .5cqw 1.4cqw rgb(255 255 255 / .4), inset 0 -.5cqw 1.4cqw rgb(150 185 255 / .25), 0 0 0 1px rgb(255 255 255 / .22), 0 3cqw 8cqw rgb(5 15 70 / .45), 0 0 5cqw rgb(110 150 255 / .35);
  animation: none; transform: perspective(70cqw) rotateY(calc(var(--px, 0) * 4deg)) rotateX(calc(var(--py, 0) * -4deg)); translate: calc(-50% + var(--px, 0) * 1.4cqw) calc(-50% + (var(--py, 0) + var(--sy, 0)) * 1.4cqw); }
.pk__card > * { position: absolute; margin: 0; }
.pk__ic { left: 4cqw; top: 5.8cqw; width: 9.8cqw; height: 9.8cqw; display: grid; place-items: center; }
.pk__ic svg:first-child { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-70deg); overflow: visible; }
.pk__ring0 { fill: none; stroke: rgb(255 255 255 / .22); stroke-width: 1.6; } .pk__ring { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 34 100; filter: drop-shadow(0 0 .5cqw rgb(150 190 255 / .9)); transition: stroke-dasharray 1.2s cubic-bezier(.22, 1, .36, 1); }
.pk__card.is-named .pk__ring { stroke-dasharray: 100 100; }
.pk__pl { width: 4.6cqw; height: 4.6cqw; position: relative; }
.pk__goal { left: 16cqw; top: 11cqw; translate: 0 -50%; font-size: 3.2cqw; white-space: nowrap; }
.pk__plus { right: 4.3cqw; top: 4.6cqw; width: 10.2cqw; height: 10.2cqw; border-radius: 50%; background: #17181c; display: grid; place-items: center; box-shadow: 0 1cqw 2.4cqw rgb(0 0 20 / .4); } .pk__plus svg { width: 4.6cqw; height: 4.6cqw; }
.pk__lbl { font-size: 2cqw; color: rgb(190 210 255 / .8); translate: 0 -50%; white-space: nowrap; }
.pk__l1 { left: 5cqw; top: 22.9cqw; } .pk__l2 { left: 39.8cqw; top: 25.8cqw; } .pk__l3 { left: 5cqw; top: 42.8cqw; }
.pk__amt { left: 5cqw; top: 28.6cqw; translate: 0 -50%; font-size: 5.6cqw; line-height: 1; white-space: nowrap; }
.pk__wk { left: 39.8cqw; top: 29.2cqw; translate: 0 -50%; font-size: 2.2cqw; white-space: nowrap; }
.pk__ct { right: 5.4cqw; top: 42.8cqw; translate: 0 -50%; font-size: 2.2cqw; white-space: nowrap; }
.pk__t { border-radius: .6cqw; padding: 0 .3cqw; margin: 0 -.3cqw; transition: background .25s, opacity .3s; } .pk__t.is-ph { opacity: .6; }
.pk__t.is-sel { background: rgb(100 150 255 / .55); } .pk__t.is-edit::after { content: ""; display: inline-block; width: .22cqw; height: 1em; margin-left: .25cqw; vertical-align: -.12em; background: #fff; animation: pkcaret 1s steps(1) infinite; }
@keyframes pkcaret { 50% { opacity: 0; } }
.pk__ruler { left: 5.3cqw; top: 37cqw; width: 43.2cqw; height: 3.4cqw; translate: 0 -50%; display: flex; justify-content: space-between; align-items: center; }
.pk__ruler i { width: 1px; height: 2.6cqw; background: rgb(190 210 255 / .5); transition: height .35s, background .35s, box-shadow .35s; }
.pk__ruler i.is-pass { background: rgb(210 225 255 / .85); }
.pk__ruler i.is-act { width: 2px; height: 3.6cqw; background: #5b8dff; box-shadow: 0 0 1.2cqw 1px rgb(70 120 255 / .9); }
.pk__cur { left: 0; top: 0; width: 3.4cqw; height: 3.4cqw; translate: calc(var(--cx, 50) * 1cqw) calc(var(--cy, 70) * 1cqw); opacity: 0; transition: translate .9s cubic-bezier(.45, 0, .2, 1), opacity .4s; filter: drop-shadow(0 .3cqw .6cqw rgb(0 0 30 / .5)); z-index: 3; pointer-events: none; }
.pk__card.is-cur .pk__cur { opacity: 1; }
.pk__rip { left: 0; top: 0; width: 5cqw; height: 5cqw; margin: -2.5cqw 0 0 -2.5cqw; border-radius: 50%; border: 2px solid rgb(255 255 255 / .8); translate: calc(var(--rx, 0) * 1cqw) calc(var(--ry, 0) * 1cqw); opacity: 0; transform: scale(.2); pointer-events: none; z-index: 2; }
.pk__rip.go { animation: pkrip .6s ease-out; } @keyframes pkrip { 0% { opacity: .9; transform: scale(.2); } 100% { opacity: 0; transform: scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .pk__cur { display: none; } }

/* the + as frosted glass, and a glowing blue orb riding on top of the active tick */
.pk__plus { background: radial-gradient(circle at 35% 25%, rgb(255 255 255 / .2), rgb(255 255 255 / 0) 60%), rgb(28 40 100 / .5); -webkit-backdrop-filter: blur(1cqw) saturate(1.4); backdrop-filter: blur(1cqw) saturate(1.4); box-shadow: inset 0 0 1.2cqw rgb(255 255 255 / .22), inset 0 .3cqw .6cqw rgb(255 255 255 / .18), 0 .8cqw 2cqw rgb(5 15 70 / .3); border: 1px solid rgb(255 255 255 / .16); }
.pk__plus svg { width: 4.4cqw; height: 4.4cqw; stroke-width: 1; color: #fff; }
.pk__orb { left: 0; top: 0; width: 2.5cqw; height: 2.5cqw; border-radius: 50%; translate: calc(var(--ax, 5.3) * 1cqw - 1.25cqw) 33cqw; background: radial-gradient(circle, #9ccbff 0 26%, #3f86ff 46%, rgb(40 110 255 / .55) 62%, rgb(40 110 255 / 0) 100%); box-shadow: 0 0 1.6cqw .3cqw rgb(60 130 255 / .75); transition: translate .1s linear; pointer-events: none; }

/* the three bars are progress sliders for the three steps: each fills over its own stretch of the loop, and a click jumps to that step */
.fm__steps { position: absolute; top: 3cqw; right: 3.4cqw; z-index: 4; display: flex; gap: 1cqw; }
.fm__st { position: relative; width: 5.4cqw; height: 1.1cqw; padding: 0; border: 0; border-radius: 99px; background: #c4c4c0; overflow: hidden; cursor: pointer; }
.fm__st::before { content: ""; position: absolute; inset: -1.6cqw -.4cqw; }
.fm__st i { position: absolute; inset: 0; background: #1b1b1d; transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }
.fm__st:focus-visible { outline: 2px solid #2f5bff; outline-offset: 3px; }
.fm__flash { position: absolute; inset: 0; background: #fbfaf7; opacity: 0; pointer-events: none; transition: opacity .35s ease; z-index: 3; }
.fm__flash.on { opacity: .75; transition: opacity .12s ease; }
.fm__ic { border-width: 1px; box-shadow: inset 0 0 1.2cqw rgb(255 255 255 / .35), 0 0 1.8cqw rgb(120 165 255 / .55); background: radial-gradient(circle at 40% 30%, rgb(255 255 255 / .3), rgb(255 255 255 / .05) 65%); }
.fm__ic svg { width: 3.4cqw; height: 3.4cqw; }

.nx__i, .nx__i * { cursor: pointer; }
.nx__i img { -webkit-user-drag: none; user-select: none; }

/* Actual Fori Figma board export; the full board opens for inspection. */
#project-1 .fori-system-export { padding: 0; display: block; background: #0a1325; aspect-ratio: 16 / 9; }
#project-1 .fori-system-export a { display: block; width: 100%; height: 100%; }
#project-1 .fori-system-export img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* welcome slide: the room for "Creative Lead" and the paragraph is reserved from the start (no layout animation) and the block is moved with a transform, see introShift() in main.js */
.ag__pw { display: block; transition: none; }
.ag__lw { display: grid; grid-template-rows: auto; justify-items: center; transition: none; }      /* grid keeps the lead as wide as its text, so the goo filter only works on that small area */
.ag__lead { width: fit-content; }
.ag__lw > *, .ag__pw > * { overflow: visible; }
.ag__pw > .ag__pin { margin-inline: auto; }
.ag__s--big.ag__s--intro { transform: translate(-50%, calc(-50% + var(--dy, 0px))); transition: opacity .8s ease, filter .8s ease, translate .9s cubic-bezier(.22, 1, .36, 1), visibility 0s .9s, transform 1.4s cubic-bezier(.22, 1, .36, 1); }
.ag__s--big.ag__s--intro.is-cur { transition-delay: .35s, .35s, .35s, 0s, 0s; }

/* Creative Lead: just a fade, no filter and no movement */
.ag__lead { filter: none; transform: none; transition: opacity 1s ease; }


/* hovering a card: the cards behind it are veiled in white (opaque, nothing shows through) and the whole screen goes a touch whiter, so the selected one pops.
   --veil = how white the other cards go, --wash = how much whiter the page behind them gets */
.field { --wash: .1; }
.cards { --veil: .8; }
.card__media { position: relative; }
.card__media::after { content: ''; position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; transition: opacity 2.4s var(--ease-focus) .15s; }
.card__media img { transition: opacity 2.4s var(--ease-focus) .15s; }
/* veil by fading the image over a white base (not an overlay): no dark antialiased fringe at the rounded corners */
.cards.is-focusing .card:not(.is-focus) .card__media { background: #fff; }
/* in dark mode the unfocused cards recede into the page instead of washing out to white */
html[data-theme="dark"] .cards.is-focusing .card:not(.is-focus) .card__media { background: #0d0d0d; }
.cards.is-focusing .card:not(.is-focus) .card__media img { opacity: calc(1 - var(--veil)); transition: opacity 1.2s var(--ease-focus); }
.field::before { content: ''; position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; transition: opacity 2.4s var(--ease-focus) .15s; }
.field.is-focusing::before { opacity: var(--wash); transition: opacity 1.2s var(--ease-focus); }

/* the selected card (and its title) always sits in front of every other layer, so the white veil really is between it and the rest */
.cards.is-focusing .layer:has(.card.is-focus) { z-index: 4; }
.cards.is-focusing .card.is-focus { z-index: 5; }

/* Responsive safety: the field's stage scales up while a project is open; clip (not hide, so sticky still works) keeps that
   from widening the layout viewport on iOS / mobile browsers. */
.field { overflow-x: clip; }

/* Fori: editorial exports and the working product surface. */
@font-face{font-family:Manrope;src:url('../fonts/manrope-regular.ttf') format('truetype');font-weight:400;font-display:swap}
#project-1 .fori-system-export,#project-1 .fori-campaign-export{padding:0;display:block;aspect-ratio:4/3;background:#0c1834;overflow:hidden}
#project-1 .fori-system-export img,#project-1 .fori-campaign-export img{display:block;width:100%;height:100%;object-fit:cover}
.fori-campaign-export a{display:block;height:100%}
#project-1 .fori-live{font-family:Manrope,sans-serif;aspect-ratio:auto;background:#0c1834;padding:clamp(20px,5cqw,48px);color:#f8f7f3;display:grid;gap:28px}
.fori-live__heading{display:flex;justify-content:space-between;gap:16px;align-items:center;font-size:10px;letter-spacing:.12em}
.fori-live__heading>span:first-child{font-size:22px;letter-spacing:-.04em}
#project-1 .fori-planner{color:#f8f7f3;background:linear-gradient(140deg,#12275166,#153d8299),url('../img/hi/fori-glass-texture.png') center/cover;border:1px solid #dce9ff66;border-radius:28px;padding:clamp(20px,5cqw,40px);gap:20px;box-shadow:0 20px 50px #0005,inset 0 1px 0 #ffffff55}
.fori-planner__title{display:flex;align-items:center;gap:12px}.fori-planner__title p{margin:0;font-size:18px}.fori-plane{display:grid;place-items:center;width:36px;height:36px;border:1px solid #ffffff66;border-radius:50%;font-size:25px}.fori-status{margin-left:auto;font-size:11px;color:#e5edff}.fori-status:before{content:'';display:inline-block;background:#397cff;width:7px;height:7px;border-radius:50%;margin-right:6px}
.fori-balance{display:flex;justify-content:space-between;align-items:center;gap:15px}.fori-balance>div>span{font-size:12px;color:#d1dcf2}.fori-balance .fx-big{color:#f8f7f3;margin:4px 0 0;font-weight:400;font-size:clamp(40px,9cqw,70px);letter-spacing:-.06em;line-height:1.2}
.fori-ring{width:95px;height:95px;border:5px solid #ffffff18;border-right-color:#fff;border-top-color:#fff;border-radius:50%;display:flex;flex-direction:column;justify-content:center;align-items:center;flex-shrink:0}.fori-ring b{font-size:24px;font-weight:400}.fori-ring span{font-size:9px!important}
.fori-plan-meta{display:flex;justify-content:space-between;color:#dae4f8;font-size:12px}.fori-planner .fx-bar{background:#ffffff20}.fori-planner .fx-bar i{transform:none;background:#fff;box-shadow:0 0 8px #ffffff55}
.fori-planner .fx-field>span{color:#e0e8f7;font-size:13px}.fori-planner .fx-field{margin:4px 0 -12px}.fori-planner .fx-step{background:#08152d70;border-color:#abc3ed66;border-radius:14px;min-height:52px}.fori-planner .fx-step input{color:#fff;font-family:Manrope,sans-serif;font-weight:400;font-size:24px}.fori-planner .fx-step button{color:#fff;background:#ffffff0a;width:52px}.fori-planner .fx-step button:hover{background:#397cff66}.fori-planner .fx-step:focus-within{border-color:#89b5ff;box-shadow:0 0 0 3px #397cff55}
.fori-timeline{display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-size:12px}.fori-timeline p{margin:0}.fori-timeline b{font-size:32px;font-weight:400;margin-right:4px}.fori-plan-rhythm{display:flex;gap:5px}.fori-plan-rhythm i{flex:1;height:6px;background:#dce8ff22;border-radius:4px}.fori-plan-rhythm i:nth-child(-n+6){background:#fff}
.fori-planner .fx-msg{color:#e0e8fa;font-size:12px;min-height:3em;line-height:1.5}.fori-planner .fx-msg.is-ok{color:#c1ffd9}.fori-planner .fx-msg.is-bad{color:#ffd2d6}.fori-planner .fx-step.is-bad{border-color:#ffa9b5}
.fori-planner .fx-btns button{font-family:Manrope,sans-serif;background:#f8f7f3;color:#0c1834;min-height:44px;flex:1;font-weight:400}.fori-planner .fx-btns .is-ghost{background:#10244955;color:#fff;box-shadow:inset 0 0 0 1px #d2e2ff66}.fori-planner button:focus-visible{outline:3px solid #9fc6ff;outline-offset:4px}.fori-live figcaption{font-size:10px;letter-spacing:.13em;color:#9cadcc}
@media(max-width:480px){.fori-live__heading{font-size:8px}.fori-planner__title p{font-size:16px}.fori-status{font-size:9px}.fori-ring{width:76px;height:76px}.fori-ring b{font-size:20px}.fori-plan-meta{font-size:11px}}
#project-1 .fori-live{container-type:inline-size;padding:24px}
#project-1 .fori-planner{min-width:0;width:100%;padding:clamp(16px,5cqw,32px)}
.fori-planner>*{min-width:0}.fori-planner__title{flex-wrap:wrap}.fori-planner__title p{font-size:clamp(14px,4.2cqw,18px)}
.fori-status{font-size:10px}.fori-balance .fx-big{font-size:clamp(36px,12cqw,64px)}.fori-ring{width:clamp(68px,24cqw,95px);height:clamp(68px,24cqw,95px)}
.fori-plan-meta,.fori-timeline{flex-wrap:wrap}.fori-live__heading{flex-wrap:wrap}
@media(max-width:899px){#project-1 .pvs--l,#project-1 .pvs--r{grid-template-columns:minmax(0,1fr);gap:28px}#project-1 .pvs__vis,#project-1 .pvs__copy{order:0;min-width:0}#project-1 .pvs__title{white-space:normal!important}#project-1 .pvs__row{flex-wrap:wrap}}

/* Keep the Fori component study balanced alongside its editorial copy. */
#project-1 .pvs:has(.fori-system-export){align-items:center}
#project-1 .fori-system-export a{display:block;width:100%;height:100%}

/* ==========================================================================
   Fori: animated progress indicator (replaces the static system board).
   A tilted glass savings card, shallow depth of field. The ring and the tick bar fill as the goal gets closer.
   Driven by --p (0..1) set from main.js while the figure is on screen.
   ========================================================================== */
#project-1 .fori-system-export { background: #0c1834; }
.fp { --p: .5; position: relative; display: block; width: 100%; height: 100%; container-type: size; overflow: hidden; color: #fff; font-family: Manrope, "Geist", system-ui, sans-serif;
  background: radial-gradient(120% 90% at 22% 0%, #1a2c63 0%, #0f1c42 48%, #0a1226 100%); }
.fp > span { display: block; }
.fp > span.fp__cap { display: grid; }
.fp__bg { position: absolute; inset: 0; pointer-events: none; }
.fp__blur { position: absolute; border-radius: 50%; filter: blur(8cqw); opacity: .8; }
.fp__blur--a { width: 46cqw; height: 46cqw; left: -12cqw; top: -14cqw; background: #2b4fd0; opacity: .55; }
.fp__blur--b { width: 40cqw; height: 40cqw; right: -8cqw; bottom: -16cqw; background: #3a2fa8; opacity: .6; }
.fp__ghost { position: absolute; left: 30cqw; top: 6cqw; font-size: 5.4cqw; letter-spacing: -.02em; color: #8a9ad8; filter: blur(.9cqw); opacity: .35; transform: rotate(-4deg); white-space: nowrap; }
.fp__scene { position: absolute; inset: 0; perspective: 120cqw; perspective-origin: 30% 40%; }
.fp__card { position: absolute; display: block; border-radius: 7.5cqw; }
.fp__card--main { left: 12cqw; top: 2cqw; width: 76cqw; height: 55cqw; padding: 4cqw 4.6cqw; box-sizing: border-box;
  transform: rotateX(34deg) rotateY(-21deg) rotateZ(6deg); transform-origin: 40% 50%; overflow: hidden;
  /* liquid glass: a see-through tint over the moving colour behind it, blurred and saturated, with a bright rim and a soft inner glow */
  background: linear-gradient(140deg, rgb(255 255 255 / .30) 0%, rgb(255 255 255 / .06) 34%, rgb(70 110 255 / .18) 70%, rgb(40 70 220 / .30) 100%), rgb(120 150 255 / .22);
  box-shadow: 0 5cqw 8cqw rgb(18 32 80 / .26), inset 0 0 0 .28cqw rgb(255 255 255 / .42), inset 1.6cqw 1.6cqw 3cqw rgb(255 255 255 / .28), inset -2cqw -2cqw 4.6cqw rgb(120 160 255 / .34);
  animation: fp-float 9s ease-in-out infinite alternate; }
.fp__card--main::before { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: .22; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
/* the specular sweep: a bright band of light that slides across the glass */
.fp__card--main::after { content: ""; position: absolute; inset: -20% -40%; border-radius: inherit; pointer-events: none; background: linear-gradient(105deg, transparent 38%, rgb(255 255 255 / .34) 46%, rgb(255 255 255 / .08) 52%, transparent 60%); transform: translateX(-32%); animation: fp-sheen 6.5s ease-in-out infinite; }
@keyframes fp-sheen { 0%, 12% { transform: translateX(-34%); } 62%, 100% { transform: translateX(34%); } }
.fp__lens { position: absolute; inset: 0; display: block; overflow: hidden; border-radius: inherit; filter: blur(1.2cqw) saturate(1.7); }
.fp__lens i { position: absolute; border-radius: 50%; animation: fp-orb 9s ease-in-out infinite alternate; }
.fp__lens i:nth-child(1) { width: 50cqw; height: 50cqw; left: -4cqw; top: -14cqw; background: radial-gradient(circle, #4a74ff 0%, rgb(74 116 255 / .8) 32%, rgb(74 116 255 / 0) 70%); }
.fp__lens i:nth-child(2) { width: 44cqw; height: 44cqw; left: 36cqw; top: -6cqw; background: radial-gradient(circle, #2a4fd0 0%, rgb(42 79 208 / .8) 32%, rgb(42 79 208 / 0) 70%); animation-delay: -3s; }
.fp__lens i:nth-child(3) { width: 42cqw; height: 42cqw; left: 14cqw; top: 10cqw; background: radial-gradient(circle, #4a86ff 0%, rgb(74 134 255 / .7) 32%, rgb(74 134 255 / 0) 70%); animation-delay: -6s; }
.fp__mid { position: relative; }
.fp__orbs { position: absolute; inset: 0; display: block; }
.fp__orb { position: absolute; border-radius: 50%; animation: fp-orb 11s ease-in-out infinite alternate; }
.fp__orb--a { width: 46cqw; height: 46cqw; left: 14cqw; top: -10cqw; background: radial-gradient(circle, #3f68ff 0%, rgb(63 104 255 / .85) 30%, rgb(63 104 255 / 0) 70%); }
.fp__orb--b { width: 40cqw; height: 40cqw; left: 50cqw; top: 8cqw; background: radial-gradient(circle, #2f56d8 0%, rgb(47 86 216 / .85) 30%, rgb(47 86 216 / 0) 70%); animation-delay: -4s; }
.fp__orb--c { width: 38cqw; height: 38cqw; left: 28cqw; top: 22cqw; background: radial-gradient(circle, #3f7bff 0%, rgb(63 123 255 / .8) 30%, rgb(63 123 255 / 0) 70%); animation-delay: -7s; }
.fp__orb--d { width: 28cqw; height: 28cqw; left: 72cqw; top: -8cqw; background: radial-gradient(circle, #3a5fe0 0%, rgb(58 95 224 / .7) 30%, rgb(58 95 224 / 0) 70%); animation-delay: -2s; }
@keyframes fp-orb { from { transform: translate3d(-2cqw, 1cqw, 0) scale(1); } to { transform: translate3d(3cqw, -2cqw, 0) scale(1.1); } }
.fp__card--back { left: -30cqw; top: 22cqw; width: 54cqw; height: 40cqw; filter: blur(1.4cqw); opacity: .9;
  transform: rotateX(34deg) rotateY(-21deg) rotateZ(6deg); background: linear-gradient(150deg, #8fb4ff 0%, #5d86ee 60%, #3d62d4 100%); box-shadow: 0 4cqw 6cqw rgb(18 32 80 / .16); }
.fp__ghostcard { position: absolute; right: 6cqw; top: 6cqw; text-align: right; color: rgb(255 255 255 / .85); }
.fp__ghostcard b { display: block; font-weight: 400; font-size: 2.6cqw; opacity: .7; } .fp__ghostcard em { font-style: normal; font-size: 3.6cqw; }
@keyframes fp-float { from { transform: rotateX(34deg) rotateY(-21deg) rotateZ(6deg) translate3d(0, 0, 0); } to { transform: rotateX(30deg) rotateY(-16deg) rotateZ(4.5deg) translate3d(1.2cqw, -1cqw, 0); } }

.fp__head { position: relative; display: flex; align-items: center; gap: 3.4cqw; }
.fp__ringwrap { position: relative; flex: none; width: 24cqw; height: 24cqw; display: grid; place-items: center; }
.fp__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.fp__track { fill: none; stroke: rgb(255 255 255 / .38); stroke-width: 1.1; }
.fp__arc { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p) * 100); filter: drop-shadow(0 0 1.4cqw rgb(160 190 255 / .9)); }
.fp__plane { position: relative; width: 8.6cqw; height: 8.6cqw; color: #fff; }
.fp__name { font-size: 7.4cqw; line-height: 1.02; letter-spacing: -.02em; }
.fp__go { margin-left: auto; width: 8.6cqw; height: 8.6cqw; transform: translate(-2.7cqw, .6cqw); border-radius: 50%; display: grid; place-items: center; align-self: center; position: relative;
  background: radial-gradient(circle at 50% 18%, rgb(255 255 255 / .34), rgb(255 255 255 / .1) 60%), rgb(120 135 220 / .42);
  box-shadow: inset 0 0 0 .3cqw rgb(255 255 255 / .38), inset 0 -1.2cqw 2cqw rgb(40 55 150 / .4), inset 0 .8cqw 1.6cqw rgb(255 255 255 / .3), 0 1.2cqw 2.4cqw rgb(15 25 90 / .25); }
.fp__go svg { width: 4.6cqw; height: 4.6cqw; color: #fff; }
.fp__mid { display: block; margin-top: 1.4cqw; }
.fp__lab { display: block; font-size: 2.6cqw; color: rgb(255 255 255 / .85); }
.fp__amt { display: block; font-size: 7.4cqw; line-height: 1.05; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.fp__tgt { position: absolute; right: 4.6cqw; top: 31cqw; text-align: right; font-size: 2.6cqw; color: rgb(255 255 255 / .85); }
.fp__tgt b { display: block; font-weight: 400; font-size: 3.4cqw; color: #fff; }
.fp__ticks { position: absolute; left: 4.6cqw; right: 4.6cqw; bottom: 7.6cqw; height: 4.6cqw; display: flex; justify-content: space-between; align-items: flex-end; }
.fp__ticks i { width: .32cqw; height: 55%; border-radius: 1px; background: rgb(255 255 255 / .28); transition: background-color .25s, height .25s, box-shadow .25s; }
.fp__ticks i:nth-child(5n+1) { height: 80%; }
.fp__ticks i.on { background: #fff; }
.fp__ticks i.now { height: 130%; background: #c9d9ff; box-shadow: 0 0 1.4cqw rgb(190 210 255 / .95); }
.fp__foot { position: absolute; left: 4.6cqw; right: 4.6cqw; bottom: 3cqw; display: flex; justify-content: space-between; font-size: 2.6cqw; color: rgb(255 255 255 / .82); }

.fp__cap { position: absolute; left: 4.4cqw; bottom: 3.6cqw; right: 4.4cqw; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 0 2.4cqw; color: #f2f4fb; }
.fp__capk { grid-column: 1; grid-row: 1; font-size: 1.9cqw; letter-spacing: .16em; text-transform: uppercase; color: rgb(255 255 255 / .55); margin-bottom: .8cqw; }
.fp__capt { grid-column: 1; grid-row: 2; font-size: 2.6cqw; line-height: 1.25; letter-spacing: -.01em; white-space: nowrap; }
.fp__capp { grid-column: 2; grid-row: 1 / span 2; text-align: right; font-size: 5.4cqw; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.fp__capp b { font-weight: 500; } .fp__capp em { display: block; margin-top: .6cqw; font-style: normal; font-size: 2cqw; letter-spacing: .08em; text-transform: uppercase; color: rgb(255 255 255 / .55); }

@media (prefers-reduced-motion: reduce) { .fp__card--main, .fp__card--main::after, .fp__orb, .fp__lens i { animation: none; } .fp__ticks i { transition: none; } }
@media (max-width: 560px) { .fp__capt { font-size: 2.45cqw; } .fp__capk { font-size: 2.2cqw; } }

/* ==========================================================================
   Fori: the working planner, restyled to match the progress-indicator visual (navy stage, liquid-glass card, laptop goal).
   The markup ids and the logic in main.js are unchanged.
   ========================================================================== */
#project-1 .fori-live { position: relative; overflow: hidden; background: radial-gradient(120% 70% at 22% 0%, #1a2c63 0%, #0f1c42 46%, #0a1226 100%); }
#project-1 .fori-live > * { position: relative; z-index: 1; }
#project-1 .fori-live > .fl__orbs { position: absolute; z-index: 0; inset: 0; display: block; pointer-events: none; }
.fl__orb { position: absolute; border-radius: 50%; animation: fp-orb 11s ease-in-out infinite alternate; }
.fl__orb--a { width: 90%; aspect-ratio: 1; left: -22%; top: 4%; background: radial-gradient(circle, #3f68ff 0%, rgb(63 104 255 / .8) 30%, rgb(63 104 255 / 0) 70%); }
.fl__orb--b { width: 80%; aspect-ratio: 1; right: -26%; top: 34%; background: radial-gradient(circle, #7a5cff 0%, rgb(122 92 255 / .8) 30%, rgb(122 92 255 / 0) 70%); animation-delay: -4s; }
.fl__orb--c { width: 76%; aspect-ratio: 1; left: 8%; bottom: -16%; background: radial-gradient(circle, #1fc2ff 0%, rgb(31 194 255 / .7) 30%, rgb(31 194 255 / 0) 70%); animation-delay: -7s; }

#project-1 .fori-live .fori-planner { position: relative; overflow: hidden; border: 0; border-radius: clamp(22px, 7cqw, 40px);
  background: linear-gradient(140deg, rgb(255 255 255 / .26) 0%, rgb(255 255 255 / .05) 34%, rgb(70 110 255 / .16) 70%, rgb(40 70 220 / .28) 100%), rgb(120 150 255 / .2);
  box-shadow: 0 24px 50px rgb(8 14 50 / .45), inset 0 0 0 1px rgb(255 255 255 / .4), inset 12px 12px 26px rgb(255 255 255 / .2), inset -14px -14px 34px rgb(120 160 255 / .28); }
#project-1 .fori-planner > * { position: relative; z-index: 1; }
#project-1 .fori-planner > .fl__lens { position: absolute; z-index: 0; inset: 0; overflow: hidden; border-radius: inherit; filter: blur(14px) saturate(1.7); pointer-events: none; }
.fl__lens i { position: absolute; border-radius: 50%; animation: fp-orb 9s ease-in-out infinite alternate; }
.fl__lens i:nth-child(1) { width: 80%; aspect-ratio: 1; left: -10%; top: -22%; background: radial-gradient(circle, #4a74ff 0%, rgb(74 116 255 / .8) 32%, rgb(74 116 255 / 0) 70%); }
.fl__lens i:nth-child(2) { width: 70%; aspect-ratio: 1; right: -16%; top: 22%; background: radial-gradient(circle, #8a68ff 0%, rgb(138 104 255 / .75) 32%, rgb(138 104 255 / 0) 70%); animation-delay: -3s; }
.fl__lens i:nth-child(3) { width: 74%; aspect-ratio: 1; left: 6%; bottom: -24%; background: radial-gradient(circle, #2cc8ff 0%, rgb(44 200 255 / .7) 32%, rgb(44 200 255 / 0) 70%); animation-delay: -6s; }
/* the sheen: a band of light that slides across the glass */
#project-1 .fori-live .fori-planner::after { content: ""; position: absolute; z-index: 0; inset: -10% -60%; pointer-events: none; background: linear-gradient(105deg, transparent 40%, rgb(255 255 255 / .22) 47%, rgb(255 255 255 / .05) 52%, transparent 58%); transform: translateX(-30%); animation: fp-sheen 7s ease-in-out infinite; }

.fl__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; flex: none;
  background: radial-gradient(circle at 50% 18%, rgb(255 255 255 / .3), rgb(255 255 255 / .08) 60%), rgb(120 135 220 / .35);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .4), inset 0 -6px 10px rgb(40 55 150 / .35), inset 0 4px 8px rgb(255 255 255 / .25); }
.fori-status { padding: 5px 10px; border-radius: 99px; background: rgb(255 255 255 / .1); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .22); }
.fl__ring { position: relative; flex: none; display: grid; place-items: center; align-content: center; width: clamp(96px, 26cqw, 118px); height: clamp(96px, 26cqw, 118px); }
.fl__ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.fl__ring b { position: relative; font-size: clamp(20px, 5.4cqw, 26px); font-weight: 400; letter-spacing: -.03em; line-height: 1; }
.fl__ring span { position: relative; margin-top: 3px; font-size: 8px !important; letter-spacing: 0; white-space: nowrap; color: rgb(255 255 255 / .8); }
#project-1 .fori-planner .fx-bar { height: 6px; background: rgb(255 255 255 / .22); }
#project-1 .fori-planner .fx-bar i { background: #fff; box-shadow: 0 0 10px rgb(190 210 255 / .9); }
#project-1 .fori-planner .fx-step { background: rgb(255 255 255 / .08); border: 0; border-radius: 99px; min-height: 56px; padding: 0 8px; align-items: center; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .28), inset 0 6px 12px rgb(10 20 80 / .18); }
#project-1 .fori-planner .fx-step button { width: 40px; height: 40px; min-height: 0; border-radius: 50%; color: #fff; font-size: 20px; line-height: 1; flex: none;
  background: radial-gradient(circle at 50% 18%, rgb(255 255 255 / .3), rgb(255 255 255 / .08) 60%), rgb(120 135 220 / .35); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .38), inset 0 -5px 8px rgb(40 55 150 / .35), inset 0 3px 6px rgb(255 255 255 / .25); }
#project-1 .fori-planner .fx-step button:hover { background: radial-gradient(circle at 50% 18%, rgb(255 255 255 / .42), rgb(255 255 255 / .14) 60%), rgb(120 135 235 / .5); }
#project-1 .fori-planner .fx-step input { background: transparent; }
#project-1 .fori-planner .fx-step:focus-within { box-shadow: inset 0 0 0 1px rgb(190 210 255 / .8), 0 0 0 3px rgb(120 150 255 / .4); }
#project-1 .fori-planner .fx-step.is-bad { box-shadow: inset 0 0 0 1px #ffa9b5; }
.fori-plan-rhythm { gap: 6px; align-items: flex-end; height: 22px; }
.fori-plan-rhythm i { height: 12px; width: 2px; flex: none; border-radius: 2px; background: rgb(255 255 255 / .28); }
.fori-plan-rhythm i:nth-child(5n+1) { height: 18px; }
.fori-plan-rhythm i:nth-child(-n+12) { background: #fff; }
.fori-plan-rhythm { justify-content: space-between; }
#project-1 .fori-planner .fx-btns button { min-height: 48px; border-radius: 99px; }
#project-1 .fori-planner .fx-btns .is-ghost { background: rgb(255 255 255 / .1); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .38), inset 0 4px 8px rgb(255 255 255 / .12); }
@media (prefers-reduced-motion: reduce) { .fl__orb, .fl__lens i, #project-1 .fori-live .fori-planner::after { animation: none; } }

/* The exact Figma phone screen, with a staged entrance and no camera crop. */
#project-1 .fori-phone-preview{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;aspect-ratio:auto;padding:24px;background:#eaeaf0;overflow:hidden}
.fori-phone-art{display:block;width:min(100%,390px);height:auto;aspect-ratio:390/790;pointer-events:none}
.fori-phone-replay{font:inherit;font-size:12px;border:1px solid #0c183430;border-radius:100px;padding:10px 18px;background:transparent;color:#0c1834;cursor:pointer}
.fori-phone-replay:focus-visible{outline:2px solid #397cff;outline-offset:4px}

/* ==========================================================================
   Fori planner, v2: one calm navy card in the same language as the rest of the Fori page and the portfolio.
   Deep navy, a faint blue sheen, hairline borders, Manrope, no neon. Overrides the block above.
   ========================================================================== */
#project-1 .fori-live { padding: 0; background: none; overflow: visible; display: block; border-radius: var(--radius); }
#project-1 .fori-live .fori-planner { border-radius: var(--radius); padding: clamp(20px, 6cqw, 36px); gap: 18px;
  background: radial-gradient(120% 70% at 18% 0%, rgb(58 104 235 / .34) 0%, rgb(58 104 235 / 0) 60%), linear-gradient(160deg, #11224d 0%, #0d1b40 55%, #0a1430 100%);
  box-shadow: inset 0 0 0 1px rgb(205 222 255 / .16), inset 0 1px 0 rgb(255 255 255 / .22), 0 18px 40px rgb(10 18 50 / .28); }
#project-1 .fori-planner > .fl__lens { filter: blur(26px) saturate(1.1); opacity: .5; }
.fl__lens i:nth-child(1) { background: radial-gradient(circle, #3f68ff 0%, rgb(63 104 255 / .6) 32%, rgb(63 104 255 / 0) 70%); }
.fl__lens i:nth-child(2) { background: radial-gradient(circle, #2a4fd0 0%, rgb(42 79 208 / .55) 32%, rgb(42 79 208 / 0) 70%); }
.fl__lens i:nth-child(3) { background: radial-gradient(circle, #2a5bd6 0%, rgb(42 91 214 / .5) 32%, rgb(42 91 214 / 0) 70%); }
#project-1 .fori-live .fori-planner::after { background: linear-gradient(105deg, transparent 42%, rgb(255 255 255 / .07) 48%, transparent 56%); }
.fl__icon { width: 38px; height: 38px; background: none; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .35); }
.fori-status { background: none; box-shadow: none; padding: 0; color: rgb(255 255 255 / .8); }
.fori-balance>div>span, .fori-plan-meta, .fori-planner .fx-field>span, .fori-timeline>span { color: rgb(255 255 255 / .66); }
.fl__ring span { color: rgb(255 255 255 / .66); }
.fp__arc { filter: none; }
.fl__ring .fp__arc { filter: drop-shadow(0 0 6px rgb(130 165 255 / .55)); }
#project-1 .fori-planner .fx-bar { background: rgb(255 255 255 / .14); }
#project-1 .fori-planner .fx-bar i { box-shadow: none; }
#project-1 .fori-planner .fx-step { background: rgb(8 18 48 / .4); border-radius: 16px; min-height: 54px; box-shadow: inset 0 0 0 1px rgb(205 222 255 / .22); }
#project-1 .fori-planner .fx-step button { width: 38px; height: 38px; border-radius: 12px; background: rgb(255 255 255 / .07); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .16); }
#project-1 .fori-planner .fx-step button:hover { background: rgb(80 120 240 / .4); }
#project-1 .fori-planner .fx-step:focus-within { box-shadow: inset 0 0 0 1px #89b5ff, 0 0 0 3px rgb(57 124 255 / .35); }
.fori-plan-rhythm i { background: rgb(255 255 255 / .2); }
#project-1 .fori-planner .fx-btns button { border-radius: 14px; min-height: 46px; }
#project-1 .fori-planner .fx-btns .is-ghost { background: none; box-shadow: inset 0 0 0 1px rgb(205 222 255 / .35); }

/* Gombessa: a muted looping video fills the right half (the still image stays underneath as the fallback). */
.pv__vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #161616; }
#project-3 .pv__right::after { display: none; }
@media (prefers-reduced-motion: reduce) { .pv__vid { display: none; } }

/* ==========================================================================
   Fori 05: the animated savings flow, drawn as live vector layout (no screenshots), so text stays sharp at any zoom.
   calc(1 * var(--u)) = one design pixel of the 390 x 790 screen; main.js sets --u on .fa__phone to the current camera scale.
   ========================================================================== */
#project-1 .fa { position: relative; aspect-ratio: 4 / 5; padding: 0; overflow: hidden; border-radius: var(--radius); background: radial-gradient(120% 70% at 22% 0%, #1a2c63 0%, #0f1c42 48%, #0a1226 100%); font-family: Geist, Manrope, system-ui, sans-serif; }
.fa__stage { position: absolute; inset: 0; overflow: hidden; }
.fa__phone { --u: 1px; position: absolute; left: 0; top: 0; width: calc(390 * var(--u)); height: calc(790 * var(--u)); border-radius: calc(46 * var(--u)); background: #0a1a45; box-shadow: 0 calc(40 * var(--u)) calc(80 * var(--u)) rgb(3 8 30 / .55), 0 0 0 1px rgb(255 255 255 / .1); color: #fff; font-size: calc(12 * var(--u)); line-height: 1; }
.fa__scr { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; }
.fa__scr > *, .fa__card > * { position: absolute; display: block; white-space: nowrap; margin: 0; }
.fa__press, .fa__glow, .fa__chip, .fa__cancel { position: absolute; display: block; opacity: 0; pointer-events: none; }
.fs__bg { inset: 0; background:
  linear-gradient(118deg, transparent 8%, rgb(190 210 255 / .0) 14%, rgb(214 228 255 / .78) 25%, rgb(130 165 245 / .3) 35%, transparent 46%),
  linear-gradient(152deg, transparent 52%, rgb(150 180 255 / .0) 58%, rgb(206 222 255 / .8) 70%, rgb(120 155 240 / .3) 80%, transparent 90%),
  radial-gradient(75% 40% at 100% 100%, rgb(36 96 255 / 1), transparent 74%), radial-gradient(65% 34% at 100% 30%, rgb(18 78 255 / .95), transparent 74%), radial-gradient(60% 30% at 0% 92%, rgb(96 140 235 / .8), transparent 72%),
  linear-gradient(165deg, #0a2158 0%, #07163f 36%, #0a2a7e 70%, #1650d0 100%); }
.fs__logo { left: calc(31 * var(--u)); top: calc(35 * var(--u)); width: calc(32 * var(--u)); height: calc(30 * var(--u)); }
.fs__bell, .fs__x { top: calc(30 * var(--u)); width: calc(40 * var(--u)); height: calc(40 * var(--u)); border-radius: 50%; display: grid; place-items: center; }
.fs__bell { left: calc(272 * var(--u)); background: rgb(255 255 255 / .06); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .34); }
.fs__bell svg { width: calc(22 * var(--u)); height: calc(22 * var(--u)); } .fs__bell i { position: absolute; left: calc(29 * var(--u)); top: calc(5 * var(--u)); width: calc(7 * var(--u)); height: calc(7 * var(--u)); border-radius: 50%; background: #4c86ff; }
.fs__x { left: calc(321 * var(--u)); background: #0b1636; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .18); } .fs__x svg { width: calc(18 * var(--u)); height: calc(18 * var(--u)); }
.fs__goal { left: calc(33 * var(--u)); top: calc(103 * var(--u)); font-size: calc(17.5 * var(--u)); font-weight: 300; color: #eef3ff; letter-spacing: -.01em; }
.fs__ontrack { left: calc(165 * var(--u)); top: calc(109 * var(--u)); height: calc(14 * var(--u)); display: flex; align-items: center; gap: calc(7 * var(--u)); font-size: calc(11 * var(--u)); color: #dfe8fa; }
.fs__ontrack i { width: calc(14 * var(--u)); height: calc(14 * var(--u)); border-radius: 50%; background: #3b6bff; display: grid; place-items: center; box-shadow: 0 0 calc(10 * var(--u)) rgb(60 110 255 / .7); } .fs__ontrack u { width: calc(6 * var(--u)); height: calc(6 * var(--u)); border-radius: 50%; background: #fff; }
.fs__bal { left: calc(33 * var(--u)); top: calc(134 * var(--u)); font-size: calc(39 * var(--u)); font-weight: 300; letter-spacing: -.035em; color: #f4f7ff; font-variant-numeric: tabular-nums; }
.fs__bal b { font-weight: 300; }
.fs__saved { left: calc(33 * var(--u)); top: calc(179 * var(--u)); font-size: calc(14 * var(--u)); color: rgb(255 255 255 / .78); }
.fs__weeks { left: calc(33 * var(--u)); top: calc(205 * var(--u)); height: calc(15 * var(--u)); display: flex; align-items: center; gap: calc(4 * var(--u)); font-size: calc(13 * var(--u)); color: rgb(255 255 255 / .8); }
.fs__weeks svg { width: calc(11 * var(--u)); height: calc(11 * var(--u)); margin-right: calc(3 * var(--u)); } .fs__weeks b { font-weight: 300; color: #fff; }
.fs__ring { left: calc(257 * var(--u)); top: calc(108 * var(--u)); width: calc(89 * var(--u)); height: calc(89 * var(--u)); overflow: visible; }
.fs__rtrack { stroke: rgb(255 255 255 / .16); stroke-width: .9; }
.fs__rarc { stroke: #79a8ff; stroke-width: 5.6; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 50; }
.fs__goalr { left: calc(257 * var(--u)); width: calc(89 * var(--u)); text-align: center; top: calc(131 * var(--u)); font-size: calc(9.5 * var(--u)); color: rgb(255 255 255 / .72); }
.fs__pct { left: calc(257 * var(--u)); width: calc(89 * var(--u)); text-align: center; top: calc(148 * var(--u)); font-size: calc(21 * var(--u)); font-weight: 300; color: #f4f7ff; font-variant-numeric: tabular-nums; } .fs__pct b { font-weight: 300; }
.fs__target { left: calc(250 * var(--u)); width: calc(100 * var(--u)); text-align: center; top: calc(204.5 * var(--u)); font-size: calc(11.5 * var(--u)); color: rgb(255 255 255 / .9); }
.fs__next { left: calc(24 * var(--u)); top: calc(245 * var(--u)); width: calc(342 * var(--u)); height: calc(96 * var(--u)); border-radius: calc(20 * var(--u)); background: rgb(255 255 255 / .045); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .22); }
.fs__nl { left: calc(39 * var(--u)); top: calc(258 * var(--u)); font-size: calc(13 * var(--u)); color: #eef3ff; } .fs__nr { right: calc(39 * var(--u)); top: calc(258 * var(--u)); font-size: calc(12.5 * var(--u)); color: #eef3ff; }
.fs__track { left: calc(39 * var(--u)); top: calc(280 * var(--u)); width: calc(312 * var(--u)); height: calc(26 * var(--u)); border-radius: calc(13 * var(--u)); background: rgb(255 255 255 / .07); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .2); }
.fs__fill { left: calc(39 * var(--u)); top: calc(280 * var(--u)); height: calc(26 * var(--u)); width: calc(156 * var(--u)); border-radius: calc(13 * var(--u)); background: linear-gradient(90deg, #3a7bff, #3f82ff); }
.fs__tick { left: calc(195 * var(--u)); top: calc(272 * var(--u)); width: calc(1 * var(--u)); height: calc(9 * var(--u)); margin-left: calc(-.5 * var(--u)); background: rgb(255 255 255 / .85); }
.fs__knob { left: calc(195 * var(--u)); top: calc(293 * var(--u)); width: calc(19 * var(--u)); height: calc(19 * var(--u)); margin: calc(-9.5 * var(--u)) 0 0 calc(-9.5 * var(--u)); border-radius: 50%; background: #fff; box-shadow: 0 calc(2 * var(--u)) calc(6 * var(--u)) rgb(0 20 90 / .4); }
.fs__knob i { position: absolute; left: 50%; top: 50%; width: calc(10 * var(--u)); height: calc(10 * var(--u)); margin: calc(-5 * var(--u)) 0 0 calc(-5 * var(--u)); border-radius: 50%; background: #2f5cff; }
.fs__vl { left: calc(51 * var(--u)); top: calc(287 * var(--u)); font-size: calc(11 * var(--u)); color: #fff; font-weight: 500; } .fs__vr { right: calc(51 * var(--u)); top: calc(287 * var(--u)); font-size: calc(11 * var(--u)); color: #fff; font-weight: 500; } .fs__vl b, .fs__vr b { font-weight: 500; }
.fs__cl { left: calc(40 * var(--u)); top: calc(316 * var(--u)); font-size: calc(11 * var(--u)); color: rgb(255 255 255 / .72); } .fs__cr { right: calc(40 * var(--u)); top: calc(316 * var(--u)); font-size: calc(11 * var(--u)); color: rgb(255 255 255 / .72); }
.fs__panel { left: 0; top: calc(345 * var(--u)); width: calc(390 * var(--u)); height: calc(385 * var(--u)); overflow: visible; }
.fs__tab { top: calc(361.5 * var(--u)); width: calc(120 * var(--u)); margin-left: calc(-60 * var(--u)); text-align: center; font-size: calc(13.5 * var(--u)); color: rgb(255 255 255 / .72); }
.fs__tab1 { left: calc(72 * var(--u)); } .fs__tab2 { left: calc(195 * var(--u)); color: #fff; } .fs__tab3 { left: calc(316 * var(--u)); }
.fs__chart { left: 0; top: calc(396 * var(--u)); width: calc(390 * var(--u)); height: calc(170 * var(--u)); overflow: visible; }
.fs__chart text { font-family: Geist, Manrope, system-ui, sans-serif; }
.fs__ph { left: calc(33 * var(--u)); top: calc(568 * var(--u)); font-size: calc(15 * var(--u)); color: #eef3ff; } .fs__pw { right: calc(39 * var(--u)); top: calc(571 * var(--u)); font-size: calc(10.5 * var(--u)); color: rgb(255 255 255 / .78); }
.fs__grid { left: 0; top: 0; width: calc(390 * var(--u)); height: calc(790 * var(--u)); }
.fs__tile { position: absolute; width: calc(49 * var(--u)); height: calc(54 * var(--u)); border-radius: calc(14 * var(--u)); background: rgb(255 255 255 / .05); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .2); }
.fs__tile i { position: absolute; left: 0; right: 0; top: calc(9.6 * var(--u)); text-align: center; font-style: normal; font-size: calc(11 * var(--u)); color: rgb(255 255 255 / .78); }
.fs__tile b { position: absolute; left: 50%; top: calc(25 * var(--u)); width: calc(19.5 * var(--u)); height: calc(19.5 * var(--u)); margin-left: calc(-9.75 * var(--u)); border-radius: 50%; background: rgb(255 255 255 / .09); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .3); display: grid; place-items: center; }
.fs__tile b svg { width: calc(16 * var(--u)); height: calc(16 * var(--u)); display: none; }
.fs__tile.is-on b { background: linear-gradient(180deg, #a6c4ff, #5b8cff); box-shadow: none; } .fs__tile.is-on b svg { display: block; color: #2f58d8; }
.fs__tile:nth-child(1) { left: calc(32.0 * var(--u)); top: calc(594.0 * var(--u)); }
.fs__tile:nth-child(2) { left: calc(87.4 * var(--u)); top: calc(594.0 * var(--u)); }
.fs__tile:nth-child(3) { left: calc(142.8 * var(--u)); top: calc(594.0 * var(--u)); }
.fs__tile:nth-child(4) { left: calc(198.2 * var(--u)); top: calc(594.0 * var(--u)); }
.fs__tile:nth-child(5) { left: calc(253.6 * var(--u)); top: calc(594.0 * var(--u)); }
.fs__tile:nth-child(6) { left: calc(309.0 * var(--u)); top: calc(594.0 * var(--u)); }
.fs__tile:nth-child(7) { left: calc(32.0 * var(--u)); top: calc(654.5 * var(--u)); }
.fs__tile:nth-child(8) { left: calc(87.4 * var(--u)); top: calc(654.5 * var(--u)); }
.fs__tile:nth-child(9) { left: calc(142.8 * var(--u)); top: calc(654.5 * var(--u)); }
.fs__tile:nth-child(10) { left: calc(198.2 * var(--u)); top: calc(654.5 * var(--u)); }
.fs__tile:nth-child(11) { left: calc(253.6 * var(--u)); top: calc(654.5 * var(--u)); }
.fs__tile:nth-child(12) { left: calc(309.0 * var(--u)); top: calc(654.5 * var(--u)); }
.fs__w10 b { background: rgb(255 255 255 / .09); } .fs__w10 b svg { display: block; opacity: 0; color: #2f58d8; }
.fs__bar { left: calc(19 * var(--u)); top: calc(722 * var(--u)); width: calc(352 * var(--u)); height: calc(46 * var(--u)); border-radius: calc(23 * var(--u)); background: rgb(255 255 255 / .07); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .22); }
.fs__add { left: calc(19 * var(--u)); top: calc(722 * var(--u)); width: calc(136 * var(--u)); height: calc(46 * var(--u)); border-radius: calc(23 * var(--u)); background: #f3f1ea; color: #1b2030; font-size: calc(12 * var(--u)); display: flex; align-items: center; justify-content: center; gap: calc(7 * var(--u)); }
.fs__add svg { width: calc(17 * var(--u)); height: calc(17 * var(--u)); }
.fs__edit, .fs__calc { top: calc(722 * var(--u)); height: calc(46 * var(--u)); display: flex; align-items: center; gap: calc(7 * var(--u)); font-size: calc(12 * var(--u)); color: #fff; } .fs__edit { left: calc(178 * var(--u)); } .fs__calc { left: calc(287 * var(--u)); } .fs__edit svg, .fs__calc svg { width: calc(17 * var(--u)); height: calc(17 * var(--u)); }

.fa__press--add { left: calc(19 * var(--u)); top: calc(722 * var(--u)); width: calc(136 * var(--u)); height: calc(46 * var(--u)); border-radius: calc(23 * var(--u)); background: rgb(12 24 70 / .22); }
.fa__glow { border-radius: calc(18 * var(--u)); }
.fa__glow--bal { left: calc(24 * var(--u)); top: calc(133 * var(--u)); width: calc(114 * var(--u)); height: calc(45 * var(--u)); box-shadow: 0 0 0 1px rgb(150 190 255 / .55), 0 0 calc(28 * var(--u)) calc(6 * var(--u)) rgb(110 160 255 / .45); }
.fa__glow--w10 { left: calc(194 * var(--u)); top: calc(651.5 * var(--u)); width: calc(55.4 * var(--u)); height: calc(60 * var(--u)); border-radius: calc(16 * var(--u)); box-shadow: 0 0 0 1.5px rgb(150 190 255 / .75), 0 0 calc(22 * var(--u)) calc(4 * var(--u)) rgb(110 160 255 / .55); }
.fa__chip { left: calc(118 * var(--u)); top: calc(112 * var(--u)); padding: calc(5 * var(--u)) calc(11 * var(--u)); border-radius: 99px; font-size: calc(12 * var(--u)); font-weight: 500; color: #fff; background: rgb(80 130 255 / .55); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .45), 0 calc(4 * var(--u)) calc(14 * var(--u)) rgb(20 40 130 / .4); }
.fa__cancel { left: 0; width: calc(390 * var(--u)); top: calc(710 * var(--u)); text-align: center; font-size: calc(17 * var(--u)); color: #fff; }

.fa__card { position: absolute; left: calc(21 * var(--u)); top: calc(245 * var(--u)); width: calc(348 * var(--u)); height: calc(298 * var(--u)); border-radius: calc(28 * var(--u)); overflow: hidden; opacity: 0; transform-origin: 50% 50%;
  background: radial-gradient(90% 70% at 85% 100%, rgb(66 118 220 / .75), transparent 70%), linear-gradient(120deg, rgb(255 255 255 / .1) 0%, transparent 38%), linear-gradient(150deg, #0a1b48 0%, #11296a 55%, #2a56a6 100%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .34), 0 calc(24 * var(--u)) calc(50 * var(--u)) rgb(3 8 40 / .5); }
.fc__t { left: calc(24 * var(--u)); top: calc(31 * var(--u)); font-size: calc(19 * var(--u)); font-weight: 400; color: #f4f7ff; } .fc__s { left: calc(24 * var(--u)); top: calc(55 * var(--u)); font-size: calc(10.5 * var(--u)); color: rgb(255 255 255 / .7); }
.fc__ok { left: calc(281 * var(--u)); top: calc(27 * var(--u)); width: calc(44 * var(--u)); height: calc(44 * var(--u)); border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / .1); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .5); } .fc__ok svg { width: calc(24 * var(--u)); height: calc(24 * var(--u)); }
.fa__amt { left: 0; width: calc(348 * var(--u)); top: calc(88 * var(--u)); text-align: center; font-size: calc(60 * var(--u)); font-weight: 300; letter-spacing: -.03em; color: #f4f7ff; font-variant-numeric: tabular-nums; } .fa__amt b { font-weight: 300; }
.fc__pa { left: 0; width: calc(348 * var(--u)); top: calc(173 * var(--u)); text-align: center; font-size: calc(12 * var(--u)); color: rgb(255 255 255 / .75); }
.fa__ticks { left: calc(26 * var(--u)); top: calc(203 * var(--u)); width: calc(298 * var(--u)); height: calc(20 * var(--u)); } .fa__ticks i { position: absolute; bottom: calc(4 * var(--u)); width: calc(1.3 * var(--u)); height: calc(11 * var(--u)); margin-left: calc(-.65 * var(--u)); border-radius: calc(1 * var(--u)); background: rgb(255 255 255 / .38); }
.fa__ticks i:nth-child(4n+1) { height: calc(17 * var(--u)); bottom: 0; } .fa__ticks i.on { background: rgb(255 255 255 / .85); }
.fa__stem { top: calc(202 * var(--u)); width: calc(1.8 * var(--u)); height: calc(20 * var(--u)); background: #3b82ff; border-radius: calc(1 * var(--u)); }
.fa__knob { top: calc(196 * var(--u)); width: calc(13 * var(--u)); height: calc(13 * var(--u)); margin: calc(-6.5 * var(--u)) 0 0 calc(-6.5 * var(--u)); border-radius: 50%; background: #3b82ff; box-shadow: 0 0 0 calc(2 * var(--u)) rgb(255 255 255 / .35), 0 0 calc(12 * var(--u)) rgb(80 140 255 / .8); }
.fa__knob::after { content: ""; position: absolute; left: 50%; top: 50%; width: calc(5 * var(--u)); height: calc(5 * var(--u)); margin: calc(-2.5 * var(--u)) 0 0 calc(-2.5 * var(--u)); border-radius: 50%; background: #fff; }
.fc__l0 { left: calc(24 * var(--u)); top: calc(236 * var(--u)); font-size: calc(9.5 * var(--u)); color: rgb(255 255 255 / .7); } .fc__l1 { right: calc(24 * var(--u)); top: calc(236 * var(--u)); font-size: calc(9.5 * var(--u)); color: rgb(255 255 255 / .7); }
.fc__d { left: 0; width: calc(348 * var(--u)); top: calc(258 * var(--u)); display: flex; justify-content: center; align-items: center; gap: calc(6 * var(--u)); font-size: calc(10.5 * var(--u)); color: rgb(255 255 255 / .85); } .fc__d svg { width: calc(13 * var(--u)); height: calc(13 * var(--u)); }
.fa__press--check { left: calc(281 * var(--u)); top: calc(27 * var(--u)); width: calc(44 * var(--u)); height: calc(44 * var(--u)); border-radius: 50%; background: rgb(255 255 255 / .22); box-shadow: 0 0 0 1px rgb(255 255 255 / .5), 0 0 calc(22 * var(--u)) rgb(140 180 255 / .6); }
.fa__touch { position: absolute; left: 0; top: 0; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; opacity: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 30%, rgb(255 255 255 / .75), rgb(255 255 255 / .38) 70%); box-shadow: 0 0 0 1px rgb(255 255 255 / .7), 0 6px 18px rgb(0 0 0 / .35); }
@media (prefers-reduced-motion: reduce) { .fs__w10 b svg { opacity: 1; } }

/* The step slideshow (section 03) uses the same label face as the Progress indicator card: Manrope, small caps tracking.
   Headline values stay in the site face; slide 1 gets a minimal outline airplane instead of the glowing disc. */
.fm__p small { font-family: Manrope, "Geist", system-ui, sans-serif; font-weight: 400; font-size: 1.7cqw; letter-spacing: .16em; text-transform: uppercase; opacity: .72; }
.fm__p em { font-family: Manrope, "Geist", system-ui, sans-serif; }
.fm__ic--plane { width: auto; height: auto; border: 0; border-radius: 0; background: none; box-shadow: none; }
.fm__ic--plane svg { width: 4.4cqw; height: 4.4cqw; transform: rotate(45deg); }

/* Projects that are not open yet: same hover focus, but a plain cursor and no navigation. */
.card a[data-locked] { cursor: default; }

/* ==========================================================================
   About panel on phones: tighter line spacing and a layout that always fits one screen, clear of the close button
   (top) and the Continue button (bottom). Sizes follow the screen height so short phones still fit. Desktop and tablet are untouched.
   ========================================================================== */
@media (max-width: 560px) {
  .ag__nav { bottom: 6.6rem; gap: .9rem; }
  .ag.is-first .ag__nav { bottom: 6.6rem; }
  /* welcome slide */
  .ag__s--big.ag__s--intro { top: calc(50% - 4.2rem); }
  .ag__s--big.ag__s--intro .ag__lw .ag__lead { padding: .2rem 1rem; }
  .ag__s--big.ag__s--intro .ag__pin { font-size: clamp(.78rem, 1.7dvh, .88rem); line-height: 1.38; padding-top: .9rem; }
  .ag__s--big.ag__s--intro .ag__pin > .ag__p, .ag__s--big.ag__s--intro .ag__pin > .ag__p.is-on { margin: 0 0 .6rem; line-height: 1.38; }
  .ag__s--big.ag__s--intro .ag__pin > .ag__p:last-child { margin-bottom: 0; }
  /* capabilities slide: kicker, title, two paragraphs and the six areas on one screen */
  .ag__s.ag__s--exp { top: 4.7rem; height: auto; align-content: start; gap: .5rem; width: min(46rem, 92vw); }
  .ag__s--exp .ag__h { font-size: clamp(1.25rem, 2.9dvh, 1.55rem); line-height: 1.06; }
  .ag__nar { gap: .5rem; }
  .ag__s--exp .ag__nar > .ag__p { font-size: clamp(.78rem, 1.7dvh, .88rem); line-height: 1.38; }
  .ag__exp { margin-top: .25rem; }
  .ag__xb { padding: clamp(.4rem, 1.15dvh, .62rem) .2rem; }
  .ag__xt { font-size: clamp(.84rem, 1.95dvh, .94rem); }
  /* area detail */
  .ag__dh { font-size: clamp(1.35rem, 3.2dvh, 1.65rem); }
  .ag__dp { font-size: clamp(.8rem, 1.75dvh, .9rem); line-height: 1.42; }
  .ag__xa { gap: .6rem; }
}
@media (max-width: 560px) and (max-height: 700px) {
  .ag__nav { bottom: 5.8rem; gap: .5rem; }
  .ag.is-first .ag__nav { bottom: 5.8rem; }
  .ag__dots { display: none; }
  .ag__s--big.ag__s--intro { top: calc(50% - 3.2rem); }
  .ag__s--big.ag__s--intro .ag__pin { font-size: .74rem; line-height: 1.34; }
}

/* Fori link buttons: when two sit side by side they stay on one line on phones, using the short label. */
.pvs__btn .bs { display: none; }
@media (max-width: 560px) {
  .pvs__links:has(.pvs__btn + .pvs__btn) { flex-wrap: nowrap; gap: .5rem; }
  .pvs__links:has(.pvs__btn + .pvs__btn) .pvs__btn { flex: 1 1 0; min-width: 0; justify-content: center; white-space: nowrap; padding: .75rem .8rem; font-size: .8125rem; gap: .4rem; }
  .pvs__links:has(.pvs__btn + .pvs__btn) .pvs__btn .bl { display: none; }
  .pvs__links:has(.pvs__btn + .pvs__btn) .pvs__btn .bs { display: inline; }
}

/* Home field on touch screens: nothing scrolls up or down; the cards are panned sideways by JS (see initPan). Projects and panels keep their own scrolling. */
@media (pointer: coarse) {
  html:not(.pv-open) .stage { touch-action: none; }
  html:not(.pv-open) body { overscroll-behavior: none; }
}


/* Fori 01: on phones and tablets the "View in Figma" button sits under the text instead of beside the Shows line. */
.pvs__links--m { display: none; }
@media (max-width: 900px) {
  .pvs__links--m { display: flex; margin-top: .6rem; }
  .pvs__row .pvs__btn--sm { display: none; }
}

/* Gombessa: statement + results, the challenge / the solution text blocks, and a captioned image pair. */
.gb-lead { display: grid; gap: clamp(3rem, 7vw, 6.5rem); }
.gb-statement { margin: 0; max-width: 26em; font-size: clamp(1.5rem, 3.3vw, 3.1rem); line-height: 1.2; letter-spacing: -.022em; font-weight: 400; color: var(--fg); text-wrap: pretty; }
.gb-stats { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 5vw, 5rem); }
.gb-stat { display: grid; align-content: start; gap: clamp(1.1rem, 2vw, 1.8rem); padding-top: clamp(1.4rem, 3vw, 2.6rem); border-top: 1px solid var(--line); }
.gb-num { font-family: Newsreader, Georgia, "Times New Roman", serif; font-weight: 300; font-size: clamp(3.4rem, 11vw, 10rem); line-height: .92; letter-spacing: -.03em; color: var(--fg); }
.gb-stat p { margin: 0; max-width: 22ch; font-size: clamp(.85rem, 1.1vw, 1.05rem); line-height: 1.45; color: var(--fg); }
.gb-text { max-width: 1280px; }
.gb-text h3 { margin: 0 0 clamp(1.4rem, 2.4vw, 2.2rem); font-size: clamp(1.7rem, 3vw, 2.7rem); font-weight: 400; letter-spacing: -.03em; line-height: 1.05; color: var(--fg); }
.gb-text p { margin: 0 0 1.3em; max-width: 54rem; font-size: clamp(1.02rem, 1.4vw, 1.3rem); line-height: 1.58; letter-spacing: -.005em; color: var(--fg); text-wrap: pretty; }
.gb-text p:last-child { margin-bottom: 0; }
.gb-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.9rem, 2vw, 1.6rem); }
.gb-item { display: grid; gap: .9rem; }
.gb-item figure { margin: 0; aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; background: var(--card-bg); }
.gb-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gb-item p { margin: 0; text-align: center; font-size: clamp(.8rem, 1vw, .9rem); color: var(--fg); }
@media (max-width: 700px) {
  .gb-num { font-size: clamp(3rem, 17vw, 5rem); }
  .gb-pair { grid-template-columns: 1fr; }
}

/* Gombessa case study: layout after the Wavehouse reference. 1360px grid = 233 | 427 | 40 | 660. Geist, tight tracking, ghost section markers. */
.wh { --c1: 233fr; max-width: 1360px; width: 100%; font-family: "Geist", system-ui, sans-serif; color: var(--fg); }
.wh p { margin: 0; }
.wh figure { margin: 0; overflow: hidden; }
.wh img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv__body:has(.wh) { gap: clamp(3.5rem, 8vw, 7.5rem); padding-inline: clamp(1.25rem, 3vw, 2.5rem); }
.wh-row { display: grid; grid-template-columns: 233fr 427fr 40fr 660fr; align-items: start; }
.wh-text { grid-column: 2; display: grid; gap: 1.9em; font-size: clamp(.95rem, 1.15vw, 1.05rem); line-height: 1.6; color: color-mix(in srgb, var(--fg) 78%, transparent); }
.wh-ghost { grid-column: 4; padding-left: 17.7%; font-size: clamp(3rem, 5vw, 4.6rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; color: color-mix(in srgb, var(--fg) 9%, transparent); user-select: none; }

/* large statement, first line indented to the text column */
.wh-statement p { font-size: clamp(2.1rem, 4.7vw, 4.4rem); font-weight: 500; line-height: 1.06; letter-spacing: -.05em; text-indent: 17.1%; margin-inline: clamp(0rem, 5.5vw, 5rem) 0; max-width: 1180px; text-wrap: pretty; }

/* offset two-column masonry */
.wh-grid { display: grid; grid-template-columns: 660fr 40fr 660fr; }
.wh-col { display: grid; gap: clamp(.8rem, 2.9vw, 2.5rem); align-content: start; }
.wh-col--l { grid-column: 1; }
.wh-col--r { grid-column: 3; }
.wh-a { width: 64.7%; margin-left: 35.3%; aspect-ratio: 3 / 4; }
.wh-c { aspect-ratio: 1; }
.wh-b { aspect-ratio: 1; }
.wh-d { width: 64.7%; aspect-ratio: 3 / 4; }
.wh-grid figure img { transition: scale 1.6s var(--ease); }
.wh-grid figure:hover img { scale: 1.035; }

/* numbers row */
.wh-stats { display: grid; grid-template-columns: 233fr 1127fr; row-gap: clamp(2rem, 4vw, 3.5rem); }
.wh-stats h3 { grid-column: 2; margin: 0; font-size: clamp(1.3rem, 1.9vw, 1.7rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.2; }
.wh-stats ul { grid-column: 2; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.wh-stats li { display: grid; gap: .9rem; align-content: start; }
.wh-stats b { font-size: clamp(3rem, 6.2vw, 5.8rem); font-weight: 600; line-height: .95; letter-spacing: -.06em; }
.wh-stats span { font-size: clamp(.85rem, 1.1vw, 1rem); color: color-mix(in srgb, var(--fg) 50%, transparent); }

.wh-credits { display: grid; grid-template-columns: 233fr 427fr 700fr; }
.wh-credits p { grid-column: 2; font-size: clamp(.95rem, 1.15vw, 1.05rem); line-height: 1.6; color: color-mix(in srgb, var(--fg) 78%, transparent); }

@media (prefers-reduced-motion: reduce) { .wh-grid figure img { transition: none; } }
@media (max-width: 800px) {
  .wh-row, .wh-credits, .wh-stats { grid-template-columns: 1fr; row-gap: 1.2rem; }
  .wh-text, .wh-credits p, .wh-stats h3, .wh-stats ul { grid-column: 1; }
  .wh-ghost { grid-column: 1; grid-row: 1; padding: 0; }
  .wh-statement p { text-indent: 0; margin: 0; font-size: clamp(1.7rem, 8vw, 2.6rem); }
  .wh-grid { grid-template-columns: 1fr; row-gap: clamp(.8rem, 2.9vw, 2.5rem); }
  .wh-col--l, .wh-col--r { grid-column: 1; }
  .wh-stats ul { grid-template-columns: 1fr 1fr; row-gap: 2rem; }
}

/* Reference annotations extend the original Wavehouse modules without changing their layout. */
.wh .wh-reference { overflow:visible; aspect-ratio:auto; }
.wh-reference>a { display:block; overflow:hidden; }
.wh-reference.wh-a>a,.wh-reference.wh-d>a { aspect-ratio:3/4; }
.wh-reference.wh-b>a,.wh-reference.wh-c>a { aspect-ratio:1; }
.wh-reference figcaption { font-size:.7rem; line-height:1.65; padding-top:.75rem; color:color-mix(in srgb,var(--fg) 65%,transparent); }
.wh-reference figcaption>a { color:var(--fg); }
.wh-reference a,.wh-caption a { text-decoration:none; }
.wh-reference a:hover,.wh-caption a:hover { text-decoration:underline; text-underline-offset:3px; }
.wh-reference details { margin-top:.35rem; }
.wh-reference summary { cursor:pointer; font-size:.65rem; }
.wh-reference details p { margin-top:.65rem; max-width:34em; }
.wh-reference details a { text-decoration:underline; }
.wh-reference a:focus-visible,.wh-reference summary:focus-visible { outline:2px solid #8daec6; outline-offset:4px; }
.wh-motion { min-width:0; }
.wh-motion iframe,.wh-motion video { width:100%; aspect-ratio:16/9; border:0; display:block; background:#071423; }
.wh-motion .wh-caption { font-size:.7rem; line-height:1.65; margin-top:.75rem; color:color-mix(in srgb,var(--fg) 65%,transparent); }
.wh-motion .wh-caption+.wh-caption { margin-top:.35rem; font-size:.65rem; }

/* Phones and tablets: keep every scroll-time effect on the compositor (opacity + transform only). Blur filters, clip-path reveals and
   view-timeline drift are rasterised on the CPU or main thread on iOS and are what makes a long swipe stutter. */
@media (pointer: coarse) {
  .track, .progress { animation: none !important; }
  .track { will-change: transform; transform: translate3d(0, 0, 0); }   /* the pan is written directly by main.js on touch (applyPan): no scroll-timeline lag */
  [data-rv] { filter: none !important; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); will-change: opacity, transform; }
  [data-rv].is-in { transform: none; will-change: auto; }
  [data-rv] figure, figure[data-rv] { clip-path: none !important; transition: none; }
  [data-drift] { animation: none !important; translate: none !important; }
  .pv__big, .pv__vid, .pvs__fig img { animation: none !important; scale: 1; }
  /* while a finger is panning the field: stop the decorative loops so the compositor only has the pan to do */
  html.is-panning .card a, html.is-panning .ambient i { animation-play-state: paused; }
  /* a fixed blend-mode title over moving cards forces an offscreen pass every frame on iOS; plain ink instead */
  .field__intro { mix-blend-mode: normal; color: var(--fg); }
  .glass__warp { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .pv { -webkit-overflow-scrolling: touch; }
}

/* Touch performance, part 2: nothing decorative may run while a finger is scrolling or swiping. */
@media (pointer: coarse) {
  /* home field + background are fully covered by an open project: stop their loops at once and, once the open transition is over, stop drawing them */
  html.pv-open .ambient i, html.pv-open .card a { animation-play-state: paused; }
  html.pv-open .field, html.pv-open .ambient { visibility: hidden; transition: visibility 0s 1.6s; }
  /* blend modes over moving content force an offscreen pass every frame on iOS: plain ink instead */
  .follow, .scrollcue, .theme-toggle { mix-blend-mode: normal; color: var(--fg); }
  /* the expanded share links were light grey and only turned dark through the blend mode: give them the page ink (dark on light, light on dark) */
  .follow__btn, .follow__toggle, .theme-toggle { color: var(--fg); }
  .follow__btn:focus-visible, .follow__toggle:focus-visible { outline-color: var(--fg); }
  /* without the blend mode, an open panel darker or lighter than the site theme
     makes those controls vanish: the current panel's surface decides their ink
     (--chrome-ink, declared per panel below the coarse block) */
  html.pv-open .follow, html.pv-open .scrollcue, html.pv-open .theme-toggle,
  html.pv-open .follow__btn, html.pv-open .follow__toggle { color: var(--chrome-ink, var(--fg)); }
  html.pv-open .follow__btn:focus-visible, html.pv-open .follow__toggle:focus-visible { outline-color: var(--chrome-ink, var(--fg)); }
  /* the dock pill carries its own smoke, so the white glyphs read on any page */
  .dock .glass__shade { background: rgb(0 0 0 / .38); }
  .dock__item { color: rgb(255 255 255 / .92); }
  .follow__list .follow__btn { opacity: .9; }
  /* Fori glass hero: a still frame (looping blurred shapes under a backdrop blur is what stalls a scroll) */
  .fg__l i, .fg__card, .fg__card::after { animation: none !important; }
  .fg__card { -webkit-backdrop-filter: blur(calc(1.4 * var(--u))) brightness(.75); backdrop-filter: blur(calc(1.4 * var(--u))) brightness(.75); }
  #project-1 .w { filter: none !important; }
}
/* Each panel whose surface differs from the site theme declares the ink its
   fixed edge controls need while it is open (used by the coarse-pointer rules
   above; the desktop blend mode makes this automatic there). Add a line here
   whenever a new panel ships with its own background. */
html:has(#project-8.is-current:not([data-sa-theme])) { --chrome-ink: #ececea; }   /* Mercedes, dark hull backdrop */
html:has(#project-8.is-current[data-sa-theme]) { --chrome-ink: #17181a; }         /* Mercedes, inverted to light */
html:has(#project-5.is-current) { --chrome-ink: #262523; }                        /* Alba, white editorial shell */

/* The next-project carousel belongs to the current case-study surface. */
.pv__body > .pvs--next{background:inherit}

/* A single idle hint distinguishes projects from the decorative image layers. */
#work .card__ph{transition:opacity .8s var(--ease-focus)}
#work.is-scroll-cue .card__ph{opacity:.182}
.home-scroll-cue{margin:0;position:fixed;left:var(--gutter);bottom:calc(28px + env(safe-area-inset-bottom));z-index:5;pointer-events:none;display:flex;align-items:center;gap:12px;color:var(--fg);font-size:12px;letter-spacing:.04em;opacity:0;transition:opacity .25s var(--ease)}
.home-scroll-cue.is-visible{opacity:.72}
.home-scroll-cue__arrow{display:inline-block;flex:none;font-size:22px;line-height:1;transform-origin:center}
@media(max-width:600px){.home-scroll-cue{bottom:calc(64px + env(safe-area-inset-bottom));font-size:11px}}
@media(prefers-reduced-motion:reduce){#work .card__ph{transition-duration:.2s}}

/* ============================================================
   Rolex Titanium — light variant (project is dark by default).
   In light mode the four theme tokens flip to a warm paper
   palette; the few hard-coded darks get light equivalents.
   Scoped to :not([data-theme="dark"]) so the dark design is
   untouched when the invert button is on.
   ============================================================ */
html:not([data-theme="dark"]) #project-6 { --panel: #f1f0ec; --fg: #1b1a18; --muted: #6f6d67; --card-bg: #e7e6e1; }
html:not([data-theme="dark"]) #project-6 .rx-panel { color: #1b1a18; }
html:not([data-theme="dark"]) #project-6 .rx-brand { color: #1b1a18; }
html:not([data-theme="dark"]) #project-6 .rx-desc,
html:not([data-theme="dark"]) #project-6 .rx-thumb figcaption,
html:not([data-theme="dark"]) #project-6 .rx-caps { color: #6f6d67; }
html:not([data-theme="dark"]) #project-6 .rx-cta { border-color: rgb(0 0 0 / .26); color: #1b1a18; }
html:not([data-theme="dark"]) #project-6 .rx-cta:hover,
html:not([data-theme="dark"]) #project-6 .rx-cta:focus-visible { background: rgb(0 0 0 / .06); border-color: #1b1a18; }
html:not([data-theme="dark"]) #project-6 .rx-thumb-img { background: #e7e6e1; }
html:not([data-theme="dark"]) #project-6 .rx-mat-bg { opacity: .2; }
