/* ==================================================================
   Geekstab — site stylesheet
   Design language: deep-space navy, cyan→violet gradient accents,
   Sora display type, soft glass surfaces, deliberate motion.
   No framework, no build step.
=================================================================== */

:root {
  /* surfaces */
  --bg: #060710;
  --bg-deep: #04050C;
  --surface: #0C111F;
  --surface-2: #101729;
  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(148, 163, 184, 0.26);

  /* ink */
  --ink: #E7ECF4;
  --muted: #93A0B8;
  --faint: #7A8499; /* kept light enough to pass AA at small sizes */

  /* accents */
  --cyan: #38BDF8;
  --teal: #2DD4BF;
  --violet: #A78BFA;
  --pink: #F472B6;
  --green: #34d399;
  --amber: #FBBF24;
  --blue: #60A5FA;
  --red: #F87171;
  --grad: linear-gradient(100deg, #38BDF8 0%, #818CF8 55%, #A78BFA 100%);

  /* type */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-display: "Sora", "Inter", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* the hidden attribute must always win, even over display:flex rules */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(56, 189, 248, 0.25); color: #fff; }

::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: #1c2436; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

img, svg { display: block; }
img { max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; background: none; border: none; cursor: pointer; color: inherit; }
ul { list-style: none; }

.container { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--grad);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.8);
  z-index: 200;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: 0.625rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-grad {
  background: var(--grad);
  color: #061018;
  box-shadow: 0 4px 24px rgba(99, 122, 248, 0.35);
}
.btn-grad:hover { transform: translateY(-2px); box-shadow: 0 10px 34px rgba(99, 122, 248, 0.5); filter: brightness(1.08); }

.btn-ghost { border: 1px solid var(--line-strong); color: var(--ink); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }

.btn-outline { padding: 0.55rem 1.4rem; border: 1px solid rgba(56, 189, 248, 0.7); color: var(--cyan); border-radius: 999px; }
.btn-outline:hover { background: var(--cyan); color: var(--bg); box-shadow: 0 0 22px rgba(56, 189, 248, 0.4); }

.btn-solid { background: var(--cyan); color: #061018; }
.btn-solid:hover { background: #5ecbfb; box-shadow: 0 0 26px rgba(56, 189, 248, 0.45); transform: translateY(-1px); }

.btn-lg { padding: 1.1rem 2.5rem; font-size: 0.8rem; }
.btn-block { width: 100%; padding: 1.1rem; }

.link-btn { font-size: inherit; color: var(--muted); transition: color 0.25s; text-align: left; }
.link-btn:hover { color: var(--cyan); }

/* shine sweep */
.btn-grad::after, .btn-solid::after {
  content: "";
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.5), transparent);
  transform: skewX(-25deg);
  transition: left 0.6s ease;
}
.btn-grad:hover::after, .btn-solid:hover::after { left: 125%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  border-bottom: 1px solid transparent;
  transition: all 0.35s ease;
}
.site-header.scrolled {
  background: rgba(6, 7, 16, 0.82);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  padding: 0.85rem 0;
  border-bottom-color: var(--line);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: flex; align-items: center; gap: 0.65rem; }
/* official Geekstab mark is solid white on dark */
.brand-logo {
  width: 2.1rem; height: 2.1rem;
  color: #fff;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.35s;
}
.brand:hover .brand-logo {
  transform: scale(1.1) rotate(-3deg);
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.55));
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: #fff;
}
.brand-name em { font-style: normal; color: inherit; }
.brand-stack { display: flex; flex-direction: column; }
.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-top: 0.25rem;
}

.main-nav { display: flex; align-items: center; gap: 1.9rem; }
.main-nav .nav-link {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--muted);
  transition: color 0.3s;
  position: relative;
  padding-bottom: 4px;
}
.main-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 0%; height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transition: width 0.3s ease;
}
.main-nav .nav-link:hover, .main-nav .nav-link.active { color: #fff; }
.main-nav .nav-link:hover::after, .main-nav .nav-link.active::after { width: 100%; }

.mobile-toggle { display: none; flex-direction: column; gap: 5px; padding: 0.5rem; }
.mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); transition: all 0.3s ease; }
.mobile-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  background: rgba(6, 7, 16, 0.97);
  border-bottom: 1px solid var(--line);
  transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
}
.mobile-menu.open { max-height: 540px; opacity: 1; padding: 1.25rem 1.5rem; }
.mobile-menu .nav-link {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
  color: var(--ink);
}
.mobile-menu .btn { margin-top: 0.75rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 6rem;
  overflow: hidden;
  background: var(--bg-deep);
}

#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }

/* slow-drifting aurora blobs behind the content */
.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.32;
  pointer-events: none;
  z-index: 1;
  animation: drift 22s ease-in-out infinite alternate;
}
.aurora-1 { width: 540px; height: 540px; top: -160px; right: -120px; background: radial-gradient(circle, rgba(56,189,248,0.5), transparent 65%); }
.aurora-2 { width: 620px; height: 620px; bottom: -220px; left: -160px; background: radial-gradient(circle, rgba(129,140,248,0.42), transparent 65%); animation-delay: -8s; }
.aurora-3 { width: 380px; height: 380px; top: 38%; left: 52%; background: radial-gradient(circle, rgba(167,139,250,0.3), transparent 65%); animation-delay: -15s; }
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-40px, 36px) scale(1.08); }
  100% { transform: translate(36px, -30px) scale(0.95); }
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 3rem;
  align-items: center;
  padding-top: 3rem;
  padding-bottom: 4rem;
  width: 100%;
}

