/* ===========================================================
   Justin Mulder — Portfolio
   Playful & bold · color blocks · hard offset shadows · no gradients
   =========================================================== */

:root {
  /* Brand palette */
  --green:  #06D6A0;
  --blue:   #118AB2;
  --ink:    #31393C;
  --yellow: #FDCA40;
  --pink:   #E85D75;

  /* tweakable accent (default green) */
  --accent: #06D6A0;

  /* corner radius (tweakable: sharp / soft / round) */
  --r: 16px;
  --r-sm: 10px;
  --r-pill: 999px;

  /* color-block intensity 0..1 (tweakable) */
  --bold: 1;

  /* hard-shadow color */
  --shadow-col: var(--ink);
  --shadow: 6px 6px 0 var(--shadow-col);
  --shadow-lg: 10px 10px 0 var(--shadow-col);

  /* light theme */
  --bg:       #F6F4EE;
  --bg-tint:  #EFEDE4;
  --surface:  #FFFFFF;
  --text:     #2B3133;
  --text-dim: #6B7376;
  --line:     #2B3133;
  --line-soft: rgba(43,49,51,0.12);

  --fz: 17px;

  --font-display: "Gabarito", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;
}

[data-theme="dark"] {
  --bg:       #1B2022;
  --bg-tint:  #232A2C;
  --surface:  #262D2F;
  --text:     #EFEEE7;
  --text-dim: #9BA3A6;
  --line:     #EFEEE7;
  --line-soft: rgba(239,238,231,0.16);
  --shadow-col: #0E1112;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fz);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background .4s ease, color .4s ease;
}

::selection { background: var(--accent); color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.mono { font-family: var(--font-mono); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ---------- App shell ---------- */
.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Top nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 2px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  white-space: nowrap;
  background: transparent;
  border: none;
  color: var(--text);
  padding: 0;
}
.brand-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-weight: 800;
  box-shadow: 3px 3px 0 var(--shadow-col);
  transform: rotate(-4deg);
}

.tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--r-pill);
  padding: 5px;
  box-shadow: 3px 3px 0 var(--shadow-col);
}
.tab {
  position: relative;
  border: none;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  transition: color .2s ease;
  z-index: 1;
}
.tab .tab-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  margin-right: 7px;
  vertical-align: middle;
  background: currentColor;
  opacity: .35;
  transition: opacity .2s, transform .2s;
}
.tab[aria-selected="true"] { color: #fff; }
.tab[aria-selected="true"] .tab-dot { opacity: 1; background: #fff; transform: scale(1.2); }
.tab-pill {
  position: absolute;
  top: 5px; bottom: 5px;
  border-radius: var(--r-pill);
  background: var(--accent);
  box-shadow: 0 2px 0 var(--shadow-col);
  transition: left .34s cubic-bezier(.65,.05,.36,1), width .34s cubic-bezier(.65,.05,.36,1), background .3s;
  z-index: 0;
}
.nav-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--text);
  box-shadow: 3px 3px 0 var(--shadow-col);
  transition: transform .15s ease, box-shadow .15s ease;
}
.icon-btn:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--shadow-col); }
.icon-btn:active { transform: translate(1px,1px); box-shadow: 2px 2px 0 var(--shadow-col); }

