/* ── Reset & base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --paper:   #f3f1ec;   /* warm-neutral newsprint, not beige-luxe */
  --paper-2: #e9e6df;
  --ink:     #111110;
  --ink-dim: #6f6c64;
  --accent:  #ff2d00;   /* vermilion — the one loud thing */
  --line:    #111110;
  --max-w:   1280px;
  --font-display: 'Syne', system-ui, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;
  /* kaomoji: subsetted Noto first (clean lowercase ω), then broad system
     CJK/symbol fonts that fill every remaining glyph per-character */
  --font-kao: 'Noto Sans JP', 'Segoe UI Symbol', 'Yu Gothic UI', 'Meiryo',
              'Hiragino Kaku Gothic ProN', 'Apple Color Emoji', sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 4rem; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--accent); color: var(--paper); }

/* ── Utility ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.4rem;
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: .02em;
  cursor: pointer;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  transition: background .12s, color .12s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.btn-sm { padding: .45rem 1rem; font-size: .74rem; }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.25rem;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 1rem;
}

/* mono label, used everywhere small */
.label, .hero-eyebrow, .timeline-date, .card-tag,
.nav-links a, .contact-link, .kaomoji-track span, h4 {
  font-family: var(--font-mono);
}

/* placeholder when image is missing */
.placeholder {
  background:
    repeating-linear-gradient(45deg, var(--paper-2) 0 10px, transparent 10px 20px);
  border: 1.5px solid var(--ink);
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.placeholder::after {
  content: '[ img ]';
  font-family: var(--font-mono);
  color: var(--ink-dim);
  font-size: .8rem;
  letter-spacing: .1em;
}
/* hide the broken <img> (and its alt text) while a real image is missing */
.placeholder img { display: none; }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3 { line-height: 1; font-weight: 700; }

h1 {
  font-size: clamp(2.6rem, 8vw, 6.5rem);
  letter-spacing: -.03em;
  text-transform: uppercase;
  line-height: .92;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  letter-spacing: -.02em;
  text-transform: uppercase;
}

h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }
h4 {
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--ink-dim); margin-bottom: .75rem;
}

/* (top banner removed — the wide lily hero is the opening statement) */
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Kaomoji strip ──────────────────────────────────────────── */
.kaomoji-strip {
  width: 100%;
  overflow: hidden;
  padding: .5rem 0;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  background: var(--ink);
}
.kaomoji-strip:hover .kaomoji-track { animation-play-state: paused; }
.kaomoji-track {
  display: flex;
  width: max-content;
  animation: kaomoji-scroll 36s linear infinite;
}
@keyframes kaomoji-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.kaomoji-track span {
  flex: 0 0 auto;
  width: 132px;
  display: inline-flex;
  justify-content: center;
  font-family: var(--font-kao);
  font-size: .85rem;
  color: var(--paper);
  white-space: nowrap;
  transition: color .15s, opacity .2s;
}
.kaomoji-track span:hover { color: var(--accent); }

/* second strip — shoot-the-kaomoji minigame (cursor = crosshair) */
.strobe-strip {
  background: var(--paper);
  border-top: none;
  cursor: crosshair;
}
.strobe-strip .kaomoji-track { animation-duration: 40s; }
.strobe-strip .kaomoji-track span {
  color: var(--ink);
  cursor: crosshair;
  transition: color .1s, transform .12s;
}
/* a "shot" kaomoji: K.O. — red, knocked back */
.strobe-strip .kaomoji-track span.ko {
  color: var(--accent);
  transform: scale(1.25) rotate(-8deg);
}

/* third strip — thin marquee that becomes a swarm on hover */
.swarm-strip { position: relative; cursor: crosshair; }
/* in swarm mode the cells are absolutely positioned within the strip,
   so kill the track's scroll transform (it would offset them) */
.swarm-strip.swarming .kaomoji-track { animation: none; transform: none; }
.swarm-strip.swarming .kaomoji-track span {
  width: auto;
  transition: none;
  will-change: transform;
}

/* ── Nav ────────────────────────────────────────────────────── */
#nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem clamp(1rem, 4vw, 2.5rem);
  background: var(--paper);
  border-bottom: 1.5px solid var(--ink);
}

.nav-logo {
  position: relative; /* anchor the out-of-flow kaomoji */
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: -.02em;
  display: flex;
  align-items: center;
  user-select: none;
}

.logo-word { display: inline-block; }
/* absolutely positioned so swapping to a wider/narrower kaomoji never reflows the nav */
.logo-kao {
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-left: .5rem;
  white-space: nowrap;
  font-family: var(--font-kao);
  font-size: .82rem;
  font-weight: 400;
  color: var(--ink-dim);
  opacity: .6;
  transition: opacity .15s, color .15s;
}
.nav-logo:hover .logo-kao { opacity: 1; color: var(--accent); }

/* language toggle */
.lang-toggle {
  display: flex;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: .72rem;
  cursor: pointer;
  padding: 0;
  overflow: hidden;
}
.lang-toggle span {
  padding: .35rem .55rem;
  transition: background .12s, color .12s;
}
.lang-toggle span.active { background: var(--ink); color: var(--paper); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav-links a {
  font-size: .8rem;
  text-transform: lowercase;
  color: var(--ink);
  position: relative;
}
.nav-links a:not(.nav-cta):hover { color: var(--accent); }
.nav-cta {
  padding: .4rem 1rem;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--paper) !important;
  transition: background .12s;
}
.nav-cta:hover { background: var(--accent); border-color: var(--accent); }