.hero-anim { opacity: 0; transform: translateY(28px); animation: heroRise 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.hero-anim:nth-child(1) { animation-delay: 0.15s; }
.hero-anim:nth-child(2) { animation-delay: 0.3s; }
.hero-anim:nth-child(3) { animation-delay: 0.45s; }
.hero-anim:nth-child(4) { animation-delay: 0.6s; }
.hero-anim:nth-child(5) { animation-delay: 0.75s; }
.hero-card-wrap.hero-anim { animation-delay: 0.55s; }
@keyframes heroRise { to { opacity: 1; transform: translateY(0); } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  margin-bottom: 1.25rem;
}
.eyebrow-line { display: inline-block; width: 2.5rem; height: 1px; background: var(--grad); }

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.3rem, 5.2vw, 3.9rem);
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.08;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  color: var(--muted);
  font-weight: 300;
  max-width: 40rem;
  line-height: 1.7;
  margin-bottom: 2.25rem;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.metric-value {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.5vw, 1.9rem);
  color: #fff;
}
.metric-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--faint);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-top: 0.3rem;
}

/* Terminal blueprint card */
.hero-card-wrap { display: flex; align-items: center; justify-content: center; perspective: 1100px; }

.terminal-card {
  width: 100%;
  max-width: 28rem;
  background: rgba(12, 17, 31, 0.85);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255,255,255,0.04);
  backdrop-filter: blur(14px);
  transition: transform 0.25s ease-out, border-color 0.3s;
  transform-style: preserve-3d;
  will-change: transform;
}
.terminal-card:hover { border-color: rgba(56, 189, 248, 0.3); }

.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}
.traffic { display: flex; gap: 0.5rem; }
.dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; }
.dot.red { background: rgba(248, 113, 113, 0.85); }
.dot.yellow { background: rgba(251, 191, 36, 0.85); }
.dot.green { background: rgba(52, 211, 153, 0.85); }
.terminal-file { font-family: var(--font-mono); font-size: 0.6rem; font-weight: 700; color: var(--faint); user-select: none; }

.blueprint-row {
  padding: 0.9rem;
  border-radius: 0.625rem;
  background: rgba(4, 5, 12, 0.7);
  border: 1px solid var(--line);
  transition: border-color 0.3s, transform 0.3s;
  margin-bottom: 0.9rem;
}
.blueprint-row:hover { border-color: rgba(56, 189, 248, 0.3); transform: translateX(5px); }
.blueprint-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.6rem; }
.bp-icon { width: 1rem; height: 1rem; flex-shrink: 0; }
.blueprint-head strong { font-size: 0.85rem; font-weight: 600; color: #fff; letter-spacing: 0.01em; }
.blueprint-row p { font-size: 0.74rem; color: var(--muted); padding-left: 1.75rem; line-height: 1.6; font-weight: 300; }

.terminal-prompt {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  user-select: none;
}
.prompt-line { display: flex; align-items: center; gap: 0.5rem; color: var(--faint); }
.green-txt { color: var(--green); font-style: normal; }
.caret { display: inline-block; width: 0.5rem; height: 1rem; background: var(--cyan); margin-left: 0.25rem; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.status-active { font-size: 0.6rem; color: var(--green); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }

/* Capability ticker */
.ticker-shell {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(6, 7, 16, 0.6);
  backdrop-filter: blur(6px);
  overflow: hidden;
  padding: 0.9rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 2.75rem;
  width: max-content;
  animation: tickerMove 36s linear infinite;
}
.ticker-shell:hover .ticker-track { animation-play-state: paused; }
@keyframes tickerMove { to { transform: translateX(-33.333%); } }
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 2.75rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
  transition: color 0.3s;
}
.ticker-item:hover { color: var(--cyan); }
.ticker-item::after { content: "✦"; color: rgba(56, 189, 248, 0.45); font-size: 0.6rem; }

/* ---------- Sections ---------- */
.section { padding: 6.5rem 0; position: relative; scroll-margin-top: 5rem; }
.section-tinted { background: linear-gradient(180deg, rgba(12, 17, 31, 0.0), rgba(12, 17, 31, 0.55) 18%, rgba(12, 17, 31, 0.55) 82%, rgba(12, 17, 31, 0)); }

.section-head { max-width: 48rem; margin-bottom: 4rem; position: relative; z-index: 1; }
.kicker {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--cyan);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}
.kicker-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.9rem;
  padding: 0.2rem 0.4rem;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 0.375rem;
  font-size: 0.62rem;
  background: rgba(56, 189, 248, 0.06);
}
.section-head h2, .why-sticky h2, .cta-copy h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  color: #fff;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.section-head p, .why-sticky > p {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 300;
  max-width: 42rem;
  line-height: 1.7;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-anim { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .marquee-track, .ticker-track, .aurora { animation: none !important; }
}

