/* NULLSTATE — portfolio of Matteo Brancaccia
   Dark grey ground with a slowly drifting mottle, live film grain, a faint grid and scanlines.
   Small Helvetica for reading, system monospace for the machine details (numbers, coordinates, clock).
   Index on the left, content on the right; the front page is a splash with the logo and an Enter. */
@font-face { font-family: "Pirata One"; src: url("assets/fonts/pirata-one.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
:root {
  --bg: #27272a;
  --fg: #e4e4e1;
  --fg-2: #9b9b99;
  --fg-3: #67676a;
  --line: rgba(255, 255, 255, .11);
  --line-2: rgba(255, 255, 255, .06);
  --accent: #93aab4;        /* "ash" from the logo system; the 4 and the mark */
  --ink: #f0ede4;
  --font-logo: "Pirata One", "Pirata One Fallback", Impact, serif;
  --font: "Helvetica Neue", Helvetica, Arial, "Liberation Sans", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --col: 58ch;
  --pad: clamp(16px, 2.6vw, 36px);
  --index-w: clamp(380px, 34vw, 500px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { background: var(--bg); }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 13.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100dvh;
  display: flex; flex-direction: column;
  overflow-x: hidden;
}

/* ---------- ground: mottle (drifts), grain (flickers), grid + scanlines (static) ---------- */
body::before, body::after, .fx, .fx::before, .fx::after {
  content: ""; position: fixed; inset: 0; pointer-events: none;
}
body::before {
  z-index: 0; inset: -12%;
  background:
    radial-gradient(110% 80% at 50% 38%, rgba(255,255,255,.05), transparent 68%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='1600'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.0035' numOctaves='4' stitchTiles='stitch' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .22 -.04'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E"),
    var(--bg);
  background-size: auto, cover, auto;
  animation: drift 90s ease-in-out infinite alternate;
  will-change: transform;
}
/* inner pages: the fog thins out and the grid nearly disappears */
body.inner::before { opacity: .48; }
body.inner .fx::before { opacity: .45; }
html.arrive body.inner::before { animation: arrive 1.6s cubic-bezier(.2,.7,.2,1) both, drift 90s ease-in-out 1.6s infinite alternate; }
@keyframes arrive { from { opacity: 1; transform: scale(1.9); } to { opacity: .48; transform: scale(1); } }
/* leaving the splash: rush into the fog */
html.leave body::before { animation: rush .95s cubic-bezier(.6,0,.9,.4) forwards; }
@keyframes rush { to { transform: scale(2.6); opacity: .08; } }
html.leave .splash .centre { animation: rushc .95s cubic-bezier(.6,0,.9,.4) forwards; }
@keyframes rushc { to { transform: scale(1.9); opacity: 0; filter: blur(6px); } }
html.leave .splash .corner, html.leave .fx { transition: opacity .5s; opacity: 0; }
@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-2.5%, 1.5%, 0) scale(1.06); }
  100% { transform: translate3d(2%, -2%, 0) scale(1.03); }
}
body::after {
  z-index: 0; inset: -50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='280'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 280px 280px;
  opacity: .085;
  animation: grain .9s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0,0); } 20% { transform: translate(-6%,4%); } 40% { transform: translate(5%,-7%); }
  60% { transform: translate(-3%,-3%); } 80% { transform: translate(7%,5%); } 100% { transform: translate(-5%,2%); }
}
.fx { z-index: 0; }
.fx::before {           /* grid */
  background-image:
    linear-gradient(to right, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(90% 90% at 50% 50%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(90% 90% at 50% 50%, #000 30%, transparent 100%);
}
.fx::after {            /* scanlines */
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,.14) 0 1px, transparent 1px 3px);
  opacity: .5;
}
.fx .c {                /* corner crosshairs */
  position: fixed; width: 11px; height: 11px; opacity: .4;
  --x: calc(max(var(--pad), env(safe-area-inset-left, 0px)) / 2); --y: calc(max(var(--pad), env(safe-area-inset-top, 0px)) / 2);
}
.fx .c::before, .fx .c::after { content: ""; position: absolute; background: var(--fg-2); }
.fx .c::before { left: 5px; top: 0; width: 1px; height: 11px; }
.fx .c::after { top: 5px; left: 0; height: 1px; width: 11px; }
.fx .tl { left: calc(var(--x) - 5px); top: calc(var(--y) - 5px); }
.fx .tr { right: calc(var(--x) - 5px); top: calc(var(--y) - 5px); }
.fx .bl { left: calc(var(--x) - 5px); bottom: calc(var(--y) - 5px); }
.fx .br { right: calc(var(--x) - 5px); bottom: calc(var(--y) - 5px); }
body > *:not(.fx) { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { body::before, body::after, .viz i, .cursor, .wordmark, .wordmark::before, .wordmark::after, .splash .centre, .splash::after, .markwrap { animation: none !important; } }

/* ---------- type ---------- */
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 1px solid var(--fg); outline-offset: 3px; }
img, video { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1em; max-width: var(--col); }
ul { margin: 0 0 1em; padding-left: 1.1em; max-width: var(--col); }
li { margin: .15em 0; }
h1, h2, h3 { font-size: inherit; font-weight: 500; margin: 0; }
h2 { margin-top: 2.4em; margin-bottom: .5em; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-2); }
.mono { font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.small { font-size: 11px; }
.dim { color: var(--fg-2); }

/* ---------- frame ---------- */
.wrap { width: 100%; padding-left: max(var(--pad), env(safe-area-inset-left, 0px)); padding-right: max(var(--pad), env(safe-area-inset-right, 0px)); }
header.site .wrap {
  display: grid; grid-template-columns: var(--index-w) 1fr auto; align-items: baseline; gap: 1.5em;
  padding-top: max(var(--pad), env(safe-area-inset-top, 0px)); padding-bottom: var(--pad);
}
header.site a { color: var(--fg-2); }
header.site a:hover, header.site a[aria-current="page"] { color: var(--fg); }
header.site .brand { color: var(--fg); letter-spacing: .06em; display: inline-flex; align-items: center; gap: .6em; }
header.site .brand .mark { width: 15px; height: 15px; color: var(--accent); flex: none; }
nav.main { display: flex; gap: 1.8em; }
header.site .status { color: var(--fg-3); }

main { flex: 1; }
main .wrap { padding-top: clamp(1.5rem, 6vh, 4rem); padding-bottom: clamp(3rem, 8vh, 6rem); }

footer.site .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5em 2em;
  padding-top: var(--pad); padding-bottom: max(var(--pad), env(safe-area-inset-bottom, 0px));
  color: var(--fg-3); font-size: 11px;
}
footer.site a { color: var(--fg-2); }
footer.site a:hover { color: var(--fg); }

