/* ==========================================================================
   LITTLE FANS PROJECT — styles
   ========================================================================== */

:root {
  --bg: #0A0A0B;
  --bg-2: #111113;
  --bg-3: #19191C;
  --line: #242428;
  --line-2: #34343A;
  --text: #F4F3EF;
  --text-2: #A6A6AC;
  --text-3: #6E6E75;
  --white: #FFFFFF;
  --red: #FF3D31;
  --yellow: #F8BB1D;

  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --serif: "Instrument Serif", "Georgia", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1600px;
  --gap: clamp(8px, 1.1vw, 16px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color: var(--text); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  background: var(--bg); color: var(--text);
  min-height: 100vh; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
/* faint film grain for a printed feel */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 200; opacity: .05;
  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='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
main:focus { outline: none; }
::selection { background: var(--red); color: var(--white); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 300; background: var(--yellow); color: #000; padding: 8px 14px; font-weight: 600; }
.skip:focus { left: 8px; }

.label {
  font-family: var(--sans); font-size: 11px; font-weight: 600; line-height: 1.4;
  letter-spacing: .18em; text-transform: uppercase; color: var(--text-2);
}
.label--red { color: var(--red); }
.label--yellow { color: var(--yellow); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--red); vertical-align: middle; margin-right: 10px; transform: translateY(-1px); }
.dot--yellow { background: var(--yellow); }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 11, .82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top__in { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { font-family: var(--display); font-size: 22px; line-height: 1; letter-spacing: .05em; text-transform: uppercase; display: inline-flex; align-items: flex-end; gap: 3px; }
.brand i { width: 6px; height: 6px; background: var(--red); border-radius: 50%; margin-bottom: 2px; }
.nav { display: flex; gap: clamp(16px, 2.4vw, 32px); }
.nav a {
  position: relative; padding: 8px 0;
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--text-2);
  transition: color .2s;
}
.nav a:hover, .nav a.is-active { color: var(--text); }
.nav a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--red); }

/* ---------- masthead ---------- */
.mast { padding: clamp(24px, 4vw, 56px) 0 clamp(40px, 6vw, 88px); border-bottom: 1px solid var(--line); }
.mast__meta { display: flex; align-items: center; gap: 16px; }
.mast__meta .rule { flex: 1; height: 1px; background: var(--line-2); }
.mast__name { font-weight: 400; margin-top: clamp(16px, 2.4vw, 32px); }
.mast__nick {
  display: block; font-family: var(--display); text-transform: uppercase; color: var(--white);
  font-size: min(42vw, 640px); line-height: .8;
  white-space: nowrap;
}
.mast__fit { display: inline-block; font-size: inherit; letter-spacing: -.01em; }
.mast__under { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: clamp(14px, 2vw, 28px); }
.mast__full {
  display: block; font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(36px, 6.4vw, 104px); line-height: 1; color: var(--text);
}
.mast__full::before {
  content: ""; display: inline-block; width: .55em; height: .07em; background: var(--red);
  vertical-align: middle; margin-right: .28em; transform: translateY(-.05em);
}
.mast__role { padding-bottom: .6em; white-space: nowrap; }
.mast__foot {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px;
  margin-top: clamp(32px, 4vw, 56px); padding-top: 20px; border-top: 1px solid var(--line);
}
.mast__intro { max-width: 46ch; color: var(--text-2); font-size: 15px; }
.mast__cue { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.mast__cue span { display: inline-block; transition: transform .3s var(--ease); }
.mast__cue:hover { color: var(--text); }
.mast__cue:hover span { transform: translateY(4px); }

/* ---------- section heads ---------- */
.sec-head {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-bottom: 16px; border-bottom: 1px solid var(--line);
}

/* ---------- index ---------- */
.index { padding: clamp(48px, 7vw, 112px) 0; }
.index__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.index__list { list-style: none; }
.row {
  display: grid; grid-template-columns: clamp(36px, 4vw, 64px) minmax(0, 1fr) auto 24px;
  align-items: center; gap: clamp(12px, 1.6vw, 24px);
  padding: clamp(20px, 2.4vw, 32px) 0; border-bottom: 1px solid var(--line);
  transition: opacity .35s var(--ease);
}
.row__num { font-family: var(--display); font-size: 18px; line-height: 1; color: var(--red); align-self: start; padding-top: .45em; }
.row__title { display: block; font-family: var(--display); text-transform: uppercase; font-size: clamp(34px, 4.6vw, 72px); line-height: .95; transition: transform .45s var(--ease); }
.row__desc { display: block; margin-top: 8px; font-family: var(--serif); font-style: italic; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.3; color: var(--text-2); }
.row__count { text-align: right; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.row__count b { display: block; font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1.1; letter-spacing: 0; color: var(--yellow); }
.row__count.is-zero b { color: var(--text-3); }
.row__arrow { font-size: 20px; color: var(--text-2); transition: transform .35s var(--ease), color .35s; }
.row__thumb { display: none; }
@media (hover: hover) {
  .index__list:hover .row { opacity: .38; }
  .index__list .row:hover, .index__list .row:focus-visible { opacity: 1; }
}
.row:hover .row__title, .row:focus-visible .row__title { transform: translateX(10px); }
.row:hover .row__arrow, .row:focus-visible .row__arrow { transform: translateX(6px); color: var(--red); }

.index__cover { position: sticky; top: 92px; }
.cover { position: relative; aspect-ratio: 4 / 5; background: var(--bg-2); overflow: hidden; border: 1px solid var(--line); }
.cover__layer { position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--ease); }
.cover__layer.is-on { opacity: 1; }
.cover__layer img { width: 100%; height: 100%; object-fit: cover; }
.cover__ph { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden;
  background: repeating-linear-gradient(135deg, transparent 0 22px, rgba(255,255,255,.018) 22px 23px); }
.cover__ph b {
  font-family: var(--display); font-weight: 400; font-size: min(26vw, 300px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--line-2);
}
.cover__cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.72));
}
.cover__cap .label { color: var(--text); }

