/* A.Z TRADERS — storefront styles */

@property --af57-hz-spin {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

.af57-body {
  --af57-display: "Syne", "Bricolage Grotesque", system-ui, sans-serif;
  --af57-body: "Manrope", system-ui, sans-serif;
  --af57-teal: #0B5E5E;
  --af57-teal-deep: #042F2F;
  --af57-coral: #FF5E3A;
  --af57-gold: #E8C547;
  --af57-cream: #FAF8F3;
  --af57-ink: #0F1A1A;
  --af57-muted: #5C7575;
  --af57-glass: rgba(255, 255, 255, 0.78);
  --af57-glass-edge: rgba(255, 255, 255, 0.52);
  --af57-dock-h: clamp(5rem, 12vw, 6.5rem);
  --af57-fluid-xs: clamp(0.65rem, 0.6rem + 0.2vw, 0.75rem);
  --af57-fluid-sm: clamp(0.8125rem, 0.75rem + 0.35vw, 0.9375rem);
  --af57-fluid-md: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  --af57-fluid-lg: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
  --af57-fluid-xl: clamp(2.75rem, 1.8rem + 5vw, 6rem);
  --af57-fluid-2xl: clamp(3.25rem, 2rem + 7vw, 7.5rem);
  --af57-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --af57-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

.af57-wrap .a57-orbit-rail { display: none; }

.af57-wrap .af57-stage {
  margin-left: 0;
  width: 100%;
}

.page-home .page-main {
  padding: 0;
  overflow-x: clip;
  padding-bottom: var(--af57-dock-h);
}

/* ══════════════════════════════════════
   HORIZON CHROME — corner monolith +
   top orbit + bottom dock (not top-bar)
   ══════════════════════════════════════ */

.af57-hz-chrome {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
}

/* Brand monolith — top-left vertical stack */
.af57-hz-monolith {
  pointer-events: auto;
  position: absolute;
  top: clamp(0.85rem, 2vw, 1.35rem);
  left: clamp(0.85rem, 2vw, 1.35rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.5rem 0.85rem;
  border-radius: 20px;
  background: color-mix(in srgb, var(--af57-glass) 90%, transparent);
  backdrop-filter: blur(22px) saturate(1.5);
  border: 1px solid color-mix(in srgb, var(--af57-teal) 14%, transparent);
  box-shadow: 0 16px 48px rgba(4, 47, 47, 0.12);
  text-decoration: none;
  color: var(--af57-ink);
  transition: transform 0.45s var(--af57-spring), box-shadow 0.45s;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.af57-hz-monolith:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 22px 56px rgba(4, 47, 47, 0.16);
}

.af57-hz-monolith-mark {
  writing-mode: horizontal-tb;
  width: 2.65rem;
  height: 2.65rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(from var(--af57-hz-spin), var(--af57-coral), var(--af57-gold), var(--af57-teal), var(--af57-coral));
  animation: af57-hz-spin 10s linear infinite;
  font-family: var(--af57-display);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--af57-teal-deep);
  transform: rotate(-90deg);
}

@keyframes af57-hz-spin {
  to { --af57-hz-spin: 360deg; }
}

.af57-hz-monolith-word {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  writing-mode: vertical-rl;
}

.af57-hz-monolith-word strong {
  font-family: var(--af57-display);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.af57-hz-monolith-word em {
  font-style: normal;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--af57-coral);
}

/* Utility orbit — top-right */
.af57-hz-orbit {
  pointer-events: auto;
  position: absolute;
  top: clamp(0.85rem, 2vw, 1.35rem);
  right: clamp(0.85rem, 2vw, 1.35rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.af57-hz-orb {
  position: relative;
  width: 2.65rem;
  height: 2.65rem;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--af57-teal) 16%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--af57-glass) 92%, transparent);
  backdrop-filter: blur(18px);
  color: var(--af57-teal);
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.35s var(--af57-spring), box-shadow 0.35s, background 0.35s;
}

.af57-hz-orb:hover {
  transform: scale(1.1) translateX(-4px);
  box-shadow: 0 10px 32px rgba(255, 94, 58, 0.2);
  background: rgba(255, 255, 255, 0.92);
}

.af57-hz-orb:nth-child(1) { transform: translateX(-8px); }
.af57-hz-orb:nth-child(2) { transform: translateX(-4px); }
.af57-hz-orb:nth-child(3) { transform: translateX(-2px); }

.af57-hz-orb:nth-child(1):hover { transform: scale(1.1) translateX(-12px); }
.af57-hz-orb:nth-child(2):hover { transform: scale(1.1) translateX(-8px); }
.af57-hz-orb:nth-child(3):hover { transform: scale(1.1) translateX(-6px); }

.af57-hz-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--af57-coral);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 800;
  font-style: normal;
  display: grid;
  place-items: center;
}

