/* Appily thirtyeight — Plot Atlas catalog */

.page-catalog-sprout {
  --lab-ink: #0E241C;
  --lab-deep: #063D36;
  --lab-teal: #0F6B5C;
  --lab-mint: #7ED9B8;
  --lab-chart: #D6FF4B;
  --lab-coral: #FF5C35;
  --lab-paper: #F5FAF7;
  --lab-mist: #E3EFE8;
  --lab-line: rgba(14, 36, 28, 0.12);
  --font-display: "Syne", "Avenir Next", sans-serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --a38-ink: var(--lab-ink);
  --a38-muted: #4A6358;
  font-family: var(--font-body);
  background:
    radial-gradient(ellipse 70% 35% at 75% 0%, rgba(126, 217, 184, 0.16), transparent 50%),
    linear-gradient(180deg, var(--lab-paper) 0%, #eef6f1 100%);
}

.page-catalog-sprout .page-main { padding-top: 0; }

.a38-atlas { padding-bottom: 3.5rem; }

/* ── Hero ── */
.a38-atlas-hero {
  position: relative;
  isolation: isolate;
  padding: 2.2rem 0 2.85rem;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(214, 255, 75, 0.07) 25%, transparent 25.5%) 0 0 / 36px 36px,
    linear-gradient(155deg, var(--lab-deep) 0%, #0a5248 48%, #0d6b5c 100%);
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
}

.a38-atlas-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.a38-atlas-orb {
  position: absolute;
  border-radius: 42% 58% 50% 50% / 48% 40% 60% 52%;
  filter: blur(44px);
  opacity: 0.42;
  animation: a38AtlasMorph 15s ease-in-out infinite;
}
.a38-atlas-orb--1 {
  width: 280px; height: 280px;
  top: -80px; right: 8%;
  background: rgba(214, 255, 75, 0.4);
}
.a38-atlas-orb--2 {
  width: 220px; height: 220px;
  bottom: -50px; left: 6%;
  background: rgba(255, 92, 53, 0.28);
  animation-delay: -6s;
}
@keyframes a38AtlasMorph {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-14px, 12px) scale(1.08); }
}

.a38-atlas-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 1.75rem;
  align-items: center;
}

.a38-atlas-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.95rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
}
.a38-atlas-crumb a {
  color: var(--lab-chart);
  text-decoration: none;
}
.a38-atlas-crumb a:hover { text-decoration: underline; }

.a38-atlas-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
  padding: 0.32rem 0.7rem 0.32rem 0.4rem;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lab-deep);
  background: var(--lab-chart);
  border-radius: 3px;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.18);
}
.a38-atlas-spark {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--lab-deep);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  animation: a38AtlasSpark 1.8s ease-in-out infinite;
}
@keyframes a38AtlasSpark {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(0.7) rotate(45deg); }
}

.a38-atlas-hero-copy h1 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 2.95rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.04em;
  max-width: 14ch;
}
.a38-atlas-hero-copy h1 span { color: var(--lab-chart); }

.a38-atlas-lede {
  margin: 0;
  max-width: 46ch;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

.a38-atlas-totals {
  justify-self: end;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  min-width: 220px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px 4px 12px 4px;
  backdrop-filter: blur(10px);
  box-shadow: 5px 5px 0 rgba(214, 255, 75, 0.35);
  animation: a38AtlasSettle 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes a38AtlasSettle {
  from { opacity: 0; transform: translateY(18px) rotate(2deg); }
  to { opacity: 1; transform: none; }
}
.a38-atlas-total {
  padding: 0.65rem 0.7rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}
.a38-atlas-total--main { grid-column: 1 / -1; }
.a38-atlas-total strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--lab-chart);
  line-height: 1.1;
}
.a38-atlas-total--main strong { font-size: 1.85rem; }
.a38-atlas-total span {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}
.a38-atlas-ref {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.55);
}

/* ── Body ── */
.a38-atlas-body {
  position: relative;
  z-index: 2;
  margin-top: -1.1rem;
  max-width: 1100px;
}

.a38-atlas-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
  padding: 1.1rem 1.2rem;
  background: #fff;
  border: 1px solid var(--lab-line);
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(6, 61, 54, 0.07);
}
.a38-atlas-tag {
  display: inline-block;
  margin-bottom: 0.3rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lab-deep);
  background: var(--lab-chart);
  border-radius: 3px;
}
.a38-atlas-toolbar h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--lab-ink);
}

.a38-atlas-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.15rem;
  border-radius: 4px;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.a38-atlas-btn--primary {
  color: var(--lab-deep);
  background: var(--lab-chart);
  box-shadow: 3px 3px 0 rgba(6, 61, 54, 0.25);
}
.a38-atlas-btn--primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 rgba(6, 61, 54, 0.25);
}

