/* ============================================================
   Tribeo — Website shared styles
   Built on colors_and_type.css tokens. Dark, premium, founder-facing.
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image: var(--wash);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}
::selection { background: rgba(123,47,255,0.35); color: #fff; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 40px; }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--violet-400);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow .rule { width: 26px; height: 1px; background: var(--violet-500); display: inline-block; }
h1, h2, h3 { font-family: var(--f-head); letter-spacing: -.02em; text-wrap: balance; }
.display {
  font-family: var(--f-head); font-weight: 700;
  font-size: clamp(42px, 6.5vw, 80px); line-height: 0.97; letter-spacing: -.035em;
}
.h2 {
  font-family: var(--f-head); font-weight: 600;
  font-size: clamp(28px, 4vw, 44px); line-height: 1.04; letter-spacing: -.025em;
}
.lede { color: var(--text-mut); font-size: clamp(17px, 1.9vw, 21px); line-height: 1.55; }
.violet { color: var(--violet-400); }
.orange { color: var(--orange-400); }

/* ============================================================
   Buttons (from brand)
   ============================================================ */
.btn {
  font-family: var(--f-head); font-weight: 500; font-size: 14.5px; letter-spacing: -.01em;
  border-radius: var(--r-md); padding: 13px 22px; border: 1px solid transparent;
  cursor: pointer; transition: all .22s var(--ease-settle);
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none; white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--violet-500); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.15) inset; }
.btn-primary:hover { background: var(--violet-400); box-shadow: var(--glow-violet); transform: translateY(-1px); }
.btn-cta { background: var(--orange-500); color: #1a0a02; font-weight: 600; }
.btn-cta:hover { background: var(--orange-400); box-shadow: var(--glow-orange); transform: translateY(-1px); }
.btn-secondary { background: var(--glass); color: var(--text); border-color: var(--line-2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn-secondary:hover { background: var(--glass-2); border-color: var(--violet-500); }
.btn-ghost { background: transparent; color: var(--text-mut); border-color: var(--line-2); }
.btn-ghost:hover { color: var(--text); background: var(--glass); border-color: var(--line-2); }
.btn-lg { padding: 15px 26px; font-size: 15.5px; }

/* ============================================================
   Tags / chips
   ============================================================ */
.tag {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em;
  padding: 6px 13px; border-radius: var(--r-pill); border: 1px solid var(--line-2);
  background: var(--glass); color: var(--text-mut);
  display: inline-flex; align-items: center; gap: 7px;
}
.tag.violet { color: var(--violet-300); border-color: rgba(123,47,255,.35); background: rgba(123,47,255,.10); }
.tag.orange { color: var(--orange-400); border-color: rgba(255,92,26,.35); background: rgba(255,92,26,.10); }
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 28px; transition: all .25s var(--ease-settle);
}
.card:hover { border-color: var(--violet-500); box-shadow: var(--glow-violet); transform: translateY(-2px); }

/* Glass panel (sits over content / ambient) */
.glass {
  background: var(--glass); border: 1px solid var(--line-2); border-radius: var(--r-xl);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}

/* ============================================================
   Fields
   ============================================================ */
.field label {
  display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-mut); margin-bottom: 9px;
}
.field input {
  width: 100%; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-md);
  padding: 14px 15px; color: var(--text); font-family: var(--f-body); font-size: 15px;
  transition: all .2s ease;
}
.field input::placeholder { color: var(--text-dim); }
.field input:focus { outline: none; border-color: var(--violet-500); box-shadow: 0 0 0 3px rgba(123,47,255,.18); }

/* ============================================================
   Navigation — sticky glass bar
   ============================================================ */
.nav-shell { position: sticky; top: 0; z-index: 50; padding: 16px 0; }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 12px 14px 12px 20px;
  transition: all .25s var(--ease-settle);
}
.nav.scrolled { background: rgba(13,13,13,0.78); }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand img { width: 26px; height: 26px; }
.brand span { font-family: var(--f-head); font-weight: 600; font-size: 19px; letter-spacing: -.02em; color: var(--text); }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a {
  color: var(--text-mut); text-decoration: none; font-size: 14px;
  transition: color .2s; position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -19px; height: 1px;
  background: var(--violet-500);
}
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; background: none; border: none; color: var(--text); cursor: pointer; padding: 8px; }

