/* ============================================================
   About QTG v3 — unified section system
   The /company page (About QTG). Served by company.html.
   One header pattern, one card system, one type scale.
   ============================================================ */

/* One section-header pattern everywhere: kicker → H2 → lead */
.ab-head { max-width: 860px; margin-bottom: 40px; }
.ab-head .kicker,
.ab-rm-head .kicker { color: var(--accent); }
.ab-h2 {
  font-family: var(--font-sans); font-weight: 450;
  font-size: clamp(32px, 4vw, 50px); letter-spacing: -0.028em;
  line-height: 1.06; color: var(--text); margin: 18px 0 0;
}
.ab-lead {
  font-size: 18px; color: var(--text-2); line-height: 1.58;
  margin: 22px 0 0; max-width: 62ch;
}

/* One card system — pillars / audiences / principles read as siblings */
.ab-cards {
  display: grid; gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.ab-cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
.ab-cards.cols-4 { grid-template-columns: repeat(4, 1fr); }
.ab-card { position: relative; background: var(--surface); padding: 28px 30px 26px; display: flex; flex-direction: column; }
.ab-card-n { position: absolute; top: 24px; right: 24px; display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 21px; padding: 0 5px; border: 1px solid var(--line-strong); border-radius: 6px; background: color-mix(in oklab, var(--accent) 7%, transparent); font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: 0.08em; }
.ab-card-t { font-family: var(--font-sans); font-size: 21px; color: var(--text); letter-spacing: -0.02em; line-height: 1.18; margin-top: 0; padding-right: 34px; }
.ab-card-d { font-size: 14.5px; color: var(--text-2); line-height: 1.6; margin-top: 13px; }

/* Platforms showcase — colored app-icon family */
.ab-plat-hub { position: relative; width: -moz-fit-content; width: fit-content; max-width: 100%; }
.ab-plat-grid { display: flex; gap: 16px; }
.ab-plat-card {
  width: 152px; flex: none;
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; text-decoration: none;
  padding: 18px 8px; border-radius: 16px;
  transition: transform .22s cubic-bezier(.22,1,.36,1), background .22s ease;
}
.ab-plat-card:hover { transform: translateY(-4px); }
.ab-plat-icon {
  flex: none; width: 72px; height: 72px; border-radius: 19px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 16px; letter-spacing: 0.02em; font-weight: 500;
  color: #06121A;
  background:
    linear-gradient(160deg, color-mix(in oklab, var(--pc) 92%, white) 0%, var(--pc) 48%, color-mix(in oklab, var(--pc) 72%, black) 100%);
  border: 1px solid color-mix(in oklab, var(--pc) 60%, transparent);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,0.45), inset 0 -8px 16px rgba(0,0,0,0.18), 0 10px 24px -8px color-mix(in oklab, var(--pc) 50%, transparent);
  position: relative; overflow: hidden;
  transition: transform .22s cubic-bezier(.22,1,.36,1), box-shadow .22s ease;
}
.ab-plat-icon::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(160deg, rgba(255,255,255,0.35), transparent 42%);
  pointer-events: none;
}
.ab-plat-card:hover .ab-plat-icon {
  transform: scale(1.06) rotate(-1.5deg);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,0.5), inset 0 -8px 16px rgba(0,0,0,0.2), 0 16px 32px -8px color-mix(in oklab, var(--pc) 65%, transparent);
}
.ab-plat-name { font-family: var(--font-sans); font-size: 14.5px; color: var(--text-2); letter-spacing: -0.012em; line-height: 1.25; transition: color .2s ease; white-space: nowrap; }
.ab-plat-card:hover .ab-plat-name { color: var(--text); }
.ab-plat-img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; position: relative; z-index: 1; display: block; }
.ab-plat-logo { object-fit: contain; padding: 22%; box-sizing: border-box; }

/* Shared-core hub — wires fan from each platform into the QTG core */
.ab-plat-wires { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; overflow: visible; }
.ab-wire { stroke-dasharray: 2.5 12; stroke-linecap: round; }
@media (prefers-reduced-motion: no-preference) {
  .ab-wire { animation: ab-wire-flow 2.6s linear infinite; }
  .ab-wire:nth-child(odd) { animation-duration: 3.2s; }
  @keyframes ab-wire-flow { to { stroke-dashoffset: -14.5; } }
}
.ab-plat-grid { position: relative; z-index: 1; }
.ab-plat-corenode { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 96px; }
.ab-plat-coremark {
  width: 66px; height: 66px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(120% 120% at 50% 0%, #0d2f37, #06141a 80%);
  border: 1px solid color-mix(in oklab, var(--accent) 45%, transparent);
  box-shadow: 0 0 0 6px var(--accent-faint), 0 0 34px -4px color-mix(in oklab, var(--accent) 55%, transparent), inset 0 1px 0 rgba(255,255,255,0.08);
}
.ab-plat-coremark img { width: 58%; height: 58%; object-fit: contain; display: block; }
.ab-plat-corelabel { font-family: var(--font-sans); font-size: 14.5px; letter-spacing: -0.012em; text-transform: none; color: var(--text-2); }
#platforms .ab-head { margin-bottom: 22px; }
#platforms { padding-bottom: 72px; }

/* Why-we-exist — narrative + founders' quote panel */
.ab-story-grid {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 0;
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface);
  max-width: 1480px;
}
.ab-story-narrative { padding: 40px 44px 40px 30px; border-right: 1px solid var(--line); }
.ab-sn-beat { padding-left: 20px; border-left: 2px solid var(--accent-dim); }
.ab-sn-beat + .ab-sn-beat { margin-top: 22px; }
.ab-sn-label { font-size: 12px; color: var(--accent); letter-spacing: 0.16em; margin-bottom: 4px; }
.ab-story-narrative p { font-size: 15.5px; color: var(--text-2); line-height: 1.62; margin: 0; }
.ab-note { position: relative; padding: 40px 44px; background: radial-gradient(125% 90% at 100% 0%, color-mix(in oklab, var(--accent) 7%, transparent), transparent 55%), var(--bg-2); display: flex; flex-direction: column; justify-content: center; }
.ab-note-quote { position: absolute; top: 24px; right: 34px; font-family: Georgia, 'Times New Roman', serif; font-size: 92px; line-height: 1; color: var(--accent); opacity: 0.85; pointer-events: none; }
.ab-note-sign { margin-top: 22px; padding-top: 0; display: flex; align-items: center; gap: 16px; }
.ab-note-avatars { display: flex; }
.ab-note-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover; object-position: center 25%;
  border: 2px solid var(--surface); background: var(--bg-3);
}

