/* ============================================================
   HOLYNOA, objects in the void
   ============================================================ */

@font-face { font-family: "Lingo Pixel"; src: url("../fonts/lingo-pixel.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Lingo Italic"; src: url("../fonts/lingo-italic.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --void: #080708;
  --bone: #efe8de;
  --pink: #ff6fcf;
  --ash: #8f8780;
  --line: rgba(239, 232, 222, 0.14);

  --pixel: "Lingo Pixel", "Geist", Helvetica, sans-serif;
  --italic: "Lingo Italic", "Geist", Helvetica, sans-serif;
  --sans: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;

  --gutter: clamp(16px, 3.2vw, 48px);
  --ease: cubic-bezier(0.7, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* one centimetre of a real object, on screen: every object keeps the same scale */
  --cm: min(0.86vw, 1.6vh);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--void); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--void);
  color: var(--bone);
  font-family: var(--sans);
  font-size: clamp(15px, 1vw, 17px);
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--pink); color: var(--void); }
:focus-visible { outline: 1px solid var(--pink); outline-offset: 6px; }
[hidden] { display: none !important; }

.px { font-family: var(--pixel); font-weight: 400; }
.it { font-family: var(--italic); font-weight: 400; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 400; }
.glyphs .g { display: inline-block; white-space: pre; }
.glyphs .g.is-it { font-family: var(--italic); }
.glyphs .g.is-px { font-family: var(--pixel); }
.word { display: inline-block; white-space: nowrap; }

/* ---------- atmosphere ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 40; pointer-events: none;
  opacity: 0.06; mix-blend-mode: screen;
  animation: grain 0.9s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); } 75% { transform: translate(-1%, -1%); }
}
/* the darkness, with a hole where the cursor is */
.dark {
  position: fixed; inset: 0; z-index: 6; pointer-events: none;
  background: radial-gradient(circle var(--lr, 38vmax) at var(--lx, 50%) var(--ly, 45%),
    rgba(8, 7, 8, 0) 0%, rgba(8, 7, 8, 0.1) 40%, rgba(8, 7, 8, var(--dk, 0.5)) 100%);
  transition: opacity 0.2s;
}

/* an old screen: fine scanlines, a soft vignette, and a refresh bar that rolls past now and then */
.crt { position: fixed; inset: 0; z-index: 41; pointer-events: none; }
.crt::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 3px);
  opacity: var(--scan, 0.45); mix-blend-mode: multiply;
}
.crt::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 120% 100% at 50% 50%, transparent 62%, rgba(0, 0, 0, var(--vig, 0.38)) 100%);
}
.crt i {
  position: absolute; left: 0; right: 0; top: 0; height: 22vh;
  background: linear-gradient(to bottom, transparent, rgba(239, 232, 222, 0.035) 45%, rgba(239, 232, 222, 0.05) 50%, transparent);
  animation: roll 11s linear infinite; will-change: transform;
}
@keyframes roll { 0% { transform: translateY(-25vh); } 55%, 100% { transform: translateY(125vh); } }
body { animation: hum 7s steps(1) infinite; }
@keyframes hum { 0%, 96%, 100% { filter: none; } 97% { filter: brightness(1.05) contrast(1.02); } 98% { filter: brightness(0.97); } }

/* intro arriving as code */
.dc-w { display: inline-block; white-space: nowrap; }
.dc-c.is-noise { font-family: var(--mono); color: var(--pink); opacity: 0.8; }

