/* A.Z TRADERS — storefront styles */

.page-company .page-main {
  --af57-co-syne: "Syne", var(--display);
  --af57-co-teal: #0B5E5E;
  --af57-co-coral: #FF5E3A;
  --af57-co-gold: #E8C547;
  --af57-co-glass: rgba(255, 255, 255, 0.78);
  --af57-co-glass-edge: rgba(255, 255, 255, 0.5);
  --af57-co-ink: #0a1818;
  --af57-co-muted: #5a7474;
  background:
    radial-gradient(ellipse 65% 50% at 0% 0%, rgba(11, 94, 94, 0.09), transparent 50%),
    radial-gradient(ellipse 50% 40% at 100% 15%, rgba(232, 197, 71, 0.07), transparent 45%),
    var(--linen);
  padding: 0 !important;
}

.af57-co-canvas {
  padding: clamp(1.25rem, 3vw, 2rem) var(--space-container) clamp(3rem, 7vw, 5rem);
  max-width: calc(1180px + var(--space-container) * 2);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

/* ── Reveal ── */
.af57-co-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease-smooth), transform 0.65s var(--ease-smooth);
}

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

/* ── Bento hero ── */
.af57-co-bento-hero {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr));
  grid-template-rows: auto auto;
  gap: 0.65rem;
}

.af57-co-bento-brand {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
  padding: clamp(1.35rem, 3vw, 2rem);
  border-radius: 28px;
  background: var(--af57-co-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--af57-co-glass-edge);
  box-shadow: 0 24px 56px rgba(4, 47, 47, 0.08);
}

.af57-co-eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--af57-co-coral);
}

.af57-co-bento-brand h1 {
  margin: 0 0 0.55rem;
  font-family: var(--af57-co-syne);
  font-size: clamp(1.85rem, 4.5vw, 2.85rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--af57-co-ink);
}

.af57-co-glow {
  background: linear-gradient(120deg, var(--af57-co-teal), var(--af57-co-coral) 55%, var(--af57-co-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(255, 94, 58, 0.25));
  animation: af57-co-glow-pulse 4s ease-in-out infinite;
}

@keyframes af57-co-glow-pulse {
  0%, 100% { filter: drop-shadow(0 0 16px rgba(255, 94, 58, 0.2)); }
  50% { filter: drop-shadow(0 0 28px rgba(232, 197, 71, 0.35)); }
}

.af57-co-bento-brand p {
  margin: 0;
  max-width: 48ch;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--af57-co-muted);
}

.af57-co-bento-stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.85);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s;
  animation-delay: calc(var(--cell-i, 0) * 0.06s);
}

.af57-co-bento-stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(11, 94, 94, 0.1);
}

.af57-co-bento-stat strong {
  font-family: var(--af57-co-syne);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  line-height: 1;
}

.af57-co-bento-stat span {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--af57-co-muted);
}

