/* ==========================================================================
   Mike Stafiej: personal site
   Palette: Pittsburgh black & gold on warm paper.
   ========================================================================== */

:root {
  --bg: #F3EFE6;
  --bg-2: #EAE4D7;
  --card: #FBF9F4;
  --ink: #15140F;
  --ink-2: #3F3B33;
  --muted: #736C5E;
  --line: rgba(21, 20, 15, 0.13);
  --line-strong: rgba(21, 20, 15, 0.28);
  --gold: #F5B700;
  --gold-2: #FFD24A;
  --on-gold: #15140F;
  --accent-text: #8A6400;
  --night: #0F0D1C;
  --night-2: #1A1730;
  --night-ink: #F1ECE1;
  --shadow: 0 1px 0 rgba(21,20,15,.04), 0 12px 32px -12px rgba(21,20,15,.18);

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --pixel: "Press Start 2P", var(--mono);

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12110E; --bg-2: #1B1A16; --card: #1C1B17;
    --ink: #F1ECE1; --ink-2: #CFC8B9; --muted: #948C7C;
    --line: rgba(241, 236, 225, 0.12); --line-strong: rgba(241, 236, 225, 0.28);
    --accent-text: #F5B700;
    --shadow: 0 1px 0 rgba(0,0,0,.2), 0 16px 40px -16px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #12110E; --bg-2: #1B1A16; --card: #1C1B17;
  --ink: #F1ECE1; --ink-2: #CFC8B9; --muted: #948C7C;
  --line: rgba(241, 236, 225, 0.12); --line-strong: rgba(241, 236, 225, 0.28);
  --accent-text: #F5B700;
  --shadow: 0 1px 0 rgba(0,0,0,.2), 0 16px 40px -16px rgba(0,0,0,.6);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
/* grain */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100;
  opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] body::before { mix-blend-mode: screen; opacity: .25; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body::before { mix-blend-mode: screen; opacity: .25; } }

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--gold); color: var(--on-gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: .02em; text-transform: uppercase; }
.small { font-size: 12px; }
.muted { color: var(--muted); }
.pixel { font-family: var(--pixel); font-size: .72em; letter-spacing: 0; }
.h3 { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1; margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 8px; }

.ul { background-image: linear-gradient(var(--gold), var(--gold)); background-size: 100% 2px; background-position: 0 100%; background-repeat: no-repeat; padding-bottom: 1px; transition: background-size .3s var(--ease); }
.ul:hover { background-size: 100% 100%; color: var(--on-gold); }