.af57-hz-orb-menu { display: none; }

/* Bottom horizon dock */
.af57-hz-dock {
  pointer-events: auto;
  position: absolute;
  left: 50%;
  bottom: clamp(0.75rem, 2vw, 1.25rem);
  transform: translateX(-50%);
  width: min(640px, calc(100vw - 8rem));
}

.af57-hz-dock-glow {
  position: absolute;
  inset: -30% -10%;
  background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(255, 94, 58, 0.18), transparent 70%);
  pointer-events: none;
  animation: af57-hz-glow-pulse 4s ease-in-out infinite;
}

@keyframes af57-hz-glow-pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.af57-hz-dock-rail {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0.35rem;
  padding: 0.55rem 0.65rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--af57-glass) 88%, transparent);
  backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid var(--af57-glass-edge);
  box-shadow: 0 20px 60px rgba(4, 47, 47, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.af57-hz-dock-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.55rem 0.85rem 0.65rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--af57-muted);
  transition: transform 0.4s var(--af57-spring), color 0.3s, background 0.3s;
  transform: translateY(calc(var(--dock-i, 0) * 0px));
}

.af57-hz-dock-glyph {
  font-family: var(--af57-display);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  opacity: 0.7;
}

.af57-hz-dock-label {
  font-size: var(--af57-fluid-xs);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.af57-hz-dock-node:hover {
  transform: translateY(-10px) scale(1.05);
  color: var(--af57-teal);
  background: rgba(255, 255, 255, 0.55);
}

.af57-hz-dock-node.is-active {
  transform: translateY(-14px) scale(1.08);
  color: var(--af57-ink);
  background: linear-gradient(145deg, rgba(232, 197, 71, 0.35), rgba(255, 94, 58, 0.2));
  box-shadow: 0 12px 32px rgba(255, 94, 58, 0.2);
}

.af57-hz-dock-node.is-active .af57-hz-dock-glyph {
  color: var(--af57-coral);
  opacity: 1;
}

/* Search bloom */
.af57-hz-search-bloom[hidden] {
  display: none !important;
  pointer-events: none;
}

.af57-hz-search-bloom {
  pointer-events: auto;
  position: absolute;
  left: 50%;
  bottom: calc(var(--af57-dock-h) + 0.5rem);
  transform: translateX(-50%);
  width: min(520px, calc(100vw - 2rem));
  padding: 0.65rem;
  border-radius: 22px;
  background: var(--af57-glass);
  backdrop-filter: blur(24px);
  border: 1px solid var(--af57-glass-edge);
  box-shadow: 0 24px 64px rgba(4, 47, 47, 0.16);
  animation: af57-hz-bloom-in 0.35s var(--af57-ease) both;
}

@keyframes af57-hz-bloom-in {
  from { opacity: 0; transform: translateX(-50%) translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

.af57-hz-search-bloom form {
  display: flex;
  gap: 0.45rem;
}

.af57-hz-search-bloom input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(11, 94, 94, 0.12);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.65);
  font: inherit;
  font-size: var(--af57-fluid-sm);
}

.af57-hz-search-bloom button {
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: var(--radius-full);
  background: var(--af57-teal);
  color: var(--on-dark);
  font-weight: 800;
  cursor: pointer;
}

/* Mobile sheet */
.af57-hz-sheet[hidden] {
  display: none !important;
  pointer-events: none;
}

.af57-hz-sheet {
  pointer-events: auto;
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(4, 47, 47, 0.45);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 1.5rem;
  animation: af57-hz-sheet-in 0.3s var(--af57-ease) both;
}

@keyframes af57-hz-sheet-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.af57-hz-sheet nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: min(320px, 100%);
  padding: 1.25rem;
  border-radius: 24px;
  background: var(--af57-glass);
  backdrop-filter: blur(24px);
  border: 1px solid var(--af57-glass-edge);
}

