/*
 * NOWON Band - About, version 3 (about-3.html)
 * Page-only styles. Shared tokens and components are in ../style.css.
 *
 * TABLE OF CONTENTS
 *  1. Shared bits: top row, pills, stats
 *  2. 01 Manifesto: photo with member hotspots
 *  3. 02 Story: cinema stage
 *  4. 03 Line-up: flip cards
 *  5. 04 Numbers: year tabs
 *  6. 05 Press: clothesline
 *  7. 06 Booking: stage doors
 *  8. Media queries
 */

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

.page-about-3 .ab3-nums .section-head,
.page-about-3 .ab3-book .section-head {
  margin-bottom: 44px;
}

.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-stat__value {
  display: block;
  font-weight: 900;
  font-size: clamp(32px, 3.6vw, 68px);
  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: photo with member hotspots
   ========================================================================== */
.ab3-band {
  position: relative;
  height: clamp(420px, 43vw, 860px);
  margin-top: 28px;
  border-radius: 14px;
}

.ab3-band__photo {
  position: absolute;
  inset: 0;
  border-radius: 14px;
}

.ab3-band__scrim {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(18, 17, 16, 0) 30%, rgba(18, 17, 16, .92) 82%);
}

.ab3-band__spots {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.ab3-spot {
  position: absolute;
  z-index: 2;
  pointer-events: all;
}

.ab3-spot.is-on {
  z-index: 3;
}

.ab3-spot--0 {
  left: 39%;
  top: 21%;
}

.ab3-spot--1 {
  left: 79%;
  top: 33%;
}

.ab3-spot--2 {
  left: 33%;
  top: 40%;
}

.ab3-spot--3 {
  left: 17%;
  top: 40%;
}

.ab3-spot__dot {
  position: relative;
  z-index: 2;
  display: block;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 2px solid var(--acc);
  border-radius: 50%;
  background: var(--ink);
  transition: background-color .2s ease;
}

.ab3-spot__dot::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
}

.ab3-spot__dot::after {
  content: "";
  position: absolute;
  inset: -2px;
  border: 2px solid var(--acc);
  border-radius: 50%;
  animation: ab3-ping 2s ease-out infinite;
}

.ab3-spot.is-on .ab3-spot__dot {
  background: var(--acc);
}

@keyframes ab3-ping {
  0% {
    opacity: .7;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(2.6);
  }
}

.ab3-spot__tip {
  position: absolute;
  left: 0;
  top: 34px;
  z-index: 1;
  width: 230px;
  max-width: 60vw;
  padding: 16px 18px;
  border: 1px solid var(--acc);
  border-radius: 12px;
  background: var(--bg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .5);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .25s ease, transform .25s ease;
}

.ab3-spot--right .ab3-spot__tip {
  left: auto;
  right: 0;
}

.ab3-spot.is-on .ab3-spot__tip {
  opacity: 1;
  transform: translateY(0);
}

.ab3-spot__n {
  color: var(--acc);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .15em;
}

.ab3-spot__name {
  margin-top: 6px;
  font-weight: 800;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -.01em;
}

.ab3-spot__role {
  margin-top: 4px;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .25em;
}

.ab3-band__foot {
  position: absolute;
  left: clamp(18px, 2.8vw, 40px);
  right: clamp(18px, 2.8vw, 40px);
  bottom: clamp(20px, 2.5vw, 36px);
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px 60px;
  pointer-events: none;
}

.ab3-band__lead {
  flex: 1 1 420px;
  max-width: 1100px;
  font-weight: 200;
  font-size: clamp(26px, 3.75vw, 74px);
  line-height: 1.08;
  letter-spacing: -.025em;
}

.ab3-band__lead strong {
  color: var(--acc);
  font-weight: 900;
}

.ab3-band__text {
  flex: 0 1 340px;
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.6;
  text-wrap: pretty;
}

.ab3-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  margin: 36px 0 0;
}

.ab3-fact {
  padding-top: 16px;
  border-top: 1px solid var(--line-3);
}

