/* ArtifactSoft — Portfolyo: a salon hang on a midnight wall. Fonts: Archivo (OFL), Brygada 1918 (OFL), self-hosted. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(/portfolio/assets/fonts/archivo-latin-wdth-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(/portfolio/assets/fonts/archivo-latin-ext-wdth-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Brygada";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/portfolio/assets/fonts/brygada-1918-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Brygada";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/portfolio/assets/fonts/brygada-1918-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Brygada";
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url(/portfolio/assets/fonts/brygada-1918-latin-400-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Brygada";
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url(/portfolio/assets/fonts/brygada-1918-latin-ext-400-italic.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* registered so the pointer tilt, glare and lift transition smoothly */
@property --rx { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
@property --ry { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
@property --gx { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
@property --gy { syntax: "<percentage>"; inherits: true; initial-value: 30%; }
@property --glare { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --lift { syntax: "<length>"; inherits: false; initial-value: 0px; }

:root {
  --wall: #101a3f;
  --wall-lit: #16234f;
  --wall-shade: #0b1331;
  --room: #060b22;
  --paper: #eef2f9;
  --paper-2: #d3dbec;
  --ink: #0b1124;
  --ink-2: #3a4560;
  --on-wall: #eef2fb;
  --on-wall-2: #c4cce6;
  --on-wall-3: #a6b1d4;
  --neon: #5cf0ff;
  --neon-deep: #1aa7c4;
  --neon-2: #ff4fd8;
  --frame: #060a19;
  --rule: color-mix(in srgb, var(--on-wall) 16%, transparent);
  --gut: clamp(16px, 4vw, 56px);
  --max: 1480px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
  --display: "Archivo", "Arial Narrow", sans-serif;
  --serif: "Brygada", Georgia, serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-gutter: stable;
  overflow-x: clip;
  scroll-behavior: smooth;
  scrollbar-color: var(--neon-deep) var(--wall-shade);
}
html.is-locked { overflow: hidden; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background-color: var(--wall);
  /* plaster grain: tiled turbulence, no network request */
  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 .7  0 0 0 0 .85  0 0 0 0 1  0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  color: var(--on-wall);
  font-family: var(--display);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--neon);
}
::selection { background: var(--neon); color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--neon); outline-offset: 4px; border-radius: 2px; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
.sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
html.i18n-pending [data-i18n] { visibility: hidden; }

.skip {
  position: absolute; left: var(--gut); top: -100px; z-index: 50;
  background: var(--paper); color: var(--ink); padding: 10px 14px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* the visitor's torch: a faint pool of light that trails the mouse (fine pointers, motion allowed) */
.top, main, .foot { position: relative; z-index: 1; }
.spot {
  position: fixed; left: 0; top: 0; z-index: 0; width: 760px; height: 760px; margin: -380px 0 0 -380px;
  border-radius: 50%; pointer-events: none; will-change: transform;
  background: radial-gradient(closest-side, rgb(170 230 255 / 0.075), rgb(170 230 255 / 0.03) 55%, transparent);
  opacity: 0; transition: opacity 0.8s ease;
}
.spot.is-on { opacity: 1; }

/* entrances: only with .anim, which boot.js sets when motion is welcome */
.anim .rv, .anim .cl-row { transition: opacity 0.9s ease var(--d, 0ms), transform 1.1s var(--ease-out) var(--d, 0ms); }
.anim .rv:not(.is-in), .anim .cl-row:not(.is-in) { opacity: 0; transform: translate3d(0, 28px, 0); }
.k-word { display: inline-block; white-space: nowrap; }
.k-ch { display: inline-block; }
.anim [data-kinetic]:not(.k-ready) { opacity: 0; }
.anim [data-kinetic] .k-ch { transition: transform 1.1s var(--ease-out), opacity 0.7s ease; transition-delay: calc(var(--i) * 32ms + 80ms); }
.anim [data-kinetic]:not(.is-in) .k-ch { opacity: 0; transform: translate3d(0, 0.6em, 0) rotate(7deg); }

/* ---------- top bar ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: var(--max); margin: 0 auto; padding: 22px var(--gut);
}
.brand {
  display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none;
  padding: 6px 0;
}
.brand .ico { align-self: center; width: 1.1em; height: 1.1em; transition: transform 0.4s var(--ease-out); }
.brand:hover .ico { transform: translateX(-4px); }
.brand-name { font-weight: 720; font-stretch: 118%; letter-spacing: -0.01em; font-size: 1.05rem; }
.brand-back { color: var(--on-wall-2); font-size: 0.9rem; }
.brand:hover .brand-back { color: var(--on-wall); }
.top-nav { display: flex; gap: 28px; font-size: 0.95rem; }
.top-nav a { text-decoration: none; color: var(--on-wall-2); padding: 6px 0; background: linear-gradient(var(--neon), var(--neon)) 0 100% / 0 1px no-repeat; transition: background-size 0.45s var(--ease-out), color 0.2s; }
.top-nav a:hover { color: var(--on-wall); background-size: 100% 1px; }
.lang { display: flex; border: 1px solid var(--rule); border-radius: 999px; padding: 3px; }
.lang-btn {
  background: none; border: 0; border-radius: 999px; padding: 5px 12px; cursor: pointer;
  font-size: 0.8rem; font-weight: 640; letter-spacing: 0.08em; color: var(--on-wall-2);
  transition: background-color 0.25s, color 0.25s;
}
.lang-btn:hover { color: var(--on-wall); }
.lang-btn[aria-pressed="true"] { background: var(--paper); color: var(--ink); }

/* ---------- intro: the exhibition wall text ---------- */
.intro {
  max-width: var(--max); margin: 0 auto; padding: clamp(28px, 4.5vw, 72px) var(--gut) clamp(32px, 3.5vw, 52px);
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 88px); align-items: end;
}
.intro-title {
  font-weight: 780; font-stretch: 122%;
  font-size: clamp(2.5rem, 7.2vw, 6rem); line-height: 0.92; letter-spacing: -0.035em;
  text-wrap: balance;
}
.intro-title-b { display: block; color: var(--neon); font-weight: 300; font-stretch: 112%; letter-spacing: -0.03em; }
.intro-text { font-family: var(--serif); font-size: clamp(1.08rem, 1.35vw, 1.25rem); line-height: 1.55; max-width: 46ch; color: var(--on-wall); text-wrap: pretty; }
.intro-facts { display: flex; gap: clamp(20px, 3vw, 44px); margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--rule); }
.intro-facts div { display: flex; flex-direction: column; gap: 2px; }
.intro-facts dt { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-wall-3); font-weight: 560; }
.intro-facts dd { font-weight: 650; font-stretch: 112%; font-size: 1.15rem; font-variant-numeric: tabular-nums; }

/* ---------- rooms: filter as light switches ---------- */
.salon { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); outline: none; }
.rooms { display: flex; align-items: baseline; gap: 10px 26px; flex-wrap: wrap; padding: 18px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.rooms-label { font-family: var(--serif); font-style: italic; color: var(--on-wall-2); font-size: 1rem; }
.rooms-list { display: flex; flex-wrap: wrap; gap: 4px 4px; }
.room {
  position: relative; background: none; border: 0; cursor: pointer;
  padding: 8px 12px; font-size: 0.92rem; font-weight: 560; letter-spacing: 0.01em; color: var(--on-wall-2);
  transition: color 0.25s, translate 0.5s var(--ease-out);
}
.room::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 8px; vertical-align: 0.08em;
  border: 1px solid currentColor; transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.room:hover { color: var(--on-wall); }
.room[aria-pressed="true"] { color: var(--on-wall); }
.room[aria-pressed="true"]::before { background: var(--neon); border-color: var(--neon); box-shadow: 0 0 0 3px color-mix(in srgb, var(--neon) 22%, transparent); }

/* ---------- the hang ---------- */
.hang { padding: clamp(72px, 7vw, 110px) 0 clamp(40px, 5vw, 80px); display: flex; flex-direction: column; gap: clamp(90px, 9vw, 150px); }
.hang-row { display: flex; justify-content: space-between; align-items: center; gap: 3%; }
.hang { position: relative; }
.hang-row:last-child { padding-inline: 5% 7%; }
/* --px/--py: the slow drift of walking past the wall, written by main.js on scroll */
.work { position: relative; width: var(--w); flex: none; transform: translate3d(var(--px, 0px), calc(var(--dy, 0px) + var(--py, 0px)), 0); }
.work { scroll-margin-top: 7rem; }
/* the beam that sweeps the wall when the room changes */
.hang::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; pointer-events: none; opacity: 0;
  background: linear-gradient(100deg, transparent 15%, rgb(170 236 255 / 0.07) 50%, transparent 85%);
}
.frame {
  --fw: clamp(5px, 0.55vw, 9px);
  position: relative; display: block; text-decoration: none; isolation: isolate;
  border: var(--fw) solid var(--frame);
  background: var(--frame);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.06),
    0 2px 3px rgb(0 0 0 / 0.35),
    0 22px 34px -14px rgb(0 0 0 / 0.65);
  transform: perspective(1100px) translateY(var(--lift)) rotateX(var(--rx)) rotateY(var(--ry));
  transition: --rx 0.7s var(--ease-out), --ry 0.7s var(--ease-out), --lift 0.6s var(--ease-out), --gx 0.3s ease-out, --gy 0.3s ease-out, --glare 0.5s ease,
    box-shadow 0.6s var(--ease-out), filter 0.7s ease var(--d, 0ms);
}
/* the pool of light a picture lamp throws on the wall */
.frame::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: -40%; right: -40%; top: -38%; height: 120%;
  background: radial-gradient(closest-side at 50% 36%, rgb(150 236 255 / 0.17), rgb(120 200 255 / 0.07) 55%, transparent 100%);
  transition: opacity 0.9s ease;
}
.is-port .frame::before { left: -70%; right: -70%; top: -20%; height: 75%; }
.mat {
  position: relative; display: block; padding: clamp(6px, 0.9vw, 14px); background: var(--paper);
  box-shadow: inset 0 1px 3px rgb(0 0 0 / 0.25); overflow: hidden;
}
.mat::before {
  /* glare on the glass, centred on the pointer: the layer is twice the mat, so it moves by half the offset */
  content: ""; position: absolute; z-index: 1; left: -50%; top: -50%; width: 200%; height: 200%; pointer-events: none;
  background: radial-gradient(circle at center, rgb(255 255 255 / 0.2), rgb(255 255 255 / 0.05) 18%, transparent 34%);
  transform: translate(calc((var(--gx) - 50%) / 2), calc((var(--gy) - 50%) / 2));
  opacity: var(--glare);
}
.mat img { width: 100%; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.12); }
.mat::after {
  /* light falls off toward the bottom of the frame */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgb(205 246 255 / 0.10), transparent 35%, transparent 70%, rgb(4 8 25 / 0.14));
}
.lamp {
  position: absolute; left: 50%; top: calc(-1 * var(--fw) - 26px); width: min(46%, 150px); height: 8px; transform: translateX(-50%);
  border-radius: 4px; background: linear-gradient(to bottom, #c8fbff, var(--neon) 45%, #0b6578);
  box-shadow: 0 2px 3px rgb(0 0 0 / 0.4), 0 0 16px color-mix(in srgb, var(--neon) 40%, transparent);
  transform-origin: 50% calc(100% + 18px);
  transition: filter 0.6s ease;
}
.lamp::before {
  content: ""; position: absolute; left: 50%; top: 8px; width: 2px; height: 18px; margin-left: -1px; background: #0a5466;
}
.lamp::after {
  /* the lit underside of the shade */
  content: ""; position: absolute; left: 6%; right: 6%; bottom: -2px; height: 2px; border-radius: 2px;
  background: #e4fdff; opacity: 0.9; transition: opacity 0.4s;
}
.frame:hover, .frame:focus-visible { --lift: -6px; --glare: 1; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06), 0 4px 6px rgb(0 0 0 / 0.3), 0 38px 50px -18px rgb(0 0 0 / 0.7); }
.frame:focus-visible { outline-offset: 8px; }
.frame:hover::before, .frame:focus-visible::before { filter: brightness(1.35); }

