/* matthiashickstein.com — cinema of plastic humanism */

@font-face {
  font-family: "Mono";
  src: url("fonts/DejaVuSansMono.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Mono";
  src: url("fonts/DejaVuSansMono-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #000;
  --paper: #fff;
  --gutter: 16px;
  --rule: 2px solid var(--ink);
  --violet: #9d00ff;  /* neon violet: cursor, hover, sparkles */
  --acid: #fff200;    /* acid yellow: text selection, plastic sheen */
  --small: 0.8125rem;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Mono", ui-monospace, "Courier New", monospace;
  font-size: 0.875rem;
  line-height: 1.5;
  font-feature-settings: "liga" 0;
}

::selection { background: var(--acid); color: var(--ink); }

a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover, a:focus-visible { background: var(--violet); color: var(--paper); text-decoration: none; outline: none; }

.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- header ---------- */
.top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: var(--gutter) 0;
  border-bottom: var(--rule);
}
.brand {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.top nav { display: flex; gap: 1rem; font-size: var(--small); }
.top nav a { text-decoration: none; }

/* ---------- statement ---------- */
.statement {
  padding: 3rem 0 2.5rem;
  border-bottom: var(--rule);
}
.statement h1 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(2.5rem, 13vw, 9.5rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  text-transform: lowercase;
  word-break: break-word;
  hyphens: none;
}
.cursor {
  display: inline-block;
  width: 0.55em;
  height: 0.8em;
  margin-left: 0.08em;
  background: var(--violet);
  vertical-align: baseline;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.statement h1.typing .cursor { animation: none; }       /* solid while the new line types itself */
.statement h1.fake { text-transform: none; }            /* "Are you fake?" keeps its capital A */

.meta {
  margin: 2rem 0 0;
  font-size: var(--small);
}
.meta span { display: block; }

/* ---------- video wall ---------- */
.wall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: var(--gutter) 0;
  border-bottom: var(--rule);
}
.tile {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--ink);
  overflow: hidden;
}
.tile img, .tile video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wall-note {
  grid-column: 1 / -1;
  margin: 0.25rem 0 0;
  font-size: 0.6875rem;
}
.wall-note .ast { margin-right: -0.2ch; } /* monospace gives the * a full cell; pull the text in */

/* liquid metal on hover (drawn by liquid.js) */
.tile canvas.liquid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
}

/* sparkles and hearts */
.spark { color: var(--violet); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* NEBNEB: floating mascot, fixed at the right middle, above the content */
.nebneb {
  position: fixed;
  right: 6px;
  top: 50%;
  width: 118px;
  height: 140px;
  transform: translateY(-50%);
  z-index: 50;
  pointer-events: none;
}
@media (min-width: 48rem) {
  .nebneb { right: 3vw; width: 210px; height: 250px; }
}

/* ---------- sections ---------- */
section { padding: 3rem 0; border-bottom: var(--rule); }
.label {
  margin: 0 0 1.5rem;
  font-size: var(--small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.label::before { content: "/ "; }

.casting p {
  margin: 0 0 1rem;
  max-width: 38rem;
  font-size: clamp(1.125rem, 3.6vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.casting p.sub {
  margin: 0;
  font-size: inherit;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.5;
}

/* ---------- works ---------- */
.works ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: w var(--total, 36);
}
.works li {
  counter-increment: w -1;
  display: grid;
  grid-template-columns: 3.25ch 1fr;
  gap: 0 1.25ch;
  padding: 0.35rem 0;
  border-top: 1px solid var(--ink);
  cursor: default;
}
.works li:last-child { border-bottom: 1px solid var(--ink); }
.works li::before {
  content: counter(w, decimal-leading-zero);
  font-size: var(--small);
  padding-top: 0.1em;
}
.works li:hover { background: var(--violet); color: var(--paper); }
.works .t { font-weight: 700; }

/* ---------- contact ---------- */
.contact .mail {
  display: inline-block;
  font-size: clamp(1.125rem, 5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  word-break: break-all;
}
.contact address {
  margin-top: 2rem;
  font-style: normal;
  font-size: var(--small);
}

/* ---------- footer ---------- */
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: var(--gutter) 0 2rem;
  font-size: var(--small);
}
.foot nav { display: flex; gap: 1rem; }

/* ---------- legal pages ---------- */
.legal { padding: 3rem 0 4rem; max-width: 46rem; }
.legal h1 {
  margin: 0 0 2rem;
  font-size: clamp(1.75rem, 7vw, 3rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.legal h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.legal p, .legal ul { margin: 0 0 1rem; }
.legal ul { padding-left: 2ch; }
.legal .todo { background: var(--ink); color: var(--paper); padding: 0 0.3ch; }

/* ---------- larger screens ---------- */
@media (min-width: 48rem) {
  :root { --gutter: 32px; }
  body { font-size: 0.9375rem; }
  section { display: grid; grid-template-columns: 14rem 1fr; gap: 2rem; padding: 4rem 0; }
  .statement { padding: 18vh 0 14vh; }
  .wall { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 32px 0; }
  .label { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; }
}

@media print {
  .cursor, .top nav, .wall, .nebneb { display: none; }
  .statement { padding: 2rem 0; }
}
