/* Appily Sixty — Verdant Charter (company)
   Named grid: clipped mission band, values lattice, vertical epoch stack.
   Independent of Ledger Atelier. Fonts: Sora + Newsreader.
   Features: grid-template-areas, fluid type, gradient clip-paths. */

.page-company {
  --vc-ink: #102018;
  --vc-mute: #5a6e62;
  --vc-mist: #e8f0eb;
  --vc-chalk: #f3f7f4;
  --vc-panel: #ffffff;
  --vc-line: rgba(16, 32, 24, 0.12);
  --vc-leaf: #2f8f5b;
  --vc-leaf-soft: rgba(47, 143, 91, 0.14);
  --vc-pollen: #d4a017;
  --vc-pollen-soft: rgba(212, 160, 23, 0.16);
  --vc-deep: #0b1a12;
  --vc-display: "Sora", system-ui, sans-serif;
  --vc-serif: "Newsreader", Georgia, serif;
  --vc-ease: cubic-bezier(0.22, 0.9, 0.28, 1);
  --vc-h1: clamp(2.4rem, 1.15rem + 4.4vw, 4.2rem);
  --vc-h2: clamp(1.4rem, 1.05rem + 1.3vw, 2rem);
  --vc-lead: clamp(1.02rem, 0.92rem + 0.45vw, 1.22rem);
  --vc-small: clamp(0.7rem, 0.66rem + 0.18vw, 0.78rem);
  --vc-shadow: 0 22px 50px rgba(16, 32, 24, 0.1);
}

.page-company .page-main {
  padding: 0 !important;
  background:
    radial-gradient(ellipse 55% 40% at 0% 0%, var(--vc-leaf-soft), transparent 55%),
    radial-gradient(ellipse 45% 35% at 100% 8%, var(--vc-pollen-soft), transparent 50%),
    linear-gradient(180deg, var(--vc-mist) 0%, var(--vc-chalk) 50%, #e6efe9 100%) !important;
  color: var(--vc-ink) !important;
  font-family: var(--vc-display);
}

.page-company .page-main h1,
.page-company .page-main h2,
.page-company .page-main h3,
.page-company .page-main p,
.page-company .page-main span,
.page-company .page-main a,
.page-company .page-main strong,
.page-company .page-main em,
.page-company .page-main li,
.page-company .page-main button,
.page-company .page-main dt,
.page-company .page-main dd,
.page-company .page-main time {
  color: inherit;
}

.page-company .a60-spine { display: none !important; }
.page-company .a60-prism-stage { padding-right: 0 !important; }

.vc-charter {
  width: min(1140px, calc(100% - 1.35rem));
  margin: 0 auto;
  padding: clamp(1.2rem, 3vw, 2.2rem) 0 clamp(3.2rem, 7vw, 4.8rem);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.95fr);
  grid-template-areas:
    "mast     mast"
    "mission  values"
    "history  values"
    "aisles   aisles"
    "registry registry"
    "links    links";
  gap: clamp(0.9rem, 2.2vw, 1.35rem);
  align-items: start;
}

.vc-kicker {
  margin: 0 0 0.45rem;
  font-size: var(--vc-small);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--vc-leaf);
}

.vc-block-head {
  margin-bottom: 0.95rem;
}

.vc-block-head h2 {
  margin: 0;
  font-size: var(--vc-h2);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.vc-block-head p:not(.vc-kicker) {
  margin: 0.35rem 0 0;
  font-family: var(--vc-serif);
  font-size: 0.95rem;
  color: var(--vc-mute);
}

/* Reveal */
.vc-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--vc-ease), transform 0.55s var(--vc-ease);
}