/* ---------- Nav tooltips ---------- */
.nav-tip-wrap { position: relative; display: inline-block; }
.nav-tip {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow);
  padding: 8px 13px;
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: nowrap;
  z-index: 100;
  animation: tipIn .18s cubic-bezier(.22,.7,.25,1) both;
}
.nav-tip-arrow {
  position: absolute;
  top: -7px; right: 13px;
  width: 10px; height: 10px;
  background: var(--surface);
  border-top: 2px solid var(--line);
  border-left: 2px solid var(--line);
  transform: rotate(45deg);
}
.nav-tip-cursor {
  display: inline-block;
  color: var(--accent);
  margin-left: 1px;
  animation: blink .5s step-start infinite;
}
@keyframes tipIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ---------- Tab content transition ---------- */
main { flex: 1; padding: 0 0 96px; }
.screen { animation: tabIn .42s cubic-bezier(.22,.61,.36,1) both; }
@keyframes tabIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .screen, .proj, .tl-item, .hero h1 .ln > span { animation: none !important; opacity: 1 !important; transform: none !important; }
  .hl::after { animation: none !important; transform: skewX(-6deg) scaleX(1) !important; }
  .timeline::before { transition: none !important; height: 100% !important; }
}
@media print {
  .screen, .proj, .tl-item, .hero h1 .ln > span { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* ---------- Section heading ---------- */
.sec-head { margin: 52px 0 28px; }
.sec-head h2 {
  font-size: clamp(34px, 5vw, 56px);
}
.sec-head .sub { color: var(--text-dim); margin-top: 10px; max-width: 56ch; }

/* ---------- HERO ---------- */
.hero { padding-top: 36px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--r-pill);
  padding: 7px 15px;
  box-shadow: 3px 3px 0 var(--shadow-col);
}
.hero-kicker .live {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 60%, transparent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 70%, transparent); }
  70%  { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.hero h1 {
  font-size: clamp(54px, 9vw, 104px);
  line-height: 0.92;
  margin: 22px 0 0;
}
.hero h1 .ln { display: block; overflow: hidden; }
.hero h1 .ln > span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise .8s cubic-bezier(.22,.7,.25,1) forwards;
}
.hero h1 .ln:nth-child(2) > span { animation-delay: .08s; }
@keyframes rise { to { transform: translateY(0); } }
.hl { position: relative; white-space: nowrap; z-index: 0; }
.hl::after {
  content: "";
  position: absolute; left: -4px; right: -4px; bottom: 6%;
  height: 34%;
  background: var(--accent);
  z-index: -1;
  transform: skewX(-6deg) scaleX(0);
  transform-origin: left;
  animation: hlIn .6s ease .55s forwards;
  opacity: calc(.55 * var(--bold) + .15);
}
@keyframes hlIn { to { transform: skewX(-6deg) scaleX(1); } }

.hero-lead {
  margin: 26px 0 0;
  font-size: 19px;
  max-width: 46ch;
  color: var(--text);
}
.hero-lead b { color: var(--text); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 7px 13px;
  border: 2px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  transition: transform .15s, box-shadow .15s, background .2s, color .2s;
}
.chip:hover {
  transform: translateY(-3px) rotate(-2deg);
  box-shadow: 3px 3px 0 var(--shadow-col);
  background: var(--chip-c, var(--accent));
  color: #fff;
  border-color: var(--line);
}

.hero-cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700;
  font-size: 16px;
  padding: 13px 22px;
  border-radius: var(--r-sm);
  border: 2px solid var(--line);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease, background .2s;
}
.btn:hover { transform: translate(-3px,-3px); box-shadow: var(--shadow-lg); }
.btn:active { transform: translate(2px,2px); box-shadow: 3px 3px 0 var(--shadow-col); }
.btn.primary { background: var(--accent); color: #fff; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }

/* portrait */
.portrait-wrap { position: relative; justify-self: center; }
.portrait-block {
  position: absolute; inset: 0;
  background: var(--yellow);
  border: 2px solid var(--line);
  border-radius: var(--r);
  transform: rotate(5deg) translate(16px, 16px);
  transition: transform .4s cubic-bezier(.22,.7,.25,1);
}
.portrait-block.two {
  background: var(--pink);
  transform: rotate(-4deg) translate(-18px, 14px);
}
.portrait-wrap:hover .portrait-block { transform: rotate(9deg) translate(26px, 22px); }
.portrait-wrap:hover .portrait-block.two { transform: rotate(-8deg) translate(-26px, 20px); }
.portrait {
  position: relative;
  width: 340px; height: 420px;
  border: 2px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--surface);
}
.portrait-placeholder {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  background: var(--bg-tint);
}
.portrait-initials {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 96px;
  color: var(--accent);
  letter-spacing: -0.04em;
  opacity: 0.6;
  user-select: none;
}
.portrait-tag {
  position: absolute; bottom: 14px; left: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--r-pill);
  padding: 6px 12px;
  box-shadow: 2px 2px 0 var(--shadow-col);
  z-index: 3;
}

/* marquee */
.marquee {
  margin-top: 64px;
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  overflow: hidden;
  background: var(--ink);
  color: #F6F4EE;
}
[data-theme="dark"] .marquee { background: var(--accent); color: #14181a; }
.marquee-track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: scroll 26s linear infinite;
  padding: 14px 0;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  padding: 0 26px;
  display: inline-flex; align-items: center; gap: 26px;
}
.marquee-track span::after {
  content: "✦"; font-size: 14px; opacity: .6;
}
@keyframes scroll { to { transform: translateX(-50%); } }

/* stat row */
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 64px; }
.stat {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--r);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s;
}
.stat:hover { transform: translate(-3px,-3px); box-shadow: var(--shadow-lg); }
.stat .num { font-family: var(--font-display); font-weight: 800; font-size: 48px; line-height: 1; }
.stat .lbl { color: var(--text-dim); margin-top: 8px; font-size: 15px; }
.stat:nth-child(1) .num { color: var(--green); }
.stat:nth-child(2) .num { color: var(--blue); }
.stat:nth-child(3) .num { color: var(--pink); }

