/* ==========================================================================
   AAZRIN & JABIR — "Drawn Before They Wore It". Two invitation cards for a
   friend's wedding weekend. The page starts on night one (the Holud's lantern
   sky: teal-navy, marigold, cream, berry) and turns, under an arch, into
   night two (the Wedding's white paper, vine green, lehenga red).
   ========================================================================== */

.aj-page {
  --night-0: #0a2a3b;
  --night-1: #0e3a50;
  --night-2: #124a5a;
  --marigold: #f4b324;
  --saffron: #f59a0c;
  --cream: #fff6cf;
  --berry: #a84264;
  --paper: #f7f4ee;
  --paper-2: #eee8dc;
  --vine: #2f5a2c;
  --vine-2: #24461f;
  --lehenga: #a63c22;
  --on-night: #fdf7e6;
  --on-night-2: rgba(253, 247, 230, 0.72);
  --on-night-3: rgba(253, 247, 230, 0.45);
  --on-paper: #1f2a1b;
  --on-paper-2: rgba(31, 42, 27, 0.72);
  --aj-display: "Gloock", Georgia, serif;
  --aj-body: "Libre Caslon Text", Georgia, serif;
  --aj-gap: 140px;
  background: var(--night-0);
  color: var(--on-night);
}

.aj-page .brand {
  color: var(--on-night);
}

.aj-page .site-header {
  position: relative;
  z-index: 5;
}

.aj-page .pill-nav {
  color: var(--ink);
}

.aj-page .site-header .pill-chat {
  background: var(--marigold);
  color: var(--night-0);
}

.aj {
  position: relative;
  overflow: clip;
  font-family: var(--aj-body);
}

.aj-wrap {
  position: relative;
  z-index: 2;
  width: min(1180px, 100% - 40px);
  margin-inline: auto;
}

.aj figure {
  margin: 0;
}

.aj img[data-zoom] {
  cursor: zoom-in;
}

.aj-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Night and paper grounds ---------- */
.aj-night {
  background: var(--night-0);
  color: var(--on-night);
}

.aj-paper {
  background: var(--paper);
  color: var(--on-paper);
}

/* ---------- Section heads ---------- */
.aj-sec {
  position: relative;
  padding: var(--aj-gap) 0 0;
}

.aj-head {
  max-width: 760px;
}

.aj-head-c {
  margin-inline: auto;
  text-align: center;
}

.aj-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--marigold);
}

.aj-tag::before {
  content: "";
  width: 9px;
  height: 12px;
  border-radius: 3px 3px 4px 4px;
  background: linear-gradient(var(--saffron), var(--marigold));
  box-shadow: 0 0 10px rgba(244, 179, 36, 0.8);
}

.aj-paper .aj-tag {
  color: var(--lehenga);
}

.aj-paper .aj-tag::before {
  width: 10px;
  height: 10px;
  border-radius: 50% 50% 50% 0;
  background: #e88fa0;
  box-shadow: none;
  transform: rotate(-45deg);
}

