/* ==========================================================================
   justinyou.art — "NEO-Y2K STREET-POP" portfolio edition
   Same family as jiansketch.com: cream paper, ink outlines, hard shadows,
   shout type, sticker buttons. Tuned for one thing: getting hired.
   ========================================================================== */

:root {
  --paper: #f4efe3;
  --panel: #fffdf6;
  --ink: #191919;
  --ink-dim: #6f6f68;
  --grey: #c9c9c4;
  --grey-hover: #a3a39d;
  --grey-soft: #e3e2da;
  --yellow: #ffcc5b;
  --pink: #ff2ea6;
  --red: #ff2e63;            /* hot ZZZ pink — the avatar-poster field */
  --lime: #a8e10c;
  --purple: #7b5cff;
  --cyan: #4ecfe0;
  --teal: #19c2a6;
  --green: #35d977;
  --shadow: var(--ink);
  --font-shout: "Anton", sans-serif;
  --font-round: "Fredoka", sans-serif;
  --font-ui: "MPLUSRounded1c", sans-serif;
  --font-pixel: "PixelOperatorMono", monospace;
  --spring: cubic-bezier(0.2, 2.2, 0.3, 1);
  --spring-soft: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; }

@font-face { font-family: "Anton"; src: url("../fonts/Anton.woff2") format("woff2"); font-weight: 400; }
@font-face { font-family: "Fredoka"; src: url("../fonts/Fredoka.woff2") format("woff2"); font-weight: 300 700; }
@font-face { font-family: "MPLUSRounded1c"; src: url("../fonts/MPLUSRounded1c-Medium.woff2") format("woff2"); font-weight: 500; }
@font-face { font-family: "MPLUSRounded1c"; src: url("../fonts/MPLUSRounded1c-Bold.woff2") format("woff2"); font-weight: 700; }
@font-face { font-family: "MPLUSRounded1c"; src: url("../fonts/MPLUSRounded1c-ExtraBold.woff2") format("woff2"); font-weight: 800; }
@font-face { font-family: "PixelOperatorMono"; src: url("../fonts/PixelOperatorMono.woff2") format("woff2"); font-weight: 400; }
@font-face { font-family: "PixelOperatorMono"; src: url("../fonts/PixelOperatorMono-Bold.woff2") format("woff2"); font-weight: 700; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  min-height: 100vh;
  background:
    radial-gradient(circle, rgba(25, 25, 25, 0.05) 1px, transparent 1.3px) 0 0 / 9px 9px,
    var(--paper);
  overflow-x: clip;
}