/* ---------- buttons ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; gap: 10px;
  height: var(--h); padding: 0 22px; border-radius: 999px;
  font-weight: 550; font-size: 15px; letter-spacing: -.005em;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn svg { width: 16px; height: 16px; fill: currentColor; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sm { --h: 38px; padding: 0 16px; font-size: 14px; }
.btn--gold { background: var(--gold); color: var(--on-gold); box-shadow: 0 6px 20px -8px rgba(245,183,0,.7); }
.btn--gold:hover { background: var(--gold-2); }
.btn--ink { background: var(--ink); color: var(--bg); }
.btn--ghost { border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--ghost svg { fill: none; stroke: currentColor; stroke-width: 1.8; }

.icon-btn {
  width: 38px; height: 38px; border-radius: 999px; display: grid; place-items: center;
  border: 1px solid var(--line); background: transparent; transition: border-color .2s, transform .2s;
}
.icon-btn:hover { border-color: var(--ink); transform: rotate(-8deg); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -.02em; font-size: 17px; }
.wordmark__dot { width: 12px; height: 12px; background: var(--gold); border-radius: 3px; transform: rotate(45deg); transition: transform .5s var(--ease); }
.wordmark:hover .wordmark__dot { transform: rotate(225deg); }
.nav__links { display: flex; gap: 4px; }
.nav__links a { padding: 8px 14px; border-radius: 999px; font-size: 15px; color: var(--ink-2); transition: background-color .2s, color .2s; }
.nav__links a:hover, .nav__links a.is-active { background: var(--bg-2); color: var(--ink); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.i-li { fill: currentColor !important; stroke: none !important; }
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: none; }
  :root:not([data-theme="light"]) .i-moon { display: block; }
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  grid-template-areas: "meta meta" "title portrait" "body portrait";
  column-gap: clamp(24px, 4vw, 64px);
  padding-top: clamp(28px, 5vw, 56px);
  padding-bottom: clamp(48px, 7vw, 96px);
  position: relative;
}
.hero__meta { grid-area: meta; display: flex; gap: 24px; flex-wrap: wrap; align-items: center; color: var(--muted); padding-bottom: clamp(20px, 3vw, 36px); border-bottom: 1px solid var(--line); margin-bottom: clamp(16px, 3vw, 32px); }
.status { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.status i { width: 8px; height: 8px; border-radius: 99px; background: #2FBF71; box-shadow: 0 0 0 0 rgba(47,191,113,.6); animation: ping 2.2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(47,191,113,.55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(47,191,113,0); } }

.hero__title {
  grid-area: title; margin: 0;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(84px, 15.5vw, 236px); line-height: .84; letter-spacing: -.035em;
}
.hero__line { display: block; }
.hero__line--2 { font-style: italic; padding-left: .5em; }
.hero__period { color: var(--gold); font-style: normal; display: inline-block; transition: transform .4s var(--ease); }
.hero__title:hover .hero__period { transform: translateY(-.08em) scale(1.15); }

.hero__body { grid-area: body; max-width: 640px; padding-top: clamp(24px, 3vw, 40px); }
.hero__lede { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.45; letter-spacing: -.01em; color: var(--ink-2); margin: 0 0 28px; }
.hero__lede a { color: var(--ink); }
.ul--pixel { font-weight: 550; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

.portrait { grid-area: portrait; margin: 0; align-self: center; position: relative; }
.portrait__frame {
  position: relative; aspect-ratio: 4 / 5; border-radius: 26px; overflow: hidden;
  background: var(--gold); transform: rotate(2.5deg); transition: transform .6s var(--ease);
  box-shadow: var(--shadow);
}
.portrait:hover .portrait__frame { transform: rotate(0deg) scale(1.01); }
.portrait__frame img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: cover; object-position: 50% 30%; border-radius: 18px; z-index: 2; }
.portrait__fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--serif); font-style: italic; font-size: clamp(96px, 12vw, 170px); color: var(--on-gold); letter-spacing: -.04em;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.35), transparent 50%),
    repeating-linear-gradient(-45deg, transparent 0 18px, rgba(21,20,15,.05) 18px 19px);
}
.sticker {
  position: absolute; left: -22px; bottom: 28px; z-index: 3;
  background: var(--ink); color: var(--bg);
  font-family: var(--mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em;
  padding: 10px 14px; border-radius: 999px; transform: rotate(-7deg);
  box-shadow: 0 10px 24px -10px rgba(0,0,0,.5);
  animation: bob 5s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: rotate(-7deg) translateY(0); } 50% { transform: rotate(-5deg) translateY(-6px); } }

/* ---------- ticker ---------- */
.ticker {
  background: var(--gold); color: var(--on-gold);
  transform: rotate(-1.2deg); margin: 0 -2vw; width: 104vw;
  overflow: hidden; border-block: 1px solid rgba(0,0,0,.12);
  position: relative; z-index: 2;
}
.ticker__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__group { display: flex; list-style: none; margin: 0; padding: 0; }
.ticker__group li {
  display: flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 16px 28px; font-family: var(--mono); font-size: 14px; text-transform: uppercase; letter-spacing: .03em;
}
.ticker__group li::after { content: "✦"; margin-left: 28px; font-size: 13px; opacity: .7; }
.ticker__group b { font-family: var(--serif); font-weight: 400; font-size: 26px; text-transform: none; letter-spacing: -.01em; line-height: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding-block: clamp(72px, 10vw, 140px); }
.section__head { margin-bottom: clamp(36px, 5vw, 64px); }
.section__head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); margin-bottom: 18px; }
.eyebrow__n { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink); font-size: 11px; }
.section__title { font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 7vw, 104px); line-height: .92; letter-spacing: -.03em; margin: 0; }
.section__title em { color: var(--muted); }
.section__aside { max-width: 400px; color: var(--ink-2); margin: 0; font-size: 16px; }
.section__aside .mono { display: block; margin-top: 10px; color: var(--accent-text); }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
.about__big { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.3; letter-spacing: -.02em; margin: 0 0 24px; color: var(--ink); }
.about__bio p:not(.about__big) { color: var(--ink-2); margin: 0 0 28px; max-width: 62ch; }
.about__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.facts { margin: 0; border-top: 1px solid var(--line-strong); }
.facts > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); padding-top: 3px; }
.facts dd { margin: 0; font-size: 16px; line-height: 1.45; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(56px, 8vw, 104px); border-top: 1px solid var(--line-strong); }
.stat { padding: 28px 24px 8px 0; display: flex; flex-direction: column; gap: 6px; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat__num { font-family: var(--serif); font-size: clamp(52px, 6.4vw, 92px); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat__label { color: var(--muted); font-size: 15px; }

/* ---------- ERIN ---------- */
.erin {
  background: var(--ink); color: var(--bg);
  border-radius: clamp(24px, 3vw, 36px);
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  overflow: hidden; position: relative;
}
.erin__copy { padding: clamp(32px, 5vw, 72px); position: relative; z-index: 1; }
.erin .eyebrow { color: color-mix(in srgb, var(--bg) 60%, transparent); }
.erin .eyebrow__n { color: var(--bg); border-color: color-mix(in srgb, var(--bg) 35%, transparent); }
.erin__title { font-family: var(--serif); font-weight: 400; font-size: clamp(96px, 14vw, 200px); line-height: .8; letter-spacing: -.04em; margin: 8px 0 28px; }
.erin__lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; margin: 0 0 28px; max-width: 52ch; color: color-mix(in srgb, var(--bg) 82%, transparent); }
.erin__points { list-style: none; padding: 0; margin: 0 0 36px; display: grid; gap: 10px; }
.erin__points li { position: relative; padding-left: 22px; color: color-mix(in srgb, var(--bg) 72%, transparent); }
.erin__points li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
.erin__points span { color: var(--bg); font-weight: 550; }
.erin__art { position: relative; display: grid; place-items: center; padding: 32px; background: radial-gradient(circle at 50% 50%, rgba(245,183,0,.16), transparent 62%); }
.network { width: 100%; max-width: 460px; height: auto; }
.network__lines path { stroke: color-mix(in srgb, var(--bg) 28%, transparent); stroke-width: 1.4; fill: none; stroke-dasharray: 3 5; }
.network__nodes circle { fill: var(--ink); stroke: color-mix(in srgb, var(--bg) 70%, transparent); stroke-width: 1.6; }
.network__nodes circle:nth-child(3n) { fill: color-mix(in srgb, var(--bg) 85%, transparent); }
.network__pulses circle { fill: var(--gold); }
.network__hub { fill: var(--gold); }
.network__label { font-family: var(--serif); font-style: italic; font-size: 30px; fill: var(--on-gold); }

/* ---------- media: featured ---------- */
.featured {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px);
  align-items: center; padding-bottom: clamp(48px, 6vw, 72px); margin-bottom: 40px; border-bottom: 1px solid var(--line);
}
.featured__media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--bg-2); cursor: pointer; box-shadow: var(--shadow); border: 0; padding: 0; width: 100%; }
.featured__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.featured__media:hover img { transform: scale(1.04); }
.featured__label { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-text); margin-bottom: 16px; }
.featured__label::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: #E5484D; animation: ping-red 2s infinite; }
@keyframes ping-red { 0% { box-shadow: 0 0 0 0 rgba(229,72,77,.5); } 80%, 100% { box-shadow: 0 0 0 8px rgba(229,72,77,0); } }
.featured__title { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4vw, 58px); line-height: 1; letter-spacing: -.025em; margin: 0 0 16px; }
.featured__show { color: var(--ink-2); margin: 0 0 28px; }

.play {
  position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px;
  border-radius: 99px; background: var(--gold); color: var(--on-gold); display: grid; place-items: center;
  box-shadow: 0 10px 30px -6px rgba(0,0,0,.45); transition: transform .35s var(--ease);
}
.play svg { width: 26px; height: 26px; fill: currentColor; margin-left: 3px; }
.featured__media:hover .play { transform: scale(1.1); }