.ab3-fact__label {
  color: var(--acc);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: .3em;
}

.ab3-fact__value {
  margin: 8px 0 0;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -.01em;
}

/* ==========================================================================
   3. 02 Story: cinema stage
   The script writes --px / --py (-1..1) from the cursor; every layer moves
   by its own amount.
   ========================================================================== */
.ab3-nav {
  display: flex;
  gap: 10px;
}

.ab3-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--cream);
  box-shadow: inset 0 0 0 1.5px var(--line-3);
  font-size: 18px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.ab3-arrow:hover {
  box-shadow: inset 0 0 0 1.5px var(--cream);
  transform: translateY(-2px);
}

.ab3-arrow--acc,
.ab3-arrow--acc:hover {
  background: var(--acc);
  color: var(--ink);
  box-shadow: none;
}

.ab3-stage {
  --px: 0;
  --py: 0;
  position: relative;
  height: clamp(520px, 45.8vw, 880px);
  overflow: hidden;
  border-radius: 14px;
  background: #161514;
}

.ab3-stage__bg {
  position: absolute;
  inset: -40px;
  transform: translate(calc(var(--px) * -26px), calc(var(--py) * -18px));
  transition: transform .25s ease-out;
}

.ab3-stage__photo {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, #2b2825 0 14px, #35312d 14px 28px);
  opacity: 0;
  transition: opacity .6s ease;
}

.ab3-stage__photo.is-on {
  opacity: 1;
}

.ab3-stage__photo .slot-size {
  left: auto;
  right: 90px;
  top: 80px;
  color: var(--cream);
  text-align: right;
  transform: none;
}

.ab3-stage__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 17, 16, .95) 0%, rgba(18, 17, 16, .78) 44%, rgba(18, 17, 16, .2) 100%);
}

.ab3-stage__year {
  position: absolute;
  right: -2vw;
  bottom: -3.4vw;
  color: transparent;
  font-weight: 800;
  font-size: clamp(180px, 38vw, 740px);
  line-height: .8;
  letter-spacing: 0;
  white-space: nowrap;
  opacity: .55;
  pointer-events: none;
  -webkit-text-stroke: 2px var(--acc);
  transform: translate(calc(var(--px) * 34px), calc(var(--py) * 16px));
  transition: transform .25s ease-out;
}

.ab3-stage__sleeve {
  position: absolute;
  right: 11.8vw;
  top: 14.5%;
  width: clamp(180px, 16.7vw, 320px);
  aspect-ratio: 1;
  transform: translate(calc(var(--px) * 14px), calc(var(--py) * 10px));
  transition: transform .25s ease-out;
}

.ab3-stage__disc {
  position: absolute;
  left: 6.6%;
  top: 4%;
  width: 92%;
  aspect-ratio: 1;
  transform: translateX(50%);
}

.ab3-stage__spin {
  position: relative;
  width: 100%;
  height: 100%;
  animation: spin 4s linear infinite;
}

.ab3-stage__spin img {
  width: 100%;
  height: 100%;
}

.ab3-stage__spin::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 36.6%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--bg);
  transform: translate(-50%, -50%);
}

.ab3-stage__cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 9%;
  border-radius: 8px;
  background: var(--acc);
  color: var(--ink);
  box-shadow: 10px 20px 50px rgba(0, 0, 0, .6);
}

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

.ab3-stage__cover-name {
  display: block;
  font-weight: 900;
  font-size: clamp(22px, 2.1vw, 40px);
  line-height: 1;
  letter-spacing: -.03em;
}

.ab3-stage__cover-kind {
  display: block;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
}

.ab3-stage__panels {
  position: absolute;
  left: clamp(20px, 3.5vw, 50px);
  top: clamp(20px, 3.5vw, 50px);
  bottom: clamp(20px, 3.5vw, 50px);
  width: clamp(340px, 39vw, 760px);
}

.ab3-stage__panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  animation: ab3-in .5s ease;
}