.nav-burger { display: none; background: none; border: none; cursor: pointer; padding: .25rem; flex-direction: column; gap: 5px; }
.nav-burger span { display: block; width: 24px; height: 2px; background: var(--ink); }

/* ── Hero — full-bleed black field, lily at both ends, name overlaid ── */
#hero.hero-wide {
  position: relative;
  overflow: hidden;
  height: clamp(380px, 45vw, 640px);
  background: #000;
  border-bottom: 1.5px solid var(--ink);
}
/* two edge-anchored apparitions: each pinned to its screen edge at any width,
   black fills the gap; JS cycles them (fire left first → girl right → girl right) */
.hero-edge { position: absolute; top: 0; height: 100%; width: auto; opacity: 0; transition: opacity .3s linear; pointer-events: none; }
.hero-edge.on { opacity: 1; }
.hero-r { right: 0; }
.hero-l { left: 0; }
/* right lily: hovering her hides the native cursor and replaces it with a red pointer
   arrow that pulses ominously; a click opens the topology still in the lightbox (data-zoom). */
.hero-lily-fx { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-lily-zone { position: absolute; right: 0; top: 0; width: 36%; height: 100%; pointer-events: auto; }
.hero-lily-fx.active .hero-lily-zone { cursor: none; }
.hero-cursor { position: absolute; top: 0; left: 0; opacity: 0; transition: opacity .14s ease; will-change: transform; }
.hero-lily-fx.active .hero-cursor { opacity: 1; }
.hero-cursor svg { display: block; animation: hc-throb 1.3s ease-in-out infinite; }
.hero-cursor path { fill: var(--accent); stroke: #000; stroke-width: 1.2; stroke-linejoin: round; }
@keyframes hc-throb { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
@media (prefers-reduced-motion: reduce) { .hero-cursor svg { animation: none; } }
.hero-wide .hero-content {
  position: absolute; z-index: 2;
  left: clamp(1.2rem, 5vw, 4rem); bottom: clamp(1.4rem, 4vw, 2.6rem);
  display: flex; flex-direction: column; gap: .9rem;
  color: var(--paper);
}
.hero-wide h1 { color: var(--paper); }
.hero-eyebrow {
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.hero-sub {
  font-family: var(--font-mono);
  font-size: .85rem;
  color: #b8b4a8;
}
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: .5rem; }

/* ── Work / Portfolio ───────────────────────────────────────── */
#work {
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1rem, 4vw, 2.5rem);
}
/* NEWS — full-bleed responsive band: the cards fill the viewport width and wrap
   into clean rows; never a horizontal scrollbar. Column counts divide the card
   count evenly (8 → 4×2 → 2×4) so there's no ragged half-row at any width. */
#work { padding-inline: 0; }                        /* break out edge-to-edge — "truly wide" */
#work .section-header { padding-inline: clamp(1rem, 4vw, 2.5rem); }
#work .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: visible;
}
@media (max-width: 720px) { #work .grid { grid-template-columns: repeat(2, 1fr); } }
.section-sub {
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: lowercase;
  color: var(--ink-dim);
}
.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1.5px solid var(--ink);
  border-left: 1.5px solid var(--ink);
}
.card {
  flex: 1 1 270px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  background: var(--paper);
  cursor: pointer;
  transition: background .12s;
}
.card:hover { background: var(--paper-2); }
.card.hidden { display: none; }

.card-img-wrap {
  position: relative;
  aspect-ratio: 1/1;
  background: #fff;
  overflow: hidden;
  border-bottom: 1.5px solid var(--ink);
}
.card-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s;
}
.card:hover .card-img-wrap img { transform: scale(1.03); }

/* letterboxed (full-frame) cards — for wide storyboard/cinematic frames */
.card-img-wrap.letterbox { background: var(--ink); }
.card-img-wrap.letterbox img { object-fit: contain; }
.card:hover .card-img-wrap.letterbox img { transform: none; }
.card-slideshow { width: 100%; height: 100%; }
.card-slideshow img { width: 100%; height: 100%; }

/* video cards — lightweight looping preview */
.card-img-wrap video.card-video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  background: var(--ink);
}
.card-overlay { position: absolute; top: .6rem; left: .6rem; }
/* "case study →" hint on link cards */
.card-cta {
  position: absolute;
  bottom: .6rem; right: .6rem;
  font-family: var(--font-mono);
  font-size: .68rem;
  background: var(--accent);
  color: var(--paper);
  padding: .25rem .55rem;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .18s, transform .18s;
}
.card:hover .card-cta { opacity: 1; transform: none; }
.card-tag {
  background: var(--ink);
  color: var(--paper);
  font-size: .66rem;
  text-transform: lowercase;
  padding: .2rem .55rem;
}
.card-body { padding: .9rem 1rem 1.1rem; }
.card-body h3 { margin-bottom: .25rem; }
.card-body p { font-family: var(--font-mono); font-size: .78rem; color: var(--ink-dim); }