/* ---------- lights on ---------- */
.lights { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 0; }
.lights__sw { position: relative; width: 24px; height: 12px; border: 1px solid currentColor; }
.lights__sw i { position: absolute; top: 1px; left: 1px; width: 8px; height: 8px; background: currentColor; transition: transform 0.25s var(--ease-out), background 0.2s; }
.lights[aria-pressed="true"] .lights__sw i { transform: translateX(12px); background: var(--pink); }
.lights:hover .lights__label { color: var(--pink); }
html[data-lights="on"] {
  --void: #efe8de;
  --bone: #0c0b0c;
  --ash: #6b635d;
  --line: rgba(12, 11, 12, 0.16);
}
html[data-lights="on"] .dark { opacity: 0; }
html[data-lights="on"] .grain { mix-blend-mode: multiply; opacity: 0.09; }
html[data-lights="on"] .crt { --scan: 0.25; --vig: 0.16; }
html[data-lights="on"] .obj__img, html[data-lights="on"] .obj__px { filter: none; }
html[data-lights="on"] .obj.is-focus .obj__img, html[data-lights="on"] .obj.is-focus .obj__px { filter: drop-shadow(0 18px 30px rgba(12, 11, 12, 0.22)); }
html[data-lights="on"] .has-focus .obj:not(.is-focus) .obj__img, html[data-lights="on"] .has-focus .obj:not(.is-focus) .obj__px { filter: saturate(0.5) opacity(0.55); }
html[data-lights="on"] .dc-c.is-noise { color: #d42f9c; }
html.is-switching *, html.is-switching *::before, html.is-switching *::after { transition: none !important; }
.pix { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; max-width: none; image-rendering: pixelated; }
.loader {
  position: fixed; inset: 0; z-index: 85; background: var(--void); color: var(--bone);
  display: grid; place-items: center;
}
.loader__word { font-size: clamp(56px, 13vw, 220px); line-height: 0.9; }
.loader__count { position: absolute; left: var(--gutter); bottom: var(--gutter); color: var(--pink); }
.loader__note { position: absolute; right: var(--gutter); bottom: var(--gutter); color: var(--ash); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px var(--gutter);
  pointer-events: none;
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--void); border-bottom: 1px solid var(--line);
  opacity: 0; transition: opacity 0.35s var(--ease-out);
}
body.is-scrolled .site-header::before { opacity: 1; }
body.is-scrolled .site-header { pointer-events: auto; }
.site-header > * { pointer-events: auto; }
.brand { font-size: 22px; line-height: 1; display: inline-flex; align-items: center; gap: 10px; }
.site-header nav { display: flex; gap: clamp(18px, 2.6vw, 40px); }
.site-header nav a { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; position: relative; padding: 6px 0; }
.site-header nav a::before { content: "["; opacity: 0; margin-right: 4px; color: var(--pink); transition: opacity 0.2s; }
.site-header nav a::after { content: "]"; opacity: 0; margin-left: 4px; color: var(--pink); transition: opacity 0.2s; }
.site-header nav a:hover::before, .site-header nav a:hover::after,
.site-header nav a[aria-current]::before, .site-header nav a[aria-current]::after { opacity: 1; }

/* ---------- cursor ---------- */
body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }
.cursor { position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none; width: 0; height: 0; }
.cursor i { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; background: var(--bone); transition: transform 0.25s var(--ease-out), background 0.2s; }
.cursor > span {
  position: absolute; left: 14px; top: -6px; white-space: nowrap;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--pink); opacity: 0; transform: translateX(-4px); transition: opacity 0.2s, transform 0.25s var(--ease-out);
}
.cursor.is-link i { transform: scale(0.5); background: var(--pink); }
.cursor.is-label i, .cursor.is-on-obj i { background: var(--pink); }
.cursor.is-on-obj i { transform: rotate(45deg); }
.cursor.is-label > span { opacity: 1; transform: none; }

/* ============================================================
   OBJECTS
   ============================================================ */
.obj {
  position: absolute; left: 0; top: 0;
  width: calc(var(--w) * var(--cm) * var(--k, 1));
  pointer-events: none; outline: none;
}
.obj.is-placed { left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); transform: translate(-50%, -50%); }
.obj:not(.is-ready) { opacity: 0; }
.obj { transition: opacity 0.8s var(--ease-out); }
.obj__par, .obj__float { will-change: transform; }
.obj__float { position: relative; }
.obj__px { position: absolute; pointer-events: none; max-width: none; max-height: none; filter: brightness(0.82) saturate(0.85); transition: filter 0.5s var(--ease-out); }
.obj__img { width: 100%; height: auto; filter: brightness(0.82) saturate(0.85); transition: filter 0.5s var(--ease-out); }
.obj.is-focus .obj__img, .obj.is-focus .obj__px { filter: brightness(1.04) saturate(1.05) drop-shadow(0 0 40px rgba(239, 232, 222, 0.08)); }
.has-focus .obj:not(.is-focus) .obj__img, .has-focus .obj:not(.is-focus) .obj__px { filter: brightness(0.42) saturate(0.6); }
@media (hover: none) {
  .obj__img, .obj__px { filter: none; }
  .has-focus .obj:not(.is-focus) .obj__img, .has-focus .obj:not(.is-focus) .obj__px { filter: brightness(0.7) saturate(0.85); }
  .dark { --dk: 0.3 !important; }
}