.aj-head h2 {
  margin: 18px 0 0;
  font-family: var(--aj-display);
  font-size: clamp(38px, 4.7vw, 66px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.aj-head h2 em {
  font-style: normal;
  color: var(--marigold);
}

.aj-paper .aj-head h2 em {
  color: var(--lehenga);
}

.aj-lead {
  max-width: 600px;
  text-wrap: pretty;
  margin: 20px 0 0;
  font-size: 18px;
  line-height: 1.65;
  color: var(--on-night-2);
}

.aj-head-c .aj-lead {
  margin-inline: auto;
}

.aj-paper .aj-lead {
  color: var(--on-paper-2);
}

/* ---------- Floating lanterns (spawned by aazrin.js) ---------- */
.aj-sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.aj-lan {
  position: absolute;
  bottom: -160px;
  left: var(--x);
  width: var(--w);
  height: auto;
  opacity: 0;
  animation: aj-rise var(--d) linear var(--delay) infinite;
  will-change: transform;
}

.aj-sky.is-paused .aj-lan,
.aj-petals.is-paused .aj-petal {
  animation-play-state: paused;
}

@keyframes aj-rise {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  10% { opacity: var(--o); }
  50% { transform: translate3d(calc(var(--dx) * 0.6), calc(var(--rise) * -0.5), 0); }
  85% { opacity: var(--o); }
  100% { transform: translate3d(var(--dx), calc(var(--rise) * -1), 0); opacity: 0; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.aj-hero {
  position: relative;
  margin-top: -121px;
  padding: 196px 0 120px;
  background:
    radial-gradient(120% 60% at 50% 105%, rgba(245, 154, 12, 0.55), rgba(245, 154, 12, 0) 60%),
    linear-gradient(180deg, var(--night-0) 0%, var(--night-1) 55%, #1c4a4a 100%);
}

.aj-hero-in {
  display: grid;
  justify-items: center;
  text-align: center;
}

.aj-kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--marigold);
}

.aj-title {
  margin: 26px 0 0;
  line-height: 1;
}

.aj-title img {
  width: min(560px, 82vw);
  height: auto;
  filter: drop-shadow(0 4px 24px rgba(244, 179, 36, 0.25));
}

.aj-sub {
  max-width: 560px;
  text-wrap: balance;
  margin: 24px auto 0;
  font-size: 19px;
  font-style: italic;
  line-height: 1.6;
  color: var(--on-night-2);
}

.aj-pair {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: 64px;
}

.aj-card {
  width: min(340px, 40vw);
}

.aj-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.aj-card-h {
  z-index: 2;
  margin-right: -26px;
  transform: rotate(-5deg);
}

.aj-card-w {
  margin-top: 46px;
  transform: rotate(5deg);
}

.aj-card figcaption {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-night-3);
}

.aj-credits {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: center;
  gap: 18px 56px;
  margin: 80px 0 0;
  text-align: left;
}

.aj-credits div {
  max-width: 260px;
}

.aj-credits dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-night-3);
}

.aj-credits dd {
  margin: 8px 0 0;
  font-size: 16px;
  line-height: 1.45;
  color: var(--on-night);
}

/* Asif's name first, his exact credit underneath in a quieter line */
.aj-credits-sub {
  display: block;
  margin-top: 4px;
  font-size: 0.82em;
  line-height: 1.4;
  color: var(--on-night-2);
}

/* ==========================================================================
   01 DRESSED IN ADVANCE — flip cards
   ========================================================================== */
.aj-dressed {
  background: linear-gradient(180deg, #1c4a4a 0%, var(--night-1) 40%, var(--night-0) 100%);
}

.aj-flips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 380px));
  justify-content: center;
  gap: 56px;
  margin-top: 64px;
}

.aj-flipbox {
  perspective: 1600px;
}

.aj-flip {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  aspect-ratio: 4 / 5;
}

.aj-flip-in {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1);
}

.aj-flip:hover .aj-flip-in {
  transform: rotateY(-8deg);
}

.aj-flip.is-flipped .aj-flip-in {
  transform: rotateY(180deg);
}

.aj-flip.is-flipped:hover .aj-flip-in {
  transform: rotateY(172deg);
}

.aj-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 8px solid var(--cream);
  border-radius: 16px;
  background: var(--cream);
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.35);
  backface-visibility: hidden;
}

.aj-back {
  border-color: #fff;
  transform: rotateY(180deg);
}

.aj-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.aj-face b {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 7px 12px 6px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--marigold);
  color: var(--night-0);
}

.aj-back b {
  background: var(--berry);
  color: #fff;
}

.aj-flip:focus-visible {
  outline: 2px solid var(--marigold);
  outline-offset: 10px;
  border-radius: 18px;
}

.aj-flip-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 22px 4px 0;
  font-family: var(--aj-display);
  font-size: 26px;
  line-height: 1.1;
}

.aj-flip-label span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-night-3);
}

.aj-flip-label svg {
  width: 15px;
  height: 15px;
}

/* ==========================================================================
   02 NIGHT ONE — the Holud card builds as you scroll
   ========================================================================== */
.aj-holud {
  padding-bottom: 0;
}

.aj-build {
  position: relative;
  height: 420vh;
  margin-top: 40px;
}

.aj-build-pin {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  height: 100vh;
  height: 100svh;
}

.aj-build-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 64px;
}

.aj-steps {
  display: grid;
  gap: 6px;
  max-width: 440px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.aj-steps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  padding: 12px 0;
  opacity: 0.32;
  transition: opacity 0.5s var(--ease);
}

.aj-steps li.is-on {
  opacity: 0.62;
}

.aj-steps li.is-now {
  opacity: 1;
}

