/* ============================================================
   Torc Infotech — Design System
   Edit tokens in :root. Components below are grouped by section.
   Fonts (Inter + Satoshi) are loaded from fonts.css.
   ============================================================ */

@import url("/site/assets/fonts.css");

/* ---------- Design tokens ---------- */
:root {
  --bg:        #000000;
  --bg-2:      #08090F;
  --bg-3:      #0E1019;

  --text:      #F7F8FB;
  --muted:     #A0A4B8;
  --muted-2:   #6A6F82;

  --brand:     #1A2DD8;   /* primary blue */
  --brand-2:   #4357FF;   /* brighter blue */
  --brand-3:   #7B8AFF;   /* light blue (labels) */
  --violet:    #4357FF;
  --gold:      #FFB347;   /* amplifier */
  --green:     #2DD489;   /* live / positive */
  --red:       #FF5470;

  --line:      rgba(255,255,255,0.07);
  --line-2:    rgba(255,255,255,0.10);
  --line-3:    rgba(255,255,255,0.14);

  --card:      linear-gradient(180deg, rgba(20,22,31,0.55), rgba(8,9,15,0.80));
  --card-feat: linear-gradient(135deg, rgba(26,45,216,0.18), rgba(67,87,255,0.08), #0E1019);

  --sans: "Satoshi", "Inter", system-ui, -apple-system, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", "SF Mono", ui-monospace, "Roboto Mono", monospace;

  --maxw: 1200px;
  --pad:  40px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(67,87,255,0.35); }

/* ---------- Layout helpers ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section + .section { border-top: 1px solid var(--line); }

.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand-3);
  margin-bottom: 16px;
}

.h-display {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  font-size: clamp(34px, 5vw, 58px);
}
.h-section {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  font-size: clamp(30px, 4vw, 46px);
}
.muted { color: var(--muted-2); font-weight: 500; }
.lead { color: var(--muted); font-size: clamp(15px, 1.3vw, 18px); line-height: 1.65; }

.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 500;
  padding: 13px 26px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 30px -8px rgba(26,45,216,0.8);
}
.btn-primary:hover { background: #2236e8; transform: translateY(-2px); }
.btn-ghost {
  background: rgba(255,255,255,0.025);
  border-color: var(--line-3);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255,255,255,0.06); transform: translateY(-2px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 16px var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-logo { width: 132px; }
.nav-logo svg { width: 100%; height: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-link { font-size: 14px; color: var(--muted); transition: color 0.2s; }
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--brand-3); }
.nav-cta { font-size: 14px; padding: 9px 20px; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 120px 0 80px; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg .grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 25%, #000 25%, transparent 75%);
          mask-image: radial-gradient(ellipse 90% 60% at 50% 25%, #000 25%, transparent 75%);
}
.hero-bg .glow {
  position: absolute; top: -280px; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 760px;
  background: radial-gradient(ellipse at center, rgba(26,45,216,0.5) 0%, rgba(67,87,255,0.13) 35%, transparent 65%);
  filter: blur(80px);
}
.hero-bg .orb { position: absolute; border-radius: 50%; filter: blur(60px); }
.hero-bg .orb-1 { top: 90px; left: 4%; width: 260px; height: 260px; background: radial-gradient(circle, rgba(67,87,255,0.32), transparent 70%); }
.hero-bg .orb-2 { top: 180px; right: 4%; width: 220px; height: 220px; background: radial-gradient(circle, rgba(88,213,255,0.22), transparent 70%); }
/* Hero background video (gradient) + legibility scrim */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-scrim {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.66) 0%, rgba(0,0,0,0.30) 42%, rgba(0,0,0,0) 72%),
    linear-gradient(180deg, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,0.20) 70%, var(--bg) 100%);
}
.hero--center .hero-scrim {
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.5) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0) 35%, var(--bg) 100%);
}
/* Stronger scrim + explicit white text when hero has a video background */
.hero--video .hero-scrim {
  background:
    linear-gradient(90deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.50) 45%, rgba(0,0,0,0.10) 75%),
    linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0.25) 72%, var(--bg) 100%);
}
.hero--video .hero-title,
.hero--video .eyebrow { color: #ffffff; }
.hero--video .hero-title { text-shadow: 0 2px 24px rgba(0,0,0,0.45); }
.hero--video .hero-title .muted { color: rgba(255,255,255,0.60); }
.hero--video .hero-sub { color: rgba(255,255,255,0.80); font-weight: 400; }
.hero-inner { position: relative; z-index: 1; }
.hero--center { text-align: center; }
.hero--center .hero-inner { max-width: 820px; margin: 0 auto; }
.hero-title { font-family: var(--sans); font-weight: 600; letter-spacing: -0.04em; line-height: 0.98; font-size: clamp(40px, 6.4vw, 80px); margin-bottom: 22px; }
.hero-title .muted { display: block; }
.hero--left .hero-title { max-width: 14ch; }
.hero-sub { max-width: 600px; margin-bottom: 32px; }
.hero--center .hero-sub { margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero--center .hero-actions { justify-content: center; }

/* Badge (case-studies hero) */
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px; margin-bottom: 28px;
  border: 1px solid var(--line-3); border-radius: 999px;
  background: rgba(255,255,255,0.025); backdrop-filter: blur(10px);
}
.badge .pill {
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em; color: #fff;
  padding: 3px 9px; border-radius: 999px; background: var(--brand);
  box-shadow: 0 0 20px rgba(26,45,216,0.6);
}
.badge .meta { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }

/* ---------- Stat rows ---------- */
.stat-row { display: flex; flex-wrap: wrap; gap: 56px; }
.hero--center .stat-row { justify-content: center; }
.stat { }
.stat-value { font-family: var(--sans); font-weight: 600; letter-spacing: -0.03em; font-size: clamp(28px, 3vw, 38px); line-height: 1; }
.stat-value .plus { color: var(--muted-2); font-weight: 300; }
.stat-label { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted-2); margin-top: 6px; }

