/* ================================================================
   STUDIO — Agentic Data Fabric
   studio.css  (layered on top of case-study.css)
================================================================ */

/* ── Color tokens ────────────────────────────────────────────── */
.st-page {
  --st:        #10b981;
  --st-bright: #34d399;
  --st-violet: #a78bfa;
  --st-amber:  #fbbf24;
  --st-glow:   rgba(16,185,129,.12);
  --st-border: rgba(16,185,129,.26);
  --st-dim:    rgba(16,185,129,.07);
  --st-v-dim:  rgba(167,139,250,.09);
  --st-a-dim:  rgba(251,191,36,.1);
}


/* ================================================================
   HERO
================================================================ */
.st-hero {
  position: relative;
  overflow: hidden;
  padding: 140px 0 80px;
  background: var(--bg);
}

.st-hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(90px);
}
.st-orb-1 {
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(16,185,129,.18) 0%, transparent 70%);
  top: -80px; right: 100px;
  animation: stOrb1 9s ease-in-out infinite alternate;
}
.st-orb-2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(167,139,250,.12) 0%, transparent 70%);
  bottom: 40px; left: -60px;
  animation: stOrb2 11s ease-in-out infinite alternate;
}
.st-orb-3 {
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(16,185,129,.08) 0%, transparent 70%);
  top: 50%; right: 30%;
  animation: stOrb3 13s ease-in-out infinite alternate;
}

@keyframes stOrb1 {
  from { transform: translate(0, 0); }
  to   { transform: translate(-40px, 25px); }
}
@keyframes stOrb2 {
  from { transform: translate(0, 0); }
  to   { transform: translate(30px, -20px); }
}
@keyframes stOrb3 {
  from { transform: translate(-50%, -50%) scale(1); }
  to   { transform: translate(-50%, -50%) scale(1.2); }
}

/* Circuit grid overlay */
.st-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(16,185,129,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,185,129,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 55% at 60% 45%, transparent 35%, black 100%);
}

.st-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 52px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.st-eyebrow {
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--st);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.st-eyebrow::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--st);
  opacity: .6;
}

.st-hero-title {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 4.5vw, 4.2rem);
  line-height: 1.06;
  color: var(--text);
  margin-bottom: 24px;
  letter-spacing: -.01em;
}

.st-gradient-text {
  background: linear-gradient(120deg, var(--st) 0%, var(--st-violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.st-hero-desc {
  font-size: 1rem;
  line-height: 1.78;
  color: var(--text-dim);
  max-width: 500px;
  margin-bottom: 32px;
}

.st-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.st-chip {
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: .7rem;
  letter-spacing: .06em;
  color: var(--text-dimmer);
}
.st-chip.active {
  border-color: var(--st-border);
  color: var(--st);
  background: var(--st-dim);
}

/* ── Pipeline SVG viz ── */
.st-hero-viz {
  display: flex;
  align-items: center;
  justify-content: center;
}
.st-pipeline-svg {
  width: 100%;
  max-width: 480px;
  height: auto;
  overflow: visible;
}

/* Animated flow lines */
.st-flow {
  stroke-dasharray: 5 12;
  animation: stFlow 1.8s linear infinite;
}
.st-flow-2 { animation-delay: .4s; }
.st-flow-3 { animation-delay: .8s; }
.st-flow-4 { animation-delay: 1.2s; }
.st-flow-out { animation-duration: 2.2s; }
.st-flow-out-2 { animation-duration: 2.2s; animation-delay: .5s; }
.st-flow-out-3 { animation-duration: 2.2s; animation-delay: 1s; }
.st-flow-out-4 { animation-duration: 2.2s; animation-delay: 1.5s; }

@keyframes stFlow {
  0%   { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -51; }
}

/* Agent node pulse ring */
.st-agent-pulse {
  transform-origin: center;
  animation: agentPulse 2.4s ease-in-out infinite;
}
@keyframes agentPulse {
  0%, 100% { opacity: .5; r: 22px; }
  50%       { opacity: .15; r: 28px; }
}

/* ── Meta strip ── */
.st-meta-strip {
  max-width: var(--max-w);
  margin: 60px auto 0;
  padding: 0 52px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.st-meta-item {
  padding: 28px 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid var(--border);
  padding-right: 32px;
}
.st-meta-item:last-child { border-right: none; }
.st-meta-label {
  font-size: .6rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-dimmer);
}
.st-meta-val {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--text);
}
.st-meta-sub {
  font-size: .72rem;
  color: var(--text-dimmer);
}


/* ================================================================
   STATEMENT SECTION
================================================================ */
.st-statement-section {
  padding: 96px 52px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.st-section-tag {
  display: block;
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--st);
  margin-bottom: 36px;
}
.st-statement {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  line-height: 1.5;
  color: var(--text);
  max-width: 860px;
}
.st-stmt-hi  { color: var(--st); }
.st-stmt-em  { color: var(--text); font-style: italic; }
.st-stmt-dim { color: var(--text-dim); }

.st-context-note {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  padding: 24px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--st);
  border-radius: 0 10px 10px 0;
  background: var(--st-dim);
  max-width: 680px;
}
.st-context-note p { font-size: .875rem; color: var(--text-dim); line-height: 1.7; margin-bottom: 8px; }
.st-context-note p:last-child { margin-bottom: 0; }
.st-ctx-icon { flex-shrink: 0; margin-top: 2px; }


/* ================================================================
   METRICS
================================================================ */
.st-metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 80px;
}
.st-metric {
  background: var(--bg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.st-metric-val {
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--st);
  line-height: 1;
}
.st-metric-key {
  font-size: .75rem;
  color: var(--text-dimmer);
  letter-spacing: .04em;
}


/* ================================================================
   BEFORE / AFTER
================================================================ */
.st-before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 80px;
}
.st-ba-col { background: var(--bg2); padding: 36px; }
.st-ba-col:first-child { border-right: none; }