.af57-co-bento-stat--coral strong { color: var(--af57-co-coral); }
.af57-co-bento-stat--gold strong { color: var(--af57-co-gold); filter: brightness(0.85); }
.af57-co-bento-stat--teal strong { color: var(--af57-co-teal); }
.af57-co-bento-stat--lime strong { color: #3a7a3a; }

/* ── Split editorial ── */
.af57-co-editorial {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.65fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
}

.af57-co-gallery {
  position: sticky;
  top: calc(var(--dock-h) + 1rem);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.af57-co-gallery-stack {
  position: relative;
  height: clamp(280px, 38vw, 380px);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(11, 94, 94, 0.06), rgba(255, 94, 58, 0.04));
  border: 1px solid rgba(11, 94, 94, 0.1);
  overflow: hidden;
}

.af57-co-packet {
  position: absolute;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 12px 32px rgba(4, 47, 47, 0.12);
  animation: af57-co-float 6s ease-in-out infinite;
}

.af57-co-packet--a {
  width: 42%;
  height: 58%;
  top: 12%;
  left: 8%;
  background: linear-gradient(160deg, rgba(184, 233, 134, 0.5), rgba(11, 94, 94, 0.25));
  transform: rotate(-8deg);
}

.af57-co-packet--b {
  width: 38%;
  height: 52%;
  top: 28%;
  right: 10%;
  background: linear-gradient(160deg, rgba(232, 197, 71, 0.45), rgba(255, 94, 58, 0.25));
  transform: rotate(6deg);
  animation-delay: -2s;
}

.af57-co-packet--c {
  width: 34%;
  height: 46%;
  bottom: 8%;
  left: 28%;
  background: linear-gradient(160deg, rgba(11, 94, 94, 0.35), rgba(184, 233, 134, 0.3));
  transform: rotate(-3deg);
  animation-delay: -4s;
}

@keyframes af57-co-float {
  0%, 100% { transform: translateY(0) rotate(var(--rot, -8deg)); }
  50% { transform: translateY(-8px) rotate(calc(var(--rot, -8deg) + 2deg)); }
}

.af57-co-packet--a { --rot: -8deg; }
.af57-co-packet--b { --rot: 6deg; }
.af57-co-packet--c { --rot: -3deg; }

.af57-co-gallery-seal {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.af57-co-gallery-ring {
  position: absolute;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 94, 58, 0.35);
  animation: af57-co-ring-spin 18s linear infinite;
}

@keyframes af57-co-ring-spin {
  to { transform: rotate(360deg); }
}

.af57-co-gallery-core {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--af57-co-gold), var(--af57-co-coral));
  font-family: var(--af57-co-syne);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--meridian-deep);
  box-shadow: 0 12px 36px rgba(255, 94, 58, 0.35);
}

.af57-co-gallery-caption {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--af57-co-muted);
  text-align: center;
}

.af57-co-scroll {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

/* ── Section heads ── */
.af57-co-section-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.af57-co-section-num {
  flex-shrink: 0;
  font-family: var(--af57-co-syne);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--af57-co-coral);
  padding-top: 0.2rem;
}

.af57-co-section-head h2 {
  margin: 0;
  font-family: var(--af57-co-syne);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--af57-co-teal);
  letter-spacing: -0.02em;
}

.af57-co-section-head p {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: var(--af57-co-muted);
}

/* ── Story ── */
.af57-co-story {
  padding: 1.15rem 1.25rem;
  border-radius: 24px;
  background: var(--af57-co-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--af57-co-glass-edge);
}

.af57-co-prose {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--af57-co-ink);
}

.af57-co-benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.af57-co-benefits li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(11, 94, 94, 0.1);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--af57-co-ink);
  animation: af57-co-rise 0.45s calc(0.1s + var(--b-i, 0) * 0.06s) var(--ease-smooth) both;
}

.af57-co-benefits li em {
  font-style: normal;
  font-family: var(--af57-co-syne);
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--af57-co-coral);
}

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

/* ── Timeline slider ── */
.af57-co-timeline-wrap {
  position: relative;
  padding: 1.15rem 1.25rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.85);
}

.af57-co-timeline-controls {
  position: absolute;
  top: 1.15rem;
  right: 1.25rem;
  display: flex;
  gap: 0.35rem;
}

.af57-co-timeline-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: var(--af57-co-teal);
  color: var(--on-dark);
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s;
}

.af57-co-timeline-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px var(--meridian-glow);
}

.af57-co-timeline {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.5rem 0 0.25rem;
  margin: 0 -0.25rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(11, 94, 94, 0.25) transparent;
}

.af57-co-timeline::-webkit-scrollbar {
  height: 5px;
}

.af57-co-timeline::-webkit-scrollbar-thumb {
  background: rgba(11, 94, 94, 0.25);
  border-radius: var(--radius-full);
}

.af57-co-timeline-card {
  flex: 0 0 min(260px, 78vw);
  scroll-snap-align: start;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: var(--af57-co-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--af57-co-glass-edge);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s;
  animation: af57-co-rise 0.5s calc(0.15s + var(--event-i, 0) * 0.07s) var(--ease-smooth) both;
}

