/* Generated from the static prototype by dev/port-static.py — edit the prototype, not this file. */
/* l1l2 OS · B — contact-sheet reel, black dock, hairline editorial pages */

:root {
  --bg: #fff;
  --fg: #121212;
  --dim: #8a8a8a;
  --sub: #555;
  --line: #121212;
  --hair: #e2e2e2;
  --faint: #f1f1f1;
  --ink: #121212;            /* dock / menu (always dark) */
  --ink2: #2a2a2a;
  --pad: 12px;
  --hd: 56px;
  --dk: 64px;
  --fs: 14px;
  --ease: cubic-bezier(.65, 0, .35, 1);
  --out: cubic-bezier(.22, 1, .36, 1);
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: light;
}
html.dark {
  --bg: #121212; --fg: #fff; --sub: #b5b5b5; --line: #fff; --hair: #2e2e2e; --faint: #1c1c1c;
  --ink: #000; --ink2: #262626;
  color-scheme: dark;
}
@media (min-width: 1400px) { :root { --fs: 15px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg); font: 400 var(--fs)/1.38 var(--font);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  transition: background-color .45s, color .45s;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
img, video { display: block; max-width: 100%; }
::selection { background: var(--fg); color: var(--bg); }
:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }
b, strong { font-weight: 700; }

/* masked roll */
.mask { display: block; overflow: hidden; }
.mask > span { display: block; transform: translateY(110%); transition: transform .75s var(--out); }
.is-in .mask > span { transform: none; }
.is-in .mask + .mask > span { transition-delay: .06s; }
.is-out .mask > span { transform: translateY(-110%); transition: transform .4s var(--ease); }

/* title pill (l1l2 signature) */
.pillt {
  display: inline; padding: .08em .5em; margin: 0 -.5em; border-radius: 999px; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background: linear-gradient(var(--fg), var(--fg)) no-repeat 0 0 / 0 100%; transition: background-size .45s var(--out), color .3s;
}
.is-hot .pillt, a:hover > .pillt, a:hover .tl__name .pillt { background-size: 100% 100%; color: var(--bg); }

/* =========================================================
   HEADER
   ========================================================= */
.hd {
  position: fixed; z-index: 46; top: 0; left: 0; right: 0; height: var(--hd);
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0 var(--pad); align-items: center; padding: 0 var(--pad);
  background: var(--bg); transition: background-color .45s;
}
.hd__logo { grid-column: 1 / 3; font-weight: 700; font-size: 26px; letter-spacing: -.03em; line-height: 1; display: inline-flex; width: max-content; }
.dg { display: inline-block; height: 1em; overflow: hidden; vertical-align: top; font-variant-numeric: tabular-nums; }
.dg > span { display: block; }
.hd__clock { grid-column: 3 / 5; display: flex; flex-direction: column; line-height: 1.25; }
.hd__clock span:last-child { font-variant-numeric: tabular-nums; }
.hd__menu {
  grid-column: 7; justify-self: end; position: relative; width: 38px; height: 38px; border-radius: 8px;
  background: #efefef; color: var(--fg); transition: background-color .3s, transform .3s;
}
html.dark .hd__menu { background: #262626; }
.hd__menu:hover { transform: scale(.94); }
.hd__menu i { position: absolute; left: 11px; right: 11px; top: 50%; height: 1px; background: currentColor; transition: transform .5s var(--out); }
.hd__menu i:first-child { transform: translateY(-3px); }
.hd__menu i:last-child { transform: translateY(3px); }
.hd__menu[aria-expanded="true"] i:first-child { transform: rotate(45deg); }
.hd__menu[aria-expanded="true"] i:last-child { transform: rotate(-45deg); }

/* =========================================================
   STAGE / SHEET
   ========================================================= */
.stage {
  position: fixed; z-index: 1; left: var(--pad); right: var(--pad); top: var(--hd); bottom: calc(var(--dk) + var(--pad));
  overflow: hidden; cursor: pointer; transition: opacity .5s var(--ease);
}
body:not(.on-home) .stage { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s, visibility 0s .3s; }
body.on-home { overflow: hidden; }
.sheet { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.pc { position: absolute; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; }
.pc__c { position: relative; overflow: hidden; background: var(--faint); }
.pc__c img, .pc__c video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pc__c video { opacity: 0; transition: opacity .6s; }
.pc__c video.is-playing { opacity: 1; }
.pc__lbl {
  position: absolute; left: 0; top: 0; transform-origin: 0 0; white-space: nowrap; z-index: 2; pointer-events: none;
  background: var(--fg); color: var(--bg); padding: .15em .55em; border-radius: 999px; font-size: 12px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; transition: opacity .35s;
}
.stage.is-zoomed .pc__lbl { opacity: 1; }
.pc { transition: opacity .35s; }
.stage.is-ov .sheet:hover .pc:not(:hover) { opacity: .35; }
.stage.is-ov { cursor: default; }
.stage.is-ov .pc { cursor: zoom-in; }

/* =========================================================
   DOCK
   ========================================================= */
.dock {
  position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; height: var(--dk);
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0 var(--pad); align-items: center; padding: 0 var(--pad);
  background: var(--ink); color: #fff;
}
.dock__prog { position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: #fff; transform-origin: 0 0; transform: scaleX(0); }
.dock__count { grid-column: 1 / 3; display: flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.dock__n { display: inline-block; overflow: hidden; height: 1.15em; font-size: 30px; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; }
.dock__n > span { display: block; }
.dock__of { color: #8a8a8a; }
.dock__title { grid-column: 3 / 5; min-width: 0; display: block; line-height: 1.25; }
.dock__title b, .dock__title span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dock__title .mask > span > span { color: #8a8a8a; }
.dock__title .pillt { display: inline; background-image: linear-gradient(#fff, #fff); }
.dock__title b { padding-left: .5em; margin-left: -.5em; }
.dock__title:hover .pillt { color: #121212; background-size: 100% 100%; }
.dock__btn { position: relative; justify-self: start; white-space: nowrap; color: #fff; }
.dock__btn::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: 100% 0; transition: transform .45s var(--out); }
.dock__btn:hover::after, .dock__ov[aria-pressed="true"]::after { transform: scaleX(1); transform-origin: 0 0; }
.dock__ov { grid-column: 5; }
.dock__go { grid-column: 7; justify-self: end; }
body:not(.on-home) .dock__ov { visibility: hidden; }
body:not(.on-home) .dock__prog { opacity: 0; }

/* =========================================================
   MENU
   ========================================================= */
.dim {
  position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .35); opacity: 0; visibility: hidden;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: opacity .6s var(--ease), visibility 0s .6s;
}
.dim.is-on { opacity: 1; visibility: visible; transition: opacity .6s var(--ease); }

/* =========================================================
   LOADER
   ========================================================= */
.loader {
  position: fixed; inset: 0; z-index: 90; background: var(--ink); color: #fff; display: none; padding: var(--pad);
  clip-path: inset(0 0 0 0); transition: clip-path 1s var(--ease);
}
html.intro .loader { display: block; }
.loader.is-done { clip-path: inset(0 0 100% 0); }
.loader__top { position: absolute; top: 18px; left: var(--pad); }
.loader__bot { position: absolute; bottom: 18px; left: var(--pad); color: #8a8a8a; }
.loader__n { position: absolute; right: var(--pad); bottom: 0; font-size: min(38vw, 64vh); font-weight: 700; letter-spacing: -.06em; line-height: .78; font-variant-numeric: tabular-nums; }

/* =========================================================
   PAGES
   ========================================================= */
.view { position: relative; z-index: 2; padding: var(--hd) var(--pad) calc(var(--dk) + 80px); min-height: 100dvh; outline: none; }
body.on-home .view { display: none; }
.view > * { animation: viewIn .7s var(--out) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(20px); } }
.g7 { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0 var(--pad); }
.big { margin: 0; font-weight: 700; font-size: clamp(40px, 6.4vw, 112px); line-height: .92; letter-spacing: -.045em; }
.big .soft { color: var(--dim); font-weight: 400; }

/* controls (Work) */
.ctl { padding: 18vh 0 22px; }
.ctl .big { grid-column: 1 / -1; margin-bottom: 26px; }
.ctl__row { grid-column: 3 / -1; display: flex; flex-wrap: wrap; gap: 6px 28px; }
.ctl__g { display: flex; gap: 14px; }
.ctl__g button { color: var(--dim); transition: color .25s; }
.ctl__g button:hover, .ctl__g button.is-on { color: var(--fg); }
.ctl__g button sup { font-size: 9px; margin-left: 2px; }

/* work grid */
.wgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px var(--pad); border-top: 1px solid var(--line); padding-top: var(--pad); }
.tl { display: block; opacity: 0; transform: translateY(26px); transition: opacity .8s var(--out), transform 1s var(--out); }
.tl.is-in { opacity: 1; transform: none; }
.tl__m { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--faint); }
.tl__m img, .tl__m video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tl__m .alt { opacity: 0; transition: opacity .6s; }
.tl__m .alt.is-on { opacity: 1; }
.tl__cap { display: grid; grid-template-columns: 2.6em 1fr auto; gap: 8px; padding-top: 10px; line-height: 1.3; }
.tl__no, .tl__yr { color: var(--dim); font-variant-numeric: tabular-nums; }
.tl__name b { font-weight: 700; }
.tl__name > span { display: block; color: var(--sub); }

/* work list */
.wlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.wlist a { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0 var(--pad); padding: 11px 0 12px; border-bottom: 1px solid var(--line); }
.wlist .n { grid-column: 1 / 3; color: var(--dim); font-variant-numeric: tabular-nums; }
.wlist .t { grid-column: 3 / 5; font-weight: 700; }
.wlist .s { grid-column: 5 / 7; color: var(--sub); }
.wlist .y { grid-column: 7; text-align: right; color: var(--dim); }
.peek { position: fixed; z-index: 35; left: 0; top: 0; width: 300px; aspect-ratio: 16 / 10; pointer-events: none; opacity: 0; transition: opacity .25s; background: var(--faint); overflow: hidden; }
.peek.is-on { opacity: 1; }
.peek img { width: 100%; height: 100%; object-fit: cover; animation: peekIn .5s var(--out); }
@keyframes peekIn { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }

/* case */
.cs__head { padding: 18vh 0 34px; }
.cs__head .big { grid-column: 1 / -1; }
.cs__brief { grid-column: 3 / 7; margin: 30px 0 0; font-size: clamp(18px, 1.6vw, 26px); line-height: 1.22; letter-spacing: -.012em; }
.cs__meta { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0 16px; margin-bottom: var(--pad); }
.cs__meta dl { margin: 0; display: contents; }
.cs__meta div { min-width: 0; }
.cs__meta dt { color: var(--dim); margin-bottom: 4px; }
.cs__meta dd { margin: 0; }
.cs__meta .c1 { grid-column: 1 / 3; }
.cs__meta .c2 { grid-column: 3 / 5; }
.cs__meta .c3 { grid-column: 5; }
.cs__meta .c4 { grid-column: 6 / 8; }
.cs__meta a:hover { text-decoration: underline; text-underline-offset: 3px; }
.med { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.mi { grid-column: span 2; position: relative; overflow: hidden; background: var(--faint); margin: 0; }
.mi--half { grid-column: span 1; }
.mi img, .mi video { width: 100%; height: 100%; object-fit: cover; }
.rv { position: relative; }
.rv::after { content: ""; position: absolute; inset: -1px; z-index: 3; background: var(--bg); transform-origin: 50% 0; transition: transform 1.1s var(--out); pointer-events: none; }
.rv.is-in::after { transform: scaleY(0); }
.webf { background: var(--faint); border: 1px solid var(--hair); }
.webf__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 34px; padding: 0 12px; font-size: 12px; border-bottom: 1px solid var(--hair); }
/* a long page name stays on one line (phones): the middle cell shrinks and ends in … */
.webf__bar { grid-template-columns: minmax(max-content, 1fr) minmax(0, max-content) minmax(max-content, 1fr); gap: 10px; }
.webf__bar > :nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.webf__dots { display: flex; gap: 5px; }
.webf__dots i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--dim); }
.webf__full { justify-self: end; color: var(--dim); }
.webf__full:hover { color: var(--fg); }
.webf__vp { aspect-ratio: 16 / 10; overflow: auto; background: #fff; overscroll-behavior: contain; scrollbar-width: thin; }
.webf__vp img { height: auto; }
.sl__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.sl__track::-webkit-scrollbar { display: none; }
.sl__track img { flex: 0 0 100%; scroll-snap-align: start; height: auto; }
.sl__bar { display: flex; gap: 14px; align-items: center; height: 38px; padding: 0 10px; background: var(--bg); border-top: 1px solid var(--hair); }
.sl__bar .c { margin-left: auto; color: var(--dim); font-variant-numeric: tabular-nums; }
/* ---------- type specimen (typeface projects; as in the list theme, built by specimen.js) ----------
   colours come from the project (--sbg ground, --sink type, --sacc accent); sizes follow the column (cqw) */
.spec {
  container-type: inline-size;
  --sbg: #141412; --sink: #EEECE4; --sacc: #FF5B2E;
  display: flex; flex-direction: column; gap: 4px;
  flex: none; width: 100%;
}
.spec.is-loading { min-height: 56cqw; background: var(--faint); }
.spec > * { border-radius: 4px; padding: clamp(14px, 2.4cqw, 28px); }
.spec__row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; text-transform: uppercase; letter-spacing: .08em; font-size: calc(var(--fs) - 2px); }
.spec__lbl { text-transform: uppercase; letter-spacing: .08em; font-size: calc(var(--fs) - 2px); margin-bottom: 14px; }

/* 1. hero */
.spec__hero { background: var(--sbg); color: var(--sink); aspect-ratio: 16 / 9; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.spec__hero .spec__row:first-child span:first-child { color: var(--sacc); }
.spec__big { font-family: var(--sfont), "Helvetica Neue", sans-serif; line-height: .8; white-space: nowrap; letter-spacing: 0; margin-left: -.02em; }

/* 2. tester */
.spec__tester { transition: background-color .4s, color .4s; }
.spec__tester[data-theme="acc"] { background: var(--sacc); color: var(--sbg); }
.spec__tester[data-theme="dark"] { background: var(--sbg); color: var(--sink); }
.spec__tester[data-theme="light"] { background: var(--sink); color: var(--sbg); }
.spec__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid currentColor; font-size: calc(var(--fs) - 2px); }
.spec__ctl { display: flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .08em; }
.spec__ctl output { min-width: 4.2em; font-variant-numeric: tabular-nums; }
.spec__ctl input[type=range] { -webkit-appearance: none; appearance: none; width: clamp(70px, 12cqw, 140px); height: 1px; background: currentColor; accent-color: currentColor; }
.spec__ctl input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%; background: currentColor; border: 0; cursor: grab; }
.spec__ctl input[type=range]::-moz-range-thumb { width: 13px; height: 13px; border-radius: 50%; background: currentColor; border: 0; cursor: grab; }
.spec__btn { border: 1px solid currentColor; border-radius: 999px; padding: 2px 10px; color: inherit; }
.spec__btn[aria-pressed="true"] { border-width: 2px; padding: 1px 9px; font-weight: 700; }
.spec__themes { display: flex; gap: 6px; margin-left: auto; }
.spec__sw { width: 18px; height: 18px; border-radius: 50%; border: 1px solid currentColor; }
.spec__sw--acc { background: var(--sacc); } .spec__sw--dark { background: var(--sbg); } .spec__sw--light { background: var(--sink); }
.spec__sw[aria-pressed="true"] { outline: 1px solid currentColor; outline-offset: 2px; }
.spec__text {
  font-family: var(--sfont), "Helvetica Neue", sans-serif;
  font-size: var(--ts); line-height: var(--tl); letter-spacing: var(--tt);
  outline: none; overflow-wrap: anywhere; min-height: 1.2em; cursor: text;
}

/* 3. construction viewer + character set */
.spec__con, .spec__set { background: var(--sbg); color: var(--sink); }
.spec__con { display: grid; grid-template-columns: minmax(0, 1fr) clamp(170px, 26cqw, 260px); gap: 12px 24px; }
.spec__con > .spec__row { grid-column: 1 / -1; }
.spec__gname { color: var(--sacc); white-space: pre; }
.spec__svg { width: 100%; height: auto; display: block; overflow: visible; }
.spec__gl { fill: none; stroke: color-mix(in srgb, var(--sink) 16%, transparent); stroke-width: 1; }
.spec__ht { fill: none; stroke: color-mix(in srgb, var(--sacc) 45%, transparent); stroke-width: 1; }
.spec__ml { fill: none; stroke: color-mix(in srgb, var(--sink) 45%, transparent); stroke-width: 1; }
.spec__ml--d { stroke: color-mix(in srgb, var(--sacc) 70%, transparent); stroke-dasharray: 6 4; }
.spec__mlab { fill: color-mix(in srgb, var(--sink) 60%, transparent); font-family: "Helvetica Neue", Helvetica, sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.spec__ink { fill: var(--sink); transition: d .25s; }
.spec__outl { fill: none; stroke: var(--sacc); stroke-width: 1.6; stroke-linejoin: miter; }
.spec__nodes rect { fill: var(--sbg); stroke: var(--sacc); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.spec__info { display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: start; font-size: calc(var(--fs) - 1px); }
.spec__info dt, .spec__info dd { margin: 0; padding: 7px 0; border-top: 1px solid color-mix(in srgb, var(--sink) 18%, transparent); }
.spec__info dt { color: color-mix(in srgb, var(--sink) 60%, transparent); padding-right: 14px; text-transform: uppercase; letter-spacing: .06em; font-size: calc(var(--fs) - 3px); }
.spec__info dd { overflow-wrap: anywhere; }
.spec__set .spec__row { margin-bottom: 14px; }
.spec__set .spec__row span:last-child { color: color-mix(in srgb, var(--sink) 60%, transparent); text-transform: none; letter-spacing: 0; }
.spec__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(38px, 6.2cqw, 64px), 1fr)); border-left: 1px solid color-mix(in srgb, var(--sink) 14%, transparent); border-top: 1px solid color-mix(in srgb, var(--sink) 14%, transparent); }
.spec__grid .spec__g { border-right: 1px solid color-mix(in srgb, var(--sink) 14%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--sink) 14%, transparent); }
.spec__g { aspect-ratio: 1; background: var(--sbg); color: var(--sink); font-family: var(--sfont), "Helvetica Neue", sans-serif; font-size: clamp(16px, 2.6cqw, 28px); line-height: 1; transition: background-color .15s, color .15s; }
.spec__g:hover, .spec__g:focus-visible { background: var(--sink); color: var(--sbg); outline: none; }
.spec__g.is-on { background: var(--sacc); color: var(--sbg); }

/* 4. waterfall */
.spec__fall { background: var(--sink); color: var(--sbg); overflow: hidden; }
.spec__wf { display: grid; grid-template-columns: 4.5em minmax(0, 1fr); align-items: baseline; gap: 12px; padding: 6px 0; border-top: 1px solid color-mix(in srgb, var(--sbg) 20%, transparent); }
.spec__wfs { font-size: calc(var(--fs) - 3px); letter-spacing: .06em; color: color-mix(in srgb, var(--sbg) 60%, transparent); font-variant-numeric: tabular-nums; }
.spec__wft { font-family: var(--sfont), "Helvetica Neue", sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.1; }

@container (max-width: 560px) {
  .spec__con { grid-template-columns: minmax(0, 1fr); }
  .spec__themes { margin-left: 0; }
}

/* specimen: the tester, construction and waterfall blocks are the same size as the hero (16:9 of the column) */
@container (min-width: 561px) {
  .spec__tester, .spec__con, .spec__fall { aspect-ratio: 16 / 9; overflow: hidden; }
  .spec__tester { display: flex; flex-direction: column; }
  .spec__tester .spec__text { flex: 1; min-height: 0; overflow: auto; scrollbar-width: none; }
  .spec__tester .spec__text::-webkit-scrollbar { display: none; }
  .spec__con { grid-template-rows: auto minmax(0, 1fr); }
  .spec__con .spec__svg { height: 100%; width: 100%; }
  .spec__con .spec__info { overflow: hidden; }
  .spec__fall { display: flex; flex-direction: column; justify-content: space-between; }
  .spec__fall .spec__lbl { margin-bottom: 0; }
}

.nx { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0 var(--pad); margin-top: 80px; padding-top: 12px; border-top: 1px solid var(--line); }
.nx__l { grid-column: 1 / 3; color: var(--dim); }
.nx__t { grid-column: 3 / 6; font-weight: 700; font-size: clamp(28px, 3.4vw, 56px); line-height: .95; letter-spacing: -.035em; }
.nx__t span { display: block; font-weight: 400; color: var(--dim); }
.nx__m { grid-column: 6 / 8; aspect-ratio: 16 / 10; overflow: hidden; background: var(--faint); }
.nx__m img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--out); }
.nx:hover .nx__m img { transform: scale(1.04); }

/* profile */
.pf__row { border-top: 1px solid var(--line); padding: 12px 0 64px; scroll-margin-top: calc(var(--hd) + 10px); }
.pf__lbl { grid-column: 1 / 3; color: var(--dim); }
.pf__lbl b { color: var(--fg); font-weight: 400; margin-left: 10px; }
.pf__body { grid-column: 3 / 8; }
.pf__lead { font-size: clamp(20px, 1.9vw, 30px); line-height: 1.2; letter-spacing: -.015em; max-width: 26em; }
.pf__lead p { margin: 0 0 .7em; }
.bel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-left: 1px solid var(--hair); border-top: 1px solid var(--hair); }
.bel div {
  aspect-ratio: 1.3; padding: 12px; border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
  display: flex; flex-direction: column; justify-content: space-between; font-weight: 700; font-size: clamp(16px, 1.4vw, 22px); line-height: 1.08; letter-spacing: -.02em;
  transition: background-color .3s, color .3s;
}
.bel small { font-weight: 400; font-size: 12px; color: var(--dim); letter-spacing: 0; }
.bel div:hover { background: var(--fg); color: var(--bg); }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 var(--pad); padding: 8px 0; border-bottom: 1px solid var(--hair); }
.rows li > :first-child { grid-column: 1 / 3; font-weight: 700; }
.rows li > :last-child { grid-column: 3 / 6; color: var(--sub); }
.rows a { display: contents; }
.rows a:hover > :first-child { text-decoration: underline; text-underline-offset: 3px; }
.pf__contact { background: var(--fg); color: var(--bg); margin: 0 calc(-1 * var(--pad)); padding: 14px var(--pad) 90px; }
.pf__contact .pf__lbl { color: var(--dim); }
.pf__mail { display: inline-block; margin-top: 34px; font-weight: 700; font-size: clamp(34px, 6vw, 104px); letter-spacing: -.045em; line-height: .95; }
.pf__mail:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.foot { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px var(--pad); padding-top: 60px; color: var(--dim); }
.foot span:first-child { grid-column: 1 / 3; }
.foot span:nth-child(2) { grid-column: 3 / 5; }
.foot span:last-child { grid-column: 5 / 8; }
.foot a:hover { color: var(--fg); }

