/* Appily Seventysix — Foundry Charter company info (unique page skin) */

.page-company.foundry-charter {
  --fc-ink: #0c1a2a;
  --fc-fog: #eef2f6;
  --fc-copper: #b87333;
  --fc-copper-deep: #8f5a24;
  --fc-steel: #4a6280;
  --fc-slate: #5c6b7a;
  --fc-line: rgba(12, 26, 42, 0.12);
  --fc-display: "Cormorant Garamond", Georgia, serif;
  --fc-body: "Barlow", system-ui, sans-serif;
  background:
    radial-gradient(ellipse 55% 40% at 100% 0%, rgba(184, 115, 51, 0.14), transparent 55%),
    radial-gradient(ellipse 45% 35% at 0% 40%, rgba(74, 98, 128, 0.1), transparent 50%),
    linear-gradient(165deg, #f4f6f9 0%, #e8edf3 100%);
  color: var(--fc-ink);
  font-family: var(--fc-body);
}

.page-company.foundry-charter .page-main {
  padding-top: 0.35rem;
}

.fc-desk {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  padding: 1.15rem 1.2rem 4rem;
  overflow: clip;
}

.fc-slag {
  position: absolute;
  inset: -5% 25% auto -10%;
  height: 240px;
  background: conic-gradient(from 140deg, rgba(184, 115, 51, 0.2), transparent 40%, rgba(74, 98, 128, 0.15), transparent 75%);
  filter: blur(48px);
  pointer-events: none;
  animation: fc-drift 16s ease-in-out infinite alternate;
}

.fc-sparks {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(12, 26, 42, 0.08) 1px, transparent 0);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000, transparent 70%);
  pointer-events: none;
}

@keyframes fc-drift {
  from { transform: translate(0, 0); }
  to { transform: translate(4%, 8%); }
}

/* Mast */
.fc-mast {
  position: relative;
  z-index: 1;
  margin-bottom: 1.75rem;
}

.fc-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fc-copper);
}

.fc-mast h1 {
  margin: 0;
  font-family: var(--fc-display);
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.fc-lede {
  margin: 0.75rem 0 0;
  max-width: 42ch;
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--fc-slate);
}

.fc-crumb {
  margin-top: 0.85rem;
  display: flex;
  gap: 0.45rem;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fc-slate);
}

.fc-crumb a {
  color: var(--fc-ink);
  text-decoration: none;
  border-bottom: 1.5px solid var(--fc-copper);
}

/* Manifesto */
.fc-manifesto {
  position: relative;
  z-index: 1;
  margin: 0 0 1.75rem;
  padding: 1.5rem 1.4rem 1.6rem;
  background: var(--fc-ink);
  color: #fff;
  border: 0;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

.fc-manifesto-mark {
  margin: 0 0 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fc-copper);
}

.fc-manifesto-text {
  margin: 0;
  font-family: var(--fc-display);
  font-size: clamp(1.45rem, 3.2vw, 2.1rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 28ch;
}

/* Metrics */
.fc-metrics {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin-bottom: 2.25rem;
}

.fc-metric {
  padding: 1rem 0.9rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1.5px solid var(--fc-line);
  text-align: center;
}

.fc-metric strong {
  display: block;
  font-family: var(--fc-display);
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1;
  color: var(--fc-copper-deep);
}

.fc-metric span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fc-slate);
}

.fc-section-head {
  margin-bottom: 1.1rem;
}

.fc-section-head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
}

.fc-section-head h2 {
  margin: 0;
  font-family: var(--fc-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.fc-section-head p {
  margin: 0.35rem 0 0;
  max-width: 42ch;
  color: var(--fc-slate);
  font-size: 0.98rem;
  line-height: 1.4;
}

/* History rail */
.fc-history {
  position: relative;
  z-index: 1;
  margin-bottom: 2.5rem;
}

.fc-rail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  position: relative;
}

.fc-rail::before {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  top: 1.15rem;
  height: 2px;
  background: linear-gradient(90deg, var(--fc-copper), var(--fc-steel));
  opacity: 0.45;
}

.fc-rail-beat {
  position: relative;
  padding: 0 0.15rem;
  opacity: 0;
  animation: fc-rise 0.5s ease forwards;
  animation-delay: calc(var(--fc-i, 0) * 0.08s);
}

@keyframes fc-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.fc-rail-when {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.28rem 0.55rem;
  background: var(--fc-ink);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.fc-rail-beat strong {
  display: block;
  font-family: var(--fc-display);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.35rem;
}

.fc-rail-beat p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--fc-slate);
}

