/* TechChase — section-level styles */

/* ===== Hero ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(72px, 9vw, 140px) clamp(40px, 5vw, 70px);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg > * { pointer-events: none; }
.hero-glow {
  position: absolute;
  width: 720px; height: 720px;
  border-radius: 50%;
  background: radial-gradient(closest-side, oklch(0.83 0.14 200 / 0.18), transparent 70%);
  filter: blur(40px);
  top: -180px; right: -120px;
  animation: drift 18s ease-in-out infinite alternate;
}
.hero-glow--violet {
  background: radial-gradient(closest-side, oklch(0.72 0.10 280 / 0.14), transparent 70%);
  top: 30%; right: 30%;
  animation-duration: 26s;
}
@keyframes drift {
  to { transform: translate3d(-40px, 30px, 0); }
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { order: -1; min-height: 360px; }
}
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hero-h1 {
  font-size: clamp(48px, 7vw, 100px);
  font-weight: 480;
  letter-spacing: -0.035em;
  line-height: 0.96;
}
.hero-h1 .word {
  display: block;
  overflow: hidden;
}
.hero-h1 .word-i {
  display: inline-block;
  background: linear-gradient(180deg, oklch(0.98 0.005 240), oklch(0.86 0.04 200));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 30px oklch(0.83 0.14 200 / 0.18);
}
.hero-h1 .word:nth-child(3) .word-i {
  background: linear-gradient(180deg, oklch(0.95 0.04 200), oklch(0.65 0.16 210));
  -webkit-background-clip: text; background-clip: text;
  position: relative;
}
.hero-h1 .word-i.tail::after {
  content: "_";
  display: inline-block;
  margin-left: 6px;
  color: oklch(0.83 0.14 200);
}

.hero-sub {
  max-width: 56ch;
  font-size: clamp(16px, 1.15vw, 19px);
  color: var(--text-2);
}
.hero-sub em { font-style: normal; color: var(--text); }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 28px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}
.hero-stats dt { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px; }
.hero-stats dd { margin: 0; }
@media (max-width: 540px) { .hero-stats { grid-template-columns: 1fr 1fr; } }

/* ===== Hero stage / command center ====================================== */
.hero-stage { position: relative; min-height: 540px; }
.stage {
  position: relative;
  width: 100%; height: 100%;
  min-height: 540px;
}
.stage-orb {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: var(--r-xl);
  padding: 16px;
  overflow: hidden;
}
.stage-orb svg { width: 100%; height: 100%; max-width: 520px; }
.stage-orb-label {
  position: absolute;
  bottom: 14px; left: 16px;
  font-size: 11px; color: var(--text-2);
  display: inline-flex; align-items: center; gap: 8px;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.dot-mini { width: 6px; height: 6px; border-radius: 50%; background: var(--good); box-shadow: 0 0 10px var(--good); }
.orb-sweep { transform-origin: 120px 120px; animation: spin 8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.float-card {
  position: absolute;
  padding: 14px;
  width: 232px;
  box-shadow: 0 28px 80px -36px oklch(0 0 0 / 0.7);
  animation: float 7s ease-in-out infinite;
}
.float-card header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 11px; }
.float-card--a { top: 4%; left: -6%; animation-delay: 0s; }
.float-card--b { bottom: 8%; left: 2%; width: 248px; animation-delay: 1.5s; }
.float-card--c { top: 18%; right: -8%; animation-delay: 2.8s; }
@media (max-width: 1080px) {
  .float-card--a { left: 0; top: 0; }
  .float-card--b { bottom: 0; }
  .float-card--c { right: 0; top: 0; left: auto; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.chip-good {
  font-family: var(--font-mono); font-size: 10px;
  background: oklch(0.80 0.14 155 / 0.12);
  border: 1px solid oklch(0.80 0.14 155 / 0.45);
  color: oklch(0.85 0.12 155);
  padding: 2px 8px; border-radius: 6px;
  letter-spacing: 0.08em; text-transform: uppercase;
}

.pipe { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pipe li {
  display: grid; grid-template-columns: 12px 1fr auto;
  align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-2);
}
.pipe-dot { width: 8px; height: 8px; border-radius: 50%; background: oklch(0.83 0.14 200 / 0.5); box-shadow: 0 0 0 2px oklch(0.83 0.14 200 / 0.1); }
.pulse-soft { background: oklch(0.83 0.14 200); animation: pulse2 1.6s ease-in-out infinite; }
@keyframes pulse2 { 50% { box-shadow: 0 0 0 6px oklch(0.83 0.14 200 / 0.1); } }
.pipe .mono { color: var(--text-3); font-size: 11px; }

.metric { display: flex; align-items: baseline; gap: 8px; margin: 6px 0; }
.metric-big { font-size: 28px; letter-spacing: -0.02em; color: var(--text); }
.metric-sub { font-size: 11px; }

.agents { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 12px; color: var(--text-2); }
.agents li { display: flex; align-items: center; gap: 8px; }
.agents li i { width: 6px; height: 6px; border-radius: 50%; }
.agents b { color: var(--text); font-weight: 500; margin-left: auto; font-family: var(--font-mono); font-size: 11px; }

/* ===== Hero foot logos ================================================== */
.hero-foot {
  margin-top: clamp(40px, 6vw, 80px);
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  position: relative; z-index: 1;
}
.hero-foot-inner { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
@media (max-width: 720px) { .hero-foot-inner { grid-template-columns: 1fr; } }
.logo-ticker { overflow: hidden; }
.logo-ticker-track {
  display: flex; gap: 36px;
  white-space: nowrap;
  animation: ticker 60s linear infinite;
}
.logo-tag {
  font-family: var(--font-mono);
  font-size: 13px; color: var(--text-3);
  letter-spacing: 0.02em;
  transition: color .25s ease;
}
.logo-tag:hover { color: var(--text); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ===== Section headers ================================================== */
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 800px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.between { flex-direction: row; align-items: flex-end; justify-content: space-between; max-width: none; gap: 24px; flex-wrap: wrap; }
.section-h { font-size: clamp(34px, 4.4vw, 60px); font-weight: 480; line-height: 1.02; letter-spacing: -0.028em; }
.section-lede { color: var(--text-2); font-size: clamp(15px, 1.1vw, 18px); }

/* ===== Viz section ====================================================== */
.viz-section { position: relative; }
.viz-card {
  position: relative;
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, oklch(0.16 0.014 240), oklch(0.13 0.012 240));
  border: 1px solid var(--line-soft);
  overflow: hidden;
}
.viz-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12px;
}
.viz-toolbar-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.viz-svg-wrap { position: relative; padding: 24px; }
.viz-svg { width: 100%; height: auto; max-height: 540px; }
.viz-foot {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  padding: 20px 24px;
  border-top: 1px solid var(--line-soft);
  background: oklch(1 0 0 / 0.015);
}
.viz-foot-col { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.viz-foot-col strong { font-weight: 500; color: var(--text); }
@media (max-width: 760px) { .viz-foot { grid-template-columns: 1fr; } }

/* ===== Services grid ==================================================== */
.svc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
@media (max-width: 1000px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .svc-grid { grid-template-columns: 1fr; } }
.svc { padding: 24px; display: flex; flex-direction: column; gap: 14px; min-height: 320px; }
.svc-head { display: flex; justify-content: space-between; align-items: center; color: var(--text-3); }
.svc-icon {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: oklch(0.83 0.14 200 / 0.08);
  color: oklch(0.92 0.06 200);
  border: 1px solid oklch(0.83 0.14 200 / 0.25);
  transition: transform .3s ease;
}
.card:hover .svc-icon { transform: rotate(-6deg) scale(1.05); }
.svc h3 { margin-top: 2px; }
.svc-bullets { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 8px; font-size: 13.5px; color: var(--text-2); }
.svc-bullets li { display: flex; align-items: center; gap: 10px; }
.bullet-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); flex-shrink: 0; }
.svc-foot {
  margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line-soft);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--text-3);
  transition: color .25s ease;
}
.card:hover .svc-foot { color: oklch(0.92 0.06 200); }

