/* Ilyas Mosbah portfolio
   Concept: a dark auditorium lit only by the artwork. Every poster throws its
   own light into the room (.glow); type follows poster vernacular: tall gothic
   titles and a billing block for credits. */

:root {
  --ink: #e7e8e6;
  --dim: rgba(231, 232, 230, .58);
  --faint: rgba(231, 232, 230, .16);
  --accent: #e7e8e6;           /* replaced live by the poster in view */
  --glow: .5;
  --bar: 64px;
  --gutter: clamp(16px, 2.6vw, 40px);
  --display: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
  --dw: 800;                   /* display weight */
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.7, 0, .2, 1);
  --out: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: #000; color: var(--ink); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 15px/1.5 var(--sans); font-optical-sizing: auto; -webkit-font-smoothing: antialiased; min-height: 100svh; overflow-x: hidden; }
body.locked { overflow: hidden; }
a { color: inherit; }
img { max-width: 100%; }
[class*="-sub"], .promo-intro, .contact-intro, .about-body, .about-role, .tile-s, .more a, .filters .fgrp { font-variation-settings: "SOFT" 40; }
h1, h2, h3, p, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }
::selection { background: var(--accent); color: #000; }

.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #000; padding: 10px 14px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- The room's light ---------- */
.glow { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.glow i { position: absolute; inset: -20%; background: center / cover no-repeat; filter: blur(80px) saturate(1.4); transform: scale(1.05); opacity: 0; transition: opacity 1.2s ease; }
.glow i.on { opacity: var(--glow); }
.glow::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 65% at 50% 45%, transparent 0, rgba(0,0,0,.5) 62%, #000 100%); }
.grain { position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

#app { position: relative; z-index: 1; outline: none; }

/* ---------- Header ---------- */
.bar { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--bar); display: flex; align-items: center; gap: 18px; padding: 0 var(--gutter); view-transition-name: bar; }
.bar::before { content: ''; position: absolute; inset: 0 0 -24px; z-index: -1; background: linear-gradient(#000 0, rgba(0,0,0,.6) 55%, transparent); pointer-events: none; }
.mark, .g-brand { font: var(--dw) 27px/1 var(--display); text-transform: uppercase; text-decoration: none; letter-spacing: .01em; white-space: nowrap; display: inline-flex; align-items: baseline; gap: .22em; }
.mark .bt, .g-brand .bt { font-weight: 200; letter-spacing: .04em; color: rgba(231,232,230,.85); }
.mark .bb-b, .g-brand .bb-b { font-weight: 900; }
.role { font-size: 13px; color: var(--dim); padding-top: 2px; }
.nav { margin-left: auto; display: flex; gap: clamp(16px, 2.4vw, 32px); }
.nav a { font-size: 14px; text-decoration: none; color: var(--dim); padding: 6px 0; transition: color .3s; position: relative; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.nav a[aria-current]::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--accent); }

/* Images fade up from their low-res placeholder */
.sp img, .tile-img img, .pj-art img, .promo-strip img, .pj-thumb img { opacity: 0; transition: opacity .25s ease; }
img.ld { opacity: 1 !important; }

/* ---------- Home: the curved screen ---------- */
.stage { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.reel-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; cursor: grab; }
.stage.dragging .reel-gl { cursor: grabbing; }
@media (hover: hover) and (pointer: fine) { .stage.is-gl .reel-gl { cursor: none; } }
.stage-focus { position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; outline: 2px solid var(--accent); outline-offset: 6px; opacity: 0; }
.stage:has(.stage-row a:focus-visible) .stage-focus { opacity: 1; }

/* Links stay in the page for keyboard and screen readers; the canvas draws them */
.stage.is-gl .stage-row { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.stage:not(.is-gl) .stage-row { position: absolute; left: 0; right: 0; top: calc(50% - 30svh - 4vh); height: 60svh; display: flex; gap: 3vw; padding: 0 calc(50vw - 22svh); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.stage:not(.is-gl) .stage-row::-webkit-scrollbar { display: none; }
.sp { position: relative; flex: none; display: block; height: 100%; aspect-ratio: var(--ar); background: center / cover; scroll-snap-align: center; box-shadow: 0 40px 90px -30px rgba(0,0,0,.95); }
.sp img { display: block; width: 100%; height: 100%; transition: opacity .7s ease, filter .8s ease; }
.stage:not(.is-gl) .sp:not(.on) img { filter: saturate(.3) brightness(.5); }

.stage-cap { position: absolute; z-index: 3; left: var(--gutter); bottom: clamp(20px, 4.5vh, 44px); max-width: min(60ch, 56vw); pointer-events: none; }
.stage-cap a { pointer-events: auto; }
.stage-count { font-size: 13px; color: var(--dim); font-variant-numeric: tabular-nums; margin-bottom: 6px; }
.stage-name { font: var(--dw) clamp(38.72px, 4.93vw, 80.96px)/.9 var(--display); text-transform: uppercase; text-wrap: balance; }
.stage-name a { text-decoration: none; }
.stage-name a:hover { color: var(--accent); }
.stage-sub { font: italic 400 19px/1.3 var(--serif); color: var(--dim); margin-top: 8px; }
.stage-ctrl { position: absolute; z-index: 3; right: var(--gutter); bottom: clamp(24px, 4.8vh, 48px); display: flex; align-items: baseline; gap: 22px; }
.stage-ctrl button { background: none; border: 0; padding: 4px 0; cursor: pointer; font-size: 14px; color: var(--dim); transition: color .3s; }
.stage-ctrl button:hover { color: var(--ink); }
.stage-all { font-size: 14px; text-decoration: none; color: var(--dim); transition: color .3s; padding-left: 22px; border-left: 1px solid var(--faint); }
.stage-all span { font-size: 12px; margin-left: 4px; }
.stage-all:hover { color: var(--ink); }
.stage-hint { position: absolute; z-index: 3; left: 50%; top: calc(var(--bar) + 2vh); transform: translateX(-50%); font-size: 13px; color: var(--dim); white-space: nowrap; transition: opacity .8s; pointer-events: none; }
.stage-hint.gone { opacity: 0; }

/* Cursor over the screen */
.cursor { position: fixed; left: 0; top: 0; z-index: 70; width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%; border: 1px solid rgba(231,232,230,.6); display: grid; place-items: center; pointer-events: none; opacity: 0; transition: opacity .3s ease; }
.cursor span { font-size: 13px; letter-spacing: .02em; transition: color .3s; }
.cursor::before { content: ''; position: absolute; inset: -1px; border-radius: 50%; background: var(--ink); transform: scale(0); transition: transform .45s var(--out); }
.cursor span { position: relative; }
.cursor.on { opacity: 1; }
.cursor.view::before { transform: scale(1); }
.cursor.view span { color: #000; }

/* ---------- Home: promotional art ---------- */
.promo { padding: 22vh var(--gutter) 8vh; position: relative; }
.sec-h { font: var(--dw) clamp(56.32px, 9.68vw, 167.2px)/.82 var(--display); text-transform: uppercase; }
.promo-intro { font: 400 clamp(20px, 1.9vw, 26px)/1.4 var(--serif); color: var(--dim); max-width: 32ch; margin: 22px 0 9vh; }
.promo-row { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 0 20px; border-top: 1px solid var(--faint); padding: 2.4vh 0 2vh; cursor: pointer; }
.promo-row:last-child { border-bottom: 1px solid var(--faint); }
.promo-name { font: var(--dw) clamp(44px, 7.57vw, 132px)/.9 var(--display); text-transform: uppercase; text-decoration: none; transition: color .4s ease, padding-left .6s var(--out); }
.promo-row:hover .promo-name { color: var(--ra); padding-left: .12em; }
.promo-count { font-size: 14px; color: var(--dim); white-space: nowrap; }
.promo-strip { grid-column: 1 / -1; display: flex; gap: 10px; overflow-x: auto; padding: 16px 0 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.promo-strip::-webkit-scrollbar { display: none; }
.promo-strip a { flex: none; height: 190px; width: calc(190px * var(--ar)); scroll-snap-align: start; background: center / cover; }
.promo-strip img { display: block; width: 100%; height: 100%; }
@media (hover: hover) and (pointer: fine) { .promo-strip { display: none; } }

.peek { position: fixed; left: 0; top: 0; z-index: 40; width: clamp(200px, 17vw, 280px); pointer-events: none; opacity: 0; transition: opacity .35s ease; }
.peek img { display: block; width: 100%; height: auto; box-shadow: 0 30px 70px -20px rgba(0,0,0,.9); }
.peek.on { opacity: 1; }

.more { padding: 8vh var(--gutter) 0; }
.more a { font: italic 400 clamp(24px, 2.4vw, 34px)/1.2 var(--serif); text-underline-offset: .2em; text-decoration-thickness: 1px; }
.more a:hover { color: var(--accent); }

/* ---------- Billing block footer ---------- */
.billing { padding: 20vh var(--gutter) 28px; text-align: center; position: relative; }
.billing.is-plain { padding-top: 16vh; }
.billing.is-plain .foot { margin-top: 0; }
.bb { font: 500 clamp(19.36px, 2.42vw, 40.48px)/.98 var(--display); text-transform: uppercase; max-width: 1180px; margin: 0 auto; text-wrap: balance; color: rgba(231,232,230,.82); }
.bb .s { font-size: .4em; letter-spacing: .08em; color: var(--dim); vertical-align: .6em; margin: 0 .3em; }
.bb .b { white-space: nowrap; margin: 0 .1em; text-decoration: none; transition: color .3s; }
.bb a.b:hover { color: var(--accent, var(--ink)); }
.bb .nm { font-weight: 900; font-size: 2.2em; display: inline-block; line-height: .9; color: var(--ink); margin: .05em 0 .1em; }
.foot { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; margin-top: 14vh; font-size: 13px; color: var(--dim); text-align: left; }
.foot nav { display: flex; gap: 24px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* ---------- Index ---------- */
.index { padding: calc(var(--bar) + 9vh) var(--gutter) 0; }
.index-h { font: var(--dw) clamp(70.4px, 11.44vw, 202.4px)/.8 var(--display); text-transform: uppercase; }
.filterset { margin: 30px 0 10vh; }
.filters, .subfilters { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 26px; }
.filters a { font-size: 18px; }
.subfilters { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--faint); }
.subfilters.enter { animation: subIn .6s var(--out) both; }
.subfilters.enter a { animation: subIn .6s var(--out) both; }
.subfilters.enter a:nth-child(2) { animation-delay: 60ms; } .subfilters.enter a:nth-child(3) { animation-delay: 120ms; } .subfilters.enter a:nth-child(4) { animation-delay: 180ms; }
@keyframes subIn { from { opacity: 0; transform: translateY(-8px); } }
.filters a, .subfilters a { font-size: 15px; color: var(--dim); text-decoration: none; padding: 4px 0; border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; }
.filters a span, .subfilters a span { font-size: 12px; margin-left: 2px; font-variant-numeric: tabular-nums; }
.filters a:hover, .subfilters a:hover { color: var(--ink); }
.filters a[aria-current], .subfilters a[aria-current] { color: var(--ink); border-color: var(--ink); }
.filters a { font-size: 18px; }
.filters .fgrp { font: italic 400 17px var(--serif); color: var(--dim); margin-left: 12px; }
.super-h { font: var(--dw) clamp(56.32px, 7.92vw, 140.8px)/.82 var(--display); text-transform: uppercase; margin: 4vh 0 7vh; display: flex; align-items: flex-start; gap: .1em; }
.super-h sup { font: 500 13px var(--sans); color: var(--dim); margin-top: .5em; }
.group { margin-bottom: 13vh; }
.group-h { font: var(--dw) clamp(35.2px, 4.05vw, 70.4px)/.9 var(--display); text-transform: uppercase; margin-bottom: 3.5vh; display: flex; align-items: flex-start; gap: .14em; }
.group-h sup { font: 500 13px var(--sans); color: var(--dim); margin-top: .5em; }
h2.group-h { font-size: clamp(64px, 9vw, 160px); line-height: .82; margin-bottom: 7vh; }

.wall { --cols: 4; --gx: clamp(14px, 1.6vw, 26px); container-type: inline-size; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px) var(--gx); align-items: start; }
/* every poster shares one 3:4 frame so rows and captions line up; the project page shows it uncropped */
.wall .tile-img { aspect-ratio: auto; height: calc((100cqw - (var(--cols) - 1) * var(--gx)) / var(--cols) * 4 / 3); }
.wall .tile-img img { object-fit: cover; object-position: center 35%; }
.tile { display: block; min-width: 0; text-decoration: none; transition: opacity .5s ease; }
.tile.is-wide { grid-column: span 2; }
@media (max-width: 1100px) { .wall { --cols: 3; } }
@media (max-width: 700px) { .wall { --cols: 2; } }
.tile-img { display: block; aspect-ratio: var(--w) / var(--h); background: center / cover; overflow: hidden;
  clip-path: inset(100% 0 0 0); transition: clip-path .7s var(--ease) var(--d, 0ms); }
.tile.in .tile-img { clip-path: inset(0 0 0 0); }
.tile-img img { display: block; width: 100%; height: 100%; transition: opacity .25s ease, transform 1s var(--out), filter .3s; }
.tile:hover .tile-img img { transform: scale(1.03); }
.tile-cap { display: block; padding-top: 12px; min-height: 52px; }
.tile-t { display: block; font-size: 14px; font-weight: 500; line-height: 1.3; transition: color .3s; }
.tile-s { display: block; font: italic 400 16px/1.3 var(--serif); color: var(--dim); }
@media (hover: hover) {
  .tile .tile-img { transition: clip-path .7s var(--ease) var(--d, 0ms), transform .45s var(--out), box-shadow .45s var(--out); }
  .tile:hover .tile-img { transform: translateY(-6px); box-shadow: 0 24px 50px -18px rgba(0,0,0,.9); }
  .tile:hover .tile-t { color: #fff; }
  .tile:hover .tile-img img { filter: brightness(1.06); }
}

/* ---------- Project ---------- */
.project { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: clamp(28px, 4.5vw, 80px); align-items: center; padding: calc(var(--bar) + 12px) var(--gutter) 28px; }
.pj-stage { display: flex; justify-content: center; align-items: center; min-height: calc(100svh - var(--bar) - 40px); }
.pj-art { position: relative; display: block; padding: 0; border: 0; cursor: zoom-in; background: center / cover;
  width: min(100%, calc((100svh - var(--bar) - 48px) * var(--ar))); aspect-ratio: var(--w) / var(--h);
  box-shadow: 0 50px 120px -40px rgba(0,0,0,.95); }
.pj-art img { display: block; width: 100%; height: 100%; }
.loupe { position: absolute; left: 0; top: 0; width: 230px; height: 230px; border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .25s ease; background-repeat: no-repeat; box-shadow: 0 0 0 1px rgba(255,255,255,.45), 0 24px 60px rgba(0,0,0,.7); z-index: 2; }
.pj-art.lens.can-loupe .loupe { opacity: 1; }
.pj-art.lens.can-loupe { cursor: none; }

.pj-info { align-self: end; padding-bottom: 2vh; }
.pj-count { font-size: 13px; color: var(--dim); }
.pj-count a { color: var(--ink); text-underline-offset: 3px; }
.pj-title { font: var(--dw) clamp(45.76px, 5.28vw, 102.08px)/.86 var(--display); text-transform: uppercase; margin: 14px 0 10px; text-wrap: balance; color: var(--ink); }
.pj-sub { font: italic 400 clamp(20px, 1.8vw, 25px)/1.3 var(--serif); color: var(--dim); }
.pj-meta { margin-top: 5vh; display: grid; gap: 14px; }
.pj-meta div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; border-top: 1px solid var(--faint); padding-top: 12px; }
.pj-meta dt { font-size: 13px; color: var(--dim); }
.pj-meta dd { font-size: 14px; }
.pj-hint { font-size: 13px; color: var(--dim); margin-top: 3vh; }
.pj-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 6vh; }
.pj-nav a { display: flex; gap: 12px; align-items: center; text-decoration: none; min-width: 0; }
.pj-nav .pj-next { flex-direction: row-reverse; text-align: right; }
.pj-thumb { flex: none; height: 64px; width: calc(64px * var(--ar)); background: center / cover; overflow: hidden; }
.pj-thumb img { display: block; width: 100%; height: 100%; }
.pj-nav small { display: block; font-size: 12px; color: var(--dim); }
.pj-nav b { display: block; font: var(--dw) 21px/.95 var(--display); text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; }
.pj-nav a:hover b { color: var(--accent); }
.pj-close { position: fixed; z-index: 55; top: calc(var(--bar) + 6px); right: var(--gutter); font-size: 14px; text-decoration: none; padding: 8px 14px; border: 1px solid var(--faint); border-radius: 999px; background: rgba(0,0,0,.4); backdrop-filter: blur(10px); transition: border-color .3s; }
.pj-close:hover { border-color: var(--ink); }

.project.is-wide { grid-template-columns: 1fr; align-items: start; }
.project.is-wide .pj-stage { min-height: 0; padding-top: 4vh; }
.project.is-wide .pj-art { width: min(100%, calc(78svh * var(--ar))); }
.project.is-wide .pj-info { display: grid; grid-template-columns: 1fr 1fr; gap: 0 6vw; max-width: 1200px; width: 100%; margin: 0 auto; }
.project.is-wide .pj-meta { margin-top: 0; }

/* Full-size viewer */
.viewer { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.96); overflow: auto; display: flex; overscroll-behavior: contain; }
.viewer img { margin: auto; display: block; }
.viewer img.fit { max-width: 100vw; max-height: 100svh; width: auto; height: auto; cursor: zoom-in; }
.viewer img.actual { max-width: none; max-height: none; cursor: zoom-out; }
.v-close { position: fixed; top: 16px; right: 16px; z-index: 2; padding: 9px 16px; border: 1px solid var(--faint); border-radius: 999px; background: rgba(0,0,0,.6); cursor: pointer; font-size: 14px; }

/* ---------- About & contact ---------- */
.about { padding: calc(var(--bar) + 12vh) var(--gutter) 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--gutter); }
.about-h { grid-column: 1 / -1; font: var(--dw) clamp(73.92px, 13.2vw, 237.6px)/.8 var(--display); text-transform: uppercase; }
.about-role { grid-column: 1 / -1; font: italic 400 clamp(22px, 2vw, 28px) var(--serif); color: var(--dim); margin: 18px 0 12vh; }
.about-body { grid-column: 5 / span 7; font: 400 clamp(22px, 2.05vw, 31px)/1.42 var(--serif); }
.about-body p { max-width: 34em; }
.about-body p + p { margin-top: .9em; }
.about-tools { grid-column: 5 / span 7; margin-top: 8vh; display: grid; grid-template-columns: 110px 1fr; gap: 12px; border-top: 1px solid var(--faint); padding-top: 14px; }
.about-tools h2 { font: 400 13px var(--sans); color: var(--dim); }
.about-tools p { font-size: 15px; }

.contact { padding: 22vh var(--gutter) 0; }
.contact-page { padding-top: calc(var(--bar) + 12vh); }
.about-next { grid-column: 5 / span 7; margin-top: 8vh; }
.about-next a { font: italic 400 clamp(24px, 2.4vw, 34px)/1.2 var(--serif); text-underline-offset: .2em; text-decoration-thickness: 1px; }
.about-next a:hover { color: var(--accent); }
.contact-h { font: var(--dw) clamp(56.32px, 9.68vw, 167.2px)/.82 var(--display); text-transform: uppercase; }
.contact-intro { font: 400 clamp(20px, 1.9vw, 26px)/1.4 var(--serif); color: var(--dim); max-width: 32ch; margin: 22px 0 8vh; }
.contact-links li { border-top: 1px solid var(--faint); }
.contact-links li:last-child { border-bottom: 1px solid var(--faint); }
.contact-links a { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 20px; padding: 2.4vh 0 2vh; text-decoration: none; }
.cl-big { font: var(--dw) clamp(47.52px, 7.92vw, 132px)/.9 var(--display); text-transform: uppercase; transition: color .4s, padding-left .6s var(--out); }
.cl-small { font-size: 14px; color: var(--dim); }
.contact-links a:hover .cl-big { color: var(--accent); padding-left: .12em; }

@media (max-width: 420px) { .mark, .g-brand { font-size: 22px; } .nav { gap: 14px; } .nav a { font-size: 13px; } .bar { gap: 10px; } }

/* No-JS gallery */
.ns { padding: 100px 24px; } .ns h2 { font: var(--dw) 48px var(--display); text-transform: uppercase; margin: 40px 0 16px; }
.ns-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; } .ns-grid img { width: 100%; height: auto; display: block; } .ns-grid p { font-size: 13px; margin-top: 6px; }

/* ---------- View transitions ---------- */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: ease; }
::view-transition-group(poster) { animation-duration: .7s; animation-timing-function: var(--ease); }
::view-transition-old(poster), ::view-transition-new(poster) { height: 100%; object-fit: cover; }
::view-transition-group(bar) { animation: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .role { display: none; }
  .project, .project.is-wide { grid-template-columns: 1fr; padding-top: calc(var(--bar) + 56px); }
  .pj-stage { min-height: 0; }
  .pj-art, .project.is-wide .pj-art { width: 100%; }
  .project.is-wide .pj-info { grid-template-columns: 1fr; }
  .project.is-wide .pj-meta { margin-top: 5vh; }
  .about-body, .about-tools, .about-next { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  :root { --bar: 56px; }
  .mark { font-size: 24px; }
  .nav { gap: 18px; }
  .stage-cap { max-width: none; right: var(--gutter); bottom: 64px; }
  .stage-name { font-size: 44px; white-space: normal; }
  .stage-sub { font-size: 16px; }
  .stage-ctrl { left: var(--gutter); right: var(--gutter); bottom: 22px; justify-content: flex-start; }
  .stage-all { margin-left: auto; }
  .wall { --gx: 10px; gap: 22px 10px; }
  .tile-cap { min-height: 0; padding-top: 8px; }
  .tile-t { font-size: 13px; } .tile-s { font-size: 14px; }
  .pj-nav { grid-template-columns: 1fr; }
  .pj-nav .pj-next { flex-direction: row; text-align: left; }
  .foot { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .tile-img { clip-path: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ---------- Gate: type "design" to enter ---------- */
body.gated { overflow: hidden; }
body.gated .bar { opacity: 0; }
.gate { position: fixed; inset: 0; z-index: 200; cursor: text; color: var(--ink); background: rgba(0,0,0,.35);
  transition: transform 1.15s cubic-bezier(.76, 0, .24, 1), opacity .5s ease .7s; }
.gate.lift { transform: translateY(-100%); }
.g-top { position: absolute; left: var(--gutter); right: var(--gutter); top: 0; height: var(--bar); display: flex; align-items: center; gap: 18px; }
.g-brand { white-space: nowrap; }
.g-billing { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(20px, 4vh, 40px); text-align: center; font: var(--dw) clamp(13.2px, 1.14vw, 17.6px)/1.2 var(--display); text-transform: uppercase; letter-spacing: .02em; color: rgba(231,232,230,.38); transition: opacity .4s; }
.g-billing { font-weight: 500; }
.g-billing .s { font: 400 13px/1 var(--sans); letter-spacing: .02em; text-transform: none; vertical-align: .3em; margin: 0 .5em 0 0; color: rgba(231,232,230,.4); }
.g-billing .g-brand { font-size: clamp(20px, 1.8vw, 26px); color: rgba(231,232,230,.8); }
.gate.ok .g-billing { opacity: 0; }
.g-role { font-size: 13px; color: var(--dim); padding-top: 2px; }
.g-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-bottom: 4vh; }
.g-word { display: flex; font: 900 clamp(105.6px, 18.48vw, 299.2px)/.82 var(--display); text-transform: uppercase; letter-spacing: -.005em; transition: transform .6s var(--out); }
.g-l { position: relative; display: block; }
.g-l i { font-style: normal; color: rgba(231,232,230,.07); }
.g-l canvas { position: absolute; left: 0; top: 0; pointer-events: none; clip-path: inset(100% 0 0 0); transition: clip-path .5s cubic-bezier(.7, 0, .2, 1); }
.g-l.on canvas { clip-path: inset(0 0 0 0); }
.g-l.on.drawn i { color: transparent; transition: color .2s ease .3s; }
.g-l.on:not(.drawn) i { color: var(--ink); }
.gate.err .g-word { animation: gErr .4s ease; }
@keyframes gErr { 20% { transform: translateX(-12px); } 40% { transform: translateX(10px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(3px); } }
.g-prompt { margin-top: 5vh; font-size: 14px; color: var(--dim); cursor: text; transition: opacity .4s; }
.gate.typing .g-prompt { opacity: .5; }
.gate.ok .g-prompt { opacity: 0; }
.gate.ok .g-word { transform: scale(1.04); }
.g-in { position: absolute; left: 50%; top: 50%; width: 1px; height: 1px; opacity: 0; border: 0; padding: 0; font-size: 16px; }
@media (max-width: 700px) { .g-role { display: none; } .g-brand { font-size: 24px; } .g-billing { font-size: 13px; } }

/* Entering the site after the gate */
body.entering #app { animation: appIn 1.4s cubic-bezier(.25, .8, .25, 1) both; }
@keyframes appIn { 0% { transform: translateY(6vh); opacity: 0; } 100% { transform: none; opacity: 1; } }
body.entering .bar > * { animation: barIn .9s var(--out) .5s both; }
body.entering .bar > :nth-child(2) { animation-delay: .55s; }
body.entering .bar > :nth-child(3) { animation-delay: .6s; }
@keyframes barIn { from { opacity: 0; transform: translateY(-120%); } }
body.entering .stage-cap, body.entering .stage-ctrl, body.entering .stage-hint { animation: capIn 1s var(--out) .8s both; }
@keyframes capIn { from { opacity: 0; transform: translateY(40px); } }

/* Letter-by-letter headings and cascading rows */
.split .tw { display: inline; }
.split .w { display: inline-block; white-space: nowrap; }
.split .ch { display: inline-block; opacity: 0; transform: translateY(60%) rotate(8deg);
  transition: transform .9s var(--out), opacity .6s ease; transition-delay: calc(var(--ci) * 24ms); }
.split.in .ch { opacity: 1; transform: none; }
.rv { opacity: 0; transform: translateY(34px); transition: opacity .8s ease, transform 1s var(--out); transition-delay: calc(var(--ri) * 70ms); }
.rv.in { opacity: 1; transform: none; }
.bb .rv-b { display: inline-block; transform: translateY(.6em); transition-delay: calc(var(--ri) * 22ms); }
.bb .rv-b.in { transform: none; }
.promo-row.rv { transform: translateX(-60px); }
.promo-row.rv.in { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .g-caret { animation: none !important; }
  .split .ch, .rv { opacity: 1 !important; transform: none !important; filter: none !important; }
}


/* =========================================================
   CLEAN VERSION (default): white gallery with a sidebar
   ========================================================= */
html.simple { background: #fff; }
body.mode-simple { --ink: #121212; --dim: rgba(18,18,18,.55); --faint: rgba(18,18,18,.12); --accent: #121212; background: #fff; color: var(--ink); }
body.mode-simple .bar, body.mode-simple .glow, body.mode-simple .grain { display: none; }
body.mode-simple ::selection { background: #121212; color: #fff; }

.s-wrap { min-height: 100vh; }
.s-top { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 20px 32px; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--faint); }
.s-id { justify-self: start; display: flex; align-items: baseline; gap: 14px; min-width: 0; }
.s-role { font-size: 12px; color: rgba(18,18,18,.45); white-space: nowrap; }
.s-brand { font: 400 22px/1 var(--display); text-transform: uppercase; text-decoration: none; display: inline-flex; flex-wrap: wrap; row-gap: 2px; align-items: baseline; gap: .2em; color: var(--ink); }
.s-brand .bt { font-weight: 200; letter-spacing: .04em; }
.s-brand .bb-b { font-weight: 900; }
.s-filters { display: flex; gap: 6px; background: #f1f1ef; border-radius: 999px; padding: 4px; }
.s-filters a { font-size: 13px; text-decoration: none; color: var(--dim); padding: 7px 14px; border-radius: 999px; transition: background-color .25s, color .25s; white-space: nowrap; }
.s-filters a sup { font-size: 10px; margin-left: 3px; opacity: .7; }
.s-filters a:hover { color: var(--ink); }
.s-filters a[aria-current] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.s-right { justify-self: end; display: flex; align-items: center; gap: 22px; }
.s-view { display: flex; justify-content: center; gap: 14px; font-size: 13px; margin: -6px 0 22px; }
.s-view button { background: none; border: 0; padding: 4px 6px; cursor: pointer; color: var(--dim); font: inherit; border-bottom: 1px solid transparent; }
.s-view button[aria-pressed] { color: var(--ink); border-color: var(--ink); }
.s-pages { display: flex; gap: 18px; }
.s-pages a { font-size: 13px; text-decoration: none; color: var(--ink); border-bottom: 1px solid transparent; padding: 4px 0; }
.s-pages a[aria-current] { border-color: var(--ink); }
.s-pages a:hover { color: var(--dim); }
.s-social { display: flex; gap: 12px; }
.s-social a { color: var(--ink); display: grid; place-items: center; width: 20px; height: 20px; transition: opacity .2s; }
.s-social a:hover { opacity: .55; }
.s-social svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
kbd { display: inline-block; min-width: 1.6em; padding: 1px 5px; border: 1px solid currentColor; border-radius: 4px; font: 600 .92em/1.3 var(--sans); text-align: center; margin: 0 2px; }

/* Index view: list on the right, the poster you point at on the left */
.s-index { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.s-preview { position: sticky; top: 92px; height: calc(100vh - 124px); display: flex; flex-direction: column; }
.p-frame { position: relative; flex: 1; min-height: 0; }
.p-img { position: absolute; inset: 0; margin: auto; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; opacity: 0; transform: scale(.985); transition: opacity .35s ease, transform .5s var(--out); box-shadow: 0 30px 60px -30px rgba(0,0,0,.45); }
.p-img.in { opacity: 1; transform: none; }
.p-img.out { opacity: 0; }
.p-cap { padding-top: 14px; font-size: 13px; color: var(--dim); text-align: center; min-height: 32px; }
.p-cap b { color: var(--ink); font-weight: 500; margin-right: 6px; }
.s-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--faint); }
.s-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: baseline; gap: 16px; padding: 16px 4px; border-bottom: 1px solid var(--faint); text-decoration: none; color: var(--ink); transition: background-color .25s, padding-left .35s var(--out); }
.r-n { font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; }
.r-thumb { display: none; }
.r-t b { display: block; font: 800 clamp(24px, 2.2vw, 36px)/.95 var(--display); text-transform: uppercase; letter-spacing: .005em; }
.r-t i { display: block; font: italic 400 15px/1.3 var(--serif); color: var(--dim); margin-top: 4px; }
.r-c { font-size: 12px; color: var(--dim); white-space: nowrap; }
.s-row.on { background: #f4f4f2; padding-left: 14px; }
.s-row:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }

.s-main { padding: 32px 32px 120px; min-width: 0; }
.s-grid { --gx: 14px; display: flex; gap: var(--gx); align-items: flex-start; }
.s-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--gx); }
.s-tile { position: relative; display: block; overflow: hidden; background: #eee center / cover; aspect-ratio: var(--w) / var(--h); }
.s-tile img { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity .25s ease, transform .8s var(--out); }
.s-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 12px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.72)); opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .4s var(--out); pointer-events: none; }
.s-cap b { display: block; font: 800 20px/1 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.s-cap span { display: block; font: italic 400 14px/1.3 var(--serif); opacity: .85; margin-top: 4px; }
@media (hover: hover) { .s-tile:hover img { transform: scale(1.03); } .s-tile:hover .s-cap { opacity: 1; transform: none; } }
.s-tile:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.s-end { height: 1px; }

.s-project { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.s-project.is-wide { grid-template-columns: 1fr; }
.sd-art { display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; background: #eee center / cover; aspect-ratio: var(--ar); max-height: calc(100vh - 140px); max-width: calc((100vh - 140px) * var(--ar)); }
.sd-art img { display: block; width: 100%; height: 100%; object-fit: contain; }
.sd-info { position: sticky; top: 100px; padding-top: 4px; }
.sd-xp { margin-top: 40px; } .sd-xp button { background: none; border: 0; padding: 0; font-size: 12px; color: var(--dim); cursor: pointer; } .sd-xp button:hover { color: var(--ink); }
.sd-cat { font-size: 13px; color: var(--dim); display: flex; gap: 14px; }
.sd-cat a { color: var(--ink); }
.sd-title { font: 800 clamp(44px, 4.4vw, 76px)/.9 var(--display); text-transform: uppercase; margin: 18px 0 10px; text-wrap: balance; }
.sd-sub { font: italic 400 20px/1.3 var(--serif); color: var(--dim); }
.sd-meta { margin-top: 36px; display: grid; gap: 10px; }
.sd-meta div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; border-top: 1px solid var(--faint); padding-top: 10px; }
.sd-meta dt { font-size: 13px; color: var(--dim); } .sd-meta dd { font-size: 14px; }
.sd-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px; }
.sd-nav a { text-decoration: none; font: 800 18px/1 var(--display); text-transform: uppercase; }
.sd-nav a:last-child { text-align: right; }
.sd-nav small { display: block; font: 400 12px var(--sans); text-transform: none; color: var(--dim); margin-bottom: 6px; }
.sd-nav a:hover { opacity: .6; }
.sd-back { display: inline-block; margin-top: 34px; font-size: 13px; color: var(--ink); }

.s-contact { max-width: none; padding-top: 8px; }
.s-contact .s-lead { max-width: none; }
.s-contact h1 + .s-lead { margin-top: 36px; }
.s-contact h1 { font: 800 clamp(64px, 8vw, 128px)/.85 var(--display); text-transform: uppercase; }
.s-lead { font: 400 clamp(20px, 1.8vw, 26px)/1.45 var(--serif); margin-top: 30px; max-width: 34em; }
.s-ask { font-size: 14px; color: var(--dim); margin-top: 40px; }
.s-about { max-width: none; }
.s-about .s-lead { max-width: none; }
.s-about h1 + .s-lead { margin-top: 36px; }
.s-about .s-lead + .s-lead { margin-top: 18px; }
.s-about .s-list { margin-top: 44px; }
.s-tools { font-size: 16px; }
.s-about .s-ask a { font: italic 400 22px/1.2 var(--serif); color: var(--ink); text-underline-offset: .2em; }
.s-list { margin-top: 14px; }
.s-list li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--faint); }
.s-list li:last-child { border-bottom: 1px solid var(--faint); }
.s-list span { font-size: 13px; color: var(--dim); }
.s-list a { font: 800 clamp(24px, 2.6vw, 36px)/1.1 var(--display); text-transform: uppercase; text-decoration: none; word-break: break-word; }
.s-list a:hover { opacity: .6; }

/* the notification */
.s-toast { position: fixed; right: 28px; bottom: 28px; z-index: 60; display: flex; align-items: center; gap: 8px; padding: 13px 18px; border: 0; border-radius: 999px; background: #121212; color: #fff; font: 500 14px/1 var(--sans); cursor: pointer; box-shadow: 0 18px 40px -12px rgba(0,0,0,.45);
  transform: translateY(140%); opacity: 0; transition: transform .6s var(--out), opacity .4s; }
.s-toast.on { transform: none; opacity: 1; }
.s-toast.gone { transform: translateY(140%); opacity: 0; }
.s-toast kbd { border-color: rgba(255,255,255,.6); }
.t-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff4d3d; box-shadow: 0 0 0 0 rgba(255,77,61,.6); animation: ping 1.8s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255,77,61,.6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(255,77,61,0); } }