/* ── About ──────────────────────────────────────────────────── */
#about {
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1rem, 4vw, 2.5rem);
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  background: var(--paper-2);
}
.about-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: start;
}
.about-text { display: flex; flex-direction: column; gap: 1.1rem; }
.about-text h2 { margin-bottom: .5rem; }
.about-lead { font-size: 1.3rem; line-height: 1.35; font-weight: 500; }
.about-text > p:not(.about-lead) { font-family: var(--font-mono); font-size: .85rem; line-height: 1.7; color: #3a382f; }

.skills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1.5px solid var(--ink);
}
.skill-group ul li {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: #3a382f;
  padding: .15rem 0;
}
.about-photo {
  border: 1.5px solid var(--ink);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: #fff;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scale(1.35); transform-origin: 32% 45%; }
.about-photo.placeholder { min-height: 380px; }

/* ── CV / Experience ────────────────────────────────────────── */
#cv {
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1rem, 4vw, 2.5rem);
  max-width: var(--max-w);
  margin: 0 auto;
}
.timeline { margin-bottom: 2.5rem; }
.timeline-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  padding: 1.75rem 0;
  border-bottom: 1.5px solid var(--ink);
}
.timeline-item:first-child { border-top: 1.5px solid var(--ink); }
.timeline-meta { display: flex; flex-direction: column; gap: .5rem; }
.timeline-date { font-size: .8rem; color: var(--ink-dim); }
.timeline-tag {
  font-family: var(--font-mono);
  display: inline-block;
  padding: .12rem .5rem;
  font-size: .66rem;
  text-transform: lowercase;
  width: fit-content;
  border: 1.5px solid var(--accent);
  color: var(--accent);
}
.timeline-body { display: flex; flex-direction: column; gap: .5rem; }
.timeline-body h3 { font-size: 1.15rem; text-transform: uppercase; letter-spacing: -.01em; }
.timeline-role { font-family: var(--font-mono); font-size: .8rem; color: var(--ink-dim); }
.timeline-body ul { display: flex; flex-direction: column; gap: .3rem; margin-top: .25rem; }
.timeline-body ul li {
  font-family: var(--font-mono);
  font-size: .82rem;
  line-height: 1.55;
  color: #3a382f;
  padding-left: 1rem;
  position: relative;
}
.timeline-body ul li::before { content: '>'; position: absolute; left: 0; color: var(--accent); }

/* featured project inside an experience entry (e.g. DATA DEFENDERS under freelance) */
.cv-feature { display: block; border: 1.5px solid var(--ink); background: var(--paper); padding: .85rem 1rem; margin-top: .7rem; transition: border-color .15s; }
.cv-feature:hover { border-color: var(--accent); }
.cv-feature .timeline-tag { margin-bottom: .45rem; }
.cv-feature h4 { font-size: .95rem; text-transform: uppercase; letter-spacing: -.01em; }
.cv-feature p { font-family: var(--font-mono); font-size: .8rem; line-height: 1.55; color: #3a382f; margin-top: .35rem; }
/* selected clients as labelled chip clusters (replaces the comma-list dump) */
.cv-clients { display: flex; flex-direction: column; gap: .8rem; margin-top: .85rem; }
.cv-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.cv-cluster-label { width: 100%; font-family: var(--font-mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-dim); margin-bottom: .15rem; }
.cv-chip { font-family: var(--font-mono); font-size: .72rem; padding: .2rem .55rem; border: 1.5px solid var(--ink); color: var(--ink); background: var(--paper); white-space: nowrap; }

.cv-note {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--ink-dim);
}

/* ── Tools / Stack ──────────────────────────────────────────── */
#stack {
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1rem, 4vw, 2.5rem);
  max-width: var(--max-w);
  margin: 0 auto;
  border-top: 1.5px solid var(--ink);
}
.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}
.stack-col h4 { margin-bottom: 1rem; }
.stack-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.stack-list li {
  font-family: var(--font-mono);
  font-size: .8rem;
  border: 1.5px solid var(--ink);
  padding: .35rem .7rem;
  transition: background .12s, color .12s;
  cursor: default;
}
.stack-list li:hover { background: var(--ink); color: var(--paper); }
@media (max-width: 700px) { .stack-grid { grid-template-columns: 1fr; } }