.af57-co-timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(11, 94, 94, 0.1);
}

.af57-co-timeline-card time {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--af57-co-syne);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--af57-co-coral);
}

.af57-co-timeline-card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--af57-co-syne);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--af57-co-ink);
}

.af57-co-timeline-card p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--af57-co-muted);
}

/* ── Category rail ── */
.af57-co-categories {
  padding: 1.15rem 1.25rem;
  border-radius: 24px;
  background: var(--af57-co-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--af57-co-glass-edge);
}

.af57-co-cat-rail {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 0.35rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.af57-co-cat-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(11, 94, 94, 0.12);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--af57-co-teal);
  scroll-snap-align: start;
  transition: transform 0.3s var(--ease-spring), border-color 0.3s, box-shadow 0.3s;
}

.af57-co-cat-chip span {
  font-family: var(--af57-co-syne);
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--af57-co-coral);
}

.af57-co-cat-chip:hover {
  transform: translateY(-2px);
  border-color: var(--af57-co-coral);
  box-shadow: 0 8px 24px rgba(255, 94, 58, 0.12);
  color: var(--af57-co-teal);
}

/* ── Legal ── */
.af57-co-legal {
  padding: 1.15rem 1.25rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.85);
}

.af57-co-legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.af57-co-legal-nav button {
  padding: 0.5rem 0.85rem;
  border: 1px solid rgba(11, 94, 94, 0.12);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.5);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--af57-co-muted);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.af57-co-legal-nav button.is-active {
  background: var(--af57-co-teal);
  border-color: var(--af57-co-teal);
  color: var(--on-dark);
  box-shadow: 0 6px 20px var(--meridian-glow);
}

.af57-co-legal-panel {
  animation: af57-co-panel-in 0.35s var(--ease-smooth) both;
}

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

.af57-co-dl {
  display: grid;
  gap: 0.65rem;
  margin: 0;
}

.af57-co-dl > div {
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.af57-co-dl dt {
  margin: 0 0 0.12rem;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--af57-co-muted);
}

.af57-co-dl dd {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--af57-co-ink);
  word-break: break-word;
}

.af57-co-dl dd a {
  color: var(--af57-co-teal);
}

.af57-co-dl-cols {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.af57-co-address {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.8);
  margin-bottom: 0.65rem;
}

.af57-co-address:last-child {
  margin-bottom: 0;
}

.af57-co-address h3 {
  margin: 0 0 0.35rem;
  font-family: var(--af57-co-syne);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--af57-co-teal);
}

.af57-co-address p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--af57-co-ink);
}

/* ── Related links ── */
.af57-co-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}

.af57-co-link {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  background: var(--af57-co-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--af57-co-glass-edge);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}

.af57-co-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(11, 94, 94, 0.1);
  color: inherit;
}

.af57-co-link > span {
  font-size: 1rem;
  color: var(--af57-co-coral);
}

.af57-co-link strong {
  font-family: var(--af57-co-syne);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--af57-co-ink);
}

.af57-co-link em {
  font-style: normal;
  font-size: 0.65rem;
  color: var(--af57-co-muted);
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .af57-co-bento-hero {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .af57-co-bento-brand {
    grid-column: 1 / -1;
    grid-row: auto;
  }

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

  .af57-co-gallery {
    position: relative;
    top: auto;
  }

  .af57-co-gallery-stack {
    height: 240px;
  }

  .af57-co-timeline-controls {
    position: static;
    justify-content: flex-end;
    margin-bottom: 0.5rem;
  }

  .af57-co-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .af57-co-bento-hero {
    grid-template-columns: 1fr 1fr;
  }

  .af57-co-bento-stat {
    padding: 0.75rem 0.85rem;
  }
}

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

  .af57-co-glow,
  .af57-co-packet,
  .af57-co-gallery-ring,
  .af57-co-benefits li,
  .af57-co-timeline-card,
  .af57-co-legal-panel {
    animation: none;
  }
}