/* ============================================================
   HOME
   ============================================================ */
.hero { --cm: min(0.78vw, 1.38vh); --tf: min(15vw, 27vh); position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; }
.hero__field { position: absolute; inset: 0; z-index: 2; }
.dust { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; pointer-events: none; z-index: 1; }
/* the name and the intro sit above the darkness: always lit */
.hero__title {
  position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); z-index: 8;
  margin: 0; font-weight: 400; text-align: center; white-space: nowrap;
  font-size: var(--tf); line-height: 0.8; letter-spacing: -0.005em; color: var(--bone);
  pointer-events: none;
}
.hero__intro {
  position: absolute; left: 50%; top: calc(45% + var(--tf) * 0.62 + clamp(18px, 3.2vh, 40px)); transform: translateX(-50%); z-index: 8;
  width: min(44em, 84vw); margin: 0; text-align: center; text-wrap: balance;
  font-size: clamp(15px, 1.15vw, 19px); line-height: 1.45; font-weight: 400; color: var(--bone);
  text-shadow: 0 0 24px var(--void), 0 0 12px var(--void);
}
.hero__hint { position: absolute; right: var(--gutter); bottom: 22px; z-index: 8; color: var(--ash); display: flex; gap: 10px; align-items: center; }
.hero__hint i { position: relative; display: inline-block; width: 7px; height: 7px; background: var(--pink); animation: blink 1.1s steps(1) infinite; cursor: pointer; transition: transform 0.2s var(--ease-out); }
.hero__hint i::after { content: ""; position: absolute; inset: -12px; }   /* a bigger target than the pixel itself */
.hero__hint i:hover { transform: scale(1.6); animation-play-state: paused; opacity: 1; }
@keyframes blink { 50% { opacity: 0; } }

/* callout: a line comes out of the object, the name sits on the black */
.callout { position: absolute; inset: 0; z-index: 9; pointer-events: none; }
.callout__line {
  position: absolute; left: 0; top: 0; height: 1px; background: var(--bone); transform-origin: 0 50%;
  clip-path: inset(0 100% 0 0); transition: clip-path 0.35s var(--ease-out);
}
.callout__dot { position: absolute; left: 0; top: 0; width: 6px; height: 6px; background: var(--pink); opacity: 0; transition: opacity 0.2s; }
.callout__txt {
  position: absolute; left: 0; top: 0; width: max-content; max-width: 240px;
  text-shadow: 0 0 14px var(--void), 0 0 6px var(--void), 0 0 2px var(--void);
  opacity: 0; transition: opacity 0.3s var(--ease-out);
}
.callout.is-on .callout__line { clip-path: inset(0 0 0 0); }
.callout.is-on .callout__dot { opacity: 1; }
.callout.is-on .callout__txt { opacity: 1; transition-delay: 0.18s; }
.callout__num { display: block; color: var(--pink); margin-bottom: 6px; font-size: 10px; }
.callout__name { display: block; font-size: 30px; line-height: 0.95; }
.callout__kind { display: block; margin-top: 7px; font-size: 13px; line-height: 1.3; color: var(--ash); }

/* index */
.index { position: relative; z-index: 7; padding: 16vh var(--gutter) 10vh; background: var(--void); }
.index__head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 14px; color: var(--ash); }
.index__row {
  display: grid; grid-template-columns: 70px 1.3fr 1fr 70px 20px; gap: 20px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px solid var(--line);
  transition: padding 0.5s var(--ease-out);
}
.index__row .t { font-size: clamp(26px, 3.1vw, 52px); line-height: 1; }
.index__row .k { color: var(--ash); font-size: 15px; }
.index__row .mono:last-child { text-align: right; opacity: 0; transition: opacity 0.3s, transform 0.4s var(--ease-out); transform: translateX(-8px); color: var(--pink); }
.index__row:hover { padding-left: 14px; }
.index__row:hover .mono:last-child { opacity: 1; transform: none; }
.index__row:hover .n { color: var(--pink); }
.index__peek { position: fixed; left: 0; top: 0; z-index: 8; width: 96px; pointer-events: none; opacity: 0; transition: opacity 0.25s; }
.index__peek.is-on { opacity: 1; }
.index__peek img { width: 100%; height: auto; }

