/* Company — Forge Atlas (sticky gallery + scroll editorial + timeline slider) */

.page-company-forge .page-main {
  padding-top: 0;
  background: #f0ede6;
}

/* ── Ribbon ── */
.a55-forge-ribbon {
  padding: clamp(16px, 2.5vw, 22px) 0;
  background: linear-gradient(120deg, #1a2f4a 0%, #3d2817 55%, #5f3f22 100%);
  color: #f4efe4;
}

.a55-forge-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.88);
}

.a55-forge-crumb a {
  color: rgba(244, 239, 228, 0.88);
  text-decoration: none;
}

.a55-forge-crumb a:hover { color: #fff; }

.a55-forge-crumb [aria-current="page"] { color: #fff; }

.a55-forge-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 239, 228, 0.75);
}

.a55-forge-kicker span {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: rgba(31, 107, 74, 0.85);
  color: #fff;
  font-size: 0.6rem;
}

/* ── Split editorial ── */
.a55-forge-stage {
  padding: clamp(24px, 4vw, 40px) 0 clamp(56px, 8vw, 80px);
}

.a55-forge-split {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.25fr);
  gap: clamp(24px, 4vw, 40px);
  align-items: start;
}

/* Sticky gallery */
.a55-forge-gallery {
  min-width: 0;
}

.a55-forge-gallery-float {
  position: sticky;
  top: clamp(76px, 10vh, 96px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.a55-forge-gallery-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  overflow: clip;
  background: #1a2f4a;
  box-shadow: 0 24px 60px rgba(26, 47, 36, 0.18);
}

.a55-forge-gallery-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 25%, rgba(134, 239, 172, 0.35), transparent 45%),
    radial-gradient(circle at 75% 70%, rgba(147, 197, 253, 0.25), transparent 50%),
    linear-gradient(160deg, #0f2744, #1f6b4a 60%, #5f3f22);
  animation: a55-forge-mesh 12s ease-in-out infinite alternate;
}

@keyframes a55-forge-mesh {
  from { filter: hue-rotate(0deg) brightness(1); }
  to { filter: hue-rotate(12deg) brightness(1.08); }
}

.a55-forge-gallery-ring {
  position: absolute;
  top: 12%;
  right: 10%;
  width: 80px;
  height: 80px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  animation: a55-forge-ring 16s linear infinite;
}

.a55-forge-gallery-ring::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 50%;
}

@keyframes a55-forge-ring {
  to { transform: rotate(360deg); }
}

.a55-forge-gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: clamp(18px, 3vw, 24px);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  color: #f4efe4;
}

.a55-forge-gallery-caption p {
  margin: 0 0 4px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 239, 228, 0.65);
}

.a55-forge-gallery-caption strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}

.a55-forge-gallery-caption span {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(244, 239, 228, 0.78);
}

.a55-forge-gallery-stats {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 10px;
  margin: 0;
}

.a55-forge-gallery-stat {
  padding: 14px;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-xs);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.a55-forge-gallery-stat:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.a55-forge-gallery-stat dt {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.a55-forge-gallery-stat dd {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--blueprint);
}

.a55-forge-gallery-stat-main dd {
  font-size: 1.8rem;
}

.a55-forge-gallery-stat > span {
  font-size: 0.68rem;
  color: var(--graphite);
}

/* ── Scroll column ── */
.a55-forge-scroll {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 40px);
}

.a55-forge-hero h1 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.a55-forge-hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--blueprint), var(--success), var(--kraft-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 40px rgba(31, 107, 74, 0.15);
  animation: a55-forge-glow 4s ease-in-out infinite alternate;
}

@keyframes a55-forge-glow {
  from { filter: brightness(1); }
  to { filter: brightness(1.15); }
}

.a55-forge-tagline {
  margin: 0;
  max-width: 48ch;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--graphite);
}

/* Bento milestones */
.a55-forge-bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.a55-forge-bento-cell {
  padding: 16px 18px;
  border-radius: var(--radius-xl);
  background: var(--paper);
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: var(--shadow-xs);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.25s ease;
}

.a55-forge-bento-cell.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.a55-forge-bento-cell:hover {
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.a55-forge-bento-wide {
  grid-column: 1 / -1;
}

.a55-forge-bento-cell > p {
  margin: 0 0 6px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.a55-forge-bento-cell strong,
.a55-forge-bento-cell > div {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink);
}

.a55-forge-bento-cell strong {
  font-weight: 800;
  word-break: break-word;
}

/* Perks */
.a55-forge-perks h2 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
}

.a55-forge-perks ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.a55-forge-perks li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: rgba(31, 107, 74, 0.05);
  border: 1px solid rgba(31, 107, 74, 0.12);
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  transition-delay: calc(var(--i, 0) * 0.08s);
}

.a55-forge-perks li.is-revealed {
  opacity: 1;
  transform: translateX(0);
}

.a55-forge-perk-num {
  flex-shrink: 0;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--success);
}

.a55-forge-perks li > span:last-child {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink);
}

/* Section heads */
.a55-forge-section-head h2 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 800;
  color: var(--ink);
}

.a55-forge-section-head p {
  margin: 0 0 16px;
  font-size: 0.86rem;
  color: var(--graphite);
}

/* Timeline slider */
.a55-forge-timeline-wrap {
  position: relative;
}