@media (max-width: 900px) {
  .s-top { grid-template-columns: 1fr auto; padding: 14px 18px; gap: 12px 16px; }
  .s-filters { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
  .s-social, .s-role { display: none; }
  .s-view { justify-content: flex-start; margin: 0 0 14px; }
  .s-main { padding: 14px 18px 100px; }
  .s-index { grid-template-columns: 1fr; }
  .s-preview { display: none; }
  .s-row { grid-template-columns: 56px minmax(0, 1fr); gap: 4px 14px; padding: 12px 0; align-items: center; }
  .r-n, .r-c { display: none; }
  .r-thumb { display: block; grid-row: span 1; width: 56px; aspect-ratio: 3 / 4; background: center / cover; overflow: hidden; }
  .r-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .s-row.on { background: none; padding-left: 0; }
  .s-project { grid-template-columns: 1fr; }
  .sd-info { position: static; }
  .s-toast { left: 18px; right: 18px; bottom: 18px; justify-content: center; }
}
@media (max-width: 600px) { .s-grid { --gx: 8px; } }

/* =========================================================
   THE SHIFT: the clean site breaks apart into the experience
   ========================================================= */
html.to-xp, html.to-xp body { background: #000 !important; transition: background-color .9s ease .15s; }
html.to-xp .s-top > * { animation: sideOut .7s cubic-bezier(.7, 0, .3, 1) both; }
html.to-xp .s-top { background: transparent; border-color: transparent; transition: background-color .3s, border-color .3s; }
html.to-xp .s-top > :nth-child(2) { animation-delay: .06s; } html.to-xp .s-top > :nth-child(3) { animation-delay: .12s; }
@keyframes sideOut { to { transform: translateY(-160%); opacity: 0; } }
html.to-xp:not(.xp-fall) .s-tile, html.to-xp:not(.xp-fall) .s-row, html.to-xp:not(.xp-fall) .s-preview { animation: jitter .26s steps(4) both; }
@keyframes jitter { 25% { transform: translate(6px, -3px); } 50% { transform: translate(-7px, 4px) skewX(4deg); } 75% { transform: translate(4px, 2px); } }
html.xp-fall .s-tile, html.xp-fall .s-row, html.xp-fall .s-preview { animation: tumble 1.1s cubic-bezier(.55, 0, .85, .35) var(--d, 0ms) both; }
@keyframes tumble { 0% { transform: none; } 18% { transform: translateY(-4%) rotate(calc(var(--rot) * -.1)); } 100% { transform: translate3d(var(--tx), 125vh, 0) rotate(var(--rot)); } }
html.to-xp .sd-art, html.to-xp .sd-info, html.to-xp .s-contact { animation: tumble 1.1s cubic-bezier(.55, 0, .85, .35) .26s both; --tx: 0vw; --rot: 6deg; }

.xp { position: fixed; inset: 0; z-index: 260; pointer-events: none; }
.xp-flash { position: absolute; inset: 0; background: #fff; mix-blend-mode: difference; opacity: 0; }
.xp.flash .xp-flash { animation: flick .45s steps(1) both; }
@keyframes flick { 0% { opacity: 1; } 14% { opacity: 0; } 28% { opacity: 1; } 42% { opacity: 0; } 60% { opacity: 1; } 72%, 100% { opacity: 0; } }
.xp-bars { position: absolute; inset: 0; display: grid; grid-template-rows: repeat(10, 1fr); }
.xp-bars i { background: #000; transform: scaleX(0); transform-origin: calc(100% * (var(--k) - 2 * round(down, var(--k) / 2, 1))) 50%; }
.xp-bars i:nth-child(odd) { transform-origin: 0 50%; } .xp-bars i:nth-child(even) { transform-origin: 100% 50%; }
.xp.bars .xp-bars i { animation: barIn .42s cubic-bezier(.7, 0, .2, 1) calc(var(--k) * 30ms) both; }
@keyframes barIn { to { transform: scaleX(1); } }
.xp.out .xp-bars i { transform: scaleX(1); animation: barOut .5s cubic-bezier(.7, 0, .2, 1) calc(var(--k) * 30ms) both; }
.xp.out .xp-bars i:nth-child(odd) { transform-origin: 100% 50%; } .xp.out .xp-bars i:nth-child(even) { transform-origin: 0 50%; }
@keyframes barOut { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.xp-title { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; font: 900 clamp(40px, 7.2vw, 124px)/.9 var(--display); text-transform: uppercase; color: #fff; white-space: nowrap; overflow: hidden; }
.xp-title span { display: inline-block; opacity: 0; transform: translateY(70%); }
.xp.title .xp-title span { animation: tIn .5s var(--out) calc(var(--k) * 22ms) both; }
@keyframes tIn { to { opacity: 1; transform: none; } }
.xp.out .xp-title span { animation: tOut .35s ease calc(var(--k) * 12ms) both; }
@keyframes tOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-60%); } }
@media (prefers-reduced-motion: reduce) { .xp-flash, .t-dot { animation: none !important; } }
@media (max-width: 600px) { .s-list li { grid-template-columns: 1fr; gap: 4px; } .s-list a { font-size: 24px; word-break: normal; overflow-wrap: anywhere; } }

/* Clients & collaborations (clean version, About page) */
.s-clients { margin-top: 64px; }
.s-clients h2 { font: 400 13px var(--sans); color: var(--dim); margin-bottom: 14px; }
.c-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--faint); border-left: 1px solid var(--faint); }
.c-cell { position: relative; height: 160px; border-right: 1px solid var(--faint); border-bottom: 1px solid var(--faint); display: grid; place-items: center; }
.c-cell img { display: block; width: auto; max-width: 72%; object-fit: contain; transition: transform .45s var(--out), opacity .3s; }
.c-cell img.is-svg { filter: brightness(0); }
.c-btn { all: unset; box-sizing: border-box; position: relative; width: 100%; height: 100%; display: grid; place-items: center; cursor: default; }
@media (hover: none) { .c-btn { cursor: pointer; } }
.c-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }
.has-info::after { content: ''; position: absolute; top: 12px; right: 12px; width: 5px; height: 5px; border-radius: 50%; background: rgba(18,18,18,.28); transition: opacity .3s; pointer-events: none; }
.c-info { position: absolute; left: 10px; right: 10px; bottom: 16px; text-align: center; font: 500 13px/1.35 var(--sans); color: var(--ink); opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .45s var(--out); pointer-events: none; }
.c-info small { display: block; font: italic 400 13px/1.2 var(--serif); color: var(--dim); margin-bottom: 3px; }
.has-info:hover img, .has-info:has(.c-btn:focus-visible) img, .has-info.open img { transform: translateY(-28px) scale(.92); }
.has-info:hover .c-info, .has-info:has(.c-btn:focus-visible) .c-info, .has-info.open .c-info { opacity: 1; transform: none; }
.has-info:hover::after, .has-info:has(.c-btn:focus-visible)::after, .has-info.open::after { opacity: 0; }
@media (max-width: 800px) { .c-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .c-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .c-cell { height: 130px; } .c-info { font-size: 12px; bottom: 12px; } }