/* ---------- PROJECTS ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.filter {
  font-weight: 600;
  font-size: 14px;
  padding: 8px 16px;
  border: 2px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--text);
  box-shadow: 2px 2px 0 var(--shadow-col);
  transition: transform .14s, box-shadow .14s, background .2s, color .2s;
}
.filter:hover { transform: translate(-2px,-2px); box-shadow: 4px 4px 0 var(--shadow-col); }
.filter[aria-pressed="true"] { background: var(--accent); color: #fff; }

.proj-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.proj {
  position: relative;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s cubic-bezier(.22,.7,.25,1), box-shadow .2s;
  cursor: pointer;
  display: flex; flex-direction: column;
  animation: cardIn .5s cubic-bezier(.22,.7,.25,1) both;
}
@keyframes cardIn { from { opacity:0; transform: translateY(22px);} to {opacity:1; transform: translateY(0);} }
.proj:hover { transform: translate(-5px,-5px); box-shadow: var(--shadow-lg); }
.proj-cover {
  height: 168px;
  border-bottom: 2px solid var(--line);
  position: relative;
  overflow: hidden;
  display: grid; place-items: center;
}
.proj-cover .pattern {
  position: absolute; inset: -6px;
  opacity: calc(.9 * var(--bold));
  transition: transform .4s ease;
}
.proj:hover .proj-cover .pattern { transform: scale(1.08) rotate(2deg); }
.proj-cover .glyph {
  position: relative;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 60px;
  color: var(--surface);
  mix-blend-mode: overlay;
  z-index: 1;
}
.proj-emoji {
  position: relative; z-index: 2;
  font-size: 46px;
  filter: drop-shadow(2px 2px 0 rgba(0,0,0,.18));
}
.proj-body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.proj-cat {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.proj h3 { font-size: 24px; margin: 8px 0 0; }
.proj p { color: var(--text-dim); font-size: 15px; margin: 10px 0 0; flex:1; }
.proj-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.proj-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--line-soft);
  background: var(--bg-tint);
}
.proj-go {
  position: absolute; top: 16px; right: 16px;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 50%;
  box-shadow: 2px 2px 0 var(--shadow-col);
  transform: scale(.6) rotate(-30deg);
  opacity: 0;
  transition: transform .25s cubic-bezier(.22,.7,.25,1), opacity .25s;
  z-index: 3;
}
.proj:hover .proj-go { transform: scale(1) rotate(0); opacity: 1; }

/* ---------- EXPERIENCE ---------- */
.exp-switch { display: flex; gap: 8px; margin-bottom: 34px; }
.exp-switch .filter[aria-pressed="true"] { background: var(--accent); color:#fff; }

.timeline { position: relative; padding-left: 38px; }
.timeline::before {
  content: "";
  position: absolute; left: 8px; top: 6px;
  width: 3px;
  height: var(--line-h, 100%);
  background: var(--line);
  transition: height 1s cubic-bezier(.5,0,.1,1);
}
.tl-item {
  position: relative;
  padding: 0 0 38px;
  opacity: 0;
  transform: translateX(18px);
}
.timeline.in .tl-item { animation: tlIn .55s cubic-bezier(.22,.7,.25,1) forwards; }
.timeline.in .tl-item:nth-child(1) { animation-delay: .1s; }
.timeline.in .tl-item:nth-child(2) { animation-delay: .22s; }
.timeline.in .tl-item:nth-child(3) { animation-delay: .34s; }
.timeline.in .tl-item:nth-child(4) { animation-delay: .46s; }
.timeline.in .tl-item:nth-child(5) { animation-delay: .58s; }
.timeline.in .tl-item:nth-child(6) { animation-delay: .70s; }
@keyframes tlIn { to { opacity: 1; transform: translateX(0); } }
.tl-node {
  position: absolute; left: -38px; top: 2px;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 3px solid var(--line);
  background: var(--node-c, var(--accent));
  box-shadow: 0 0 0 5px var(--bg);
  transition: transform .2s;
}
.tl-item:hover .tl-node { transform: scale(1.25); }
.tl-card {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--r);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s;
}
.tl-item:hover .tl-card { transform: translate(-3px,-3px); box-shadow: var(--shadow-lg); }
.tl-when {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  display: flex; align-items: center; gap: 10px;
}
.tl-when .badge {
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 9px; border-radius: var(--r-pill);
  border: 1.5px solid var(--line);
  color: var(--text);
}
.tl-card h3 { font-size: 24px; margin: 12px 0 2px; }
.tl-org { font-weight: 600; color: var(--node-c, var(--accent)); }
.tl-card p { color: var(--text-dim); font-size: 15px; margin: 12px 0 0; }
.tl-skills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tl-skill {
  font-family: var(--font-mono); font-size: 11px;
  padding: 4px 10px; border-radius: var(--r-pill);
  background: var(--bg-tint); border: 1.5px solid var(--line-soft);
}