/* ===== Process ========================================================== */
.process-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.process-step {
  display: grid; grid-template-columns: 48px 1fr;
  gap: 24px; padding: 28px 0;
  border-bottom: 1px solid var(--line-soft);
}
.process-step:last-child { border-bottom: 0; }
.process-rail { position: relative; display: flex; justify-content: center; padding-top: 6px; }
.process-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: oklch(0.16 0.02 220);
  border: 2px solid var(--cyan);
  box-shadow: 0 0 0 4px oklch(0.83 0.14 200 / 0.1), 0 0 18px oklch(0.83 0.14 200 / 0.4);
  z-index: 1;
}
.process-line {
  position: absolute; top: 24px; bottom: -28px;
  left: 50%; width: 1px;
  background: linear-gradient(180deg, oklch(0.83 0.14 200 / 0.4), transparent);
  transform: translateX(-50%);
}
.process-body { display: grid; grid-template-columns: 1fr auto; gap: 12px 32px; align-items: start; }
.process-num { font-size: 12px; color: var(--text-3); letter-spacing: 0.1em; grid-column: 1 / -1; }
.process-body h3 { grid-column: 1; }
.process-body p  { grid-column: 1; }
.process-out { grid-column: 2; align-self: end; text-align: right; display: flex; flex-direction: column; gap: 4px; }
.process-out strong { color: var(--text); font-weight: 500; }
@media (max-width: 720px) {
  .process-body { grid-template-columns: 1fr; }
  .process-out { text-align: left; }
}

