/**
 * Appily Fortyeight — Vault Atlas (company info)
 * Layout: dark map hero → floating stats → manifesto → promise cards → group track → dossier + desk → pings
 */

.page-company-atlas {
  --ax-ink: #0C1A14;
  --ax-forest: #163528;
  --ax-lime: #C6F542;
  --ax-mint: #3DDC97;
  --ax-fog: #EAF6EF;
  --ax-mist: #F3FBF6;
  --ax-muted: #5F7468;
  --ax-line: rgba(12, 26, 20, 0.1);
  --ax-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ax-shadow: 0 22px 48px rgba(12, 26, 20, 0.12);
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(198, 245, 66, 0.12), transparent 55%),
    radial-gradient(700px 380px at 0% 100%, rgba(61, 220, 151, 0.09), transparent 50%),
    var(--ax-mist);
}

.page-company-atlas .page-main { padding-top: 0; }
.a48-atlas { padding-bottom: 3.25rem; }

.a48-atlas-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s var(--ax-ease) calc(var(--a48-delay, 0) * .08s),
              transform .65s var(--ax-ease) calc(var(--a48-delay, 0) * .08s);
}
.a48-atlas-reveal.is-visible { opacity: 1; transform: none; }

/* ── Hero ── */
.a48-atlas-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: clamp(2.5rem, 5.5vw, 3.75rem) 0 clamp(3.5rem, 7vw, 4.5rem);
  background: var(--ax-ink);
}

.a48-atlas-hero-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 70% at 20% 30%, rgba(198, 245, 66, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 55% at 90% 80%, rgba(61, 220, 151, 0.16), transparent 50%),
    linear-gradient(145deg, #0C1A14, #163528 55%, #0F241C);
  animation: axGlow 14s ease-in-out infinite alternate;
}
@keyframes axGlow {
  to { filter: saturate(1.12) hue-rotate(-7deg); }
}

.a48-atlas-hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(198, 245, 66, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(198, 245, 66, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 20%, transparent 75%);
  animation: axGrid 20s linear infinite;
}
@keyframes axGrid {
  to { background-position: 48px 48px; }
}

.a48-atlas-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.35fr auto;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
}

.a48-atlas-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .45rem;
  margin-bottom: .85rem;
  font-size: .72rem;
  font-weight: 600;
}
.a48-atlas-crumb a {
  color: rgba(234, 246, 239, .7);
  text-decoration: none;
}
.a48-atlas-crumb a:hover { color: var(--ax-lime); }
.a48-atlas-crumb span { color: rgba(234, 246, 239, .4); }

.a48-atlas-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1rem;
}

.a48-atlas-chip {
  padding: .35rem .75rem;
  border-radius: 999px;
  border: 1px solid rgba(198, 245, 66, .45);
  background: rgba(198, 245, 66, .1);
  color: var(--ax-lime);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.a48-atlas-chip--soft {
  border-color: rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .75);
}

.a48-atlas-hero h1 {
  margin: 0 0 .75rem;
  font-family: var(--a48-font-serif, Georgia, serif);
  font-size: clamp(2.1rem, 5vw, 3.3rem);
  line-height: 1.06;
  letter-spacing: -.03em;
}
.a48-atlas-hero h1 span {
  background: linear-gradient(90deg, var(--ax-lime), var(--ax-mint));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.a48-atlas-lede {
  margin: 0;
  max-width: 44ch;
  color: rgba(234, 246, 239, .78);
  font-size: .98rem;
  line-height: 1.55;
}

.a48-atlas-badge {
  min-width: 140px;
  padding: 1.15rem 1.25rem;
  border-radius: 22px;
  text-align: center;
  background: rgba(12, 26, 20, .55);
  border: 1px solid rgba(198, 245, 66, .28);
  backdrop-filter: blur(6px);
}
.a48-atlas-badge span {
  display: block;
  font-size: .65rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(234, 246, 239, .6);
}
.a48-atlas-badge strong {
  display: block;
  margin: .35rem 0 .2rem;
  font-size: 1.8rem;
  color: var(--ax-lime);
  letter-spacing: .04em;
}
.a48-atlas-badge em {
  font-style: normal;
  font-size: .78rem;
  color: rgba(234, 246, 239, .7);
  letter-spacing: .08em;
}

/* Stage */
.a48-atlas-stage {
  padding: 0 0 0;
  margin-top: -2.25rem;
  position: relative;
  z-index: 2;
}

/* Stats floating over hero edge */
.a48-atlas-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin-bottom: 1.75rem;
}
.a48-atlas-stat {
  padding: 1.15rem 1.2rem;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--ax-line);
  box-shadow: var(--ax-shadow);
  text-align: center;
}
.a48-atlas-stat strong {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--ax-ink);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: .35rem;
}
.a48-atlas-stat span {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ax-muted);
}