/* ---------- footer ---------- */
.site-footer { position: relative; z-index: 7; background: var(--void); padding: 16vh var(--gutter) 28px; border-top: 1px solid var(--line); }
.site-footer__big { font-size: clamp(44px, 9vw, 160px); line-height: 0.85; margin: 0 0 9vh; font-weight: 400; }
.site-footer__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.site-footer__grid > div { display: flex; flex-direction: column; gap: 6px; position: relative; }
.site-footer__grid .mono { color: var(--ash); }
.site-footer__grid a, .site-footer__grid button { font-size: clamp(17px, 1.3vw, 22px); text-align: left; transition: color 0.2s; }
.site-footer__grid a:hover, .site-footer__grid button:hover { color: var(--pink); }
.copy-toast { color: var(--pink) !important; opacity: 0; transition: opacity 0.3s; }
.copy-toast.is-on { opacity: 1; }
.site-footer__base { display: flex; justify-content: space-between; gap: 20px; margin-top: 10vh; color: var(--ash); flex-wrap: wrap; }

/* ---------- toys: little desktop icons in the footer ---------- */

/* toggles in the same language as the menu: small mono caps, pink brackets when on */
.tg { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ash); padding: 6px 2px; white-space: nowrap; transition: color 0.2s; }
.tg::before { content: "["; opacity: 0; margin-right: 4px; color: var(--pink); transition: opacity 0.2s; }
.tg::after { content: "]"; opacity: 0; margin-left: 4px; color: var(--pink); transition: opacity 0.2s; }
.tg:hover { color: var(--bone); }
.tg.is-on { color: var(--bone); }
.tg.is-on::before, .tg.is-on::after { opacity: 1; }

/* paint.exe: a floating panel, glass and hairlines like the rest of the site */
.toywin { position: fixed; z-index: 64; color: var(--bone); background: rgba(8, 7, 8, 0.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--line); box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6); outline: none; }
.toywin__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); user-select: none; touch-action: none; }
.toywin__name { font-family: var(--pixel); font-size: 17px; }
.toywin__file { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ash); }
.toywin__x { justify-self: end; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ash); transition: color 0.2s; }
.toywin__x:hover { color: var(--pink); }
.paint__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 16px; flex-wrap: wrap; }
.paint__tools, .paint__sizes { display: flex; gap: 14px; }
.paint__cv { display: block; width: calc(100% - 32px); margin: 0 16px; aspect-ratio: 3 / 2; image-rendering: pixelated; background: #efe8de; touch-action: none; cursor: crosshair; }
body.has-cursor .paint__cv { cursor: crosshair; }
.paint__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px 14px; flex-wrap: wrap; }
.paint__pal { display: flex; gap: 6px; }
.paint__sw { width: 18px; height: 18px; background: var(--c); border: 1px solid var(--line); position: relative; }
.paint__sw.is-on::after { content: ""; position: absolute; left: 3px; right: 3px; bottom: -7px; height: 2px; background: var(--pink); }
.paint__acts { display: flex; gap: 16px; }

/* destroy.exe: the damage sits on the glass, over everything */
.destroy__cv, .destroy__fx { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 60; touch-action: none; }
.destroy__fx { z-index: 61; pointer-events: none; }
.destroy__cv { cursor: crosshair; }
body.has-cursor .destroy__cv { cursor: crosshair; }
.destroy__cv[data-tool="hammer"], .destroy__cv[data-tool="gun"], .destroy__cv[data-tool="fire"], body.has-cursor .destroy__cv[data-tool="hammer"], body.has-cursor .destroy__cv[data-tool="gun"], body.has-cursor .destroy__cv[data-tool="fire"] { cursor: none; }
body.is-tooling .cursor { opacity: 0; }
.destroy__tool { position: fixed; left: 0; top: 0; z-index: 63; pointer-events: none; display: none; will-change: transform; }
.destroy__tool.is-on[data-tool="hammer"], .destroy__tool.is-on[data-tool="gun"] { display: block; }
.destroy__tool svg { position: absolute; display: none; max-width: none; }
.destroy__tool[data-tool="hammer"] .destroy__hammer { display: block; left: -20px; top: -105px; transform-origin: 150px 170px; transform: rotate(16deg); scale: 1.2; filter: drop-shadow(6px 10px 8px rgba(0, 0, 0, 0.45)); }
.destroy__tool[data-tool="gun"] .destroy__aim { display: block; left: -22px; top: -22px; }
.destroy__bar { position: fixed; z-index: 62; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; align-items: center; gap: 18px; padding: 10px 20px; background: rgba(8, 7, 8, 0.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--line); max-width: calc(100vw - 24px); overflow-x: auto; }
.destroy__name { font-family: var(--pixel); font-size: 17px; color: var(--pink); white-space: nowrap; padding-right: 4px; }
.destroy__sep { width: 1px; align-self: stretch; background: var(--line); }