::selection { background: var(--pink); color: #fff; }
a { color: #0d8a9e; text-decoration: none; }
a:hover { color: var(--pink); }
img { display: block; }

/* ---------------------------------------------------------------- marquee */
.marquee {
  overflow: hidden;
  background: var(--ink);
  font-family: var(--font-pixel);
  font-size: 12px;
  letter-spacing: 2px;
  color: #f0eee4;
  white-space: nowrap;
  user-select: none;
}
.marquee__track { display: inline-block; padding: 6px 0; animation: marquee 26s linear infinite; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee b { color: var(--pink); }

.frame { max-width: 1200px; margin: 20px auto 0; padding: 0 14px; }

/* ---------------------------------------------------------------- nav */
.navbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  padding: 10px 0 12px;
}
.nav-btn {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-shout);
  font-size: 16px;
  letter-spacing: 1px;
  color: var(--ink);
  background: var(--grey);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--shadow);
  height: 44px;
  padding: 0 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.16s var(--spring), box-shadow 0.16s var(--spring), background 0.12s, color 0.12s;
}
.nav-btn:hover { transform: translate(-2px, -3px) rotate(-0.6deg); box-shadow: 6px 7px 0 var(--shadow); background: var(--grey-hover); color: #fff; }
.nav-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--shadow); }
.nav-btn--work { background: var(--red); color: #fff; }
.nav-btn--resume { background: var(--purple); color: #fff; }
.nav-btn--email { background: var(--ink); color: #fff; }
.nav-btn--menu { display: none; }
.nav-btn--sound { flex: 0 1 auto; background: var(--ink); color: #fff; font-size: 13px; }
.nav-btn--sound[aria-pressed="true"] { background: var(--green); color: #062a12; }
.nav-btn--sound[aria-pressed="false"] { opacity: 0.85; }

/* ---------------------------------------------------------------- hero */
.poster {
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--shadow);
  background:
    radial-gradient(circle, rgba(0, 0, 0, 0.14) 1.2px, transparent 1.5px) 0 0 / 10px 10px,
    var(--red);
  overflow: hidden;
}
.poster__word {
  font-family: var(--font-shout);
  font-size: clamp(84px, 19vw, 300px);
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-align: center;
  padding: 4vh 10px 2vh;
  user-select: none;
  /* his art lives INSIDE the letters — TETSUO poster style */
  background: url("../../art/21-aquacity-diner-story-moment.webp") center 42% / cover;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 4px #f4f1e8;
  filter: drop-shadow(9px 9px 0 rgba(0, 0, 0, 0.25));
}
.poster__band {
  background: #f4f1e8;
  border-top: 4px solid var(--ink);
  padding: 16px 20px 20px;
  text-align: center;
}
.hero__kicker {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 13px;
  letter-spacing: 2px;
  color: #fff;
  background: var(--red);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--shadow);
  padding: 3px 10px;
  transform: rotate(-1.5deg);
}
.hero__role {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 17px;
  margin: 12px 0 16px;
  color: var(--ink);
}
.hero__role b { color: var(--pink); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

.btn {
  display: inline-block;
  font-family: var(--font-shout);
  font-size: 17px;
  letter-spacing: 1px;
  color: #fff;
  background: var(--red);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--shadow);
  padding: 11px 22px;
  cursor: pointer;
  transition: transform 0.16s var(--spring), box-shadow 0.16s var(--spring), background 0.12s, color 0.12s, filter 0.12s;
}
.btn:hover { transform: translate(-2px, -3px); box-shadow: 6px 7px 0 var(--shadow); background: var(--purple); color: #fff; }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--shadow); }
.btn--lime { background: var(--purple); color: #fff; }
.btn--pink { background: var(--pink); color: #fff; }
.btn--pink:hover { background: var(--purple); }
.btn--ghost { background: var(--grey-soft); }
.btn--ghost:hover { background: var(--grey-hover); color: #fff; }
.btn--zzz { transform: skew(-6deg); }
.btn--zzz:hover { transform: skew(-6deg) translate(-2px, -3px); }

/* ------------------------------------------------------- section headers */
.tooth { margin: 34px 0 14px; }
.tooth__tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  padding: 7px 46px 7px 14px;
  font-family: var(--font-shout);
  font-size: 26px;
  letter-spacing: 1px;
  color: #fff;
  line-height: 1.05;
  transform: skew(-3deg);
}
.tooth__tab .accent { color: var(--pink); }
.tooth__tab .count { font-family: var(--font-pixel); font-size: 12px; color: var(--pink); transform: skew(3deg); }
.tooth__bar { height: 8px; background: var(--ink); }
.sub { color: var(--ink-dim); font-size: 14px; margin: 0 0 14px; letter-spacing: 0.5px; }

/* ------------------------------------------------------- clients strip */
.clients {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 18px 0 0;
}
.clients span.label { font-family: var(--font-pixel); font-size: 12px; letter-spacing: 2px; color: var(--ink-dim); margin-right: 4px; }
.client-chip {
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 13px;
  color: var(--ink);
  background: var(--panel);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--shadow);
  padding: 4px 12px;
  transition: transform 0.15s var(--spring), background 0.12s;
}
.client-chip:hover { transform: translateY(-3px) rotate(-1deg); background: var(--yellow); }

/* ------------------------------------------------------- featured card */
.feature {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  border: 3px solid var(--ink);
  background: var(--panel);
  box-shadow: 8px 8px 0 var(--shadow);
  overflow: hidden;
}
.feature__shot { position: relative; min-height: 280px; }
.feature__shot img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.feature__body { padding: 22px; border-left: 3px solid var(--ink); display: flex; flex-direction: column; gap: 10px; }
.feature__flag {
  align-self: flex-start;
  font-family: var(--font-pixel);
  font-size: 12px;
  letter-spacing: 2px;
  color: #fff;
  background: var(--purple);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--shadow);
  padding: 2px 9px;
  transform: rotate(-2deg);
}
.feature__title { font-family: var(--font-shout); font-size: 34px; letter-spacing: 1px; margin: 0; }
.feature__body p { margin: 0; font-size: 14.5px; color: var(--ink); }
.feature__body .credit { font-family: var(--font-pixel); font-size: 12px; color: var(--ink-dim); }

/* ------------------------------------------------------- work feed (big, scrollable) */
.feed { display: flex; flex-direction: column; gap: 26px; align-items: center; }
.feed-post {
  width: min(780px, 100%);
  background: var(--panel);
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--shadow);
  margin: 0;
  cursor: pointer;
  padding: 0;
  text-align: left;
  font-family: var(--font-ui);
  transition: transform 0.2s var(--spring), box-shadow 0.2s var(--spring);
}
.feed-post:hover { transform: translate(-3px, -4px); box-shadow: 9px 10px 0 var(--shadow); }
.feed-post img { width: 100%; height: auto; display: block; border-bottom: 3px solid var(--ink); background: var(--grey-soft); }
.feed-post figcaption { padding: 10px 14px 12px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.feed-post figcaption b { font-family: var(--font-shout); font-size: 19px; letter-spacing: 1px; color: var(--ink); }
.feed-post figcaption span { font-family: var(--font-pixel); font-size: 12px; color: var(--ink-dim); letter-spacing: 1px; }

/* compact grid variant (comics/hypeforce) */
.feed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.feed-post--grid img { aspect-ratio: 4/3; object-fit: cover; object-position: top; }
.feed-post--grid figcaption b { font-size: 15px; }

/* illustration wall (Aug 1, Justin: "properly scale the drawings in
   illustration") — the illus section is 7 portraits + 2 landscapes, which
   the 780px single-column feed rendered as ~1000px-tall giants. Masonry
   columns: natural aspect, uniform width, no cropping. */
.feed-wall { columns: 3 300px; column-gap: 14px; }
.feed-wall .feed-post {
  width: 100%;
  margin: 0 0 14px;
  break-inside: avoid;
  display: inline-block; /* chrome column-split guard */
}
.feed-wall .feed-post img { width: 100%; height: auto; }

/* ------------------------------------------------------- about */
.about-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.box {
  border: 3px solid var(--ink);
  background: var(--panel);
  box-shadow: 6px 6px 0 var(--shadow);
  padding: 16px 18px;
}
.box > h3 { font-family: var(--font-shout); font-size: 20px; letter-spacing: 1px; margin: 0 0 8px; }
.box p { margin: 0 0 10px; font-size: 14.5px; }
.stat-list b { color: var(--ink); font-weight: 800; }
.hr-dotted { border: none; border-top: 3px dotted var(--grey); margin: 12px 0; }
.about-deco { width: 130px; float: right; margin: -6px -6px 6px 12px; filter: drop-shadow(4px 4px 0 rgba(25,25,25,0.25)); }

/* ------------------------------------------------------- contact footer */
.contact {
  margin: 36px 0 0;
  border: 3px solid var(--ink);
  background:
    radial-gradient(circle, rgba(0, 0, 0, 0.12) 1.2px, transparent 1.5px) 0 0 / 10px 10px,
    var(--red);
  color: #fff;
  box-shadow: 8px 8px 0 var(--grey);
  padding: 34px 26px;
  text-align: center;
}
.contact__big {
  font-family: var(--font-shout);
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: 1px;
  line-height: 1;
}
.contact__big span { color: #fff; -webkit-text-stroke: 2px var(--ink); }
.contact__mail {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--font-shout);
  font-size: clamp(20px, 3.4vw, 32px);
  letter-spacing: 1px;
  color: var(--ink);
  background: #fff;
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.5);
  padding: 12px 26px;
  transition: transform 0.16s var(--spring), background 0.12s;
}
.contact__mail:hover { transform: translate(-2px, -3px) rotate(-1deg); background: var(--pink); color: #fff; }
.contact__socials { margin-top: 16px; font-family: var(--font-pixel); font-size: 13px; letter-spacing: 1px; }
.contact__socials a { color: #fff; margin: 0 8px; }
.contact__socials a:hover { color: var(--yellow); }
.contact__fine { margin-top: 14px; font-family: var(--font-pixel); font-size: 11px; color: #9d9d94; letter-spacing: 1px; }

.footer-note { text-align: center; padding: 14px 0 26px; font-family: var(--font-pixel); font-size: 12px; color: var(--ink-dim); letter-spacing: 1px; }

/* ------------------------------------------------------- lightbox + zoom */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 16, 20, 0.93);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox__stage { position: relative; max-width: 92vw; max-height: 82vh; overflow: hidden; }
.lightbox__img {
  display: block;
  max-width: 92vw;
  max-height: 82vh;
  border: 3px solid #fff;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.6);
  background: #26262e;
  cursor: grab;
  transition: transform 0.12s ease-out;
  transform-origin: center center;
}
.lightbox__cap {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  font-family: var(--font-shout);
  font-size: 15px;
  letter-spacing: 1px;
  color: var(--ink);
  background: var(--red);
  color: #fff;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--shadow);
  padding: 7px 18px;
  max-width: 90vw;
  text-align: center;
}
.lightbox__cap b { color: #a03a00; }
.lb-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-shout);
  font-size: 24px;
  color: var(--ink);
  background: var(--grey);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--shadow);
  width: 52px;
  height: 52px;
  cursor: pointer;
  z-index: 501;
  transition: transform 0.16s var(--spring), background 0.15s;
}
.lb-btn:hover { background: var(--red); color: #fff; transform: translateY(-50%) scale(1.1); }
.lb-btn--prev { left: 12px; }
.lb-btn--next { right: 12px; }
.lb-btn--close { top: 12px; right: 12px; transform: none; font-size: 17px; background: var(--ink); color: #fff; }
.lb-btn--close:hover { transform: scale(1.1) rotate(90deg); background: var(--pink); }
.lb-zoomhint {
  position: fixed;
  left: 14px;
  top: 14px;
  font-family: var(--font-pixel);
  font-size: 12px;
  color: #fff;
  background: rgba(0,0,0,0.5);
  padding: 5px 10px;
  z-index: 501;
}

/* ------------------------------------------------------- spray mode */
.spray-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 400;
  font-family: var(--font-shout);
  font-size: 16px;
  letter-spacing: 1px;
  color: #fff;
  background: var(--pink);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--shadow);
  padding: 10px 18px;
  cursor: pointer;
  transition: transform 0.16s var(--spring), background 0.12s;
}
.spray-btn:hover { transform: translate(-2px, -3px) rotate(-1deg); background: var(--purple); }
.spray-btn.is-on { background: var(--lime); color: var(--ink); }
/* undo/clear tools — only visible while draw mode is on */
.spray-btn--tool { display: none; background: var(--paper); color: var(--ink); }
.spray-btn--tool:hover { background: var(--yellow); }
.spray-btn--tool.is-live { display: block; }
.spray-btn--undo { right: 128px; }
.spray-btn--clear { right: 238px; }
#sprayCanvas {
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  display: none;
}
#sprayCanvas.is-live { pointer-events: auto; cursor: crosshair; display: block; }

/* ------------------------------------------------------- reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.5s ease-out, transform 0.5s var(--spring-soft); }
.reveal.is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------- mobile */
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature__body { border-left: none; border-top: 3px solid var(--ink); }
  .about-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .navbar { gap: 6px; }
  .nav-btn { font-size: 13px; height: 42px; }
  .nav-btn--menu { display: flex; flex: 1 1 auto; }
  .navbar .nav-btn:not(.nav-btn--menu):not(.nav-btn--sound) { display: none; }
  .navbar.is-open { display: grid; grid-template-columns: 1fr 1fr; }
  .navbar.is-open .nav-btn:not(.nav-btn--menu) { display: flex; }
  .navbar.is-open .nav-btn--menu { grid-column: 1 / -1; }
  .poster__word { font-size: clamp(56px, 17vw, 120px); -webkit-text-stroke-width: 2px; }
  .poster__band { padding: 12px 12px 16px; }
  .tooth__tab { font-size: 19px; }
  .feed { gap: 18px; }
  .feed-post figcaption b { font-size: 16px; }
  .lb-btn { width: 44px; height: 44px; font-size: 19px; }
  .lb-btn--prev { left: 6px; }
  .lb-btn--next { right: 6px; }
  .contact__mail { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track, .hero__art img { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