.tomb {
  margin-top: 22px; width: max-content; max-width: 100%; min-width: min(100%, 200px);
  background: var(--paper); color: var(--ink); padding: 10px 14px 11px; border-top: 3px solid var(--neon-2);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.35), 0 8px 14px -8px rgb(0 0 0 / 0.4);
  font-size: 0.82rem; line-height: 1.35;
  transition: opacity 0.6s ease;
}
.is-port .tomb { min-width: 0; width: auto; }
.tomb-no { display: block; font-size: 0.72rem; font-weight: 640; letter-spacing: 0.08em; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tomb-client { font-size: 0.95rem; font-weight: 700; font-stretch: 108%; letter-spacing: -0.005em; margin-top: 2px; }
.tomb-title { font-family: var(--serif); font-size: 0.95rem; }
.tomb-kind { color: var(--ink-2); margin-top: 3px; }

/* lights: off before the opening, off when another room is chosen */
.pre-light .work:not(.is-lit) .frame::before, .work.is-off .frame::before { opacity: 0; }
.pre-light .work:not(.is-lit) .lamp::after, .work.is-off .lamp::after { opacity: 0; }
.pre-light .work:not(.is-lit) .frame, .work.is-off .frame { filter: brightness(0.42) saturate(0.55); }
.pre-light .work:not(.is-lit) .lamp, .work.is-off .lamp { filter: brightness(0.6); }
.work.is-off .tomb { opacity: 0.4; }
.work.is-off .frame { --lift: 0px; --glare: 0; }
.work.is-off .tomb { transition-delay: var(--d, 0ms); }

/* switching on: the shade wobbles on its arm while the light stutters into life */
.work.is-flick .lamp { animation: lamp-swing 1.3s var(--ease-out); }
.work.is-flick .lamp::after, .work.is-flick .frame::before { animation: lamp-flicker 0.9s linear; }
@keyframes lamp-swing {
  0% { transform: translateX(-50%) translateY(-7px) rotate(-8deg); }
  30% { transform: translateX(-50%) rotate(5deg); }
  55% { transform: translateX(-50%) rotate(-2.5deg); }
  78% { transform: translateX(-50%) rotate(1deg); }
  100% { transform: translateX(-50%) rotate(0); }
}
@keyframes lamp-flicker {
  0% { opacity: 0; } 8% { opacity: 0.85; } 14% { opacity: 0.1; } 24% { opacity: 1; } 32% { opacity: 0.35; } 46%, 100% { opacity: 1; }
}

.hang-note { font-family: var(--serif); font-style: italic; color: var(--on-wall-2); font-size: 0.98rem; max-width: 60ch; padding-bottom: clamp(60px, 7vw, 110px); }

/* ---------- marquee: the names on the wall, in passing ---------- */
.marquee {
  overflow: hidden; padding: clamp(20px, 2.6vw, 34px) 0; border-top: 1px solid var(--rule);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track, .mq-group { display: flex; width: max-content; }
.mq-item {
  display: inline-flex; align-items: center; gap: 0.7em; padding-right: 0.7em; white-space: nowrap;
  font-weight: 780; font-stretch: 122%; font-size: clamp(2rem, 5vw, 4.4rem); line-height: 1.05; letter-spacing: -0.03em;
  color: transparent; -webkit-text-stroke: 1px var(--on-wall-3);
}
.mq-item:nth-child(even) { font-family: var(--serif); font-style: italic; font-weight: 400; font-stretch: 100%; letter-spacing: -0.01em; color: var(--on-wall-2); -webkit-text-stroke: 0; }
.mq-item::after { content: ""; width: 0.16em; height: 0.16em; border-radius: 50%; background: var(--neon); }
.anim .marquee-track { animation: marquee 80s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- checklist ---------- */
.checklist { max-width: var(--max); margin: 0 auto; padding: clamp(60px, 7vw, 110px) var(--gut); }
.checklist-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 64px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.h2 { font-weight: 760; font-stretch: 120%; font-size: clamp(2rem, 4.6vw, 3.75rem); line-height: 0.95; letter-spacing: -0.03em; }
.checklist-lede { font-family: var(--serif); font-size: 1.08rem; max-width: 46ch; color: var(--on-wall-2); }
.cl { list-style: none; padding: 0; }
.cl-head, .cl-link {
  display: grid; grid-template-columns: 3.2rem minmax(0, 1.5fr) minmax(0, 0.9fr) minmax(0, 1.5fr) 1.4rem; gap: 20px; align-items: baseline;
}
.cl-head { padding: 0 0 12px; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-wall-3); font-weight: 600; }
.cl-head::after { content: ""; }
.cl-row { border-top: 1px solid var(--rule); }
.cl-row:last-child { border-bottom: 1px solid var(--rule); }
.cl-link { position: relative; padding: 20px 0; text-decoration: none; transition: padding 0.5s var(--ease-out), background-color 0.4s; }
.cl-link::after {
  content: ""; width: 1.1rem; height: 1.1rem; justify-self: end; align-self: center;
  background: currentColor; color: var(--neon);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M4 10h11M11 5.5 15.5 10 11 14.5'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M4 10h11M11 5.5 15.5 10 11 14.5'/></svg>") center / contain no-repeat;
  opacity: 0; transform: translateX(-8px); transition: opacity 0.3s, transform 0.5s var(--ease-out);
}
.cl-link:hover, .cl-link:focus-visible { background-color: var(--wall-lit); padding-left: 14px; padding-right: 10px; }
.cl-link:hover::after, .cl-link:focus-visible::after { opacity: 1; transform: none; }
.cl-link:focus-visible { outline-offset: -2px; }
.cl-no { font-size: 0.8rem; font-weight: 640; color: var(--on-wall-3); font-variant-numeric: tabular-nums; letter-spacing: 0.06em; }
.cl-work b { font-weight: 700; font-stretch: 112%; font-size: 1.2rem; letter-spacing: -0.01em; margin-right: 8px; }
.cl-work i { font-family: var(--serif); color: var(--on-wall-2); font-size: 1.05rem; }
.cl-kind { color: var(--on-wall-2); font-size: 0.95rem; }
.cl-med { color: var(--on-wall-2); font-size: 0.95rem; }
.checklist-foot { margin-top: 28px; font-size: 0.9rem; color: var(--on-wall-3); max-width: 75ch; }

/* cursor-following preview for the checklist (fine pointers only) */
.peek {
  position: fixed; left: 0; top: 0; z-index: 20; width: 150px; pointer-events: none;
  border: 5px solid var(--frame); background: var(--paper); padding: 6px;
  box-shadow: 0 24px 40px -16px rgb(0 0 0 / 0.7);
  opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0s 0.25s;
}
.peek.is-on { opacity: 1; visibility: visible; transition: opacity 0.25s; }

/* ---------- closing wall ---------- */
.next {
  max-width: var(--max); margin: 0 auto; padding: clamp(60px, 8vw, 130px) var(--gut) clamp(70px, 9vw, 140px);
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center;
}
.next-wall {
  /* the unfaded patch where a frame used to hang */
  position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; padding: 8%;
  background: var(--wall-lit);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.035), inset 0 0 60px rgb(0 0 0 / 0.12);
}
.next-hook {
  position: absolute; top: -14px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #c8fbff, var(--neon) 45%, #0a5466);
  box-shadow: 0 3px 4px rgb(0 0 0 / 0.45);
}
.next-title { font-weight: 780; font-stretch: 122%; font-size: clamp(2.2rem, 5.6vw, 4.9rem); line-height: 0.95; letter-spacing: -0.035em; text-align: center; text-wrap: balance; }
.next-text { font-family: var(--serif); font-size: clamp(1.08rem, 1.4vw, 1.3rem); max-width: 40ch; }
.next-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 22px;
  border-radius: 999px; text-decoration: none; font-weight: 620; font-size: 0.98rem; cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.4s var(--ease-out), translate 0.5s var(--ease-out);
}
.btn .ico { transition: transform 0.4s var(--ease-out); }
.btn:hover .ico { transform: translateX(3px); }
.btn-solid { background: var(--paper); color: var(--ink); border: 1px solid var(--paper); }
.btn-solid:hover { background: var(--neon); border-color: var(--neon); }
.btn-line { border: 1px solid color-mix(in srgb, var(--on-wall) 45%, transparent); color: var(--on-wall); }
.btn-line:hover { border-color: var(--on-wall); background: color-mix(in srgb, var(--on-wall) 6%, transparent); }