/* ---------- media: filters ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 48px); }
.filters button {
  border: 1px solid var(--line-strong); background: transparent; border-radius: 999px;
  padding: 9px 18px; font-size: 14.5px; font-weight: 500; transition: all .2s var(--ease);
}
.filters button:hover { border-color: var(--ink); }
.filters button[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.filters button .count { font-family: var(--mono); font-size: 11px; opacity: .6; margin-left: 6px; }

/* ---------- media: archive ---------- */
.year { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; padding-block: 36px; border-top: 1px solid var(--line); }
.year:first-child { border-top: 0; padding-top: 0; }
.year[hidden] { display: none; }
.year__label { position: sticky; top: 92px; align-self: start; }
.year__num { font-family: var(--serif); font-size: clamp(56px, 6vw, 84px); line-height: .9; letter-spacing: -.03em; display: block; }
.year__note { display: block; margin-top: 8px; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 32px 24px; }

.card { display: flex; flex-direction: column; gap: 14px; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; }
.card[hidden] { display: none; }
.card__thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--bg-2); isolation: isolate; }
.card__thumb > img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card__thumb--square { display: grid; place-items: center; }
.card__thumb--square .card__blur { position: absolute; inset: -20px; width: calc(100% + 40px); height: calc(100% + 40px); object-fit: cover; filter: blur(22px) saturate(1.3); opacity: .85; z-index: -1; }
.card__thumb--square .card__art { position: relative; height: 78%; width: auto; aspect-ratio: 1; border-radius: 10px; box-shadow: 0 10px 30px -8px rgba(0,0,0,.5); transition: transform .7s var(--ease); }
.card:hover .card__thumb > img:not(.card__blur), .card:hover .card__art { transform: scale(1.05); }
.card__thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.45), transparent 45%); opacity: .9; pointer-events: none; }
.badge {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .04em;
  padding: 5px 9px; border-radius: 999px; background: rgba(15,14,12,.72); color: #fff; backdrop-filter: blur(6px);
}
.badge svg { width: 12px; height: 12px; fill: currentColor; }
.badge--tl { left: 10px; top: 10px; }
.badge--br { right: 10px; bottom: 10px; }
.badge--era { left: 10px; bottom: 10px; background: var(--gold); color: var(--on-gold); }
.card__play {
  position: absolute; z-index: 2; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px;
  border-radius: 99px; background: var(--gold); color: var(--on-gold); display: grid; place-items: center;
  opacity: 0; transform: scale(.7); transition: all .3s var(--ease);
}
.card__play svg { width: 18px; height: 18px; fill: currentColor; margin-left: 2px; }
.card:hover .card__play, .card:focus-visible .card__play { opacity: 1; transform: scale(1); }
.card__meta { color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.card__meta span + span::before { content: "·"; margin-right: 8px; }
.card__title { font-size: 17.5px; font-weight: 550; line-height: 1.3; letter-spacing: -.012em; margin: -4px 0 0; color: var(--ink); transition: color .2s; }
.card:hover .card__title { color: var(--accent-text); }
.card__show { color: var(--ink-2); font-size: 15px; margin-top: -8px; }

/* ---------- shorts ---------- */
.shorts { margin-top: clamp(48px, 6vw, 80px); padding-top: 36px; border-top: 1px solid var(--line); }
.shorts__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.shorts__row { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 20px; }
.short { position: relative; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; border: 0; padding: 0; cursor: pointer; background: var(--bg-2); text-align: left; }
.short img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.short:hover img { transform: scale(1.05); }
.short::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.85), transparent 55%); }
.short__txt { position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 14px; color: #fff; }
.short__txt b { display: block; font-size: 15px; line-height: 1.3; font-weight: 550; margin-top: 6px; }
.short__txt .mono { font-size: 11px; opacity: .75; }
.short:hover .card__play { opacity: 1; transform: scale(1); }

/* ---------- photos ---------- */
.photos__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.photos__grid figure { margin: 0; }
.photos__grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; }
.photos__grid figcaption { margin-top: 8px; }