.a48-atlas-section-head {
  margin-bottom: 1rem;
}
.a48-atlas-section-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}
.a48-atlas-section-head h2 {
  margin: .35rem 0 0;
  font-family: var(--a48-font-serif, Georgia, serif);
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  color: var(--ax-ink);
  letter-spacing: -.02em;
}
.a48-atlas-tag {
  display: inline-block;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ax-forest);
}
.a48-atlas-tag--lime { color: var(--ax-lime); }
.a48-atlas-link {
  color: var(--ax-forest);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.a48-atlas-link:hover { color: var(--ax-ink); }

/* Manifesto — full width, not beside rail */
.a48-atlas-manifesto {
  margin-bottom: 1.75rem;
  padding: clamp(1.35rem, 3vw, 1.85rem);
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--ax-line);
  box-shadow: var(--ax-shadow);
  position: relative;
  overflow: hidden;
}
.a48-atlas-manifesto::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, var(--ax-lime), var(--ax-mint));
}
.a48-atlas-manifesto-body {
  display: grid;
  gap: .85rem;
  max-width: 68ch;
}
.a48-atlas-lead {
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--ax-ink);
  font-weight: 500;
}
.a48-atlas-manifesto-body p {
  margin: 0;
  color: var(--ax-muted);
  font-size: .95rem;
  line-height: 1.6;
}

/* Promises */
.a48-atlas-promises { margin-bottom: 1.75rem; }
.a48-atlas-promise-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
}
.a48-atlas-promise-grid li {
  --promise-i: 0;
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  padding: 1.15rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--ax-line);
  box-shadow: var(--ax-shadow);
  opacity: 0;
  transform: translateY(12px);
  animation: axCardIn .55s var(--ax-ease) forwards;
  animation-delay: calc(var(--promise-i) * .07s);
}
@keyframes axCardIn {
  to { opacity: 1; transform: none; }
}
.a48-atlas-promise-num {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
  display: grid;
  place-content: center;
  flex-shrink: 0;
  background: var(--ax-ink);
  color: var(--ax-lime);
  font-size: .75rem;
  font-weight: 800;
}
.a48-atlas-promise-grid p {
  margin: 0;
  font-size: .95rem;
  color: var(--ax-ink);
  line-height: 1.45;
  font-weight: 600;
}

/* Groups track */
.a48-atlas-groups { margin-bottom: 1.75rem; }
.a48-atlas-groups-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 210px);
  gap: .75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: .35rem;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}
.a48-atlas-groups-track:active { cursor: grabbing; }
.a48-atlas-group {
  --col-i: 0;
  scroll-snap-align: start;
  display: grid;
  gap: .45rem;
  padding: 1.15rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--ax-line);
  text-decoration: none;
  color: var(--ax-ink);
  box-shadow: var(--ax-shadow);
  transition: transform .25s var(--ax-ease), border-color .2s ease;
  opacity: 0;
  transform: translateX(14px);
  animation: axSlideIn .5s var(--ax-ease) forwards;
  animation-delay: calc(var(--col-i) * .05s);
}
@keyframes axSlideIn {
  to { opacity: 1; transform: none; }
}
.a48-atlas-group:hover {
  transform: translateY(-3px);
  border-color: rgba(61, 220, 151, .5);
}
.a48-atlas-group-code {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  display: grid;
  place-content: center;
  background: var(--ax-ink);
  color: var(--ax-lime);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
}
.a48-atlas-group strong {
  font-size: .92rem;
  line-height: 1.3;
}
.a48-atlas-group > span:last-child {
  font-size: .78rem;
  font-weight: 700;
  color: var(--ax-muted);
}

/* Dossier */
.a48-atlas-dossier {
  display: grid;
  grid-template-columns: 1.35fr .9fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: stretch;
}

.a48-atlas-registry {
  padding: clamp(1.25rem, 2.5vw, 1.65rem);
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--ax-line);
  box-shadow: var(--ax-shadow);
}
.a48-atlas-reg-code {
  padding: .35rem .7rem;
  border-radius: 999px;
  background: var(--ax-fog);
  color: var(--ax-forest);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.a48-atlas-registry-grid {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}
.a48-atlas-reg-cell {
  padding: .85rem 1rem;
  border-radius: 14px;
  background: var(--ax-mist);
  border: 1px solid var(--ax-line);
}
.a48-atlas-reg-cell.is-wide { grid-column: 1 / -1; }
.a48-atlas-reg-cell dt {
  margin: 0 0 .25rem;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ax-muted);
}
.a48-atlas-reg-cell dd {
  margin: 0;
  font-size: .92rem;
  font-weight: 700;
  color: var(--ax-ink);
  word-break: break-word;
}