.aj-steps span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 12px;
  box-shadow: inset 0 0 0 1px var(--on-night-3);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.aj-steps li.is-now span {
  background: var(--marigold);
  color: var(--night-0);
  box-shadow: 0 0 18px rgba(244, 179, 36, 0.55);
}

.aj-steps p {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--on-night-2);
}

.aj-steps b {
  display: block;
  margin-bottom: 2px;
  font-family: var(--aj-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.15;
  color: var(--on-night);
}

.aj-hstage-wrap {
  --sh: min(calc(100svh - 150px), 760px);
}

.aj-hstage {
  position: relative;
  height: var(--sh);
  aspect-ratio: 2550 / 3300;
  overflow: hidden;
  border-radius: 8px;
  background: #0e3a52;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.aj-l {
  position: absolute;
  display: block;
  max-width: none;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.aj-hstage .aj-l[data-s] {
  opacity: 0;
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 38ms);
}

.aj-hstage .l-couple { transform: translateY(16%); }
.aj-hstage .l-crown { transform: translateY(-14%) scale(0.7); transform-origin: 50% 100%; }
.aj-hstage .l-bloom { transform: scale(0) rotate(-70deg); }
.aj-hstage .l-mg {
  transform: translateY(40%) scale(0.2) rotate(-90deg);
  transform-origin: 50% 100%;
  transition-timing-function: var(--ease), cubic-bezier(0.34, 1.56, 0.64, 1);
}
.aj-hstage .l-text { transform: translateY(12px); }
.aj-hstage .l-dress { transform: translateY(16px); }

.aj-hstage .aj-l.on {
  opacity: 1;
  transform: none;
}

.aj-progress {
  height: 2px;
  margin-top: 16px;
  border-radius: 2px;
  background: rgba(253, 247, 230, 0.14);
}

.aj-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--marigold);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ---------- Dear Girls / Dear Boys: two little swing tags ---------- */
.aj-dress {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 40px 0 0;
}

.aj-tagcard {
  position: relative;
  width: min(330px, 100%);
  padding: 34px 28px 26px;
  border-radius: 14px 14px 18px 18px;
  color: #3a2a3a;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.3);
}

.aj-tagcard::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: var(--night-0);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

.aj-girls {
  background: linear-gradient(160deg, #fbe3ec, #e6d8f6);
  transform: rotate(-3deg);
}

.aj-boys {
  margin-top: 30px;
  background: linear-gradient(160deg, #dff0f8, #e1f1df);
  transform: rotate(3deg);
}

.aj-tagcard-k {
  margin: 0;
  font-family: var(--aj-display);
  font-size: 30px;
  line-height: 1.1;
}

.aj-tagcard p:not(.aj-tagcard-k) {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.55;
}

.aj-sw {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.aj-sw i {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85);
}

/* ---------- The arch: night one turns into night two ---------- */
.aj-arch {
  position: relative;
  height: 200px;
  margin-top: 100px;
  background: var(--night-0);
}

.aj-arch svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: var(--paper);
}

/* ==========================================================================
   03 NIGHT TWO — the Wedding garden grows in
   ========================================================================== */
.aj-wedding {
  padding-top: 40px;
}

.aj-wed-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 64px;
}

.aj-wstage-wrap {
  position: relative;
}