/* ============================================================
   INNER PAGES
   ============================================================ */
.page { position: relative; z-index: 7; }
.crumbs { display: flex; gap: 18px; color: var(--ash); }
.crumbs a:hover { color: var(--pink); }

/* images arrive out of focus and settle */
.rv { opacity: 0; filter: blur(18px); transform: scale(1.015); transition: opacity 1s var(--ease-out), filter 1.2s var(--ease-out), transform 1.4s var(--ease-out); }
.rv.is-in { opacity: 1; filter: none; transform: none; }

/* project head */
.p-head {
  --cm: min(0.86vw, 1.6vh);
  min-height: 100vh; padding: 120px var(--gutter) 60px;
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; align-content: end;
  position: relative;
}
.p-head .crumbs { grid-column: 1 / -1; position: absolute; top: 96px; left: var(--gutter); }
.p-title { grid-column: 1 / 9; margin: 0; font-weight: 400; font-size: clamp(56px, 10vw, 190px); line-height: 0.84; letter-spacing: -0.005em; position: relative; z-index: 8; }
.p-title.is-long { grid-column: 1 / 8; font-size: clamp(40px, 5.2vw, 96px); line-height: 0.92; }
.p-lead { grid-column: 1 / 7; margin: 4vh 0 0; font-size: clamp(22px, 2vw, 34px); line-height: 1.2; font-weight: 300; letter-spacing: -0.015em; position: relative; z-index: 8; }
.p-facts { grid-column: 9 / 13; margin: 4vh 0 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 22px; align-self: end; position: relative; z-index: 8; }
.p-facts dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ash); padding-top: 3px; }
.p-facts dd { margin: 0; font-size: 16px; }
.p-head__obj, .a-head__obj { position: absolute; inset: 0; z-index: 2; pointer-events: none; }

/* media */
.p-media { padding: 0 var(--gutter) 12vh; position: relative; z-index: 7; }
.p-media__frame { position: relative; max-width: 1500px; margin: 0 auto; background: #000; }
html[data-lights="on"] .p-media__frame { background: transparent; }
.p-media__frame img, .p-media__frame video { width: 100%; height: auto; }
.p-media__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.p-play { position: absolute; inset: 0; display: grid; place-items: center; z-index: 3; }
.p-play span {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 14px 22px; background: var(--bone); color: var(--void);
  transition: background 0.2s, transform 0.4s var(--ease-out);
}
.p-play:hover span { background: var(--pink); transform: scale(1.05); }
.p-media.is-playing .p-play { display: none; }

.p-body { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; padding: 6vh var(--gutter) 14vh; position: relative; z-index: 7; }
.p-body__label { grid-column: 1 / 4; color: var(--ash); }
.p-body__text { grid-column: 5 / 11; }
.p-body__text p { margin: 0 0 1.2em; font-size: clamp(16px, 1.15vw, 19px); line-height: 1.65; }
.p-body__text p:first-child::first-letter { font-family: var(--pixel); font-size: 3.4em; float: left; line-height: 0.8; margin: 0.08em 0.1em 0 0; }
.p-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.p-tags span { border: 1px solid var(--line); padding: 6px 10px; color: var(--ash); }
.p-body__text p.p-note { margin: 28px 0 0; font-size: 13px; color: var(--ash); }
.p-aside { margin-top: 50px; padding: 24px; border: 1px solid var(--line); }
.p-aside h3 { margin: 0 0 10px; font-weight: 400; font-size: 26px; }
.p-aside p { font-size: 15px !important; color: var(--ash); margin: 0 !important; }
.p-aside p::first-letter { all: unset; }

.p-gallery { padding: 0 var(--gutter) 14vh; display: flex; flex-direction: column; gap: 10vh; position: relative; z-index: 7; }
.p-gallery figure { margin: 0 auto; width: 100%; max-width: 1500px; }
.p-gallery figure.narrow { max-width: 900px; }
.p-gallery .row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 1500px; margin: 0 auto; width: 100%; }
.p-gallery .row figure { max-width: none; }
.p-gallery img, .p-gallery video { width: 100%; height: auto; }
.p-gallery figcaption { margin-top: 12px; color: var(--ash); }