/* Roadmap — vertical timeline */
.ab-vtimeline { margin-top: 4px; }
.ab-vt-row { display: grid; grid-template-columns: 88px 40px minmax(0, 1fr); align-items: start; }
.ab-vt-year { font-family: var(--font-sans); font-size: 30px; letter-spacing: -0.03em; color: var(--text-3); line-height: 1; padding-top: 19px; text-align: right; padding-right: 2px; font-feature-settings: 'tnum' 1; opacity: var(--vt-op, 1); transition: opacity .5s ease; }
.ab-vt-row.is-focus .ab-vt-year { color: var(--text) !important; }
.ab-vt-row.is-now .ab-vt-year { color: var(--accent) !important; }
.ab-vt-rail { position: relative; align-self: stretch; }
.ab-vt-rail::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1.5px; background: var(--line-strong); transform: translateX(-50%); }
.ab-vt-row:first-child .ab-vt-rail::before { top: 34px; }
.ab-vt-row:last-child .ab-vt-rail::before { bottom: auto; height: 34px; }
.ab-vt-node { position: absolute; left: 50%; top: 34px; width: 12px; height: 12px; border-radius: 50%; transform: translate(-50%, -50%); background: var(--accent-dim); border: 1.5px solid var(--accent-dim); z-index: 1; }
.ab-vt-row.is-now .ab-vt-node { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-faint); }
.ab-vt-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px 32px 30px; margin: 0 0 22px 12px; opacity: var(--vt-op, 1); transition: opacity .5s ease, transform .5s cubic-bezier(.22,1,.36,1), border-color .3s ease; }
.ab-vt-row.is-focus .ab-vt-card { border-color: var(--line-stronger); }
@media (prefers-reduced-motion: no-preference) {
  .ab-vt-card { transform: scale(var(--vt-scale, 1)); transform-origin: left center; }
}
.ab-vt-row.is-now .ab-vt-card { border-color: var(--accent-dim); }
.ab-vt-row:last-child .ab-vt-card { margin-bottom: 0; }
.ab-vt-phase { font-size: 10.5px; color: var(--accent); letter-spacing: 0.14em; margin-bottom: 14px; }
.ab-vt-title { font-family: var(--font-sans); font-size: clamp(21px, 2vw, 27px); font-weight: 450; letter-spacing: -0.025em; line-height: 1.14; color: var(--text); margin: 0 0 14px; }
.ab-vt-body { font-size: 15.5px; color: var(--text-2); line-height: 1.6; max-width: 64ch; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .ab-cards.cols-3, .ab-cards.cols-4 { grid-template-columns: 1fr 1fr; }
  .ab-plat-hub { width: 100%; }
  .ab-plat-grid { flex-wrap: wrap; justify-content: center; gap: 18px 8px; }
  .ab-plat-card { width: 30%; }
  .ab-plat-wires { display: none; }
  .ab-plat-corenode { margin-top: 40px; }
  .ab-story-grid { grid-template-columns: 1fr; }
  .ab-story-narrative { border-right: none; border-bottom: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .ab-vt-row { grid-template-columns: 60px 30px minmax(0, 1fr); }
  .ab-vt-year { font-size: 23px; padding-top: 16px; }
  .ab-vt-card { padding: 22px 22px 24px; }
}
@media (max-width: 600px) {
  .ab-cards.cols-3, .ab-cards.cols-4 { grid-template-columns: 1fr; }
  .ab-plat-grid { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 26px 12px !important; justify-items: center; }
  .ab-plat-card { width: auto !important; }
  .ab-plat-icon { width: 64px !important; height: 64px !important; }
  .ab-plat-corenode { margin-top: 30px !important; position: relative; }
  .ab-plat-corenode::before { content: ''; position: absolute; top: -30px; left: 50%; transform: translateX(-50%); width: 1.5px; height: 26px; background: linear-gradient(var(--accent-dim), var(--accent)); }
  .ab-story-narrative, .ab-note { padding: 30px 22px; }
  .ab-card { padding: 28px 24px 30px; }
}

/* Locations + News & Insights eyebrows — accent green to match the page's
   other section labels. Page-scoped (company.css only loads on /company),
   so the shared .section-num stays muted everywhere else. */
#company .section-num,
#insights .section-num { color: var(--accent); }