.aj-wstage {
  position: relative;
  width: min(520px, 42vw);
  aspect-ratio: 2550 / 3300;
  overflow: hidden;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 40px 80px rgba(60, 50, 30, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.aj-wstage .w-frame {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.9s cubic-bezier(0.65, 0, 0.35, 1) 0.1s;
}

.aj-wstage .w-floor {
  transform: translateY(100%);
  transition: transform 0.9s var(--ease) 0.7s;
}

.aj-wstage .w-flower {
  opacity: 0;
  transform: translateY(30%) scale(0.4);
  transform-origin: 50% 100%;
  transition: opacity 0.6s var(--ease), transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: calc(1.2s + var(--i) * 0.14s);
}

.aj-wstage .w-shadow {
  opacity: 0;
  transition: opacity 0.8s var(--ease) 1.9s;
}

.aj-wstage .w-couple {
  opacity: 0;
  transform: translateY(8%);
  transform-origin: 50% 100%;
  transition: opacity 0.9s var(--ease) 1.7s, transform 1.1s var(--ease) 1.7s;
}

.aj-wstage .w-text {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(2.3s + var(--i, 0) * 0.25s);
}

.aj-wstage .w-bird {
  opacity: 0;
  transition: opacity 0.5s var(--ease) 2.6s, transform 1.8s cubic-bezier(0.25, 0.8, 0.3, 1) 2.6s;
}

.aj-wstage .w-bird1 { transform: translate(-900%, 500%) rotate(-12deg); }
.aj-wstage .w-bird2 { transform: translate(500%, -300%) rotate(12deg); }

.aj-wstage.is-play .w-frame { clip-path: inset(0 0 0 0); }
.aj-wstage.is-play .w-floor,
.aj-wstage.is-play .w-flower,
.aj-wstage.is-play .w-couple,
.aj-wstage.is-play .w-text,
.aj-wstage.is-play .w-bird {
  opacity: 1;
  transform: none;
}

.aj-wstage.is-play .w-shadow {
  opacity: 0.69;
}

/* After the entrance: a slow sway, the birds bob, petals fall */
.aj-wstage.is-live .w-couple {
  animation: aj-rock 7s ease-in-out infinite;
}

.aj-wstage.is-live .w-bird {
  animation: aj-bob 3.4s ease-in-out infinite;
}

.aj-wstage.is-live .w-bird2 {
  animation-delay: -1.6s;
}

@keyframes aj-rock {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(0.9deg); }
}

@keyframes aj-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14%); }
}

.aj-petals {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.aj-petal {
  position: absolute;
  top: -8%;
  left: var(--x);
  width: var(--w);
  height: auto;
  opacity: 0;
  animation: aj-fall var(--d) linear var(--delay) infinite;
  will-change: transform;
}

@keyframes aj-fall {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  8% { opacity: 0.95; }
  50% { transform: translate3d(var(--dx), calc(var(--fall) * 0.5), 0) rotate(calc(var(--r) * 0.5)); }
  88% { opacity: 0.9; }
  100% { transform: translate3d(calc(var(--dx) * -0.4), var(--fall), 0) rotate(var(--r)); opacity: 0; }
}

.aj-replay {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  color: var(--on-paper-2);
  box-shadow: inset 0 0 0 1px rgba(31, 42, 27, 0.2);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.aj-replay[hidden] {
  display: none;
}

.aj-replay:hover {
  background: var(--vine);
  color: #fff;
}

.aj-replay svg {
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   04 HOW IT WAS MADE — the drafts as a hand of cards, then the clean-up
   ========================================================================== */
.aj-made {
  padding-bottom: var(--aj-gap);
}

.aj-fan {
  position: relative;
  height: 470px;
  margin-top: 40px;
}

.aj-draft {
  --spread: 128px;
  --tilt: 6deg;
  --k: calc(var(--i) - 3);
  --cw: 210px;
  position: absolute;
  bottom: 40px;
  left: calc(50% - var(--cw) / 2);
  z-index: calc(10 - var(--i));
  width: var(--cw);
  transform-origin: 50% 130%;
  transform: translateX(0) rotate(0deg);
  transition: transform 0.9s var(--ease), box-shadow 0.4s var(--ease);
  transition-delay: calc(var(--i) * 50ms);
}

.aj-draft.is-kept {
  z-index: 20;
}

.aj-fan.is-in .aj-draft {
  transform: translateX(calc(var(--k) * var(--spread))) rotate(calc(var(--k) * var(--tilt)));
}

.aj-fan.is-in .aj-draft:hover {
  z-index: 30;
  transform: translateX(calc(var(--k) * var(--spread))) translateY(-34px) rotate(0deg);
  transition-delay: 0s;
}

.aj-draft img {
  display: block;
  width: 100%;
  height: auto;
  border: 6px solid #fff;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(60, 50, 30, 0.25);
}

.aj-draft:not(.is-kept) img {
  filter: saturate(0.55);
  opacity: 0.85;
}

.aj-draft figcaption {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 3px 7px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--on-paper);
}

.aj-kept {
  position: absolute;
  top: 18px;
  left: 50%;
  padding: 7px 12px 6px;
  border: 2px solid var(--lehenga);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.92);
  color: var(--lehenga);
  transform: translateX(-50%) rotate(-6deg);
}

.aj-clean {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  max-width: 900px;
  margin: 100px auto 0;
}

.aj-clean-pic {
  position: relative;
}

.aj-clean img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 24px 50px rgba(60, 50, 30, 0.2);
}

.aj-clean figcaption {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: var(--on-paper-2);
}

.aj-clean-mid {
  font-size: 30px;
  color: var(--lehenga);
}