/* ---------- games ---------- */
.games {
  position: relative; background: var(--night); color: var(--night-ink);
  padding-block: clamp(80px, 11vw, 150px) clamp(110px, 12vw, 170px);
  overflow: hidden; isolation: isolate;
}
.games__sky {
  position: absolute; inset: 0; z-index: -1; opacity: .9;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 78% 12%, #FFD24A 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 42% 8%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 88% 46%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 6% 64%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 58% 30%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 30% 82%, #FFD24A 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 66% 74%, #fff 50%, transparent 51%),
    radial-gradient(ellipse 80% 60% at 80% 0%, rgba(120,90,255,.18), transparent 70%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(245,183,0,.12), transparent 70%);
}
.games__sky::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 28px;
  background:
    linear-gradient(var(--night-2), var(--night-2)) 0 8px / 100% 100% no-repeat;
  -webkit-mask: linear-gradient(90deg, #000 50%, transparent 0) 0 0 / 16px 8px repeat-x, linear-gradient(#000, #000) 0 8px / 100% 100% no-repeat;
          mask: linear-gradient(90deg, #000 50%, transparent 0) 0 0 / 16px 8px repeat-x, linear-gradient(#000, #000) 0 8px / 100% 100% no-repeat;
}
.games .eyebrow { color: rgba(241,236,225,.6); }
.games .eyebrow__n { color: var(--gold); border-color: rgba(245,183,0,.5); font-family: var(--pixel); font-size: 8px; }
.games .section__title { color: var(--night-ink); }
.games__studio { display: flex; gap: 16px; align-items: center; max-width: 440px; color: rgba(241,236,225,.78); }
.games__studio img { width: 80px; height: 80px; flex: none; image-rendering: pixelated; }
.games__studio p { margin: 0; }
.games__studio .pixel { color: var(--gold); }

.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.game {
  background: var(--night-2); border: 2px solid rgba(255,255,255,.08); border-radius: 6px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.game:hover { transform: translate(-3px, -3px); border-color: var(--gold); box-shadow: 6px 6px 0 var(--gold); }
.game__media { position: relative; aspect-ratio: 1.9 / 1; background: #000; overflow: hidden; }
.game__media video, .game__media img { width: 100%; height: 100%; object-fit: cover; }
.game__body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.game__top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.game__status { font-family: var(--pixel); font-size: 8px; line-height: 1; padding: 7px 8px; background: var(--gold); color: var(--on-gold); }
.game__status--soon { background: transparent; color: var(--gold); box-shadow: inset 0 0 0 2px var(--gold); }
.game__genre { font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: rgba(241,236,225,.55); letter-spacing: .04em; }
.game__name { font-family: var(--pixel); font-size: clamp(18px, 1.8vw, 22px); line-height: 1.3; margin: 4px 0 0; color: #fff; }
.game__blurb { margin: 0; color: rgba(241,236,225,.75); font-size: 16px; }
.game__links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; }

.pbtn {
  font-family: var(--pixel); font-size: 10px; line-height: 1; letter-spacing: 0;
  padding: 12px 14px; background: transparent; color: var(--night-ink);
  box-shadow: inset 0 0 0 2px rgba(241,236,225,.35); border: 0;
  transition: transform .12s, box-shadow .12s, background-color .12s, color .12s;
  display: inline-flex; align-items: center; gap: 8px;
}
.pbtn:hover { box-shadow: inset 0 0 0 2px var(--night-ink), 3px 3px 0 var(--night-ink); transform: translate(-2px, -2px); }
.pbtn:active { transform: translate(0, 0); box-shadow: inset 0 0 0 2px var(--night-ink); }
.pbtn--primary { background: var(--gold); color: var(--on-gold); box-shadow: none; }
.pbtn--primary:hover { box-shadow: 3px 3px 0 #fff; background: var(--gold-2); }

/* feature game (Ember) */
.game--feature { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.game--feature .game__media { aspect-ratio: auto; min-height: 340px; cursor: pointer; }
.game--feature .game__media img { position: absolute; inset: 0; transition: transform 1s var(--ease); }
.game--feature .game__media:hover img { transform: scale(1.04); }
.game--feature .game__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, var(--night-2)); }
.game--feature .game__name { font-size: clamp(24px, 2.6vw, 34px); }
.game--feature .game__body { padding: clamp(24px, 3vw, 40px); justify-content: center; }
.game--feature .play { z-index: 2; }

/* the sheep */
.sheep {
  position: absolute; bottom: 20px; left: 0; z-index: 3;
  width: 80px; height: 60px; padding: 0; border: 0; background: none; filter: drop-shadow(0 0 14px rgba(245,183,0,.25));
  animation: walk 36s linear infinite;
}
.sheep svg { width: 100%; height: 100%; overflow: visible; animation: face 36s steps(1) infinite; }
.sheep__wool rect { fill: #F4F0E6; }
.sheep__face rect { fill: #6B5E55; }
.sheep__eye { fill: #15140F; }
.sheep__legs rect { fill: #9C8F84; }
.leg-a { animation: step .5s steps(1) infinite; }
.leg-b { animation: step .5s steps(1) infinite reverse; }
@keyframes step { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1px); } }
@keyframes walk { 0% { transform: translateX(-80px); } 50% { transform: translateX(calc(100vw + 10px)); } 100% { transform: translateX(-80px); } }
@keyframes face { 0% { transform: scaleX(1); } 50% { transform: scaleX(-1); } }
.sheep__bubble {
  position: absolute; bottom: 100%; left: 50%; transform: translate(-50%, 6px) scale(.6); opacity: 0;
  font-family: var(--pixel); font-size: 10px; background: #fff; color: #111; padding: 8px 10px; white-space: nowrap;
  box-shadow: 3px 3px 0 var(--gold); transition: all .2s var(--ease); pointer-events: none;
}
.sheep.is-baa .sheep__bubble { opacity: 1; transform: translate(-50%, -6px) scale(1); }
.sheep.is-baa svg { animation-name: face, hop; animation-duration: 36s, .45s; animation-timing-function: steps(1), var(--ease); animation-iteration-count: infinite, 1; }
@keyframes hop { 50% { translate: 0 -18px; } }
.sheep:hover { animation-play-state: paused; }
.sheep:hover svg, .sheep:hover .leg-a, .sheep:hover .leg-b { animation-play-state: paused; }
.flock-sheep { position: fixed; z-index: 120; width: 48px; height: 36px; pointer-events: none; top: -60px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(calc(100vh + 120px)) rotate(var(--r, 180deg)); } }

/* ---------- contact ---------- */
.contact { text-align: left; }
.contact__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 320px); gap: clamp(32px, 6vw, 96px); align-items: center; margin-bottom: 48px; }
.contact__top .contact__lede { margin-bottom: 0; }
.snapshot {
  margin: 0; padding: 12px 12px 0; background: var(--card); border: 1px solid var(--line);
  border-radius: 6px; box-shadow: var(--shadow); transform: rotate(-3deg);
  transition: transform .6s var(--ease); position: relative;
}
.snapshot:hover { transform: rotate(0deg) translateY(-4px); }
.snapshot img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.snapshot figcaption { padding: 14px 4px 16px; text-align: center; color: var(--muted); }
.snapshot::before {
  content: ""; position: absolute; top: -14px; left: 50%; width: 96px; height: 28px; margin-left: -48px;
  background: color-mix(in srgb, var(--gold) 70%, transparent); transform: rotate(4deg); z-index: 1;
}
.contact__title { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 7.2vw, 116px); line-height: .95; letter-spacing: -.03em; margin: 0 0 28px; max-width: 17ch; }
.contact__title em { color: var(--muted); }
.pixel-word { font-family: var(--pixel); font-size: .48em; letter-spacing: 0; background: var(--gold); color: var(--on-gold); padding: .18em .3em; vertical-align: .32em; display: inline-block; box-shadow: .12em .12em 0 var(--ink); }
.contact__lede { font-size: 19px; color: var(--ink-2); max-width: 56ch; margin: 0 0 48px; }
.contact__links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.link-card {
  position: relative; display: flex; flex-direction: column; gap: 22px;
  padding: 24px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--card); transition: transform .3s var(--ease), border-color .3s, background-color .3s, color .3s;
}
.link-card__t { font-family: var(--serif); font-size: clamp(28px, 2.6vw, 38px); line-height: 1; letter-spacing: -.02em; }
.link-card__arrow { position: absolute; right: 22px; top: 20px; font-size: 22px; transition: transform .3s var(--ease); }
.link-card:hover { background: var(--gold); color: var(--on-gold); border-color: var(--gold); transform: translateY(-4px); }
.link-card:hover .muted { color: inherit; opacity: .7; }
.link-card:hover .link-card__arrow { transform: translate(4px, -4px); }

/* ---------- footer ---------- */
.footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 32px 40px; font-size: 15px; background: linear-gradient(var(--line), var(--line)) center top / calc(100% - var(--gutter) * 2) 1px no-repeat; }
.footer a:hover { color: var(--accent-text); }

