/* ==========================================================
   AINA MUSTIELES — 1-bit / Berlin wall / node-graph edition
   ========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Archivo+Black&family=Space+Mono:ital,wght@0,400;0,700;1,400&family=VT323&display=swap');

:root {
  --bg: #0d0d0c;
  --bg-deep: #070707;
  --paper: #f1ede4;
  --ink: #111010;
  --acid: #d4ff2a;
  --pink: #ff3fa4;
  --muted: #8d887d;
  --line: rgba(241, 237, 228, .14);
  --poster: 'Anton', 'Impact', 'Arial Narrow Bold', sans-serif;
  --display: 'Archivo Black', 'Arial Black', sans-serif;
  --mono: 'Space Mono', ui-monospace, Menlo, monospace;
  --pixel: 'VT323', ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --concrete: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='4'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  color: var(--paper);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: crosshair;
  background-color: var(--bg);
  /* node-graph grid on a concrete wall */
  background-image:
    linear-gradient(rgba(212,255,42,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,255,42,.06) 1px, transparent 1px),
    linear-gradient(rgba(241,237,228,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241,237,228,.03) 1px, transparent 1px),
    var(--concrete);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px, 300px 300px;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--acid); color: var(--ink); }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 8px var(--gutter);
  background: var(--bg-deep); border-bottom: 1px solid var(--line);
  font-size: 13px; text-transform: uppercase; letter-spacing: .08em;
}
.logo { font-family: var(--pixel); font-size: 26px; line-height: 1; text-decoration: none; letter-spacing: .02em; }
.logo span { color: var(--pink); }
.nav { display: flex; gap: 4px; flex-wrap: wrap; list-style: none; }
.nav a { display: block; padding: 4px 10px; text-decoration: none; border: 1px solid transparent; }
.nav a:hover { border-color: var(--paper); }
.nav a[aria-current="page"] { background: var(--acid); color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; color: var(--acid); font: 22px var(--pixel); cursor: pointer; }
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--bg-deep); padding: 8px var(--gutter) 16px;
    border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; font-size: 16px; }
}