/* Grid */
.a38-atlas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.a38-atlas-panel {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--lab-line);
  border-radius: 4px 16px 4px 16px;
  box-shadow: 0 16px 36px rgba(6, 61, 54, 0.07);
  overflow: hidden;
  position: relative;
  animation: a38AtlasSettle 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--atlas-delay, 0s);
  transition: transform 0.25s, box-shadow 0.25s;
}
.a38-atlas-panel::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--lab-teal), var(--lab-chart), var(--lab-coral));
}
.a38-atlas-panel:hover {
  transform: translateY(-5px);
  box-shadow: 4px 4px 0 var(--lab-chart);
}

.a38-atlas-panel-head {
  padding: 1rem 1.05rem 0.65rem;
}
.a38-atlas-panel-num {
  display: inline-block;
  margin-bottom: 0.35rem;
  padding: 0.15rem 0.45rem;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lab-teal);
  background: var(--lab-mist);
  border-radius: 3px;
}
.a38-atlas-panel-head h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.a38-atlas-panel-head h3 a {
  color: var(--lab-ink);
  text-decoration: none;
}
.a38-atlas-panel-head h3 a:hover { color: var(--lab-teal); }
.a38-atlas-panel-count {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--a38-muted);
}

.a38-atlas-panel-media {
  position: relative;
  display: grid;
  place-items: center;
  margin: 0 1.05rem;
  aspect-ratio: 1.15 / 1;
  background:
    radial-gradient(circle at 70% 25%, rgba(214, 255, 75, 0.18), transparent 42%),
    var(--lab-mist);
  border: 1px solid var(--lab-line);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
}
.a38-atlas-panel-glow {
  position: absolute;
  width: 50%;
  height: 50%;
  border-radius: 50%;
  background: rgba(126, 217, 184, 0.28);
  filter: blur(28px);
  pointer-events: none;
}
.a38-atlas-panel-media img {
  position: relative;
  z-index: 1;
  width: 68%;
  height: 68%;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.a38-atlas-panel:hover .a38-atlas-panel-media img {
  transform: scale(1.08) rotate(-1deg);
}

.a38-atlas-panel-list {
  list-style: none;
  margin: 0.85rem 1.05rem 0.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}
.a38-atlas-panel-list li {
  position: relative;
  padding-left: 0.85rem;
  font-size: 0.8rem;
  line-height: 1.35;
}
.a38-atlas-panel-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.35rem;
  height: 0.35rem;
  background: var(--lab-chart);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}
.a38-atlas-panel-list a {
  color: var(--lab-ink);
  font-weight: 600;
  text-decoration: none;
}
.a38-atlas-panel-list a:hover {
  color: var(--lab-teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.a38-atlas-panel-foot {
  padding: 0.75rem 1.05rem 1.05rem;
  margin-top: auto;
}
.a38-atlas-panel-cta {
  display: inline-flex;
  align-items: center;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lab-deep);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  background: var(--lab-chart);
  border-radius: 4px;
  box-shadow: 2px 2px 0 rgba(6, 61, 54, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}
.a38-atlas-panel-cta:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 rgba(6, 61, 54, 0.2);
}

/* Foot */
.a38-atlas-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.3rem;
  background: linear-gradient(160deg, var(--lab-deep) 0%, #0a5248 100%);
  color: #fff;
  border-radius: 12px 4px 12px 4px;
  box-shadow: 5px 5px 0 var(--lab-chart);
}
.a38-atlas-foot-copy strong {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.a38-atlas-foot-copy p {
  margin: 0;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
  max-width: 42ch;
}

/* Responsive */
@media (max-width: 960px) {
  .a38-atlas-hero-grid { grid-template-columns: 1fr; }
  .a38-atlas-hero-copy h1 { max-width: none; }
  .a38-atlas-totals { justify-self: start; min-width: 0; width: 100%; max-width: 320px; }
  .a38-atlas-grid { grid-template-columns: 1fr 1fr; }
  .a38-atlas-hero { clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%); }
}

@media (max-width: 640px) {
  .a38-atlas-grid { grid-template-columns: 1fr; }
  .a38-atlas-toolbar { flex-direction: column; align-items: stretch; }
  .a38-atlas-toolbar .a38-atlas-btn { width: 100%; }
  .a38-atlas-foot { flex-direction: column; align-items: stretch; }
  .a38-atlas-foot .a38-atlas-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .a38-atlas-orb,
  .a38-atlas-spark,
  .a38-atlas-totals,
  .a38-atlas-panel {
    animation: none;
  }
  .a38-atlas-panel:hover .a38-atlas-panel-media img {
    transform: none;
  }
}