.af57-hz-sheet a {
  padding: 0.75rem 1rem;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  color: var(--af57-ink);
  transition: background 0.2s;
}

.af57-hz-sheet a:hover,
.af57-hz-sheet a.is-active {
  background: rgba(255, 94, 58, 0.12);
  color: var(--af57-coral);
}

.af57-hz-chrome.is-scrolled .af57-hz-monolith {
  transform: scale(0.92);
  opacity: 0.95;
}

.af57-hz-chrome.is-scrolled .af57-hz-dock-rail {
  padding: 0.45rem 0.55rem;
}

/* ══════════════════════════════════════
   HOMEPAGE — Horizon Field content
   ══════════════════════════════════════ */

.af57-hf-field {
  --hf-pad: clamp(1rem, 3vw, 2rem);
  --hf-gap: clamp(1.25rem, 3vw, 2.5rem);
  padding-inline: max(var(--hf-pad), calc(var(--space-container, 1.25rem) + 3.5rem));
  padding-block: clamp(4.5rem, 10vw, 6rem) calc(var(--hf-gap) + var(--af57-dock-h));
  display: flex;
  flex-direction: column;
  gap: var(--hf-gap);
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 60% at 10% -10%, rgba(11, 94, 94, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 55% at 100% 8%, rgba(255, 94, 58, 0.1), transparent 52%),
    linear-gradient(180deg, #F7F3EA 0%, var(--af57-cream) 42%, #F0EBE0 100%);
}

.af57-hf-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--af57-ease), transform 0.7s var(--af57-ease);
}

.af57-hf-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .af57-hf-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Opening frame ── */
.af57-hf-open {
  position: relative;
  min-height: clamp(520px, 78vh, 760px);
  display: flex;
  align-items: center;
}

.af57-hf-open-diagonal {
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, transparent 48%, rgba(11, 94, 94, 0.04) 48%, rgba(255, 94, 58, 0.05) 100%);
  pointer-events: none;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 85%);
}

.af57-hf-open-grid {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(1rem, 4vw, 3rem);
  align-items: center;
}

.af57-hf-brand {
  margin: 0 0 0.65rem;
  font-family: var(--af57-display);
  font-size: clamp(1.35rem, 1rem + 2.4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--af57-teal-deep);
}

.af57-hf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 1rem 0 0;
  font-size: var(--af57-fluid-xs);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--af57-coral);
}

.af57-hf-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--af57-coral);
  box-shadow: 0 0 12px var(--af57-coral);
  animation: af57-hf-pulse 2s ease-in-out infinite;
}

@keyframes af57-hf-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.af57-hf-headline {
  margin: 0 0 0.75rem;
  font-family: var(--af57-display);
  font-size: var(--af57-fluid-2xl);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--af57-ink);
}

.af57-hf-line {
  display: block;
}

.af57-hf-line-accent {
  background: linear-gradient(110deg, var(--af57-teal), var(--af57-coral) 55%, var(--af57-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 24px rgba(255, 94, 58, 0.2));
}

.af57-hf-lede {
  margin: 0 0 1.25rem;
  max-width: 42ch;
  font-size: var(--af57-fluid-md);
  line-height: 1.65;
  color: var(--af57-muted);
}

.af57-hf-open-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.35rem;
}