/* Experience (dark): logos in white */
body:not(.mode-simple) .c-cell img { filter: invert(1); }
.about .s-clients { grid-column: 5 / span 7; margin-top: 10vh; }
.about .s-clients h2 { color: var(--dim); }
@media (max-width: 900px) { .about .s-clients { grid-column: 1 / -1; } }

/* Experience home: looping logo strip */
.mq { position: relative; overflow: hidden; border-top: 1px solid var(--faint); border-bottom: 1px solid var(--faint);
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mq-track { display: flex; width: max-content; animation: mq 55s linear infinite; }
.mq:hover .mq-track, .mq:has(.c-btn:focus-visible) .mq-track, .mq:has(.open) .mq-track { animation-play-state: paused; }
@keyframes mq { from { transform: translateX(-50%); } to { transform: none; } }
.mq-list { display: flex; list-style: none; margin: 0; padding: 0; }
.mq .c-cell { flex: none; width: clamp(170px, 15vw, 230px); height: 160px; border: 0; }
body:not(.mode-simple) .mq .c-cell img { max-width: 70%; filter: invert(1) brightness(.36); transition: filter .35s ease, transform .45s var(--out); }
body:not(.mode-simple) .mq .c-cell:hover img, body:not(.mode-simple) .mq .c-cell:has(.c-btn:focus-visible) img, body:not(.mode-simple) .mq .c-cell.open img { filter: invert(1); }
.mq .has-info::after { display: none; }
.mq .c-info { color: var(--ink); bottom: 14px; }
@media (prefers-reduced-motion: reduce) { .mq-track { animation: none; } .mq { overflow-x: auto; } }

/* Phone safety for the experience version */
@media (max-width: 700px) {
  .bar { gap: 10px; }
  .bar .mark { font-size: 18px; min-width: 0; }
  .nav { gap: 12px; flex: none; }
  .nav a { font-size: 12px; }
  .g-word { font-size: clamp(56px, 19vw, 340px); }
  .foot nav { flex-wrap: wrap; gap: 8px 18px; }
  .sec-h, .index-h, .super-h, h2.group-h, .about-h, .contact-h, .promo-name, .cl-big { font-size: clamp(36px, 13vw, 120px); overflow-wrap: anywhere; }
  .split .w { white-space: normal; }
  .stage-name { font-size: 38px; }
}