.ab3-stage__panel[hidden] {
  display: none;
}

@keyframes ab3-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.ab3-stage__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

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

.ab3-stage__title {
  margin-top: 26px;
  color: var(--acc);
  font-weight: 900;
  font-size: clamp(40px, 6.1vw, 116px);
  line-height: .9;
  letter-spacing: -.045em;
}

.ab3-stage__text {
  margin-top: 24px;
  font-weight: 300;
  font-size: clamp(17px, 1.67vw, 30px);
  line-height: 1.45;
  letter-spacing: -.01em;
  text-wrap: pretty;
}

.ab3-stage__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 44px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line-3);
}

.ab3-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(6px, .85vw, 12px);
  margin-top: 14px;
}

.ab3-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  height: clamp(84px, 8.3vw, 150px);
  padding: clamp(8px, 1vw, 14px);
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: var(--stripes), var(--surface);
  color: var(--cream);
  box-shadow: inset 0 0 0 1.5px transparent;
  text-align: left;
  transition: box-shadow .3s ease, color .3s ease;
}

.ab3-tab.is-on {
  color: var(--acc);
  box-shadow: inset 0 0 0 1.5px var(--acc);
}

.ab3-tab__thumb {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: inherit;
}

.ab3-tab__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 17, 16, .5) 0%, transparent 35%, transparent 50%, rgba(18, 17, 16, .85) 100%);
  pointer-events: none;
}

.ab3-tab__year {
  position: relative;
}

.ab3-tab__lab {
  position: absolute;
  left: clamp(8px, 1vw, 14px);
  top: 12px;
  color: var(--acc);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  white-space: nowrap;
}

.ab3-tab__year {
  font-weight: 900;
  font-size: clamp(18px, 2.8vw, 52px);
  line-height: 1;
  letter-spacing: -.04em;
}

.ab3-tab__bar {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background: var(--acc);
}

/* ==========================================================================
   4. 03 Line-up: flip cards
   ========================================================================== */
.ab3-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px 24px;
  padding: 20px 0 30px;
}

.ab3-cell {
  min-width: 0;
}

.ab3-cell--0 {
  --r: -3deg;
}

.ab3-cell--1 {
  --r: 2deg;
}

.ab3-cell--2 {
  --r: -2deg;
}

.ab3-cell--3 {
  --r: 3deg;
}

.ab3-card {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--cream);
  text-align: left;
  perspective: 1400px;
  transform: rotate(var(--r, 0deg)) translateY(var(--ty, 0px));
  transition: transform .45s var(--spring);
}

.ab3-card.is-flipped {
  transform: rotate(0deg) translateY(-10px);
}

.ab3-card__inner {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  transform-style: preserve-3d;
  transition: transform .7s cubic-bezier(.6, 0, .2, 1);
}

.ab3-card.is-flipped .ab3-card__inner {
  transform: rotateY(180deg);
}

.ab3-card__front {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: 14px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, .5);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.ab3-card__n {
  position: absolute;
  left: 16px;
  top: 14px;
  z-index: 2;
  color: var(--acc);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
}

.ab3-card__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: block;
  padding: 60px 18px 18px;
  background: linear-gradient(180deg, rgba(18, 17, 16, 0), rgba(18, 17, 16, .95) 60%);
}

.ab3-card__name {
  display: block;
  font-weight: 900;
  font-size: clamp(28px, 2.4vw, 44px);
  line-height: .95;
  letter-spacing: -.04em;
}

.ab3-card__role {
  display: block;
  margin-top: 8px;
  color: var(--acc);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .25em;
}

.ab3-card__back {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(16px, 1.6vw, 26px);
  overflow: hidden;
  border-radius: 14px;
  background: var(--acc);
  color: var(--ink);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .5);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: rotateY(180deg);
}

.ab3-card__top {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
}

.ab3-card__back-name {
  display: block;
  margin-top: 14px;
  font-weight: 900;
  font-size: clamp(26px, 2.3vw, 42px);
  line-height: .95;
  letter-spacing: -.04em;
}