.af57-hf-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font: inherit;
  font-size: var(--af57-fluid-sm);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s var(--af57-spring), box-shadow 0.3s;
}

.af57-hf-btn-fill {
  background: linear-gradient(135deg, var(--af57-teal), #0a6868);
  color: var(--on-dark) !important;
  box-shadow: 0 10px 32px rgba(11, 94, 94, 0.25);
}

.af57-hf-btn-fill:hover {
  transform: translateY(-3px);
  color: var(--on-dark) !important;
}

.af57-hf-btn-fill svg { width: 18px; height: 18px; }

.af57-hf-btn-ghost {
  background: rgba(255, 255, 255, 0.6);
  border: 2px solid rgba(11, 94, 94, 0.15);
  color: var(--af57-teal);
}

.af57-hf-btn-ghost:hover {
  border-color: var(--af57-coral);
  transform: translateY(-2px);
}

.af57-hf-btn-sm {
  padding: 0.55rem 1rem;
  font-size: var(--af57-fluid-xs);
}

.af57-hf-metrics {
  list-style: none;
  margin: 0;
  padding: 0.85rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  border-radius: 22px;
  background: color-mix(in srgb, #fff 72%, transparent);
  border: 1px solid var(--af57-glass-edge);
  box-shadow: 0 18px 40px rgba(4, 47, 47, 0.06);
}

.af57-hf-metrics li {
  padding: 0.75rem 0.9rem;
  border-radius: 16px;
  background: var(--af57-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--af57-glass-edge);
  text-align: center;
}

.af57-hf-metrics strong {
  display: block;
  font-family: var(--af57-display);
  font-size: var(--af57-fluid-lg);
  font-weight: 800;
  color: var(--af57-teal);
  line-height: 1;
}

.af57-hf-metrics span {
  font-size: var(--af57-fluid-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--af57-muted);
}

/* Cascade deck */
.af57-hf-cascade {
  position: relative;
  height: clamp(380px, 52vw, 520px);
  perspective: 1200px;
}

.af57-hf-cascade-card {
  position: absolute;
  width: clamp(140px, 38%, 200px);
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 20px 48px rgba(4, 47, 47, 0.15);
  text-decoration: none;
  color: inherit;
  transition: transform 0.5s var(--af57-spring), box-shadow 0.5s, z-index 0s;
  transform:
    translateX(calc(var(--c-i) * 14%))
    translateY(calc(var(--c-i) * 6px))
    rotate(calc(-8deg + var(--c-i) * 4deg))
    scale(calc(1 - var(--c-i) * 0.03));
  z-index: calc(10 - var(--c-i));
  animation: af57-hf-cascade-in 0.65s calc(0.1s + var(--c-i) * 0.07s) var(--af57-ease) both;
}

@keyframes af57-hf-cascade-in {
  from { opacity: 0; transform: translateY(40px) rotate(-4deg) scale(0.9); }
  to {
    opacity: 1;
    transform:
      translateX(calc(var(--c-i) * 14%))
      translateY(calc(var(--c-i) * 6px))
      rotate(calc(-8deg + var(--c-i) * 4deg))
      scale(calc(1 - var(--c-i) * 0.03));
  }
}

.af57-hf-cascade:hover .af57-hf-cascade-card {
  transform:
    translateX(calc(var(--c-i) * 18%))
    translateY(calc(var(--c-i) * -8px))
    rotate(calc(-4deg + var(--c-i) * 3deg))
    scale(calc(1.02 - var(--c-i) * 0.02));
}

.af57-hf-cascade-card:hover {
  z-index: 20 !important;
  box-shadow: 0 28px 64px rgba(255, 94, 58, 0.25);
}

.af57-hf-cascade-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.af57-hf-cascade-meta {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0.55rem;
  background: linear-gradient(transparent, rgba(4, 47, 47, 0.88));
  font-size: 0.62rem;
}

.af57-hf-cascade-meta em {
  font-style: normal;
  font-weight: 800;
  color: var(--on-dark);
  opacity: 0.85;
}

.af57-hf-cascade-meta strong {
  color: var(--af57-gold);
  font-weight: 800;
}

/* ── Section heads ── */
.af57-hf-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.af57-hf-kicker {
  margin: 0 0 0.25rem;
  font-size: var(--af57-fluid-xs);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--af57-coral);
}

.af57-hf-section-head h2 {
  margin: 0;
  font-family: var(--af57-display);
  font-size: var(--af57-fluid-lg);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--af57-ink);
}

