/*
 * NOWON Band - About, version 1 (about.html)
 * Page-only styles. Shared tokens and components are in ../style.css.
 *
 * TABLE OF CONTENTS
 *  1. Shared bits: top row, pills, tags, stats
 *  2. 01 Manifesto: spotlight words
 *  3. 02 Story: zigzag chapters
 *  4. 03 Line-up: staggered cards
 *  5. 04 Numbers: counting wall
 *  6. 05 Press: pinned clippings
 *  7. Media queries
 */

/* ==========================================================================
   1. Shared bits: top row, pills, tags, stats
   ========================================================================== */
.page-about .section-head {
  margin-bottom: 56px;
}

.ab-toprow {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 24px;
}

.ab-pill {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--acc);
  color: var(--ink);
  font-weight: 700;
  font-size: 10px;
  line-height: 1;
  letter-spacing: .2em;
  white-space: nowrap;
}

.ab-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ab-tag {
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--line-3);
  border-radius: 999px;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: .15em;
  white-space: nowrap;
}

.ab-stat__value {
  display: block;
  font-weight: 900;
  font-size: clamp(28px, 2.8vw, 48px);
  line-height: 1;
  letter-spacing: -.03em;
}

.ab-stat__label {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: .25em;
}

/* ==========================================================================
   2. 01 Manifesto: spotlight words
   The lit layer is a photo slot masked by a soft circle. It drifts on its own
   and follows the cursor (or a finger) while it is over the box.
   ========================================================================== */
.ab1-spot {
  --spot: clamp(200px, 30vw, 420px);
  position: relative;
  margin-top: 28px;
  overflow: hidden;
  border-radius: 14px;
  background: #161514;
  cursor: crosshair;
  touch-action: pan-y;
}

.ab1-spot__words {
  display: block;
  margin: 0;
  padding: clamp(24px, 3.9vw, 56px) clamp(18px, 3vw, 44px);
}

.ab1-spot__line {
  display: block;
  color: transparent;
  font-weight: 800;
  font-size: clamp(20px, 7.1vw, 140px);
  line-height: 1.02;
  letter-spacing: 0;
  white-space: nowrap;
  -webkit-text-stroke: 1.5px rgba(245, 237, 216, .32);
}

.ab1-spot__lit {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, #2b2825 0 14px, #35312d 14px 28px);
  -webkit-mask-image: radial-gradient(circle closest-side, #000 72%, transparent 100%);
  mask-image: radial-gradient(circle closest-side, #000 72%, transparent 100%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: var(--spot) var(--spot);
  mask-size: var(--spot) var(--spot);
  -webkit-mask-position: var(--sx, 50%) var(--sy, 50%);
  mask-position: var(--sx, 50%) var(--sy, 50%);
  animation: ab1-drift-mask 18s ease-in-out infinite;
}

.ab1-spot__words--lit {
  position: relative;
  z-index: 1;
}

.ab1-spot__words--lit .ab1-spot__line {
  color: var(--acc);
  -webkit-text-stroke: 1.5px var(--acc);
}

.ab1-spot__ring {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle closest-side, transparent calc(100% - 2px), var(--acc) calc(100% - 2px), var(--acc) 100%, transparent 100%);
  background-repeat: no-repeat;
  background-size: var(--spot) var(--spot);
  background-position: var(--sx, 50%) var(--sy, 50%);
  pointer-events: none;
  animation: ab1-drift-bg 18s ease-in-out infinite;
}

.ab1-spot.is-following .ab1-spot__lit,
.ab1-spot.is-following .ab1-spot__ring {
  animation: none;
}

@keyframes ab1-drift-mask {
  0%,
  100% {
    -webkit-mask-position: 8% 25%;
    mask-position: 8% 25%;
  }

  25% {
    -webkit-mask-position: 78% 12%;
    mask-position: 78% 12%;
  }

  50% {
    -webkit-mask-position: 92% 85%;
    mask-position: 92% 85%;
  }

  75% {
    -webkit-mask-position: 22% 78%;
    mask-position: 22% 78%;
  }
}

@keyframes ab1-drift-bg {
  0%,
  100% {
    background-position: 8% 25%;
  }

  25% {
    background-position: 78% 12%;
  }

  50% {
    background-position: 92% 85%;
  }

  75% {
    background-position: 22% 78%;
  }
}

.ab1-man__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px 60px;
  margin-top: 32px;
}