/* ---------- Cards / shared ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.icon-chip {
  width: 2.25rem; height: 2.25rem;
  border-radius: 0.625rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-chip svg { width: 1.1rem; height: 1.1rem; }
.icon-chip.cyan { background: rgba(56, 189, 248, 0.1); border: 1px solid rgba(56, 189, 248, 0.2); color: var(--cyan); }
.icon-chip.green { background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.2); color: var(--green); }
.icon-chip.violet { background: rgba(167, 139, 250, 0.1); border: 1px solid rgba(167, 139, 250, 0.2); color: var(--violet); }
.icon-chip.round { border-radius: 50%; }

.tag-pill {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan);
  background: rgba(56, 189, 248, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 0.375rem;
  padding: 0.25rem 0.625rem;
  white-space: nowrap;
}
.tag-pill.green { color: var(--green); background: rgba(52, 211, 153, 0.06); border-color: rgba(52, 211, 153, 0.18); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; position: relative; z-index: 1; }

.about-card { transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease; }
.about-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(56,189,248,0.45), transparent 35%, transparent 70%, rgba(167,139,250,0.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.about-card:hover { transform: translateY(-7px); box-shadow: 0 22px 44px rgba(0, 0, 0, 0.5); }
.about-card:hover::before { opacity: 1; }

.card-title { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.card-title h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: #fff; letter-spacing: -0.01em; }

.check-list li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 0.79rem;
  color: var(--muted);
  line-height: 1.65;
  font-weight: 300;
  margin-bottom: 1rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.18rem;
  width: 1rem; height: 1rem;
  background-color: var(--cyan);
  -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M9 12l2 2 4-4"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M9 12l2 2 4-4"/></svg>') center / contain no-repeat;
}
.green-checks li::before { background-color: var(--green); }

.exposure-item { border-bottom: 1px solid var(--line); padding-bottom: 0.875rem; margin-bottom: 0.875rem; }
.exposure-item:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.exposure-item h4 { font-family: var(--font-display); font-weight: 700; font-size: 0.8rem; color: #fff; margin-bottom: 0.25rem; }
.exposure-item p { font-size: 0.71rem; color: var(--faint); line-height: 1.6; font-weight: 300; }

/* ---------- Services pillars ---------- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  align-items: start;
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;
}

.pillar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.pillar:hover, .pillar.expanded {
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 8px 36px rgba(56, 189, 248, 0.07);
  transform: translateY(-3px);
}

.pillar-head {
  background: var(--surface-2);
  border-radius: 0.8rem;
  border-top: 3px solid var(--pillar-accent, var(--cyan));
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.3s;
}
.pillar:hover .pillar-head { background: #131c33; }

.pillar-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.6rem; }
.pillar-num {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pillar-accent, var(--cyan));
}
.pillar-dot { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--pillar-accent, var(--cyan)); box-shadow: 0 0 10px var(--pillar-accent, var(--cyan)); }

.pillar-head h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: #fff; margin-bottom: 0.5rem; letter-spacing: -0.015em; }
.pillar-head > p { font-size: 0.78rem; color: var(--muted); line-height: 1.6; font-weight: 300; margin-bottom: 1rem; }

.pillar-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--faint);
}
.pillar-foot .hint { display: flex; align-items: center; gap: 0.4rem; }
.pillar-foot .hint::before { content: ""; width: 0.25rem; height: 0.25rem; border-radius: 50%; background: var(--faint); }
.pillar.expanded .pillar-foot .hint::before { background: var(--cyan); animation: ping 1.2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(56,189,248,0.6); } 80% { box-shadow: 0 0 0 6px rgba(56,189,248,0); } 100% { box-shadow: 0 0 0 0 rgba(56,189,248,0); } }
.pillar-foot .arrow { transition: transform 0.3s, color 0.3s; }
.pillar.expanded .pillar-foot .arrow { color: var(--cyan); transform: translateX(4px); }

.pillar-subs { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 0.5s ease, opacity 0.45s ease; }
.pillar.expanded .pillar-subs { grid-template-rows: 1fr; opacity: 1; }
.pillar-subs-inner { overflow: hidden; display: flex; flex-direction: column; gap: 0.6rem; }

.sub-item { background: rgba(16, 23, 41, 0.45); border: 1px solid var(--line); border-radius: 0.75rem; transition: border-color 0.3s, background 0.3s; }
.sub-item:hover { border-color: var(--line-strong); background: rgba(16, 23, 41, 0.7); }
.sub-item.open { background: var(--surface-2); border-color: rgba(56, 189, 248, 0.3); box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.12); }

.sub-toggle { width: 100%; text-align: left; padding: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; user-select: none; }
.sub-toggle-left { display: flex; align-items: center; gap: 0.75rem; }
.sub-icon {
  width: 2rem; height: 2rem;
  border-radius: 0.5rem;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.7rem;
  color: var(--pillar-accent, var(--cyan));
  transition: transform 0.3s;
  flex-shrink: 0;
}
.sub-item:hover .sub-icon { transform: scale(1.08); }
.sub-toggle h4 { font-family: var(--font-display); font-weight: 600; font-size: 0.84rem; color: var(--ink); transition: color 0.3s; }
.sub-item.open .sub-toggle h4 { color: var(--cyan); }
.sub-chevron { color: var(--faint); transition: transform 0.3s; flex-shrink: 0; }
.sub-chevron svg { width: 1rem; height: 1rem; }
.sub-item.open .sub-chevron { transform: rotate(180deg); }

.sub-body { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 0.35s ease, opacity 0.3s ease; }
.sub-item.open .sub-body { grid-template-rows: 1fr; opacity: 1; }
.sub-body-inner { overflow: hidden; }
.sub-body-content { padding: 0 1rem 1rem; border-top: 1px solid var(--line); }
.sub-body-content p { font-size: 0.76rem; color: var(--muted); font-weight: 300; line-height: 1.7; padding-top: 0.875rem; }

.sub-bullets { display: flex; flex-wrap: wrap; gap: 0.6rem 0.4rem; padding-top: 0.875rem; }
.sub-bullets span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: rgba(56, 189, 248, 0.9);
  background: rgba(56, 189, 248, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.14);
  border-radius: 0.3rem;
  padding: 0.18rem 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}
.sub-bullets span::before { content: ""; width: 0.25rem; height: 0.25rem; border-radius: 50%; background: rgba(56, 189, 248, 0.7); }

.foundation-banner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.foundation-left { display: flex; align-items: center; gap: 0.9rem; }
.foundation-left h4 { font-size: 0.875rem; font-weight: 600; color: #fff; letter-spacing: 0.01em; }
.foundation-left p { font-size: 0.75rem; color: var(--faint); font-weight: 300; margin-top: 0.25rem; }

/* ---------- Tech stack ---------- */
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; position: relative; z-index: 1; }