.a48-atlas-desk {
  position: relative;
  overflow: hidden;
  padding: clamp(1.25rem, 2.5vw, 1.65rem);
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(ellipse 70% 60% at 100% 0%, rgba(198, 245, 66, .16), transparent 50%),
    linear-gradient(155deg, #0C1A14, #163528 60%, #0F241C);
  box-shadow: var(--ax-shadow);
  display: flex;
  flex-direction: column;
}
.a48-atlas-desk h2 {
  margin: .4rem 0 1rem;
  font-family: var(--a48-font-serif, Georgia, serif);
  font-size: 1.4rem;
}
.a48-atlas-desk-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: .75rem;
  flex: 1;
}
.a48-atlas-desk-list li {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
}
.a48-atlas-desk-code {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  display: grid;
  place-content: center;
  flex-shrink: 0;
  background: rgba(198, 245, 66, .14);
  color: var(--ax-lime);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .06em;
}
.a48-atlas-desk-list strong {
  display: block;
  margin-bottom: .15rem;
  font-size: .88rem;
}
.a48-atlas-desk-list p {
  margin: 0;
  font-size: .84rem;
  color: rgba(234, 246, 239, .72);
  word-break: break-word;
}
.a48-atlas-desk-list a {
  color: var(--ax-lime);
  text-decoration: none;
}
.a48-atlas-desk-list a:hover { text-decoration: underline; }

/* Sell */
.a48-atlas-sell {
  margin-bottom: 1.5rem;
  padding: clamp(1.25rem, 2.5vw, 1.65rem);
  border-radius: 24px;
  background: linear-gradient(120deg, var(--ax-fog), #fff);
  border: 1px solid var(--ax-line);
}
.a48-atlas-sell p {
  margin: 0;
  max-width: 70ch;
  color: var(--ax-muted);
  font-size: .95rem;
  line-height: 1.6;
}

/* Buttons */
.a48-atlas-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: .85rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: .9rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s var(--ax-ease), background .2s ease;
}
.a48-atlas-btn:hover { transform: translateY(-1px); }
.a48-atlas-btn--lime {
  background: var(--ax-lime);
  color: var(--ax-ink);
  width: 100%;
  margin-top: auto;
}
.a48-atlas-btn--lime:hover { background: #d4ff5c; }

/* Pings */
.a48-atlas-pings {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .65rem;
}
.a48-atlas-ping {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .9rem 1rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--ax-line);
  text-decoration: none;
  color: var(--ax-ink);
  transition: transform .2s var(--ax-ease), border-color .2s ease, box-shadow .2s ease;
}
.a48-atlas-ping:hover {
  transform: translateY(-2px);
  border-color: rgba(61, 220, 151, .45);
  box-shadow: 0 12px 28px rgba(12, 26, 20, .08);
}
.a48-atlas-ping span {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
  display: grid;
  place-content: center;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .06em;
  background: var(--ax-ink);
  color: var(--ax-lime);
  flex-shrink: 0;
}
.a48-atlas-ping--lime {
  background: var(--ax-ink);
  border-color: var(--ax-ink);
  color: #fff;
}
.a48-atlas-ping--lime span {
  background: var(--ax-lime);
  color: var(--ax-ink);
}
.a48-atlas-ping strong { font-size: .9rem; }

/* Responsive */
@media (max-width: 960px) {
  .a48-atlas-hero-inner { grid-template-columns: 1fr; text-align: center; }
  .a48-atlas-hero-meta,
  .a48-atlas-crumb { justify-content: center; }
  .a48-atlas-lede { margin-inline: auto; }
  .a48-atlas-badge { margin-inline: auto; }
  .a48-atlas-dossier { grid-template-columns: 1fr; }
  .a48-atlas-promise-grid { grid-template-columns: 1fr; }
  .a48-atlas-pings { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .a48-atlas-stats { grid-template-columns: 1fr; }
  .a48-atlas-registry-grid { grid-template-columns: 1fr; }
  .a48-atlas-section-head--row { flex-direction: column; align-items: flex-start; }
  .a48-atlas-pings { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .a48-atlas-hero-glow,
  .a48-atlas-hero-grid { animation: none; }
  .a48-atlas-reveal,
  .a48-atlas-promise-grid li,
  .a48-atlas-group {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
  .a48-atlas-group:hover { transform: none; }
}