.foot {
  max-width: var(--max); margin: 0 auto; padding: 26px var(--gut) 34px; border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; gap: 12px 40px; flex-wrap: wrap; font-size: 0.85rem; color: var(--on-wall-3);
}
.foot p:last-child { max-width: 72ch; }

/* ---------- viewing room ---------- */
.vr {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--room); color: var(--on-wall); overflow: hidden;
}
.vr-guard { position: fixed; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.vr::backdrop { background: rgb(4 7 22 / 0.66); }
.vr[open] { display: block; }
.vr-inner { display: grid; grid-template-columns: minmax(0, 1fr) clamp(320px, 27vw, 410px); height: 100%; }
.vr-stage {
  position: relative; display: grid; place-items: center; min-height: 0; min-width: 0;
  padding: clamp(20px, 3.4vw, 56px);
  background: radial-gradient(60% 55% at 50% 22%, rgb(140 225 255 / 0.09), transparent 70%);
}
.vr-screen {
  position: relative; overflow: hidden; background: var(--paper);
  border: 8px solid var(--frame); padding: 10px;
  box-shadow: 0 3px 5px rgb(0 0 0 / 0.4), 0 40px 60px -24px rgb(0 0 0 / 0.75);
  transform-origin: 0 0;
}
.vr-screen-in { position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--frame); }
.vr-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.vr-frame { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; background: #fff; opacity: 0; transition: opacity 0.5s ease; }
.vr-frame.is-ready { opacity: 1; }
.vr-loading {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 2;
  background: var(--paper); color: var(--ink); font-size: 0.8rem; font-weight: 600; padding: 6px 12px; border-radius: 999px;
  box-shadow: 0 6px 14px -6px rgb(0 0 0 / 0.5); transition: opacity 0.3s;
}
.vr-screen.is-ready .vr-loading { opacity: 0; }

.vr-label { display: flex; flex-direction: column; min-height: 0; background: var(--wall-shade); border-left: 1px solid var(--rule); }
.vr-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--rule); }
.vr-device { display: flex; border: 1px solid var(--rule); border-radius: 999px; padding: 3px; }
.vr-dev {
  display: inline-flex; align-items: center; gap: 7px; background: none; border: 0; border-radius: 999px; cursor: pointer;
  padding: 7px 13px; font-size: 0.85rem; font-weight: 580; color: var(--on-wall-2); transition: background-color 0.25s, color 0.25s;
}
.vr-dev:hover { color: var(--on-wall); }
.vr-dev[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.vr-close {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  background: none; border: 1px solid var(--rule); color: var(--on-wall); transition: background-color 0.25s, border-color 0.25s, transform 0.5s var(--ease-out);
}
.vr-close:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); transform: rotate(90deg); }
.vr-card { flex: 1; min-height: 0; overflow-y: auto; padding: 26px 24px 24px; scrollbar-width: thin; }
.vr-no { color: var(--on-wall-3); }
.vr-client { font-weight: 760; font-stretch: 118%; font-size: clamp(1.7rem, 2.4vw, 2.2rem); line-height: 1; letter-spacing: -0.025em; margin-top: 6px; outline: none; }
.vr-title { font-family: var(--serif); font-size: 1.2rem; margin-top: 8px; }
.vr-kind { color: var(--on-wall-2); font-size: 0.92rem; margin-top: 4px; }
.vr-desc { font-family: var(--serif); font-size: 1.02rem; line-height: 1.6; margin-top: 18px; color: var(--on-wall); }
.vr-specs { margin-top: 20px; border-top: 1px solid var(--rule); }
.vr-specs div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 0.88rem; }
.vr-specs dt { color: var(--on-wall-3); }
.vr-h3 { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-wall-3); font-weight: 600; margin-top: 22px; }
.vr-feats { list-style: none; padding: 0; margin-top: 8px; }
.vr-feats li { position: relative; padding: 6px 0 6px 18px; font-size: 0.93rem; line-height: 1.45; }
.vr-feats li::before { content: ""; position: absolute; left: 0; top: 0.85em; width: 8px; height: 1px; background: var(--neon); }
.vr-langnote { margin-top: 16px; font-size: 0.85rem; color: var(--on-wall-3); font-style: italic; font-family: var(--serif); }
.vr-langnote:empty { display: none; }
.vr-actions { padding: 16px 20px 20px; border-top: 1px solid var(--rule); display: grid; gap: 12px; }
.vr-open { justify-content: center; }
.vr-walk { display: flex; justify-content: space-between; gap: 8px; }
.vr-step {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 4px; background: none; border: 0; cursor: pointer;
  font-size: 0.9rem; font-weight: 560; color: var(--on-wall-2); transition: color 0.2s;
}
.vr-step:hover { color: var(--on-wall); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .top-nav { display: none; }
  .hang { display: flex; flex-flow: row wrap; justify-content: space-between; align-items: center; row-gap: clamp(80px, 11vw, 120px); column-gap: 5%; }
  .hang-row { display: contents; }
  .work.is-land { --w: 57% !important; }
  .work.is-port { --w: 31% !important; }
  .work { --dy: 0px !important; }
}
@media (max-width: 860px) {
  .intro { grid-template-columns: 1fr; align-items: start; }
  .checklist-head { grid-template-columns: 1fr; }
  .cl-head { display: none; }
  .cl-link { grid-template-columns: 2.4rem minmax(0, 1fr) 1.2rem; grid-template-areas: "no work go" "no kind go" "no med go"; gap: 4px 14px; }
  .cl-no { grid-area: no; }
  .cl-work { grid-area: work; }
  .cl-kind { grid-area: kind; }
  .cl-med { grid-area: med; }
  .cl-link::after { grid-area: go; opacity: 0.8; transform: none; }
  .next { grid-template-columns: 1fr; }
  .vr { overflow-y: auto; }
  .vr-inner { grid-template-columns: 1fr; grid-template-rows: auto auto; height: auto; min-height: 100%; }
  .vr-stage { height: 64svh; min-height: 380px; padding: 16px; }
  .vr-card { overflow: visible; }
  .vr-label { display: contents; }
  .vr-bar { order: -2; position: sticky; top: 0; z-index: 3; background: var(--room); }
  .vr-card, .vr-actions { background: var(--wall-shade); }
  .vr-actions { order: 3; }
  .vr-card { order: 2; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .top { padding-top: 16px; padding-bottom: 16px; gap: 12px; }
  .brand-back { display: none; }
  .hang { row-gap: 72px; padding-top: 72px; }
  .work.is-land { --w: 100% !important; }
  .work.is-port { --w: 100% !important; display: grid; grid-template-columns: 56% minmax(0, 1fr); gap: 16px; align-items: end; }
  .work.is-port .tomb { margin-top: 0; }
  .work[data-slug="cv"], .work[data-slug="blog"], .work[data-slug="cigkofte"] { grid-template-columns: minmax(0, 1fr) 56%; }
  .work[data-slug="cv"] .frame, .work[data-slug="blog"] .frame, .work[data-slug="cigkofte"] .frame { order: 2; }
  .tomb { width: auto; }
  .rooms { padding: 14px 0; }
  .room { padding: 8px 9px; }
  .intro-facts { gap: 28px; }
  .vr-dev span { font-size: 0.82rem; }
  .vr-bar { padding: 12px 14px; }
  .vr-card { padding: 22px 16px; }
  .vr-actions { padding: 14px 16px 22px; }
  .foot { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .marquee-track { animation: none !important; }
  .frame:hover, .frame:focus-visible { --lift: 0px; --glare: 0; }
}
