/* ==========================================================================
   GoodCap Capital — Company page (Phase 2)
   ========================================================================== */

/* ---------- Hero ---------- */
.co-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
@media (max-width: 559px) { .co-hero__ctas .btn { width: 100%; } }

.js .co-in { opacity: 0; transform: translateY(20px); animation: co-in .75s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes co-in { to { opacity: 1; transform: none; } }

/* Abstract art: three leaf shapes that assemble into the G mark's rhythm */
.co-art { position: relative; width: 100%; max-width: 500px; margin-inline: auto; aspect-ratio: 1 / 0.86; }
.co-art__leaf { position: absolute; box-shadow: var(--sh-lg); }
.co-art__leaf--a {
  left: 6%; top: 4%; width: 58%; height: 54%;
  border-radius: 120px 18px 120px 18px;
  background: linear-gradient(150deg, #041c4a, #063281 60%, #04469f);
  animation: leaf-a 1.1s var(--ease) .25s both;
}
.co-art__leaf--b {
  right: 4%; bottom: 6%; width: 56%; height: 52%;
  border-radius: 18px 120px 18px 120px;
  background: linear-gradient(150deg, #0280e7, #17a3f3);
  animation: leaf-b 1.1s var(--ease) .4s both;
}
.co-art__leaf--c {
  left: 34%; top: 32%; width: 32%; height: 34%; z-index: 2;
  border-radius: 60px 10px 60px 10px; background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  display: grid; place-items: center;
  animation: leaf-c 1s var(--ease) .65s both;
}
.co-art__leaf--c img { width: 46%; height: auto; }
@keyframes leaf-a { from { opacity: 0; transform: translate(-30px, -20px) rotate(-6deg); } to { opacity: 1; transform: none; } }
@keyframes leaf-b { from { opacity: 0; transform: translate(30px, 20px) rotate(6deg); } to { opacity: 1; transform: none; } }
@keyframes leaf-c { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }

.co-art__chip {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 8px; border-radius: 14px; background: #fff; border: var(--border-soft); box-shadow: var(--sh-lg);
  font-size: 0.875rem; font-weight: 700; color: var(--gc-ink); white-space: nowrap;
}
.co-art__chip span { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--gc-tint); color: var(--gc-blue); }
.co-art__chip .icon { width: 18px; height: 18px; }
.co-art__chip--1 { right: 0; top: 10%; }
.co-art__chip--2 { left: 0; bottom: 18%; }
.co-art__chip--3 { right: 8%; bottom: -2%; }
@media (max-width: 479px) {
  .co-art__chip { font-size: 0.8125rem; padding: 6px 12px 6px 6px; }
  .co-art__chip span { width: 30px; height: 30px; }
  .co-art__chip--3 { display: none; }
}

/* ---------- Story ---------- */
.co-story__grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .co-story__grid { grid-template-columns: 0.9fr 1.1fr; gap: 88px; } }
.co-story__visual { position: relative; max-width: 500px; width: 100%; margin-inline: auto; padding: 0 18px 18px 0; }
.co-story__visual::before {   /* decorative gradient leaf behind the card */
  content: ""; position: absolute; z-index: -1; right: 0; bottom: 0; width: 78%; height: 78%;
  border-radius: 64px 14px 64px 14px; background: var(--gc-gradient);
}
.co-doc {
  position: relative; padding: clamp(26px, 4vw, 40px); background: #fff;
  border-radius: 56px 12px 56px 12px; border: var(--border-soft); box-shadow: var(--sh-lg);
}
.co-doc__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 26px; }
.co-doc__top img { width: 52px; height: 52px; }
.co-doc__name { font-size: clamp(1.3rem, 2.2vw, 1.6rem); font-weight: 800; color: var(--gc-ink); letter-spacing: -0.02em; line-height: 1.2; }
.co-doc__brand { color: var(--gc-muted); font-weight: 600; margin-top: 4px; }
.co-doc__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 26px 0 22px; background: var(--gc-line); border: 1px solid var(--gc-line); border-radius: 18px; overflow: hidden; }
.co-doc__facts div { background: #fff; padding: 14px 16px; }
.co-doc__facts dt { font-size: 0.8125rem; font-weight: 600; color: var(--gc-muted); }
.co-doc__facts dd { margin: 2px 0 0; font-weight: 800; color: var(--gc-navy); }
.co-doc__cin { font-size: 0.8125rem; font-weight: 600; color: var(--gc-muted); letter-spacing: 0.02em; overflow-wrap: anywhere; padding-top: 16px; border-top: 1px dashed var(--gc-line); }

.co-story__copy h2 { font-size: var(--fs-h2); max-width: 18ch; }
.co-story__text { display: grid; gap: 16px; margin-top: 22px; max-width: 60ch; }
.co-story__text p:first-child { font-size: 1.15rem; color: var(--gc-ink); font-weight: 500; }
.co-story__facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.co-story__facts li {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px;
  background: var(--gc-mist); border: 1px solid var(--gc-line-blue); font-size: 0.9rem; font-weight: 700; color: var(--gc-navy);
}
.co-story__facts .icon { width: 18px; height: 18px; color: var(--gc-blue); }

/* ---------- Pillars ---------- */
.co-pillars__grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .co-pillars__grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.co-pillar { display: flex; flex-direction: column; }
.co-pillar > p { flex: 1; }
.co-pillar .checklist { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--gc-line); }
.co-pillar--accent { background: linear-gradient(160deg, #063281, #04469f 60%, #0280e7); border-color: transparent; border-radius: var(--r-leaf); }
.co-pillar--accent h3 { color: #fff; }
.co-pillar--accent > p { color: rgba(255, 255, 255, 0.82); }
.co-pillar--accent .feature__icon { background: rgba(255, 255, 255, 0.14); color: #fff; }
.co-pillar--accent .checklist { border-top-color: rgba(255, 255, 255, 0.16); }
.co-pillar--accent .checklist li { color: #fff; }
.co-pillar--accent .checklist .icon { background: rgba(255, 255, 255, 0.16); color: #fff; }

/* ---------- How we work ---------- */
.co-work .timeline { margin-top: 8px; }
@media (min-width: 1024px) {
  .co-work .timeline__body h3 { font-size: 1.05rem; }
}

/* ---------- Approach / commitment ---------- */
.co-values__grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .co-values__grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
.co-value { padding: clamp(26px, 4vw, 44px); background: #fff; border-radius: var(--r-lg); border: var(--border-soft); box-shadow: var(--sh-sm); }
.co-value__head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.co-value__head h3 { font-size: var(--fs-h3); }
.co-value__icon { width: 56px; height: 56px; border-radius: 18px 5px 18px 5px; flex-shrink: 0; display: grid; place-items: center; background: var(--gc-tint); color: var(--gc-blue); }
.co-value__list { display: grid; gap: 14px; }
.co-value__list li { display: flex; gap: 12px; align-items: flex-start; color: var(--gc-text); line-height: 1.6; }
.co-value__list .icon { width: 22px; height: 22px; margin-top: 2px; color: var(--gc-success); stroke-width: 2.5; }
.co-value--commit { border: 1.5px solid var(--gc-line-blue); background: linear-gradient(180deg, #fff, #f8fbff); }
.co-value--commit .co-value__icon { background: var(--gc-navy); color: #fff; }
.co-value--commit .co-value__list .icon { color: var(--gc-blue); }
.co-value__links { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--gc-line); }

/* ---------- Company info ---------- */
.co-info__grid { display: grid; gap: 36px; align-items: start; }
@media (min-width: 1024px) { .co-info__grid { grid-template-columns: 0.8fr 1.2fr; gap: 72px; } }
.co-info__intro h2 { font-size: var(--fs-h2); }
.co-info__intro > p { color: var(--gc-muted); margin-top: 14px; max-width: 46ch; }
.co-info__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
@media (min-width: 1024px) { .co-info__intro { position: sticky; top: calc(var(--header-h) + 32px); } }
.co-panel { padding: clamp(20px, 3.5vw, 36px); background: #fff; border-radius: 40px 10px 40px 10px; border: var(--border-soft); box-shadow: var(--sh-md); }
.co-panel__head { display: flex; align-items: center; gap: 16px; padding-bottom: 20px; margin-bottom: 4px; border-bottom: 1px solid var(--gc-line); }
.co-panel__head img { width: 48px; height: 48px; }
.co-panel__name { font-weight: 800; color: var(--gc-ink); font-size: 1.1rem; line-height: 1.3; }
.co-panel__brand { color: var(--gc-muted); font-size: 0.9rem; font-weight: 600; }
@media (max-width: 479px) {
  .info-row { grid-template-columns: 1fr auto; }
  .info-row__icon { display: none; }
}

/* ---------- CTA ---------- */
.co-cta { padding-bottom: var(--section-y); }

@media (prefers-reduced-motion: reduce) {
  .js .co-in { opacity: 1; transform: none; animation: none; }
  .co-art__leaf { animation: none !important; }
}