.tech-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 1.4rem;
  transition: all 0.3s ease;
}
.tech-card:hover {
  border-color: rgba(56, 189, 248, 0.3);
  background: var(--surface-2);
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

.tech-card-head { display: flex; align-items: center; gap: 0.75rem; user-select: none; }
.tech-card-head .icon-chip { width: 2rem; height: 2rem; transition: transform 0.3s; font-size: 0.9rem; }
.tech-card:hover .tech-card-head .icon-chip { transform: scale(1.1); }
.tech-titles { display: flex; flex-direction: column; }
.tech-titles strong { font-family: var(--font-display); font-weight: 700; font-size: 0.875rem; letter-spacing: 0.01em; color: #fff; transition: color 0.3s; }
.tech-card:hover .tech-titles strong { color: var(--cyan); }
.tech-titles small { font-family: var(--font-mono); font-size: 0.55rem; color: var(--faint); text-transform: uppercase; letter-spacing: 0.07em; margin-top: 0.15rem; }
.tech-card > p { font-size: 0.75rem; color: var(--muted); font-weight: 300; margin-top: 0.75rem; line-height: 1.6; }

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  padding-top: 0;
  border-top: 0 solid transparent;
  transform: scale(0.97);
  transition: all 0.5s ease;
}
.tech-card:hover .tech-badges, .tech-card.touched .tech-badges {
  max-height: 300px;
  opacity: 1;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  transform: scale(1);
}
.tech-badges span {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  padding: 0.375rem 0.625rem;
  transition: border-color 0.2s, color 0.2s;
}
.tech-badges span::before { content: ""; width: 0.35rem; height: 0.35rem; border-radius: 50%; background: rgba(56, 189, 248, 0.7); flex-shrink: 0; }
.tech-badges span:hover { border-color: rgba(56, 189, 248, 0.4); color: var(--cyan); }

/* ---------- How we work ---------- */
.stepper {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
  position: relative;
  margin-bottom: 3rem;
  z-index: 1;
}
.stepper::before {
  content: "";
  position: absolute;
  top: 2rem;
  left: 5%; right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; cursor: pointer; }
.step-circle {
  width: 4rem; height: 4rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: all 0.3s ease;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--step-color, var(--cyan));
}
.step:hover .step-circle { border-color: rgba(56, 189, 248, 0.45); transform: scale(1.06); }
.step.selected .step-circle {
  border-color: var(--cyan);
  background: rgba(56, 189, 248, 0.12);
  transform: scale(1.06);
  box-shadow: 0 0 26px rgba(56, 189, 248, 0.3);
}
.step-phase-num { font-family: var(--font-mono); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 0.25rem; }
.step h4 { font-family: var(--font-display); font-size: 0.875rem; font-weight: 700; color: #fff; transition: color 0.3s; }
.step:hover h4, .step.selected h4 { color: var(--cyan); }
.step small { font-size: 0.68rem; color: var(--faint); letter-spacing: 0.05em; font-weight: 500; text-transform: uppercase; margin-top: 0.25rem; max-width: 120px; }

.phase-detail {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  position: relative;
  overflow: hidden;
  margin-bottom: 4rem;
  z-index: 1;
}
.phase-detail::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0.3rem;
  background: var(--detail-accent, var(--cyan));
  transition: background 0.4s;
}
.phase-detail-tags { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; user-select: none; }
.phase-detail-tags .sep { color: var(--faint); }
.phase-detail-tags .phase-name { font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: #fff; }
.phase-detail h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: #fff; margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.phase-detail > div > p { font-size: 0.79rem; color: var(--muted); line-height: 1.7; font-weight: 300; max-width: 56rem; }

.phase-detail-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}
.phase-detail-meta strong { display: block; color: var(--cyan); text-transform: uppercase; margin-bottom: 0.3rem; font-weight: 700; }
.phase-detail-meta span { color: var(--ink); font-family: var(--font-sans); font-weight: 300; }