.ab1-man__text {
  max-width: 640px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  text-wrap: pretty;
}

/* ==========================================================================
   3. 02 Story: zigzag chapters
   ========================================================================== */
.ab1-ch {
  padding-top: 56px;
}

.ab1-ch__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px clamp(30px, 5.5vw, 100px);
}

.ab1-ch--flip .ab1-ch__media {
  order: 1;
}

.ab1-ch__media {
  position: relative;
  min-width: 0;
  aspect-ratio: 16 / 10;
}

.ab1-ch__media.tilt {
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}

.ab1-ch__photo {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .5);
}

.ab1-ch__sleeve {
  position: absolute;
  left: 24px;
  bottom: -36px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: clamp(120px, 10.4vw, 180px);
  aspect-ratio: 1;
  padding: 16px;
  border-radius: 8px;
  background: var(--acc);
  color: var(--ink);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .5);
  transform: translateY(0) rotate(-5deg);
  transition: transform .4s cubic-bezier(.3, 1.4, .5, 1);
}

.ab1-ch--flip .ab1-ch__sleeve {
  left: auto;
  right: 24px;
  transform: translateY(0) rotate(5deg);
}

.ab1-ch.is-on .ab1-ch__sleeve {
  transform: translateY(-10px) rotate(-5deg);
}

.ab1-ch--flip.is-on .ab1-ch__sleeve {
  transform: translateY(-10px) rotate(5deg);
}

.ab1-ch__sleeve-label {
  font-weight: 600;
  font-size: 10px;
  letter-spacing: .25em;
}

.ab1-ch__sleeve-name {
  display: block;
  font-weight: 900;
  font-size: clamp(15px, 1.4vw, 24px);
  line-height: 1;
  letter-spacing: -.03em;
}

.ab1-ch__sleeve-kind {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .06em;
}

.ab1-ch__body {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.ab1-ch__year {
  display: flex;
  margin: 0 0 0 -10.4vw;
  pointer-events: none;
}

.ab1-ch--flip .ab1-ch__year {
  justify-content: flex-end;
  margin: 0 -10.4vw 0 0;
}

.ab1-ch__year span {
  color: transparent;
  font-weight: 800;
  font-size: clamp(150px, 19.4vw, 380px);
  line-height: .8;
  letter-spacing: 0;
  white-space: nowrap;
  -webkit-text-stroke: 2px rgba(245, 237, 216, .55);
  transition: color .35s ease, -webkit-text-stroke-color .35s ease;
}

.ab1-ch.is-on .ab1-ch__year span {
  color: var(--acc);
  -webkit-text-stroke-color: var(--acc);
}

.ab1-ch__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 34px;
}

.ab1-ch__count {
  color: var(--acc);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  white-space: nowrap;
}

.ab1-ch__title {
  margin-top: 18px;
  font-weight: 900;
  font-size: clamp(28px, 3.05vw, 58px);
  line-height: 1;
  letter-spacing: -.035em;
}

.ab1-ch__text {
  max-width: 520px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  text-wrap: pretty;
}

.ab1-ch__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 44px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line-3);
}

.ab1-ch__gap {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 92px;
  color: var(--acc);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .15em;
  text-align: center;
}

.ab1-ch__gap::before,
.ab1-ch__gap::after {
  content: "";
  flex: 1;
  min-width: 20px;
  height: 1px;
  background: var(--line);
}

/* ==========================================================================
   4. 03 Line-up: staggered cards
   ========================================================================== */
.ab1-line__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: start;
  gap: 100px 24px;
  padding-top: 60px;
}

.ab1-mem {
  position: relative;
  min-width: 0;
  transition: opacity .35s ease;
}

.ab1-line__grid.has-on .ab1-mem:not(.is-on) {
  opacity: .4;
}