/* ---------- Logo strip ---------- */
.logo-strip { padding: 48px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logo-strip-label { text-align: center; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted-2); margin-bottom: 28px; }
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 72px; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img { height: 34px; width: auto; opacity: 0.55; filter: grayscale(1) brightness(1.6); transition: opacity 0.2s; }
.marquee-track img:hover { opacity: 0.95; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Cards (shared glass) ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; }

/* ---------- Service cards ---------- */
.service-card {
  display: flex; flex-direction: column; padding: 32px;
  border-radius: 18px; border: 1px solid var(--line); background: var(--card);
  min-height: 460px; position: relative; overflow: hidden;
  transition: transform 0.35s, border-color 0.35s;
}
.service-card:hover { transform: translateY(-4px); border-color: rgba(26,45,216,0.5); }
.service-card .glow {
  position: absolute; top: -120px; right: -120px; width: 280px; height: 280px;
  border-radius: 50%; background: radial-gradient(circle, rgba(26,45,216,0.4), transparent 70%);
  opacity: 0; transition: opacity 0.5s; pointer-events: none;
}
.service-card:hover .glow { opacity: 1; }
.service-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; position: relative; z-index: 1; }
.service-num { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--brand-3); font-weight: 500; }
.icon-box {
  width: 46px; height: 46px; border: 1px solid var(--line-3); border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.04); color: var(--brand-3); flex-shrink: 0;
}
.icon-box svg { width: 22px; height: 22px; }
.service-title { font-family: var(--sans); font-size: 26px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; margin-bottom: 14px; position: relative; z-index: 1; }
.service-desc { font-size: 14.5px; color: var(--muted); line-height: 1.6; margin-bottom: 24px; flex-grow: 1; position: relative; z-index: 1; }

.tag-row { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1; }
.tag-item { display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.tag { font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.1em; padding: 3px 7px; border-radius: 4px; flex-shrink: 0; margin-top: 1px; font-weight: 500; }
.tag-amplifier { color: var(--gold); background: rgba(255,179,71,0.08); border: 1px solid rgba(255,179,71,0.22); }
.tag-agent { color: var(--brand-3); background: rgba(26,45,216,0.15); border: 1px solid rgba(26,45,216,0.25); }

/* ---------- Capabilities (Why Torc) ---------- */
.cap-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 52px; }
.cap-tab { position: relative; padding: 18px 16px; text-align: left; background: none; border: none; cursor: pointer; border-right: 1px solid var(--line); transition: background 0.2s; }
.cap-tab:last-child { border-right: none; }
.cap-tab:hover { background: rgba(255,255,255,0.025); }
.cap-tab .bar { position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(to right, var(--brand-2), var(--violet)); opacity: 0; transition: opacity 0.2s; }
.cap-tab.active .bar { opacity: 1; }
.cap-tab .n { font-family: var(--mono); font-size: 11px; color: var(--muted-2); margin-right: 8px; font-weight: 500; }
.cap-tab .t { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 500; transition: color 0.2s; }
.cap-tab.active .t { color: var(--text); }