.ab3-card__back-role {
  display: block;
  margin-top: 6px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .25em;
}

.ab3-card__rows {
  display: block;
  margin-top: 16px;
  border-top: 1.5px solid var(--ink);
}

.ab3-card__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(18, 17, 16, .3);
  font-size: 13px;
}

.ab3-card__row-label {
  font-weight: 600;
  font-size: 10px;
  letter-spacing: .2em;
  white-space: nowrap;
}

.ab3-card__row-value {
  font-weight: 700;
  text-align: right;
}

.ab3-card__quote {
  display: block;
  margin-top: auto;
  padding-top: 12px;
  font-weight: 500;
  font-size: clamp(15px, 1.25vw, 21px);
  line-height: 1.4;
  letter-spacing: -.01em;
  text-wrap: pretty;
}

/* ==========================================================================
   5. 04 Numbers: year tabs
   ========================================================================== */
.ab3-years {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(6px, .85vw, 12px);
}

.ab3-year {
  position: relative;
  min-width: 0;
  padding: 20px 0 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: var(--cream);
  text-align: left;
}

.ab3-year::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--line-2);
}

.ab3-year__bar {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  display: block;
  width: 0;
  height: 2px;
  background: var(--acc);
}

.ab3-year__num {
  display: block;
  color: transparent;
  font-weight: 800;
  font-size: clamp(16px, 5.3vw, 100px);
  line-height: .9;
  letter-spacing: 0;
  -webkit-text-stroke: 1.5px rgba(245, 237, 216, .5);
  transition: color .3s ease, -webkit-text-stroke-color .3s ease;
}

.ab3-year.is-on .ab3-year__num {
  color: var(--acc);
  -webkit-text-stroke-color: var(--acc);
}

.ab3-year__tag {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: .2em;
  white-space: nowrap;
}

.ab3-nums__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 36px 24px;
  margin-top: 56px;
}

.ab3-num {
  min-width: 0;
}

.ab3-num__value {
  color: var(--acc);
  font-weight: 900;
  font-size: clamp(72px, 9vw, 172px);
  font-variant-numeric: tabular-nums;
  line-height: .85;
  letter-spacing: -.05em;
}

.ab3-num__bar {
  margin-top: 18px;
}

.ab3-num__bar .bar__fill {
  transition: none;
}

.ab3-num__label {
  margin-top: 14px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .2em;
}

.ab3-chaps {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line-3);
}

.ab3-chap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 40px;
  font-size: 17px;
}

.ab3-chap[hidden] {
  display: none;
}

.ab3-chap__title {
  font-weight: 700;
}

.ab3-chap__text {
  max-width: 640px;
  color: var(--muted);
  text-wrap: pretty;
}

/* ==========================================================================
   6. 05 Press: clothesline
   ========================================================================== */