/* ── Contact ────────────────────────────────────────────────── */
#contact {
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1rem, 4vw, 2.5rem);
  border-top: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.contact-inner {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid var(--paper);
}
.contact-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.contact-avatar.placeholder {
  min-height: 0;
  border: 1.5px dashed var(--paper);
  background: none;
}
.contact-avatar.placeholder::after { content: '◕‿◕'; font-family: var(--font-kao); font-size: .9rem; color: var(--paper); }
.contact-inner h2 { color: var(--paper); }
.contact-inner p { font-family: var(--font-mono); font-size: .9rem; color: #b8b4a8; max-width: 48ch; }
.contact-links { display: flex; gap: 0; flex-wrap: wrap; }
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.1rem;
  border: 1.5px solid var(--paper);
  border-right-width: 0;
  font-size: .82rem;
  text-transform: lowercase;
  color: var(--paper);
  transition: background .12s, color .12s;
}
.contact-link:last-child { border-right-width: 1.5px; }
.contact-link:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  padding: 1.5rem clamp(1rem, 4vw, 2.5rem);
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--paper);
  background: var(--ink);
  border-top: 1.5px solid #2a2a26;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Lightbox ───────────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(17,17,16,.94);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox img, .lightbox video {
  max-width: 90vw; max-height: 85vh; object-fit: contain;
  border: 1.5px solid var(--paper);
}
.lightbox video { display: none; background: #000; }
.lightbox.show-video img { display: none; }
.lightbox.show-video video { display: block; }
.lightbox-close {
  position: absolute; top: 1.25rem; right: 1.75rem;
  background: none; border: none; color: var(--paper);
  font-family: var(--font-mono); font-size: 2rem; cursor: pointer; line-height: 1;
}
.lightbox-close:hover { color: var(--accent); }

/* ── World quicklook — page-lite overlay (opens over the scroll) ─────── */
.wl { position: fixed; inset: 0; z-index: 190; opacity: 0; visibility: hidden;
      transition: opacity .28s ease, visibility .28s; }
.wl.open { opacity: 1; visibility: visible; }
.wl-scrim { position: absolute; inset: 0; background: rgba(10,10,9,.62);
  backdrop-filter: blur(7px) saturate(.85); -webkit-backdrop-filter: blur(7px) saturate(.85); }
.wl-panel {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, calc(-50% + 22px));
  width: min(1760px, 97vw); height: auto; max-height: 92vh;
  overflow-y: auto; overflow-x: hidden;
  background: var(--ink); color: var(--paper);
  border: 1.5px solid var(--paper);
  padding: clamp(1.4rem, 3vw, 2.8rem);
  opacity: 0; transition: transform .3s cubic-bezier(.2,.7,.2,1), opacity .3s;
}
.wl.open .wl-panel { transform: translate(-50%, -50%); opacity: 1; }
.wl-close {
  position: sticky; top: 0; float: right; margin: -.4rem -.4rem 0 1rem;
  background: none; border: none; color: var(--paper);
  font-family: var(--font-mono); font-size: 2rem; line-height: 1;
  cursor: pointer; z-index: 3; transition: color .12s;
}
.wl-close:hover { color: var(--accent); }
.wl-head { margin-bottom: 1.6rem; border-bottom: 1.5px solid rgba(243,241,236,.22); padding-bottom: 1.1rem; }
.wl-title { font-family: var(--font-display); font-size: clamp(2.4rem, 7vw, 4.6rem);
  text-transform: uppercase; letter-spacing: -.03em; line-height: .9; }
.wl-title .os { color: var(--accent); }
.wl-premise { font-family: var(--font-mono); font-size: clamp(.82rem, 2vw, 1.02rem);
  color: #cfccc3; max-width: 60ch; margin-top: .8rem; line-height: 1.55; }
.wl-premise:empty { display: none; }
.wl-craft { font-family: var(--font-mono); font-size: .72rem; color: var(--ink-dim);
  max-width: 72ch; margin-top: .7rem; line-height: 1.6; }
.wl-craft:empty { display: none; }
.wl-meta { display: block; margin-top: .8rem; font-family: var(--font-mono);
  font-size: .68rem; letter-spacing: .08em; text-transform: lowercase; color: var(--accent); }
.wl-credit { font-family: var(--font-mono); font-size: .66rem; color: var(--ink-dim);
  text-transform: lowercase; letter-spacing: .02em; margin-top: .5rem; }
.wl-credit:empty { display: none; }
.wl-credit a { color: var(--paper); text-decoration: underline; text-underline-offset: 2px; transition: color .12s; }
.wl-credit a:hover { color: var(--accent); }
.wl-strip { margin: 1.5rem 0; }
/* no category titles — only a small contextual note where it earns its place (v0) */
.wl-strip-note { font-family: var(--font-mono); font-size: .64rem; color: var(--ink-dim);
  text-transform: lowercase; letter-spacing: .03em; margin-bottom: .55rem; }
.wl-strip-note::before { content: ''; display: inline-block; width: 6px; height: 6px;
  margin-right: .5rem; vertical-align: middle; background: var(--accent); }

/* cell = fixed box, cover-cropped (hero & wall). item = natural width (rails). */
.wl-cell, .wl-item { position: relative; background: #000; border: 0; padding: 0; cursor: pointer; overflow: hidden; }
.wl-cell { width: 100%; height: 100%; }
.wl-cell video, .wl-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wl-cell.wl-img, .wl-item.wl-img, .wl-vidzoom { cursor: zoom-in; }
.wl-cell:hover img, .wl-item.wl-img:hover img { opacity: .9; transition: opacity .2s; }

/* small caption pinned to a tile — only where it explains the "how" */
.wl-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: .5rem .55rem .4rem;
  font-family: var(--font-mono); font-size: .58rem; line-height: 1.3; letter-spacing: .02em;
  color: #e7e4db; text-transform: lowercase; text-align: left; pointer-events: none;
  background: linear-gradient(0deg, rgba(17,17,16,.92), rgba(17,17,16,0)); }

/* v0 strobe reel — a square that flips through the rough fodder; freezes on hover */
.wl-reel { aspect-ratio: 1; }
.wl-reel img { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.wl-reel::after { content: ''; position: absolute; top: .45rem; right: .45rem; width: 7px; height: 7px;
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px rgba(17,17,16,.6); animation: wl-blink 1.1s steps(2) infinite; }
.wl-reel:hover::after { animation: none; opacity: .35; }
@keyframes wl-blink { 0%,50% { opacity: 1; } 50.01%,100% { opacity: .2; } }

/* 01 — the drive: gameplay hero (one feature loop + two stacked) */
.wl-hero { display: grid; grid-template-columns: 1.75fr 1fr; gap: .5rem; height: min(46vh, 460px); }
.wl-hero-main { min-height: 0; }
.wl-hero-side { display: grid; grid-auto-rows: 1fr; gap: .5rem; min-height: 0; }

/* rails — natural width, no crop (full-figure work stays whole) */
.wl-rail { display: flex; gap: .55rem; height: 282px; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x proximity; padding-bottom: .6rem; }
.wl-rail.flush { gap: 0; }   /* continuous filmstrip — images butt together, no separation */
.wl-item { flex: 0 0 auto; height: 100%; scroll-snap-align: start; }
.wl-item video, .wl-item img { height: 100%; width: auto; display: block; }

/* reveal (wireframe → render on hover) — works in cell or rail */
.wl-item.wl-reveal { aspect-ratio: 1; }
.wl-reveal video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wl-reveal .rv-over { transition: opacity .5s ease; }
.wl-reveal:hover .rv-over { opacity: 0; }

/* 05 — v0 · process: the wall. dense packed grid, desaturated until hovered */
.wl-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  grid-auto-rows: 108px; grid-auto-flow: dense; gap: 4px; }
.wl-wall .wl-cell { height: 108px; }
.wl-wall .wl-cell.feature { grid-column: span 2; grid-row: span 2; height: 100%; }
.wl-strip.lite .wl-cell img { filter: grayscale(.55) brightness(.88); transition: filter .25s, transform .25s; }
.wl-strip.lite .wl-cell:hover img { filter: none; transform: scale(1.04); }

.wl-rail::-webkit-scrollbar { height: 6px; }
.wl-rail::-webkit-scrollbar-thumb { background: rgba(243,241,236,.22); border-radius: 3px; }
.wl-lock { overflow: hidden; }
@media (max-width: 700px) {
  .wl-panel { width: 97vw; height: auto; max-height: 93vh; }
  .wl-hero { grid-template-columns: 1fr; height: auto; }
  .wl-hero-side { grid-auto-flow: column; grid-auto-columns: 1fr; height: 120px; }
  .wl-rail { height: 210px; }
  .wl-wall { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); grid-auto-rows: 88px; }
  .wl-wall .wl-cell { height: 88px; }
}
@media (prefers-reduced-motion: reduce) { .wl, .wl-panel { transition: opacity .2s; }
  .wl.open .wl-panel { transform: translate(-50%, -50%); } }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  #hero { grid-template-columns: 1fr; align-items: start; }
  .hero-reel { order: -1; aspect-ratio: 16/10; max-height: 320px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 300px; aspect-ratio: 1; }
  .skills { grid-template-columns: 1fr 1fr; }
  .timeline-item { grid-template-columns: 1fr; gap: .6rem; }
  .timeline-meta { flex-direction: row; align-items: center; gap: .75rem; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; inset: 0;
    background: var(--paper);
    align-items: center; justify-content: center;
    gap: 2rem; font-size: 1.3rem;
  }
  .nav-burger { display: flex; z-index: 101; }
  .skills { grid-template-columns: 1fr; }
  .contact-links { flex-direction: column; }
  .contact-link { border-right-width: 1.5px !important; border-bottom-width: 0; }
  .contact-link:last-child { border-bottom-width: 1.5px; }
}

