.a54-fold {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  background: var(--saffron);
  color: var(--night);
  clip-path: polygon(0 0, 100% 0, 100% 72%, 97% 100%, 0 100%);
  padding: 8px 28px 14px;
  font-size: 0.82rem;
  font-weight: 600;
}
.a54-fold-mark {
  width: 28px; height: 28px; border-radius: 6px;
  background: var(--night); color: var(--saffron);
  display: grid; place-items: center; font-size: 0.7rem; letter-spacing: 0.08em;
}
.a54-fold-copy { margin: 0; letter-spacing: 0.04em; }
.a54-fold-meta { display: flex; gap: 14px; opacity: 0.85; }
.a54-fold-meta a { text-decoration: underline; text-underline-offset: 3px; }

.a54-horizon {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--sand) 88%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.a54-horizon-inner {
  display: grid;
  grid-template-columns: auto 1fr minmax(220px, 1.2fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px 0 10px;
}
.a54-aperture {
  width: 52px; height: 52px; border: 0; background: transparent;
  position: relative; cursor: pointer; color: var(--ink);
  display: none;
}
.a54-aperture-ring, .a54-aperture-iris {
  position: absolute; inset: 8px; border-radius: 50%;
  border: 1.6px solid currentColor;
}
.a54-aperture-iris { inset: 16px; background: var(--saffron); border: 0; }
.a54-aperture-label { display: none; }
.a54-sky-finder { margin-bottom: 18px; background: rgba(247,241,228,0.12); border-color: rgba(247,241,228,0.28); }
.a54-sky-finder input { color: var(--on-dark) !important; background: transparent !important; }
.a54-sky-finder input::placeholder { color: var(--on-dark-muted) !important; }
.a54-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.a54-hex {
  width: 48px; height: 48px; position: relative; color: var(--night);
}
.a54-hex svg { width: 100%; height: 100%; }
.a54-hex span {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.08em; color: var(--saffron);
}
.a54-brand-stack { display: flex; flex-direction: column; line-height: 1; }
.a54-brand-top {
  font-family: var(--serif); font-size: 1.15rem; font-weight: 700; letter-spacing: 0.08em;
}
.a54-brand-bottom {
  font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--clay-ink);
}

.a54-finder {
  display: flex; align-items: center; gap: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 8px 6px 16px;
}
.a54-finder-crescent {
  width: 14px; height: 14px; border-radius: 50%;
  box-shadow: inset -4px 0 0 0 var(--night);
  background: transparent;
}
.a54-finder input {
  flex: 1; border: 0; background: transparent; min-width: 0; font-size: 0.92rem; outline: none;
  color: var(--ink);
}
.a54-finder input::placeholder { color: var(--muted-soft); opacity: 1; }
.a54-finder button {
  border: 0; background: var(--night); color: var(--sand);
  border-radius: 999px; padding: 8px 14px; font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; cursor: pointer;
}

.a54-tokens { display: flex; gap: 8px; }
.a54-token {
  display: flex; align-items: center; gap: 8px;
  background: var(--night); color: var(--sand);
  border-radius: 16px 16px 16px 4px;
  padding: 8px 12px; min-width: 88px;
}
.a54-token-moon.is-active, .a54-token-moon.is-signed { background: var(--plum); }
.a54-token-tag { background: var(--clay); color: var(--night); border-radius: 4px 16px 16px 16px; font-weight: 700; }
.a54-token-copy { display: flex; flex-direction: column; line-height: 1.1; }
.a54-token-copy small { font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.75; }
.a54-token-copy strong { font-size: 0.95rem; }
.a54-moon {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--saffron);
  box-shadow: inset -6px 0 0 0 var(--night);
}
.a54-tag-hole {
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid currentColor; background: transparent;
}

.a54-rail { padding: 0 0 12px; }
.a54-rail-inner {
  position: relative; display: flex; flex-wrap: wrap; gap: 4px 0;
  justify-content: space-between;
}
.a54-rail-line {
  position: absolute; left: 12px; right: 12px; top: 9px; height: 1px;
  background: repeating-linear-gradient(90deg, var(--mist) 0 8px, transparent 8px 14px);
}
.a54-station {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center;
  gap: 6px; min-width: 72px; color: var(--muted); font-size: 0.8rem; font-weight: 600;
}
.a54-station-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--sand); border: 2px solid var(--plum);
}
.a54-station.is-active { color: var(--night); font-weight: 700; }
.a54-station.is-active .a54-station-dot { background: var(--saffron); border-color: var(--night); }
.a54-station-num { font-size: 0.62rem; letter-spacing: 0.14em; }
.a54-station-label { letter-spacing: 0.04em; }