.phase-detail .phase-swap { animation: phaseFade 0.45s ease; }
@keyframes phaseFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.agentforce-bar {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.agentforce-left { display: flex; align-items: center; gap: 0.75rem; }
.agentforce-left h4 { font-family: var(--font-display); font-size: 0.875rem; font-weight: 700; color: #fff; user-select: none; }
.agentforce-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600; color: var(--faint); }
.af-step { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.75rem; border-radius: 0.5rem; background: var(--surface); border: 1px solid var(--line); }
.af-step.active { color: #fff; border-color: rgba(56, 189, 248, 0.3); background: rgba(56, 189, 248, 0.06); }
.af-arrow { color: var(--faint); }
.af-num { width: 1.25rem; height: 1.25rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.6rem; font-weight: 700; font-style: normal; }
.af-num.blue { background: rgba(96, 165, 250, 0.2); color: var(--blue); }
.af-num.indigo { background: rgba(129, 140, 248, 0.2); color: #818cf8; }
.af-num.green { background: rgba(52, 211, 153, 0.2); color: var(--green); }
.af-num.cyan { background: rgba(56, 189, 248, 0.2); color: var(--cyan); }

/* ---------- Portfolio ---------- */
.marquee-hint {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.marquee-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(8, 11, 22, 0.6);
  border-radius: 1rem;
  padding: 1.5rem 0;
  margin-bottom: 2.5rem;
  z-index: 1;
}
.marquee-fade { position: absolute; top: 0; bottom: 0; width: 6rem; z-index: 2; pointer-events: none; }
.marquee-fade.left { left: 0; background: linear-gradient(to right, #0a0d18, transparent); }
.marquee-fade.right { right: 0; background: linear-gradient(to left, #0a0d18, transparent); }

.marquee-track { display: flex; align-items: center; gap: 3.5rem; width: max-content; animation: marquee 35s linear infinite; }
.marquee-shell:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-33.333%); } }

.client-chip { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; padding: 0.625rem 1.25rem; border-radius: 0.75rem; border: 1px solid transparent; opacity: 0.45; transition: all 0.3s ease; }
.client-chip:hover { opacity: 1; background: rgba(255, 255, 255, 0.04); border-color: var(--line); }
.client-chip.active { opacity: 1; transform: scale(1.05); background: rgba(255, 255, 255, 0.04); border-color: var(--line-strong); filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.35)); }
.client-logo { height: 2rem; display: flex; align-items: center; justify-content: center; }
.client-chip small { font-family: var(--font-mono); font-size: 0.5rem; letter-spacing: 0.15em; color: var(--cyan); text-transform: uppercase; }

.lg-word { font-weight: 800; color: #fff; font-size: 1rem; letter-spacing: -0.02em; white-space: nowrap; display: flex; align-items: center; gap: 0.5rem; }
.lg-mark { width: 1.5rem; height: 1.5rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 900; color: #fff; flex-shrink: 0; }
.lg-ebay span { font-weight: 800; font-size: 1.6rem; letter-spacing: -0.06em; }
.lg-stacked { display: flex; flex-direction: column; align-items: center; line-height: 1.1; text-align: center; }
.lg-stacked .l1 { font-size: 0.8rem; font-weight: 800; color: #fff; }
.lg-stacked .l2 { font-family: var(--font-mono); font-size: 0.55rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.8); margin-top: 0.15rem; }
.lg-serif { font-family: Georgia, "Times New Roman", serif; }

.case-slide {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.case-head {
  border-bottom: 1px solid var(--line);
  background: rgba(6, 7, 16, 0.4);
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.case-head-left { display: flex; align-items: center; gap: 1rem; }
.case-logo-box { padding: 0.4rem 0.875rem; background: var(--bg-deep); border: 1px solid var(--line); border-radius: 0.5rem; }
.case-head h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: #fff; }
.case-head .case-sub { font-size: 0.75rem; color: var(--cyan); font-weight: 500; margin-top: 0.25rem; }
.case-flag { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.6rem; color: var(--faint); background: rgba(6, 7, 16, 0.6); border: 1px solid var(--line); border-radius: 0.375rem; padding: 0.375rem 0.75rem; }

.case-body { padding: 2.5rem; animation: phaseFade 0.5s ease; }
.case-name { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.75rem, 3.5vw, 2.25rem); color: #fff; letter-spacing: -0.02em; line-height: 1; margin-bottom: 0.6rem; }
.case-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.75rem; font-size: 0.875rem; color: rgba(56, 189, 248, 0.85); margin-bottom: 0.875rem; }
.case-tags .dot-sep { color: var(--faint); }
.case-industry { margin-bottom: 1.75rem; }

/* challenge / solution columns */
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.case-block {
  background: rgba(4, 5, 12, 0.45);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1.25rem 1.4rem;
}
.block-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.block-label.challenge { color: var(--amber); }
.block-label.solution { color: var(--teal); }
.case-block li, .impact-band li {
  position: relative;
  padding-left: 1.3rem;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 0.7rem;
}
.case-block li:last-child, .impact-band li:last-child { margin-bottom: 0; }
.case-block li::before { content: "›"; position: absolute; left: 0; top: -1px; color: var(--faint); font-weight: 700; }

/* outcomes band — the part a buyer actually reads */
.impact-band {
  border: 1px solid rgba(52, 211, 153, 0.25);
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.07), rgba(56, 189, 248, 0.05));
  border-radius: 0.75rem;
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.5rem;
}
.impact-band h4 {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.9rem;
}
.impact-band li { color: var(--ink); }
.impact-band li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.28rem;
  width: 0.8rem; height: 0.8rem;
  background-color: var(--green);
  -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>') center / contain no-repeat;
}

/* tech stack chips */
.stack-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem; }
.stack-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-right: 0.25rem;
}
.stack-row span:not(.stack-label) {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: rgba(56, 189, 248, 0.9);
  background: rgba(56, 189, 248, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.16);
  border-radius: 0.3rem;
  padding: 0.25rem 0.6rem;
}

/* collapsed company bio */
.case-about-toggle { border-top: 1px solid var(--line); padding-top: 1.1rem; }
.case-about-toggle summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--muted);
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.25s;
  user-select: none;
}
.case-about-toggle summary::-webkit-details-marker { display: none; }
.case-about-toggle summary::after { content: "+"; font-size: 1rem; color: var(--faint); transition: transform 0.25s; }
.case-about-toggle[open] summary::after { transform: rotate(45deg); }
.case-about-toggle summary:hover { color: #fff; }
.case-about-toggle p { font-size: 0.85rem; color: var(--muted); line-height: 1.75; font-weight: 300; margin-top: 0.9rem; }

.case-disclaimer {
  font-size: 0.68rem;
  color: var(--faint);
  font-weight: 300;
  line-height: 1.6;
  margin-top: 1rem;
  max-width: 46rem;
  position: relative;
  z-index: 1;
}

/* ---------- Industries ---------- */
.industries-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; position: relative; z-index: 1; }