.ab1-mem__num {
  position: absolute;
  left: -8px;
  top: -.44em;
  color: transparent;
  font-weight: 800;
  font-size: clamp(110px, 11.8vw, 220px);
  line-height: .8;
  letter-spacing: 0;
  pointer-events: none;
  -webkit-text-stroke: 1.5px rgba(245, 237, 216, .4);
  transition: color .35s ease, -webkit-text-stroke-color .35s ease;
}

.ab1-mem.is-on .ab1-mem__num {
  color: var(--acc);
  -webkit-text-stroke-color: var(--acc);
}

.ab1-mem__card {
  position: relative;
  aspect-ratio: 3 / 4;
}

.ab1-mem__photo {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .55), 0 0 0 1.5px transparent;
  transition: box-shadow .3s ease;
}

.ab1-mem.is-on .ab1-mem__photo {
  box-shadow: 0 30px 60px rgba(0, 0, 0, .55), 0 0 0 1.5px var(--acc);
}

.ab1-mem__role {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 3;
  height: 26px;
  padding: 0 10px;
}

.ab1-mem__name {
  position: relative;
  z-index: 2;
  margin-top: clamp(-60px, -3.2vw, -34px);
  padding-left: 14px;
}

.ab1-mem__toggle {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  color: var(--cream);
  text-align: left;
}

.ab1-mem__first {
  display: block;
  font-weight: 200;
  font-size: clamp(34px, 3.05vw, 58px);
  line-height: .9;
  letter-spacing: -.03em;
}

.ab1-mem__last {
  display: block;
  color: var(--acc);
  font-weight: 900;
  font-size: clamp(50px, 4.6vw, 88px);
  line-height: .86;
  letter-spacing: -.05em;
}

.ab1-mem__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 12px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line-3);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
}

.ab1-mem__since {
  color: var(--acc);
}

.ab1-mem__quote-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s cubic-bezier(.6, 0, .2, 1);
}

.ab1-mem.is-on .ab1-mem__quote-wrap {
  grid-template-rows: 1fr;
}

.ab1-mem__quote-clip {
  min-height: 0;
  overflow: hidden;
}

.ab1-mem__quote {
  margin-top: 16px;
  padding-left: 14px;
  border-left: 2px solid var(--acc);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: -.01em;
  text-wrap: pretty;
}

.ab1-mem__bio {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  text-wrap: pretty;
}

/* ==========================================================================
   5. 04 Numbers: counting wall
   ========================================================================== */
.page-about .ab1-nums .section-head {
  margin-bottom: 44px;
}

.ab1-nums__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 2px solid var(--cream);
}

.ab1-num {
  position: relative;
  height: clamp(240px, 23.6vw, 440px);
  padding: 26px clamp(18px, 2.1vw, 30px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  cursor: default;
  transition: background-color .3s ease, color .3s ease;
}

.ab1-num:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.ab1-num.is-on {
  background: var(--acc);
  color: var(--ink);
}

.ab1-num__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .25em;
}

.ab1-num__arrow {
  font-size: 22px;
  letter-spacing: 0;
  transition: transform .3s ease;
}

.ab1-num.is-on .ab1-num__arrow {
  transform: translate(4px, -4px);
}

.ab1-num__desc {
  max-width: 320px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.ab1-num.is-on .ab1-num__desc {
  color: var(--ink);
}

.ab1-num__value {
  position: absolute;
  left: clamp(14px, 1.5vw, 22px);
  bottom: 18px;
  color: transparent;
  font-weight: 800;
  font-size: clamp(110px, 14.6vw, 330px);
  font-variant-numeric: tabular-nums;
  line-height: .8;
  letter-spacing: 0;
  white-space: nowrap;
  -webkit-text-stroke: 2px rgba(245, 237, 216, .6);
  transition: color .3s ease, -webkit-text-stroke-color .3s ease, transform .4s var(--spring);
}

.ab1-num.is-on .ab1-num__value {
  color: var(--ink);
  -webkit-text-stroke-color: var(--ink);
  transform: translateX(14px);
}

/* ==========================================================================
   6. 05 Press: pinned clippings
   ========================================================================== */
.ab1-press__board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;
  padding: 14px 0 24px;
}