/* lightboxes */
.lb { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .94); display: grid; place-items: center; padding: 56px 16px 24px; }
.lb[hidden] { display: none; }
.lb video { max-height: 100%; max-width: min(1400px, 100%); }
.lb__x { position: absolute; top: 18px; right: var(--pad); color: #fff; }
.lb--web { padding: 56px 0 0; place-items: stretch; }
.lb__scroll { overflow: auto; height: 100%; }
.lb__scroll img { width: min(1440px, 100%); margin: 0 auto; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1000px) {
  .wgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dock__ov { display: none; }
  .bel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  :root { --pad: 10px; --hd: 52px; --dk: 60px; }
  .hd { grid-template-columns: auto 1fr auto; }
  .hd__logo { grid-column: 1; font-size: 22px; }
  .hd__clock { grid-column: 2; align-items: center; font-size: 12px; }
  .hd__menu { grid-column: 3; }
  .dock { grid-template-columns: auto minmax(0, 1fr) auto; }
  .dock__count { grid-column: 1; }
  .dock__n { font-size: 24px; }
  .dock__of { display: none; }
  .dock__title { grid-column: 2; }
  .dock__go { grid-column: 3; }
  .wgrid { grid-template-columns: 1fr; }
  .g7, .nx, .foot { grid-template-columns: 1fr 1fr; }
  .ctl__row, .cs__brief, .pf__body, .pf__lbl, .nx__l, .nx__t, .nx__m, .foot span { grid-column: 1 / -1 !important; }
  .cs__meta { gap: 12px var(--pad); }
  .cs__meta .c1, .cs__meta .c2 { grid-column: 1 / -1; }
  .cs__meta .c3 { grid-column: 1; }
  .cs__meta .c4 { grid-column: 2; }
  .pf__lbl { margin-bottom: 18px; }
  .wlist a { grid-template-columns: 2.6em 1fr auto; }
  .wlist .n, .wlist .t, .wlist .y { grid-column: auto; }
  .wlist .s { display: none; }
  .mi--half { grid-column: span 2; }
  .peek { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
}

/* rolls + hover pills (extra) */
.cnt { display: block; animation: cntIn .6s var(--out); }
@keyframes cntIn { from { transform: translateY(100%); } }
.dock.is-hot .dock__title .pillt { background-size: 100% 100%; color: #121212; }
.wlist a:hover .pillt, .nx:hover .pillt { background-size: 100% 100%; color: var(--bg); }

/* =========================================================
   MENU — widget board (as version A) growing out of the header button
   ========================================================= */
.wb {
  --tile: #fff; --soft: #b5b5b5; --wline: #dcdcdc; --card2: #e4e4e4; --wbg: rgba(214, 214, 214, .78);
  position: absolute; z-index: 1; top: calc((var(--hd) - 38px) / 2); right: var(--pad);
  width: 38px; height: 38px; border-radius: 8px; overflow: hidden; color: var(--fg); text-align: left;
  display: flex; flex-direction: column; padding: 0 10px 0;
  background: var(--wbg); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .1);
  opacity: 0; pointer-events: none;
  transition: width .7s var(--out), height .7s var(--out), border-radius .6s, opacity .2s .5s;
}
html.dark .wb { --tile: #262626; --soft: #5c5c5c; --wline: #2e2e2e; --card2: #333; --wbg: rgba(58, 58, 58, .78); }
.wb.is-open {
  width: min(360px, calc(100vw - 2 * var(--pad))); height: min(720px, calc(100dvh - var(--dk) - 20px));
  border-radius: 22px; opacity: 1; pointer-events: auto;
  transition: width .75s var(--out), height .75s var(--out), border-radius .6s, opacity .12s;
}
.hd__menu { z-index: 2; }
.hd__menu[aria-expanded="true"] { background: var(--tile, #fff); }
html.dark .hd__menu[aria-expanded="true"] { background: #262626; }
.wb__top, .pages, .dots { opacity: 0; transform: translateY(-14px); transition: opacity .2s, transform .4s var(--out); }
.wb.is-open .wb__top, .wb.is-open .pages, .wb.is-open .dots { opacity: 1; transform: none; transition: opacity .45s .22s, transform .7s .18s var(--out); }
.wb__top { flex: 0 0 auto; height: 58px; display: flex; align-items: center; padding-top: 0; }
.wb__logo {
  width: 38px; height: 38px; border-radius: 8px; background: #1a1a1a; color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: 12.5px; letter-spacing: -.03em;
}
.wb .pages {
  flex: 1; min-height: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 -10px; overscroll-behavior: contain;
}
.wb .pages::-webkit-scrollbar { display: none; }
.wb .page {
  flex: 0 0 100%; scroll-snap-align: start; padding: 0 10px 2px; overflow-y: auto; scrollbar-width: none;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start;
}
.wb .page::-webkit-scrollbar { display: none; }
.wb .dots { flex: 0 0 auto; display: flex; justify-content: center; gap: 7px; padding: 12px 0 14px; }
.wb .dots button { width: 5px; height: 5px; border-radius: 50%; background: rgba(0, 0, 0, .18); transition: background-color .3s, transform .3s; }
.wb .dots button.is-on { background: var(--fg); transform: scale(1.2); }
html.dark .wb .dots button { background: rgba(255, 255, 255, .2); }
html.dark .wb .dots button.is-on { background: var(--fg); }

.w {
  position: relative; border-radius: 10px; background: var(--tile); color: var(--fg); overflow: hidden; text-align: left;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 12px;
  opacity: 0; transform: translateY(14px); transition: transform .45s var(--out), background-color .45s;
}
.wb.is-open .w { opacity: 1; transform: none; transition: opacity .5s calc(.28s + var(--d, 0s)), transform .8s calc(.24s + var(--d, 0s)) var(--out), background-color .45s; }
.wb.is-open .w:hover { transform: scale(.975); transition-delay: 0s; }
.w--sq { aspect-ratio: 1; }
.w--wide { grid-column: 1 / -1; min-height: 66px; justify-content: center; }
.w__lbl { display: flex; flex-direction: column; font-size: 14px; line-height: 1.3; }
.w__lbl b { font-weight: 400; }
.w__lbl span { color: var(--dim); }
.w__lbl--on { position: relative; z-index: 1; color: #fff; }
.w__big { position: absolute; top: 10px; left: 12px; font-size: 40px; letter-spacing: -.04em; line-height: 1; color: var(--soft); }
.w__ring { position: absolute; top: 12px; left: 12px; width: 44px; height: 44px; animation: spinY 7s linear infinite; }
html.dark .w__ring { filter: invert(1); }
.w__list { position: absolute; top: 16px; left: 12px; right: 12px; display: grid; gap: 7px; }
.w__list i { height: 1px; background: var(--wline); }
.w__list i:nth-child(odd) { margin-right: 30%; background: var(--soft); }
.w--reel { grid-column: 1 / -1; aspect-ratio: 16 / 9; background: #111; }
.w--reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.w__play {
  position: absolute; right: 10px; bottom: 10px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(20, 20, 20, .7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform .4s var(--out);
}
.w__play svg { width: 16px; fill: #fff; margin-left: 2px; }
.w--reel:hover .w__play { transform: scale(1.1); }

.slide2 {
  grid-column: 1 / -1; position: relative; height: 66px; border-radius: 33px; background: rgba(0, 0, 0, .07);
  display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: none;
  opacity: 0; transform: translateY(14px);
}
html.dark .slide2 { background: rgba(255, 255, 255, .07); }
.wb.is-open .slide2 { opacity: 1; transform: none; transition: opacity .5s calc(.28s + var(--d, 0s)), transform .8s calc(.24s + var(--d, 0s)) var(--out); }
.slide2__knob {
  position: absolute; left: 5px; top: 5px; width: 56px; height: 56px; border-radius: 50%; background: var(--tile); color: var(--fg);
  display: grid; place-items: center; z-index: 1; cursor: grab; touch-action: none;
}
.slide2__knob svg { width: 21px; }
.slide2.is-drag .slide2__knob { cursor: grabbing; }
.slide2:not(.is-drag) .slide2__knob { transition: transform .6s var(--out); }
.slide2__txt {
  padding-left: 40px; font-size: 14px;
  background: linear-gradient(90deg, var(--soft) 0%, var(--soft) 40%, var(--fg) 50%, var(--soft) 60%, var(--soft) 100%);
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 2.6s linear infinite;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

.w--clock { aspect-ratio: 1; background: none; padding: 0; }
.clock { position: absolute; inset: 0; border-radius: 50%; background: var(--tile); box-shadow: inset 0 0 0 10px var(--tile), inset 0 0 0 11px var(--wline); }
.clock i { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.clock i::after { content: ""; position: absolute; left: -2px; width: 4px; height: 4px; border-radius: 50%; background: var(--fg); }
.clock i.clock__h::after { top: calc(-1 * var(--rh, 22px)); }
.clock i.clock__m::after { top: calc(-1 * var(--rm, 40px)); width: 3px; left: -1.5px; height: 9px; border-radius: 2px; }
.clock i.clock__s::after { top: calc(-1 * var(--rm, 40px) - 4px); width: 1px; left: -.5px; height: 6px; border-radius: 0; }
.clock__txt { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 14px; line-height: 1.25; }
.clock__txt b { font-weight: 400; }
.clock__txt span { color: var(--dim); font-variant-numeric: tabular-nums; }

.tog { position: absolute; top: 14px; left: 12px; width: 46px; height: 26px; border-radius: 13px; background: var(--card2); }
.tog i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--fg); transition: transform .5s var(--out); }
html.dark .tog i { transform: translateX(20px); }
@keyframes spinY { to { transform: perspective(200px) rotateY(360deg); } }

/* selection widget */
.w--sel { grid-column: 1 / -1; justify-content: flex-start; gap: 0; padding: 12px; }
.sel__h { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; margin-bottom: 12px; }
.sel__h b { font-weight: 400; }
.sel__h span { color: var(--dim); }
.sel__lbl { font-size: 12px; color: var(--dim); margin: 0 0 6px; }
.sel__chips { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.sel__chips button {
  height: 26px; padding: 0 10px; border-radius: 6px; background: var(--card2); color: var(--fg); font-size: 12.5px;
  transition: background-color .25s, color .25s;
}
.sel__chips button:hover { background: var(--soft); }
.sel__chips button.is-on { background: var(--fg); color: var(--tile); }
.sel__go {
  display: flex; justify-content: space-between; align-items: center; height: 40px; padding: 0 12px; border-radius: 8px;
  background: #121212; color: #fff; font-size: 14px; transition: transform .3s var(--out);
}
html.dark .sel__go { background: #fff; color: #121212; }
.sel__go:hover { transform: scale(.98); }
/* work page: discipline filter line */
.ctl__g--disc { flex-basis: 100%; flex-wrap: wrap; gap: 4px 14px; }
.sel__disc {
  flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -12px 12px; padding: 0 12px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 24px), transparent);
          mask: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 24px), transparent);
}
.sel__disc::-webkit-scrollbar { display: none; }
.sel__disc button { flex: 0 0 auto; white-space: nowrap; }

/* selection: chips wrap (no cut-off row); Index + clock row a bit shorter to make room */
.sel__disc {
  flex-wrap: wrap; overflow: visible; margin: 0 0 12px; padding: 0;
  -webkit-mask: none; mask: none;
}
.sel__chips { gap: 4px; }
.sel__chips button { height: 24px; padding: 0 9px; font-size: 12px; }
.wb.is-open { height: min(800px, calc(100dvh - var(--dk) - 20px)); }
.wb .page > a.w--sq[href*="view=list"], .wb .w--clock { aspect-ratio: 1.25; }
.wb .clock { inset: 0; margin: auto; width: auto; height: 100%; aspect-ratio: 1; right: 0; left: 0; }
.sel__h { margin-bottom: 8px; }
.sel__lbl { margin-bottom: 4px; }
.sel__chips, .sel__disc { margin-bottom: 10px; }
.sel__chips button { height: 22px; }
.sel__go { height: 36px; }

/* =========================================================
   FORMAT-STYLE B&W (after format.obys.agency): flat, square corners,
   no blur / shadow, grey "(labels)" above black titles, underlined actives
   ========================================================= */
:root { --char: #222; }

/* title highlight + sheet labels: square strips instead of pills */
.pillt { border-radius: 0; padding: .06em .35em; margin: 0 -.35em; }
.pc__lbl { border-radius: 0; padding: .2em .45em; }

/* header menu button */
.hd__menu { border-radius: 0; background: var(--fg); color: var(--bg); width: 36px; height: 36px; }
html.dark .hd__menu { background: var(--fg); }
.hd__menu:hover { transform: none; background: var(--dim); }
.hd__menu i { left: 10px; right: 10px; }
.hd__menu[aria-expanded="true"], html.dark .hd__menu[aria-expanded="true"] { background: #fff; color: #121212; }

/* dim: flat */
.dim { background: rgba(18, 18, 18, .55); -webkit-backdrop-filter: none; backdrop-filter: none; }

/* panel: flat charcoal sheet, square */
.wb, html.dark .wb {
  --tile: #fff; --soft: #9a9a9a; --wline: #121212; --card2: #fff; --wbg: var(--char);
  --fg: #121212; --dim: #8a8a8a;
  background: var(--char); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none;
  border-radius: 0; top: calc((var(--hd) - 36px) / 2); width: 36px; height: 36px; padding: 0 6px;
}
.wb.is-open { border-radius: 0; }
.wb__top { height: 48px; }
.wb__logo { border-radius: 0; background: #fff; color: #121212; width: auto; height: auto; padding: .15em .45em; font-size: 13px; }
.wb .pages { margin: 0 -6px; }
.wb .page { gap: 6px; padding: 0 6px 2px; }
.wb .dots { padding: 10px 0 10px; gap: 6px; }
.wb .dots button, html.dark .wb .dots button { width: 6px; height: 6px; border-radius: 0; background: #555; }
.wb .dots button.is-on, html.dark .wb .dots button.is-on { background: #fff; transform: none; }

/* tiles */
.w { border-radius: 0; padding: 10px; color: #121212; }
.wb.is-open .w:hover { transform: none; background: #121212; color: #fff; }
.wb.is-open .w:hover .w__big { color: #fff; }
.wb.is-open .w:hover .w__ring { filter: invert(1); }
.wb.is-open .w:hover .w__list i { background: #555; }
.w__lbl { flex-direction: column-reverse; font-size: 13px; line-height: 1.2; }
.w__lbl b { font-size: 15px; letter-spacing: -.01em; }
.w__lbl span { font-size: 11px; margin-bottom: 2px; }
.w__lbl span::before { content: "("; }
.w__lbl span::after { content: ")"; }
.w__big { color: #121212; font-size: 44px; letter-spacing: -.05em; top: 6px; left: 9px; }
.w__ring, html.dark .w__ring { filter: none; width: 40px; height: 40px; top: 10px; left: 10px; }
.w__list i, .w__list i:nth-child(odd) { background: #121212; }
.w__list i:nth-child(even) { background: #bdbdbd; }
.w--wide { min-height: 56px; }

/* slide to email: square track + knob */
.slide2, html.dark .slide2 { border-radius: 0; background: #fff; height: 56px; }
.slide2__knob { border-radius: 0; background: #121212; color: #fff; width: 46px; height: 46px; }
.slide2__txt { background: linear-gradient(90deg, #9a9a9a 0%, #9a9a9a 40%, #121212 50%, #9a9a9a 60%, #9a9a9a 100%); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; font-size: 13px; }

/* clock: white disc on charcoal, black dots, no ring line */
.clock { box-shadow: none; background: #fff; }
.clock i::after { background: #121212; }
.clock i.clock__h::after { width: 10px; height: 10px; left: -5px; border-radius: 50%; }
.clock i.clock__m::after { width: 6px; height: 6px; left: -3px; border-radius: 50%; }
.clock i.clock__s::after { width: 1px; height: 26px; left: -.5px; border-radius: 0; }
.clock__txt { font-size: 13px; color: #121212; }
.clock__txt span { color: #8a8a8a; }

/* appearance toggle: square */
.tog { border-radius: 0; background: #e6e6e6; }
.tog i { border-radius: 0; background: #121212; }

/* selection: text options, underline = selected */
.w--sel { padding: 10px; }
.sel__h { font-size: 15px; margin-bottom: 10px; }
.sel__h span { font-size: 11px; }
.sel__h span::before { content: "("; }
.sel__h span::after { content: ")"; }
.sel__lbl { font-size: 11px; margin-bottom: 3px; }
.sel__lbl::before { content: "("; }
.sel__lbl::after { content: ")"; }
.sel__chips, .sel__disc { gap: 2px 12px; margin-bottom: 10px; }
.sel__chips button { height: auto; padding: 0; border-radius: 0; background: none; color: #8a8a8a; font-size: 13px; line-height: 1.35; }
.sel__chips button:hover { background: none; color: #121212; }
.sel__chips button.is-on { background: none; color: #121212; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.sel__go, html.dark .sel__go { border-radius: 0; height: 34px; background: #121212; color: #fff; font-size: 13px; padding: 0 10px; }
.sel__go:hover { transform: none; background: #555; }

/* work-page filter counts as (n) */
.ctl__g sup { font-size: inherit; vertical-align: baseline; margin-left: 3px; color: var(--dim); }
.ctl__g sup::before { content: "("; }
.ctl__g sup::after { content: ")"; }
.ctl__g button.is-on { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* webframe dots + slider buttons: square */
.webf__dots i { border-radius: 0; }
.clock i.clock__s::after { top: calc(-1 * var(--rm, 40px) - 14px); height: calc(var(--rm, 40px) + 14px); width: 1px; left: -.5px; }
.clock__txt { z-index: 1; }
.clock__txt b, .clock__txt span { background: #fff; padding: 0 3px; }
.ctl__g button sup { font-size: .85em; vertical-align: baseline; margin-left: 3px; color: var(--dim); }
.clock i.clock__s::after { top: calc(-.62 * var(--rm, 40px)); height: calc(.62 * var(--rm, 40px)); }
.clock i.clock__s::after { top: calc(-1 * var(--rm, 40px) - 14px); height: 4px; width: 4px; left: -2px; border-radius: 50%; }
html .wb.is-open, html.dark .wb.is-open { width: min(360px, calc(100vw - 2 * var(--pad))); height: min(800px, calc(100dvh - var(--dk) - 20px)); border-radius: 0; opacity: 1; pointer-events: auto; }

/* appearance on page 1: slim full-width row; tiles a touch shorter to make room */
.w--slim { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; min-height: 0; padding: 9px 10px; }
.w--slim .w__lbl { flex-direction: row; align-items: baseline; gap: 8px; }
.w--slim .w__lbl span { margin: 0; }
.w--slim .tog { position: relative; top: auto; left: auto; flex: 0 0 auto; }
.wb.is-open .w--slim:hover .tog { background: #555; }
.wb.is-open .w--slim:hover .tog i { background: #fff; }
.wb .page > a.w--sq[href="#/work"], .wb .page > a.w--sq[href="#/profile"] { aspect-ratio: 1.2; }
.wb .page > a.w--sq[href*="view=list"], .wb .w--clock { aspect-ratio: 1.35; }
.slide2, html.dark .slide2 { height: 46px; }
.slide2__knob { width: 36px; height: 36px; }

/* menu panel fits its content; no page dots */
.wb .dots { padding: 8px 0 4px; }
html .wb.is-open, html.dark .wb.is-open { height: min(var(--wbh, 800px), calc(100dvh - var(--dk) - 20px)); }
html .wb.is-measure, html.dark .wb.is-measure { transition: none !important; width: min(360px, calc(100vw - 2 * var(--pad))) !important; height: auto !important; }

/* Profile tile: a white disc like the clock, text turning slowly (after format.obys.agency .side-a__spin) */
.w--disc, .wb.is-open .w--disc:hover { background: none; padding: 0; aspect-ratio: 1.2; }
.disc {
  position: absolute; top: 0; bottom: 0; left: 0; right: 0; margin: auto; height: 100%; aspect-ratio: 1;
  border-radius: 50%; overflow: hidden; background: #fff; color: #121212; transition: background-color .35s, color .35s;
}
.disc__spin { position: absolute; inset: 0; animation: recSpin 100s linear infinite; }
@keyframes recSpin { to { transform: rotate(360deg); } }
.disc__txt {
  position: absolute; left: 50%; top: 50%; width: 140%; transform: translate(-50%, -50%) rotate(-16deg);
  text-align: center; text-transform: uppercase; font-size: 13px; line-height: .92; letter-spacing: -.02em; color: #121212;
}
.disc__lbl {
  position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 13px; line-height: 1.25;
}
.disc__lbl b, .disc__lbl span { background: #fff; padding: 0 3px; transition: background-color .35s; }
.disc__lbl b { font-weight: 400; }
.disc__lbl span { color: #8a8a8a; }
.wb.is-open .w--disc:hover .disc { background: #121212; color: #fff; }
.wb.is-open .w--disc:hover .disc__txt { color: #fff; }
.wb.is-open .w--disc:hover .disc__lbl b, .wb.is-open .w--disc:hover .disc__lbl span { background: #121212; }
.wb .page > a.w--disc { aspect-ratio: 1.2; }
.disc__txt { width: auto; white-space: nowrap; transform: translate(-50%, -50%); text-transform: none; font-size: 15px; line-height: 1.2; letter-spacing: -.01em; }
.wb .page > a.w--sq[href*="view=list"], .wb .w--clock { aspect-ratio: 1.2; }
.wb .page > a.w--sq[href="#/profile"] { aspect-ratio: 1.2; }
.w__ring--spin { animation: recSpin 24s linear infinite; }

/* calendar tile (replaces Work on page 1) */
.wb .w--cal { aspect-ratio: 1.2; cursor: default; }
.cal {
  position: absolute; top: 8px; left: 9px; right: 9px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  font-size: 9px; line-height: 11px; text-align: center; font-variant-numeric: tabular-nums; color: #121212;
}
.cal b { font-weight: 400; color: #8a8a8a; margin-bottom: 1px; }
.cal i { font-style: normal; height: 11px; }
.cal i.is-past { color: #bdbdbd; }
.cal i.is-today { background: #121212; color: #fff; }
.wb.is-open .w--cal:hover { background: #fff; color: #121212; }

/* Index tile: evenly ruled lines, all the same weight, length and spacing */
.w__list { top: 12px; left: 10px; right: 10px; height: auto; display: block; background: none; }
.w__list i, .w__list i:nth-child(odd), .w__list i:nth-child(even) { display: block; height: 12px; margin: 0; background: none; border-top: 1px solid #121212; }
.wb.is-open .w:hover .w__list i { border-top-color: #fff; background: none; }

/* calendar = just today's day, set like the old "21" */
.cal { display: block; top: 6px; left: 9px; right: auto; font-size: 44px; line-height: 1; letter-spacing: -.05em; text-align: left; color: #121212; }
.cal { font-size: 78px; line-height: .82; letter-spacing: -.06em; top: 10px; left: 7px; }

/* header menu button: outline instead of filled */
.hd__menu, html.dark .hd__menu { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }
.hd__menu:hover, html.dark .hd__menu:hover { background: var(--fg); color: var(--bg); }
.hd__menu[aria-expanded="true"], html.dark .hd__menu[aria-expanded="true"] { background: #fff; color: #121212; box-shadow: inset 0 0 0 1px #fff; }
.dim { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

/* =========================================================
   TEST: full-screen menu overlay (remove class "menu-full" on <html> to go back to the panel)
   ========================================================= */
html.menu-full .wb { transition: width .7s var(--out), height .7s var(--out), top .7s var(--out), right .7s var(--out), opacity .2s .5s; }
html.menu-full .wb.is-open, html.menu-full.dark .wb.is-open {
  top: 0; right: 0; width: 100vw; height: 100dvh; padding: var(--hd) var(--pad) 18px;
  transition: width .75s var(--out), height .75s var(--out), top .75s var(--out), right .75s var(--out), opacity .12s;
}
html.menu-full .wb__top { display: none; }
html.menu-full .wb .pages { margin: 0 calc(-1 * var(--pad)); }
html.menu-full .wb .page { padding: 18px max(var(--pad), calc((100% - 1040px) / 2)) 4px; align-content: center; }
html.menu-full.menu-open .hd__logo { position: relative; z-index: 2; color: #fff; }
@media (min-width: 900px) {
  html.menu-full .wb .page { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  html.menu-full .wb .slide2, html.menu-full .wb .w--sel, html.menu-full .wb .w--slim, html.menu-full .wb .w--wide { grid-column: span 2; }
  html.menu-full .wb .page { grid-auto-flow: row dense; }
  html.menu-full .wb .slide2 { align-self: start; }
}
@media (min-width: 900px) {
  html.menu-full .wb .page:first-child {
    grid-template-areas: "idx pro cal clk" "sel sel sel sel" "mail mail thm thm";
  }
  html.menu-full .wb .page:first-child > a[href*="view=list"] { grid-area: idx; }
  html.menu-full .wb .page:first-child > a[href="#/profile"] { grid-area: pro; }
  html.menu-full .wb .page:first-child > .w--cal { grid-area: cal; }
  html.menu-full .wb .page:first-child > .w--clock { grid-area: clk; }
  html.menu-full .wb .page:first-child > .w--sel { grid-area: sel; }
  html.menu-full .wb .page:first-child > .slide2 { grid-area: mail; align-self: stretch; height: auto; min-height: 46px; }
  html.menu-full .wb .page:first-child > .w--slim { grid-area: thm; }
  html.menu-full .wb .sel__disc { max-width: none; }
}

/* =========================================================
   DOCK v2 — count · title · project index · controls · actions
   ========================================================= */
.dock {
  grid-template-columns: auto minmax(160px, 1.1fr) minmax(0, 2fr) auto auto auto;
  gap: 0 28px;
}
.dock__count { grid-column: auto; min-width: 4.6em; }
.dock__title { grid-column: auto; }
.dock__ov, .dock__go { grid-column: auto; }
.dock__prog { display: none; }

/* project index: 21 hairline ticks, current one fills with autoplay */
.dock__seg { position: relative; display: flex; gap: 3px; height: 28px; align-items: stretch; min-width: 0; }
.dock__seg > button { flex: 1 1 0; min-width: 0; position: relative; height: 100%; }
.dock__seg > button::before, .dock__seg > button i {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px;
}
.dock__seg > button::before { background: #3a3a3a; transition: background-color .25s, height .25s, margin .25s; }
.dock__seg > button:hover::before { background: #8a8a8a; height: 6px; margin-top: -3px; }
.dock__seg > button i { display: block; background: #fff; transform-origin: 0 0; transform: scaleX(0); }
.dock__seg > button.is-on::before { background: #6a6a6a; height: 6px; margin-top: -3px; }
.dock__seg > button.is-on i { height: 6px; margin-top: -3px; }
body:not(.on-home) .dock__seg > button.is-on i { transform: scaleX(1); }
.dock__tip {
  position: absolute; bottom: calc(100% + 10px); left: 0; transform: translateX(-50%); pointer-events: none;
  background: #fff; color: #121212; font-size: 12px; line-height: 1; padding: 6px 8px; white-space: nowrap;
  opacity: 0; transition: opacity .2s;
}
.dock__seg.is-tip .dock__tip { opacity: 1; }

/* square outline icon buttons (same language as the menu button) */
.dock__ctl { display: flex; gap: 6px; }
.dock__ic {
  width: 36px; height: 36px; display: grid; place-items: center; color: #fff; font-size: 15px;
  box-shadow: inset 0 0 0 1px #4a4a4a; transition: background-color .25s, color .25s, box-shadow .25s;
}
.dock__ic:hover { background: #fff; color: #121212; box-shadow: inset 0 0 0 1px #fff; }
.dock__play { grid-auto-flow: column; gap: 4px; place-content: center; }
.dock__play i { display: block; width: 2px; height: 11px; background: currentColor; }
.dock__play.is-paused { gap: 0; }
.dock__play.is-paused i:first-child { width: 0; height: 0; background: none; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 2px; }
.dock__play.is-paused i:last-child { display: none; }

/* actions: Overview = outline, View project = solid white */
.dock__btn { height: 36px; display: inline-flex; align-items: center; gap: 10px; padding: 0 14px; transition: background-color .25s, color .25s, box-shadow .25s; }
.dock__btn::after { display: none; }
.dock__ov { box-shadow: inset 0 0 0 1px #4a4a4a; }
.dock__ov:hover, .dock__ov[aria-pressed="true"] { background: #fff; color: #121212; box-shadow: inset 0 0 0 1px #fff; }
.dock__go { background: #fff; color: #121212; justify-self: end; }
.dock__go span { transition: transform .35s var(--out); }
.dock__go:hover span { transform: translateX(4px); }

/* what shows where */
.dock:not(.has-seg) .dock__seg, .dock:not(.has-seg) .dock__ctl { visibility: hidden; }
body:not(.on-home) .dock__play, body:not(.on-home) .dock__ov { display: none; }

@media (max-width: 1000px) {
  .dock { grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 0 16px; }
  .dock__seg, .dock__ov { display: none; }
  .dock__prog { display: block; }
}
@media (max-width: 700px) {
  .dock { grid-template-columns: auto minmax(0, 1fr) auto; gap: 0 12px; }
  .dock__ctl { display: none; }
  .dock__go { padding: 0 12px; }
}

/* =========================================================
   LAYOUT SWAP — dock at the top, menu button bottom centre
   ========================================================= */
:root { --hd: var(--dk); --mb: 64px; }   /* --mb = bottom band reserved for the menu button */

/* header no longer a bar: just the logo (over the dock) + the floating menu */
.hd { background: none; pointer-events: none; height: var(--dk); z-index: 46; }
.hd > * { pointer-events: auto; }
.hd__logo { color: #fff; }

/* dock = top bar */
.dock { top: 0; bottom: auto; padding-left: calc(var(--pad) + 74px); }
.dock__prog { top: auto; bottom: 0; }
.dock__tip { bottom: auto; top: calc(100% + 10px); }

/* page areas */
.stage { top: calc(var(--dk) + var(--pad)); bottom: var(--mb); }
.view { padding-bottom: calc(var(--mb) + 80px); }
.pf__row { scroll-margin-top: calc(var(--dk) + 10px); }

/* menu button: solid square, bottom centre */
.hd__menu, html.dark .hd__menu {
  position: fixed; left: 50%; bottom: calc((var(--mb) - 40px) / 2); margin-left: -20px; width: 40px; height: 40px;
  background: #121212; color: #fff; box-shadow: inset 0 0 0 1px #121212;
}
.hd__menu:hover, html.dark .hd__menu:hover { background: #fff; color: #121212; box-shadow: inset 0 0 0 1px #121212; }
html.dark .hd__menu { background: #fff; color: #121212; box-shadow: inset 0 0 0 1px #fff; }
html.dark .hd__menu:hover { background: #121212; color: #fff; box-shadow: inset 0 0 0 1px #fff; }
.hd__menu[aria-expanded="true"], html.dark .hd__menu[aria-expanded="true"] { background: #fff; color: #121212; box-shadow: inset 0 0 0 1px #fff; }
.hd__menu i { left: 12px; right: 12px; }

/* panel grows upward out of the button */
.wb, html.dark .wb {
  position: fixed; top: auto; right: auto; left: 50%; bottom: calc((var(--mb) - 40px) / 2);
  transform: translateX(-50%); width: 40px; height: 40px; padding: 0 6px 52px;
}
html .wb.is-open, html.dark .wb.is-open { height: min(var(--wbh, 800px), calc(100dvh - var(--dk) - var(--mb) / 2 - 12px)); }
.wb__top { height: 6px; }
.wb__top, .pages, .dots { transform: translateY(14px); }
.wb .dots { padding: 8px 0 0; }
@media (max-width: 700px) {
  .dock { padding-left: calc(var(--pad) + 62px); gap: 0 12px; }
  .dock__count { min-width: 0; }
  .dock__go { width: 40px; height: 40px; padding: 0; justify-content: center; font-size: 0; }
  .dock__go span { font-size: 16px; }
}

/* between projects: no floating name labels (only in Overview) */
.stage.is-zoomed:not(.is-ov) .pc__lbl { opacity: 0; transition: none; }

/* dock = same charcoal as the menu panel, both themes */
.dock, html.dark .dock { background: var(--char); }
.loader, html.dark .loader { background: var(--char); }

/* OS-style grabber at the top of the open menu (click = close) */
.wb__top { height: 20px; justify-content: center; align-items: center; }
.wb__grab { position: relative; width: 56px; height: 20px; }
.wb__grab::before { content: ""; position: absolute; left: 10px; right: 10px; top: 50%; height: 4px; margin-top: -2px; background: #6a6a6a; transition: background-color .25s, left .3s var(--out), right .3s var(--out); }
.wb__grab:hover::before { background: #fff; left: 6px; right: 6px; }

/* =========================================================
   SOFT CORNERS — small radii on the UI only (images stay square).
   Delete this block to go back to square.
   ========================================================= */
:root { --r-s: 2px; --r: 3px; --r-l: 5px; }
.hd__menu, .dock__ic, .dock__btn, .dock__tip,
.sel__go, .slide2__knob, .tog { border-radius: var(--r) !important; }
.wb, .wb.is-open, .w, .slide2 { border-radius: var(--r-l) !important; }
.wb .w, .wb .slide2 { border-radius: var(--r) !important; }
.tog i, .wb__grab::before, .pillt { border-radius: var(--r-s) !important; }
.wb .dots button { border-radius: 50% !important; }
.cal { letter-spacing: -.14em; }

/* TRY: bold tile labels in the menu */
.wb .w__lbl b, .wb .sel__h b { font-weight: 700; letter-spacing: -.01em; }


/* =========================================================
   MENU PAGE 1 ORDER: logo · clock / index · profile / calendar · appearance /
   email / selection. Spinning l1l2 logo = a white disc the size of the clock.
   ========================================================= */
.wb .w--logo { aspect-ratio: 1.2; background: none; padding: 0; }
.lgd { position: absolute; inset: 0; margin: auto; height: 100%; aspect-ratio: 1; border-radius: 50%; background: #fff; display: grid; place-items: center; transition: background-color .35s; }
.lgd__img { width: 62%; height: 62%; animation: recSpin 24s linear infinite; transition: filter .35s; }
.wb.is-open .w--logo:hover { background: none; }
.wb.is-open .w--logo:hover .lgd { background: #121212; }
.wb.is-open .w--logo:hover .lgd__img { filter: invert(1); }
/* appearance as a tile: toggle top-left, label at the bottom */
.wb .w--theme { aspect-ratio: 1.2; }
.wb .w--theme .tog { position: absolute; top: 10px; left: 10px; }
.wb.is-open .w--theme:hover .tog { background: #555; }
.wb.is-open .w--theme:hover .tog i { background: #fff; }
.wb .page > .w--cal, .wb .page > .w--theme { aspect-ratio: 1.2; }
/* six small tiles a bit shorter so page 1 fits without scrolling */
.wb .page > .w--logo, .wb .page > .w--clock, .wb .page > a.w--sq, .wb .page > .w--cal, .wb .page > .w--theme { aspect-ratio: 1.5; }
.cal { font-size: 66px; }
.wb .page > a.w--sq[href*="view=list"], .wb .page > a.w--sq[href="#/profile"] { aspect-ratio: 1.5; }
/* logo tile: the 3D coin-flip l1l2 logo (as the old Profile tile), not a flat spin */
.lgd { perspective: 400px; }
.lgd__img { width: 64%; height: 64%; animation: lgFlip 7s linear infinite; backface-visibility: visible; }
@keyframes lgFlip { to { transform: rotateY(360deg); } }
@media (prefers-reduced-motion: reduce) { .lgd__img { animation: none; } }
/* phones: tiles are wider, so shorter ratio to keep page 1 unscrolled */
@media (max-width: 700px) {
  .wb .page > .w--logo, .wb .page > .w--clock, .wb .page > a.w--sq[href*="view=list"], .wb .page > a.w--sq[href="#/profile"], .wb .page > .w--cal, .wb .page > .w--theme { aspect-ratio: 1.75; }
}

/* logo tile: just the logo, white, as big as the clock disc (no white circle) */
.lgd { background: none !important; }
.lgd__img { width: 100%; height: 100%; filter: invert(1); }
.wb.is-open .w--logo:hover .lgd { background: none; }
.wb.is-open .w--logo:hover .lgd__img { filter: invert(1); opacity: .7; }
/* the ring sits at 70% of the svg's box → scale the image so the ring = clock diameter */
.lgd { overflow: visible; }
.lgd__img { width: 143.7%; height: 143.7%; max-width: none; flex: none; }
.lgd__img { height: auto; aspect-ratio: 1; }
.lgd__img { position: absolute; left: 50%; top: 50%; translate: -50% -50%; }

/* page 1: logo · Index · Profile in one row of three squares (logo ≈ clock size),
   then email, Appearance (slim, same height as email), Selection, calendar + clock */
.wb .w3 { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: inherit; }
.wb .w3 > .w--logo, .wb .w3 > a.w--sq[href*="view=list"], .wb .w3 > a.w--sq[href="#/profile"] { aspect-ratio: 1; }
.wb .w3 .w__list i { height: 10px; }
.wb .page > .w--slim { height: 46px; min-height: 0; padding: 0 10px; }
.wb .page > .w--slim .tog { position: relative; top: auto; left: auto; }
@media (max-width: 700px) {
  .wb .page > .w--cal, .wb .page > .w--clock { aspect-ratio: 1.4; }
}

/* logo alone on the first line (left half, same size as the clock); Index + Profile on their own line */
.wb .page > .w--logo { grid-column: 1 / -1; justify-self: start; width: calc((100% - 6px) / 2); aspect-ratio: 1.5; }
/* Index + Profile row: shorter, Index shows 3 lines */
.wb .page > a.w--sq[href*="view=list"], .wb .page > a.w--sq[href="#/profile"] { aspect-ratio: 2.2; }
.wb .page > a.w--sq[href*="view=list"] .w__list i:nth-child(n+4) { display: none; }
@media (max-width: 700px) {
  .wb .page > a.w--sq[href*="view=list"], .wb .page > a.w--sq[href="#/profile"] { aspect-ratio: 2.4; }
  .wb .page > .w--logo, .wb .page > .w--cal, .wb .page > .w--clock { aspect-ratio: 2; }
  .cal { font-size: 42px; }
}

/* clock dots scale with the disc: seconds 6px inside the rim (--rs set in JS) */
.clock i.clock__s::after { top: calc(-1 * var(--rs, 50px)); }
@media (max-width: 700px) { .wb .clock__txt { font-size: 10.5px; } }

/* logo tile removed (2026-11-13): Index + Profile back to full tiles with all 6 lines */
.wb .page > a.w--sq[href*="view=list"], .wb .page > a.w--sq[href="#/profile"] { aspect-ratio: 1.5; }
.wb .page > a.w--sq[href*="view=list"] .w__list i:nth-child(n+4) { display: block; }
@media (max-width: 700px) {
  .wb .page > a.w--sq[href*="view=list"], .wb .page > a.w--sq[href="#/profile"] { aspect-ratio: 1.75; }
  .wb .page > .w--cal, .wb .page > .w--clock { aspect-ratio: 1.6; }
  .cal { font-size: 54px; }
  .wb .clock__txt { font-size: 12px; }
}
@media (max-width: 700px) { .wb .page > a.w--sq[href*="view=list"] .w__list i:nth-child(n+5) { display: none; } }

/* =========================================================
   TEST: BIG OVERLAY MENU — <html class="menu-big">.
   Remove the class to go back to the small panel.
   ========================================================= */
html.menu-big .wb { transition: width .85s var(--out), height .85s var(--out), bottom .85s var(--out), border-radius .6s, opacity .2s .65s; }
html.menu-big .wb.is-open, html.menu-big.dark .wb.is-open {
  width: 100vw; height: calc(100dvh - var(--dk)); bottom: 0; border-radius: 0 !important; padding: 0 0 var(--mb);
  transition: width .85s var(--out), height .85s var(--out), bottom .85s var(--out), opacity .12s;
}
html.menu-big .wb__top { height: 30px; }
html.menu-big .wb .pages { margin: 0; flex: 1 1 auto; min-height: 0; }
html.menu-big .wb .page { padding: 6px max(var(--pad), calc((100% - 1360px) / 2)) 10px; gap: 10px; align-content: center; }
html.menu-big .wb .dots { padding: 0 0 6px; }
html.menu-big .wb .dots button { width: 8px; height: 8px; }

/* type */
html.menu-big .wb .w { padding: 18px; }
html.menu-big .wb .w__lbl b, html.menu-big .wb .sel__h b { font-size: clamp(30px, 3.4vw, 56px); font-weight: 700; letter-spacing: -.04em; line-height: .95; }
html.menu-big .wb .w__lbl span, html.menu-big .wb .sel__h span { font-size: 15px; margin-bottom: 8px; }
html.menu-big .wb .w__big { font-size: clamp(60px, 7vw, 120px); }
html.menu-big .wb .w__list i { height: clamp(14px, 1.6vw, 24px); border-top-width: 2px; }

/* calendar + clock */
html.menu-big .cal { font-size: clamp(120px, 14vw, 230px); line-height: .8; top: 14px; left: 12px; }
html.menu-big .wb .clock__txt { font-size: clamp(16px, 1.5vw, 24px); }
html.menu-big .clock i.clock__h::after { width: 16px; height: 16px; left: -8px; }
html.menu-big .clock i.clock__m::after { width: 10px; height: 10px; left: -5px; }
html.menu-big .clock i.clock__s::after { width: 6px; height: 6px; left: -3px; }

/* selection */
html.menu-big .wb .w--sel { padding: 18px; }
html.menu-big .wb .sel__h { margin-bottom: 18px; align-items: baseline; }
html.menu-big .wb .sel__lbl { font-size: 15px; margin-bottom: 8px; }
html.menu-big .wb .sel__chips { gap: 4px 22px; margin-bottom: 18px; }
html.menu-big .wb .sel__chips button { font-size: clamp(18px, 1.7vw, 26px); line-height: 1.25; }
html.menu-big .wb .sel__go { height: 64px; font-size: clamp(18px, 1.6vw, 24px); padding: 0 18px; }

/* email slider + appearance */
html.menu-big .wb .slide2 { height: 84px; }
html.menu-big .wb .slide2__knob { width: 74px; height: 74px; }
html.menu-big .wb .slide2__knob svg { width: 30px; height: 30px; }
html.menu-big .wb .slide2__txt { font-size: clamp(20px, 2vw, 30px); }
html.menu-big .wb .page > .w--slim { height: auto; padding: 18px; }
html.menu-big .wb .w--slim .tog { width: 64px; height: 36px; }
html.menu-big .wb .w--slim .tog i { width: 28px; height: 28px; top: 4px; left: 4px; }
html.menu-big.dark .wb .w--slim .tog i { transform: translateX(28px); }

@media (min-width: 900px) {
  html.menu-big .wb .page { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  html.menu-big .wb .page:first-child {
    grid-template-areas: "idx pro cal clk" "sel sel sel thm" "mail mail mail mail";
  }
  html.menu-big .wb .page:first-child > a[href*="view=list"] { grid-area: idx; }
  html.menu-big .wb .page:first-child > a[href="#/profile"] { grid-area: pro; }
  html.menu-big .wb .page:first-child > .w--cal { grid-area: cal; }
  html.menu-big .wb .page:first-child > .w--clock { grid-area: clk; }
  html.menu-big .wb .page:first-child > .w--sel { grid-area: sel; }
  html.menu-big .wb .page:first-child > .w--slim { grid-area: thm; flex-direction: column; align-items: flex-start; justify-content: space-between; }
  html.menu-big .wb .page:first-child > .slide2 { grid-area: mail; }
  html.menu-big .wb .page > a.w--sq, html.menu-big .wb .page > .w--cal, html.menu-big .wb .page > .w--clock { aspect-ratio: 1.3 !important; }
  html.menu-big .wb .w--slim .w__lbl { flex-direction: column-reverse; align-items: flex-start; gap: 0; }
  html.menu-big .wb .page > .w--wide { grid-column: span 1; aspect-ratio: 1.3; }
  html.menu-big .wb .w--wide .w__lbl b { font-size: clamp(20px, 1.9vw, 30px); }
}
@media (min-width: 900px) {
  html.menu-big .wb .page > a.w--sq, html.menu-big .wb .page > .w--cal, html.menu-big .wb .page > .w--clock { aspect-ratio: 1.5 !important; }
  html.menu-big .wb .w--cal .w__lbl b { font-size: clamp(22px, 2.3vw, 38px); }
  html.menu-big .cal { font-size: clamp(96px, 9.5vw, 160px); }
  html.menu-big .wb .sel__h { margin-bottom: 12px; }
  html.menu-big .wb .sel__chips { margin-bottom: 14px; }
}
@media (max-width: 899px) {
  html.menu-big .wb .page { align-content: start; grid-auto-rows: max-content; padding-bottom: 24px; }
  html.menu-big .wb .page > a.w--sq, html.menu-big .wb .page > .w--cal, html.menu-big .wb .page > .w--clock { aspect-ratio: 1.1 !important; }
  html.menu-big .wb .w { padding: 14px; }
  html.menu-big .wb .w__lbl b, html.menu-big .wb .sel__h b { font-size: 28px; }
  html.menu-big .wb .w--cal .w__lbl b { font-size: 20px; }
  html.menu-big .cal { font-size: 76px; top: 10px; left: 10px; }
  html.menu-big .wb .clock__txt { font-size: 14px; }
  html.menu-big .wb .sel__chips button { font-size: 18px; }
  html.menu-big .wb .slide2 { height: 64px; }
  html.menu-big .wb .slide2__knob { width: 54px; height: 54px; }
  html.menu-big .wb .slide2__txt { font-size: 18px; }
}


/* =========================================================
   DOCK v3 — ruler timeline with image previews, project thumbnail,
   joined controls, Overview grid icon
   ========================================================= */
.dock { grid-template-columns: auto auto minmax(140px, 1.1fr) minmax(0, 2fr) auto auto auto; }

/* current project thumbnail: new image wipes up over the old one */
.dock__th { position: relative; display: block; width: 58px; height: 40px; overflow: hidden; background: #333; border-radius: var(--r-s); }
.dock__th img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: thIn .8s var(--out) both; }
@keyframes thIn { from { clip-path: inset(100% 0 0 0); transform: scale(1.35); } to { clip-path: inset(0 0 0 0); transform: none; } }
.dock:not(.has-seg) .dock__th { visibility: hidden; width: 0; }

/* ruler: baseline + vertical ticks; past ticks lighter, current tall and white,
   autoplay = a bar running from the current tick to the next */
.dock__seg { height: 36px; gap: 0; }
.dock__seg::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: #3e3e3e; pointer-events: none; }
.dock__seg > button::before {
  left: 50% !important; right: auto !important; top: auto !important; bottom: 8px; width: 1px; height: 8px !important; margin: 0 !important;
  background: #575757 !important; transition: height .35s var(--out), background-color .25s;
}
.dock__seg > button.is-past::before { background: #9a9a9a !important; }
.dock__seg > button:hover::before { height: 16px !important; background: #fff !important; }
.dock__seg > button.is-on::before { height: 24px !important; width: 2px; margin-left: -1px !important; background: #fff !important; }
.dock__seg > button i { left: 50% !important; right: auto !important; top: auto !important; bottom: 7px; width: 100%; height: 3px !important; margin: 0 !important; z-index: 1; }
body:not(.on-home) .dock__seg > button.is-on i { transform: scaleX(0); }
.dock__seg > button:last-child i { display: none; }

/* hover preview: image + name */
.dock__tip { padding: 4px; width: 136px; white-space: normal; font-size: 11px; line-height: 1.25; transform: translate(-50%, 6px); transition: opacity .2s, transform .35s var(--out); }
.dock__seg.is-tip .dock__tip { transform: translate(-50%, 0); }
.dock__tip img { display: block; width: 128px; height: 84px; object-fit: cover; margin-bottom: 4px; border-radius: var(--r-s); }
.dock__tip span { display: block; padding: 0 2px 2px; }

/* joined ← ❚❚ → */
.dock__ctl { gap: 0; }
.dock__ctl .dock__ic + .dock__ic { margin-left: -1px; }
.dock__ctl .dock__ic { border-radius: 0 !important; }
.dock__ctl .dock__ic:first-child { border-radius: var(--r) 0 0 var(--r) !important; }
.dock__ctl .dock__ic:last-child { border-radius: 0 var(--r) var(--r) 0 !important; }
.dock__ic:hover { position: relative; z-index: 1; }

/* Overview with a grid icon */
.dock__grid { width: 11px; height: 11px; fill: currentColor; flex: none; transition: transform .45s var(--out); }
.dock__ov:hover .dock__grid { transform: rotate(90deg); }

@media (max-width: 1000px) {
  .dock { grid-template-columns: auto auto minmax(0, 1fr) auto auto; }
}
@media (max-width: 700px) {
  .dock { grid-template-columns: auto minmax(0, 1fr) auto; }
  .dock__th { display: none; }
}


/* =========================================================
   INDEX = archive table (after archivio-uno.com)
   ========================================================= */
:root { --stripe: #efefef; --rowdim: #bdbdbd; }
html.dark { --stripe: #1b1b1b; --rowdim: #555; }
.ixt-tools { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin: 0 0 10px; font-size: 13px; }
.ixt-q { display: flex; align-items: baseline; gap: 10px; flex: 1 1 auto; max-width: 420px; border-bottom: 1px solid var(--fg); padding-bottom: 4px; }
.ixt-q span { font-weight: 700; }
.ixt-q input { flex: 1; min-width: 0; border: 0; background: none; color: var(--fg); font: inherit; outline: none; padding: 0; }
.ixt-q input::placeholder { color: var(--sub); }
.ixt-n { color: var(--sub); font-variant-numeric: tabular-nums; }

.ixt { font-size: 14px; line-height: 1.25; font-weight: 700; letter-spacing: -.005em; font-variant-numeric: tabular-nums; }
.ixt__h, .ixt__a {
  display: grid; gap: 0 14px; align-items: baseline; padding: 5px 6px;
  grid-template-columns: 3em minmax(0, 2.1fr) minmax(0, 1.4fr) minmax(0, 2.2fr) minmax(0, 1.4fr) minmax(0, .9fr) 3.6em 3em;
}
.ixt__h { position: sticky; top: var(--dk); z-index: 3; background: var(--bg); border-bottom: 1px solid var(--fg); padding-top: 12px; }
.ixt__h button { text-align: left; font-weight: 700; color: var(--fg); white-space: nowrap; }
.ixt__h button i { font-style: normal; margin-left: 4px; }
.ixt__h button:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ixt__a > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ixt__h .c-i, .ixt__a .c-i { text-align: right; }
.ixt__r:nth-child(odd) .ixt__a { background: var(--stripe); }
.ixt__a { transition: color .25s; }
.ixt__r.is-open .ixt__a { color: var(--rowdim); }

/* image strip that slides open under the hovered row */
.ixt__x { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--out); }
.ixt__r.is-open .ixt__x { grid-template-rows: 1fr; }
.ixt__s { min-height: 0; overflow: hidden; display: flex; gap: 8px; padding: 0 6px; transition: padding .5s var(--out); }
.ixt__r.is-open .ixt__s { padding: 8px 6px 14px; }
.ixt__s a { flex: none; display: block; font-size: 11px; font-weight: 400; }
.ixt__s img { display: block; height: 128px; width: auto; min-width: 60px; background: var(--faint); }
.ixt__s span { display: block; margin-top: 4px; }
.ixt__none { padding: 20px 6px; font-weight: 700; }

@media (max-width: 1000px) {
  .ixt__h, .ixt__a { grid-template-columns: 2.6em minmax(0, 2fr) minmax(0, 2fr) minmax(0, 1.4fr) 3.4em; }
  .ixt .c-s, .ixt .c-se, .ixt .c-i { display: none; }
}
@media (max-width: 700px) {
  .ixt { font-size: 13px; }
  .ixt__h, .ixt__a { grid-template-columns: 2.4em minmax(0, 1fr) 3.2em; gap: 0 10px; }
  .ixt .c-c, .ixt .c-ty { display: none; }
}

/* Index: bigger type, no search */
.ixt { font-size: clamp(17px, 1.5vw, 23px); line-height: 1.2; letter-spacing: -.015em; }
.ixt__h, .ixt__a { padding: 7px 8px; gap: 0 18px; grid-template-columns: 3em minmax(0, 2.1fr) minmax(0, 1.4fr) minmax(0, 2.2fr) minmax(0, 1.4fr) minmax(0, .9fr) 3.4em 2.8em; }
.ixt__h { padding-top: 16px; }
.ixt__s img { height: clamp(130px, 12vw, 180px); }
.ixt__s a { font-size: 12px; }
@media (max-width: 1000px) {
  .ixt__h, .ixt__a { grid-template-columns: 2.6em minmax(0, 2fr) minmax(0, 2fr) minmax(0, 1.4fr) 3.2em; }
}
@media (max-width: 700px) {
  .ixt { font-size: 17px; }
  .ixt__h, .ixt__a { grid-template-columns: 2.2em minmax(0, 1fr) 3em; gap: 0 10px; padding: 8px 6px; }
}

/* no white label on the dock title (stage hover / title hover) */
.dock .dock__title .pillt, .dock.is-hot .dock__title .pillt, .dock__title:hover .pillt { background-size: 0 100% !important; color: inherit !important; }

/* =========================================================
   TEST: LIGHT DOCK — <html class="dock-light">. Light mode only
   (dark mode keeps the charcoal dock). Remove the class to go back.
   ========================================================= */
html.dock-light:not(.dark) .dock { background: #fff; color: #121212; box-shadow: inset 0 -1px 0 #121212; }
html.dock-light:not(.dark) .hd__logo { color: #121212; }
html.dock-light:not(.dark) .dock__th { background: #e9e9e9; }
html.dock-light:not(.dark) .dock__prog { background: #121212; }
/* ruler */
html.dock-light:not(.dark) .dock__seg::after { background: #d4d4d4; }
html.dock-light:not(.dark) .dock__seg > button::before { background: #c6c6c6 !important; }
html.dock-light:not(.dark) .dock__seg > button.is-past::before { background: #6f6f6f !important; }
html.dock-light:not(.dark) .dock__seg > button:hover::before,
html.dock-light:not(.dark) .dock__seg > button.is-on::before { background: #121212 !important; }
html.dock-light:not(.dark) .dock__seg > button i { background: #121212; }
html.dock-light:not(.dark) .dock__tip { background: #121212; color: #fff; }
/* buttons */
html.dock-light:not(.dark) .dock__ic, html.dock-light:not(.dark) .dock__ov { color: #121212; box-shadow: inset 0 0 0 1px #cfcfcf; }
html.dock-light:not(.dark) .dock__ic:hover, html.dock-light:not(.dark) .dock__ov:hover,
html.dock-light:not(.dark) .dock__ov[aria-pressed="true"] { background: #121212; color: #fff; box-shadow: inset 0 0 0 1px #121212; }
html.dock-light:not(.dark) .dock__go { background: #121212; color: #fff; }

/* logo = same size as the dock counter */
.hd__logo { font-size: 30px; }
@media (max-width: 700px) { .hd__logo { font-size: 24px; } .dock { padding-left: calc(var(--pad) + 58px); } }
/* italic l's, as on l1l2-list */
.hd__logo i { font-style: italic; }

/* =========================================================
   DOCK = CARTIGLIO (title block, as on the l1l2-list project panel):
   one frame divided into boxes by 1px rules, a small bold uppercase
   label on top of each box, clickable boxes invert on hover
   ========================================================= */
:root { --dk: 74px; }
.dock { --rule: #121212; --inv-bg: #121212; --inv-fg: #fff; }
html.dark .dock, html:not(.dock-light) .dock { --rule: #444; --inv-bg: #fff; --inv-fg: #121212; }
.dock {
  gap: 0; padding: 0 0 0 calc(var(--pad) + 74px); align-items: stretch;
  grid-template-columns: auto minmax(220px, 1.25fr) minmax(0, 2fr) auto auto auto;
}
.dock > .dock__count, .dock > .dock__pj, .dock > .dock__seg, .dock > .dock__ctl, .dock > .dock__ov, .dock > .dock__go {
  position: relative; grid-column: auto; min-width: 0; height: auto; margin: 0;
  display: flex; align-items: flex-end; padding: 26px 14px 10px; border-left: 1px solid var(--rule);
}
.dock [data-l]::before {
  content: attr(data-l); position: absolute; left: 12px; top: 10px; pointer-events: none;
  font-size: 10px; line-height: 1; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
}
/* logo sits on the same baseline as the boxes' content */
.hd__logo { align-self: end; margin-bottom: 11px; }

/* No. */
.dock > .dock__count { align-items: flex-end; gap: 6px; padding-right: 18px; }
/* Project: thumbnail + title */
.dock > .dock__pj { gap: 12px; }
.dock__pj .dock__th { width: 52px; height: 36px; flex: none; }
.dock__pj .dock__title { min-width: 0; flex: 1 1 auto; }
.dock:not(.has-seg) .dock__pj .dock__th { display: none; }
/* Index: the ruler fills its box */
.dock > .dock__seg { padding: 26px 14px 6px; }
.dock > .dock__seg::after { left: 14px; right: 14px; bottom: 14px; }
.dock__seg > button::before { bottom: 14px !important; }
.dock__seg > button i { bottom: 13px !important; }
/* Reel: ← ❚❚ → as three small boxes */
.dock > .dock__ctl { padding: 26px 0 0; align-items: stretch; }
.dock__ctl .dock__ic, .dock__ctl .dock__ic:first-child, .dock__ctl .dock__ic:last-child {
  width: 46px; height: auto; margin: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  border-top: 1px solid var(--rule); color: inherit; background: none;
}
.dock__ctl .dock__ic + .dock__ic { border-left: 1px solid var(--rule); }
/* View / Open: the whole box is the button */
.dock > .dock__ov, .dock > .dock__go {
  border-radius: 0 !important; box-shadow: none !important; height: auto; gap: 10px; background: none; color: inherit;
  padding: 26px 16px 10px; align-items: flex-end;
}
.dock > .dock__go { background: var(--inv-bg) !important; color: var(--inv-fg) !important; min-width: 170px; justify-content: space-between; }
/* hover: invert the box */
html .dock .dock__ctl .dock__ic:hover, html .dock > .dock__ov:hover, html .dock > .dock__ov[aria-pressed="true"] {
  background: var(--inv-bg) !important; color: var(--inv-fg) !important; box-shadow: none !important;
}
html .dock > .dock__go:hover { background: transparent !important; color: inherit !important; }

@media (max-width: 1000px) {
  .dock { grid-template-columns: auto minmax(0, 1fr) auto auto; }
}
@media (max-width: 700px) {
  :root { --dk: 66px; }
  .dock { grid-template-columns: auto minmax(0, 1fr) auto; padding-left: calc(var(--pad) + 58px); }
  .dock > .dock__count, .dock > .dock__pj { padding: 24px 10px 9px; }
  .dock > .dock__go { min-width: 0; width: 58px; padding: 24px 0 9px; justify-content: center; }
  .dock [data-l]::before { left: 10px; top: 9px; font-size: 9px; }
  .hd__logo { margin-bottom: 10px; }
}
@media (max-width: 1000px) { .dock > .dock__seg, .dock > .dock__ov { display: none; } }
@media (max-width: 700px) { .dock > .dock__ctl { display: none; } }

/* TRY: no logo — the cartiglio starts at the left edge with No. */
.hd__logo { display: none; }
.dock, .dock { padding-left: 0 !important; }
.dock > .dock__count { border-left: 0; padding-left: var(--pad); }
.dock [data-l].dock__count::before { left: var(--pad); }

/* rotating images on the full-page project */
.pc__lay { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s var(--ease); }
.pc__lay.is-on { opacity: 1; }
.pc__lay { transition: opacity 1.8s var(--ease); }

/* home: 2×2 cells in 16:9, centred in the stage */
.pc { grid-template-columns: repeat(2, var(--cw, 1fr)); grid-template-rows: repeat(2, var(--ch, 1fr)); justify-content: center; align-content: center; }
.pc { grid-template-columns: repeat(var(--cols, 2), var(--cw, 1fr)); grid-template-rows: repeat(var(--rows, 2), var(--ch, 1fr)); }

/* =========================================================
   THIN DOCK — one 40px line, no box labels, same 1px rules.
   Delete this block to get the tall cartiglio back.
   ========================================================= */
:root { --dk: 40px; }
@media (max-width: 700px) { :root { --dk: 40px; } }
.dock { font-size: 13px; line-height: 1; }
.dock [data-l]::before { content: none !important; }
.dock > .dock__count, .dock > .dock__pj, .dock > .dock__seg, .dock > .dock__ctl, .dock > .dock__ov, .dock > .dock__go {
  padding: 0 14px !important; align-items: center !important;
}
/* No.: small bold counter */
.dock__n { font-size: 13px !important; height: 1.2em; line-height: 1.2; letter-spacing: 0; }
.dock > .dock__count { gap: 4px; align-items: center; }
.dock__count .dock__of { display: inline !important; }
/* Project: tiny thumb + name and subtitle on one line */
.dock__pj .dock__th { width: 30px; height: 20px; }
.dock__title { display: flex !important; align-items: baseline; gap: 8px; line-height: 1.2; }
.dock__title > .mask { display: inline-block; flex: 0 1 auto; min-width: 0; }
.dock__title > .mask:first-child { flex: 0 0 auto; max-width: 60%; }
/* Index: ruler centred in the line */
.dock > .dock__seg { height: auto; }
.dock > .dock__seg::after { bottom: 50% !important; }
.dock__seg > button::before { bottom: 50% !important; height: 6px !important; }
.dock__seg > button:hover::before { height: 10px !important; }
.dock__seg > button.is-on::before { height: 14px !important; }
.dock__seg > button i { bottom: calc(50% - 1px) !important; height: 3px !important; }
/* Reel: three thin boxes, full height */
.dock > .dock__ctl { padding: 0 !important; align-items: stretch !important; }
.dock__ctl .dock__ic, .dock__ctl .dock__ic:first-child, .dock__ctl .dock__ic:last-child { width: 40px; border-top: 0 !important; font-size: 13px; }
.dock__play i { height: 9px; }
.dock__play.is-paused i:first-child { border-left-width: 8px; border-top-width: 5px; border-bottom-width: 5px; }
/* View / Open */
.dock > .dock__go { min-width: 150px; }
.dock__grid { width: 9px; height: 9px; }
@media (max-width: 700px) {
  .dock > .dock__count, .dock > .dock__pj { padding: 0 10px !important; }
  .dock > .dock__go { width: 44px; min-width: 0; padding: 0 !important; }
  .dock__title > .mask + .mask { display: none; }
  .dock__title > .mask:first-child { max-width: 100%; }
}
/* autoplay line in the ruler: hairline, sitting on the baseline */
.dock__seg > button i { height: 1px !important; bottom: 50% !important; }

/* Index: the heading/filter block uses the table's columns, filters start at "Subtitle" */
.ctl.is-list {
  font-size: clamp(17px, 1.5vw, 23px); padding-left: 8px; padding-right: 8px; gap: 0 18px;
  grid-template-columns: 3em minmax(0, 2.1fr) minmax(0, 1.4fr) minmax(0, 2.2fr) minmax(0, 1.4fr) minmax(0, .9fr) 3.4em 2.8em;
}
.ctl.is-list .big { margin-left: -8px; }
.ctl.is-list .ctl__row { grid-column: 3 / -1; font-size: 14px; }
@media (max-width: 1000px) {
  .ctl.is-list { grid-template-columns: 2.6em minmax(0, 2fr) minmax(0, 2fr) minmax(0, 1.4fr) 3.2em; }
}
@media (max-width: 700px) {
  .ctl.is-list { grid-template-columns: 1fr; padding-left: 6px; padding-right: 6px; }
  .ctl.is-list .ctl__row { grid-column: 1 / -1; }
}

/* Index rows: no zebra — a 1px rule between every project on the page background */
.ixt__r:nth-child(odd) .ixt__a { background: none; }
.ixt__r { border-bottom: 1px solid var(--line); }
.ixt__a { padding-top: 9px; padding-bottom: 9px; }
/* Index: no "Selected work 2013 — 2026" heading; filters sit right under the dock */
.ctl.is-list .big { display: none; }
.ctl.is-list { padding-top: 44px; }

/* Profile: the studio cat, a 3D scan that turns with the cursor */
.pf__cat { position: relative; height: min(52vh, 520px); margin: 24px 0 -10px; opacity: 0; transition: opacity .8s var(--ease); }
.pf__cat.is-ready { opacity: 1; }
.pf__cat canvas { display: block; width: 100%; height: 100%; }
@media (max-width: 700px) { .pf__cat { height: 40vh; } }


/* =========================================================
   PROFILE = DESKTOP of draggable windows (cartiglio title bars)
   ========================================================= */
@media (min-width: 700px) {
  body:has(.dt) { overflow: hidden; }
  .dt { position: fixed; z-index: 2; left: var(--pad); right: var(--pad); top: calc(var(--dk) + var(--pad)); bottom: var(--mb); }
}
.dt { --wb: var(--bg); }
.dt__wall {
  position: absolute; left: 96px; right: 0; bottom: 0; margin: 0; pointer-events: none; user-select: none;
  font-weight: 700; font-size: clamp(40px, 6.4vw, 112px); line-height: .92; letter-spacing: -.045em; color: #ececec;
}
.dt__wall span { font-weight: 400; }
html.dark .dt__wall { color: #1d1d1d; }

/* icons (left column): reopen / bring a window forward */
.dt__icons { position: absolute; left: 0; top: 0; z-index: 1; display: flex; flex-direction: column; gap: 14px; width: 80px; }
.dt__icon { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; line-height: 1.15; text-align: center; color: var(--fg); }
.dt__glyph {
  position: relative; width: 46px; height: 38px; border: 1px solid var(--fg); border-radius: var(--r-s);
  background: var(--bg); transition: background-color .25s, color .25s;
}
.dt__glyph i { position: absolute; left: 0; right: 0; top: 8px; height: 1px; background: currentColor; }
.dt__glyph i + i { top: auto; bottom: 0; height: 0; }
.dt__glyph b { position: absolute; left: 5px; bottom: 4px; font-size: 10px; }
.dt__icon:hover .dt__glyph { background: var(--fg); color: var(--bg); }
.dt__lbl { max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt__icon::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--fg); opacity: 0; transition: opacity .25s; }
.dt__icon.is-open::after { opacity: 1; }

/* windows */
.win {
  position: absolute; left: 0; top: 0; display: flex; flex-direction: column; max-width: 100%; max-height: 100%;
  background: var(--wb); color: var(--fg); border: 1px solid var(--fg); border-radius: var(--r-s);
  animation: winIn .55s var(--out) both; animation-delay: var(--d, 0s);
}
@keyframes winIn { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.win.is-pop { animation: winPop .4s var(--out) both; animation-delay: 0s; }
@keyframes winPop { from { transform: scale(.94); opacity: .4; } }
.win.is-front { box-shadow: 0 18px 50px rgba(0, 0, 0, .12); }
.win.is-closed { display: none; }
.win.is-max { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; }
.win.is-drag { cursor: grabbing; }
.win.is-drag .win__body { pointer-events: none; }

.win__bar {
  flex: none; display: flex; align-items: center; gap: 10px; height: 30px; padding-left: 10px;
  border-bottom: 1px solid var(--fg); cursor: grab; user-select: none; font-size: 12px; transition: background-color .2s, color .2s;
}
.win__n { font-size: 10px; font-weight: 700; letter-spacing: .07em; }
.win__bar b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win.is-front .win__bar { background: var(--fg); color: var(--bg); }
.win__btns { display: flex; align-self: stretch; }
.win__btns button { width: 30px; display: grid; place-items: center; border-left: 1px solid currentColor; color: inherit; transition: background-color .2s, color .2s; }
.win__btns button:last-child { border-top-right-radius: var(--r-s); }
.win__btns svg { width: 9px; height: 9px; }
.win__btns button:hover { background: var(--bg); color: var(--fg); }
.win:not(.is-front) .win__btns button:hover { background: var(--fg); color: var(--bg); }

.win__body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 14px; font-size: 14px; scrollbar-width: thin; }
.win__body .pf__lead { font-size: clamp(16px, 1.25vw, 20px); max-width: none; }
.win__body .bel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.win__body .bel div { font-size: 15px; min-height: 0; padding: 10px; }
.win__body .rows li { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); font-size: 13px; }
.win__body .rows li > :first-child, .win__body .rows li > :last-child { grid-column: auto; }
.win__body .pf__mail { margin-top: 14px; font-size: clamp(20px, 1.8vw, 28px); letter-spacing: -.03em; }
.win__fine { margin: 14px 0 0; font-size: 11px; color: var(--sub); }
#cat .win__body { padding: 0; }
.win__cat { position: relative; width: 100%; height: 100%; }
.win__cat canvas { display: block; width: 100%; height: 100%; }

/* phones: no desktop — the windows become a stack of cards */
@media (max-width: 699px) {
  .dt { padding: 22px 0 40px; }
  .dt__wall { position: static; margin: 0 0 22px; font-size: 40px; color: var(--fg); }
  .dt__wall span { color: var(--dim); }
  .dt__icons { display: none; }
  .win { position: relative; left: auto !important; top: auto !important; width: auto !important; height: auto !important; margin-bottom: 10px; animation: none; }
  .win.is-closed { display: flex; }
  .win__bar { cursor: default; }
  .win__btns { display: none; }
  #cat .win__body { height: 300px; }
}
.win__body .bel div { aspect-ratio: auto !important; min-height: 0 !important; height: auto; display: flex; flex-direction: column; justify-content: flex-start; gap: 6px; padding: 10px 10px 12px; line-height: 1.2; font-weight: 700; }


/* =========================================================
   PROFILE = FORMATS (after format.obys.agency): charcoal page,
   sticky stages, shapes driven by scroll (--p) and entry (--e)
   ========================================================= */
body:has(.fm) { background: #222; color: #fff; }
body:has(.fm) .hd__menu { background: #fff; color: #121212; box-shadow: inset 0 0 0 1px #fff; }
.fm { --ink: #121212; color: #fff; }
.fm img { filter: grayscale(1) contrast(1.08); }
.fm__head { padding: 6vh 0 12vh; }
.fm__title { margin: 0; font-weight: 700; font-size: clamp(110px, 21vw, 380px); line-height: .8; letter-spacing: -.065em; }
.fm__meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 var(--pad); margin-top: 22px; padding-top: 8px; border-top: 1px solid #fff; font-size: 13px; line-height: 1.3; }
.fm__meta b { font-weight: 700; }
.fm__meta a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.fm__stage { position: relative; --p: 0; --e: 0; }
.fm__stage--v { height: 220vh; }
.fm__stage--h { height: 260vh; }
.fm__stage--c { height: 260vh; }
.fm__stage--t { height: 220vh; }
.fm__pin { position: sticky; top: var(--dk); height: calc(100vh - var(--dk)); display: grid; place-items: center; overflow: hidden; }

/* shared card language: white, square, black text, numbered spec lists */
.fm__card { position: relative; background: #fff; color: var(--ink); overflow: hidden; }
.fm__img { position: relative; overflow: hidden; background: #ddd; }
.fm__img img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; transform: translateY(calc(var(--p) * -6%)); }
.fm__img-no { position: absolute; left: 10px; top: 50%; font-size: 11px; color: #fff; mix-blend-mode: difference; }
.fm__txt { padding: 18px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fm__lbl { font-size: 11px; color: #8a8a8a; }
.fm__ttl { font-weight: 400; font-size: clamp(22px, 2vw, 30px); letter-spacing: -.02em; line-height: 1; margin-bottom: 26px; }
.fm__spec { display: grid; grid-template-columns: 2.6em 1fr; gap: 2px 10px; font-size: 11px; line-height: 1.3; margin-bottom: 18px; }
.fm__no { grid-row: span 2; }
.fm__st { font-weight: 700; }
.fm__si { color: #555; }

/* 1 — vertical card + side widgets */
.fm__card--v {
  display: grid; grid-template-columns: 42% 1fr; width: min(560px, 46vw); height: min(74vh, 700px);
  transform: translateY(calc((1 - var(--e)) * 28vh + var(--p) * -6vh));
}
.fm__side { position: absolute; left: calc(50% + min(560px, 46vw) / 2 + 12px); top: 16%; display: flex; flex-direction: column; gap: 10px; transform: translateY(calc(var(--p) * -14vh)); }
.fm__dot { width: 96px; height: 96px; border-radius: 50%; background: #fff; position: relative; transform: rotate(calc(var(--p) * 360deg)); }
.fm__dot i { position: absolute; left: 50%; top: 14px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--ink); }
.fm__dot::after { content: ""; position: absolute; left: 30px; top: 46px; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.fm__thumb { width: 96px; height: 112px; overflow: hidden; background: #ddd; }
.fm__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* 2 — horizontal card with a list that scrolls inside it */
.fm__tag { position: absolute; left: 3vw; top: 18%; z-index: 2; background: #fff; color: var(--ink); padding: 34px 12px 8px; font-weight: 700; font-size: clamp(22px, 2.2vw, 34px); letter-spacing: -.02em; transform: translateY(calc(var(--p) * 18vh)); }
.fm__card--h {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; width: min(1100px, 82vw); height: min(58vh, 540px);
  transform: translateX(calc((1 - var(--e)) * 18vw));
}
.fm__card--h .fm__img { grid-row: 1 / -1; }
.fm__card--h .fm__txt { padding-bottom: 0; }
.fm__card--h .fm__ttl { margin-bottom: 10px; }
.fm__roll { position: relative; overflow: hidden; padding: 0 16px; -webkit-mask: linear-gradient(transparent, #000 14%, #000 86%, transparent); mask: linear-gradient(transparent, #000 14%, #000 86%, transparent); }
.fm__roll-in { display: flex; flex-direction: column; transform: translateY(calc(var(--p) * -62%)); }
.fm__roll-in span { font-size: clamp(26px, 2.8vw, 46px); line-height: 1.02; letter-spacing: -.03em; padding: 2px 0; }
.fm__roll-in small { font-size: 11px; letter-spacing: 0; margin-right: 10px; vertical-align: top; color: #8a8a8a; }

/* 3 — circle dial: ticks + clients turn with the scroll, the ceramic cat in the middle */
.fm__circle { --s: min(80vh, 78vw); position: relative; width: var(--s); height: var(--s); border-radius: 50%; background: #fff; color: var(--ink); transform: scale(calc(.55 + .45 * var(--e))); }
.fm__dial { position: absolute; inset: 0; transform: rotate(calc(var(--p) * -120deg)); }
.fm__tick, .fm__cl { position: absolute; left: 50%; top: 50%; white-space: nowrap; transform-origin: 0 0; }
.fm__tick { font-size: 10px; transform: rotate(var(--a)) translate(-50%, calc(var(--s) / -2 + 14px)); }
.fm__cl { font-size: clamp(11px, .95vw, 14px); transform: rotate(var(--a)) translate(-50%, calc(var(--s) / -2 + 62px)); }
.fm__cl b { font-weight: 700; }
.fm__rim { position: absolute; inset: 30px; border-radius: 50%; border: 1px solid var(--ink); }
.fm__rim::before { content: ""; position: absolute; inset: -1px; border-radius: 50%; background: repeating-conic-gradient(var(--ink) 0 .35deg, transparent .35deg 3deg);
  -webkit-mask: radial-gradient(circle, transparent calc(50% - 10px), #000 calc(50% - 10px)); mask: radial-gradient(circle, transparent calc(50% - 10px), #000 calc(50% - 10px)); }
.fm__rim::after { content: ""; position: absolute; left: 50%; top: -9px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--ink); }
.fm__core { position: absolute; inset: 27%; border-radius: 50%; border: 1px solid var(--ink); overflow: hidden; }
.fm__cat { position: absolute; inset: 0; }
.fm__cat canvas { display: block; width: 100%; height: 100%; }
.fm__clbl { position: absolute; left: 50%; bottom: 19%; transform: translateX(-50%); font-size: 11px; white-space: nowrap; color: #555; }

/* 4 — triangle: big caps clipped by the shape */
.fm__tri {
  position: relative; width: min(1000px, 80vw); height: min(82vh, 740px); background: #fff; color: var(--ink);
  clip-path: polygon(0 0, 100% 0, 50% 100%); transform: translateY(calc((1 - var(--e)) * 22vh));
}
.fm__tri-bar { position: absolute; left: 0; right: 0; top: 0; height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; border-bottom: 1px solid var(--ink); }
.fm__tri-bar b { font-weight: 400; font-size: clamp(18px, 1.6vw, 24px); letter-spacing: .02em; text-transform: uppercase; }
.fm__tri-bar i { width: 12px; height: 12px; border-radius: 50%; background: var(--ink); }
.fm__tri-lead { position: absolute; left: 8%; top: 64px; width: 30%; margin: 0; font-size: 13px; line-height: 1.35; }
.fm__tri-side { position: absolute; right: 16%; top: 64px; width: 26%; display: flex; flex-direction: column; gap: 3px; font-size: 11px; line-height: 1.3; text-align: right; }
.fm__tri-side b { margin-top: 8px; }
.fm__tri-side b:first-child { margin-top: 0; }
.fm__tri-side a:hover { text-decoration: underline; }
.fm__tri-big {
  position: absolute; left: 50%; top: 30%; display: flex; flex-direction: column; align-items: center; transform: translate(-50%, calc(var(--p) * -24%));
  font-weight: 700; font-size: clamp(44px, 6vw, 104px); line-height: .9; letter-spacing: -.04em; text-transform: uppercase;
}
.fm__mail { position: absolute; left: 50%; bottom: 17%; transform: translateX(-50%); font-weight: 700; font-size: clamp(14px, 1.3vw, 20px); white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.fm .foot { color: #fff; border-color: #fff; }

/* phones / small tablets: plain flow, shapes kept simple */
@media (max-width: 899px) {
  .fm__meta { grid-template-columns: 1fr 1fr; gap: 12px var(--pad); }
  .fm__stage { height: auto !important; --p: .3 !important; --e: 1 !important; }
  .fm__pin { position: relative; top: auto; height: auto; padding: 6vh 0; overflow: visible; }
  .fm__card--v { width: 100%; height: auto; grid-template-columns: 1fr; transform: none; }
  .fm__card--v .fm__img { height: 260px; }
  .fm__side, .fm__tag { display: none; }
  .fm__card--h { width: 100%; height: auto; grid-template-columns: 1fr; grid-template-rows: auto; transform: none; }
  .fm__card--h .fm__img { grid-row: auto; height: 200px; }
  .fm__roll { -webkit-mask: none; mask: none; padding-bottom: 16px; }
  .fm__roll-in { transform: none; }
  .fm__roll-in span { font-size: 24px; }
  .fm__circle { --s: 92vw; transform: none; }
  .fm__cl { font-size: 9px; transform: rotate(var(--a)) translate(-50%, calc(var(--s) / -2 + 40px)); }
  .fm__rim { inset: 22px; }
  .fm__tri { clip-path: none; width: 100%; height: auto; transform: none; padding: 64px 18px 24px; display: flex; flex-direction: column; gap: 18px; }
  .fm__tri-lead, .fm__tri-side, .fm__mail { position: static; width: auto; transform: none; text-align: left; }
  .fm__tri-big { display: none; }
}
/* circle: ticks as a thin ring just inside the rim line; client names clear of them */
.fm__rim::before { -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 12px), #000 calc(100% - 12px)); mask: radial-gradient(closest-side, transparent calc(100% - 12px), #000 calc(100% - 12px)); }
.fm__cl { transform: rotate(var(--a)) translate(-50%, calc(var(--s) / -2 + 64px)); }
/* triangle: e-mail up with the intro, out of the way of the moving caps */
.fm__mail { left: 8%; top: 118px; bottom: auto; transform: none; font-size: clamp(16px, 1.5vw, 22px); }
@media (max-width: 899px) { .fm__mail { top: auto; } }

.fm__mail { left: 15%; }
.fm__tri-lead { left: 11%; }
.fm__clist { display: none; }
@media (max-width: 899px) {
  .fm__pin:has(.fm__circle) { display: flex; flex-direction: column; gap: 22px; }
  .fm__cl, .fm__clbl { display: none; }
  .fm__clist { display: block; list-style: none; margin: 0; padding: 0; width: 100%; font-size: 13px; }
  .fm__clist li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid #555; }
  .fm__clist span { color: #b5b5b5; text-align: right; }
}


/* =========================================================
   PROFILE = TECHNICAL DRAWING SHEET
   ========================================================= */
.td { --grid: #f1f1f1; --grid2: #e2e2e2; --soft-ln: #cfcfcf; position: relative; margin: 0 calc(-1 * var(--pad)); padding: 56px calc(var(--pad) + 44px) 150px;
  background-color: var(--bg);
  background-image: linear-gradient(var(--grid2) 1px, transparent 1px), linear-gradient(90deg, var(--grid2) 1px, transparent 1px), linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px; background-position: -1px -1px;
}
html.dark .td { --grid: #171717; --grid2: #232323; --soft-ln: #3a3a3a; }
.td::before { content: ""; position: absolute; inset: 18px; border: 1px solid var(--fg); pointer-events: none; }
.td__crop { position: absolute; width: 14px; height: 14px; pointer-events: none; }
.td__crop::before, .td__crop::after { content: ""; position: absolute; background: var(--fg); }
.td__crop::before { width: 14px; height: 1px; top: 7px; left: 0; }
.td__crop::after { width: 1px; height: 14px; left: 7px; top: 0; }
.td__crop--tl { left: 2px; top: 2px; } .td__crop--tr { right: 2px; top: 2px; } .td__crop--bl { left: 2px; bottom: 2px; } .td__crop--br { right: 2px; bottom: 2px; }

/* drawn lines */
.td .td__ln { fill: none; stroke: var(--fg); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--out); }
.td .is-drawn .td__ln, .td .td__ln.is-live { stroke-dashoffset: 0; }
.td .td__ln.is-live { animation: tdDraw .7s var(--out) both; }
@keyframes tdDraw { from { stroke-dashoffset: 1; } }
.td__leaders { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.td__leaders .td__ln { stroke-width: .75; }
.td__leaders circle { fill: var(--fg); }
.td__about .td__leaders .td__ln { transition-delay: .5s; transition-duration: 1.8s; }

/* header: dimension line + statement */
.td__head { padding: 30px 0 90px; }
.td__dim { display: flex; align-items: center; gap: 12px; max-width: 760px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 26px; }
.td__dim i { position: relative; flex: 1; height: 1px; background: var(--fg); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.2s var(--out) .2s; }
.td__dim i + b + i { transform-origin: 100% 50%; }
.td__dim i::before { content: ""; position: absolute; top: -5px; width: 1px; height: 11px; background: var(--fg); left: 0; }
.td__dim i + b + i::before { left: auto; right: 0; }
.td__dim b { font-weight: 700; }
.td__head.is-drawn .td__dim i { transform: none; }
.td__title { margin: 0; font-weight: 700; font-size: clamp(44px, 6.6vw, 116px); line-height: .92; letter-spacing: -.045em; }
.td__sub { margin: 26px 0 0; max-width: 36em; font-size: clamp(16px, 1.3vw, 20px); line-height: 1.35; color: var(--sub); }

/* details */
.td__det { position: relative; display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 0 40px; padding: 64px 0 80px; }
.td__det::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--fg); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.4s var(--out); }
.td__det.is-drawn::before { transform: none; }
.td__mark { display: flex; flex-direction: column; gap: 12px; align-self: start; position: sticky; top: calc(var(--dk) + 24px); }
.td__mark svg { width: 64px; height: 64px; overflow: visible; }
.td__mark text { font-size: 11px; text-anchor: middle; fill: var(--fg); font-family: inherit; }
.td__mark span { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.td__mark b { display: block; margin-top: 4px; font-size: 20px; letter-spacing: -.02em; text-transform: none; }

/* 01 about: lead + numbered notes with leaders + a 3D view */
.td__about { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .75fr) minmax(0, .9fr); gap: 0 44px; align-items: start; }
.td__lead { position: relative; z-index: 1; font-size: clamp(20px, 1.9vw, 30px); line-height: 1.22; letter-spacing: -.015em; }
.td__lead p { margin: 0 0 .8em; }
.td__k { border-bottom: 1px solid var(--fg); }
.td__notes { position: relative; z-index: 1; list-style: none; margin: 120px 0 0; padding: 0; font-size: 13px; line-height: 1.35; }
.td__notes li { margin-bottom: 26px; padding-left: 34px; position: relative; }
.td__notes b { position: absolute; left: 0; top: -1px; width: 24px; height: 18px; border: 1px solid var(--fg); border-radius: 50%; display: grid; place-items: center; font-size: 9px; }
.td__view { position: relative; z-index: 1; margin: 0; border: 1px solid var(--fg); background: var(--bg); }
.td__view figcaption { display: flex; justify-content: space-between; gap: 10px; padding: 6px 8px; border-bottom: 1px solid var(--fg); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.td__cat { position: relative; height: 300px; }
.td__cat canvas { display: block; width: 100%; height: 100%; }

/* tables: bill of materials, clients, revisions */
.td__tbl { width: 100%; border-collapse: collapse; background: var(--bg); }
.td__tbl th { text-align: left; font-weight: 400; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding: 0 10px 8px; border-bottom: 1px solid var(--fg); }
.td__tbl td { padding: 9px 10px; border-bottom: 1px solid var(--soft-ln); vertical-align: baseline; }
.td__tbl td:first-child, .td__tbl th:first-child { width: 64px; font-variant-numeric: tabular-nums; }
.td__tbl tr { opacity: 0; transform: translateY(6px); transition: opacity .5s calc(var(--i, 0) * 45ms + .3s), transform .6s var(--out) calc(var(--i, 0) * 45ms + .3s); }
.td__tbl thead tr, .is-drawn .td__tbl tr { opacity: 1; transform: none; }
.td__bom td:nth-child(2) { font-weight: 700; font-size: clamp(18px, 1.6vw, 26px); letter-spacing: -.02em; }
.td__bom td:last-child, .td__bom th:last-child { text-align: right; width: 60px; }
.td__rev td:nth-child(2) { width: 90px; }
.td__rev td:nth-child(3) { font-weight: 700; }
.td__rev td:last-child { text-align: right; width: 80px; }
.td__rev a:hover { text-decoration: underline; }

/* 03 clients + location plan */
.td__loc { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 0 56px; align-items: start; }
.td__cl tbody tr { cursor: default; }
.td__cl tbody tr:hover td { background: var(--fg); color: var(--bg); }
.td__cl td:nth-child(2) { font-weight: 700; }
.td__cl td:last-child { color: var(--sub); }
.td__cl tbody tr:hover td:last-child { color: var(--bg); }
.td__plot { position: relative; z-index: 1; }
.td__plbl { display: block; margin-bottom: 8px; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.td__map { position: relative; aspect-ratio: 3 / 1; border: 1px solid var(--fg); background: var(--bg); }
.td__lat, .td__lon { position: absolute; font-style: normal; }
.td__lat { left: 0; right: 0; top: calc(var(--y) * 100%); border-top: 1px dashed var(--soft-ln); }
.td__lon { top: 0; bottom: 0; left: calc(var(--x) * 100%); border-left: 1px dashed var(--soft-ln); }
.td__lat em, .td__lon em { position: absolute; font-style: normal; font-size: 9px; color: var(--sub); }
.td__lat em { left: 4px; top: 2px; } .td__lon em { left: 3px; bottom: 2px; }
.td__pt { position: absolute; left: calc(var(--x) * 100%); top: calc(var(--y) * 100%); width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--fg); transition: transform .3s var(--out), box-shadow .3s; }
.td__pt em { position: absolute; left: 11px; top: -5px; font-style: normal; font-size: 10px; white-space: nowrap; transition: font-weight .2s; }
.td__pt.is-on { transform: scale(1.6); box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--fg); }
.td__pt.is-on em { font-weight: 700; }
.td__ring { position: absolute; left: calc(var(--x) * 100%); top: calc(var(--y) * 100%); width: 26px; height: 26px; margin: -13px 0 0 -13px; border: 1px solid var(--fg); border-radius: 50%; }
.td__ring::after { content: "A"; position: absolute; left: 100%; top: 100%; font-size: 10px; margin: 0 0 0 2px; }
.td__inset { position: relative; margin-top: 18px; height: 190px; border: 1px solid var(--fg); background: var(--bg); }
.td__inset .td__plbl { position: absolute; left: 8px; top: 6px; margin: 0; }
.td__inset .td__pt { left: calc(8% + var(--x) * 72%); top: calc(18% + var(--y) * 66%); }

/* 05 notes */
.td__contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; align-items: end; }
.td__nlist { margin: 0; padding: 0 0 0 1.4em; font-size: 15px; line-height: 1.4; }
.td__nlist li { margin-bottom: 10px; }
.td__mail { font-weight: 700; font-size: clamp(30px, 4.4vw, 76px); letter-spacing: -.045em; line-height: .95; justify-self: end; }
.td__mail:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* cartiglio, fixed bottom-right of the sheet */
.td__block {
  position: fixed; z-index: 30; right: calc(var(--pad) + 2px); bottom: calc((var(--mb) - 40px) / 2); width: 290px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--fg); border: 1px solid var(--fg); color: var(--fg);
}
.tb { background: var(--bg); padding: 5px 8px 6px; display: flex; flex-direction: column; gap: 2px; min-width: 0; transition: background-color .4s; }
.tb--w { grid-column: 1 / -1; }
.tb span { font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--sub); }
.tb b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb.is-tick { animation: tbTick .6s var(--ease); }
@keyframes tbTick { from { background: var(--fg); color: var(--bg); } }
.td .foot { position: relative; }

@media (max-width: 899px) {
  .td { padding: 40px calc(var(--pad) + 22px) 60px; }
  .td::before { inset: 10px; }
  .td__det { grid-template-columns: 1fr; gap: 26px; padding: 44px 0 50px; }
  .td__mark { position: static; flex-direction: row; align-items: center; gap: 14px; }
  .td__mark svg { width: 48px; height: 48px; }
  .td__about, .td__loc, .td__contact { grid-template-columns: 1fr; gap: 26px; }
  .td__notes { margin: 0; }
  .td__leaders { display: none; }
  .td__mail { justify-self: start; }
  .td__block { position: relative; right: auto; bottom: auto; width: auto; margin-top: 30px; z-index: 1; }
}

/* the sheet fades in without a transform, so the fixed title block stays on screen */
.view > .td { animation: tdIn .7s var(--ease) both; }
@keyframes tdIn { from { opacity: 0; } }
#education { position: absolute; top: 0; left: 0; }
.td__k { border-bottom: 0; }
.td__k sup { font-size: .42em; font-weight: 700; margin-left: 2px; vertical-align: super; letter-spacing: 0; }
.td__notes { margin-top: 0; }
.td__notes li { margin-bottom: 34px; }
.td__loc .td__leaders { z-index: 2; }
.td__loc .td__leaders .td__ln { stroke-width: 1; }
@media (min-width: 900px) { .td { padding-bottom: 230px; } }
@media (max-width: 899px) { .td__map .td__pt em { display: none; } }


/* =========================================================
   PROFILE = MINIMAL / BOLD / BLACK (ASCII cat, scroll-lit words)
   ========================================================= */
html:has(.mx), body:has(.mx) { background: #121212; color: #fff; }
body:has(.mx) .hd__menu { background: #fff; color: #121212; box-shadow: inset 0 0 0 1px #fff; }
.mono { font-family: var(--font); font-size: 11px; letter-spacing: .02em; text-transform: uppercase; }
.view > .mx { animation: tdIn .8s var(--ease) both; }
.mx { margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad) 140px; color: #fff; }
.mx__lbl { display: block; margin-bottom: 30px; color: #8a8a8a; }

/* hero: name bottom-left, the ASCII cat filling the right */
.mx__hero { position: relative; height: calc(100vh - var(--dk) - var(--mb) + 40px); min-height: 520px; }
.mx__cat { position: absolute; right: 0; top: 0; width: 64%; height: 100%; color: #fff; }
.mx__cat .ascii, .mx__cat .ascii * { background: transparent !important; color: #fff !important; }
.mx__cat .ascii { position: absolute; inset: 0; overflow: hidden; display: grid; place-items: center; user-select: none; }
.mx__name { position: absolute; left: 0; bottom: 0; z-index: 1; margin: 0; font-weight: 700; font-size: clamp(64px, 12.5vw, 236px); line-height: .8; letter-spacing: -.065em; }
.mx__name span { display: block; }
.mx__role { position: absolute; left: 0; top: 18px; margin: 0; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.3; color: #9a9a9a; }
.mx__hint { position: absolute; right: 0; bottom: 6px; color: #6a6a6a; }

/* about: the paragraph lights up word by word */
.mx__about { padding: 22vh 0 18vh; }
.mx__para { margin: 0; max-width: 17em; font-weight: 700; font-size: clamp(32px, 4.7vw, 84px); line-height: 1.02; letter-spacing: -.04em; }
.mx__w { display: inline-block; }
@supports (animation-timeline: view()) {
  .mx__w { animation: mxLit linear both; animation-timeline: view(); animation-range: entry 5% cover 38%; }
  @keyframes mxLit { from { opacity: .12; } to { opacity: 1; } }
}
.mx.no-sda .mx__w { opacity: .12; transition: opacity .5s var(--ease); }
.mx.no-sda .mx__w.is-lit { opacity: 1; }

/* beliefs: a tall sticky stage, one belief at a time */
.mx__bel { height: 560vh; }
.mx__pin { position: sticky; top: var(--dk); height: calc(100vh - var(--dk)); display: grid; grid-template-rows: auto 1fr auto; padding: 24px 0 70px; }
.mx__pin .mx__lbl { margin: 0; }
.mx__bnum { position: absolute; right: 0; top: 24px; color: #8a8a8a; }
.mx__bnum b { color: #fff; font-weight: 400; }
.mx__bstage { display: grid; place-items: center; overflow: hidden; }
.mx__btxt { margin: 0; max-width: 11em; text-align: center; font-weight: 700; font-size: clamp(48px, 9.4vw, 176px); line-height: .9; letter-spacing: -.055em; text-wrap: balance; }
.mx__btxt.is-in { animation: mxIn .6s var(--out) both; }
@keyframes mxIn { from { opacity: 0; transform: translateY(22%); filter: blur(8px); } }
.mx__bbar { height: 1px; background: #2a2a2a; }
.mx__bbar i { display: block; height: 100%; background: #fff; transform-origin: 0 50%; transform: scaleX(0); }

/* clients: one big line, the others dim while you point at one */
.mx__cl { padding: 20vh 0 16vh; }
.mx__clist { margin: 0; font-weight: 700; font-size: clamp(34px, 5.2vw, 96px); line-height: 1.04; letter-spacing: -.04em; }
.mx__clist i { font-style: normal; font-weight: 300; color: #3a3a3a; margin: 0 .18em; }
.mx__c { transition: color .3s; cursor: default; }
@media (hover: hover) { .mx__clist:hover .mx__c { color: #3a3a3a; } .mx__clist .mx__c:hover { color: #fff; } }

/* record + contact */
.mx__more { padding: 6vh 0 10vh; }
.mx__rec { list-style: none; margin: 0; padding: 0; border-top: 1px solid #2a2a2a; max-width: 900px; }
.mx__rec li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid #1f1f1f; }
.mx__rec li span:first-child { color: #6a6a6a; }
.mx__rec a:hover { text-decoration: underline; text-underline-offset: 3px; }
.mx__end { padding: 18vh 0 6vh; }
.mx__mail { display: inline-block; font-weight: 700; font-size: clamp(40px, 8.4vw, 160px); line-height: .9; letter-spacing: -.06em; }
.mx__mail:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 10px; }
.mx__small { margin: 30px 0 0; color: #7a7a7a; line-height: 1.6; text-transform: none; font-size: 12px; }

/* HUD bottom-left */
.mx__hud { position: fixed; z-index: 30; left: var(--pad); bottom: calc((var(--mb) - 14px) / 2); display: flex; gap: 18px; color: #7a7a7a; pointer-events: none; }
.mx__hud span:last-child { color: #fff; }

@media (max-width: 899px) {
  .mx__hero { height: auto; min-height: 0; display: flex; flex-direction: column; padding-top: 16px; }
  .mx__cat { position: relative; width: 100%; height: 56vh; order: 2; }
  .mx__role { position: static; order: 1; }
  .mx__name { position: static; order: 3; margin-top: 10px; }
  .mx__hint, .mx__hud { display: none; }
  .mx__rec li { grid-template-columns: 70px 1fr; }
}

[data-face].is-error::after { content: attr(data-msg); position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; font-size: 12px; color: var(--sub); border: 1px dashed currentColor; }

/* =========================================================
   PROFILE = WHITE SWISS (moving grid, giant type, ink-ASCII cat)
   ========================================================= */
.view > .sw { animation: tdIn .7s var(--ease) both; }
.sw { position: relative; --lab: 25%; padding-bottom: 140px; }
.sw__no { display: inline-grid; place-items: center; width: 1.15em; height: 1.15em; border: .09em solid currentColor; border-radius: 50%; font-size: .62em; font-weight: 700; vertical-align: .14em; margin-right: .18em; letter-spacing: 0; }

/* grid lines: fixed over the content box, sliding between section layouts */
.sw__lines { position: fixed; z-index: 0; left: var(--pad); right: var(--pad); top: var(--dk); bottom: 0; pointer-events: none; transition: opacity .4s; }
.sw__lines i { position: absolute; top: 0; bottom: 0; left: calc(var(--x) * 100%); width: 1px; background: #e2e2e2; transition: left .9s var(--out); }
.sw__lines i:last-child { margin-left: -1px; }
html.dark .sw__lines i { background: #262626; }
.sw.grid-off .sw__lines { opacity: 0; }
.sw > *:not(.sw__lines) { position: relative; z-index: 1; }

/* control bar */
.sw__bar { position: sticky; top: var(--dk); z-index: 5 !important; display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 38px; font-size: 12px; background: var(--bg); border-bottom: 1px solid var(--fg); }
.sw__bar nav { display: flex; gap: 18px; }
.sw__bar a:hover { text-decoration: underline; text-underline-offset: 3px; }
.sw__tog { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--fg); }
.sw__tog span { margin-right: 4px; }
.sw__tog b { font-weight: 400; padding: 1px 7px; border: 1px solid var(--fg); border-radius: 999px; }
.sw__tog[aria-pressed="true"] b:nth-of-type(1), .sw__tog[aria-pressed="false"] b:nth-of-type(2) { background: var(--fg); color: var(--bg); }

/* hero: black square + giant word */
.sw__hero { padding: 8vh 0 0; }
.sw__mark { display: flex; align-items: flex-end; gap: 2vw; }
.sw__sq { flex: none; width: 21vw; aspect-ratio: 1; background: var(--fg); }
.sw__big { margin: 0; font-weight: 700; font-size: 25.5vw; line-height: .74; letter-spacing: -.07em; white-space: nowrap; }
.sw__intro { display: grid; grid-template-columns: var(--lab) 1fr; margin-top: 4vh; border-top: 1px solid var(--fg); padding-top: 10px; }
.sw__intro p { grid-column: 2; margin: 0; max-width: 36em; font-size: clamp(16px, 1.3vw, 20px); line-height: 1.3; }

/* sections: label column + main */
.sw__sec { display: grid; grid-template-columns: var(--lab) 1fr; padding: 16vh 0 0; }
.sw__lbl { margin: 0; font-weight: 700; font-size: clamp(26px, 2.6vw, 44px); line-height: 1; letter-spacing: -.035em; align-self: start; position: sticky; top: calc(var(--dk) + 60px); }
.sw__lead { margin: 0 0 6vh; max-width: 16em; font-weight: 700; font-size: clamp(32px, 4.2vw, 76px); line-height: .98; letter-spacing: -.045em; }
.sw__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; max-width: 760px; font-size: 14px; line-height: 1.4; }
.sw__cols p { margin: 0; }

/* beliefs: a big list, each line lights up as it crosses the middle */
.sw__bel { list-style: none; margin: 0; padding: 0; }
.sw__bel li { display: flex; gap: .4em; font-weight: 700; font-size: clamp(34px, 5.6vw, 104px); line-height: .98; letter-spacing: -.05em; padding: .06em 0; border-bottom: 1px solid #e2e2e2; }
html.dark .sw__bel li { border-color: #262626; }
.sw__bel li span { font-size: .2em; font-weight: 400; letter-spacing: 0; padding-top: .5em; min-width: 2.4em; }
@supports (animation-timeline: view()) {
  .sw__bel li { animation: swLit linear both; animation-timeline: view(); animation-range: cover 25% cover 75%; }
  @keyframes swLit { 0% { color: #d4d4d4; } 40%, 60% { color: var(--fg); } 100% { color: #d4d4d4; } }
}
.sw.no-sda .sw__bel li { color: #d4d4d4; transition: color .35s; }
.sw.no-sda .sw__bel li.is-lit { color: var(--fg); }

/* studio cat: ink characters on paper */
.sw__catbox { position: relative; }
.sw__cat { position: relative; height: min(78vh, 760px); color: var(--fg); }
.sw__cat .ascii, .sw__cat .ascii * { background: transparent !important; color: #121212 !important; }
.sw__cat .ascii { position: absolute; inset: 0; overflow: hidden; display: grid; place-items: center; user-select: none; }
html.dark .sw__cat .ascii { filter: invert(1); }
.sw__cap { margin: 10px 0 0; font-size: 12px; color: var(--sub); }

/* clients: two columns of big names */
.sw__cl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.sw__cl li { display: flex; flex-direction: column; padding: 14px 0 18px; border-top: 1px solid var(--fg); }
.sw__cl b { font-size: clamp(22px, 2.3vw, 40px); line-height: 1; letter-spacing: -.035em; }
.sw__cl span { margin-top: 6px; font-size: 12px; color: var(--sub); }

/* record + contact */
.sw__rec { list-style: none; margin: 0; padding: 0; max-width: 900px; font-size: 14px; }
.sw__rec li { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--fg); }
.sw__rec a:hover { text-decoration: underline; text-underline-offset: 3px; }
.sw__sec--end { padding-top: 22vh; }
.sw__mail { grid-column: 1 / -1; margin-top: 4vh; font-weight: 700; font-size: 9.2vw; line-height: .85; letter-spacing: -.065em; white-space: nowrap; }
.sw__mail:hover { text-decoration: underline; text-decoration-thickness: .04em; text-underline-offset: .08em; }
.sw__fine { grid-column: 2; margin: 22px 0 0; font-size: 12px; color: var(--sub); }

@media (max-width: 899px) {
  .sw { --lab: 100%; }
  .sw__bar nav { display: none; }
  .sw__sq { width: 18vw; }
  .sw__intro, .sw__sec { grid-template-columns: 1fr; }
  .sw__intro p, .sw__fine { grid-column: 1; }
  .sw__lbl { position: static; margin-bottom: 26px; }
  .sw__cols, .sw__cl { grid-template-columns: 1fr; }
  .sw__cat { height: 60vh; }
}
/* hero fits the width: square + word, with room below for the p's descender */
.sw__sq { width: 15.5vw; }
.sw__big { font-size: 21.5vw; }
.sw__mark { align-items: flex-start; padding-bottom: 5vw; }
.sw__big { line-height: .74; padding-top: 0; }


/* =========================================================
   PROFILE (black) — SCROLL STORY: pinned stages, --p drives the transitions
   ========================================================= */
.mx__stage { position: relative; --p: 0; }
.mx__stage--hero { height: 190vh; }
.mx__stage--bel { height: 640vh; }
.mx__stage--cl { height: 420vh; }
.mx__stage--end { height: 180vh; }
.mx__pinbox { position: sticky; top: var(--dk); height: calc(100vh - var(--dk)); overflow: hidden; }

/* 1 · name shrinks and lifts away, the cat drifts in and fades */
.mx__stage--hero .mx__cat { position: absolute; right: 0; top: 0; width: 64%; height: 100%; transform: translateX(calc(var(--p) * -16%)) scale(calc(1 + var(--p) * .5)); opacity: calc(1 - var(--p) * .9); }
.mx__stage--hero .mx__name { position: absolute; left: 0; bottom: 0; transform-origin: 0 100%; transform: translateY(calc(var(--p) * -22vh)) scale(calc(1 - var(--p) * .42)); opacity: calc(1 - max(0, var(--p) - .55) * 2.2); }
.mx__stage--hero .mx__role { position: absolute; left: 0; top: 18px; opacity: calc(1 - var(--p) * 2.5); }
.mx__stage--hero .mx__hint { position: absolute; right: 0; bottom: 6px; opacity: calc(1 - var(--p) * 4); }

/* 2 · a white circle opens; the beliefs play inside it, inverted */
.mx__disc { position: absolute; inset: 0; background: #fff; clip-path: circle(0% at 50% 50%); }
.mx__diff { position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr auto; padding: 24px 0 70px; color: #fff; mix-blend-mode: difference; }
.mx__diff .mx__lbl { margin: 0; color: #fff; }
.mx__diff .mx__bnum { color: #fff; }
.mx__diff .mx__bbar { background: #3a3a3a; }

/* 3 · clients slide sideways while the page holds still */
.mx__stage--cl .mx__pinbox { display: flex; flex-direction: column; justify-content: center; }
.mx__stage--cl .mx__lbl { position: absolute; left: 0; top: 24px; margin: 0; }
.mx__track { display: flex; gap: 7vw; width: max-content; will-change: transform; }
.mx__ci { flex: none; display: flex; flex-direction: column; gap: 14px; }
.mx__ci span { color: #6a6a6a; }
.mx__ci b { font-size: clamp(60px, 11vw, 210px); line-height: .88; letter-spacing: -.055em; white-space: nowrap; color: #3a3a3a; transition: color .35s; }
.mx__ci.is-near b { color: #fff; }
.mx__ccount { position: absolute; right: 0; bottom: 70px; color: #8a8a8a; }
.mx__ccount b { color: #fff; font-weight: 400; }

/* 4 · the e-mail assembles letter by letter */
.mx__stage--end .mx__pinbox { display: flex; flex-direction: column; justify-content: center; }
.mx__stage--end .mx__lbl { position: absolute; left: 0; top: 24px; margin: 0; }
.mx--story .mx__mail { display: inline-flex; overflow: hidden; padding-bottom: .06em; font-size: clamp(40px, 9.4vw, 176px); white-space: nowrap; align-self: flex-start; }
.mx__ch { display: inline-block; white-space: pre; transform: translateY(calc((1 - clamp(0, var(--p) * 2.4 - var(--i) * .04, 1)) * 108%)); }
.mx--story .mx__small { opacity: calc(var(--p) * 3 - 1.6); }

@media (max-width: 899px) {
  .mx__stage--hero { height: 150vh; }
  .mx__stage--hero .mx__cat { top: 12%; width: 100%; height: 56%; }
  .mx__stage--hero .mx__role { position: absolute; }
  .mx__stage--bel { height: 520vh; }
  .mx__stage--cl { height: 360vh; }
  .mx__ci b { font-size: 19vw; }
}

/* Work = Index only: no Grid / List switch */
.ctl #vw { display: none; }


/* =========================================================
   TEST: SHOWREEL GLOBE — <html class="reel-globe">; remove the class for the contact sheet
   ========================================================= */
.gl { position: absolute; inset: 0; perspective: 1600px; perspective-origin: 50% 50%; cursor: grab; touch-action: pan-y; user-select: none; }
.gl.is-drag { cursor: grabbing; }
.gl__ball { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; transition: scale .6s; }
.gl__t {
  position: absolute; left: calc(var(--tw) / -2); top: calc(var(--tw) * -9 / 32); width: var(--tw); aspect-ratio: 16 / 9;
  background: var(--faint); overflow: hidden; border-radius: var(--r-s); transition: box-shadow .3s;
}
.gl__t img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.gl__t.is-cur, .gl__t.is-hot { box-shadow: 0 0 0 2px var(--fg); }
.stage.is-ov .gl { cursor: grab; }


/* =========================================================
   TEST: SHOWREEL CRAWL — <html class="reel-crawl"> (reel-globe = globe, neither = contact sheet)
   ========================================================= */
.cr { position: absolute; inset: 0; overflow: hidden; }
.cr::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(var(--bg) 10%, transparent 46%); }
.cr__plane { position: absolute; left: 50%; top: 14%; width: var(--pw); margin-left: calc(var(--pw) / -2); transform-origin: 50% 0; will-change: transform; }
.cr__b { padding-bottom: calc(var(--pw) * .07); opacity: .5; transition: opacity .5s; }
.cr__b.is-cur { opacity: 1; }
.cr__t { display: flex; align-items: baseline; gap: .4em; margin-bottom: calc(var(--pw) * .018); font-weight: 700; font-size: calc(var(--pw) * .062); line-height: 1; letter-spacing: -.045em; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr__t span { font-size: .38em; font-weight: 400; letter-spacing: 0; }
.cr__t em { font-style: normal; font-weight: 400; font-size: .45em; letter-spacing: -.01em; color: var(--sub); }
.cr__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: calc(var(--pw) * .01); }
.cr__i { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--faint); }
.cr__i img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .cr__plane { top: 10%; } }
.cr__plane { top: 60%; }
@media (max-width: 700px) { .cr__plane { top: 60%; } }

.cr__i { position: relative; }
.cr__i video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; }
.cr__i video.is-playing { opacity: 1; }


/* =========================================================
   TEST: SHOWREEL FLY-THROUGH — <html class="reel-depth"> (also: reel-crawl, reel-globe, none)
   ========================================================= */
.dp { position: absolute; inset: 0; overflow: hidden; perspective-origin: 50% 50%; }
.dp__world { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; }
.dp__c { position: absolute; left: 0; top: 0; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--faint); will-change: transform, opacity; transition: box-shadow .3s; }
.dp__c img, .dp__c video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dp__c video { opacity: 0; transition: opacity .6s; }
.dp__c video.is-playing { opacity: 1; }
.dp__c.is-cur { box-shadow: 0 0 0 2px var(--fg); }


/* =========================================================
   TEST: SHOWREEL CARD STACK — <html class="reel-stack"> (also reel-depth / reel-crawl / reel-globe / none)
   ========================================================= */
.sk { position: absolute; inset: 0; overflow: hidden; perspective-origin: 50% 20%; }
.sk__deck { position: absolute; left: 50%; bottom: 9%; width: 0; height: 0; transform-style: preserve-3d; }
.sk__c {
  position: absolute; left: 0; bottom: 0; display: block; width: var(--cw); aspect-ratio: 16 / 9; overflow: hidden;
  transform-origin: 50% 100%; background: var(--faint); will-change: transform, opacity;
  box-shadow: 0 -1px 0 rgba(0, 0, 0, .06), 0 14px 34px rgba(0, 0, 0, .14);
}
.sk__c img, .sk__c video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sk__c video { opacity: 0; transition: opacity .6s; }
.sk__c video.is-playing { opacity: 1; }
.sk__cap { position: absolute; left: 10px; bottom: 8px; z-index: 1; padding: 3px 7px; background: var(--fg); color: var(--bg); font-size: 12px; opacity: 0; transition: opacity .25s; }
.sk__cap b { font-weight: 400; opacity: .6; }
.sk__c.is-hot .sk__cap { opacity: 1; }
.sk__l, .sk__r { position: absolute; top: 50%; font-size: 14px; transform: translateY(-50%); }
.sk__l { left: 0; } .sk__r { right: 0; }
.sk__f { position: absolute; left: 0; bottom: 0; color: var(--sub); font-size: 10px; }
@media (max-width: 700px) { .sk__l, .sk__r { top: 14px; transform: none; } .sk__deck { bottom: 14%; } }

/* card stack v2: a taller, steeper column of strips; the lifted file sits on top */
.sk { perspective-origin: 50% 0%; }
.sk__deck { bottom: 7%; }
.sk__c { transform-origin: 50% 100%; box-shadow: 0 -1px 0 rgba(0, 0, 0, .08), 0 8px 22px rgba(0, 0, 0, .12); cursor: pointer; }
.sk__c.is-hot { box-shadow: 0 18px 50px rgba(0, 0, 0, .25); }

/* card stack: wider, more horizontal cards */
.sk__c { aspect-ratio: 2 / 1; }

/* card stack: cards almost upright, facing the viewer; only the top band of each one shows */
.sk__c { aspect-ratio: 16 / 10; }
.sk { perspective-origin: 50% -10%; }
.sk__deck { bottom: -16%; }
@media (max-width: 700px) { .sk__deck { bottom: -6%; } }


/* =========================================================
   TEST: SHOWREEL SPINNER — <html class="reel-spin"> (also reel-stack / reel-depth / reel-crawl / reel-globe / none)
   ========================================================= */
.spn { position: absolute; inset: 0; overflow: hidden; perspective-origin: 50% 50%; }
.spn__tilt { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; transform: rotateZ(-20deg) rotateX(-12deg); }
.spn__axis { position: absolute; left: 0; top: 0; transform-style: preserve-3d; }
.spn__c {
  position: absolute; left: 0; top: calc(var(--cw) * -.625); display: block; width: var(--cw); aspect-ratio: 4 / 5; overflow: hidden;
  transform-origin: 0 50%; background: var(--faint); backface-visibility: visible; will-change: transform;
}
.spn__c img { display: block; width: 100%; height: 100%; object-fit: cover; }
.spn__c.is-hot { outline: 2px solid var(--fg); outline-offset: -2px; }
.spn__l, .spn__r { position: absolute; bottom: 6px; font-size: 14px; }
.spn__l { left: 0; } .spn__r { right: 0; }
.spn__tilt { transform: rotateZ(-24deg) rotateX(-30deg); }

/* spinner pages in 16:9 */
.spn__c { aspect-ratio: 16 / 9; top: calc(var(--cw) * -9 / 32); }
.spn__c.is-hot { outline: 0; box-shadow: 0 20px 50px rgba(0, 0, 0, .28); }


/* =========================================================
   TEST: SHOWREEL EXPANDING LIST — <html class="reel-list"> (also reel-spin / reel-stack / reel-depth / reel-crawl / reel-globe / none)
   ========================================================= */
.xl { position: absolute; inset: 0; overflow: hidden; }
.xl__i { position: absolute; left: 0; right: 0; top: 0; display: block; will-change: transform, height; color: var(--fg); }
.xl__i::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 1px; background: var(--fg); opacity: var(--on, 0); }
.xl__n { position: absolute; left: 0; top: 2px; font-size: 13px; line-height: 1; }
.xl__t { position: absolute; right: 0; top: 2px; font-size: 10px; color: var(--sub); }
.xl__m { position: absolute; z-index: 1; left: 50%; top: 26px; bottom: 0; width: var(--mw); margin-left: calc(var(--mw) / -2); overflow: hidden; background: var(--faint); }
.xl__m img, .xl__m video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.xl__m video { opacity: 0; transition: opacity .6s; }
.xl__m video.is-playing { opacity: 1; }
.xl__big {
  position: absolute; z-index: 0; left: 0; right: 0; top: calc(50% + 13px); transform: translateY(-50%); pointer-events: none;
  text-align: center; white-space: nowrap; overflow: hidden; font-weight: 400; font-size: clamp(64px, 11.5vw, 220px); line-height: .9; letter-spacing: -.05em;
  color: #bdbdbd; opacity: calc(var(--on, 0) * 1.4 - .4);
}
html.dark .xl__big { color: #cfcfcf; }

/* expanding list: images always 16:9, the middle one wider */
.xl__m { width: var(--w, var(--mw)); margin-left: calc(var(--w, var(--mw)) / -2); }
/* expanding list: no big background title */
.xl__big { display: none; }

/* expanding list — Overview: every project in one grid (built in makeList) */
.xl { transition: opacity .35s; }
.xl.is-ov { opacity: 0; pointer-events: none; }
.xov {
  position: absolute; inset: 0; z-index: 3; display: grid; place-content: center;
  grid-template-columns: repeat(var(--oc, 6), var(--ow, 160px)); gap: var(--og, 14px);
  visibility: hidden; pointer-events: none;
}
.xov.is-on { visibility: visible; pointer-events: auto; }
.xov__i { display: block; width: var(--ow); text-align: left; color: var(--fg); }
.xov__m { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--faint, #f1f1f1); }
.xov__m img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.1,1); }
/* a solid block covers each tile and slides off sideways, one after another */
.xov__m::after { content: ""; position: absolute; inset: 0; background: var(--fg); transform-origin: 100% 50%; transition: transform .55s cubic-bezier(.65,0,.35,1); }
.xov.is-on .xov__m::after { transform: scaleX(0); transition-delay: var(--d); }
.xov__c { display: block; height: 22px; padding-top: 5px; font-size: 12px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transition: opacity .3s; }
.xov.is-on .xov__c { opacity: 1; transition-delay: calc(var(--d) + .3s); }
.xov__c b { font-weight: 700; margin-right: 4px; }
.xov__i:hover .xov__m img { transform: scale(1.05); }
.xov__i.is-cur .xov__m { outline: 2px solid var(--fg); outline-offset: 2px; }
.xov__i:hover .xov__c { text-decoration: underline; text-underline-offset: 2px; }

/* page change: the bricks wipe (eight rows sweep across) */
.bwipe { position: fixed; inset: 0; z-index: 200; pointer-events: none; display: grid; grid-template-rows: repeat(8, 1fr); visibility: hidden; }
.bwipe.on { visibility: visible; pointer-events: all; }
.bwipe i { background: var(--fg); transform: scaleX(0); margin-bottom: -1px; }

/* =========================================================
   overlay menu: tiles arrive like the bricks page wipe —
   each tile sweeps in from the left as a white brick, then the dark
   bricks over its labels slide off to the right (staggered)
   ========================================================= */
html .wb .page > .w, html .wb .page > .slide2 {
  opacity: 1; transform: none; clip-path: inset(0 100% 0 0);
  transition: clip-path .25s cubic-bezier(.65, 0, .35, 1), background-color .45s, color .45s;
}
html .wb.is-open .page > .w, html .wb.is-open .page > .slide2 {
  opacity: 1; transform: none; clip-path: inset(0 0 0 0);
  transition: clip-path .5s cubic-bezier(.65, 0, .35, 1) calc(.3s + var(--d, 0s)), background-color .45s, color .45s;
}
html .wb.is-open .page > .w:hover { transform: none; }
.wb u.mbx { position: relative; display: block; width: fit-content; text-decoration: none; }
.clock__txt u.mbx { margin: 0 auto; }
.slide2__txt { position: relative; }
.wb .mbk {
  position: absolute; inset: -.04em -.08em; z-index: 3; pointer-events: none;
  background: #121212; transform: scaleX(1); transform-origin: 100% 50%; transition: transform .2s;
}
.wb.is-open .mbk { transform: scaleX(0); transition: transform .45s cubic-bezier(.65, 0, .35, 1) calc(.7s + var(--d, 0s) + var(--b, 0s)); }
@media (prefers-reduced-motion: reduce) {
  html .wb .page > .w, html .wb .page > .slide2 { clip-path: none; transition: none; }
  .wb .mbk { display: none; }
}

/* =========================================================
   overlay menu: BLACK GLASS — smoked panel over the dimmed page,
   faint white rims + top highlight, white type; hover = clear white
   ========================================================= */
.dim { background: rgba(18, 18, 18, .55); }
.wb, html.dark .wb {
  --char: rgba(12, 12, 12, .5); --wbg: rgba(12, 12, 12, .5);
  --tile: rgba(255, 255, 255, .07); --card2: rgba(255, 255, 255, .07);
  --fg: #fff; --dim: rgba(255, 255, 255, .5); --soft: rgba(255, 255, 255, .4); --wline: rgba(255, 255, 255, .7);
  background: rgba(12, 12, 12, .5);
  -webkit-backdrop-filter: blur(30px) saturate(1.5) brightness(.85); backdrop-filter: blur(30px) saturate(1.5) brightness(.85);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 30px 90px rgba(0, 0, 0, .5);
}
.w, .slide2, html.dark .slide2 {
  background: rgba(255, 255, 255, .07); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 0 0 1px rgba(255, 255, 255, .07);
}
.w__big { color: #fff; }
.w__lbl span, .sel__h span, .sel__lbl { color: rgba(255, 255, 255, .5); }
.w__list i, .w__list i:nth-child(odd) { background: #fff; }
.w__list i:nth-child(even) { background: rgba(255, 255, 255, .3); }
.wb.is-open .w:hover { background: rgba(255, 255, 255, .92); color: #121212; }
.wb.is-open .w:hover .w__big { color: #121212; }
.wb.is-open .w:hover .w__lbl span, .wb.is-open .w:hover .sel__h span { color: #8a8a8a; }
.wb.is-open .w:hover .w__list i { background: #121212; }
.slide2__knob { background: #fff; color: #121212; }
.slide2__txt { background: linear-gradient(90deg, rgba(255,255,255,.4) 0%, rgba(255,255,255,.4) 40%, #fff 50%, rgba(255,255,255,.4) 60%, rgba(255,255,255,.4) 100%); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; }
.clock { background: rgba(255, 255, 255, .08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 0 0 1px rgba(255, 255, 255, .1); }
.clock i::after { background: #fff; }
.clock__txt { color: #fff; }
.clock__txt b, .clock__txt span { background: none; }
.clock__txt span { color: rgba(255, 255, 255, .5); }
.tog { background: rgba(255, 255, 255, .16); }
.tog i { background: #fff; }
.wb.is-open .w--slim:hover .tog { background: #e6e6e6; }
.wb.is-open .w--slim:hover .tog i { background: #121212; }
.sel__chips button { color: rgba(255, 255, 255, .45); }
.sel__chips button:hover, .sel__chips button.is-on { color: #fff; }
.sel__go, html.dark .sel__go { background: #fff; color: #121212; }
.sel__go:hover { background: rgba(255, 255, 255, .75); }
.wb.is-open .w--sel:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.wb .mbk { background: #fff; }
.wb .dots button, html.dark .wb .dots button { background: rgba(255, 255, 255, .25); }
.wb .dots button.is-on, html.dark .wb .dots button.is-on { background: #fff; }
.hd__menu[aria-expanded="true"], html.dark .hd__menu[aria-expanded="true"] { background: rgba(255, 255, 255, .12); color: #fff; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.wb .cal { color: #fff; }
.wb.is-open .w:hover .cal { color: #121212; }
.wb .w--clock, .wb.is-open .w--clock:hover { background: none; box-shadow: none; }

/* =========================================================
   SHOWREEL — list + viewing window (html.reel-window)
   ========================================================= */
.wv { position: absolute; inset: 0; overflow: hidden; transition: opacity .35s; --wx: 42%; --mx: 62%; }
.wv.is-ov { opacity: 0; pointer-events: none; }
.wv__rows { position: absolute; inset: 0; }
.wv__r {
  position: absolute; left: 0; right: 0; top: 0; border-bottom: 1px solid var(--hair, #e4e4e4);
  cursor: pointer; will-change: transform, height; overflow: hidden;
}
.wv__n {
  position: absolute; left: 0; bottom: 12px; max-width: calc(var(--wx) - 24px);
  font-size: clamp(20px, 2.3vw, 36px); line-height: 1.02; letter-spacing: -.03em; font-weight: 500;
  color: color-mix(in srgb, var(--fg) calc(30% + var(--on, 0) * 70%), transparent);
}
.wv__t, .wv__y {
  position: absolute; bottom: 14px; font-size: 11px; letter-spacing: .02em; text-transform: uppercase;
  color: color-mix(in srgb, var(--fg) calc(35% + var(--on, 0) * 65%), transparent);
}
.wv__t { left: var(--mx); display: flex; align-items: center; gap: 8px; }
.wv__t i { width: 5px; height: 5px; background: currentColor; }
.wv__y { right: 0; }
.wv__r:hover .wv__n, .wv__r:hover .wv__t, .wv__r:hover .wv__y { color: var(--fg); }
/* opened row: big image on the left, details on the right */
.wv__big {
  position: absolute; left: 0; top: 14px; width: calc(var(--wx) + var(--ww) * .35); bottom: calc(12px + clamp(20px, 2.3vw, 36px) * 1.02 * 2 + 14px);
  overflow: hidden; clip-path: inset(0 0 calc((1 - var(--ex, 0)) * 100%) 0); pointer-events: none;
}
.wv__big img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.08 - var(--ex, 0) * .08)); }
.wv__x {
  position: absolute; left: var(--mx); right: 0; top: 14px; max-width: 420px;
  opacity: var(--ex, 0); transform: translateY(calc((1 - var(--ex, 0)) * 14px));
  pointer-events: none; font-size: 13px; line-height: 1.4;
}
.wv__r.is-on .wv__x { pointer-events: auto; }
.wv__brief { margin: 0 0 16px; }
.wv__dl { display: grid; grid-template-columns: 90px 1fr; gap: 4px 12px; margin: 0 0 18px; }
.wv__dl dt { color: var(--dim); }
.wv__dl dd { margin: 0; }
.wv__go { display: inline-flex; gap: 24px; padding-bottom: 3px; border-bottom: 1px solid currentColor; }
/* the fixed window */
.wv__win {
  position: absolute; z-index: 2; left: var(--wx); top: 50%; width: var(--ww); height: var(--wh); margin-top: calc(var(--wh) / -2);
  overflow: hidden; background: var(--fg); cursor: pointer;
  box-shadow: 0 0 0 5px var(--bg), 0 0 0 6px var(--hair, #e4e4e4);
}
.wv__p { position: absolute; inset: 0; will-change: transform; }
.wv__p img, .wv__p video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wv__p video { opacity: 0; transition: opacity .4s; }
.wv__p video.is-playing { opacity: 1; }
@media (max-width: 700px) {
  .wv { --wx: 56%; --mx: 100%; }
  .wv__n { max-width: calc(var(--wx) - 14px); font-size: 19px; }
  .wv__t { display: none; }
  .wv__y { display: none; }
  .wv__big { width: 100%; }
  .wv__x { left: 0; top: auto; bottom: calc(12px + 19px * 2.2 + 10px); display: none; }
}

/* point-cloud studio cat (pointcloud.js) in the Profile hero */
.mx__cat .pcl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; }
.mx__cat .pcl:active { cursor: grabbing; }

/* profile hero: no big name (title kept for screen readers only), the cat sits in the middle */
.mx__h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; }
.mx__stage--hero .mx__cat { left: 0; right: 0; width: 100%; transform: scale(calc(1 + var(--p) * .5)); }
@media (max-width: 899px) { .mx__stage--hero .mx__cat { top: 8%; height: 84%; } }

/* beliefs: eight rows of white bricks slide in instead of the circle (text stays inverted via difference) */
.mx__rows { clip-path: none !important; background: none !important; display: grid; grid-template-rows: repeat(8, 1fr); }
.mx__rows i { background: #fff; transform: scaleX(0); margin-bottom: -1px; }

/* =========================================================
   SHOWREEL IN BRICKS (html.reel-bricks)
   ========================================================= */
.bk { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .35s; }
.bk.is-ov { opacity: 0; pointer-events: none; }
.bk__in { width: var(--fw, 60vw); }
.bk__f { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--faint, #f2f2f2); }
.bk__img, .bk__v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bk__v { opacity: 0; transition: opacity .4s; }
.bk__v.is-playing { opacity: 1; }
.bk__w { position: absolute; inset: 0; display: grid; grid-template-rows: repeat(8, 1fr); pointer-events: none; z-index: 2; }
.bk__w i { position: relative; overflow: hidden; margin-bottom: -1px; }
.bk__w b { position: absolute; inset: 0; z-index: 2; background: var(--fg); transform: scaleX(0); }
.bk__w s { position: absolute; left: 0; width: 100%; height: 800%; opacity: 0; background-size: cover; background-position: center; text-decoration: none; }
.bk__w i:nth-child(1) s { top: -0%; }
.bk__w i:nth-child(2) s { top: -100%; }
.bk__w i:nth-child(3) s { top: -200%; }
.bk__w i:nth-child(4) s { top: -300%; }
.bk__w i:nth-child(5) s { top: -400%; }
.bk__w i:nth-child(6) s { top: -500%; }
.bk__w i:nth-child(7) s { top: -600%; }
.bk__w i:nth-child(8) s { top: -700%; }

.bk__cap { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 0 24px; padding-top: 14px; }
.bk__no { font-size: 13px; color: var(--dim); font-variant-numeric: tabular-nums; }
.bk__name { font-size: clamp(22px, 2.6vw, 40px); font-weight: 700; letter-spacing: -.035em; line-height: 1; }
.bk__meta { text-align: right; color: var(--dim); }
.bk__t { position: relative; display: inline-block; text-decoration: none; }
.bk__mask { position: absolute; inset: -.06em -.1em; background: var(--fg); transform: scaleX(0); z-index: 1; }
.bk__idx { display: flex; gap: 4px; margin-top: 16px; }
.bk__idx button { flex: 0 1 25px; aspect-ratio: 100 / 48; background: var(--hair, #e2e2e2); transition: background-color .25s, transform .3s var(--out); }
.bk__idx button:hover { background: var(--dim); }
.bk__idx button.is-on { background: var(--fg); }
@media (max-width: 700px) {
  .bk__cap { grid-template-columns: 1fr; gap: 4px; }
  .bk__meta { text-align: left; }
  .bk__idx { gap: 3px; }
}

/* =========================================================
   NAV IN THE CORNERS (html.nav-corners) — no dock: l1l2 top-left,
   Index / Profile top-right, project name + type bottom-left, counter
   bottom-right. White + difference blend, so it reads on any page.
   ========================================================= */
html.nav-corners { --dk: 60px; }
html.nav-corners .dock { display: none; }
.cn { display: none; }
html.nav-corners .cn { display: block; }
html.nav-corners .hd__logo { visibility: hidden; }
.cn__tl { top: calc((var(--dk) - 30px) / 2); left: var(--pad); font-size: 30px !important; font-weight: 700; letter-spacing: -.03em !important; line-height: 1 !important; display: inline-flex; }
.cn__tl i { font-style: italic; }
@media (max-width: 700px) { .cn__tl { font-size: 24px !important; top: calc((var(--dk) - 24px) / 2); } }
.cn > * { position: fixed; z-index: 45; color: #fff; mix-blend-mode: difference; font-size: 15px; line-height: 1.2; letter-spacing: -.01em; }
.cn__tr { top: calc((var(--dk) - 18px) / 2); right: var(--pad); display: flex; gap: 22px; }
.cn__l { position: relative; }
.cn__l::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: 100% 50%; transition: transform .4s cubic-bezier(.65,0,.35,1); }
.cn__l:hover::after, .cn__l.is-on::after { transform: scaleX(1); transform-origin: 0 50%; }
.cn__bl { left: var(--pad); bottom: calc((var(--mb) - 36px) / 2); display: flex; flex-direction: column; max-width: calc(50vw - 60px); }
.cn__bl b { font-weight: 700; }
.cn__bl span { opacity: .55; }
.cn__br { right: var(--pad); bottom: calc((var(--mb) - 18px) / 2); font-variant-numeric: tabular-nums; }
.cn__t { position: relative; display: inline-block; width: max-content; max-width: 100%; }
.cn__mask { position: absolute; inset: -.05em -.12em; background: #fff; transform: scaleX(0); }
html.intro .cn { opacity: 0; }
.cn { transition: opacity .5s; }
/* the bricks reel already shows the name under the image: drop its own counter */
html.nav-corners .bk__no { display: none; }
html.nav-corners .bk__cap { grid-template-columns: 1fr auto; }
@media (max-width: 700px) {
  .cn > * { font-size: 13px; }
  .cn__tr { gap: 14px; }
}
/* Profile has its own HUD in the bottom corners */
html[data-r="profile"] .cn__bl, html[data-r="profile"] .cn__br { display: none; }

/* =========================================================
   PROFILE — clear section breaks: full-width rule, big title, number
   ========================================================= */
.mx .mx__sh {
  position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  margin: 0 0 clamp(36px, 7vh, 80px); padding-top: 16px; color: #fff; text-transform: none; letter-spacing: 0;
}
.mx .mx__sh::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: 0 50%; transition: transform 1s cubic-bezier(.65,0,.35,1);
}
.mx .mx__sh.is-in::before { transform: scaleX(1); }
.mx__st { position: relative; display: inline-block; font-size: clamp(44px, 7vw, 120px); font-weight: 700; letter-spacing: -.055em; line-height: .9; }
.mx__sk { position: absolute; inset: -.04em -.06em; background: currentColor; transform: scaleX(1); transform-origin: 100% 50%; transition: transform .55s cubic-bezier(.65,0,.35,1) .35s; }
.mx__sh.is-in .mx__sk { transform: scaleX(0); }
.mx__sn { font-size: 15px; font-variant-numeric: tabular-nums; opacity: .55; }
/* pinned stages: the header sits across the top */
.mx__diff .mx__sh, .mx__stage--end .mx__sh, .mx__stage--cl .mx__sh { margin: 0; right: 0; }
.mx__stage--end .mx__sh, .mx__stage--cl .mx__sh { position: absolute; }
/* more air between sections */
.mx__about { padding-top: 16vh; }
.mx__cl { padding-top: 16vh; }
.mx__more { padding-top: 16vh; }
@media (prefers-reduced-motion: reduce) { .mx .mx__sh::before, .mx__sk { transition: none; } }
/* beliefs: its own counter sits on the progress bar, the section number keeps the top */
.mx__diff .mx__bnum { top: auto; bottom: 84px; }

/* =========================================================
   SHOWREEL — FLY-THROUGH CLOUD (html.reel-fly)
   ========================================================= */
.fly { position: absolute; inset: calc(-1 * var(--dk) - var(--pad)) calc(-1 * var(--pad)) calc(-1 * var(--mb)); overflow: hidden; transition: opacity .35s;
  background: linear-gradient(to bottom, var(--bg) 0%, var(--bg) 72%, #d9d9d9 100%); }
html.dark .fly { background: linear-gradient(to bottom, var(--bg) 0%, var(--bg) 72%, #262626 100%); }
.fly.is-ov { opacity: 0; pointer-events: none; }
.fly__cam { position: absolute; inset: 0; perspective-origin: 50% 50%; }
.fly__w { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; }
.fly__c {
  position: absolute; left: 0; top: 0; aspect-ratio: 16 / 9; overflow: hidden; display: block;
  background: #e6e6e6; box-shadow: 0 18px 50px rgba(0, 0, 0, .14); backface-visibility: hidden; will-change: transform, opacity;
}
.fly__c img, .fly__c video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fly__c video { opacity: 0; transition: opacity .4s; }
.fly__c video.is-playing { opacity: 1; }
.fly__c--hero { box-shadow: 0 30px 80px rgba(0, 0, 0, .22); }
html.reel-fly .stage { overflow: visible; }
html.reel-fly body { overflow-x: hidden; }

/* =========================================================
   SHOWREEL — TABLE (html.reel-table): small-type rows slide up behind one fixed 16:9 frame
   ========================================================= */
.tbl { position: absolute; inset: 0; display: flex; flex-direction: column; font-size: 13px; line-height: 1; transition: opacity .35s; }
.tbl.is-ov { opacity: 0; pointer-events: none; }
.tbl__hd, .tbl__r { display: grid; grid-template-columns: 4fr 4fr 3fr 1fr 1.2fr; gap: 0 16px; align-items: center; }
.tbl__hd { flex: 0 0 auto; height: 26px; color: var(--dim); border-bottom: 1px solid var(--hair, #e2e2e2); }
.tbl__hd > :last-child, .tbl__r > :last-child { text-align: right; }
.tbl__rows { position: relative; flex: 1; overflow: hidden; }
.tbl__r { position: absolute; left: 0; right: 0; top: 0; height: var(--rh, 19px); will-change: transform; color: var(--fg); }
.tbl__r > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbl__r.is-on { font-weight: 700; }
.tbl__r:hover { color: var(--fg); opacity: 1 !important; text-decoration: underline; text-underline-offset: 3px; }
.tbl__f { position: absolute; z-index: 2; left: 50%; top: calc(26px + var(--ft, 200px)); width: var(--fw, 600px); height: var(--fh, 340px); margin-left: calc(var(--fw, 600px) / -2); background: var(--bg); }
.tbl__g { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; background: var(--bg); }
.tbl__im { position: relative; overflow: hidden; background: #e6e6e6; }
.tbl__im img, .tbl__im video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tbl__im video { opacity: 0; transition: opacity .4s; }
.tbl__im video.is-playing { opacity: 1; }
/* the frame masks the rows that pass behind it, with a clear band above and below */
.tbl__f::before { content: ""; position: absolute; left: calc(-50vw); right: calc(-50vw); top: calc(-1 * var(--gap, 18px) + 2px); bottom: calc(-1 * var(--gap, 18px) + 2px); background: var(--bg); z-index: -1; }
@media (max-width: 700px) {
  .tbl { font-size: 11.5px; }
  .tbl__hd, .tbl__r { grid-template-columns: 4.2fr 1.1fr 1.9fr; gap: 0 10px; }
  .tbl__hd > :nth-child(2), .tbl__hd > :nth-child(3), .tbl__r > :nth-child(2), .tbl__r > :nth-child(3) { display: none; }
}

/* =========================================================
   TOP HEADER (html.nav-head): l1l2© + tiny description + Udine time on the left,
   a light/dark switch, then WORK / INDEX / PROFILE big and bold across the width
   ========================================================= */
.th { display: none; }
html.nav-head { --dk: 78px; }
html.nav-head .cn { display: none; }
html.nav-head .th {
  display: grid; position: fixed; z-index: 46; top: 0; left: 0; right: 0; height: var(--dk);
  grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--pad); align-items: center;
  padding: 0 var(--pad); background: var(--bg); color: var(--fg);
}
.th__id { grid-column: 1 / 5; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 4px 12px; align-items: start; }
.th__logo { grid-row: 1; font-weight: 700; font-size: 30px; letter-spacing: -.04em; line-height: .85; }
.th__logo i { font-style: italic; }
.th__logo sup { font-size: .42em; vertical-align: top; margin-left: 1px; letter-spacing: 0; }
.th__desc { grid-row: 1; font-size: 8.5px; line-height: 1.08; text-transform: uppercase; letter-spacing: .01em; padding-top: 1px; }
.th__time { grid-column: 1 / -1; font-size: 8.5px; text-transform: uppercase; letter-spacing: .01em; }
.th__sw { grid-column: 5 / 7; justify-self: start; position: relative; width: 38px; height: 20px; border-radius: 99px; background: var(--fg); }
.th__sw i { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); transition: transform .4s cubic-bezier(.65,0,.35,1); }
.th__sw[aria-pressed="true"] i { transform: translateX(18px); }
.th__nav { grid-column: 7 / 13; display: flex; justify-content: space-between; }
.th__nav a { position: relative; font-weight: 700; font-size: clamp(18px, 1.9vw, 28px); letter-spacing: -.02em; text-transform: uppercase; line-height: 1; }
.th__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: 100% 50%; transition: transform .45s cubic-bezier(.65,0,.35,1); }
.th__nav a:hover::after, .th__nav a.is-on::after { transform: scaleX(1); transform-origin: 0 50%; }
html.nav-head .hd__logo { display: none; }
@media (max-width: 700px) {
  html.nav-head { --dk: 96px; }
  html.nav-head .th { grid-template-rows: auto auto; align-content: center; row-gap: 12px; }
  .th__id { grid-column: 1 / 11; }
  .th__sw { grid-column: 11 / 13; justify-self: end; }
  .th__nav { grid-column: 1 / -1; }
  .th__logo { font-size: 24px; }
}

/* the table showreel in the same voice: bold uppercase rows on rules, tiny grey column labels */
html.nav-head .tbl { font-size: clamp(13px, 1.25vw, 18px); }
html.nav-head .tbl__hd { height: 28px; font-size: 9.5px; text-transform: uppercase; letter-spacing: .02em; border-bottom: 0; color: var(--fg); position: relative; z-index: 3; will-change: transform; }
html.nav-head .tbl__r { font-weight: 700; text-transform: uppercase; letter-spacing: -.01em; border-bottom: 0; line-height: 1; padding: 2px 10px 0; }
html.nav-head .tbl__r.is-on { background: none; color: var(--fg); }
/* table showreel: autoplay made visible — the current row's own rule fills, grey → black, until the next step */
.tbl__g { display: grid; }
/* table showreel: the brick that sweeps over each image when the project changes */
.tbl__bk { position: absolute; inset: -1px; z-index: 2; background: var(--fg); transform: scaleX(0); pointer-events: none; }

/* table showreel: one continuous line snaking down the rows (drawn over everything, incl. past the images) */
.tbl__line { position: absolute; z-index: 4; left: 0; right: 0; top: 26px; bottom: 0; width: 100%; height: calc(100% - 26px); overflow: hidden; pointer-events: none; }
html.nav-head .tbl__line { top: 28px; height: calc(100% - 28px); }
.tbl__line path { fill: none; stroke: var(--fg); stroke-width: 1px; shape-rendering: crispEdges; }
html.nav-head .tbl__hd { padding: 0 10px; }

/* header: light/dark + Grid switches side by side; the grid overlay */
.th__sws { grid-column: 5 / 7; display: flex; align-items: center; gap: 18px; }
.th__sws .th__sw { grid-column: auto; flex: none; }
.gridov { position: fixed; z-index: 90; inset: 0; padding: 0 var(--pad); pointer-events: none; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--pad); opacity: 0; transition: opacity .35s; }
.gridov i { background: rgba(255, 40, 40, .07); box-shadow: inset 1px 0 rgba(255, 40, 40, .4), inset -1px 0 rgba(255, 40, 40, .4); }
html.grid-on .gridov { opacity: 1; }
@media (max-width: 700px) {
  .th__sws { grid-column: 9 / 13; justify-self: end; gap: 10px; }
}

/* =========================================================
   everything on the 12-column grid (same columns as the Grid overlay)
   ========================================================= */
html.reel-table .stage { overflow: visible; }
/* table: Project 1–4 · Client 5–8 · Type 9–10 · Year 11 · Sector 12 */
html.nav-head .tbl__hd, html.nav-head .tbl__r { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--pad); padding-left: 0; padding-right: 0; }
html.nav-head .tbl__hd > :nth-child(1), html.nav-head .tbl__r > :nth-child(1) { grid-column: 1 / 5; }
html.nav-head .tbl__hd > :nth-child(2), html.nav-head .tbl__r > :nth-child(2) { grid-column: 5 / 9; }
html.nav-head .tbl__hd > :nth-child(3), html.nav-head .tbl__r > :nth-child(3) { grid-column: 9 / 11; }
html.nav-head .tbl__hd > :nth-child(4), html.nav-head .tbl__r > :nth-child(4) { grid-column: 11 / 12; }
html.nav-head .tbl__hd > :nth-child(5), html.nav-head .tbl__r > :nth-child(5) { grid-column: 12 / 13; text-align: left; }
/* the snaking line runs in the page margin, so the text sits exactly on the columns */
.tbl__line { left: calc(var(--pad) / -2); right: auto; width: calc(100% + var(--pad)); }
/* the images: whole columns, the 2×2 split on the column gap */
.tbl__f { left: var(--fl, 25%); margin-left: 0; }
.tbl__g { gap: var(--pad); }
/* header nav: WORK on col 7, INDEX on col 9, PROFILE on col 11 */
.th__nav { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 var(--pad); justify-content: initial; }
.th__nav a { justify-self: start; }
.th__nav a:nth-child(1) { grid-column: 1 / 3; } .th__nav a:nth-child(2) { grid-column: 3 / 5; } .th__nav a:nth-child(3) { grid-column: 5 / 7; }
@media (max-width: 700px) {
  html.nav-head .tbl__hd > :nth-child(1), html.nav-head .tbl__r > :nth-child(1) { grid-column: 1 / 8; }
  html.nav-head .tbl__hd > :nth-child(4), html.nav-head .tbl__r > :nth-child(4) { grid-column: 8 / 10; }
  html.nav-head .tbl__hd > :nth-child(5), html.nav-head .tbl__r > :nth-child(5) { grid-column: 10 / 13; }
  .th__nav { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .th__nav a:nth-child(1) { grid-column: 1 / 5; } .th__nav a:nth-child(2) { grid-column: 5 / 9; } .th__nav a:nth-child(3) { grid-column: 9 / 13; }
}
@media (max-width: 700px) { .th__id { grid-column: 1 / 9; grid-row: 1; } .th__sws { grid-column: 9 / 13; grid-row: 1; } .th__nav { grid-row: 2; } }

/* =========================================================
   INNER PAGES ON THE 12-COLUMN GRID (same columns as the Grid overlay / home)
   ========================================================= */
.g7, .nx, .foot { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--pad); }
.foot { row-gap: 8px; }
/* project: title across, brief 5–10, meta like the home table (Client 1–4 · Services 5–8 · Year 9–10 · Type 11–12) */
.cs__head .big { grid-column: 1 / -1; }
.cs__brief { grid-column: 5 / 11; }
.cs__meta .c1 { grid-column: 1 / 5; }
.cs__meta .c2 { grid-column: 5 / 9; }
.cs__meta .c3 { grid-column: 9 / 11; }
.cs__meta .c4 { grid-column: 11 / 13; }
/* images: pairs split on the column gap between 6 and 7 */
.med { gap: var(--pad); }
/* next project: label 1–4 · title 5–8 · image 9–12 */
.nx__l { grid-column: 1 / 5; } .nx__t { grid-column: 5 / 9; } .nx__m { grid-column: 9 / 13; }
/* footer: 1–4 · 5–8 · 9–12 */
.foot span:first-child { grid-column: 1 / 5; } .foot span:nth-child(2) { grid-column: 5 / 9; } .foot span:last-child { grid-column: 9 / 13; }
/* Index: No 1 · Title 2–4 · Subtitle 5–6 · Client 7–8 · Type 9–10 · Sector 11 · Year + Img 12 */
.ctl.is-list { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--pad); padding-left: 0; padding-right: 0; }
.ctl.is-list .ctl__row { grid-column: 5 / -1; }
.ixt__h, .ixt__a { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--pad); padding-left: 0; padding-right: 0; }
.ixt__h > *, .ixt__a > * { grid-row: 1; }
.ixt .c-n { grid-column: 1; } .ixt .c-t { grid-column: 2 / 5; } .ixt .c-s { grid-column: 5 / 7; } .ixt .c-c { grid-column: 7 / 9; }
.ixt .c-ty { grid-column: 9 / 11; } .ixt .c-se { grid-column: 11; } .ixt .c-y { grid-column: 12; justify-self: start; } .ixt .c-i { grid-column: 12; justify-self: end; }
.ixt__s, .ixt__r.is-open .ixt__s { padding-left: 0; padding-right: 0; }
@media (max-width: 1000px) {
  .ixt__h, .ixt__a { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .ixt .c-t { grid-column: 2 / 6; } .ixt .c-c { grid-column: 6 / 9; } .ixt .c-ty { grid-column: 9 / 12; } .ixt .c-y { grid-column: 12; }
}
@media (max-width: 700px) {
  .g7, .nx, .foot { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .cs__meta .c1, .cs__meta .c2 { grid-column: 1 / -1; }
  .cs__meta .c3 { grid-column: 1 / 7; } .cs__meta .c4 { grid-column: 7 / 13; }
  .ctl.is-list { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .ctl.is-list .ctl__row { grid-column: 1 / -1; }
  .ixt__h, .ixt__a { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--pad); padding-left: 0; padding-right: 0; }
  .ixt .c-n { grid-column: 1 / 3; } .ixt .c-t { grid-column: 3 / 11; } .ixt .c-y { grid-column: 11 / 13; justify-self: start; }
}
/* Profile · Record: year on column 1, the entry from column 2 */
.mx__rec li { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--pad); }
.mx__rec li > :first-child { grid-column: 1; }
.mx__rec li > :last-child { grid-column: 2 / 13; }
@media (max-width: 700px) { .mx__rec li > :first-child { grid-column: 1 / 4; } .mx__rec li > :last-child { grid-column: 4 / 13; } }
.mx__rec { max-width: none; }
.mx__rec li > :last-child { grid-column: 2 / 9; }
@media (max-width: 700px) { .mx__rec li > :last-child { grid-column: 4 / 13; } }
/* Grid switch: same pill as light/dark, its label outside */
.th__gr { display: inline-flex; align-items: center; gap: 8px; }
.th__lbl { font-size: 9.5px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; line-height: 1; cursor: default; }
/* header: Grid switch on column 3, light/dark on column 5 (logo block 1–2) */
@media (min-width: 701px) {
  .th__id { grid-column: 1 / 3; }
  .th__sws { display: contents; }
  .th__sws > .th__sw { grid-column: 5 / 7; grid-row: 1; justify-self: start; }
  .th__gr { grid-column: 3 / 5; grid-row: 1; justify-self: start; }
}
/* header: Grid on col 3, Dark on col 4, INDEX col 9, PROFILE col 11 (no WORK: the logo goes home) */
@media (min-width: 701px) {
  .th__md { grid-column: 4 / 5; grid-row: 1; justify-self: start; }
  .th__gr:not(.th__md) { grid-column: 3 / 4; }
  .th__nav a:nth-child(1) { grid-column: 3 / 5; }
  .th__nav a:nth-child(2) { grid-column: 5 / 7; }
}
@media (max-width: 700px) {
  .th__sws { gap: 12px; }
  .th__nav a:nth-child(1) { grid-column: 1 / 7; }
  .th__nav a:nth-child(2) { grid-column: 7 / 13; }
}
/* showreel table: bigger type (rows grow with it in JS) */
html.nav-head .tbl { font-size: clamp(15px, 1.6vw, 25px); }
html.nav-head .tbl__hd { font-size: 10.5px; }
@media (max-width: 700px) { html.nav-head .tbl { font-size: 14px; } }
html.nav-head .tbl { font-size: clamp(15px, 1.42vw, 22px); }
/* Project 1–4 · Client 5–7 · Type 8–10 · Year 11 · Sector 12 */
@media (min-width: 701px) {
  html.nav-head .tbl__hd > :nth-child(2), html.nav-head .tbl__r > :nth-child(2) { grid-column: 5 / 8; }
  html.nav-head .tbl__hd > :nth-child(3), html.nav-head .tbl__r > :nth-child(3) { grid-column: 8 / 11; }
}
html.nav-head .tbl { font-size: clamp(15px, 1.3vw, 21px); }
/* bigger showreel type: Project 1–4 · Client 5–6 · Type 7–9 · Year 10 · Sector 11–12 */
html.nav-head .tbl { font-size: clamp(15px, 1.55vw, 24px); }
@media (min-width: 701px) {
  html.nav-head .tbl__hd > :nth-child(2), html.nav-head .tbl__r > :nth-child(2) { grid-column: 5 / 7; }
  html.nav-head .tbl__hd > :nth-child(3), html.nav-head .tbl__r > :nth-child(3) { grid-column: 7 / 10; }
  html.nav-head .tbl__hd > :nth-child(4), html.nav-head .tbl__r > :nth-child(4) { grid-column: 10 / 11; }
  html.nav-head .tbl__hd > :nth-child(5), html.nav-head .tbl__r > :nth-child(5) { grid-column: 11 / 13; }
}
/* showreel images on one line (desktop): four 16:9 images, three columns each */
.tbl.is-row .tbl__g { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: 1fr; }
/* one line of THREE images, four columns each (cols 1–4 · 5–8 · 9–12) */
.tbl.is-row .tbl__g { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tbl.is-row .tbl__im:nth-child(4) { display: none; }

/* =========================================================
   PROFILE — PAGES THAT PEEL AWAY (html.pf-flip)
   ========================================================= */
html:has(.fp), body:has(.fp) { background: #121212; }
.view:has(.fp) { padding-left: 0; padding-right: 0; padding-bottom: 0; }
.fp { position: relative; height: calc(var(--n) * (100vh - var(--dk))); height: calc(var(--n) * (100svh - var(--dk))); }
.fp__pin { position: sticky; top: var(--dk); height: calc(100vh - var(--dk)); height: calc(100svh - var(--dk)); overflow: hidden; }
.fp__pg { position: absolute; inset: 0; padding: 0 var(--pad); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto 1fr auto; gap: 0 var(--pad); align-content: start; will-change: clip-path; }
.fp__pg.is-dark { background: #121212; color: #fff; }
.fp__pg.is-light { background: #ececec; color: #121212; }
/* the back of the page */
.fp__flap { position: absolute; inset: 0; pointer-events: none; clip-path: polygon(0 0, 0 0, 0 0); filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35)); }
.fp__flap.is-dark { background: #2e2e2e; }
.fp__flap.is-light { background: #c9c9c9; }
.fp__no { position: absolute; right: var(--pad); top: 16px; font-size: 13px; opacity: .6; font-variant-numeric: tabular-nums; }
.fp__big { grid-column: 1 / -1; margin: 0; padding-top: 2vh; font-weight: 700; font-size: clamp(72px, 15vw, 260px); line-height: .82; letter-spacing: -.055em; }
.fp__lead { grid-column: 1 / 11; align-self: end; margin: 0 0 6vh; font-weight: 700; font-size: clamp(24px, 3.1vw, 50px); line-height: 1.04; letter-spacing: -.03em; }
.fp__txt { margin: 0 0 5vh; align-self: end; font-weight: 700; font-size: clamp(15px, 1.4vw, 22px); line-height: 1.12; letter-spacing: -.01em; }
.fp__txt--l { grid-column: 1 / 5; grid-row: 3; }
.fp__txt--r { grid-column: 9 / 13; grid-row: 3; }
.fp__hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); font-size: 12px; opacity: .55; }
.fp__cat { position: absolute; inset: 0; color: #fff; z-index: 0; }
.fp__pg > *:not(.fp__cat) { position: relative; z-index: 1; }
.fp__pg > .fp__no, .fp__pg > .fp__hint { position: absolute; }
.fp__list { grid-column: 1 / -1; align-self: end; list-style: none; margin: 0 0 5vh; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--pad); font-weight: 700; font-size: clamp(18px, 2vw, 32px); line-height: 1.12; letter-spacing: -.02em; }
.fp__list li { border-top: 1px solid currentColor; padding: 8px 0 10px; display: flex; justify-content: space-between; gap: 12px; }
.fp__list li span { font-weight: 400; opacity: .6; font-size: .55em; align-self: center; text-align: right; }
.fp ol.fp__list { counter-reset: b; }
.fp ol.fp__list li::before { counter-increment: b; content: counter(b, decimal-leading-zero); font-weight: 400; opacity: .5; font-size: .55em; order: 2; align-self: center; }
.fp__rec { grid-column: 1 / -1; align-self: end; list-style: none; margin: 0 0 6vh; padding: 0; font-size: clamp(15px, 1.4vw, 21px); }
.fp__rec li { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--pad); border-top: 1px solid currentColor; padding: 10px 0; }
.fp__rec li > :first-child { grid-column: 1 / 2; opacity: .6; }
.fp__rec li > :last-child { grid-column: 2 / 13; font-weight: 700; }
.fp__rec a:hover { text-decoration: underline; text-underline-offset: 3px; }
.fp__mail { grid-column: 1 / -1; align-self: center; font-weight: 700; font-size: clamp(34px, 7.4vw, 140px); letter-spacing: -.05em; line-height: .9; overflow-wrap: anywhere; }
.fp__mail:hover { text-decoration: underline; text-underline-offset: .08em; text-decoration-thickness: .04em; }
@media (max-width: 700px) {
  .fp__lead { grid-column: 1 / -1; }
  .fp__list { grid-template-columns: 1fr; font-size: 17px; }
  .fp__txt--l { grid-column: 1 / 8; } .fp__txt--r { grid-column: 8 / 13; text-align: right; }
  .fp__rec li > :first-child { grid-column: 1 / 4; } .fp__rec li > :last-child { grid-column: 4 / 13; }
}
.fp__hint { left: var(--pad); top: 16px; bottom: auto; transform: none; font-size: 13px; }
.fp__pg.is-first .fp__big { padding-top: 5vh; }
/* flip Profile · Clients: the names as one big flowing line, slashes between (as in the previous Profile) */
.fp__clist { grid-column: 1 / -1; align-self: end; margin: 0 0 6vh; font-weight: 700; font-size: clamp(30px, 4.6vw, 86px); line-height: 1.02; letter-spacing: -.04em; }
.fp__clist i { font-style: normal; font-weight: 300; opacity: .3; margin: 0 .18em; }
.fp__c { transition: opacity .3s; cursor: default; }
@media (hover: hover) { .fp__clist:hover .fp__c { opacity: .3; } .fp__clist .fp__c:hover { opacity: 1; } }
.fp__loc { position: absolute; right: var(--pad); bottom: 18px; font-size: 13px; font-weight: 700; }
@media (max-width: 700px) { .fp__clist { font-size: 30px; } }
.fp__pg > .fp__loc { position: absolute; white-space: nowrap; }
@media (min-width: 701px) { .fp__clist { font-size: clamp(28px, 3.3vw, 62px); line-height: 1.06; } }
/* flip Profile cat: its own full-page box, centred */
.fp__cat .pcl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
/* flip Profile: the front showing through the back of the page */
.fp__flap .fp__ghost { position: absolute; inset: 0; transform-origin: 0 0; opacity: .14; background: none; pointer-events: none; will-change: transform; }
.fp__flap.is-light .fp__ghost { opacity: .18; }
.fp__flap .fp__ghost { opacity: .09; }
.fp__flap.is-light .fp__ghost { opacity: .11; }
/* flip Profile: paper — a fine grain on every page and on the turned-back flaps */
.fp__pg::after, .fp__flap::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 220px 220px; opacity: .22; mix-blend-mode: multiply;
}
.fp__pg.is-dark::after, .fp__flap.is-dark::after { mix-blend-mode: screen; opacity: .09; filter: invert(1); }
.fp__ghost::after { display: none; }
/* the flap is a little lighter at the fold, like paper catching the light as it bends */
.fp__flap { background-image: linear-gradient(var(--fa, 135deg), rgba(255,255,255,.10), rgba(255,255,255,0) 45%, rgba(0,0,0,.06)); }
.fp__pg::after, .fp__flap::after { opacity: .5; }
.fp__pg.is-dark::after, .fp__flap.is-dark::after { opacity: .2; }
/* neutral grain: grey noise in soft-light, so it textures the paper without greying it */
.fp__pg::after, .fp__flap::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 240px 240px; mix-blend-mode: soft-light; opacity: .55; filter: none;
}
.fp__pg.is-dark::after, .fp__flap.is-dark::after { mix-blend-mode: soft-light; opacity: .4; filter: none; }
/* flip Profile: print showing through the paper (as on demiladehq): soft, faint, mirrored */
.fp__flap .fp__ghost { filter: blur(1.4px); opacity: .08; }
.fp__flap.is-light .fp__ghost { opacity: .09; }
.fp__pg > .fp__back { position: absolute; inset: 0; z-index: 0; pointer-events: none; transform: scaleY(-1); filter: blur(1.4px); opacity: .06; background: none; }
.fp__pg.is-light > .fp__back { opacity: .07; }
.fp__back::after { display: none; }
/* the next page seen through the paper: not mirrored, soft, faint */
.fp__pg > .fp__back { transform: none; filter: blur(1.6px); opacity: .07; }
.fp__pg.is-light > .fp__back { opacity: .08; }
.fp__pg > .fp__back { opacity: .035; }
.fp__pg.is-light > .fp__back { opacity: .04; }
/* all Profile pages light: the cat in ink */
.fp__pg.is-light .fp__cat { color: #121212; }
html:has(.fp), body:has(.fp) { background: #ececec; }
/* dark paper is opaque both ways: no show-through on its turned-back corner either */
.fp__flap.is-dark .fp__ghost { display: none; }
/* flip Profile · cat page: no big title, one small line */
.fp__sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; }
.fp__small { grid-column: 1 / 7; grid-row: 3; align-self: end; margin: 0 0 22px; font-size: 15px; line-height: 1.3; }

/* =========================================================
   MENU BUTTON IN THE HEADER, next to PROFILE (right edge of col 12);
   the glass panel drops down from it
   ========================================================= */
html.nav-head { --mb: 22px; }
html.nav-head .hd { z-index: 47; }
html.nav-head .hd__menu, html.nav-head.dark .hd__menu {
  left: auto; right: var(--pad); bottom: auto; top: calc((var(--dk) - 40px) / 2); margin-left: 0;
}
html.nav-head .wb, html.nav-head.dark .wb {
  left: auto; right: var(--pad); bottom: auto; top: calc((var(--dk) - 40px) / 2); transform: none;
  padding: 52px 6px 0;
}
html.nav-head .wb.is-open, html.nav-head.dark .wb.is-open { height: min(var(--wbh, 800px), calc(100dvh - var(--dk) / 2 - 12px)); }
html.nav-head .wb__top, html.nav-head .pages, html.nav-head .dots { transform: translateY(-14px); }
html.nav-head .wb .dots { padding: 8px 0 10px; }
@media (max-width: 700px) {
  html.nav-head .hd__menu, html.nav-head.dark .hd__menu, html.nav-head .wb { top: calc(var(--dk) - 46px); }
}

/* =========================================================
   MENU AS AN INSTRUMENT PANEL (html.menu-ui) — thin 1px outlines,
   rounded boxes, small uppercase labels, big light numerals,
   ON/OFF pill switches. Helvetica Now Display throughout.
   ========================================================= */
@font-face { font-family: "HND"; font-weight: 400; font-display: swap; src: local("HelveticaNowDisplay-Regular"), url("fonts/HelveticaNowDisplay-Regular.otf") format("opentype"); }
@font-face { font-family: "HND"; font-weight: 500; font-display: swap; src: local("HelveticaNowDisplay-Medium"), url("fonts/HelveticaNowDisplay-Medium.otf") format("opentype"); }
@font-face { font-family: "HND"; font-weight: 700; font-display: swap; src: local("HelveticaNowDisplay-Bold"), url("fonts/HelveticaNowDisplay-Bold.otf") format("opentype"); }

html.menu-ui .wb, html.menu-ui.dark .wb {
  --ink: #121212; --paper: #ececec; --soft: #8a8a8a; --line: #121212;
  --fg: var(--ink); --dim: var(--soft); --tile: transparent; --wbg: var(--paper); --char: var(--paper);
  font-family: "HND", "Helvetica Now Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--paper); color: var(--ink);
  -webkit-backdrop-filter: none; backdrop-filter: none;
  border: 1px solid var(--line); border-radius: 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .18);
}
html.menu-ui.dark .wb { --ink: #ececec; --paper: #121212; --soft: #7a7a7a; --line: #ececec; }
html.menu-ui .wb.is-open, html.menu-ui.dark .wb.is-open { border-radius: 26px; }
html.menu-ui .wb * { font-family: inherit; }
html.menu-ui .wb .page { gap: 8px; }
html.menu-ui .wb__grab::before { background: var(--soft); }

/* tiles: outline, no fill */
html.menu-ui .wb .w, html.menu-ui .wb .slide2, html.menu-ui.dark .wb .slide2 {
  background: transparent; color: var(--ink); border-radius: 18px;
  box-shadow: inset 0 0 0 1px var(--line);
}
html.menu-ui .wb .w { padding: 12px 14px; }
html.menu-ui .wb.is-open .w:hover { background: var(--ink); color: var(--paper); }
html.menu-ui .wb.is-open .w:hover * { color: var(--paper) !important; }
html.menu-ui .wb.is-open .w--sel:hover { background: transparent; }
html.menu-ui .wb.is-open .w--sel:hover * { color: inherit !important; }

/* labels: small uppercase name + quiet sub-label */
html.menu-ui .wb .w__lbl, html.menu-ui .wb .sel__h { flex-direction: column; align-items: flex-start; gap: 2px; }
html.menu-ui .wb .w__lbl b, html.menu-ui .wb .sel__h b { font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
html.menu-ui .wb .w__lbl span, html.menu-ui .wb .sel__h span, html.menu-ui .wb .sel__lbl { font-size: 11px; color: var(--soft); margin: 0; }
html.menu-ui .wb .w__lbl span::before, html.menu-ui .wb .w__lbl span::after,
html.menu-ui .wb .sel__h span::before, html.menu-ui .wb .sel__h span::after,
html.menu-ui .wb .sel__lbl::before, html.menu-ui .wb .sel__lbl::after { content: none; }
html.menu-ui .wb .w--sq .w__lbl { order: -1; }
html.menu-ui .wb .w--sq { justify-content: space-between; flex-direction: column-reverse; }

/* big light numerals */
html.menu-ui .wb .w__big, html.menu-ui .wb .cal {
  position: static; color: var(--ink); font-weight: 400; font-size: 46px; line-height: .9; letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
html.menu-ui .wb .w--cal { justify-content: space-between; }
html.menu-ui .wb .cal { font-size: 54px; order: 2; }
html.menu-ui .wb .w--cal .w__lbl { order: 1; }
html.menu-ui .wb .w--cal .w__lbl b { order: 2; text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 400; }
html.menu-ui .wb .w--cal .w__lbl span { order: 1; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); font-weight: 500; }

/* the e-mail slider: an outlined pill with a round outlined knob */
html.menu-ui .wb .slide2 { border-radius: 99px; height: 56px; }
html.menu-ui .wb .slide2__knob { border-radius: 50%; background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); width: 44px; height: 44px; left: 5px; top: 5px; }
html.menu-ui .wb .slide2__txt { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--ink); font-size: 13px; }

/* appearance: the ON / OFF pill */
html.menu-ui .wb .w--slim { border-radius: 99px; padding: 8px 8px 8px 16px; }
html.menu-ui .wb .w--slim .w__lbl { flex-direction: row; align-items: baseline; gap: 8px; }
html.menu-ui .wb .tog { position: relative; width: 66px; height: 30px; border-radius: 99px; background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
html.menu-ui .wb .tog i { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: transparent; box-shadow: inset 0 0 0 1px var(--line); transform: none; transition: left .35s cubic-bezier(.65,0,.35,1); }
html.menu-ui .wb .tog em { position: absolute; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 10px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
html.menu-ui .wb .tog__on { left: 11px; opacity: 0; } html.menu-ui .wb .tog__off { right: 9px; }
html.menu-ui.dark .wb .tog { background: var(--ink); }
html.menu-ui.dark .wb .tog i { left: 39px; background: var(--paper); box-shadow: none; }
html.menu-ui.dark .wb .tog em { color: var(--paper); }
html.menu-ui.dark .wb .tog__on { opacity: 1; } html.menu-ui.dark .wb .tog__off { opacity: 0; }
html.menu-ui .wb.is-open .w--slim:hover .tog { box-shadow: inset 0 0 0 1px var(--paper); }

/* selection: plain text options, the current one underlined; an outlined pill to go */
html.menu-ui .wb .sel__chips button { color: var(--soft); font-size: 13px; }
html.menu-ui .wb .sel__chips button:hover, html.menu-ui .wb .sel__chips button.is-on { color: var(--ink); }
html.menu-ui .wb .sel__go, html.menu-ui.dark .wb .sel__go { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); border-radius: 99px; height: 38px; padding: 0 16px; font-size: 13px; }
html.menu-ui .wb .sel__go:hover { background: var(--ink); color: var(--paper); }

/* clock: digital time inside a ring that fills with the seconds (like a gauge) */
html.menu-ui .wb .w--clock { display: grid; place-items: center; padding: 10px; }
html.menu-ui .wb .clock {
  position: relative; inset: auto; width: auto; height: 100%; aspect-ratio: 1; max-height: 112px; margin: 0; border-radius: 50%;
  background: conic-gradient(var(--ink) calc(var(--sp, 0) * 360deg), rgba(128, 128, 128, .3) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  box-shadow: none;
}
html.menu-ui .wb .clock i { display: none; }
html.menu-ui .wb .w--clock { position: relative; }
html.menu-ui .wb .w--clock .clock__txt { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
html.menu-ui .wb .clock__txt { -webkit-mask: none; mask: none; }
html.menu-ui .wb .clock__txt b { font-size: 10px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; background: none; padding: 0; }
html.menu-ui .wb .clock__txt span { font-size: 22px; color: var(--ink); background: none; padding: 0; letter-spacing: -.02em; }

/* dots + brick reveal in ink */
html.menu-ui .wb .dots button, html.menu-ui.dark .wb .dots button { background: transparent; box-shadow: inset 0 0 0 1px var(--line); border-radius: 50%; width: 7px; height: 7px; }
html.menu-ui .wb .dots button.is-on, html.menu-ui.dark .wb .dots button.is-on { background: var(--ink); }
html.menu-ui .wb .mbk { background: var(--ink); }
html.menu-ui .wb .w__list i { background: var(--ink); }
html.menu-ui .hd__menu[aria-expanded="true"], html.menu-ui.dark .hd__menu[aria-expanded="true"] { background: transparent; color: var(--ink, #121212); box-shadow: inset 0 0 0 1px currentColor; -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 50%; }
/* the ring on its own layer so the time inside isn't masked away */
html.menu-ui .wb .clock { background: none; -webkit-mask: none; mask: none; }
html.menu-ui .wb .clock::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(var(--ink) calc(var(--sp, 0) * 360deg), rgba(128, 128, 128, .3) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
}
html.menu-ui .wb .clock::after { display: none; }
html.menu-ui .wb .clock .clock__txt { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
html.menu-ui .wb #wCopy .w__lbl b { text-transform: none; letter-spacing: -.01em; font-size: 20px; font-weight: 400; }
/* menu-ui: keep the rounded forms on every screen size */
html.menu-ui .wb, html.menu-ui .wb.is-open, html.menu-ui.dark .wb.is-open { border-radius: 26px !important; }
html.menu-ui .wb .slide2__knob, html.menu-ui .wb .tog i { border-radius: 50% !important; }
html.menu-ui .wb .slide2, html.menu-ui .wb .tog, html.menu-ui .wb .w--slim, html.menu-ui .wb .sel__go { border-radius: 99px !important; }
html.menu-ui .wb .w, html.menu-ui .wb .w--sq { border-radius: 18px; }
html.menu-ui .wb .clock__txt b { color: var(--ink); opacity: .6; }
html.menu-ui .hd__menu[aria-expanded="true"] { border-radius: 50% !important; }
/* menu-ui: the site Helvetica only, no other font */
html.menu-ui .wb, html.menu-ui .wb * { font-family: var(--font) !important; }

/* =========================================================
   MENU AS WIDGET CARDS (html.menu-ui2): a black panel of full-width light-grey
   cards — small label, huge value, a graphic on the right, one burnt-orange accent.
   The site Helvetica only.
   ========================================================= */
html.menu-ui2 .wb, html.menu-ui2.dark .wb {
  --ink: #121212; --card: #d9d9d9; --acc: #ff471a; --soft: #6e6e6e; --panel: #000;
  --fg: var(--ink); --dim: var(--soft); --tile: var(--card); --wbg: var(--panel); --char: var(--panel);
  background: var(--panel); color: var(--ink); border: 0; border-radius: 18px !important;
  -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
html.menu-ui2 .wb, html.menu-ui2 .wb * { font-family: var(--font) !important; }
html.menu-ui2 .wb.is-open, html.menu-ui2.dark .wb.is-open { width: min(420px, calc(100vw - 2 * var(--pad))); }
html.menu-ui2 .wb .page { grid-template-columns: 1fr; gap: 10px; padding: 0 10px 4px; }
html.menu-ui2 .wb__grab::before { background: #555; }

/* every tile = a full-width card */
html.menu-ui2 .wb .page > .w, html.menu-ui2 .wb .page > .slide2, html.menu-ui2.dark .wb .page > .slide2 {
  grid-column: 1 / -1 !important; grid-area: auto !important; aspect-ratio: auto !important;
  position: relative; display: grid; grid-template-columns: 1fr 1.15fr; grid-template-rows: auto 1fr; align-items: end; gap: 0 14px;
  min-height: 112px; padding: 12px 14px 12px 16px; border-radius: 12px !important;
  background: var(--card); color: var(--ink); box-shadow: none;
}
html.menu-ui2 .wb.is-open .page > .w:hover { background: #e6e6e6; color: var(--ink); }
html.menu-ui2 .wb.is-open .page > .w:hover * { color: inherit !important; }
html.menu-ui2 .wb .w__lbl { grid-column: 1; grid-row: 1; align-self: start; flex-direction: column; gap: 0; }
html.menu-ui2 .wb .w__lbl b, html.menu-ui2 .wb .sel__h b { font-size: 15px; font-weight: 400; letter-spacing: -.01em; text-transform: none; }
html.menu-ui2 .wb .w__lbl span { display: none; }
html.menu-ui2 .wb .w__lbl span::before, html.menu-ui2 .wb .w__lbl span::after { content: none; }
html.menu-ui2 .wb .w__big {
  grid-column: 1; grid-row: 2; position: static; color: var(--ink); align-self: end;
  font-size: 58px; font-weight: 500; line-height: .82; letter-spacing: -.05em;
}
html.menu-ui2 .wb .w__big small { font-size: .38em; letter-spacing: -.02em; margin-left: 4px; font-weight: 500; }
html.menu-ui2 .wb .fig { grid-column: 2; grid-row: 1 / 3; align-self: center; justify-self: stretch; }

/* bars: one per item, the "on" ones in ink */
html.menu-ui2 .fig--bars { display: flex; justify-content: space-between; height: 72px; }
html.menu-ui2 .fig--bars i { width: 4px; border-radius: 3px; background: #7a7a7a; }
html.menu-ui2 .fig--bars i.on { background: var(--ink); }
/* span: black → grey fade, then the orange block; dates under it */
html.menu-ui2 .fig--span { display: grid; grid-template-columns: 3.2fr 1fr; gap: 6px; row-gap: 6px; }
html.menu-ui2 .fig__grad { height: 46px; border-radius: 6px; background: linear-gradient(90deg, #000 0%, #000 25%, #777 100%); }
html.menu-ui2 .fig__acc { height: 46px; border-radius: 6px; background: var(--acc); }
html.menu-ui2 .fig--span em { font-style: normal; font-size: 13px; }
html.menu-ui2 .fig--span em:last-child { text-align: right; }
/* appearance: the arc gauge, the dot slides from light (left) to dark (right) */
html.menu-ui2 .wb .w--slim .tog { display: none; }
html.menu-ui2 .wb .w--slim .w__lbl span.js-theme { display: block; grid-row: 2; font-size: 58px; font-weight: 500; line-height: .82; letter-spacing: -.05em; text-transform: uppercase; color: var(--ink); margin-top: 26px; }
html.menu-ui2 .fig--arc { width: 100%; height: auto; overflow: visible; }
html.menu-ui2 .fig--arc path { fill: none; stroke-width: 11; stroke-linecap: round; }
html.menu-ui2 .arc__acc { stroke: var(--acc); }
html.menu-ui2 .arc__ink { stroke: var(--ink); stroke-dasharray: 118 400; stroke-dashoffset: -34; }
html.menu-ui2 .arc__dot { fill: var(--ink); cx: 37px; cy: 42.6px; transition: cx .5s cubic-bezier(.65,0,.35,1); }
html.menu-ui2.dark .arc__dot { cx: 163px; }
html.menu-ui2 .wb .w--slim { padding-right: 18px; }
/* contact slider as a card: the track is the card, the knob a black disc */
html.menu-ui2 .wb .page > .slide2 { display: flex; min-height: 64px; border-radius: 12px !important; }
html.menu-ui2 .wb .slide2__knob { background: var(--ink); color: var(--card); border-radius: 10px !important; box-shadow: none; width: 52px; height: 52px; top: 6px; left: 6px; }
html.menu-ui2 .wb .slide2__txt { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--ink); font-size: 15px; }
/* selection: label, options, a black pill to go */
html.menu-ui2 .wb .page > .w--sel { display: block; }
html.menu-ui2 .wb .sel__h { margin-bottom: 8px; }
html.menu-ui2 .wb .sel__h span, html.menu-ui2 .wb .sel__lbl { font-size: 11px; color: var(--soft); }
html.menu-ui2 .wb .sel__h span::before, html.menu-ui2 .wb .sel__h span::after, html.menu-ui2 .wb .sel__lbl::before, html.menu-ui2 .wb .sel__lbl::after { content: none; }
html.menu-ui2 .wb .sel__chips button { color: var(--soft); font-size: 14px; }
html.menu-ui2 .wb .sel__chips button.is-on, html.menu-ui2 .wb .sel__chips button:hover { color: var(--ink); }
html.menu-ui2 .wb .sel__go, html.menu-ui2.dark .wb .sel__go { background: var(--ink); color: var(--card); border-radius: 8px !important; box-shadow: none; height: 40px; padding: 0 14px; }
html.menu-ui2 .wb .sel__go:hover { background: var(--acc); }
/* calendar folds into the clock card */
html.menu-ui2 .wb .page > .w--cal { display: none; }
html.menu-ui2 .wb .page > .w--clock { display: grid; grid-template-columns: auto 1fr; align-items: center; min-height: 112px; }
html.menu-ui2 .wb .clock { all: unset; display: contents; }
html.menu-ui2 .wb .clock::before, html.menu-ui2 .wb .clock::after, html.menu-ui2 .wb .clock i { display: none !important; }
html.menu-ui2 .wb .clock .clock__txt { position: static; display: block; grid-column: 1; }
html.menu-ui2 .wb .clock__txt b { display: none; }
html.menu-ui2 .wb .clock__txt span { display: block; font-size: 62px; font-weight: 500; line-height: .82; letter-spacing: -.05em; color: var(--ink); background: none; padding: 0; }
html.menu-ui2 .wb .clk__date { grid-column: 2; padding-left: 22px; display: flex; flex-direction: column; font-size: 22px; line-height: 1.1; letter-spacing: -.02em; }
html.menu-ui2 .wb .clk__date b { font-weight: 400; }
/* wide e-mail card on page 2 */
html.menu-ui2 .wb #wCopy .w__lbl b { font-size: 24px; letter-spacing: -.03em; }
html.menu-ui2 .wb #wCopy .w__lbl span { display: block; font-size: 12px; color: var(--soft); margin-top: 4px; }
/* dots, bricks, the open button */
html.menu-ui2 .wb .dots button, html.menu-ui2.dark .wb .dots button { background: #444; border-radius: 50%; box-shadow: none; width: 7px; height: 7px; }
html.menu-ui2 .wb .dots button.is-on, html.menu-ui2.dark .wb .dots button.is-on { background: var(--card); }
html.menu-ui2 .wb .mbk { background: var(--ink); }
html.menu-ui2 .hd__menu[aria-expanded="true"], html.menu-ui2.dark .hd__menu[aria-expanded="true"] { background: var(--card); color: #121212; box-shadow: none; border-radius: 10px; -webkit-backdrop-filter: none; backdrop-filter: none; }
html.menu-ui2 .arc__dot { cx: 24.4px; cy: 50.8px; }
html.menu-ui2.dark .arc__dot { cx: 175.6px; }
/* cards keep their full height; the panel scrolls if it has to */
html.menu-ui2 .wb .page { grid-template-rows: none; grid-auto-rows: max-content; align-content: start; }
html.menu-ui2 .wb .page > .w, html.menu-ui2 .wb .page > .slide2 { overflow: visible; }
html.menu-ui2 .wb .page > .w--sel { overflow: hidden; }
/* a little more compact so the whole menu fits a laptop screen */
html.menu-ui2 .wb .page > .w, html.menu-ui2 .wb .page > .w--clock { min-height: 94px; padding-top: 10px; padding-bottom: 10px; }
html.menu-ui2 .wb .w__big, html.menu-ui2 .wb .w--slim .w__lbl span.js-theme { font-size: 50px; }
html.menu-ui2 .wb .w--slim .w__lbl span.js-theme { margin-top: 18px; }
html.menu-ui2 .wb .clock__txt span { font-size: 54px; }
html.menu-ui2 .fig--bars { height: 60px; }
html.menu-ui2 .fig__grad, html.menu-ui2 .fig__acc { height: 40px; }
html.menu-ui2 .wb .sel__chips { margin-bottom: 8px; }
/* menu-ui2: a touch tighter so page 1 fits a laptop screen */
html.menu-ui2 .wb .page { gap: 8px; }
html.menu-ui2 .wb .page > .w, html.menu-ui2 .wb .page > .w--clock { min-height: 86px; }

/* menu-ui2 · bottom row: the round clock and the calendar side by side; no Selection */
html.menu-ui2 .wb .page { grid-template-columns: 1fr 1fr; }
html.menu-ui2 .wb .page > .w--sel { display: none !important; }
html.menu-ui2 .wb .page > .w--clock, html.menu-ui2 .wb .page > .w--cal {
  grid-column: auto !important; display: block; aspect-ratio: 1 !important; min-height: 0; padding: 12px 14px;
  background: var(--card); border-radius: 12px; position: relative; overflow: hidden;
}
html.menu-ui2 .wb .page > .w--cal { order: 1; }
/* clock: a black dial, light dots for hands, an orange seconds dot, the time in the middle */
html.menu-ui2 .wb .clock {
  display: block; position: absolute; inset: 12px; margin: auto; width: auto; height: auto; aspect-ratio: 1; max-width: calc(100% - 24px); max-height: calc(100% - 24px);
  border-radius: 50%; background: var(--ink); box-shadow: none;
}
html.menu-ui2 .wb .clock i { display: block !important; position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
html.menu-ui2 .wb .clock i::after { background: var(--card); }
html.menu-ui2 .wb .clock i.clock__h::after { width: 10px; height: 10px; left: -5px; border-radius: 50%; top: calc(-1 * var(--rh, 40px)); }
html.menu-ui2 .wb .clock i.clock__m::after { width: 6px; height: 6px; left: -3px; border-radius: 50%; top: calc(-1 * var(--rm, 50px)); }
html.menu-ui2 .wb .clock i.clock__s::after { width: 6px; height: 6px; left: -3px; border-radius: 50%; top: calc(-1 * var(--rs, 60px)); background: var(--acc); }
html.menu-ui2 .wb .clock .clock__txt { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 1; }
html.menu-ui2 .wb .clock__txt b { display: block; font-size: 12px; color: #8a8a8a; background: none; padding: 0; }
html.menu-ui2 .wb .clock__txt span, html.menu-ui2 .wb .clock__txt .js-hm { font-size: 26px; line-height: 1; letter-spacing: -.03em; color: var(--card); background: none; padding: 0; }
html.menu-ui2 .wb .clk__date { display: none; }
/* calendar: month on top, today's day huge at the bottom */
html.menu-ui2 .wb .page > .w--cal { display: flex; flex-direction: column; justify-content: space-between; }
html.menu-ui2 .wb .w--cal .w__lbl { display: flex; flex-direction: column; }
html.menu-ui2 .wb .w--cal .w__lbl > * { display: block; }
html.menu-ui2 .wb .w--cal .w__lbl span, html.menu-ui2 .wb .w--cal .js-cal-w { display: block !important; font-size: 15px; color: var(--soft); }
html.menu-ui2 .wb .cal { position: static; order: 2; font-size: 96px; font-weight: 500; line-height: .8; letter-spacing: -.06em; color: var(--ink); }
html.menu-ui2 .wb .cal::after { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--acc); margin-left: 6px; vertical-align: top; }
html.menu-ui2 .wb .page > :not(.w--clock):not(.w--cal) { grid-column: 1 / -1 !important; }
html.menu-ui2 .wb.is-measure, html.menu-ui2.dark .wb.is-measure { width: min(420px, calc(100vw - 2 * var(--pad))) !important; }

/* menu-ui2 · Appearance: a squared switch instead of the arc */
html.menu-ui2 .fig--arc { display: none; }
html.menu-ui2 .wb .w--slim .tog {
  display: block; grid-column: 2; grid-row: 1 / 3; align-self: center; justify-self: end;
  position: relative; width: 112px; height: 56px; border-radius: 0; background: var(--ink); box-shadow: none;
}
html.menu-ui2 .wb .w--slim .tog i {
  position: absolute; top: 6px; left: 6px; width: 44px; height: 44px; border-radius: 0; background: var(--card); box-shadow: none;
  transform: none; transition: left .45s cubic-bezier(.65,0,.35,1), background .45s;
}
html.menu-ui2.dark .wb .w--slim .tog i { left: 62px; background: var(--acc); }
html.menu-ui2 .wb .w--slim .tog em { display: none; }
html.menu-ui2 .wb .w--slim .tog { position: absolute; right: 14px; top: 50%; margin-top: -28px; }
html.menu-ui2 .wb .w--slim .tog { top: 0; bottom: 0; margin: auto 0; }
html.menu-ui2 .wb .w--slim .tog { position: relative; top: auto; bottom: auto; right: auto; margin: 0; grid-column: 2; grid-row: 1 / -1; align-self: center; justify-self: end; }
html.menu-ui2 .wb .w--slim .w__lbl span.js-theme { margin-top: 6px; }
html.menu-ui2.dark .wb .page > .slide2 { display: flex; min-height: 64px; }
/* menu-ui2 · switch on hover: keep the black knob, outline the track in black */
html.menu-ui2 .wb.is-open .w--slim:hover .tog { box-shadow: inset 0 0 0 1px var(--ink); }

/* menu-ui2 · Index and Profile = just the word, set like LIGHT in Appearance */
html.menu-ui2 .wb .page > .w--card .w__big, html.menu-ui2 .wb .page > .w--card .fig, html.menu-ui2 .wb .page > .w--card .w__lbl span { display: none !important; }
html.menu-ui2 .wb .page > .w--card { display: flex; align-items: flex-end; }
html.menu-ui2 .wb .page > .w--card .w__lbl b { font-size: 50px; font-weight: 500; line-height: .82; letter-spacing: -.05em; text-transform: uppercase; color: var(--ink); }
/* menu-ui2 · the email slider text shimmers again (grey → ink sweep, orange-free) */
html.menu-ui2 .wb .slide2__txt {
  background: linear-gradient(90deg, #8a8a8a 0%, #8a8a8a 40%, var(--ink) 50%, #8a8a8a 60%, #8a8a8a 100%); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  animation: shimmer 2.6s linear infinite;
}
html.menu-ui2 .wb .page > .slide2 { align-items: center; }
html.menu-ui2 .wb .slide2__txt { flex: 1; text-align: center; padding: 0 64px; margin: 0; pointer-events: none; }
html.menu-ui2 .wb .page > .w--card { align-items: center; justify-content: center; }
html.menu-ui2 .wb .page > .w--card .w__lbl { align-self: center; align-items: center; margin: 0; }
html.menu-ui2 .wb .page > .w--card { justify-content: flex-end; }
html.menu-ui2 .wb .page > .w--card .w__lbl { align-items: flex-end; text-align: right; }
html.menu-ui2 .wb .page > .w--card { flex-direction: row; justify-content: flex-end; align-items: center; padding-right: 16px; }
html.menu-ui2 .wb .page > .w--card { justify-content: flex-start; padding-left: 14px; padding-right: 14px; }
html.menu-ui2 .wb .page > .w--card .w__lbl { align-items: flex-start; text-align: left; }
html.menu-ui2 .wb .page > .w--card { padding-left: 16px; }
html.menu-ui2 .hd__menu[aria-expanded="true"], html.menu-ui2.dark .hd__menu[aria-expanded="true"] { background: #d9d9d9; color: #121212; }
html.menu-ui2 .hd__menu[aria-expanded="true"]:hover { background: #ff471a; color: #121212; }
/* header without the Index / Profile links (they live in the menu) */
html.nav-head .th__nav { display: none; }
/* menu-ui2 · hover: the cards shrink a touch, like the os theme */
html.menu-ui2 .wb.is-open .page > .w:hover, html.menu-ui2 .wb.is-open .page > .slide2:hover { transform: scale(.975); transition-delay: 0s; }
html.menu-ui2 .wb.is-open .page > .slide2 { transition: transform .8s var(--out); }

/* =========================================================
   MENU · LINE VERSION (html.menu-ui2.menu-line): same widget cards,
   all drawn as 1px black outlines on a light panel; only the type is solid
   ========================================================= */
html.menu-line .wb, html.menu-line.dark .wb { --panel: #ececec; --card: transparent; --ln: 0 0 0 1px #121212; background: var(--panel); box-shadow: inset var(--ln), 0 24px 60px rgba(0, 0, 0, .18); }
html.menu-line .wb .page > .w, html.menu-line .wb .page > .slide2, html.menu-line.dark .wb .page > .slide2,
html.menu-line .wb .page > .w--clock, html.menu-line .wb .page > .w--cal { background: transparent; box-shadow: inset var(--ln); }
html.menu-line .wb.is-open .page > .w:hover { background: transparent; }
html.menu-line .wb__grab::before { background: transparent; box-shadow: inset var(--ln); }
/* e-mail knob */
html.menu-line .wb .slide2__knob, html.menu-line.dark .wb .slide2__knob { background: transparent; color: #121212; box-shadow: inset var(--ln); }
/* switch: outlined track, outlined square knob; dark = knob slides right with an orange outline */
html.menu-line .wb .w--slim .tog, html.menu-line .wb.is-open .w--slim:hover .tog { background: transparent; box-shadow: inset var(--ln); }
html.menu-line .wb .w--slim .tog i, html.menu-line .wb.is-open .w--slim:hover .tog i { background: transparent; box-shadow: inset var(--ln); }
html.menu-line.dark .wb .w--slim .tog i, html.menu-line.dark .wb.is-open .w--slim:hover .tog i { box-shadow: inset 0 0 0 1px var(--acc); }
/* clock: an outlined dial, hollow dots for the hands, an orange ring for the seconds */
html.menu-line .wb .clock { background: transparent; box-shadow: inset var(--ln); }
html.menu-line .wb .clock i::after { background: transparent !important; box-shadow: inset var(--ln); }
html.menu-line .wb .clock i.clock__s::after { box-shadow: inset 0 0 0 1px var(--acc); }
html.menu-line .wb .clock__txt span, html.menu-line .wb .clock__txt .js-hm { color: #121212; }
html.menu-line .wb .clock__txt b { color: var(--soft); }
/* calendar: the dot becomes an orange ring */
html.menu-line .wb .cal::after { background: transparent; box-shadow: inset 0 0 0 1px var(--acc); }
/* page dots + close button */
html.menu-line .wb .dots button, html.menu-line.dark .wb .dots button { background: transparent; box-shadow: inset var(--ln); }
html.menu-line .wb .dots button.is-on, html.menu-line.dark .wb .dots button.is-on { background: #121212; }
html.menu-line .hd__menu[aria-expanded="true"], html.menu-line.dark .hd__menu[aria-expanded="true"] { background: #ececec; color: #121212; box-shadow: inset 0 0 0 1px #121212; }
html.menu-line .hd__menu[aria-expanded="true"]:hover { background: #ececec; color: var(--acc, #ff471a); box-shadow: inset 0 0 0 1px #ff471a; }
html.menu-line.dark .wb .w--slim .tog i, html.menu-line.dark .wb.is-open .w--slim:hover .tog i { background: transparent; }
/* menu-line · clock hands back to solid dots (ink; seconds orange) */
html.menu-line .wb .clock i::after { background: #121212 !important; box-shadow: none; }
html.menu-line .wb .clock i.clock__s::after { background: var(--acc) !important; box-shadow: none; }
/* menu-line · solid switch knob (black; orange in dark) and solid e-mail knob */
html.menu-line .wb .w--slim .tog i, html.menu-line .wb.is-open .w--slim:hover .tog i { background: #121212; box-shadow: none; }
html.menu-line.dark .wb .w--slim .tog i, html.menu-line.dark .wb.is-open .w--slim:hover .tog i { background: var(--acc); box-shadow: none; }
html.menu-line .wb .slide2__knob, html.menu-line.dark .wb .slide2__knob { background: #121212; color: #ececec; box-shadow: none; }

/* =========================================================
   menu-ui2 · OPENING: the panel drops down like a blind (clip from the top),
   then the cards rise in one after another; no button-grow, no bricks
   ========================================================= */
html.menu-ui2 .wb, html.menu-ui2.dark .wb,
html.menu-ui2 .wb.is-open, html.menu-ui2.dark .wb.is-open {
  width: min(420px, calc(100vw - 2 * var(--pad)));
  height: min(var(--wbh, 800px), calc(100dvh - var(--dk) / 2 - 12px));
  border-radius: 18px;
}
html.menu-ui2 .wb, html.menu-ui2.dark .wb {
  opacity: 1; pointer-events: none;
  clip-path: inset(0 0 100% 0 round 18px);
  transition: clip-path .45s cubic-bezier(.65, 0, .35, 1);
}
html.menu-ui2 .wb.is-open, html.menu-ui2.dark .wb.is-open {
  pointer-events: auto;
  clip-path: inset(0 0 0 0 round 18px);
  transition: clip-path .7s cubic-bezier(.65, 0, .35, 1);
}
html.menu-ui2 .wb__top, html.menu-ui2 .pages, html.menu-ui2 .dots,
html.menu-ui2 .wb.is-open .wb__top, html.menu-ui2 .wb.is-open .pages, html.menu-ui2 .wb.is-open .dots { opacity: 1; transform: none; transition: none; }
/* cards: hidden a little low, then rise + fade in, staggered */
html.menu-ui2 .wb .page > .w, html.menu-ui2 .wb .page > .slide2 {
  clip-path: none; opacity: 0; transform: translateY(18px);
  transition: opacity .2s, transform .3s var(--out), background-color .45s, color .45s;
}
html.menu-ui2 .wb.is-open .page > .w, html.menu-ui2 .wb.is-open .page > .slide2 {
  opacity: 1; transform: none;
  transition: opacity .5s calc(.25s + var(--d, 0s)), transform .8s calc(.25s + var(--d, 0s)) var(--out), background-color .45s, color .45s;
}
html.menu-ui2 .wb.is-open .page > .w:hover, html.menu-ui2 .wb.is-open .page > .slide2:hover { transform: scale(.975); transition-delay: 0s, 0s, 0s, 0s; }
html.menu-ui2 .wb .mbk { display: none; }
@media (prefers-reduced-motion: reduce) {
  html.menu-ui2 .wb, html.menu-ui2 .wb.is-open { clip-path: none; transition: opacity .2s; opacity: 0; }
  html.menu-ui2 .wb.is-open { opacity: 1; }
  html.menu-ui2 .wb .page > .w, html.menu-ui2 .wb .page > .slide2 { opacity: 1; transform: none; transition: none; }
}
/* menu-line · white panel */
html.menu-line .wb, html.menu-line.dark .wb { --panel: #fff; }
html.menu-line .hd__menu[aria-expanded="true"], html.menu-line.dark .hd__menu[aria-expanded="true"], html.menu-line .hd__menu[aria-expanded="true"]:hover { background: #fff; }
html.menu-line .wb .slide2__knob, html.menu-line.dark .wb .slide2__knob { color: #fff; }
html.menu-ui2 .wb .cal { font-size: 50px; font-weight: 500; line-height: .82; letter-spacing: -.05em; }
html.menu-ui2 .wb .cal::after { width: 8px; height: 8px; margin-left: 4px; }
html.menu-ui2 .wb .cal { font-variant-numeric: proportional-nums; letter-spacing: -.08em; }
html.menu-ui2 .wb .cal::after { content: none; display: none; }
/* menu open: the header bar blurs back with the page */
html.nav-head .th { transition: filter .6s var(--out), opacity .6s var(--out); }
html.nav-head.menu-open .th { filter: blur(8px); opacity: .6; pointer-events: none; }

/* header: language switch IT / EN (column 5 on desktop) */
.th__lang { gap: 4px; font-size: 9.5px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; line-height: 1; }
.th__lang button { font: inherit; color: var(--fg); opacity: .35; padding: 2px 0; transition: opacity .3s; }
.th__lang button:hover, .th__lang button[aria-pressed="true"] { opacity: 1; }
.th__lang i { font-style: normal; opacity: .35; }
@media (min-width: 701px) { .th__gr.th__lang { grid-column: 5 / 6; } }
@media (max-width: 700px) {
  html.nav-head .th__sws { display: flex; grid-column: 1 / 13; grid-row: 2; justify-self: start; gap: 16px; margin-top: 8px; }
  html.nav-head .th__sws > .th__gr { grid-column: auto; grid-row: auto; }
}

/* header: the language switch is a switch like Dark / Grid (on = Italian), column 5 on desktop */
@media (min-width: 701px) { .th__gr.th__lg { grid-column: 5 / 6; grid-row: 1; justify-self: start; } }

/* showreel table: the current row's overflowing cells run as a ticker instead of being cut */
.tbl__t { font-style: normal; }
.tbl__r > span.is-tk { text-overflow: clip; }
.tbl__r > span.is-tk > .tbl__t { display: inline-block; animation: tblTk var(--tkd, 12s) linear .8s infinite; }
@keyframes tblTk { from { transform: translateX(0); } to { transform: translateX(var(--tk, -200px)); } }
/* the snake line's top rule sits exactly on the clip edge: let it paint 1px above it so it isn't cut */
html.nav-head .tbl__line { overflow: visible; clip-path: inset(-1px -2px 0 -2px); }
/* header: logo only, no studio line next to it */
.th__desc { display: none; }

/* showreel: image-only brick reveal (no black brick); the snake line passes BEHIND the images */
.tbl__bk { display: none; }
.tbl__band { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; pointer-events: none; }
.tbl__im video { z-index: 2; }
.tbl__line, html.nav-head .tbl__line { z-index: 1; }


/* =========================================================
   PROJECT PAGE in the list-theme format, in the os-b look:
   sticky title block (ruled boxes, small bold caps labels, uppercase bold title) on columns 1–4,
   the images stacked big on columns 5–12, all on the 12-column grid
   ========================================================= */
.pj { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--pad); align-items: start; padding-top: calc(var(--dk) + var(--pad) - var(--hd)); }
.view > .pj { animation: none; }
.pj__side {
  --rule: 1px solid var(--fg); --sgap: clamp(22px, 3.2vh, 34px);
  grid-column: 1 / 5; position: sticky; top: calc(var(--dk) + var(--pad));
  max-height: calc(100dvh - var(--dk) - 2 * var(--pad)); overflow: auto; scrollbar-width: none;
  display: flex; flex-direction: column; gap: var(--sgap); font-size: 14px; line-height: 1.3; color: var(--fg);
}
.pj__side::-webkit-scrollbar { display: none; }
.pj__media { grid-column: 5 / 13; display: flex; flex-direction: column; gap: var(--pad); min-width: 0; }
.pj__it { scroll-margin-top: calc(var(--dk) + var(--pad)); }
.pj__media .mi, .pj__media figure { width: 100%; margin: 0; grid-column: auto; }
/* the boxes touch: one black frame, divided by 1px rules */
.pj__top, .pj__brief, .pj__meta, .pj__nav { border: var(--rule); margin-bottom: calc(-1px - var(--sgap)); }
.pj__nav { margin-bottom: 0; }
.pj__l { display: block; font-size: 9.5px; line-height: 1; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--fg); }
.pj__top { position: relative; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 9px 12px 14px; }
.pj__top::after { content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 1px; background: var(--fg); }
.pj__title { margin: 0; font: inherit; min-width: 0; }
.pj__title .pj__l { margin-bottom: 21px; }
.pj__title b { display: block; font-weight: 700; text-transform: uppercase; font-size: clamp(22px, 2.1vw, 36px); line-height: .95; letter-spacing: -.02em; text-wrap: balance; }
.pj__title > span:last-child { display: block; margin-top: 8px; font-size: 15px; line-height: 1.2; }
.pj__title > span:last-child:empty { display: none; }
.pj__close { flex: none; white-space: nowrap; font-size: 9.5px; line-height: 1; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.pj__close:hover { text-decoration: underline; text-underline-offset: 3px; }
.pj__brief { padding: 9px 12px 12px; }
.pj__brief .pj__l { margin-bottom: 8px; }
.pj__brief p { margin: 0; text-wrap: pretty; }
.pj__meta { margin-top: 0; display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: row dense; gap: 1px; background: var(--fg); }
.pj__c { grid-column: 1 / -1; background: var(--bg); padding: 9px 12px 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pj__c--half { grid-column: span 1; }
.pj__c dd { margin: 0; line-height: 1.25; overflow-wrap: anywhere; }
.pj__c dd a { text-decoration: underline; text-underline-offset: 3px; }
.pj__nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1px; background: var(--fg); }
.pj__nav > * { background: var(--bg); padding: 10px 12px; color: var(--fg); transition: background-color .25s, color .25s; }
.pj__nav [data-next] { text-align: right; }
.pj__count { text-align: center; font-variant-numeric: tabular-nums; }
@media (hover: hover) { .pj__nav a:hover { background: var(--fg); color: var(--bg); } }
.pj__arw { display: inline-block; transition: transform .35s var(--out); }
@media (hover: hover) { [data-next]:hover .pj__arw { transform: translateX(.2em); } [data-prev]:hover .pj__arw { transform: translateX(-.2em); } }
.pj__thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--pad); align-items: start; }
.pj__thumbs button { text-align: left; padding: 0; }
.pj__thumbs button span { display: block; text-align: right; padding-bottom: 3px; font-size: 11px; color: var(--dim, #8a8a8a); }
.pj__thumbs img, .pj__thumbs video, .pj__tsp { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--faint, #eee); opacity: .55; transition: opacity .3s; }
.pj__tsp { display: grid; place-items: center; background: #141412; color: #EEECE4; font-style: normal; font-weight: 700; font-size: 22px; }
@media (hover: hover) { .pj__thumbs button:hover img, .pj__thumbs button:hover video, .pj__thumbs button:hover .pj__tsp { opacity: 1; } .pj__thumbs button:hover span { color: var(--fg); } }
.pj + .foot { margin-top: calc(var(--pad) * 6); }
/* entering: the title block draws itself box by box, its text rises in, then the thumbnails */
.pj__side > :nth-child(2) { --n: 1; } .pj__side > :nth-child(3) { --n: 2; } .pj__side > :nth-child(4) { --n: 3; } .pj__side > :nth-child(5) { --n: 4; }
.pj__side.is-enter > :is(.pj__top, .pj__brief, .pj__meta, .pj__nav) { animation: pjBox .75s cubic-bezier(.7, 0, .2, 1) both; animation-delay: calc(var(--n, 0) * 110ms + 250ms); }
.pj__side.is-enter :is(.pj__top > *, .pj__brief > *, .pj__c > *, .pj__nav > *) { animation: pjUp .7s var(--out) both; animation-delay: calc(var(--n, 0) * 110ms + 620ms); }
.pj__side.is-enter > .pj__thumbs { animation: pjRise .9s var(--out) both; animation-delay: calc(4 * 110ms + 700ms); }
@keyframes pjBox { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes pjUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pjRise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pj__side.is-enter *, .pj__side.is-enter > * { animation: none !important; } }
/* tablet / phone: the title block on top (not sticky), the images under it, no thumbnails */
@media (max-width: 1000px) {
  .pj__side { grid-column: 1 / -1; position: static; max-height: none; overflow: visible; margin-bottom: var(--pad); }
  .pj__media { grid-column: 1 / -1; }
  .pj__thumbs { display: none; }
}

/* =========================================================
   PROJECT CARTIGLIO AS MENU-STYLE CARDS (like the hdMenu line version):
   separate rounded cards with a 1px black outline and an 8px gap, a 15px label,
   big 500-weight uppercase values, solid black square knobs, a square close button,
   cards shrink a touch on hover
   ========================================================= */
.pj__side { --sgap: 8px; gap: 8px; font-size: 15px; }
.pj__top, .pj__brief, .pj__meta, .pj__nav { border: 0; margin-bottom: 0; }
.pj__top, .pj__brief, .pj__c, .pj__nav > * {
  border-radius: 12px; background: transparent; box-shadow: inset 0 0 0 1px var(--fg);
  transition: transform .8s var(--out), background-color .3s, color .3s;
}
.pj__top::after { content: none; }
.pj__l { font-size: 15px; font-weight: 400; letter-spacing: -.01em; text-transform: none; line-height: 1.1; }
/* title card: label, the name big like INDEX / LIGHT, subtitle; the close button top right */
.pj__top { padding: 12px 14px 14px; }
.pj__title .pj__l { margin-bottom: 26px; }
.pj__title b { font-size: clamp(34px, 3.3vw, 50px); font-weight: 500; line-height: .86; letter-spacing: -.05em; }
.pj__title > span:last-child { margin-top: 10px; font-size: 15px; }
.pj__close { position: relative; width: 40px; height: 40px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--fg); margin: -2px -4px 0 0; transition: background-color .25s, color .25s; color: var(--fg); }
.pj__close i { position: absolute; left: 11px; right: 11px; top: 50%; height: 1px; margin-top: -.5px; background: currentColor; transform: rotate(45deg); }
.pj__close i + i { transform: rotate(-45deg); }
.pj__close:hover { text-decoration: none; background: var(--fg); color: var(--bg); }
/* description */
.pj__brief { padding: 12px 14px 14px; }
.pj__brief .pj__l { margin-bottom: 18px; }
.pj__brief p { font-size: 15px; line-height: 1.3; }
/* details: cards, two to a row for Type and Year */
.pj__meta { gap: 8px; background: transparent; }
.pj__c { padding: 12px 14px 14px; gap: 18px; min-height: 0; }
.pj__c dd { font-size: 15px; }
.pj__c--year dd { font-size: clamp(34px, 3.3vw, 50px); font-weight: 500; line-height: .82; letter-spacing: -.05em; margin-top: auto; }
.pj__c--type dd { font-size: 15px; }
.pj__c--type, .pj__c--year { justify-content: space-between; }
/* Previous · count · Next: cards; the arrows sit in solid black squares, like the e-mail knob */
.pj__nav { gap: 8px; background: transparent; grid-template-columns: 1fr auto 1fr; }
.pj__nav > * { display: flex; align-items: center; gap: 10px; padding: 8px; background: transparent; }
.pj__nav [data-next] { justify-content: flex-end; }
.pj__knob { flex: none; width: 40px; height: 40px; border-radius: 8px; background: var(--fg); color: var(--bg); display: grid; place-items: center; font-style: normal; font-size: 16px; }
.pj__count { justify-content: center; padding: 8px 14px; font-size: 26px; font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.pj__count small { font-size: 15px; font-weight: 400; letter-spacing: 0; margin-left: 2px; color: var(--dim, #8a8a8a); }
@media (hover: hover) {
  .pj__nav a:hover { background: transparent; color: var(--fg); }
  .pj__top:hover, .pj__brief:hover, .pj__c:hover, .pj__nav > a:hover { transform: scale(.975); }
  .pj__nav a:hover .pj__knob { background: var(--acc, #ff471a); }
}
.pj__thumbs img, .pj__thumbs video, .pj__tsp { border-radius: 8px; }
/* entering: cards draw in one after another (the old ruled-frame wipe, card by card) */
.pj__side.is-enter > :is(.pj__top, .pj__brief) { animation: pjBox .75s cubic-bezier(.7, 0, .2, 1) both; animation-delay: calc(var(--n, 0) * 110ms + 250ms); }
.pj__side.is-enter > :is(.pj__meta, .pj__nav) { animation: none; }
.pj__side.is-enter :is(.pj__c, .pj__nav > *) { animation: pjBox .75s cubic-bezier(.7, 0, .2, 1) both; animation-delay: calc(var(--n, 0) * 110ms + 250ms + var(--k, 0) * 70ms); }
.pj__c:nth-child(2), .pj__nav > :nth-child(2) { --k: 1; } .pj__c:nth-child(3), .pj__nav > :nth-child(3) { --k: 2; } .pj__c:nth-child(4) { --k: 3; } .pj__c:nth-child(n + 5) { --k: 4; }
.pj__side.is-enter :is(.pj__c > *, .pj__nav > * > *) { animation: pjUp .7s var(--out) both; animation-delay: calc(var(--n, 0) * 110ms + 620ms + var(--k, 0) * 70ms); }
/* cartiglio cards: no shrink on hover */
@media (hover: hover) { .pj__top:hover, .pj__brief:hover, .pj__c:hover, .pj__nav > a:hover { transform: none; } }
/* cartiglio labels (Project, Description, Client…) in bold */
.pj__l { font-weight: 700; }
/* counter: 06/21 all one size */
.pj__count small { font-size: inherit; font-weight: inherit; letter-spacing: inherit; margin-left: 0; }
/* counter: tighter (natural-width figures, like the calendar date in the menu) */
.pj__count { font-variant-numeric: proportional-nums; letter-spacing: -.08em; }
.pj__count small { letter-spacing: -.08em; margin-left: .04em; }
.pj__count { gap: 0; }
/* counter: a little less tight */
.pj__count, .pj__count small { letter-spacing: -.04em; }
/* menu clock: the hand dots run on rings outside the time in the middle (it never hides under a dot):
   hour ¾ of the way out, minute further, seconds on the rim */
html.menu-ui2 .wb .clock i.clock__h::after { top: calc(-.75 * var(--rs, 80px) - 5px); }
html.menu-ui2 .wb .clock i.clock__m::after { top: calc(-.9 * var(--rs, 80px) - 3px); }
/* the timer line layer sits above the image frame (it runs beside the images, in the margin) */
.tbl__line.tbl__line--top, html.nav-head .tbl__line.tbl__line--top { z-index: 3; }
/* footer: e-mail on columns 9–11, P.IVA on the last column (12) */
.foot span:nth-child(3) { grid-column: 9 / 12; }
.foot span.foot__vat { grid-column: 12 / 13; white-space: nowrap; }
@media (max-width: 700px) { .foot span:nth-child(3), .foot span.foot__vat { grid-column: 1 / -1; } }
.foot span.foot__vat { white-space: normal; }


/* =========================================================
   EXPERIMENTS page (#/experiments): per experiment a sticky column of outlined cards
   (like the project cartiglio) on columns 1–4 and the live stage (16:9) on columns 5–12
   ========================================================= */
.xp__head { padding: 18vh 0 48px; }
.xp__it { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--pad); align-items: start; margin-bottom: calc(var(--pad) * 6); }
.xp__side { grid-column: 1 / 5; position: sticky; top: calc(var(--dk) + var(--pad)); display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.3; color: var(--fg); }
.xp__card { border-radius: 12px; box-shadow: inset 0 0 0 1px var(--fg); padding: 12px 14px 14px; min-width: 0; }
.xp__l { display: block; font-size: 15px; font-weight: 700; line-height: 1.1; margin-bottom: 18px; }
.xp__t { margin: 8px 0 0; font-size: clamp(34px, 3.3vw, 50px); font-weight: 500; line-height: .86; letter-spacing: -.05em; text-transform: uppercase; text-wrap: balance; }
.xp__sub { display: block; margin-top: 10px; }
.xp__card p { margin: 0; text-wrap: pretty; }
.xp__meta { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.xp__meta dd { margin: 0; }
.xp__meta .xp__card { display: flex; flex-direction: column; justify-content: space-between; }
.xp__yr { font-size: clamp(34px, 3.3vw, 50px); font-weight: 500; line-height: .82; letter-spacing: -.05em; }
.xp__fs { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 14px; font: inherit; color: var(--fg); background: none; border: 0; text-align: left; cursor: pointer; }
@media (hover: hover) { .xp__fs:hover .pj__knob { background: var(--acc, #ff471a); } }
.xp__stage { grid-column: 5 / 13; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg); box-shadow: inset 0 0 0 1px var(--fg); }
.xp__stage--cat { background: #121212; color: #ececec; box-shadow: none; }
.xp__cat { position: absolute; inset: 0; }
.xp__cat .pcl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.xp__frame { position: absolute; inset: 1px; width: calc(100% - 2px); height: calc(100% - 2px); border: 0; display: block; background: var(--bg); }
.xp__stage:fullscreen { aspect-ratio: auto; width: 100vw; height: 100vh; }
@media (max-width: 1000px) {
  .xp__side, .xp__stage { grid-column: 1 / -1; }
  .xp__side { position: static; margin-bottom: var(--pad); }
}
/* no visible page title: the first experiment starts just under the header, like the project page */
.xp { padding-top: calc(var(--dk) + var(--pad) - var(--hd)); }
/* experiments: no subtitle under the title */
.xp__sub { display: none; }
/* experiments: no Medium card; Year takes the full width */
.xp__meta { grid-template-columns: 1fr; }
.xp__meta > .xp__card:first-child { display: none; }
/* experiments: no Year card either (the whole details row is gone) */
.xp__meta { display: none; }
/* experiments: no Description card — just the title card and Full screen */
.xp__side > .xp__card:nth-child(2) { display: none; }
/* footer: dark and bold */
.foot, .foot a { color: var(--fg); font-weight: 700; }
.foot a:hover { color: var(--dim, #8a8a8a); }


/* =========================================================
   SELF-DESTRUCT switch (header, column 6) and the explosion overlay (boom.js)
   ========================================================= */
.th__boom .th__lbl { display: flex; flex-direction: column; gap: 2px; }
.th__boom .th__lbl b { font-weight: 700; }
.th__boom .th__lbl em { font-style: normal; font-weight: 700; color: var(--acc, #ff471a); }
@media (min-width: 701px) { .th__gr.th__boom { grid-column: 6 / 8; grid-row: 1; justify-self: start; } }
.th__sw--boom[aria-pressed="true"] { background: var(--acc, #ff471a); }
@media (max-width: 700px) { html.nav-head .th__sws { flex-wrap: wrap; row-gap: 10px; } }
/* before it goes: the page shakes */
html.boom-shake #view, html.boom-shake #stage, html.boom-shake .th__id, html.boom-shake .th__gr:not(.th__boom) { animation: boomShake .52s steps(13) both; }
@keyframes boomShake {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3px, 2px) rotate(-.3deg); } 40% { transform: translate(4px, -3px) rotate(.4deg); }
  60% { transform: translate(-5px, 3px) rotate(-.5deg); } 80% { transform: translate(6px, -2px) rotate(.6deg); } 100% { transform: translate(0, 0); }
}
/* gone: only the letters (on a full-screen canvas) and the switch remain */
html.is-boom { overflow: hidden; }
html.is-boom #view, html.is-boom #stage, html.is-boom .hd, html.is-boom .wb, html.is-boom .dock, html.is-boom .cn, html.is-boom .gridov { visibility: hidden; }
html.is-boom .th { background: transparent; pointer-events: none; }
html.is-boom .th > * { visibility: hidden; }
html.is-boom .th .th__sws, html.is-boom .th .th__sws > * { visibility: hidden; }
html.is-boom .th .th__boom, html.is-boom .th .th__boom * { visibility: visible; pointer-events: auto; }
.boom { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 45; cursor: grab; touch-action: none; transition: opacity .45s; }
.boom:active { cursor: grabbing; }
.boom.is-out { opacity: 0; pointer-events: none; }
html.is-boom #view, html.is-boom #stage { opacity: 0; }
/* self-destruct on its own: away from the other switches (desktop: columns 9–10; phone: top right, next to the logo) */
@media (min-width: 701px) { .th__gr.th__boom { grid-column: 9 / 11; grid-row: 1; justify-self: start; } }
@media (max-width: 700px) { html.nav-head .th__gr.th__boom { grid-column: 6 / 13; grid-row: 1; justify-self: end; align-self: center; } }
/* phone: the menu button goes up to the logo's row, self-destruct down to the switches' row (right) */
@media (max-width: 700px) {
  html.nav-head .hd__menu, html.nav-head.dark .hd__menu, html.nav-head .wb, html.nav-head.dark .wb { top: 6px; }
  html.nav-head .th__gr.th__boom { grid-row: 2; grid-column: 7 / 13; justify-self: end; align-self: center; }
  html.nav-head .th__sws { gap: 12px; }
}
@media (max-width: 700px) {
  html.nav-head .th__gr.th__boom { grid-row: 3; grid-column: 1 / 13; justify-self: end; }
  html.nav-head .th__sws { gap: 16px; }
}
/* phone header: three rows (logo + menu · switches · self-destruct), the logo centred on the menu button */
@media (max-width: 700px) {
  html.nav-head { --dk: 118px; }
  html.nav-head .th { align-content: start; padding-top: 16px; row-gap: 12px; }
}
/* phone: all four switches on one line (slimmer switches; self-destruct pushed to the right end of the row) */
@media (max-width: 700px) {
  html.nav-head { --dk: 96px; }
  html.nav-head .th__sws { gap: 10px; flex-wrap: nowrap; }
  html.nav-head .th__gr { gap: 6px; }
  html.nav-head .th__gr .th__sw { width: 30px; height: 16px; }
  html.nav-head .th__gr .th__sw i { width: 10px; height: 10px; }
  html.nav-head .th__gr .th__sw[aria-pressed="true"] i { transform: translateX(14px); }
  html.nav-head .th__gr.th__boom { grid-row: 2; grid-column: 1 / 13; justify-self: end; }
}
@media (max-width: 700px) { html.nav-head .th__sws, html.nav-head .th__gr.th__boom { align-self: center; } }
@media (max-width: 700px) { html.nav-head .th__sws { margin-top: 0; } }
/* phone: the switches follow the 12-column grid, two per line — Dark | Grid, IT | Self-destruct
   (columns 1 and 7), under the logo + menu row */
@media (max-width: 700px) {
  html.nav-head { --dk: 118px; }
  html.nav-head .th__sws { display: contents; }
  html.nav-head .th__sws > .th__gr, html.nav-head .th__gr.th__boom { justify-self: start; align-self: center; margin: 0; }
  html.nav-head .th__sws > .th__md { grid-row: 2; grid-column: 1 / 7; }
  html.nav-head .th__sws > .th__gr:has(.th__sw--grid) { grid-row: 2; grid-column: 7 / 13; }
  html.nav-head .th__sws > .th__lg { grid-row: 3; grid-column: 1 / 7; }
  html.nav-head .th__gr.th__boom { grid-row: 3; grid-column: 7 / 13; }
  html.nav-head .th { grid-template-rows: auto auto auto; row-gap: 12px; }
}
/* phone switches closer together: second column on grid column 5, rows a little tighter */
@media (max-width: 700px) {
  html.nav-head { --dk: 110px; }
  html.nav-head .th__sws > .th__gr:has(.th__sw--grid), html.nav-head .th__gr.th__boom { grid-column: 5 / 13; }
  html.nav-head .th { row-gap: 8px; }
}
@media (max-width: 700px) { html.nav-head .th__sws > .th__gr:has(.th__sw--grid), html.nav-head .th__gr.th__boom { grid-column: 6 / 13; } }
@media (max-width: 700px) { html.nav-head .th__sws > .th__gr:has(.th__sw--grid), html.nav-head .th__gr.th__boom { grid-column: 4 / 13; } }


/* =========================================================
   PROFILE AS A CATALOGUE (html.pf-book) — a two-page spread, pages turn over the spine
   ========================================================= */
.ctg { --paper: #fff; --ink: var(--fg); position: relative; height: calc(var(--nl) * 100dvh + 100dvh - var(--dk) - var(--pad)); margin-top: calc(var(--dk) + var(--pad) - var(--hd)); }
html.dark .ctg { --paper: #1b1b1b; }
.view > .ctg { animation: none; }
.ctg__pin { position: sticky; top: calc(var(--dk) + var(--pad)); height: calc(100dvh - var(--dk) - 2 * var(--pad)); perspective: 2800px; cursor: pointer; }
.ctg__book { position: absolute; inset: 0 0 26px; }
.ctg__base, .ctg__leaf { position: absolute; top: 0; bottom: 0; width: 50%; }
.ctg__base--l { left: 0; } .ctg__base--r { right: 0; }
.ctg__leaf { left: 50%; transform-origin: 0 50%; transform-style: preserve-3d; will-change: transform; }
.ctg__face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.ctg__face--back { transform: rotateY(180deg); }
/* paper: a page, a hairline at the outer edge, the gutter shading at the spine */
.ctg__pg { background: var(--paper); color: var(--ink); overflow: hidden; display: flex; flex-direction: column; padding: clamp(16px, 2.2vw, 34px); box-shadow: inset 0 0 0 1px rgba(128, 128, 128, .18); }
.ctg__pg--l { background-image: linear-gradient(to left, rgba(0, 0, 0, .08), rgba(0, 0, 0, 0) 9%); }
.ctg__pg--r { background-image: linear-gradient(to right, rgba(0, 0, 0, .08), rgba(0, 0, 0, 0) 9%); }
.ctg__leaf .ctg__face::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: calc(var(--sh, 0) * .55); }
.ctg__leaf .ctg__face:not(.ctg__face--back)::after { background: linear-gradient(to left, rgba(0, 0, 0, .28), rgba(0, 0, 0, 0) 70%); }
.ctg__leaf .ctg__face--back::after { background: linear-gradient(to right, rgba(0, 0, 0, .28), rgba(0, 0, 0, 0) 70%); }
.ctg__spine { position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; margin-left: -.5px; background: rgba(128, 128, 128, .35); z-index: 20; pointer-events: none; }
/* catalogue furniture: running head, folio, small foot line */
.ctg__rh { display: flex; justify-content: space-between; gap: 12px; font-size: 9.5px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; padding-bottom: 10px; border-bottom: 1px solid currentColor; }
.ctg__fo { position: absolute; bottom: clamp(14px, 1.8vw, 26px); font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ctg__pg--l .ctg__fo { left: clamp(16px, 2.2vw, 34px); } .ctg__pg--r .ctg__fo { right: clamp(16px, 2.2vw, 34px); }
.ctg__foot { margin: auto 0 0; padding-bottom: 26px; font-size: 13px; font-weight: 700; line-height: 1.25; }
.ctg__pg--r .ctg__foot { text-align: right; }
.ctg__body { flex: 1; min-height: 0; padding-top: clamp(18px, 4vh, 44px); display: flex; flex-direction: column; }
.ctg__body--end { justify-content: flex-end; padding-bottom: 40px; }
.ctg__body--logo { align-items: center; justify-content: center; }
.ctg__big { margin: 0; font-size: clamp(44px, 6.2vw, 112px); font-weight: 700; line-height: .84; letter-spacing: -.055em; }
.ctg__sn { display: block; margin-top: 10px; font-size: 11px; font-weight: 700; }
.ctg__lead { margin: auto 0 46px; font-size: clamp(17px, 1.55vw, 26px); line-height: 1.18; letter-spacing: -.015em; font-weight: 500; max-width: 30em; }
.ctg__toc { list-style: none; margin: auto 0 0; padding: 0; font-size: clamp(15px, 1.3vw, 20px); font-weight: 700; }
.ctg__toc li { display: flex; align-items: baseline; gap: 8px; padding: 6px 0; border-bottom: 1px solid rgba(128, 128, 128, .35); }
.ctg__toc i { flex: 1; }
.ctg__list { list-style: none; margin: auto 0 46px; padding: 0; font-size: clamp(16px, 1.45vw, 24px); font-weight: 700; line-height: 1.12; letter-spacing: -.015em; }
.ctg__body--end .ctg__list { margin: 0; }
.ctg__list li { display: grid; grid-template-columns: 2.4em 1fr; padding: 7px 0; border-top: 1px solid rgba(128, 128, 128, .35); }
.ctg__list li span { font-size: .6em; padding-top: .35em; }
.ctg__rows { list-style: none; margin: auto 0 40px; padding: 0; font-size: clamp(13px, 1.05vw, 16px); }
.ctg__rows li { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 6px 0; border-top: 1px solid rgba(128, 128, 128, .35); }
.ctg__rows li > :first-child { font-weight: 700; }
.ctg__rows li > :last-child { text-align: right; color: var(--dim, #8a8a8a); }
.ctg__rows--rec li { grid-template-columns: 4.5em 1fr; }
.ctg__rows--rec li > :last-child { text-align: left; color: var(--ink); }
.ctg__rows a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ctg__mail { margin-top: auto; font-size: clamp(22px, 2.6vw, 44px); font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.ctg__mail:hover { color: var(--acc, #ff471a); }
.ctg__txt { margin: 14px 0 0; max-width: 24em; font-size: 15px; }
.ctg__logo { font-size: clamp(80px, 12vw, 220px); font-weight: 700; letter-spacing: -.05em; line-height: .8; }
.ctg__logo i { font-style: italic; }
.ctg__logo sup { font-size: .22em; vertical-align: top; }
.ctg__hint { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-size: 9.5px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; transition: opacity .4s; }
.ctg.is-open .ctg__hint { opacity: 0; }
.ctg__flat { display: none; }
/* phones: no spread — the pages stack, one under the other */
@media (max-width: 700px) {
  .ctg { height: auto; }
  .ctg__pin { display: none; }
  .ctg__flat { display: flex; flex-direction: column; gap: var(--pad); }
  .ctg__flat .ctg__pg { position: relative; min-height: 78svh; }
}
.ctg__rh { text-transform: none; font-size: 11px; letter-spacing: 0; }
.ctg__toc { margin-bottom: 22px; }
.ctg__body--end { padding-bottom: 46px; }
.ctg { height: calc(var(--nl) * 100dvh + 100dvh); }
/* catalogue · the page-peel turn (fronts on the right, flaps with the back pages) */
.ctg__front { position: absolute; top: 0; bottom: 0; left: 50%; width: 50%; }
.ctg__flap { position: absolute; inset: 0; pointer-events: none; filter: drop-shadow(0 0 16px rgba(0, 0, 0, .22)); }
.ctg__clip { position: absolute; inset: 0; }
.ctg__back { position: absolute; left: 0; top: 0; width: 50%; height: 100%; transform-origin: 0 0; }
.ctg__shade { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: linear-gradient(to right, rgba(0, 0, 0, .1), rgba(255, 255, 255, .12) 60%, rgba(0, 0, 0, .06)); }
.ctg__book .ctg__face { position: absolute; inset: 0; }

/* catalogue · TRIANGLE page-peel: whole spreads stacked as sheets, each folds away from its bottom corner */
.ctg__sp { position: absolute; inset: 0; background: var(--paper); }
.ctg__sp > .ctg__pg { position: absolute; top: 0; bottom: 0; width: 50%; }
.ctg__sp > .ctg__pg--l { left: 0; } .ctg__sp > .ctg__pg--r { right: 0; }
.ctg__sp .ctg__spine { z-index: 2; }
.ctg__fl { position: absolute; inset: 0; pointer-events: none; filter: drop-shadow(-6px -6px 14px rgba(0, 0, 0, .18)); }
.ctg__flc { position: absolute; inset: 0; overflow: hidden; background-color: #e6e6e4; }
html.dark .ctg__flc { background-color: #2c2c2c; }
.ctg__gh { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform-origin: 0 0; opacity: .08; filter: blur(1.2px); }
.ctg__gh .ctg__pg { position: absolute; top: 0; bottom: 0; width: 50%; background: none; box-shadow: none; }
.ctg__gh .ctg__pg--l { left: 0; } .ctg__gh .ctg__pg--r { right: 0; }
.ctg__gh .ctg__spine { display: none; }

/* catalogue · triangle peel per page, turning over the spine */
.ctg__clip { background-color: #e6e6e4; }
html.dark .ctg__clip { background-color: #2c2c2c; }
.ctg__clip > .ctg__shade { position: absolute; inset: 0; pointer-events: none; background: none; }
.ctg__back .ctg__pg { background-color: transparent; }
.ctg__flap { filter: drop-shadow(-4px -4px 14px rgba(0, 0, 0, .2)); }

/* catalogue: slower turns need a longer scroll; thin paper — the next page faintly showing through */
.ctg { height: calc(var(--nl) * 150dvh + 100dvh); }
.ctg__thru { position: absolute; inset: 0; padding: inherit; display: flex; flex-direction: column; pointer-events: none; opacity: .045; filter: blur(1.5px); z-index: 0; }
html.dark .ctg__thru { opacity: .06; }
.ctg__front .ctg__pg > :not(.ctg__thru) { position: relative; z-index: 1; }
.ctg__front .ctg__pg > .ctg__fo { position: absolute; }
/* catalogue: no gutter shadow between the pages */
.ctg__pg--l, .ctg__pg--r { background-image: none; }
/* catalogue: SCROLL DOWN button (black circle + arrow + label, bottom left), after druh.in */
.ctg__book { inset: 0 0 54px; }
.ctg__down { position: absolute; left: 0; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 0; border: 0; background: none; color: var(--fg); font: inherit; font-size: 11px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; cursor: pointer; transition: opacity .4s; }
.ctg__down i { width: 40px; height: 40px; border-radius: 50%; background: var(--fg); color: var(--bg); display: grid; place-items: center; font-style: normal; font-size: 14px; overflow: hidden; transition: background-color .3s; }
.ctg__down i::before { content: none; }
@media (hover: hover) { .ctg__down:hover i { background: var(--acc, #ff471a); } }
.ctg__down:hover i { animation: ctgDown .9s cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes ctgDown { 0% { text-indent: 0; } 100% { text-indent: 0; } }
.ctg.is-end .ctg__down { opacity: 0; pointer-events: none; }
.ctg__down:hover i { animation: none; }
.ctg__down b { display: block; font-weight: 400; animation: ctgDrop 1.8s cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes ctgDrop { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) { .ctg__down b { animation: none; } }
/* scroll down: our Helvetica arrow (the → of Previous / Next), turned to point down */
.ctg__down i { font-family: var(--font); font-size: 16px; }
.ctg__down b span { display: block; transform: rotate(90deg); font-weight: 400; line-height: 1; }
/* Index: the numbers roll on hover (after druh.in) */
.ixn { position: relative; display: inline-block; overflow: hidden; vertical-align: top; line-height: inherit; }
.ixn__a, .ixn__b { display: block; white-space: nowrap; }
.ixn__b { position: absolute; left: 0; top: 0; }
.ixn span span { display: inline-block; transition: transform .55s cubic-bezier(.65, 0, .35, 1); transition-delay: calc(var(--i, 0) * 60ms); }
.ixn__b span { transform: translateY(105%); }
@media (hover: hover) {
  .ixt__r:hover .ixn__a span { transform: translateY(-105%); }
  .ixt__r:hover .ixn__b span { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .ixn span span { transition: none; } }

/* catalogue ON THE GRID: left page = columns 1–6, right page = columns 7–12, the spine in the gutter
   between them; the text sits on the column edges (no side padding, no page outline) */
.ctg__base--l, .ctg__base--r, .ctg__front, .ctg__back { width: calc(50% - var(--pad) / 2); }
.ctg__base--r, .ctg__front { left: calc(50% + var(--pad) / 2); right: auto; }
.ctg__book .ctg__pg { padding-left: 0; padding-right: 0; box-shadow: none; }
.ctg__pg--l .ctg__fo { left: 0; } .ctg__pg--r .ctg__fo { right: 0; }
.ctg__thru { padding-left: 0; padding-right: 0; }


/* =========================================================
   CATALOGUE PAGES AS A SWISS TIMETABLE POSTER: big running text, underlines, grey words,
   superscript labels, outlined oval pills, a dense timetable of thin rules at the foot
   ========================================================= */
.ctg__body { padding-top: clamp(14px, 2.4vh, 26px); }
.ctg__run { margin: 0; font-size: clamp(26px, 2.75vw, 50px); font-weight: 400; line-height: 1.08; letter-spacing: -.035em; text-wrap: pretty; }
.ctg__run--s { font-size: clamp(22px, 2.3vw, 42px); }
.ctg__u { text-decoration: underline; text-decoration-thickness: .055em; text-underline-offset: .12em; }
a.ctg__u:hover { color: var(--acc, #ff471a); }
.ctg__g { color: #b8b8b8; }
html.dark .ctg__g { color: #5a5a5a; }
.ctg__sup { display: inline-block; vertical-align: top; margin: .12em .08em 0 0; font-size: .3em; letter-spacing: 0; line-height: 1; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.ctg__pills { display: flex; flex-wrap: wrap; gap: .3em; margin-top: .5em; font-size: clamp(18px, 1.8vw, 32px); }
.ctg__pill { display: inline-grid; place-items: center; min-width: 1.9em; height: 1.35em; padding: 0 .35em; border: max(2px, .07em) solid currentColor; border-radius: 999px; font-style: normal; font-weight: 400; letter-spacing: -.03em; line-height: 1; }
.ctg__txt { margin: .9em 0 0; max-width: 26em; font-size: 15px; line-height: 1.3; }
/* the timetable: small type on thin rules, filling the foot of the page */
.ctg__tt { margin: auto 0 34px; display: grid; grid-template-columns: auto 1fr auto; column-gap: 14px; font-size: 10.5px; line-height: 1; }
.ctg__tt > * { padding: 4px 0 3px; border-top: 1px solid currentColor; min-height: 16px; }
.ctg__tt > :nth-last-child(-n + 3) { border-bottom: 1px solid currentColor; }
.ctg__tt--grid > a { text-decoration: none; }
.ctg__tt--grid > a:hover { color: var(--acc, #ff471a); }
.ctg__body--logo { align-items: flex-start; justify-content: flex-end; }
.ctg__body--logo .ctg__pills { margin-top: .6em; }
.ctg__logo { font-weight: 400; }
.ctg__run { font-size: clamp(28px, 3.35vw, 62px); line-height: 1.06; } .ctg__run--s { font-size: clamp(24px, 2.75vw, 50px); }
.ctg__logo { font-weight: 700; }
@media (max-width: 700px) { .ctg__flat .ctg__pg { min-height: 0; padding-bottom: 48px; } .ctg__flat .ctg__tt { margin-top: 28px; } }
/* catalogue contents: a plain index, one section per line — number, then the underlined title */
.ctg__index { list-style: none; margin: .35em 0 0; padding: 0; font-size: clamp(28px, 3.35vw, 62px); line-height: 1.08; letter-spacing: -.035em; }
.ctg__index button { display: grid; grid-template-columns: 1.4em 1fr; align-items: baseline; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.ctg__index button:hover .ctg__u { color: var(--acc, #ff471a); }
.ctg__sup--after { margin: .12em 0 0 .1em; }
.ctg__nw { white-space: nowrap; } .ctg__sup--after { text-decoration: none; }
.ctg__sup--after, .ctg__nw .ctg__sup { text-decoration: none !important; }
/* colophon logo: room for the whole glyphs (it was clipped at the top) */
.ctg__body--logo { overflow: visible; padding-top: 0; }
.ctg__logo { line-height: 1; padding-top: .08em; display: block; }
.ctg__body--logo { padding-bottom: 22px; }
/* the slanted l leans past the left edge: nudge the logo in so its foot sits on the column line */
.ctg__logo { padding-left: .12em; }

/* header logo digits keep their width while they roll */
.th__logo .dg { display: inline-block; font-variant-numeric: tabular-nums; }
/* header logo digits: never clip the glyph (same tight spacing, carried by a negative margin instead) */
.th__logo .dg { overflow: visible; letter-spacing: 0; margin-right: -.04em; }
/* experiments: the brick type sits on a dark stage too */
.xp__stage--frame, .xp__stage--frame .xp__frame { background: #121212; box-shadow: none; }
.xp__stage--frame .xp__frame { inset: 0; width: 100%; height: 100%; }
/* contents index: the numbers sit in the oval pills */
.ctg__index button { grid-template-columns: 1.6em 1fr; align-items: center; }
.ctg__pill--ix { font-size: .5em; min-width: 1.9em; height: 1.35em; justify-self: start; }
.ctg__index button { grid-template-columns: 1.75em 1fr; } .ctg__pill--ix { font-size: .72em; }
.ctg__index li + li { margin-top: .1em; }
/* index numbers: perfect circles, not pills */
.ctg__pill--ix { width: 1.4em; min-width: 0; height: 1.4em; padding: 0; border-radius: 50%; }
.ctg__index button { grid-template-columns: 1.4em 1fr; column-gap: .3em; }
/* catalogue: the first page (contents) is dark */
.ctg__pg[data-p="contents"], .ctg__flat > .ctg__pg:first-child { background: #121212; color: #ececec; padding-left: clamp(16px, 2.2vw, 34px); padding-right: clamp(16px, 2.2vw, 34px); }
.ctg__pg[data-p="contents"] .ctg__fo, .ctg__flat > .ctg__pg:first-child .ctg__fo { left: clamp(16px, 2.2vw, 34px); }
.ctg__pg[data-p="contents"] .ctg__g, .ctg__flat > .ctg__pg:first-child .ctg__g { color: #6e6e6e; }
html.dark .ctg__pg[data-p="contents"] { background: #000; }
/* catalogue: page 4 (the second Beliefs page) is dark too */
.ctg__pg[data-p="beliefsB"], .ctg__flat > .ctg__pg:nth-child(4) { background: #121212; color: #ececec; padding-left: clamp(16px, 2.2vw, 34px); padding-right: clamp(16px, 2.2vw, 34px); }
.ctg__pg[data-p="beliefsB"] .ctg__fo, .ctg__flat > .ctg__pg:nth-child(4) .ctg__fo { right: clamp(16px, 2.2vw, 34px); }
.ctg__pg[data-p="beliefsB"] .ctg__g, .ctg__flat > .ctg__pg:nth-child(4) .ctg__g { color: #6e6e6e; }
.ctg__pg[data-p="beliefsB"] .ctg__thru { opacity: .07; }
html.dark .ctg__pg[data-p="beliefsB"] { background: #000; }
/* catalogue: page 8 (the colophon) is dark too */
.ctg__pg[data-p="colophon"], .ctg__flat > .ctg__pg:nth-child(8) { background: #121212; color: #ececec; padding-left: clamp(16px, 2.2vw, 34px); padding-right: clamp(16px, 2.2vw, 34px); }
.ctg__pg[data-p="colophon"] .ctg__fo, .ctg__flat > .ctg__pg:nth-child(8) .ctg__fo { right: clamp(16px, 2.2vw, 34px); }
html.dark .ctg__pg[data-p="colophon"] { background: #000; }
/* page 4 back to light (dark pages are 1 and 8 only) */
.ctg__pg[data-p="beliefsB"], .ctg__flat > .ctg__pg:nth-child(4), html.dark .ctg__pg[data-p="beliefsB"] { background: var(--paper); color: var(--ink); padding-left: 0; padding-right: 0; }
.ctg__flat > .ctg__pg:nth-child(4) { padding-left: clamp(16px, 2.2vw, 34px); padding-right: clamp(16px, 2.2vw, 34px); }
.ctg__pg[data-p="beliefsB"] .ctg__fo { right: 0; }
.ctg__pg[data-p="beliefsB"] .ctg__g { color: #b8b8b8; }
.ctg__pg[data-p="beliefsB"] .ctg__thru { opacity: .045; }


/* =========================================================
   CATALOGUE ON PHONES: one page at a time, full screen, peeling away with the triangle fold
   ========================================================= */
@media (max-width: 700px) {
  .ctg { height: calc(7 * 150dvh + 100dvh); }
  .ctg__flat { display: block; position: sticky; top: calc(var(--dk) + var(--pad)); height: calc(100dvh - var(--dk) - 2 * var(--pad)); }
  .ctg__mpin { position: absolute; inset: 0; }
  .ctg__ms { position: absolute; left: 0; right: 0; top: 0; bottom: 54px; background: var(--paper); }
  .ctg__ms > .ctg__pg { position: absolute; inset: 0; min-height: 0; padding: 14px 16px 40px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(128, 128, 128, .22); }
  .ctg__mfl { position: absolute; left: 0; right: 0; top: 0; bottom: 54px; pointer-events: none; filter: drop-shadow(-6px -6px 14px rgba(0, 0, 0, .2)); }
  .ctg__mflc { position: absolute; inset: 0; overflow: hidden; background: #e6e6e4; clip-path: polygon(0 0, 0 0, 0 0); }
  html.dark .ctg__mflc { background: #2c2c2c; }
  .ctg__mgh { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform-origin: 0 0; opacity: .08; filter: blur(1px); }
  .ctg__mgh .ctg__pg { position: absolute; inset: 0; padding: 14px 16px 40px; background: none; }
  .ctg__flat .ctg__down { position: absolute; left: 0; bottom: 0; }
  .ctg__flat .ctg__fo { bottom: 14px; }
  .ctg__flat .ctg__pg--l .ctg__fo { left: 16px; } .ctg__flat .ctg__pg--r .ctg__fo { right: 16px; }
  .ctg__flat .ctg__run { font-size: clamp(26px, 7.4vw, 34px); }
  .ctg__flat .ctg__run--s { font-size: clamp(20px, 5.6vw, 26px); }
  .ctg__flat .ctg__index { font-size: clamp(28px, 8vw, 38px); }
  .ctg__flat .ctg__nw { white-space: normal; }
  .ctg__flat .ctg__tt { margin-bottom: 26px; }
  .ctg__flat .ctg__logo { font-size: clamp(90px, 30vw, 150px); }
}
@media (max-width: 700px) { .ctg__flat .ctg__nw { white-space: nowrap; } .ctg__flat .ctg__run--s { font-size: clamp(18px, 5.1vw, 24px); } }
/* colophon logo = the header logo, scaled: same line height, letter spacing and © (size + position) */
.ctg__logo { line-height: .85; letter-spacing: -.04em; padding-top: .1em; }
.ctg__logo sup { font-size: .42em; vertical-align: top; margin-left: .033em; letter-spacing: 0; line-height: 1; position: static; top: auto; }
/* phones: smaller pills and index circles */
@media (max-width: 700px) {
  .ctg__flat .ctg__pills { font-size: 13px; gap: 4px; margin-top: 10px; }
  .ctg__flat .ctg__pill { border-width: 1.5px; }
  .ctg__flat .ctg__pill--ix { font-size: .5em; }
  .ctg__flat .ctg__index button { grid-template-columns: 1em 1fr; column-gap: .25em; }
}
.ctg__logo sup { line-height: inherit; }
@media (max-width: 700px) { .ctg__mpin { overflow: hidden; } }
/* project pages: images reveal by sliding in whole from the left (like the showreel), not by a curtain lifting */
.pj__media .rv::after { display: none; }
.pj__media .rv { overflow: hidden; }
.pj__media .rv > * { transform: translateX(-101%); transition: transform 1.1s var(--out); }
.pj__media .rv.is-in > * { transform: none; }
@media (prefers-reduced-motion: reduce) { .pj__media .rv > * { transform: none; transition: none; } }
/* project counter: both numbers dark */
.pj__count small { color: inherit; }

/* loader, as in the list theme: page colour, the l1l2 glyphs fly in to the centre, the curtain slides up */
.loader, html.dark .loader { background: var(--bg); padding: 0; place-items: center; clip-path: none; transition: transform .7s cubic-bezier(.16, 1, .3, 1), visibility 0s .7s; }
html.intro .loader { display: grid; }
.loader.is-done { clip-path: none; transform: translateY(-100%); visibility: hidden; }
.loader__logo { height: min(34vh, 260px); width: auto; overflow: visible; }
.loader__logo path { fill: var(--fg); }
.loader__logo .g { opacity: 0; transform-box: fill-box; }
.loader.is-in .loader__logo .g { animation: gFly .6s cubic-bezier(.2, 1, .3, 1) forwards; animation-delay: calc(var(--i) * .06s); }
@keyframes gFly { from { opacity: 0; transform: translate(var(--sx, 0), var(--sy, 0)); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .loader.is-in .loader__logo .g { animation: none; opacity: 1; } }

/* self-destruct, cooler: 3·2·1 count, the shake builds up over it */
.boom-cd { position: fixed; inset: 0; z-index: 46; display: grid; place-items: center; pointer-events: none; }
.boom-cd b { font: 700 min(62vh, 70vw)/.8 var(--font); letter-spacing: -.06em; color: var(--acc, #ff471a); animation: cdIn .24s cubic-bezier(.2, 1, .3, 1) both; }
@keyframes cdIn { from { transform: scale(1.6); opacity: 0; } 30% { opacity: 1; } to { transform: scale(1); opacity: .92; } }
html.boom-shake #view, html.boom-shake #stage, html.boom-shake .th__id, html.boom-shake .th__gr:not(.th__boom) { animation: boomShake .72s linear both; }
@keyframes boomShake {
  0% { transform: none; } 10% { transform: translate(-1px, 1px); } 20% { transform: translate(2px, -1px) rotate(.2deg); }
  30% { transform: translate(-3px, 2px) rotate(-.3deg); } 40% { transform: translate(4px, -2px) rotate(.4deg); }
  50% { transform: translate(-5px, 3px) rotate(-.5deg); } 60% { transform: translate(6px, -4px) rotate(.6deg); }
  70% { transform: translate(-8px, 4px) rotate(-.8deg); } 80% { transform: translate(9px, -5px) rotate(.9deg); }
  90% { transform: translate(-11px, 6px) rotate(-1.1deg) scale(1.01); } 100% { transform: translate(0, 0) scale(1.02); }
}

/* self-destruct as a void: no grab cursor, the hole follows the pointer */
.boom { cursor: default; }
.boom:active { cursor: default; }
/* the void: the page stays (backgrounds, lines, images) — only its letters go to the canvas */
html.is-boom body:not(.on-home) #view, html.is-boom body.on-home #stage { visibility: visible; opacity: 1; }  /* only the page you are on */
html.is-boom #view *, html.is-boom #stage * { -webkit-text-fill-color: transparent; }  /* the header stays put */
html.is-boom .th { background: var(--bg); }
html.is-boom .th > *, html.is-boom .th .th__sws, html.is-boom .th .th__sws > * { visibility: visible; }
/* the void takes the lines too: their own strokes are hidden, the canvas draws them bent */
html.is-boom.boom-lines #view *, html.is-boom.boom-lines #stage * { border-color: transparent !important; }  /* only the void version bends lines */
.boom-nobg { background-color: transparent !important; }
/* the atomic version: the flash wipes the page, only the letters are left */
html.boom-wipe #view, html.boom-wipe #stage { visibility: hidden; }
/* the void lies over everything, the header included; clicks go through to the page and the switch */
.boom { z-index: 1000; pointer-events: none; }
/* the self-destruct switch is hidden on the Experiments page */
html.no-boom .th__gr.th__boom { display: none; }

/* ---------- EXPERIMENTS — Controls card (replaces Full screen) ----------
   rows on hairlines: label left, control right; switches = the header pill, sliders = a 1px line
   with a round knob (orange while held / hovered), Restart = the square knob */
.xp__ctl { display: flex; flex-direction: column; padding-bottom: 4px; }
.xp__ctl .xp__l { margin-bottom: 10px; }
.xp__row { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-height: 38px; padding: 0; margin: 0;
  font: inherit; color: var(--fg); text-align: left; background: none; border: 0; border-top: 1px solid color-mix(in srgb, var(--fg) 16%, transparent); cursor: pointer; }
.xp__row > span:first-child { white-space: nowrap; }
.xp__sw { position: relative; flex: none; width: 38px; height: 20px; border-radius: 99px; background: var(--fg); }
.xp__sw i { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); transition: transform .4s cubic-bezier(.65,0,.35,1); }
.xp__tg[aria-pressed="true"] .xp__sw i { transform: translateX(18px); }
.xp__tg[aria-pressed="false"] .xp__sw { background: color-mix(in srgb, var(--fg) 28%, transparent); }
.xp__rgw { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; max-width: 62%; justify-content: flex-end; }
.xp__row--time .xp__rgw { max-width: 74%; }
.xp__val { min-width: 3.4em; text-align: right; font-variant-numeric: tabular-nums; color: color-mix(in srgb, var(--fg) 55%, transparent); font-size: 13px; }
.xp__rg { -webkit-appearance: none; appearance: none; flex: 1 1 auto; min-width: 0; height: 22px; margin: 0; background: transparent; cursor: pointer; }
.xp__rg:focus { outline: none; }
.xp__rg::-webkit-slider-runnable-track { height: 1px; background: var(--fg); }
.xp__rg::-moz-range-track { height: 1px; background: var(--fg); }
.xp__rg::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -6.5px; border-radius: 50%; background: var(--fg); border: 0; transition: background .2s, transform .2s; }
.xp__rg::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--fg); border: 0; }
.xp__rg:active::-webkit-slider-thumb { background: var(--acc, #ff471a); transform: scale(1.15); }
.xp__rg:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc, #ff471a) 45%, transparent); }
.xp__bt { padding-right: 0; }
.xp__bt .pj__knob { margin-right: -6px; }
@media (hover: hover) {
  .xp__rg:hover::-webkit-slider-thumb { background: var(--acc, #ff471a); }
  .xp__rg:hover::-moz-range-thumb { background: var(--acc, #ff471a); }
  .xp__bt:hover .pj__knob { background: var(--acc, #ff471a); }
}
.boom-nostroke { stroke: transparent !important; }

/* Profile, Record page: the education/record table and the press table apart; press links marked ↳ */
.ctg__tts { margin: auto 0 34px; }
.ctg__tts > .ctg__tt { margin: 0; }
.ctg__tts > .ctg__tt + .ctg__cap { margin-top: 22px; }
.ctg__tt--press > a b { font-weight: inherit; margin-right: .2em; }
@media (max-width: 700px) { .ctg__flat .ctg__tts { margin-top: 28px; margin-bottom: 26px; } }
.ctg__tts > .ctg__tt { grid-template-columns: 3.6em 1fr auto; }   /* both tables on the same columns ("Press"/"Stampa" fits) */
/* small titles over the two tables on the Record page */
.ctg__cap { margin: 0 0 6px; font-size: 10.5px; line-height: 1; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
/* Record page: tables and their titles a size up */
.ctg__tts > .ctg__tt { font-size: 13px; }
.ctg__tts > .ctg__tt > * { padding: 5px 0 4px; min-height: 20px; }
.ctg__tts .ctg__cap { font-size: 13px; margin-bottom: 8px; }
/* Clients: each place small, in brackets, sitting on the baseline before the comma */
.ctg__loc { display: inline; margin-left: .25em; font-size: .3em; letter-spacing: 0; font-weight: 500; vertical-align: baseline; white-space: nowrap; }
.ctg__run--next { margin-top: .6em; }   /* Clients: the cultural group starts on its own line */
/* Profile opens with the studio line (instead of the grey "Profile") */
.ctg__lead { max-width: 12em; }   /* breaks as: An independent / multidisciplinary design / studio */
.ctg__lead + .ctg__index { margin-top: .6em; }
/* phones: the menu panel may use the whole screen height (6px top and bottom), and on shorter screens the
   cards get a little lower, so every card fits without a scroll inside the panel (that inner scroll, inside the
   sideways page swipe, made it take two touches) */
@media (max-width: 700px) {
  html.nav-head .wb.is-open, html.nav-head.dark .wb.is-open { height: min(var(--wbh, 800px), calc(100dvh - 12px)); }
}
@media (max-width: 700px) and (max-height: 780px) {
  html.menu-ui2 .wb .page { gap: 7px; }
  html.menu-ui2 .wb .page > .w--card { margin: 0; }
  html.menu-ui2 .wb .page > .w--card { min-height: 64px; height: 64px; }
  html.menu-ui2 .wb .page > .w--card .w__lbl b { font-size: 40px; }
}
@media (max-width: 700px) and (max-height: 620px) {   /* the smallest phones: lower cards, tighter gaps, a lower clock / calendar row */
  html.menu-ui2 .wb .page { gap: 6px; }
  html.menu-ui2 .wb .page > .w--card { min-height: 48px; height: 48px; }
  html.menu-ui2 .wb .page > .w--card .w__lbl b { font-size: 32px; }
  html.menu-ui2 .wb .page > .w--cal, html.menu-ui2 .wb .page > .w--clock { aspect-ratio: auto; width: auto; justify-self: stretch; height: 112px; min-height: 0; }
  /* the smaller clock: a smaller time, the hour dot a little further out, so the dots still pass around it */
  html.menu-ui2 .wb .clock .js-hm { font-size: 16px; }
  html.menu-ui2 .wb .clock .clock__txt b { font-size: 9px; }
  html.menu-ui2 .wb .clock i.clock__h::after { top: calc(-.8 * var(--rs, 80px) - 5px); }
}
/* showreel: a video cell is dark until its video plays (no poster flash) */
.tbl__band--dark { background: #121212; }
.tbl__im.is-dark { background: #121212; }