.vc-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* —— Mast —— */
.vc-mast {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 1.25rem;
  align-items: end;
  padding: clamp(1.4rem, 3.2vw, 2.2rem);
  border-radius: 8px 36px 8px 28px;
  background:
    linear-gradient(125deg, #0b1a12 0%, #143024 48%, #1a4030 100%);
  color: #f2f8f4;
  position: relative;
  overflow: hidden;
}

.vc-mast::before {
  content: "";
  position: absolute;
  inset: -30% 30% auto -15%;
  height: 80%;
  background: radial-gradient(circle, rgba(212, 160, 23, 0.28), transparent 65%);
  pointer-events: none;
}

.vc-mast-copy {
  position: relative;
  z-index: 1;
}

.vc-mast .vc-kicker {
  color: #8fd4a8;
}

.vc-mast h1 {
  margin: 0;
  font-size: var(--vc-h1);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.vc-mast-line {
  display: block;
}

.vc-mast-em {
  display: block;
  font-family: var(--vc-serif);
  font-style: italic;
  font-weight: 600;
  color: #e8c547;
}

.vc-lede {
  margin: 0.85rem 0 0;
  max-width: 42ch;
  font-family: var(--vc-serif);
  font-size: var(--vc-lead);
  line-height: 1.45;
  color: rgba(242, 248, 244, 0.75);
}

.vc-mast-badge {
  position: relative;
  z-index: 1;
  width: 7.5rem;
  height: 7.5rem;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 0.15rem;
}

.vc-badge-clip {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(232, 197, 71, 0.35), rgba(47, 143, 91, 0.45));
  clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
  opacity: 0.9;
}

.vc-mast-badge strong,
.vc-mast-badge em {
  position: relative;
  z-index: 1;
}

.vc-mast-badge strong {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.vc-mast-badge em {
  font-family: var(--vc-serif);
  font-style: italic;
  font-size: 0.82rem;
  color: rgba(242, 248, 244, 0.8);
}

/* —— Mission (gradient clip band) —— */
.vc-mission {
  position: relative;
}

.vc-mission-clip {
  padding: clamp(1.35rem, 3vw, 1.9rem);
  color: #f2f8f4;
  background:
    linear-gradient(135deg, #123526 0%, #1f5a3d 45%, #2a6b3a 70%, #c9a227 140%);
  clip-path: polygon(0 6%, 100% 0, 100% 94%, 0 100%);
  box-shadow: var(--vc-shadow);
}

.vc-mission-kicker {
  margin: 0 0 0.5rem;
  font-size: var(--vc-small);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e8c547;
}

.vc-mission-clip h2 {
  margin: 0 0 0.75rem;
  font-family: var(--vc-serif);
  font-size: clamp(1.25rem, 1rem + 1.1vw, 1.75rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.vc-mission-clip p {
  margin: 0;
  max-width: 48ch;
  font-size: 0.98rem;
  line-height: 1.55;
  color: rgba(242, 248, 244, 0.82);
}

/* —— Values —— */
.vc-values {
  padding: clamp(1.15rem, 2.5vw, 1.5rem);
  border-radius: 24px 8px 24px 8px;
  background: var(--vc-panel);
  box-shadow: var(--vc-shadow);
  position: relative;
}

.vc-values::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1.5px;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(47, 143, 91, 0.7), rgba(212, 160, 23, 0.4), transparent 70%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.vc-value-grid {
  display: grid;
  gap: 0.7rem;
}

.vc-value {
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  background: var(--vc-mist);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  animation: vc-rise 0.45s var(--vc-ease) both;
  animation-delay: calc(var(--vi, 0) * 60ms);
}

.vc-value-code {
  display: inline-block;
  margin-bottom: 0.25rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--vc-pollen);
}

.vc-value h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 800;
}

.vc-value p {
  margin: 0;
  font-family: var(--vc-serif);
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--vc-mute);
}

.vc-benefits {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.vc-benefits li {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--vc-leaf-soft);
  color: #1a5c38;
  animation: vc-rise 0.4s var(--vc-ease) both;
  animation-delay: calc(0.2s + var(--bi, 0) * 40ms);
}

/* —— History (vertical epoch stack) —— */
.vc-history {
  padding: clamp(1.15rem, 2.5vw, 1.5rem);
  border-radius: 8px 24px;
  background: var(--vc-deep);
  color: #f2f8f4;
}

.vc-history .vc-kicker {
  color: #8fd4a8;
}

.vc-history .vc-block-head p:not(.vc-kicker) {
  color: rgba(242, 248, 244, 0.6);
}

.vc-history-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 0.75rem;
}

.vc-history-controls {
  display: flex;
  gap: 0.4rem;
}

.vc-hist-btn {
  appearance: none;
  width: 2.35rem;
  height: 2.35rem;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  background: rgba(242, 248, 244, 0.1);
  color: #f2f8f4;
  transition: background 0.2s;
}

.vc-hist-btn:hover {
  background: var(--vc-leaf);
}

.vc-epochs {
  max-height: 22rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-snap-type: y mandatory;
  display: grid;
  gap: 0.65rem;
  padding-right: 0.35rem;
  cursor: grab;
  scrollbar-width: thin;
  scrollbar-color: rgba(143, 212, 168, 0.4) transparent;
}

.vc-epochs:active {
  cursor: grabbing;
}

.vc-epoch {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  scroll-snap-align: start;
  background: rgba(242, 248, 244, 0.06);
  border: 1px solid rgba(242, 248, 244, 0.1);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  animation: vc-rise 0.45s var(--vc-ease) both;
  animation-delay: calc(var(--ei, 0) * 50ms);
}

.vc-epoch time {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e8c547;
}

.vc-epoch h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 800;
}