/* ---------- two columns: index left, content right ---------- */
.two-col { display: grid; grid-template-columns: var(--index-w) minmax(0, 1fr); gap: 1.5em; align-items: start; }
.col-index { position: sticky; top: var(--pad); z-index: 3; }
.col-content { min-width: 0; max-width: 980px; }
.intro { color: var(--fg-2); margin-bottom: 2.2em; max-width: 36ch; }

.index { list-style: none; margin: 0; padding: 0; }
.index li { margin: 0; }
.index a {
  display: grid; grid-template-columns: 2.4em minmax(0, 1.25fr) minmax(0, 1fr) 4em; gap: 1em;
  padding: .55em 0; color: var(--fg-2); align-items: baseline; border-top: 1px solid var(--line-2);
  transition: color .15s;
}
.index li:last-child a { border-bottom: 1px solid var(--line-2); }
.index a:hover, .index a[aria-current="page"] { color: var(--fg); }
.index a[aria-current="page"] .t::before { content: "→ "; color: var(--fg-2); }
.index .t { color: var(--fg); }
.index .n, .index .y { color: var(--fg-3); }
.index .y { text-align: right; white-space: nowrap; }
.index .r { font-size: 11.5px; line-height: 1.45; }
.index .preview {
  position: fixed; right: calc(var(--pad) + 2vw); top: 50%; transform: translateY(-50%) scale(.985);
  width: min(32vw, 520px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .35s; z-index: 2;
}
.index a:hover .preview { opacity: 1; transform: translateY(-50%) scale(1); }
.index .preview:hover { opacity: 0; }

/* the scene on the work page: wireframe landscape, filaments, glyphs */
.scene { position: sticky; top: 12vh; display: block; width: 100%; height: 62vh; max-height: 640px; opacity: .85; transition: opacity .3s; }
.col-content:has(.scene) .viz { margin-top: -6vh; height: 70px; opacity: .35; max-width: 420px; }

/* spectrum, the resting graphic on the work page */
.viz { position: sticky; top: 30vh; display: flex; align-items: flex-end; gap: 4px; height: 140px; max-width: 520px; margin: 18vh auto 0; opacity: .5; transition: opacity .3s; }
.viz i { flex: 1; background: var(--fg-3); height: 20%; transform-origin: bottom; animation: bar 2.6s ease-in-out infinite alternate; }
.viz i:nth-child(3n) { animation-duration: 3.4s; } .viz i:nth-child(5n) { animation-duration: 1.9s; } .viz i:nth-child(7n) { animation-duration: 4.2s; }
@keyframes bar { 0% { transform: scaleY(.25); } 50% { transform: scaleY(1); } 100% { transform: scaleY(.45); } }
.viz i:nth-child(2n) { animation-delay: -1s; } .viz i:nth-child(3n) { animation-delay: -2s; } .viz i:nth-child(5n) { animation-delay: -.5s; } .viz i:nth-child(7n) { animation-delay: -3s; }

/* ---------- splash ---------- */
.splash { min-height: 100dvh; display: grid; place-items: center; text-align: center; padding: var(--pad); }
.wordmark {
  position: relative; margin: 0 auto; font-family: var(--font-logo); font-weight: 400; line-height: 1;
  font-size: clamp(64px, 13.5vw, 196px); letter-spacing: -0.01em; color: var(--ink);
  width: max-content; max-width: 100%;
  animation: jitter 5s steps(1) infinite, flicker 6s linear infinite;
}
.wordmark .w {
  display: inline-block; filter: url(#crt);
  text-shadow: .022em .022em 0 rgba(0,0,0,.55), -.01em 0 rgba(255,70,100,.22), .01em 0 rgba(70,200,255,.22), 0 0 .12em rgba(240,237,228,.35);
  /* scanlines and grain cut into the letters themselves */
  -webkit-mask-image: repeating-linear-gradient(to bottom, #000 0 2px, rgba(0,0,0,.55) 2px 3px), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .7 .45'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  mask-image: repeating-linear-gradient(to bottom, #000 0 2px, rgba(0,0,0,.55) 2px 3px), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .7 .45'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  -webkit-mask-composite: source-in; mask-composite: intersect; -webkit-mask-size: auto, 160px 160px; mask-size: auto, 160px 160px;
}
.wordmark .four { color: var(--accent); }
.wordmark::before, .wordmark::after {
  content: attr(data-text); position: absolute; inset: 0; opacity: 0; pointer-events: none; text-shadow: none;
  -webkit-mask-image: repeating-linear-gradient(to bottom, #000 0 2px, rgba(0,0,0,.4) 2px 3px); mask-image: repeating-linear-gradient(to bottom, #000 0 2px, rgba(0,0,0,.4) 2px 3px);
}
.wordmark::before { color: #ff2bd6; animation: glitchA 2.8s steps(1) infinite; }
.wordmark::after { color: #2bf0ff; animation: glitchB 2.8s steps(1) infinite; }
.wordmark:hover::before, .wordmark:hover::after { animation-duration: .7s; }
@keyframes jitter {
  0%, 100% { transform: translate(0,0); } 31% { transform: translate(0,0); } 31.5% { transform: translate(.012em, -.004em); } 32% { transform: translate(-.008em, .003em); } 32.5% { transform: translate(0,0); }
  64% { transform: translate(0,0); } 64.4% { transform: translate(-.015em, 0); } 64.8% { transform: translate(.006em, 0); } 65.2% { transform: translate(0,0); }
  88% { transform: translate(0,0) skewX(0); } 88.3% { transform: translate(.004em, 0) skewX(-2deg); } 88.6% { transform: translate(0,0) skewX(0); }
}
@keyframes flicker { 0%, 100% { opacity: 1; } 7% { opacity: .92; } 8% { opacity: 1; } 41% { opacity: 1; } 42% { opacity: .85; } 42.6% { opacity: 1; } 73% { opacity: .96; } 74% { opacity: 1; } }
/* a horizontal tear: slices of the whole splash jump sideways now and then */
.splash .centre { position: relative; animation: tear 9s steps(1) infinite; }
@keyframes tear {
  0%, 100% { clip-path: none; transform: none; } 55% { clip-path: none; transform: none; }
  55.3% { clip-path: inset(38% 0 48% 0); transform: translateX(.6%); } 55.6% { clip-path: inset(12% 0 80% 0); transform: translateX(-.5%); } 55.9% { clip-path: none; transform: none; }
}
/* the roll bar of an old monitor sweeping down the page */
.splash::after { content: ""; position: fixed; left: 0; right: 0; height: 18vh; top: -20vh; pointer-events: none; z-index: 2;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.045) 50%, transparent); animation: roll 7s linear infinite; }
@keyframes roll { to { top: 120vh; } }
.splash .centre::before { content: ""; position: absolute; left: 50%; top: 42%; width: min(900px, 90vw); height: 42vh; transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--accent) 14%, transparent) 0%, transparent 65%); pointer-events: none; z-index: -1; }
.markwrap { color: var(--accent); width: clamp(44px, 6vw, 72px); margin: clamp(1rem, 3vh, 1.8rem) auto 0; filter: url(#crt) drop-shadow(0 6px 14px rgba(0,0,0,.5)); animation: flicker 4.3s linear infinite; }
.mark { display: block; width: 100%; height: auto; }
.typed { margin-top: clamp(1.2rem, 4vh, 2.4rem); color: var(--fg-2); min-height: 1.6em; text-transform: lowercase; }
.cursor { display: inline-block; width: .6em; height: 1em; background: var(--fg-2); vertical-align: -.15em; margin-left: .2em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.splash .enter {
  display: inline-block; margin-top: clamp(1.4rem, 4vh, 2.6rem);
  font-family: var(--mono); font-size: 11px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--fg); border: 1px solid var(--line); padding: .85em 2.4em .8em 2.6em; position: relative;
  transition: border-color .25s, background .25s, letter-spacing .25s;
}
.splash .enter:hover { border-color: var(--fg); background: rgba(255,255,255,.04); letter-spacing: .34em; }
.splash .corner {
  position: fixed; left: max(var(--pad), env(safe-area-inset-left, 0px)); right: max(var(--pad), env(safe-area-inset-right, 0px));
  bottom: max(var(--pad), env(safe-area-inset-bottom, 0px)); display: flex; justify-content: space-between; gap: 1em; color: var(--fg-3);
}

/* ---------- project pages ---------- */
.head { margin-bottom: clamp(1.4rem, 4vh, 2.4rem); }
.head h1 { font-size: 13.5px; font-weight: 500; margin-top: .3em; }
.head .meta { color: var(--fg-2); margin-top: .35em; display: flex; flex-wrap: wrap; gap: .3em 1.6em; align-items: baseline; }
.media { margin: 0 0 2.2rem; display: grid; gap: var(--pad); }
.media.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .media.two { grid-template-columns: 1fr; } }
.media figure { margin: 0; min-width: 0; }
.media img { width: 100%; }
figcaption { font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--fg-3); margin-top: .6em; }
.links { display: flex; flex-wrap: wrap; gap: .6em 1.8em; margin: 1.4em 0 .6em; }
.links a, .btn { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); border-bottom: 1px solid var(--line); padding-bottom: .25em; }
.links a:hover, .btn:hover { color: var(--fg); border-bottom-color: var(--fg); }
.note { color: var(--fg-2); }
.back { margin-top: clamp(2.5rem, 8vh, 5rem); }

