/**
 * Foundry Charter — company / about instrument
 * Unique to company-info.php · Instrument Serif + Schibsted Grotesk
 * Independent of a36-topo / map / cairn / compass patterns
 */

:root {
  --fc-paper: #eceef2;
  --fc-panel: #f8f9fb;
  --fc-ink: #16181d;
  --fc-mute: #5c6573;
  --fc-red: #c1121f;
  --fc-brass: #a67c2d;
  --fc-line: rgba(22, 24, 29, 0.1);
  --fc-display: "Instrument Serif", Georgia, serif;
  --fc-body: "Schibsted Grotesk", "Segoe UI", sans-serif;
  --fc-mono: "Martian Mono", ui-monospace, monospace;
  --fc-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fc-max: 1120px;
}

*,
*::before,
*::after { box-sizing: border-box; }

body.fc-about {
  margin: 0;
  min-height: 100vh;
  font-family: var(--fc-body);
  color: var(--fc-ink);
  background: var(--fc-paper);
  -webkit-font-smoothing: antialiased;
}

body.fc-about a { color: inherit; text-decoration: none; }
body.fc-about button { font: inherit; color: inherit; }
body.fc-about .fc-root button { cursor: pointer; border: none; background: none; padding: 0; }

.fc-root {
  position: relative;
  min-height: 100vh;
  overflow-x: visible;
  padding-bottom: calc(var(--kb-keybed-h, 132px) + 2.5rem);
}

body.fc-about .a77-bare-main {
  display: block;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

.fc-press {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 50% 35% at 0% 0%, rgba(193, 18, 31, 0.1), transparent 55%),
    radial-gradient(ellipse 45% 30% at 100% 20%, rgba(166, 124, 45, 0.12), transparent 50%),
    linear-gradient(175deg, #e2e5eb 0%, var(--fc-paper) 45%, #e8ebf0 100%);
}

.fc-press::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(22, 24, 29, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 24, 29, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, #000, transparent 70%);
}

/* Mast */
.fc-mast {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--fc-max);
  margin: 0 auto;
  padding: clamp(1.2rem, 3.5vw, 2.2rem) clamp(1.1rem, 4vw, 2rem) 0;
}

.fc-brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.fc-brand-mark {
  font-family: var(--fc-mono);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fc-red);
}

.fc-brand strong {
  font-family: var(--fc-display);
  font-size: clamp(1.55rem, 4.2vw, 2.55rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
  overflow-wrap: anywhere;
  max-width: 14ch;
}

.fc-brand em {
  font-style: italic;
  font-family: var(--fc-display);
  font-size: 1rem;
  color: var(--fc-mute);
}

.fc-crumb {
  font-size: 0.85rem;
  color: var(--fc-mute);
}

.fc-crumb a:hover { color: var(--fc-red); }

/* Hero */
.fc-hero {
  position: relative;
  z-index: 2;
  max-width: var(--fc-max);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.75rem) clamp(1.1rem, 4vw, 2rem) 1.25rem;
}