.vc-epoch p {
  margin: 0;
  font-family: var(--vc-serif);
  font-size: 0.88rem;
  line-height: 1.4;
  color: rgba(242, 248, 244, 0.68);
}

/* —— Aisles —— */
.vc-aisles {
  padding: clamp(1.15rem, 2.5vw, 1.5rem);
  border-radius: 20px;
  background: var(--vc-panel);
  box-shadow: var(--vc-shadow);
}

.vc-aisle-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.vc-aisle {
  text-decoration: none;
  padding: 0.55rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--vc-ink);
  background: var(--vc-mist);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: background 0.2s, color 0.2s, transform 0.2s var(--vc-ease);
  animation: vc-rise 0.4s var(--vc-ease) both;
  animation-delay: calc(var(--ai, 0) * 30ms);
}

.vc-aisle:hover {
  background: var(--vc-deep);
  color: #f2f8f4;
  transform: translateY(-2px);
}

/* —— Registry —— */
.vc-registry {
  padding: clamp(1.2rem, 2.6vw, 1.7rem);
  border-radius: 24px;
  background: var(--vc-panel);
  box-shadow: var(--vc-shadow);
}

.vc-reg-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.vc-reg-nav button {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-family: var(--vc-display);
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--vc-mist);
  color: var(--vc-mute);
  transition: background 0.2s, color 0.2s;
}

.vc-reg-nav button.is-active,
.vc-reg-nav button:hover {
  background: var(--vc-deep);
  color: #f2f8f4;
}

.vc-reg-panel {
  animation: vc-rise 0.35s var(--vc-ease) both;
}

.vc-dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
}

.vc-dl > div {
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  background: var(--vc-mist);
}

.vc-dl dt {
  margin: 0 0 0.25rem;
  font-size: var(--vc-small);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vc-mute);
}

.vc-dl dd {
  margin: 0;
  font-family: var(--vc-serif);
  font-size: 0.98rem;
  font-weight: 600;
  word-break: break-word;
}

.vc-dl a {
  color: var(--vc-leaf);
  text-decoration: none;
}

.vc-dl a:hover {
  text-decoration: underline;
}

.vc-address {
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: var(--vc-mist);
}

.vc-address:last-child {
  margin-bottom: 0;
}

.vc-address h3 {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
  font-weight: 800;
}

.vc-address p {
  margin: 0;
  font-family: var(--vc-serif);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--vc-mute);
}

/* —— Links —— */
.vc-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.vc-link {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.65rem;
  row-gap: 0.1rem;
  padding: 1rem 1.05rem;
  text-decoration: none;
  background: var(--vc-deep);
  color: #f2f8f4;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
  transition: transform 0.2s var(--vc-ease), background 0.2s;
  animation: vc-rise 0.45s var(--vc-ease) both;
  animation-delay: calc(var(--li, 0) * 50ms);
}

.vc-link:hover {
  transform: translateY(-3px);
  background: #143024;
}

.vc-link-mark {
  grid-row: 1 / span 2;
  align-self: center;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(232, 197, 71, 0.22);
  color: #e8c547;
  font-size: 0.85rem;
  font-weight: 800;
}

.vc-link strong {
  font-size: 0.95rem;
  font-weight: 800;
}

.vc-link em {
  font-family: var(--vc-serif);
  font-style: italic;
  font-size: 0.82rem;
  color: rgba(242, 248, 244, 0.65);
}

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

/* —— Responsive —— */
@media (max-width: 900px) {
  .vc-charter {
    grid-template-columns: 1fr;
    grid-template-areas:
      "mast"
      "mission"
      "values"
      "history"
      "aisles"
      "registry"
      "links";
  }

  .vc-mast {
    grid-template-columns: 1fr;
  }

  .vc-mast-badge {
    justify-self: start;
  }

  .vc-dl {
    grid-template-columns: 1fr;
  }

  .vc-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .vc-epoch {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .vc-mission-clip {
    clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .vc-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .vc-value,
  .vc-benefits li,
  .vc-epoch,
  .vc-aisle,
  .vc-link,
  .vc-reg-panel {
    animation: none !important;
  }
}