.af57-hf-text-link {
  font-size: var(--af57-fluid-sm);
  font-weight: 800;
  color: var(--af57-teal);
  text-decoration: none;
  transition: color 0.2s;
}

.af57-hf-text-link:hover { color: var(--af57-coral); }

/* ── Hex wall ── */
.af57-hf-hex-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.65rem;
}

.af57-hf-hex-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.4s var(--af57-spring);
  animation: af57-hf-hex-in 0.5s calc(0.08s + var(--hex-i) * 0.06s) var(--af57-ease) both;
}

@keyframes af57-hf-hex-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.af57-hf-hex-cell:hover {
  transform: translateY(-8px) scale(1.03);
}

.af57-hf-hex-shape {
  width: 100%;
  aspect-ratio: 1;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  background: color-mix(in srgb, var(--hex-hue) 20%, white);
  border: 2px solid color-mix(in srgb, var(--hex-hue) 35%, transparent);
  overflow: hidden;
  transition: box-shadow 0.35s;
}

.af57-hf-hex-cell:hover .af57-hf-hex-shape {
  box-shadow: 0 16px 40px color-mix(in srgb, var(--hex-hue) 30%, transparent);
}

.af57-hf-hex-shape img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.af57-hf-hex-body {
  text-align: center;
}

.af57-hf-hex-body em {
  display: block;
  font-style: normal;
  font-family: var(--af57-display);
  font-size: 0.58rem;
  font-weight: 800;
  color: var(--af57-coral);
}

.af57-hf-hex-body strong {
  display: block;
  font-family: var(--af57-display);
  font-size: var(--af57-fluid-sm);
  font-weight: 800;
  color: var(--af57-ink);
}

.af57-hf-hex-body small {
  font-size: 0.65rem;
  color: var(--af57-muted);
}

/* ── Editorial spotlight ── */
.af57-hf-editorial {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: 1.25rem;
  align-items: start;
}

.af57-hf-editorial-lead {
  display: grid;
  grid-template-columns: minmax(180px, 0.85fr) minmax(0, 1fr);
  gap: 1rem;
  padding: 1.15rem;
  border-radius: 28px;
  background: var(--af57-glass);
  backdrop-filter: blur(18px);
  border: 1px solid var(--af57-glass-edge);
}

.af57-hf-editorial-visual {
  position: relative;
  display: block;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.af57-hf-editorial-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.af57-hf-editorial-tag {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--af57-coral);
  color: var(--on-dark);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.af57-hf-editorial-copy h2 {
  margin: 0 0 0.45rem;
  font-family: var(--af57-display);
  font-size: var(--af57-fluid-lg);
  font-weight: 800;
  line-height: 1.1;
}

.af57-hf-editorial-copy p {
  margin: 0 0 0.85rem;
  font-size: var(--af57-fluid-sm);
  line-height: 1.65;
  color: var(--af57-muted);
}

.af57-hf-editorial-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.af57-hf-editorial-row strong {
  font-family: var(--af57-display);
  font-size: var(--af57-fluid-lg);
  color: var(--af57-coral);
}

.af57-hf-editorial-row span {
  font-size: var(--af57-fluid-xs);
  font-weight: 700;
  color: var(--af57-muted);
}

.af57-hf-editorial-stream {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.af57-hf-editorial-stream a {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0.65rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.85);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s var(--af57-spring), box-shadow 0.3s;
  animation: af57-hf-stream-in 0.45s calc(0.1s + var(--stream-i) * 0.06s) var(--af57-ease) both;
}

@keyframes af57-hf-stream-in {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: none; }
}