/* ============================================================
   Section rhythm
   ============================================================ */
.section { padding: 92px 0; border-top: 1px solid var(--line); }
.section.tight { padding: 64px 0; }
.section-head { max-width: 60ch; margin-bottom: 48px; }
.section-head .h2 { margin: 16px 0 14px; }

/* ============================================================
   Footer
   ============================================================ */
.footer { padding: 56px 0 64px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
.footer-links { display: flex; gap: 26px; align-items: center; }
.footer-links a { color: var(--text-mut); text-decoration: none; font-size: 14px; transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.footer-social {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border-radius: var(--r-md); border: 1px solid var(--line-2); color: var(--text-mut);
  transition: all .22s var(--ease-settle);
}
.footer-social:hover { color: var(--text); border-color: var(--violet-500); box-shadow: var(--glow-violet); }
.footer-tag { font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; color: var(--text-dim); }

/* ============================================================
   Node-network hero visual (abstract org structure)
   ============================================================ */
.node-stage {
  position: relative; width: 100%; aspect-ratio: 1 / 1; max-width: 520px; margin-left: auto;
}
.node-stage svg { width: 100%; height: 100%; overflow: visible; display: block; }
.node-glow-v {
  position: absolute; width: 60%; height: 60%; left: 8%; top: 10%; border-radius: 50%;
  background: radial-gradient(circle, rgba(123,47,255,0.45), transparent 70%);
  filter: blur(40px); pointer-events: none;
}
.node-glow-o {
  position: absolute; width: 42%; height: 42%; right: 6%; bottom: 8%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,92,26,0.34), transparent 70%);
  filter: blur(38px); pointer-events: none;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
.node-float { animation: floaty 7s var(--ease-settle) infinite; }

/* Floating glass chips layered over the node stage */
.float-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.05); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: 8px 14px;
  font-family: var(--f-mono); font-size: 11.5px; color: var(--text); letter-spacing: .03em;
  box-shadow: 0 8px 30px -12px rgba(0,0,0,.6);
}

/* ============================================================
   Logo placeholder cells (social proof)
   ============================================================ */
.logo-cell {
  display: flex; align-items: center; justify-content: center; height: 64px;
  border: 1px dashed var(--line-2); border-radius: var(--r-md); background: var(--bg-2);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-dim);
}

/* ============================================================
   Image / asset placeholder (striped)
   ============================================================ */
.ph {
  display: flex; align-items: center; justify-content: center;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.025) 0 10px, rgba(255,255,255,0.05) 10px 20px),
    var(--bg-3);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-dim);
}

/* ============================================================
   Numbered step badge
   ============================================================ */
.step-badge {
  width: 44px; height: 44px; border-radius: var(--r-md);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--f-head); font-weight: 600; font-size: 18px; color: #fff;
  background: linear-gradient(160deg, var(--violet-500), var(--violet-700));
  box-shadow: var(--glow-violet); flex-shrink: 0;
}

/* Accent line atop glass cards */
.accent-line { height: 2px; width: 40px; background: var(--violet-500); border-radius: 2px; margin-bottom: 22px; }
.accent-line.o { background: var(--orange-500); }

/* Icon disc */
.icon-disc {
  width: 46px; height: 46px; border-radius: var(--r-md);
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(123,47,255,0.10); border: 1px solid rgba(123,47,255,.30);
  color: var(--violet-300); margin-bottom: 20px;
}
.icon-disc svg { width: 22px; height: 22px; }

/* ============================================================
   Grids
   ============================================================ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }

/* ============================================================
   Big CTA banner
   ============================================================ */