/* ===== Thematic bands (landing restructure) ===== */
.band { border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.band + .kaomoji-strip, .kaomoji-strip + .band { border-top: none; }
.band-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem 1.2rem; padding: .9rem clamp(1rem, 4vw, 2.5rem); }
a.band-head:hover .band-title { color: var(--accent); }
.band-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.3rem, 3vw, 2rem); text-transform: uppercase; letter-spacing: -.01em; }
.band-sub { font-family: var(--font-mono); font-size: .72rem; color: var(--ink-dim); text-transform: lowercase; }
.band-more { margin-left: auto; font-family: var(--font-mono); font-size: .72rem; color: var(--ink-dim); text-transform: lowercase; transition: color .12s; }
a.band-head:hover .band-more { color: var(--accent); }

/* DATA DEFENDERS sprite strip */
.band-aws .band-strip { display: block; background: var(--ink); overflow: hidden; border-top: 1.5px solid var(--ink); }
.sprite-track { display: flex; align-items: flex-end; width: max-content; padding: .9rem 0 .7rem; animation: marquee-scroll 38s linear infinite; }
.band-aws:hover .sprite-track { animation-play-state: paused; }
.sprite-track img { height: clamp(70px, 9vw, 120px); width: auto; image-rendering: pixelated; margin: 0 clamp(.4rem, 1.2vw, 1rem); }

/* Weeaboos Dream — horror beat 'em up */
.band-weeaboo { position: relative; overflow: hidden; }
/* concept credit — mono/dim like the sub, but NOT lowercased so the name keeps its capitals */
.band-credit { font-family: var(--font-mono); font-size: .68rem; color: var(--ink-dim); }

/* a horizontal banner like the AWS one: fight clips parade on a brownish checkerboard,
   with a red key-art panel + a red→transparent gradient washing the left (mirrors AWS blue).
   --wb-tile / --wb-dark expose the checker palette */
.wb-strip { --wb-dark: #15110f; --wb-tile: #2a211c; --wb-cell: 34px;
  position: relative; overflow: hidden; height: clamp(190px, 25vw, 320px);
  background-color: var(--wb-dark);
  background-image:
    radial-gradient(120% 130% at 50% 50%, rgba(0, 0, 0, 0) 56%, rgba(0, 0, 0, .5) 100%),
    conic-gradient(var(--wb-tile) 90deg, var(--wb-dark) 90deg 180deg, var(--wb-tile) 180deg 270deg, var(--wb-dark) 270deg);
  background-size: 100% 100%, calc(var(--wb-cell) * 2) calc(var(--wb-cell) * 2);
  border-top: 1.5px solid var(--ink); }