.p-next {
  --cm: min(0.86vw, 1.6vh);
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px;
  min-height: 70vh; padding: 10vh var(--gutter); border-top: 1px solid var(--line); position: relative; overflow: hidden;
}
.p-next__t { font-size: clamp(48px, 8vw, 150px); line-height: 0.86; margin-top: 14px; position: relative; z-index: 8; }
.p-next__t.is-long { font-size: clamp(36px, 5vw, 90px); }
.p-next .mono { color: var(--ash); position: relative; z-index: 8; }
.p-next__obj { position: relative; width: 34vw; height: 50vh; }

/* archive */
.a-head { --cm: min(0.86vw, 1.6vh); padding: 160px var(--gutter) 10vh; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: end; position: relative; min-height: 80vh; }
.a-head h1 { grid-column: 1; grid-row: 1; margin: 0; font-weight: 400; font-size: clamp(56px, 10vw, 180px); line-height: 0.84; position: relative; z-index: 8; }
.a-head p { grid-column: 1; grid-row: 2; margin: 4vh 0 0; font-size: clamp(20px, 1.7vw, 28px); line-height: 1.25; font-weight: 300; max-width: 22ch; position: relative; z-index: 8; }
.a-head .mono { display: block; margin-top: 18px; color: var(--ash); }
.a-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 18px; padding: 0 var(--gutter) 16vh; position: relative; z-index: 7; }
.a-item { display: block; width: 100%; text-align: left; }
.a-item .frame { aspect-ratio: 1; overflow: hidden; }
.a-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.a-item:hover img { transform: scale(1.03); }
.a-item figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0 0; }
.a-item figcaption b { font-weight: 400; font-size: 16px; }
.a-item figcaption .mono { color: var(--ash); }
.a-item:hover figcaption b { color: var(--pink); }
.lightbox {
  position: fixed; inset: 0; z-index: 55; background: var(--void);
  display: grid; place-items: center; padding: 70px var(--gutter);
  opacity: 0; pointer-events: none; transition: opacity 0.35s;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-height: calc(100vh - 140px); width: auto; }
.lightbox__close { position: absolute; top: 24px; right: var(--gutter); }
.lightbox__close:hover { color: var(--pink); }
.lightbox__cap { position: absolute; bottom: 24px; left: var(--gutter); color: var(--ash); }