.cap-panel { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.cap-panel[hidden] { display: none; }
.cap-kicker { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--brand-3); text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 20px; }
.cap-title { font-family: var(--sans); font-size: clamp(26px, 3.4vw, 40px); font-weight: 600; line-height: 1.1; letter-spacing: -0.025em; margin-bottom: 16px; }
.cap-desc { color: var(--muted); font-size: 16px; line-height: 1.65; margin-bottom: 28px; max-width: 460px; }
.cap-feats { display: flex; flex-direction: column; gap: 14px; }
.cap-feat { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.cap-feat svg { width: 16px; height: 16px; color: var(--brand-3); flex-shrink: 0; margin-top: 3px; }

/* Capability visual panel */
.cap-visual { aspect-ratio: 5 / 4; border-radius: 16px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(20,22,31,0.7), rgba(8,9,15,0.9)); box-shadow: 0 30px 80px -20px rgba(0,0,0,0.5); overflow: hidden; }
.viz { padding: 24px; height: 100%; display: flex; flex-direction: column; gap: 12px; }
.viz-head { display: flex; align-items: center; justify-content: space-between; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-2); }
.viz-live { color: var(--green); display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* growth viz */
.chrow { display: grid; grid-template-columns: 92px 1fr 58px; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.chrow:last-child { border-bottom: none; }
.chname { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.chbar { height: 6px; background: rgba(255,255,255,0.05); border-radius: 999px; overflow: hidden; }
.chbar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(to right, var(--brand-2), var(--violet)); box-shadow: 0 0 12px rgba(67,87,255,0.5); }
.chval { font-family: var(--mono); font-size: 12px; text-align: right; font-weight: 500; }
.chval.up { color: var(--green); } .chval.down { color: var(--red); }

/* consult viz */
.node { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,0.025); }
.node.active { background: rgba(26,45,216,0.15); border-color: rgba(26,45,216,0.4); box-shadow: 0 0 24px rgba(26,45,216,0.2); }
.node .l { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; color: var(--text); font-weight: 500; }
.node .ic { width: 26px; height: 26px; border-radius: 7px; display: flex; align-items: center; justify-content: center; background: var(--bg-3); border: 1px solid var(--line); color: var(--brand-3); }
.node.active .ic { background: var(--brand); border-color: var(--brand-2); color: #fff; }
.node .meta { font-family: var(--mono); font-size: 10px; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.06em; }
.node-link { width: 1px; height: 14px; margin-left: 27px; background: rgba(255,255,255,0.1); }

/* ops viz */
.ops-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ops-card { padding: 13px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,0.025); }
.ops-card .k { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-2); margin-bottom: 6px; }
.ops-card .v { font-family: var(--sans); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.ops-card .d { font-family: var(--mono); font-size: 10px; color: var(--green); margin-top: 3px; }
.ops-row { display: flex; align-items: center; gap: 10px; padding: 7px 11px; border-radius: 7px; border: 1px solid var(--line); background: rgba(255,255,255,0.025); font-family: var(--mono); font-size: 11px; }
.ops-row .id { color: var(--muted-2); } .ops-row .nm { color: var(--text); flex: 1; }
.ops-tag { font-size: 9px; text-transform: uppercase; letter-spacing: 0.06em; padding: 2px 6px; border-radius: 4px; }
.ops-tag.ok { color: var(--green); background: rgba(45,212,137,0.1); border: 1px solid rgba(45,212,137,0.2); }
.ops-tag.proc { color: var(--gold); background: rgba(255,179,71,0.1); border: 1px solid rgba(255,179,71,0.2); }
.ops-tag.queue { color: var(--muted-2); background: rgba(255,255,255,0.025); border: 1px solid var(--line); }

/* monitor viz */
.mon-chart { flex: 1; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,0.3); padding: 12px; }
.mon-chart svg { width: 100%; height: 100%; }
.mon-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mon-stat { border-radius: 9px; border: 1px solid var(--line); background: rgba(255,255,255,0.025); padding: 10px; }
.mon-stat .k { font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-2); margin-bottom: 4px; }
.mon-stat .v { font-family: var(--sans); font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }

