/* ============================================================
   SciLearningWorkshops — Design Tokens
   Concept: a molecule's snapshot vs. its trajectory over time.
   Deep lab-navy base, one warm signal accent (amber, like a
   plotted data point), one cool trace accent (teal, the line
   itself). Display type is geometric/technical; body is quiet.
   ============================================================ */

:root {
  --bg: #0a0f1a;
  --bg-panel: #10182a;
  --bg-panel-raised: #141d33;
  --line: #223052;
  --text: #e9edf5;
  --text-muted: #93a0bd;
  --text-faint: #5c6884;
  --trace: #52d6c4;      /* the trajectory line */
  --signal: #f2a94e;     /* the data point / CTA */
  --signal-dim: #a9793a;

  --font-display: "Space Grotesk", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Nav ---------- */

header.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 15, 26, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: var(--max);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
}

.brand-mark {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.brand-logo {
  height: 30px;
  width: auto;
}

.dba-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
}

/* ---------- Path cards (Educational / Implementation) ---------- */

.path-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.path-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.15s ease;
}

.path-card:hover { border-color: var(--trace); }

.path-card h3 { margin: 0; font-size: 21px; }
.path-card p { margin: 0; flex-grow: 1; }

.path-card .go {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--trace);
}

/* ---------- Testimonials ---------- */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.testimonial-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--trace);
  border-radius: 6px;
  padding: 26px 28px;
}

.testimonial-card p.quote {
  color: var(--text);
  font-size: 15.5px;
  font-style: italic;
  margin-bottom: 16px;
}

.testimonial-card .who {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-faint);
}

.testimonial-card .who strong {
  color: var(--text-muted);
  font-style: normal;
}

/* ---------- Book-a-call CTA ---------- */

.book-call {
  background: var(--bg-panel-raised);
  border: 1px solid var(--line);
  border-left: 3px solid var(--signal);
  border-radius: 6px;
  padding: 30px 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.book-call p { margin: 0; color: var(--text); max-width: 48ch; }

.dba-footer-mark {
  display: inline;
  height: 20px;
  width: auto;
  vertical-align: middle;
  margin-left: 6px;
  opacity: 0.85;
}

nav.links {
  display: flex;
  gap: 32px;
  font-size: 14.5px;
  color: var(--text-muted);
}

nav.links a {
  position: relative;
  padding: 4px 0;
  transition: color 0.15s ease;
}

nav.links a:hover,
nav.links a.active {
  color: var(--text);
}

nav.links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 2px;
  background: var(--trace);
}

/* ---------- Eyebrow / labels ---------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--trace);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--trace);
}

/* ---------- Hero ---------- */

.hero {
  padding: 96px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}

h1 {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
  color: var(--text);
}

h1 em, .accent-trace {
  color: var(--trace);
  font-style: normal;
}

.lede {
  font-size: 17.5px;
  color: var(--text-muted);
  max-width: 46ch;
  margin: 0 0 34px;
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-primary {
  background: var(--signal);
  color: #1a1206;
  font-weight: 600;
}
.btn-primary:hover { background: #f7ba6f; }

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--trace); color: var(--trace); }

/* ---------- Hero trajectory chart (signature element) ---------- */

.trajectory-panel {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px 20px 18px;
}

.trajectory-panel .cap {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-faint);
  margin-bottom: 10px;
}

.trace-path {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw 2.4s ease-out forwards;
}

.trace-dot {
  offset-path: path("M4,120 C 40,40 70,150 100,90 S 160,20 200,70 S 260,130 300,60 S 360,10 420,50 C 460,75 480,90 500,90 L 560,90");
  animation: travel 2.4s ease-out forwards, pulse 1.6s ease-in-out 2.4s infinite;
  offset-rotate: 0deg;
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}
@keyframes travel {
  from { offset-distance: 0%; opacity: 0; }
  5% { opacity: 1; }
  to { offset-distance: 100%; }
}
@keyframes pulse {
  0%, 100% { r: 4.5; }
  50% { r: 6.5; }
}

@media (prefers-reduced-motion: reduce) {
  .trace-path, .trace-dot { animation: none; stroke-dashoffset: 0; offset-distance: 100%; }
}

/* ---------- Sections ---------- */

section { padding: 64px 0; border-top: 1px solid var(--line); }
section.no-border { border-top: none; }

.section-head { max-width: 60ch; margin-bottom: 44px; }

h2 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}

h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 8px;
}

p { color: var(--text-muted); margin: 0 0 16px; }

/* ---------- Service cards ---------- */

.service-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.service-row {
  background: var(--bg-panel);
  padding: 30px 32px;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 24px;
  align-items: start;
}

.service-index {
  font-family: var(--font-mono);
  color: var(--text-faint);
  font-size: 13px;
  padding-top: 4px;
}

.service-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--trace);
  border: 1px solid var(--trace);
  border-radius: 3px;
  padding: 2px 8px;
  margin-bottom: 10px;
}

.service-price {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text);
  white-space: nowrap;
  text-align: right;
  padding-top: 6px;
}

.service-price .ask {
  color: var(--signal);
  font-size: 13px;
}

.service-row a.link {
  color: var(--trace);
  font-family: var(--font-mono);
  font-size: 13.5px;
  border-bottom: 1px solid transparent;
}
.service-row a.link:hover { border-color: var(--trace); }

/* ---------- Custom pipeline callout ---------- */

.callout {
  background: var(--bg-panel-raised);
  border: 1px solid var(--line);
  border-left: 3px solid var(--signal);
  border-radius: 6px;
  padding: 32px 36px;
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.callout p { margin: 0; color: var(--text); max-width: 52ch; }
.callout .eyebrow { margin-bottom: 8px; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 8px;
}

.contact-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 26px;
}

.contact-card .label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
}

.contact-card .value {
  font-size: 17px;
  color: var(--text);
  overflow-wrap: break-word;
}

.contact-card a.value:hover { color: var(--trace); }

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13.5px;
  color: var(--text-faint);
}

.footer-inner a:hover { color: var(--trace); }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .path-grid { grid-template-columns: 1fr; }
  h1 { font-size: 34px; }
  nav.links { gap: 20px; }
  .service-row { grid-template-columns: 1fr; }
  .service-price { text-align: left; padding-top: 0; }
}

@media (max-width: 520px) {
  .nav-inner { padding: 14px 20px; }
  .wrap { padding: 0 20px; }
  nav.links { gap: 14px; font-size: 13px; }
}