.ab3-line {
  position: relative;
  margin: 0 calc(-1 * var(--pad));
  padding-top: 10px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.ab3-line__rope {
  position: absolute;
  left: 0;
  right: 0;
  top: 24px;
  height: 2px;
  background: rgba(245, 237, 216, .45);
}

.ab3-line__track {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  width: max-content;
  padding: 0 40px 40px 0;
  animation: marquee 60s linear infinite;
}

.ab3-line.is-paused .ab3-line__track {
  animation-play-state: paused;
}

.ab3-cut {
  position: relative;
  flex: none;
  width: 300px;
}

.ab3-cut__card,
.ab3-cut__card:hover {
  display: block;
  color: var(--cream);
  transform-origin: 50% 14px;
  animation: ab3-sway 3s ease-in-out infinite alternate;
  transition: color .3s ease;
}

.ab3-cut--1 .ab3-cut__card {
  animation-duration: 3.45s;
  animation-delay: -.8s;
}

.ab3-cut--2 .ab3-cut__card {
  animation-duration: 3.9s;
  animation-delay: -1.6s;
}

.ab3-cut--3 .ab3-cut__card {
  animation-duration: 4.35s;
  animation-delay: -2.4s;
}

.ab3-cut--4 .ab3-cut__card {
  animation-duration: 4.8s;
  animation-delay: -3.2s;
}

.ab3-cut.is-on .ab3-cut__card {
  color: var(--ink);
  animation: none;
}

@keyframes ab3-sway {
  from {
    transform: rotate(-3deg);
  }

  to {
    transform: rotate(3deg);
  }
}

.ab3-cut__peg {
  position: relative;
  z-index: 2;
  display: block;
  width: 16px;
  height: 40px;
  margin: 0 auto -8px;
  border-radius: 3px;
  background: var(--acc);
  box-shadow: 0 0 0 3px var(--bg);
}

.ab3-cut__paper {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 330px;
  padding: 30px 26px 36px;
  background: #262320;
  box-shadow: 0 24px 50px rgba(0, 0, 0, .55), inset 0 0 0 1px var(--line-2);
  transition: background-color .3s ease, box-shadow .3s ease;
}

.ab3-cut--1 .ab3-cut__paper {
  min-height: 300px;
}

.ab3-cut--2 .ab3-cut__paper {
  min-height: 360px;
}

.ab3-cut--3 .ab3-cut__paper {
  min-height: 310px;
}

.ab3-cut--4 .ab3-cut__paper {
  min-height: 340px;
}

.ab3-cut.is-on .ab3-cut__paper {
  background: var(--acc);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .55), inset 0 0 0 1px var(--acc);
}

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

.ab3-cut__src {
  padding-bottom: 14px;
  border-bottom: 1.5px solid rgba(245, 237, 216, .4);
  font-weight: 900;
  font-size: 20px;
  line-height: 1.05;
  letter-spacing: .08em;
  white-space: nowrap;
}

.ab3-cut.is-on .ab3-cut__src {
  border-bottom-color: var(--ink);
}

.ab3-cut__quote {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.33;
  letter-spacing: -.01em;
  text-wrap: pretty;
}

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

/* ==========================================================================
   7. 06 Booking: stage doors
   The dark leaf swings away from the viewer on its left hinge.
   ========================================================================== */
.ab3-doors {
  display: flex;
  gap: 14px;
  height: clamp(420px, 34vw, 600px);
}

.ab3-door,
.ab3-door:hover {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  border-radius: 14px;
  color: var(--ink);
  perspective: 1800px;
  perspective-origin: 0 50%;
  transition: flex .6s cubic-bezier(.6, 0, .2, 1), height .45s cubic-bezier(.6, 0, .2, 1);
}

.ab3-door.is-on {
  flex: 5 1 0;
}

.ab3-door__room {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background: var(--acc);
}

.ab3-door__open {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: calc((100vw - 2 * clamp(20px, 2.344vw, 60px) - 28px) * .714);
  padding: 34px clamp(22px, 2.4vw, 34px) 30px 110px;
  opacity: 0;
  transition: opacity .4s ease .25s;
}

.ab3-door.is-on .ab3-door__open {
  opacity: 1;
}

.ab3-door__n {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
}

.ab3-door__title {
  display: block;
  margin-top: 22px;
  font-weight: 900;
  font-size: clamp(40px, 6.7vw, 128px);
  line-height: .86;
  letter-spacing: -.05em;
}

.ab3-door__text {
  display: block;
  max-width: 540px;
  margin-top: 20px;
  font-weight: 500;
  font-size: clamp(16px, 1.45vw, 25px);
  line-height: 1.45;
  text-wrap: pretty;
}

.ab3-door__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 30px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1.5px solid var(--ink);
}

.ab3-door__who {
  display: block;
  min-width: 0;
}

.ab3-door__person {
  display: block;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: .25em;
}

.ab3-door__mail {
  display: block;
  margin-top: 6px;
  font-weight: 900;
  font-size: clamp(22px, 2.5vw, 44px);
  letter-spacing: -.03em;
  overflow-wrap: anywhere;
}

.ab3-door__go {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--acc);
  font-size: 24px;
}