/* video poster that links out (iframes are not allowed on this host; real hosting gets embeds) */
.video { display: block; position: relative; margin: 0 0 2.2rem; max-width: 980px; overflow: hidden; }
.video img { width: 100%; transition: transform .6s ease, filter .4s; filter: saturate(.85) contrast(1.02); }
.video:hover img { transform: scale(1.015); filter: saturate(1); }
.video .play {
  position: absolute; left: var(--pad); bottom: var(--pad); display: inline-flex; align-items: center; gap: .9em;
  color: var(--fg); background: rgba(20,20,22,.72); backdrop-filter: blur(6px); padding: .7em 1.1em .65em; border: 1px solid var(--line);
}
.video .tri { width: 0; height: 0; border-left: 7px solid var(--fg); border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }

/* embeds (real hosting only) */
.embed { position: relative; aspect-ratio: 16 / 9; margin: 0 0 2.2rem; max-width: 980px; background: rgba(0,0,0,.25); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed.spotify { aspect-ratio: auto; height: 152px; max-width: 620px; }

/* audio player */
.player { margin: .4em 0 1.6em; max-width: 620px; border-top: 1px solid var(--line-2); }
.track { display: grid; grid-template-columns: 2em minmax(0, 1fr) 7.5em; grid-template-areas: "b t time" "b bar bar"; gap: .25em 1em; align-items: center; padding: .8em 0; border-bottom: 1px solid var(--line-2); }
.track .pp { grid-area: b; width: 22px; height: 22px; border: 1px solid var(--fg-2); background: none; cursor: pointer; position: relative; padding: 0; border-radius: 0; }
.track .pp::before { content: ""; position: absolute; left: 7px; top: 5px; border-left: 8px solid var(--fg); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.track.on .pp::before { border: 0; left: 6px; top: 6px; width: 3px; height: 9px; background: var(--fg); box-shadow: 5px 0 0 var(--fg); }
.track .pp:hover { border-color: var(--fg); }
.track .tt { grid-area: t; }
.track .time { grid-area: time; text-align: right; color: var(--fg-2); }
.track .bar { grid-area: bar; height: 14px; cursor: pointer; position: relative; }
.track .bar::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: var(--line); }
.track .fill { position: absolute; left: 0; top: 5px; height: 3px; width: 0; background: var(--fg); }

/* SJINE artwork */
.covers { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--pad); margin: 0 0 1.5em; max-width: 980px; }
.covers.three { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 760px; }
ul.plain { list-style: none; padding: 0; margin: .2em 0 1.5em; font-size: 12.5px; }
ul.plain li { margin: .1em 0; }
@media (max-width: 900px) { .covers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .covers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cover { margin: 0; min-width: 0; }
.cover .art { aspect-ratio: 1; border: 1px solid var(--line-2); display: grid; place-items: center; overflow: hidden; background: rgba(0,0,0,.18); }
.cover .art img { width: 100%; height: 100%; object-fit: cover; }
.cover .ph { color: var(--fg-3); text-align: center; padding: 1em; }
.cover figcaption { text-transform: none; letter-spacing: 0; font-family: var(--font); font-size: 12px; color: var(--fg); margin-top: .6em; line-height: 1.4; }

/* about + contact: drifting waveform in the empty space below */
.wave { display: block; width: 100%; max-width: 760px; height: 120px; margin: clamp(3rem, 10vh, 7rem) 0 0; overflow: visible; opacity: .55; }
.wave path { fill: none; stroke: var(--fg-3); stroke-width: 1; vector-effect: non-scaling-stroke; animation: wav 14s linear infinite; }
.wave .w2 { animation-duration: 9s; stroke: var(--fg-2); opacity: .5; }
.wave .w3 { animation-duration: 21s; opacity: .6; }
@keyframes wav { to { transform: translateX(-300px); } }
@media (prefers-reduced-motion: reduce) { .wave path { animation: none; } }

/* about + contact */
/* about: portrait and a spec sheet on the left, the story on the right */
.about .col-index { max-width: 420px; }
.portrait { aspect-ratio: 4/5; margin: 0 0 1.4rem; overflow: hidden; position: relative; }
.portrait img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.03); }
.portrait::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(to bottom, rgba(0,0,0,.12) 0 1px, transparent 1px 3px); pointer-events: none; mix-blend-mode: multiply; }
.spec { display: grid; grid-template-columns: 7.5em 1fr; gap: .4em 1em; margin: 0; border-top: 1px solid var(--line-2); padding-top: 1em; text-transform: none; letter-spacing: .02em; font-size: 11px; }
.spec dt { color: var(--fg-3); text-transform: uppercase; letter-spacing: .1em; }
.spec dd { margin: 0; color: var(--fg); }
.lede { font-size: clamp(18px, 1.9vw, 24px); line-height: 1.35; max-width: 30ch; margin: 0 0 2.4rem; color: var(--fg); text-wrap: balance; }
.about .reading h2:first-child { margin-top: 0; }
@media (max-width: 1000px) { .about .col-index { max-width: 420px; margin-bottom: 2rem; } }
.contact { display: grid; grid-template-columns: 7em 1fr; gap: .45em 1.5em; margin: 0 0 2em; max-width: var(--col); }
.contact dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); padding-top: .2em; }
.contact dd { margin: 0; }
.contact dd a { border-bottom: 1px solid var(--line); }
.contact dd a:hover { border-bottom-color: var(--fg); }

/* ---------- narrow screens ---------- */
@media (max-width: 1000px) {
  :root { --index-w: 1fr; }
  header.site .wrap { grid-template-columns: auto 1fr; }
  header.site .status { display: none; }
  .two-col { grid-template-columns: 1fr; }
  .col-index { position: static; }
  .col-content .viz, .col-content .scene { display: none; }
  .index .preview { display: none; }
  /* on project pages the full index would push the content down: show it only on the work page */
  .two-col .col-index .index:has(a[aria-current="page"]) { display: none; }
}
@media (max-width: 640px) {
  .index a { grid-template-columns: 2.4em 1fr 4em; }
  .index .r { grid-column: 2; grid-row: 2; }
  .index .y { grid-column: 3; grid-row: 1; }
  .index a { padding: .8em 0; row-gap: .15em; }
  .splash .corner { flex-direction: column; align-items: center; gap: .3em; text-align: center; }
  .contact { grid-template-columns: 1fr; gap: .1em; }
  .contact dt { margin-top: .9em; }
}