/* ---------- player ---------- */
.player {
  border: 0; padding: 0; background: transparent; color: #fff;
  width: min(1000px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); overflow: visible;
}
.player::backdrop { background: rgba(10,9,8,.82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.player[open] { animation: pop .35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.player__bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 14px; }
.player__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.player__info .muted { color: rgba(255,255,255,.6); }
.player__title { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 32px); line-height: 1.1; letter-spacing: -.01em; }
.player .icon-btn { border-color: rgba(255,255,255,.3); color: #fff; flex: none; }
.player__stage { border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.player__stage iframe { width: 100%; height: 100%; border: 0; display: block; }
.player__stage--audio { aspect-ratio: auto; height: 352px; background: transparent; }
.player__stage--vertical { aspect-ratio: 9 / 16; width: 100%; }
.player--vertical { width: min(400px, calc(100vw - 32px), calc((100vh - 140px) * 9 / 16)); }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 150; transform: translate(-50%, 20px); opacity: 0;
  background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 999px; font-size: 14.5px; font-weight: 500;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.4); transition: all .3s var(--ease); pointer-events: none; white-space: nowrap;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .nav__links { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(180px, 260px); }
  .about { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .erin { grid-template-columns: 1fr; }
  .erin__art { padding: 0 32px 40px; }
  .network { max-width: 340px; }
  .featured { grid-template-columns: 1fr; }
  .year { grid-template-columns: 1fr; gap: 20px; }
  .year__label { position: static; display: flex; align-items: baseline; gap: 14px; }
  .year__note { margin-top: 0; }
  .game--feature { grid-template-columns: 1fr; }
  .game--feature .game__media { min-height: 0; aspect-ratio: 2.1 / 1; }
  .game--feature .game__media::after { background: linear-gradient(0deg, var(--night-2), transparent 40%); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero { grid-template-columns: 1fr; grid-template-areas: "meta" "title" "portrait" "body"; }
  .hero__coords { display: none; }
  .hero__line--2 { padding-left: .3em; }
  .portrait { width: min(72%, 300px); margin: 32px auto 0 auto; justify-self: center; }
  .sticker { left: -12px; }
  .game-grid { grid-template-columns: 1fr; }
  .contact__links { grid-template-columns: 1fr; }
  .contact__top { grid-template-columns: 1fr; }
  .snapshot { width: min(78%, 300px); justify-self: center; }
  .shorts__row { grid-template-columns: repeat(3, 62%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); }
  .short { scroll-snap-align: start; }
  .nav .btn span { display: none; }
  .nav .btn { padding: 0 12px; }
  .hide-sm { display: none; }
  .facts > div { grid-template-columns: 100px 1fr; }
  .stat { padding-right: 12px; }
  .stat + .stat { padding-left: 16px; }
  .stat:nth-child(3) { padding-left: 0; }
  .footer__mid { order: 3; width: 100%; }
}
@media (max-width: 420px) {
  .status { margin-left: 0; }
  .hero__cta .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .ticker__track { animation: none; flex-wrap: wrap; width: auto; }
  .ticker__group[aria-hidden] { display: none; }
  .ticker__group { flex-wrap: wrap; justify-content: center; }
  .sheep { animation: none; left: 24px; }
  .js .reveal { opacity: 1; transform: none; }
}
.flock-sheep svg { width: 100%; height: 100%; }

/* ==========================================================================
   WOW LAYER: skyline, pixel city, motion
   ========================================================================== */

/* ---------- hero tightening so the skyline lands above the fold ---------- */
.hero { padding-bottom: clamp(8px, 2vw, 24px); }
.hero__title { font-size: clamp(76px, 13.4vw, 204px); }
.hero__body { padding-top: clamp(18px, 2.4vw, 32px); }
.hero__lede { margin-bottom: 24px; }

/* split-letter entrance */
.hero__title .char { display: inline-block; will-change: transform, opacity, filter; }
.js .hero__title .char { opacity: 0; transform: translateY(.32em) rotate(6deg); filter: blur(12px); animation: charIn 1s var(--ease) forwards; animation-delay: calc(var(--i) * 55ms + .15s); }
.js .hero__title .hero__period.char { animation-name: periodIn; animation-duration: .9s; animation-timing-function: cubic-bezier(.3, 1.6, .5, 1); }
@keyframes charIn { to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes periodIn { 0% { opacity: 0; transform: translateY(-1.4em) scale(.4); filter: none; } 100% { opacity: 1; transform: none; filter: none; } }

/* ---------- portrait: 3D tilt + glare ---------- */
.portrait { perspective: 1000px; }
.portrait__frame { transform: rotate(2.5deg) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; will-change: transform; }
.portrait.is-tilting .portrait__frame { transition: transform .12s linear; }
.portrait:hover .portrait__frame { transform: rotate(0deg) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(1.02); }
.portrait__glare {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .4s;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,.45), rgba(255,255,255,0) 45%);
  mix-blend-mode: soft-light;
}
.portrait:hover .portrait__glare { opacity: 1; }

/* ---------- nav scroll progress ---------- */
.nav::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  background: var(--gold); transform-origin: 0 50%; transform: scaleX(var(--progress, 0));
}

/* ---------- skyline (hero) ---------- */
.skyline {
  position: relative; width: 100%; height: max(190px, 20.625vw); margin-top: clamp(-40px, -2vw, -8px);
  color: var(--ink); pointer-events: none; z-index: 1;
}
.skyline svg { width: 100%; height: 100%; display: block; overflow: visible; }
.skyline path, .skyline circle { vector-effect: none; }
.skyline .b { fill: var(--bg); stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; transition: fill .6s var(--ease), stroke .6s; }
.skyline .b--back { stroke: color-mix(in srgb, var(--ink) 38%, transparent); fill: var(--bg); }
.skyline .b--dark { fill: color-mix(in srgb, var(--ink) 86%, var(--bg)); }
.skyline .mast { stroke: var(--ink); stroke-width: 1.5; fill: none; }
.skyline .win { fill: color-mix(in srgb, var(--ink) 13%, transparent); }
.skyline .lit path { fill: var(--gold); opacity: 0; transition: opacity .5s; }
.skyline .shore { stroke: var(--ink); stroke-width: 1.5; fill: none; }
.skyline .bridge path { fill: none; stroke: var(--gold); stroke-width: 2.6; stroke-linecap: round; }
.skyline .bridge .hangers { stroke-width: 1; stroke: color-mix(in srgb, var(--gold) 70%, var(--ink)); }
.skyline .fountain path { fill: none; stroke: color-mix(in srgb, var(--ink) 45%, transparent); stroke-width: 1.2; stroke-linecap: round; transform-origin: 248px 252px; animation: spray 2.6s ease-in-out infinite; }
.skyline .fountain .jet { stroke-width: 2; stroke-dasharray: 3 4; animation: spray 2.6s ease-in-out infinite, jet 1s linear infinite; }
@keyframes spray { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.9); } }
@keyframes jet { to { stroke-dashoffset: -7; } }
.skyline .wave { fill: none; stroke: color-mix(in srgb, var(--ink) 22%, transparent); stroke-width: 1.2; stroke-linecap: round; animation: wave linear infinite; }
@keyframes wave { to { stroke-dashoffset: -400; } }
.skyline .reflect path, .skyline .sun-reflect path { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; opacity: .55; animation: shimmer 3.5s ease-in-out infinite; }
.skyline .sun-reflect { transition: opacity .3s; }
@keyframes shimmer { 0%, 100% { opacity: .55; transform: translateX(0); } 50% { opacity: .25; transform: translateX(6px); } }
.skyline .sky-sun { fill: var(--gold); }
.skyline .sky-sun-wrap { will-change: transform; }
.skyline .sky-dusk { opacity: 0; transition: opacity .3s; }
.skyline .sky-stars circle { fill: var(--ink); }
.skyline .sky-stars, .skyline .sky-moon { opacity: 0; transition: opacity .8s; }
.skyline .sky-moon circle { fill: #F1ECE1; }
.skyline .tw { animation: twinkle 3s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .2; } }
.skyline .beacon { fill: #E5484D; animation: beacon 2.4s steps(1) infinite; }
@keyframes beacon { 0%, 100% { fill: #E5484D; } 50% { fill: var(--gold); } }
.skyline .boat path { fill: var(--bg); stroke: var(--ink); stroke-width: 1.3; stroke-linejoin: round; }
.skyline .hill { fill: var(--bg); stroke: var(--ink); stroke-width: 1.5; }
.skyline .track { stroke: var(--ink); stroke-width: 1.2; fill: none; }
.skyline .incline path { fill: #C2412D; stroke: var(--ink); stroke-width: 1; }
.skyline .incline .incline__win { fill: #FFE9A8; stroke: none; }

/* draw-in */
.skyline .draw { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.skyline .b.draw, .skyline .hill.draw { fill-opacity: 0; }
.skyline.is-drawn .draw { stroke-dashoffset: 0; transition: stroke-dashoffset 2s var(--ease) var(--dl, 0s), fill-opacity 1.2s var(--ease) calc(var(--dl, 0s) + 1s), fill .6s, stroke .6s; }
.skyline.is-drawn .b.draw, .skyline.is-drawn .hill.draw { fill-opacity: 1; }
.skyline .win, .skyline .lit, .skyline .fountain, .skyline .reflect, .skyline .boat, .skyline .incline, .skyline .track, .skyline .bridge .hangers, .skyline .sky-sun-wrap, .skyline .water { opacity: 0; transition: opacity 1.4s var(--ease) 1.6s; }
.skyline.is-drawn .win, .skyline.is-drawn .lit, .skyline.is-drawn .fountain, .skyline.is-drawn .boat, .skyline.is-drawn .incline,
.skyline.is-drawn .track, .skyline.is-drawn .bridge .hangers, .skyline.is-drawn .sky-sun-wrap, .skyline.is-drawn .water { opacity: 1; }
.skyline.is-drawn .reflect { opacity: 1; }
.skyline.no-anim * { transition: none !important; }

/* night */
:root[data-theme="dark"] .skyline .sky-stars, :root[data-theme="dark"] .skyline .sky-moon { opacity: 1; }
:root[data-theme="dark"] .skyline .sky-sun-wrap { opacity: 0 !important; }
:root[data-theme="dark"] .skyline .b--dark { fill: #0B0A08; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .skyline .sky-stars, :root:not([data-theme="light"]) .skyline .sky-moon { opacity: 1; }
  :root:not([data-theme="light"]) .skyline .sky-sun-wrap { opacity: 0 !important; }
  :root:not([data-theme="light"]) .skyline .b--dark { fill: #0B0A08; }
}

.ticker { margin-top: calc(max(190px, 20.625vw) * -0.13); }

/* ---------- featured "now playing" equalizer ---------- */
.featured__label::before { display: none; }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; margin-right: 2px; }
.eq i { width: 3px; height: 100%; background: var(--accent-text); border-radius: 1px; transform-origin: bottom; animation: eq 1.1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; animation-duration: .9s; }
.eq i:nth-child(3) { animation-delay: -.6s; animation-duration: 1.3s; }
.eq i:nth-child(4) { animation-delay: -.15s; animation-duration: 1s; }
@keyframes eq { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }

/* ---------- ERIN: cursor spotlight ---------- */
.erin::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(520px circle at var(--mx, 70%) var(--my, 40%), rgba(245,183,0,.16), transparent 60%);
}
.erin:hover::before { opacity: 1; }
.network { transition: transform .6s var(--ease); transform: translate(var(--nx, 0px), var(--ny, 0px)); }

/* ---------- games: pixel city at night ---------- */
.games { padding-bottom: 0; }
.games__sky::after { display: none; }
.city { position: relative; margin-top: clamp(64px, 8vw, 112px); }
.city canvas { display: block; width: 100%; height: max(150px, 20.625vw); image-rendering: pixelated; image-rendering: crisp-edges; object-fit: cover; object-position: 50% 100%; }
.city .sheep { bottom: 23.6%; width: max(44px, 4%); height: auto; aspect-ratio: 16 / 12; filter: drop-shadow(0 0 10px rgba(245,183,0,.35)); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .hero__title .char { opacity: 1; transform: none; filter: none; animation: none; }
  .skyline .draw { stroke-dashoffset: 0; }
  .skyline .b.draw, .skyline .hill.draw { fill-opacity: 1; }
  .skyline .win, .skyline .lit, .skyline .fountain, .skyline .reflect, .skyline .boat, .skyline .incline, .skyline .track, .skyline .bridge .hangers, .skyline .sky-sun-wrap, .skyline .water { opacity: 1; }
}

/* hero fit: show the skyline on first load */
.hero { padding-top: clamp(16px, 2.6vw, 36px); }
.hero__meta { padding-bottom: clamp(14px, 2vw, 24px); margin-bottom: clamp(14px, 2vw, 24px); }
.hero__title { font-size: clamp(72px, 11.8vw, 180px); }
.portrait { max-width: 300px; justify-self: end; }
.ticker { margin-top: calc(max(190px, 20.625vw) * -0.05); }
@media (max-width: 720px) { .portrait { max-width: none; justify-self: center; } }
.portrait { width: 100%; }
/* after the intro, theme/sunset changes respond immediately */
.skyline.is-settled .win, .skyline.is-settled .lit, .skyline.is-settled .sky-sun-wrap, .skyline.is-settled .reflect,
.skyline.is-settled .sky-stars, .skyline.is-settled .sky-moon { transition: opacity .7s var(--ease); transition-delay: 0s; }

/* ---------- B-side: music ---------- */
.music { margin-top: clamp(64px, 8vw, 104px); padding-top: clamp(40px, 5vw, 56px); border-top: 2px dashed rgba(241,236,225,.14); }
.music__head { display: grid; grid-template-columns: auto 1fr; align-items: end; column-gap: 32px; margin-bottom: 32px; }
.music__head .eyebrow { grid-column: 1 / -1; }
.music__head .eq i { background: var(--gold); }
.music__title { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.4vw, 60px); line-height: 1; letter-spacing: -.02em; margin: 0; color: var(--night-ink); }
.music__lede { margin: 0; color: rgba(241,236,225,.65); justify-self: end; max-width: 34ch; text-align: right; }
.music__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.artist {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 0;
  background: var(--night-2); border: 2px solid rgba(255,255,255,.08); border-radius: 6px; overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.artist:hover { transform: translate(-3px, -3px); border-color: var(--gold); box-shadow: 6px 6px 0 var(--gold); }
.artist__video { position: relative; border: 0; padding: 0; cursor: pointer; background: #000; min-height: 100%; aspect-ratio: 16 / 10; overflow: hidden; }
.artist__video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.artist__video:hover img { transform: scale(1.05); }
.artist__video:hover .card__play, .artist__video:focus-visible .card__play { opacity: 1; transform: scale(1); }
.artist__video .card__play { opacity: .92; transform: scale(.9); }
.artist__body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.artist__head { display: flex; gap: 14px; align-items: center; }
.artist__avatar { width: 56px; height: 56px; border-radius: 4px; flex: none; box-shadow: 3px 3px 0 rgba(245,183,0,.6); }
.artist__name { font-family: var(--pixel); font-size: 14px; line-height: 1.4; margin: 0 0 4px; color: #fff; word-break: break-word; }
.artist__tracks { margin: 0; color: rgba(241,236,225,.75); font-size: 14.5px; line-height: 1.5; }
.artist__tracks .mono { display: block; font-size: 11px; color: rgba(241,236,225,.5); margin-bottom: 2px; }
.artist__player { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.artist__player .pbtn svg { width: 12px; height: 12px; fill: currentColor; }
.artist__player.is-open { display: block; }
.artist__player iframe { width: 100%; height: 352px; border: 0; border-radius: 12px; display: block; background: #121212; }
.artist:has(.artist__player.is-open) { grid-template-columns: 1fr; }
.artist:has(.artist__player.is-open) .artist__video { aspect-ratio: 16 / 9; min-height: 0; }

@media (max-width: 1100px) {
  .artist { grid-template-columns: 1fr; }
  .artist__video { aspect-ratio: 16 / 9; min-height: 0; }
}
@media (max-width: 720px) {
  .music__grid { grid-template-columns: 1fr; }
  .music__head { grid-template-columns: 1fr; }
  .music__lede { justify-self: start; text-align: left; margin-top: 10px; }
}
/* artist cards: video on top, details below */
.artist { grid-template-columns: 1fr; }
.artist__video { width: 100%; min-height: 0; aspect-ratio: 16 / 9; }
.artist__body { padding: 20px 22px 24px; }
.music__grid { align-items: start; }

/* ==========================================================================
   SPEAKING: photo mosaic + speaker kit
   ========================================================================== */
a.status { color: var(--ink-2); border-radius: 999px; padding: 4px 10px 4px 8px; margin-right: -10px; transition: background-color .2s, color .2s; }
a.status:hover { background: var(--bg-2); color: var(--ink); }
a.status span { transition: transform .2s var(--ease); display: inline-block; }
a.status:hover span { transform: translateX(3px); }

.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 15vw, 220px); grid-auto-flow: dense; gap: 12px; }
.mosaic__item { position: relative; border: 0; padding: 0; margin: 0; overflow: hidden; border-radius: 16px; background: var(--bg-2); cursor: zoom-in; isolation: isolate; }
.mosaic__item--big { grid-column: span 2; grid-row: span 2; }
.mosaic__item--wide { grid-column: span 2; }
.mosaic__item--tall { grid-row: span 2; }
.mosaic__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .5s; }
.mosaic__item:hover img { transform: scale(1.05); }
.mosaic__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.62), transparent 48%); opacity: .85; transition: opacity .4s; pointer-events: none; }
.mosaic__cap { position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 12px; color: #fff; text-align: left; font-size: 11.5px; line-height: 1.35; text-shadow: 0 1px 8px rgba(0,0,0,.4); transform: translateY(4px); opacity: .92; transition: transform .4s var(--ease), opacity .4s; }
.mosaic__item:hover .mosaic__cap { transform: none; opacity: 1; }
.mosaic__item--big .mosaic__cap { font-size: 12.5px; left: 20px; bottom: 18px; }

.kit { margin-top: clamp(56px, 7vw, 96px); padding-top: 36px; border-top: 1px solid var(--line); }
.kit__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.kit__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, .9fr); gap: 16px; }
.kit__card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.kit__label { color: var(--muted); }
.topics { list-style: none; counter-reset: t; margin: 0; padding: 0; display: grid; gap: 14px; }
.topics li { counter-increment: t; display: grid; grid-template-columns: 30px 1fr; column-gap: 8px; }
.topics li::before { content: counter(t, decimal-leading-zero); font-family: var(--mono); font-size: 11px; color: var(--on-gold); background: var(--gold); border-radius: 6px; height: 22px; display: grid; place-items: center; grid-row: span 2; margin-top: 1px; }
.topics b { font-weight: 550; line-height: 1.35; font-size: 16px; }
.topics .mono { font-size: 11px; color: var(--muted); margin-top: 3px; }
.kit__bio { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.kit__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.shot { display: flex; flex-direction: column; gap: 8px; }
.shot img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 12px; transition: transform .4s var(--ease), box-shadow .4s; }
.shot:hover img { transform: translateY(-3px); box-shadow: 0 10px 24px -12px rgba(0,0,0,.45); }
.shot .mono { font-size: 11px; color: var(--ink-2); }
.shot:hover .mono { color: var(--accent-text); }
.kit__cta { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 24px; border-radius: var(--radius); background: var(--ink); color: var(--bg); }
.kit__cta p { margin: 0; font-family: var(--serif); font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; letter-spacing: -.01em; }

/* lightbox */
.player__nav { display: none; gap: 8px; margin-left: auto; }
.player--photo .player__nav { display: flex; }
.player__bar { align-items: center; }
.player--photo .player__bar { align-items: flex-end; }
.player__stage--image { aspect-ratio: auto; background: transparent; display: grid; place-items: center; }
.player__stage--image img { max-width: 100%; max-height: calc(100vh - 150px); width: auto; height: auto; border-radius: 12px; cursor: e-resize; display: block; }

/* archive collapse */
.archive.is-collapsed .card.is-extra, .archive.is-collapsed .year--extra { display: none; }
.archive__more { display: flex; justify-content: center; margin-top: 8px; }
.archive__more .btn[hidden] { display: none; }

/* phone: smaller hero portrait so the skyline shows on first load */
@media (max-width: 720px) {
  .portrait { width: min(56%, 230px); margin-top: 20px; }
  .portrait__frame img { inset: 7px; width: calc(100% - 14px); height: calc(100% - 14px); border-radius: 14px; }
  .sticker { font-size: 11px; padding: 8px 11px; left: -18px; bottom: 16px; }
  .hero__body { padding-top: 20px; }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 8px; }
  .mosaic__item--big { grid-column: span 2; grid-row: span 2; }
  .mosaic__cap { font-size: 10.5px; left: 10px; right: 10px; bottom: 9px; }
  .kit__grid { grid-template-columns: 1fr; }
  .kit__cta { flex-direction: column; align-items: flex-start; }
}
@media (min-width: 721px) and (max-width: 1020px) {
  .kit__grid { grid-template-columns: 1fr 1fr; }
  .kit__grid .kit__card:first-child { grid-column: 1 / -1; }
}
/* 7 nav links: tighten a little on mid-size desktops */
@media (max-width: 1200px) { .nav__links a { padding: 8px 10px; font-size: 14.5px; } }
@media (max-width: 720px) {
  .portrait { width: min(46%, 180px); margin-top: 16px; }
  .hero__lede { font-size: 18px; margin-bottom: 20px; }
  .kit__head { flex-direction: column; align-items: flex-start; gap: 6px; }
}
@media (max-width: 420px) {
  .hero__cta { flex-wrap: nowrap; }
  .hero__cta .btn { width: auto; flex: 1 1 auto; padding: 0 16px; font-size: 14px; }
  .hero__cta .btn--ghost { flex: 0 0 auto; }
}

/* ==========================================================================
   CAREER TIMELINE
   ========================================================================== */
.career { margin-top: clamp(64px, 8vw, 104px); }
.career__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.career__axis, .job { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); column-gap: clamp(24px, 4vw, 56px); }
.career__ticks { position: relative; height: 18px; }
.career__ticks span { position: absolute; top: 0; transform: translateX(-50%); font-family: var(--mono); font-size: 11px; color: var(--muted); }
.career__ticks span:first-child { transform: none; }
.career__ticks span:last-child { transform: translateX(-100%); }
.career__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.job { padding: 22px 0; border-bottom: 1px solid var(--line); align-items: center; transition: background-color .3s; }
.job__top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.job__co { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.4vw, 34px); line-height: 1; letter-spacing: -.02em; margin: 0; }
.job__role { color: var(--ink-2); margin: 8px 0 6px; font-size: 12px; }
.job__blurb { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; max-width: 56ch; }
.tag { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink-2); }
.tag--founder { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.tag--exit { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.job__track {
  position: relative; height: 34px; border-radius: 8px;
  background-image: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px var(--grid, 23.5%));
}
.job__track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); }
.bar {
  position: absolute; top: 7px; bottom: 7px; left: var(--l); width: var(--w); min-width: 8px;
  border-radius: 999px; background: color-mix(in srgb, var(--ink) 72%, transparent);
  transform-origin: left center; transform: scaleX(0); transition: transform 1.1s var(--ease) var(--d, 0s);
  display: flex; align-items: center; overflow: visible;
}
.bar--founder { background: var(--gold); }
.bar--seg { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: 2px; }
.bar em { font-style: normal; font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: var(--bg); padding: 0 8px; white-space: nowrap; opacity: 0; transition: opacity .4s 1s; }
.bar--founder em { color: var(--on-gold); }
.bar--now::after { content: ""; position: absolute; right: -4px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 99px; background: #2FBF71; box-shadow: 0 0 0 0 rgba(47,191,113,.6); animation: ping 2.2s infinite; opacity: 0; transition: opacity .4s 1.1s; }
.bar__exit {
  position: absolute; left: var(--l); top: 50%; transform: translate(10px, -50%); white-space: nowrap;
  font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink);
  opacity: 0; transition: opacity .5s 1.2s;
}
.bar__exit::before { content: "◆"; color: var(--gold); margin-right: 6px; }
.career.is-in .bar { transform: scaleX(1); }
.career.is-in .bar em, .career.is-in .bar--now::after, .career.is-in .bar__exit { opacity: 1; }
.job:hover .bar { filter: brightness(1.06); }
.job:hover .job__co a { background-size: 100% 100%; color: var(--on-gold); }
.career__more { display: inline-block; margin-top: 18px; color: var(--ink-2); }
.career__more:hover { color: var(--accent-text); }

@media (max-width: 860px) {
  .career__axis { display: none; }
  .job { grid-template-columns: 1fr; row-gap: 12px; }
  .job__track { height: 22px; }
  .bar { top: 5px; bottom: 5px; }
  .bar em { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bar { transform: none; transition: none; }
  .bar em, .bar--now::after, .bar__exit { opacity: 1; transition: none; }
}