.industry-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s;
}
.industry-card::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 3px; background: var(--ind-accent, var(--cyan)); }
.industry-card:hover { transform: translateY(-6px); box-shadow: 0 18px 38px rgba(0,0,0,0.45); border-color: var(--line-strong); }

.industry-icon {
  width: 2.5rem; height: 2.5rem;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 1.25rem 0.5rem;
  color: var(--ind-accent, var(--cyan));
  font-family: var(--font-display);
  font-weight: 700;
}
.industry-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: #fff; margin: 0 0 0.5rem 0.5rem; letter-spacing: 0; transition: color 0.3s; }
.industry-card:hover h3 { color: var(--cyan); }
.industry-card > p { font-size: 0.76rem; color: var(--muted); line-height: 1.65; font-weight: 300; margin: 0 0 1.25rem 0.5rem; flex-grow: 1; }
.industry-card ul { border-top: 1px solid var(--line); padding: 1rem 0 0 0.5rem; }
.industry-card li { position: relative; padding-left: 1.4rem; font-size: 0.75rem; color: var(--muted); font-weight: 300; line-height: 1.55; margin-bottom: 0.875rem; }
.industry-card li:last-child { margin-bottom: 0; }
.industry-card li::before { content: "›"; position: absolute; left: 0; top: -2px; color: var(--cyan); font-size: 1rem; font-weight: 700; }

/* ---------- Why Geekstab ---------- */
.why-grid { display: grid; grid-template-columns: 4fr 8fr; gap: 3rem; align-items: start; position: relative; z-index: 1; }
.why-sticky { position: sticky; top: 6rem; }
.why-sticky > p { margin-bottom: 1.5rem; }

.audit-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--muted);
  user-select: none;
}
.audit-box div { display: flex; align-items: center; gap: 0.5rem; padding: 0.18rem 0; }
.dot-cyan { width: 0.375rem; height: 0.375rem; border-radius: 50%; background: var(--cyan); display: inline-block; box-shadow: 0 0 8px rgba(56,189,248,0.7); }

.why-cards { display: flex; flex-direction: column; gap: 1.4rem; }
.why-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 1.9rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.why-card:hover { border-color: rgba(56, 189, 248, 0.3); transform: translateX(8px); box-shadow: -10px 10px 32px rgba(0, 0, 0, 0.35); }
.why-icon {
  width: 3rem; height: 3rem;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--why-accent, var(--cyan));
}
.why-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem; margin-bottom: 0.5rem; }
.why-head h3 { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: #fff; user-select: none; }
.why-card p { font-size: 0.76rem; color: var(--muted); line-height: 1.7; font-weight: 300; }

/* ---------- Team / culture ---------- */
.team-layout { display: grid; grid-template-columns: 8fr 4fr; gap: 2.5rem; align-items: start; position: relative; z-index: 1; }

.team-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 11rem;
  gap: 1rem;
}
.team-photo {
  position: relative;
  border-radius: 0.9rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
}
.team-photo.wide { grid-column: span 2; }
.team-photo.tall { grid-row: span 2; }
.team-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.55) brightness(0.82);
  transform: scale(1.02);
  transition: filter 0.6s ease, transform 0.6s ease;
}
.team-photo:hover img { filter: saturate(1) brightness(1); transform: scale(1.08); }
.team-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(4, 5, 12, 0.85));
  pointer-events: none;
}
.team-caption {
  position: absolute;
  left: 0.9rem; right: 0.9rem; bottom: 0.9rem;
  z-index: 2;
  transform: translateY(6px);
  opacity: 0.85;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.team-photo:hover .team-caption { transform: translateY(0); opacity: 1; }
.team-caption strong { display: block; font-family: var(--font-display); font-size: 0.8rem; font-weight: 700; color: #fff; }
.team-caption small { font-family: var(--font-mono); font-size: 0.55rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan); }

.team-values { display: flex; flex-direction: column; gap: 1.1rem; }
.team-value {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  border-radius: 0.75rem;
  padding: 1.25rem 1.4rem;
  transition: transform 0.3s, border-color 0.3s;
}
.team-value:nth-child(2) { border-left-color: var(--teal); }
.team-value:nth-child(3) { border-left-color: var(--violet); }
.team-value:hover { transform: translateX(6px); border-color: var(--line-strong); }
.team-value h4 { font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; color: #fff; margin-bottom: 0.4rem; }
.team-value p { font-size: 0.75rem; color: var(--muted); font-weight: 300; line-height: 1.65; }
.team-note {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--faint);
  letter-spacing: 0.04em;
  line-height: 1.6;
  padding: 0.4rem 0.2rem 0;
}

/* ---------- Office locations ---------- */
.locations-layout { display: grid; grid-template-columns: 1.25fr 1fr; gap: 2rem; align-items: start; position: relative; z-index: 1; }

.network-map {
  position: sticky;
  top: 5.5rem;
  width: 100%;
  /* wide proportions keep the dotted continents close to their true
     shape (the land grid is 60×24 cells) */
  aspect-ratio: 2 / 1;
  background:
    radial-gradient(circle at 30% 25%, rgba(56, 189, 248, 0.06), transparent 45%),
    radial-gradient(circle at 70% 70%, rgba(167, 139, 250, 0.06), transparent 45%),
    var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  overflow: hidden;
}
/* fallback for older browsers without aspect-ratio support */
@supports not (aspect-ratio: 1) {
  .network-map { min-height: 20rem; }
}
/* faint ocean dot texture behind the continents */
.network-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none;
}
.network-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* dotted continents */
.land-dot { fill: rgba(141, 163, 199, 0.38); }

