/* Catalyst Works v3-WOW — shared styles for lens + industry SEO pages.
   Mirrors the cinematic dark theme from index.html without the Three.js / particles /
   custom-cursor weight. Used by:
   - /lens/throughput.html, /lens/friction.html, /lens/decision.html,
     /lens/information.html, /lens/inference.html
   - /for/professional-services.html, /for/hvac.html, /for/healthcare-smb.html
*/

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

:root {
  --ink:        #0A0E14;
  --ink-2:      #0F141C;
  --ink-3:      #161D27;
  --paper:      #F5EFE2;
  --amber:      #E8A66B;
  --amber-2:    #D08A50;
  --rust:       #C8553D;
  --cyan:       #5BC0BE;
  --line:       rgba(245,239,226,0.12);
  --line-2:     rgba(245,239,226,0.06);
  --t-mid:      rgba(245,239,226,0.78);
  --t-muted:    rgba(245,239,226,0.55);
  --t-dim:      rgba(245,239,226,0.35);
  --serif:      'Spectral', Georgia, serif;
  --sans:       'Public Sans', system-ui, -apple-system, sans-serif;
  --mono:       'JetBrains Mono', ui-monospace, monospace;
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --shadow:     0 24px 60px rgba(0,0,0,0.5), 0 2px 6px rgba(0,0,0,0.3);
}

html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }

/* NAV — floating + transparent, fades to translucent on scroll (matches index.html) */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 16px 32px;
  background: rgba(10,14,20,0); backdrop-filter: blur(0);
  transition: background 300ms var(--ease), backdrop-filter 300ms var(--ease), border-color 300ms;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,14,20,0.78);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--line-2);
}
.nav-inner { max-width: 1320px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--serif); font-weight: 600; font-size: 19px; color: var(--paper); text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 50%; }
.brand .accent { color: var(--amber); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-size: 13px; color: var(--t-muted); transition: color 180ms; font-weight: 500; }
.nav-links a:hover { color: var(--paper); }
.nav-cta { padding: 9px 18px; background: var(--paper); color: var(--ink); border-radius: 7px; font-size: 13px; font-weight: 600; transition: transform 180ms var(--ease); }
.nav-cta:hover { transform: translateY(-1px); }

/* Mobile hamburger button (hidden on desktop) */
.nav-toggle {
  display: none;
  background: transparent; border: 1px solid var(--line);
  width: 40px; height: 40px;
  border-radius: 8px; padding: 0;
  align-items: center; justify-content: center; cursor: pointer;
  transition: border-color 180ms, background 180ms;
}
.nav-toggle:hover { border-color: rgba(232,166,107,0.4); background: rgba(232,166,107,0.05); }
.nav-toggle span {
  display: block; width: 18px; height: 1.5px;
  background: var(--paper);
  position: relative;
  transition: transform 220ms var(--ease), opacity 220ms;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; left: 0; width: 18px; height: 1.5px;
  background: var(--paper);
  transition: transform 220ms var(--ease), top 220ms;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* Mobile drawer base styles — hidden on desktop, slides in on mobile.
   Rules live OUTSIDE the media query so the desktop hide rule below
   has a base to override. Without this, desktop falls back to default
   <div> block styling and the drawer leaks into the layout. */
.nav-drawer {
  display: none;
  position: fixed; top: 0; left: 0; right: 0;
  padding: 72px 24px 28px;
  background: rgba(10,14,20,0.98);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-100%);
  transition: transform 320ms var(--ease);
  z-index: 49;
  flex-direction: column; gap: 4px;
}
.nav-drawer.is-open { transform: translateY(0); }
.nav-drawer a {
  display: block;
  padding: 16px 8px;
  font-size: 17px;
  color: var(--paper);
  border-bottom: 1px solid var(--line-2);
  font-family: var(--serif);
  font-weight: 500;
}
.nav-drawer a:last-child { border-bottom: none; }
.nav-drawer .nav-drawer-cta {
  margin-top: 14px;
  text-align: center;
  background: var(--paper); color: var(--ink);
  border-radius: 10px;
  font-family: var(--sans); font-weight: 600; font-size: 15px;
  padding: 14px 18px;
}

@media (max-width: 760px) {
  .nav-inner { padding: 12px 20px; gap: 12px; }
  .nav-toggle { display: inline-flex; }
  /* Hide the desktop inline nav-links; mobile drawer takes over */
  .nav > .nav-inner > .nav-links { display: none; }
  /* Hide stand-alone desktop CTA on mobile (drawer carries it) */
  .nav > .nav-inner > .nav-cta { display: none; }
  /* Show the drawer at mobile widths */
  .nav-drawer { display: flex; }
}

/* HERO */
.hero {
  padding: 96px 32px 56px;
  max-width: 960px; margin: 0 auto;
  position: relative;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 40%, rgba(232,166,107,0.10), transparent 50%);
  pointer-events: none;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 18px;
}
.eyebrow::before {
  content: ''; width: 22px; height: 1px; background: var(--amber);
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 600; line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--paper);
  margin-bottom: 24px;
}
.hero h1 em { color: var(--amber); font-style: normal; font-weight: 500; }
.hero .lede {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 400;
  color: var(--t-mid);
  font-style: italic;
  max-width: 60ch;
  line-height: 1.5;
}