/* ===== Case studies ===================================================== */
.case-list { display: grid; gap: 24px; }
.case {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 32px;
  padding: 32px;
  align-items: stretch;
}
@media (max-width: 900px) { .case { grid-template-columns: 1fr; padding: 22px; } }
.case-left { display: flex; flex-direction: column; gap: 14px; }
.case-title { font-size: clamp(22px, 2vw, 32px); }
.case-stack { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.case-link { display: inline-flex; align-items: center; gap: 8px; color: oklch(0.92 0.06 200); font-size: 13px; margin-top: auto; }
.case-link .mono { letter-spacing: 0.06em; }

.dash { padding: 16px; height: 100%; display: flex; flex-direction: column; gap: 14px; }
.dash header { display: flex; justify-content: space-between; align-items: center; font-size: 11px; }
.dash-metrics { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.dash-label { font-size: 11px; }
.dash-row { display: flex; align-items: center; gap: 10px; font-size: 14px; margin: 2px 0 6px; white-space: nowrap; }
.dash-before { color: var(--text-3); text-decoration: line-through; text-decoration-thickness: 1px; white-space: nowrap; }
.dash-arrow { color: var(--text-3); flex-shrink: 0; }
.dash-after { color: var(--text); font-weight: 500; white-space: nowrap; }
.dash-bar { height: 4px; background: oklch(1 0 0 / 0.05); border-radius: 4px; overflow: hidden; }
.dash-bar span { display: block; height: 100%; border-radius: 4px; box-shadow: 0 0 10px currentColor; transition: width 1.2s ease; }
.dash-delta { font-size: 11px; margin-top: 4px; letter-spacing: 0.05em; }
.dash-delta.pos { color: var(--cyan); }
.dash-delta.neg { color: var(--good); }
.dash-chart { width: 100%; height: 60px; margin-top: auto; }

/* ===== Portfolio ======================================================== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 900px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .portfolio-grid { grid-template-columns: 1fr; } }
.port {
  padding: 20px;
  display: flex; flex-direction: column; gap: 8px;
  min-height: 148px;
  text-decoration: none;
}
.port-top { display: flex; justify-content: space-between; align-items: center; }
.port-favurl { font-size: 11px; letter-spacing: 0; }
.port-go {
  width: 30px; height: 30px; border-radius: 8px;
  display: grid; place-items: center;
  background: oklch(1 0 0 / 0.03);
  border: 1px solid var(--line-soft);
  color: var(--text-3);
  transition: transform .3s ease, color .3s ease, border-color .3s ease, background .3s ease;
}
.port:hover .port-go {
  transform: translate(2px, -2px);
  color: oklch(0.12 0.02 240);
  background: var(--cyan);
  border-color: var(--cyan);
}
.port-name {
  margin-top: auto;
  font-size: clamp(19px, 1.6vw, 23px);
  font-weight: 500; letter-spacing: -0.02em;
  color: var(--text);
}
.port-cat { font-size: 13px; }

/* ===== Outcomes ========================================================= */
.outcomes-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.outcome {
  padding: 36px 24px;
  border-right: 1px solid var(--line-soft);
  display: flex; flex-direction: column; gap: 8px;
}
.outcome:last-child { border-right: 0; }
.outcome .muted { font-size: 13px; max-width: 28ch; }
@media (max-width: 820px) {
  .outcomes-grid { grid-template-columns: 1fr 1fr; }
  .outcome:nth-child(2) { border-right: 0; }
  .outcome:nth-child(1), .outcome:nth-child(2) { border-bottom: 1px solid var(--line-soft); }
}

/* ===== Quote ============================================================ */
.quote-section { text-align: center; }
.quote-wrap { max-width: 880px; margin: 0 auto; }
.quote-wrap blockquote {
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 480;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 14px 0 24px;
  color: var(--text);
  text-wrap: balance;
}
.quote-wrap footer { font-size: 14px; color: var(--text-2); }
.quote-mark { width: 48px; height: auto; margin: 0 auto; display: block; }

/* ===== CTA ============================================================== */
.cta-section { position: relative; overflow: hidden; }
.cta-wrap { position: relative; }
.cta-glow {
  position: absolute; inset: -20% 10%; pointer-events: none;
  background: radial-gradient(60% 50% at 50% 50%, oklch(0.83 0.14 200 / 0.18), transparent 70%);
  filter: blur(40px);
  z-index: 0;
}
.cta-inner {
  position: relative; z-index: 1;
  padding: clamp(36px, 5vw, 64px);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 20px;
}
.cta-inner > * { max-width: 720px; }
.cta-h { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.05; letter-spacing: -0.03em; }
.cta-trust { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 6px; opacity: 0.7; }

/* ===== Footer =========================================================== */
.footer { padding-block: 60px 28px; border-top: 1px solid var(--line-soft); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}
@media (max-width: 840px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand { max-width: 320px; }
.footer-region { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 14px; }
.footer-col h4 { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 400; margin: 0 0 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-col a { color: var(--text-2); font-size: 14px; transition: color .2s ease; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line-soft);
  padding-top: 24px;
  font-size: 11px; letter-spacing: 0.08em;
}
@media (max-width: 640px) { .footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; } }
