/* Stratum Charter — company. Not Kiln Codex gallery/bento/timeline rail. */

@import url('https://fonts.googleapis.com/css2?family=Karla:wght@400;500;600;700;800&family=Literata:ital,opsz,wght@0,7..72,500;0,7..72,600;0,7..72,700;1,7..72,500&display=swap');

.page-company {
  --st-ink: #141820;
  --st-mute: #5a6570;
  --st-stone: #e4e8ec;
  --st-sheet: #f7f9fb;
  --st-copper: #c47a3a;
  --st-slate: #3d5a6c;
  --st-line: rgba(20, 24, 32, 0.12);
  --st-display: 'Literata', Georgia, serif;
  --st-body: 'Karla', sans-serif;
  --st-ease: cubic-bezier(0.22, 1, 0.36, 1);
  font-family: var(--st-body);
  color: var(--st-ink);
}

.page-company .a58-main {
  padding: var(--a58-chrome-top, 6.75rem) 0 4rem;
  max-width: none;
  background:
    radial-gradient(ellipse 45% 35% at 100% 5%, rgba(196, 122, 58, 0.14), transparent 55%),
    radial-gradient(ellipse 40% 30% at 0% 50%, rgba(61, 90, 108, 0.12), transparent 50%),
    linear-gradient(180deg, #d8dee4, var(--st-stone) 40%, #d2d8e0);
}
.page-company .a58-main button,
.page-company .a58-main input,
.page-company .a58-main select,
.page-company .a58-main textarea {
  color: inherit;
}


.page-company .a58-main > .st-root {
  padding-block: 0;
}

.st-root {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.2rem 0 3.5rem;
  display: grid;
  gap: 1.35rem;
}

.st-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--st-slate);
}

.st-mast {
  display: grid;
  gap: 0.75rem;
  padding: 1.4rem 1.4rem 1.5rem;
  background: var(--st-sheet);
  border: 1px solid var(--st-line);
  border-radius: 4px 28px 4px 28px;
  box-shadow: 0 18px 44px rgba(20, 24, 32, 0.06);
}
.st-word {
  margin: 0;
  display: grid;
  gap: 0;
  font-family: var(--st-display);
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.9;
}
.st-word span { display: block; }
.st-word em {
  font-style: italic;
  font-weight: 500;
  color: var(--st-copper);
}
.st-tag {
  margin: 0;
  max-width: 42rem;
  color: var(--st-mute);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.55;
}
.st-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
}
.st-jump a {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--st-line);
  color: var(--st-ink);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.st-jump a:hover {
  border-color: var(--st-copper);
  color: var(--st-copper);
}

/* Mission — gradient clip banner */
.st-mission-clip {
  position: relative;
  display: grid;
  gap: 0.85rem;
  padding: 1.5rem 1.4rem 1.6rem;
  background: var(--st-ink);
  color: #e8ecef;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 96% 100%, 0 100%);
  box-shadow: 0 24px 50px rgba(20, 24, 32, 0.2);
  overflow: hidden;
}
.st-mission-clip::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, rgba(196, 122, 58, 0.35), transparent 42%, rgba(61, 90, 108, 0.4));
  mix-blend-mode: soft-light;
  pointer-events: none;
}
.st-mission-clip > * { position: relative; z-index: 1; }
.st-mission-clip .st-kicker { color: var(--st-copper); }
.st-mission-clip h2 {
  margin: 0;
  font-family: var(--st-display);
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.st-mission-lead {
  margin: 0;
  max-width: 40rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.5;
  color: rgba(232, 236, 239, 0.92);
}
.st-mission-body {
  margin: 0;
  max-width: 42rem;
  color: rgba(232, 236, 239, 0.65);
  line-height: 1.55;
  font-size: 0.98rem;
}

.st-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.35rem;
}
.st-metric {
  padding: 0.75rem 0.8rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: st-rise 0.45s var(--st-ease) both;
  animation-delay: calc(var(--st-m, 0) * 50ms);
}
.st-metric strong {
  display: block;
  font-family: var(--st-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}
.st-metric span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232, 236, 239, 0.82);
}