/* ---------- fan projects band ---------- */
.fans { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(48px, 7vw, 112px) 0; }
.fcard {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 4.5vw, 72px);
  padding: clamp(28px, 3.5vw, 48px) 0; border-bottom: 1px solid var(--line); align-items: center;
}
.fcard__title {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(40px, 5.4vw, 84px); line-height: .92; margin-top: 16px; transition: color .3s;
}
.fcard:hover .fcard__title, .fcard:focus-visible .fcard__title { color: var(--yellow); }
.fcard__desc { margin-top: 14px; font-family: var(--serif); font-style: italic; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.35; color: var(--text-2); max-width: 38ch; }
.fcard__secs { list-style: none; margin-top: 28px; border-top: 1px solid var(--line); }
.fcard__secs li { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.fcard__secs li b { font-weight: 600; color: var(--yellow); font-variant-numeric: tabular-nums; }
.fcard__secs li.is-empty { color: var(--text-3); }
.fcard__secs li.is-empty b { color: var(--text-3); font-weight: 500; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.fcard__cta { display: inline-flex; gap: 10px; margin-top: 28px; color: var(--text); }
.fcard__cta span { transition: transform .3s var(--ease); }
.fcard:hover .fcard__cta span { transform: translateX(6px); }
.mosaic { display: grid; gap: 8px; aspect-ratio: 16 / 11; grid-template-columns: 1.25fr 1fr; grid-template-rows: 1fr 1fr; }
.mosaic > * { background: var(--bg-3); overflow: hidden; position: relative; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .6s; opacity: 0; }
.mosaic img.is-loaded { opacity: 1; }
.fcard:hover .mosaic img { transform: scale(1.03); }
.mosaic > :first-child { grid-row: 1 / 3; }
.mosaic--1 > :first-child { grid-column: 1 / 3; }
.mosaic--2 > :nth-child(2) { grid-row: 1 / 3; }
.mosaic--0 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.mosaic__ph { display: grid; place-items: center; }
.mosaic__ph span { font-family: var(--display); font-size: clamp(28px, 4vw, 56px); text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px var(--line-2); }

/* ---------- page head (category / project) ---------- */
.phead { padding: clamp(24px, 3.4vw, 48px) 0 clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--line); }
.back { display: inline-flex; align-items: center; gap: 10px; transition: color .2s; }
.back:hover { color: var(--text); }
.phead__meta { display: flex; justify-content: space-between; gap: 16px; margin-top: clamp(32px, 5vw, 72px); }
.ptitle {
  font-family: var(--display); font-weight: 400; text-transform: uppercase; color: var(--white);
  font-size: clamp(60px, 12.5vw, 210px); line-height: .86; margin-top: 14px; overflow-wrap: anywhere;
}
.phead__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: clamp(16px, 2vw, 28px); }
.pdesc { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.2vw, 30px); line-height: 1.25; color: var(--text-2); max-width: 36ch; }
.pcount { text-align: right; white-space: nowrap; }
.pcount b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(36px, 4vw, 56px); line-height: 1; color: var(--yellow); letter-spacing: 0; }