/* Values facets */
.fc-values {
  position: relative;
  z-index: 1;
  margin-bottom: 2.5rem;
}

.fc-facets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.fc-facet {
  position: relative;
  padding: 1.25rem 1.2rem 1.3rem 1.35rem;
  background: #fff;
  border: 1.5px solid var(--fc-ink);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  opacity: 0;
  animation: fc-rise 0.5s ease forwards;
  animation-delay: calc(0.15s + var(--fc-i, 0) * 0.07s);
}

.fc-facet:hover {
  transform: translateY(-4px);
  box-shadow: 8px 8px 0 rgba(184, 115, 51, 0.2);
}

.fc-facet-n {
  display: block;
  font-family: var(--fc-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--fc-copper);
  line-height: 1;
  margin-bottom: 0.45rem;
}

.fc-facet strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.fc-facet > span:last-child {
  font-size: 0.88rem;
  color: var(--fc-slate);
  line-height: 1.35;
}

/* Story + aisles */
.fc-story {
  position: relative;
  z-index: 1;
  margin-bottom: 2.5rem;
}

.fc-story-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 1.25rem;
  align-items: start;
}

.fc-story-copy {
  padding: 1.25rem 1.3rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1.5px solid var(--fc-line);
}

.fc-story-copy p {
  margin: 0 0 0.9rem;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--fc-ink);
}

.fc-story-copy p:last-child {
  margin-bottom: 0;
}

.fc-aisles {
  display: grid;
  gap: 0.4rem;
}

.fc-aisles-label {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fc-slate);
}

.fc-aisle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  background: var(--fc-ink);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: background 0.2s, transform 0.2s;
  opacity: 0;
  animation: fc-rise 0.45s ease forwards;
  animation-delay: calc(0.2s + var(--fc-i, 0) * 0.05s);
}

.fc-aisle:hover {
  background: var(--fc-copper-deep);
  transform: translateX(4px);
}

.fc-aisle em {
  font-style: normal;
  color: var(--fc-copper);
}

/* Dossier */
.fc-dossier {
  position: relative;
  z-index: 1;
  margin-bottom: 1.75rem;
  padding: 1.25rem 1.2rem 1.35rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid var(--fc-ink);
}

.fc-dossier-toggle {
  padding: 0.45rem 0.8rem;
  border: 1.5px solid var(--fc-ink);
  background: transparent;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.fc-dossier-toggle:hover {
  background: var(--fc-ink);
  color: #fff;
}

.fc-dossier-body[hidden] {
  display: none !important;
}

.fc-dossier-list {
  margin: 0.85rem 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.fc-dossier-list div {
  padding: 0.7rem 0.75rem;
  background: var(--fc-fog);
  border-left: 3px solid var(--fc-copper);
}

.fc-dossier-wide {
  grid-column: 1 / -1;
}

.fc-dossier-list dt {
  margin: 0;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fc-slate);
}

.fc-dossier-list dd {
  margin: 0.25rem 0 0;
  font-weight: 600;
  font-size: 0.92rem;
  word-break: break-word;
}

/* Reach + actions */
.fc-reach {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.fc-reach-item {
  padding: 0.9rem 1rem;
  background: var(--fc-ink);
  color: #fff;
}

.fc-reach-item span {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fc-copper);
  margin-bottom: 0.3rem;
}

.fc-reach-item a,
.fc-reach-item strong {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  word-break: break-word;
}

.fc-reach-item a:hover {
  color: var(--fc-copper);
}

.fc-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.fc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.15rem;
  border: 1.5px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.fc-btn:hover {
  transform: translateY(-2px);
}

.fc-btn--copper {
  background: var(--fc-copper);
  color: #fff;
}

.fc-btn--copper:hover {
  background: var(--fc-copper-deep);
}

.fc-btn--ghost {
  background: transparent;
  color: var(--fc-ink);
  border-color: var(--fc-ink);
}

@media (max-width: 860px) {
  .fc-metrics,
  .fc-rail {
    grid-template-columns: 1fr 1fr;
  }

  .fc-rail::before {
    display: none;
  }

  .fc-story-grid,
  .fc-reach {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .fc-metrics,
  .fc-facets,
  .fc-dossier-list {
    grid-template-columns: 1fr;
  }

  .fc-rail {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fc-slag,
  .fc-rail-beat,
  .fc-facet,
  .fc-aisle {
    animation: none !important;
  }

  .fc-rail-beat,
  .fc-facet,
  .fc-aisle {
    opacity: 1;
  }
}