.ab3-door__leaf {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: 14px;
  background: var(--surface);
  color: var(--cream);
  box-shadow: inset 0 0 0 1px var(--line-2), inset 0 0 0 14px var(--surface), inset 0 0 0 15px var(--cream-10);
  transform: rotateY(0deg);
  transform-origin: 0 50%;
  transition: transform .75s cubic-bezier(.6, 0, .2, 1);
}

.ab3-door.is-on .ab3-door__leaf {
  transform: rotateY(78deg);
}

.ab3-door__num {
  position: absolute;
  left: 24px;
  top: 28px;
  color: transparent;
  font-weight: 800;
  font-size: clamp(40px, 5.6vw, 88px);
  line-height: .8;
  letter-spacing: 0;
  -webkit-text-stroke: 1.5px rgba(245, 237, 216, .5);
}

.ab3-door__label {
  position: absolute;
  left: clamp(18px, 2vw, 34px);
  bottom: 26px;
  font-weight: 900;
  font-size: clamp(24px, 2.6vw, 46px);
  line-height: 1;
  letter-spacing: -.04em;
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.ab3-door__knob {
  position: absolute;
  right: 26px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 0 5px var(--cream-10);
}

.ab3-door__knock {
  position: absolute;
  right: 24px;
  bottom: 30px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .15em;
  writing-mode: vertical-rl;
}

/* ==========================================================================
   8. Media queries
   ========================================================================== */
@media (min-width: 1150px) {
  .ab3-cell--1,
  .ab3-cell--3 {
    --ty: 18px;
  }
}

@media (max-width: 1099px) {
  .ab3-stage__sleeve,
  .ab3-tab__tag {
    display: none;
  }
}

@media (max-width: 899px) {
  .ab3-stage__panels {
    right: clamp(20px, 3.5vw, 50px);
    width: auto;
  }

  .ab3-stage__photo .slot-size {
    display: none;
  }
}

@media (max-width: 799px) {
  .ab3-doors {
    flex-direction: column;
    height: auto;
  }

  .ab3-door,
  .ab3-door:hover,
  .ab3-door.is-on {
    flex: none;
    height: 84px;
  }

  .ab3-door.is-on {
    height: 420px;
  }

  .ab3-door.is-on .ab3-door__leaf {
    transform: translateY(-101%);
  }

  .ab3-door__open {
    width: 100%;
    padding-left: clamp(22px, 2.4vw, 34px);
  }

  .ab3-door__title {
    font-size: clamp(26px, 8.5vw, 64px);
    overflow-wrap: anywhere;
  }

  .ab3-door__num {
    top: 24px;
    font-size: 34px;
  }

  .ab3-door__label {
    left: 96px;
    writing-mode: horizontal-tb;
    transform: none;
  }

  .ab3-door__knock {
    display: none;
  }
}

@media (max-width: 699px) {
  .ab3-year__tag {
    display: none;
  }

  .ab3-year__num {
    -webkit-text-stroke-width: 1px;
  }

  /* Phones crop the band photo to its centre: keep the dots on it and every tip inside the screen. */
  .ab3-spot--0 {
    left: 43%;
  }

  .ab3-spot--1 {
    left: 85%;
  }

  .ab3-spot--2 {
    left: 8%;
  }

  .ab3-spot--3 {
    left: 70%;
    top: 58%;
  }

  .ab3-spot--3 .ab3-spot__tip {
    left: auto;
    right: 0;
  }
}

@media (max-width: 479px) {
  .ab3-band {
    height: 480px;
  }

  .ab3-band__text {
    font-size: 15px;
  }

  .ab3-spot__tip {
    max-width: 55vw;
  }

  .ab3-stage {
    height: 560px;
  }

  .ab3-tab__lab {
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ab3-line {
    overflow-x: auto;
  }

  .ab3-line__track,
  .ab3-cut__card,
  .ab3-stage__spin,
  .ab3-spot__dot::after {
    animation: none !important;
  }
}
