/* ---------- header ---------- */
.desktop-nav a[aria-current="page"] { color: #d6a756; }
.desktop-nav a[aria-current="page"]:after { right: 0; }
.status-pill { color: #f8f8f6; text-decoration: none; transition: border-color .25s, background .25s; }
.status-pill:hover { border-color: #d6a756; background: #183a5ab3; }
.mobile-menu > a {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
}
.mobile-menu > a span { font-family: var(--font-sans); color: #d6a756; font-size: .6rem; }

/* ---------- hero header ---------- */
.merch-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(92svh, 860px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: 3rem;
  padding: 9rem max(5vw, 50vw - 660px) 6rem;
  border-bottom: 10px solid #d6a756;
  color: #f8f8f6;
}
.merch-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  transform: scaleX(-1);
}
.merch-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% center;
  filter: saturate(.9) brightness(.75);
  animation: 18s ease-out both heroDrift;
}
.merch-hero canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .55;
  pointer-events: none;
}
.merch-hero-content > * { animation: softIn 1s ease both; }
.merch-hero-content .eyebrow { animation-delay: .1s; }
.merch-hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.2rem, 7vw, 6.4rem);
  line-height: .95;
  letter-spacing: -.01em;
  margin-bottom: 1.8rem;
  text-shadow: 0 6px 40px rgba(5, 17, 28, .5);
  animation: riseIn 1.2s cubic-bezier(.2, .7, .2, 1) .2s both !important;
}
.merch-hero-title em { font-style: italic; font-weight: 500; color: #d6a756; }
.merch-hero-content .hero-meta { animation-delay: .45s; }
.merch-hero-content .hero-logline { animation-delay: .55s; max-width: 520px; }
.merch-hero-content .hero-actions { animation-delay: .65s; }

.merch-cta {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  min-height: 54px;
  padding: 0 1.7rem;
  background: #d6a756;
  color: #183a5a;
  font-weight: 700;
  text-decoration: none;
  transition: background .25s, transform .25s;
}
.merch-cta:hover { background: #f8f8f6; transform: translateY(-2px); }
.merch-cta svg { transition: transform .25s; }
.merch-cta:hover svg { transform: translateY(3px); }
.merch-hero .text-button { color: #f8f8f6; text-decoration: none; border-bottom: 1px solid #d6a756; padding-bottom: .2rem; font-size: .9rem; }

.merch-hero-stack {
  position: relative;
  height: min(560px, 62vh);
  animation: softIn 1.2s ease .5s both;
}
.merch-hero-stack img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 58%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border: 1px solid #f8f8f633;
  box-shadow: 0 30px 60px rgba(3, 15, 25, .6);
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.merch-hero-stack img:nth-child(1) { transform: translate(-108%, -46%) rotate(-7deg); }
.merch-hero-stack img:nth-child(2) { transform: translate(-8%, -54%) rotate(6deg); }
.merch-hero-stack img:nth-child(3) { z-index: 2; transform: translate(-56%, -50%); border-color: #d6a75680; box-shadow: 0 40px 80px rgba(3, 15, 25, .7), 0 0 60px rgba(214, 167, 86, .18); }
.merch-hero-stack:hover img:nth-child(1) { transform: translate(-118%, -46%) rotate(-10deg); }
.merch-hero-stack:hover img:nth-child(2) { transform: translate(2%, -54%) rotate(9deg); }
.merch-hero-stack:hover img:nth-child(3) { transform: translate(-56%, -53%); }

/* ---------- how it works (cream) ---------- */
.merch-steps {
  background: #f8f8f6;
  color: #183a5a;
  display: grid;
  grid-template-columns: minmax(240px, .8fr) 2fr;
  gap: clamp(2rem, 5vw, 6rem);
  align-items: start;
}
.merch-steps h2,
.merch-catalog-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 4.6vw, 4.2rem);
  line-height: 1;
}
.merch-steps h2 em,
.merch-catalog-head h2 em { font-style: italic; font-weight: 500; color: #d6a756; }
.merch-steps-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #183a5a26;
}
.merch-steps-list li {
  padding: 2rem 1.8rem 0 0;
  border-right: 1px solid #183a5a1a;
  margin-right: 1.8rem;
}
.merch-steps-list li:last-child { border-right: 0; margin-right: 0; }
.merch-steps-list span {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.6rem;
  color: #d6a756;
  line-height: 1;
  margin-bottom: 1.2rem;
}
.merch-steps-list h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  margin-bottom: .6rem;
}
.merch-steps-list p { font-size: .92rem; line-height: 1.65; color: #183a5acc; }

/* ---------- catalog ---------- */
.merch-catalog { background: #102a42; color: #f8f8f6; }
.merch-catalog-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  padding-bottom: 2.4rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid #f8f8f61f;
}
.merch-counter {
  font-size: .8rem;
  color: #f8f8f699;
  white-space: nowrap;
}
.merch-counter strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, 5vw, 4.6rem);
  color: #d6a756;
  line-height: 1;
  margin-right: .3rem;
}