.cta-banner {
  position: relative; overflow: hidden; border-radius: var(--r-2xl);
  background: linear-gradient(160deg, var(--bg-2), var(--bg));
  border: 1px solid var(--line); padding: 72px 56px; text-align: center;
}
.cta-banner.orange-wash::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 100% at 50% 0%, rgba(255,92,26,0.16), transparent 62%);
}
.cta-banner.violet-wash::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 100% at 50% 0%, rgba(123,47,255,0.18), transparent 62%);
}
.cta-banner > * { position: relative; }

/* "What we don't do" — strike list */
.dont-list { display: grid; gap: 2px; }
.dont-item {
  display: flex; align-items: center; gap: 16px; padding: 22px 4px;
  border-bottom: 1px solid var(--line); font-family: var(--f-head); font-weight: 500;
  font-size: clamp(18px, 2.2vw, 24px); letter-spacing: -.01em; color: var(--text);
}
.dont-item:last-child { border-bottom: none; }
.dont-x {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,92,26,0.10); border: 1px solid rgba(255,92,26,.30); color: var(--orange-400);
}
.dont-x svg { width: 16px; height: 16px; }

/* Timeline (process) */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.timeline::before {
  content: ""; position: absolute; top: 22px; left: 6%; right: 6%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent); z-index: 0;
}

/* Role card meta row */
.role-meta { display: flex; gap: 22px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.role-meta .k { font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); margin-top: 3px; }
.role-meta .v { font-family: var(--f-head); font-weight: 600; font-size: 16px; }
.link-violet {
  font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .04em; color: var(--violet-300);
  text-decoration: none; display: inline-flex; align-items: center; gap: 7px; transition: gap .2s, color .2s;
}
.link-violet:hover { color: var(--violet-400); gap: 11px; }

/* Role category list (landing — "roles that move the needle") */
.roles-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 28px;
  padding: 20px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.roles-row:last-child { border-bottom: none; }
.roles-cat {
  display: flex; align-items: center; gap: 14px; min-width: 220px;
  font-family: var(--f-head); font-weight: 600; font-size: 19px; letter-spacing: -.01em; color: var(--text);
}
.roles-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--violet-500); flex-shrink: 0; box-shadow: var(--glow-violet); }
.roles-list { font-family: var(--f-mono); font-size: 13.5px; letter-spacing: .02em; color: var(--text-mut); }
@media (max-width: 560px) { .roles-row { gap: 6px; } .roles-cat { min-width: 0; } }

/* ============================================================
   Client logo marquee (carousel)
   ============================================================ */
.logo-marquee {
  position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.logo-track {
  display: flex; gap: 60px; width: max-content; align-items: center;
  animation: logo-scroll 40s linear infinite;
}
.logo-marquee:hover .logo-track { animation-play-state: paused; }
.logo-tile {
  flex: 0 0 auto; display: flex; align-items: center; height: 44px;
}
.logo-tile img {
  display: block; height: 30px; width: auto; opacity: .52;
  transition: opacity .25s var(--ease-settle);
}
.logo-tile:hover img { opacity: .95; }
@keyframes logo-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .logo-track { animation: none; } }
@media (max-width: 760px) { .logo-track { gap: 40px; } .logo-tile { height: 34px; } .logo-tile img { height: 24px; } }

/* ============================================================
   Responsive (continued)
   ============================================================ */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .node-stage { margin: 0 auto; max-width: 420px; }
  .grid-3, .grid-4, .timeline { grid-template-columns: 1fr 1fr; }
  .timeline::before { display: none; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; position: absolute; top: 72px; left: 24px; right: 24px; flex-direction: column;
    gap: 18px; align-items: flex-start; background: rgba(13,13,13,0.94); backdrop-filter: blur(14px);
    border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 22px;
  }
  .nav-links.open a.active::after { display: none; }
  .nav-toggle { display: inline-flex; }
  .section { padding: 64px 0; }
  .grid-2, .grid-3, .grid-4, .timeline { grid-template-columns: 1fr; }
  .cta-banner { padding: 48px 26px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 760px) {
  .nav-right .btn-text-hide { display: none; }
}