.aj-ring {
  position: absolute;
  border: 2.5px dashed #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px rgba(166, 60, 34, 0.9), inset 0 0 0 1.5px rgba(166, 60, 34, 0.9);
  pointer-events: none;
}

.aj-ring b {
  position: absolute;
  top: -4px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-left: -12px;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--lehenga);
  color: #fff;
}

.aj-legend {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--on-paper);
}

.aj-legend li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.aj-legend b {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 500;
  background: var(--lehenga);
  color: #fff;
}

.aj-legend-k {
  flex-basis: 100%;
  justify-content: center;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-paper-2);
}

/* ==========================================================================
   05 ON THE NIGHT — the reels
   ========================================================================== */
.aj-nights {
  padding-bottom: 120px;
  background:
    radial-gradient(80% 50% at 50% 0%, rgba(244, 179, 36, 0.12), transparent 70%),
    var(--night-0);
}

.aj-reels {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 56px 80px;
  margin-top: 64px;
}

.aj-reel {
  width: min(320px, 100%);
}

.aj-reel .reel-screen {
  width: 100%;
  box-shadow: 0 0 0 8px #050f15, 0 30px 70px rgba(0, 0, 0, 0.5);
}

.aj-reel figcaption {
  font-family: var(--aj-display);
  font-size: 24px;
  line-height: 1.1;
  color: var(--on-night);
}

.aj-vcredit {
  margin: 44px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: var(--on-night-3);
}

/* ==========================================================================
   06 DELIVERED — one collage
   ========================================================================== */
.aj-delivered {
  padding-bottom: 140px;
}

.aj-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 178px;
  grid-template-areas:
    "keep keep f1 f2"
    "keep keep f1 f2"
    "m1 m1 m2 m2"
    "m1 m1 m2 m2"
    "p1 m3 m4 p2"
    "p1 m3 m4 p2";
  gap: 16px;
  margin-top: 56px;
}

.aj-bento figure {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: var(--paper-2);
}

.aj-bento img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.aj-bento figure:hover img {
  transform: scale(1.03);
}

.aj-bento figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.92);
  color: var(--on-paper);
  pointer-events: none;
}

.b-keep { grid-area: keep; }
.b-f1 { grid-area: f1; }
.b-f2 { grid-area: f2; }
.b-m1 { grid-area: m1; }
.b-m2 { grid-area: m2; }
.b-m3 { grid-area: m3; }
.b-m4 { grid-area: m4; }
.b-p1 { grid-area: p1; }
.b-p2 { grid-area: p2; }
.b-m3 img { object-position: 62% 50%; }
.b-m4 img { object-position: 58% 50%; }

/* ==========================================================================
   FINALE
   ========================================================================== */
.aj-finale {
  position: relative;
  padding: 150px 0 160px;
  background:
    radial-gradient(110% 60% at 50% 110%, rgba(245, 154, 12, 0.5), rgba(245, 154, 12, 0) 60%),
    linear-gradient(180deg, var(--night-0), var(--night-1));
}

.aj-fin-in {
  display: grid;
  justify-items: center;
  text-align: center;
}

.aj-fin-k {
  margin: 0;
  font-size: 20px;
  font-style: italic;
  color: var(--on-night-2);
}

.aj-fin-names {
  margin: 16px 0 0;
}

.aj-fin-names img {
  width: min(460px, 78vw);
  height: auto;
}

.aj-fin-t {
  max-width: 640px;
  margin: 56px 0 0;
  font-family: var(--aj-display);
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 400;
  line-height: 1.15;
}

.aj-fin-t em {
  font-style: normal;
  color: var(--marigold);
}

.aj-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

.aj-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 24px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 15px;
  text-decoration: none;
  background: var(--marigold);
  color: var(--night-0);
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.aj-btn svg {
  width: 12px;
  height: 12px;
}

.aj-btn:hover {
  transform: translateY(-2px);
  background: #ffc541;
}

.aj-btn-ghost {
  background: transparent;
  color: var(--on-night);
  box-shadow: inset 0 0 0 1.5px var(--on-night-3);
}

.aj-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.aj-page .site-footer {
  position: relative;
  margin-top: 0;
  padding-top: 64px;
  background: #fff;
  color: var(--ink);
}

.pre-motion .aj-hero-text > *,
.pre-motion .aj-card {
  opacity: 0;
}