/* BODY SECTIONS */
.section { padding: 56px 32px; max-width: 960px; margin: 0 auto; }
.section h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 600; letter-spacing: -0.02em;
  color: var(--paper); margin-bottom: 20px;
  line-height: 1.15;
}
.section h2 em { color: var(--amber); font-style: normal; }
.section h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--paper);
  margin: 32px 0 12px;
  letter-spacing: -0.01em;
}
.section p {
  font-size: 16.5px;
  color: var(--t-mid);
  margin-bottom: 18px;
  max-width: 68ch;
}
.section ul, .section ol {
  list-style: none;
  margin-bottom: 18px;
  max-width: 68ch;
}
.section li {
  font-size: 16px;
  color: var(--t-mid);
  padding: 6px 0 6px 22px;
  position: relative;
  line-height: 1.55;
}
.section li::before {
  content: '→'; position: absolute; left: 0; color: var(--amber); font-weight: 600;
}

/* CALLOUT BOX */
.callout {
  margin: 28px 0;
  padding: 22px 24px;
  background: linear-gradient(135deg, rgba(91,192,190,0.08), rgba(91,192,190,0.02));
  border: 1px solid rgba(91,192,190,0.24);
  border-left: 2px solid var(--cyan);
  border-radius: 0 10px 10px 0;
}
.callout-label {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 8px; font-weight: 500;
}
.callout p { font-size: 15.5px; color: var(--t-mid); margin: 0; line-height: 1.55; }

/* CASE GRID — used on industry pages */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 28px 0;
}
@media (max-width: 880px) { .case-grid { grid-template-columns: 1fr; } }
.case-card {
  background: rgba(22,29,39,0.5);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 22px 20px;
  position: relative;
  overflow: hidden;
}
.case-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  opacity: 0.5;
}
.case-card .case-tag {
  display: inline-block;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cyan); padding: 4px 9px;
  border: 1px solid rgba(91,192,190,0.32);
  border-radius: 4px; margin-bottom: 12px;
}
.case-card h4 {
  font-family: var(--serif); font-size: 17px;
  font-weight: 600; color: var(--paper);
  margin: 0 0 10px; line-height: 1.3;
}
.case-card p {
  font-size: 13.5px; color: var(--t-mid);
  line-height: 1.55; margin: 0;
}

/* CTA STRIP — bottom of each page */
.cta-strip {
  margin: 64px auto 0;
  max-width: 960px;
  padding: 48px 32px;
  background: linear-gradient(180deg, rgba(22,29,39,0.85) 0%, rgba(15,20,28,0.95) 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
}
.cta-strip h3 {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600; color: var(--paper);
  letter-spacing: -0.02em; margin-bottom: 14px;
  max-width: 30ch; margin-left: auto; margin-right: auto;
}
.cta-strip p {
  color: var(--t-mid); font-size: 15.5px;
  max-width: 56ch; margin: 0 auto 24px;
}
.cta-strip a.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 12px;
  background: var(--paper); color: var(--ink);
  font-weight: 700; font-size: 15px;
  transition: transform 220ms var(--ease), box-shadow 280ms;
}
.cta-strip a.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(245,239,226,0.20);
}
.cta-strip .price-tag {
  margin-top: 14px;
  font-family: var(--mono); font-size: 12px;
  color: var(--t-muted); letter-spacing: 0.06em;
}

/* FOOTER */
footer {
  padding: 56px 32px 36px;
  background: var(--ink);
  border-top: 1px solid var(--line);
  margin-top: 64px;
}
.foot-inner {
  max-width: 1320px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 24px;
  align-items: center; justify-content: space-between;
}
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { font-size: 13px; color: var(--t-muted); transition: color 200ms; }
.foot-links a:hover { color: var(--amber); }
.foot-copy {
  width: 100%; padding-top: 16px;
  font-size: 11px; color: var(--t-dim);
  letter-spacing: 0.04em;
}

@media (max-width: 480px) {
  .foot-links { gap: 12px 18px; row-gap: 6px; }
  .foot-links a, footer .brand {
    min-height: 44px; min-width: 44px;
    display: inline-flex; align-items: center; padding: 10px 6px;
  }
  footer .brand { padding-left: 0; }
  .hero { padding: 64px 20px 40px; }
  .section { padding: 40px 20px; }
}

/* CROSS-LINKS — the "explore other lenses / industries" footer block */
.cross-links {
  margin-top: 56px;
  padding: 32px 0;
  border-top: 1px solid var(--line-2);
}
.cross-links-label {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--t-muted); margin-bottom: 16px;
}
.cross-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.cross-links a {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  color: var(--t-mid);
  transition: border-color 220ms var(--ease), color 220ms, transform 220ms var(--ease);
}
.cross-links a:hover {
  border-color: rgba(232,166,107,0.32);
  color: var(--paper);
  transform: translateY(-2px);
}
.cross-links a strong {
  display: block;
  color: var(--paper);
  font-weight: 600;
  font-family: var(--serif);
  font-size: 15.5px;
  margin-bottom: 4px;
}