/* about */
.about { padding: 120px var(--gutter) 14vh; display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.about h1 { grid-column: 1 / 7; grid-row: 1; align-self: end; margin: 0 0 6vh; font-weight: 400; font-size: clamp(56px, 10vw, 180px); line-height: 0.84; position: relative; z-index: 2; }
/* the portrait is black and white with a black ground: shown whole, the black melts into the page */
.about__portrait { grid-column: 3 / 13; grid-row: 1; position: relative; align-self: start; }
.about__portrait img {
  width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 76%, transparent 100%), linear-gradient(to left, transparent 0%, #000 10%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to bottom, #000 76%, transparent 100%), linear-gradient(to left, transparent 0%, #000 10%);
          mask-composite: intersect;
  filter: blur(14px); transform: scale(1.02);
  transition: filter 0.9s var(--ease-out), transform 1.2s var(--ease-out);
}
.about__portrait:hover img, .about__portrait.is-seen img { filter: blur(0); transform: scale(1); }
.about__portrait .mono { position: absolute; right: 18%; bottom: 14%; color: var(--bone); transition: opacity 0.4s; }
.about__portrait:hover .mono, .about__portrait.is-seen .mono { opacity: 0; }
html[data-lights="on"] .about__portrait img { filter: brightness(0) blur(14px); }
html[data-lights="on"] .about__portrait:hover img, html[data-lights="on"] .about__portrait.is-seen img { filter: brightness(0); }
.about__text { grid-column: 7 / 13; grid-row: 2; margin-top: 4vh; }
/* the offline dog, sitting in the empty column next to the text */
.runner { grid-column: 1 / 6; grid-row: 2; align-self: start; position: sticky; top: 120px; margin-top: 8vh; }
.runner__note { display: flex; justify-content: space-between; gap: 12px; color: var(--ash); margin: 0 0 14px; }
.runner__note span:first-child { color: var(--pink); }
.runner__cv { display: block; width: 100%; aspect-ratio: 600 / 190; image-rendering: pixelated; cursor: pointer; touch-action: manipulation; }
body.has-cursor .runner__cv { cursor: none; }
.about__text > p { margin: 0 0 1.1em; font-size: clamp(16px, 1.15vw, 19px); line-height: 1.65; }
.about__text > p.first, .p-lead, .a-head p { text-wrap: balance; }
.about__text > p.first { font-size: clamp(24px, 2.1vw, 36px); line-height: 1.2; font-weight: 300; letter-spacing: -0.015em; }
.about__list { list-style: none; padding: 0; margin: 40px 0; border-top: 1px solid var(--line); }
.about__list li { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.about__list .mono { color: var(--ash); }
.about__list a:hover { color: var(--pink); }
.resume {
  display: inline-flex; gap: 12px; align-items: center; padding: 14px 20px;
  background: var(--bone); color: var(--void);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  transition: background 0.2s;
}
.resume:hover { background: var(--pink); }

/* ============================================================
   SMALL SCREENS
   ============================================================ */
@media (max-width: 760px) {
  .hero { --cm: 1.75vw; }
  .p-head, .p-next, .a-head { --cm: 2.6vw; }
  .site-header { padding: 16px var(--gutter); }
  .site-header nav { gap: 16px; }
  .site-header nav a[href="#contact"] { display: none; }
  .brand { font-size: 18px; }
  .hero { --tf: 19vw; }
  .hero__intro { font-size: 15px; width: 80vw; }
  .hero__hint { left: var(--gutter); right: auto; }
  .callout__name { font-size: 24px; }
  .callout__txt { max-width: 46vw; }
  .index__row { grid-template-columns: 34px 1fr 50px; gap: 12px; }
  .index__row .k, .index__row .mono:last-child { display: none; }
  .index__peek { display: none; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; row-gap: 30px; }
  .paint__tools { gap: 10px; flex-wrap: wrap; }
  .destroy__name, .destroy__sep { display: none; }
  .destroy__bar { gap: 12px; padding: 10px 14px; }
  .p-head { min-height: auto; padding-top: 150px; padding-bottom: 8vh; display: flex; flex-direction: column; }
  .p-head__obj { position: relative; inset: auto; height: 62vw; order: 2; margin: 4vh 0; }
  .p-head .crumbs { top: 70px; }
  .p-title { order: 1; }
  .p-lead { order: 3; align-self: stretch; }
  .p-facts { order: 4; align-self: stretch; }
  .p-head__obj .obj, .a-head__obj .obj { left: 50% !important; top: 50% !important; }
  .a-head__obj { position: relative; height: 80vw; }
  .p-body { display: block; }
  .p-body__label { display: block; margin-bottom: 20px; }
  .p-gallery .row { grid-template-columns: 1fr; }
  .p-next { grid-template-columns: 1fr; min-height: auto; }
  .p-next__obj { width: 100%; height: 56vw; }
  .a-head { grid-template-columns: 1fr; padding-top: 130px; min-height: auto; }
  .a-grid { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
  .about { display: block; padding-top: 130px; }
  .about h1 { margin-bottom: 0; }
  .about__portrait { margin: -4vh -8vw 30px; }
  .about__list li { grid-template-columns: 110px 1fr; }
  .runner { position: relative; top: auto; margin-top: 60px; }
  .lights__label { display: none; }
  .a-head__obj .obj { --k: 1.15 !important; }
  .site-header nav { gap: 13px; }
  .site-header nav a { letter-spacing: 0.06em; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .hero__hint i, .crt i, body { animation: none !important; }
}