.merch-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.6rem;
}
.merch-card {
  display: flex;
  flex-direction: column;
  background: #183a5a;
  border: 1px solid #f8f8f61a;
  transition: transform .45s cubic-bezier(.2, .7, .2, 1), border-color .3s, box-shadow .45s;
}
.merch-card:hover,
.merch-card:focus-within {
  transform: translateY(-6px);
  border-color: #d6a75699;
  box-shadow: 0 24px 50px rgba(3, 15, 25, .55);
}
.merch-card-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #05111c;
}
.merch-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2, .7, .2, 1), filter .5s;
  filter: brightness(.94);
}
.merch-card:hover .merch-card-media img,
.merch-card:focus-within .merch-card-media img { transform: scale(1.06); filter: brightness(1.02); }
.merch-card-no {
  position: absolute;
  top: .9rem;
  left: .9rem;
  padding: .4rem .6rem;
  background: #d6a756;
  color: #183a5a;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.merch-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.3rem 1.3rem 1.1rem;
}
.merch-card-body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  line-height: 1.25;
}
.merch-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid #f8f8f61f;
}
.merch-price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  color: #d6a756;
}
.merch-card-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .6rem .95rem;
  border: 1px solid #d6a756;
  background: transparent;
  color: #f8f8f6;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background .25s, color .25s;
}
.merch-card-btn svg { transition: transform .25s; }
.merch-card:hover .merch-card-btn,
.merch-card-btn:focus-visible { background: #d6a756; color: #183a5a; }
.merch-card:hover .merch-card-btn svg { transform: translateX(3px); }

/* ---------- reveal ---------- */
.merch-reveal { opacity: 0; }
.merch-reveal.is-visible { opacity: 1; animation: riseIn .9s cubic-bezier(.2, .7, .2, 1) var(--merch-delay, 0ms) backwards; }

/* ---------- modal ---------- */
.merch-modal {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  width: min(900px, 100%);
  max-height: 92vh;
  overflow: hidden;
  background: #f8f8f6;
  color: #183a5a;
  box-shadow: 0 40px 100px rgba(3, 15, 25, .6);
  animation: merchModalIn .45s cubic-bezier(.2, .8, .2, 1) both;
}
.merch-modal .modal-close { background: #f8f8f6; }
.merch-modal-media { position: relative; background: #05111c; }
.merch-modal-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.merch-modal-main {
  padding: clamp(2rem, 4vw, 3rem);
  overflow-y: auto;
}
.merch-modal h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1.1;
  margin: 0 2.5rem .6rem 0;
}
.merch-modal .eyebrow { margin-bottom: .9rem; }
.merch-modal-price {
  display: flex;
  align-items: baseline;
  gap: .8rem;
  padding-bottom: 1.4rem;
  margin-bottom: 1.4rem;
  border-bottom: 1px solid #183a5a1f;
}
.merch-modal-price strong { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; color: #8a6420; }
.merch-modal-price span { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: #183a5a99; font-weight: 700; }

.merch-modal form { display: flex; flex-direction: column; gap: .5rem; }
.merch-field-row { display: grid; grid-template-columns: 1.6fr 1fr; gap: .9rem; }
.merch-field { display: flex; flex-direction: column; gap: .4rem; }
.merch-field-label { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #183a5a; }
.merch-modal input,
.merch-modal select {
  width: 100%;
  border: 1px solid #183a5a33;
  padding: .85rem .95rem;
  font-size: 1rem;
  font-family: var(--font-sans);
  color: #183a5a;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.merch-modal select {
  appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23183a5a' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right .95rem center;
  padding-right: 2.4rem;
  cursor: pointer;
}
.merch-modal input:focus,
.merch-modal select:focus { outline: none; border-color: #d6a756; box-shadow: 0 0 0 3px rgba(214, 167, 86, .28); }
.merch-modal [aria-invalid] { border-color: #a3372f; }
.field-error { min-height: 1.05rem; font-size: .76rem; font-weight: 600; color: #a3372f; }

.merch-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  width: 100%;
  min-height: 54px;
  margin-top: .4rem;
  border: 0;
  background: #183a5a;
  color: #f8f8f6;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: background .25s, color .25s;
}
.merch-submit:hover { background: #d6a756; color: #183a5a; }
.merch-submit--ghost { background: transparent; color: #183a5a; border: 1px solid #183a5a40; margin-top: 1.6rem; }
.merch-submit--ghost:hover { border-color: #d6a756; }
.merch-submit.is-loading { cursor: progress; opacity: .85; }
.merch-btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid #f8f8f64d;
  border-top-color: #f8f8f6;
  border-radius: 50%;
}
.merch-submit.is-loading .merch-btn-spinner { display: inline-block; animation: turn .7s linear infinite; }
.merch-form-note { margin-top: .8rem; font-size: .78rem; color: #183a5a99; text-align: center; }
.merch-modal-error { font-size: .84rem; font-weight: 600; color: #a3372f; }

.merch-success-mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #d6a756;
  color: #183a5a;
  margin-bottom: 1.4rem;
  animation: merchPop .55s cubic-bezier(.2, .9, .3, 1.3) both;
}
#merchModalSuccess p:not(.eyebrow) { line-height: 1.65; margin-top: .6rem; color: #183a5acc; }
#merchSuccessText { color: #183a5a !important; font-weight: 600; }

.merch-modal-backdrop.is-closing { animation: merchFadeOut .2s ease both; }
.merch-modal-backdrop.is-closing .merch-modal { animation: merchModalOut .2s ease both; }
@keyframes merchModalIn { 0% { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes merchModalOut { to { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes merchFadeOut { to { opacity: 0; } }
@keyframes merchPop { 0% { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1150px) {
  .merch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1050px) {
  .merch-hero { grid-template-columns: 1fr; min-height: auto; padding-top: 8rem; padding-bottom: 5rem; }
  .merch-hero-stack { display: none; }
  .merch-steps { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .merch-steps-list { grid-template-columns: 1fr; }
  .merch-steps-list li { border-right: 0; margin-right: 0; padding: 1.6rem 0; border-bottom: 1px solid #183a5a1a; display: grid; grid-template-columns: 3.4rem 1fr; column-gap: 1rem; }
  .merch-steps-list li:last-child { border-bottom: 0; }
  .merch-steps-list span { grid-row: span 2; font-size: 2rem; margin: 0; }
  .merch-catalog-head { flex-direction: column; align-items: flex-start; }
  .merch-modal { grid-template-columns: 1fr; max-height: 100svh; height: 100%; width: 100%; overflow-y: auto; }
  .merch-modal-media { height: 34vh; }
  .merch-modal-media img { object-position: center 35%; }
  .merch-modal-main { overflow: visible; padding: 1.8rem 1.4rem 2.4rem; }
  .merch-modal-backdrop { padding: 0; }
}
@media (max-width: 560px) {
  .merch-grid { grid-template-columns: 1fr; }
  .merch-hero-title { font-size: clamp(2.9rem, 13vw, 3.6rem); }
  .merch-hero .hero-actions { gap: 1.2rem; }
  .merch-cta { width: 100%; justify-content: center; }
  .merch-field-row { grid-template-columns: 1fr; gap: .5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .merch-hero *, .merch-hero-bg img, .merch-modal, .merch-success-mark { animation: none !important; }
  .merch-reveal { opacity: 1; animation: none !important; }
  .merch-card, .merch-card-media img, .merch-hero-stack img { transition: none; }
}