/* sprite stage — two fighters on the right, anchored bottom-LEFT (the sprites' anchor point),
   sitting ON TOP of the red gradient (z-index 3). each cycles its states in JS */
/* spread the two fighters EVENLY across the stage with breathing room (don't cram them to the
   right edge) — space-evenly keeps equal air at both ends + between, framing across the width,
   and opens up on wider screens. extra padding-right guarantees air on the right edge. */
.wb-stage { position: absolute; left: 34%; right: 0; top: 0; bottom: 0; z-index: 3; display: flex; align-items: flex-end; justify-content: space-evenly; gap: clamp(.5rem, 2vw, 1.5rem); padding-right: clamp(1rem, 3.5vw, 3.5rem); padding-bottom: clamp(.4rem, 1.5vw, 1rem); }
/* the guy (LEFT): pink-fatality is wider (1.6:1) — a fixed box (width = 1.6×height) + object-fit
   contain + object-position left bottom anchors every clip to the same bottom-left point. */
#wbGuy { flex: 0 0 auto; align-self: flex-end; width: clamp(255px, 33vw, 420px); height: clamp(160px, 21vw, 262px); object-fit: contain; object-position: left bottom; image-rendering: pixelated; }
/* MissNasty (RIGHT): consistent ~382x372 canvas, fixed box, anchored bottom-left like the guy */
#wbMiss { flex: 0 0 auto; align-self: flex-end; width: clamp(165px, 21.5vw, 270px); height: clamp(160px, 21vw, 262px); object-fit: contain; object-position: left bottom; image-rendering: pixelated; }