/* ---------- Timeline / by the numbers ---------- */
.timeline-card { margin-top: 48px; border-radius: 20px; border: 1px solid var(--line-2); overflow: hidden; background: linear-gradient(180deg, rgba(20,22,31,0.6), rgba(8,9,15,0.9)); box-shadow: 0 30px 80px -20px rgba(0,0,0,0.5); }
.tl-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 28px; border-bottom: 1px solid var(--line); background: rgba(0,0,0,0.2); }
.tl-dates { display: flex; align-items: center; gap: 18px; }
.tl-date .k { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted-2); }
.tl-date .v { font-family: var(--mono); font-size: 13px; color: var(--text); font-weight: 500; }
.tl-date .v.brand { color: var(--brand-3); }
.tl-badge { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); background: rgba(255,255,255,0.025); border: 1px solid var(--line); padding: 6px 12px; border-radius: 6px; }
.tl-graph { padding: 28px; height: 200px; }
.tl-graph svg { width: 100%; height: 100%; }
.tl-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.tl-stat { padding: 26px; position: relative; overflow: hidden; }
.tl-stat:not(:last-child) { border-right: 1px solid var(--line); }
.tl-stat .ic { width: 32px; height: 32px; border: 1px solid var(--line-2); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--brand-3); background: rgba(255,255,255,0.025); margin-bottom: 14px; }
.tl-stat .ic svg { width: 15px; height: 15px; }
.tl-stat .v { font-family: var(--sans); font-size: clamp(30px, 3.4vw, 44px); font-weight: 600; letter-spacing: -0.035em; line-height: 1; margin-bottom: 8px; background: linear-gradient(180deg, #fff, #888EA3); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.tl-stat .v.brand { background: linear-gradient(180deg, #C7CFFF, #1A2DD8); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.tl-stat .v .plus { -webkit-text-fill-color: var(--muted-2); }
.tl-stat .k { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-2); }

/* ---------- Case study cards ---------- */
.cases-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; }
.cases-link { font-family: var(--mono); font-size: 12px; color: var(--brand-3); letter-spacing: 0.05em; padding: 9px 16px; border: 1px solid rgba(67,87,255,0.3); border-radius: 8px; transition: background 0.2s, border-color 0.2s; }
.cases-link:hover { background: rgba(67,87,255,0.1); border-color: rgba(67,87,255,0.5); }

.case-card { display: flex; flex-direction: column; padding: 30px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); min-height: 320px; overflow: hidden; transition: transform 0.35s, border-color 0.35s; }
.case-card:hover { transform: translateY(-3px); border-color: rgba(26,45,216,0.5); }
.case-card.featured { border-color: rgba(26,45,216,0.3); background: var(--card-feat); }
.case-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 28px; }
.case-id { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 500; color: var(--muted-2); }
.case-card.featured .case-id { color: var(--brand-3); }
.case-tags { display: flex; gap: 8px; flex-shrink: 0; }
.case-tag { font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); padding: 4px 8px; border-radius: 4px; }
.case-metric { font-family: var(--sans); font-size: clamp(34px, 4vw, 50px); font-weight: 600; letter-spacing: -0.035em; line-height: 1; margin-bottom: 8px; }
.case-card.featured .case-metric { background: linear-gradient(180deg, #fff, #5468FF); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.case-metric-label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-2); margin-bottom: 16px; }
.case-title { font-family: var(--sans); font-size: 19px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 12px; }
.case-desc { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 22px; flex-grow: 1; }
.case-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; border-top: 1px solid var(--line); }
.case-client { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 500; }
.case-field { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-2); }