/* Reduced motion: the card is simply finished, nothing pins or floats */
@media (prefers-reduced-motion: reduce) {
  .aj-build {
    height: auto;
  }

  .aj-build-pin {
    position: static;
    height: auto;
    padding: 40px 0;
  }

  .aj-lan,
  .aj-petal {
    display: none;
  }
}

/* ==========================================================================
   SMALLER SCREENS
   ========================================================================== */
@media (max-width: 900px) {
  .aj-page {
    --aj-gap: 96px;
  }

  .aj-hero {
    margin-top: -66px;
    padding: 132px 0 90px;
  }

  .aj-sub {
    font-size: 17px;
  }

  .aj-pair {
    margin-top: 44px;
  }

  .aj-card {
    width: 41vw;
  }

  .aj-card-h {
    margin-right: -10px;
  }

  .aj-card-w {
    margin-top: 30px;
  }

  .aj-card figcaption {
    font-size: 10px;
  }

  .aj-credits {
    grid-template-columns: 1fr 1fr;
    gap: 22px 24px;
    margin-top: 56px;
  }

  .aj-credits dd {
    font-size: 14px;
  }

  .aj-head h2 {
    font-size: clamp(34px, 9.4vw, 44px);
    line-height: 1.12;
  }

  .aj-lead {
    font-size: 16px;
  }

  .aj-flips {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 44px;
  }

  .aj-face {
    border-width: 5px;
    border-radius: 12px;
  }

  .aj-face b {
    top: 8px;
    left: 8px;
    padding: 5px 8px 4px;
    font-size: 9px;
  }

  .aj-flip-label {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-size: 21px;
  }

  .aj-flip-label span {
    font-size: 10px;
  }

  /* the build: card on top, the current step as a caption underneath */
  .aj-build {
    height: 400vh;
    margin-top: 24px;
  }

  .aj-build-in {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 18px;
  }

  .aj-hstage-wrap {
    order: -1;
    --sh: min(calc(100svh - 230px), calc((100vw - 40px) * 1.294));
  }

  .aj-steps {
    position: relative;
    width: 100%;
    min-height: 92px;
  }

  .aj-steps li {
    position: absolute;
    inset: 0 0 auto;
    padding: 0;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  }

  .aj-steps li.is-on {
    opacity: 0;
  }

  .aj-steps li.is-now {
    opacity: 1;
    transform: none;
  }

  .aj-steps b {
    font-size: 20px;
  }

  .aj-steps p {
    font-size: 14px;
  }

  .aj-dress {
    flex-direction: column;
    align-items: center;
    gap: 22px;
    padding-top: 24px;
  }

  .aj-boys {
    margin-top: 0;
  }

  .aj-tagcard-k {
    font-size: 26px;
  }

  .aj-arch {
    height: 110px;
    margin-top: 72px;
  }

  .aj-wed-in {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 40px;
  }

  .aj-wstage {
    width: min(100vw - 40px, 440px);
  }

  .aj-fan {
    height: 250px;
    margin-top: 28px;
  }

  .aj-draft {
    --cw: 110px;
    --spread: 30px;
    --tilt: 3.5deg;
  }

  .aj-draft img {
    border-width: 4px;
    border-radius: 8px;
  }

  .aj-kept {
    top: 10px;
    padding: 4px 6px 3px;
    font-size: 8px;
  }

  .aj-draft figcaption {
    bottom: 8px;
    left: 8px;
    font-size: 9px;
  }

  .aj-clean {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 64px;
  }

  .aj-clean-mid {
    display: none;
  }

  .aj-clean figcaption {
    font-size: 10px;
  }

  .aj-ring b {
    width: 18px;
    height: 18px;
    margin-left: -9px;
    font-size: 10px;
  }

  .aj-legend {
    flex-direction: column;
    align-items: flex-start;
    font-size: 12px;
  }

  .aj-legend-k {
    justify-content: flex-start;
  }

  .aj-reels {
    gap: 56px;
  }

  .aj-reel {
    width: min(300px, 100%);
  }

  .aj-bento {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 120px;
    grid-template-areas:
      "keep keep"
      "keep keep"
      "f1 f2"
      "f1 f2"
      "m1 m1"
      "m1 m1"
      "m2 m2"
      "m2 m2"
      "p1 p2"
      "p1 p2"
      "m3 m4";
    gap: 10px;
  }

  .aj-finale {
    padding: 110px 0 120px;
  }
}