.ab1-clip-wrap {
  position: relative;
  z-index: 1;
  width: 114%;
  min-width: 0;
}

.ab1-clip-wrap--0 {
  --r: -5deg;
  margin: 60px 0 0;
}

.ab1-clip-wrap--1 {
  --r: 3deg;
  z-index: 2;
  margin: 0 0 0 -5%;
}

.ab1-clip-wrap--2 {
  --r: -2deg;
  z-index: 3;
  margin: 90px 0 0 -7%;
}

.ab1-clip-wrap--3 {
  --r: 4deg;
  z-index: 4;
  margin: 10px 0 0 -8%;
}

.ab1-clip-wrap--4 {
  --r: -4deg;
  z-index: 5;
  margin: 70px 0 0 -14%;
}

.ab1-clip-wrap.is-on {
  z-index: 6;
}

.ab1-clip,
.ab1-clip:hover {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px;
  background: var(--surface);
  color: var(--cream);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .55), inset 0 0 0 1px var(--line-2);
  transform: rotate(var(--r, 0deg));
  transition: transform .45s var(--spring), background-color .3s ease, color .3s ease;
}

.ab1-clip-wrap.is-on .ab1-clip {
  background: var(--acc);
  color: var(--ink);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .55), inset 0 0 0 1px var(--acc);
  transform: rotate(0deg) translateY(-14px) scale(1.07);
}

.ab1-clip__pin {
  position: absolute;
  left: 50%;
  top: -10px;
  width: 20px;
  height: 20px;
  margin-left: -10px;
  border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 0 4px var(--bg);
}

.ab1-clip__top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  white-space: nowrap;
}

.ab1-clip__src {
  padding-bottom: 14px;
  border-bottom: 1.5px solid rgba(245, 237, 216, .4);
  font-weight: 900;
  font-size: clamp(15px, 1.4vw, 22px);
  line-height: 1.05;
  letter-spacing: .08em;
}

.ab1-clip-wrap.is-on .ab1-clip__src {
  border-bottom-color: var(--ink);
}

.ab1-clip__quote {
  font-weight: 500;
  font-size: clamp(16px, 1.4vw, 24px);
  line-height: 1.33;
  letter-spacing: -.01em;
  text-wrap: pretty;
}

.ab1-clip__about {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
}

/* ==========================================================================
   7. Media queries
   ========================================================================== */
@media (min-width: 1150px) {
  .ab1-mem:nth-child(2) {
    margin-top: 70px;
  }

  .ab1-mem:nth-child(3) {
    margin-top: 24px;
  }

  .ab1-mem:nth-child(4) {
    margin-top: 94px;
  }
}

@media (max-width: 1099px) {
  .ab1-press__board {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px 24px;
  }

  .ab1-clip-wrap,
  .ab1-clip-wrap--0,
  .ab1-clip-wrap--1,
  .ab1-clip-wrap--2,
  .ab1-clip-wrap--3,
  .ab1-clip-wrap--4 {
    width: auto;
    margin: 0;
  }

  .ab1-clip,
  .ab1-clip:hover {
    transform: rotate(calc(var(--r, 0deg) / 2));
  }
}

@media (max-width: 899px) {
  .ab1-ch__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ab1-ch--flip .ab1-ch__media {
    order: 0;
  }

  .ab1-ch--flip .ab1-ch__sleeve {
    left: 24px;
    right: auto;
  }

  .ab1-ch__year,
  .ab1-ch--flip .ab1-ch__year {
    justify-content: flex-start;
    margin: 0;
  }

  .ab1-ch__year span {
    font-size: clamp(90px, 26vw, 220px);
  }

  .ab1-nums__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ab1-num:nth-child(odd) {
    border-right: 0;
  }

  .ab1-num__value {
    font-size: clamp(80px, 24vw, 260px);
  }
}

@media (max-width: 479px) {
  .ab1-ch__gap {
    gap: 12px;
    font-size: 11px;
  }

  .ab1-ch__text {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ab1-spot__lit,
  .ab1-spot__ring {
    animation: none !important;
  }
}