/* Value blades — named asymmetric grid */
.st-section-head {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 0.85rem;
}
.st-section-head h2 {
  margin: 0;
  font-family: var(--st-display);
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.st-section-head p {
  margin: 0;
  color: var(--st-mute);
  font-size: 0.95rem;
}

.st-blades {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr 1.1fr;
  grid-template-areas:
    'a a b c'
    'a a d d';
  gap: 0.65rem;
  container-type: inline-size;
  container-name: blades;
}
.st-blade:nth-child(1) { grid-area: a; }
.st-blade:nth-child(2) { grid-area: b; }
.st-blade:nth-child(3) { grid-area: c; }
.st-blade:nth-child(4) { grid-area: d; }

.st-blade {
  display: grid;
  gap: 0.45rem;
  align-content: start;
  padding: 1.15rem 1.15rem 1.25rem;
  background: var(--st-sheet);
  border: 1px solid var(--st-line);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  box-shadow: 0 12px 32px rgba(20, 24, 32, 0.05);
  transition: transform 0.35s var(--st-ease), box-shadow 0.35s;
}
.st-blade:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(20, 24, 32, 0.1);
}
.st-blade-code {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--st-copper);
}
.st-blade h3 {
  margin: 0;
  font-family: var(--st-display);
  font-size: clamp(1.25rem, 2.4cqi, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.015em;
}
.st-blade p {
  margin: 0;
  color: var(--st-mute);
  font-size: 0.92rem;
  line-height: 1.5;
}

@container blades (max-width: 720px) {
  .st-blades {
    grid-template-columns: 1fr;
    grid-template-areas:
      'a'
      'b'
      'c'
      'd';
  }
  .st-blade { clip-path: none; border-radius: 18px; }
}

/* History — sediment strata (not horizontal rail) */
.st-strata {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--st-line);
  background: var(--st-sheet);
}
.st-layer {
  display: grid;
  grid-template-columns: minmax(4.5rem, 6rem) 1fr;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--st-line);
  background:
    linear-gradient(
      90deg,
      rgba(61, 90, 108, calc(0.04 + var(--st-l, 0) * 0.03)),
      transparent 40%
    );
  transition: background 0.35s;
}
.st-layer:last-child { border-bottom: 0; }
.st-layer:hover {
  background: rgba(196, 122, 58, 0.06);
}
.st-layer-era {
  font-family: var(--st-display);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--st-slate);
  line-height: 1;
  padding-top: 0.15rem;
}
.st-layer-body h3 {
  margin: 0 0 0.35rem;
  font-family: var(--st-display);
  font-size: 1.25rem;
  font-weight: 600;
}
.st-layer-body p {
  margin: 0;
  color: var(--st-mute);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 40rem;
}

/* Specimen film */
.st-film-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(160px, 200px);
  gap: 0.65rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scroll-snap-type: x mandatory;
}
.st-frame {
  scroll-snap-align: start;
  display: grid;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  padding: 0.45rem;
  background: var(--st-sheet);
  border: 1px solid var(--st-line);
  border-radius: 16px;
  transition: transform 0.3s var(--st-ease), border-color 0.25s;
  animation: st-rise 0.45s var(--st-ease) both;
  animation-delay: calc(var(--st-f, 0) * 40ms);
}
.st-frame:hover {
  transform: translateY(-4px);
  border-color: rgba(196, 122, 58, 0.4);
}
.st-frame img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  background: #d8dee4;
}
.st-frame span { display: grid; gap: 0.1rem; padding: 0 0.2rem 0.25rem; }
.st-frame em {
  font-style: normal;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--st-copper);
}
.st-frame strong {
  font-size: 0.88rem;
  line-height: 1.25;
}

/* Currents */
.st-current-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.55rem;
}
.st-current {
  display: grid;
  gap: 0.2rem;
  padding: 0.95rem 1rem;
  text-decoration: none;
  color: inherit;
  background: var(--st-sheet);
  border: 1px solid var(--st-line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  transition: transform 0.3s, border-color 0.25s, background 0.25s;
}
.st-current:hover {
  transform: translateY(-3px);
  border-color: var(--st-slate);
  background: #fff;
}
.st-current span {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--st-copper);
  letter-spacing: 0.08em;
}
.st-current strong {
  font-family: var(--st-display);
  font-size: 1.2rem;
  font-weight: 600;
}
.st-current em {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--st-mute);
}

/* Legal ledger strip — not registry cards */
.st-ledger-strip {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  background: var(--st-sheet);
  border: 1px solid var(--st-line);
  border-radius: 18px;
  overflow: hidden;
  container-type: inline-size;
  container-name: ledger;
}
.st-ledger-strip > div {
  display: grid;
  gap: 0.25rem;
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid var(--st-line);
  border-right: 1px solid var(--st-line);
}
.st-ledger-strip > div:nth-child(2n) {
  border-right: 0;
}
.st-ledger-wide {
  grid-column: 1 / -1;
  border-right: 0 !important;
}
.st-ledger-strip dt {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--st-mute);
}
.st-ledger-strip dd {
  margin: 0;
  font-weight: 700;
  font-size: 0.95rem;
  word-break: break-word;
}

@container ledger (max-width: 520px) {
  .st-ledger-strip {
    grid-template-columns: 1fr;
  }
  .st-ledger-strip > div {
    border-right: 0;
  }
}

.st-ledger-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.st-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.15rem;
  border-radius: 12px;
  background: var(--st-copper);
  color: #fff;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  border: 0;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}
.st-btn:hover {
  transform: translateY(-2px);
  background: #a8662e;
  box-shadow: 0 12px 28px rgba(196, 122, 58, 0.28);
}
.st-btn-ghost {
  background: transparent;
  color: var(--st-ink);
  border: 1px solid var(--st-line);
}
.st-btn-ghost:hover {
  border-color: var(--st-slate);
  color: var(--st-slate);
  background: transparent;
  box-shadow: none;
}

/* Reveal */
[data-st-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--st-ease), transform 0.55s var(--st-ease);
}
[data-st-reveal].is-in {
  opacity: 1;
  transform: none;
}

@keyframes st-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 720px) {
  .st-root { width: calc(100% - 1.25rem); }
  .st-metrics { grid-template-columns: 1fr 1fr; }
  .st-blades {
    grid-template-columns: 1fr;
    grid-template-areas:
      'a'
      'b'
      'c'
      'd';
  }
  .st-blade { clip-path: none; border-radius: 16px; }
  .st-layer {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
  .st-mission-clip { clip-path: none; border-radius: 20px; }
  .st-ledger-strip { grid-template-columns: 1fr; }
  .st-ledger-strip > div { border-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  [data-st-reveal],
  .st-metric,
  .st-frame,
  .st-blade {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
