/* LEINAT · Home · recreated from the Cargo site (Nov 2026)
   Cargo sizes all type from the window HEIGHT: base = 1.44vh.
   Every size below is a multiple of that base, measured on the live page. */

@font-face {
  font-family: "Alte Haas Grotesk";
  src: url("../fonts/AlteHaasGrotesk-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "Alte Haas Grotesk";
  src: url("../fonts/AlteHaasGrotesk-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: block;
}

:root {
  --b: 15px;                       /* base size, FIXED (was 1.44vh = 15px at a 1043px high window). Deja: text must not change when the window height changes */
  --ink: rgba(64, 64, 64, 0.25);    /* project titles and descriptions */
  --ink-hot: rgba(64, 64, 64, 0.51);/* the IA in CREATIVIA */
  --line: #b4b4b4;

  /* ---- LIGHT theme tokens (default). Dark overrides are in the block right below. ---- */
  --bg: #fff;
  --fg: #000;
  --strong: #363636;                /* hovered title, section headers (never black) */
  --strong-sub: rgba(54, 54, 54, 0.6);
  --hr-shadow: rgba(0, 0, 0, 0.06);
  --tip-bg: rgba(236, 236, 240, 0.55);
  --ground-top: rgba(0, 0, 0, 0.018);      /* page ground while a cover shows (top of the gradient) */
  --ground-bot: rgba(0, 0, 0, 0.075);      /* and the bottom of it */
  /* floating nav glass */
  --pcard-fill: #e9e9ec;                   /* previous / next cards: very light grey fill */
  --pcard-bg: rgba(60, 60, 67, 0.16);       /* previous / next project cards, darker for more contrast */
  --pcard-bg-hot: rgba(60, 60, 67, 0.22);
  --panel-ink: #343437;                    /* Contact and Info main text: halfway between the first near black (#1d1d1f) and #4a4a4e */
  --panel-text: #444448;                   /* their paragraphs: halfway between #1d1d1f and #6a6a6e */
  --panel-label: rgba(70, 70, 74, 0.72);   /* their labels: halfway between the old #6a6a6e and the light tag grey */
  --pclient-ink: #4a4a4e;                  /* client names on the project page */
  --ptitle: rgba(30, 30, 30, 0.88);        /* project title: dark grey, see through, so the overlapping letters show */
  --bg-proj: #f1f1f2;                       /* project page ground, very light grey */
  --pinfo-bg: rgba(232, 232, 236, 0.9);       /* top of the inner box */
  --pinfo-bg2: rgba(203, 203, 212, 0.9);      /* bottom of the inner box: a soft gradient so the box reads against the glass */   /* project page: the W Hotel info box, less transparent */
  --g-tint: rgba(112, 118, 130, 0.165);   /* light theme: about 2 percent darker than the first version (was .13) */
  --g-sheen: rgba(255, 255, 255, 0.28);
  --g-hair: rgba(40, 44, 54, 0.22);
  --g-in: rgba(255, 255, 255, 0.5);
  --g-lip-t: rgba(255, 255, 255, 0.55);
  --g-lip-b: rgba(255, 255, 255, 0.25);
  --g-edge: rgba(60, 66, 80, 0.12);
  --g-drop: rgba(20, 24, 34, 0.16);
  --g-drop2: rgba(20, 24, 34, 0.12);
  --g-spec1: rgba(255, 255, 255, 0.85);
  --g-spec2: rgba(255, 255, 255, 0.55);
  --g-top: rgba(255, 255, 255, 0.22);
  /* nav pill */
  --seg-bg: rgba(60, 60, 67, 0.075);
  --seg-in: rgba(0, 0, 0, 0.04);
  --seg-text: #6a6a6e;
  --seg-hot: #2a2a2c;
  --seg-on: #1d1d1f;
  --thumb: rgba(255, 255, 255, 0.96);
  --thumb-g1: rgba(255, 255, 255, 1);
  --thumb-g2: rgba(255, 255, 255, 0.8);
  --thumb-sh: rgba(0, 0, 0, 0.07);
  /* nav buttons, tooltip, logo */
  --btn-line: rgba(60, 60, 67, 0.2);
  --btn-line-hot: rgba(60, 60, 67, 0.4);
  --btn-ink: rgba(60, 60, 67, 0.72);
  --btn-ink-hot: rgba(30, 30, 34, 0.9);
  --btn-focus: rgba(60, 60, 67, 0.4);
  --tt-bg: #3a3a3c;
  --tt-fg: #fff;
  --tag: rgba(70, 70, 74, 0.62);
  --logo-filter: none;
  color-scheme: light;
}

/* ---- DARK theme: only the tokens change. Switched with data-theme="dark" on <html>. ---- */
:root[data-theme="dark"] {
  --bg: #000;
  --fg: #e6e6e6;
  --ink: rgba(255, 255, 255, 0.2);
  --ink-hot: rgba(255, 255, 255, 0.42);
  --line: #3c3c3c;
  --strong: #e6e6e6;
  --strong-sub: rgba(230, 230, 230, 0.5);
  --hr-shadow: rgba(255, 255, 255, 0.03);
  --tip-bg: rgba(48, 48, 54, 0.55);
  --ground-top: rgba(255, 255, 255, 0.02);
  --ground-bot: rgba(255, 255, 255, 0.07);
  --g-tint: rgba(255, 255, 255, 0.07);
  --pcard-fill: rgba(255, 255, 255, 0.16);
  --pcard-bg: rgba(255, 255, 255, 0.14);
  --pcard-bg-hot: rgba(255, 255, 255, 0.2);
  --panel-ink: rgba(245, 245, 248, 0.92);
  --panel-text: rgba(235, 235, 240, 0.74);
  --panel-label: rgba(235, 235, 240, 0.62);
  --pclient-ink: rgba(235, 235, 240, 0.82);
  --ptitle: rgba(255, 255, 255, 0.6);
  --bg-proj: #000;
  --pinfo-bg: rgba(52, 52, 58, 0.9);
  --pinfo-bg2: rgba(26, 26, 30, 0.9);
  --g-sheen: rgba(255, 255, 255, 0.1);
  --g-hair: rgba(255, 255, 255, 0.14);
  --g-in: rgba(255, 255, 255, 0.05);
  --g-lip-t: rgba(255, 255, 255, 0.16);
  --g-lip-b: rgba(255, 255, 255, 0.05);
  --g-edge: rgba(0, 0, 0, 0.3);
  --g-drop: rgba(0, 0, 0, 0.55);
  --g-drop2: rgba(0, 0, 0, 0.4);
  --g-spec1: rgba(255, 255, 255, 0.34);
  --g-spec2: rgba(255, 255, 255, 0.18);
  --g-top: rgba(255, 255, 255, 0.07);
  --seg-bg: rgba(255, 255, 255, 0.07);
  --seg-in: rgba(0, 0, 0, 0.25);
  --seg-text: #8e8e93;
  --seg-hot: #ffffff;
  --seg-on: #ffffff;
  --thumb: rgba(255, 255, 255, 0.16);
  --thumb-g1: rgba(255, 255, 255, 0.12);
  --thumb-g2: rgba(255, 255, 255, 0.06);
  --thumb-sh: rgba(0, 0, 0, 0.3);
  --btn-line: rgba(255, 255, 255, 0.2);
  --btn-line-hot: rgba(255, 255, 255, 0.42);
  --btn-ink: rgba(255, 255, 255, 0.7);
  --btn-ink-hot: #fff;
  --btn-focus: rgba(255, 255, 255, 0.5);
  --tt-bg: #e8e8ea;
  --tt-fg: #1d1d1f;
  --tag: rgba(235, 235, 240, 0.55);
  --logo-filter: invert(1) brightness(1.15);   /* wordmark #363636 becomes #e6e6e6, the black cat becomes white */
  color-scheme: dark;
}

/* Smooth theme change: the browser cross fades the whole page (JS uses document.startViewTransition) */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: ease; }

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.home {
  margin: calc(var(--b) * 0.9);
  padding: 3vh 2vw 64px;
}

/* Section header: right aligned, two lines */
.sec-head {
  margin: 0;
  text-align: right;
  font-size: calc(var(--b) * 0.882);
  line-height: calc(var(--b) * 0.9702);
  letter-spacing: 0;                  /* was -0.028em, Deja: letters too close */
  font-weight: 400;
}
.sec-head br { display: none; }
.sec-head b,
.sec-head span { display: block; }
.sec-head b {
  font-weight: 700;
  font-size: calc(var(--b) * 0.833);
  color: var(--strong);
}
.sec-head span {
  font-size: calc(var(--b) * 0.8085);
  color: var(--strong-sub);
}

/* Session 4: the section header (02, 03) and its line sit closer to the project name above (pulled up 1.25b = 19px) */
.row + .sec-head { margin-top: calc(var(--b) * -1.25); }

/* Thin medium grey line */
.home hr {
  border: 0;
  height: 1px;
  margin: var(--b) 0;
  /* hairline that fades out at both ends, like the edge of the glass nav */
  background: linear-gradient(90deg, transparent 0, var(--line) 9%, var(--line) 91%, transparent 100%);
  transform: scaleY(0.5);
  box-shadow: 0 -3px 5px -2px var(--hr-shadow); /* faint soft shade above the line */
}

/* Project rows */
.row { display: block; color: inherit; text-decoration: none; }
a.row { cursor: pointer; }
div.row { cursor: default; }

.row h1 {
  margin: 0;
  font-family: "Alte Haas Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: calc(var(--b) * 5.247);
  line-height: 0.9;
  letter-spacing: var(--bb-space, -0.127em);
  word-spacing: var(--bb-word, 0em);   /* Word spacing slider (Deja, 18 Nov) */   /* slider in the wave panel (Deja, 18 Nov) */
  color: var(--ink);
}
/* Description = tooltip bubble (like the macOS/iOS label). Hidden until the title is hovered.
   Text 1.009 x base (1.0967 minus 8%). One single see-through frosted shape: the pill and the curved
   pointer are cut out of the SAME element with a mask, so there is no gap and no double colour. */
.row { width: fit-content; max-width: 100%; }
.row h1 { position: relative; }
.row h1 .d {
  --tip: var(--tip-bg);                      /* see-through frosted glass (light or dark) */
  --ar: calc(var(--b) * 0.6);                /* pointer width */
  --r: calc(var(--b) * 0.66);                /* pill corner radius */
  position: absolute;
  left: calc(100% + var(--b) * 0.7);         /* pill itself starts 1.3 x base after the title */
  top: 50%;
  white-space: nowrap;
  pointer-events: none;
  font-weight: 400;
  font-size: calc(var(--b) * 1.009);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--strong);
  padding: calc(var(--b) * 0.42) calc(var(--b) * 1.2) calc(var(--b) * 0.42) calc(var(--b) * 1.2 + var(--ar));
  background: var(--tip);
  -webkit-backdrop-filter: blur(calc(var(--b) * 0.9)) saturate(1.6);
  backdrop-filter: blur(calc(var(--b) * 0.9)) saturate(1.6);
  /* mask = pointer + rounded body (bars + 4 round corners), all added together */
  -webkit-mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 40'%3E%3Cpath d='M13 13L12 13C12 16.5 8.4 17.4 5 18.6Q2.4 20 5 21.4C8.4 22.6 12 23.5 12 27L13 27Z'/%3E%3C/svg%3E") 0 50% / calc(var(--ar) * 13 / 12) calc(var(--b) * 2) no-repeat,
    linear-gradient(#000 0 0) calc(var(--ar) + var(--r) - 1px) 0 / calc(100% - var(--ar) - 2 * var(--r) + 2px) 100% no-repeat,
    linear-gradient(#000 0 0) var(--ar) calc(var(--r) - 1px) / calc(100% - var(--ar)) calc(100% - 2 * var(--r) + 2px) no-repeat,
    radial-gradient(circle at 100% 100%, #000 calc(var(--r) - 0.5px), transparent var(--r)) var(--ar) 0 / var(--r) var(--r) no-repeat,
    radial-gradient(circle at 0 100%, #000 calc(var(--r) - 0.5px), transparent var(--r)) 100% 0 / var(--r) var(--r) no-repeat,
    radial-gradient(circle at 100% 0, #000 calc(var(--r) - 0.5px), transparent var(--r)) var(--ar) 100% / var(--r) var(--r) no-repeat,
    radial-gradient(circle at 0 0, #000 calc(var(--r) - 0.5px), transparent var(--r)) 100% 100% / var(--r) var(--r) no-repeat;
  mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 40'%3E%3Cpath d='M13 13L12 13C12 16.5 8.4 17.4 5 18.6Q2.4 20 5 21.4C8.4 22.6 12 23.5 12 27L13 27Z'/%3E%3C/svg%3E") 0 50% / calc(var(--ar) * 13 / 12) calc(var(--b) * 2) no-repeat,
    linear-gradient(#000 0 0) calc(var(--ar) + var(--r) - 1px) 0 / calc(100% - var(--ar) - 2 * var(--r) + 2px) 100% no-repeat,
    linear-gradient(#000 0 0) var(--ar) calc(var(--r) - 1px) / calc(100% - var(--ar)) calc(100% - 2 * var(--r) + 2px) no-repeat,
    radial-gradient(circle at 100% 100%, #000 calc(var(--r) - 0.5px), transparent var(--r)) var(--ar) 0 / var(--r) var(--r) no-repeat,
    radial-gradient(circle at 0 100%, #000 calc(var(--r) - 0.5px), transparent var(--r)) 100% 0 / var(--r) var(--r) no-repeat,
    radial-gradient(circle at 100% 0, #000 calc(var(--r) - 0.5px), transparent var(--r)) var(--ar) 100% / var(--r) var(--r) no-repeat,
    radial-gradient(circle at 0 0, #000 calc(var(--r) - 0.5px), transparent var(--r)) 100% 100% / var(--r) var(--r) no-repeat;
  opacity: 0;
  transform: translate(calc(var(--b) * -0.7), -50%) scale(0.94);
  transform-origin: left center;
  transition: opacity .2s ease, transform .28s cubic-bezier(.2, .9, .25, 1.15);
  z-index: 5;
}
.row:hover h1 .d,
.row:focus-visible h1 .d {
  opacity: 1;
  transform: translate(0, -50%) scale(1);
}
.row h1 .hot { color: var(--ink-hot); margin-left: 0.1em; } /* opens the V/I gap in CREATIVIA */

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---------- Floating nav · liquid glass box (content comes later) ---------- */
/* v2: thicker glass edge like iOS: dark hairline, bright inner line, a refracting
   edge band, two specular crescents. Body is a cool neutral tint so it reads as glass
   even on a white page. */
.nav{
  position:fixed;
  /* same distances as Antonio Ramirez's site (aaantonio.xyz): 24px from the window edges, 18px padding inside the box */
  right:24px;
  bottom:24px;
  width:calc(var(--b)*31);
  height:calc(var(--b)*14.6);
  border-radius:calc(var(--b)*1.9);
  z-index:50;
  --s: .85;                                 /* the whole nav is 15 percent smaller */
  transform: scale(var(--s));
  transform-origin: 100% 100%;              /* shrinks toward the bottom right, the 24px distances stay */
}
.nav-glass{
  position:absolute;inset:0;
  border-radius:inherit;
  overflow:hidden;
  background:
    linear-gradient(165deg,var(--g-sheen),transparent 40%),
    var(--g-tint);
  -webkit-backdrop-filter:blur(calc(var(--b)*.9)) saturate(1.9) contrast(1.05);
  backdrop-filter:blur(calc(var(--b)*.9)) saturate(1.9) contrast(1.05);
  box-shadow:
    inset 0 0 0 1px var(--g-hair),                              /* outer hairline */
    inset 0 0 0 1px var(--g-in),                                /* inner white line: now 1px, hidden under the hairline, so only ONE white 1px stroke shows (the corner crescents and the lips) */
    inset 0 1px 1px var(--g-lip-t),                             /* top lip */
    inset 0 -1px 1px var(--g-lip-b),                            /* bottom lip */
    inset 0 0 calc(var(--b)*1.2) 0 var(--g-edge),               /* soft edge band */
    0 calc(var(--b)*.6) calc(var(--b)*2.2) var(--g-drop),       /* drop shadow */
    0 1px 2px var(--g-drop2);
}
/* specular crescents: top left and bottom right, like light caught in the thick edge */
.nav-glass::before,
.nav-glass::after{
  content:"";position:absolute;pointer-events:none;border-radius:inherit;inset:0;
}
.nav-glass::before{
  background:
    radial-gradient(60% 55% at 6% 0%,var(--g-spec1),transparent 60%),
    radial-gradient(45% 45% at 100% 100%,var(--g-spec2),transparent 60%);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;mask-composite:exclude;
  padding:1px;   /* white stroke 1px */
}
.nav-glass::after{
  background:linear-gradient(180deg,var(--g-top),transparent 22%);
}

/* ---------- Hover covers (same as Cargo) ---------- */
/* Cargo: the cover is the page background, fixed, centred, 1291px wide at a 1526 x 1043 window,
   which is 80.44% of the window height. The jpg already has its rounded corners and white margin. */
.covers { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.cv {
  position: absolute; left: 50%; top: 50%;
  height: 80.44vh; width: auto; max-width: 100vw;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity .28s ease;
}
.home { position: relative; z-index: 1; }
/* Dark theme uses its own cover files (img/covers_dark): same pictures, but the white margin and rounded corners are black */
/* Ground: while a cover shows, the page behind it turns a touch darker, with a soft gradient (idea from aaantonio.xyz, which glows the colours of the project).
   Neutral for now, a coloured and animated version can come later. */
.ground { position: absolute; inset: 0; background: linear-gradient(180deg, var(--ground-top), var(--ground-bot)); opacity: 0; transition: opacity .45s ease; }
body:has(.row:hover) .ground { opacity: 1; }
.cv-d { display: none; }

/* ---------- Sketchbook cover: hover the word "Sketchbook" in the nav pill ---------- */
/* Full page, edge to edge (object-fit: cover, so the sides can be trimmed a little). Three sketchbook pages cross fade while the mouse stays on the word.
   The nav stays on top. The project titles, section headers and grey lines fade out so only the pages show. */
.sk { position: absolute; inset: 0; background: var(--bg); opacity: 0; transition: opacity .3s ease; }
.sk img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.sk .sk-1 { opacity: 1; }
body:has(.seg a[href="#sketchbook"]:hover) .sk,
body:has(.seg a[href="#sketchbook"]:focus-visible) .sk { opacity: 1; }
/* 3 pages, 2 seconds each (6 s loop). Order: sketchbook-03 (IMG_2615-2) first, then 01, then 02. Page 1 is always underneath, 2 and 3 fade in on top of it, and both fade out at the end of the loop to show page 1 again. */
body:has(.seg a[href="#sketchbook"]:hover) .sk .sk-2,
body:has(.seg a[href="#sketchbook"]:focus-visible) .sk .sk-2 { animation: sk-swap-2 6s ease-in-out infinite; }
body:has(.seg a[href="#sketchbook"]:hover) .sk .sk-3,
body:has(.seg a[href="#sketchbook"]:focus-visible) .sk .sk-3 { animation: sk-swap-3 6s ease-in-out infinite; }
@keyframes sk-swap-2 { 0%, 28% { opacity: 0; } 36%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes sk-swap-3 { 0%, 61% { opacity: 0; } 69%, 94% { opacity: 1; } 100% { opacity: 0; } }
.home .row { transition: opacity .25s ease; }
body:has(.seg a[href="#sketchbook"]:hover) .home .row,
body:has(.seg a[href="#sketchbook"]:focus-visible) .home .row { opacity: 0; }   /* project names fade out so only the sketchbook pages and the nav show */
body:has(.seg a[href="#sketchbook"]:hover) .sec-head,
body:has(.seg a[href="#sketchbook"]:hover) .home hr,
body:has(.seg a[href="#sketchbook"]:focus-visible) .sec-head,
body:has(.seg a[href="#sketchbook"]:focus-visible) .home hr { opacity: 0; }
:root[data-theme="dark"] .sk img { filter: brightness(0.6); }   /* dark mode: dim the pages a little */

:root[data-theme="dark"] .cv { display: none; }
:root[data-theme="dark"] .cv-d { display: block; }
/* Home, light and dark mode (light added 18 Nov): the cover pictures are stretched to the four corners of the page (Deja, 18 Nov). Deformed on purpose, no cropping. */

body:has(.row[data-slug="w-hotel"]:hover) .cv[data-for="w-hotel"],
body:has(.row[data-slug="cupra-x-rosalia"]:hover) .cv[data-for="cupra-x-rosalia"],
body:has(.row[data-slug="barcelona-city-hall"]:hover) .cv[data-for="barcelona-city-hall"],
body:has(.row[data-slug="australis"]:hover) .cv[data-for="australis"],
body:has(.row[data-slug="central-saint-martins"]:hover) .cv[data-for="central-saint-martins"],
body:has(.row[data-slug="creativia"]:hover) .cv[data-for="creativia"],
body:has(.row[data-slug="3d-ai-education"]:hover) .cv[data-for="3d-ai-education"],
body:has(.row[data-slug="3d-ai-field-notes"]:hover) .cv[data-for="3d-ai-field-notes"],
body:has(.row[data-slug="zara"]:hover) .cv[data-for="zara"],
body:has(.row[data-slug="dressx"]:hover) .cv[data-for="dressx"],
body:has(.row[data-slug="alexander-mcqueen"]:hover) .cv[data-for="alexander-mcqueen"],
body:has(.row[data-slug="pull-bear"]:hover) .cv[data-for="pull-bear"],
body:has(.row[data-slug="textile-prints"]:hover) .cv[data-for="textile-prints"]
{ opacity: 1; }

/* Hovered title goes dark grey (#363636, never black, same as the section headers) and nudges right (0.12em) */
.row h1 { transition: color .2s ease, transform .25s ease; }
.row:hover h1 { color: var(--strong); transform: translateX(.12em); }

/* While a cover is showing, the section headers and the grey lines fade out (as on Cargo).
   The floating nav is not touched, it stays on top. */
.sec-head, .home hr { transition: opacity .25s ease; }
body:has(.row:hover) .sec-head,
body:has(.row:hover) .home hr { opacity: 0; }

/* ---------- Nav · segmented pill (Contact / Info / Sketchbook / Work), ChatGPT style ---------- */
.nav-body { position: absolute; inset: 0; padding: 18px; }   /* 18px like aaantonio.xyz */
.seg {
  position: relative;
  display: flex;
  align-items: stretch;
  width: calc(var(--b) * 31 - 36px);     /* fixed: nav 31b minus its 18px padding each side, so the pill never reflows while the nav shrinks */
  height: calc(var(--b) * 2.8);
  padding: calc(var(--b) * 0.25);
  border-radius: 999px;
  background: var(--seg-bg);
  box-shadow: inset 0 1px 1px var(--seg-in);
}
.seg a {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 calc(var(--b) * 1.05);
  border-radius: 999px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: calc(var(--b) * 0.92);
  letter-spacing: 0.01em;
  color: #fff;   /* white when not selected (Deja, 14 Nov); the selected / hovered item keeps its dark colour on the white thumb */
  text-decoration: none;
  transition: color .2s ease;
}
.seg a:hover { color: var(--seg-hot); }
.seg a[aria-current] { color: var(--seg-on); }
.seg-thumb {
  position: absolute;
  top: calc(var(--b) * 0.46);   /* thumb height 2.15 x base (was 2.64 originally, 1.98 at 25% shorter, then a tiny bit bigger) */
  bottom: calc(var(--b) * 0.46);
  left: var(--x, 0);
  width: var(--w, 0);
  border-radius: 999px;
  background: var(--thumb);
  /* no stroke: only a soft white blur around the box, stronger at the edges */
  box-shadow:
    0 0 calc(var(--b) * 1.1) calc(var(--b) * 0.3) var(--thumb-g1),
    0 0 calc(var(--b) * 2.4) calc(var(--b) * 0.5) var(--thumb-g2),
    0 calc(var(--b) * 0.35) calc(var(--b) * 1.4) var(--thumb-sh);
}
.seg.ready .seg-thumb { transition: left .32s cubic-bezier(.3, .9, .3, 1), width .32s cubic-bezier(.3, .9, .3, 1); }

/* ---------- Nav · two stacked round buttons (dark mode on top, close below). Look only, no action yet ---------- */
.nav-tools {
  position: absolute;
  z-index: 5;
  right: calc(var(--b) * 1.53);
  bottom: calc(var(--b) * 2.9);
  display: flex;
  flex-direction: column;
  gap: calc(var(--b) * 0.4);
}
.nav-btn {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-items: center;
  width: calc(var(--b) * 1.8);
  height: calc(var(--b) * 1.8);
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: calc(var(--b) * 0.6);
  color: var(--btn-ink);
  /* no fill: only a thin stroke, so the button blends with the glass behind it */
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--btn-line);
  cursor: pointer;
  transition: box-shadow .2s ease, color .2s ease, transform .15s ease;
}
.nav-btn svg { width: calc(var(--b) * 1); height: calc(var(--b) * 1); display: block; }
.nav-btn:hover { box-shadow: inset 0 0 0 1px var(--btn-line-hot); color: var(--btn-ink-hot); }
.nav-btn:active { transform: scale(0.95); }
.nav-btn:focus-visible { outline: 2px solid var(--btn-focus); outline-offset: 2px; }

/* Instant tooltip (the native title tooltip waits about a second, so it is replaced by data-tip) */
.nav-btn { position: relative; }
.nav-btn::after {
  content: attr(data-tip);
  position: absolute;
  right: calc(100% + var(--b) * 0.6);
  top: 50%;
  transform: translateY(-50%);
  padding: calc(var(--b) * 0.45) calc(var(--b) * 0.9);
  border-radius: calc(var(--b) * 0.6);
  background: var(--tt-bg);
  color: var(--tt-fg);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: calc(var(--b) * 0.9);
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  z-index: 60;
}
.nav-btn:hover::after, .nav-btn:focus-visible::after { opacity: 1; } /* no transition: appears straight away */

/* ---------- Nav · logo block: artwork (cat + LEINAT) with the tagline under it ---------- */
/* Placed from the target picture: nav = 31 x 14.6 base; logo block centred in the area under the pill. Artwork 15.7 base wide, the wordmark inside it is 12.3 wide. */
.nav-logo { position: absolute; left: calc(var(--b) * 7.8); top: calc(var(--b) * 1);  width: calc(var(--b) * 16); height: 100%; display: block; color: inherit; text-decoration: none; }
.nav-cat, .nav-word { filter: var(--logo-filter); }
.nav-cat { position: absolute; left: calc(var(--b) * 1.56); top: calc(var(--b) * 4.45); height: calc(var(--b) * 8.23); width: auto; display: block; opacity: 0.12; } /* black cat at 12% = same light grey as before */
.nav-word { position: absolute; left: calc(var(--b) * 1.56); top: calc(var(--b) * 7); width: calc(var(--b) * 12.24); height: auto; display: block; } /* wordmark is pre coloured #363636 */
.nav-tag {
  position: absolute;
  left: calc(var(--b) * 1.53);
  top: calc(var(--b) * 9.95);
  width: calc(var(--b) * 12.3);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: calc(var(--b) * 0.8);
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--tag);
  white-space: nowrap;
}

/* ---------- Nav · CLOSE: the whole nav contracts to a narrow capsule (cat on top, the two buttons below) ---------- */
/* The nav is anchored bottom right, so it shrinks toward that corner. Closing: the content fades first, then the box shrinks (.12s delay).
   Opening: the box grows first, then the content fades back in (.4s delay). Class `collapsed` on .nav is set by the script at the end of index.html. */
.nav { transition: width .5s cubic-bezier(.65, 0, .35, 1), height .5s cubic-bezier(.65, 0, .35, 1), border-radius .5s cubic-bezier(.65, 0, .35, 1); }
.nav.collapsed { width: calc(var(--b) * 5.6); height: calc(var(--b) * 11.6); border-radius: calc(var(--b) * 2.8); transition-delay: .12s; } /* radius = half the width: a full capsule */

.seg, .nav-word, .nav-tag { transition: opacity .25s ease .4s; }
.nav.collapsed .seg, .nav.collapsed .nav-word, .nav.collapsed .nav-tag { opacity: 0; pointer-events: none; transition: opacity .15s ease 0s; }
.nav.collapsed .seg-thumb { transition: none; }

.nav-cat { transition: left .5s cubic-bezier(.65, 0, .35, 1), top .5s cubic-bezier(.65, 0, .35, 1), height .5s cubic-bezier(.65, 0, .35, 1), opacity .5s ease; }
/* cat on top, centred in the 5.6b wide capsule (the logo box starts at 7.8b, so left = 1.47b minus 7.8b), a little stronger since it is alone */
.nav.collapsed .nav-cat { left: calc(var(--b) * -6.33); top: calc(var(--b) * 0.5); height: calc(var(--b) * 3.6); opacity: 0.3; transition-delay: .12s; }

.nav-tools { transition: right .5s cubic-bezier(.65, 0, .35, 1), bottom .5s cubic-bezier(.65, 0, .35, 1); }
.nav.collapsed .nav-tools { right: calc(var(--b) * 1.9); bottom: calc(var(--b) * 1.2); transition-delay: .12s; }


/* ---------- Nav · CONTACT panel (click Contact: the nav grows upward, panel with a side bar. Pattern from aaantonio.xyz, sizes are multiples of b) ---------- */
/* --ch = height of the panel in px, measured by the script at the end of index.html. The nav is anchored bottom right, so a taller box grows upward.
   The logo block moves down by the same amount with the same timing, so on screen it does not move. */
/* ONE box: the nav grows upward by the panel height (--ch) plus a gap (--cg). The panel sits at the top, the pill and the logo move down inside the box by the same amount, so on screen they do not move. */
.nav { --cg: calc(var(--b) * 2.53); }   /* space under the panel before the pill, incl. the extra 8px on top */
.nav.open:not(.collapsed) { height: calc(var(--b) * 14.6 + 10px + var(--ch, 0px) + var(--cg)); }
.seg { transition: opacity .25s ease .4s, transform .5s cubic-bezier(.65, 0, .35, 1); }
.nav.open:not(.collapsed) .seg { transform: translateY(calc(var(--ch, 0px) + var(--cg))); }
.nav-logo { transition: top .5s cubic-bezier(.65, 0, .35, 1); }
/* Session 4: the box is 10px taller at the top (grows upward), pill stays at the same place on screen, logo block moves down 10px inside the box so it stays too */
.nav:not(.collapsed) { height: calc(var(--b) * 14.6 + 10px); }
.nav:not(.collapsed) .nav-logo { top: calc(var(--b) * 1 + 10px); }
.nav-logo { pointer-events: none; }                 /* the logo box is tall and would sit on top of the pill words (Info, Sketchbook) */
.nav.collapsed .nav-logo { pointer-events: auto; }   /* only the closed capsule needs the cat to be clickable (opens the nav) */
.nav.open:not(.collapsed) .nav-logo { top: calc(var(--b) * 1 + 10px + var(--ch, 0px) + var(--cg)); }
.contact {
  position: absolute;
  z-index: 4;
  left: 18px;
  top: 26px;
  width: calc(var(--b) * 31 - 36px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
}
.nav[data-panel="contact"].open:not(.collapsed) #contact-panel,
.nav[data-panel="info"].open:not(.collapsed) #info-panel { opacity: 1; pointer-events: auto; transition: opacity .3s ease .22s; }
.ct-in {
  display: flex;
  flex-direction: column;
  gap: calc(var(--b) * 1.05);
  margin: 0 0 0 calc(var(--b) * 0.67);
  padding: calc(var(--b) * 0.27) calc(var(--b) * 0.27) calc(var(--b) * 0.4) calc(var(--b) * 0.93);
  border-left: 1px solid var(--btn-line);     /* the side bar */
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: calc(var(--b) * 0.87 + 2px);
  line-height: 1.4;
  color: var(--panel-ink);
}
.ct-p { margin: 0; color: var(--panel-text); }
.ct-rows { display: flex; flex-direction: column; gap: calc(var(--b) * 0.13); }
.crow { display: grid; grid-template-columns: calc(var(--b) * 5.07) minmax(0, 1fr); align-items: center; gap: calc(var(--b) * 0.8); min-height: calc(var(--b) * 2); }
.ct-l { color: var(--panel-label); font-size: calc(11px / var(--s)); }   /* same on screen size as "Client" on the project page (11px); the nav is scaled by --s so it is divided by it */   /* labels: the same light grey as "Client" on the project page */
.crow a { color: inherit; text-decoration: none; }
.crow .lnk { display: flex; align-items: center; justify-content: space-between; gap: calc(var(--b) * 0.53); min-width: 0; }
.crow a.lnk:hover, .crow .lnk a:hover { color: var(--seg-hot); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.crow .arr { color: var(--tag); flex: 0 0 auto; }
.copy {
  appearance: none; -webkit-appearance: none;
  flex: 0 0 auto;
  height: calc(var(--b) * 1.47);
  padding: 0 calc(var(--b) * 0.53);
  border-radius: calc(var(--b) * 0.4);
  border: 1px solid var(--btn-line);
  background: var(--seg-bg);
  color: var(--seg-text);
  font: inherit;
  font-size: calc(var(--b) * 0.73 + 2px);
  line-height: 1;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}
.copy:hover { color: var(--seg-hot); border-color: var(--btn-line-hot); }
.copy:focus-visible, .cta:focus-visible { outline: 2px solid var(--btn-focus); outline-offset: 2px; }
.cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: calc(var(--b) * 0.53);
  height: calc(var(--b) * 2.13);
  padding: 0 calc(var(--b) * 0.53) 0 calc(var(--b) * 0.8);
  border-radius: calc(var(--b) * 0.53);
  border: 1px solid var(--btn-line);
  background: transparent;
  color: var(--panel-ink);
  font-size: calc(var(--b) * 0.8 + 2px);
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}
.cta:hover { background: var(--seg-bg); border-color: var(--btn-line-hot); }
.cta svg { width: calc(var(--b) * 0.93); height: calc(var(--b) * 0.93); display: block; flex: 0 0 auto; }
.kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: calc(var(--b) * 1.2); height: calc(var(--b) * 1.2); padding: 0 calc(var(--b) * 0.33);
  border-radius: calc(var(--b) * 0.33);
  border: 1px solid var(--btn-line);
  background: var(--seg-bg);
  color: var(--seg-text);
  font: inherit; font-size: calc(var(--b) * 0.7 + 2px); line-height: 1;
}


/* ---------- Nav · INFO panel (click Info: same box as Contact, text copied from aaantonio.xyz/info as a PLACEHOLDER, sizes are multiples of b) ---------- */
.ct-scroll {
  max-height: calc(100vh * 0.4);            /* long text scrolls inside the box */
  overflow-y: auto; overflow-x: hidden;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 2.4em), transparent 100%);
  mask-image: linear-gradient(180deg, #000 calc(100% - 2.4em), transparent 100%);   /* soft fade at the bottom */
}
.ct-scroll::-webkit-scrollbar { display: none; }
.inf { gap: calc(var(--b) * 1.07); padding-bottom: calc(var(--b) * 2.2); }
.inf-intro { display: flex; flex-direction: column; gap: calc(var(--b) * 0.67); }
.inf-intro p { margin: 0; color: var(--panel-text); font-size: calc(var(--b) * 0.87 + 2px); line-height: 1.55; }
.inf-sec { display: flex; flex-direction: column; gap: calc(var(--b) * 0.53); padding-top: calc(var(--b) * 0.93); border-top: 1px solid var(--btn-line); }
.inf-sec h2 { margin: 0; font-size: calc(var(--b) * 0.73 + 2px); font-weight: 400; letter-spacing: 0.04em; text-transform: uppercase; color: var(--tag); }
.inf-exp { display: flex; flex-direction: column; gap: calc(var(--b) * 0.93); }
.inf-exp > div { display: flex; flex-direction: column; align-items: flex-start; gap: calc(var(--b) * 0.33); font-size: calc(var(--b) * 0.87 + 2px); line-height: 1.4; }
.chip { display: inline-flex; align-items: center; height: calc(var(--b) * 1.2); padding: 0 calc(var(--b) * 0.4); border-radius: calc(var(--b) * 0.33); background: var(--seg-bg); border: 1px solid var(--btn-line); font-size: calc(var(--b) * 0.7 + 2px); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; color: var(--seg-text); }
.aw { display: grid; grid-template-columns: calc(var(--b) * 7.7) minmax(0, 1fr) auto; align-items: center; gap: calc(var(--b) * 0.67); min-height: calc(var(--b) * 2.67); padding: calc(var(--b) * 0.27) 0; }
.aw .pill { justify-self: start; display: inline-flex; align-items: center; height: calc(var(--b) * 1.2); padding: 0 calc(var(--b) * 0.4); border-radius: calc(var(--b) * 0.33); border: 1px solid var(--btn-line); font-size: calc(var(--b) * 0.7 + 2px); background: var(--seg-bg); font-weight: 500; color: var(--panel-ink); white-space: nowrap; }
.aw .pill.out { background: transparent; font-weight: 400; color: var(--seg-text); }
.aw .t { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: calc(var(--b) * 0.87 + 2px); line-height: 1.35; }
.aw .t small { font-size: calc(var(--b) * 0.73 + 2px); font-weight: 300; color: var(--seg-text); }
.aw .yr, .svc .num { font-size: calc(var(--b) * 0.73 + 2px); font-variant-numeric: tabular-nums; color: var(--tag); }
.svc { display: flex; align-items: center; gap: calc(var(--b) * 0.67); min-height: calc(var(--b) * 2.27); font-size: calc(var(--b) * 0.87 + 2px); line-height: 1.3; }
.svc .num { width: calc(var(--b) * 1.47); flex: 0 0 auto; }
.tags { display: flex; flex-wrap: wrap; gap: calc(var(--b) * 0.33); }
.tag { display: inline-flex; align-items: center; height: calc(var(--b) * 1.73); padding: 0 calc(var(--b) * 0.6); border-radius: calc(var(--b) * 0.47); background: var(--seg-bg); border: 1px solid var(--btn-line); font-size: calc(var(--b) * 0.8 + 2px); color: var(--panel-ink); }

/* Info: the box reaches the top of the page (24px from the top edge, like the 24px at the bottom), as on aaantonio.xyz. --ch is worked out here, the script does not set it for Info. */
.nav[data-panel="info"] { --ch: calc((100vh - 48px) / var(--s) - var(--b) * 14.6 - 10px - var(--cg)); }   /* divided by the scale so the scaled box still reaches the top */
.info-p { height: var(--ch); }
.info-p .ct-scroll { max-height: none; height: 100%; }


/* ---------- Project page (w-hotel.html): one picture, nothing else, the nav stays bottom right ---------- */
.proj { padding: 2vw; }
.proj img { display: block; width: 100%; height: auto; border-radius: 1.2vw; }
.proj img + img { margin-top: 2vw; }   /* gap between the pictures */


/* ---------- Project page dock (w-hotel.html): two glass boxes at the bottom, like Deja's example picture. Sizes are multiples of b. ---------- */
.proj { padding-bottom: calc(var(--b) * 13); }      /* room so the last picture is not hidden by the dock */
.pdock { position: fixed; left: calc(2vw + var(--b) * 2.5); right: calc(2vw + var(--b) * 2.5); bottom: 24px;   /* inside the width of the pictures */
  z-index: 50; display: flex; gap: calc(var(--b) * 0.6); box-sizing: border-box; height: 169px; padding: calc(var(--b) * 0.6); border-radius: calc(var(--b) * 1.9); }
.pdock > .nav-glass {
  border-radius: inherit;
  /* same glass edges as the nav plus a bigger, soft drop shadow so the dock looks like it floats above the page */
  box-shadow:
    inset 0 0 0 1px var(--g-hair),
    inset 0 0 0 1px var(--g-in),
    inset 0 1px 1px var(--g-lip-t),
    inset 0 -1px 1px var(--g-lip-b),
    inset 0 0 calc(var(--b) * 1.2) 0 var(--g-edge),
    0 calc(var(--b) * 0.6) calc(var(--b) * 2.2) var(--g-drop),
    0 1px 2px var(--g-drop2),
    0 10px 34px rgba(20, 24, 34, 0.24),
    0 3px 8px rgba(20, 24, 34, 0.14);
}
.pdock { transform: translateY(var(--pd, 0px)); will-change: transform; }
/* the cat: light grey, sits on the left of the title, shows only while the dock is scrolled down (--pk goes 0 to 1 with the scroll) */
.pcat { position: absolute; z-index: 3; left: 27px; top: -19px; height: 76px; width: auto; pointer-events: none; opacity: var(--pk, 0); filter: brightness(0) invert(0.55); }
:root[data-theme="dark"] .pcat { filter: brightness(0) invert(0.3); }   /* set by the scroll script: the dock slides down as you scroll */
/* the W Hotel info is a second box inside the big one (same idea as the pill inside the nav) */
.pinfo { position: relative; flex: 1 1 auto; min-width: 0; border-radius: calc(var(--b) * 1.3); }
/* the fill is a separate blurred layer so the edges of the inner box are very soft (blur .7b) */
.pinfo::before { content: ""; position: absolute; inset: calc(var(--b) * 0.15); right: calc(var(--b) * 0.15 - var(--pk, 0) * var(--b) * 16.7);   /* while the dock is scrolled down the inner box grows to the right, almost to the end, so the Index row and arrows sit on it too */ border-radius: calc(var(--b) * 1.3); background: var(--pinfo-bg); filter: blur(calc(var(--b) * 0.7)); pointer-events: none; }
.pside { position: relative; flex: 0 0 calc(var(--b) * 16.1); }
.ptitle { position: absolute; z-index: 2; left: calc(var(--b) * 2.2); top: calc(var(--b) * -3.9); margin: 0; font-family: "Alte Haas Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 700; font-size: calc(var(--b) * 6.2); line-height: 1; letter-spacing: -0.127em; color: var(--ptitle); white-space: nowrap; pointer-events: none; }
.pbody { position: absolute; inset: 0; display: grid; grid-template-columns: 71% 29%; padding: calc(var(--b) * 3.5) calc(var(--b) * 2.2) calc(var(--b) * 1.2); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 13px; line-height: 1.4; color: var(--seg-text); }   /* light grey text like the inspiration picture; fixed 13px, does not change with the window height */
.ptext { padding-right: calc(var(--b) * 2); display: flex; flex-direction: column; gap: 4px; max-width: 100%; }
.ptext p { margin: 0; }
.pclient { border-left: 1px solid var(--btn-line); padding-left: calc(var(--b) * 1.4); display: flex; flex-direction: column; gap: 0; line-height: 1.25; align-self: start; margin-top: -3px; margin-left: calc(var(--b) * 4); }   /* lines up with the first text line (the rooms line) */
.pclient .pl { color: var(--tag); margin-bottom: 12px; font-size: 11px; }
.pclient b { font-weight: 400; color: var(--pclient-ink); margin-top: 10px; }   /* moves only the two name lines down */   /* thin, a darker grey like Procon in the inspiration picture */   /* W Barcelona and Marriott Hotels: same weight, same grey, close together */
.pclient span:last-child { color: var(--pclient-ink); font-weight: 400; }
.prow { position: absolute; left: calc(var(--b) * 0.3); right: calc(var(--b) * 2.4); top: 10px;   /* the buttons are centred in the 70px strip that shows when the dock is scrolled down (Deja 12 Nov: 61, then 52, 70, 75, and back to 70 as the final value) */   /* Index and counter closer to the inner box */ display: flex; align-items: center; justify-content: space-between; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: calc(var(--b) * 0.73); color: var(--seg-text); }
.pidx { display: inline-flex; align-items: center; gap: calc(var(--b) * 0.5); height: calc(var(--b) * 2.1); padding: 0 calc(var(--b) * 0.5) 0 calc(var(--b) * 0.8); border-radius: 999px; background: var(--seg-bg); box-shadow: inset 0 0 0 1px var(--seg-in); color: var(--seg-text); text-decoration: none; transition: background .2s ease, color .2s ease, box-shadow .2s ease; }   /* same capsule as the counter */
.pidx .kbd { border-radius: 999px; padding: 0 calc(var(--b) * 0.6); }   /* the esc chip is a rounded capsule, not a square */
.pidx:hover, .pbtn:hover { background: var(--thumb); color: var(--seg-hot); box-shadow: 0 0 calc(var(--b) * 1.1) calc(var(--b) * 0.3) var(--thumb-g1), 0 0 calc(var(--b) * 2.4) calc(var(--b) * 0.5) var(--thumb-g2), 0 calc(var(--b) * 0.35) calc(var(--b) * 1.4) var(--thumb-sh); }   /* the same white glow as the thumb in the Home pill */
.pcount { display: inline-flex; align-items: center; gap: calc(var(--b) * 0.5); height: calc(var(--b) * 2.1); padding: 0 calc(var(--b) * 0.25); border-radius: 999px; background: var(--seg-bg); box-shadow: inset 0 0 0 1px var(--seg-in); font-variant-numeric: tabular-nums; font-size: calc(var(--b) * 0.8); color: var(--seg-text); margin-right: calc(var(--b) * -1.6); }   /* one capsule like the nav pill: arrow left, number, arrow right */
.pbtn { appearance: none; -webkit-appearance: none; width: calc(var(--b) * 1.6); height: calc(var(--b) * 1.6); border-radius: 999px; border: 0; background: transparent; color: var(--seg-text); font: inherit; font-size: calc(var(--b) * 0.95); line-height: 1; cursor: default; padding: 0; transition: background .2s ease, color .2s ease, box-shadow .2s ease; }
.plogo { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(var(--b) * 0.8); width: calc(var(--b) * 8.4); height: calc(var(--b) * 4.2); display: block; text-decoration: none; }
.p-cat, .p-word { filter: var(--logo-filter); }
.p-cat { position: absolute; left: calc(var(--b) * 2.2); top: calc(var(--b) * -1.4); height: calc(var(--b) * 5.4); width: auto; opacity: 0.12; }
.p-word { position: absolute; left: 0; top: calc(var(--b) * 0.9); width: calc(var(--b) * 8.2); height: auto; }
.p-tag { position: absolute; left: 0; top: calc(var(--b) * 3.2); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: calc(var(--b) * 0.55); color: var(--tag); white-space: nowrap; }

/* project pages: the ground is a very light grey, not pure white (the Home stays white because its covers carry their own white margin) */
html:has(.proj), html:has(.proj) body { background: var(--bg-proj); }

/* project dock: in a narrower window the second paragraph wraps to 3 lines, so the dock gets a little taller there (so no text is cut) */
@media (max-width: 1650px) { .pdock { height: calc(var(--b) * 11.6); } }


/* ---------- Project page end: previous and next project cards (idea from aaantonio.xyz, sizes from Deja's picture) ---------- */
.pnext { display: flex; justify-content: space-between; gap: calc(var(--b) * 0.6); margin-top: 11px; }   /* right under the last picture, one smaller card at each end */
.pcard { flex: 0 0 23vw; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: calc(var(--b) * 1); box-sizing: border-box; min-height: 60px; padding: 10px 18px; border-radius: 12px; position: relative; color: inherit; text-decoration: none; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }
/* no stroke, the fill is a separate layer (white with a soft glow) */
.pcard::before { content: ""; position: absolute; inset: 3px; border-radius: 12px; background: var(--pcard-fill); filter: blur(2px); pointer-events: none; transition: box-shadow .2s ease;
  box-shadow: 0 0 calc(var(--b) * 1.1) calc(var(--b) * 0.3) var(--thumb-g1), 0 0 calc(var(--b) * 2.4) calc(var(--b) * 0.5) var(--thumb-g2), 0 calc(var(--b) * 0.35) calc(var(--b) * 1.4) var(--thumb-sh); }   /* very light grey with a soft white glow, no stroke, like the thumb in the Home pill and the Index button (was a darker grey) */
.pcard:hover::before { box-shadow: 0 0 calc(var(--b) * 1.4) calc(var(--b) * 0.5) var(--thumb-g1), 0 0 calc(var(--b) * 3) calc(var(--b) * 0.7) var(--thumb-g2), 0 calc(var(--b) * 0.35) calc(var(--b) * 1.4) var(--thumb-sh); }
.pcard > * { position: relative; }
.pcard-prev .pc-t { text-align: right; margin-left: auto; }
.pc-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pc-l { font-size: 10px; color: var(--tag); }
.pc-n { font-size: 14px; line-height: 1.1; color: var(--panel-ink); }
.pc-a { font-size: 18px; color: var(--panel-label); flex: 0 0 auto; }

/* subtitle on the right of the title, sitting on the same baseline (it only shows while the dock is scrolled down) */
.ptitle .psub { margin-left: 22px; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 400; font-size: 13.5px; letter-spacing: 0; color: var(--pclient-ink); opacity: calc((var(--pk, 0) - 0.3) / 0.7); }   /* hidden while all the text is showing (top of the page), fades in as the dock slides down */


/* ---------- Project page: video and picture rows (CUPRA x ROSALÍA, copied by every project page that has them) ---------- */
.pvid { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 1.2vw; overflow: hidden; background: #000; }
.pvid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pgrid { display: flex; align-items: stretch; gap: 0; margin-top: 2vw; }
.pgrid img { flex: var(--ar, 1) 1 0; min-width: 0; width: 100%; height: auto; border-radius: 0; mix-blend-mode: multiply; }   /* flex grow = the picture ratio, so every picture in a row has the same height; multiply makes the white background of the renders melt into the grey ground */
.pgrid + .pgrid { margin-top: 0; }

/* Client block with credits (CUPRA x ROSALÍA): the client name on the left, the credits in italic on the right of it, as on the live Cargo page */
.pclient-wide { width: max-content; }
.pclient-wide .pl { margin-bottom: 0; }
.pc-row { display: flex; align-items: flex-start; gap: 1.3em; margin-top: 12px; }
.pc-row b { margin-top: 0; }
.pc-cred { font-style: italic; line-height: 1.25; white-space: nowrap; }

/* Project page: videos stacked with pictures (Barcelona City Hall has two films between picture 1 and 2) */
.pvid + .pvid, .pvid + img, img + .pvid { margin-top: 2vw; }

/* Barcelona City Hall: two films side by side in the width of the pictures, and a white ground (dark mode stays black) */
.pvid-row { display: flex; gap: 2vw; }
.pvid-row .pvid { flex: 1 1 0; min-width: 0; margin-top: 0; }
.pvid-row + img { margin-top: 2vw; }
html:has(.proj-white), html:has(.proj-white) body { background: var(--bg); }

/* Barcelona City Hall title: BARCELONA keeps its size, only CITY HALL shrinks to half size while the dock is scrolled down (--pk 0 to 1). Done with font size so the words stay on one baseline and close up. The subtitle is hidden on this page. */
.ptitle-shrink .ch { font-size: calc(1em * (1 - var(--pk, 0) * 0.5)); letter-spacing: calc(-0.127em + var(--pk, 0) * 0.035em); word-spacing: calc(var(--pk, 0) * 0.32em); margin-left: calc(var(--pk, 0) * 0.14em); }   /* when small, the letters and the two words get air so it reads; at pk 0 (page opened) nothing changes */
/* Scrolled: the small CITY HALL sits ABOVE the subtitle "Ayuntamiento de Barcelona · ILLUSTRATIONS", and the subtitle takes the baseline of BARCELONA (like the W Hotel subtitle). .side holds both; the subtitle is absolute so at the top of the page it takes no room and CITY HALL stays on the baseline. Numbers are px because the title size is fixed (7.2b = 108px). */
.ptitle-shrink .side { display: inline-block; position: relative; }
.ptitle-shrink .ch { display: inline-block; transform: translateY(calc(var(--pk, 0) * -25px)); }
.ptitle-shrink .psub { position: absolute; left: calc(var(--pk, 0) * 12px); top: calc(var(--pk, 0) * 82px); letter-spacing: 0.05em; margin: 0; line-height: 13px; white-space: nowrap; }

/* Barcelona City Hall: the client block (bar, "Client", names) starts on the first line of the description (margin-top 6px instead of -3px, the master value is tuned for W Hotel) */
.pdock:has(.ptitle-shrink) .pclient, .pdock:has(.ptitle-low) .pclient { margin-top: 6px; }

/* Australis: square corners on all pictures (.proj-sharp), and two pictures side by side with the same height (.pgrid2: flex grow = picture ratio, gap 2vw like the stack) */
.proj-sharp img { border-radius: 0; }
.pgrid2 { display: flex; align-items: flex-start; gap: 2vw; margin-top: 2vw; }
.pgrid2 img { flex: var(--ar, 1) 1 0; min-width: 0; width: 100%; height: auto; aspect-ratio: var(--ar); margin-top: 0; }
.proj-sharp .pgrid2 + img { margin-top: 2vw; }
.proj .pgrid2 img + img { margin-top: 0; }   /* the stacked picture gap (.proj img + img) must not push the second picture down in a row */

/* Central Saint Martins: the title is long, at 7.2b it ran over the Index and arrows capsules on the right, so on this page it is 6.2b */
.ptitle-csm { font-size: calc(var(--b) * 6.2); }

/* Central Saint Martins (as the live Cargo page): white ground, square corners, picture 1 full width, picture 2 an animation of two files fading into each other in a wide frame (4 s loop, 2 s each, like the sketchbook cover; reduced motion shows the first file), then two book spreads, each made of two pictures side by side with no gap. */
.proj .panim { position: relative; display: block; width: 100%; aspect-ratio: 2 / 1; overflow: hidden; margin-top: 2vw; }
.proj .panim img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; margin: 0; }
.panim img:nth-child(2) { opacity: 0; animation: csm-swap 4s infinite; }
@keyframes csm-swap { 0%, 38% { opacity: 0; } 50%, 88% { opacity: 1; } 100% { opacity: 0; } }
.proj .pgrid2.pspread { gap: 0; }

/* Central Saint Martins title: while the dock slides down (--pk 0 to 1) CENTRAL fades out (gone at about 60 percent) and its width closes up (negative right margin of --cw * --pk, --cw is measured by the page script), so SAINT MARTINS moves left to where CENTRAL was. At the top of the page nothing changes. */
.ptitle-csm .c1 { display: inline-block; opacity: calc(1 - var(--pk, 0) * 1.7); margin-right: calc(var(--cw, 0px) * var(--pk, 0) * -1); }

/* Central Saint Martins: more air between the last picture and the Previous / Next cards (46px instead of 11px) */
.proj:has(.panim) .pnext { margin-top: 46px; }

/* Central Saint Martins client block: the college name breaks after "Martins", and the person below it has a small gap (3px, first 8px was too far) */
.pclient .pc-gap { margin-top: 3px; }

/* Central Saint Martins: the client column is as wide as its longest line (grid column max-content, lines do not wrap), so "(UAL)" stays on the line of "College of Arts & Design" on a laptop. The paragraphs take the rest. */
.pdock:has(.pc-gap) .pbody { grid-template-columns: minmax(0, 1fr) max-content; }
.pdock:has(.pc-gap) .pclient b { white-space: nowrap; margin-top: 0; }   /* names closer to the word Client (was 22px apart, 4px was too close, now 15px) */
.pdock:has(.pc-gap) .pclient .pl { margin-bottom: 15px; }

/* Central Saint Martins: the pictures are wider, 10px from the left and right edges of the window (the master page has 2vw, 30px at 1526 px). The dock keeps its own position. */
.proj.proj-sharp { padding-left: 10px; padding-right: 10px; }   /* Central Saint Martins and Australis (both have proj-sharp) */

/* Australis: click a picture to see it as big as the screen. .lb is a fixed layer over everything (above the dock), the picture is fitted into the window without cropping (object-fit: contain), a click or Esc closes it. Pictures show a zoom cursor. */
.proj img { cursor: zoom-in; }   /* every project page: pictures can be clicked to enlarge (js/lightbox.js) */
/* The layer is frosted glass: a see through tint plus a blur of the page behind (backdrop-filter), so the page can be seen through it, and the picture floats on top with a soft shadow and a little air around it. Tint is a token for light and dark. */
:root { --lb-bg: rgba(238, 238, 242, 0.42); --lb-shadow: 0 24px 70px rgba(20, 24, 34, 0.32), 0 6px 18px rgba(20, 24, 34, 0.18); }
:root[data-theme="dark"] { --lb-bg: rgba(18, 18, 22, 0.5); --lb-shadow: 0 24px 70px rgba(0, 0, 0, 0.6), 0 6px 18px rgba(0, 0, 0, 0.4); }
.lb { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; background: var(--lb-bg); -webkit-backdrop-filter: blur(26px) saturate(1.5); backdrop-filter: blur(26px) saturate(1.5); opacity: 0; pointer-events: none; transition: opacity .25s ease; cursor: zoom-out; }
.lb.on { opacity: 1; pointer-events: auto; }
.lb img { max-width: calc(100vw - 6vw); max-height: calc(100vh - 6vw); width: auto; height: auto; object-fit: contain; display: block; box-shadow: var(--lb-shadow); }

/* Lightbox counter: the project counter capsule (.pcount, .pbtn) placed bottom right on the glass, 24px from the edges like the dock. It has its own margin reset and a cursor, the glass tint behind it comes from the capsule fill. */
.lb .lb-count { position: absolute; right: 24px; bottom: 24px; margin: 0; }
.lb .pbtn { cursor: pointer; }

/* Lightbox: the LEINAT cat sits bottom left on the glass, 24px from the edges (mirror of the counter), light grey like the cat on the dock (.pcat), 38px high (first 76px, Deja: 50 percent smaller). It only shows with the glass. */
.lb .lb-cat { position: absolute; left: 24px; bottom: 24px; height: 38px; width: auto; max-width: none; max-height: none; box-shadow: none; border-radius: 0; filter: brightness(0) invert(0.55); pointer-events: none; }
:root[data-theme="dark"] .lb .lb-cat { filter: brightness(0) invert(0.62); }

/* Lightbox: the enlarged picture always has rounded corners, the same as the pictures on the W Hotel page (1.2vw), also on the pages whose pictures are square (Australis, Central Saint Martins). */
.lb img { border-radius: 1.2vw; }

/* Zara (as the live page): white ground, picture 1 (rounded corners are in the file) full width, picture 2 smaller and centred (half the page width, .zara-mid), all the others end to end one below another with no gap and square corners (.proj-flush). */
.proj-flush img { border-radius: 0; }
.proj.proj-flush { padding: 0 0 calc(var(--b) * 13); }   /* pictures touch the left, right and top edges of the window (Deja, like the live page) */
.proj.proj-flush img + img { margin-top: 0; }   /* beats the stack gap rule .proj img + img */
.proj .zara-mid { width: 50%; margin-left: auto; margin-right: auto; }
.proj.proj-flush .zara-mid { margin-top: 12vw; margin-bottom: 13vw; }   /* air above and below the board, like the live page (about 16 and 19 vw from the art to the next picture, measured on Deja's screenshot) */

/* Zara: the Previous / Next cards sit where they do on the 3D+AI · FIELD NOTES page (Deja): 11px under the last picture and 2vw from the window edges (the master values). The Zara page itself has no side padding, so the cards get the 2vw here. */
.proj.proj-flush .pnext { margin-top: 11px; padding-left: 2vw; padding-right: 2vw; }

/* Zara, text block between picture 4 and 5 (Deja, from the live page): a white band 26vw high, a hairline 4.7vw from its top (inset 5.8vw each side), the word NOBOLITY in a serif (system Baskerville / Times, 6.2vw, tracking .02em, colour --panel-ink), and under it, slightly overlapped, the line in grey italic Helvetica (2.2vw). Sizes in vw so the block keeps its proportions like the pictures. Positions measured on Deja's screenshot of the live page (1804 px wide). */
.zara-note { position: relative; height: 26vw; margin-top: 8vw; background: var(--bg); text-align: center; }   /* margin-top: more air between picture 4 and the text (Deja, first try 0) */
.zara-note hr { position: absolute; left: 5.8vw; right: 5.8vw; top: 4.7vw; margin: 0; border: 0; height: 1px; background: var(--btn-line); }
.zara-note h2 { position: absolute; left: 0; right: 0; top: 12.8vw; margin: 0; z-index: 2; font-family: "Baskerville", "Baskerville Old Face", "Times New Roman", Times, serif; font-weight: 400; font-size: 6.2vw; line-height: 1; letter-spacing: -0.04em; color: var(--panel-ink); }
.zara-note p { position: absolute; left: 0; right: 0; top: 18.2vw; margin: 0; z-index: 1; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-style: italic; font-weight: 300; font-size: 1.1vw; line-height: 1; color: var(--tag); opacity: .8; }

/* DressX (as the live page): pictures end to end, edge to edge (proj-flush). Picture 1 and picture 5 have a film on top, placed in percent of the picture so it stays in place at any width (measured on the live page: film 1 left 27.64%, top 7.38%, width 41.7%, ratio 4:5; film 6 left 61.91%, top 21.93%, width 16.02%, ratio 9:16). The film has rounded corners (1.4vw like the live 14px at 1024), is muted, loops and plays on its own; clicks go through it to the picture (click to enlarge). */
.dx-wrap { position: relative; display: block; }
.dx-vid { position: absolute; display: block; height: auto; object-fit: cover; border-radius: 1.4vw; background: #000; pointer-events: none; }
.dx-vid1 { left: 27.64%; top: 7.38%; width: 41.7%; aspect-ratio: 4 / 5; }
.dx-vid6 { left: 61.91%; top: 21.93%; width: 16.02%; aspect-ratio: 9 / 16; }

/* Alexander McQueen (as the live page): BLACK ground (.proj-black, the dock keeps its light glass), picture 1 smaller and centred (47.6 percent wide, .mq-mid, 4vw above and 10.7vw below), picture 2 edge to edge, then a row of six tiles (now 94.3 percent, the live page had 88.6; a wider version on the line of the Previous / Next cards was tried and reversed, Deja). Each tile holds the three small files MC1 MC2 MC3 on top of each other, each is visible for 3 s in turn (9 s loop, delays 0, 3 and 6 s, the same keyframes as the live page: opacity 1 until 30 percent, 0 from 33.3 percent), all six tiles in step. The images fill the tile (object-fit: fill, same ratio as the files) and are not clipped (Deja: no gap between the pictures, the live page clips 2px on each side, which shows a 4px black line between tiles). Reduced motion: the global rule stops the animation, then only the base state shows (all hidden), so there a still tile is shown instead. Tiles are not enlarged (.no-zoom). */
html:has(.proj-black), html:has(.proj-black) body { background: #000; }
.proj.proj-flush .mq-mid { width: 47.6%; margin: 4vw auto 10.7vw; }
.mq-row { display: flex; width: 94.3%; margin: 110px auto 0; background: #fff; }   /* white behind the tiles: the pictures have a white ground, so sub pixel edges between tiles can not show the black page */   /* 1.6vw = 30 percent more black space between the skull picture and the tiles (the skull picture has about 81 px of black under the skull at 1526 px wide, 30 percent of that is 24 px) */
.mq-tile + .mq-tile { margin-left: -0.5px; }   /* the tiles touch, no seam from sub pixel rounding */
.mq-tile { position: relative; flex: 1 1 0; aspect-ratio: 419 / 667; overflow: hidden; }
.proj .mq-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; opacity: 0; margin: 0; cursor: default; animation: mq-cycle 6s infinite; }
.mq-tile img:nth-child(2) { animation-delay: 1.5s; }
.mq-tile img:nth-child(3) { animation-delay: 3s; }
.mq-tile img:nth-child(4) { animation-delay: 4.5s; }   /* four pictures: side, front, side mirrored, back, 1.5 s each, 6 s loop */
@keyframes mq-cycle { 0%, 22.5% { opacity: 1; } 25%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .proj .mq-tile img:first-child { opacity: 1; animation: none; } }
.no-zoom img { cursor: default; }

/* Alexander McQueen (black ground): the project title is the normal dark grey made about 20 percent lighter (first try rgba(226,226,230,.92) was far too light) (token --ptitle overridden for this page only, light theme default is rgba(30,30,30,.88)). */
body:has(.proj-black) { --ptitle: rgba(82, 82, 85, 0.9); }

/* Black ground pages (Alexander McQueen): the Previous / Next cards use the dark theme values (dark glass fill, light text, a faint glow) instead of the light page values, which gave a bright white glow on black. The tokens are set on .pnext so only these cards change. */
.proj-black .pnext { --pcard-fill: rgba(255, 255, 255, 0.14); --thumb-g1: rgba(255, 255, 255, 0.10); --thumb-g2: rgba(255, 255, 255, 0.05); --thumb-sh: rgba(0, 0, 0, 0.3); --panel-ink: rgba(245, 245, 248, 0.92); --panel-label: rgba(235, 235, 240, 0.62); --tag: rgba(235, 235, 240, 0.55); }

/* Alexander McQueen: the Previous / Next cards are 3 times further from the tile row (first 33px, then 66px, now 110px, Deja asked for more; the master is 11px). */
.proj.proj-flush.proj-black .pnext { margin-top: 55px; padding-left: 2.85%; padding-right: 2.85%; }   /* 55px = half of 110 (Deja: 50 percent closer to the animation); the side padding 2.85 percent is exactly the side margin of the tile row (width 94.3 percent, centred), so the cards start and end on the same vertical lines as the animation */

/* Pull & Bear (as the live page, measured at 1024 px wide): the ground is the brown picture pb-background.jpg, fixed and covering the window (the live page does the same, brown #8e8989 behind it). Side padding 4.7vw (the live page: 48 px), pictures rounded (the normal 1.2vw), 1.5vw between pictures and rows (live 15 px). Two pictures in a row have the same height (.pgrid2, --ar). The film is the .pvid box (16:9, full width). */
html:has(.proj-pb), html:has(.proj-pb) body { background: #8e8989 url("../img/pull-bear/pb-background.jpg") center / cover fixed no-repeat; }
.proj.proj-pb { padding: 3vw 4.7vw calc(var(--b) * 13); }
.proj-pb .pgrid2.pb-row { gap: 1.5vw; margin-top: 1.5vw; }
.proj-pb .pgrid2.pb-row.pb-first { margin-top: 0; }
.proj.proj-pb .pb-gap { margin-top: 1.5vw; }

/* Pull & Bear: the Previous / Next cards are a light grey with a thin stroke around (Deja: the dark and the glowing versions "looked strange"). The page ground is a busy brown picture, so the cards are an almost solid light grey (rgba 236,236,240 at 94 percent), no glow, and a 1px mid grey stroke drawn by ::after at the edge of the fill. Text keeps the normal dark values. */
.proj-pb .pnext { --pcard-fill: rgba(236, 236, 240, 0.94); }
.proj-pb .pcard::before, .proj-pb .pcard:hover::before { box-shadow: none; filter: none; inset: 3px; }
.proj-pb .pcard::after { content: ""; position: absolute; inset: 3px; border-radius: 12px; border: 1px solid rgba(120, 120, 128, 0.5); pointer-events: none; }

/* Textile Prints (as the live page): 15 pictures end to end, edge to edge (proj-flush), no zoom here (no lightbox script, so no zoom cursor), and the floating balloon. The balloon copies the live page: a fixed box at top 32vh, width clamp(135px, 21.6vw, 283.5px), z-index 80, no clicks, that drifts from the left (4vw) to the right (96vw minus its width) and back in an 18 s ease in out alternate loop, while the picture inside bobs up and down 18px and tilts 5 degrees in a 4.5 s ease in out alternate loop. Reduced motion: the global rule stops both, the balloon then stays at the left. */
.proj-tp img { cursor: default; }
.tp-balloon { position: fixed; top: 32vh; left: 4vw; width: clamp(135px, 21.6vw, 283.5px); z-index: 80; pointer-events: none; animation: tp-drift 18s ease-in-out 0s infinite alternate; }
.tp-balloon img { display: block; width: 100%; height: auto; animation: tp-bob 4.5s ease-in-out 0s infinite alternate; }
@keyframes tp-drift { 0% { left: 4vw; } 100% { left: calc(96vw - clamp(135px, 21.6vw, 283.5px)); } }
@keyframes tp-bob { 0% { transform: translateY(-18px) rotate(-5deg); } 100% { transform: translateY(18px) rotate(5deg); } }

/* Textile Prints (Deja: "end the page like the first screenshot, no white space, boxes on top"): the last picture runs to the very bottom of the page (no bottom padding), and the Previous / Next cards float ON the last picture, just above the dock (absolute, 2vw from each side as before, bottom 220px = dock 174 to 169 px + its 24px distance + 22px air) instead of sitting in a white strip under the pictures. */
.proj.proj-flush.proj-tp { padding-bottom: 0; position: relative; }
.proj.proj-flush.proj-tp .pnext { position: absolute; left: 0; right: 0; bottom: 220px; margin: 0; }

/* Key tip (js/keytip.js): a small dark pop up box over the previous / next arrow buttons, same colours as the Home nav tooltips (--tt-bg, --tt-fg, dark in light mode), with the arrow key as a chip. It appears at once, fixed on the screen, above everything (also above the zoom view, z-index 400), and never takes clicks. */
.ptip { position: fixed; z-index: 400; display: flex; align-items: center; gap: 8px; padding: 7px 8px 7px 11px; border-radius: 9px; background: var(--tt-bg); color: var(--tt-fg); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 12px; line-height: 1; white-space: nowrap; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25); opacity: 0; pointer-events: none; left: 0; top: 0; }
.ptip.on { opacity: 1; }
.ptip .ptip-or { opacity: 0.6; }
.ptip kbd.kbd { background: rgba(255, 255, 255, 0.18); color: inherit; border-radius: 6px; padding: 3px 7px; font: inherit; line-height: 1; }
:root[data-theme="dark"] .ptip kbd.kbd { background: rgba(0, 0, 0, 0.12); }

/* Australis: the pictures get slightly rounded corners (Deja: "rounded, but not much"): 0.6vw, half of the W Hotel pictures (1.2vw), 9px at 1526 wide. Only on pages with proj-round-s (Australis); Central Saint Martins keeps square corners. */
.proj-sharp.proj-round-s img { border-radius: 0.6vw; }

/* LENGTH (Deja, final): the whole light lasts 4 SECONDS (it was 7): fade in, one wave, boom and fade out all inside 4.2 s from the page load; the deep blue boom 2.6 s, the pale layer 3.2 s. */
/* ---- Northern light along the TOP edge of the desktop Home (Deja, final: "right now it is a blue stripe, I want the BLUR like before, and NO LOOP") ----
   13vh high strip at the top (about 136px at 1043), behind the page (z-index -1: on the white background, under the text, lines, covers and nav). The soft look: the four blurred shapes now sit INSIDE the strip (they used to hang above the screen edge, so only a flat, hard band showed), the blur is moderate (2vw, a larger blur smeared the colour away and left only a thin band) and the fade toward the bottom starts at 22 percent, so you see soft round blue, lilac and white clouds, not a stripe. It plays ONCE (class .play in the HTML, set again by a small script when the Home is restored with the back button): fades in, the left and right shapes make one big wave (the right one first), then everything fades out and stays gone, 4 seconds. Blue and white only, no clicks, dark mode softer, reduced motion: not shown. */
.d-aurora { position: fixed; left: 0; right: 0; top: 0; height: 13vh; z-index: -1; pointer-events: none; overflow: hidden; opacity: 0; -webkit-mask-image: linear-gradient(to bottom, #000 22%, rgba(0, 0, 0, 0) 100%); mask-image: linear-gradient(to bottom, #000 22%, rgba(0, 0, 0, 0) 100%); }
:root[data-theme="dark"] .d-aurora { filter: opacity(0.6); }
/* the "BOOM" (Deja: the deep blue only in ONE HALF and only at the BEGINNING, then it fades into a very light white and moves): two layers over the left half of the strip, hanging from the top edge. ::before is the deep blue, it flashes in at once (first 0.5 s), then fades out while it drifts to the right and spreads; ::after is a very pale blue white that takes over, drifts further and fades away. Both play once, together with the rest of the light (class .play), over about 3 s, so after the boom only the soft shapes are left and then they fade too. */
.d-aurora::before, .d-aurora::after { content: ""; position: absolute; left: 0; top: 0; width: 52%; height: 100%; opacity: 0; z-index: 2; transform-origin: 0 0; -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 26%, #000 62%, transparent 100%); mask-image: linear-gradient(to right, transparent 0%, #000 26%, #000 62%, transparent 100%); }   /* soft left and right edges, so the boom is a cloud, not a box */
.d-aurora::before { background: linear-gradient(to bottom, rgba(70, 92, 255, 0.98) 0%, rgba(70, 92, 255, 0.6) 32%, rgba(70, 92, 255, 0) 80%); }
.d-aurora::after { background: linear-gradient(to bottom, rgba(222, 230, 255, 0.95) 0%, rgba(222, 230, 255, 0.55) 34%, rgba(222, 230, 255, 0) 80%); }
.d-aurora.play::before { animation: d-boom 2.6s ease-out 0.2s 1 both; }
.d-aurora.play::after { animation: d-boom2 3.2s ease-out 0.2s 1 both; }
@keyframes d-boom { 0% { opacity: 0; transform: translateX(0) scale(0.7, 0.8); } 9% { opacity: 1; transform: translateX(1vw) scale(1, 1); } 55% { opacity: 0.55; transform: translateX(14vw) scale(1.15, 1.1); } 100% { opacity: 0; transform: translateX(28vw) scale(1.3, 1.2); } }
@keyframes d-boom2 { 0% { opacity: 0; transform: translateX(0); } 12% { opacity: 0.5; transform: translateX(2vw); } 55% { opacity: 0.85; transform: translateX(22vw) scale(1.1, 1.1); } 100% { opacity: 0; transform: translateX(42vw) scale(1.25, 1.2); } }
.d-aurora i { position: absolute; display: block; border-radius: 50%; filter: blur(2vw); will-change: transform; }
.d-aurora .a1, .d-aurora .a2, .d-aurora .a3 { z-index: 1; }
.d-aurora .a1 { left: -8vw; top: -2vh; width: 46vw; height: 13vh; background: #6a82ff; }
.d-aurora .a2 { left: 28vw; top: -3vh; width: 44vw; height: 11vh; background: #8aa0ff; }
.d-aurora .a3 { left: 56vw; top: -2vh; width: 46vw; height: 13vh; background: #a3b4ff; }
.d-aurora .a4 { z-index: 0; left: 18vw; top: -4vh; width: 58vw; height: 11vh; background: #ffffff; }
/* the page has a white background on html AND on body; the body one was painted OVER the light (z-index -1) and left only a thin band visible, so on the Home the body is transparent and the white of html is the ground the light lies on */
body:has(.d-aurora) { background: transparent; }
/* the top LEFT corner is a DEEP BLUE (Deja: "that left top I need to be dark blue on top, just this part"): a soft deep blue patch in the corner, strongest at the very top and at the left edge, fading down and to the right, always on top of the light shapes while the light is visible (it fades out with it, because it is inside the strip) */
.d-aurora .a5 { z-index: 3; left: 0; top: 0; width: 38vw; height: 100%; border-radius: 0; filter: none; background: radial-gradient(ellipse 100% 100% at 0% 0%, rgba(48, 70, 255, 0.95) 0%, rgba(48, 70, 255, 0.62) 34%, rgba(48, 70, 255, 0.2) 66%, rgba(48, 70, 255, 0) 100%); }
.d-aurora.play { animation: d-life 4s ease-in-out 0.2s 1 both; }
.d-aurora.play .a1 { animation: d-au1 4s ease-in-out 0.2s 1 both, d-au1c 4s ease-in-out 0.2s 1 both; }
.d-aurora.play .a2 { animation: d-au2 4s ease-in-out 0.2s 1 both, d-au2c 4s ease-in-out 0.2s 1 both; }
.d-aurora.play .a3 { animation: d-au3 4s ease-in-out 0.2s 1 both, d-au3c 4s ease-in-out 0.2s 1 both; }
.d-aurora.play .a4 { animation: d-au4 4s ease-in-out 0.2s 1 both; }
@keyframes d-life { 0% { opacity: 0; } 14% { opacity: 1; } 68% { opacity: 1; } 100% { opacity: 0; } }
@keyframes d-au1 { 0% { transform: translateX(-3vw) translateY(-1vh) scale(1, 0.9); } 55% { transform: translateX(6vw) translateY(5vh) scale(1.12, 1.5); } 100% { transform: translateX(12vw) translateY(1vh) scale(1, 1); } }
@keyframes d-au3 { 0% { transform: translateX(3vw) translateY(2vh) scale(1.05, 1.3); } 45% { transform: translateX(-2vw) translateY(6vh) scale(1.15, 1.6); } 100% { transform: translateX(-8vw) translateY(0) scale(1, 1); } }
@keyframes d-au2 { 0% { transform: translateX(6vw) scale(1.1, 1); } 100% { transform: translateX(-10vw) scale(0.9, 1.3); } }
@keyframes d-au4 { 0% { transform: translateX(-8vw) scale(0.9, 1); } 100% { transform: translateX(9vw) scale(1.2, 1.4); } }
@keyframes d-au1c { 0% { background-color: #6a82ff; } 100% { background-color: #bccaff; } }
@keyframes d-au3c { 0% { background-color: #bccaff; } 100% { background-color: #6a82ff; } }
@keyframes d-au2c { 0% { background-color: #8aa0ff; } 100% { background-color: #b0bfff; } }
@media (prefers-reduced-motion: reduce) { .d-aurora { display: none; } }


/* ---------- Home: blur at the bottom of the window (Deja, 11 Nov). Two layers of backdrop blur with fading masks, from the bottom edge up to half of the OPEN nav (nav height (14.6b + 10px) x .85, half of it, plus the 24px distance). Under the nav (z 10 against 50), no clicks. ---------- */
.bblur { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; pointer-events: none;
  height: calc((var(--b) * 14.6 + 10px) * 0.425 + 24px); }
.bblur i { position: absolute; inset: 0; display: block; }
.bblur i:nth-child(1) { -webkit-backdrop-filter: blur(calc(3px * var(--bb-blur, 1.35))); backdrop-filter: blur(calc(3px * var(--bb-blur, 1.35)));
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 100%); mask-image: linear-gradient(to top, #000 0%, transparent 100%); }
.bblur i:nth-child(2) { -webkit-backdrop-filter: blur(calc(10px * var(--bb-blur, 1.35))); backdrop-filter: blur(calc(10px * var(--bb-blur, 1.35)));
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 62%); mask-image: linear-gradient(to top, #000 0%, transparent 62%); }

/* thin white haze right at the bottom edge, on top of the blur (Deja, 11 Nov). Uses the page colour (--bg), so it is white in light mode and black in dark mode. */
.bblur::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; pointer-events: none;
  /* eased fade: plain page colour at the very bottom, then a smooth ramp with no grey mid band (it looked muddy over the brown Pull&Bear picture) */
  background: linear-gradient(to top, var(--haze, var(--bg)) 0%, var(--haze, var(--bg)) 14%, color-mix(in srgb, var(--haze, var(--bg)) 78%, transparent) 30%, color-mix(in srgb, var(--haze, var(--bg)) 48%, transparent) 52%, color-mix(in srgb, var(--haze, var(--bg)) 20%, transparent) 75%, color-mix(in srgb, var(--haze, var(--bg)) 6%, transparent) 90%, transparent 100%); }
body:has(.proj-black) .bblur { --haze: #000; }   /* the McQueen page has a black ground, so its haze is black */

/* Home (Deja, 11 Nov): the northern light experiments (moved to the bottom, white, yellow corners) did not work and were removed. The aurora is simply hidden now, so the Home has no colour at the top or the bottom. The blur band with its white haze at the bottom edge is back as before. To get the original blue aurora at the top back, delete the next rule. */
.d-aurora { display: none; }

/* Home only (Deja, 11 Nov): the blur and the white haze at the bottom WAVE. Seven soft "bulbs" (radial masks) along the bottom edge. The band is 280px high on the Home (Deja 12 Nov: 290 was too low, 58vh and 380 too much) so that, when the bulb is on the LEFT, it reaches up to DRESSX (the next row up from PULL&BEAR, ALEXANDER McQUEEN), while the right side is down and the names there are sharp. The peak then travels to the right and back (9s loop, 4 stages). The same animated mask is on both blur layers and on the white haze. Project pages keep the still band. */
body:has(.home) .bblur { height: 280px; }   /* the wave peaks are about 80 percent of this (about 225px up from the bottom) */
body:has(.home) .bblur i, body:has(.home) .bblur::after { height: 100%; bottom: 0;
  -webkit-mask-image: radial-gradient(ellipse 50% 100% at 50% 100%, #000 0%, rgba(0, 0, 0, 0.85) 40%, transparent 100%), radial-gradient(ellipse 50% 100% at 50% 100%, #000 0%, rgba(0, 0, 0, 0.85) 40%, transparent 100%), radial-gradient(ellipse 50% 100% at 50% 100%, #000 0%, rgba(0, 0, 0, 0.85) 40%, transparent 100%), radial-gradient(ellipse 50% 100% at 50% 100%, #000 0%, rgba(0, 0, 0, 0.85) 40%, transparent 100%), radial-gradient(ellipse 50% 100% at 50% 100%, #000 0%, rgba(0, 0, 0, 0.85) 40%, transparent 100%), radial-gradient(ellipse 50% 100% at 50% 100%, #000 0%, rgba(0, 0, 0, 0.85) 40%, transparent 100%), radial-gradient(ellipse 50% 100% at 50% 100%, #000 0%, rgba(0, 0, 0, 0.85) 40%, transparent 100%); mask-image: radial-gradient(ellipse 50% 100% at 50% 100%, #000 0%, rgba(0, 0, 0, 0.85) 40%, transparent 100%), radial-gradient(ellipse 50% 100% at 50% 100%, #000 0%, rgba(0, 0, 0, 0.85) 40%, transparent 100%), radial-gradient(ellipse 50% 100% at 50% 100%, #000 0%, rgba(0, 0, 0, 0.85) 40%, transparent 100%), radial-gradient(ellipse 50% 100% at 50% 100%, #000 0%, rgba(0, 0, 0, 0.85) 40%, transparent 100%), radial-gradient(ellipse 50% 100% at 50% 100%, #000 0%, rgba(0, 0, 0, 0.85) 40%, transparent 100%), radial-gradient(ellipse 50% 100% at 50% 100%, #000 0%, rgba(0, 0, 0, 0.85) 40%, transparent 100%), radial-gradient(ellipse 50% 100% at 50% 100%, #000 0%, rgba(0, 0, 0, 0.85) 40%, transparent 100%);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: -8% 100%, 11% 100%, 31% 100%, 50% 100%, 69% 100%, 89% 100%, 108% 100%; mask-position: -8% 100%, 11% 100%, 31% 100%, 50% 100%, 69% 100%, 89% 100%, 108% 100%;
  -webkit-mask-size: 28% 80%, 28% 72%, 28% 46%, 28% 22%, 28% 14%, 28% 10%, 28% 8%; mask-size: 28% 80%, 28% 72%, 28% 46%, 28% 22%, 28% 14%, 28% 10%, 28% 8%;
  animation: bwave 6s ease-in-out infinite; }
@keyframes bwave {
  0%   { -webkit-mask-size: 28% 80%, 28% 72%, 28% 46%, 28% 22%, 28% 14%, 28% 10%, 28% 8%; mask-size: 28% 80%, 28% 72%, 28% 46%, 28% 22%, 28% 14%, 28% 10%, 28% 8%; }
  25%  { -webkit-mask-size: 28% 42%, 28% 72%, 28% 80%, 28% 70%, 28% 30%, 28% 14%, 28% 10%; mask-size: 28% 42%, 28% 72%, 28% 80%, 28% 70%, 28% 30%, 28% 14%, 28% 10%; }
  50%  { -webkit-mask-size: 28% 14%, 28% 22%, 28% 60%, 28% 76%, 28% 80%, 28% 56%, 28% 26%; mask-size: 28% 14%, 28% 22%, 28% 60%, 28% 76%, 28% 80%, 28% 56%, 28% 26%; }
  75%  { -webkit-mask-size: 28% 10%, 28% 12%, 28% 18%, 28% 42%, 28% 76%, 28% 78%, 28% 62%; mask-size: 28% 10%, 28% 12%, 28% 18%, 28% 42%, 28% 76%, 28% 78%, 28% 62%; }
  100% { -webkit-mask-size: 28% 80%, 28% 72%, 28% 46%, 28% 22%, 28% 14%, 28% 10%, 28% 8%; mask-size: 28% 80%, 28% 72%, 28% 46%, 28% 22%, 28% 14%, 28% 10%, 28% 8%; } }
@media (prefers-reduced-motion: reduce) { body:has(.home) .bblur i, body:has(.home) .bblur::after { animation: none; } }

/* Project pages (Deja, 12 Nov): the dock is extended DOWN to the bottom edge of the window and its bottom corners are square (only the top corners stay round), like Deja's picture. Same top edge as before (the height grows by the old 24px bottom gap), the logo keeps its place, the scroll slide (132px) is unchanged. */
.pdock { bottom: 0; height: 193px; padding-bottom: 0; border-radius: calc(var(--b) * 1.9) calc(var(--b) * 1.9) 0 0; }
@media (max-width: 1650px) { .pdock { height: calc(var(--b) * 11.6 + 24px); } }
.plogo { bottom: calc(var(--b) * 0.8 + 24px); }
.pinfo::before { border-radius: calc(var(--b) * 1.3) calc(var(--b) * 1.3) 0 0; bottom: -2px; }


/* Project pages, new dock layout (Deja, 12 Nov, from his picture): (1) a big subtitle line under the title: .psub2 = the subtitle in 20px dark grey, then a thin line that runs on to the word Client; (2) the vertical line left of Client is gone, "Client" sits on the line of the subtitle and the names start on the line of the first paragraph; (3) the inner box has a soft top to bottom gradient (--pinfo-bg to --pinfo-bg2) so you see it against the glass (idea from the grey gradient in the TED picture). The dock is 30px taller for the extra row, the logo keeps its place and the scroll slide is 162px (was 132) so the cropped strip is the same. */
.psub2 { display: flex; align-items: center; gap: 14px; margin: 0 calc(var(--b) * -5.5) 6px 0; font-size: 17px; line-height: 1.15; color: var(--pclient-ink); }   /* hierarchy (Deja 12 Nov): the subtitle is the big dark line, the paragraphs are smaller and lighter */
.psub2 span { white-space: nowrap; }
.psub2 i { display: none; }   /* the thin line from the subtitle to Client is removed (Deja) */
.pclient { border-left: 1px solid var(--btn-line); padding-left: calc(var(--b) * 1.4); margin-top: 3px; }   /* the vertical stroke left of Client is back; margin 0 so the word Client is on the same line as the subtitle (centres measured 4px apart at 4px, now level) */
.pinfo::before { background: linear-gradient(to bottom, var(--pinfo-bg), var(--pinfo-bg2)); }
.pdock { height: 196px; }   /* wide windows (the text is two lines): 27px shorter than the first version (223), the gap under the text is about 35 percent smaller (Deja, 12 Nov: 20 percent, then a bit more) */
@media (max-width: 1650px) { .pdock { height: calc(var(--b) * 11.6 + 54px); } }   /* narrower windows (three lines of text): unchanged, no room to cut */
.plogo { bottom: calc(var(--b) * 0.8 + 27px); }
@media (max-width: 1650px) { .plogo { bottom: calc(var(--b) * 0.8 + 54px); } }

/* Project pages (Deja, 12 Nov): the two paragraphs sit 14px lower, so the first one starts on the same line as the client names (W Barcelona, DRESSX...). Measured on 9 pages at 1900px wide: names at +41px, paragraph at +27px from the box top. */
.psub2 + p { margin-top: 0; }
.ptext { gap: 0; }   /* no flex gap any more: the space under the subtitle is its margin, the space between the paragraphs is set below */
.ptext p + p { margin-top: 0; }   /* no extra pull up: the line step is the same everywhere */   /* Deja (12 Nov): the step from the first paragraph to the second equals the step between the two client lines (Pull & Bear / Menswear = 13px x 1.25 = 16px). The paragraph line height is 24px, so -8px */
.ptext p { font-size: 13.5px; line-height: 16.6px; color: var(--seg-text); }   /* ONE line step for every line of every paragraph (Deja 12 Nov, from the McQueen page where the two one line paragraphs are 16.6px apart): 16.6px, so wrapped lines and the step between paragraphs are all the same */   /* bigger text and open line spacing, like the TED picture */   /* Deja (12 Nov, second look): the subtitle and the first paragraph must sit close together, so the 14px push is gone */
/* the text starts exactly under the first LETTER of the title (Deja 12 Nov): each page sets .ptext margin-left to the left side bearing of its first title letter in Alte Haas Grotesk Bold 108px (measured with canvas measureText: P R B D M 7.3px, C 4.1, 3 2.1, Z 2.4, S 2.7, T 1.5, W 0.6, A 0.4) */
.psub2 { margin-bottom: 13.5px; }   /* +3.5px because the paragraph line box is now 7px shorter (half of it above the first line), so the subtitle to first line distance stays what it was on McQueen */   /* extra air under the subtitle, so it does not read as one block with the paragraphs */

/* client names (and the Cupra credits) 0.5px bigger, 13.5px (Deja, 12 Nov). The word "Client" keeps its own 11px. */
.pclient { font-size: 13.5px; }

/* ---------- Fonts on the project pages (Deja, 12 Nov, after a test of Hanken Grotesk and Archivo) ---------- Subtitle ("Print Design"...), Index row, counter, Previous / Next cards and the logo tagline keep Helvetica Neue. The text BELOW the subtitle (the two paragraphs and the client block) is ARCHIVO. The project names keep Alte Haas Grotesk. Archivo is self hosted (fonts/Archivo-latin.woff2 and Archivo-latin-ext.woff2, Google Fonts, SIL Open Font Licence, variable woff2). The Hanken Grotesk test files were moved to _TO_SORT. */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url("../fonts/Archivo-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url("../fonts/Archivo-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
.ptext p, .pclient { font-family: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: 0.025em; }   /* a little air between the letters (Deja: Archivo was too tight), 0.025em = about 0.35px at 14px */

/* the text block (subtitle row, paragraphs, client) fades out while you scroll (gone at 2/3 of the slide), so the first lines of it never show cut in half in the 70px strip */
.pbody { opacity: calc(1 - var(--pk, 0) * 1.5); }

/* All project titles have the SAME size as Alexander McQueen (Deja, 12 Nov): 6.2b = 93px at 15px base (it was 7.2b = 108px on most pages, only McQueen, Central Saint Martins and Field Notes had 6.2b through .ptitle-csm). */

/* ---------- Home nav (Deja, 12 Nov) ---------- */
/* (1) Contact and Info: everything that was dark text (intro line, links, email, Book button, bio, experience lines, award titles, services, tool tags) now has the SAME font and size as the client names on the project pages: Archivo 13.5px with 0.025em letter spacing. The nav is scaled by --s (.85), so the size inside is 13.5px / --s to be 13.5px ON SCREEN. Labels, chips, small grey text keep their own sizes. */
.ct-in, .cta, .inf-intro p, .inf-exp > div, .aw .t, .svc, .tag { font-family: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: 0.025em; }
.ct-in, .cta, .inf-intro p, .inf-exp > div, .aw .t, .svc, .tag { font-size: calc(12.5px / var(--s)); }   /* 13 Nov (Deja): one pixel smaller, 13.5px to 12.5px ON SCREEN */
/* (2) The pill (Contact, Info, Sketchbook, Work): the text is 0.5px bigger and the pill 0.5px higher. */
.seg a { font-size: calc(var(--b) * 0.92 + 0.5px); }
.seg { height: calc(var(--b) * 2.8 + 0.5px); }
/* the pill words (Contact, Info, Sketchbook, Work) are in Archivo too (Deja, 12 Nov) */
.seg a { font-family: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif; }
/* the section headers on the Home (01 · SELECTED COMMISSIONS and its grey line, 02, 03) are in Archivo (Deja, 12 Nov) */
.sec-head { font-family: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif; }
/* the hover bubble with the project description (Home) is in Archivo too (Deja, 12 Nov) */
.row h1 .d { font-family: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif; }


/* ---------- Home: glass blur and moving colour behind the open Contact / Info panel (Deja, 12 Nov, guide picture with blue violet and orange) ---------- */
.glassfx { position: fixed; inset: 0; z-index: 15; pointer-events: none; overflow: hidden; opacity: 0; transition: opacity .6s ease;
  -webkit-backdrop-filter: blur(16px) saturate(1.1); backdrop-filter: blur(16px) saturate(1.1); }
body:has(.nav.open:not(.collapsed)) .glassfx { opacity: 1; }
.glassfx i { position: absolute; display: block; border-radius: 50%; filter: blur(6vw); will-change: transform; }
.glassfx .g1 { left: 22%; top: 38%; width: 46vw; height: 26vh; background: #6f78e6; opacity: 0.85; animation: gfx1 13s ease-in-out infinite alternate; }   /* blue violet, upper middle */
.glassfx .g2 { left: -8%; top: 62%; width: 62vw; height: 38vh; background: #f48a34; opacity: 0.92; animation: gfx2 17s ease-in-out infinite alternate; }   /* big orange, bottom left */
.glassfx .g3 { left: 30%; top: 70%; width: 52vw; height: 34vh; background: #f6a24f; opacity: 0.8; animation: gfx3 15s ease-in-out infinite alternate; }   /* lighter orange, bottom middle */
.glassfx .g4 { left: 40%; top: 24%; width: 34vw; height: 20vh; background: #b9a3f0; opacity: 0.7; animation: gfx4 19s ease-in-out infinite alternate; }   /* pale violet, higher */
@keyframes gfx1 { 0% { transform: translate(-6vw, -3vh) scale(1, 0.9); } 100% { transform: translate(12vw, 9vh) scale(1.25, 1.3); } }
@keyframes gfx2 { 0% { transform: translate(0, 4vh) scale(1, 1); } 100% { transform: translate(14vw, -9vh) scale(1.15, 1.25); } }
@keyframes gfx3 { 0% { transform: translate(8vw, 0) scale(1.1, 0.9); } 100% { transform: translate(-12vw, -7vh) scale(0.9, 1.3); } }
@keyframes gfx4 { 0% { transform: translate(-8vw, 6vh) scale(1, 1.1); } 100% { transform: translate(10vw, -4vh) scale(1.2, 0.9); } }
:root[data-theme="dark"] .glassfx { filter: opacity(0.55); }
@media (prefers-reduced-motion: reduce) { .glassfx i { animation: none; } }

/* glass fx, second pass (Deja, 12 Nov): less blur in light mode (7px, dark mode keeps 16px), faster (8 to 12s loops) and the light now RISES FROM THE BOTTOM, climbs up the page and sinks back down again, each blob at its own pace, instead of hovering at one height. */
.glassfx { -webkit-backdrop-filter: blur(3px) saturate(1.1); backdrop-filter: blur(3px) saturate(1.1); }
:root[data-theme="dark"] .glassfx { -webkit-backdrop-filter: blur(16px) saturate(1.1); backdrop-filter: blur(16px) saturate(1.1); }
.glassfx .g1 { top: 62%; animation: gfy1 8s ease-in-out infinite; }
.glassfx .g2 { top: 74%; animation: gfy2 10s ease-in-out -3s infinite; }
.glassfx .g3 { top: 76%; animation: gfy3 9s ease-in-out -5s infinite; }
.glassfx .g4 { top: 60%; animation: gfy4 12s ease-in-out -2s infinite; }
@keyframes gfy1 { 0%, 100% { transform: translate(-6vw, 22vh) scale(1, 0.9); } 50% { transform: translate(8vw, -34vh) scale(1.2, 1.3); } }
@keyframes gfy2 { 0%, 100% { transform: translate(0, 14vh) scale(1, 1); } 50% { transform: translate(10vw, -38vh) scale(1.15, 1.25); } }
@keyframes gfy3 { 0%, 100% { transform: translate(8vw, 18vh) scale(1.1, 0.9); } 50% { transform: translate(-10vw, -28vh) scale(0.95, 1.3); } }
@keyframes gfy4 { 0%, 100% { transform: translate(-8vw, 26vh) scale(1, 1.1); } 50% { transform: translate(8vw, -26vh) scale(1.2, 0.9); } }

/* ---------- Home nav: the pill and the logo no longer move when a panel opens or closes (Deja, 12 Nov) ----------
   Before, the nav grew upward by animating its HEIGHT while the pill and the logo were pushed down by an animated TRANSFORM / TOP of the same size. On a real browser those two animations run on different threads and drift apart by a frame or two, so the pill jumped up and came back. Now the pill, the logo box and the buttons are anchored to the BOTTOM of the nav, so when the nav grows upward they simply stay where they are (nothing to keep in step). Numbers: closed height H0 = 14.6b + 10px, pill 2.8b + .5px high and 18px from the top, so its bottom offset is 11.8b - 8.5px; the logo box was 13.6b tall from 1b + 10px down. */
.nav:not(.collapsed) .seg { position: absolute; left: 18px; bottom: calc(var(--b) * 11.8 - 8.5px); transform: none !important; }
.nav .nav-logo, .nav.open:not(.collapsed) .nav-logo, .nav:not(.collapsed) .nav-logo { top: auto !important; bottom: 0; height: calc(var(--b) * 13.6); transition: height .5s cubic-bezier(.65, 0, .35, 1); }
.nav.collapsed .nav-logo { height: calc(var(--b) * 10.6); }

/* ---------- Project pages, laptop fix (Deja, 13 Nov) ---------- */
/* 1. Smaller dock on laptop widths: the part under the text is gone (was 228px, now 191px). The logo moves up with it. */
@media (max-width: 1650px) { .pdock { height: 191px; } .plogo { bottom: calc(var(--b) * 0.8 + 17px); } }
/* 2. Scrolling: first the dock slides down and the pictures stay where they are, then the pictures move up. --pp (0 to 520px) is set by the page script together with --pd; the pictures are pushed down by the same amount the page has scrolled, so they look still. The extra 520px at the bottom is the scroll length used up by the dock (400px slide + 120px pause with the top picture fully visible). */
.proj { transform: translateY(var(--pp, 0px)); }
body:has(.proj) { padding-bottom: 800px; }

/* 3. Smooth scrolling (Deja, 13 Nov: the picture bumped, because the script that holds it still ran one frame behind the real scroll). Now the browser does it itself in step with the scroll (scroll driven animation on the page scroll):
   0 to 400px: the dock slides down (--pk 0 to 1 for the text fades) and the pictures are held still; 400 to 800px: pause; after 800px the pictures move up. The script in each page is only the fallback for browsers without this. */
@property --pk { syntax: "<number>"; inherits: true; initial-value: 0; }
@supports (animation-timeline: scroll()) {
  .pdock { animation: dock-slide linear both; animation-timeline: scroll(root); animation-range: 0 400px; }
  .proj  { animation: pics-hold linear both; animation-timeline: scroll(root); animation-range: 0 800px; }
  @keyframes dock-slide { from { transform: translateY(0); --pk: 0; } to { transform: translateY(calc(100% - 70px - var(--drop, 0px))); --pk: 1; } }
  @keyframes pics-hold  { from { transform: translateY(0); } to { transform: translateY(800px); } }
}

/* 4. Narrow windows (Deja, 13 Nov): below the window width BP (1480px, set in js/dockscale.js) the whole dock shrinks with the window by zoom, so title, text, client, buttons and logo all get smaller together and the text keeps the same line breaks as at BP. Wider than BP: --dk is 1, nothing changes. The side gaps are divided by the zoom so the dock edges stay in line with the pictures. */
.pdock { zoom: var(--dk, 1); left: calc((2vw + var(--b) * 2.5) / var(--dk, 1)); right: calc((2vw + var(--b) * 2.5) / var(--dk, 1)); }

/* 5. Paragraph text and client names (Deja, 13 Nov): first 14.5px with a 17.8px line step, then ONE pixel smaller again (the same 13.5px and 16.6px line step as before). */
.ptext p { font-size: 13.5px; line-height: 16.6px; }
.pclient { font-size: 13px; }   /* client names half a pixel smaller again (Deja, 13 Nov): 13px */

/* 7. Move the dock down (Deja, 13 Nov): bottom is minus --drop (set by js/dockscale.js: the empty space under the lowest text of the page minus 30px), so the box shows only what it needs. The slide animation (block 3) ends at the same 70px strip. Pages with the longest text have --drop 0 and do not move. */
.pdock { bottom: calc(var(--drop, 0px) * -1); }

/* 8. Text floor on narrow windows (Deja, 13 Nov: "on the laptop the text becomes too small"): the dock still shrinks with the window (--dk, block 4, so the title stays clear of the Index capsules), but the PARAGRAPHS, the CLIENT names and the word Client never get smaller than 96 percent of their normal size on screen (13.5px text, 13px client, 11px label). Inside the zoomed dock the size is raised by max(--dk, .96) / --dk, so that the size on screen is the normal size times max(--dk, .96). On narrow windows the text then wraps to more lines. The number 0.96 is the floor. */
.ptext p { font-size: calc(13.5px * max(var(--dk, 1), 0.96) / var(--dk, 1)); line-height: calc(16.6px * max(var(--dk, 1), 0.96) / var(--dk, 1)); }
.pclient { font-size: calc(13px * max(var(--dk, 1), 0.96) / var(--dk, 1)); }
.pclient .pl { font-size: calc(11px * max(var(--dk, 1), 0.96) / var(--dk, 1)); }

/* 9. The project title keeps shrinking on small laptop windows (Deja, 13 Nov: the name touched the Index capsule). The dock zoom (--dk) has a floor of 85 percent; below it the title is scaled by --dkr / --dk (--dkr = the dock zoom without the floor, from js/dockscale.js), from its left bottom corner, so it follows the window all the way and its right end stays clear of the Index capsule. Above the floor the factor is 1 and nothing changes. */
.ptitle { scale: calc(var(--dkr, 1) / var(--dk, 1)); transform-origin: 0 100%; }

/* 10. The subtitle line under the project name (Art Installation · Unrealised Exhibition Space) smaller, 17px to 16px, then 15.5px (Deja, 13 Nov). The two gaps around it stay as they are. */
.psub2 { font-size: 15.5px; }

/* 11. DESKTOP HOME ONLY (Deja, 13 Nov): the header text (01 · SELECTED COMMISSIONS and its grey line) closer to the thin line under it, and the line closer to the first project name. Space above the line 15px to 6px, under the line 15px to 8px. `.home hr` exists only on the Home, the project pages and the mobile site are not affected. */
.home hr { margin: 6px 0 8px; }

/* 12. DESKTOP HOME, the hover cards (Deja, 13 Nov, from his Apple Store example picture): (a) the ground behind a hover card is the Apple ground #f5f5f7 in light mode (measured from the example, was a neutral gradient), (b) the card has a soft drop shadow, a wide very soft grey one that falls a little downward plus a closer fainter one. The shadow is `filter: drop-shadow` and follows the rounded shape because the cards (`img/covers_card/<slug>.webp`, made from `img/covers/<slug>.jpg`) now have TRANSPARENT rounded corners (24px at 2000px wide, antialiased) instead of white corners. The old white cover files stay in `img/covers/` (unused by the Home now). Dark mode is not changed (it uses `img/covers_dark`). */
:root:not([data-theme="dark"]) .ground { background: rgb(var(--bb-gnd, 245) var(--bb-gnd, 245) calc(var(--bb-gnd, 245) + 2)); }   /* 20 Nov: follows the "Page ground" slider (Controls, Cover tab), 245 = #f5f5f7 */
.cv { filter: drop-shadow(0 22px 38px rgba(40, 40, 60, 0.34)) drop-shadow(0 6px 12px rgba(40, 40, 60, 0.20)) drop-shadow(0 1px 3px rgba(40, 40, 60, 0.22)); }   /* more evident (Deja, 13 Nov: "sharper"): stronger and tighter, three layers (far, near, contact) so the card clearly lifts off the ground. First version was 26px/50px at .20 and 7px/16px at .09 */

/* 13. White edge around the hover cards (Deja, 13 Nov: "a white stroke around the edges, a bit blurred, more polished"). Built with the same `filter` chain, in this order: (1) a crisp white outline about 1.5px wide (four white drop shadows pushed 1.5px up, down, left, right, which together widen the card by 1.5px on every side), (2) a soft white glow of 6px around it so the edge is a little blurred and bright, (3) then the three grey shadows of block 12, which now start from the OUTER edge of the white line. The card pictures themselves are not changed. */
.cv { filter: drop-shadow(1.5px 0 0 #fff) drop-shadow(-1.5px 0 0 #fff) drop-shadow(0 1.5px 0 #fff) drop-shadow(0 -1.5px 0 #fff) drop-shadow(0 0 6px rgba(255, 255, 255, 0.95)) drop-shadow(0 22px 38px rgba(40, 40, 60, 0.34)) drop-shadow(0 6px 12px rgba(40, 40, 60, 0.20)) drop-shadow(0 1px 3px rgba(40, 40, 60, 0.22)); }

/* 14. The white edge made much softer (Deja, 13 Nov: the crisp white line "looks strange", blur it a lot). No line any more: only wide blurred white glows around the card (14px at 95 percent and 34px at 70 percent), then the grey shadows of block 12 as before. This replaces the filter of block 13. */
.cv { filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 34px rgba(255, 255, 255, 0.7)) drop-shadow(0 22px 38px rgba(40, 40, 60, 0.34)) drop-shadow(0 6px 12px rgba(40, 40, 60, 0.20)) drop-shadow(0 1px 3px rgba(40, 40, 60, 0.22)); }

/* 15. Two fixes on the hover cards (Deja, 13 Nov).
   (a) The soft shadow showed bands ("the gradient is not smooth"): a very soft shadow on a nearly flat ground has only a few grey steps, so the eye sees stripes. A fine grain (a tiny noise picture, soft light blend, 35 percent) lies over the cards layer ONLY while a project name is hovered and breaks the steps up (dithering). It is made by an SVG feTurbulence, no file. Light mode only.
   (b) A thin white crescent showed in the corners of dark pictures: the old covers have white corners baked in and my first transparent corner (radius 24) left some of that white at the edge. The 13 `img/covers_card/*.webp` were made again with a rounded rectangle that sits 2px inside the picture with a radius of 29px (signed distance mask, antialiased), so no baked white is left. */
.covers::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .28s ease; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
:root:not([data-theme="dark"]) body:has(.row:hover) .covers::after { opacity: 0.35; }

/* 16. The shadow is now BAKED into the card pictures (Deja, 13 Nov: the soft shadow still showed bands). The CSS filter shadows and the grain of blocks 12 to 15 are switched off. Each `img/covers_card/<slug>.webp` is now 2440 x 1739: the card (2000 x 1299, rounded, 2px inset) in the middle on a transparent margin of 220px, with a shadow drawn in 16 bit and DITHERED (random noise of one level added before the 8 bit rounding), so it has no steps: far shadow (offset 22px down, blur sigma 19, 34 percent), near shadow (6px, sigma 6, 20 percent) and a contact line (1px, sigma 1.5, 22 percent), colour #28283c, the same look as the filter version. The shadowless cards are kept in `img/covers_card_nosh/` (the source to make them again). The picture is 1.2 times bigger than the card, so the box size here is the old size times 1739 / 1299; it stays centred, the card keeps exactly its old size and place. No white rim glow any more (a glow made from a filter would also lighten the baked shadow). */
.cv { filter: none; height: calc(80.44vh * 1739 / 1299); max-width: calc(100vw * 1.22); }
.covers::after { display: none; }

/* 17. DESKTOP HOME ground (Deja, 13 Nov: "the home is too white when it is not hovered"): the ground of the Home is now the same Apple grey #f5f5f7 all the time (light mode), so nothing jumps from white to grey when a project name is hovered. Only the Home (`:has(.home)`), the project pages keep their own ground. The hover ground layer (.ground, block 12) is the same colour. Dark mode is not changed. */
:root:not([data-theme="dark"]):has(.home), :root:not([data-theme="dark"]):has(.home) body { background: rgb(var(--bb-gnd, 245) var(--bb-gnd, 245) calc(var(--bb-gnd, 245) + 2)); }   /* 20 Nov: follows the "Page ground" slider (Controls, Cover tab), 245 = #f5f5f7, light mode only. Undo: put #f5f5f7 back here and in the .ground rule above (block 12) */

/* 18. DESKTOP HOME, the bottom wave goes higher (Deja, 13 Nov: "make the waves go higher"). The band was 280px high (peaks about 225px up), now 360px (peaks about 290px up). The wave shapes are percentages of the band, so they scale with it, the timing (9s loop) and the haze are not changed. Earlier tries in session 6: 290px was too low, 380px and 58vh too much, so 360 is in between; change this one number to tune it. Only the Home. */
body:has(.home) .bblur { height: 360px; }

/* 19. Info panel (Deja, 13 Nov): only the description, then the LinkedIn link line (.inf-more); a picture of Deja will go below it later. */
.inf-more { margin: calc(var(--b) * 1.2) 0 0; }
/* the LinkedIn line in the Info panel looks like the links of the Contact panel (plain ink, grey arrow, underline on hover), not the browser blue */
.inf-more .lnk { display: inline-flex; align-items: center; gap: calc(var(--b) * 0.53); color: inherit; text-decoration: none; }
.inf-more .lnk:hover { color: var(--seg-hot); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.inf-more .arr { color: var(--tag); }

/* 20. Info panel: the picture of Deja below the text (13 Nov): full width of the text column, square, rounded corners like the cards. The panel scrolls when text plus picture are taller than the box. */
.inf-photo { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; margin: calc(var(--b) * 1.4) 0 calc(var(--b) * 0.6); border-radius: calc(var(--b) * 0.9); }
/* "Hello 🦭," on its own line with some air under it before "I'm Dejair Abati" (Deja, 13 Nov) */
.inf-hello { display: block; margin-bottom: calc(var(--b) * 0.7); }

/* 21. DESKTOP Contact panel buttons fully round, like the mobile ones (Deja, 13 Nov): the Copy button and the WhatsApp me button are pills (rounded ends), a little more side padding so the round ends do not squeeze the text. */
.copy { border-radius: 999px; padding: 0 calc(var(--b) * 0.8); }
.cta { border-radius: 999px; padding: 0 calc(var(--b) * 0.6) 0 calc(var(--b) * 0.95); }

/* 22. WhatsApp colours on the desktop WhatsApp me button (Deja, 13 Nov, from his WhatsApp icon picture): the official WhatsApp green #25D366 as the ground, white text, white symbol, and the W key chip a soft white on the green. Hover a bit darker. Dark mode uses the same green. */
.cta { background: #25d366; border-color: #25d366; color: #fff; }
.cta:hover { background: #1fbd5a; border-color: #1fbd5a; }
.cta .kbd { background: rgba(255, 255, 255, 0.22); border-color: rgba(255, 255, 255, 0.55); color: #fff; }

/* 23. AUSTRALIS ONLY (Deja, 13 Nov): the two pictures side by side (aus-03a and aus-03b, `.pgrid2-fit`, the class is only in australis.html) are never taller than the window minus 100px (70px dock strip plus 30px air), so a picture can be seen whole between the top of the window and the dock. The two pictures share one height (their ratios 0.807 and 0.7078 add up to 1.5148), so the row is at most height x 1.5148 plus the 2vw gap wide, and it is centred. In a window tall enough for the full width row nothing changes. */
.pgrid2-fit { max-width: calc((100vh - 100px) * 1.5148 + 2vw); margin-left: auto; margin-right: auto; }

/* 24. AUSTRALIS ONLY (Deja, 13 Nov): northern lights smudge on the two outer edges of the picture pair (see js/aurora.js, built there). The zones sit on top of the pictures, clipped and rounded like the pictures (0.6vw, block 14 rule `.proj-sharp.proj-round-s img`), never catch clicks. The blur and the slow hue shift live on the inner layer, each band only scales sideways from the picture edge. */
.pgrid2-fit { position: relative; }
.aur { position: absolute; overflow: hidden; pointer-events: none; z-index: 1; }
.aur-l { border-radius: 0.6vw 0 0 0.6vw; }
.aur-r { border-radius: 0 0.6vw 0.6vw 0; }
.aur-in { position: absolute; top: 0; bottom: 0; filter: blur(11px) saturate(1.9); animation: aur-hue 14s ease-in-out infinite alternate; }
.aur-l .aur-in { left: -40px; right: 0; }
.aur-r .aur-in { right: -40px; left: 0; }
.aur-b { position: absolute; will-change: transform; animation: aur-sway 8s ease-in-out infinite alternate; }
.aur-l .aur-b { left: 0; transform-origin: 0 50%; -webkit-mask-image: linear-gradient(to right, #000 0, #000 62%, transparent 100%); mask-image: linear-gradient(to right, #000 0, #000 62%, transparent 100%); }
.aur-r .aur-b { right: 0; transform-origin: 100% 50%; -webkit-mask-image: linear-gradient(to left, #000 0, #000 62%, transparent 100%); mask-image: linear-gradient(to left, #000 0, #000 62%, transparent 100%); }
@keyframes aur-sway { from { transform: scaleX(0.5); opacity: 0.75; } to { transform: scaleX(1); opacity: 1; } }
@keyframes aur-hue { from { filter: blur(11px) saturate(1.9) hue-rotate(-16deg); } to { filter: blur(11px) saturate(1.9) hue-rotate(16deg); } }
.aur-off .aur-in, .aur-off .aur-b { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .aur { display: none; } }

/* Nav pill (Deja, 14 Nov): the grey base is darker so the white words read, and the words are a bit thicker (Archivo is variable, 500). Only the pill, the chips and buttons keep --seg-bg. */
.seg { background: rgba(60, 60, 67, 0.27); }
.seg a { font-weight: 550; }
/* thinner pill (Deja, 14 Nov): the height goes from 2.8b + 0.5px to 2.4b + 0.5px; the white thumb follows (it is set with top / bottom). */
.seg { height: calc((var(--b) * 2.8 + 0.5px) * 0.8); }   /* exactly 20 percent thinner than the original (Deja, 14 Nov) */
/* pill moved up (Deja, 14 Nov): by 0.56b, the amount it got thinner, so its top edge is back where it was and the extra space is under it. */
.nav:not(.collapsed) .seg { bottom: calc(var(--b) * 12.36 - 8.5px); }
/* the word on the white thumb is dark and a bit thinner (400), the words on the grey are white and 500 (Deja, 14 Nov). The thumb follows the mouse, so while one item is hovered, the active item (Work) is a plain grey item again: white and 500. */
.seg a:hover, .seg a[aria-current] { font-weight: 450; }
.seg:has(a:hover) a[aria-current]:not(:hover) { color: #fff; font-weight: 550; }
.seg:has(a:focus-visible) a[aria-current]:not(:focus-visible) { color: #fff; font-weight: 550; }
/* back to the first white effect (Deja, 14 Nov): the thumb has its original soft glow again, and the word on it is grey, as in the first version, not dark. */
.seg a:hover, .seg a[aria-current] { color: #3c3c40; }   /* darker again (first grey was #6a6a6e, then #505054) */
/* the tagline "Designer, Educator & Researcher" a bit thicker (Deja, 14 Nov): Helvetica Neue Medium (500) instead of Regular. */
.nav-tag { font-weight: 500; }
/* Home nav, open (Deja, 14 Nov, from the mock-up): the logo block (cat, LEINAT, tagline) goes up 0.8b, and the two round buttons sit at 3.4b from the bottom (they were 2.9b). The logo box is anchored to the bottom (see the block above), so it is moved with translate. */
.nav:not(.collapsed) .nav-logo { translate: 0 calc(var(--b) * -0.8); }
.nav:not(.collapsed) .nav-tools { bottom: calc(var(--b) * 3.4); }
/* project page logo block (cat, LEINAT, tagline) moved up by 1.2b (Deja, 14 Nov), the same move as on the Home nav. A separate "translate" so it works with every bottom rule above. */
.plogo { translate: 0 calc(var(--b) * -1.2); }
/* Sketchbook page background (Deja, 14 Nov, third version): the soft colour glow of aaantonio.xyz project pages. A small fixed box (two colour halves, one colour circle and the picture that is on screen) is scaled up 8 times and blurred, so it fills the window with a smooth gradient that changes colour as you scroll from picture to picture. Same numbers as Antonio's (.amb); the opacity is his light mode value (0.55). */
html:has(.sk-main) { background: #fff; }
html:has(.sk-main) body { background: transparent; }   /* the body must not paint white over the glow (it sits at z-index -1, behind the body's own background) */
.sk-amb { position: fixed; left: -120px; top: -120px; width: calc(30px + 12.5vw); height: calc(30px + 12.5vh); transform: scale(8) translateZ(0); transform-origin: 0 0; z-index: -1; opacity: calc(0.4 + var(--k, 0) * 0.15); filter: blur(12.5px) saturate(calc(var(--k, 0) * 130%)); pointer-events: none; will-change: transform; transition: opacity .6s; }   /* --k (0 to 1) is set by the page script: 0 when the page opens = a grey gradient, 1 = full colour after the first 8 percent of the page (Deja, 14 Nov) */
.sk-amb > * { position: absolute; transition: background .6s, opacity .6s; }
.sk-amb .a { left: 0; top: 0; width: 55%; height: 100%; background: #3d37ff; }   /* blue of the SKETCHBOOKS lettering */
.sk-amb .b { right: 0; top: 0; width: 55%; height: 100%; background: #e3b94f; }   /* gold of the cover */
.sk-amb .c { left: 30%; top: 20%; width: 75px; height: 75px; border-radius: 50%; background: #ff6a9a; }
.sk-amb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s; }
.sk-amb img.on { opacity: 1; }
@media (hover: none) { .sk-amb { filter: none; } .sk-amb > div { opacity: 0.3; -webkit-mask-image: radial-gradient(closest-side, #000 0%, rgba(0,0,0,.55) 45%, transparent 100%); mask-image: radial-gradient(closest-side, #000 0%, rgba(0,0,0,.55) 45%, transparent 100%); } .sk-amb img { display: none; } }

/* Sketchbook page pictures (Deja, 14 Nov): one below the other with NO gaps, the side margins of the page (2vw). Only picture 1 has rounded corners, on top. "3_on top" lies over picture 3 at the place of Deja's example: left 51.5 percent, top 3 percent, width 30 percent of picture 3. */
.proj .sk-stack img { border-radius: 0; margin: 0; }
.proj .sk-stack > img:first-child { border-radius: 1.2vw 1.2vw 0 0; }
.sk-over { position: relative; }
.proj .sk-over img { margin: 0; }
.proj .sk-over img.sk-top { position: absolute; left: 51.5%; top: 3%; width: 30%; height: auto; pointer-events: none; cursor: default; }
.proj.sk-main .pnext { margin-top: 2vw; }

/* Sketchbook page: the pictures do not zoom when clicked (Deja, 14 Nov), so no zoom cursor either. */
.proj .sk-stack img, .proj .sk-over img { cursor: default; }

/* Sketchbook page (Deja, 14 Nov): a special page without an explanation, so it opens with the dock already low (only the strip with the title, Home and the counter), no slide on scroll, and the pictures are not held back. */
.pdock.pdock-low { animation: none !important; transform: translateY(calc(100% - 70px - var(--drop, 0px))) !important; --pk: 1; }
.proj.sk-main { animation: none !important; transform: none !important; padding-bottom: calc(70px + 2vw); }
body:has(.sk-main) { padding-bottom: 0; }
/* the title: 20 percent bigger (6.2b to 7.44b), moved up by the extra height so its bottom edge stays where it was, and the orange of the Info glow (.glassfx .g2) */
.pdock .ptitle.sk-title { font-size: calc(var(--b) * 7.44); top: calc(var(--b) * -5.14); color: #f48a34; }
/* the grey cat on the title (it appeared when the dock was low) is gone on every page (Deja, 14 Nov) */
.pcat { display: none !important; }

/* the logo rabbit (the ears showed above the low dock) fades out as soon as the dock starts to slide down, on every page (Deja, 14 Nov) */
.p-cat { opacity: max(0, calc(0.12 - var(--pk, 0) * 0.5)); }
/* Sketchbook: the line of text BEHIND the word SKETCHBOOK (the title is z-index 2). It is written twice in a row (read twice, Deja 14 Nov) with only a small space between the copies, scrolls slowly from right to left and fades at both ends. Size 15px and light grey as before. */
.sk-marq { position: absolute; z-index: 1; left: calc(var(--b) * 2.2); right: calc(var(--b) * 2.2); top: calc(var(--b) * 0.45); height: calc(var(--b) * 1.4); overflow: hidden; pointer-events: none; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%); }
.sk-marq-track { display: flex; width: max-content; }   /* standing still: no animation (Deja, 14 Nov: "stop the motion"). The text starts faded at the left end and the second copy fades out at the right end. */
.sk-marq-track > div { display: flex; flex: none; }
.sk-marq span::after { content: "\00b7"; margin-left: 0.6em; }   /* a middle dot between the copies: "drawings · This" (Deja, 14 Nov) */
.sk-marq span { flex: none; margin-right: 0.6em; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 15px; line-height: calc(var(--b) * 1.4); letter-spacing: 0.01em; color: #b2b2b8; white-space: nowrap; }


/* TEXT PLACEMENT ON EVERY PROJECT PAGE (Deja, 14 Nov, built on the W Hotel page): the subtitle line is 15px higher; the client block (Client, Agency, credits, whatever a page has) is on the right side of the inner box, right aligned, 12px higher, its names never wrap, right under their labels (1px), with the thin line on its right side that fades out before the bottom of the box; the block is 2.1b from the right (about 20 percent of its width to the left). The grid gives the block the room it needs and the description takes the rest (at least 3b between them). Pages without a client block only get the higher subtitle. */
.pdock .psub2 { position: relative; top: -15px; }
.pdock:has(.pclient) .pbody { grid-template-columns: minmax(0, 1fr) auto; }
.pdock:has(.pclient) .pclient { position: relative; margin-top: -12px; margin-left: calc(var(--b) * 3); margin-right: calc(var(--b) * 2.1); white-space: nowrap; border-left: 0; padding-left: 0; padding-right: calc(var(--b) * 1.4); align-items: flex-end; text-align: right; justify-self: end; width: auto; }
.pdock:has(.pclient) .pclient::before { content: ""; position: absolute; right: 0; left: auto; top: 0; bottom: -14px; width: 1px; background: linear-gradient(to bottom, var(--btn-line) 0%, var(--btn-line) 55%, transparent 100%); }
.pdock:has(.pclient) .pclient .pl { margin-bottom: 1px; }
.pdock:has(.pclient) .pclient b { margin-top: 0; white-space: nowrap; }
/* second block on the W Hotel page: Agency, with more space above it (8px) than between it and its name (1px) */
.pclient .pc-sub { color: var(--pclient-ink); font-weight: 400; }
.pdock:has(.pclient) .pclient .pl-agency { margin-top: 8px; margin-bottom: 1px; }

/* Cupra (Deja, 14 Nov): more space between the word Client and CUPRA (12px), CUPRA in bold, the credits end with the two slashes. */
.pdock:has(.pclient) .pclient.pc-credits .pl { margin-bottom: 12px; }
.pdock:has(.pclient) .pclient.pc-credits b { font-weight: 700; }

/* The description of every project page (Deja, 14 Nov, from the Cupra page): the line breaks at the same width, 55.5 times the font size, so the text is two fuller lines and not one very long one; "pretty" keeps a single word from standing alone on the last line. */
.pdock .ptext p { max-width: 55.5em; text-wrap: pretty; }

/* Creativia title (Deja, 14 Nov): the I and A touched and looked like an M, so the pair IA gets more room (0.12em before it and a looser gap between the two letters, like the .hot on the Home), and the title is a lighter grey than the other pages (80 percent of the dark grey, not as light as on the Home). */
.ptitle-cr .ia { margin-left: 0.1em; letter-spacing: -0.02em; color: rgba(84, 84, 88, 0.82); }   /* CREATIV keeps the normal dark title colour, only IA is the lighter grey */

/* a credit line in bold, same ink as the bold client name (Creativia: the European Union funding line, Deja 14 Nov) */
.pclient .pc-bold { font-weight: 700; color: var(--pclient-ink); }

/* Smooth scrolling (js/smooth.js, Lenis): the rules the library asks for. */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Home, Contact / Info opening on hover, slower and softer (Deja, 14 Nov): the box grows in 0.75s with a gentle ease-out (was 0.5s in-out), the panel text fades in over 0.45s once the box is mostly open (was 0.3s after 0.22s), and fades out a little softer when it closes. Width and the corner radius keep their 0.5s so the Close menu capsule is unchanged. */
.nav:not(.collapsed) { transition: width .75s cubic-bezier(.22, 1, .36, 1), height .75s cubic-bezier(.22, 1, .36, 1), border-radius .75s cubic-bezier(.22, 1, .36, 1); }
.nav[data-panel="contact"].open:not(.collapsed) #contact-panel,
.nav[data-panel="info"].open:not(.collapsed) #info-panel { transition: opacity .45s ease .32s; }
.nav .contact { transition: opacity .25s ease; }

/* Home, the nav OPENING (on page load the capsule opens by itself after 0.7s, and the Open menu button) with the same soft feel as the Contact / Info panels (Deja, 14 Nov): the box, the cat, the two round buttons and the logo box all move in 0.75s with the gentle ease-out (were 0.5s in-out), and the pill, the LEINAT word and the tagline fade in a little slower (0.45s, starting at 0.45s). Closing to the capsule keeps its old timing. */
.nav:not(.collapsed) .nav-cat { transition: left .75s cubic-bezier(.22, 1, .36, 1), top .75s cubic-bezier(.22, 1, .36, 1), height .75s cubic-bezier(.22, 1, .36, 1), opacity .75s ease; }
.nav:not(.collapsed) .nav-tools { transition: right .75s cubic-bezier(.22, 1, .36, 1), bottom .75s cubic-bezier(.22, 1, .36, 1); }
.nav:not(.collapsed) .nav-logo { transition: height .75s cubic-bezier(.22, 1, .36, 1); }
.nav:not(.collapsed) .seg, .nav:not(.collapsed) .nav-word, .nav:not(.collapsed) .nav-tag { transition: opacity .45s ease .45s; }

/* Textile Prints (Deja, 14 Nov): seven client lines, so the lines are a little closer (line height 1.25 to 1.1) and the gap under the word Client is 8px, to keep clear space under the last line. */
.pdock:has(.pclient) .pclient.pc-tight { line-height: 1.1; }
.pdock:has(.pclient) .pclient.pc-credits.pc-tight .pl { margin-bottom: 8px; }

/* W Hotel, project in progress (Deja, 14 Nov, from his example picture): a blue IN PROGRESS tag with round corners centred above the first picture, and on the top edge of that picture the line "Completion expected in March 2027" scrolling slowly from right to left in white, with soft ends. */
.wip-tag { width: max-content; margin: 14px auto 16px; padding: 5px 13px 4px; border-radius: 8px; background: #3d4bff; color: #fff; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; font-weight: 500; letter-spacing: 0.03em; line-height: 1.2; }
.wip-pic { position: relative; margin-bottom: 2vw; }   /* the 2vw is the gap between pictures 1 and 2 that img + img gave before */
.wip-marq { position: absolute; left: 0; right: 0; top: 8px; height: 22px; overflow: hidden; pointer-events: none; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%); }
.wip-track { display: flex; width: max-content; animation: wip-marq 60s linear infinite; }
.wip-track > div { display: flex; flex: none; }
.wip-marq span { flex: none; margin-right: 3em; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px; color: #fff; white-space: nowrap; text-shadow: 0 0 8px rgba(0, 0, 0, 0.35); }
@keyframes wip-marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .wip-track { animation: none; } }
/* the blue of the IN PROGRESS tag has a soft blurred glow around it, like the white thumb of the nav pill (Deja, 14 Nov) */
.wip-tag { box-shadow: 0 0 14px 3px rgba(61, 75, 255, 0.55), 0 0 34px 10px rgba(61, 75, 255, 0.32); }

/* W Hotel: a small title on the top left of a picture, in the same tight bold letters as the project title (Deja, 14 Nov: "The room" on picture 5, "The Art" on picture 4). The size follows the window (3.7vw) and the place is in percent of the picture, so it stays put at any width. Light grey, a lighter grey on the darker room picture and a mid grey on the cream picture of the art, so both have contrast. */
.pic-t { position: relative; margin-top: 2vw; }
.proj .pic-t img { margin: 0; }
.pic-title { position: absolute; left: 2.8%; top: 2.6vw; font-family: "Alte Haas Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 700; font-size: 3.7vw; line-height: 1; letter-spacing: -0.08em; white-space: nowrap; pointer-events: none; }
.pic-title.pt-room { color: #d6d6da; }
.pic-title.pt-art { color: #a4a4aa; }

/* W Hotel: the Mood board picture (old picture 3) is now picture 2, the Barcelona inspiration list is picture 3 (Deja, 14 Nov). The title is mid grey on the white picture. A plain picture after a titled one keeps the 2vw gap. */
.pic-title.pt-mood { color: #a4a4aa; }
.proj .pic-t + img { margin-top: 2vw; }

/* Pull & Bear (Deja, 14 Nov): a little drop shadow under every picture and the film, so they look slightly detached from the brown ground (a soft wide shadow that falls a little downward, plus a closer, fainter one). */
.proj-pb img, .proj-pb .pvid { box-shadow: 0 14px 38px rgba(0, 0, 0, 0.30), 0 3px 9px rgba(0, 0, 0, 0.20); }

/* Textile Prints (Deja, 14 Nov): the balloon keeps floating left and right, and as you scroll down the page it also rises to the top of the window (from 32vh to 3vh at the end of the page). It follows the page scroll, so it is as smooth as the scroll itself. */
.tp-balloon { animation: tp-drift 18s ease-in-out 0s infinite alternate, tp-rise linear both; animation-timeline: auto, scroll(root); }
@keyframes tp-rise { from { top: 32vh; } to { top: 3vh; } }
@media (prefers-reduced-motion: reduce) { .tp-balloon { animation: none; } }

/* Textile Prints: the balloon floats away (up) and fades while the A.O.P picture is on screen (script at the end of the page sets --bx 0 to 1). Separate properties, so the left and right drift and the rise on scroll keep running. */
.tp-balloon { translate: 0 calc(var(--bx, 0) * -70vh); opacity: calc(1 - var(--bx, 0)); }

/* Textile Prints, A.O.P (Deja, 14 Nov, from his picture): the six swatch pictures (tp-10 to tp-15) are on the RIGHT of the garment pictures (tp-05 to tp-09), one below the other with rounded corners, 10.8 percent of the width, 2 percent from the right edge. The column starts 16 percent of the width below the top of the block (where it was in his picture) and is STICKY: it stays at 9vh while you scroll through the block and leaves with it. */
.tp-aop { position: relative; }
.tp-sw-wrap { position: absolute; left: 0; right: 0; top: 0; bottom: 0; padding-top: 16%; pointer-events: none; }
.tp-sw { position: sticky; top: calc(9vh - 800px);   /* the pictures are pushed down 800px by the dock hold (.proj transform, 800px after the first 800px of scroll), and sticky does not know it, so 800px are taken off */ margin-left: auto; margin-right: 2%; width: 10.8%; display: flex; flex-direction: column; gap: 0.9vw; }
.proj.proj-flush .tp-sw img { width: 100%; height: auto; display: block; margin: 0; border-radius: 0.9vw; }

/* Textile Prints swatches (Deja, 14 Nov): they can be clicked to enlarge (js/lightbox.js, only these six on this page), a small round zoom button on top of the column says so (and opens the first one), and every swatch has a soft drop shadow so it is lifted off the grey picture. */
.proj-tp .tp-sw { pointer-events: auto; }
.proj.proj-flush.proj-tp .tp-sw img { cursor: zoom-in; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.38), 0 1px 4px rgba(0, 0, 0, 0.28); transition: transform .25s ease, box-shadow .25s ease; }
.proj.proj-flush.proj-tp .tp-sw img:hover { transform: scale(1.03); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.3); }
.tp-zoom { align-self: center; flex: none; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; margin: 0 0 0.3vw; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.16); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; cursor: zoom-in; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); transition: background .2s ease, transform .15s ease; }
.tp-zoom:hover { background: rgba(255, 255, 255, 0.32); }
.tp-zoom:active { transform: scale(0.94); }

/* Home (Deja, 14 Nov): more room under the last project, so when you scroll to the end the last name can rise ABOVE the blurred wave at the bottom edge (it is 280px high) and is not covered by it. 64px became 330px. */
.home{padding-bottom:150px}

/* Thinner type (Deja, 14 Nov): nav pill words 550 to 450 (selected 450 to 350), Home hover caption 400 to 300 */
.seg a { font-weight: 450; }
.seg a:hover, .seg a[aria-current] { font-weight: 350; }
.seg:has(a:hover) a[aria-current]:not(:hover), .seg:has(a:focus-visible) a[aria-current]:not(:focus-visible) { font-weight: 450; }
.row h1 .d { font-weight: 300; }
.seg a:hover { font-weight: 410; }   /* hovered word a bit thicker (Deja, 14 Nov) */

/* CUPRA x ROSALIA (Deja, 14 Nov): ground like the Apple card page (#f6f5f8), the 3D render and the pattern screenshot sit together in ONE rounded box with a soft gradient behind them. Applies only to the page with .proj-cx */
html:has(.proj-cx), html:has(.proj-cx) body { background: #f6f5f8; }
.proj-cx .cx-row { display: flex; align-items: stretch; gap: 2vw; margin-top: 2vw; }   /* two separate cards side by side, same height */
.proj-cx .cx-card { flex: var(--ar, 1) 1 0; min-width: 0; border-radius: 2.2vw; overflow: hidden; background: linear-gradient(155deg, #ffffff 0%, #f1f3fb 48%, #dde5fa 100%); box-shadow: 0 1.4vw 3.4vw rgba(30, 40, 90, 0.10), 0 0.2vw 0.8vw rgba(30, 40, 90, 0.06); }
.proj-cx .cx-card img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; mix-blend-mode: multiply; }
/* CUPRA x ROSALIA picture strip (Deja, 14 Nov): a white stripe edge to edge with the 7 garment pictures in a row, moving right to left in a loop, soft fading ends. The set is written twice in the HTML, the track moves by half its width. Pictures inside .no-zoom are not enlarged. */
.proj-cx .cx-strip { margin: 2vw -2vw 0; background: #fff; padding: 2.6vw 0; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%); }
.proj-cx .cx-track { display: flex; width: max-content; animation: cx-strip 45s linear infinite; }
.proj-cx .cx-track > div { display: flex; flex: none; gap: 3.2vw; padding-right: 3.2vw; }
.proj-cx .cx-track img { flex: none; width: auto; height: 26vw; border-radius: 0; margin: 0; }
.proj-cx .cx-track img + img { margin-top: 0; }
@keyframes cx-strip { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .proj-cx .cx-track { animation: none; } }
/* Strip can be moved by hand (JS in cupra-x-rosalia.html): the JS drives the movement, so the CSS animation is off while it runs */
.proj-cx .cx-strip.cx-js { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.proj-cx .cx-strip.cx-js.cx-grab { cursor: grabbing; }
.proj-cx .cx-strip.cx-js .cx-track { animation: none; will-change: transform; }
.proj-cx .cx-strip img { -webkit-user-drag: none; pointer-events: none; }
/* Strip pictures bigger (Deja, 14 Nov): all 34vw high (was 26vw) except the grey figure (4th) and the black jumpsuit (7th), which stay at 26vw, centred on the stripe */
.proj-cx .cx-track > div { align-items: center; }
.proj-cx .cx-track img { height: 42vw; }
.proj-cx .cx-track img:nth-child(4), .proj-cx .cx-track img:nth-child(7) { height: 26vw; }
/* CUPRA x ROSALIA credits + the two heads (Deja, 14 Nov). At the end of the page the front face (d2-face) sits at the left and the profile (d1-hat) is glued to the right edge, both on the bottom of the page. The credits are live text; the roles at the bottom stack one under another and WRAP around the two hats with CSS shape-outside (the empty .cx-sl and .cx-sr floats carry the outline of each hat, the pictures themselves are placed absolutely at the same spot). All sizes are vw so the outlines always match the pictures. Left picture 43vw wide (54vw high), right picture 38.5vw wide (48.1vw high), the polygons were measured from the real pixels of the two pictures (first non white pixel per row), the crowns of both hats are at about 24vw from the top of .cx-end (height 66.6vw). */
.proj-cx { padding-bottom: 0; position: relative; }
.proj-cx .cx-credits { margin: 0 -2vw; padding: 5.5vw 0 0; }
.proj-cx .cx-credits h2 { margin: 0 0 2.4vw 4.2vw; font: 400 11px/1.2 "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: 0.04em; text-transform: uppercase; color: var(--tag); }
.proj-cx .cx-end { position: relative; background: #f6f5f8; display: flow-root; height: 61.5vw; overflow: clip; overflow-clip-margin: 0; font-family: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif; }
.proj-cx .cx-end img { position: absolute; display: block; height: auto; border-radius: 0; margin: 0; mix-blend-mode: multiply; pointer-events: none; -webkit-user-drag: none; }
.proj-cx .cx-end img.cx-hl { left: 3.5vw; bottom: 4.7vw; width: 43vw; }
.proj-cx .cx-end img.cx-hr { right: 0; top: 9.9vw; width: 38.5vw; }
.proj-cx .cx-sl { float: left; display: block; margin: 12.9vw 0 0 3.5vw; width: 43vw; height: 53.7vw; shape-outside: polygon(0% 20.7%, 69.8% 20.7%, 74.5% 22.2%, 77.9% 23.7%, 78.8% 25.2%, 79.5% 26.7%, 79.7% 28.1%, 79.7% 29.6%, 79.7% 31.1%, 79.7% 32.6%, 79.7% 34.1%, 80.3% 35.6%, 82% 37%, 85.7% 38.5%, 89% 40%, 91.9% 41.5%, 95% 43%, 98% 44.4%, 99.4% 45.9%, 99.2% 47.4%, 98.6% 48.9%, 98.1% 50.4%, 97.5% 51.9%, 96.9% 53.3%, 96.2% 54.8%, 95.6% 56.3%, 94.9% 57.8%, 94.3% 59.3%, 93.5% 60.7%, 92.8% 62.2%, 92% 63.7%, 91.3% 65.2%, 90.6% 66.7%, 89.8% 68.1%, 89% 69.6%, 88.1% 71.1%, 87.3% 72.6%, 86.5% 74.1%, 85.6% 75.6%, 84.8% 77%, 84% 78.5%, 83.1% 80%, 82.4% 81.5%, 81.8% 83%, 81.3% 84.4%, 80.9% 85.9%, 81% 87.4%, 81.3% 88.9%, 81.7% 90.4%, 81.8% 91.9%, 86.5% 93.3%, 89.4% 94.8%, 91.5% 96.3%, 95.5% 97.8%, 97.2% 99.3%, 0% 100%) border-box; shape-margin: 1.4vw; }
.proj-cx .cx-sr { float: right; display: block; margin-top: 19.7vw; width: 38.5vw; height: 46.9vw; shape-outside: polygon(100% 7.6%, 36% 7.6%, 34.6% 9.1%, 33.4% 10.7%, 32.6% 12.2%, 31.9% 13.6%, 31% 15.2%, 30.3% 16.7%, 29.5% 18.3%, 28.6% 19.8%, 27.3% 21.2%, 25.2% 22.8%, 19.1% 24.3%, 14% 25.8%, 8.5% 27.4%, 4.5% 28.8%, 1.8% 30.4%, 1.8% 31.9%, 2.8% 33.4%, 4.4% 35%, 6.4% 36.5%, 8.1% 37.9%, 9.8% 39.5%, 11.7% 41%, 13.7% 42.6%, 16% 44.1%, 18.5% 45.5%, 18.2% 47.1%, 18.6% 48.6%, 19.1% 50.2%, 19.3% 51.7%, 19.5% 53.2%, 19.7% 54.7%, 18.5% 56.2%, 17.2% 57.7%, 16.9% 59.3%, 17% 60.8%, 18.3% 62.3%, 22.8% 63.8%, 22.6% 65.3%, 21.8% 66.9%, 21.7% 68.4%, 22.6% 69.8%, 25.1% 71.4%, 24.9% 72.9%, 25.6% 74.5%, 27.5% 76%, 27.3% 77.5%, 27.2% 79%, 27.4% 80.5%, 28.3% 82%, 30.2% 83.6%, 47.1% 85.1%, 48.1% 86.6%, 48.7% 88.1%, 49.1% 89.6%, 49.3% 91.2%, 49.3% 92.7%, 49.2% 94.3%, 49.2% 95.7%, 49.3% 97.2%, 49.4% 98.8%, 49.5% 100%, 100% 100%) border-box; shape-margin: 1.4vw; }
.proj-cx .cx-list { position: relative; z-index: 2; }
.proj-cx .cx-i { display: inline-block; vertical-align: top; width: 21vw; margin: 0 2.6vw 2.1vw 0; box-sizing: border-box; }
.proj-cx .cx-i:nth-child(4n+1) { margin-left: 4.2vw; }
.proj-cx .cx-i.cx-wide { width: 46vw; margin-right: 1.2vw; }   /* 3D Artists on ONE line; Illustrators still starts in the third column (4.2 + 46 + 1.2 = 51.4vw) */
.proj-cx .cx-i.cx-wide + .cx-i.cx-wide { width: 44vw; margin-right: 0; }
.proj-cx .cx-i.cx-narrow { width: 13vw; margin-right: 0; }
.proj-cx .cx-l { display: block; font-size: 11px; line-height: 1.3; color: var(--tag); margin: 0 0 6px; }
.proj-cx .cx-n { display: block; font-size: 13px; line-height: 1.4; font-weight: 400; color: var(--pclient-ink); text-wrap: pretty; }
.proj-cx .pnext { position: absolute; left: 0; right: 0; bottom: 300px; margin: 0; padding: 0 2vw; z-index: 4; }
/* CUPRA x ROSALIA: Previous / Next cards see through with a very thin stroke (Deja, 14 Nov). Only on this page (.proj-cx). */
.proj-cx .pcard::before, .proj-cx .pcard:hover::before { background: transparent; filter: none; box-shadow: none; }
.proj-cx .pcard::after { content: ""; position: absolute; inset: 3px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.7); pointer-events: none; }
/* Both heads sit 9vw higher on the page (Deja, 14 Nov: higher, so more of the pictures can be seen): .cx-end is 9vw taller (75.6vw), the pictures keep their place against the text, and the page ends 9vw lower, so the faces and necks clear the dock. The bottom of each picture fades out softly, so no hard cut shows. The Previous / Next cards were raised by the same amount (bottom 360px) to stay on the same spot of the pictures. */
.proj-cx .cx-end img.cx-hl, .proj-cx .cx-end img.cx-hr { -webkit-mask-image: linear-gradient(to bottom, #000 88%, transparent 100%); mask-image: linear-gradient(to bottom, #000 88%, transparent 100%); }
/* Pictures end at the dock (Deja, 14 Nov, picture 2): the page ends 4.3vw (62px) sooner, .cx-end is 71.3vw high (was 75.6), the left picture bottom is 4.7vw (was 9vw), so the soft fade ends right at the top of the dock; the pictures keep their place against the text (nothing else moved), cards bottom 300px. */
/* CUPRA credits, layout as Deja's picture (14 Nov): the top ten roles in the 4 column grid, 3D Artists on ONE line; the last five roles are placed by hand around the two hats: Lettering and Compositing in the left column, Motion Graphics, Cleanup 2D and Animation 2D in the gap between the hats (positions in vw inside .cx-end, small side shifts as in the picture). The hats are 9.8vw higher against the text (the crowns sit right under the 3D Artists row), .cx-end 61.5vw high, the pictures keep their place against the window bottom. The empty outline floats .cx-sl / .cx-sr were taken out of the HTML. */
.proj-cx .cx-i.cx-abs { position: absolute; width: auto; margin: 0; white-space: nowrap; }
/* CUPRA x ROSALIA, three still boxes between the strip and the credits (Deja, 14 Nov, look from the Apple card picture): white rounded cards with a soft drop shadow, 16:9, one picture at a time. The pictures swap one box after another (script in cupra-x-rosalia.html): the old one fades and shrinks a little, the new one fades in from a slightly larger size. */
.proj-cx .cx-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2vw; margin: 3.2vw 0 0; }
.proj-cx .cx-card3 { position: relative; aspect-ratio: 16 / 9; border-radius: 2.2vw; overflow: hidden; background: #fff; box-shadow: 0 1.5vw 3.4vw rgba(30, 40, 90, 0.16), 0 0.25vw 0.9vw rgba(30, 40, 90, 0.10); }
.proj-cx .cx-card3 img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; margin: 0; opacity: 0; transform: scale(0.94); filter: blur(6px); transition: opacity 0.9s ease, transform 1.2s cubic-bezier(.22, 1, .36, 1), filter 0.9s ease; pointer-events: none; }
.proj-cx .cx-card3 img.on { opacity: 1; transform: scale(1); filter: blur(0); }
.proj-cx .cx-card3 img + img { margin-top: 0; }
/* Three still boxes, second version (Deja, 14 Nov): 20 percent smaller (24.5vw wide each, was 30.7vw), centred with more room left and right, the space above doubled (3.2vw to 6.4vw) and the space below doubled (credits top padding 5.5vw to 11vw). */
.proj-cx .cx-trio { grid-template-columns: repeat(3, 24.5vw); justify-content: center; margin: 6.4vw 0 0; }
.proj-cx .cx-credits { padding-top: 11vw; }
/* AUSTRALIS picture strip (Deja, 14 Nov): the two big pictures (aus-03a, aus-03b) are smaller (they fit the window), sharp (the aurora smudge js/aurora.js is no longer loaded on this page), and move right to left in a loop like the CUPRA strip (js/strip.js, draggable), followed by four small squares with close-ups of the two pictures (sq-01..04.webp). Soft fading ends. */
.au-strip { --auh: min(46vw, calc(100vh - 270px)); margin: 2vw -2vw 0; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%); }
.au-strip .mtrack { display: flex; width: max-content; }
.au-strip .mtrack > div { display: flex; flex: none; align-items: center; gap: 2vw; padding-right: 2vw; }
.au-strip img { flex: none; width: auto; margin: 0; }
.au-strip img.au-p { height: var(--auh); }
.au-strip img.au-q { height: calc(var(--auh) * 0.4); }
.au-strip img + img { margin-top: 0; }
.au-strip.mjs { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.au-strip.mjs.mgrab { cursor: grabbing; }
.au-strip.mjs .mtrack { will-change: transform; }
.au-strip img { -webkit-user-drag: none; pointer-events: none; }
/* AUSTRALIS strip, second version (Deja, 14 Nov): pictures 15 percent bigger (--auh x 1.15), more white room above and below (6.3vw padding plus the usual 2vw), and the four close-ups are taller (portrait 0.86) and set in a 2 x 2 group the same height as the pictures: row 1 sq-03 and sq-04, row 2 sq-01 and sq-02, the second row pushed 28 percent of a card to the right. */
.au-strip { --auh: calc(min(46vw, 100vh - 270px) * 1.15); padding: 6.3vw 0; }
.au-strip .au-grid { display: grid; grid-template-columns: auto auto; gap: 2vw; align-content: center; padding-right: calc(var(--auh) * 0.1); }
.au-strip .au-grid img.au-q { height: calc((var(--auh) - 2vw) / 2); width: auto; }
.au-strip .au-grid img.au-q:nth-child(n+3) { transform: translateX(28%); }
/* AUSTRALIS: a soft drop shadow behind every picture so they lift off the page (Deja, 14 Nov). Offset downward and blur 28px, so the shadow of one picture never reaches past the 2vw gap onto the one above it. */
.proj-au .au-strip img, .proj-au > img:last-of-type { box-shadow: 0 8px 22px rgba(0, 0, 0, 0.11), 0 1px 4px rgba(0, 0, 0, 0.07); }   /* only the pictures of the moving strip and the last picture (aus-05), and softer than the first try (Deja, 14 Nov) */
/* AUSTRALIS strip: the fade at both sides is wider and stronger (Deja, 14 Nov): fully faded at the very edge, fully clear only from 15 percent in (was 6 percent). */
.au-strip { -webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0, 0, 0, 0.35) 4%, #000 15%, #000 85%, rgba(0, 0, 0, 0.35) 96%, transparent 100%); mask-image: linear-gradient(to right, transparent 0, rgba(0, 0, 0, 0.35) 4%, #000 15%, #000 85%, rgba(0, 0, 0, 0.35) 96%, transparent 100%); }
/* AUSTRALIS text above and below the moving strip (Deja, 14 Nov, idea from the Apple page): a big headline with a grey line on top, a caption with a dark lead-in and grey text underneath. Both stay fixed on the page, left aligned at 4.2vw like the CUPRA credits, the pictures slide between them. */
.proj-au .au-head { margin: 6vw 0 0; padding: 0 4.2vw; }
.proj-au .au-head h2 { margin: 0; font: 600 3.9vw/1.05 "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: -0.035em; color: var(--strong); }
.proj-au .au-head p { margin: 1.1vw 0 0; font: 400 15px/1.4 "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif; color: var(--tag); }
.proj-au .au-foot { padding: 0 4.2vw; margin: 0 0 6vw; }
.proj-au .au-foot p { margin: 0; max-width: 40vw; font: 400 15px/1.5 "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif; color: var(--tag); text-wrap: pretty; }
.proj-au .au-foot b { font-weight: 600; color: var(--strong); }
.proj-au .au-strip { padding-top: 3.6vw; padding-bottom: 3.6vw; }   /* the headline and the caption now take part of the white room above and below the strip */
/* AUSTRALIS, second version of the texts (Deja, 14 Nov). 1) The headline is set like the Tate Modern headings: capitals, regular weight, neutral grotesque (Alte Haas Grotesk, the site's title font), near black. 2) The Details paragraph sits in the white space to the LEFT of the picture below the animation (aus-02 has that white band built in, 26 percent of its width), top aligned with the picture. */
.proj-au .au-head h2 { font: 400 3.5vw/1.05 "Alte Haas Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif; text-transform: uppercase; letter-spacing: -0.012em; color: #1a1a1a; }
.proj-au .au-split { position: relative; }
.proj-au .au-split img { display: block; }
.proj-au .au-split .au-foot { position: absolute; left: 2.2vw; top: 0.4vw; width: 21.5vw; padding: 0; margin: 0; }
.proj-au .au-split .au-foot p { max-width: none; }
.proj-au .au-split + img { margin-top: 2vw; }
/* Quicksand (Google Fonts, SIL Open Font License), self hosted like Archivo: variable font, weights 300 to 700, latin only (Deja, 14 Nov). */
@font-face { font-family: "Quicksand"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/Quicksand-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* AUSTRALIS headline in Quicksand (Deja, 14 Nov): same capitals, weight 500, a little smaller because Quicksand capitals are wide. */
.proj-au .au-head h2 { font: 500 3.2vw/1.08 "Quicksand", "Alte Haas Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: 0; }
/* AUSTRALIS headline block closer together (Deja, 14 Nov): letters tighter (-0.045em), the grey line closer to the headline (0.5vw, was 1.1vw), the whole block closer to the strip (strip top padding 1.4vw, was 3.6vw). */
.proj-au .au-head h2 { letter-spacing: -0.045em; line-height: 1; white-space: nowrap; overflow: visible; }
.proj-au .au-head p { margin-top: 0.5vw; }
.proj-au .au-strip { padding-top: 1.4vw; }
/* AUSTRALIS headline block (Deja, 14 Nov): closer to the animation (strip margin-top 0.6vw and padding-top 1vw, together about 23px, was 49px) and more room above, from the picture on top (6vw to 10vw). */
.proj-au .au-head { margin-top: 10vw; }
.proj-au .au-strip { margin-top: 0.6vw; padding-top: 1vw; }
/* AUSTRALIS Details paragraph (Deja, 14 Nov): moved to where the black box was in his picture: in the white band, a narrow column set towards the picture side, with white room on BOTH sides (about 10vw from the page edge and about 1.7vw, 24px, from the picture), top about 1vw below the top of the picture. */
.proj-au .au-split .au-foot { left: 10.7vw; top: 1vw; width: 13.2vw; }
.proj-au .au-split .au-foot p { font-size: 14px; line-height: 1.5; }
/* AUSTRALIS Details paragraph right aligned, so every line ends at the same edge next to the picture (Deja, 14 Nov). */
.proj-au .au-split .au-foot p { text-align: right; }

/* CUPRA three still boxes flash QUICKER (Deja, 14 Nov): the swap happens every 1.2 s (was 2.4 s, script in cupra-x-rosalia.html) and each picture fades and zooms in 0.45 s (was 0.9 to 1.2 s). */
.proj-cx .cx-card3 img { transition: opacity 0.45s ease, transform 0.6s cubic-bezier(.22, 1, .36, 1), filter 0.45s ease; }

/* Textile Prints balloon (Deja, 14 Nov): it reacts to the mouse. The push (--kx, --ky in px, --kr in deg, set by the script at the end of textile-prints.html) is added to the exit translate (--bx) and a rotation. The balloon also gets a soft drop shadow that follows its shape, so it reads as a solid object in front of the white pictures (the white eyes and mouth no longer melt into them). Opacity stays 1 until the exit at A.O.P. */
.tp-balloon { translate: var(--kx, 0px) calc(var(--bx, 0) * -70vh + var(--ky, 0px)); rotate: var(--kr, 0deg); }
.tp-balloon img { filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.32)) drop-shadow(0 3px 5px rgba(0, 0, 0, 0.22)); }

/* Home credit line (Deja, 14 Nov): "Website designed and built by Dejair Abati" right UNDER the last project (TEXTILE PRINTS), same left edge as the project names (it is inside .home like the rows), small grey Archivo like the line of his picture (aaantonio.xyz: "Designed and built from scratch by Antonio"). Smaller (0.82 x --b = 12.3px) and close to the last name (0.9 x --b = 13.5px below it) after Deja said "too big" and "closer to Textile Prints". It fades with the headers when a project cover shows. Desktop Home only; the mobile site (m/) was not touched. */
.home-credit { margin: calc(var(--b) * 0.9) 0 0; font-family: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: calc(var(--b) * 0.82); line-height: 1.3; font-weight: 400; color: var(--strong-sub); transition: opacity .25s ease; }
body:has(.row:hover) .home-credit { opacity: 0; }

/* Home credit line, smaller and spaced (Deja, 14 Nov: "smaller, as small as the Contact text, in italic and give more space between letters"): 11px (the size of the small labels of the Contact panel), italic, letter spacing 0.07em. Archivo has no italic file on the site, so the browser slants it. */
.home-credit { font-size: 11px; font-style: italic; letter-spacing: 0.07em; }

/* Home credit line, third place (Deja, 14 Nov: "it can go down the bottom, on top of the northern lights, but it only appears when I finish scrolling"): FIXED at the bottom left of the window (left edge = the left edge of the project names, bottom 1.6 x --b = 24px), z-index 20 so it is ABOVE the blur band (10) and the glass layer (15) and over the northern lights wave, and it fades in only when the Home is scrolled to its end (script in index.html, within 100 px of the end). 11px italic with wide letters as before. It fades out when a project cover shows. */
.home-credit { position: fixed; left: calc(var(--b) * 0.9 + 2vw); bottom: calc(var(--b) * 1.6); z-index: 20; margin: 0; opacity: 0; pointer-events: none; transition: opacity .7s ease; }
.home-credit.on { opacity: 1; }
body:has(.row:hover) .home-credit.on { opacity: 0; }

/* Home credit line: the wide letter spacing is taken away again (Deja, 14 Nov: "remove the space", meaning the space between the letters). It stays italic and 11px. */
.home-credit { letter-spacing: 0; }

/* LEINAT wordmark made of particles in the Home nav logo (Deja, 15 Nov; js/wordmark.js). The canvas sits exactly where the wordmark picture sits and takes its place: the picture stays in the page (it keeps the layout and is the fallback) but is hidden while the particles run. Same colour filter as the picture (dark mode) and the same fade when the nav closes or opens. Home only. */
.nav-wordc { position: absolute; left: calc(var(--b) * 1.56); top: calc(var(--b) * 7); width: calc(var(--b) * 12.24); aspect-ratio: 1000 / 205; display: block; filter: var(--logo-filter); pointer-events: none; transition: opacity .25s ease .4s; }
.nav-logo.pw-on .nav-word { visibility: hidden; }
.nav.collapsed .nav-wordc { opacity: 0; transition: opacity .15s ease 0s; }
.nav:not(.collapsed) .nav-wordc { transition: opacity .45s ease .45s; }

/* LEINAT particle wordmark, third version (Deja, 15 Nov: "the word 20 percent bigger and less particles, and it must come from everywhere, not just the square box"): the canvas is now ONE fixed canvas over the whole window (z-index 60, above the nav which is 50, no clicks), so the dots can start anywhere on the screen and are no longer cut by a small box. It keeps the logo colour filter. The wordmark picture is still hidden while the dots run (.nav-logo.pw-on .nav-word). */
.nav-wordc { position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; z-index: 60; display: block; filter: var(--logo-filter); pointer-events: none; transition: none; aspect-ratio: auto; }
.nav.collapsed .nav-wordc, .nav:not(.collapsed) .nav-wordc { transition: none; opacity: 1; }

/* Home nav tagline "Designer, Educator & Researcher" bigger (Deja, 15 Nov): it now runs from the L to the end of the T of the particle wordmark, which is drawn 20 percent bigger than the old wordmark picture. Font size x 1.2 (0.8 to 0.96 x --b), box 1.2 x wider (12.3 to 14.76 x --b) and moved left by the same half growth (1.53 to 0.31 x --b), a little lower (9.95 to 10.3 x --b) because the word is taller now. Home nav only. */
.nav-tag { left: calc(var(--b) * 0.31); top: calc(var(--b) * 10.3); width: calc(var(--b) * 14.76); font-size: calc(var(--b) * 0.96); }

/* CUPRA Previous / Next cards 50 percent lower (Deja, 15 Nov): they sat 300px above the bottom of the page, now 150px, so they are closer to the dock. */
.proj-cx .pnext { bottom: 150px; }

/* Sketchbook, picture 1 (Deja, 15 Nov): the words RAMDOM PAGES FROM MY SKETCHBOOKS that belong to the picture are covered by a patch of the same tan (rgb 196,177,123, the same all over that area of the picture) and written again as a typewriter. The overlay .sk-ov1 is a box exactly over picture 1 (2400 x 1223 proportions, absolute at the top of .sk-stack, no clicks) so everything inside is placed in percent / container units of the picture, the same at every window width. The tan panel and the old words: text box x 1530 to 2146 and y 552 to 614 of 2400 x 1223 (measured on the picture). Font League Gothic (Google Fonts, SIL Open Font License, self hosted, fonts/LeagueGothic-latin.woff2), the condensed heavy capitals of the old words. */
@font-face { font-family: "League Gothic"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/LeagueGothic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
.sk-stack { position: relative; }
.sk-ov1 { position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 2400 / 1223; pointer-events: none; container-type: inline-size; z-index: 2; }
.sk-ov1 .sk-cover { position: absolute; left: 62.4%; top: 43.3%; width: 28.4%; height: 8.1%; background: rgb(196, 177, 123); display: block; }
.sk-ov1 .sk-tw { position: absolute; left: 63.75%; top: 0; margin: 0; padding: 0; white-space: pre; font-family: "League Gothic", "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 400; text-transform: uppercase; font-size: 5.4cqw; line-height: 1; letter-spacing: 0.005em; color: #0a0a0a; }
.sk-ov1 .sk-tw .caret { font-family: inherit; margin-left: 0.04em; animation: sk-blink 1s step-end infinite; }
.sk-ov1 .sk-tw.is-typing .caret { animation: none; opacity: 1; }
.sk-ov1 .sk-tw.still .caret { animation: none; }
@keyframes sk-blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
/* Sketchbook picture 1, typewriter size and place measured on the old words (cap height 62 of 2400 x 1223, text from x 1530 to 2146, cap top at y 552): League Gothic at 3.515cqw (cap height 0.735 em), squeezed sideways to 0.665 (the old words are narrower than the font) with the left edge as the origin, top 44.22 percent of the picture height so the top of the capitals is on y 552. */
.sk-ov1 .sk-tw { top: 44.22%; font-size: 3.515cqw; letter-spacing: 0; transform: scaleX(0.665); transform-origin: 0 0; }

/* Sketchbook picture 1: the blue SKETCHBOOKS word redrawn on a canvas and pushed from side to side (Deja, 15 Nov). The canvas covers the white area around the word exactly: x 14 to 716 and y 440 to 802 of the 2400 x 1223 picture, in percent of the overlay. It is opaque white, so the word of the picture under it never shows through. */
.sk-ov1 .sk-warp { position: absolute; left: 0.5833%; top: 35.98%; width: 29.25%; height: 29.60%; display: block; background: #fff; }

/* Sketchbook, picture 2 (Deja, 15 Nov): iPad with the drawing animation over the old Procreate Layers screenshot (that screenshot sits at x 988 to 1578, y 445 to 1300 of the 2400 x 1350 picture; the iPad is 615 x 880 there: left 982, top 436, so it covers it). .sk-ov2 is absolute right under picture 2 (static position) and pulled up by 56.25 percent of the stack width = the height of picture 2. The video sits inside the iPad canvas (under the toolbar, 3.7 percent from the top); the toolbar and the side slider come from a second copy of the frame clipped on top. */
.sk-ov2 { position: absolute; left: 0; width: 100%; aspect-ratio: 2400 / 1350; margin-top: -56.25%; pointer-events: none; z-index: 2; }
.sk-ov2 .sk-ip { position: absolute; left: 40.92%; top: 32.3%; width: 25.63%; aspect-ratio: 1668 / 2388; border-radius: 1.4% / 1%; overflow: hidden; filter: drop-shadow(0 1.2vw 2vw rgba(0,0,0,0.32)); }
.sk-ov2 .sk-ip img, .sk-ov2 .sk-ip video { position: absolute; left: 0; width: 100%; display: block; margin: 0; border-radius: 0; }
.sk-ov2 .ip-base, .sk-ov2 .ip-ui { top: 0; height: 100%; }
.sk-ov2 .ip-vid { top: 3.7%; height: 96.3%; object-fit: cover; background: #fff; }
.sk-ov2 .ip-ui { clip-path: polygon(0 0, 100% 0, 100% 3.8%, 0 3.8%, 0 22.5%, 6.3% 22.5%, 6.3% 66.4%, 0 66.4%); }

/* Sketchbook, small inspiration picture (Deja, 15 Nov): very small, in the white strip at the bottom left corner of picture 1 (the strip is about 4.3 percent of the width, the picture is 3.2 percent wide at left 0.55, bottom 1.4 of picture 1). Click to enlarge like the swatches on Textile Prints (js/lightbox.js, one picture so no counter). The overlay has no clicks, so this button turns them back on. */
.sk-ov1 .sk-insp { position: absolute; left: 0.55%; bottom: 1.4%; width: 9.6%; padding: 0; margin: 0; border: 0; background: none; pointer-events: auto; cursor: zoom-in; line-height: 0; z-index: 3; }
.sk-ov1 .sk-insp img { width: 100%; height: auto; display: block; border-radius: 3px; box-shadow: 0 3px 8px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.25); transition: transform .25s ease, box-shadow .25s ease; cursor: zoom-in; }
.sk-ov1 .sk-insp:hover img { transform: scale(1.12); box-shadow: 0 6px 16px rgba(0,0,0,0.38), 0 2px 4px rgba(0,0,0,0.25); }

/* Inspiration picture 3 times bigger (9.6%, Deja 15 Nov) with a round glass zoom icon on its top right corner (same look as .tp-zoom on Textile Prints). */
.sk-ov1 .sk-insp { position: absolute; }
.sk-ov1 .sk-insp img { border-radius: 6px; }
.sk-ov1 .sk-insp-z { position: absolute; right: 6px; top: 6px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.5); background: rgba(0,0,0,0.28); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.3); transition: background .2s ease; }
.sk-ov1 .sk-insp:hover .sk-insp-z { background: rgba(0,0,0,0.45); }

/* Sketchbook (Deja, 15 Nov): the drawing made from the inspiration is the second picture of the enlarged view; it is not shown on the page, only the inspiration thumbnail is. */
.sk-ov1 .sk-insp .sk-insp-2 { display: none; }

/* Lightbox picture title (Deja, 15 Nov): optional text on top of the enlarged picture (data-cap), used for "Inspiration" and "The art" on Sketchbook. Same type as the picture titles on W Hotel (Alte Haas Grotesk bold, letters pulled together, mid grey), centred above the picture. The picture gets a little less height so the title has room. */
.lb .lb-cap { position: absolute; left: 0; right: 0; top: 1.6vw; margin: 0; text-align: center; font-family: "Alte Haas Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 700; font-size: 2.6vw; line-height: 1; letter-spacing: -0.08em; color: #6c6c72; pointer-events: none; }
.lb.has-cap > img:first-of-type { max-height: calc(100vh - 11vw); margin-top: 4vw; }

/* Lightbox picture title, a bit lower and with the hairline of the Home page under it (Deja, 15 Nov): same line as `.home hr` (1px, half height, fades out at both ends, faint shade above), wider than the words. */
.lb .lb-cap { top: 2.6vw; left: 50%; right: auto; transform: translateX(-50%); padding-bottom: 0.9vw; }
.lb .lb-cap::after { content: ""; position: absolute; left: -40%; right: -40%; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent 0, var(--line) 9%, var(--line) 91%, transparent 100%); transform: scaleY(0.5); box-shadow: 0 -3px 5px -2px var(--hr-shadow); }
.lb .lb-cap:empty::after { display: none; }
.lb.has-cap > img:first-of-type { max-height: calc(100vh - 13vw); margin-top: 6vw; }
.lb.has-cap > img:first-of-type { max-height: calc(100vh - 11vw); margin-top: 3.4vw; }   /* picture a bit higher (Deja, 15 Nov), was margin-top 6vw */
.lb .lb-cap { top: 1.6vw; }   /* title and line a bit higher (Deja, 15 Nov), was 2.6vw */

/* Peek thumbnail, blue glow behind it (Deja, 15 Nov): the blue of the SKETCHBOOKS word, a tight bright halo plus a wide soft one, a little stronger on hover. */
.sk-ov1 .sk-insp img { box-shadow: 0 0 14px 3px rgba(40, 70, 255, 0.6), 0 0 38px 10px rgba(40, 70, 255, 0.38), 0 3px 8px rgba(0,0,0,0.25); }
.sk-ov1 .sk-insp:hover img { box-shadow: 0 0 18px 5px rgba(40, 70, 255, 0.75), 0 0 52px 16px rgba(40, 70, 255, 0.48), 0 6px 16px rgba(0,0,0,0.3); }

/* Sketchbook, five Peeks on picture 7 (Deja, 15 Nov). .sk-ov7 is a box exactly over picture 7 (3464 x 2637, pulled up by 76.13 percent of the stack width), no clicks except on the buttons. The row sits under the FRUIT word and straddles the bottom of the picture: top 89.1 percent of the picture, each thumbnail 10.55 percent of the width high (width in percent set inline, left to right as in the mock-up: 10.5 percent from the left, gaps 1.15). Gray drop shadow (not the blue glow of the inspiration Peek), rounded corners 6px, small glass zoom icon on the corner. */
.sk-ov7 { position: absolute; left: 0; width: 100%; aspect-ratio: 3464 / 2637; margin-top: -76.13%; pointer-events: none; z-index: 2; }
.sk-ov7 .sk-pk { position: absolute; top: 89.1%; padding: 0; margin: 0; border: 0; background: none; pointer-events: auto; cursor: zoom-in; line-height: 0; }
.sk-ov7 .sk-pk img { width: 100%; height: auto; aspect-ratio: auto; display: block; margin: 0; border-radius: 6px; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32), 0 2px 6px rgba(0, 0, 0, 0.22); transition: transform .25s ease, box-shadow .25s ease; cursor: zoom-in; }
.sk-ov7 .sk-pk:hover img { transform: scale(1.05); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 3px 8px rgba(0, 0, 0, 0.25); }
.sk-ov7 .sk-pk-z { position: absolute; right: 5px; top: 5px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.5); background: rgba(0,0,0,0.28); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.3); }

/* Five Peeks, constant slow "forward" movement (Deja, 15 Nov): each thumbnail slowly comes toward you (grows 7 percent, its shadow grows and deepens) and goes back, forever, 5.5 s per cycle, ease in and out, every one started at a different moment (0, 1.1, 2.2, 3.3, 4.4 s) so they breathe one after the other like a wave. The button moves (scale), the picture inside keeps its own hover (a little more) and the shadow breathes on the picture. Off with reduced motion. */
@keyframes sk-pk-fwd { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@keyframes sk-pk-sh { 0%, 100% { box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32), 0 2px 6px rgba(0, 0, 0, 0.22); } 50% { box-shadow: 0 16px 36px rgba(0, 0, 0, 0.42), 0 4px 10px rgba(0, 0, 0, 0.26); } }
.sk-ov7 .sk-pk { animation: sk-pk-fwd 5.5s ease-in-out infinite; }
.sk-ov7 .sk-pk img { animation: sk-pk-sh 5.5s ease-in-out infinite; }
.sk-ov7 .sk-pk:nth-child(2), .sk-ov7 .sk-pk:nth-child(2) img { animation-delay: -4.4s; }
.sk-ov7 .sk-pk:nth-child(3), .sk-ov7 .sk-pk:nth-child(3) img { animation-delay: -3.3s; }
.sk-ov7 .sk-pk:nth-child(4), .sk-ov7 .sk-pk:nth-child(4) img { animation-delay: -2.2s; }
.sk-ov7 .sk-pk:nth-child(5), .sk-ov7 .sk-pk:nth-child(5) img { animation-delay: -1.1s; }
.sk-ov7 .sk-pk:hover img { animation: none; }
@media (prefers-reduced-motion: reduce) { .sk-ov7 .sk-pk, .sk-ov7 .sk-pk img { animation: none; } }

/* Five Peeks, one at a time (Deja, 15 Nov): only one thumbnail comes forward at any moment, left to right, then it starts again. Cycle 12 s = 5 slots of 2.4 s; in its slot a peek grows 7 percent and goes back (ease in and out), then rests while the others have their turn. Replaces the all-together wave above. */
@keyframes sk-pk-fwd1 { 0% { transform: scale(1); } 10% { transform: scale(1.07); } 20%, 100% { transform: scale(1); } }
@keyframes sk-pk-sh1 { 0% { box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32), 0 2px 6px rgba(0, 0, 0, 0.22); } 10% { box-shadow: 0 16px 36px rgba(0, 0, 0, 0.42), 0 4px 10px rgba(0, 0, 0, 0.26); } 20%, 100% { box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32), 0 2px 6px rgba(0, 0, 0, 0.22); } }
.sk-ov7 .sk-pk { animation: sk-pk-fwd1 12s ease-in-out infinite; animation-delay: 0s; }
.sk-ov7 .sk-pk img { animation: sk-pk-sh1 12s ease-in-out infinite; animation-delay: 0s; }
.sk-ov7 .sk-pk:nth-child(2), .sk-ov7 .sk-pk:nth-child(2) img { animation-delay: 2.4s; }
.sk-ov7 .sk-pk:nth-child(3), .sk-ov7 .sk-pk:nth-child(3) img { animation-delay: 4.8s; }
.sk-ov7 .sk-pk:nth-child(4), .sk-ov7 .sk-pk:nth-child(4) img { animation-delay: 7.2s; }
.sk-ov7 .sk-pk:nth-child(5), .sk-ov7 .sk-pk:nth-child(5) img { animation-delay: 9.6s; }
.sk-ov7 .sk-pk:hover img { animation: none; }
@media (prefers-reduced-motion: reduce) { .sk-ov7 .sk-pk, .sk-ov7 .sk-pk img { animation: none; } }

/* Five Peeks, a wave (Deja, 15 Nov): each peek takes 2.4 s to come forward (1.2 s) and go back (1.2 s); the next one starts coming forward exactly when the one before starts going back (starts 1.2 s apart), so the movement runs through the row like a wave, then the cycle (7.2 s) starts again from the left. */
@keyframes sk-pk-fwd2 { 0% { transform: scale(1); } 16.667% { transform: scale(1.07); } 33.333%, 100% { transform: scale(1); } }
@keyframes sk-pk-sh2 { 0% { box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32), 0 2px 6px rgba(0, 0, 0, 0.22); } 16.667% { box-shadow: 0 16px 36px rgba(0, 0, 0, 0.42), 0 4px 10px rgba(0, 0, 0, 0.26); } 33.333%, 100% { box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32), 0 2px 6px rgba(0, 0, 0, 0.22); } }
.sk-ov7 .sk-pk { animation: sk-pk-fwd2 7.2s ease-in-out infinite; animation-delay: 0s; }
.sk-ov7 .sk-pk img { animation: sk-pk-sh2 7.2s ease-in-out infinite; animation-delay: 0s; }
.sk-ov7 .sk-pk:nth-child(2), .sk-ov7 .sk-pk:nth-child(2) img { animation-delay: 1.2s; }
.sk-ov7 .sk-pk:nth-child(3), .sk-ov7 .sk-pk:nth-child(3) img { animation-delay: 2.4s; }
.sk-ov7 .sk-pk:nth-child(4), .sk-ov7 .sk-pk:nth-child(4) img { animation-delay: 3.6s; }
.sk-ov7 .sk-pk:nth-child(5), .sk-ov7 .sk-pk:nth-child(5) img { animation-delay: 4.8s; }
.sk-ov7 .sk-pk:hover img { animation: none; }
@media (prefers-reduced-motion: reduce) { .sk-ov7 .sk-pk, .sk-ov7 .sk-pk img { animation: none; } }

/* Five Peeks wave, slower and smoother (Deja, 15 Nov): each peek takes 4 s (2 s forward, 2 s back) with a sine-like ease, the next starts 2 s later (the same overlap as before), cycle 12 s. */
.sk-ov7 .sk-pk { animation-duration: 12s; animation-timing-function: cubic-bezier(0.37, 0, 0.63, 1); }
.sk-ov7 .sk-pk img { animation-duration: 12s; animation-timing-function: cubic-bezier(0.37, 0, 0.63, 1); }
.sk-ov7 .sk-pk:nth-child(2), .sk-ov7 .sk-pk:nth-child(2) img { animation-delay: 2s; }
.sk-ov7 .sk-pk:nth-child(3), .sk-ov7 .sk-pk:nth-child(3) img { animation-delay: 4s; }
.sk-ov7 .sk-pk:nth-child(4), .sk-ov7 .sk-pk:nth-child(4) img { animation-delay: 6s; }
.sk-ov7 .sk-pk:nth-child(5), .sk-ov7 .sk-pk:nth-child(5) img { animation-delay: 8s; }

/* Five Peeks wave, the one in front clearly bigger (Deja, 15 Nov): it grows 30 percent (was 7), its shadow gets deeper, and it is raised above its neighbours while it is forward so it does not hide behind them. */
@keyframes sk-pk-fwd3 { 0% { transform: scale(1); z-index: 1; } 16.667% { transform: scale(1.3); z-index: 5; } 33.333%, 100% { transform: scale(1); z-index: 1; } }
@keyframes sk-pk-sh3 { 0% { box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32), 0 2px 6px rgba(0, 0, 0, 0.22); } 16.667% { box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45), 0 6px 14px rgba(0, 0, 0, 0.28); } 33.333%, 100% { box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32), 0 2px 6px rgba(0, 0, 0, 0.22); } }
.sk-ov7 .sk-pk { animation-name: sk-pk-fwd3; }
.sk-ov7 .sk-pk img { animation-name: sk-pk-sh3; }

/* Sketchbook, picture 5 (Deja, 15 Nov): the gold words "Dramatic minimalism" are covered by a white patch and typed again; two bright orange circles go around "Minimalism" and "Colorful". .sk-ov5 is a box exactly over picture 5 (3466 x 1520, pulled up by 43.86 percent of the stack width), everything inside is in percent / cqw of the picture. Measured on the picture: the gold words x 1188 to 1765, y 1048 to 1102, colour #e9a947 on pure white; font Marcellus (Google Fonts, SIL Open Font License, self hosted, fonts/Marcellus-latin.woff2), the flared serif that looks most like the original. Circles: SVG in the picture's own coordinates, stroke #ff6a00. */
@font-face { font-family: "Marcellus"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/Marcellus-latin.woff2") format("woff2"); }
.sk-ov5 { position: absolute; left: 0; width: 100%; aspect-ratio: 3466 / 1520; margin-top: -43.86%; pointer-events: none; container-type: inline-size; z-index: 2; }
.sk-ov5 .sk-cover5 { position: absolute; left: 34.05%; top: 68.2%; width: 17.2%; height: 5.2%; background: #fff; display: block; }
.sk-ov5 .sk-tw { position: absolute; left: 34.28%; top: 68.9%; margin: 0; padding: 0; white-space: pre; font-family: "Marcellus", "Optima", "Palatino Linotype", Georgia, serif; font-weight: 400; font-size: 1.9cqw; line-height: 1; letter-spacing: 0; color: #e9a947; -webkit-text-stroke: 0.05em #e9a947; paint-order: stroke fill; transform: scaleX(0.923); transform-origin: 0 0; }
.sk-ov5 .sk-tw .caret { font-family: inherit; margin-left: 0.04em; animation: sk-blink 1s step-end infinite; }
.sk-ov5 .sk-tw.is-typing .caret { animation: none; opacity: 1; }
.sk-ov5 .sk-tw.still .caret { animation: none; }
.sk-ov5 .sk-rings { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
.sk-ov5 .sk-rings ellipse { fill: none; stroke: #ff6a00; stroke-width: 9; }

/* Picture 5, the circles are now drawn by a PENCIL (Deja, 15 Nov, replaces the bright orange rings): gray, thin, a loop that goes round a little more than once and spirals out a bit, plus a short stroke above and one below, like the example he sent. Each group draws itself (stroke-dashoffset on pathLength 1: the loop 0 to 1.5 s, the top stroke, then the bottom stroke), holds, fades and starts again; cycle 8 s; the second circle starts 1.8 s after the first. Static (fully drawn) with reduced motion. */
.sk-ov5 .sk-rings ellipse { display: none; }
.sk-ov5 .sk-rings path { fill: none; stroke: #9b9b9b; stroke-width: 4.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0.9; animation: pc-draw 8s linear infinite; animation-delay: var(--d, 0s); }
.sk-ov5 .sk-rings .pc1 { animation-name: pc-draw1; }
.sk-ov5 .sk-rings .pc2 { animation-name: pc-draw2; }
@keyframes pc-draw { 0% { stroke-dashoffset: 1; opacity: .9; animation-timing-function: cubic-bezier(.45,.05,.55,.95); } 19% { stroke-dashoffset: 0; } 82% { stroke-dashoffset: 0; opacity: .9; } 93%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes pc-draw1 { 0%, 17% { stroke-dashoffset: 1; opacity: .9; animation-timing-function: cubic-bezier(.45,.05,.55,.95); } 24% { stroke-dashoffset: 0; } 82% { stroke-dashoffset: 0; opacity: .9; } 93%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes pc-draw2 { 0%, 24% { stroke-dashoffset: 1; opacity: .9; animation-timing-function: cubic-bezier(.45,.05,.55,.95); } 31% { stroke-dashoffset: 0; } 82% { stroke-dashoffset: 0; opacity: .9; } 93%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sk-ov5 .sk-rings path { animation: none; stroke-dashoffset: 0; } }

/* Picture 5 pencil circles, quicker and one after the other (Deja, 15 Nov): cycle 6 s. The first circle draws in 0.9 s, holds, fades; the second starts at 3 s (half the cycle) and does the same, so only one is drawn at a time and they alternate in a loop. */
@keyframes pc-quick { 0% { stroke-dashoffset: 1; opacity: .9; animation-timing-function: cubic-bezier(.45,.05,.55,.95); } 15% { stroke-dashoffset: 0; opacity: .9; } 40% { stroke-dashoffset: 0; opacity: .9; } 48%, 100% { stroke-dashoffset: 0; opacity: 0; } }
.sk-ov5 .sk-rings .pc0 { animation: pc-quick 6s linear infinite; animation-delay: var(--d, 0s); }
@media (prefers-reduced-motion: reduce) { .sk-ov5 .sk-rings .pc0 { animation: none; stroke-dashoffset: 0; } }

/* Sketchbook, the space between the pictures and the sides of the page cut by 50 percent (Deja, 15 Nov): side padding of .proj 2vw to 1vw (top and bottom unchanged). Everything laid over the pictures (Peeks, typewriters, iPad, circles) is in percent of the picture, so it follows. */
.proj.sk-main { padding-left: 1vw; padding-right: 1vw; }

/* Sketchbook, the gray line under the SKETCHBOOK word moves again, slowly from left to right (Deja, 15 Nov; on 14 Nov it was stopped). The track holds two identical halves, so it slides from -50% to 0 and loops without a jump; 80 s per half is about 23 px per second. Still with reduced motion. */
@keyframes sk-marq-r { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.sk-marq-track { animation: sk-marq-r 80s linear infinite; }
@media (prefers-reduced-motion: reduce) { .sk-marq-track { animation: none; } }

/* Sketchbook title, a bit more red in the orange (Deja, 15 Nov): #f48a34 became #f0662c (the old orange is kept in the line above). */
.pdock .ptitle.sk-title { color: #f0662c; }

/* Sketchbook title colour taken from the swatch Deja sent (15 Nov): #ee654f (coral). */
.pdock .ptitle.sk-title { color: #ee654f; }

/* Sketchbook title colour, Deja's exact value (15 Nov): #eb4a31. */
.pdock .ptitle.sk-title { color: #eb4a31; }

/* Sketchbook title colour, Deja's value (15 Nov): #29e325 (green), replaces #eb4a31. */
.pdock .ptitle.sk-title { color: #29e325; }

/* Sketchbook title, a very soft white drop shadow (Deja, 15 Nov): a wide faint white glow that falls a little downward. */
.pdock .ptitle.sk-title { text-shadow: 0 4px 22px rgba(255, 255, 255, 0.55), 0 1px 8px rgba(255, 255, 255, 0.35); }

/* Sketchbook title white shadow, less blurry (Deja, 15 Nov): tighter, a little clearer. */
.pdock .ptitle.sk-title { text-shadow: 0 3px 7px rgba(255, 255, 255, 0.6), 0 1px 3px rgba(255, 255, 255, 0.4); }

/* Sketchbook title white shadow, blur 7 to 4 (Deja, 15 Nov). */
.pdock .ptitle.sk-title { text-shadow: 0 3px 4px rgba(255, 255, 255, 0.6), 0 1px 3px rgba(255, 255, 255, 0.4); }

/* Home nav, back to the original (Deja, 15 Nov: remove the particle animation and go back to what it was): the tagline returns to its first size and place (left 1.53b, top 9.95b, width 12.3b, font 0.8b). The particle wordmark script is switched off in index.html, so the LEINAT picture (.nav-word) shows again; the rules for the particle canvas above stay unused. */
.nav-tag { left: calc(var(--b) * 1.53); top: calc(var(--b) * 9.95); width: calc(var(--b) * 12.3); font-size: calc(var(--b) * 0.8); }

/* Zara, picture 3, the text retyped 20 percent smaller (Deja, 15 Nov). The original words (Computer Modern, black on white) sit at x 1222 to 2319 and y 90 to 515 of the 2400 x 1273 picture; they are covered by a white patch (the panel is pure white) and written again as live text in CMU Serif (the Computer Modern Unicode family, SIL Open Font License, self hosted: fonts/CMUSerif-Roman.woff2, 223 KB, loads only on this page): width of the longest line 1097 x 0.8 = 878 px, line pitch 85.5 x 0.8 = 68.4 px, anchored at the same top left corner. */
@font-face { font-family: "CMU Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/CMUSerif-Roman.woff2") format("woff2"); }
.zara-ov3 { position: relative; container-type: inline-size; line-height: 0; }
.zara-ov3 > img { display: block; width: 100%; height: auto; margin: 0; }
.zara-ov3 .zara-cover3 { position: absolute; left: 49.4%; top: 4.9%; width: 48.9%; height: 37.2%; background: #fff; display: block; }
.zara-ov3 .zara-tx3 { position: absolute; left: 50.92%; top: 6.4%; margin: 0; padding: 0; white-space: nowrap; font-family: "CMU Serif", "Latin Modern Roman", "Computer Modern", "Times New Roman", serif; font-weight: 400; font-size: 3.27cqw; line-height: 2.85cqw; letter-spacing: 0; color: #111; }

/* Zara picture 3, the white of the right side a little darker (Deja, 15 Nov: "so it is not the same as the mood board above"): a multiply layer #f1f1ef over the white panel (x from 966 of 2400, where the photo ends) turns pure white into a very light warm grey and makes the blouse card follow; black text stays black. */
.zara-ov3 .zara-tint3 { position: absolute; left: 40.35%; right: 0; top: 0; bottom: 0; background: #f1f1ef; mix-blend-mode: multiply; pointer-events: none; display: block; }

/* Zara picture 3 (Deja, 15 Nov): (1) the grey layer now starts at the edge of the photo (40.15 percent; the picture has a 1 to 3 px white strip there, it was left white before); (2) a soft drop shadow around the blouse card so it stands out from the grey: a transparent rounded box exactly over the card (x 1200 to 1672, y 641 to 1225 of 2400 x 1273, radius 44) that only draws its shadow outside. */
.zara-ov3 .zara-tint3 { left: 40.15%; }
.zara-ov3 .zara-card3 { position: absolute; left: 50%; top: 50.35%; width: 19.67%; height: 45.9%; border-radius: 1.83cqw; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2), 0 2px 7px rgba(0, 0, 0, 0.12); pointer-events: none; display: block; }

/* Zara picture 3, credit on the photo (Deja, 15 Nov): "Picture created with AI." small, italic, bottom left of the photo, the same type and colour as the Home credit line (Archivo italic 11px, letter-spacing 0, colour --strong-sub). */
.zara-ov3 .zara-ai3 { position: absolute; left: 1.6%; bottom: 2.4%; margin: 0; z-index: 3; font-family: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 11px; line-height: 1.3; font-style: italic; font-weight: 400; letter-spacing: 0; color: var(--strong-sub); pointer-events: none; }

/* Zara, picture 6: the white italic quote at the bottom right of the brown is replaced by a new line, 40 percent smaller (Deja, 15 Nov). Measured on the picture (2400 x 1316): the quote is Times-like italic, white, right aligned at x 2378, three lines at y 1133 to 1247 (pitch 41.5 px, font about 36 px); the brown is flat #a27e4e, so a patch of that colour (x 2050 to 2400, y 1120 to 1260) covers it. New text: Times italic 21.6 px (0.9cqw), line pitch 24.9 px (1.0375cqw), right edge x 2378, top y 1133, white. The menu icon above (y 1065 to 1094) is not covered. */
.zara-ov6 { position: relative; container-type: inline-size; line-height: 0; }
.zara-ov6 > img { display: block; width: 100%; height: auto; margin: 0; }
.zara-ov6 .zara-cover6 { position: absolute; left: 85.42%; top: 85.1%; width: 14.58%; height: 10.64%; background: #a27e4e; display: block; }
.zara-ov6 .zara-tx6 { position: absolute; right: 0.92%; top: 85.8%; width: 13.8%; margin: 0; padding: 0; text-align: right; font-family: "Times New Roman", Times, "Liberation Serif", serif; font-style: italic; font-weight: 400; font-size: 0.9cqw; line-height: 1.0375cqw; letter-spacing: 0; color: #fff; }

/* Soft rounded arrows (Deja, 15 Nov: "change the pointy arrow to something more sweet, more rounded"). The buttons in the HTML still hold the characters (&#8592; / &#8594;, also read by screen readers and used as the click targets), but the glyph is hidden (font-size 0) and an arrow drawn as a mask is shown instead: a short shaft and a small chevron head, round line ends and round joins, same colour as the text (currentColor), pointing left for "Previous" and right for "Next". Used by: the project counter buttons (.pbtn, also in the enlarged-picture view) and the Previous / Next cards (.pc-a). */
.pbtn { position: relative; font-size: 0; }
.pbtn::before { content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: 0; margin: auto; width: calc(var(--b) * 1.05); height: calc(var(--b) * 1.05); background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
.pbtn[aria-label^="Previous"]::before { transform: scaleX(-1); }
.pc-a { font-size: 0; display: block; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
.pcard-prev .pc-a { transform: scaleX(-1); }

/* Rounded arrows, second version (Deja, 15 Nov: "too much like Apple; make the line that connects the tip longer and the whole arrow thinner"): the line now runs almost the full width of the box (2.5 to 21.5 of 24), the head is a small chevron at its end, stroke 1.3 (was 2), the box is a bit wider. */
.pbtn::before { width: calc(var(--b) * 1.35); height: calc(var(--b) * 1.35); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 12h19'/%3E%3Cpath d='m17 7.6 4.4 4.4-4.4 4.4'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 12h19'/%3E%3Cpath d='m17 7.6 4.4 4.4-4.4 4.4'/%3E%3C/svg%3E") center / contain no-repeat; }
.pc-a { width: 22px; height: 22px; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 12h19'/%3E%3Cpath d='m17 7.6 4.4 4.4-4.4 4.4'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 12h19'/%3E%3Cpath d='m17 7.6 4.4 4.4-4.4 4.4'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Rounded arrows, third version (Deja, 15 Nov: "too long"): line 4.5 to 19.5 of 24 (was 2.5 to 21.5), head a bit tighter, same thin stroke 1.3, box back to 1.2b / 20px. */
.pbtn::before { width: calc(var(--b) * 1.2); height: calc(var(--b) * 1.2); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12h15'/%3E%3Cpath d='m15.5 8 4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12h15'/%3E%3Cpath d='m15.5 8 4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat; }
.pc-a { width: 20px; height: 20px; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12h15'/%3E%3Cpath d='m15.5 8 4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12h15'/%3E%3Cpath d='m15.5 8 4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat; }

/* The up-right link arrows (Contact panel: LinkedIn, Instagram...; Info panel: "Experience and education on LinkedIn") now use the same thin rounded arrow as the counters (Deja, 15 Nov: "when navigating the page there is an arrow, change to this one"), turned 45 degrees to point up and right. The character in the HTML (&#8599;) stays, hidden with font-size 0. Colour stays var(--tag) (currentColor). */
.crow .arr, .inf-more .arr { font-size: 0; display: inline-block; width: 1.25em; height: 1.25em; font-size: 0; }
.crow .arr, .inf-more .arr { width: 20px; height: 20px; background: currentColor; transform: rotate(-45deg); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12h15'/%3E%3Cpath d='m15.5 8 4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12h15'/%3E%3Cpath d='m15.5 8 4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat; vertical-align: middle; }

/* The arrow key chip in the hover tooltip (js/keytip.js) shows the same thin rounded arrow as the buttons (Deja, 15 Nov: "when you hover over the arrows there is a box and the arrow is still the pointed one"). */
.ptip kbd.kbd .kar { display: inline-block; width: 15px; height: 15px; vertical-align: -3px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12h15'/%3E%3Cpath d='m15.5 8 4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12h15'/%3E%3Cpath d='m15.5 8 4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat; }
.ptip kbd.kbd .kar-l { transform: scaleX(-1); }

/* Australis (Deja, 15 Nov): small grey numbers 01. and 02. at the top left of the two big pictures of the strip, like the numbers on the Home cards. The wrapper adds room on the left, so the pictures sit a bit further apart. */
.au-strip .au-n { position: relative; flex: none; padding-left: 2.4vw; }
.au-strip .au-n::before { content: attr(data-n); position: absolute; left: 0.5vw; top: 0.7vw; font: 400 0.8vw/1 "Quicksand", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif; color: #9a9a9a; letter-spacing: 0.02em; }

/* Australis (Deja, 15 Nov): the word Close-ups, vertical, left of the bottom left close-up, same typography as the numbers 01. 02. (no dot). */
.au-strip .au-grid { position: relative; --qh: calc((var(--auh) - 2vw) / 2); --qw: calc(var(--qh) * 0.859); }
.au-strip .au-grid::before { content: "Close-ups"; position: absolute; left: calc(var(--qw) * 0.28 - 1.5vw); top: calc(var(--qh) + 2vw); writing-mode: vertical-rl; transform: rotate(180deg); font: 400 0.8vw/1 "Quicksand", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif; color: #9a9a9a; letter-spacing: 0.02em; white-space: nowrap; }

/* Australis (Deja, 15 Nov): number 03. in the gap above the last big picture (aus-05), top left, same type as 01. 02. */
.proj-au .au-split::after { content: "03."; position: absolute; left: 0.9vw; bottom: -1.55vw; font: 400 0.8vw/1 "Quicksand", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif; color: #9a9a9a; letter-spacing: 0.02em; }

/* Home nav (Deja, 18 Nov): the Close menu button is gone. The Dark mode button now sits on the SAME line as the pill, to its right (18px from the box edge, centred on the pill), and the pill is shorter by the button and a 0.5b gap so both fit. The closed capsule keeps its own button position. */
.nav:not(.collapsed) .seg { width: calc(var(--b) * 31 - 36px - var(--b) * 2.3); }
.nav:not(.collapsed) .nav-tools { right: 18px; bottom: calc(var(--b) * 12.58 - 8.3px); }

/* Dark mode button (Deja, 18 Nov): same look as the pill so it blends in: a round grey disc as tall as the pill, same grey and inner edge, white icon, a white disc on hover like the pill thumb. */
.nav-btn { width: calc((var(--b) * 2.8 + 0.5px) * 0.8); height: calc((var(--b) * 2.8 + 0.5px) * 0.8); border-radius: 999px; background: rgba(60, 60, 67, 0.27); box-shadow: inset 0 1px 1px var(--seg-in); color: #fff; }
.nav-btn svg { width: calc(var(--b) * 1.05); height: calc(var(--b) * 1.05); }
.nav-btn:hover { background: #fff; box-shadow: inset 0 1px 1px var(--seg-in), 0 0 calc(var(--b) * 0.9) rgba(255, 255, 255, 0.55); color: #3c3c40; }
.nav:not(.collapsed) .nav-tools { bottom: calc(var(--b) * 12.36 - 8.5px); }
.nav:not(.collapsed) .seg { width: calc(var(--b) * 31 - 36px - (var(--b) * 2.8 + 0.5px) * 0.8 - var(--b) * 0.5); }

/* Home covers stuck to the four corners (Deja, 18 Nov), LAST in the file so the older .cv rules above (block 16 sets the height and max-width) cannot win. Deformed on purpose.
   Dark: the picture simply fills the window. Light: the card picture (2440 x 1739) has a 220px transparent margin with the shadow around the card (2000 x 1299), so it is scaled up until the CARD edge reaches the window edge (122 percent wide, 133.9 percent high, centred) and the margin falls outside the screen. */
.covers { overflow: hidden; }
:root[data-theme="dark"] .covers .cv-d { left: 0; top: 0; width: 100%; height: 100%; max-width: none; transform: none; object-fit: fill; }
:root:not([data-theme="dark"]) .covers .cv { left: 50%; top: 50%; width: 122vw; height: calc(100vh * 1739 / 1299); max-width: none; transform: translate(-50%, -50%); object-fit: fill; }

/* Home covers, glass fade at the bottom (Deja, 18 Nov): so the moving blur / light wave at the bottom of the Home melts into the ground instead of sitting on a hard picture edge. A band at the bottom of the picture: a frosted blur (backdrop-filter, strongest at the bottom) plus a fade to the page colour (--bg: white in light mode, black in dark). It only shows while a cover shows (same trigger as the ground layer). Lives in .covers::before, above the pictures, no clicks. */
.covers::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--bb-reach, 48vh); z-index: 1; pointer-events: none; opacity: 0; transition: opacity .28s ease;
  background: linear-gradient(to top, var(--bg) 0%, color-mix(in srgb, var(--bg) 80%, transparent) 22%, color-mix(in srgb, var(--bg) 45%, transparent) 50%, color-mix(in srgb, var(--bg) 14%, transparent) 78%, transparent 100%);
  -webkit-backdrop-filter: blur(calc(14px * var(--bb-blur, 1.35))); backdrop-filter: blur(calc(14px * var(--bb-blur, 1.35)));   /* the Bottom blur slider also scales this glass fade (18 Nov) */
  -webkit-mask-image: linear-gradient(to top, #000 0%, #000 35%, transparent 100%); mask-image: linear-gradient(to top, #000 0%, #000 35%, transparent 100%); }
body:has(.row:hover) .covers::before { opacity: 1; }

/* Home bottom wave, REDONE (Deja, 18 Nov). First: "on coloured or dark ground you see bubbles of white coming up, make it more wavy": the seven round bulbs (block above) are replaced by two soft continuous WAVES (sine shaped SVG, blurred edges, fading upward) sliding sideways in opposite directions. Then: "a bit faster, and high on the LEFT sometimes, to cover the project names as they reveal; now I don't see them at all": the loop is 10s (was 16s), the waves sit higher and are stronger, and a third, very wide soft swell on the left rises slowly up to the full band (360px, block 18) and sinks again (14s, out of step with the waves, so it does not look like a loop). Same mask on both blur layers and on the white haze. Home only. */
body:has(.home) .bblur i, body:has(.home) .bblur::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 100' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' gradientUnits='userSpaceOnUse' x1='0' y1='100' x2='0' y2='10'%3E%3Cstop offset='0' stop-color='#000'/%3E%3Cstop offset='.45' stop-color='#000' stop-opacity='.95'/%3E%3Cstop offset='.75' stop-color='#000' stop-opacity='.55'/%3E%3Cstop offset='1' stop-color='#000' stop-opacity='0'/%3E%3C/linearGradient%3E%3Cfilter id='b' filterUnits='userSpaceOnUse' x='-500' y='-50' width='2200' height='200'%3E%3CfeGaussianBlur stdDeviation='14 5'/%3E%3C/filter%3E%3C/defs%3E%3Cpath d='M-400,140 L-400,30.4 L-380,32.6 L-360,35.4 L-340,38.7 L-320,42.3 L-300,46.0 L-280,49.7 L-260,53.3 L-240,56.6 L-220,59.4 L-200,61.6 L-180,63.1 L-160,63.9 L-140,63.9 L-120,63.1 L-100,61.6 L-80,59.4 L-60,56.6 L-40,53.3 L-20,49.7 L0,46.0 L20,42.3 L40,38.7 L60,35.4 L80,32.6 L100,30.4 L120,28.9 L140,28.1 L160,28.1 L180,28.9 L200,30.4 L220,32.6 L240,35.4 L260,38.7 L280,42.3 L300,46.0 L320,49.7 L340,53.3 L360,56.6 L380,59.4 L400,61.6 L420,63.1 L440,63.9 L460,63.9 L480,63.1 L500,61.6 L520,59.4 L540,56.6 L560,53.3 L580,49.7 L600,46.0 L620,42.3 L640,38.7 L660,35.4 L680,32.6 L700,30.4 L720,28.9 L740,28.1 L760,28.1 L780,28.9 L800,30.4 L820,32.6 L840,35.4 L860,38.7 L880,42.3 L900,46.0 L920,49.7 L940,53.3 L960,56.6 L980,59.4 L1000,61.6 L1020,63.1 L1040,63.9 L1060,63.9 L1080,63.1 L1100,61.6 L1120,59.4 L1140,56.6 L1160,53.3 L1180,49.7 L1200,46.0 L1220,42.3 L1240,38.7 L1260,35.4 L1280,32.6 L1300,30.4 L1320,28.9 L1340,28.1 L1360,28.1 L1380,28.9 L1400,30.4 L1420,32.6 L1440,35.4 L1460,38.7 L1480,42.3 L1500,46.0 L1520,49.7 L1540,53.3 L1560,56.6 L1580,59.4 L1600,61.6 L1600,140 Z' fill='url(#g)' filter='url(#b)'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 100' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' gradientUnits='userSpaceOnUse' x1='0' y1='100' x2='0' y2='12'%3E%3Cstop offset='0' stop-color='#000'/%3E%3Cstop offset='.45' stop-color='#000' stop-opacity='.95'/%3E%3Cstop offset='.75' stop-color='#000' stop-opacity='.55'/%3E%3Cstop offset='1' stop-color='#000' stop-opacity='0'/%3E%3C/linearGradient%3E%3Cfilter id='b' filterUnits='userSpaceOnUse' x='-500' y='-50' width='2200' height='200'%3E%3CfeGaussianBlur stdDeviation='20 6'/%3E%3C/filter%3E%3C/defs%3E%3Cpath d='M-400,140 L-400,73.1 L-380,74.1 L-360,74.9 L-340,75.5 L-320,75.9 L-300,76.0 L-280,75.9 L-260,75.5 L-240,74.9 L-220,74.1 L-200,73.1 L-180,71.8 L-160,70.3 L-140,68.7 L-120,66.9 L-100,65.0 L-80,62.9 L-60,60.8 L-40,58.6 L-20,56.3 L0,54.0 L20,51.7 L40,49.4 L60,47.2 L80,45.1 L100,43.0 L120,41.1 L140,39.3 L160,37.7 L180,36.2 L200,34.9 L220,33.9 L240,33.1 L260,32.5 L280,32.1 L300,32.0 L320,32.1 L340,32.5 L360,33.1 L380,33.9 L400,34.9 L420,36.2 L440,37.7 L460,39.3 L480,41.1 L500,43.0 L520,45.1 L540,47.2 L560,49.4 L580,51.7 L600,54.0 L620,56.3 L640,58.6 L660,60.8 L680,62.9 L700,65.0 L720,66.9 L740,68.7 L760,70.3 L780,71.8 L800,73.1 L820,74.1 L840,74.9 L860,75.5 L880,75.9 L900,76.0 L920,75.9 L940,75.5 L960,74.9 L980,74.1 L1000,73.1 L1020,71.8 L1040,70.3 L1060,68.7 L1080,66.9 L1100,65.0 L1120,62.9 L1140,60.8 L1160,58.6 L1180,56.3 L1200,54.0 L1220,51.7 L1240,49.4 L1260,47.2 L1280,45.1 L1300,43.0 L1320,41.1 L1340,39.3 L1360,37.7 L1380,36.2 L1400,34.9 L1420,33.9 L1440,33.1 L1460,32.5 L1480,32.1 L1500,32.0 L1520,32.1 L1540,32.5 L1560,33.1 L1580,33.9 L1600,34.9 L1600,140 Z' fill='url(#g)' filter='url(#b)'/%3E%3C/svg%3E"), radial-gradient(ellipse 50% 100% at 50% 100%, #000 0%, rgba(0, 0, 0, 0.85) 38%, rgba(0, 0, 0, 0.35) 70%, transparent 100%); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 100' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' gradientUnits='userSpaceOnUse' x1='0' y1='100' x2='0' y2='10'%3E%3Cstop offset='0' stop-color='#000'/%3E%3Cstop offset='.45' stop-color='#000' stop-opacity='.95'/%3E%3Cstop offset='.75' stop-color='#000' stop-opacity='.55'/%3E%3Cstop offset='1' stop-color='#000' stop-opacity='0'/%3E%3C/linearGradient%3E%3Cfilter id='b' filterUnits='userSpaceOnUse' x='-500' y='-50' width='2200' height='200'%3E%3CfeGaussianBlur stdDeviation='14 5'/%3E%3C/filter%3E%3C/defs%3E%3Cpath d='M-400,140 L-400,30.4 L-380,32.6 L-360,35.4 L-340,38.7 L-320,42.3 L-300,46.0 L-280,49.7 L-260,53.3 L-240,56.6 L-220,59.4 L-200,61.6 L-180,63.1 L-160,63.9 L-140,63.9 L-120,63.1 L-100,61.6 L-80,59.4 L-60,56.6 L-40,53.3 L-20,49.7 L0,46.0 L20,42.3 L40,38.7 L60,35.4 L80,32.6 L100,30.4 L120,28.9 L140,28.1 L160,28.1 L180,28.9 L200,30.4 L220,32.6 L240,35.4 L260,38.7 L280,42.3 L300,46.0 L320,49.7 L340,53.3 L360,56.6 L380,59.4 L400,61.6 L420,63.1 L440,63.9 L460,63.9 L480,63.1 L500,61.6 L520,59.4 L540,56.6 L560,53.3 L580,49.7 L600,46.0 L620,42.3 L640,38.7 L660,35.4 L680,32.6 L700,30.4 L720,28.9 L740,28.1 L760,28.1 L780,28.9 L800,30.4 L820,32.6 L840,35.4 L860,38.7 L880,42.3 L900,46.0 L920,49.7 L940,53.3 L960,56.6 L980,59.4 L1000,61.6 L1020,63.1 L1040,63.9 L1060,63.9 L1080,63.1 L1100,61.6 L1120,59.4 L1140,56.6 L1160,53.3 L1180,49.7 L1200,46.0 L1220,42.3 L1240,38.7 L1260,35.4 L1280,32.6 L1300,30.4 L1320,28.9 L1340,28.1 L1360,28.1 L1380,28.9 L1400,30.4 L1420,32.6 L1440,35.4 L1460,38.7 L1480,42.3 L1500,46.0 L1520,49.7 L1540,53.3 L1560,56.6 L1580,59.4 L1600,61.6 L1600,140 Z' fill='url(#g)' filter='url(#b)'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 100' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' gradientUnits='userSpaceOnUse' x1='0' y1='100' x2='0' y2='12'%3E%3Cstop offset='0' stop-color='#000'/%3E%3Cstop offset='.45' stop-color='#000' stop-opacity='.95'/%3E%3Cstop offset='.75' stop-color='#000' stop-opacity='.55'/%3E%3Cstop offset='1' stop-color='#000' stop-opacity='0'/%3E%3C/linearGradient%3E%3Cfilter id='b' filterUnits='userSpaceOnUse' x='-500' y='-50' width='2200' height='200'%3E%3CfeGaussianBlur stdDeviation='20 6'/%3E%3C/filter%3E%3C/defs%3E%3Cpath d='M-400,140 L-400,73.1 L-380,74.1 L-360,74.9 L-340,75.5 L-320,75.9 L-300,76.0 L-280,75.9 L-260,75.5 L-240,74.9 L-220,74.1 L-200,73.1 L-180,71.8 L-160,70.3 L-140,68.7 L-120,66.9 L-100,65.0 L-80,62.9 L-60,60.8 L-40,58.6 L-20,56.3 L0,54.0 L20,51.7 L40,49.4 L60,47.2 L80,45.1 L100,43.0 L120,41.1 L140,39.3 L160,37.7 L180,36.2 L200,34.9 L220,33.9 L240,33.1 L260,32.5 L280,32.1 L300,32.0 L320,32.1 L340,32.5 L360,33.1 L380,33.9 L400,34.9 L420,36.2 L440,37.7 L460,39.3 L480,41.1 L500,43.0 L520,45.1 L540,47.2 L560,49.4 L580,51.7 L600,54.0 L620,56.3 L640,58.6 L660,60.8 L680,62.9 L700,65.0 L720,66.9 L740,68.7 L760,70.3 L780,71.8 L800,73.1 L820,74.1 L840,74.9 L860,75.5 L880,75.9 L900,76.0 L920,75.9 L940,75.5 L960,74.9 L980,74.1 L1000,73.1 L1020,71.8 L1040,70.3 L1060,68.7 L1080,66.9 L1100,65.0 L1120,62.9 L1140,60.8 L1160,58.6 L1180,56.3 L1200,54.0 L1220,51.7 L1240,49.4 L1260,47.2 L1280,45.1 L1300,43.0 L1320,41.1 L1340,39.3 L1360,37.7 L1380,36.2 L1400,34.9 L1420,33.9 L1440,33.1 L1460,32.5 L1480,32.1 L1500,32.0 L1520,32.1 L1540,32.5 L1560,33.1 L1580,33.9 L1600,34.9 L1600,140 Z' fill='url(#g)' filter='url(#b)'/%3E%3C/svg%3E"), radial-gradient(ellipse 50% 100% at 50% 100%, #000 0%, rgba(0, 0, 0, 0.85) 38%, rgba(0, 0, 0, 0.35) 70%, transparent 100%);
  -webkit-mask-repeat: repeat-x, repeat-x, no-repeat; mask-repeat: repeat-x, repeat-x, no-repeat;
  -webkit-mask-size: 120vw 100%, 210vw 100%, 75% 25%; mask-size: 120vw 100%, 210vw 100%, 75% 25%;
  -webkit-mask-position: 0 100%, 0 100%, -18% 100%; mask-position: 0 100%, 0 100%, -18% 100%;
  animation: bswell var(--bb-speed, 6s) linear infinite, bleft var(--bb-left, 6s) ease-in-out infinite; }
@keyframes bswell {
  from { -webkit-mask-position: 0 100%, 0 100%, -18% 100%; mask-position: 0 100%, 0 100%, -18% 100%; }
  to   { -webkit-mask-position: -120vw 100%, -210vw 100%, -18% 100%; mask-position: -120vw 100%, -210vw 100%, -18% 100%; }   /* both waves now travel right to left (Deja, 18 Nov); the first one used to go left to right */ }
@keyframes bleft {
  0%, 100% { -webkit-mask-size: 120vw 100%, 210vw 100%, 75% 25%; mask-size: 120vw 100%, 210vw 100%, 75% 25%; }
  45%, 60% { -webkit-mask-size: 120vw 100%, 210vw 100%, 75% 100%; mask-size: 120vw 100%, 210vw 100%, 75% 100%; } }
@media (prefers-reduced-motion: reduce) { body:has(.home) .bblur i, body:has(.home) .bblur::after { animation: none; } }

/* Wave tuning panel (Deja, 18 Nov, temporary, Home only): sliders on the left edge set --bb-h (band height), --bb-speed (wave loop) and --bb-left (left swell loop) on <html>; the values are kept in localStorage. Remove the .wtune block in index.html and this block when the numbers are final. */
body:has(.home) .bblur { height: var(--bb-h, 510px); }
.wtune { position: fixed; right: 16px; top: 16px; z-index: 60; width: 190px; padding: 12px 14px; border-radius: 16px;
  background: rgba(245, 245, 247, 0.72); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  font: 500 11px/1.3 "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif; color: #3c3c40; }
:root[data-theme="dark"] .wtune { background: rgba(30, 30, 34, 0.72); color: #e6e6ea; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.wtune b { display: block; font-weight: 600; margin-bottom: 8px; letter-spacing: 0.02em; }
.wtune label { display: block; margin-top: 8px; }
.wtune label span { float: right; font-variant-numeric: tabular-nums; opacity: 0.7; }
.wtune input[type=range] { width: 100%; margin: 4px 0 0; accent-color: #3c3c40; }
:root[data-theme="dark"] .wtune input[type=range] { accent-color: #e6e6ea; }
.wtune button { margin-top: 10px; font: inherit; padding: 4px 10px; border-radius: 999px; border: 0; background: rgba(60, 60, 67, 0.12); color: inherit; cursor: pointer; }
.wtune.min label, .wtune.min button.reset { display: none; }
.wtune .hide { float: right; margin: -3px -4px 0 0; padding: 0 7px; }

/* Home, titles that are NOT hovered while a cover shows (Deja, 18 Nov: over Saint Martins, Creativia, 3D+AI Education / Field Notes, DressX, McQueen the grey names could not be read). The grey ink is 25 percent, which disappears on a busy or dark picture, and a shadow alone cannot fix text that faint. So: the names become a clear soft white (72 percent) AND get a wide, gentle dark shadow, which keeps them readable on light and dark pictures. The hovered title keeps its own colour. Same in light and dark mode. Tune the 0.72 (white) and the .35 (shadow) here. */
body:has(.row:hover) .row:not(:hover) h1,
body:has(.row:hover) .row:not(:hover) h1 .hot { color: rgba(255, 255, 255, var(--bb-op, 0.2)); }   /* slider in the wave panel; no shadow (Deja, 18 Nov: horrible); opacity 0.72 -> 0.95 -> 0.2 (Deja: "down to 20") */

/* Light covers, no rounded corners (Deja, 18 Nov): the card picture has rounded corners baked in, so at exactly the card edge the four corners of the screen showed white curves. The picture is now scaled 6 percent bigger than the card (3 percent past each edge), so the curved corners fall outside the screen. Was 122vw x (100vh * 1739 / 1299); the card is 2000 x 1299 in a 2440 x 1739 file. Change the 1.06 to crop more or less. */
:root:not([data-theme="dark"]) .covers .cv { width: calc(122vw * 1.06); height: calc(100vh * 1739 / 1299 * 1.06); }

/* the panel can be folded to just its title (the - / + button) */
.wtune.min { width: auto; padding-bottom: 6px; }
.wtune.min b { margin-bottom: 0; }

/* panel groups (Deja, 18 Nov): Type, then Waves; every slider has a small R button at its end (resets just that one), the Reset button at the bottom resets all */
.wtune { width: 210px; }
.wtune .wg { margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(60, 60, 67, 0.15); }
:root[data-theme="dark"] .wtune .wg { border-top-color: rgba(255, 255, 255, 0.12); }
.wtune .wg > i { display: block; font-style: normal; font-weight: 600; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.55; }
.wtune .wr { margin-top: 6px; }
.wtune .wr label { margin: 0; }
.wtune .wl { display: flex; align-items: center; gap: 6px; }
.wtune .wl input[type=range] { flex: 1; min-width: 0; margin: 2px 0 0; }
.wtune button.r { margin: 0; padding: 0; width: 18px; height: 18px; flex: none; border-radius: 50%; font-size: 9px; line-height: 18px; text-align: center; }
.wtune.min .wbody { display: none; }

/* panel layout swap (Deja, 18 Nov): group names (Type, Waves) on the left; in each row the NUMBER is on the left and the label on the right (they swapped); the R button moves to the left end of the slider line (was the right). */
.wtune .wg > i { text-align: left; }
.wtune .wr label { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: baseline; }
.wtune .wr label span { float: none; }
.wtune .wl { flex-direction: row-reverse; }
/* Type and Waves headings go to the right, the same side as the labels (Deja, 18 Nov); only "Controls" stays where it was */
.wtune .wg > i { text-align: right; }
/* smaller R buttons (Deja, 18 Nov): 18px -> 13px, 9px -> 7px letter */
.wtune button.r { width: 13px; height: 13px; font-size: 7px; line-height: 13px; }

/* thinner sliders and a smaller Reset button (Deja, 18 Nov): 2px track, 10px round thumb; Reset at the bottom 10px text, less padding */
.wtune input[type=range] { -webkit-appearance: none; appearance: none; height: 12px; background: transparent; }
.wtune input[type=range]::-webkit-slider-runnable-track { height: 2px; border-radius: 2px; background: rgba(60, 60, 67, 0.3); }
.wtune input[type=range]::-moz-range-track { height: 2px; border-radius: 2px; background: rgba(60, 60, 67, 0.3); }
.wtune input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 10px; height: 10px; margin-top: -4px; border-radius: 50%; border: 0; background: #3c3c40; }
.wtune input[type=range]::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; border: 0; background: #3c3c40; }
:root[data-theme="dark"] .wtune input[type=range]::-webkit-slider-runnable-track, :root[data-theme="dark"] .wtune input[type=range]::-moz-range-track { background: rgba(255, 255, 255, 0.3); }
:root[data-theme="dark"] .wtune input[type=range]::-webkit-slider-thumb, :root[data-theme="dark"] .wtune input[type=range]::-moz-range-thumb { background: #e6e6ea; }
.wtune button.reset { margin-top: 8px; padding: 2px 8px; font-size: 9px; }
/* the slider dot turns orange brown while it is clicked / dragged and stays that colour while it is selected (focused) (Deja, 18 Nov) */
.wtune input[type=range]:active::-webkit-slider-thumb, .wtune input[type=range]:focus::-webkit-slider-thumb,
:root[data-theme="dark"] .wtune input[type=range]:active::-webkit-slider-thumb, :root[data-theme="dark"] .wtune input[type=range]:focus::-webkit-slider-thumb { background: var(--dot, #0f8f87); box-shadow: 0 0 6px 2px rgba(255, 255, 255, 0.95), 0 0 14px 5px rgba(255, 255, 255, 0.55); }
.wtune input[type=range]:active::-moz-range-thumb, .wtune input[type=range]:focus::-moz-range-thumb,
:root[data-theme="dark"] .wtune input[type=range]:active::-moz-range-thumb, :root[data-theme="dark"] .wtune input[type=range]:focus::-moz-range-thumb { background: var(--dot, #0f8f87); box-shadow: 0 0 6px 2px rgba(255, 255, 255, 0.95), 0 0 14px 5px rgba(255, 255, 255, 0.55); }
.wtune input[type=range]:focus { outline: none; }

/* every slider has its own dot colour when selected, with a white glow behind it like the nav buttons (Deja, 18 Nov) */
.wtune input[data-k="space"] { --dot: #2fbf8a; }   /* mint */
.wtune input[data-k="op"]    { --dot: #c8553d; }   /* terracotta */
.wtune input[data-k="h"]     { --dot: #ff7a00; }   /* bright orange */
.wtune input[data-k="speed"] { --dot: #1f6bff; }   /* bright blue */
.wtune input[data-k="left"]  { --dot: #0f8f87; }   /* teal */
.wtune input[data-k="blur"]  { --dot: #ff6b5e; }   /* coral */
.wtune input[data-k="word"]  { --dot: #e0388f; }   /* magenta */
.wtune input[data-k="reach"] { --dot: #12b5e5; }   /* sky cyan */

/* lowest / highest number at the two ends of each slider (Deja, 18 Nov) */
.wtune .wl small { flex: none; min-width: 14px; font-size: 8px; line-height: 1; opacity: 0.55; font-variant-numeric: tabular-nums; }
.wtune .wl small.mn { text-align: right; }

/* Controls panel opens from a settings button (Deja, 18 Nov): the button sits left of the dark mode button on the pill line, the two buttons in a row; the pill is shorter by one more button. The panel is hidden until the button is pressed. */
.nav-tools { flex-direction: row; }
.nav:not(.collapsed) .seg { width: calc(var(--b) * 31 - 36px - (var(--b) * 2.8 + 0.5px) * 0.8 * 2 - var(--b) * 0.9); }
.wtune { display: none; }
.wtune.on { display: block; }

/* Home nav, buttons moved under the word Work (Deja, 18 Nov): (1) the Controls and Dark mode buttons are only symbols now, no circle; (2) they sit in a row below the pill, centred under the word Work (the rightmost item); the pill is back to its full width; (3) the tooltips ("Controls", "Dark mode") appear ABOVE the symbol, not to the left; (4) the nav box is 1.8b shorter (the room under the tagline that the buttons used to need): the box, the pill and the logo block all move by the same amount (change --nv to tune), and the Contact / Info panel height maths gets the same 1.8b back so Info still reaches the top of the page. */
.nav { --nv: calc(var(--b) * 1.8); }
.nav:not(.collapsed) { height: calc(var(--b) * 14.6 + 10px - var(--nv)); }
.nav.open:not(.collapsed) { height: calc(var(--b) * 14.6 + 10px - var(--nv) + var(--ch, 0px) + var(--cg)); }
.nav[data-panel="info"] { --ch: calc((100vh - 48px) / var(--s) - var(--b) * 14.6 - 10px + var(--nv) - var(--cg)); }
.nav:not(.collapsed) .nav-logo { translate: 0 calc(var(--b) * -0.8 + var(--nv)); }
.nav:not(.collapsed) .seg { bottom: calc(var(--b) * 12.36 - 8.5px - var(--nv)); width: calc(var(--b) * 31 - 36px); }
.nav:not(.collapsed) .nav-tools { right: calc(18px + var(--b) * 1.2); bottom: calc(var(--b) * 12.36 - 8.5px - var(--nv) - var(--b) * 2); gap: calc(var(--b) * 0.3); }
.nav-btn, .nav-btn:hover { width: calc(var(--b) * 1.6); height: calc(var(--b) * 1.6); border-radius: 0; background: transparent; box-shadow: none; color: var(--btn-ink); }
.nav-btn:hover { color: var(--btn-ink-hot); }
.nav-btn svg { width: calc(var(--b) * 1.2); height: calc(var(--b) * 1.2); }
.nav-btn::after { right: auto; left: 50%; top: auto; bottom: calc(100% + var(--b) * 0.4); transform: translateX(-50%); }

/* Back to the earlier layout, symbols only (Deja, 18 Nov: "how it was before but out of the circle"): the nav keeps its full height (--nv 0), the two symbols sit on the pill line to the right of the pill again, the pill is shorter to make room. The symbols stay without a circle and the tooltips stay above. */
.nav { --nv: 0px; }
.nav:not(.collapsed) .seg { width: calc(var(--b) * 31 - 36px - var(--b) * 4); }
.nav:not(.collapsed) .nav-tools { right: 18px; bottom: calc(var(--b) * 12.36 - 8.5px + var(--b) * 0.32 + 0.2px); gap: calc(var(--b) * 0.3); }

/* Dark mode: ONE soft glowing sand patch behind both symbols (Deja, 18 Nov, colour from his picture, about #d4aa86). A rounded pill that covers the two symbols, blurred so it reads as a small glow, not a button; the symbols on it are dark brown so they can be read. Light mode has no patch. */
:root[data-theme="dark"] .nav-tools::before { content: ""; position: absolute; left: calc(var(--b) * -0.55); right: calc(var(--b) * -0.55); top: calc(var(--b) * -0.4); bottom: calc(var(--b) * -0.4); z-index: -1; border-radius: 999px; background: #d4aa86; filter: blur(calc(var(--b) * 0.5)); opacity: 0.92; pointer-events: none; }
:root[data-theme="dark"] .nav-btn, :root[data-theme="dark"] .nav-btn:hover { color: #3a2514; }
:root[data-theme="dark"] .nav-btn:hover { color: #1c0f06; }

/* the same sand glow behind the two symbols in LIGHT mode too (Deja, 18 Nov: "in light mode"), so it is now in both modes; dark brown symbols in both */
.nav-tools::before { content: ""; position: absolute; left: calc(var(--b) * -0.55); right: calc(var(--b) * -0.55); top: calc(var(--b) * -0.4); bottom: calc(var(--b) * -0.4); z-index: -1; border-radius: 999px; background: #d4aa86; filter: blur(calc(var(--b) * 0.5)); opacity: 0.92; pointer-events: none; }
.nav-btn { color: #3a2514; }
.nav-btn:hover { color: #1c0f06; }

/* Light mode: the glow is WHITE and smaller (Deja, 18 Nov); dark mode keeps the sand glow. Symbols go back to the normal dark grey. */
:root:not([data-theme="dark"]) .nav-tools::before { left: calc(var(--b) * -0.2); right: calc(var(--b) * -0.2); top: calc(var(--b) * -0.1); bottom: calc(var(--b) * -0.1); background: #fff; filter: blur(calc(var(--b) * 0.35)); opacity: 1; }
:root:not([data-theme="dark"]) .nav-btn { color: var(--btn-ink); }
:root:not([data-theme="dark"]) .nav-btn:hover { color: var(--btn-ink-hot); }

/* FINAL nav buttons (Deja, 18 Nov, "apply both"): (1) the glow is gone; the two symbols sit in a small second pill with the same grey, height and inner edge as the main pill, white symbols like the pill words, same in light and dark mode. The main pill is shorter to make room. (2) the nav box is 1.8b shorter again (--nv): the box, pill, logo block and symbols move together, the Info panel maths already uses --nv. */
.nav { --nv: calc(var(--b) * 1.8); }
:root[data-theme="dark"] .nav-tools::before, :root:not([data-theme="dark"]) .nav-tools::before, .nav-tools::before {
  left: calc(var(--b) * -0.5); right: calc(var(--b) * -0.5); top: calc(var(--b) * -0.32 - 0.2px); bottom: calc(var(--b) * -0.32 - 0.2px);
  border-radius: 999px; background: rgba(60, 60, 67, 0.27); box-shadow: inset 0 1px 1px var(--seg-in); filter: none; opacity: 1; }
.nav-btn, :root[data-theme="dark"] .nav-btn, :root:not([data-theme="dark"]) .nav-btn { color: #fff; }
.nav-btn:hover, :root[data-theme="dark"] .nav-btn:hover, :root:not([data-theme="dark"]) .nav-btn:hover { color: rgba(255, 255, 255, 0.7); }
.nav:not(.collapsed) .seg { width: calc(var(--b) * 31 - 36px - var(--b) * 4.9); }
.nav:not(.collapsed) .nav-tools { right: calc(18px + var(--b) * 0.5); bottom: calc(var(--b) * 12.36 - 8.5px - var(--nv) + var(--b) * 0.32 + 0.2px); }

/* FINAL 2 (Deja, 18 Nov): no background behind the symbols, slightly smaller (1.4b, was 1.6b), stacked VERTICALLY on the LEFT, under the pill in the empty corner left of the logo; the pill is full width again. Tooltips stay above and start at the left edge of the symbol. The nav keeps the shorter box (--nv). */
:root[data-theme="dark"] .nav-tools::before, :root:not([data-theme="dark"]) .nav-tools::before, .nav-tools::before { content: none; display: none; }
.nav:not(.collapsed) .seg { width: calc(var(--b) * 31 - 36px); }
.nav:not(.collapsed) .nav-tools { flex-direction: column; right: auto; left: calc(18px + var(--b) * 0.3); bottom: calc(var(--b) * 12.36 - 8.5px - var(--nv) - var(--b) * 0.6 - var(--b) * 3.1); gap: calc(var(--b) * 0.3); }
.nav-btn, .nav-btn:hover { width: calc(var(--b) * 1.4); height: calc(var(--b) * 1.4); }
.nav-btn svg { width: calc(var(--b) * 1.05); height: calc(var(--b) * 1.05); }
.nav-btn, :root[data-theme="dark"] .nav-btn, :root:not([data-theme="dark"]) .nav-btn { color: var(--btn-ink); }
.nav-btn:hover, :root[data-theme="dark"] .nav-btn:hover, :root:not([data-theme="dark"]) .nav-btn:hover { color: var(--btn-ink-hot); }
.nav-btn::after { left: 0; transform: none; }

/* FINAL 3 (Deja, 18 Nov): the two symbols go to the RIGHT side (still stacked, under the pill), and the whole logo block (cat, LEINAT, tagline) is 20 percent smaller (scale .8 from its bottom centre, nudged to sit 1.3b above the bottom). The empty room that frees is taken out of the nav: --nv is now 6.16b - 8px, so the box is about 8.4b + 18px high (was 14.6b + 10px); the box, the pill, the logo block and the symbols all follow --nv. To tune: the scale .8, the translate .86b, and --nv. */
.nav { --nv: calc(var(--b) * 6.16 - 8px); }
.nav:not(.collapsed) .nav-logo { translate: 0 calc(var(--b) * 0.86); scale: 0.8; transform-origin: 50% 100%; }
.nav:not(.collapsed) .nav-tools { left: auto; right: calc(18px + var(--b) * 0.3); }
.nav-btn::after { left: auto; right: 0; }

/* FINAL 4 (Deja, 18 Nov: "just the logo smaller, not the nav box"): the nav box, the pill and the symbols go back to the size before FINAL 3 (--nv 1.8b); only the logo block stays 20 percent smaller (scale .8, bottom centre), on its old baseline. */
.nav { --nv: calc(var(--b) * 1.8); }
.nav:not(.collapsed) .nav-logo { translate: 0 calc(var(--b) * -0.8 + var(--nv)); scale: 0.8; transform-origin: 50% 100%; }

/* FINAL 5 (Deja, 18 Nov: "the logo a bit bigger and centered"): logo scale .8 -> .9, and the LEINAT word + tagline are centred in the space under the pill (the horizontal centre was already the nav centre, so only the height moved: translate = -1.11b + 4.25px). Tune: scale and translate. */
.nav:not(.collapsed) .nav-logo { translate: 0 calc(var(--b) * -1.11 + 4.25px); scale: 0.9; }

/* Nav sliders (Deja, 18 Nov): Logo size (scale, 0.9 in the middle of 0 to 1.8), Logo height (px added to the centred position, 0 in the middle), Pill height and Pill width (factors, 1 in the middle of 0.3 to 1.7). They set --bb-logo, --bb-logoy, --bb-pillh, --bb-pillw on <html>. */
.nav:not(.collapsed) .nav-logo { translate: 0 calc(var(--b) * -1.11 + 4.25px + var(--bb-logoy, 12px)); scale: var(--bb-logo, 0.9); }
.nav:not(.collapsed) .seg { width: calc((var(--b) * 31 - 36px) * var(--bb-pillw, 0.98)); height: calc((var(--b) * 2.8 + 0.5px) * 0.8 * var(--bb-pillh, 1.07)); }
.wtune input[data-k="logo"]  { --dot: #e6a700; }   /* gold */
.wtune input[data-k="logoy"] { --dot: #7ac943; }   /* lime */
.wtune input[data-k="pillh"] { --dot: #5865f2; }   /* indigo */
.wtune input[data-k="pillw"] { --dot: #e8467c; }   /* rose */

/* Nav box sliders (Deja, 18 Nov): Nav box width and height (factors, 1 in the middle of 0.3 to 1.7, --bb-navw / --bb-navh). The box stays anchored at the bottom right, so it grows to the left and up. The pill width follows the box width and the logo stays centred in it. Info panel height maths uses the same factor. */
.nav { width: calc(var(--b) * 31 * var(--bb-navw, 0.78)); }
.nav:not(.collapsed) { height: calc((var(--b) * 14.6 + 10px - var(--nv)) * var(--bb-navh, 1.03)); }
.nav.open:not(.collapsed) { height: calc((var(--b) * 14.6 + 10px - var(--nv)) * var(--bb-navh, 1.03) + var(--ch, 0px) + var(--cg)); }
.nav[data-panel="info"] { --ch: calc((100vh - 48px) / var(--s) - (var(--b) * 14.6 + 10px - var(--nv)) * var(--bb-navh, 1.03) - var(--cg)); }
.nav:not(.collapsed) .seg { width: calc((var(--b) * 31 * var(--bb-navw, 0.78) - 36px) * var(--bb-pillw, 0.98)); }
.nav:not(.collapsed) .nav-logo { translate: calc(var(--b) * 15.5 * (var(--bb-navw, 0.78) - 1)) calc(var(--b) * -1.11 + 4.25px + var(--bb-logoy, 12px)); }
.wtune input[data-k="navw"] { --dot: #9b5cff; }   /* violet */
.wtune input[data-k="navh"] { --dot: #c0ca33; }   /* olive */

/* Pill sliders (Deja, 18 Nov): "Pill words gap" = the space on each side of the words Contact, Info, Sketchbook, Work (in b units, 1.75 in the middle gives about the old evenly spread look; lower = the words get closer, they are centred in the pill), "Pill up / down" = moves the whole pill (left of the slider = up, right = down). */
.seg { justify-content: center; }
.seg a { flex: 0 0 auto; padding: 0 calc(var(--b) * var(--bb-pgap, 1)); }
.nav:not(.collapsed) .seg { translate: 0 var(--bb-pilly, 1px); }
.wtune input[data-k="pgap"]  { --dot: #ef4444; }   /* red */
.wtune input[data-k="pilly"] { --dot: #a16207; }   /* bronze */

/* hover finder: the rows of the sliders that belong to the part of the page under the mouse light up (--hot = the slider's own colour, set by the script) */
.wtune .wr { border-radius: 8px; transition: background .15s ease, box-shadow .15s ease; margin-left: -4px; margin-right: -4px; padding: 2px 4px; }
.wtune .wr.hot { background: color-mix(in srgb, var(--hot) 22%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--hot) 75%, transparent), 0 0 16px color-mix(in srgb, var(--hot) 55%, transparent); }
.wtune .wr.hot label { font-weight: 700; color: var(--hot); filter: brightness(0.8); }
.wtune .wr.hot input[type=range]::-webkit-slider-thumb { background: var(--hot); width: 14px; height: 14px; margin-top: -6px; box-shadow: 0 0 6px 2px rgba(255, 255, 255, 0.95), 0 0 14px 5px color-mix(in srgb, var(--hot) 60%, transparent); }
.wtune .wr.hot input[type=range]::-moz-range-thumb { background: var(--hot); width: 14px; height: 14px; box-shadow: 0 0 6px 2px rgba(255, 255, 255, 0.95), 0 0 14px 5px color-mix(in srgb, var(--hot) 60%, transparent); }

/* hover finder, calmer (Deja, 18 Nov: "instead of colours, just box them both in a very thin light grey, no filling, just the stroke"): the colour, glow and bigger dot of the lit rows are switched off; instead ONE thin outline (.wbox) is drawn around all the lit rows together. The rows are in the same order as the groups they belong to, so they sit next to each other. */
.wtune .wbody { position: relative; }
.wtune .wr.hot { background: none; box-shadow: none; }
.wtune .wr.hot label { font-weight: inherit; color: inherit; filter: none; }
.wtune .wr.hot input[type=range]::-webkit-slider-thumb { width: 10px; height: 10px; margin-top: -4px; background: #3c3c40; box-shadow: none; }
.wtune .wr.hot input[type=range]::-moz-range-thumb { width: 10px; height: 10px; background: #3c3c40; box-shadow: none; }
:root[data-theme="dark"] .wtune .wr.hot input[type=range]::-webkit-slider-thumb, :root[data-theme="dark"] .wtune .wr.hot input[type=range]::-moz-range-thumb { background: #e6e6ea; }
.wtune .wbox { position: absolute; left: -6px; right: -6px; top: 0; height: 0; opacity: 0; pointer-events: none; border: 1px solid color-mix(in srgb, currentColor 32%, transparent); border-radius: 9px; background: none; box-sizing: border-box; transition: top .18s ease, height .18s ease, opacity .15s ease; }

/* tabs (Deja, 18 Nov: "it is becoming too big"): under the title a row Type | Waves | Nav, only the chosen group of sliders is shown. Thin dividers between the tabs and a thin line under them. */
.wtune .wg { display: none; border-top: 0; margin-top: 6px; padding-top: 0; }
.wtune .wg.on { display: block; }
.wtune .wg > i { display: none; }
.wtune .wtabs { display: flex; align-items: center; margin: 2px 0 4px; padding-bottom: 6px; border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
.wtune .wtabs button { margin: 0; flex: 1; padding: 2px 0; background: transparent; border-radius: 6px; font-size: 10px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.5; }
.wtune .wtabs button.on { opacity: 1; font-weight: 700; }
.wtune .wtabs span { width: 1px; height: 12px; background: color-mix(in srgb, currentColor 25%, transparent); }

/* more air (Deja, 18 Nov): more space between the line under the tabs and the first slider, more padding inside each row (so the hover outline does not touch the text), a bigger gap above the Reset button, and Reset sits lower with more room to the end of the box. */
.wtune { padding-bottom: 20px; }
.wtune .wtabs { margin-bottom: 14px; padding-bottom: 10px; }
.wtune .wg { margin-top: 12px; }
.wtune .wr { margin-top: 4px; margin-left: -8px; margin-right: -8px; padding: 6px 8px; }
.wtune .wbox { left: -10px; right: -10px; }
.wtune button.reset { margin-top: 22px; margin-bottom: 4px; }

/* one colour per GROUP of sliders (Deja, 18 Nov: sliders that belong to the same adjustment share one colour, and the hover stroke has that colour): logo = orange, pill = blue, nav box = violet, project names = mint, waves = teal. */
.wtune input[data-k="logo"], .wtune input[data-k="logoy"] { --dot: #ff7a00; }
.wtune input[data-k="pillh"], .wtune input[data-k="pillw"], .wtune input[data-k="pgap"], .wtune input[data-k="pilly"] { --dot: #1f6bff; }
.wtune input[data-k="navw"], .wtune input[data-k="navh"] { --dot: #9b5cff; }
.wtune input[data-k="space"], .wtune input[data-k="word"], .wtune input[data-k="op"] { --dot: #2fbf8a; }
.wtune input[data-k="h"], .wtune input[data-k="speed"], .wtune input[data-k="left"], .wtune input[data-k="blur"], .wtune input[data-k="reach"] { --dot: #0f8f87; }

/* Buttons left / right (Deja, 18 Nov): moves the Controls and Dark mode symbols sideways (px, 0 in the middle of -100 to 100; left of the slider = left). Rose colour, lights up when the mouse is over the symbols. */
.nav:not(.collapsed) .nav-tools { translate: var(--bb-btnx, 0px) 0; }
.wtune input[data-k="btnx"] { --dot: #e8467c; }

/* Buttons up / down (Deja, 18 Nov): same group and colour as Buttons left / right; left of the slider = up, right = down. */
.nav:not(.collapsed) .nav-tools { translate: var(--bb-btnx, 0px) var(--bb-btny, 0px); }
.wtune input[data-k="btny"] { --dot: #e8467c; }

/* (Deja, 18 Nov) Buttons left / right now runs -430 to 430 so the symbols can travel across to the other side of the nav box; new slider Logo left / right (orange, with the other logo sliders); the R reset button is at the RIGHT end of every slider line now (the order of the line is: lowest number, slider, highest number, R). */
.nav:not(.collapsed) .nav-logo { translate: calc(var(--b) * 15.5 * (var(--bb-navw, 0.78) - 1) + var(--bb-logox, 10px)) calc(var(--b) * -1.11 + 4.25px + var(--bb-logoy, 12px)); }
.wtune input[data-k="logox"] { --dot: #ff7a00; }
.wtune .wl { flex-direction: row; }
.wtune .wl small.mn { order: 1; text-align: right; }
.wtune .wl input[type=range] { order: 2; }
.wtune .wl small.mx { order: 3; text-align: left; }
.wtune .wl button.r { order: 4; }

/* the symbols' position: slider value (from the page centre) minus the default position (--bb-btnx0 / --bb-btny0, measured by the script) = how far they move from where they sit by default */
.nav:not(.collapsed) .nav-tools { translate: calc(var(--bb-btnx, 0px) - var(--bb-btnx0, 0px)) calc(var(--bb-btny, 0px) - var(--bb-btny0, 0px)); }

/* The Controls and Dark mode symbols sit in the TOP RIGHT corner of the page, just above the first section header (Deja, 18 Nov); that is their 0 point (the Reset position of the left / right and up / down sliders). They are fixed to the window, in a row, outside the scaled nav. Tooltips open BELOW them. The Controls panel opens to the LEFT of them so it never covers them. */
.nav-tools { position: fixed; top: 14px; right: 40px; bottom: auto; left: auto; flex-direction: row; gap: calc(var(--b) * 0.4); z-index: 55;
  translate: calc(var(--bb-btnx, 0px) - var(--bb-btnx0, 0px)) calc(var(--bb-btny, 0px) - var(--bb-btny0, 0px)); }
.nav-btn::after { bottom: auto; top: calc(100% + var(--b) * 0.4); }
.wtune { right: 110px; top: 14px; }

/* symbols at the header (Deja, 18 Nov): smaller (1b, was 1.4b) and one BELOW the other (the script sets the gap so they sit on the two lines of the header) */
.nav-tools { flex-direction: column; }
.nav-btn, .nav-btn:hover { width: calc(var(--b) * 1); height: calc(var(--b) * 1); }
.nav-btn svg { width: calc(var(--b) * 0.8); height: calc(var(--b) * 0.8); }

/* Page up / down (Deja, 18 Nov): moves the whole Home list (from "01 · SELECTED COMMISSIONS" down) up or down, px added to its top margin; left of the slider = up. The two symbols at the header follow it. Hovering a section header lights this slider. */
.home { margin-top: calc(var(--b) * 0.9 + var(--bb-pagey, 9px)); }   /* 0.9b = its normal top margin */
.wtune input[data-k="pagey"] { --dot: #f59e0b; }   /* amber */

/* the panel is moved by its title bar (Deja, 18 Nov) */
.wtune > b { cursor: grab; user-select: none; -webkit-user-select: none; touch-action: none; }
.wtune.drag > b { cursor: grabbing; }
.wtune.drag { box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.6); }


/* bottom of the panel (Deja, 18 Nov): Keep settings and Reset side by side on the RIGHT */
.wtune .wfoot { display: flex; justify-content: flex-end; gap: 6px; margin-top: 22px; margin-bottom: 4px; }
.wtune .wfoot button { margin: 0; padding: 2px 8px; font-size: 9px; }
.wtune .wfoot button.keep { font-weight: 700; }

/* DEFAULT SETTINGS (Deja, 18 Nov): the Home as he tuned it with the Controls panel is now the real default: logo 0.87, logo height 32, logo left/right 13, pill height 0.82, width 0.88, words gap 0.55, pill up/down 46, nav box width 0.87, height 0.45, page 9. They are the fallbacks inside the var(--bb-...) calls above and the Reset values in the panel (index.html). */

/* Buttons turn (Deja, 18 Nov): the pair of symbols (Controls + Dark mode) turns around its own centre, 0 to 360 degrees; each symbol is turned back so its picture stays upright. Same rose colour as the other two button sliders. */
.nav-tools { rotate: var(--bb-btnr, 0deg); }
.nav-btn { rotate: calc(var(--bb-btnr, 0deg) * -1); }
.wtune input[data-k="btnr"] { --dot: #e8467c; }

/* new defaults 18 Nov: pill height 1.02, pill up / down 39. The Buttons left / right, up / down and turn sliders now keep their value (saved with the others and with Keep settings), so the symbols no longer snap back to the corner when another slider is touched. */

/* THE SYMBOLS INSIDE THE PILL (Deja, 18 Nov): the Controls and Dark mode symbols sit at the right end of the grey pill, white like the words. The pill and the nav box are WIDER by the room they need (--tx = the group width + a little air), the words stay centred in the rest of the pill and the logo stays centred in the box. "Buttons size" (--bb-btns, 1 = the old size, 0.4 to 1.6) makes the whole group smaller or bigger: the symbols, their gap and the room in the pill follow. The three position sliders move the group from its place in the pill (0 = in the pill). */
.nav { --bs: var(--bb-btns, 1); --tx: calc(var(--b) * (2.8 * var(--bs) + 0.3 * var(--bs) + 0.9)); }
.nav { width: calc(var(--b) * 31 * var(--bb-navw, 0.78) + var(--tx)); }
.nav:not(.collapsed) .seg { width: calc((var(--b) * 31 * var(--bb-navw, 0.78) - 36px) * var(--bb-pillw, 0.98) + var(--tx)); padding-right: calc(var(--b) * 0.25 + var(--tx)); }
.nav:not(.collapsed) .nav-logo { translate: calc(var(--b) * 15.5 * (var(--bb-navw, 0.78) - 1) + var(--tx) / 2 + var(--bb-logox, 10px)) calc(var(--b) * -1.11 + 4.25px + var(--bb-logoy, 12px)); }
.nav:not(.collapsed) .seg .nav-tools { position: absolute; z-index: 3; top: 50%; right: calc(var(--b) * 0.5); bottom: auto; left: auto; display: flex; flex-direction: row; gap: calc(var(--b) * 0.3 * var(--bs)); margin-top: calc(var(--b) * -0.7 * var(--bs));
  translate: var(--bb-btnx, 0px) var(--bb-btny, 0px); rotate: var(--bb-btnr, 0deg); }
.nav .seg .nav-btn, .nav .seg .nav-btn:hover { width: calc(var(--b) * 1.4 * var(--bs)); height: calc(var(--b) * 1.4 * var(--bs)); color: #fff; rotate: calc(var(--bb-btnr, 0deg) * -1); }
.nav .seg .nav-btn:hover { color: rgba(255, 255, 255, 0.7); }
.nav .seg .nav-btn svg { width: calc(var(--b) * 1.05 * var(--bs)); height: calc(var(--b) * 1.05 * var(--bs)); }
.nav .seg .nav-btn::after { right: 0; left: auto; top: auto; bottom: calc(100% + var(--b) * 0.5); transform: none; }
.wtune input[data-k="btns"] { --dot: #e8467c; }

/* Equal side gaps (Deja, 18 Nov): the pill is centred in the nav box, so the gap on its left equals the gap on its right at any Pill width / Nav box width (the slack left by a pill narrower than the box is split in two). */
.nav:not(.collapsed) .seg { left: calc(18px + (var(--b) * 31 * var(--bb-navw, 0.78) - 36px) * (1 - var(--bb-pillw, 0.98)) / 2); }

/* Page end (Deja, 18 Nov): the space under the last project, in px, so he can set where the page ENDS when the visitor scrolls to the bottom (smaller = the page ends sooner, the last text sits lower on the screen). Was a fixed 150px. */
.home { padding-bottom: var(--bb-pageend, 300px); }
.wtune input[data-k="pageend"] { --dot: #f59e0b; }

/* Contact and Info stay INSIDE the nav box (Deja, 18 Nov): the panels were as wide as the original box (31b - 36px) and bled out of the narrower one. Now they are exactly as wide as the inside of the box (box width minus the 18px padding each side), long words wrap instead of pushing out, and anything wider is clipped at the box edge. The height is measured again when the box size changes. */
.contact { width: calc(var(--b) * 31 * var(--bb-navw, 0.78) + var(--tx, 0px) - 36px); overflow-x: clip; }
.contact, .contact * { min-width: 0; overflow-wrap: anywhere; }
.contact .crow { grid-template-columns: calc(var(--b) * 4.2) minmax(0, 1fr); }
.contact .aw { grid-template-columns: calc(var(--b) * 5.4) minmax(0, 1fr) auto; }
.contact .copy, .contact .arr, .contact .kbd, .contact .chip, .contact .pill { overflow-wrap: normal; }
.contact .kbd { min-width: calc(var(--b) * 1.2); }

/* CREATIVIA: the IA no longer has its own lighter colour (Deja, 18 Nov: "the AI is blinking, no need"). It had a separate colour (--ink-hot) that did not follow the title when a cover showed or the row was hovered, so it flashed against the rest. Now it simply takes the colour of the title (the small gap before it stays). */
.row h1 .hot, body:has(.row:hover) .row:not(:hover) h1 .hot { color: inherit; transition: none; }

/* 3D+AI FIELD NOTES (Deja, 18 Nov), three sliders in the Cover tab. The picture is sized in PERCENT of the cover layer (the window without the scrollbar, so it is truly centred; vw counted the scrollbar and pushed it to the left): --bb-fnp = size, 100 = the card (2000 x 1299 inside the 2440 x 1739 file) touches the four edges of the window, stretched; there is NO extra zoom now, so the thin white border of the cards picture and its soft corners stay visible around the cards. --bb-fnx = moves it left / right (vw). --bb-fnb = the WHITE BOX around it (dark mode: black), the picture's box-shadow spread in vmax, so it changes WITHOUT changing the picture: 100 or more = covers the whole page. */
:root:not([data-theme="dark"]) .covers .cv[data-for="3d-ai-field-notes"] { left: 50%; top: 50%; width: calc(122% * var(--bb-fnp, 100) / 100); height: calc(133.8% * var(--bb-fnp, 100) / 100); max-width: none; transform: translate(-50%, -50%); translate: calc(var(--bb-fnx, 0) * 1vw) 0; object-fit: fill; box-shadow: 0 0 0 calc(var(--bb-fnb, 200) * 1vmax) #fff; }
:root[data-theme="dark"] .covers .cv-d[data-for="3d-ai-field-notes"] { left: 50%; top: 50%; width: calc(100% * var(--bb-fnp, 100) / 100); height: calc(100% * var(--bb-fnp, 100) / 100); max-width: none; transform: translate(-50%, -50%); translate: calc(var(--bb-fnx, 0) * 1vw) 0; object-fit: fill; box-shadow: 0 0 0 calc(var(--bb-fnb, 200) * 1vmax) #000; }
.wtune input[data-k="fnp"], .wtune input[data-k="fnb"], .wtune input[data-k="fnx"] { --dot: #e6a700; }

/* B button in the controls panel (Deja, 18 Nov): the Home pill base takes its color from --bb-pillc (set by the B button); with nothing set it stays the original grey. */
.seg { background: var(--bb-pillc, rgba(60, 60, 67, 0.27)); transition: background .3s ease; }
/* SLASH between Work and the Controls symbol (Deja, 18 Nov): a thin, light grey slanted line, centred up and down in the pill, just left of the symbols. Thinner (1px) than the symbol strokes and lighter (white at 38 percent). Size follows "Buttons size"; it moves and turns with the symbols. */
.nav:not(.collapsed) .seg .nav-tools::before { content: ""; display: block; position: absolute; z-index: 0; inset: auto; left: calc(var(--b) * -1.01 * var(--bs)); top: 50%; width: 1px; height: calc(var(--b) * 0.8 * var(--bs)); background: rgba(255, 255, 255, 0.38); border-radius: 1px; filter: none; opacity: 1; transform: translate(-50%, -50%); pointer-events: none; }
.wtune button.b { margin: 0; padding: 0; width: 26px; height: 26px; flex: none; border-radius: 50%; font-size: 12px; font-weight: 600; line-height: 26px; text-align: center; box-shadow: inset 0 0 0 1px rgba(60, 60, 67, 0.25); }

/* HOME BALLOON (Deja, 18 Nov): the Textile Prints balloon on the Home. Hidden; while the mouse is on the TEXTILE PRINTS row it fades in and flies from the left edge of the window to the right edge (11 s, slow in and out) and back, with the same bob and tilt as on the Textile Prints page. No clicks, so the row under it keeps its hover. */
.hm-balloon { position: fixed; top: 30vh; left: -12vw; width: clamp(135px, 21.6vw, 283.5px); z-index: 30; pointer-events: none; opacity: 0; transition: opacity 0.18s ease; }
.hm-balloon img { display: block; width: 100%; height: auto; animation: hm-bob 7s cubic-bezier(0.45, 0, 0.55, 1) 0s infinite alternate; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.28)) drop-shadow(0 3px 5px rgba(0, 0, 0, 0.2)); }
body:has(.row[data-slug="textile-prints"]:hover) .hm-balloon { opacity: 1; animation: hm-fly 11s ease-in-out 0s infinite alternate; }
@keyframes hm-fly { 0% { left: -12vw; } 100% { left: 102vw; } }
/* smoother up and down (Deja, 18 Nov): slower (7 s), a softer sine-like curve, a smaller swing (12 px, 2.5 degrees) */
@keyframes hm-bob { 0% { transform: translateY(-12px) rotate(-2.5deg); } 100% { transform: translateY(12px) rotate(2.5deg); } }
@media (prefers-reduced-motion: reduce) { body:has(.row[data-slug="textile-prints"]:hover) .hm-balloon { animation: none; left: 4vw; } .hm-balloon img { animation: none; } }

/* PREVIOUS / NEXT CARDS, ONE LOOK ON EVERY PAGE (Deja, 18 Nov): like the Next card on the Cupra page. No fill, no glow, just a thin rounded stroke, now LIGHT GREY (no white). Same shape, size, text and arrow as before. Selectors are as strong as the per-page ones above (.proj-cx, .proj-pb) and come later, so they win everywhere. Change the stroke colour here: rgba(190, 190, 196, 0.9). */
.proj .pcard::before, .proj .pcard:hover::before { background: transparent; filter: none; box-shadow: none; }
.proj .pcard::after { content: ""; position: absolute; inset: 3px; border-radius: 12px; border: 1px solid rgba(190, 190, 196, 0.9); pointer-events: none; transition: border-color 0.2s ease; }
.proj .pcard:hover::after { border-color: rgba(160, 160, 168, 1); }

/* tab row with arrows (Deja, 19 Nov): the line and the spacing now belong to the wrapper; the row itself scrolls sideways (no scrollbar), every tab keeps its own width, and a small < and > at the two ends move it. */
.wtune .wtabs-wrap { display: flex; align-items: center; gap: 2px; margin: 2px 0 14px; padding-bottom: 10px; border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
.wtune .wtabs-wrap .wtabs { flex: 1; min-width: 0; margin: 0; padding: 0; border-bottom: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.wtune .wtabs::-webkit-scrollbar { display: none; }
.wtune .wtabs button { flex: 0 0 auto; padding: 2px 11px; white-space: nowrap; }
.wtune .wtabs span { flex: 0 0 1px; }
.wtune .tab-arrow { flex: none; width: 18px; height: 22px; margin: 0; padding: 0; border: 0; border-radius: 6px; background: transparent; color: inherit; font-size: 17px; line-height: 20px; text-align: center; opacity: 0.7; }
.wtune .tab-arrow:hover { opacity: 1; }
.wtune .tab-arrow.off { opacity: 0.18; pointer-events: none; }

/* INFO "i" in the panel title bar (Deja, 19 Nov): a round i next to the x, a warm light pulsing behind it (stops once it has been opened, class .seen), and a short about text that replaces the controls while it is open. */
.wtune .info { position: relative; isolation: isolate; float: right; margin: -3px 6px 0 0; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; background: rgba(60, 60, 67, 0.14); color: inherit; font: italic 700 11px/18px Georgia, "Times New Roman", serif; text-align: center; cursor: pointer; }
.wtune .info::before { content: ""; position: absolute; inset: -7px; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 196, 64, 0.95) 0%, rgba(255, 196, 64, 0.45) 45%, rgba(255, 196, 64, 0) 72%); animation: wt-info-pulse 1.7s ease-in-out infinite; pointer-events: none; }
.wtune .info.seen::before { display: none; }
@keyframes wt-info-pulse { 0%, 100% { opacity: 0.25; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .wtune .info::before { animation: none; opacity: 0.7; } }
.wtune .winfo { display: none; padding: 12px 2px 6px; font-size: 11.5px; line-height: 1.55; user-select: text; -webkit-user-select: text; }
.wtune .winfo h3 { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.02em; }
.wtune .winfo p { margin: 0 0 9px; opacity: 0.85; }
.wtune .winfo-back { margin: 8px 0 0; padding: 3px 10px; font: inherit; font-size: 10px; border: 0; border-radius: 999px; background: rgba(60, 60, 67, 0.12); color: inherit; cursor: pointer; }
.wtune.showinfo .wbody { display: none; }
.wtune.showinfo .winfo { display: block; }

/* the info i is smaller and sits beside Reset at the bottom of the panel (Deja, 19 Nov) */
.wtune .wfoot .info { float: none; flex: none; align-self: center; margin: 0 0 0 2px; width: 14px; height: 14px; font-size: 9px; line-height: 14px; }
.wtune .wfoot .info::before { inset: -5px; }

/* the i: the letter is centred in its circle and the light and the circle are turquoise green (Deja, 19 Nov) */
.wtune .info { display: grid; place-items: center; line-height: 1; padding: 0 0 1px 0; background: rgba(32, 201, 178, 0.28); color: #0a6f62; }
:root[data-theme="dark"] .wtune .info { color: #7ff0dc; }
.wtune .info::before { background: radial-gradient(circle, rgba(32, 214, 186, 0.95) 0%, rgba(32, 214, 186, 0.45) 45%, rgba(32, 214, 186, 0) 72%); }

/* the i, final look (Deja, 19 Nov): the i is drawn as a white shape exactly in the middle of the circle (no font, so it cannot sit off centre), the circle is a stronger blue turquoise, not pastel, and so is the light behind it. */
.wtune .info { background: #0b9fc4; color: #fff; padding: 0; }
.wtune .info svg { display: block; width: 8px; height: 8px; margin: auto; }
.wtune .info::before { background: radial-gradient(circle, rgba(11, 159, 196, 0.95) 0%, rgba(11, 159, 196, 0.5) 45%, rgba(11, 159, 196, 0) 72%); }
:root[data-theme="dark"] .wtune .info { color: #fff; background: #12aed6; }

/* the info light, step 1 (Deja, 19 Nov, "do it again in steps"): the white i is taken OFF the light (hidden, the markup is kept so it can come back: remove the next line) and the colour is a BRIGHT TURQUOISE with more green. The button is still a button (aria-label "About these controls"). */
.wtune .info svg { display: none; }
.wtune .info { background: #12e0c0; }
.wtune .info::before { background: radial-gradient(circle, rgba(18, 224, 192, 1) 0%, rgba(18, 224, 192, 0.55) 45%, rgba(18, 224, 192, 0) 72%); }
:root[data-theme="dark"] .wtune .info { background: #1ff0cf; }

/* make the info light ROUND (Deja, 19 Nov): the footer rule that pads the Reset and Keep buttons (padding 2px 8px) was also stretching the info dot into a pill; the dot gets no padding, a fixed square box and a full circle. */
.wtune .wfoot button.info { padding: 0; width: 14px; height: 14px; min-width: 14px; max-width: 14px; border-radius: 50%; aspect-ratio: 1; }

/* the inside smaller (Deja, 19 Nov): the solid dot is 8px (was 14px); the soft light around it keeps about its size (inset grown by the same amount). */
.wtune .wfoot button.info { width: 8px; height: 8px; min-width: 8px; max-width: 8px; margin-left: 6px; }
.wtune .wfoot .info::before { inset: -8px; }

/* the i comes back inside an OUTLINE circle (Deja, 19 Nov): a 16px circle with no fill, a thin white stroke and a white i exactly in its middle, on top of the bright turquoise pulsing light. */
.wtune .wfoot button.info { width: 16px; height: 16px; min-width: 16px; max-width: 16px; margin-left: 6px; background: transparent; border: 1.5px solid #fff; box-sizing: border-box; display: grid; place-items: center; }
.wtune .wfoot .info svg { display: block; width: 8px; height: 8px; margin: 0; }
.wtune .wfoot .info::before { inset: -7px; background: radial-gradient(circle, rgba(18, 224, 192, 1) 0%, rgba(18, 224, 192, 0.85) 38%, rgba(18, 224, 192, 0.35) 62%, rgba(18, 224, 192, 0) 78%); }
:root[data-theme="dark"] .wtune .wfoot button.info { background: transparent; }

/* (Deja, 19 Nov) more air under the title "Controls", so it breathes above the tabs; and the light behind the i blinks ALWAYS (it no longer stops once the text has been opened). */
.wtune > b { margin-bottom: 18px; }
.wtune .info.seen::before { display: block; }

/* the info light moves into the title bar, BEFORE the word Controls, on the same line (Deja, 19 Nov); its footer rules no longer apply. */
.wtune > b { display: flex; align-items: center; }
.wtune > b .hide { margin-left: auto; float: none; }
.wtune > b button.info { float: none; flex: none; position: relative; width: 16px; height: 16px; min-width: 16px; max-width: 16px; margin: 0 12px 0 4px; padding: 0; border: 1.5px solid #fff; border-radius: 50%; background: transparent; box-sizing: border-box; display: grid; place-items: center; }
.wtune > b .info svg { display: block; width: 8px; height: 8px; margin: 0; }
.wtune > b .info::before { inset: -7px; }

/* AUSTRALIS, page 05 (Deja, 19 Nov): the page ends IN the last picture (no white room below it) and the Previous / Next cards lie over the bottom of that picture, like on the Cupra page. Only .proj-au. */
.proj-au { padding-bottom: 0; position: relative; }
.proj-au .pnext { position: absolute; left: 0; right: 0; bottom: 150px; margin: 0; padding: 0 2vw; z-index: 4; }

/* W HOTEL (page 02) and BARCELONA CITY HALL (page 04) (Deja, 19 Nov): same as Australis. The page ends IN the last picture (no white room below it) and the Previous / Next cards lie over the bottom of that picture. Only .proj-wh and .proj-bc. */
.proj-wh, .proj-bc { padding-bottom: 0; position: relative; }
.proj-wh .pnext, .proj-bc .pnext { position: absolute; left: 0; right: 0; bottom: 150px; margin: 0; padding: 0 2vw; z-index: 4; }

/* (19 Nov) A rule that moved the Home nav symbols up 5 px was REMOVED again: measured on the finished page, the symbols were already level with the words (0.5 px), the 5 px came from a measurement taken while the nav was still moving. The Nav tab sliders (Buttons left / right, up / down) work as before. */

/* HOME, HOVER ANIMATION 1 (Deja, 19 Nov): while the mouse is on CUPRA x ROSALIA, the picture behind is blurred a lot. --bb-cupb (px, Controls panel, Cover tab, first slider, default 30). The picture is scaled up a little (15 percent) so the soft edge of the blur stays outside the window. The blur is there from the first frame of the cover fade-in, nothing is animated, so it costs the page almost nothing. Same for the light and the dark picture. */
body:has(.row[data-slug="cupra-x-rosalia"]:hover) .cv[data-for="cupra-x-rosalia"] { filter: blur(var(--bb-cupb, 30px)); scale: 1.15; }

/* HOME, HOVER ANIMATION 1b (Deja, 19 Nov): the Cupra picture strip above the blurred picture. While the mouse is on CUPRA x ROSALIA it fades in and drifts right to left (60 s a loop), the pictures without their white band and the letters A to G in thin white outline (as on the Cupra page). It sits in .covers, under the names. Sliders (Controls, Cover tab, first two): --bb-cxh = height of the strip in percent of the window height (default 46), --bb-cxy = up / down (default 0). Only transform and opacity move, the strip is not even running while the mouse is elsewhere. */
.hv-cx { position: absolute; left: 0; right: 0; top: 50%; height: calc(var(--bb-cxh, 62) * 1vh); margin-top: calc(var(--bb-cxh, 62) * -0.5vh + var(--bb-cxy, 0) * 1vh); overflow: hidden; opacity: 0; pointer-events: none; transition: opacity .35s ease; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%); }
.hv-track { display: flex; width: max-content; height: 100%; animation: hv-cx 60s linear infinite; animation-play-state: paused; will-change: transform; }
.hv-set { display: flex; flex: none; align-items: center; gap: 3vw; padding-right: 3vw; height: 100%; }
.covers .hv-set img { height: 100%; width: auto; flex: none; display: block; max-width: none; margin: 0; filter: none; scale: 1; transform: none; opacity: 1; position: static; }
.covers .hv-set img.sm { height: 62%; }
.hv-let { flex: none; font: 200 calc(var(--bb-cxh, 62) * 0.62vh)/1 "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.78); padding: 0 0.5vw; user-select: none; }
body:has(.row[data-slug="cupra-x-rosalia"]:hover) .hv-cx { opacity: 1; }
body:has(.row[data-slug="cupra-x-rosalia"]:hover) .hv-track { animation-play-state: running; }
@keyframes hv-cx { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .hv-track { animation: none; } }

/* HOME, THE CREATIVIA PICTURE CENTRED (Deja, 19 Nov: "creativia center the pic"). It was shown far bigger than the window, so the card was cut on every side (the page header at the top, the first letters of the text on the left). Now the whole card is shown, in the middle of the window, at its own shape (no stretching). Three sliders (Controls, Cover tab, first three): --bb-crp = card height in percent of the window height (default 80, 100 = touches top and bottom), --bb-crx and --bb-cry = move left / right and up / down (percent of the window, default 0). The light picture is 2440 x 1739 with the card (2000 x 1299) inside, so its height is the card height x 1.3387; the dark picture is the card itself. */
/* 20 Nov: the tuned Creativia card (sliders crp / crx / cry) is now its own sharp copy, .cr-card, on top of the blurred full window picture (same as Pull&Bear). Same rounded card in light and dark. */
.covers .cr-card { position: absolute; left: 50%; top: 50%; width: auto; height: calc(var(--bb-crp, 88) * 1.3387%); max-width: none; transform: translate(-50%, -50%); opacity: 0; transition: opacity .28s ease; pointer-events: none; }   /* exactly centred (20 Nov): the crx / cry offset sliders no longer move this card */
body:has(.row[data-slug="creativia"]:hover) .covers .cr-card { opacity: 1; }
body:has(.row[data-slug="creativia"]:hover) .cv[data-for="creativia"] { filter: blur(var(--bb-cupb, 30px)); scale: 1.15; }
/* (old dark rule for the Creativia picture moved to .cr-card above, 20 Nov) */

/* HOME, HOVER ANIMATION 2 (Deja, 19 Nov): 3D+AI_EDUCATION. The usual cover picture is hidden (not deleted) while the mouse is on the name, and the Miro class board fills the window, exactly the width and height of the page. The seven student works lie on it at the places of the Education page. Their position and width are percentages of the window, their height is automatic, so they keep their own shape and are never stretched; they swell up one after the other (.wave, started by the script at the end of index.html). The grey ground is off so the board shows as it is. */
.hv-edu { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.hv-edu .hv-board { position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; object-fit: fill; display: block; }
.hv-edu .hv-w { position: absolute; margin: 0; z-index: 2; transform: translateZ(0) scale(1); transform-origin: 50% 50%; will-change: transform; backface-visibility: hidden; }
.hv-edu .hv-w img { display: block; width: 100%; height: auto; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22), 0 2px 6px rgba(0, 0, 0, 0.16); }
.hv-edu .hv-w:nth-of-type(2) img { box-shadow: none; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.3)); }
.hv-edu .hv-w figcaption { position: absolute; left: 50%; top: calc(100% + 0.5vw); transform: translateX(-50%) translateY(-4px); padding: 0.3vw 0.7vw; border-radius: 999px; background: rgba(255, 255, 255, 0.94); font: 400 max(0.6vw, 10px)/1.2 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: 0.03em; text-transform: uppercase; color: #141414; white-space: nowrap; opacity: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); }
.hv-edu .hv-w.wave { z-index: 5; animation: hv-float 3.4s linear both; }
.hv-edu .hv-w.wave figcaption { animation: hv-cap 3.4s linear both; }
@keyframes hv-float {
  0%   { transform: translateZ(0) translateY(0) scale(1);         animation-timing-function: cubic-bezier(0.37, 0, 0.63, 1); }
  42%  { transform: translateZ(0) translateY(-0.5vw) scale(1.55); animation-timing-function: cubic-bezier(0.37, 0, 0.63, 1); }
  100% { transform: translateZ(0) translateY(0) scale(1); }
}
@keyframes hv-cap { 0%, 18% { opacity: 0; } 42%, 62% { opacity: 1; } 90%, 100% { opacity: 0; } }
body:has(.row[data-slug="3d-ai-education"]:hover) .hv-edu { opacity: 1; }
body:has(.row[data-slug="3d-ai-education"]:hover) .cv[data-for="3d-ai-education"] { opacity: 0 !important; }
body:has(.row[data-slug="3d-ai-education"]:hover) .ground { opacity: 0; }

/* HOME, HOVER ANIMATION 2, one more work (Deja, 19 Nov): the Sirena render by Luiz Domingues (SIRENA 2_1.png, a cut-out with a transparent ground, a light copy sirena-home.webp) lies at the top between the bag and Anna Vicari and swells up with the others. No frame or shadow box, it is a cut-out. */
.hv-edu .hv-w.hv-cut img { box-shadow: none; filter: none; }
/* 20 Nov (Deja): rounded corners on the student works of the 3D+AI_EDUCATION hover. Not on the two cut outs (Samuil, nth-of-type 2, and the Luiz .hv-cut), their shape is the picture. Undo: delete these two lines. */
.hv-edu .hv-w img { border-radius: 0.7vw; }
.hv-edu .hv-w:nth-of-type(2) img, .hv-edu .hv-w.hv-cut img { border-radius: 0; }
.wtune input[data-k="gnd"] { --dot: #6b7a99; }   /* 20 Nov: Page ground slider */


/* ---------- Saint Martins hover blur (20 Nov) ----------
   Start: looks exactly like the cover. Then the whole picture blurs very slowly (no logo on top any more).
   Tunables: --csm-blur (how blurry), --csm-time (how slow). To undo: delete this block and the two csm lines in index.html. */
:root { --csm-blur: 42px; --csm-time: 11s; }
.covers .csm-a2 { filter: blur(0); }
body:has(.row[data-slug="central-saint-martins"]:hover) .cv.csm-a2 { opacity: 1; filter: blur(var(--csm-blur)); transition: opacity .28s ease, filter var(--csm-time) cubic-bezier(.3,.0,.4,1) .35s; }
/* UAL logo on the Saint Martins hover: centred, keeps its own shape (width drives size, height is auto, so it only scales, never stretches). White in light mode, black in dark mode. */
:root { --csm-logo-w: 44vw; }
.covers .csm-logo { position: absolute; left: 50%; top: 50%; width: min(var(--csm-logo-w), 160vh); height: auto; max-width: none; transform: translate(-50%, -50%); opacity: 0; transition: opacity .35s ease; pointer-events: none; }
:root:not([data-theme="dark"]) .covers .csm-logo { filter: invert(1); }   /* white in light mode, black (original file) in dark mode */
body:has(.row[data-slug="central-saint-martins"]:hover) .covers .csm-logo { opacity: 1; }

/* ---------- Pull&Bear hover (20 Nov) ----------
   The full window picture behind is blurred like on Cupra (same slider --bb-cupb, scaled 15 percent so the soft edge stays outside the window), and the same picture sits sharp in the middle, rounded corners, natural proportions (never stretched). Same card file in light and dark.
   To undo: delete this block and the pb-card line in index.html. */
body:has(.row[data-slug="pull-bear"]:hover) .cv[data-for="pull-bear"] { filter: blur(var(--bb-cupb, 30px)); scale: 1.15; }
:root { --pb-up: 4vh; }   /* how far the sharp Pull&Bear card sits above the middle: raise for higher, 0 for centred */
.covers .pb-card { position: absolute; left: 50%; top: calc(50% - var(--pb-up)); height: min(calc(80.44vh * 1739 / 1299), calc(122vw * 1739 / 2440)); width: auto; max-width: none; transform: translate(-50%, -50%); opacity: 0; transition: opacity .28s ease; pointer-events: none; }
body:has(.row[data-slug="pull-bear"]:hover) .covers .pb-card { opacity: 1; }

/* ---------- Zara hover (20 Nov) ----------
   Like Pull&Bear: the stretched window picture behind is blurred (slider --bb-cupb, scaled 15 percent), the same picture sits sharp in the exact middle, rounded corners, natural proportions, same card file in light and dark.
   To undo: delete this block and the za-card line in index.html. */
body:has(.row[data-slug="zara"]:hover) .cv[data-for="zara"] { filter: blur(var(--bb-cupb, 30px)); scale: 1.15; }
.covers .za-card { position: absolute; left: 50%; top: 50%; height: min(calc(80.44vh * 1739 / 1299), calc(122vw * 1739 / 2440)); width: auto; max-width: none; transform: translate(-50%, -50%); opacity: 0; transition: opacity .28s ease; pointer-events: none; }
body:has(.row[data-slug="zara"]:hover) .covers .za-card { opacity: 1; }

/* ---------- Barcelona hover (20 Nov) ----------
   Like Pull&Bear and Zara: blurred stretched picture behind (--bb-cupb), sharp rounded card in the exact middle at natural proportions. The magnifier is off (js/warp-bcn.js, "if (false)").
   To undo: delete this block and the bc-card line in index.html. */
body:has(.row[data-slug="barcelona-city-hall"]:hover) .cv[data-for="barcelona-city-hall"] { filter: blur(var(--bb-cupb, 30px)); scale: 1.15; }
.covers .bc-card { position: absolute; left: 50%; top: 50%; height: min(calc(80.44vh * 1739 / 1299), calc(122vw * 1739 / 2440)); width: auto; max-width: none; transform: translate(-50%, -50%); opacity: 0; transition: opacity .28s ease; pointer-events: none; }
body:has(.row[data-slug="barcelona-city-hall"]:hover) .covers .bc-card { opacity: 1; }


/* Speed of the backdrop drift only on Barcelona, Pull&Bear, Zara, Creativia (20 Nov, "way faster"): 3.5 s. The card blur on top keeps the slow --csm-time, like Saint Martins. */
:root { --hv-time: 3.5s; }
/* ---------- Slow blur on Barcelona, Pull&Bear, Zara, Creativia (20 Nov, like Saint Martins) ----------
   On hover the picture and the sharp card appear sharp, then only the sharp card on top blurs slowly. The picture behind keeps its instant blur from the earlier hover blocks (--bb-cupb). Same two settings as Saint Martins: --csm-blur (how blurry) and --csm-time (how slow).
   To undo: delete this block (the card then stays sharp). */
body:has(.row[data-slug="barcelona-city-hall"]:hover) .covers .bc-card { animation: card-pulse calc(var(--card-in) + var(--card-back)) linear .35s infinite; }
body:has(.row[data-slug="pull-bear"]:hover) .covers .pb-card { animation: card-pulse calc(var(--card-in) + var(--card-back)) linear .35s infinite; }
body:has(.row[data-slug="zara"]:hover) .covers .za-card { animation: card-pulse calc(var(--card-in) + var(--card-back)) linear .35s infinite; }
body:has(.row[data-slug="creativia"]:hover) .covers .cr-card { animation: card-pulse calc(var(--card-in) + var(--card-back)) linear .35s infinite; }

/* Slight movement of the blurred picture behind while the card on top blurs (20 Nov): it drifts a little up and to the left and grows from 1.15 to 1.22 over the same --csm-time, then rests. Barcelona, Pull&Bear, Zara, Creativia. To undo: delete this block. */
@keyframes bg-drift { from { translate: 0 0; scale: 1.15; } to { translate: -2.2vw -1.4vh; scale: 1.23; } }
body:has(.row[data-slug="barcelona-city-hall"]:hover) .cv[data-for="barcelona-city-hall"] { animation: bg-drift var(--hv-time) cubic-bezier(.3,0,.4,1) .35s both; }
body:has(.row[data-slug="pull-bear"]:hover) .cv[data-for="pull-bear"] { animation: bg-drift var(--hv-time) cubic-bezier(.3,0,.4,1) .35s both; }
body:has(.row[data-slug="zara"]:hover) .cv[data-for="zara"] { animation: bg-drift var(--hv-time) cubic-bezier(.3,0,.4,1) .35s both; }
body:has(.row[data-slug="creativia"]:hover) .cv[data-for="creativia"] { animation: bg-drift var(--hv-time) cubic-bezier(.3,0,.4,1) .35s both; }

/* 20 Nov (Deja): the sharp card blurs slowly, then comes back to sharp, and so on back and forth at the same tempo (--csm-time per direction) while the mouse stays on the name. */
:root { --card-in: 3s; --card-back: 3s; }   /* card on top (Barcelona, Pull&Bear, Zara, Creativia): 3 s into the blur, 3 s back to sharp. If you change them, set the 50% below to in / (in + back). Saint Martins keeps --csm-time. */
@keyframes card-pulse { 0% { filter: blur(0); animation-timing-function: cubic-bezier(.3,0,.4,1); } 50% { filter: blur(var(--csm-blur)); animation-timing-function: cubic-bezier(.5,0,.2,1); } 100% { filter: blur(0); } }

/* Creativia only (20 Nov, Deja): the blurred picture behind drifts the other way, from left to right (the others drift right to left). To undo: delete this block. */
@keyframes bg-drift-r { from { translate: 0 0; scale: 1.15; } to { translate: 2.2vw -1.4vh; scale: 1.23; } }
body:has(.row[data-slug="creativia"]:hover) .cv[data-for="creativia"] { animation-name: bg-drift-r; }

/* Each blurred picture behind drifts its OWN way so the pages don't look the same (20 Nov, Deja): Barcelona to the left, Pull&Bear up, Zara down, Creativia to the right, Field Notes diagonally down left. Same 1.15 to 1.23 zoom and speed (--hv-time). To undo: delete this block (they then all drift the same way again). */
@keyframes bd-bcn { from { translate: 0 0; scale: 1.15; } to { translate: -2.6vw 0vh; scale: 1.23; } }
@keyframes bd-pb { from { translate: 0 0; scale: 1.15; } to { translate: 0vw -3vh; scale: 1.23; } }
@keyframes bd-za { from { translate: 0 0; scale: 1.15; } to { translate: 0vw 3vh; scale: 1.23; } }
@keyframes bd-cr { from { translate: 0 0; scale: 1.15; } to { translate: 2.6vw 0vh; scale: 1.23; } }
@keyframes bd-fn { from { translate: 0 0; scale: 1.15; } to { translate: -2vw 2vh; scale: 1.23; } }
body:has(.row[data-slug="barcelona-city-hall"]:hover) .cv[data-for="barcelona-city-hall"] { animation-name: bd-bcn; }
body:has(.row[data-slug="pull-bear"]:hover) .cv[data-for="pull-bear"] { animation-name: bd-pb; }
body:has(.row[data-slug="zara"]:hover) .cv[data-for="zara"] { animation-name: bd-za; }
body:has(.row[data-slug="creativia"]:hover) .cv[data-for="creativia"] { animation-name: bd-cr; }
:root:not([data-theme="dark"]) body:has(.row[data-slug="3d-ai-field-notes"]:hover) .cv[data-for="3d-ai-field-notes"] { animation: bd-fn var(--hv-time) cubic-bezier(.3,0,.4,1) .35s both; }

/* ---------- Creativia pages strip (20 Nov, Deja) ----------
   Creativia hover: everything from before is gone (no blurred picture, no card). A strip of the report pages drifts from left to right, first the Generalitat de Catalunya / European Union logos cropped from the old cover, then the pages (the funding page first). --hv-cr-time = seconds for one whole set; --hv-cr-h = page height in vh.
   To undo: delete this block, the hv-cr block in index.html, and the three lines with the creativia display: none. */
:root { --hv-cr-time: 70s; --hv-cr-h: 56vh; }
.cv[data-for="creativia"], .covers .cr-card { display: none !important; }
.hv-cr { position: absolute; left: 0; right: 0; top: 50%; height: var(--hv-cr-h); margin-top: calc(var(--hv-cr-h) * -0.5); overflow: hidden; contain: layout paint; z-index: 1; opacity: 0; pointer-events: none; transition: opacity .35s ease; }   /* no edge fade mask any more (20 Nov): a mask over a moving strip made it stutter */
.hv-cr-track { display: flex; width: max-content; height: 100%; animation: hv-cr-move var(--hv-cr-time) linear infinite; animation-play-state: paused; will-change: transform; backface-visibility: hidden; }
.hv-cr-set { display: flex; flex: none; align-items: center; gap: 3vw; padding-right: 3vw; height: 100%; }
.covers .hv-cr-set img { display: block; flex: none; max-width: none; margin: 0; position: static; filter: none; scale: 1; transform: none; opacity: 1; background: #fff; border-radius: 1.2vh; box-shadow: 0 0.8vh 2.2vh rgba(40, 40, 60, 0.2); }
.covers .hv-cr-set .hv-cr-pg { height: 100%; width: auto; }
.covers .hv-cr-set .hv-cr-eu { height: calc(var(--hv-cr-h) * 0.29); width: auto; }
@keyframes hv-cr-move { from { transform: translate3d(-50%, 0, 0); } to { transform: translate3d(0, 0, 0); } }
body:has(.row[data-slug="creativia"]:hover) .hv-cr { opacity: 1; }
body:has(.row[data-slug="creativia"]:hover) .hv-cr-track { animation-play-state: running; }

/* Creativia (20 Nov, Deja): the Generalitat / European Union logos sit top right, 60 percent smaller than they were in the strip (width 45vh, height follows, never stretched). Smoother strip: it moves with translate3d on its own layer, the pictures load at once, a lighter shadow. To undo: delete this block and the hv-cr-logos line in index.html. */
.covers .hv-cr-logos { position: absolute; right: 3vw; top: 12vh; width: 45vh; height: auto; max-width: none; border-radius: 0.9vh; box-shadow: 0 0.6vh 1.6vh rgba(40, 40, 60, 0.18); opacity: 0; transition: opacity .35s ease; pointer-events: none; }
body:has(.row[data-slug="creativia"]:hover) .covers .hv-cr-logos { opacity: 1; }

/* Creativia (20 Nov, Deja): the logos lie ABOVE the page cards, and the strip is lighter so it never stops and starts: the page pictures are smaller copies (1000 px wide, img/creativia/hover/), no mask over the moving strip, one steady linear movement. */
.covers .hv-cr-logos { z-index: 3; }

/* Creativia logos without the white box (20 Nov, Deja): a transparent PNG, no card, no shadow, no rounded box. */
.covers .hv-cr-logos { border-radius: 0; box-shadow: none; }
.covers .hv-cr-logos { width: 38vh; }   /* the transparent PNG is trimmed, so 38vh looks as big as the old 45vh card */

/* ---------- Home in dark mode: dark grey, not pure black (20 Nov, Deja) ----------
   The page behind the Home (with and without hover) is #131316. The dark cover pictures keep their own black. Change the colour here. To undo: delete this block. */
:root[data-theme="dark"]:has(.home) { --bg: #131316; }
:root[data-theme="dark"]:has(.home), :root[data-theme="dark"]:has(.home) body { background: #131316; }

/* Dark mode hovers (20 Nov, Deja): Saint Martins: the black behind the books is now the same dark grey as the page (#131316), baked into img/covers_dark/central-saint-martins.jpg and img/csm_hover/a2-dark.jpg (old ones in 00_TO_SORT/csm_old_20nov). Creativia: a lighter grey behind the pages strip. To undo: restore those two pictures and delete the Creativia rule below. */
:root[data-theme="dark"]:has(.row[data-slug="creativia"]:hover), :root[data-theme="dark"]:has(.row[data-slug="creativia"]:hover) body { background: #2c2c31; }

/* Pull & Bear film (page 13), 20 Nov, Deja: "increase the size of the video so the Pull & Bear title and SS19 does not appear". The YouTube player draws its title bar (Instant Paradise SS19 / Pull&Bear) at the top of the frame. The player is now 135% of the frame, shifted up and centred, and the rounded frame (overflow hidden) crops the title bar and a little of the sides and bottom. The play controls that appear on hover are partly cropped too. Tune: change width/height (bigger = crops more) and top (more negative = crops more at the top). Only the Pull & Bear page. To undo: delete this block. */
.proj-pb .pvid iframe { inset: auto; width: 135%; height: 135%; left: -17.5%; top: -24%; }

/* Textile Prints (page 14), 20 Nov, Deja: "move the pics up". The six swatch pictures on the right stay pinned in the window while you scroll; they are pinned 7vh higher than before (top 9vh became 2vh). Change the 2vh to move them: smaller = higher, bigger = lower. The 800px is the dock hold correction, keep it. To undo: delete this block. */
.tp-sw { top: calc(2vh - 800px); }

/* HOME NAV LOGO (Deja, 23 Nov): the LEINAT wordmark is stretched wide and flat (as in his picture 2): it is as wide as the line below it and about 8.5 times wider than tall (it was 5 times); the line "Designer, Educator & Researcher" is set in Archivo, sized so it is exactly as wide as the wordmark. The colour of the line stays the same. Only the wordmark and the line changed; the cat, the pill and the box are untouched. */
.nav .nav-word { left: calc(var(--b) * 1.56); top: calc(var(--b) * 7.45); width: calc(var(--b) * 12.24); height: calc(var(--b) * 1.45); object-fit: fill; }
.nav .nav-tag { left: calc(var(--b) * 1.56); top: calc(var(--b) * 9.2); width: calc(var(--b) * 12.24); font-family: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 500; font-size: calc(var(--b) * 0.824); letter-spacing: -0.005em; white-space: nowrap; }

/* HOME NAV LOGO, SCROLLING LINE (Deja, 23 Nov): "Designer, Educator & Researcher" scrolls from left to right in a loop, soft fade at both ends like the Sketchbook line (mask 7 percent). Two copies with a middle dot between them, the track moves by exactly one copy, so the loop has no jump. Speed: the 16s below (bigger = slower). Stops for people who asked for less motion. */
.nav .nav-tag { overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%); }
.nav-tag .ntm { display: flex; width: max-content; animation: ntm-run 24s linear infinite; }
.nav-tag .ntm > span { flex: none; padding-right: 0.6em; }
.nav-tag .ntm > span::after { content: "\00b7"; margin-left: 0.6em; }
@keyframes ntm-run { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .nav-tag .ntm { animation: none; } }

/* HOME, ONE OPACITY SLIDER PER WORK (Deja, 23 Nov): while a name is hovered, the OTHER names get the strength of that name's slider (Controls, Type tab, first 13 rows, --bb-o1 ... --bb-o13). 0 to 1 = white names at that opacity (0.2 = as before); below 0 = DARK grey names at that opacity (use it on white pictures, like the Education board, where white names cannot show). */
body:has(.row[data-slug="w-hotel"]:hover) { --hv-o: var(--bb-o1, 0.2); }
body:has(.row[data-slug="cupra-x-rosalia"]:hover) { --hv-o: var(--bb-o2, 0.2); }
body:has(.row[data-slug="barcelona-city-hall"]:hover) { --hv-o: var(--bb-o3, 0.2); }
body:has(.row[data-slug="australis"]:hover) { --hv-o: var(--bb-o4, 0.2); }
body:has(.row[data-slug="central-saint-martins"]:hover) { --hv-o: var(--bb-o5, 0.2); }
body:has(.row[data-slug="creativia"]:hover) { --hv-o: var(--bb-o6, 0.2); }
body:has(.row[data-slug="3d-ai-education"]:hover) { --hv-o: var(--bb-o7, 0.2); }
body:has(.row[data-slug="3d-ai-field-notes"]:hover) { --hv-o: var(--bb-o8, 0.2); }
body:has(.row[data-slug="zara"]:hover) { --hv-o: var(--bb-o9, 0.2); }
body:has(.row[data-slug="dressx"]:hover) { --hv-o: var(--bb-o10, 0.2); }
body:has(.row[data-slug="alexander-mcqueen"]:hover) { --hv-o: var(--bb-o11, 0.2); }
body:has(.row[data-slug="pull-bear"]:hover) { --hv-o: var(--bb-o12, 0.2); }
body:has(.row[data-slug="textile-prints"]:hover) { --hv-o: var(--bb-o13, 0.2); }
body:has(.row:hover) .row:not(:hover) h1,
body:has(.row:hover) .row:not(:hover) h1 .hot { color: rgba(clamp(54, calc(54 + 201 * var(--hv-o, 0.2) * 1000), 255), clamp(54, calc(54 + 201 * var(--hv-o, 0.2) * 1000), 255), clamp(54, calc(54 + 201 * var(--hv-o, 0.2) * 1000), 255), max(var(--hv-o, 0.2), calc(var(--hv-o, 0.2) * -1))); }


/* HOME INTRO (Deja, 23 Nov): when the page loads, Cupra, then Education, then McQueen play their hover animation one after another (a script adds the class .fh to the row), then the page goes back to nothing selected. This block is a generated mirror of every ".row ... :hover" rule above with ":hover" replaced by ".fh". If you change a hover look above, the mirror below must be regenerated (ask). */
.row.fh h1 .d {opacity: 1;
  transform: translate(0, -50%) scale(1);}
body:has(.row.fh) .ground {opacity: 1;}
body:has(.seg a[href="#sketchbook"].fh) .home .row {opacity: 0;}
body:has(.row[data-slug="w-hotel"].fh) .cv[data-for="w-hotel"], body:has(.row[data-slug="cupra-x-rosalia"].fh) .cv[data-for="cupra-x-rosalia"], body:has(.row[data-slug="barcelona-city-hall"].fh) .cv[data-for="barcelona-city-hall"], body:has(.row[data-slug="australis"].fh) .cv[data-for="australis"], body:has(.row[data-slug="central-saint-martins"].fh) .cv[data-for="central-saint-martins"], body:has(.row[data-slug="creativia"].fh) .cv[data-for="creativia"], body:has(.row[data-slug="3d-ai-education"].fh) .cv[data-for="3d-ai-education"], body:has(.row[data-slug="3d-ai-field-notes"].fh) .cv[data-for="3d-ai-field-notes"], body:has(.row[data-slug="zara"].fh) .cv[data-for="zara"], body:has(.row[data-slug="dressx"].fh) .cv[data-for="dressx"], body:has(.row[data-slug="alexander-mcqueen"].fh) .cv[data-for="alexander-mcqueen"], body:has(.row[data-slug="pull-bear"].fh) .cv[data-for="pull-bear"], body:has(.row[data-slug="textile-prints"].fh) .cv[data-for="textile-prints"] {opacity: 1;}
.row.fh h1 {color: var(--strong); transform: translateX(.12em);}
body:has(.row.fh) .sec-head, body:has(.row.fh) .home hr {opacity: 0;}
:root:not([data-theme="dark"]) body:has(.row.fh) .covers::after {opacity: 0.35;}
body:has(.row.fh) .home-credit {opacity: 0;}
body:has(.row.fh) .home-credit.on {opacity: 0;}
body:has(.row.fh) .covers::before {opacity: 1;}
body:has(.row.fh) .row:not(.fh) h1, body:has(.row.fh) .row:not(.fh) h1 .hot {color: rgba(255, 255, 255, var(--bb-op, 0.2));}
body:has(.row.fh) .row:not(.fh) h1 .hot {color: inherit; transition: none;}
body:has(.row[data-slug="textile-prints"].fh) .hm-balloon {opacity: 1; animation: hm-fly 11s ease-in-out 0s infinite alternate;}
@media (prefers-reduced-motion: reduce) {
  body:has(.row[data-slug="textile-prints"].fh) .hm-balloon {animation: none; left: 4vw;}
}
body:has(.row[data-slug="cupra-x-rosalia"].fh) .cv[data-for="cupra-x-rosalia"] {filter: blur(var(--bb-cupb, 30px)); scale: 1.15;}
body:has(.row[data-slug="cupra-x-rosalia"].fh) .hv-cx {opacity: 1;}
body:has(.row[data-slug="cupra-x-rosalia"].fh) .hv-track {animation-play-state: running;}
body:has(.row[data-slug="creativia"].fh) .covers .cr-card {opacity: 1;}
body:has(.row[data-slug="creativia"].fh) .cv[data-for="creativia"] {filter: blur(var(--bb-cupb, 30px)); scale: 1.15;}
body:has(.row[data-slug="3d-ai-education"].fh) .hv-edu {opacity: 1;}
body:has(.row[data-slug="3d-ai-education"].fh) .cv[data-for="3d-ai-education"] {opacity: 0 !important;}
body:has(.row[data-slug="3d-ai-education"].fh) .ground {opacity: 0;}
body:has(.row[data-slug="central-saint-martins"].fh) .cv.csm-a2 {opacity: 1; filter: blur(var(--csm-blur)); transition: opacity .28s ease, filter var(--csm-time) cubic-bezier(.3,.0,.4,1) .35s;}
body:has(.row[data-slug="central-saint-martins"].fh) .covers .csm-logo {opacity: 1;}
body:has(.row[data-slug="pull-bear"].fh) .cv[data-for="pull-bear"] {filter: blur(var(--bb-cupb, 30px)); scale: 1.15;}
body:has(.row[data-slug="pull-bear"].fh) .covers .pb-card {opacity: 1;}
body:has(.row[data-slug="zara"].fh) .cv[data-for="zara"] {filter: blur(var(--bb-cupb, 30px)); scale: 1.15;}
body:has(.row[data-slug="zara"].fh) .covers .za-card {opacity: 1;}
body:has(.row[data-slug="barcelona-city-hall"].fh) .cv[data-for="barcelona-city-hall"] {filter: blur(var(--bb-cupb, 30px)); scale: 1.15;}
body:has(.row[data-slug="barcelona-city-hall"].fh) .covers .bc-card {opacity: 1;}
body:has(.row[data-slug="barcelona-city-hall"].fh) .covers .bc-card {animation: card-pulse calc(var(--card-in) + var(--card-back)) linear .35s infinite;}
body:has(.row[data-slug="pull-bear"].fh) .covers .pb-card {animation: card-pulse calc(var(--card-in) + var(--card-back)) linear .35s infinite;}
body:has(.row[data-slug="zara"].fh) .covers .za-card {animation: card-pulse calc(var(--card-in) + var(--card-back)) linear .35s infinite;}
body:has(.row[data-slug="creativia"].fh) .covers .cr-card {animation: card-pulse calc(var(--card-in) + var(--card-back)) linear .35s infinite;}
body:has(.row[data-slug="barcelona-city-hall"].fh) .cv[data-for="barcelona-city-hall"] {animation: bg-drift var(--hv-time) cubic-bezier(.3,0,.4,1) .35s both;}
body:has(.row[data-slug="pull-bear"].fh) .cv[data-for="pull-bear"] {animation: bg-drift var(--hv-time) cubic-bezier(.3,0,.4,1) .35s both;}
body:has(.row[data-slug="zara"].fh) .cv[data-for="zara"] {animation: bg-drift var(--hv-time) cubic-bezier(.3,0,.4,1) .35s both;}
body:has(.row[data-slug="creativia"].fh) .cv[data-for="creativia"] {animation: bg-drift var(--hv-time) cubic-bezier(.3,0,.4,1) .35s both;}
body:has(.row[data-slug="creativia"].fh) .cv[data-for="creativia"] {animation-name: bg-drift-r;}
body:has(.row[data-slug="barcelona-city-hall"].fh) .cv[data-for="barcelona-city-hall"] {animation-name: bd-bcn;}
body:has(.row[data-slug="pull-bear"].fh) .cv[data-for="pull-bear"] {animation-name: bd-pb;}
body:has(.row[data-slug="zara"].fh) .cv[data-for="zara"] {animation-name: bd-za;}
body:has(.row[data-slug="creativia"].fh) .cv[data-for="creativia"] {animation-name: bd-cr;}
:root:not([data-theme="dark"]) body:has(.row[data-slug="3d-ai-field-notes"].fh) .cv[data-for="3d-ai-field-notes"] {animation: bd-fn var(--hv-time) cubic-bezier(.3,0,.4,1) .35s both;}
body:has(.row[data-slug="creativia"].fh) .hv-cr {opacity: 1;}
body:has(.row[data-slug="creativia"].fh) .hv-cr-track {animation-play-state: running;}
body:has(.row[data-slug="creativia"].fh) .covers .hv-cr-logos {opacity: 1;}
:root[data-theme="dark"]:has(.row[data-slug="creativia"].fh), :root[data-theme="dark"]:has(.row[data-slug="creativia"].fh) body {background: #2c2c31;}
body:has(.row[data-slug="w-hotel"].fh) {--hv-o: var(--bb-o1, 0.2);}
body:has(.row[data-slug="cupra-x-rosalia"].fh) {--hv-o: var(--bb-o2, 0.2);}
body:has(.row[data-slug="barcelona-city-hall"].fh) {--hv-o: var(--bb-o3, 0.2);}
body:has(.row[data-slug="australis"].fh) {--hv-o: var(--bb-o4, 0.2);}
body:has(.row[data-slug="central-saint-martins"].fh) {--hv-o: var(--bb-o5, 0.2);}
body:has(.row[data-slug="creativia"].fh) {--hv-o: var(--bb-o6, 0.2);}
body:has(.row[data-slug="3d-ai-education"].fh) {--hv-o: var(--bb-o7, 0.2);}
body:has(.row[data-slug="3d-ai-field-notes"].fh) {--hv-o: var(--bb-o8, 0.2);}
body:has(.row[data-slug="zara"].fh) {--hv-o: var(--bb-o9, 0.2);}
body:has(.row[data-slug="dressx"].fh) {--hv-o: var(--bb-o10, 0.2);}
body:has(.row[data-slug="alexander-mcqueen"].fh) {--hv-o: var(--bb-o11, 0.2);}
body:has(.row[data-slug="pull-bear"].fh) {--hv-o: var(--bb-o12, 0.2);}
body:has(.row[data-slug="textile-prints"].fh) {--hv-o: var(--bb-o13, 0.2);}
body:has(.row.fh) .row:not(.fh) h1, body:has(.row.fh) .row:not(.fh) h1 .hot {color: rgba(clamp(54, calc(54 + 201 * var(--hv-o, 0.2) * 1000), 255), clamp(54, calc(54 + 201 * var(--hv-o, 0.2) * 1000), 255), clamp(54, calc(54 + 201 * var(--hv-o, 0.2) * 1000), 255), max(var(--hv-o, 0.2), calc(var(--hv-o, 0.2) * -1)));}

/* HOME INTRO, SMOOTH IN AND OUT (Deja, 23 Nov): while the load sequence runs (body.intro-run) every fade of the hover animations (pictures, strip, board, haze, ground, names) takes 0.6s with an ease in and out curve, so each one rises and falls softly instead of switching. The class is removed after the last one has faded out; a real mouse hover is not changed. */
body.intro-run .cv, body.intro-run .covers::before, body.intro-run .covers::after, body.intro-run .ground, body.intro-run .hv-cx, body.intro-run .hv-edu,
body.intro-run .covers [class*="-card"], body.intro-run .covers .hv-cr-logos, body.intro-run .covers .csm-logo, body.intro-run .row h1, body.intro-run .row h1 .d, body.intro-run .sec-head, body.intro-run .home hr {
  transition-duration: 0.6s !important; transition-timing-function: cubic-bezier(0.65, 0, 0.35, 1) !important; transition-delay: 0s !important; }

/* HOME INTRO, FIELD NOTES ALREADY THERE ON LOAD (Deja, 23 Nov): the page opens with the Field Notes animation showing (no fade in, html.intro-boot switches the transitions off), then it fades out softly and the page is left with nothing selected. The class is set in the head and removed by the intro script just before the fade out. */
html.intro-boot .hv-fn, html.intro-boot .cv, html.intro-boot .covers::before, html.intro-boot .covers::after, html.intro-boot .ground, html.intro-boot .row h1, html.intro-boot .sec-head, html.intro-boot .home hr { transition: none !important; }

/* PROJECT PAGES, THE NEW LOGO ON THE DOCK (Deja, 23 Nov: "the logo is still the old one, replace it by the new one from the Home nav box, but small"). Same look as the Home nav logo: the wordmark wide and flat, the line below in Archivo as wide as the wordmark, scrolling from right to left with a soft fade at both ends, text "Multidisciplinary Designer, Educator & Researcher". Smaller than before: the wordmark is 7b wide (was 8.2b) and only 0.83b high (was 1.7b). The cat stays faint behind. */
.p-word { left: calc(var(--b) * 0.35); top: calc(var(--b) * 1.45); width: calc(var(--b) * 7.7); height: calc(var(--b) * 0.913); object-fit: fill; }
.p-tag { left: calc(var(--b) * 0.35); top: calc(var(--b) * 2.65); width: calc(var(--b) * 7.7); overflow: hidden; font-family: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 500; font-size: calc(var(--b) * 0.616); line-height: 1.25; letter-spacing: -0.005em; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%); }
.p-cat { left: calc(var(--b) * 2.9); top: calc(var(--b) * -0.6); height: calc(var(--b) * 4.84); }
.p-tag .ntm { display: flex; width: max-content; animation: ntm-run 24s linear infinite; }
.p-tag .ntm > span { flex: none; padding-right: 0.6em; }
.p-tag .ntm > span::after { content: "\00b7"; margin-left: 0.6em; }
@media (prefers-reduced-motion: reduce) { .p-tag .ntm { animation: none; } }

/* ALL PROJECT PAGES, DOCK (Deja, 23 Nov, tried first on Creativia, then "apply to all project pages"): (1) the client block and its thin line sit 0.7b from the right edge of the dock instead of 2.1b (about 21 px further right, text and line together); (2) the new dock logo is 12 percent bigger, 19 px to the left and 24 px lower (translate and scale from the bottom centre). Creativia keeps its own sliders (Controls, Dock tab), whose defaults are these same numbers. */
.pdock:has(.pclient) .pclient { margin-right: calc(var(--b) * 0.7); }
.plogo { translate: -19px calc(var(--b) * -1.2 + 24px); scale: 1.12; transform-origin: 50% 100%; }

/* HOME CONTACT PANEL (Deja, 23 Nov): the text of Email, LinkedIn and Instagram is smaller (0.84 of the panel text) and never wraps, so the Instagram address stays on one line. Only these three links; the labels and the Info panel are untouched. */
.contact .crow .lnk > span:first-child { font-size: 0.92em; white-space: nowrap; min-width: 0; }
.contact .crow .lnk > a { font-size: 0.92em; white-space: nowrap; }   /* the Email address too (it is a link inside the row, the other two are spans) */

/* HOME NAV COLOURS (Deja, 23 Nov, from his picture of the red ABOUT button and the gold "sketchbook//"): the pill ground is a SOLID gold (#bba363, --bb-pillc from the Controls square replaces it), the active / hovered button is a solid red (#e5483a) with a red glow, and the words of the pill are white always, also on the red button. The red is set on .nav only, so the Index / Previous / Next buttons of the project pages keep their white hover. */
.seg { background: var(--bb-pillc, #bba363); }
:root[data-theme="dark"] .seg { background: var(--bb-pillc, #bba363); }
.nav { --thumb: var(--bb-thumbc, #e5483a); --thumb-g1: var(--bb-thumbg1, rgba(229, 72, 58, 0.6)); --thumb-g2: var(--bb-thumbg2, rgba(229, 72, 58, 0.35)); }
.nav .seg a, .nav .seg a:hover, .nav .seg a[aria-current], .nav .seg a[aria-expanded="true"] { color: #fff; }

/* HOME NAV, DARK MODE (Deja, 23 Nov: "in dark mode it looks too blocky, add a white halo around the pill, not much"): a soft white halo around the pill, only in dark mode. Make the 0.2 bigger for a stronger halo, smaller for a quieter one. */
:root[data-theme="dark"] .nav .seg { box-shadow: 0 0 16px 3px rgba(255, 255, 255, 0.2), 0 0 42px 8px rgba(255, 255, 255, 0.08); }

/* HOME NAV (Deja, 23 Nov): the selected word of the pill (Work, or Contact / Info while their panel is open) has weight 500 (the other words 450). */
.nav .seg a[aria-current], .nav .seg a[aria-expanded="true"], .nav .seg:has(a:hover) a[aria-current]:not(:hover), .nav .seg:has(a:focus-visible) a[aria-current]:not(:focus-visible) { font-weight: 500; }

/* HOME NAV, THE SCROLLING LINE: NORMAL TYPE, SIZE AND COLOUR (Deja, 23 Nov: "I need sliders for the size and the colour of this text, and the type not stretched, normal"). The line is back in the normal Helvetica Neue of the original nav (Archivo is a wide face and looked stretched), letter spacing 0, width axis normal. Size: Controls, Nav tab, "Scrolling line: size" (--bb-tgs, x, 1 = 0.824b). Colour: the colour square "Scrolling line: colour" (--bb-tagc, automatic = the old grey). */
.nav .nav-tag { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 400; font-stretch: 100%; font-variation-settings: normal; letter-spacing: 0; font-size: calc(var(--b) * 0.824 * var(--bb-tgs, 1)); color: var(--bb-tagc, var(--tag)); }

/* HOME INFO PANEL (Deja, 23 Nov): a line in capitals above "Hello": DESIGNER, EDUCATOR AND RESEARCHER (small, wide letter spacing, the grey of the panel labels). */
.inf-intro p.inf-role { text-transform: uppercase; letter-spacing: 0.08em; font-size: calc(11px / var(--s)); line-height: 1.4; color: var(--panel-label); margin-bottom: calc(var(--b) * 0.9); }

/* CONTROLS PANEL, ARROW TO THE BLINKING "i" (Deja, 23 Nov, moved inside the panel because an arrow outside its left edge was cut off by the scrolling panel): when the panel is open a small arrow sits right under the blinking info button, points up at it and bobs; it shows every time the panel is open and hides while the info text is open (it no longer depends on the ".seen" mark that stops the blinking, which could hide it). */
.wtune.on:not(.showinfo) .info::after { content: ""; position: absolute; z-index: 5; left: 50%; top: calc(100% + 8px); width: 22px; height: 24px; margin-left: -11px; background: #c4c4c9; -webkit-clip-path: polygon(50% 0, 100% 48%, 66% 48%, 66% 100%, 34% 100%, 34% 48%, 0 48%); clip-path: polygon(50% 0, 100% 48%, 66% 48%, 66% 100%, 34% 100%, 34% 48%, 0 48%); pointer-events: none; animation: wt-info-arrow 1s ease-in-out infinite; }   /* a solid arrow drawn with clip-path (no mask), pointing up at the "i" */
@keyframes wt-info-arrow { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(5px); } }
@media (prefers-reduced-motion: reduce) { .wtune .info::after { animation: none !important; } }

/* CONTROLS PANEL, SCROLLER (Deja, 23 Nov: "add a scroller to the side of the controller, otherwise I cannot reach the bottom"): the panel is never taller than the window and scrolls inside (thin visible scroll bar on its right side). */
.wtune { max-height: calc(100vh - 32px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(60, 60, 67, 0.45) transparent; }
.wtune::-webkit-scrollbar { width: 8px; }
.wtune::-webkit-scrollbar-thumb { background: rgba(60, 60, 67, 0.4); border-radius: 8px; border: 2px solid transparent; background-clip: content-box; }
:root[data-theme="dark"] .wtune { scrollbar-color: rgba(255, 255, 255, 0.4) transparent; }
:root[data-theme="dark"] .wtune::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.4); background-clip: content-box; }

/* PROJECT PAGES, THE SCROLLING LINE AS ON THE HOME (Deja, 23 Nov: "must be as in the Home, #919191"): normal Helvetica Neue (not Archivo), weight 400, no letter spacing, colour #919191 (the Home line colour), in light and dark mode. */
.p-tag, :root[data-theme="dark"] .p-tag { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 400; font-stretch: 100%; letter-spacing: 0; color: #919191; }


/* Info TOOLS (Deja, 23 Nov): the title TOOLS in capitals (the .inf-sec h2 style of the site) and the tools in small round bubbles, the .tag chip with a full radius, wrapping onto more lines when needed. Undo: delete this block and the .inf-tools block in index.html. */
.inf-chips { display: flex; flex-wrap: wrap; gap: calc(var(--b) * 0.4); }
.inf-tools .tag { border-radius: 999px; padding: 0 calc(var(--b) * 0.85); height: calc(var(--b) * 1.6); font-family: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: 0.01em; }

/* Info TOOLS / LANGUAGES, second round (Deja, 23 Nov): the titles are as small as "Email" in Contact (the .ct-l size 11px on screen and colour --panel-label, still in capitals), and each language bubble has four small dots: filled = how well, so Catalan (3 of 4) reads as less than the other three (4 of 4) without any text. The number of filled dots is set in index.html (class "on" on the <i>). */
.inf-tools h2 { font-size: calc(9px / var(--s)); color: var(--panel-label); letter-spacing: 0.04em; }
.inf-tools .lv { display: inline-flex; align-items: center; gap: calc(var(--b) * 0.2); margin-left: calc(var(--b) * 0.6); }
.inf-tools .lv i { display: block; width: calc(var(--b) * 0.34); height: calc(var(--b) * 0.34); border-radius: 50%; border: 1px solid currentColor; opacity: 0.4; box-sizing: border-box; }
.inf-tools .lv i.on { background: currentColor; opacity: 1; }

/* Info bubbles smaller (Deja, 23 Nov, 16:04): height 1.6b to 1.25b, side padding .85b to .6b, text 0.8b+2px (the .tag size) to 0.62b+2px, gap .4b to .3b, dots .34b to .28b. Undo: delete this block. */
.inf-chips { gap: calc(var(--b) * 0.3); }
.inf-tools .tag { height: calc(var(--b) * 1.25); padding: 0 calc(var(--b) * 0.6); font-size: calc(var(--b) * 0.62 + 2px); }
.inf-tools .lv { margin-left: calc(var(--b) * 0.45); gap: calc(var(--b) * 0.16); }
.inf-tools .lv i { width: calc(var(--b) * 0.28); height: calc(var(--b) * 0.28); }

/* Info bubbles, halfway back (Deja, 23 Nov, 16:05: "too small"): height 1.42b, padding .72b, text .71b + 2px, gap .35b, dots .31b. These rules come last and win over the two blocks above. */
.inf-chips { gap: calc(var(--b) * 0.35); }
.inf-tools .tag { height: calc(var(--b) * 1.42); padding: 0 calc(var(--b) * 0.72); font-size: calc(var(--b) * 0.71 + 2px); }
.inf-tools .lv { margin-left: calc(var(--b) * 0.5); gap: calc(var(--b) * 0.18); }
.inf-tools .lv i { width: calc(var(--b) * 0.31); height: calc(var(--b) * 0.31); }

/* Info panel (Deja, 23 Nov, 16:06): more space between the capitals line (DESIGNER, EDUCATOR & RESEARCHER) and "Hello". The line had margin-bottom .9b, now 1.9b (plus the .67b gap of the column). Undo: delete this line. */
.inf-intro p.inf-role { margin-bottom: calc(var(--b) * 1.9); }