.fc-hero h1 {
  margin: 0 0 0.65rem;
  font-family: var(--fc-display);
  font-size: clamp(1.75rem, 3.5vw, 2.45rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.1;
  max-width: 16ch;
}

.fc-hero p {
  margin: 0;
  max-width: 42ch;
  color: var(--fc-mute);
  line-height: 1.55;
  font-size: 1.05rem;
}

/* Stats as type gauges — not topo markers */
.fc-gauges {
  position: relative;
  z-index: 2;
  max-width: var(--fc-max);
  margin: 0 auto 1.5rem;
  padding: 0 clamp(1.1rem, 4vw, 2rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.fc-gauge {
  padding: 1.15rem 1.2rem;
  background: var(--fc-ink);
  color: #f3f4f6;
  border-radius: 4px;
}

.fc-gauge strong {
  display: block;
  font-family: var(--fc-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #fff;
  margin-bottom: 0.35rem;
}

.fc-gauge span {
  font-family: var(--fc-mono);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(243, 244, 246, 0.55);
}

/* Mission chase — letterpress frame */
.fc-chase {
  position: relative;
  z-index: 2;
  max-width: var(--fc-max);
  margin: 0 auto 1.75rem;
  padding: 0 clamp(1.1rem, 4vw, 2rem);
}

.fc-chase-frame {
  position: relative;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--fc-panel);
  border: 2px solid var(--fc-ink);
}

.fc-chase-frame::before,
.fc-chase-frame::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid var(--fc-red);
}

.fc-chase-frame::before {
  top: -2px;
  left: -2px;
  border-right: none;
  border-bottom: none;
}

.fc-chase-frame::after {
  bottom: -2px;
  right: -2px;
  border-left: none;
  border-top: none;
}

.fc-chase-kicker {
  margin: 0 0 0.75rem;
  font-family: var(--fc-mono);
  font-size: 0.55rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fc-red);
}

.fc-chase blockquote {
  margin: 0;
  font-family: var(--fc-display);
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.25;
  max-width: 28ch;
}

.fc-chase cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-family: var(--fc-mono);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fc-mute);
}

/* History cast timeline */
.fc-history {
  position: relative;
  z-index: 2;
  max-width: var(--fc-max);
  margin: 0 auto 1.75rem;
  padding: 0 clamp(1.1rem, 4vw, 2rem);
}

.fc-section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.fc-section-head h2 {
  margin: 0;
  font-family: var(--fc-display);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.fc-section-head span {
  font-family: var(--fc-mono);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fc-mute);
}

.fc-cast {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.fc-cast-item {
  padding: 1.15rem 1rem;
  background: var(--fc-panel);
  border-top: 3px solid var(--fc-ink);
  min-height: 100%;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--fc-ease), transform 0.55s var(--fc-ease);
}

.fc-cast-item.is-in {
  opacity: 1;
  transform: none;
}

.fc-cast-item:nth-child(2) { border-top-color: var(--fc-red); }
.fc-cast-item:nth-child(3) { border-top-color: var(--fc-brass); }
.fc-cast-item:nth-child(4) { border-top-color: var(--fc-ink); }

.fc-cast-year {
  display: block;
  font-family: var(--fc-display);
  font-size: 1.75rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.45rem;
  line-height: 1;
}

.fc-cast-item strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.fc-cast-item p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--fc-mute);
  line-height: 1.45;
}

/* Values as type specimens */
.fc-values {
  position: relative;
  z-index: 2;
  max-width: var(--fc-max);
  margin: 0 auto 1.75rem;
  padding: 0 clamp(1.1rem, 4vw, 2rem);
}

.fc-specimens {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.fc-specimen {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1.15rem 1.2rem;
  background: var(--fc-panel);
  border: 1px solid var(--fc-line);
  transition: transform 0.3s var(--fc-ease), border-color 0.3s;
}

.fc-specimen:hover {
  transform: translateY(-2px);
  border-color: rgba(193, 18, 31, 0.35);
}

.fc-specimen-glyph {
  font-family: var(--fc-display);
  font-size: 3rem;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--fc-red);
  text-align: center;
}

.fc-specimen strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.fc-specimen p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--fc-mute);
  line-height: 1.4;
}

/* Story + aisles */
.fc-split {
  position: relative;
  z-index: 2;
  max-width: var(--fc-max);
  margin: 0 auto 1.75rem;
  padding: 0 clamp(1.1rem, 4vw, 2rem);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1rem;
  align-items: start;
}

.fc-story {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--fc-panel);
  border: 1px solid var(--fc-line);
}

.fc-story h2 {
  margin: 0 0 0.85rem;
  font-family: var(--fc-display);
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.fc-story p {
  margin: 0 0 0.85rem;
  color: var(--fc-mute);
  line-height: 1.55;
  font-size: 0.98rem;
}

.fc-story p:last-child { margin-bottom: 0; }

.fc-drawers {
  background: var(--fc-ink);
  color: #f3f4f6;
  padding: clamp(1.15rem, 2.5vw, 1.5rem);
}

.fc-drawers h2 {
  margin: 0 0 0.85rem;
  font-family: var(--fc-display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #fff;
}

.fc-drawer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.fc-drawer-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f3f4f6 !important;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.25s, border-color 0.25s;
}

.fc-drawer-list a:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(193, 18, 31, 0.55);
}