.a55-forge-timeline-scroller {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.a55-forge-timeline {
  display: flex;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 4px 2px 8px;
  min-width: min-content;
}

.a55-forge-timeline-event {
  flex: 0 0 min(280px, 78vw);
  scroll-snap-align: start;
  padding: clamp(18px, 2.5vw, 22px);
  border-radius: var(--radius-xl);
  background: var(--paper);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-xs);
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: opacity 0.45s ease, transform 0.45s ease, box-shadow 0.25s ease;
  transition-delay: calc(var(--ti, 0) * 0.1s);
}

.a55-forge-timeline-event.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.a55-forge-timeline-event:hover {
  box-shadow: 0 14px 36px rgba(10, 61, 98, 0.1);
  border-color: rgba(10, 61, 98, 0.14);
}

.a55-forge-timeline-year {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blueprint);
  background: rgba(10, 61, 98, 0.08);
}

.a55-forge-timeline-event strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
  color: var(--ink);
}

.a55-forge-timeline-event p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--graphite);
}

.a55-forge-timeline-nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.a55-forge-timeline-btn {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 50%;
  background: var(--paper);
  font-size: 1rem;
  color: var(--blueprint);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.a55-forge-timeline-btn:hover {
  background: var(--blueprint);
  color: #fff;
  transform: scale(1.05);
}

/* Category lanes bento */
.a55-forge-lanes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.a55-forge-lane {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid rgba(15, 23, 42, 0.08);
  text-decoration: none;
  overflow: clip;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.a55-forge-lane:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(10, 61, 98, 0.1);
  border-color: rgba(10, 61, 98, 0.18);
}

.a55-forge-lane-wide {
  grid-column: span 2;
}

.a55-forge-lane-glow {
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 100%;
  background: radial-gradient(circle, rgba(31, 107, 74, 0.12), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.a55-forge-lane:hover .a55-forge-lane-glow {
  opacity: 1;
}

.a55-forge-lane strong {
  position: relative;
  font-size: 0.92rem;
  color: var(--ink);
}

.a55-forge-lane small {
  position: relative;
  font-size: 0.76rem;
  color: var(--muted);
}

/* Legal folio */
.a55-forge-legal-wrap {
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, #1a2f4a, #0f2744);
  overflow: clip;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
}

.a55-forge-legal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 14px 14px 0;
}

.a55-forge-legal-tabs button {
  padding: 10px 16px;
  border: 0;
  border-radius: var(--radius-full) var(--radius-full) 0 0;
  background: rgba(255, 255, 255, 0.06);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: rgba(244, 239, 228, 0.6);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.a55-forge-legal-tabs button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.a55-forge-legal-tabs button.is-active,
.a55-forge-legal-tabs button[aria-selected="true"] {
  color: var(--ink);
  background: #f8fafc;
}

.a55-forge-legal-panels {
  background: #f8fafc;
  min-height: 200px;
}

.a55-forge-legal-panel {
  padding: clamp(18px, 2.5vw, 24px);
  animation: a55-forge-panel-in 0.35s ease;
}

.a55-forge-legal-panel[hidden] {
  display: none;
}

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

.a55-forge-dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  margin: 0;
}

.a55-forge-dl div {
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(15, 23, 42, 0.1);
}

.a55-forge-dl dt {
  margin: 0 0 4px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.a55-forge-dl dd {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  word-break: break-word;
}

.a55-forge-dl a {
  color: var(--blueprint);
}

.a55-forge-places {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.a55-forge-place {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.a55-forge-place-pin {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(10, 61, 98, 0.08);
  font-size: 1.1rem;
  color: var(--blueprint);
}

.a55-forge-place h3 {
  margin: 0 0 6px;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--ink);
}

.a55-forge-place p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--graphite);
}

/* CTA row */
.a55-forge-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.a55-forge-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, var(--blueprint), var(--blueprint-deep));
  box-shadow: 0 10px 28px rgba(10, 61, 98, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.a55-forge-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(10, 61, 98, 0.32);
  color: #fff;
}

.a55-forge-cta-ghost {
  color: var(--blueprint);
  background: var(--paper);
  border: 1px solid rgba(10, 61, 98, 0.14);
  box-shadow: var(--shadow-xs);
}

.a55-forge-cta-ghost:hover {
  background: rgba(10, 61, 98, 0.06);
  color: var(--blueprint);
}

/* Entrance */
.a55-forge-animate {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.a55-forge-animate.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .a55-forge-split {
    grid-template-columns: 1fr;
  }

  .a55-forge-gallery-float {
    position: relative;
    top: auto;
  }

  .a55-forge-gallery-frame {
    aspect-ratio: 16 / 9;
  }

  .a55-forge-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .a55-forge-lanes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .a55-forge-lane-wide {
    grid-column: span 2;
  }
}

@media (max-width: 560px) {
  .a55-forge-bento,
  .a55-forge-dl,
  .a55-forge-lanes-grid,
  .a55-forge-gallery-stats {
    grid-template-columns: 1fr;
  }

  .a55-forge-bento-wide,
  .a55-forge-lane-wide {
    grid-column: auto;
  }

  .a55-forge-cta-row {
    flex-direction: column;
  }

  .a55-forge-cta {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .a55-forge-gallery-mesh,
  .a55-forge-gallery-ring,
  .a55-forge-hero h1 em,
  .a55-forge-animate,
  .a55-forge-bento-cell,
  .a55-forge-perks li,
  .a55-forge-timeline-event,
  .a55-forge-legal-panel {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }
}