.af57-hf-editorial-stream a:hover {
  transform: translateX(6px);
  box-shadow: 0 8px 24px rgba(11, 94, 94, 0.1);
}

.af57-hf-editorial-stream img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
}

.af57-hf-editorial-stream strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--af57-ink);
}

.af57-hf-editorial-stream em {
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--af57-teal);
}

/* ── Vault mosaic ── */
.af57-hf-vault-tabs {
  position: relative;
  display: inline-flex;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.85);
}

.af57-hf-vault-tabs button {
  position: relative;
  z-index: 1;
  padding: 0.45rem 0.9rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: var(--af57-fluid-xs);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--af57-muted);
  cursor: pointer;
  transition: color 0.25s;
}

.af57-hf-vault-tabs button.is-active {
  color: var(--af57-ink);
}

.af57-hf-vault-glider {
  position: absolute;
  inset: 0.25rem;
  width: calc(33.333% - 0.17rem);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(232, 197, 71, 0.45), rgba(255, 94, 58, 0.25));
  box-shadow: 0 4px 16px rgba(255, 94, 58, 0.15);
  transition: transform 0.4s var(--af57-spring);
  pointer-events: none;
}

.af57-hf-vault-panel {
  animation: af57-hf-panel-in 0.4s var(--af57-ease) both;
}

@keyframes af57-hf-panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.af57-hf-vault-mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.65rem;
  grid-auto-rows: minmax(120px, auto);
}

.af57-hf-vault-piece {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: var(--af57-glass);
  backdrop-filter: blur(14px);
  border: 1px solid var(--af57-glass-edge);
  transition: transform 0.35s var(--af57-spring), box-shadow 0.35s;
  animation: af57-hf-piece-in 0.5s calc(0.05s + var(--piece-i) * 0.04s) var(--af57-ease) both;
}

@keyframes af57-hf-piece-in {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: none; }
}

.af57-hf-vault-piece:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(4, 47, 47, 0.1);
}

.af57-hf-vault-piece--hero {
  grid-column: span 6;
  grid-row: span 2;
}

.af57-hf-vault-piece--wide {
  grid-column: span 6;
}

.af57-hf-vault-piece--hero .af57-hf-vault-thumb {
  aspect-ratio: 16 / 10;
}

.af57-hf-vault-thumb {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
}

.af57-hf-vault-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--af57-ease);
}

.af57-hf-vault-piece:hover .af57-hf-vault-thumb img {
  transform: scale(1.06);
}

.af57-hf-vault-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: var(--af57-coral);
  color: var(--on-dark);
  font-size: 0.55rem;
  font-weight: 800;
  text-transform: uppercase;
}

.af57-hf-vault-body {
  padding: 0.65rem 0.75rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}

.af57-hf-vault-body > span {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--af57-muted);
}

.af57-hf-vault-body h3 {
  margin: 0;
  font-family: var(--af57-display);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
}

.af57-hf-vault-body h3 a {
  color: var(--af57-ink);
  text-decoration: none;
}

.af57-hf-vault-body h3 a:hover { color: var(--af57-coral); }

.af57-hf-vault-body footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.35rem;
}

.af57-hf-vault-body footer strong {
  font-family: var(--af57-display);
  font-size: 0.95rem;
  color: var(--af57-teal);
}

.af57-hf-vault-body footer a {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--af57-coral);
  text-decoration: none;
}

/* ── Trust + marquee ── */
.af57-hf-trust-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.25rem;
  padding: 1.25rem;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(4, 47, 47, 0.96), rgba(11, 94, 94, 0.92));
  color: var(--on-dark);
}

.af57-hf-trust-lead h2 {
  margin: 0 0 0.55rem;
  font-family: var(--af57-display);
  font-size: var(--af57-fluid-lg);
  font-weight: 800;
  color: var(--on-dark);
}