/* the red field — red→transparent gradient (the AWS blue, in red), behind the sprites */
.wb-grad { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, #1f0604 0%, #7c1810 22%, rgba(150, 40, 28, .45) 44%, rgba(150, 40, 28, 0) 62%); }

/* red-cliff key-art video on the left; right edge masked so it melts into the gradient + stage.
   MUST stay object-fit:cover — the video fills the box so its right edge sits exactly at the
   fully-faded mask border. (contain letterboxes it → on zoom-out the edge floats inward into the
   half-faded zone and the hard edge shows.) */
.wb-keyart { position: absolute; left: 0; top: 0; bottom: 0; width: clamp(42%, 44vw, 48%); height: 100%; z-index: 2; display: block; object-fit: cover; object-position: center;
  -webkit-mask-image: linear-gradient(90deg, #000 60%, transparent 100%);
          mask-image: linear-gradient(90deg, #000 60%, transparent 100%); }

/* blood splatters — rapid bursts fired over the kill clips */
.wb-blood { position: absolute; pointer-events: none; z-index: 4; image-rendering: pixelated; opacity: 1; transition: opacity .14s linear; will-change: transform, opacity; filter: drop-shadow(0 0 1px rgba(255,45,0,.5)); }

@media (max-width: 560px) {
  .wb-strip { height: clamp(150px, 42vw, 220px); }
  .wb-keyart { width: 40%; }
  .wb-stage { left: 36%; gap: clamp(.5rem, 4vw, 1.5rem); padding-right: clamp(.5rem, 3vw, 1.5rem); }
  #wbMiss { width: clamp(100px, 26vw, 165px); height: clamp(96px, 25vw, 160px); }
  #wbGuy { width: clamp(170px, 38vw, 240px); height: clamp(96px, 28vw, 160px); }
}

/* (personal worlds merged into the WORLDS field — see .pc-mosaic) */

/* Illustration & concept band */
.illu-row { display: flex; gap: 0; overflow-x: auto; scrollbar-width: thin; border-top: 1.5px solid var(--ink); background: var(--ink); }
.illu-row a { flex: 0 0 auto; cursor: zoom-in; }
.illu-row img { height: clamp(220px, 30vw, 360px); width: auto; display: block; }

/* pixelcore — cycling mosaic */
.pc-title { text-transform: lowercase; }
.pc-mosaic { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); grid-auto-flow: dense; gap: 0; background: var(--ink); border-top: 1.5px solid var(--ink); }
.pc-slot { position: relative; overflow: hidden; display: block; }
.pc-slot video, .pc-slot img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; display: block; image-rendering: pixelated; transition: opacity .5s; }
.pc-slot.big { grid-column: span 2; grid-row: span 2; }
/* world capitals: labeled, fixed, clickable */
.world-tile { cursor: pointer; }
.world-tile:hover video, .world-tile:hover img { transform: scale(1.03); transition: transform .3s, opacity .5s; }
.world-tile.sanitary video { object-fit: cover; object-position: center 30%; background: #000; }
.world-tile.soon img { filter: grayscale(.4); opacity: .85; }
/* reveal tile: two stacked clips, top (wireframe) fades on hover/touch-toggle → render */
.world-tile.reveal { background: #000; }
.world-tile.reveal video { position: absolute; inset: 0; }
.world-tile.reveal .rv-over { transition: opacity .5s ease; }
.world-tile.reveal:hover .rv-over,
.world-tile.reveal.revealed .rv-over { opacity: 0; }
/* lite-world fragment label — compact, for 1x1 page-less showcase squares */
.pc-name.lite { padding: .35rem .5rem; font-size: .7rem; }
.pc-name.lite small { font-size: .5rem; }
.pc-name {
  position: absolute; left: 0; bottom: 0; right: 0; padding: .55rem .7rem; z-index: 2;
  background: linear-gradient(0deg, rgba(17,17,16,.85), rgba(17,17,16,0));
  color: var(--paper); font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: .02em;
}
.pc-name .os { color: var(--accent); }
.pc-name small { display: block; font-family: var(--font-mono); font-size: .62rem; color: #b8b4a8; text-transform: lowercase; font-weight: 400; }
.pc-cap {
  position: absolute; inset: 0; display: flex; align-items: flex-end;
  padding: .6rem; background: linear-gradient(0deg, rgba(17,17,16,.88) 0%, rgba(17,17,16,0) 65%);
  font-family: var(--font-mono); font-size: .58rem; line-height: 1.5; color: var(--paper);
  white-space: pre-line; opacity: 0; transition: opacity .4s; pointer-events: none;
}
.pc-slot:hover .pc-cap { opacity: 1; }
@media (max-width: 520px) { .pc-mosaic { grid-template-columns: repeat(3, 1fr); } }

/* DATA DEFENDERS v2 — heroes performing on the checker, horde strip below */
.aws-heroes {
  display: flex; justify-content: center; align-items: flex-end; gap: clamp(5rem, 14vw, 13rem);
  padding: clamp(1rem, 2.5vw, 1.75rem) clamp(1rem, 4vw, 3rem) .9rem;
  background-color: #e9eafd;
  background-image: conic-gradient(#d2d4f7 90deg, #e9eafd 90deg 180deg, #d2d4f7 180deg 270deg, #e9eafd 270deg);
  background-size: 56px 56px;
  border-top: 1.5px solid var(--ink);
  /* ONE shared pixel scale (k px per source pixel), fluid 768px→1440px viewport */
  --k: clamp(0.30px, calc(0.30px + 0.18 * (100vw - 768px) / 672), 0.48px);
}
.aws-hero { display: flex; flex-direction: column; align-items: center; gap: .5rem; min-width: 0; flex: 0 0 auto; }
/* Each sprite is cropped to its character's content box (canvas padding discarded)
   and anchored bottom-left, so all three share ONE scale and stand feet-on-a-line
   regardless of canvas size. Crop boxes span every move, so attacks never clip. */
.aws-hero .sprite {
  position: relative; overflow: visible; /* don't clip frames that reach past the rest-pose box */
  width: calc(var(--cw) * var(--k));
  height: calc(var(--ch) * var(--k));
}
.aws-hero .sprite img {
  position: absolute; left: 0; top: 0; margin: 0;
  width: calc(var(--iw) * var(--k)); height: calc(var(--ih) * var(--k));
  max-width: none; max-height: none; /* defeat the global img{max-width:100%} reset that squashed width */
  transform: translate(calc(var(--ox) * var(--k) * -1), calc(var(--oy) * var(--k) * -1));
  image-rendering: pixelated;
}
/* measured: --cw/ch crop box · --ox/oy crop origin · --iw/ih full canvas (source px) */
.aws-hero[data-prefix="it"]  { --cw: 424; --ch: 404; --ox: 32; --oy: 76;  --iw: 1004; --ih: 512; } /* PATchi   */
.aws-hero[data-prefix="bdm"] { --cw: 372; --ch: 472; --ox: 64; --oy: 40;  --iw: 852;  --ih: 544; } /* Zhangela */
.aws-hero[data-prefix="exe"] { --cw: 456; --ch: 468; --ox: 20; --oy: 208; --iw: 792;  --ih: 704; } /* EXECbot  */
.aws-hero span { font-family: var(--font-mono); font-size: .64rem; text-transform: lowercase; color: #3c3f6e; }
@media (max-width: 560px) { .aws-hero:nth-child(3) { display: none; } }
.sprite-track img.drop { height: clamp(34px, 4vw, 52px); align-self: center; margin: 0 clamp(.7rem, 2vw, 1.6rem); }

/* DATA DEFENDERS v3 — title banner: logo over gradient over scrolling stages */
.aws-tb { position: relative; display: block; overflow: hidden; height: clamp(170px, 24vw, 300px); background: var(--ink); }
.aws-tb-stage { position: absolute; inset: 0; }
.aws-tb-track { display: flex; width: max-content; height: 100%; animation: marquee-scroll 46s linear infinite; }
.aws-tb-track img { height: 100%; width: auto; display: block; image-rendering: pixelated; }
/* the three leads running through the level — small (true in-game scale), on the
   right, sitting between the stage and the gradient so the blue veil is over them */
.aws-tb-heroes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.aws-tb-heroes img { position: absolute; image-rendering: pixelated; max-width: none; }  /* size/left/bottom set by JS */
@media (max-width: 600px) { .aws-tb-heroes { display: none; } }
.aws-tb-grad { position: absolute; inset: 0; background: linear-gradient(90deg, #040a33 0%, #0a1f8f 22%, rgba(18,47,206,.45) 44%, rgba(18,47,206,0) 62%); }
.aws-tb-logo { position: absolute; z-index: 2; left: clamp(1rem, 4vw, 3.5rem); top: 50%; transform: translateY(-50%); width: min(340px, 38%); height: auto; }
.aws-tb-sub { position: absolute; z-index: 2; left: clamp(1rem, 4vw, 3.5rem); bottom: .7rem; font-family: var(--font-mono); font-size: .68rem; text-transform: lowercase; color: var(--paper); opacity: .85; }
.aws-tb:hover .aws-tb-logo { filter: drop-shadow(0 0 12px rgba(255,45,0,.55)); }

/* idle popuppy mascot — right of the logo, over the blue gradient, top layer.
   JS bbox-crops it (the sprite lives in a big mostly-empty 976×712 canvas) into
   the frame, plays attack on cursor proximity and dead on click. */
.aws-pup { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%);
  left: clamp(13rem, 44%, 30rem); right: clamp(1rem, 4vw, 3rem);
  display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); pointer-events: none; }
/* overflow:visible so the attack lunge is never clipped; the frame box is only
   the layout slot + click target (the sprite itself ignores pointer events, so
   its transparent overflow doesn't steal clicks from the banner) */
.aws-pup-frame { position: relative; overflow: visible; flex: 0 0 auto; pointer-events: auto; cursor: crosshair; }
.aws-pup-frame img { position: absolute; top: 0; left: 0; image-rendering: pixelated; max-width: none;
  pointer-events: none; filter: drop-shadow(0 6px 12px rgba(4,10,51,.55)); }
.aws-pup-desc { font-family: var(--font-mono); font-size: clamp(.58rem, 1.05vw, .76rem); line-height: 1.55;
  color: var(--paper); max-width: 30ch; text-shadow: 0 1px 2px rgba(4,10,51,.95), 0 0 10px rgba(4,10,51,.7); }
.aws-pup-tag { display: inline-block; margin-top: .4rem; color: var(--accent); letter-spacing: .12em; text-transform: uppercase; font-size: .82em; }
@media (max-width: 680px) { .aws-pup-desc { display: none; } }

/* enemies strip (reverse) + items strip (forward, rainbow on hover like the page) */
/* enemies keep their exported relative scale — JS sizes the whole set by ONE factor
   (widest enemy → a target width), so big enemies stay big and bleed above the strip
   instead of being squashed to a common height. Wide-canvas ones are pulled together
   so frame 1 stays evenly spaced; trojanator is flipped to face right. (mirrors aws-arcade) */
.band-aws .band-strip:not(.aws-items) {
  height: clamp(104px, 13.5vw, 162px);
  overflow-x: clip; overflow-y: visible; /* clip the marquee sideways, let tall enemies bleed up */
}
#awsEnemyTrack { height: 100%; align-items: flex-end; padding: 0; animation: marquee-scroll 42s linear infinite; }
#awsEnemyTrack img { height: auto; max-width: none; image-rendering: pixelated; margin: 0 clamp(.075rem, .3vw, .275rem); transform: scaleX(-1); } /* width set by JS; scaleX(-1) faces them the other way */
/* spacing is JS-driven: each sprite is trimmed to its content bbox (see script.js) */
/* tap-to-kill: click a malware to kill it; the strip is a toy, not a link */
/* enemy strip is display-only (tap-to-kill removed); checker background */
.band-aws .band-strip.kill-strip {
  background-color: #e9eafd;
  background-image: conic-gradient(#d2d4f7 90deg, #e9eafd 90deg 180deg, #d2d4f7 180deg 270deg, #e9eafd 270deg);
  background-size: 56px 56px; }
.aws-items { border-top: 1.5px solid #26261f; }
.sprite-track.items { animation: marquee-scroll 24s linear infinite; padding: .55rem 0; }
.sprite-track.items img { height: clamp(34px, 4.5vw, 54px); margin: 0 clamp(1.2rem, 3.5vw, 2.6rem); }
.aws-items:hover .sprite-track.items { animation-duration: 6s; }
.aws-items:hover { animation: aws-item-rainbow .5s steps(7) infinite; }
@keyframes aws-item-rainbow {
  0%{background:#ff2d55} 14%{background:#ff9500} 28%{background:#ffd60a} 42%{background:#34c759}
  57%{background:#00c7be} 71%{background:#0a84ff} 85%{background:#bf5af2} 100%{background:#ff2d55}
}

/* illustration row v2 — fitted single row, uniform crops, no scroll */
/* interactive strip — hovering pries a panel open laterally to reveal the WHOLE image at
   its natural size (the image never scales/zooms; the panel just widens). JS sets the
   per-image widths on desktop; mobile (and no-JS) falls back to a simple scroll. */
.illu-row { display: flex; gap: 0; overflow-x: auto; scrollbar-width: thin; border-top: 1.5px solid var(--ink); background: var(--ink); height: clamp(240px, 30vw, 380px); }
.illu-row a { flex: 0 0 auto; overflow: hidden; cursor: zoom-in; display: flex; align-items: center; justify-content: center; transition: width .34s cubic-bezier(.22,.61,.36,1); }
/* seamless tiling: each panel overlaps the previous by 1px so sub-pixel rounding at
   non-100% browser zoom can't open a thin ink-coloured gutter between images. The JS
   adds 1px back to each panel's width so the overlap is purely cosmetic (no drift). */
.illu-row a + a { margin-left: -1px; }
.illu-row img { height: 100%; width: auto; max-width: none; display: block; }

/* hero veil — transparent-black-transparent: melts the copies'' inner edges into the field */
.hero-veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, transparent 6%, rgba(0,0,0,.92) 36%, rgba(0,0,0,.92) 64%, transparent 94%);
}

/* ── Reduced motion ─────────────────────────────────────────── */
/* For vestibular-sensitive visitors: stop the marquees, swarm, strobe and
   rainbow strip; collapse transitions. The page still reads, just still. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .kaomoji-track, .sprite-track, .sprite-track.items,
  .aws-tb-track, #awsEnemyTrack {
    animation: none !important;
    transform: none !important;
  }
}