/* ---------- BLOG ---------- */
.blog-head {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 26px 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 22px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.blog-head .bh-icon {
  width: 54px; height: 54px; border-radius: var(--r-sm);
  background: var(--pink); color: #fff;
  border: 2px solid var(--line);
  display: grid; place-items: center;
  font-size: 26px;
  box-shadow: 3px 3px 0 var(--shadow-col);
  transform: rotate(-5deg);
  flex: none;
}
.blog-head h3 { font-size: 24px; }
.blog-head p { color: var(--text-dim); font-size: 14px; margin: 4px 0 0; }
.sub-form { display: flex; gap: 10px; }
.sub-form input {
  font-family: var(--font-body); font-size: 15px;
  padding: 11px 16px; border-radius: var(--r-sm);
  border: 2px solid var(--line); background: var(--bg);
  color: var(--text); min-width: 220px;
}
.sub-form input:focus { outline: none; box-shadow: 3px 3px 0 var(--accent); }

.post-list { display: flex; flex-direction: column; }
.post {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 26px;
  align-items: start;
  padding: 26px 14px;
  border-top: 2px solid var(--line-soft);
  cursor: pointer;
  transition: background .2s, padding .2s;
  border-radius: var(--r-sm);
}
.post:last-child { border-bottom: 2px solid var(--line-soft); }
.post:hover { background: var(--surface); padding-left: 22px; padding-right: 22px; }
.post-date { font-family: var(--font-mono); font-size: 13px; color: var(--text-dim); padding-top: 4px; }
.post-main h3 {
  font-size: 27px; transition: color .2s;
  display: inline;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 3px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .3s ease;
  padding-bottom: 4px;
}
.post:hover .post-main h3 { background-size: 100% 3px; }
.post-main p { color: var(--text-dim); font-size: 16px; margin: 10px 0 0; max-width: 64ch; }
.post-meta { display: flex; gap: 16px; margin-top: 14px; font-size: 13px; color: var(--text-dim); align-items: center; }
.post-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text-dim); }
.post-cat {
  font-family: var(--font-mono); font-size: 11px;
  padding: 3px 9px; border-radius: var(--r-pill);
  border: 1.5px solid var(--line); color: var(--text);
}
.post-arrow {
  align-self: center;
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border: 2px solid var(--line); border-radius: 50%;
  background: var(--surface);
  transform: translateX(-6px); opacity: 0;
  transition: transform .25s, opacity .25s, background .2s, color .2s;
}
.post:hover .post-arrow { transform: translateX(0); opacity: 1; background: var(--accent); color: #fff; }

/* ---------- NOW PLAYING ---------- */
.now-playing {
  position: relative;
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 22px;
  padding: 8px 14px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--r-pill);
  box-shadow: 3px 3px 0 var(--shadow-col);
  font-family: var(--font-mono); font-size: 12px;
  max-width: 100%; overflow: visible;
  text-decoration: none; color: var(--text);
  transition: transform .15s ease, box-shadow .15s ease;
  animation: tipIn .3s cubic-bezier(.22,.7,.25,1) both;
}
.now-playing:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--shadow-col); }
.np-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--pink); flex-shrink: 0;
  animation: pulse 1.5s infinite;
}
.np-icon { font-size: 14px; flex-shrink: 0; }
.np-label { color: var(--text-dim); flex-shrink: 0; }
.np-track {
  font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.np-notes {
  position: absolute;
  inset: 0; pointer-events: none;
}
.np-note {
  position: absolute;
  top: 6px;
  font-size: 14px;
  color: var(--accent);
  opacity: 0;
  animation: noteFloat 1.4s ease-out infinite;
  animation-play-state: paused;
}
.np-note:nth-child(1) { left: 18%; animation-delay: 0s; }
.np-note:nth-child(2) { left: 48%; animation-delay: 0.45s; }
.np-note:nth-child(3) { left: 74%; animation-delay: 0.9s; }
.now-playing:hover .np-note { animation-play-state: running; }
@keyframes noteFloat {
  0%   { opacity: 0; transform: translateY(0) rotate(-5deg) scale(.9); }
  15%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-26px) rotate(12deg) scale(1.1); }
}