/* ---------- Work accordion (homepage selected work) ---------- */
.work-rows { border-top: 1px solid var(--line); }
.work-row { border-bottom: 1px solid var(--line); transition: background 0.25s; }
.work-row:hover { background: var(--bg-2); }
.work-row.open { background: var(--bg-3); }
.work-row-top { display: grid; grid-template-columns: 52px 1fr auto auto; align-items: center; gap: 28px; padding: 28px 0; cursor: pointer; user-select: none; }
.work-num { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-2); font-weight: 500; transition: color 0.25s; }
.work-row.open .work-num { color: var(--brand-3); }
.work-info { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.work-cat { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); }
.work-name { font-family: var(--sans); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }
.work-metric-wrap { text-align: right; }
.work-metric-val { font-family: var(--sans); font-size: 28px; font-weight: 700; letter-spacing: -0.025em; color: var(--text); line-height: 1; }
.work-metric-lbl { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-2); margin-top: 5px; }
.work-chev { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; color: var(--muted-2); flex-shrink: 0; transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.3s; }
.work-chev svg { width: 16px; height: 16px; }
.work-row.open .work-chev { background: var(--brand); border-color: var(--brand); color: #fff; transform: rotate(180deg); }
.work-body { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1); }
.work-body-inner { padding: 4px 0 36px 80px; }
.work-body-title { font-family: var(--sans); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; color: var(--text); margin-bottom: 12px; max-width: 640px; }
.work-body-desc { font-size: 14.5px; line-height: 1.68; color: var(--muted); max-width: 640px; }
.work-body-tags { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }

/* filter bar (case studies page) */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 44px; }
.filter { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 500; padding: 9px 16px; border-radius: 999px; cursor: pointer; background: rgba(255,255,255,0.025); border: 1px solid var(--line); color: var(--muted); transition: all 0.25s; }
.filter:hover { background: rgba(255,255,255,0.06); color: var(--text); border-color: var(--line-3); }
.filter.active { background: var(--brand); color: #fff; border-color: transparent; box-shadow: 0 8px 30px -8px rgba(26,45,216,0.6); }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.testi-card { margin: 0; padding: 32px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); display: flex; flex-direction: column; }
.testi-quote { font-family: var(--sans); font-size: 19px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.4; margin-bottom: 16px; }
.testi-quote::before { content: "“"; color: var(--brand-3); }
.testi-quote::after { content: "”"; color: var(--brand-3); }
.testi-body { font-size: 14.5px; color: var(--muted); line-height: 1.65; margin-bottom: 24px; flex-grow: 1; }
.testi-author { display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.testi-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-2), var(--violet)); display: flex; align-items: center; justify-content: center; font-family: var(--sans); font-weight: 600; font-size: 15px; color: #fff; flex-shrink: 0; }
.testi-name { display: block; font-size: 14px; font-weight: 600; color: var(--text); }
.testi-role { display: block; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-2); margin-top: 3px; }

/* ---------- Two-column rows (story / etc.) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.principle { padding: 28px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); }
.principle.brand { border-color: rgba(26,45,216,0.3); background: var(--card-feat); }
.principle .k { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--brand-3); font-weight: 500; }
.principle.brand .k { color: var(--gold); }
.principle .t { font-size: 15px; color: var(--muted); line-height: 1.6; margin-top: 12px; }
.principle.brand .t { font-family: var(--sans); font-size: 18px; font-weight: 600; color: var(--text); line-height: 1.4; }

.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; padding: 28px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--card); }
.mini-stat .v { font-family: var(--sans); font-size: 36px; font-weight: 600; letter-spacing: -0.03em; background: linear-gradient(180deg, #fff, #888EA3); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.mini-stat .v.brand { background: linear-gradient(180deg, #C7CFFF, #1A2DD8); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.mini-stat .v .plus { -webkit-text-fill-color: var(--muted-2); font-weight: 300; }
.mini-stat .k { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-2); margin-top: 4px; }

.locations { display: flex; flex-wrap: wrap; gap: 48px; justify-content: center; text-align: center; }
.loc .k { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted-2); margin-bottom: 6px; }
.loc .v { font-size: 15px; color: var(--muted); }
.loc a { color: var(--brand-3); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: 28px; border: 1px solid var(--line-2); background: var(--bg-2); padding: 88px 40px; text-align: center; }
.cta-band .glows { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.cta-band .g1 { position: absolute; top: -300px; left: -200px; width: 800px; height: 800px; background: radial-gradient(circle, rgba(26,45,216,0.5), transparent 60%); filter: blur(80px); }
.cta-band .g2 { position: absolute; bottom: -300px; right: -200px; width: 700px; height: 700px; background: radial-gradient(circle, rgba(67,87,255,0.45), transparent 60%); filter: blur(80px); }
.cta-inner { position: relative; z-index: 1; }
.cta-title { font-family: var(--sans); font-size: clamp(32px, 5vw, 64px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; margin-bottom: 22px; }
.cta-sub { max-width: 560px; margin: 0 auto 30px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 72px 0 40px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 56px; }
.footer-brand .logo { width: 150px; margin-bottom: 20px; }
.footer-brand .tagline { color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 280px; }
.footer-col h4 { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted-2); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--muted); font-size: 14px; padding: 5px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 28px; border-top: 1px solid var(--line); }
.footer-meta { display: flex; flex-wrap: wrap; gap: 28px; }
.footer-bottom .copyright { font-size: 13px; color: var(--muted-2); }
.footer-bottom .loc { font-family: var(--mono); font-size: 12px; color: var(--muted-2); }
.footer-bottom .loc b { color: var(--muted); font-weight: 500; }

/* ---------- Light section variant ----------
   Add class "section--light" to a <section> to flip it to a white background
   with dark text for contrast. Cards inside lift off as white panels.
   Dark-built visuals (capability panels, timeline chart) should stay dark. */