.a54-sky {
  position: fixed; inset: 0; z-index: 80; pointer-events: none;
  visibility: hidden; opacity: 0; transition: opacity 0.2s ease;
}
.a54-sky.is-open, .ts-nav.is-open {
  pointer-events: auto; visibility: visible; opacity: 1;
}
.ts-nav-backdrop {
  position: fixed; inset: 0; background: rgba(18, 16, 28, 0.55);
  opacity: 0; visibility: hidden; z-index: 70; transition: opacity 0.2s ease;
}
.ts-nav-backdrop.is-open { opacity: 1; visibility: visible; }
.a54-sky-panel {
  position: absolute; inset: 18px;
  background:
    radial-gradient(circle at 20% 10%, rgba(232,160,32,0.18), transparent 35%),
    var(--night);
  color: var(--sand);
  border-radius: 28px;
  padding: 28px;
  display: flex; flex-direction: column; gap: 24px;
  overflow: auto;
}
.a54-sky-head { display: flex; justify-content: space-between; align-items: flex-start; }
.a54-sky-head span { display: block; opacity: 0.65; font-size: 0.82rem; }
.a54-sky-close {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--mist);
  background: transparent; color: var(--sand); font-size: 1.6rem; cursor: pointer;
}
.a54-sky-kicker { letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.72rem; color: var(--saffron); }
.a54-sky-links { display: grid; gap: 8px; }
.a54-sky-links .ts-nav-link {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; border-bottom: 1px solid rgba(247,241,228,0.12);
  font-family: var(--serif); font-size: 1.35rem;
}
.a54-sky-links .ts-nav-link.is-active { color: var(--saffron); }
.a54-sky-foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.a54-sky-foot a, .ts-drawer-action {
  border: 1px solid rgba(247,241,228,0.25); border-radius: 999px; padding: 10px 16px;
}

.a54-footer {
  margin-top: 48px;
  background: var(--night);
  color: var(--sand);
  position: relative;
}
.a54-horizon-band {
  height: 28px; position: relative;
  background: linear-gradient(180deg, transparent, var(--night));
}
.a54-sun {
  position: absolute; left: 12%; bottom: -14px;
  width: 42px; height: 42px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe08a, var(--saffron) 55%, var(--clay));
  box-shadow: 0 0 30px rgba(232,160,32,0.45);
}
.a54-footer-grid {
  display: grid; grid-template-columns: 0.9fr 1.4fr; gap: 40px;
  padding: 36px 0 28px; position: relative;
}
.a54-footer-watermark {
  position: absolute; left: -12px; top: -20px;
  font-family: var(--serif); font-size: 8rem; opacity: 0.08; line-height: 1;
  transform: rotate(-12deg); pointer-events: none;
}
.a54-footer-mark {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px; border: 1px solid var(--saffron); border-radius: 10px;
  color: var(--saffron); letter-spacing: 0.1em; font-size: 0.75rem; margin-bottom: 12px;
}
.a54-footer-word {
  display: block; font-family: var(--serif); font-size: 1.6rem; margin-bottom: 8px;
}
.a54-footer-brand p { max-width: 36ch; color: var(--on-dark-muted); line-height: 1.55; opacity: 1; }
.a54-footer-col a { color: var(--on-dark); }
.a54-footer-col p { color: var(--on-dark-muted); }
.a54-footer-stagger {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  align-items: start;
}
.a54-footer-col { display: flex; flex-direction: column; gap: 8px; }
.a54-footer-col-high { margin-top: -18px; }
.a54-footer-col-low { margin-top: 28px; }
.a54-footer-col h4 {
  margin: 0 0 6px; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--saffron);
}
.a54-footer-col a:hover { color: var(--saffron); }
.a54-footer-hours { color: var(--on-dark-muted); font-size: 0.88rem; opacity: 1; }
.a54-ticket {
  border-top: 1px dashed rgba(247,241,228,0.22);
  background: #0d0b16;
}
.a54-ticket-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 0; font-size: 0.78rem; color: var(--on-dark-muted); opacity: 1;
}
.a54-ticket-inner span { color: var(--on-dark-muted); }
.a54-ticket-punch {
  width: 14px; height: 14px; border-radius: 50%; background: var(--sand);
  box-shadow: 0 0 0 6px #0d0b16;
}
.a54-ticket-badge { letter-spacing: 0.12em; text-transform: uppercase; color: var(--saffron); }

body.ts-nav-open { overflow: hidden; }