/* ---------- gallery ---------- */
.gsec { padding-top: clamp(32px, 4vw, 56px); }
.gsec__head { display: flex; align-items: baseline; gap: 16px; margin-bottom: clamp(16px, 2vw, 24px); }
.gsec__title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(26px, 2.8vw, 40px); line-height: 1; }
.gsec__count { color: var(--yellow); }
.gsec__head .rule { flex: 1; height: 1px; background: var(--line); transform: translateY(-6px); }

.grid { columns: 2; column-gap: var(--gap); }
@media (min-width: 1000px) { .grid { columns: 3; } }
.grid.grid--n1 { columns: 1; max-width: 560px; }
.grid.grid--n2 { columns: 2; max-width: 1040px; }
.tile {
  display: block; width: 100%; margin: 0 0 var(--gap); break-inside: avoid; position: relative;
  background: var(--bg-3); overflow: hidden; min-height: 160px; text-align: left;
}
.tile.is-loaded { min-height: 0; background: transparent; }
.tile img { width: 100%; height: auto; opacity: 0; transition: opacity .6s var(--ease), transform .9s var(--ease); }
.tile img.is-loaded { opacity: 1; }
.tile.is-error { min-height: 160px; }
.tile.is-error::after { content: "Image unavailable"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.tile__num {
  position: absolute; left: 10px; top: 8px; z-index: 2;
  font-size: 11px; font-weight: 600; letter-spacing: .16em; color: var(--white);
  opacity: 0; transition: opacity .3s; text-shadow: 0 1px 6px rgba(0,0,0,.6);
}
.tile::before { content: ""; position: absolute; inset: 0; z-index: 1; border: 2px solid transparent; transition: border-color .3s; pointer-events: none; }
@media (hover: hover) {
  .tile:hover img { transform: scale(1.035); }
  .tile:hover .tile__num { opacity: 1; }
  .tile:hover::before { border-color: var(--red); }
}
.tile:focus-visible { outline-offset: 2px; }

.soon { margin-top: clamp(32px, 4vw, 56px); padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; }
.soon__list { color: var(--text-3); font-size: 14px; }

.empty {
  margin-top: clamp(32px, 5vw, 64px); border: 1px dashed var(--line-2);
  padding: clamp(40px, 7vw, 96px) clamp(20px, 4vw, 48px); text-align: center;
}
.empty__big { font-family: var(--display); font-size: clamp(44px, 7vw, 110px); line-height: 1; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px var(--text-3); }
.empty p { color: var(--text-2); margin: 14px auto 0; max-width: 52ch; }
.empty .hint { margin-top: 22px; padding: 14px 18px; background: var(--bg-2); border-left: 2px solid var(--yellow); text-align: left; font-size: 14px; color: var(--text-2); max-width: 60ch; }
.empty .hint b { color: var(--text); }

/* ---------- pager ---------- */
.pager { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); margin-top: clamp(56px, 7vw, 112px); }
.pager a { display: block; padding: clamp(24px, 3vw, 40px) 0; min-width: 0; }
.pager a.next { text-align: right; border-left: 1px solid var(--line); padding-left: 20px; grid-column: 2; }
.pager a.prev { padding-right: 20px; }
.pager__t { display: block; margin-top: 8px; font-family: var(--display); text-transform: uppercase; font-size: clamp(26px, 4vw, 56px); line-height: 1; transition: color .3s; overflow-wrap: anywhere; }
.pager a:hover .pager__t { color: var(--red); }