.map-arc {
  fill: none;
  stroke: rgba(56, 189, 248, 0.55);
  stroke-dasharray: 2 1.6;
  animation: arcFlow 3.2s linear infinite;
  /* keep the line crisp regardless of how the SVG is scaled */
  vector-effect: non-scaling-stroke;
  stroke-width: 1.4px;
}
@keyframes arcFlow { to { stroke-dashoffset: -7.2; } }

.map-marker { position: absolute; transform: translate(-50%, -50%); z-index: 2; cursor: pointer; }
.map-pin {
  position: relative;
  display: block;
  width: 0.9rem; height: 0.9rem;
  border-radius: 50%;
  background: var(--pin-color, var(--cyan));
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12), 0 0 16px var(--pin-color, var(--cyan));
  transition: transform 0.3s;
}
.map-pin::after {
  content: "";
  position: absolute;
  inset: -0.5rem;
  border-radius: 50%;
  border: 1.5px solid var(--pin-color, var(--cyan));
  opacity: 0.7;
  animation: pinPulse 2.2s ease-out infinite;
}
@keyframes pinPulse {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(2.1); opacity: 0; }
}
.map-marker.lit .map-pin { transform: scale(1.4); }
.map-label {
  position: absolute;
  top: -2rem; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(6, 7, 16, 0.85);
  border: 1px solid var(--line);
  border-radius: 0.375rem;
  padding: 0.22rem 0.55rem;
  white-space: nowrap;
  opacity: 0.75;
  transition: opacity 0.3s, color 0.3s, border-color 0.3s, transform 0.3s;
  pointer-events: none;
}
.map-marker.lit .map-label {
  opacity: 1;
  color: #fff;
  border-color: var(--line-strong);
  transform: translateX(-50%) translateY(-3px);
}

.map-legend {
  position: absolute;
  left: 1.25rem; bottom: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  user-select: none;
}
.map-legend i { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--cyan); display: inline-block; animation: legendBlink 2s ease-in-out infinite; }
@keyframes legendBlink { 50% { opacity: 0.3; } }