.st-ba-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .65rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.st-ba-before .st-ba-label { color: #ef4444; background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.2); }
.st-ba-after  .st-ba-label { color: var(--st); background: var(--st-dim); border: 1px solid var(--st-border); }

.st-ba-col h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 20px;
}

.st-ba-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.st-ba-list li {
  display: flex;
  gap: 12px;
  font-size: .875rem;
  color: var(--text-dim);
  line-height: 1.5;
}
.st-ba-before .st-ba-list li::before {
  content: '×';
  color: #ef4444;
  opacity: .7;
  flex-shrink: 0;
  font-size: .9rem;
  margin-top: 1px;
}
.st-ba-after .st-ba-list li::before {
  content: '✓';
  color: var(--st);
  flex-shrink: 0;
  font-size: .85rem;
  margin-top: 1px;
}


/* ================================================================
   AGENT FLEET
================================================================ */
.st-fleet-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 80px;
}

.st-agent-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 20px;
  background: var(--bg2);
  position: relative;
  overflow: hidden;
  transition: border-color .25s, transform .25s;
}
.st-agent-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--st), var(--st-violet));
  opacity: 0;
  transition: opacity .25s;
}
.st-agent-card:hover { border-color: var(--st-border); transform: translateY(-3px); }
.st-agent-card:hover::before { opacity: 1; }

.st-agent-id {
  font-size: .6rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--st);
  margin-bottom: 4px;
}
.st-agent-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 12px;
}
.st-agent-role {
  font-size: .65rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--st-violet);
  padding: 3px 10px;
  border: 1px solid rgba(167,139,250,.25);
  border-radius: 100px;
  background: var(--st-v-dim);
  display: inline-flex;
  margin-bottom: 14px;
}
.st-agent-desc {
  font-size: .78rem;
  color: var(--text-dim);
  line-height: 1.6;
}
.st-agent-icon {
  position: absolute;
  bottom: 16px;
  right: 16px;
  font-size: 1.6rem;
  opacity: .12;
  user-select: none;
}


/* ================================================================
   DESIGN CHALLENGES
================================================================ */
.st-challenges-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 80px;
}

.st-challenge-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  background: var(--bg2);
}
.st-challenge-num {
  font-family: var(--serif);
  font-size: .875rem;
  color: var(--st);
  opacity: .5;
  margin-bottom: 12px;
}
.st-challenge-card h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}
.st-challenge-card p {
  font-size: .875rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 16px;
}
.st-challenge-card p:last-child { margin-bottom: 0; }
.st-solution-label {
  font-size: .6rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--st);
  display: block;
  margin-bottom: 6px;
  margin-top: 16px;
}