/* ---------- footer ---------- */
.foot { padding: clamp(56px, 8vw, 120px) 0 28px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 4px clamp(20px, 3.5vw, 56px); margin-top: 24px; }
.foot__links a {
  font-family: var(--display); text-transform: uppercase; font-size: clamp(40px, 7vw, 112px); line-height: 1.02;
  display: inline-flex; align-items: flex-start; gap: 6px; transition: color .25s;
}
.foot__links a sup { font-family: var(--sans); font-size: .26em; font-weight: 500; color: var(--text-3); transform: translateY(.5em); transition: color .25s, transform .25s; }
.foot__links a:hover { color: var(--red); }
.foot__links a:hover sup { color: var(--red); transform: translate(3px, .4em); }
.foot__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px;
  margin-top: clamp(48px, 6vw, 88px); padding-top: 18px; border-top: 1px solid var(--line);
}
.foot__credit { font-size: 13px; color: var(--text-3); max-width: 70ch; }

/* ---------- lightbox ---------- */
.lb {
  position: fixed; inset: 0; z-index: 100; background: rgba(6, 6, 7, .97);
  display: grid; grid-template-rows: auto minmax(0, 1fr);
  opacity: 0; transition: opacity .25s;
}
.lb[hidden] { display: none; }
.lb.is-open { opacity: 1; }
.lb__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 14px var(--gutter); }
.lb__count { font-family: var(--display); font-size: 20px; letter-spacing: .04em; color: var(--yellow); }
.lb__count i { font-style: normal; color: var(--text-3); }
.lb__close { justify-self: end; display: inline-flex; gap: 10px; align-items: center; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--text-2); padding: 8px 0; }
.lb__close:hover { color: var(--red); }
.lb__stage { --px: clamp(12px, 7vw, 120px); --pb: clamp(12px, 3vw, 36px); position: relative; min-height: 0; touch-action: pan-y; }
.lb__img {
  position: absolute; top: 0; left: var(--px); width: calc(100% - 2 * var(--px)); height: calc(100% - var(--pb));
  object-fit: contain; user-select: none; -webkit-user-drag: none;
}
.lb__img:not([src]) { visibility: hidden; }
.lb__spin { position: absolute; left: 50%; top: 50%; margin: -14px 0 0 -14px; width: 28px; height: 28px; border: 2px solid var(--line-2); border-top-color: var(--red); border-radius: 50%; animation: spin .8s linear infinite; opacity: 0; transition: opacity .2s; }
.lb.is-loading .lb__spin { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.lb__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border: 1px solid var(--line-2); border-radius: 50%;
  display: grid; place-items: center; font-size: 18px; background: rgba(10, 10, 11, .6);
  transition: border-color .2s, color .2s;
}
.lb__prev { left: var(--gutter); }
.lb__next { right: var(--gutter); }
.lb__nav:hover { border-color: var(--red); color: var(--red); }
.lb__nav[disabled] { opacity: .25; pointer-events: none; }

/* ---------- page transitions ---------- */
.view { animation: rise .6s var(--ease); }
@keyframes rise { from { opacity: .35; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 899px) {
  .index__grid { grid-template-columns: 1fr; }
  .index__cover { display: none; }
  .row { grid-template-columns: 30px minmax(0, 1fr) auto; }
  .row__arrow { display: none; }
  .row__thumb { display: block; width: 56px; height: 70px; background: var(--bg-3); overflow: hidden; }
  .row__thumb img { width: 100%; height: 100%; object-fit: cover; }
  .row.has-thumb .row__count { display: none; }
  .fcard { grid-template-columns: 1fr; }
  .fcard__media { order: -1; }
}
@media (max-width: 599px) {
  .hide-sm { display: none; }
  .nav a { font-size: 11px; letter-spacing: .14em; }
  .mast__under { flex-direction: column; align-items: flex-start; gap: 12px; }
  .mast__role { padding-bottom: 0; }
  .mast__foot { flex-direction: column; align-items: flex-start; gap: 18px; }
  .phead__row { flex-direction: column; align-items: flex-start; }
  .pcount { text-align: left; }
  .pager { grid-template-columns: 1fr; }
  .pager a.next { grid-column: 1; border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .lb__bar { grid-template-columns: 1fr auto; }
  .lb__where { display: none; }
  .lb__nav { top: auto; bottom: 18px; transform: none; width: 46px; height: 46px; }
  .lb__stage { --px: 12px; --pb: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