.section--light {
  background: #F4F5F9;
  color: #14161F;
  border-top-color: rgba(0,0,0,0.07);
}
.section--light .eyebrow { color: var(--brand); }
.section--light .h-section,
.section--light .service-title,
.section--light .case-title,
.section--light .testi-quote,
.section--light .testi-name { color: #14161F; }
.section--light .muted { color: #99A0B0; }
.section--light .lead,
.section--light .service-desc,
.section--light .case-desc,
.section--light .testi-body,
.section--light .tag-item,
.section--light .principle:not(.brand) .t { color: #4C5365; }

/* Cards lift off as white panels */
.section--light .service-card,
.section--light .testi-card,
.section--light .case-card:not(.featured),
.section--light .principle:not(.brand) {
  background: #FFFFFF;
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 1px 2px rgba(16,20,40,0.04), 0 18px 40px -24px rgba(16,20,40,0.22);
}
.section--light .service-card:hover,
.section--light .case-card:not(.featured):hover { border-color: rgba(26,45,216,0.4); }
.section--light .service-card .glow { display: none; }

/* Icon box + mono labels on light */
.section--light .icon-box { background: #EEF0F8; border-color: rgba(0,0,0,0.08); color: var(--brand); }
.section--light .service-num,
.section--light .case-id,
.section--light .case-metric-label,
.section--light .case-field,
.section--light .case-client,
.section--light .testi-role,
.section--light .principle:not(.brand) .k { color: #6A7184; }
.section--light .case-metric { color: #14161F; }

/* Dividers on light */
.section--light .tag-row,
.section--light .case-foot,
.section--light .testi-author { border-top-color: rgba(0,0,0,0.09); }

/* Tags re-tuned for white card backgrounds */
.section--light .tag-amplifier { color: #A05E00; background: rgba(255,179,71,0.16); border-color: rgba(160,94,0,0.25); }
.section--light .tag-agent { color: var(--brand); background: rgba(26,45,216,0.08); border-color: rgba(26,45,216,0.22); }
.section--light .case-tag { color: #5A6072; background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.08); }

/* Filter bar on light */
.section--light .filter { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.1); color: #5A6072; }
.section--light .filter:hover { background: rgba(0,0,0,0.06); color: #14161F; border-color: rgba(0,0,0,0.18); }
.section--light .filter.active { background: var(--brand); color: #fff; border-color: transparent; }

/* Brand "motto" principle card needs an opaque dark gradient on light sections
   since its default gradient is semi-transparent (built to sit on dark). */
.section--light .principle.brand {
  background: linear-gradient(135deg, #2336E2 0%, #1A2DD8 65%, #14161F 100%);
  border-color: rgba(26,45,216,0.35);
}
.section--light .principle.brand .k { color: #FFC97A; }
.section--light .principle.brand .t { color: #FFFFFF; }
/* Featured case cards on light sections look identical to non-featured — all white. */
.section--light .case-card.featured {
  background: #FFFFFF;
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 1px 2px rgba(16,20,40,0.04), 0 18px 40px -24px rgba(16,20,40,0.22);
}
.section--light .case-card.featured:hover { border-color: rgba(26,45,216,0.4); }
.section--light .case-card.featured .case-title { color: #14161F; }
.section--light .case-card.featured .case-desc { color: #4C5365; }
.section--light .case-card.featured .case-id,
.section--light .case-card.featured .case-metric-label,
.section--light .case-card.featured .case-client,
.section--light .case-card.featured .case-field { color: #6A7184; }
.section--light .case-card.featured .case-metric { color: #14161F; -webkit-text-fill-color: #14161F; background: none; }
.section--light .case-card.featured .case-tag { color: #5A6072; background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.08); }

/* ---------- Legal pages ---------- */
.legal-hero { position: relative; padding: 140px 0 72px; text-align: center; overflow: hidden; }
.legal-hero-inner { position: relative; z-index: 1; }
.legal-title { font-family: var(--sans); font-weight: 600; font-size: clamp(36px, 5.5vw, 68px); letter-spacing: -0.04em; line-height: 1; color: var(--text); }
.legal-body { max-width: 740px; margin: 0 auto; padding: 0 var(--pad) 100px; }
.legal-intro { font-size: 15px; line-height: 1.8; color: var(--muted); margin-bottom: 48px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.legal-body h2 { font-family: var(--sans); font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); margin: 44px 0 10px; }
.legal-body p { font-size: 15px; line-height: 1.8; color: var(--muted); margin-bottom: 14px; }
.legal-body strong { color: var(--text); font-weight: 600; }
.legal-body ul { list-style: none; padding: 0; margin-bottom: 14px; }
.legal-body ul li { font-size: 15px; line-height: 1.8; color: var(--muted); padding-left: 20px; margin-bottom: 6px; position: relative; }
.legal-body ul li::before { content: "—"; position: absolute; left: 0; color: var(--brand-2); }
.legal-body a { color: var(--brand-3); text-decoration: none; }
.legal-body a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (min-width: 811px) and (max-width: 1100px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 810px) {
  :root { --pad: 22px; }
  .section { padding: 64px 0; }
  .grid-3, .grid-2, .testi-grid, .split, .principles, .mini-stats { grid-template-columns: 1fr; }
  .service-card { min-height: 0; }
  .cap-tabs { grid-template-columns: repeat(2, 1fr); }
  .cap-tab:nth-child(2) { border-right: none; }
  .cap-tab:nth-child(1), .cap-tab:nth-child(2) { border-bottom: 1px solid var(--line); }
  .cap-panel { grid-template-columns: 1fr; gap: 32px; }
  .tl-stats { grid-template-columns: repeat(2, 1fr); }
  .tl-stat:nth-child(2) { border-right: none; }
  .tl-stat:nth-child(1), .tl-stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .tl-head { flex-direction: column; gap: 12px; align-items: flex-start; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px var(--pad) 24px; background: rgba(0,0,0,0.95); border-bottom: 1px solid var(--line); }
  .nav-links.open .nav-link, .nav-links.open .nav-cta { padding: 10px 0; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--line-3); border-radius: 10px; background: rgba(255,255,255,0.025); color: var(--text); cursor: pointer; }
  .nav-toggle svg { width: 18px; height: 18px; flex-shrink: 0; }
  .stat-row { gap: 28px; }
  .stat { min-width: calc(50% - 14px); }
  .hero-sub { max-width: 100%; }
  .cases-head { flex-direction: column; align-items: flex-start; }
  .work-row-top { grid-template-columns: 36px 1fr auto; gap: 14px; padding: 22px 0; }
  .work-metric-wrap { display: none; }
  .work-body-inner { padding: 4px 0 28px 50px; }
  .work-name { font-size: 17px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .cap-visual { aspect-ratio: auto; min-height: 0; }
  .ops-cards { grid-template-columns: 1fr 1fr; }
  .mon-stats { grid-template-columns: repeat(3, 1fr); }
  .cta-band { padding: 56px 24px; }
  /* On narrow screens the hero text spans full width, so use a more even
     vertical scrim (the left-biased one only helps wide layouts). */
  .hero--left .hero-scrim {
    background: linear-gradient(180deg, rgba(0,0,0,0.42) 0%, rgba(0,0,0,0.16) 34%, rgba(0,0,0,0.32) 72%, var(--bg) 100%);
  }
}