.fc-drawer-list em {
  font-style: normal;
  font-family: var(--fc-mono);
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(243, 244, 246, 0.45);
}

/* Colophon legal — not survey table */
.fc-colophon-legal {
  position: relative;
  z-index: 2;
  max-width: var(--fc-max);
  margin: 0 auto 1.5rem;
  padding: 0 clamp(1.1rem, 4vw, 2rem);
}

.fc-colophon-sheet {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--fc-panel);
  border: 1px dashed var(--fc-line);
}

.fc-colophon-sheet h2 {
  margin: 0 0 1rem;
  font-family: var(--fc-display);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.fc-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.5rem;
  margin: 0;
}

.fc-meta-grid div {
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--fc-line);
}

.fc-meta-grid dt {
  margin: 0 0 0.2rem;
  font-family: var(--fc-mono);
  font-size: 0.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fc-mute);
}

.fc-meta-grid dd {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  word-break: break-word;
}

.fc-reach {
  position: relative;
  z-index: 2;
  max-width: var(--fc-max);
  margin: 0 auto 1.5rem;
  padding: 0 clamp(1.1rem, 4vw, 2rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.fc-reach a,
.fc-reach div {
  padding: 1rem 1.1rem;
  background: var(--fc-ink);
  color: #f3f4f6;
}

.fc-reach strong {
  display: block;
  font-family: var(--fc-display);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 0.25rem;
  color: #fff;
}

.fc-reach p,
.fc-reach span {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(243, 244, 246, 0.65);
  line-height: 1.4;
}

.fc-reach a:hover strong { color: #fecaca; }

.fc-actions {
  position: relative;
  z-index: 2;
  max-width: var(--fc-max);
  margin: 0 auto 1.25rem;
  padding: 0 clamp(1.1rem, 4vw, 2rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.fc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform 0.25s var(--fc-ease), background 0.25s;
}

.fc-btn:hover { transform: translateY(-1px); }

.fc-btn--red {
  background: var(--fc-red);
  color: #fff !important;
}

.fc-btn--ink {
  background: var(--fc-ink);
  color: #fff !important;
}

.fc-btn--ghost {
  box-shadow: inset 0 0 0 1.5px var(--fc-line);
  color: var(--fc-ink) !important;
}

.fc-foot {
  position: relative;
  z-index: 2;
  max-width: var(--fc-max);
  margin: 0 auto;
  padding: 1.25rem clamp(1.1rem, 4vw, 2rem) 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  border-top: 1px solid var(--fc-line);
  font-size: 0.85rem;
  color: var(--fc-mute);
}

.fc-foot strong {
  font-family: var(--fc-display);
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--fc-ink);
}

[data-fc-rise] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--fc-ease), transform 0.55s var(--fc-ease);
  transition-delay: calc(var(--fc-delay, 0) * 70ms);
}

[data-fc-rise].is-in {
  opacity: 1;
  transform: none;
}

.fc-root[data-fc-ready="0"] [data-fc-rise] {
  animation: fc-rise-fallback 0.01s linear 1.4s forwards;
}

@keyframes fc-rise-fallback {
  to { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .fc-gauges,
  .fc-cast,
  .fc-specimens,
  .fc-split,
  .fc-reach,
  .fc-meta-grid {
    grid-template-columns: 1fr;
  }

  .fc-cast {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .fc-mast {
    flex-direction: column;
    align-items: flex-start;
  }

  .fc-gauges,
  .fc-cast {
    grid-template-columns: 1fr;
  }

  .fc-hero h1 { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  [data-fc-rise],
  .fc-cast-item {
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}