/* ---------- ELSEWHERE ---------- */
.el-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.el-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
  transition: transform .2s cubic-bezier(.22,.7,.25,1), box-shadow .2s;
  animation: cardIn .5s cubic-bezier(.22,.7,.25,1) both;
}
.el-card:hover { transform: translate(-5px,-5px); box-shadow: var(--shadow-lg); }
.el-cover {
  height: 90px;
  display: grid;
  place-items: center;
  border-bottom: 2px solid var(--line);
  position: relative;
  overflow: hidden;
}
.el-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    rgba(255,255,255,.06) 0px,
    rgba(255,255,255,.06) 1px,
    transparent 1px,
    transparent 10px
  );
}
.el-emoji { font-size: 36px; filter: drop-shadow(2px 2px 0 rgba(0,0,0,.15)); position: relative; z-index: 1; }
.el-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.el-top { display: flex; align-items: center; justify-content: space-between; }
.el-platform { font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.el-go {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border: 2px solid var(--line); border-radius: 50%;
  background: var(--surface);
  transform: scale(.7) rotate(-30deg); opacity: 0;
  transition: transform .22s cubic-bezier(.22,.7,.25,1), opacity .22s;
}
.el-card:hover .el-go { transform: scale(1) rotate(0); opacity: 1; }
.el-handle { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.el-note { font-size: 14px; color: var(--text-dim); margin: 6px 0 0; line-height: 1.5; flex: 1; }

.el-now-playing {
  position: absolute; bottom: 8px; left: 8px; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(0,0,0,.6); color: #fff;
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  padding: 3px 9px; border-radius: var(--r-pill);
  letter-spacing: .05em;
}
.el-np-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--pink); flex-shrink: 0;
  animation: pulse 1.5s infinite;
}
.el-track { margin-top: 6px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.el-track-name {
  font-weight: 700; font-size: 14px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.el-track-artist {
  font-family: var(--font-mono); font-size: 12px; color: var(--text-dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

@media (max-width: 900px) { .el-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .el-grid { grid-template-columns: 1fr; } }

/* ---------- PROJECT DETAIL ---------- */
.back-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  background: transparent; border: none; color: var(--text-dim);
  padding: 0; margin: 36px 0 28px; cursor: pointer;
  transition: color .15s, gap .15s;
}
.back-btn:hover { color: var(--text); gap: 12px; }

.pd-cover {
  position: relative; height: 220px;
  border: 2px solid var(--line); border-radius: var(--r);
  overflow: hidden; display: grid; place-items: center;
  box-shadow: var(--shadow-lg);
}
.pd-emoji { position: relative; z-index: 2; font-size: 64px; filter: drop-shadow(2px 2px 0 rgba(0,0,0,.18)); }

.pd-body { padding: 36px 0 48px; max-width: 72ch; }
.pd-title { font-size: clamp(32px, 5vw, 52px); margin: 10px 0 0; }
.pd-intro { font-size: 18px; line-height: 1.65; margin-top: 24px; color: var(--text); }

.pd-section { margin-top: 36px; }
.pd-section h3 { font-size: 22px; margin-bottom: 10px; }
.pd-section p { color: var(--text-dim); font-size: 16px; line-height: 1.7; }

.pd-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* ---------- Footer ---------- */
.foot {
  border-top: 2px solid var(--line);
  padding: 40px 0;
  margin-top: 40px;
}
.foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot .socials { display: flex; gap: 10px; }
.foot small { color: var(--text-dim); font-family: var(--font-mono); font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .portrait-wrap { order: -1; }
  .proj-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .tabs { display: none; }
  .nav-inner { height: 64px; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 20px; }
  .post { grid-template-columns: 1fr; gap: 8px; }
  .post-arrow { display: none; }
  .blog-head { flex-direction: column; align-items: flex-start; }
  .sub-form { width: 100%; }
  .sub-form input { flex: 1; min-width: 0; }
}

/* mobile tab bar */
.mtabs {
  display: none;
  position: sticky; top: 72px; z-index: 40;
  gap: 8px; padding: 12px 20px;
  overflow-x: auto;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  border-bottom: 2px solid var(--line-soft);
}
@media (max-width: 900px) { .mtabs { display: flex; } }
.mtab {
  flex: none;
  font-weight: 600; font-size: 14px;
  padding: 8px 16px; border-radius: var(--r-pill);
  border: 2px solid var(--line); background: var(--surface); color: var(--text);
}
.mtab[aria-selected="true"] { background: var(--accent); color: #fff; }