.location-cards { display: flex; flex-direction: column; gap: 1rem; }
.location-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  cursor: pointer;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.location-card::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 3px;
  background: var(--loc-accent, var(--cyan));
  opacity: 0.5;
  transition: opacity 0.3s;
}
.location-card:hover, .location-card.lit {
  border-color: var(--line-strong);
  transform: translateX(6px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
.location-card:hover::before, .location-card.lit::before { opacity: 1; }

.location-top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.location-city { display: flex; align-items: baseline; gap: 0.5rem; }
.location-city h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: #fff; }
.location-city small { font-size: 0.7rem; color: var(--faint); font-weight: 500; }
.hq-badge {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #061018;
  background: var(--grad);
  border-radius: 0.3rem;
  padding: 0.18rem 0.45rem;
  text-transform: uppercase;
}
.location-clock {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--loc-accent, var(--cyan));
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}
.location-clock i { width: 0.35rem; height: 0.35rem; border-radius: 50%; background: var(--green); display: inline-block; animation: legendBlink 2s ease-in-out infinite; }
.location-role { font-family: var(--font-mono); font-size: 0.58rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.location-card > p { font-size: 0.74rem; color: var(--muted); font-weight: 300; line-height: 1.6; }
.location-addr { font-family: var(--font-mono); font-size: 0.6rem; color: var(--faint); letter-spacing: 0.04em; padding-top: 0.3rem; border-top: 1px dashed var(--line); margin-top: 0.3rem; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 120% at 50% 120%, rgba(99, 122, 248, 0.18), transparent 60%),
    radial-gradient(ellipse 50% 80% at 80% 0%, rgba(56, 189, 248, 0.1), transparent 55%),
    var(--bg-deep);
}
.cta-inner {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 3rem;
  align-items: center;
}
.cta-copy p { font-size: 1rem; color: var(--muted); font-weight: 300; line-height: 1.7; max-width: 36rem; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.cta-mail { font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted); transition: color 0.25s; }
.cta-mail:hover { color: var(--cyan); }

/* ---------- Footer ---------- */
.site-footer {
  background: #05060d;
  border-top: 1px solid var(--line);
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.site-footer::after {
  content: "";
  position: absolute;
  bottom: -120px; right: -120px;
  width: 420px; height: 420px;
  background: rgba(99, 122, 248, 0.08);
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 5fr 2fr 2fr 3fr;
  gap: 2.5rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 3rem;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}

.footer-brand .brand { margin-bottom: 1.25rem; }
.footer-blurb { font-size: 0.76rem; color: var(--muted); line-height: 1.7; font-weight: 300; max-width: 24rem; margin-bottom: 1.5rem; }
.email-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--muted);
  transition: all 0.3s;
}
.email-badge:hover { border-color: rgba(56, 189, 248, 0.4); color: #fff; }
.email-badge svg { width: 1rem; height: 1rem; }

.footer-col h4 { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600; color: #fff; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 1rem; user-select: none; }
.footer-col li { margin-bottom: 0.75rem; font-size: 0.76rem; font-weight: 300; }
.footer-col a { color: var(--muted); transition: color 0.25s; }
.footer-col a:hover { color: var(--cyan); }
.footer-col .link-btn { font-size: 0.76rem; font-weight: 300; }

.footer-cta { padding: 1.4rem; display: flex; flex-direction: column; align-items: flex-start; gap: 0.55rem; }
.footer-cta strong { font-family: var(--font-display); font-weight: 700; font-size: 0.875rem; color: #fff; line-height: 1.4; }
.footer-cta p { font-size: 0.74rem; color: var(--muted); font-weight: 300; line-height: 1.55; margin-bottom: 0.5rem; }
.footer-cta .btn { width: 100%; padding: 0.75rem; font-size: 0.7rem; }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.74rem;
  color: var(--faint);
  user-select: none;
  position: relative;
  z-index: 1;
}
.footer-base-right { display: flex; align-items: center; gap: 1rem; }
.linkedin-badge { display: flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.75rem; background: var(--surface); border: 1px solid var(--line); border-radius: 0.5rem; transition: color 0.25s, border-color 0.25s; }
.linkedin-badge:hover { color: #fff; border-color: var(--line-strong); }
.linkedin-badge svg { width: 1rem; height: 1rem; }
.divider-v { width: 1px; height: 1rem; background: var(--line); }
.compliance-note { display: flex; align-items: center; gap: 0.4rem; font-family: var(--font-mono); font-size: 0.6rem; }
.compliance-note svg { width: 1rem; height: 1rem; }

/* ---------- Contact modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(4, 5, 12, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.open { opacity: 1; visibility: visible; }

.modal {
  width: 100%;
  max-width: 42rem;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 1rem;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  transform: translateY(26px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }

.modal-head { padding: 1.5rem; background: var(--bg-deep); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.modal-head-left { display: flex; align-items: center; gap: 0.75rem; }
.modal-head h3 { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; color: #fff; letter-spacing: 0.02em; }
.modal-head p { font-family: var(--font-mono); font-size: 0.6rem; color: var(--faint); text-transform: uppercase; letter-spacing: 0.12em; margin-top: 0.25rem; }
.modal-close { font-size: 1.75rem; line-height: 1; color: var(--faint); transition: color 0.25s, transform 0.25s; padding: 0.25rem 0.5rem; }
.modal-close:hover { color: #fff; transform: rotate(90deg); }

.modal-body { flex-grow: 1; overflow-y: auto; padding: 2rem; }

.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.field { margin-bottom: 1.5rem; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.5rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(4, 5, 12, 0.6);
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: #fff;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  resize: vertical;
}
.field select { background: var(--surface-2); color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12); }
.field ::placeholder { color: rgba(231, 236, 244, 0.25); }

#fWebsite { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-error {
  padding: 1rem;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.25);
  border-radius: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--red);
  margin-bottom: 1.5rem;
}

.submit-spinner { width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 2px solid #061018; border-top-color: transparent; animation: spin 0.8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-success { text-align: center; padding: 2rem 0; display: flex; flex-direction: column; align-items: center; }
.success-icon {
  width: 4rem; height: 4rem;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  animation: successPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes successPop { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success-icon svg { width: 2rem; height: 2rem; }
.form-success h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: #fff; margin-bottom: 0.5rem; }
.form-success > p { font-size: 0.79rem; color: var(--muted); font-weight: 300; max-width: 28rem; line-height: 1.7; margin-bottom: 1.5rem; }
.form-success > p strong { color: #fff; }
.form-success > p em { font-style: normal; color: var(--cyan); }

.success-steps {
  width: 100%;
  max-width: 28rem;
  text-align: left;
  padding: 1.25rem;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  margin-bottom: 2rem;
}
.success-steps strong { display: block; color: var(--green); text-transform: uppercase; letter-spacing: 0.1em; border-bottom: 1px solid var(--line); padding-bottom: 0.5rem; margin-bottom: 0.75rem; }
.success-steps div { display: flex; gap: 0.5rem; color: var(--muted); margin-bottom: 0.625rem; }
.success-steps div:first-of-type { color: var(--ink); }
.success-steps div span { color: var(--cyan); flex-shrink: 0; }

.modal-foot {
  padding: 1rem;
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  color: var(--cyan);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  user-select: none;
}
.modal-foot svg { width: 0.875rem; height: 0.875rem; }

body.modal-open { overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 2rem; }
  .hero-card-wrap { order: 2; }
  .hero-metrics { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .pillars-grid, .industries-grid { grid-template-columns: 1fr 1fr; }
  .tech-grid { grid-template-columns: 1fr 1fr; }
  .stepper { grid-template-columns: repeat(3, 1fr); gap: 2rem 1rem; }
  .stepper::before { display: none; }
  .why-grid, .team-layout, .locations-layout, .cta-inner { grid-template-columns: 1fr; }
  .why-sticky { position: static; }
  .network-map { position: static; }
  .location-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .phase-detail-meta { grid-template-columns: 1fr; gap: 1rem; }
}

@media (max-width: 768px) {
  .main-nav, .header-cta { display: none; }
  .mobile-toggle { display: flex; }
  .mobile-menu { display: flex; }
  .section { padding: 4.5rem 0; }
  .about-grid, .pillars-grid, .tech-grid, .industries-grid { grid-template-columns: 1fr; }
  .stepper { grid-template-columns: repeat(2, 1fr); }
  .form-row.two { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; }
  .case-body { padding: 1.5rem; }
  .case-grid { grid-template-columns: 1fr; }
  .agentforce-bar, .foundation-banner { flex-direction: column; align-items: flex-start; }
  .team-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 9rem; }
  .location-cards { grid-template-columns: 1fr; }
  .map-label { font-size: 0.5rem; padding: 0.18rem 0.4rem; }
  .cta-actions { align-items: stretch; }
  .cta-actions .btn { width: 100%; }
}