/* ================================================================
   INTERFACE DECISIONS (reuse Navigator pattern)
================================================================ */
.st-decisions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 80px;
}
.st-decision-card {
  border: 1px solid var(--border);
  border-top: 2px solid var(--st);
  border-radius: 0 0 14px 14px;
  padding: 28px;
  background: var(--bg2);
}
.st-dec-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.st-dec-label {
  font-size: .6rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--st);
  margin-bottom: 8px;
}
.st-dec-text {
  font-family: var(--serif);
  font-size: .95rem;
  color: var(--text);
  line-height: 1.45;
}
.st-rat-label {
  font-size: .6rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--st-violet);
  margin-bottom: 8px;
}
.st-rat-text {
  font-size: .82rem;
  color: var(--text-dim);
  line-height: 1.65;
}


/* ================================================================
   PAUSED / DELIBERATELY AVOIDED
================================================================ */
.st-paused-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 80px;
}
.st-paused-item {
  border: 1px solid var(--border);
  border-left: 3px solid var(--st-amber);
  border-radius: 0 10px 10px 0;
  padding: 20px 20px;
  background: var(--bg2);
}
.st-paused-item h4 {
  font-size: .875rem;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 6px;
}
.st-paused-item p {
  font-size: .78rem;
  color: var(--text-dim);
  line-height: 1.6;
}


/* ================================================================
   PROVENANCE STRIP
================================================================ */
.st-provenance-strip {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 80px;
}
.st-prov-header {
  padding: 18px 24px;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.st-prov-title {
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.st-prov-badge {
  font-size: .62rem;
  letter-spacing: .08em;
  color: var(--st);
  background: var(--st-dim);
  border: 1px solid var(--st-border);
  padding: 3px 10px;
  border-radius: 100px;
}
.st-prov-table { width: 100%; }
.st-prov-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  font-size: .78rem;
}
.st-prov-row:last-child { border-bottom: none; }
.st-prov-row.header { background: var(--bg3); }
.st-prov-row.header span { font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dimmer); }
.st-entity-name { color: var(--text); font-weight: 400; }
.st-entity-src { color: var(--text-dimmer); }
.st-entity-agent { color: var(--st-violet); }
.st-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: .62rem;
  letter-spacing: .06em;
}
.st-trust-high { background: rgba(16,185,129,.12); color: var(--st); border: 1px solid rgba(16,185,129,.22); }
.st-trust-med  { background: rgba(251,191,36,.1);  color: var(--st-amber); border: 1px solid rgba(251,191,36,.22); }
.st-trust-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }


/* ================================================================
   OUTCOMES
================================================================ */
.st-outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 80px;
}
.st-outcome-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  background: var(--bg2);
}
.st-outcome-card .out-num {
  font-family: var(--serif);
  font-size: 2.8rem;
  color: var(--st);
  line-height: 1;
  margin-bottom: 8px;
}
.st-outcome-card .out-label {
  font-size: .8rem;
  color: var(--text-dim);
  line-height: 1.6;
}


/* ================================================================
   NEXT PROJECT LINK
================================================================ */
.st-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  text-decoration: none;
  color: var(--text-dim);
  font-size: .8rem;
  letter-spacing: .06em;
  transition: color .2s;
}
.st-next:hover { color: var(--text); }
.st-next-label { font-family: var(--serif); font-size: 1.8rem; color: var(--text); }


/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 1024px) {
  .st-hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .st-fleet-grid { grid-template-columns: repeat(3, 1fr); }
  .st-meta-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .st-hero { padding: 120px 0 60px; }
  .st-hero-inner { padding: 0 24px; }
  .st-statement-section { padding: 64px 24px; }
  .st-fleet-grid { grid-template-columns: 1fr 1fr; }
  .st-challenges-grid,
  .st-decisions-grid,
  .st-before-after { grid-template-columns: 1fr; }
  .st-paused-list { grid-template-columns: 1fr; }
  .st-metrics-row { grid-template-columns: repeat(2, 1fr); }
  .st-outcomes-grid { grid-template-columns: 1fr; }
  .st-meta-strip { padding: 0 24px; }
  .st-prov-row { grid-template-columns: 1.5fr 1fr 1fr; }
  .st-prov-row span:nth-child(4),
  .st-prov-row span:nth-child(5) { display: none; }
}