/* ---------- marquee: pixel ticker between dotted rules ---------- */
.ticker {
  overflow: hidden; white-space: nowrap;
  background: var(--bg-deep); color: var(--acid);
  font-family: var(--pixel); font-size: 28px; line-height: 1; text-transform: uppercase;
  padding: 10px 0 8px;
  border-block: 1px solid var(--line);
}
.ticker.pink { color: var(--pink); }
.ticker__track { display: inline-block; animation: tick 34s linear infinite; }
.ticker__track span { margin: 0 20px; }
.ticker__track span::after { content: '*'; margin-left: 40px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ==========================================================
   HERO — dithered portrait + dissolving name
   ========================================================== */
.hero {
  position: relative;
  min-height: calc(100vh - 44px);
  min-height: calc(100svh - 44px);
  padding: clamp(28px, 5vw, 56px) var(--gutter) 48px;
  display: flex; flex-direction: column; gap: 22px;
  overflow: hidden;
}
.hero--sub { min-height: min(78svh, 760px); }

.hero__portrait {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(66%, 1150px);
  z-index: 0;
}
/* the dither layer: a black plate + photo, run through the SVG dither filter */
.dz {
  position: absolute; inset: 0;
  background: #000;
  filter: url(#dz-acid);
}
.dz img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: var(--focus, 62% 30%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
}

/* torch: a pink, brighter copy that follows the cursor */
.torch {
  position: absolute; left: 0; top: 0; width: 240px; height: 240px; border-radius: 50%;
  overflow: hidden; pointer-events: none;
  background: var(--bg);
  opacity: 0; transition: opacity .25s;
}
.torch .dz { inset: auto; left: 0; top: 0; filter: url(#dz-pink); }
.torch.on { opacity: 1; }

.hero > *:not(.hero__portrait) { position: relative; z-index: 1; }

.hero__role {
  font-family: var(--pixel);
  font-size: clamp(26px, 2.6vw, 36px); line-height: 1;
  color: var(--acid);
  text-shadow: 0 0 14px rgba(212,255,42,.4);
  margin-bottom: auto;
  align-self: flex-start;
  background: var(--bg-deep); padding: 6px 10px 4px;
}
.hero__role .prompt { color: var(--pink); margin-right: .35em; }
.caret { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* the name: condensed poster type, pixelated by the same dither as the
   photo so both share one texture; bottom row dissolves into dots */
.title {
  font-family: var(--poster);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(56px, min(16vw, 25vh), 340px);
  line-height: .9;
  pointer-events: none;
  margin-top: 24px;
  position: relative;
}
.title__rows { filter: url(#dz-title); }
.title__row {
  display: block; width: max-content; white-space: nowrap;
  color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(var(--paper), var(--paper));
}
.title__row--fade { background-image: linear-gradient(180deg, var(--paper) 58%, #6a6a6a 100%); }
.title__row--echo {
  height: .34em; overflow: hidden; margin-top: .04em;
  background-image: linear-gradient(180deg, #8a8a8a, #1a1a1a 90%);
}
.title__row--indent { margin-left: .9em; }
/* little narrative-graph node hanging off the name */
.title .node {
  position: absolute; left: 0; top: -12px;
  font-family: var(--pixel); font-size: 20px; letter-spacing: .04em;
  text-transform: none; line-height: 1; padding: 4px 8px 3px;
  color: var(--ink); background: var(--acid);
  transform: translateY(-100%);
}
.title .node::after {
  content: ''; position: absolute; left: 14px; top: 100%;
  width: 1px; height: 12px; background: var(--acid);
}

.hero__meta { display: flex; flex-wrap: wrap; gap: 20px 36px; align-items: flex-end; }
.hero__meta .hero__place { flex-basis: 100%; }
.hero__place { font-family: var(--pixel); font-size: 22px; line-height: 1; color: var(--muted); }
.hero__blurb {
  max-width: 440px; padding-left: 16px; border-left: 2px solid var(--acid);
  color: #d9d4c9; font-size: 14px;
  text-shadow: 0 1px 8px rgba(0,0,0,.9);
}

.scroll-hint {
  position: absolute !important; right: var(--gutter); top: 24px;
  font-size: 12px; writing-mode: vertical-rl; letter-spacing: .2em; text-transform: uppercase;
  color: var(--acid); background: var(--bg-deep); padding: 8px 4px;
}

@media (max-width: 820px) {
  .hero { padding-top: 20px; }
  .hero__portrait { width: 100%; bottom: auto; height: 64%; }
  .dz img {
    -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
  }
  .title { font-size: clamp(48px, 19vw, 150px); }
  .title__row--indent { margin-left: 0; }
  .scroll-hint { display: none; }
  .torch { width: 160px; height: 160px; }
}

/* ---------- dot utilities (same 4px grid as the dither) ---------- */
.dots {
  color: transparent !important; -webkit-text-stroke: 0 !important;
  -webkit-background-clip: text; background-clip: text;
  background-image: radial-gradient(circle, var(--dot, var(--paper)) 1.25px, transparent 1.55px);
  background-size: 4px 4px;
}
.dotrule { border: 0; height: 3px; background: radial-gradient(circle, var(--line-strong) 1px, transparent 1.3px) 0 0 / 6px 3px repeat-x; }
:root { --line-strong: rgba(241, 237, 228, .38); }

/* ---------- buttons ---------- */
.btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block; font-family: var(--pixel); font-size: 24px; line-height: 1;
  text-decoration: none; padding: 10px 16px 8px;
  border: 1px solid var(--acid); background: var(--acid); color: var(--ink);
  transition: background .15s, color .15s;
  cursor: pointer;
}
.btn::before { content: '> '; }
.btn:hover { background: transparent; color: var(--acid); }
.btn.alt { background: transparent; color: var(--paper); border-color: var(--line-strong); }
.btn.alt:hover { border-color: var(--acid); color: var(--acid); }
.section--acid .btn { background: var(--ink); color: var(--acid); border-color: var(--ink); }
.section--acid .btn:hover { background: transparent; color: var(--ink); }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 112px) var(--gutter); position: relative; }
.section--black { background: var(--bg-deep); }
/* dithered seams between sections instead of hard lines */
.section--seam-off::before {
  content: ''; position: absolute; left: 0; right: 0; top: -24px; height: 24px; pointer-events: none;
  background: radial-gradient(circle, var(--seam) 1.5px, transparent 1.8px) 0 0 / 4px 4px;
  -webkit-mask-image: linear-gradient(transparent, #000); mask-image: linear-gradient(transparent, #000);
}
.section--black { --seam: var(--bg-deep); }
.section--acid { background: var(--acid); color: var(--ink); }

.kicker {
  display: inline-block; font-family: var(--pixel); font-size: 22px; line-height: 1;
  color: var(--acid); margin-bottom: 18px;
}
.kicker::before { content: '> '; color: var(--pink); }
.section--acid .kicker { color: var(--ink); }
.section--acid .kicker::before { color: var(--ink); }

/* section headings go through the same dither as the name */
.h2 {
  font-family: var(--poster); font-weight: 400; text-transform: uppercase;
  font-size: clamp(52px, 9vw, 150px); line-height: .92;
  margin-bottom: 44px;
  color: var(--paper);
  filter: url(#dz-title);
}
.h2 em { font-style: normal; }
.section--acid .h2 { color: #fff; filter: url(#dz-ink); }
.pixel-note { font-family: var(--pixel); font-size: 26px; color: var(--pink); line-height: 1.1; }

/* ---------- manifesto ---------- */
.manifesto {
  font-family: var(--poster); text-transform: uppercase;
  font-size: clamp(34px, 5.4vw, 84px); line-height: 1.02;
  max-width: 1250px;
}
.manifesto mark {
  color: var(--ink); padding: 0 .1em;
  background: var(--acid);
  box-shadow: .12em .12em 0 0 transparent;
}
.manifesto .pk { color: var(--pink); }
.manifesto .outline { color: var(--acid); }

/* ---------- game cards: dithered screens that develop into colour ---------- */
.cards {
  display: grid; gap: clamp(20px, 3vw, 36px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.card {
  position: relative;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  padding: 10px 10px 20px;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--acid); transform: translateY(-4px); }
.card__img {
  position: relative; aspect-ratio: 460 / 215; overflow: hidden; background: #000;
}
.card__img .dz {
  z-index: 2; filter: url(#dz-card);
  opacity: .28; mix-blend-mode: screen;
  transition: opacity .35s;
}
.card__img .dz img { -webkit-mask-image: none; mask-image: none; object-position: 50% 50%; }
.card__color {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) brightness(.7) contrast(1.05);
  transition: filter .35s;
}
.card:hover .card__color { filter: none; }
.card:hover .card__img .dz { opacity: 0; }
.card__num {
  position: absolute; top: 18px; left: 18px; z-index: 3;
  font-family: var(--pixel); font-size: 22px; line-height: 1;
  background: var(--acid); color: var(--ink); padding: 3px 7px 1px;
}
.card h3 {
  font-family: var(--poster); font-weight: 400; text-transform: uppercase; font-size: 32px;
  line-height: .95; margin: 16px 4px 8px;
}
.card p { font-size: 14px; margin: 0 4px; color: #cfcac0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 4px 0; list-style: none; }
.tags li {
  font-family: var(--pixel); font-size: 19px; line-height: 1;
  border: 1px solid var(--line-strong); padding: 3px 7px 1px; color: var(--paper);
}
.platforms { font-family: var(--pixel); font-size: 18px; line-height: 1.1; color: var(--muted); margin: 16px 4px 0; text-transform: uppercase; }
.card .dl {
  display: inline-block; margin: 16px 4px 0; font-family: var(--pixel); font-size: 22px; line-height: 1;
  text-decoration: none; color: var(--acid); border-bottom: 1px solid var(--acid);
}
.card .dl:hover { color: var(--pink); border-color: var(--pink); }

/* ---------- experience ---------- */
.timeline { list-style: none; position: relative; }
.job {
  display: grid; grid-template-columns: 200px 1fr; gap: 28px;
  padding: 32px 0; border-top: 1px solid var(--line);
}
.job:last-child { border-bottom: 1px solid var(--line); }
.job__when { font-family: var(--pixel); font-size: 22px; line-height: 1.1; color: var(--muted); }
.job__when b {
  display: inline-block; font-weight: 400; font-size: 26px;
  background: var(--acid); color: var(--ink); padding: 2px 8px 0; margin-bottom: 8px;
}
.job h3 {
  font-family: var(--poster); font-weight: 400; text-transform: uppercase;
  font-size: clamp(34px, 4.4vw, 60px); line-height: .95; letter-spacing: .01em;
  transition: color .2s;
}
.job:hover h3 { color: var(--acid); }
.job .where { font-family: var(--pixel); color: var(--pink); font-size: 26px; margin: 6px 0 12px; line-height: 1; }
.job ul { padding-left: 1.2em; max-width: 680px; }
.job li::marker { content: '→  '; color: var(--acid); }
@media (max-width: 640px) { .job { grid-template-columns: 1fr; gap: 8px; } }

.skills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.skills span {
  font-family: var(--pixel); font-size: 22px; line-height: 1;
  padding: 6px 10px 4px; border: 1px solid var(--line-strong);
}
.skills span:hover { border-color: var(--acid); color: var(--acid); }

/* ---------- contact ---------- */
.big-mail {
  font-family: var(--poster); font-size: clamp(30px, 6.4vw, 104px);
  line-height: 1.05; word-break: break-all; text-transform: uppercase;
  text-decoration: none; display: inline-block;
  background: radial-gradient(circle, var(--pink) 1.4px, transparent 1.7px) 0 92% / 4px 4px no-repeat;
  transition: background-size .35s;
}
.big-mail { background-image: linear-gradient(var(--pink), var(--pink)); background-size: 0 3px; background-position: 0 96%; }
.big-mail:hover { background-size: 100% 3px; color: var(--acid); }
.section--acid .big-mail:hover { color: var(--ink); background-image: linear-gradient(var(--ink), var(--ink)); }

.channels { list-style: none; border-top: 1px solid var(--line); }
.channels a {
  display: grid; grid-template-columns: 190px 1fr auto; align-items: center; gap: 20px;
  padding: 26px 0; border-bottom: 1px solid var(--line); text-decoration: none;
}
.channels .label { font-family: var(--pixel); font-size: 26px; color: var(--acid); line-height: 1; white-space: nowrap; }
.channels .value {
  font-family: var(--poster); text-transform: uppercase; font-size: clamp(28px, 5vw, 80px);
  line-height: 1; word-break: break-all; letter-spacing: .01em;
  transition: color .2s;
}
.channels .arrow { font-family: var(--pixel); font-size: 32px; color: var(--pink); }
.channels a:hover .value { color: var(--acid); }
.channels a:hover .arrow { color: var(--acid); }
@media (max-width: 720px) {
  .channels a { grid-template-columns: 1fr auto; }
  .channels .label { grid-column: 1 / -1; }
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.footer { background: var(--bg-deep); border-top: 1px solid var(--line); padding: 40px var(--gutter) 28px; overflow: hidden; }
.footer__big {
  font-family: var(--poster); text-transform: uppercase;
  font-size: clamp(64px, 17vw, 280px); line-height: .85;
  margin-bottom: 28px; user-select: none; white-space: nowrap;
  color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(180deg, #9a978f 0%, #262626 85%);
  filter: url(#dz-big);
}
.footer__row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
}
.footer__row a { text-decoration: none; margin-right: 18px; color: var(--paper); }
.footer__row a:hover { color: var(--acid); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