.af57-hf-trust-lead p {
  margin: 0 0 1rem;
  font-size: var(--af57-fluid-sm);
  line-height: 1.65;
  color: rgba(250, 250, 248, 0.72);
}

.af57-hf-trust-lead .af57-hf-kicker {
  color: var(--af57-gold);
}

.af57-hf-trust-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.af57-hf-trust-cards li {
  padding: 0.75rem 0.85rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.af57-hf-trust-cards li span {
  display: block;
  font-family: var(--af57-display);
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--af57-coral);
  margin-bottom: 0.2rem;
}

.af57-hf-trust-cards li strong {
  display: block;
  font-size: 0.82rem;
  margin-bottom: 0.2rem;
}

.af57-hf-trust-cards li p {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.5;
  color: rgba(250, 250, 248, 0.65);
}

.af57-hf-marquee {
  overflow: hidden;
  margin-top: 0.85rem;
  padding: 0.55rem 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.af57-hf-marquee-track {
  display: flex;
  width: max-content;
  animation: af57-hf-marquee 28s linear infinite;
}

.af57-hf-marquee-track span {
  padding-right: 2rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250, 250, 248, 0.5);
  white-space: nowrap;
}

@keyframes af57-hf-marquee {
  to { transform: translateX(-25%); }
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */

@media (max-width: 1024px) {
  .af57-hf-open-grid {
    grid-template-columns: 1fr;
  }

  .af57-hf-cascade {
    height: 320px;
    margin-top: 1rem;
  }

  .af57-hf-hex-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .af57-hf-editorial {
    grid-template-columns: 1fr;
  }

  .af57-hf-vault-piece,
  .af57-hf-vault-piece--hero,
  .af57-hf-vault-piece--wide {
    grid-column: span 6;
    grid-row: span 1;
  }

  .af57-hf-trust-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .af57-hf-field {
    padding-inline: var(--space-container, 1rem);
    padding-block-start: 5.5rem;
  }

  .af57-hf-metrics {
    grid-template-columns: 1fr;
  }

  .af57-hf-brand {
    font-size: clamp(1.2rem, 6vw, 1.75rem);
  }

  .af57-hz-monolith {
    writing-mode: horizontal-tb;
    flex-direction: row;
    padding: 0.45rem 0.85rem;
  }

  .af57-hz-monolith-word {
    writing-mode: horizontal-tb;
    flex-direction: row;
    gap: 0.35rem;
  }

  .af57-hz-monolith-mark {
    transform: none;
  }

  .af57-hz-orbit {
    flex-direction: row;
    gap: 0.35rem;
  }

  .af57-hz-orb:nth-child(n) {
    transform: none;
  }

  .af57-hz-orb:nth-child(n):hover {
    transform: scale(1.08);
  }

  .af57-hz-orb-menu { display: grid; }

  .af57-hz-dock {
    width: calc(100vw - 1.5rem);
  }

  .af57-hz-dock-rail {
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
  }

  .af57-hz-dock-node {
    flex-shrink: 0;
  }

  .af57-hf-hex-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .af57-hf-editorial-lead {
    grid-template-columns: 1fr;
  }

  .af57-hf-vault-mosaic {
    grid-template-columns: 1fr 1fr;
  }

  .af57-hf-vault-piece,
  .af57-hf-vault-piece--hero,
  .af57-hf-vault-piece--wide {
    grid-column: span 1;
  }

  .af57-hf-trust-cards {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .af57-hf-reveal,
  .af57-hf-cascade-card,
  .af57-hf-hex-cell,
  .af57-hf-editorial-stream a,
  .af57-hf-vault-piece,
  .af57-hf-vault-panel,
  .af57-hf-marquee-track,
  .af57-hz-monolith-mark,
  .af57-hz-dock-glow,
  .af57-hf-live {
    animation: none;
    transition: none;
  }

  .af57-hf-reveal {
    opacity: 1;
    transform: none;
  }
}
